integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/backend-api",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import type { UmbContextToken } from '../context-token';
|
||||
import { UmbContextProviderController } from '../provide/context-provider.controller';
|
||||
import type { UmbContextCallback } from '../consume/context-request.event';
|
||||
import { UmbContextConsumerController } from '../consume/context-consumer.controller';
|
||||
import type { HTMLElementConstructor } from '@umbraco-cms/models';
|
||||
|
||||
import { UmbControllerHostInterface, UmbControllerHostMixin } from '@umbraco-cms/controller';
|
||||
import {
|
||||
UmbContextToken,
|
||||
UmbContextCallback,
|
||||
UmbContextConsumerController,
|
||||
UmbContextProviderController,
|
||||
} from '@umbraco-cms/context-api';
|
||||
import { UmbObserverController } from '@umbraco-cms/observable-api';
|
||||
|
||||
// TODO: can we use this aliases to generate the key of this type
|
||||
@@ -6,3 +6,4 @@ export * from './provide/context-provider';
|
||||
export * from './provide/context-provide.event';
|
||||
export * from './provide/context-provider.element';
|
||||
export * from './context-token';
|
||||
export * from './element';
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/context-api",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"dependencies": {
|
||||
"lit": "^2.6.1",
|
||||
"@umbraco-cms/element": "^0.0.0"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { UmbContextProviderElement } from './context-provider.element';
|
||||
import { UmbLitElement } from '@umbraco-cms/element';
|
||||
import { UmbLitElement } from '@umbraco-cms/context-api';
|
||||
|
||||
@customElement('umb-context-test')
|
||||
export class ContextTestElement extends UmbLitElement {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { html } from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
import { UmbLitElement } from '@umbraco-cms/element';
|
||||
import { UmbLitElement } from '../element';
|
||||
|
||||
@customElement('umb-context-provider')
|
||||
export class UmbContextProviderElement extends UmbLitElement {
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/controller",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/element",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import config from '../../utils/rollup.config.js';
|
||||
export default {
|
||||
...config,
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/extensions-api",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/extensions-registry",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -20,7 +20,7 @@ The UmbNotification service can be used to open notifications.
|
||||
|
||||
```ts
|
||||
import { html, LitElement } from 'lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/element';
|
||||
import { UmbLitElement } from '@umbraco-cms/context-api';
|
||||
import type { UmbNotificationService, UMB_NOTIFICATION_SERVICE_CONTEXT_ALIAS } from './core/services/notification';
|
||||
|
||||
class MyElement extends UmbLitElement {
|
||||
@@ -44,7 +44,7 @@ A notification is opened by calling one of the helper methods on the UmbNotifica
|
||||
```ts
|
||||
import { html, LitElement } from 'lit';
|
||||
import { state } from 'lit/decorators.js';
|
||||
import { UmbLitElement } from '@umbraco-cms/element';
|
||||
import { UmbLitElement } from '@umbraco-cms/context-api';
|
||||
import type {
|
||||
UmbNotificationService,
|
||||
UmbNotificationDefaultData,
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
UmbNotificationService,
|
||||
UMB_NOTIFICATION_SERVICE_CONTEXT_TOKEN,
|
||||
} from '.';
|
||||
import { UmbLitElement } from '@umbraco-cms/element';
|
||||
import { UmbLitElement } from '@umbraco-cms/context-api';
|
||||
|
||||
export default {
|
||||
title: 'API/Notifications/Overview',
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/notification",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/observable-api",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"dependencies": {
|
||||
"rxjs": "^6.6.3"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "@umbraco-cms/resources",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"module": "dist/index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Umbraco HQ",
|
||||
"license": "MIT"
|
||||
}
|
||||
Reference in New Issue
Block a user