@arcgis/lumina 4.33.0-next.66 → 4.33.0-next.67
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/hmrSupport.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as noShadowRoot, P as ProxyComponent } from "./utils-
|
|
1
|
+
import { n as noShadowRoot, P as ProxyComponent } from "./utils-GhKD5Lo-.js";
|
|
2
2
|
import { camelToKebab } from "@arcgis/components-utils";
|
|
3
3
|
function handleHmrUpdate(newModules) {
|
|
4
4
|
newModules.forEach((newModule) => {
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { ContextProvider, ContextConsumer } from "@lit/context";
|
|
|
3
3
|
import { isEsriInternalEnv, Deferred, camelToKebab } from "@arcgis/components-utils";
|
|
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
|
-
import { n as noShadowRoot, a as attachToAncestor } from "./utils-
|
|
7
|
-
import { m } from "./utils-
|
|
6
|
+
import { n as noShadowRoot, a as attachToAncestor } from "./utils-GhKD5Lo-.js";
|
|
7
|
+
import { m } from "./utils-GhKD5Lo-.js";
|
|
8
8
|
import { LitElement as LitElement$1, isServer } from "lit";
|
|
9
9
|
import { PropertyFlags } from "./config.js";
|
|
10
10
|
import { classMap } from "lit-html/directives/class-map.js";
|
|
@@ -3,7 +3,7 @@ import { lazyMetaSubItemJoiner, lazyMetaGroupJoiner, lazyMetaItemJoiner } from "
|
|
|
3
3
|
function devOnlyDetectIncorrectLazyUsages(LitClass) {
|
|
4
4
|
const genericPrototype = LitClass.prototype;
|
|
5
5
|
const descriptor = Object.getOwnPropertyDescriptor(genericPrototype, "innerText");
|
|
6
|
-
if (descriptor !== void 0 && descriptor.
|
|
6
|
+
if (descriptor !== void 0 && descriptor.set?.name === "setWrapper") {
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
9
|
const allowList = /* @__PURE__ */ new Set([
|
|
@@ -33,18 +33,37 @@ function devOnlyDetectIncorrectLazyUsages(LitClass) {
|
|
|
33
33
|
if (allowList.has(key)) {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
function validateUsage(...args) {
|
|
37
|
+
const isDynamicallyCreatedComponentInTest = this === this.el;
|
|
38
|
+
if (isDynamicallyCreatedComponentInTest) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
37
41
|
if (key === "hasAttribute" && args[0] === "defer-hydration") {
|
|
38
42
|
return false;
|
|
39
43
|
}
|
|
40
44
|
throw new Error(
|
|
41
45
|
`You should not be trying to access this.${key} directly as it won't work correctly in lazy-builds. Instead, ${customErrorMessages[key] ?? `use this.el.${key}`}`
|
|
42
46
|
);
|
|
43
|
-
}
|
|
47
|
+
}
|
|
44
48
|
if (typeof value.value === "function") {
|
|
45
|
-
genericPrototype[key] =
|
|
49
|
+
genericPrototype[key] = function functionWrapper(...args) {
|
|
50
|
+
return validateUsage.call(this, ...args) ?? value.value.call(this, ...args);
|
|
51
|
+
};
|
|
52
|
+
} else if (typeof value.get === "function") {
|
|
53
|
+
Object.defineProperty(genericPrototype, key, {
|
|
54
|
+
get() {
|
|
55
|
+
validateUsage.call(this);
|
|
56
|
+
return value.get.call(this);
|
|
57
|
+
},
|
|
58
|
+
set: typeof value.set === "function" ? function setWrapper(setValue) {
|
|
59
|
+
validateUsage.call(this);
|
|
60
|
+
value.set.call(this, setValue);
|
|
61
|
+
} : void 0
|
|
62
|
+
});
|
|
63
|
+
} else if (key === key.toUpperCase() && typeof value.value === "number") {
|
|
64
|
+
return;
|
|
46
65
|
} else {
|
|
47
|
-
|
|
66
|
+
throw new Error(`Unexpected value type for ${key}: ${value}`);
|
|
48
67
|
}
|
|
49
68
|
});
|
|
50
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.67",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@arcgis/components-controllers": "4.33.0-next.
|
|
24
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
23
|
+
"@arcgis/components-controllers": "4.33.0-next.67",
|
|
24
|
+
"@arcgis/components-utils": "4.33.0-next.67",
|
|
25
25
|
"@lit-labs/ssr": "^3.2.2",
|
|
26
26
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
27
27
|
"@lit/context": "^1.1.3",
|