@arcgis/lumina 4.34.0-next.59 → 4.34.0-next.61

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.
@@ -1,6 +1,7 @@
1
- import { safeCall, isEsriInternalEnv, Deferred, safeAsyncCall } from "@arcgis/components-utils";
2
- import { r as retrieveComponent, d as retrieveParentControllers, b as setParentController, s as setAmbientComponent, u as use, k as useRef, l as useRefSync, c as controllerSymbol } from "./ControllerInternals-DOZNgCJl.js";
1
+ import { safeCall, isEsriInternalEnv, safeAsyncCall } from "@arcgis/toolkit/error";
2
+ import { r as retrieveComponent, d as retrieveParentControllers, b as setParentController, s as setAmbientComponent, u as use, k as useRef, l as useRefSync, c as controllerSymbol } from "./ControllerInternals-r9fS4dH4.js";
3
3
  import { nothing } from "lit";
4
+ import { Deferred } from "@arcgis/toolkit/promise";
4
5
  const trackPropertyKey = (object, onResolved, defaultValue) => {
5
6
  const keys = Object.keys(object);
6
7
  const keyCount = keys.length;
@@ -1,4 +1,4 @@
1
- import { isEsriInternalEnv } from "@arcgis/components-utils";
1
+ import { isEsriInternalEnv } from "@arcgis/toolkit/error";
2
2
  const controllerSymbol = Symbol.for("controller");
3
3
  const isController = (value) => typeof value === "object" && value !== null && (controllerSymbol in value || "hostConnected" in value || "hostDisconnected" in value || "hostUpdate" in value || "hostUpdated" in value);
4
4
  const isPromise = (arg) => typeof arg?.then === "function";
package/dist/context.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ContextProvider, ContextConsumer } from "@lit/context";
2
- import { r as retrieveComponent } from "./ControllerInternals-DOZNgCJl.js";
2
+ import { r as retrieveComponent } from "./ControllerInternals-r9fS4dH4.js";
3
3
  const useContextProvider = (options) => {
4
4
  const component = retrieveComponent();
5
5
  const controller = new ContextProvider(component.el, options);
@@ -1,4 +1,4 @@
1
- import { Deferred } from '@arcgis/components-utils';
1
+ import { Deferred } from '@arcgis/toolkit/promise';
2
2
  import { BaseController, ControllerLifecycleMethods, controllerSymbol } from './types';
3
3
  import { use, useRef, useRefSync } from './ControllerInternals';
4
4
  import { PropertyValues } from 'lit';
@@ -1,8 +1,8 @@
1
- import { isEsriInternalEnv } from "@arcgis/components-utils";
2
- import { r as retrieveComponent } from "../../ControllerInternals-DOZNgCJl.js";
1
+ import { isEsriInternalEnv } from "@arcgis/toolkit/error";
2
+ import { r as retrieveComponent } from "../../ControllerInternals-r9fS4dH4.js";
3
3
  import { on, watch } from "@arcgis/core/core/reactiveUtils.js";
4
- import { a as createEventFactory, G as GenericController, d as trackPropKey, t as trackKey } from "../../Controller-6vd9TSNE.js";
5
- import { p as proxyExports } from "../../proxyExports-BgcDxXBO.js";
4
+ import { a as createEventFactory, G as GenericController, d as trackPropKey, t as trackKey } from "../../Controller-BI06tGpu.js";
5
+ import { p as proxyExports } from "../../proxyExports-BD4zfIr_.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";
@@ -1,10 +1,12 @@
1
- import { C as Controller, t as trackKey, a as createEventFactory } from "../Controller-6vd9TSNE.js";
2
- import { G, k, d, b } from "../Controller-6vd9TSNE.js";
3
- import { s as setAmbientComponent, i as isPromise, b as setParentController, d as retrieveParentControllers, r as retrieveComponent } from "../ControllerInternals-DOZNgCJl.js";
4
- import { f, e, c, h, g } from "../ControllerInternals-DOZNgCJl.js";
5
- import { p as proxyExports } from "../proxyExports-BgcDxXBO.js";
1
+ import { C as Controller, t as trackKey, a as createEventFactory } from "../Controller-BI06tGpu.js";
2
+ import { G, k, d, b } from "../Controller-BI06tGpu.js";
3
+ import { s as setAmbientComponent, i as isPromise, b as setParentController, d as retrieveParentControllers, r as retrieveComponent } from "../ControllerInternals-r9fS4dH4.js";
4
+ import { f, e, c, h, g } from "../ControllerInternals-r9fS4dH4.js";
5
+ import { p as proxyExports } from "../proxyExports-BD4zfIr_.js";
6
6
  import { isServer } from "lit";
7
- import { observeAncestorsMutation, isEsriInternalEnv, getElementAttribute, getElementLocales, startLocaleObserver } from "@arcgis/components-utils";
7
+ import { isEsriInternalEnv } from "@arcgis/toolkit/error";
8
+ import { observeAncestorsMutation, getElementAttribute } from "@arcgis/toolkit/dom";
9
+ import { getElementLocale, startLocaleObserver } from "@arcgis/toolkit/intl";
8
10
  const makeController = (constructor) => proxy(void 0, constructor);
9
11
  const makeGenericController = (constructor) => (component) => proxy(
10
12
  component,
@@ -141,7 +143,7 @@ const useDirection = () => makeController((component, controller) => {
141
143
  const makeT9nController = (getAssetPath) => (options = {}) => (
142
144
  // eslint-disable-next-line @typescript-eslint/promise-function-async
143
145
  makeController((component, controller) => {
144
- const locale = getElementLocales(component.el);
146
+ const locale = getElementLocale(component.el);
145
147
  const pending = { ["_lang"]: locale.lang, ["_t9nLocale"]: locale.t9nLocale, ["_loading"]: true };
146
148
  const componentWithOverrides = component;
147
149
  controller.onLifecycle(
@@ -1,4 +1,4 @@
1
- import { IHandle } from '@arcgis/components-utils';
1
+ import { IHandle } from '@arcgis/toolkit/type';
2
2
  import { ReactiveControllerHost, ReactiveController, PropertyDeclaration, PropertyValues } from 'lit';
3
3
  import { LitElement } from '../LitElement';
4
4
  export type TrackKeyResolution = {
@@ -1,7 +1,7 @@
1
- import { GenericT9nStrings, LocaleObserver } from '@arcgis/components-utils';
1
+ import { GenericT9nStrings, LocaleObserverResult } from '@arcgis/toolkit/intl';
2
2
  export type T9nMeta<T9nStrings extends GenericT9nStrings> = {
3
- _lang: LocaleObserver["lang"];
4
- _t9nLocale: LocaleObserver["t9nLocale"];
3
+ _lang: LocaleObserverResult["lang"];
4
+ _t9nLocale: LocaleObserverResult["t9nLocale"];
5
5
  _loading: boolean;
6
6
  /**
7
7
  * The "_overrides" property won't actually exist at runtime and exists only
@@ -1,5 +1,5 @@
1
- import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-DUvrNd2L.js";
2
- import { camelToKebab } from "@arcgis/components-utils";
1
+ import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-DLnDqxu-.js";
2
+ import { camelToKebab } from "@arcgis/toolkit/string";
3
3
  function handleHmrUpdate(newModules) {
4
4
  newModules.forEach((newModule) => {
5
5
  if (newModule === void 0) {
package/dist/index.js CHANGED
@@ -1,12 +1,14 @@
1
- import { G as GenericController, k as keyTrackResolve } from "./Controller-6vd9TSNE.js";
2
- import { c } from "./Controller-6vd9TSNE.js";
1
+ import { G as GenericController, k as keyTrackResolve } from "./Controller-BI06tGpu.js";
2
+ import { c } from "./Controller-BI06tGpu.js";
3
3
  import { state } from "@lit/reactive-element/decorators/state.js";
4
4
  import { property as property$1 } from "@lit/reactive-element/decorators/property.js";
5
- import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-DUvrNd2L.js";
6
- import { d, m } from "./lazyLoad-DUvrNd2L.js";
7
- import { isEsriInternalEnv, safeCall, devToolsAwareTimeout, Deferred, camelToKebab, safeAsyncCall } from "@arcgis/components-utils";
5
+ import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-DLnDqxu-.js";
6
+ import { d, m } from "./lazyLoad-DLnDqxu-.js";
7
+ import { isEsriInternalEnv, safeCall, safeAsyncCall } from "@arcgis/toolkit/error";
8
+ import { camelToKebab } from "@arcgis/toolkit/string";
9
+ import { devToolsAwareTimeout, Deferred } from "@arcgis/toolkit/promise";
8
10
  import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1 } from "lit";
9
- import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-DOZNgCJl.js";
11
+ import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-r9fS4dH4.js";
10
12
  import { propertyFlagAttribute, propertyFlagNoAccessor, propertyFlagReadOnly, propertyFlagState, propertyFlagBoolean, propertyFlagNumber, propertyFlagReflect } from "./config.js";
11
13
  import { classMap } from "lit-html/directives/class-map.js";
12
14
  import { styleMap } from "lit/directives/style-map.js";
@@ -1,4 +1,4 @@
1
- import { Nil } from '@arcgis/components-utils';
1
+ import { nil } from '@arcgis/toolkit/type';
2
2
  import { Properties as CssProperties } from 'csstype';
3
3
  import { ClassInfo } from 'lit-html/directives/class-map.js';
4
4
  import { DirectiveResult } from 'lit/directive.js';
@@ -30,7 +30,7 @@ import { noChange } from 'lit';
30
30
  *
31
31
  * @private
32
32
  */
33
- export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => DirectiveResult<typeof ClassMapDirective> | Nil | string;
33
+ export declare const safeClassMap: (parameters: ClassInfo | nil | string) => DirectiveResult<typeof ClassMapDirective> | nil | string;
34
34
  /**
35
35
  * You likely won't have to import this directly. It will be added during
36
36
  * _JSX to lit-html_ conversion.
@@ -55,7 +55,7 @@ export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => Dir
55
55
  *
56
56
  * @private
57
57
  */
58
- export declare const safeStyleMap: (parameters: CssProperties | Nil | string) => DirectiveResult<typeof StyleMapDirective> | Nil | string;
58
+ export declare const safeStyleMap: (parameters: CssProperties | nil | string) => DirectiveResult<typeof StyleMapDirective> | nil | string;
59
59
  declare class DeferLoad extends Directive {
60
60
  update(part: ElementPart): void;
61
61
  render(): typeof noChange;
@@ -1,4 +1,6 @@
1
- import { isEsriInternalEnv, Deferred, camelToKebab } from "@arcgis/components-utils";
1
+ import { isEsriInternalEnv } from "@arcgis/toolkit/error";
2
+ import { camelToKebab } from "@arcgis/toolkit/string";
3
+ import { Deferred } from "@arcgis/toolkit/promise";
2
4
  import { lazyMetaGroupJoiner, lazyMetaItemJoiner, lazyMetaSubItemJoiner } from "./config.js";
3
5
  function devOnlyDetectIncorrectLazyUsages(LitClass) {
4
6
  const genericPrototype = LitClass.prototype;
@@ -1,4 +1,4 @@
1
- import { Deferred } from '@arcgis/components-utils';
1
+ import { Deferred } from '@arcgis/toolkit/promise';
2
2
  import { LitElement } from './LitElement';
3
3
  import { Runtime } from './makeRuntime';
4
4
  import { ControllerManager } from './controllers/ControllerManager';
@@ -1,5 +1,5 @@
1
- import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-DOZNgCJl.js";
2
- import { t as trackKey } from "./Controller-6vd9TSNE.js";
1
+ import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-r9fS4dH4.js";
2
+ import { t as trackKey } from "./Controller-BI06tGpu.js";
3
3
  const proxyExports = (Class) => (...args) => {
4
4
  const ambientControllers = retrieveParentControllers();
5
5
  const instance = new Class(...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.34.0-next.59",
3
+ "version": "4.34.0-next.61",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "dependencies": {
25
- "@arcgis/components-utils": "4.34.0-next.59",
25
+ "@arcgis/toolkit": "4.34.0-next.61",
26
26
  "csstype": "^3.1.3",
27
27
  "tslib": "^2.8.1"
28
28
  },