diff --git a/src/Umbraco.Web.UI.Client/schemas/api/api.yml b/src/Umbraco.Web.UI.Client/schemas/api/api.yml index 31504997b8..3c4e98e020 100644 --- a/src/Umbraco.Web.UI.Client/schemas/api/api.yml +++ b/src/Umbraco.Web.UI.Client/schemas/api/api.yml @@ -409,19 +409,19 @@ components: - section meta: $ref: '#/components/schemas/MetaSection' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaTree: type: object properties: @@ -444,19 +444,19 @@ components: - tree meta: $ref: '#/components/schemas/MetaTree' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaEditor: type: object properties: @@ -473,19 +473,19 @@ components: - editor meta: $ref: '#/components/schemas/MetaEditor' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaTreeItemAction: type: object properties: @@ -514,19 +514,19 @@ components: - treeItemAction meta: $ref: '#/components/schemas/MetaTreeItemAction' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name IPrevalueField: type: object properties: @@ -571,19 +571,19 @@ components: - propertyEditorUI meta: $ref: '#/components/schemas/MetaPropertyEditorUI' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaDashboard: type: object properties: @@ -611,19 +611,19 @@ components: - dashboard meta: $ref: '#/components/schemas/MetaDashboard' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaEditorView: type: object properties: @@ -652,19 +652,19 @@ components: - editorView meta: $ref: '#/components/schemas/MetaEditorView' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaPropertyAction: type: object properties: @@ -683,19 +683,19 @@ components: - propertyAction meta: $ref: '#/components/schemas/MetaPropertyAction' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name MetaPackageView: type: object properties: @@ -712,19 +712,19 @@ components: - packageView meta: $ref: '#/components/schemas/MetaPackageView' - name: - type: string js: type: string elementName: type: string alias: type: string + name: + type: string required: - type - meta - - name - alias + - name IManifestEntrypoint: type: object properties: @@ -736,10 +736,13 @@ components: type: string alias: type: string + name: + type: string required: - type - js - alias + - name IManifestCustom: type: object properties: @@ -751,9 +754,12 @@ components: type: object alias: type: string + name: + type: string required: - type - alias + - name Manifest: oneOf: - $ref: '#/components/schemas/IManifestSection' diff --git a/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts b/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts index 421fd5a0fd..fdc1e66117 100644 --- a/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts +++ b/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts @@ -120,10 +120,10 @@ export interface components { /** @enum {string} */ type: "section"; meta: components["schemas"]["MetaSection"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaTree: { /** Format: float */ @@ -134,10 +134,10 @@ export interface components { /** @enum {string} */ type: "tree"; meta: components["schemas"]["MetaTree"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaEditor: { entityType: string; @@ -146,10 +146,10 @@ export interface components { /** @enum {string} */ type: "editor"; meta: components["schemas"]["MetaEditor"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaTreeItemAction: { trees: string[]; @@ -162,10 +162,10 @@ export interface components { /** @enum {string} */ type: "treeItemAction"; meta: components["schemas"]["MetaTreeItemAction"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; IPrevalueField: { label?: string; @@ -185,10 +185,10 @@ export interface components { /** @enum {string} */ type: "propertyEditorUI"; meta: components["schemas"]["MetaPropertyEditorUI"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaDashboard: { sections: string[]; @@ -201,10 +201,10 @@ export interface components { /** @enum {string} */ type: "dashboard"; meta: components["schemas"]["MetaDashboard"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaEditorView: { editors: string[]; @@ -217,10 +217,10 @@ export interface components { /** @enum {string} */ type: "editorView"; meta: components["schemas"]["MetaEditorView"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaPropertyAction: { propertyEditors: string[]; @@ -229,10 +229,10 @@ export interface components { /** @enum {string} */ type: "propertyAction"; meta: components["schemas"]["MetaPropertyAction"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; MetaPackageView: { packageAlias: string; @@ -241,22 +241,24 @@ export interface components { /** @enum {string} */ type: "packageView"; meta: components["schemas"]["MetaPackageView"]; - name: string; js?: string; elementName?: string; alias: string; + name: string; }; IManifestEntrypoint: { /** @enum {string} */ type: "entrypoint"; js: string; alias: string; + name: string; }; IManifestCustom: { /** @enum {string} */ type: "custom"; meta?: { [key: string]: unknown }; alias: string; + name: string; }; Manifest: | components["schemas"]["IManifestSection"] diff --git a/src/Umbraco.Web.UI.Client/src/mocks/domains/manifests.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/domains/manifests.handlers.ts index b2231e3abf..0d29036c86 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/domains/manifests.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/domains/manifests.handlers.ts @@ -34,6 +34,7 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/manifests'), (_ }, { type: 'entrypoint', + name: 'My Custom Entry Point', alias: 'My.Entrypoint.Custom', js: '/src/mocks/App_Plugins/custom-entrypoint.js', }, diff --git a/src/Umbraco.Web.UI.Client/temp-schema-generator/manifests.ts b/src/Umbraco.Web.UI.Client/temp-schema-generator/manifests.ts index 70a43e4f8c..01e470e6f6 100644 --- a/src/Umbraco.Web.UI.Client/temp-schema-generator/manifests.ts +++ b/src/Umbraco.Web.UI.Client/temp-schema-generator/manifests.ts @@ -75,6 +75,7 @@ export interface PackageInstalled { export interface IManifest { type: string; alias: string; + name: string; } export interface IPrevalueField { @@ -145,7 +146,6 @@ export interface IManifestCustom extends IManifest { export interface IManifestElement extends IManifest { type: ManifestStandardTypes; - name: string; js?: string; elementName?: string; meta?: {};