File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed
examples/block-custom-view
block-type/components/block-type-custom-view-guide Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- export const manifests : Array < UmbManifestTypes > = [
1
+ export const manifests : Array < UmbExtensionManifest > = [
2
2
{
3
3
type : 'blockEditorCustomView' ,
4
4
alias : 'Umb.blockEditorCustomView.TestView' ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type { ManifestBase } from './manifest-base.interface.js';
4
4
/**
5
5
* This type of extension takes a JS module and registers all exported manifests from the pointed JS file.
6
6
*/
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 > } > {
9
9
type : 'bundle' ;
10
10
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export class UmbBlockTypeCustomViewGuideElement extends UmbLitElement {
89
89
async #generateManifest( ) {
90
90
const modalManager = await this . getContext ( UMB_MODAL_MANAGER_CONTEXT ) ;
91
91
92
- const manifest : UmbManifestTypes = {
92
+ const manifest : UmbExtensionManifest = {
93
93
type : 'blockEditorCustomView' ,
94
94
alias : 'Local.blockEditorCustomView.' + this . #contentTypeAlias,
95
95
name : 'Block Editor Custom View for ' + this . #contentTypeName,
Original file line number Diff line number Diff line change 1
- export const manifest : UmbManifestTypes = {
1
+ export const manifest : UmbExtensionManifest = {
2
2
type : 'blockEditorCustomView' ,
3
3
alias : 'Umb.blockEditorCustomView.TestView' ,
4
4
name : 'Block Editor Custom View Test' ,
Original file line number Diff line number Diff line change @@ -242,5 +242,5 @@ declare global {
242
242
* This global type provides a union of all declared manifest types.
243
243
* If this is a local package that declares additional Manifest Types, then these will also be included in this union.
244
244
*/
245
- type UmbManifestTypes = UnionOfProperties < UmbManifestType > ;
245
+ type UmbExtensionManifest = UnionOfProperties < UmbManifestType > ;
246
246
}
Original file line number Diff line number Diff line change 1
1
import type { ManifestKind } from '@umbraco-cms/backoffice/extension-api' ;
2
2
import { UmbExtensionRegistry } from '@umbraco-cms/backoffice/extension-api' ;
3
3
4
- export type UmbBackofficeManifestKind = ManifestKind < UmbManifestTypes > ;
5
- export type UmbBackofficeExtensionRegistry = UmbExtensionRegistry < UmbManifestTypes > ;
4
+ export type UmbBackofficeManifestKind = ManifestKind < UmbExtensionManifest > ;
5
+ export type UmbBackofficeExtensionRegistry = UmbExtensionRegistry < UmbExtensionManifest > ;
6
6
7
- export const umbExtensionsRegistry = new UmbExtensionRegistry < UmbManifestTypes > ( ) as UmbBackofficeExtensionRegistry ;
7
+ export const umbExtensionsRegistry = new UmbExtensionRegistry < UmbExtensionManifest > ( ) as UmbBackofficeExtensionRegistry ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export interface UmbracoPackage {
37
37
* @title An array of Umbraco package manifest types that will be installed
38
38
* @required
39
39
*/
40
- extensions : UmbManifestTypes [ ] ;
40
+ extensions : UmbExtensionManifest [ ] ;
41
41
42
42
/**
43
43
* @title The importmap for the package
You can’t perform that action at this time.
0 commit comments