add packageView to extension registry
This commit is contained in:
@@ -11,6 +11,7 @@ import type {
|
||||
ManifestPropertyEditorUI,
|
||||
ManifestSection,
|
||||
ManifestCustom,
|
||||
ManifestPackageView,
|
||||
} from '../models';
|
||||
export class UmbExtensionRegistry {
|
||||
private _extensions = new BehaviorSubject<Array<ManifestTypes>>([]);
|
||||
@@ -47,6 +48,7 @@ export class UmbExtensionRegistry {
|
||||
extensionsOfType(type: 'editorView'): Observable<Array<ManifestEditorView>>;
|
||||
extensionsOfType(type: 'propertyEditorUI'): Observable<Array<ManifestPropertyEditorUI>>;
|
||||
extensionsOfType(type: 'propertyAction'): Observable<Array<ManifestPropertyAction>>;
|
||||
extensionsOfType(type: 'packageView'): Observable<Array<ManifestPackageView>>;
|
||||
extensionsOfType(type: 'entrypoint'): Observable<Array<ManifestEntrypoint>>;
|
||||
extensionsOfType(type: 'custom'): Observable<Array<ManifestCustom>>;
|
||||
extensionsOfType<T extends ManifestTypes>(type: string): Observable<Array<T>>;
|
||||
|
||||
@@ -24,13 +24,15 @@ export type ManifestEditorView = components['schemas']['IManifestEditorView'];
|
||||
export type ManifestPropertyAction = components['schemas']['IManifestPropertyAction'];
|
||||
export type ManifestEntrypoint = components['schemas']['IManifestEntrypoint'];
|
||||
export type ManifestCustom = components['schemas']['IManifestCustom'];
|
||||
export type ManifestPackageView = components['schemas']['IManifestPackageView'];
|
||||
|
||||
export type ManifestElementType =
|
||||
| ManifestSection
|
||||
| ManifestPropertyAction
|
||||
| ManifestPropertyEditorUI
|
||||
| ManifestDashboard
|
||||
| ManifestEditorView;
|
||||
| ManifestEditorView
|
||||
| ManifestPackageView;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
|
||||
|
||||
Reference in New Issue
Block a user