@umbraco-cms/backoffice 1.0.0-next.de0ffca0 → 1.0.0-next.e8be58ec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend-api.d.ts +1023 -282
- package/collection.d.ts +38 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +66 -6
- package/controller.d.ts +3 -2
- package/custom-elements.json +1761 -1247
- package/element.d.ts +5 -5
- package/entity-action.d.ts +19 -9
- package/extensions-api.d.ts +13 -12
- package/extensions-registry.d.ts +290 -88
- package/id.d.ts +6 -0
- package/modal.d.ts +50 -338
- package/models.d.ts +4 -71
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +75 -49
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/repository.d.ts +114 -44
- package/resources.d.ts +24 -15
- package/router.d.ts +263 -25
- package/section.d.ts +29 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +51 -56
- package/tree.d.ts +14 -0
- package/umbraco-package-schema.json +37755 -0
- package/utils.d.ts +1 -9
- package/vscode-html-custom-data.json +579 -446
- package/workspace.d.ts +40 -22
- package/property-editor.d.ts +0 -8
package/element.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { HTMLElementConstructor } from '
|
|
3
|
-
import { UmbControllerHostElement } from '
|
|
4
|
-
import { UmbContextToken, UmbContextProviderController, UmbContextCallback, UmbContextConsumerController } from '
|
|
5
|
-
import { UmbObserverController } from '
|
|
2
|
+
import { HTMLElementConstructor } from '@umbraco-cms/backoffice/models';
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
4
|
+
import { UmbContextToken, UmbContextProviderController, UmbContextCallback, UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
|
|
5
|
+
import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
|
|
6
6
|
|
|
7
7
|
interface ResolvedContexts {
|
|
8
8
|
[key: string]: any;
|
|
@@ -13,6 +13,6 @@ declare class UmbElementMixinInterface extends UmbControllerHostElement {
|
|
|
13
13
|
consumeContext<R = unknown>(alias: string | UmbContextToken<R>, callback: UmbContextCallback<R>): UmbContextConsumerController<R>;
|
|
14
14
|
consumeAllContexts(contextAliases: string[], callback: (_instances: ResolvedContexts) => void): void;
|
|
15
15
|
}
|
|
16
|
-
declare const UmbElementMixin: <T extends HTMLElementConstructor
|
|
16
|
+
declare const UmbElementMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbElementMixinInterface> & T;
|
|
17
17
|
|
|
18
18
|
export { UmbElementMixin, UmbElementMixinInterface };
|
package/entity-action.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UmbControllerHostElement } from '
|
|
2
|
-
import { UmbEntityActionBase as UmbEntityActionBase$1 } from '
|
|
1
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
2
|
+
import { UmbEntityActionBase as UmbEntityActionBase$1 } from '@umbraco-cms/backoffice/entity-action';
|
|
3
|
+
import { UmbDetailRepository, UmbItemRepository, UmbFolderRepository } from '@umbraco-cms/backoffice/repository';
|
|
3
4
|
|
|
4
5
|
interface UmbAction<RepositoryType = unknown> {
|
|
5
6
|
host: UmbControllerHostElement;
|
|
@@ -17,6 +18,7 @@ interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
|
|
|
17
18
|
}
|
|
18
19
|
declare class UmbEntityActionBase<RepositoryType> extends UmbActionBase<RepositoryType> {
|
|
19
20
|
unique: string;
|
|
21
|
+
repositoryAlias: string;
|
|
20
22
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -37,10 +39,19 @@ declare class UmbCopyEntityAction<T extends {
|
|
|
37
39
|
execute(): Promise<void>;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
declare class UmbDeleteEntityAction<T extends {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
declare class UmbDeleteEntityAction<T extends UmbDetailRepository & UmbItemRepository<any>> extends UmbEntityActionBase$1<T> {
|
|
43
|
+
#private;
|
|
44
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
45
|
+
execute(): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class UmbDeleteFolderEntityAction<T extends UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
49
|
+
#private;
|
|
50
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
51
|
+
execute(): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class UmbFolderUpdateEntityAction<T extends UmbFolderRepository = UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
44
55
|
#private;
|
|
45
56
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
46
57
|
execute(): Promise<void>;
|
|
@@ -60,13 +71,12 @@ declare class UmbSortChildrenOfEntityAction<T extends {
|
|
|
60
71
|
execute(): Promise<void>;
|
|
61
72
|
}
|
|
62
73
|
|
|
63
|
-
declare class UmbTrashEntityAction<T extends {
|
|
74
|
+
declare class UmbTrashEntityAction<T extends UmbItemRepository<any> & {
|
|
64
75
|
trash(unique: Array<string>): Promise<void>;
|
|
65
|
-
requestTreeItems(uniques: Array<string>): any;
|
|
66
76
|
}> extends UmbEntityActionBase$1<T> {
|
|
67
77
|
#private;
|
|
68
78
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
69
79
|
execute(): Promise<void>;
|
|
70
80
|
}
|
|
71
81
|
|
|
72
|
-
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
|
82
|
+
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbFolderUpdateEntityAction, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
package/extensions-api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from '
|
|
3
|
-
import { UmbContextToken } from '
|
|
4
|
-
import { UmbControllerHostElement } from '
|
|
2
|
+
import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestWithLoader, ManifestClass } from '@umbraco-cms/backoffice/extensions-registry';
|
|
3
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
4
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
5
5
|
|
|
6
6
|
declare class UmbExtensionRegistry {
|
|
7
7
|
private _extensions;
|
|
@@ -10,6 +10,7 @@ declare class UmbExtensionRegistry {
|
|
|
10
10
|
readonly kinds: Observable<ManifestKind[]>;
|
|
11
11
|
defineKind(kind: ManifestKind): void;
|
|
12
12
|
register(manifest: ManifestTypes | ManifestKind): void;
|
|
13
|
+
registerMany(manifests: Array<ManifestTypes>): void;
|
|
13
14
|
unregister(alias: string): void;
|
|
14
15
|
isRegistered(alias: string): boolean;
|
|
15
16
|
private _kindsOfType;
|
|
@@ -22,7 +23,7 @@ declare class UmbExtensionRegistry {
|
|
|
22
23
|
}
|
|
23
24
|
declare const UMB_EXTENSION_REGISTRY_TOKEN: UmbContextToken<UmbExtensionRegistry>;
|
|
24
25
|
|
|
25
|
-
declare function createExtensionElement(manifest: ManifestElement): Promise<
|
|
26
|
+
declare function createExtensionElement<ElementType extends HTMLElement>(manifest: ManifestElement<ElementType>): Promise<ElementType | undefined>;
|
|
26
27
|
|
|
27
28
|
declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
|
|
28
29
|
default: ConstructorType;
|
|
@@ -43,19 +44,19 @@ declare function hasInitExport(obj: unknown): obj is Pick<UmbEntrypointModule, '
|
|
|
43
44
|
|
|
44
45
|
declare function isManifestElementNameType(manifest: unknown): manifest is ManifestElementWithElementName;
|
|
45
46
|
|
|
46
|
-
declare function isManifestElementableType(manifest: ManifestBase): manifest is ManifestElement;
|
|
47
|
+
declare function isManifestElementableType<ElementType extends HTMLElement = HTMLElement>(manifest: ManifestBase): manifest is ManifestElement;
|
|
47
48
|
|
|
48
|
-
type
|
|
49
|
-
loader: () => Promise<object | HTMLElement>;
|
|
50
|
-
};
|
|
51
|
-
type ManifestJSType = ManifestElement & {
|
|
49
|
+
type ManifestJSType<T> = ManifestWithLoader<T> & {
|
|
52
50
|
js: string;
|
|
53
51
|
};
|
|
54
|
-
declare function
|
|
52
|
+
declare function isManifestJSType<T>(manifest: ManifestBase | unknown): manifest is ManifestJSType<T>;
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
type ManifestLoaderType<T> = ManifestWithLoader<T> & {
|
|
55
|
+
loader: () => Promise<T>;
|
|
56
|
+
};
|
|
57
|
+
declare function isManifestLoaderType<T>(manifest: ManifestBase): manifest is ManifestLoaderType<T>;
|
|
57
58
|
|
|
58
|
-
declare function
|
|
59
|
+
declare function loadExtension<T = unknown>(manifest: ManifestWithLoader<T>): Promise<T | null>;
|
|
59
60
|
|
|
60
61
|
declare function createExtensionElementOrFallback(manifest: any, fallbackElementName: string): Promise<HTMLElement | undefined>;
|
|
61
62
|
|