@arcgis/lumina 5.0.0-next.9 → 5.0.0-next.90
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/dist/{Controller-ftAEcdmI.js → Controller-DDyB41GY.js} +1 -1
- package/dist/{ControllerInternals-CWQrfEA8.js → ControllerInternals-By6dhpY-.js} +2 -2
- package/dist/ControllerManager-LzfJtMG7.js +185 -0
- package/dist/LitElement.d.ts +6 -6
- package/dist/context.js +1 -1
- package/dist/controllers/Controller.d.ts +3 -3
- package/dist/controllers/ControllerInternals.d.ts +5 -5
- package/dist/controllers/ControllerManager.d.ts +4 -6
- package/dist/controllers/accessor/index.d.ts +4 -4
- package/dist/controllers/accessor/index.js +3 -3
- package/dist/controllers/accessor/reEmitEvent.d.ts +1 -1
- package/dist/controllers/accessor/store.d.ts +1 -1
- package/dist/controllers/accessor/useAccessor.d.ts +3 -3
- package/dist/controllers/functional.d.ts +2 -2
- package/dist/controllers/index.d.ts +29 -20
- package/dist/controllers/index.js +18 -9
- package/dist/controllers/load.d.ts +1 -1
- package/dist/controllers/proxyExports.d.ts +2 -2
- package/dist/controllers/trackKey.d.ts +2 -2
- package/dist/controllers/trackPropKey.d.ts +1 -1
- package/dist/controllers/trackPropertyKey.d.ts +2 -2
- package/dist/controllers/types.d.ts +1 -1
- package/dist/controllers/useDirection.d.ts +1 -1
- package/dist/controllers/useMedia.d.ts +1 -1
- package/dist/controllers/usePropertyChange.d.ts +3 -3
- package/dist/controllers/useT9n.d.ts +1 -1
- package/dist/controllers/useWatchAttributes.d.ts +2 -2
- package/dist/controllers/utils.d.ts +2 -2
- package/dist/createEvent.d.ts +1 -1
- package/dist/decorators.d.ts +1 -1
- package/dist/devOnlyDetectIncorrectLazyUsages.d.ts +1 -1
- package/dist/hmrSupport.js +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +9 -179
- package/dist/jsx/baseTypes.d.ts +4 -4
- package/dist/jsx/directives.d.ts +3 -3
- package/dist/jsx/generatedTypes.d.ts +817 -539
- package/dist/jsx/types.d.ts +2 -2
- package/dist/{lazyLoad-BlK67lvm.js → lazyLoad-DjHR4rq8.js} +10 -4
- package/dist/lazyLoad.d.ts +3 -3
- package/dist/lifecycleSupport.d.ts +1 -1
- package/dist/makeRuntime.d.ts +2 -2
- package/dist/{proxyExports-D906TEtL.js → proxyExports-BH_3cSmm.js} +2 -2
- package/dist/render.d.ts +1 -1
- package/dist/tests/wrappersUtils.typeTest.d.ts +1 -0
- package/dist/typings/jsxGlobals.d.ts +1 -1
- package/dist/utils.d.ts +14 -9
- package/package.json +5 -4
- package/dist/controllers/tests/autoDestroyMock.d.ts +0 -5
- package/dist/controllers/tests/utils.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
package/dist/jsx/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
2
|
import { DirectiveResult } from 'lit/directive.js';
|
|
3
|
-
import { HTMLElementTags, HTMLAttributes, GlobalEventHandlersCamelCase, SvgElementTags, DOMAttributes, AriaAttributes } from './generatedTypes';
|
|
4
|
-
import { CustomAttributes } from './baseTypes';
|
|
3
|
+
import { HTMLElementTags, HTMLAttributes, GlobalEventHandlersCamelCase, SvgElementTags, DOMAttributes, AriaAttributes } from './generatedTypes.ts';
|
|
4
|
+
import { CustomAttributes } from './baseTypes.ts';
|
|
5
5
|
/**
|
|
6
6
|
* The "h" namespace is used to import JSX types for elements and attributes.
|
|
7
7
|
* It is imported in order to avoid conflicting global JSX issues.
|
|
@@ -96,10 +96,16 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
96
96
|
const noShadowRoot = {};
|
|
97
97
|
function emptyFunction() {
|
|
98
98
|
}
|
|
99
|
-
const devOnly$getLitElementTagNameAndRuntime = process.env.NODE_ENV !== "production" && isEsriInternalEnv() ? (componentClass) =>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
const devOnly$getLitElementTagNameAndRuntime = process.env.NODE_ENV !== "production" && isEsriInternalEnv() ? (componentClass) => {
|
|
100
|
+
const prototype = Object.getPrototypeOf(componentClass);
|
|
101
|
+
if (prototype.L !== void 0 && prototype.L === componentClass.L) {
|
|
102
|
+
return { tagName: void 0, runtime: void 0 };
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
tagName: componentClass.L,
|
|
106
|
+
runtime: componentClass.K
|
|
107
|
+
};
|
|
108
|
+
} : void 0;
|
|
103
109
|
const makeDefineCustomElements = (runtime, structure) => function defineCustomElements(windowOrOptions, options) {
|
|
104
110
|
if (!globalThis.customElements) {
|
|
105
111
|
return;
|
package/dist/lazyLoad.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Deferred } from '@arcgis/toolkit/promise';
|
|
2
|
-
import { LitElement } from './LitElement';
|
|
3
|
-
import { Runtime } from './makeRuntime';
|
|
4
|
-
import { ControllerManager } from './controllers/ControllerManager';
|
|
2
|
+
import { LitElement } from './LitElement.ts';
|
|
3
|
+
import { Runtime } from './makeRuntime.ts';
|
|
4
|
+
import { ControllerManager } from './controllers/ControllerManager.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Defines lazy-loading proxy components for all web components in this package.
|
|
7
7
|
*
|
package/dist/makeRuntime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
|
-
import { LitElement } from './LitElement';
|
|
3
|
-
import { AccessorObservableLike, ReactiveTrackingTarget } from './controllers/types';
|
|
2
|
+
import { LitElement } from './LitElement.ts';
|
|
3
|
+
import { AccessorObservableLike, ReactiveTrackingTarget } from './controllers/types.ts';
|
|
4
4
|
/**
|
|
5
5
|
* `@arcgis/lumina` package may be bundled once but used by multiple packages with
|
|
6
6
|
* different configuration options. For that reason, the configuration options
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-
|
|
2
|
-
import { t as trackKey } from "./Controller-
|
|
1
|
+
import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-By6dhpY-.js";
|
|
2
|
+
import { t as trackKey } from "./Controller-DDyB41GY.js";
|
|
3
3
|
const proxyExports = (Class) => (...args) => {
|
|
4
4
|
const ambientControllers = retrieveParentControllers();
|
|
5
5
|
const instance = new Class(...args);
|
package/dist/render.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -33,7 +33,7 @@ export interface DeclareElements extends globalThis.DeclareElements {
|
|
|
33
33
|
* global typings with this interface - thus we use namespace merging to
|
|
34
34
|
* extend the namespaced DeclareElements based on the global DeclareElements.
|
|
35
35
|
*/
|
|
36
|
-
declare module "../jsx/types" {
|
|
36
|
+
declare module "../jsx/types.ts" {
|
|
37
37
|
interface DeclareElements extends globalThis.DeclareElements {
|
|
38
38
|
}
|
|
39
39
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from './LitElement';
|
|
2
|
-
import { Runtime } from './makeRuntime';
|
|
1
|
+
import { LitElement } from './LitElement.ts';
|
|
2
|
+
import { Runtime } from './makeRuntime.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Add this static property to your component to disable shadow root.
|
|
5
5
|
*
|
|
@@ -12,17 +12,22 @@ import { Runtime } from './makeRuntime';
|
|
|
12
12
|
* ```ts
|
|
13
13
|
* static override shadowRootOptions = noShadowRoot;
|
|
14
14
|
* ```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* The above property is an empty object at runtime for bundle size reasons.
|
|
15
|
+
*
|
|
16
|
+
* @privateRemarks
|
|
17
|
+
* This property is an empty object at runtime for bundle size reasons.
|
|
19
18
|
* While empty object is not a valid shadowRootOption, it is never passed to
|
|
20
19
|
* attachShadow() since we use this exact empty object as a magic value to opt
|
|
21
20
|
* out of shadow root.
|
|
22
21
|
*/
|
|
22
|
+
export declare const noShadowRoot: ShadowRootInit;
|
|
23
23
|
export declare function emptyFunction(): undefined;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Exposed as a dev-only util for use by Lumina's mount() test helper. We need
|
|
26
|
+
* to expose a wrapper util because private properties are mangled and so cannot
|
|
27
|
+
* be reliably accessed outside the package.
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
25
30
|
export declare const devOnly$getLitElementTagNameAndRuntime: ((componentClass: typeof LitElement) => {
|
|
26
|
-
tagName: string;
|
|
27
|
-
runtime: Runtime;
|
|
31
|
+
tagName: string | undefined;
|
|
32
|
+
runtime: Runtime | undefined;
|
|
28
33
|
}) | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.90",
|
|
4
|
+
"sideEffects": false,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "dist/index.cjs",
|
|
6
7
|
"module": "dist/index.js",
|
|
@@ -20,14 +21,14 @@
|
|
|
20
21
|
"files": [
|
|
21
22
|
"dist/"
|
|
22
23
|
],
|
|
23
|
-
"license": "
|
|
24
|
+
"license": "https://js.arcgis.com/5.0/esri/LICENSE.txt",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@arcgis/toolkit": "~5.0.0-next.
|
|
26
|
+
"@arcgis/toolkit": "~5.0.0-next.90",
|
|
26
27
|
"csstype": "^3.1.3",
|
|
27
28
|
"tslib": "^2.8.1"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
|
-
"@lit/context": "^1.1.
|
|
31
|
+
"@lit/context": "^1.1.6",
|
|
31
32
|
"lit": "^3.3.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function captureConsoleErrors(): unknown[][];
|
package/dist/runtime.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const runtime: import('./makeRuntime').Runtime;
|
|
2
|
-
/**
|
|
3
|
-
* "customElement" needs to be exported - it will be used by the build system.
|
|
4
|
-
* You should not call it directly.
|
|
5
|
-
*/
|
|
6
|
-
export declare const customElement: (tagName: string, component: typeof import('./LitElement').LitElement) => void;
|