@umbraco-cms/backoffice 1.0.0-next.81b4603f → 1.0.0-next.84b71a2f

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/README.md CHANGED
@@ -40,7 +40,7 @@ Create an umbraco-package.json file in the root of your package.
40
40
  Then create a dashboard.js file the same folder.
41
41
 
42
42
  ```javascript
43
- import { UmbElementMixin } from '@umbraco-cms/backoffice/element';
43
+ import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
44
44
  import { UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
45
45
 
46
46
  const template = document.createElement('template');
@@ -106,12 +106,11 @@ Then go to the element located in `src/my-element.ts` and replace it with the fo
106
106
  // src/my-element.ts
107
107
  import { LitElement, html } from 'lit';
108
108
  import { customElement } from 'lit/decorators.js';
109
- import { UmbElementMixin } from '@umbraco-cms/backoffice/element';
109
+ import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
110
110
  import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
111
111
 
112
112
  @customElement('my-element')
113
113
  export default class MyElement extends UmbElementMixin(LitElement) {
114
-
115
114
  private _notificationContext?: UmbNotificationContext;
116
115
 
117
116
  constructor() {
package/collection.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as rxjs from 'rxjs';
2
- import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
2
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
3
3
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
4
4
  import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
5
5
  import { UmbCollectionRepository } from '@umbraco-cms/backoffice/repository';
package/content-type.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ProblemDetailsModel, DocumentTypeResponseModel, PropertyTypeContainerResponseModelBaseModel, PropertyTypeResponseModelBaseModel, DocumentTypePropertyTypeResponseModel } from '@umbraco-cms/backoffice/backend-api';
4
- import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
4
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
5
5
  import { MappingFunction } from '@umbraco-cms/backoffice/observable-api';
6
6
 
7
7
  interface UmbRepositoryErrorResponse {
package/context-api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
1
+ import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller-api';
2
2
  import { UmbContextToken as UmbContextToken$1 } from '@umbraco-cms/backoffice/context-api';
3
3
  import { UmbWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace';
4
4
  import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
@@ -165,9 +165,7 @@ declare class UmbContextProvideEventImplementation extends Event implements UmbC
165
165
  }
166
166
  declare const isUmbContextProvideEventType: (event: Event) => event is UmbContextProvideEventImplementation;
167
167
 
168
- type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
169
-
170
- declare const UmbContextProviderElement_base: HTMLElementConstructor<UmbControllerHostElement> & {
168
+ declare const UmbContextProviderElement_base: (new (...args: any[]) => UmbControllerHostElement) & {
171
169
  new (): HTMLElement;
172
170
  prototype: HTMLElement;
173
171
  };
@@ -1,5 +1,3 @@
1
- import { HTMLElementConstructor } from '@umbraco-cms/backoffice/models';
2
-
3
1
  interface UmbControllerInterface {
4
2
  get unique(): string | undefined;
5
3
  hostConnected(): void;
@@ -7,6 +5,7 @@ interface UmbControllerInterface {
7
5
  destroy(): void;
8
6
  }
9
7
 
8
+ type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
10
9
  declare class UmbControllerHostElement extends HTMLElement {
11
10
  hasController(controller: UmbControllerInterface): boolean;
12
11
  getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
@@ -21,7 +20,7 @@ declare class UmbControllerHostElement extends HTMLElement {
21
20
  * @param {Object} superClass - superclass to be extended.
22
21
  * @mixin
23
22
  */
24
- declare const UmbControllerHostMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
23
+ declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
25
24
  declare global {
26
25
  interface HTMLElement {
27
26
  connectedCallback(): void;