@umbraco-cms/backoffice 1.0.0-next.d01c4274 → 1.0.0-next.d2c0dcf1

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/context-api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { UmbControllerHostElement, UmbControllerInterface } from './controller';
2
- import { UmbWorkspaceContextInterface } from './workspace';
3
- import { BaseEntity } from './models';
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';
4
4
 
5
5
  declare class UmbContextToken<T = unknown> {
6
6
  protected alias: string;
@@ -165,7 +165,7 @@ declare class UmbContextProvideEventImplementation extends Event implements UmbC
165
165
  declare const isUmbContextProvideEventType: (event: Event) => event is UmbContextProvideEventImplementation;
166
166
 
167
167
  interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface<EntityType> {
168
- getEntityKey(): string | undefined;
168
+ getEntityId(): string | undefined;
169
169
  getEntityType(): string;
170
170
  save(): Promise<void>;
171
171
  }
package/controller.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { HTMLElementConstructor } from './models';
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<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
24
+ declare const UmbControllerHostMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
24
25
  declare global {
25
26
  interface HTMLElement {
26
27
  connectedCallback(): void;