@arcgis/lumina-compiler 4.33.0-next.113 → 4.33.0-next.118

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 +160 -174
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -1592,6 +1592,8 @@ const Wt = /* @__PURE__ */ new Set(["itemScope"]), Gi = /* @__PURE__ */ new Set(
1592
1592
  "mouseOut",
1593
1593
  "mouseOver",
1594
1594
  "mouseUp",
1595
+ "pageReveal",
1596
+ "pageSwap",
1595
1597
  "paste",
1596
1598
  "pause",
1597
1599
  "play",
@@ -2650,27 +2652,27 @@ ${c}.componentOnReady().then(() => {
2650
2652
  i.type = Xr(this.context, d, f, this.file);
2651
2653
  const y = o.isPropertyDeclaration(t) && t.type !== void 0 && t.initializer !== void 0 && o.isPropertyAccessExpression(t.initializer) && o.isPropertyAccessExpression(t.initializer.expression) && t.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(t.initializer.expression.name) && o.isIdentifier(t.initializer.name);
2652
2654
  if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || y) {
2653
- const g = t.initializer, v = s.getSymbolAtLocation(g), w = v !== void 0 && (v.flags ?? 0) & o.SymbolFlags.Alias ? s.getAliasedSymbol(v) : v, b = w?.getDeclarations() ?? [];
2655
+ const g = t.initializer, v = s.getSymbolAtLocation(g), w = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v, b = w?.getDeclarations() ?? [];
2654
2656
  if (w !== void 0) {
2655
- const E = Ft(s, w);
2656
- if (E.docsTags.length > 0) {
2657
- E.docsTags = E.docsTags.filter(
2657
+ const C = Ft(s, w);
2658
+ if (C.docsTags.length > 0) {
2659
+ C.docsTags = C.docsTags.filter(
2658
2660
  (T) => !c.has(T.name) || us.has(T.name)
2659
2661
  );
2660
2662
  const S = i.description;
2661
- le(t.name, s, i, E), E.docsTags.forEach((T) => {
2663
+ le(t.name, s, i, C), C.docsTags.forEach((T) => {
2662
2664
  c.add(T.name);
2663
2665
  }), i.description = S ?? i.description;
2664
2666
  } else
2665
- i.description ||= E.description;
2667
+ i.description ||= C.description;
2666
2668
  }
2667
- let C, $;
2668
- b.forEach((E) => {
2669
- if (C ??= o.isGetAccessor(E) ? E : void 0, $ ??= o.isSetAccessor(E) ? E : void 0, !("initializer" in E))
2669
+ let E, A;
2670
+ b.forEach((C) => {
2671
+ if (E ??= o.isGetAccessor(C) ? C : void 0, A ??= o.isSetAccessor(C) ? C : void 0, !("initializer" in C))
2670
2672
  return;
2671
- const S = E;
2673
+ const S = C;
2672
2674
  l ||= S.modifiers?.some((T) => T.kind === o.SyntaxKind.ReadonlyKeyword) ?? !1, Nt(S, i, S.getSourceFile());
2673
- }), y && C !== void 0 && $ !== void 0 && C.type?.getText() !== $.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${g.getText(this.file)}` });
2675
+ }), y && E !== void 0 && A !== void 0 && E.type?.getText() !== A.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${g.getText(this.file)}` });
2674
2676
  }
2675
2677
  if (l && (i.readonly = !0, n || (i.docsOnlyReadonly = !0)), i.type.values && i.type.values.length > 0 && i.type.values?.every((g) => g.type === "boolean") && (i.default ? m && this.context.viteCommand === "build" && i.deprecated === void 0 && this.context.logLintError(
2676
2678
  "booleanMustDefaultFalse",
@@ -3029,8 +3031,8 @@ async function fn(e, t) {
3029
3031
  if (a ? await q(c) : !1) {
3030
3032
  const y = await M(c, "utf8"), h = na(y, "bootstrapLazy("), g = y.indexOf(", options", h), v = y.slice(h, g), w = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
3031
3033
  try {
3032
- const b = JSON.parse(w), C = oa(b, { packageName: e, getImportPath: r });
3033
- return { packageName: e, type: "stencil", components: C };
3034
+ const b = JSON.parse(w), E = oa(b, { packageName: e, getImportPath: r });
3035
+ return { packageName: e, type: "stencil", components: E };
3034
3036
  } catch (b) {
3035
3037
  console.warn(`@arcgis/lumina: Failed to parse dist/esm/loader.js for ${e}.
3036
3038
  Error: ${String(b)}`);
@@ -3171,7 +3173,11 @@ async function ua(e, t, i, n) {
3171
3173
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${n}.styleSheet];`
3172
3174
  ], y = `${s}/loader`;
3173
3175
  return {
3174
- optimizableImports: [y, m],
3176
+ /*
3177
+ * Do not pre-bundle CSS bundle as dep-optimizer ESBuild instance
3178
+ * doesn't know how to load our CSS (without a plugin)
3179
+ */
3180
+ optimizableImports: [y],
3175
3181
  javascriptCode: [
3176
3182
  ...f,
3177
3183
  `import { defineCustomElements as defineCustomElements$${n} } from "${y}";`,
@@ -3635,10 +3641,10 @@ function ja(e, t) {
3635
3641
  const b = he(v.expression);
3636
3642
  if (!pi(b))
3637
3643
  return t;
3638
- const C = c.statements.slice(0, -1);
3639
- if (C.some(En))
3644
+ const E = c.statements.slice(0, -1);
3645
+ if (E.some(En))
3640
3646
  return t;
3641
- l = C.length === 0, d = b;
3647
+ l = E.length === 0, d = b;
3642
3648
  }
3643
3649
  const p = o.isJsxElement(d) ? d.openingElement : d, m = An(p);
3644
3650
  if (m === -1)
@@ -3817,20 +3823,20 @@ function xn(e, t) {
3817
3823
  return { key: void 0, ...Ie(i, e) };
3818
3824
  const s = o.isJsxElement(t) ? t.openingElement : t, r = s.tagName;
3819
3825
  if (o.isJsxNamespacedName(r)) {
3820
- const $ = k(e.sourceFile.fileName);
3826
+ const A = k(e.sourceFile.fileName);
3821
3827
  throw new Error(
3822
- `JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} in "${$}"`
3828
+ `JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} in "${A}"`
3823
3829
  );
3824
3830
  }
3825
3831
  if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== Qe && r.text !== Ze) {
3826
- const E = o.isIdentifier(r) && r.text === vr ? Ie(i, e) : {
3832
+ const C = o.isIdentifier(r) && r.text === vr ? Ie(i, e) : {
3827
3833
  // No need to wrap the function call in a lit-html tag
3828
3834
  litTag: void 0,
3829
3835
  parts: [Ha(e, t, r, i)]
3830
3836
  };
3831
3837
  return {
3832
3838
  key: _a(s, e),
3833
- ...E
3839
+ ...C
3834
3840
  };
3835
3841
  }
3836
3842
  const c = r.text === Qe ? Fe : r.text === Ze ? at : r.text, l = r.text === Qe ? se : r.text === Ze ? Z : Sr.has(c) ? hn : yt.has(c) ? ie : re, d = gt(c);
@@ -3839,26 +3845,26 @@ function xn(e, t) {
3839
3845
  let m;
3840
3846
  const f = [];
3841
3847
  let y = !1;
3842
- const h = s.attributes.properties.flatMap(($) => {
3843
- if (o.isJsxSpreadAttribute($))
3848
+ const h = s.attributes.properties.flatMap((A) => {
3849
+ if (o.isJsxSpreadAttribute(A))
3844
3850
  throw new Error(
3845
3851
  `JSX spread attribute syntax is not supported. See alternatives: https://qawebgis.esri.com/components/lumina/jsx#spread-attributes
3846
- Found ${$.getText(e.sourceFile)}`
3852
+ Found ${A.getText(e.sourceFile)}`
3847
3853
  );
3848
- const { name: E, initializer: S } = $;
3849
- if (o.isJsxNamespacedName(E)) {
3854
+ const { name: C, initializer: S } = A;
3855
+ if (o.isJsxNamespacedName(C)) {
3850
3856
  const J = k(e.sourceFile.fileName);
3851
3857
  throw new Error(
3852
- `JSX namespaced attributes are not supported. Found ${E.getText(e.sourceFile)} in "${J}"`
3858
+ `JSX namespaced attributes are not supported. Found ${C.getText(e.sourceFile)} in "${J}"`
3853
3859
  );
3854
3860
  }
3855
- const T = E.text, I = $a(S), F = I?.propType ?? Pa(T, S, c);
3861
+ const T = C.text, I = $a(S), F = I?.propType ?? Pa(T, S, c);
3856
3862
  p?.delete(T);
3857
3863
  const N = ba[F](e, I?.initializer ?? S, T, c);
3858
3864
  if (N.length === 0)
3859
3865
  return [];
3860
- const D = e.compiler.shouldMinifyJsx ? [" "] : Fa(Sn(E, e));
3861
- return F === "key" ? (m = typeof N[0] == "object" && !$n(E, e) ? N[0] : void 0, D.some(ka) ? D : []) : F === "directives" || F === "ref" || T === "deferLoad" ? (y ||= F === "deferLoad", f.push(
3866
+ const D = e.compiler.shouldMinifyJsx ? [" "] : Fa(Sn(C, e));
3867
+ return F === "key" ? (m = typeof N[0] == "object" && !$n(C, e) ? N[0] : void 0, D.some(ka) ? D : []) : F === "directives" || F === "ref" || T === "deferLoad" ? (y ||= F === "deferLoad", f.push(
3862
3868
  ...D,
3863
3869
  ...N.flatMap(
3864
3870
  (J, K) => typeof J == "string" || K === 0 || typeof N[K - 1] == "string" ? J : [" ", J]
@@ -3876,9 +3882,9 @@ Found ${$.getText(e.sourceFile)}`
3876
3882
  d && (y ? e.customElementsToImportDeferred.add(c) : e.customElementsToImport.add(c));
3877
3883
  const g = typeof c == "string" && wr.has(c), v = Ie(i, e);
3878
3884
  if (g && v.parts.length > 0) {
3879
- const $ = k(e.sourceFile.fileName);
3885
+ const A = k(e.sourceFile.fileName);
3880
3886
  throw new Error(
3881
- `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)} in "${$}"`
3887
+ `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)} in "${A}"`
3882
3888
  );
3883
3889
  }
3884
3890
  const w = (l === ie || l === Z) && v.parts.length === 0, b = [
@@ -3886,7 +3892,7 @@ Found ${$.getText(e.sourceFile)}`
3886
3892
  typeof c == "string" ? c : r,
3887
3893
  ...h,
3888
3894
  w ? `${h.length === 0 ? "" : " "}/>` : ">"
3889
- ], C = g || w ? b : [
3895
+ ], E = g || w ? b : [
3890
3896
  ...b,
3891
3897
  /**
3892
3898
  * If parent was an HTML element (e.g. `<svg>`), but children are SVG
@@ -3898,7 +3904,7 @@ Found ${$.getText(e.sourceFile)}`
3898
3904
  typeof c == "string" ? c : r,
3899
3905
  ">"
3900
3906
  ];
3901
- return { key: m, parts: C, litTag: l };
3907
+ return { key: m, parts: E, litTag: l };
3902
3908
  }
3903
3909
  function _a(e, t) {
3904
3910
  const i = e.attributes.properties[An(e)];
@@ -4751,8 +4757,8 @@ async function Cc(e, t, i) {
4751
4757
  let b = g.indexOf("<style>");
4752
4758
  if (b === -1 && (b = g.indexOf("</head>")), b === -1)
4753
4759
  throw Error(`Failed to find <head> or <style> tag in ${y}`);
4754
- const C = g.slice(0, b) + w + g.slice(b);
4755
- await L(h, C, "utf-8");
4760
+ const E = g.slice(0, b) + w + g.slice(b);
4761
+ await L(h, E, "utf-8");
4756
4762
  })
4757
4763
  );
4758
4764
  }
@@ -4839,10 +4845,10 @@ async function Pc(e, t, i, n) {
4839
4845
  {
4840
4846
  name: "@arcgis/lumina:drop-lit-ssr-import",
4841
4847
  setup(r) {
4842
- r.onResolve({ filter: /^@lit-labs\/ssr-client\//u }, (a) => ({
4848
+ r.onResolve({ filter: /^@lit-labs\/ssr-client\// }, (a) => ({
4843
4849
  path: a.path,
4844
4850
  namespace: "@arcgis/lumina:drop-lit-ssr-import"
4845
- })), r.onLoad({ filter: /^/u, namespace: "@arcgis/lumina:drop-lit-ssr-import" }, () => ({
4851
+ })), r.onLoad({ filter: /^/, namespace: "@arcgis/lumina:drop-lit-ssr-import" }, () => ({
4846
4852
  contents: '""',
4847
4853
  loader: "json"
4848
4854
  }));
@@ -4963,11 +4969,11 @@ function Mn(e, t) {
4963
4969
  e.oldSingleExportName = I, y = `return ${T}`;
4964
4970
  }
4965
4971
  }
4966
- const h = i.findLastIndex((S) => S.length > 0), g = i.slice(0, h + 1).join(","), w = `export default $arcgis.t(${i.length === 0 ? "_" : `([${g}])`}=>{`, b = n.join(","), C = `${y}},${b})`;
4967
- let $ = e.code.slice(c, f);
4968
- $ = `${s.join("")}${$}`, $ = wi($, t);
4969
- const E = `${p}${w}${$}${C}`;
4970
- e.code = E;
4972
+ const h = i.findLastIndex((S) => S.length > 0), g = i.slice(0, h + 1).join(","), w = `export default $arcgis.t(${i.length === 0 ? "_" : `([${g}])`}=>{`, b = n.join(","), E = `${y}},${b})`;
4973
+ let A = e.code.slice(c, f);
4974
+ A = `${s.join("")}${A}`, A = wi(A, t);
4975
+ const C = `${p}${w}${A}${E}`;
4976
+ e.code = C;
4971
4977
  }
4972
4978
  const Lc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Fc = /export\{([^}]+)\};\n$/u, Oe = "@arcgis/core/";
4973
4979
  function On(e, t) {
@@ -5237,10 +5243,10 @@ function zc(e) {
5237
5243
  let v;
5238
5244
  if (e.isInStorybook) {
5239
5245
  v = await g();
5240
- const C = e.typeScriptProgram.getSourceFile(h);
5241
- if (C === void 0)
5246
+ const E = e.typeScriptProgram.getSourceFile(h);
5247
+ if (E === void 0)
5242
5248
  return;
5243
- if (!(C.text === v)) {
5249
+ if (!(E.text === v)) {
5244
5250
  let T;
5245
5251
  await Promise.race([
5246
5252
  e._typeScriptReload.promise,
@@ -5258,9 +5264,9 @@ function zc(e) {
5258
5264
  const b = Ho(e, h, v);
5259
5265
  if (b === void 0)
5260
5266
  return !1;
5261
- for (const C of b) {
5262
- const $ = ln(C);
5263
- e.server.ws.send({ type: "custom", event: "component-meta-update", data: $ });
5267
+ for (const E of b) {
5268
+ const A = ln(E);
5269
+ e.server.ws.send({ type: "custom", event: "component-meta-update", data: A });
5264
5270
  }
5265
5271
  return f(), !0;
5266
5272
  }
@@ -5528,10 +5534,9 @@ const tl = (e) => ({
5528
5534
  server: t,
5529
5535
  publicDir: i,
5530
5536
  build: { cssMinify: n, target: s, sourcemap: r, lib: a, rollupOptions: { output: c = [] } = {} } = {},
5531
- test: l = {},
5532
- css: d
5537
+ test: l = {}
5533
5538
  }) {
5534
- const { include: p, browser: m, environment: f, forceRerunTriggers: y } = l, h = {
5539
+ const { include: d, browser: p, environment: m, forceRerunTriggers: f } = l, y = {
5535
5540
  // Public utilities exposed by the package
5536
5541
  index: "src/index.ts",
5537
5542
  /**
@@ -5541,9 +5546,9 @@ const tl = (e) => ({
5541
5546
  loader: "src/loader.ts",
5542
5547
  // Entrypoint for bundling used components only:
5543
5548
  ...await Jr(e)
5544
- }, { loader: g, ...v } = h, w = e.environment === "development" || e.isInTest ? {
5549
+ }, { loader: h, ...g } = y, v = e.environment === "development" || e.isInTest ? {
5545
5550
  "process.env.ESRI_INTERNAL": "true"
5546
- } : void 0, b = !import.meta.url.includes("node_modules"), C = {
5551
+ } : void 0, w = !import.meta.url.includes("node_modules"), b = {
5547
5552
  /**
5548
5553
  * Dependency pre-bundling by default scouts all index.html files to find
5549
5554
  * what dependencies are used. Since Lumina adds imports to index.html
@@ -5555,7 +5560,7 @@ const tl = (e) => ({
5555
5560
  * Exclude src/loader.ts since it's a dynamically created file that
5556
5561
  * is not visible to dep-optimizer's ESBuild instance.
5557
5562
  */
5558
- entries: Object.values(v),
5563
+ entries: Object.values(g),
5559
5564
  /**
5560
5565
  * We dynamically insert imports during the JSX to lit-html transformation.
5561
5566
  * In order to have dependency pre-bundling work correctly, we need to tell
@@ -5580,27 +5585,10 @@ const tl = (e) => ({
5580
5585
  * used by a package from outside the monorepo (eg @arcgis/lumina is used
5581
5586
  * inside the package, and by Calcite outside the package).
5582
5587
  */
5583
- exclude: b ? ["@arcgis/lumina", "@arcgis/components-controllers", "@arcgis/components-utils", "@arcgis/core-adapter"] : void 0
5588
+ exclude: w ? ["@arcgis/lumina", "@arcgis/components-controllers", "@arcgis/components-utils", "@arcgis/core-adapter"] : void 0
5584
5589
  };
5585
- typeof l.setupFiles == "string" ? l.setupFiles = [...st, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...st, ...l.setupFiles] : l.setupFiles = [...st];
5586
- const $ = {
5587
- preprocessorOptions: {
5588
- scss: {
5589
- /**
5590
- * Vite uses the deprecated SCSS API by default.
5591
- * https://sass-lang.com/documentation/breaking-changes/legacy-js-api/
5592
- *
5593
- * They will use the new API by default in Vite v6:
5594
- * https://github.com/vitejs/vite/blob/0474550c9fe0b252536b8d1f5190b3aca8723b71/packages/vite/src/node/plugins/css.ts#L2404-L2406
5595
- *
5596
- * We opt into it ahead of time to remove the deprecation warning.
5597
- */
5598
- api: d?.preprocessorOptions?.scss?.api ?? "modern-compiler"
5599
- }
5600
- }
5601
- };
5602
- if (e.isInPuppeteerTestBackEnd) {
5603
- if (m?.enabled === !0)
5590
+ if (typeof l.setupFiles == "string" ? l.setupFiles = [...st, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...st, ...l.setupFiles] : l.setupFiles = [...st], e.isInPuppeteerTestBackEnd) {
5591
+ if (p?.enabled === !0)
5604
5592
  throw new Error("Can't enable both Vitest browser mode and Puppeteer testing at the same time");
5605
5593
  return {
5606
5594
  test: {
@@ -5609,22 +5597,21 @@ const tl = (e) => ({
5609
5597
  globalSetup: ["@arcgis/lumina-compiler/puppeteerTesting/globalSetup"],
5610
5598
  runner: "@arcgis/lumina-compiler/puppeteerTesting/runner",
5611
5599
  // Run all test files that include *.e2e.* in the name.
5612
- include: p ? void 0 : ["**/*.{e2e,spec}.?(c|m)[jt]s?(x)"],
5600
+ include: d ? void 0 : ["**/*.{e2e,spec}.?(c|m)[jt]s?(x)"],
5613
5601
  /**
5614
5602
  * Using happy-dom because:
5615
5603
  * - faster than js-dom
5616
5604
  * - supports shadow dom
5617
5605
  * - is preferred by the Vitest team
5618
5606
  */
5619
- environment: f ?? "happy-dom",
5607
+ environment: m ?? "happy-dom",
5620
5608
  /**
5621
5609
  * Re-run all tests on any file change.
5622
5610
  */
5623
- forceRerunTriggers: y === void 0 ? ["**/*.{ts,tsx}"] : void 0
5611
+ forceRerunTriggers: f === void 0 ? ["**/*.{ts,tsx}"] : void 0
5624
5612
  },
5625
- css: $,
5626
- optimizeDeps: C,
5627
- define: w
5613
+ optimizeDeps: b,
5614
+ define: v
5628
5615
  };
5629
5616
  }
5630
5617
  return {
@@ -5638,7 +5625,7 @@ const tl = (e) => ({
5638
5625
  target: s ?? Dn(e.typeScriptConfig),
5639
5626
  sourcemap: r ?? (e.environment === "development" ? "inline" : e.options.build?.enableSourceMapsInProduction ?? !1),
5640
5627
  lib: {
5641
- entry: h,
5628
+ entry: y,
5642
5629
  formats: (a ? a.formats : void 0) ?? ["es"]
5643
5630
  },
5644
5631
  rollupOptions: {
@@ -5653,21 +5640,20 @@ const tl = (e) => ({
5653
5640
  }
5654
5641
  }
5655
5642
  },
5656
- optimizeDeps: C,
5657
- define: w,
5643
+ optimizeDeps: b,
5644
+ define: v,
5658
5645
  test: {
5659
5646
  /*
5660
5647
  * If in browser, run all test files that include *.e2e.* in the name.
5661
5648
  * Otherwise, run all files including *.test.* or *.spec.* in the name.
5662
5649
  */
5663
- include: p ? void 0 : [m?.enabled ?? !0 ? "**/*.e2e.?(c|m)[jt]s?(x)" : "**/*.{test,spec}.?(c|m)[jt]s?(x)"],
5650
+ include: d ? void 0 : [p?.enabled ?? !0 ? "**/*.e2e.?(c|m)[jt]s?(x)" : "**/*.{test,spec}.?(c|m)[jt]s?(x)"],
5664
5651
  browser: {
5665
- enabled: e.isInPuppeteerTestFrontEnd ? !1 : m?.enabled ?? !0,
5666
- name: m?.name ?? "chromium",
5667
- provider: m?.provider ?? As
5652
+ enabled: e.isInPuppeteerTestFrontEnd ? !1 : p?.enabled ?? !0,
5653
+ instances: p?.instances === void 0 ? [{ browser: "chromium" }] : void 0,
5654
+ provider: p?.provider ?? As
5668
5655
  }
5669
- },
5670
- css: $
5656
+ }
5671
5657
  };
5672
5658
  }
5673
5659
  }), al = (e) => ({
@@ -5681,7 +5667,7 @@ function cl(e = O()) {
5681
5667
  const t = e.version ?? "0.0.1";
5682
5668
  return gs(t);
5683
5669
  }
5684
- const ll = (e) => `/*! ${e} */`, x = (e) => (t, i) => {
5670
+ const ll = (e) => `/*! ${e} */`, P = (e) => (t, i) => {
5685
5671
  Object.defineProperty(t, i, {
5686
5672
  get() {
5687
5673
  throw new Error(
@@ -5896,13 +5882,13 @@ ${g}` : ""}`,
5896
5882
  return n;
5897
5883
  }
5898
5884
  const gl = /component: ["']([^"']+)["']/u, vl = /export const (\w+)/gu, wl = /name: ["']([^"']+)["']/u, Sl = /^\s*\*\s?/gmu, bl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Tl = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim();
5899
- var El = Object.defineProperty, A = (e, t, i, n) => {
5885
+ var El = Object.defineProperty, x = (e, t, i, n) => {
5900
5886
  for (var s = void 0, r = e.length - 1, a; r >= 0; r--)
5901
5887
  (a = e[r]) && (s = a(t, i, s) || s);
5902
5888
  return s && El(t, i, s), s;
5903
5889
  };
5904
5890
  const Pe = "@arcgis/lumina:compilerContextPlugin";
5905
- class P {
5891
+ class $ {
5906
5892
  constructor(t) {
5907
5893
  this.typeScriptProgram = void 0, this.typeScriptTypeChecker = void 0, this.typeScriptWatchProgram = void 0, this._typeScriptSourceFiles = /* @__PURE__ */ new Map(), this._typeScriptReload = void 0, this._plugin = {
5908
5894
  name: Pe,
@@ -6031,81 +6017,81 @@ class P {
6031
6017
  console.error(n), s && (process.exitCode = 1);
6032
6018
  }
6033
6019
  }
6034
- A([
6035
- x("buildStart() in build mode or load() serve mode")
6036
- ], P.prototype, "typeScriptHost");
6037
- A([
6038
- x("configResolved()")
6039
- ], P.prototype, "shouldMinify");
6040
- A([
6041
- x("configResolved()")
6042
- ], P.prototype, "shouldMinifyJsx");
6043
- A([
6044
- x("configResolved()")
6045
- ], P.prototype, "dir");
6046
- A([
6047
- x("load()")
6048
- ], P.prototype, "apiJson");
6049
- A([
6050
- x("load()")
6051
- ], P.prototype, "apiJsonComponents");
6052
- A([
6053
- x("load()")
6054
- ], P.prototype, "privateApiJson");
6055
- A([
6056
- x("load() when in build mode")
6057
- ], P.prototype, "_componentPathMapping");
6058
- A([
6059
- x("apply()")
6060
- ], P.prototype, "environment");
6061
- A([
6062
- x("apply()")
6063
- ], P.prototype, "isInTest");
6064
- A([
6065
- x("apply()")
6066
- ], P.prototype, "isInPuppeteerTestBackEnd");
6067
- A([
6068
- x("apply()")
6069
- ], P.prototype, "isInPuppeteerTestFrontEnd");
6070
- A([
6071
- x("configResolved()")
6072
- ], P.prototype, "isInStorybook");
6073
- A([
6074
- x("configResolved()")
6075
- ], P.prototype, "hmrEnabled");
6076
- A([
6077
- x("apply()")
6078
- ], P.prototype, "viteCommand");
6079
- A([
6080
- x("configResolved()")
6081
- ], P.prototype, "isFullApiExtraction");
6082
- A([
6083
- x("configResolved()")
6084
- ], P.prototype, "viteConfig");
6085
- A([
6086
- x("configResolved()")
6087
- ], P.prototype, "server");
6088
- A([
6089
- x("load()")
6090
- ], P.prototype, "componentFiles");
6091
- A([
6092
- x("load()")
6093
- ], P.prototype, "componentStoryFiles");
6094
- A([
6095
- x("configResolved()")
6096
- ], P.prototype, "componentStoriesPromise");
6097
- A([
6098
- x("load()")
6099
- ], P.prototype, "componentStories");
6100
- A([
6101
- x("transform()")
6102
- ], P.prototype, "_globalHydratedCssString");
6103
- A([
6104
- x("configResolved()")
6105
- ], P.prototype, "_compilerOptionsForPrinter");
6106
- A([
6107
- x("configResolved()")
6108
- ], P.prototype, "_typeScriptPrinter");
6020
+ x([
6021
+ P("buildStart() in build mode or load() serve mode")
6022
+ ], $.prototype, "typeScriptHost");
6023
+ x([
6024
+ P("configResolved()")
6025
+ ], $.prototype, "shouldMinify");
6026
+ x([
6027
+ P("configResolved()")
6028
+ ], $.prototype, "shouldMinifyJsx");
6029
+ x([
6030
+ P("configResolved()")
6031
+ ], $.prototype, "dir");
6032
+ x([
6033
+ P("load()")
6034
+ ], $.prototype, "apiJson");
6035
+ x([
6036
+ P("load()")
6037
+ ], $.prototype, "apiJsonComponents");
6038
+ x([
6039
+ P("load()")
6040
+ ], $.prototype, "privateApiJson");
6041
+ x([
6042
+ P("load() when in build mode")
6043
+ ], $.prototype, "_componentPathMapping");
6044
+ x([
6045
+ P("apply()")
6046
+ ], $.prototype, "environment");
6047
+ x([
6048
+ P("apply()")
6049
+ ], $.prototype, "isInTest");
6050
+ x([
6051
+ P("apply()")
6052
+ ], $.prototype, "isInPuppeteerTestBackEnd");
6053
+ x([
6054
+ P("apply()")
6055
+ ], $.prototype, "isInPuppeteerTestFrontEnd");
6056
+ x([
6057
+ P("configResolved()")
6058
+ ], $.prototype, "isInStorybook");
6059
+ x([
6060
+ P("configResolved()")
6061
+ ], $.prototype, "hmrEnabled");
6062
+ x([
6063
+ P("apply()")
6064
+ ], $.prototype, "viteCommand");
6065
+ x([
6066
+ P("configResolved()")
6067
+ ], $.prototype, "isFullApiExtraction");
6068
+ x([
6069
+ P("configResolved()")
6070
+ ], $.prototype, "viteConfig");
6071
+ x([
6072
+ P("configResolved()")
6073
+ ], $.prototype, "server");
6074
+ x([
6075
+ P("load()")
6076
+ ], $.prototype, "componentFiles");
6077
+ x([
6078
+ P("load()")
6079
+ ], $.prototype, "componentStoryFiles");
6080
+ x([
6081
+ P("configResolved()")
6082
+ ], $.prototype, "componentStoriesPromise");
6083
+ x([
6084
+ P("load()")
6085
+ ], $.prototype, "componentStories");
6086
+ x([
6087
+ P("transform()")
6088
+ ], $.prototype, "_globalHydratedCssString");
6089
+ x([
6090
+ P("configResolved()")
6091
+ ], $.prototype, "_compilerOptionsForPrinter");
6092
+ x([
6093
+ P("configResolved()")
6094
+ ], $.prototype, "_typeScriptPrinter");
6109
6095
  const Cl = (e) => ({
6110
6096
  name: "@arcgis/lumina:addNonLazyImports",
6111
6097
  apply: () => e.viteCommand === "build",
@@ -6159,12 +6145,12 @@ const Cl = (e) => ({
6159
6145
  return w.add(g(T)), `.set("${S}", () => import("${T}"))
6160
6146
  `;
6161
6147
  }
6162
- }).filter(j), C = `${v}export * from "./${mt}";`, $ = Array.from(w).join("") + C, E = b.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6163
- ${C}
6164
- deferredLoaders${b.join("")};` : C;
6148
+ }).filter(j), E = `${v}export * from "./${mt}";`, A = Array.from(w).join("") + E, C = b.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6149
+ ${E}
6150
+ deferredLoaders${b.join("")};` : E;
6165
6151
  return [
6166
- L(u.join(e.dir.dist, p, xi), E),
6167
- L(u.join(e.dir.dist, p, $l), $)
6152
+ L(u.join(e.dir.dist, p, xi), C),
6153
+ L(u.join(e.dir.dist, p, $l), A)
6168
6154
  ];
6169
6155
  });
6170
6156
  await Promise.all(s);
@@ -6774,7 +6760,7 @@ ${t}
6774
6760
  `;
6775
6761
  }
6776
6762
  function Id(e = {}) {
6777
- const t = new P(e), i = [
6763
+ const t = new $(e), i = [
6778
6764
  t._plugin,
6779
6765
  ol(t),
6780
6766
  al(t),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.33.0-next.113",
3
+ "version": "4.33.0-next.118",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,25 +18,25 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
- "@arcgis/api-extractor": "4.33.0-next.113",
22
- "@arcgis/components-build-utils": "4.33.0-next.113",
23
- "@arcgis/components-utils": "4.33.0-next.113",
21
+ "@arcgis/api-extractor": "4.33.0-next.118",
22
+ "@arcgis/components-build-utils": "4.33.0-next.118",
23
+ "@arcgis/components-utils": "4.33.0-next.118",
24
24
  "chalk": "^5.3.0",
25
- "esbuild": "^0.24.0",
25
+ "esbuild": "^0.25.4",
26
26
  "glob": "^11.0.0",
27
27
  "js-beautify": "^1.15.1",
28
28
  "mime-types": "^2.1.35",
29
- "rollup": "^4.24.0",
30
- "rollup-plugin-node-externals": "^7.1.3",
29
+ "rollup": "^4.40.2",
30
+ "rollup-plugin-node-externals": "^8.0.0",
31
31
  "sass-embedded": "^1.79.3",
32
- "tslib": "^2.7.0",
33
- "typescript": "~5.6.3",
34
- "vite": "^5.4.8",
35
- "vite-plugin-dts": "^4.3.0",
36
- "vitest": "^2.1.3",
32
+ "tslib": "^2.8.1",
33
+ "typescript": "~5.8.3",
34
+ "vite": "^6.3.4",
35
+ "vite-plugin-dts": "^4.5.3",
36
+ "vitest": "^3.1.3",
37
37
  "vitest-fail-on-console": "^0.7.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@arcgis/lumina": "~4.33.0-next.113"
40
+ "@arcgis/lumina": "~4.33.0-next.118"
41
41
  }
42
42
  }