@umbraco-cms/backoffice 1.0.0-next.99fe12c7 → 1.0.0-next.bf0e5e95

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,4 +1,4 @@
1
- import { UmbControllerHostInterface, UmbControllerInterface } from './controller';
1
+ import { UmbControllerHostElement, UmbControllerInterface } from './controller';
2
2
 
3
3
  declare class UmbContextToken<T = unknown> {
4
4
  protected alias: string;
@@ -90,9 +90,9 @@ declare class UmbContextConsumer<HostType extends EventTarget = EventTarget, T =
90
90
  destroy(): void;
91
91
  }
92
92
 
93
- declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<UmbControllerHostInterface, T> implements UmbControllerInterface {
93
+ declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<UmbControllerHostElement, T> implements UmbControllerInterface {
94
94
  get unique(): undefined;
95
- constructor(host: UmbControllerHostInterface, contextAlias: string | UmbContextToken<T>, callback: UmbContextCallback<T>);
95
+ constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, callback: UmbContextCallback<T>);
96
96
  destroy(): void;
97
97
  }
98
98
 
@@ -136,9 +136,9 @@ declare class UmbContextProvider<HostType extends EventTarget = EventTarget> {
136
136
  destroy(): void;
137
137
  }
138
138
 
139
- declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<UmbControllerHostInterface> implements UmbControllerInterface {
139
+ declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<UmbControllerHostElement> implements UmbControllerInterface {
140
140
  get unique(): string;
141
- constructor(host: UmbControllerHostInterface, contextAlias: string | UmbContextToken<T>, instance: T);
141
+ constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, instance: T);
142
142
  destroy(): void;
143
143
  }
144
144
 
package/controller.d.ts CHANGED
@@ -7,7 +7,7 @@ interface UmbControllerInterface {
7
7
  destroy(): void;
8
8
  }
9
9
 
10
- declare class UmbControllerHostInterface extends HTMLElement {
10
+ 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;
@@ -20,7 +20,7 @@ declare class UmbControllerHostInterface extends HTMLElement {
20
20
  * @param {Object} superClass - superclass to be extended.
21
21
  * @mixin
22
22
  */
23
- declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostInterface> & T;
23
+ declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
24
24
  declare global {
25
25
  interface HTMLElement {
26
26
  connectedCallback(): void;
@@ -29,13 +29,13 @@ declare global {
29
29
  }
30
30
 
31
31
  declare abstract class UmbController implements UmbControllerInterface {
32
- protected host?: UmbControllerHostInterface;
32
+ protected host?: UmbControllerHostElement;
33
33
  private _alias?;
34
34
  get unique(): string | undefined;
35
- constructor(host: UmbControllerHostInterface, alias?: string);
35
+ constructor(host: UmbControllerHostElement, alias?: string);
36
36
  abstract hostConnected(): void;
37
37
  abstract hostDisconnected(): void;
38
38
  destroy(): void;
39
39
  }
40
40
 
41
- export { UmbController, UmbControllerHostInterface, UmbControllerHostMixin, UmbControllerInterface };
41
+ export { UmbController, UmbControllerHostElement, UmbControllerHostMixin, UmbControllerInterface };