@umbraco-cms/backoffice 1.0.0-next.f1bd6ec7 → 1.0.0-next.f63da516
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 +493 -74
- package/collection.d.ts +38 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +4 -4
- package/controller.d.ts +1 -1
- package/custom-elements.json +1498 -1312
- package/element.d.ts +4 -4
- package/entity-action.d.ts +6 -13
- package/extensions-api.d.ts +13 -13
- package/extensions-registry.d.ts +290 -88
- package/id.d.ts +6 -0
- package/modal.d.ts +35 -23
- package/models.d.ts +3 -70
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +53 -41
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/repository.d.ts +84 -38
- package/resources.d.ts +24 -15
- package/router.d.ts +4 -16
- package/section.d.ts +29 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +43 -48
- package/tree.d.ts +14 -0
- package/umbraco-package-schema.json +37755 -0
- package/utils.d.ts +1 -11
- package/vscode-html-custom-data.json +474 -473
- package/workspace.d.ts +37 -19
- 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;
|
package/entity-action.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UmbControllerHostElement } from '
|
|
2
|
-
import { UmbEntityActionBase as UmbEntityActionBase$1 } from '
|
|
3
|
-
import { UmbFolderRepository } 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';
|
|
4
4
|
|
|
5
5
|
interface UmbAction<RepositoryType = unknown> {
|
|
6
6
|
host: UmbControllerHostElement;
|
|
@@ -39,19 +39,13 @@ declare class UmbCopyEntityAction<T extends {
|
|
|
39
39
|
execute(): Promise<void>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
declare class UmbDeleteEntityAction<T extends {
|
|
43
|
-
delete(unique: string): Promise<void>;
|
|
44
|
-
requestTreeItems(uniques: Array<string>): any;
|
|
45
|
-
}> extends UmbEntityActionBase$1<T> {
|
|
42
|
+
declare class UmbDeleteEntityAction<T extends UmbDetailRepository & UmbItemRepository<any>> extends UmbEntityActionBase$1<T> {
|
|
46
43
|
#private;
|
|
47
44
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
48
45
|
execute(): Promise<void>;
|
|
49
46
|
}
|
|
50
47
|
|
|
51
|
-
declare class UmbDeleteFolderEntityAction<T extends {
|
|
52
|
-
deleteFolder(unique: string): Promise<void>;
|
|
53
|
-
requestTreeItems(uniques: Array<string>): any;
|
|
54
|
-
}> extends UmbEntityActionBase$1<T> {
|
|
48
|
+
declare class UmbDeleteFolderEntityAction<T extends UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
55
49
|
#private;
|
|
56
50
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
57
51
|
execute(): Promise<void>;
|
|
@@ -77,9 +71,8 @@ declare class UmbSortChildrenOfEntityAction<T extends {
|
|
|
77
71
|
execute(): Promise<void>;
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
declare class UmbTrashEntityAction<T extends {
|
|
74
|
+
declare class UmbTrashEntityAction<T extends UmbItemRepository<any> & {
|
|
81
75
|
trash(unique: Array<string>): Promise<void>;
|
|
82
|
-
requestTreeItems(uniques: Array<string>): any;
|
|
83
76
|
}> extends UmbEntityActionBase$1<T> {
|
|
84
77
|
#private;
|
|
85
78
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
package/extensions-api.d.ts
CHANGED
|
@@ -1,8 +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 {
|
|
5
|
-
import { UmbControllerHostElement } from './controller';
|
|
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';
|
|
6
5
|
|
|
7
6
|
declare class UmbExtensionRegistry {
|
|
8
7
|
private _extensions;
|
|
@@ -11,6 +10,7 @@ declare class UmbExtensionRegistry {
|
|
|
11
10
|
readonly kinds: Observable<ManifestKind[]>;
|
|
12
11
|
defineKind(kind: ManifestKind): void;
|
|
13
12
|
register(manifest: ManifestTypes | ManifestKind): void;
|
|
13
|
+
registerMany(manifests: Array<ManifestTypes>): void;
|
|
14
14
|
unregister(alias: string): void;
|
|
15
15
|
isRegistered(alias: string): boolean;
|
|
16
16
|
private _kindsOfType;
|
|
@@ -23,7 +23,7 @@ declare class UmbExtensionRegistry {
|
|
|
23
23
|
}
|
|
24
24
|
declare const UMB_EXTENSION_REGISTRY_TOKEN: UmbContextToken<UmbExtensionRegistry>;
|
|
25
25
|
|
|
26
|
-
declare function createExtensionElement(manifest: ManifestElement): Promise<
|
|
26
|
+
declare function createExtensionElement<ElementType extends HTMLElement>(manifest: ManifestElement<ElementType>): Promise<ElementType | undefined>;
|
|
27
27
|
|
|
28
28
|
declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
|
|
29
29
|
default: ConstructorType;
|
|
@@ -44,19 +44,19 @@ declare function hasInitExport(obj: unknown): obj is Pick<UmbEntrypointModule, '
|
|
|
44
44
|
|
|
45
45
|
declare function isManifestElementNameType(manifest: unknown): manifest is ManifestElementWithElementName;
|
|
46
46
|
|
|
47
|
-
declare function isManifestElementableType(manifest: ManifestBase): manifest is ManifestElement;
|
|
47
|
+
declare function isManifestElementableType<ElementType extends HTMLElement = HTMLElement>(manifest: ManifestBase): manifest is ManifestElement;
|
|
48
48
|
|
|
49
|
-
type
|
|
50
|
-
loader: () => Promise<object | HTMLElement>;
|
|
51
|
-
};
|
|
52
|
-
type ManifestJSType = ManifestElement & {
|
|
49
|
+
type ManifestJSType<T> = ManifestWithLoader<T> & {
|
|
53
50
|
js: string;
|
|
54
51
|
};
|
|
55
|
-
declare function
|
|
52
|
+
declare function isManifestJSType<T>(manifest: ManifestBase | unknown): manifest is ManifestJSType<T>;
|
|
56
53
|
|
|
57
|
-
|
|
54
|
+
type ManifestLoaderType<T> = ManifestWithLoader<T> & {
|
|
55
|
+
loader: () => Promise<T>;
|
|
56
|
+
};
|
|
57
|
+
declare function isManifestLoaderType<T>(manifest: ManifestBase): manifest is ManifestLoaderType<T>;
|
|
58
58
|
|
|
59
|
-
declare function
|
|
59
|
+
declare function loadExtension<T = unknown>(manifest: ManifestWithLoader<T>): Promise<T | null>;
|
|
60
60
|
|
|
61
61
|
declare function createExtensionElementOrFallback(manifest: any, fallbackElementName: string): Promise<HTMLElement | undefined>;
|
|
62
62
|
|