@arcgis/lumina-compiler 4.34.0-next.2 → 4.34.0-next.20

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.
Files changed (2) hide show
  1. package/dist/index.js +23 -20
  2. 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: `const ${c} = document.createElement("${s.tagName}");
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, n = async (c) => (await Promise.all(
5212
- c.map(
5213
- async (l, d) => l.type === "stencil" ? await Vc(i, l, t, d) : l.type === "@arcgis/lumina" ? await Xc(i, l, t, d) : void 0
5214
- )
5215
- )).filter(j).flat(), s = await Promise.all([
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(n),
5219
- Qn(e).then(n)
5220
- ]), r = u.join(e.dir.src, "loader.ts");
5223
+ ve.then(s),
5224
+ Qn(e).then(s)
5225
+ ]), a = u.join(e.dir.src, "loader.ts");
5221
5226
  return [
5222
- ...s.flat(),
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 "${r}";`,
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
  ]
@@ -5864,10 +5869,11 @@ const pe = {
5864
5869
  };
5865
5870
  async function as(e, t, i, n, s = R()) {
5866
5871
  const r = Sl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await U(a) ? await J(a, "utf8") : "";
5867
- if (l === r)
5872
+ if (l.trim().replaceAll(`\r
5873
+ `, `
5874
+ `) === r.trim())
5868
5875
  return !1;
5869
- if (process.env.CI) {
5870
- const d = (p) => Array.from(p, (m) => m.codePointAt(0).toString(16).padStart(4, "0")).join(",");
5876
+ if (process.env.CI)
5871
5877
  throw Error(
5872
5878
  w(
5873
5879
  "@arcgis/lumina:updateLuminaTs",
@@ -5877,12 +5883,9 @@ ${r}
5877
5883
 
5878
5884
  Current content:
5879
5885
 
5880
- ${l}
5881
- Hex new content: ${d(r)}
5882
- Hex current content: ${d(l)}`
5886
+ ${l}`
5883
5887
  )
5884
5888
  );
5885
- }
5886
5889
  return Wi(a, r), !0;
5887
5890
  }
5888
5891
  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.2",
3
+ "version": "4.34.0-next.20",
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.2",
22
- "@arcgis/components-build-utils": "4.34.0-next.2",
23
- "@arcgis/components-utils": "4.34.0-next.2",
21
+ "@arcgis/api-extractor": "4.34.0-next.20",
22
+ "@arcgis/components-build-utils": "4.34.0-next.20",
23
+ "@arcgis/components-utils": "4.34.0-next.20",
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.2"
40
+ "@arcgis/lumina": "~4.34.0-next.20"
41
41
  }
42
42
  }