add packageView to extension registry

This commit is contained in:
Jacob Overgaard
2022-09-05 10:32:48 +02:00
parent e157d7d57f
commit 354b4b7aba
2 changed files with 5 additions and 1 deletions

View File

@@ -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>>;

View File

@@ -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;