@arcgis/lumina-compiler 4.34.0-next.2 → 4.34.0-next.21
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/index.js +45 -34
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2584,11 +2584,13 @@ class Je extends gs {
|
|
|
2584
2584
|
docsTags: [
|
|
2585
2585
|
{
|
|
2586
2586
|
name: "example",
|
|
2587
|
-
text:
|
|
2587
|
+
text: `\`\`\`js
|
|
2588
|
+
const ${c} = document.createElement("${s.tagName}");
|
|
2588
2589
|
document.body.append(${c});
|
|
2589
2590
|
${c}.componentOnReady().then(() => {
|
|
2590
2591
|
console.log("${s.tagName} is ready to go!");
|
|
2591
|
-
})
|
|
2592
|
+
});
|
|
2593
|
+
\`\`\``
|
|
2592
2594
|
}
|
|
2593
2595
|
]
|
|
2594
2596
|
});
|
|
@@ -4968,7 +4970,7 @@ function Kc(e, t) {
|
|
|
4968
4970
|
// Start loading from reactiveUtils the modules we need to enable integration.
|
|
4969
4971
|
// Store the promise on the runtime object so that the lazy loader awaits
|
|
4970
4972
|
// this before beginning hydration.
|
|
4971
|
-
'r.p=a.t(m=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")}',
|
|
4973
|
+
'r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")}',
|
|
4972
4974
|
// We use `a` variable as a shorter alias to `$arcgis` to save bytes.
|
|
4973
4975
|
// We pass runtime as an argument rather than access it directly inside the
|
|
4974
4976
|
// closure to avoid possible collisions (in case runtime variable was
|
|
@@ -5208,18 +5210,21 @@ async function Te(e) {
|
|
|
5208
5210
|
return e._loadersCache ??= Zc(e), await e._loadersCache;
|
|
5209
5211
|
}
|
|
5210
5212
|
async function Zc(e) {
|
|
5211
|
-
const t = e.viteCommand === "build" ? "cdn" : "lazyNpm", i = e.viteConfig.base
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
)
|
|
5215
|
-
|
|
5213
|
+
const t = e.viteCommand === "build" ? "cdn" : "lazyNpm", i = e.viteConfig.base;
|
|
5214
|
+
let n = 0;
|
|
5215
|
+
const s = async (l) => (await Promise.all(
|
|
5216
|
+
l.map(async (d) => {
|
|
5217
|
+
const p = n++;
|
|
5218
|
+
return d.type === "stencil" ? await Vc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Xc(i, d, t, p) : void 0;
|
|
5219
|
+
})
|
|
5220
|
+
)).filter(j).flat(), r = await Promise.all([
|
|
5216
5221
|
// This may contain an import map so must be first
|
|
5217
5222
|
xc(i, t),
|
|
5218
|
-
ve.then(
|
|
5219
|
-
Qn(e).then(
|
|
5220
|
-
]),
|
|
5223
|
+
ve.then(s),
|
|
5224
|
+
Qn(e).then(s)
|
|
5225
|
+
]), a = u.join(e.dir.src, "loader.ts");
|
|
5221
5226
|
return [
|
|
5222
|
-
...
|
|
5227
|
+
...r.flat(),
|
|
5223
5228
|
{
|
|
5224
5229
|
optimizableImports: [
|
|
5225
5230
|
/**
|
|
@@ -5228,7 +5233,7 @@ async function Zc(e) {
|
|
|
5228
5233
|
*/
|
|
5229
5234
|
],
|
|
5230
5235
|
javascriptCode: [
|
|
5231
|
-
`import { defineCustomElements } from "${
|
|
5236
|
+
`import { defineCustomElements } from "${a}";`,
|
|
5232
5237
|
"globalThis.devOnly$ownTagNames = new Set();",
|
|
5233
5238
|
`defineCustomElements(${t === "cdn" ? `{resourcesUrl:"./${e.options.build?.cdn?.namespace ?? Dt}/"}` : ""});`
|
|
5234
5239
|
]
|
|
@@ -5711,19 +5716,21 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
|
|
|
5711
5716
|
* used by a package from outside the monorepo (eg @arcgis/lumina is used
|
|
5712
5717
|
* inside the package, and by Calcite outside the package).
|
|
5713
5718
|
*/
|
|
5714
|
-
exclude:
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5719
|
+
exclude: [
|
|
5720
|
+
...S ? [
|
|
5721
|
+
"@arcgis/lumina",
|
|
5722
|
+
"@arcgis/components-controllers",
|
|
5723
|
+
"@arcgis/components-utils",
|
|
5724
|
+
"@arcgis/core-adapter",
|
|
5725
|
+
"@arcgis/map-components",
|
|
5726
|
+
"@arcgis/common-components",
|
|
5727
|
+
"@arcgis/charts-components",
|
|
5728
|
+
"@arcgis/embeddable-components",
|
|
5729
|
+
"@arcgis/imagery-components",
|
|
5730
|
+
"@arcgis/map-config-components",
|
|
5731
|
+
"@arcgis/portal-components"
|
|
5732
|
+
] : [],
|
|
5733
|
+
// By excluding Lumina above, we also disable discovery of packages
|
|
5727
5734
|
// used by it (Lit), which are then discovered at runtime and cause
|
|
5728
5735
|
// dev-server reload. We could manually include all Lit packages,
|
|
5729
5736
|
// but because Lit has so many entry points and barrel files,
|
|
@@ -5731,6 +5738,12 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
|
|
|
5731
5738
|
// rather than decrease them (620 vs 621)), defeating the point of
|
|
5732
5739
|
// dependency optimization. Add to it that debugging is easier for
|
|
5733
5740
|
// non-optimized dependencies, so we exclude it.
|
|
5741
|
+
//
|
|
5742
|
+
// For users outside the monorepo, we choose to exclude Lit for similar
|
|
5743
|
+
// reasons - the benefits of pre-bundling are nil. Otherwise, we would
|
|
5744
|
+
// have to explicitly include the Lit imports that are added dynamically
|
|
5745
|
+
// by the JSX to lit-html transformation
|
|
5746
|
+
//
|
|
5734
5747
|
// Even though lit/ is a barrel package, we still need to explicitly
|
|
5735
5748
|
// exclude the sub-packages to prevent them from being optimized at
|
|
5736
5749
|
// runtime.
|
|
@@ -5739,7 +5752,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
|
|
|
5739
5752
|
"lit-element",
|
|
5740
5753
|
"@lit/reactive-element",
|
|
5741
5754
|
"@lit/context"
|
|
5742
|
-
]
|
|
5755
|
+
]
|
|
5743
5756
|
};
|
|
5744
5757
|
if (typeof l.setupFiles == "string" ? l.setupFiles = [...lt, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...lt, ...l.setupFiles] : l.setupFiles = [...lt], e.isInPuppeteerTestBackEnd) {
|
|
5745
5758
|
if (p?.enabled === !0)
|
|
@@ -5864,10 +5877,11 @@ const pe = {
|
|
|
5864
5877
|
};
|
|
5865
5878
|
async function as(e, t, i, n, s = R()) {
|
|
5866
5879
|
const r = Sl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await U(a) ? await J(a, "utf8") : "";
|
|
5867
|
-
if (l
|
|
5880
|
+
if (l.trim().replaceAll(`\r
|
|
5881
|
+
`, `
|
|
5882
|
+
`) === r.trim())
|
|
5868
5883
|
return !1;
|
|
5869
|
-
if (process.env.CI)
|
|
5870
|
-
const d = (p) => Array.from(p, (m) => m.codePointAt(0).toString(16).padStart(4, "0")).join(",");
|
|
5884
|
+
if (process.env.CI)
|
|
5871
5885
|
throw Error(
|
|
5872
5886
|
w(
|
|
5873
5887
|
"@arcgis/lumina:updateLuminaTs",
|
|
@@ -5877,12 +5891,9 @@ ${r}
|
|
|
5877
5891
|
|
|
5878
5892
|
Current content:
|
|
5879
5893
|
|
|
5880
|
-
${l}
|
|
5881
|
-
Hex new content: ${d(r)}
|
|
5882
|
-
Hex current content: ${d(l)}`
|
|
5894
|
+
${l}`
|
|
5883
5895
|
)
|
|
5884
5896
|
);
|
|
5885
|
-
}
|
|
5886
5897
|
return Wi(a, r), !0;
|
|
5887
5898
|
}
|
|
5888
5899
|
function Sl(e, t, i, n = R()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/api-extractor": "4.34.0-next.
|
|
22
|
-
"@arcgis/components-build-utils": "4.34.0-next.
|
|
23
|
-
"@arcgis/components-utils": "4.34.0-next.
|
|
21
|
+
"@arcgis/api-extractor": "4.34.0-next.21",
|
|
22
|
+
"@arcgis/components-build-utils": "4.34.0-next.21",
|
|
23
|
+
"@arcgis/components-utils": "4.34.0-next.21",
|
|
24
24
|
"chalk": "^5.3.0",
|
|
25
25
|
"esbuild": "^0.25.4",
|
|
26
26
|
"glob": "^11.0.0",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"vitest-fail-on-console": "^0.7.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@arcgis/lumina": "~4.34.0-next.
|
|
40
|
+
"@arcgis/lumina": "~4.34.0-next.21"
|
|
41
41
|
}
|
|
42
42
|
}
|