@arcgis/lumina 5.2.0-next.99 → 6.0.0-next.0
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/{ControllerManager-CXEWZVTX.js → chunks/ControllerManager.js} +2 -2
- package/dist/{GenericController-Ko6PTuJs.js → chunks/GenericController.js} +1 -1
- package/dist/{lazyLoad-ki2r1z-R.js → chunks/lazyLoad.js} +1 -1
- package/dist/{proxyExports-D-G9Eby6.js → chunks/proxyExports.js} +2 -2
- package/dist/context.js +1 -1
- package/dist/controllers/accessor/index.js +3 -3
- package/dist/controllers/accessor/reEmitEvent.d.ts +1 -0
- package/dist/controllers/accessor/store.d.ts +4 -3
- package/dist/controllers/accessor/useAccessor.d.ts +10 -2
- package/dist/controllers/index.js +6 -6
- package/dist/hmrSupport.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +2 -2
- /package/dist/{ControllerInternals-DBoubTn4.js → chunks/ControllerInternals.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { safeCall, isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
2
|
-
import { G as GenericController, p as propertyTrackResolve } from "./GenericController
|
|
2
|
+
import { G as GenericController, p as propertyTrackResolve } from "./GenericController.js";
|
|
3
3
|
import { nothing, LitElement as LitElement$1 } from "lit";
|
|
4
4
|
import { devToolsAwareTimeout } from "@arcgis/toolkit/promise";
|
|
5
|
-
import { a as setParentController, s as setAmbientComponent } from "./ControllerInternals
|
|
5
|
+
import { a as setParentController, s as setAmbientComponent } from "./ControllerInternals.js";
|
|
6
6
|
class ControllerManager extends GenericController {
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { safeCall, isEsriInternalEnv, safeAsyncCall } from "@arcgis/toolkit/error";
|
|
2
|
-
import { r as retrieveComponent, b as retrieveParentControllers, a as setParentController, s as setAmbientComponent, u as use, j as useRef, k as useRefSync, d as controllerSymbol } from "./ControllerInternals
|
|
2
|
+
import { r as retrieveComponent, b as retrieveParentControllers, a as setParentController, s as setAmbientComponent, u as use, j as useRef, k as useRefSync, d as controllerSymbol } from "./ControllerInternals.js";
|
|
3
3
|
import { nothing } from "lit";
|
|
4
4
|
import { Deferred } from "@arcgis/toolkit/promise";
|
|
5
5
|
import { rethrowError } from "@arcgis/toolkit/log";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
2
2
|
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
3
3
|
import { Deferred } from "@arcgis/toolkit/promise";
|
|
4
|
-
import { lazyMetaGroupJoiner, lazyMetaItemJoiner, lazyMetaSubItemJoiner } from "
|
|
4
|
+
import { lazyMetaGroupJoiner, lazyMetaItemJoiner, lazyMetaSubItemJoiner } from "../config.js";
|
|
5
5
|
function devOnlyDetectIncorrectLazyUsages(LitClass) {
|
|
6
6
|
const genericPrototype = LitClass.prototype;
|
|
7
7
|
const descriptor = Object.getOwnPropertyDescriptor(genericPrototype, "innerText");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as setParentController, f as setAmbientChildController, b as retrieveParentControllers, c as bypassReadOnly } from "./ControllerInternals
|
|
2
|
-
import { a as trackKey } from "./GenericController
|
|
1
|
+
import { a as setParentController, f as setAmbientChildController, b as retrieveParentControllers, c as bypassReadOnly } from "./ControllerInternals.js";
|
|
2
|
+
import { a as trackKey } from "./GenericController.js";
|
|
3
3
|
const proxyExports = (Class) => (...args) => {
|
|
4
4
|
const ambientControllers = retrieveParentControllers();
|
|
5
5
|
const instance = new Class(...args);
|
package/dist/context.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContextConsumer, ContextProvider } from "@lit/context";
|
|
2
|
-
import { r as retrieveComponent } from "./ControllerInternals
|
|
2
|
+
import { r as retrieveComponent } from "./chunks/ControllerInternals.js";
|
|
3
3
|
const useContextProvider = (options) => {
|
|
4
4
|
const component = retrieveComponent();
|
|
5
5
|
const controller = new ContextProvider(component.el, options);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
2
|
-
import { r as retrieveComponent } from "../../ControllerInternals
|
|
2
|
+
import { r as retrieveComponent } from "../../chunks/ControllerInternals.js";
|
|
3
3
|
import { on, watch } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
import { c as createEventFactory, G as GenericController, t as trackPropKey, a as trackKey } from "../../GenericController
|
|
5
|
-
import { p as proxyExports } from "../../proxyExports
|
|
4
|
+
import { c as createEventFactory, G as GenericController, t as trackPropKey, a as trackKey } from "../../chunks/GenericController.js";
|
|
5
|
+
import { p as proxyExports } from "../../chunks/proxyExports.js";
|
|
6
6
|
import { createObservable, trackAccess } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
7
7
|
import { property, subclass } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
8
8
|
import Accessor from "@arcgis/core/core/Accessor.js";
|
|
@@ -4,6 +4,7 @@ import type { Evented } from "@arcgis/core/core/Evented.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Re-emit an event from the accessor instance on the component
|
|
6
6
|
*
|
|
7
|
+
* @deprecated import from "@arcgis/lumina-toolkit/reEmitEvent" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
7
8
|
* @param getEventedAccessor
|
|
8
9
|
* @param eventName
|
|
9
10
|
* @example
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated import from "@arcgis/lumina-toolkit/store" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
4
5
|
* @param initializer
|
|
5
|
-
* @see https://webgis.esri.com/references/lumina/
|
|
6
|
+
* @see https://webgis.esri.com/references/lumina/state-management#createstore
|
|
6
7
|
*/
|
|
7
8
|
export function createStore<T extends object>(initializer: T | (() => T)): Accessor & T;
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
|
-
* @deprecated
|
|
11
|
+
* @deprecated import from "@arcgis/lumina-toolkit/store" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
11
12
|
* @param defaultState
|
|
12
13
|
*/
|
|
13
14
|
export function createLegacyStore<T extends object>(defaultState: T | (() => T)): ObservableMap<T>;
|
|
14
15
|
|
|
15
|
-
/** @deprecated
|
|
16
|
+
/** @deprecated import from "@arcgis/lumina-toolkit/store" instead. Refactor using `@arcgis/codemod` NPM package. */
|
|
16
17
|
export type ObservableMap<T> = {
|
|
17
18
|
state: Accessor & T;
|
|
18
19
|
/** @deprecated Use state[propertyName] instead */
|
|
@@ -2,6 +2,7 @@ import type coreAccessor from "@arcgis/core/core/Accessor.js";
|
|
|
2
2
|
import type { GenericController } from "../GenericController.js";
|
|
3
3
|
import type { LitElement } from "../../LitElement.js";
|
|
4
4
|
|
|
5
|
+
/** @deprecated import from "@arcgis/lumina-toolkit/useAccessor" instead. Refactor using `@arcgis/codemod` NPM package. */
|
|
5
6
|
export type AccessorControllerRequires<Props, Accessor extends coreAccessor, OmitProps extends string = never> = LitElement
|
|
6
7
|
& Omit<Pick<Accessor, keyof Accessor & keyof Props>, AlwaysOmit | OmitProps>
|
|
7
8
|
& {
|
|
@@ -16,7 +17,7 @@ export type AccessorControllerRequires<Props, Accessor extends coreAccessor, Omi
|
|
|
16
17
|
* be "any". In such cases, all accessor properties are assumed to be required
|
|
17
18
|
* for binding. We add a few exceptions for well known built-in properties
|
|
18
19
|
*/
|
|
19
|
-
export type AlwaysOmit = "addHandles" | "declaredClass" | "destroyed" | "hasHandles" | "initialized" | "removeHandles" | "set" | "watch";
|
|
20
|
+
export type AlwaysOmit = typeof Symbol.dispose | "addHandles" | "declaredClass" | "destroyed" | "hasHandles" | "initialized" | "removeHandles" | "set" | "watch";
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Given an Accessor class, create a controller that will do two-way binding of
|
|
@@ -25,6 +26,7 @@ export type AlwaysOmit = "addHandles" | "declaredClass" | "destroyed" | "hasHand
|
|
|
25
26
|
* See https://webgis.esri.com/references/lumina/controllers/useAccessor for
|
|
26
27
|
* documentation & examples.
|
|
27
28
|
*
|
|
29
|
+
* @deprecated import from "@arcgis/lumina-toolkit/useAccessor" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
28
30
|
* @param createInstance
|
|
29
31
|
* @param options
|
|
30
32
|
*/
|
|
@@ -50,6 +52,7 @@ export interface MakeAccessorControllerOptions<OmitProps extends string> {
|
|
|
50
52
|
omitProps: OmitProps[];
|
|
51
53
|
}
|
|
52
54
|
|
|
55
|
+
/** @deprecated import from "@arcgis/lumina-toolkit/useAccessor" instead. Refactor using `@arcgis/codemod` NPM package. */
|
|
53
56
|
export class AccessorController<Props, Accessor extends coreAccessor, ExtraRequires = Record<never, never>> extends GenericController<Accessor, AccessorControllerRequires<Props, Accessor> & ExtraRequires> {
|
|
54
57
|
static devOnly$allowedPropNameMismatches?: ReadonlySet<string>;
|
|
55
58
|
constructor(component: AccessorControllerRequires<Props, Accessor> & ExtraRequires, createInstance: ((props?: Props) => Accessor) | (new (props?: Props) => Accessor));
|
|
@@ -77,6 +80,7 @@ export interface MinimalAccessorController extends Pick<AccessorController<never
|
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
/**
|
|
83
|
+
* @deprecated import from "@arcgis/lumina-toolkit/useAccessor" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
80
84
|
* @param component
|
|
81
85
|
* @param accessorControllerRef
|
|
82
86
|
* @param accessorControllerIndex
|
|
@@ -85,10 +89,14 @@ export interface MinimalAccessorController extends Pick<AccessorController<never
|
|
|
85
89
|
*/
|
|
86
90
|
export function makeBinderProxy(component: LitElement, accessorControllerRef: WeakRef<MinimalAccessorController & { constructor: MinimalAccessorController["constructor"] & { devOnly$allowedPropNameMismatches?: ReadonlySet<string>; }; }>, accessorControllerIndex: number, instance: coreAccessor, boundProperties: Map<string, string>): unknown;
|
|
87
91
|
|
|
88
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated import from "@arcgis/lumina-toolkit/useAccessor" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
94
|
+
* @param controller
|
|
95
|
+
*/
|
|
89
96
|
export function getAccessorControllerBoundProperties<Accessor extends coreAccessor>(controller: AccessorController<unknown, Accessor>): Map<string & keyof Accessor, string>;
|
|
90
97
|
|
|
91
98
|
/**
|
|
99
|
+
* @deprecated import from "@arcgis/lumina-toolkit/useAccessor" instead. Refactor using `@arcgis/codemod` NPM package.
|
|
92
100
|
* @param instance
|
|
93
101
|
* @param component
|
|
94
102
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as Controller, b as createEvent, a as trackKey, c as createEventFactory } from "../GenericController
|
|
2
|
-
import { G, p, t, d } from "../GenericController
|
|
3
|
-
import { s as setAmbientComponent, i as isPromise, a as setParentController, b as retrieveParentControllers, r as retrieveComponent } from "../ControllerInternals
|
|
4
|
-
import { c, d as d2, g, e } from "../ControllerInternals
|
|
5
|
-
import { p as proxyExports } from "../proxyExports
|
|
1
|
+
import { C as Controller, b as createEvent, a as trackKey, c as createEventFactory } from "../chunks/GenericController.js";
|
|
2
|
+
import { G, p, t, d } from "../chunks/GenericController.js";
|
|
3
|
+
import { s as setAmbientComponent, i as isPromise, a as setParentController, b as retrieveParentControllers, r as retrieveComponent } from "../chunks/ControllerInternals.js";
|
|
4
|
+
import { c, d as d2, g, e } from "../chunks/ControllerInternals.js";
|
|
5
|
+
import { p as proxyExports } from "../chunks/proxyExports.js";
|
|
6
6
|
import { isServer } from "lit";
|
|
7
7
|
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
8
8
|
import { observeAncestorsMutation, getElementAttribute } from "@arcgis/toolkit/dom";
|
|
9
9
|
import { getElementLocale, startLocaleObserver } from "@arcgis/toolkit/intl/dom";
|
|
10
|
-
import { s as setAutoDestroyOnDisconnectTimeout, a as autoDestroyOnDisconnectTimeout } from "../ControllerManager
|
|
10
|
+
import { s as setAutoDestroyOnDisconnectTimeout, a as autoDestroyOnDisconnectTimeout } from "../chunks/ControllerManager.js";
|
|
11
11
|
const makeController = (constructor) => proxy(void 0, constructor);
|
|
12
12
|
const makeGenericController = (constructor) => (component) => proxy(
|
|
13
13
|
component,
|
package/dist/hmrSupport.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ProxyComponent, n as noShadowRoot } from "./lazyLoad
|
|
1
|
+
import { P as ProxyComponent, n as noShadowRoot } from "./chunks/lazyLoad.js";
|
|
2
2
|
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
3
3
|
function handleHmrUpdate(newModules) {
|
|
4
4
|
newModules.forEach((newModule) => {
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { p as propertyTrackResolve } from "./GenericController
|
|
2
|
-
import { b } from "./GenericController
|
|
1
|
+
import { p as propertyTrackResolve } from "./chunks/GenericController.js";
|
|
2
|
+
import { b } from "./chunks/GenericController.js";
|
|
3
3
|
import { state } from "lit/decorators/state.js";
|
|
4
4
|
import { property as property$1 } from "lit/decorators/property.js";
|
|
5
|
-
import { e as emptyFunction, n as noShadowRoot, p as proxyFormMethodsToEvents, a as attachToAncestor } from "./lazyLoad
|
|
6
|
-
import { d, m } from "./lazyLoad
|
|
5
|
+
import { e as emptyFunction, n as noShadowRoot, p as proxyFormMethodsToEvents, a as attachToAncestor } from "./chunks/lazyLoad.js";
|
|
6
|
+
import { d, m } from "./chunks/lazyLoad.js";
|
|
7
7
|
import { isEsriInternalEnv, safeAsyncCall, safeCall } from "@arcgis/toolkit/error";
|
|
8
8
|
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
9
9
|
import { Deferred } from "@arcgis/toolkit/promise";
|
|
10
10
|
import { LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1, nothing as nothing$1, render } from "lit";
|
|
11
|
-
import { h as shouldBypassReadOnly, d as controllerSymbol } from "./ControllerInternals
|
|
12
|
-
import { C as ControllerManager, b as autoDestroyDisabledPropName } from "./ControllerManager
|
|
11
|
+
import { h as shouldBypassReadOnly, d as controllerSymbol } from "./chunks/ControllerInternals.js";
|
|
12
|
+
import { C as ControllerManager, b as autoDestroyDisabledPropName } from "./chunks/ControllerManager.js";
|
|
13
13
|
import { propertyFlagAttribute, propertyFlagUseDefault, propertyFlagNoAccessor, propertyFlagReadOnly, propertyFlagState, propertyFlagBoolean, propertyFlagNumber, propertyFlagReflect } from "./config.js";
|
|
14
14
|
import { classMap } from "lit/directives/class-map.js";
|
|
15
15
|
import { styleMap } from "lit/directives/style-map.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-next.0",
|
|
4
4
|
"description": "Runtime for WebGIS SDK web components",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@arcgis/toolkit": "~
|
|
39
|
+
"@arcgis/toolkit": "~6.0.0-next.0",
|
|
40
40
|
"csstype": "^3.1.3",
|
|
41
41
|
"tslib": "^2.8.1"
|
|
42
42
|
},
|
|
File without changes
|