@arcgis/lumina 4.33.0-next.127 → 4.33.0-next.128

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,7 +1,6 @@
1
1
  import { isEsriInternalEnv, safeCall, Deferred, safeAsyncCall } from "@arcgis/components-utils";
2
2
  import { nothing } from "lit";
3
3
  const controllerSymbol = Symbol.for("controller");
4
- const queueMicroTask = queueMicrotask;
5
4
  const isController = (value) => typeof value === "object" && value !== null && (controllerSymbol in value || "hostConnected" in value || "hostDisconnected" in value || "hostUpdate" in value || "hostUpdated" in value);
6
5
  const isPromise = (arg) => typeof arg?.then === "function";
7
6
  const getControllersCount = (component) => component.M.length;
@@ -11,7 +10,7 @@ const setAmbientComponent = (component) => {
11
10
  return;
12
11
  }
13
12
  ambientComponent = component;
14
- queueMicroTask(() => ambientComponent === component ? ambientComponent = void 0 : 0);
13
+ queueMicrotask(() => ambientComponent === component ? ambientComponent = void 0 : 0);
15
14
  };
16
15
  const retrieveComponent = (name) => {
17
16
  if (process.env.NODE_ENV !== "production" && ambientComponent === void 0) {
@@ -45,7 +44,7 @@ const setParentController = (controller) => {
45
44
  }
46
45
  const index = ambientControllers.indexOf(controller);
47
46
  ambientControllers = index === -1 ? [...ambientControllers, controller] : ambientControllers.slice(0, index + 1);
48
- queueMicroTask(() => ambientControllers = []);
47
+ queueMicrotask(() => ambientControllers = []);
49
48
  };
50
49
  const retrieveParentControllers = () => ambientControllers;
51
50
  let ambientChildController;
@@ -54,7 +53,7 @@ const setAmbientChildController = (controller) => {
54
53
  return;
55
54
  }
56
55
  ambientChildController = controller;
57
- queueMicroTask(() => ambientChildController === controller ? ambientChildController = void 0 : 0);
56
+ queueMicrotask(() => ambientChildController === controller ? ambientChildController = void 0 : 0);
58
57
  };
59
58
  const retrieveAmbientChildController = () => {
60
59
  const controller = ambientChildController;
@@ -121,7 +120,7 @@ const trackPropertyKey = (object, onResolved, defaultValue) => {
121
120
  const keys = Object.keys(object);
122
121
  const keyCount = keys.length;
123
122
  if (keyTrackMap === void 0) {
124
- queueMicroTask(keyTrackResolve);
123
+ queueMicrotask(keyTrackResolve);
125
124
  }
126
125
  keyTrackMap ??= /* @__PURE__ */ new Map();
127
126
  let pendingTrackers = keyTrackMap.get(object);
@@ -161,7 +160,7 @@ const trackPropKey = (component, onResolved, defaultValue) => {
161
160
  manager.S(void 0, void 0);
162
161
  }
163
162
  if (manager.T.length === 0) {
164
- queueMicroTask(() => manager.S(void 0, void 0));
163
+ queueMicrotask(() => manager.S(void 0, void 0));
165
164
  }
166
165
  manager.V = defaultValue;
167
166
  manager.T.push((key, value) => safeCall(onResolved, void 0, defaultValue === value ? key : void 0));
@@ -281,7 +280,7 @@ class Controller {
281
280
  const isInControllerManager = manager === void 0;
282
281
  if (!isInControllerManager) {
283
282
  setParentController(that);
284
- queueMicroTask(() => that.catchUpLifecycle());
283
+ queueMicrotask(() => that.catchUpLifecycle());
285
284
  }
286
285
  }
287
286
  #hostConnected;
@@ -582,7 +581,6 @@ export {
582
581
  isController as m,
583
582
  getControllersCount as n,
584
583
  setAmbientChildController as o,
585
- queueMicroTask as q,
586
584
  retrieveComponent as r,
587
585
  setAmbientComponent as s,
588
586
  trackKey as t
@@ -1,5 +1,5 @@
1
- import { G as GenericController, l as trackPropKey, t as trackKey, r as retrieveComponent, f as createEventFactory } from "../../Controller-B3mB4uaz.js";
2
- import { p as proxyExports } from "../../proxyExports-DQobuu44.js";
1
+ import { G as GenericController, l as trackPropKey, t as trackKey, r as retrieveComponent, f as createEventFactory } from "../../Controller-BQOv8BAL.js";
2
+ import { p as proxyExports } from "../../proxyExports-Cdzj7WL_.js";
3
3
  import { isEsriInternalEnv } from "@arcgis/components-utils";
4
4
  import { watch, on } from "@arcgis/core/core/reactiveUtils.js";
5
5
  import { createObservable, createTrackingTarget, runTracked, trackAccess } from "@arcgis/core/applications/Components/reactiveUtils.js";
@@ -1,6 +1,6 @@
1
- import { C as Controller, s as setAmbientComponent, i as isPromise, q as queueMicroTask, d as setParentController, e as retrieveParentControllers, t as trackKey, r as retrieveComponent, f as createEventFactory } from "../Controller-B3mB4uaz.js";
2
- import { G, h, g, c, n, m, k, l, j } from "../Controller-B3mB4uaz.js";
3
- import { p as proxyExports } from "../proxyExports-DQobuu44.js";
1
+ import { C as Controller, s as setAmbientComponent, i as isPromise, d as setParentController, e as retrieveParentControllers, t as trackKey, r as retrieveComponent, f as createEventFactory } from "../Controller-BQOv8BAL.js";
2
+ import { G, h, g, c, n, m, k, l, j } from "../Controller-BQOv8BAL.js";
3
+ import { p as proxyExports } from "../proxyExports-Cdzj7WL_.js";
4
4
  import { isServer } from "lit";
5
5
  import { observeAncestorsMutation, isEsriInternalEnv, getElementAttribute, getElementLocales, startLocaleObserver } from "@arcgis/components-utils";
6
6
  const makeController = (constructor) => proxy(void 0, constructor);
@@ -37,7 +37,7 @@ class FunctionalController extends Controller {
37
37
  if (!constructorChangedExports || value !== void 0) {
38
38
  this.exports = value;
39
39
  }
40
- queueMicroTask(() => super.catchUpLifecycle());
40
+ queueMicrotask(() => super.catchUpLifecycle());
41
41
  }
42
42
  } catch (error) {
43
43
  this.P.reject(error);
@@ -1,6 +1,5 @@
1
1
  import { LitElement } from '../LitElement';
2
2
  import { ControllerLifecycleMethods } from './types';
3
- export declare const queueMicroTask: typeof queueMicrotask;
4
3
  export declare const isController: (value: unknown) => value is ControllerLifecycleMethods;
5
4
  /**
6
5
  * Checks if the argument is a promise by checking if it has a `then` method.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ContextProvider, ContextConsumer } from "@lit/context";
2
- import { r as retrieveComponent, G as GenericController, k as keyTrackResolve, q as queueMicroTask, s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./Controller-B3mB4uaz.js";
3
- import { b } from "./Controller-B3mB4uaz.js";
2
+ import { r as retrieveComponent, G as GenericController, k as keyTrackResolve, s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./Controller-BQOv8BAL.js";
3
+ import { b } from "./Controller-BQOv8BAL.js";
4
4
  import { state } from "@lit/reactive-element/decorators/state.js";
5
5
  import { property as property$1 } from "@lit/reactive-element/decorators/property.js";
6
6
  import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-ByH-FaBP.js";
@@ -98,7 +98,7 @@ class ControllerManager extends GenericController {
98
98
  this.Q = void 0;
99
99
  }
100
100
  });
101
- queueMicroTask(() => this.R = true);
101
+ queueMicrotask(() => this.R = true);
102
102
  setAmbientComponent(component);
103
103
  }
104
104
  #autoDestroyTimeout;
@@ -359,7 +359,7 @@ class LitElement extends LitElement$1 {
359
359
  const isFirstCall = !this.manager.connectedCalled;
360
360
  super.connectedCallback();
361
361
  if (isFirstCall) {
362
- queueMicroTask(
362
+ queueMicrotask(
363
363
  // eslint-disable-next-line @typescript-eslint/promise-function-async, @typescript-eslint/no-misused-promises
364
364
  () => this.#load().catch((error) => {
365
365
  this.#postLoadedDeferred.reject(error);
@@ -1,4 +1,4 @@
1
- import { d as setParentController, e as retrieveParentControllers, o as setAmbientChildController, t as trackKey, h as bypassReadOnly } from "./Controller-B3mB4uaz.js";
1
+ import { d as setParentController, e as retrieveParentControllers, o as setAmbientChildController, t as trackKey, h as bypassReadOnly } from "./Controller-BQOv8BAL.js";
2
2
  const proxyExports = (Class) => (...args) => {
3
3
  const ambientControllers = retrieveParentControllers();
4
4
  const instance = new Class(...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.33.0-next.127",
3
+ "version": "4.33.0-next.128",
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.33.0-next.127",
25
+ "@arcgis/components-utils": "4.33.0-next.128",
26
26
  "@lit-labs/ssr": "^3.2.2",
27
27
  "@lit-labs/ssr-client": "^1.1.7",
28
28
  "@lit/context": "^1.1.5",