@umbraco-cms/backoffice 1.0.0-next.bf0e5e95 → 1.0.0-next.c45ef438
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 +594 -272
- package/context-api.d.ts +72 -2
- package/controller.d.ts +3 -2
- package/custom-elements.json +1442 -994
- package/element.d.ts +5 -5
- package/entity-action.d.ts +19 -9
- package/extensions-api.d.ts +6 -4
- package/extensions-registry.d.ts +174 -13
- package/modal.d.ts +60 -324
- package/models.d.ts +14 -9
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +89 -48
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/property-editor.d.ts +1 -1
- package/repository.d.ts +85 -30
- package/resources.d.ts +7 -5
- package/router.d.ts +275 -25
- package/sorter.d.ts +103 -0
- package/store.d.ts +51 -56
- package/umbraco-package-schema.json +2439 -0
- package/utils.d.ts +4 -2
- package/vscode-html-custom-data.json +457 -298
- package/workspace.d.ts +14 -7
package/context-api.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { UmbControllerHostElement, UmbControllerInterface } from '
|
|
1
|
+
import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
|
|
2
|
+
import { UmbWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace';
|
|
3
|
+
import { BaseEntity } from '@umbraco-cms/backoffice/models';
|
|
2
4
|
|
|
3
5
|
declare class UmbContextToken<T = unknown> {
|
|
4
6
|
protected alias: string;
|
|
@@ -162,4 +164,72 @@ declare class UmbContextProvideEventImplementation extends Event implements UmbC
|
|
|
162
164
|
}
|
|
163
165
|
declare const isUmbContextProvideEventType: (event: Event) => event is UmbContextProvideEventImplementation;
|
|
164
166
|
|
|
165
|
-
|
|
167
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface<EntityType> {
|
|
168
|
+
getEntityId(): string | undefined;
|
|
169
|
+
getEntityType(): string;
|
|
170
|
+
save(): Promise<void>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<BaseEntity>>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Change the collection of Contexts into a simplified array of data
|
|
177
|
+
*
|
|
178
|
+
* @param contexts This is a map of the collected contexts from umb-debug
|
|
179
|
+
* @returns An array of simplified context data
|
|
180
|
+
*/
|
|
181
|
+
declare function contextData(contexts: Map<any, any>): Array<DebugContextData>;
|
|
182
|
+
interface DebugContextData {
|
|
183
|
+
/**
|
|
184
|
+
* The alias of the context
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof DebugContextData
|
|
188
|
+
*/
|
|
189
|
+
alias: string;
|
|
190
|
+
/**
|
|
191
|
+
* The type of the context such as object or string
|
|
192
|
+
*
|
|
193
|
+
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
|
|
194
|
+
* @memberof DebugContextData
|
|
195
|
+
*/
|
|
196
|
+
type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
197
|
+
/**
|
|
198
|
+
* Data about the context that includes method and property names
|
|
199
|
+
*
|
|
200
|
+
* @type {DebugContextItemData}
|
|
201
|
+
* @memberof DebugContextData
|
|
202
|
+
*/
|
|
203
|
+
data: DebugContextItemData;
|
|
204
|
+
}
|
|
205
|
+
interface DebugContextItemData {
|
|
206
|
+
type: string;
|
|
207
|
+
methods?: Array<unknown>;
|
|
208
|
+
properties?: Array<DebugContextItemPropertyData>;
|
|
209
|
+
value?: unknown;
|
|
210
|
+
}
|
|
211
|
+
interface DebugContextItemPropertyData {
|
|
212
|
+
/**
|
|
213
|
+
* The name of the property
|
|
214
|
+
*
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof DebugContextItemPropertyData
|
|
217
|
+
*/
|
|
218
|
+
key: string;
|
|
219
|
+
/**
|
|
220
|
+
* The type of the property's value such as string or number
|
|
221
|
+
*
|
|
222
|
+
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
|
|
223
|
+
* @memberof DebugContextItemPropertyData
|
|
224
|
+
*/
|
|
225
|
+
type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
226
|
+
/**
|
|
227
|
+
* Simple types such as string or number can have their value displayed stored inside the property
|
|
228
|
+
*
|
|
229
|
+
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
|
|
230
|
+
* @memberof DebugContextItemPropertyData
|
|
231
|
+
*/
|
|
232
|
+
value?: unknown;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export { DebugContextData, DebugContextItemData, DebugContextItemPropertyData, UMB_ENTITY_WORKSPACE_CONTEXT, UmbContextCallback, UmbContextConsumer, UmbContextConsumerController, UmbContextDebugRequest, UmbContextProvideEvent, UmbContextProvideEventImplementation, UmbContextProvider, UmbContextProviderController, UmbContextRequestEvent, UmbContextRequestEventImplementation, UmbContextToken, contextData, isUmbContextProvideEventType, isUmbContextRequestEvent, umbContextProvideEventType, umbContextRequestEventType, umbDebugContextEventType };
|
package/controller.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLElementConstructor } from '
|
|
1
|
+
import { HTMLElementConstructor } from '@umbraco-cms/backoffice/models';
|
|
2
2
|
|
|
3
3
|
interface UmbControllerInterface {
|
|
4
4
|
get unique(): string | undefined;
|
|
@@ -11,6 +11,7 @@ declare class UmbControllerHostElement extends HTMLElement {
|
|
|
11
11
|
hasController(controller: UmbControllerInterface): boolean;
|
|
12
12
|
getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
|
|
13
13
|
addController(controller: UmbControllerInterface): void;
|
|
14
|
+
removeControllerByUnique(unique: UmbControllerInterface['unique']): void;
|
|
14
15
|
removeController(controller: UmbControllerInterface): void;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
@@ -20,7 +21,7 @@ declare class UmbControllerHostElement extends HTMLElement {
|
|
|
20
21
|
* @param {Object} superClass - superclass to be extended.
|
|
21
22
|
* @mixin
|
|
22
23
|
*/
|
|
23
|
-
declare const UmbControllerHostMixin: <T extends HTMLElementConstructor
|
|
24
|
+
declare const UmbControllerHostMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
|
|
24
25
|
declare global {
|
|
25
26
|
interface HTMLElement {
|
|
26
27
|
connectedCallback(): void;
|