Skip to content

Commit 820fafa

Browse files
committed
rename global manifest type
1 parent 9b0c8b1 commit 820fafa

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

examples/block-custom-view/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const manifests: Array<UmbManifestTypes> = [
1+
export const manifests: Array<UmbExtensionManifest> = [
22
{
33
type: 'blockEditorCustomView',
44
alias: 'Umb.blockEditorCustomView.TestView',

src/libs/extension-api/types/manifest-bundle.interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ManifestBase } from './manifest-base.interface.js';
44
/**
55
* This type of extension takes a JS module and registers all exported manifests from the pointed JS file.
66
*/
7-
export interface ManifestBundle<UmbManifestTypes extends ManifestBase = ManifestBase>
8-
extends ManifestPlainJs<{ [key: string]: Array<UmbManifestTypes> }> {
7+
export interface ManifestBundle<ManifestTypes extends ManifestBase = ManifestBase>
8+
extends ManifestPlainJs<{ [key: string]: Array<ManifestTypes> }> {
99
type: 'bundle';
1010
}

src/packages/block/block-type/components/block-type-custom-view-guide/block-type-custom-view-guide.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class UmbBlockTypeCustomViewGuideElement extends UmbLitElement {
8989
async #generateManifest() {
9090
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
9191

92-
const manifest: UmbManifestTypes = {
92+
const manifest: UmbExtensionManifest = {
9393
type: 'blockEditorCustomView',
9494
alias: 'Local.blockEditorCustomView.' + this.#contentTypeAlias,
9595
name: 'Block Editor Custom View for ' + this.#contentTypeName,

src/packages/block/custom-view/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const manifest: UmbManifestTypes = {
1+
export const manifest: UmbExtensionManifest = {
22
type: 'blockEditorCustomView',
33
alias: 'Umb.blockEditorCustomView.TestView',
44
name: 'Block Editor Custom View Test',

src/packages/core/extension-registry/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,5 @@ declare global {
242242
* This global type provides a union of all declared manifest types.
243243
* If this is a local package that declares additional Manifest Types, then these will also be included in this union.
244244
*/
245-
type UmbManifestTypes = UnionOfProperties<UmbManifestType>;
245+
type UmbExtensionManifest = UnionOfProperties<UmbManifestType>;
246246
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ManifestKind } from '@umbraco-cms/backoffice/extension-api';
22
import { UmbExtensionRegistry } from '@umbraco-cms/backoffice/extension-api';
33

4-
export type UmbBackofficeManifestKind = ManifestKind<UmbManifestTypes>;
5-
export type UmbBackofficeExtensionRegistry = UmbExtensionRegistry<UmbManifestTypes>;
4+
export type UmbBackofficeManifestKind = ManifestKind<UmbExtensionManifest>;
5+
export type UmbBackofficeExtensionRegistry = UmbExtensionRegistry<UmbExtensionManifest>;
66

7-
export const umbExtensionsRegistry = new UmbExtensionRegistry<UmbManifestTypes>() as UmbBackofficeExtensionRegistry;
7+
export const umbExtensionsRegistry = new UmbExtensionRegistry<UmbExtensionManifest>() as UmbBackofficeExtensionRegistry;

src/packages/core/extension-registry/umbraco-package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface UmbracoPackage {
3737
* @title An array of Umbraco package manifest types that will be installed
3838
* @required
3939
*/
40-
extensions: UmbManifestTypes[];
40+
extensions: UmbExtensionManifest[];
4141

4242
/**
4343
* @title The importmap for the package

0 commit comments

Comments
 (0)