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

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,5 +1,5 @@
1
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";
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-CWQrfEA8.js";
3
3
  import { nothing } from "lit";
4
4
  import { Deferred } from "@arcgis/toolkit/promise";
5
5
  const trackPropertyKey = (object, onResolved, defaultValue) => {
@@ -20,15 +20,14 @@ const retrieveComponent = (name) => {
20
20
  "- You might have multiple versions of ",
21
21
  "@arcgis/lumina package installed\n",
22
22
  ...isEsriInternalEnv() ? [
23
- "- You tried to create controller outside the component. If so, ",
24
- "please wrap your controller definition in an arrow function (like",
25
- "`const myController = ()=>makeController(...);`) and call that",
26
- "function inside the component (`my = myController();`), or ",
27
- "define your controller using makeGenericController/GenericController ",
28
- "instead.\n",
23
+ "- You tried to create controller outside the component (in ",
24
+ "non-component class or in global scope).",
25
+ "- You accidentally defined the controller using const a = ",
26
+ "makeController(...); rather than const a = () => ",
27
+ "makeController(...);",
29
28
  "- You tried to create a controller inside an async function. ",
30
- "This is allowed without calling controller.use(). Make sure you ",
31
- "use it like `await controller.use(useController())`."
29
+ "This is not allowed without calling controller.use(). Make ",
30
+ "sure you use it like `await controller.use(useController())`."
32
31
  ] : []
33
32
  ].join("")
34
33
  );
package/dist/context.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ContextProvider, ContextConsumer } from "@lit/context";
2
- import { r as retrieveComponent } from "./ControllerInternals-r9fS4dH4.js";
2
+ import { r as retrieveComponent } from "./ControllerInternals-CWQrfEA8.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-r9fS4dH4.js";
2
+ import { r as retrieveComponent } from "../../ControllerInternals-CWQrfEA8.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-BI06tGpu.js";
5
- import { p as proxyExports } from "../../proxyExports-BD4zfIr_.js";
4
+ import { a as createEventFactory, G as GenericController, d as trackPropKey, t as trackKey } from "../../Controller-ik0igmGm.js";
5
+ import { p as proxyExports } from "../../proxyExports-Ch_IR1V2.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,8 +1,8 @@
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";
1
+ import { C as Controller, t as trackKey, a as createEventFactory } from "../Controller-ik0igmGm.js";
2
+ import { G, k, d, b } from "../Controller-ik0igmGm.js";
3
+ import { s as setAmbientComponent, i as isPromise, b as setParentController, d as retrieveParentControllers, r as retrieveComponent } from "../ControllerInternals-CWQrfEA8.js";
4
+ import { f, e, c, h, g } from "../ControllerInternals-CWQrfEA8.js";
5
+ import { p as proxyExports } from "../proxyExports-Ch_IR1V2.js";
6
6
  import { isServer } from "lit";
7
7
  import { isEsriInternalEnv } from "@arcgis/toolkit/error";
8
8
  import { observeAncestorsMutation, getElementAttribute } from "@arcgis/toolkit/dom";
@@ -1,4 +1,4 @@
1
- import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-DLnDqxu-.js";
1
+ import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-B6Te7FRR.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,14 +1,14 @@
1
- import { G as GenericController, k as keyTrackResolve } from "./Controller-BI06tGpu.js";
2
- import { c } from "./Controller-BI06tGpu.js";
1
+ import { G as GenericController, k as keyTrackResolve } from "./Controller-ik0igmGm.js";
2
+ import { c } from "./Controller-ik0igmGm.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-DLnDqxu-.js";
6
- import { d, m } from "./lazyLoad-DLnDqxu-.js";
5
+ import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-B6Te7FRR.js";
6
+ import { d, m } from "./lazyLoad-B6Te7FRR.js";
7
7
  import { isEsriInternalEnv, safeCall, safeAsyncCall } from "@arcgis/toolkit/error";
8
8
  import { camelToKebab } from "@arcgis/toolkit/string";
9
9
  import { devToolsAwareTimeout, Deferred } from "@arcgis/toolkit/promise";
10
10
  import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1 } from "lit";
11
- import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-r9fS4dH4.js";
11
+ import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-CWQrfEA8.js";
12
12
  import { propertyFlagAttribute, propertyFlagNoAccessor, propertyFlagReadOnly, propertyFlagState, propertyFlagBoolean, propertyFlagNumber, propertyFlagReflect } from "./config.js";
13
13
  import { classMap } from "lit-html/directives/class-map.js";
14
14
  import { styleMap } from "lit/directives/style-map.js";
@@ -278,7 +278,10 @@ class ProxyComponent extends HtmlElement {
278
278
  this.#pendingAttributes.push(name);
279
279
  }
280
280
  if (process.env.NODE_ENV !== "production" && isEsriInternalEnv()) {
281
- this.devOnly$hmrSetAttributes.add(name);
281
+ const isReflecting = this.#litElement?.["__reflectingProperty"] === name;
282
+ if (!isReflecting) {
283
+ this.devOnly$hmrSetAttributes.add(name);
284
+ }
282
285
  }
283
286
  }
284
287
  connectedCallback() {
@@ -1,5 +1,5 @@
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";
1
+ import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-CWQrfEA8.js";
2
+ import { t as trackKey } from "./Controller-ik0igmGm.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.61",
3
+ "version": "4.34.0-next.63",
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/toolkit": "4.34.0-next.61",
25
+ "@arcgis/toolkit": "4.34.0-next.63",
26
26
  "csstype": "^3.1.3",
27
27
  "tslib": "^2.8.1"
28
28
  },