@arcgis/lumina 5.2.0-next.89 → 5.2.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.
@@ -1,4 +1,4 @@
1
- import { P as ProxyComponent, n as noShadowRoot } from "./lazyLoad-BpMEtKby.js";
1
+ import { P as ProxyComponent, n as noShadowRoot } from "./lazyLoad-ki2r1z-R.js";
2
2
  import { camelToKebab } from "@arcgis/toolkit/string";
3
3
  function handleHmrUpdate(newModules) {
4
4
  newModules.forEach((newModule) => {
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ import { p as propertyTrackResolve } from "./GenericController-Ko6PTuJs.js";
2
2
  import { b } from "./GenericController-Ko6PTuJs.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-BpMEtKby.js";
6
- import { d, m } from "./lazyLoad-BpMEtKby.js";
5
+ import { e as emptyFunction, n as noShadowRoot, p as proxyFormMethodsToEvents, a as attachToAncestor } from "./lazyLoad-ki2r1z-R.js";
6
+ import { d, m } from "./lazyLoad-ki2r1z-R.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";
@@ -408,9 +408,15 @@ const patchLitElement = (parentClass) => {
408
408
  const alreadyPatched = Object.hasOwn(litElementPrototype, "isConnected");
409
409
  if (!alreadyPatched) {
410
410
  litElementPrototype.setAttribute = function(qualifiedName, value) {
411
+ if (process.env.NODE_ENV !== "production" && isStaleHmrComponent(this)) {
412
+ return;
413
+ }
411
414
  elementPrototype.setAttribute.call(this.el, qualifiedName, value);
412
415
  };
413
416
  litElementPrototype.removeAttribute = function(qualifiedName) {
417
+ if (process.env.NODE_ENV !== "production" && isStaleHmrComponent(this)) {
418
+ return;
419
+ }
414
420
  elementPrototype.removeAttribute.call(this.el, qualifiedName);
415
421
  };
416
422
  litElementPrototype.hasAttribute = function(qualifiedName) {
@@ -426,6 +432,10 @@ const patchLitElement = (parentClass) => {
426
432
  devOnlyDetectIncorrectLazyUsages(parentClass);
427
433
  }
428
434
  };
435
+ function isStaleHmrComponent(component) {
436
+ const currentComponent = "$component" in component.el ? component.el.$component : void 0;
437
+ return isEsriInternalEnv() && currentComponent !== void 0 && currentComponent !== component;
438
+ }
429
439
  export {
430
440
  ProxyComponent as P,
431
441
  attachToAncestor as a,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "5.2.0-next.89",
3
+ "version": "5.2.0-next.90",
4
4
  "description": "Runtime for WebGIS SDK web components",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "license": "SEE LICENSE IN LICENSE.md",
35
35
  "dependencies": {
36
- "@arcgis/toolkit": "~5.2.0-next.89",
36
+ "@arcgis/toolkit": "~5.2.0-next.90",
37
37
  "csstype": "^3.1.3",
38
38
  "tslib": "^2.8.1"
39
39
  },