@arcgis/lumina-compiler 4.33.0-next.119 → 4.33.0-next.120

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 +173 -171
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { nodeExternals as vs } from "rollup-plugin-node-externals";
2
- import { stringToStartsWithGlob as Wt, path as u, toSystemPathSeparators as te, retrievePackageJson as J, fetchPackageLocation as He, asyncRetrievePackageJson as ze, existsAsync as G, findPath as Ss, toPosixPathSeparators as Le, isPosix as Bi, getCwd as _i } from "@arcgis/components-build-utils";
2
+ import { stringToStartsWithGlob as Wt, path as u, toSystemPathSeparators as te, retrievePackageJson as J, fetchPackageLocation as He, asyncRetrievePackageJson as ze, existsAsync as G, findPath as Ss, toPosixPathSeparators as Fe, isPosix as Bi, getCwd as _i } from "@arcgis/components-build-utils";
3
3
  import ws from "vite-plugin-dts";
4
4
  import o from "typescript";
5
5
  import { f as b, l as C } from "./logger-KpGU2b3R.js";
6
6
  import { getMemberName as Z, apiMemberToSynthesizedComments as Q, globalPackageIdentifier as Hi, setApiDocFromJsDoc as fe, ApiExtractor as bs, hasIgnoredModifier as Ts, symbolToDocs as Bt, setDefaultFromInitializer as _t, multipleJsDocTags as Es, findDecorator as Ht, isApiMethod as Cs, isApiProperty as $s } from "@arcgis/api-extractor";
7
- import { isNotUndefined as D, mappedFind as ge, camelToKebab as bt, kebabToPascal as Ps, uncapitalize as ut, identity as zi, Deferred as xs, getPreamble as As, capitalize as Is } from "@arcgis/components-utils";
7
+ import { isNotUndefined as D, mappedFind as ge, camelToKebab as bt, kebabToPascal as xs, uncapitalize as ut, identity as zi, Deferred as Ps, getPreamble as As, capitalize as Is } from "@arcgis/components-utils";
8
8
  import { readdir as qe, readFile as O, rm as ks, mkdir as _, cp as Ls, writeFile as F, copyFile as Fs } from "node:fs/promises";
9
9
  import { lazyMetaSubItemJoiner as Ns, lazyMetaItemJoiner as tt, lazyMetaGroupJoiner as js, PropertyFlags as q } from "@arcgis/lumina/config";
10
10
  import { build as Ds } from "esbuild";
@@ -483,7 +483,7 @@ function Xt(e, t, i) {
483
483
  const wr = /(?<=this.)[\w$]+/gu;
484
484
  function br(e) {
485
485
  if (o.setEmitFlags(e, o.EmitFlags.NoComments), o.isPropertyDeclaration(e)) {
486
- const t = Ae(e.modifiers);
486
+ const t = Ie(e.modifiers);
487
487
  if (t !== e.modifiers)
488
488
  return o.factory.updatePropertyDeclaration(
489
489
  e,
@@ -494,7 +494,7 @@ function br(e) {
494
494
  e.initializer
495
495
  );
496
496
  } else if (o.isGetAccessor(e)) {
497
- const t = Ae(e.modifiers);
497
+ const t = Ie(e.modifiers);
498
498
  if (t !== e.modifiers)
499
499
  return o.factory.updateGetAccessorDeclaration(
500
500
  e,
@@ -505,11 +505,11 @@ function br(e) {
505
505
  e.body
506
506
  );
507
507
  } else if (o.isSetAccessor(e)) {
508
- const t = Ae(e.modifiers);
508
+ const t = Ie(e.modifiers);
509
509
  if (t !== e.modifiers)
510
510
  return o.factory.updateSetAccessorDeclaration(e, t, e.name, e.parameters, e.body);
511
511
  } else if (o.isMethodDeclaration(e)) {
512
- const t = Ae(e.modifiers);
512
+ const t = Ie(e.modifiers);
513
513
  if (t !== e.modifiers)
514
514
  return o.factory.updateMethodDeclaration(
515
515
  e,
@@ -528,7 +528,7 @@ function br(e) {
528
528
  function Qt(e) {
529
529
  return e?.some((i) => i.kind === o.SyntaxKind.ReadonlyKeyword) ? e : [o.factory.createModifier(o.SyntaxKind.ReadonlyKeyword), ...e ?? []];
530
530
  }
531
- function Ae(e) {
531
+ function Ie(e) {
532
532
  return e?.some((i) => i.kind === o.SyntaxKind.PrivateKeyword) ? e : [
533
533
  o.factory.createModifier(o.SyntaxKind.PrivateKeyword),
534
534
  ...(e ?? []).filter(
@@ -583,11 +583,11 @@ function Cr(e) {
583
583
  const $r = (e) => (t) => (i) => Zi(e, t, i, [
584
584
  ...Er,
585
585
  ...e.options.types?.declarationAstTransformers ?? []
586
- ]), Pr = (e) => new Proxy(e, {
587
- get: xr,
586
+ ]), xr = (e) => new Proxy(e, {
587
+ get: Pr,
588
588
  set: Ar
589
589
  });
590
- function xr(e, t, i) {
590
+ function Pr(e, t, i) {
591
591
  if (t in e)
592
592
  return Reflect.get(e, t, i);
593
593
  throw new Error(`Requested unexpected property ${String(t)}`);
@@ -660,7 +660,7 @@ function Ir(e) {
660
660
  if (typeof c != "function")
661
661
  throw new Error("Expected transform to be a function");
662
662
  if (await a.call(this, r), await c.call(
663
- Pr({}),
663
+ xr({}),
664
664
  "",
665
665
  /*
666
666
  * Have to give it a file that will be matched by the tsconfig's
@@ -672,7 +672,7 @@ function Ir(e) {
672
672
  }
673
673
  };
674
674
  }
675
- const kr = "Fragment", it = "DynamicHtmlTag", nt = "DynamicSvgTag", Re = Symbol("dynamic html tag name"), ft = Symbol("dynamic svg tag name"), tn = /* @__PURE__ */ new Set([
675
+ const kr = "Fragment", it = "DynamicHtmlTag", nt = "DynamicSvgTag", Me = Symbol("dynamic html tag name"), ft = Symbol("dynamic svg tag name"), tn = /* @__PURE__ */ new Set([
676
676
  /**
677
677
  * There is a "className" property. However, in JSX typings we use "class"
678
678
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -1817,9 +1817,9 @@ const Ue = (e) => zr(Kr(e)), Ur = (e) => !Gr.test(e), Gr = /^[^\s"'=<>`]+$/u, Vr
1817
1817
  "&": "&amp;",
1818
1818
  "<": "&lt;",
1819
1819
  ">": "&gt;"
1820
- }, an = (e) => e.replace(Vr, (t) => Xr[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Nr.has(e), Qr = async (e) => Object.fromEntries(
1820
+ }, an = (e) => e.replace(Vr, (t) => Xr[t]), xt = (e) => typeof e == "string" && e.includes("-") && !Nr.has(e), Qr = async (e) => Object.fromEntries(
1821
1821
  (await e.componentFilesPromise).map((t) => [cn(t), t])
1822
- ), cn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", Tt.slice(0, -3))), xt = async (e, t, i = t) => await qe(i, { recursive: !0 }).catch((n) => {
1822
+ ), cn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", Tt.slice(0, -3))), Pt = async (e, t, i = t) => await qe(i, { recursive: !0 }).catch((n) => {
1823
1823
  if (String(n).includes("ENOENT"))
1824
1824
  return C.error("@arcgis/lumina", `Unable to find the ${i} directory (cwd: ${process.cwd()})`), [];
1825
1825
  throw n;
@@ -1926,7 +1926,7 @@ function ao(e) {
1926
1926
  }
1927
1927
  const co = (e, t, i, n) => {
1928
1928
  const s = e.typeScriptTypeChecker, r = o.isSetAccessor(t) ? t.parameters[0] : t, a = s.getTypeAtLocation(r), c = !i;
1929
- return Me(s, a, n, e.dir, c);
1929
+ return Oe(s, a, n, e.dir, c);
1930
1930
  };
1931
1931
  function lo(e, t) {
1932
1932
  if (e.length === 0)
@@ -1939,7 +1939,7 @@ function lo(e, t) {
1939
1939
  return n.length === 0 ? void 0 : n;
1940
1940
  }
1941
1941
  const po = /"[^"]+"|'[^"]+'|\w+/gu;
1942
- function Me(e, t, i, n, s = !1) {
1942
+ function Oe(e, t, i, n, s = !1) {
1943
1943
  let { typeNode: r, references: a } = li(e, t, i, n), c = oi(r);
1944
1944
  c === void 0 && ({ typeNode: r, references: a } = li(e, t, i, n, !1), c = oi(r) ?? []);
1945
1945
  const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = dn(l), p = oo(l), m = lo(a, d);
@@ -2136,7 +2136,7 @@ function Eo(e) {
2136
2136
  }
2137
2137
  return t.length === 0 ? void 0 : t;
2138
2138
  }
2139
- const Co = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, $o = /\n\s+\*? ?/gu, Po = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Oe = new RegExp(`\\.(${Po.join("|")})(\\?|$)`, "u"), xo = /^import ["'](?<specifier>[^"']+)["'];$/gmu, Ao = () => "throwError", ne = "@arcgis/lumina:loadLitCss", Y = "?layered", Fe = "?global", Io = (e) => ({
2139
+ const Co = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, $o = /\n\s+\*? ?/gu, xo = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Je = new RegExp(`\\.(${xo.join("|")})(\\?|$)`, "u"), Po = /^import ["'](?<specifier>[^"']+)["'];$/gmu, Ao = () => "throwError", ne = "@arcgis/lumina:loadLitCss", Y = "?layered", Ne = "?global", Io = (e) => ({
2140
2140
  name: ne,
2141
2141
  enforce: "pre",
2142
2142
  configResolved(t) {
@@ -2149,8 +2149,8 @@ const Co = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, $o = /\n\s+\
2149
2149
  i.transform = async function(r, a) {
2150
2150
  const c = a.endsWith(Y);
2151
2151
  c && (a = a.slice(0, -Y.length));
2152
- const l = a.endsWith(Fe);
2153
- if (l && (a = a.slice(0, -Fe.length)), !Oe.test(a) || a.includes("?"))
2152
+ const l = a.endsWith(Ne);
2153
+ if (l && (a = a.slice(0, -Ne.length)), !Je.test(a) || a.includes("?"))
2154
2154
  return await n.call(this, r, a);
2155
2155
  const d = `${a}?inline`, p = await n.call(this, r, d), { code: m, ...f } = typeof p == "string" ? { code: p } : p ?? {};
2156
2156
  if (typeof m != "string" || !m.startsWith(fn) || !m.endsWith(yn))
@@ -2199,8 +2199,8 @@ const Co = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, $o = /\n\s+\
2199
2199
  let s = 0;
2200
2200
  const r = bo(i);
2201
2201
  let a = !1;
2202
- const c = t.replaceAll(xo, (l, d) => {
2203
- if (!Oe.test(d) || d.includes("?"))
2202
+ const c = t.replaceAll(Po, (l, d) => {
2203
+ if (!Je.test(d) || d.includes("?"))
2204
2204
  return l;
2205
2205
  if (r) {
2206
2206
  if ((e.options.css?.sideEffectImportHandling ?? Ao)(d, i) === "drop")
@@ -2227,7 +2227,7 @@ const Co = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, $o = /\n\s+\
2227
2227
  ".styleSheet];"
2228
2228
  ].join("");
2229
2229
  } else {
2230
- if (d.endsWith(Fe))
2230
+ if (d.endsWith(Ne))
2231
2231
  return l;
2232
2232
  throw Error(
2233
2233
  b(
@@ -2283,7 +2283,7 @@ function Ko(e) {
2283
2283
  "document.adoptedStyleSheets = [...document.adoptedStyleSheets, globalStyles.styleSheet!];",
2284
2284
  vn("", e)
2285
2285
  ].join(`
2286
- `) : `import "${i}${Fe}";`;
2286
+ `) : `import "${i}${Ne}";`;
2287
2287
  }
2288
2288
  const gn = "hydrated";
2289
2289
  function Wo(e) {
@@ -2378,7 +2378,7 @@ function Xo(e, t, i, n, s) {
2378
2378
  );
2379
2379
  return;
2380
2380
  }
2381
- const p = i.getTypeAtLocation(d), m = Me(i, p, n, s);
2381
+ const p = i.getTypeAtLocation(d), m = Oe(i, p, n, s);
2382
2382
  t.parameters.push({
2383
2383
  name: d.name.text,
2384
2384
  default: d.initializer?.getText(n),
@@ -2388,7 +2388,7 @@ function Xo(e, t, i, n, s) {
2388
2388
  });
2389
2389
  }
2390
2390
  t.parameters.length === 0 && (t.parameters = void 0);
2391
- const a = i.getReturnTypeOfSignature(r), c = Me(i, a, n, s), l = i.signatureToString(r, e, un, o.SignatureKind.Call);
2391
+ const a = i.getReturnTypeOfSignature(r), c = Oe(i, a, n, s), l = i.signatureToString(r, e, un, o.SignatureKind.Call);
2392
2392
  fe(e.name, i, t), t.return = {
2393
2393
  type: c
2394
2394
  }, t.signature = l.replace(" =>", ":");
@@ -2406,7 +2406,7 @@ function Zo(e, t, i, n) {
2406
2406
  const m = s.getTypeArguments(p)?.at(0);
2407
2407
  if (m === void 0)
2408
2408
  continue;
2409
- const f = Me(s, m, n, i.dir), y = {
2409
+ const f = Oe(s, m, n, i.dir), y = {
2410
2410
  name: t,
2411
2411
  summary: void 0,
2412
2412
  description: void 0,
@@ -2422,12 +2422,12 @@ function Zo(e, t, i, n) {
2422
2422
  return fe(e.name, s, y), Yo(e, y, n), y.privacy === void 0 ? y : void 0;
2423
2423
  }
2424
2424
  }
2425
- const Ie = "createEvent";
2425
+ const ke = "createEvent";
2426
2426
  function Yo(e, t, i) {
2427
2427
  if (!e.initializer || !o.isCallExpression(e.initializer))
2428
2428
  return;
2429
2429
  const n = e.initializer;
2430
- if (!o.isIdentifier(n.expression) || n.expression.text !== Ie)
2430
+ if (!o.isIdentifier(n.expression) || n.expression.text !== ke)
2431
2431
  return;
2432
2432
  const s = n.arguments[0];
2433
2433
  if (s !== void 0) {
@@ -2435,14 +2435,14 @@ function Yo(e, t, i) {
2435
2435
  throw Error(
2436
2436
  b(
2437
2437
  "@arcgis/lumina:extractEventMeta",
2438
- `Expected object literal expression as first argument of ${Ie}(). Found ${t.name} = createEvent(${s.getText(i)})`
2438
+ `Expected object literal expression as first argument of ${ke}(). Found ${t.name} = createEvent(${s.getText(i)})`
2439
2439
  )
2440
2440
  );
2441
2441
  if (s.properties.some((r) => o.isSpreadAssignment(r)))
2442
2442
  throw Error(
2443
2443
  b(
2444
2444
  "@arcgis/lumina:extractEventMeta",
2445
- `Unexpected spread syntax in ${Ie}() argument. ${Ie}() arguments must be statically parsable at compile time`
2445
+ `Unexpected spread syntax in ${ke}() argument. ${ke}() arguments must be statically parsable at compile time`
2446
2446
  )
2447
2447
  );
2448
2448
  for (const r of s.properties)
@@ -2462,7 +2462,7 @@ function ae(e, t) {
2462
2462
  );
2463
2463
  }
2464
2464
  const At = "@arcgis/lumina-compiler";
2465
- class Je extends bs {
2465
+ class Ke extends bs {
2466
2466
  constructor(t, i) {
2467
2467
  super({ isFullApiExtraction: t.isFullApiExtraction, cwd: t.dir.root }), this.context = t, this.isPathOnly = i, this.localCssImports = void 0, this.localDeclaredComponents = void 0, this.indexedComponents = /* @__PURE__ */ new Map(), this.apiComponent = void 0, this.pairedSetter = void 0, this.copyDocDefinitions = void 0, this._resolvedInheritance = /* @__PURE__ */ new Map(), this.copyDocDefinitions = t.options.documentation?.copyDefinitions, t.environment === "production" ? (this.normalizedDocumentationUrl = ui, this.alternativeDocumentationUrl = mi) : (this.normalizedDocumentationUrl = mi, this.alternativeDocumentationUrl = ui);
2468
2468
  }
@@ -2498,7 +2498,7 @@ class Je extends bs {
2498
2498
  }
2499
2499
  collectCssImports(t) {
2500
2500
  const i = t.moduleSpecifier.text;
2501
- if (!(i.startsWith(".") && Oe.test(i)))
2501
+ if (!(i.startsWith(".") && Je.test(i)))
2502
2502
  return;
2503
2503
  const s = u.join(this.file.fileName, "..", i);
2504
2504
  this.localCssImports ??= /* @__PURE__ */ new Set(), this.localCssImports.add(s);
@@ -2527,7 +2527,7 @@ class Je extends bs {
2527
2527
  * prefix (Arcgis), where as tag name always does. This also matches
2528
2528
  * Stencil's behavior.
2529
2529
  */
2530
- pascalCaseName: Ps(n),
2530
+ pascalCaseName: xs(n),
2531
2531
  privacy: void 0,
2532
2532
  importPath: "",
2533
2533
  members: [],
@@ -2686,29 +2686,29 @@ ${c}.componentOnReady().then(() => {
2686
2686
  if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || y) {
2687
2687
  const g = t.initializer, v = s.getSymbolAtLocation(g), S = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v, T = S?.getDeclarations() ?? [];
2688
2688
  if (S !== void 0) {
2689
- const P = Bt(s, S);
2690
- if (P.docsTags.length > 0) {
2691
- P.docsTags = P.docsTags.filter(
2689
+ const x = Bt(s, S);
2690
+ if (x.docsTags.length > 0) {
2691
+ x.docsTags = x.docsTags.filter(
2692
2692
  (E) => !c.has(E.name) || Es.has(E.name)
2693
2693
  );
2694
2694
  const w = i.description;
2695
- fe(t.name, s, i, P), P.docsTags.forEach((E) => {
2695
+ fe(t.name, s, i, x), x.docsTags.forEach((E) => {
2696
2696
  c.add(E.name);
2697
2697
  }), i.description = w ?? i.description;
2698
2698
  } else
2699
- i.description ||= P.description;
2699
+ i.description ||= x.description;
2700
2700
  }
2701
2701
  let $, k;
2702
- T.forEach((P) => {
2703
- if ($ ??= o.isGetAccessor(P) ? P : void 0, k ??= o.isSetAccessor(P) ? P : void 0, !("initializer" in P))
2702
+ T.forEach((x) => {
2703
+ if ($ ??= o.isGetAccessor(x) ? x : void 0, k ??= o.isSetAccessor(x) ? x : void 0, !("initializer" in x))
2704
2704
  return;
2705
- const w = P;
2705
+ const w = x;
2706
2706
  l ||= w.modifiers?.some((E) => E.kind === o.SyntaxKind.ReadonlyKeyword) ?? !1, _t(w, i, w.getSourceFile());
2707
2707
  }), y && $ !== void 0 && k !== void 0 && $.type?.getText() !== k.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${g.getText(this.file)}` });
2708
2708
  }
2709
- 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 && (Je.loggedBooleanWarning || this.context.logLintWarning(
2709
+ 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 && (Ke.loggedBooleanWarning || this.context.logLintWarning(
2710
2710
  `Boolean properties should default to "false". Found default value "true" in ${this.apiComponent.name}.${i.name}. See https://qawebgis.esri.com/components/lumina/properties#boolean-properties`
2711
- ), Je.loggedBooleanWarning = !0) : i.default = "false"), this.pairedSetter !== void 0 && !i.readonly) {
2711
+ ), Ke.loggedBooleanWarning = !0) : i.default = "false"), this.pairedSetter !== void 0 && !i.readonly) {
2712
2712
  const g = this.pairedSetter.parameters.at(0)?.type?.getText(this.file), v = t.type?.getText(this.file);
2713
2713
  g !== v && v !== void 0 && g !== void 0 && (i.getterType = { text: v });
2714
2714
  }
@@ -2839,7 +2839,7 @@ const pe = {
2839
2839
  package: "@arcgis/lumina"
2840
2840
  }, ui = "developers.arcgis.com", mi = "next.sites.afd.arcgis.com", rt = (e, t) => e.name.localeCompare(t.name);
2841
2841
  async function ea(e, t) {
2842
- t || (e.componentFilesPromise = xt(e, e.dir.srcComponents));
2842
+ t || (e.componentFilesPromise = Pt(e, e.dir.srcComponents));
2843
2843
  const i = await e.componentFilesPromise, n = await da(e, i);
2844
2844
  await e.componentStoriesPromise, e._componentPathMapping = {}, e._localDefinedComponents = void 0;
2845
2845
  const s = wn(n, e, !1);
@@ -2873,7 +2873,7 @@ function ta(e, t, i) {
2873
2873
  return d ||= m.length !== p.length, d ? void 0 : m;
2874
2874
  }
2875
2875
  function wn(e, t, i) {
2876
- const n = t.options.apiJson?.Extractor ?? Je, r = new n(t, i).extract(e);
2876
+ const n = t.options.apiJson?.Extractor ?? Ke, r = new n(t, i).extract(e);
2877
2877
  return t.options.apiJson?.afterCreate?.(r, i), r;
2878
2878
  }
2879
2879
  function bn(e) {
@@ -2897,18 +2897,18 @@ function ia(e, t, i, n, s) {
2897
2897
  M(e, r, n, s);
2898
2898
  for (const a of e.members) {
2899
2899
  if (a.kind === "field")
2900
- ke(a.type, i, t);
2900
+ Le(a.type, i, t);
2901
2901
  else {
2902
- if (ke(a.return?.type, i, t), a.parameters !== void 0)
2902
+ if (Le(a.return?.type, i, t), a.parameters !== void 0)
2903
2903
  for (const c of a.parameters)
2904
- ke(c.type, i, t), M(c, r, n, s);
2904
+ Le(c.type, i, t), M(c, r, n, s);
2905
2905
  a.return !== void 0 && M(a.return, r, n, s);
2906
2906
  }
2907
2907
  M(a, r, n, s);
2908
2908
  }
2909
2909
  if (e.events !== void 0)
2910
2910
  for (const a of e.events)
2911
- ke(a.type, i, t), M(a, r, n, s);
2911
+ Le(a.type, i, t), M(a, r, n, s);
2912
2912
  if (e.attributes !== void 0)
2913
2913
  for (const a of e.attributes)
2914
2914
  M(a, r, n, s);
@@ -2928,7 +2928,7 @@ function ia(e, t, i, n, s) {
2928
2928
  for (const a of e.demos)
2929
2929
  M(a, r, n, s);
2930
2930
  }
2931
- function ke(e, t, i) {
2931
+ function Le(e, t, i) {
2932
2932
  e !== void 0 && (e.references?.reduce(
2933
2933
  (n, s) => sa(s, t, i, n),
2934
2934
  0
@@ -3186,7 +3186,7 @@ function Ta(e, t) {
3186
3186
  }
3187
3187
  return "next";
3188
3188
  }
3189
- const Ea = ["keyed", "ref", "repeat", "live"], le = "staticHtml", ee = "staticSvg", de = "html", ce = "svg", Pn = Symbol("maybe HTML namespace or maybe SVG"), xn = "css", An = "mathml", In = [xn, de, An, le, ee, ce], Ca = new Set(In), $a = ["safeClassMap", "safeStyleMap", "deferLoad"], Pa = "nothing", xa = [...Ea, ...In, ...$a, Pa], Ke = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e);
3189
+ const Ea = ["keyed", "ref", "repeat", "live"], le = "staticHtml", ee = "staticSvg", de = "html", ce = "svg", xn = Symbol("maybe HTML namespace or maybe SVG"), Pn = "css", An = "mathml", In = [Pn, de, An, le, ee, ce], Ca = new Set(In), $a = ["safeClassMap", "safeStyleMap", "deferLoad"], xa = "nothing", Pa = [...Ea, ...In, ...$a, xa], We = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e);
3190
3190
  function gi(e, t, i) {
3191
3191
  if (re(e))
3192
3192
  return e;
@@ -3277,7 +3277,7 @@ const Aa = /* @__PURE__ */ new Set([
3277
3277
  if (f === !1)
3278
3278
  return [];
3279
3279
  }
3280
- const c = t === void 0 ? ["=", o.factory.createToken(o.SyntaxKind.TrueKeyword)] : Ne(e, t, a), l = c[0] !== "=";
3280
+ const c = t === void 0 ? ["=", o.factory.createToken(o.SyntaxKind.TrueKeyword)] : je(e, t, a), l = c[0] !== "=";
3281
3281
  if (a && l)
3282
3282
  return [s.name, ...c];
3283
3283
  const [d, p] = c, m = s?.type === "stringifiedNonReflected";
@@ -3286,7 +3286,7 @@ const Aa = /* @__PURE__ */ new Set([
3286
3286
  p,
3287
3287
  e,
3288
3288
  m ? "" : void 0
3289
- ), h = i === "value" && (n === "input" || n === "textarea" || n === Re) ? Na(f, e) : f;
3289
+ ), h = i === "value" && (n === "input" || n === "textarea" || n === Me) ? Na(f, e) : f;
3290
3290
  if (h !== p)
3291
3291
  return [m ? `.${i}` : s.name, d, h];
3292
3292
  }
@@ -3298,12 +3298,12 @@ const Aa = /* @__PURE__ */ new Set([
3298
3298
  return [i];
3299
3299
  if (n === !1)
3300
3300
  return [];
3301
- const s = Ne(e, t, !0), a = s[0] !== "=" ? s : [s[0], gi(s[1], e)];
3301
+ const s = je(e, t, !0), a = s[0] !== "=" ? s : [s[0], gi(s[1], e)];
3302
3302
  return [i, ...a];
3303
3303
  },
3304
3304
  booleanAttribute(e, t, i) {
3305
3305
  const n = t === void 0 || at(t);
3306
- return n === !0 ? [i] : n === !1 ? [] : [`?${i}`, ...Ne(e, t, !1)];
3306
+ return n === !0 ? [i] : n === !1 ? [] : [`?${i}`, ...je(e, t, !1)];
3307
3307
  },
3308
3308
  event(e, t, i) {
3309
3309
  if (t === void 0 || !o.isJsxExpression(t) || t.expression === void 0)
@@ -3349,7 +3349,7 @@ const Aa = /* @__PURE__ */ new Set([
3349
3349
  deferLoad(e, t, i, n) {
3350
3350
  if (typeof n != "string")
3351
3351
  throw Error("deferLoad prop is not currently supported on dynamic tag names.");
3352
- if (!Pt(n))
3352
+ if (!xt(n))
3353
3353
  throw Error(`deferLoad prop is only supported on custom elements. Found ${String(n)}`);
3354
3354
  e.neededImports.add("deferLoad");
3355
3355
  const s = e.importRenames.deferLoad;
@@ -3405,8 +3405,8 @@ function at(e) {
3405
3405
  return !1;
3406
3406
  }
3407
3407
  }
3408
- function Ne(e, t, i = !1) {
3409
- if (Ke(t))
3408
+ function je(e, t, i = !1) {
3409
+ if (We(t))
3410
3410
  throw new Error(
3411
3411
  `Invalid JSX syntax detected or there is a bug in Lumina. Found ${t.getText(e.sourceFile)}. Expected JSX attribute value to be wrapped in { }`
3412
3412
  );
@@ -3458,7 +3458,7 @@ function Si(e, t, i) {
3458
3458
  ]);
3459
3459
  return [`${i}=`, c];
3460
3460
  } else
3461
- return [i, ...Ne(e, t, !0)];
3461
+ return [i, ...je(e, t, !0)];
3462
3462
  }
3463
3463
  const Fa = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3464
3464
  function Na(e, t) {
@@ -3487,10 +3487,10 @@ const wi = {
3487
3487
  bindEvent: "event"
3488
3488
  };
3489
3489
  function Da(e, t, i) {
3490
- return Ma.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (tn.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !Pt(i) && (nn.has(e) || (i === ft ? !1 : i === Re ? (
3490
+ return Ma.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (tn.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !xt(i) && (nn.has(e) || (i === ft ? !1 : i === Me ? (
3491
3491
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3492
3492
  Object.values(yt).some((r) => r.has(e))
3493
- ) : yt[i]?.has(e) === !0)) ? Yt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === ft || i !== Re && (Ct.has(i) || $t.has(i)) ? e in B.common.reflected || e in B.common.stringifiedReflected || e in B.common.stringifiedNonReflected ? "property" : Yt.has(e) ? "booleanAttribute" : "attribute" : "property";
3493
+ ) : yt[i]?.has(e) === !0)) ? Yt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === ft || i !== Me && (Ct.has(i) || $t.has(i)) ? e in B.common.reflected || e in B.common.stringifiedReflected || e in B.common.stringifiedNonReflected ? "property" : Yt.has(e) ? "booleanAttribute" : "attribute" : "property";
3494
3494
  }
3495
3495
  const Ra = ["class", "style", "ref", "directives", "key", "deferLoad"], Ma = new Set(Ra), Oa = (e) => typeof e != "string" || e.trim().length > 0;
3496
3496
  function Xe({ key: e, parts: t, litTag: i }, n) {
@@ -3682,7 +3682,7 @@ function Ha(e, t, i, n, s) {
3682
3682
  let a = jn(e.name, r);
3683
3683
  const c = t.parameters.at(1);
3684
3684
  if (c !== void 0 && o.isIdentifier(c.name) && // A more basic check is also provided in lumina/no-unnecessary-key rule
3685
- r.every(We, c.name)) {
3685
+ r.every(Be, c.name)) {
3686
3686
  C.warn(
3687
3687
  "@arcgis/lumina:jsxToLitHtml",
3688
3688
  "It looks like you are trying to use .map() index as a key={} prop value. Doing so is potentially pointless and may cause performance degradation. In Lit it is safe to omit the key={} prop. If you really mean to use index as the key, then use the keyed() Lit directive directly, rather than the JSX key={} prop.",
@@ -3740,14 +3740,14 @@ const za = /* @__PURE__ */ new Set([
3740
3740
  o.SyntaxKind.TrueKeyword
3741
3741
  ]), be = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? be(e.expression) : e, jn = (e, t) => o.isObjectBindingPattern(e) ? Va(e, t) : e;
3742
3742
  function qa(e, t, i) {
3743
- if (e.every(We, t))
3743
+ if (e.every(Be, t))
3744
3744
  return t;
3745
3745
  if (o.isIdentifier(t)) {
3746
3746
  const n = o.isBlock(i.body) ? ge(i.body.statements, (r) => Ua(r, t)) : void 0;
3747
3747
  if (n === void 0)
3748
3748
  return;
3749
3749
  const s = jn(n, e);
3750
- if (e.every(We, s))
3750
+ if (e.every(Be, s))
3751
3751
  return s;
3752
3752
  }
3753
3753
  }
@@ -3757,13 +3757,13 @@ function Ua(e, t) {
3757
3757
  const i = e.declarationList.declarations[0];
3758
3758
  return i?.initializer && o.isIdentifier(i.initializer) && i.initializer.text === t.text ? i.name : void 0;
3759
3759
  }
3760
- function We(e) {
3760
+ function Be(e) {
3761
3761
  const t = this;
3762
3762
  return o.isIdentifier(t) ? t.text === e : t.elements.some(Ga, e);
3763
3763
  }
3764
3764
  function Ga(e) {
3765
3765
  const t = this;
3766
- return o.isOmittedExpression(e) ? !1 : We.call(e.name, t);
3766
+ return o.isOmittedExpression(e) ? !1 : Be.call(e.name, t);
3767
3767
  }
3768
3768
  function Va(e, t) {
3769
3769
  let i = !1;
@@ -3771,7 +3771,7 @@ function Va(e, t) {
3771
3771
  return i || n.length === 0 ? e : o.factory.updateObjectBindingPattern(e, n);
3772
3772
  }
3773
3773
  const Dn = (e, t) => t.liftedKeys.has(e), Xa = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3774
- `), Qa = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Qe = (e) => !Qa.test(e), Ce = (e) => Qe(e) ? `"${e}"` : e;
3774
+ `), Qa = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Qe = (e) => !Qa.test(e), $e = (e) => Qe(e) ? `"${e}"` : e;
3775
3775
  function Ze(e, t) {
3776
3776
  const i = [], n = [];
3777
3777
  let s = !1;
@@ -3795,7 +3795,7 @@ type ${e}SetterTypes = ${e}["${en}"]` : "", d = c.filter(Boolean).join(", ");
3795
3795
  }
3796
3796
  const Ti = (e) => e.map((t) => `'${t}'`).join(" | ");
3797
3797
  function V(e, t, i) {
3798
- if (Ke(i))
3798
+ if (We(i))
3799
3799
  return Rn(e, i);
3800
3800
  const n = o.isCallExpression(i) ? _a(e, i) : i, s = o.visitEachChild(
3801
3801
  n,
@@ -3803,7 +3803,7 @@ function V(e, t, i) {
3803
3803
  V.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
3804
3804
  e.transformationContext
3805
3805
  );
3806
- return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Ke(be(i.right))) ? ec(s) : s;
3806
+ return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || We(be(i.right))) ? ec(s) : s;
3807
3807
  }
3808
3808
  function Rn(e, t) {
3809
3809
  const i = Mn(e, t);
@@ -3812,22 +3812,22 @@ function Rn(e, t) {
3812
3812
  function Mn(e, t) {
3813
3813
  const i = "children" in t ? t.children : [];
3814
3814
  if (o.isJsxFragment(t))
3815
- return { key: void 0, ...je(i, e) };
3815
+ return { key: void 0, ...De(i, e) };
3816
3816
  const s = o.isJsxElement(t) ? t.openingElement : t, r = s.tagName;
3817
3817
  if (o.isJsxNamespacedName(r))
3818
3818
  throw Error(`JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} `);
3819
3819
  if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== it && r.text !== nt) {
3820
- const P = o.isIdentifier(r) && r.text === kr ? je(i, e) : {
3820
+ const x = o.isIdentifier(r) && r.text === kr ? De(i, e) : {
3821
3821
  // No need to wrap the function call in a lit-html tag
3822
3822
  litTag: void 0,
3823
3823
  parts: [Ya(e, t, r, i)]
3824
3824
  };
3825
3825
  return {
3826
3826
  key: Za(s, e),
3827
- ...P
3827
+ ...x
3828
3828
  };
3829
3829
  }
3830
- const c = r.text === it ? Re : r.text === nt ? ft : r.text, l = r.text === it ? le : r.text === nt ? ee : Fr.has(c) ? Pn : Ct.has(c) ? ce : de, d = Pt(c);
3830
+ const c = r.text === it ? Me : r.text === nt ? ft : r.text, l = r.text === it ? le : r.text === nt ? ee : Fr.has(c) ? xn : Ct.has(c) ? ce : de, d = xt(c);
3831
3831
  let p;
3832
3832
  d && e.compiler.viteCommand === "build" && (p = tc(e, c));
3833
3833
  let m;
@@ -3839,16 +3839,16 @@ function Mn(e, t) {
3839
3839
  `JSX spread attribute syntax is not supported. See alternatives: https://qawebgis.esri.com/components/lumina/jsx#spread-attributes
3840
3840
  Found ${k.getText(e.sourceFile)}`
3841
3841
  );
3842
- const { name: P, initializer: w } = k;
3843
- if (o.isJsxNamespacedName(P))
3844
- throw Error(`JSX namespaced attributes are not supported. Found ${P.getText(e.sourceFile)}`);
3845
- const E = P.text, L = ja(w), N = L?.propType ?? Da(E, w, c);
3842
+ const { name: x, initializer: w } = k;
3843
+ if (o.isJsxNamespacedName(x))
3844
+ throw Error(`JSX namespaced attributes are not supported. Found ${x.getText(e.sourceFile)}`);
3845
+ const E = x.text, L = ja(w), N = L?.propType ?? Da(E, w, c);
3846
3846
  p?.delete(E);
3847
3847
  const j = ka[N](e, L?.initializer ?? w, E, c);
3848
3848
  if (j.length === 0)
3849
3849
  return [];
3850
- const R = e.compiler.shouldMinifyJsx ? [" "] : Wa(kn(P, e));
3851
- return N === "key" ? (m = typeof j[0] == "object" && !Dn(P, e) ? j[0] : void 0, R.some(Oa) ? R : []) : N === "directives" || N === "ref" || E === "deferLoad" ? (y ||= N === "deferLoad", f.push(
3850
+ const R = e.compiler.shouldMinifyJsx ? [" "] : Wa(kn(x, e));
3851
+ return N === "key" ? (m = typeof j[0] == "object" && !Dn(x, e) ? j[0] : void 0, R.some(Oa) ? R : []) : N === "directives" || N === "ref" || E === "deferLoad" ? (y ||= N === "deferLoad", f.push(
3852
3852
  ...R,
3853
3853
  ...j.flatMap(
3854
3854
  (z, K) => typeof z == "string" || K === 0 || typeof j[K - 1] == "string" ? z : [" ", z]
@@ -3864,7 +3864,7 @@ Found ${k.getText(e.sourceFile)}`
3864
3864
  `JSX syntax for MathML elements is not yet supported. If you need it, please request it. Otherwise, use the \`math\` function from Lit directly. Tried to use the "${c}" element`
3865
3865
  );
3866
3866
  d && (y ? e.customElementsToImportDeferred.add(c) : e.customElementsToImport.add(c));
3867
- const g = typeof c == "string" && Lr.has(c), v = je(i, e);
3867
+ const g = typeof c == "string" && Lr.has(c), v = De(i, e);
3868
3868
  if (g && v.parts.length > 0)
3869
3869
  throw Error(
3870
3870
  `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
@@ -3902,9 +3902,9 @@ function Ya(e, t, i, n) {
3902
3902
  throw Error(`JSX namespaced attributes are not supported. Found ${d.getText(e.sourceFile)}`);
3903
3903
  if (d.text === "key")
3904
3904
  return;
3905
- const m = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : Ke(p) ? Rn(e, p) : V(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = Qe(d.text) ? o.factory.createStringLiteral(d.text) : d;
3905
+ const m = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : We(p) ? Rn(e, p) : V(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = Qe(d.text) ? o.factory.createStringLiteral(d.text) : d;
3906
3906
  return o.factory.createPropertyAssignment(f, m);
3907
- }), { parts: a, litTag: c } = je(n, e);
3907
+ }), { parts: a, litTag: c } = De(n, e);
3908
3908
  return a.length > 0 && r.push(
3909
3909
  o.factory.createPropertyAssignment(
3910
3910
  o.factory.createIdentifier("children"),
@@ -3914,7 +3914,7 @@ function Ya(e, t, i, n) {
3914
3914
  o.factory.createObjectLiteralExpression(r.filter(D))
3915
3915
  ]);
3916
3916
  }
3917
- function je(e, t) {
3917
+ function De(e, t) {
3918
3918
  let i;
3919
3919
  const n = e.flatMap((s) => {
3920
3920
  if (o.isJsxText(s))
@@ -3924,7 +3924,7 @@ function je(e, t) {
3924
3924
  {
3925
3925
  const r = Mn(t, s);
3926
3926
  if (r.key === void 0 && r.litTag !== le && r.litTag !== ee) {
3927
- if (r.litTag === Pn)
3927
+ if (r.litTag === xn)
3928
3928
  return r.parts;
3929
3929
  if (i !== void 0 && r.litTag !== void 0 && i !== r.litTag)
3930
3930
  throw new Error(
@@ -4012,7 +4012,7 @@ const Jn = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), T
4012
4012
  [ce]: ["lit-html", "lit/html.js", "lit"],
4013
4013
  [ee]: ["lit-html/static.js", "lit/static-html.js"],
4014
4014
  [An]: ["lit-html", "lit/html.js", "lit"],
4015
- [xn]: ["@lit/reactive-element/css-tag.js", "@lit/reactive-element", "lit"],
4015
+ [Pn]: ["@lit/reactive-element/css-tag.js", "@lit/reactive-element", "lit"],
4016
4016
  safeClassMap: ["@arcgis/lumina"],
4017
4017
  safeStyleMap: ["@arcgis/lumina"],
4018
4018
  deferLoad: ["@arcgis/lumina"],
@@ -4031,7 +4031,7 @@ function ic(e, t) {
4031
4031
  const s = nc(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
4032
4032
  if (r && e.existingImportedModules.add(s), i === void 0)
4033
4033
  return t;
4034
- if (e.isInLightDomComponent && n.text.startsWith(".") && Oe.test(n.text) && // If id already includes ?, bypass our custom behavior
4034
+ if (e.isInLightDomComponent && n.text.startsWith(".") && Je.test(n.text) && // If id already includes ?, bypass our custom behavior
4035
4035
  !n.text.includes("?"))
4036
4036
  return o.factory.updateImportDeclaration(
4037
4037
  t,
@@ -4214,7 +4214,7 @@ const pc = (e, t) => {
4214
4214
  };
4215
4215
  function uc(e) {
4216
4216
  return mc(e), Object.fromEntries(
4217
- xa.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4217
+ Pa.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4218
4218
  );
4219
4219
  }
4220
4220
  function mc(e) {
@@ -4522,7 +4522,7 @@ function Cc(e, t, i, n, s) {
4522
4522
  return o.isPropertyDeclaration(t) || o.isAccessor(t) ? wc(e, t, i, n, s) : t;
4523
4523
  }
4524
4524
  const $c = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", $i = "makeRuntime(";
4525
- function Pc(e, t) {
4525
+ function xc(e, t) {
4526
4526
  const i = e.indexOf($i);
4527
4527
  if (i === -1)
4528
4528
  throw new Error("Failed to find makeRuntime() function call in src/runtime.ts");
@@ -4543,12 +4543,12 @@ function Pc(e, t) {
4543
4543
  map: null
4544
4544
  };
4545
4545
  }
4546
- const xc = [
4546
+ const Pc = [
4547
4547
  pc,
4548
4548
  Vs,
4549
4549
  Tc
4550
- ], Pi = "@arcgis/lumina:transformComponents", Ac = (e) => ({
4551
- name: Pi,
4550
+ ], xi = "@arcgis/lumina:transformComponents", Ac = (e) => ({
4551
+ name: xi,
4552
4552
  transform: {
4553
4553
  // Transform JSX to lit-html first so that vite:esbuild doesn't transform JSX to h().
4554
4554
  order: "pre",
@@ -4556,12 +4556,12 @@ const xc = [
4556
4556
  if (!i.endsWith(".tsx")) {
4557
4557
  if (e.isInTest && i.endsWith(".ts") && Et(i) && t.includes("extends LitElement"))
4558
4558
  C.warn(
4559
- Pi,
4559
+ xi,
4560
4560
  "It looks like you may be trying to define a component inside a test file. This is supported, but you must use the .tsx file extension for you test",
4561
4561
  i
4562
4562
  );
4563
4563
  else if (i === `${e.dir.src}runtime.ts`)
4564
- return Pc(t, e);
4564
+ return xc(t, e);
4565
4565
  return;
4566
4566
  }
4567
4567
  const n = e.getSourceFile(i, t);
@@ -4569,7 +4569,7 @@ const xc = [
4569
4569
  const r = o.transform(n, [
4570
4570
  (f) => () => Zi(e, f, n, [
4571
4571
  ...e.options.types?.sourceFileTransformers ?? [],
4572
- ...xc
4572
+ ...Pc
4573
4573
  ])
4574
4574
  ]).transformed[0], a = e._compilerOptionsForPrinter, c = e._typeScriptPrinter, l = a.sourceMap ? ye.createSourceMapGenerator(
4575
4575
  e.typeScriptHost,
@@ -4677,12 +4677,12 @@ function Lc(e, t) {
4677
4677
  l[0] === "timerToUpdateProgram" ? s : c,
4678
4678
  ...l
4679
4679
  ), n.afterProgramCreate = (a) => {
4680
- e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new xs();
4680
+ e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Ps();
4681
4681
  }, e.typeScriptWatchProgram = o.createWatchProgram(n), e.typeScriptConfig = e.typeScriptProgram.getCompilerOptions();
4682
4682
  }
4683
4683
  e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = Ic(e), e._typeScriptPrinter = ln(e._compilerOptionsForPrinter);
4684
4684
  }
4685
- const vt = "@arcgis/core", xi = J(), U = vt in (xi.dependencies ?? {}) || vt in (xi.peerDependencies ?? {});
4685
+ const vt = "@arcgis/core", Pi = J(), U = vt in (Pi.dependencies ?? {}) || vt in (Pi.peerDependencies ?? {});
4686
4686
  async function Fc(e, t) {
4687
4687
  if (!U)
4688
4688
  return [];
@@ -4725,7 +4725,7 @@ async function Nc(e, t, i) {
4725
4725
  nodir: !0,
4726
4726
  posix: !0
4727
4727
  })
4728
- ], r = u.relative(e.dir.root, e.dir.src), a = await Ee(e), c = u.join(e.dir.src, "loader.ts"), l = a.map((d) => {
4728
+ ], r = u.relative(e.dir.root, e.dir.src), a = await Ce(e), c = u.join(e.dir.src, "loader.ts"), l = a.map((d) => {
4729
4729
  if ("cssHref" in d)
4730
4730
  return `<link rel="stylesheet" href="${d.cssHref}">`;
4731
4731
  if ("javascriptCode" in d && d.javascriptCode.at(0)?.includes(c) === !0)
@@ -4765,7 +4765,7 @@ const qn = /* @__PURE__ */ new Set([
4765
4765
  "collection",
4766
4766
  "extras",
4767
4767
  "support"
4768
- ]), H = "@arcgis/lumina:buildCdn", Dt = "cdn", Un = "index", Be = "main";
4768
+ ]), H = "@arcgis/lumina:buildCdn", Dt = "cdn", Un = "index", Ee = "main";
4769
4769
  function jc(e) {
4770
4770
  const { skip: t = !1, namespace: i, esbuildOptions: n = {} } = e.options.build?.cdn ?? {}, s = e.options.build?.webApp?.destination, r = e.options.build?.cdn?.namespace !== void 0;
4771
4771
  if (r) {
@@ -4784,7 +4784,7 @@ function jc(e) {
4784
4784
  {
4785
4785
  type: "dynamic",
4786
4786
  source: () => Bo(e),
4787
- destination: r ? `../${a}.css` : `../../${Be}.css`
4787
+ destination: r ? `../${a}.css` : `../../${Ee}.css`
4788
4788
  }
4789
4789
  ]), !t)
4790
4790
  return {
@@ -4930,13 +4930,13 @@ function Gn(e, t) {
4930
4930
  else {
4931
4931
  const K = Vn(R, t), X = K?.isAsync === !0;
4932
4932
  if (L !== void 0) {
4933
- const xe = [];
4933
+ const Ae = [];
4934
4934
  for (const et of L.slice(1, -1).split(",")) {
4935
4935
  const [Jt, Kt = Jt] = et.split(" as ");
4936
- X || r.add(Kt), xe.push(`${Jt}:${Kt}`);
4936
+ X || r.add(Kt), Ae.push(`${Jt}:${Kt}`);
4937
4937
  }
4938
4938
  if (X) {
4939
- const et = K.oldSingleExportName === void 0 ? `{${xe.join(",")}}` : xe[0].split(":")[1];
4939
+ const et = K.oldSingleExportName === void 0 ? `{${Ae.join(",")}}` : Ae[0].split(":")[1];
4940
4940
  a.push([w.index + 6, 0, L.length, et]);
4941
4941
  }
4942
4942
  } else if (N === void 0 && j === void 0)
@@ -4985,8 +4985,8 @@ function Gn(e, t) {
4985
4985
  const h = i.findLastIndex((w) => w.length > 0), g = i.slice(0, h + 1).join(","), S = `export default $arcgis.t(${i.length === 0 ? "_" : `([${g}])`}=>{`, T = n.join(","), $ = `${y}},${T})`;
4986
4986
  let k = e.code.slice(c, f);
4987
4987
  k = `${s.join("")}${k}`, k = ki(k, t);
4988
- const P = `${p}${S}${k}${$}`;
4989
- e.code = P;
4988
+ const x = `${p}${S}${k}${$}`;
4989
+ e.code = x;
4990
4990
  }
4991
4991
  const Kc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Wc = /export\{([^}]+)\};\n$/u, _e = "@arcgis/core/";
4992
4992
  function Vn(e, t) {
@@ -5100,16 +5100,18 @@ async function Li(e, t) {
5100
5100
  } : void 0;
5101
5101
  }
5102
5102
  async function Vc(e, t, i, n) {
5103
- const s = t.packageName, r = await He(s), a = await ze(r);
5104
- if (i === "cdn")
5103
+ const s = t.packageName, r = await He(s), a = await ze(r), c = await Yn(u.join(r, "dist"));
5104
+ if (i === "cdn") {
5105
+ const y = a.exports?.[`./${Ee}.css`] === void 0, h = y ? c.cdnName : Un;
5105
5106
  return {
5106
5107
  tag: "script",
5107
5108
  attrs: {
5108
5109
  type: "module",
5109
- src: `${t.cdnUrl ?? Ve(a, !0)}${Un}.js`
5110
+ src: `${t.cdnUrl ?? Ve(a, !0)}${h}${y ? ".esm" : ""}.js`
5110
5111
  }
5111
5112
  };
5112
- const l = (await Yn(u.join(r, "dist")))?.cdnName ?? Dt, d = Xc(a), p = `${s}/${u.normalize(d)}${Y}`, m = [
5113
+ }
5114
+ const l = c?.cdnName ?? Dt, d = Xc(a), p = `${s}/${u.normalize(d)}${Y}`, m = [
5113
5115
  `import styles$${n} from "${p}";`,
5114
5116
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${n}.styleSheet];`
5115
5117
  ], f = `${s}/loader`;
@@ -5134,10 +5136,10 @@ function Xc(e) {
5134
5136
  throw new Error(
5135
5137
  `Package "${e.name}" does not have an "exports" field. All Lumina packages must include an "exports" field.`
5136
5138
  );
5137
- const i = Object.entries(t).filter(([s]) => u.extname(s) === ".css"), n = i.find(([, s]) => s === `./${Be}.css`);
5138
- return n ? n[0] : i.length > 0 ? i[0][0] : `./${Be}.css`;
5139
+ const i = Object.entries(t).filter(([s]) => u.extname(s) === ".css"), n = i.find(([, s]) => s === `./${Ee}.css`);
5140
+ return n ? n[0] : i.length > 0 ? i[0][0] : `./${Ee}.css`;
5139
5141
  }
5140
- async function Ee(e) {
5142
+ async function Ce(e) {
5141
5143
  return e._loadersCache ??= Qc(e), await e._loadersCache;
5142
5144
  }
5143
5145
  async function Qc(e) {
@@ -5204,7 +5206,7 @@ const is = "/@arcgis/lumina-compiler/testLitSetupFile", ns = "/@arcgis/lumina-co
5204
5206
  async function Yc(e) {
5205
5207
  if (!e.viteConfig.test?.browser?.enabled)
5206
5208
  return Fi(e);
5207
- const i = (await Ee(e)).map((n, s) => {
5209
+ const i = (await Ce(e)).map((n, s) => {
5208
5210
  if ("javascriptCode" in n)
5209
5211
  return n.javascriptCode.join(`
5210
5212
  `);
@@ -5276,7 +5278,7 @@ function il(e) {
5276
5278
  );
5277
5279
  }), h.watcher.on("add", g), h.watcher.on("unlink", g), h.watcher.on(
5278
5280
  "addDir",
5279
- (v) => v.startsWith(e.dir.srcComponents) ? void xt(e, e.dir.srcComponents, v).then(
5281
+ (v) => v.startsWith(e.dir.srcComponents) ? void Pt(e, e.dir.srcComponents, v).then(
5280
5282
  (S) => S.length > 0 ? m() : void 0
5281
5283
  ) : void 0
5282
5284
  ), h.watcher.on("unlinkDir", (v) => {
@@ -5394,11 +5396,11 @@ async function ss(e, t, i = Mt) {
5394
5396
  }
5395
5397
  const rs = Bi ? (e) => e : (e) => e.type === "dynamic" ? {
5396
5398
  ...e,
5397
- destination: Le(e.destination)
5399
+ destination: Fe(e.destination)
5398
5400
  } : {
5399
5401
  ...e,
5400
- source: Le(e.source),
5401
- destination: Le(e.destination)
5402
+ source: Fe(e.source),
5403
+ destination: Fe(e.destination)
5402
5404
  };
5403
5405
  async function Ni(e, t, i, n) {
5404
5406
  const s = i.find((r) => r.match(t, n));
@@ -5762,7 +5764,7 @@ function ue(e) {
5762
5764
  `Documentation file name was expected to be a relative path (relative to dist). Instead, received an absolute path: ${e}`
5763
5765
  )
5764
5766
  );
5765
- return Le(e);
5767
+ return Fe(e);
5766
5768
  }
5767
5769
  const me = {
5768
5770
  vsCodeHtml: "docs/vscode.html-custom-data.json",
@@ -5826,7 +5828,7 @@ const wl = `/**
5826
5828
  *
5827
5829
  * If you need to provide additional typings, create a separate file.
5828
5830
  */`, bl = `
5829
- /// <reference types="@arcgis/core/interfaces" />`, De = "@arcgis/lumina:dependencySupport", ms = (e, t) => e.viteCommand === "serve" && /**
5831
+ /// <reference types="@arcgis/core/interfaces" />`, Re = "@arcgis/lumina:dependencySupport", ms = (e, t) => e.viteCommand === "serve" && /**
5830
5832
  * Vitest started calling transformIndexHtml in browser mode versions ^2.1.4
5831
5833
  * However, it is a bit buggy (see
5832
5834
  * https://github.com/vitejs/vite/issues/19213). Instead, we are using test
@@ -5838,17 +5840,17 @@ const wl = `/**
5838
5840
  * https://github.com/storybookjs/storybook/blob/a5c2cf1712f70b4e3ecf38d3c98e7db8e8d67849/code/builders/builder-vite/src/plugins/code-generator-plugin.ts#L110
5839
5841
  */
5840
5842
  e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, Tl = (e) => ({
5841
- name: De,
5843
+ name: Re,
5842
5844
  configResolved() {
5843
5845
  !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = El(e).catch(
5844
- (t) => C.error(De, `Failed to update package's src/lumina.ts:${String(t)}`)
5846
+ (t) => C.error(Re, `Failed to update package's src/lumina.ts:${String(t)}`)
5845
5847
  ));
5846
5848
  },
5847
5849
  transformIndexHtml: {
5848
5850
  // Add imports to index.html before Vite starts resolving imports
5849
5851
  order: "pre",
5850
5852
  async handler(t, i) {
5851
- return ms(e, i) ? (await Ee(e)).map(
5853
+ return ms(e, i) ? (await Ce(e)).map(
5852
5854
  (s) => "javascriptCode" in s ? {
5853
5855
  tag: "script",
5854
5856
  attrs: {
@@ -5875,12 +5877,12 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
5875
5877
  async buildStart() {
5876
5878
  if (e.viteCommand !== "serve")
5877
5879
  return;
5878
- const i = (await Ee(e)).flatMap((n) => {
5880
+ const i = (await Ce(e)).flatMap((n) => {
5879
5881
  if ("javascriptCode" in n)
5880
5882
  return n.optimizableImports;
5881
5883
  if ("cssHref" in n)
5882
5884
  return [];
5883
- throw Error(b(De, `Unexpected loader type: ${JSON.stringify(n)}`));
5885
+ throw Error(b(Re, `Unexpected loader type: ${JSON.stringify(n)}`));
5884
5886
  });
5885
5887
  e.viteConfig.optimizeDeps.include ??= [], e.viteConfig.optimizeDeps.include.push(...i);
5886
5888
  },
@@ -5899,7 +5901,7 @@ async function El(e) {
5899
5901
  return;
5900
5902
  let s = !1;
5901
5903
  function r() {
5902
- s || C.warn(De, Cl), s = !0;
5904
+ s || C.warn(Re, Cl), s = !0;
5903
5905
  }
5904
5906
  process.on("exit", () => {
5905
5907
  r(), clearTimeout(c);
@@ -5914,7 +5916,7 @@ async function $l(e, t) {
5914
5916
  const i = /* @__PURE__ */ new Map();
5915
5917
  await Promise.all(
5916
5918
  e.map(async (s) => {
5917
- const r = await O(s, "utf-8"), a = r.match(Pl)?.[1];
5919
+ const r = await O(s, "utf-8"), a = r.match(xl)?.[1];
5918
5920
  if (a === void 0) {
5919
5921
  C.warn(
5920
5922
  "@arcgis/lumina:parseStoryFiles",
@@ -5926,7 +5928,7 @@ async function $l(e, t) {
5926
5928
  let c = i.get(a);
5927
5929
  c === void 0 && (c = [], i.set(a, c));
5928
5930
  const l = [];
5929
- for (const d of r.matchAll(xl)) {
5931
+ for (const d of r.matchAll(Pl)) {
5930
5932
  const p = d[1], m = Ll(p), f = r.indexOf("{", d.index), y = r.indexOf("}", f), h = r.slice(0, d.index).trimEnd();
5931
5933
  let g = "";
5932
5934
  if (h.endsWith("*/")) {
@@ -5958,14 +5960,14 @@ ${g}` : ""}`,
5958
5960
  }
5959
5961
  return n;
5960
5962
  }
5961
- const Pl = /component: ["']([^"']+)["']/u, xl = /export const (\w+)/gu, Al = /name: ["']([^"']+)["']/u, Il = /^\s*\*\s?/gmu, kl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Ll = (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();
5963
+ const xl = /component: ["']([^"']+)["']/u, Pl = /export const (\w+)/gu, Al = /name: ["']([^"']+)["']/u, Il = /^\s*\*\s?/gmu, kl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Ll = (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();
5962
5964
  var Fl = Object.defineProperty, I = (e, t, i, n) => {
5963
5965
  for (var s = void 0, r = e.length - 1, a; r >= 0; r--)
5964
5966
  (a = e[r]) && (s = a(t, i, s) || s);
5965
5967
  return s && Fl(t, i, s), s;
5966
5968
  };
5967
5969
  const se = "@arcgis/lumina:context";
5968
- class x {
5970
+ class P {
5969
5971
  constructor(t) {
5970
5972
  this.typeScriptProgram = void 0, this.typeScriptTypeChecker = void 0, this.typeScriptWatchProgram = void 0, this._typeScriptSourceFiles = /* @__PURE__ */ new Map(), this._typeScriptReload = void 0, this._plugin = {
5971
5973
  name: se,
@@ -6005,7 +6007,7 @@ class x {
6005
6007
  const h = this.options.documentation?.publicStoryUrlPrefix;
6006
6008
  this.isFullApiExtraction && typeof h == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await $l(this.componentStoryFiles, h)).then((g) => {
6007
6009
  this.componentStories = g;
6008
- }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), Lc(this, s.build.sourcemap !== !1), ms(this) && Ee(this);
6010
+ }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), Lc(this, s.build.sourcemap !== !1), ms(this) && Ce(this);
6009
6011
  }
6010
6012
  },
6011
6013
  configureServer: {
@@ -6022,7 +6024,7 @@ class x {
6022
6024
  webTypes: i.jetBrains === !1 ? void 0 : i.jetBrains?.webTypesFileName ? ue(i.jetBrains.webTypesFileName) : me.webTypes,
6023
6025
  vsCodeHtml: i.vsCode === !1 ? void 0 : i.vsCode?.htmlFileName ? ue(i.vsCode.htmlFileName) : me.vsCodeHtml,
6024
6026
  vsCodeCss: i.vsCode === !1 ? void 0 : i.vsCode?.cssFileName ? ue(i.vsCode.cssFileName) : me.vsCodeCss
6025
- }, Tn(), this.componentFilesPromise = xt(this, u.resolve("src/components")), kc(this);
6027
+ }, Tn(), this.componentFilesPromise = Pt(this, u.resolve("src/components")), kc(this);
6026
6028
  const n = t.build?.preamble ?? gl();
6027
6029
  this.banner = vl(n);
6028
6030
  }
@@ -6106,79 +6108,79 @@ class x {
6106
6108
  }
6107
6109
  I([
6108
6110
  A("buildStart() in build mode or load() serve mode")
6109
- ], x.prototype, "typeScriptHost");
6111
+ ], P.prototype, "typeScriptHost");
6110
6112
  I([
6111
6113
  A("configResolved()")
6112
- ], x.prototype, "shouldMinify");
6114
+ ], P.prototype, "shouldMinify");
6113
6115
  I([
6114
6116
  A("configResolved()")
6115
- ], x.prototype, "shouldMinifyJsx");
6117
+ ], P.prototype, "shouldMinifyJsx");
6116
6118
  I([
6117
6119
  A("configResolved()")
6118
- ], x.prototype, "dir");
6120
+ ], P.prototype, "dir");
6119
6121
  I([
6120
6122
  A("load()")
6121
- ], x.prototype, "apiJson");
6123
+ ], P.prototype, "apiJson");
6122
6124
  I([
6123
6125
  A("load()")
6124
- ], x.prototype, "apiJsonComponents");
6126
+ ], P.prototype, "apiJsonComponents");
6125
6127
  I([
6126
6128
  A("load()")
6127
- ], x.prototype, "privateApiJson");
6129
+ ], P.prototype, "privateApiJson");
6128
6130
  I([
6129
6131
  A("load() when in build mode")
6130
- ], x.prototype, "_componentPathMapping");
6132
+ ], P.prototype, "_componentPathMapping");
6131
6133
  I([
6132
6134
  A("apply()")
6133
- ], x.prototype, "environment");
6135
+ ], P.prototype, "environment");
6134
6136
  I([
6135
6137
  A("apply()")
6136
- ], x.prototype, "isInTest");
6138
+ ], P.prototype, "isInTest");
6137
6139
  I([
6138
6140
  A("apply()")
6139
- ], x.prototype, "isInPuppeteerTestBackEnd");
6141
+ ], P.prototype, "isInPuppeteerTestBackEnd");
6140
6142
  I([
6141
6143
  A("apply()")
6142
- ], x.prototype, "isInPuppeteerTestFrontEnd");
6144
+ ], P.prototype, "isInPuppeteerTestFrontEnd");
6143
6145
  I([
6144
6146
  A("configResolved()")
6145
- ], x.prototype, "isInStorybook");
6147
+ ], P.prototype, "isInStorybook");
6146
6148
  I([
6147
6149
  A("configResolved()")
6148
- ], x.prototype, "hmrEnabled");
6150
+ ], P.prototype, "hmrEnabled");
6149
6151
  I([
6150
6152
  A("apply()")
6151
- ], x.prototype, "viteCommand");
6153
+ ], P.prototype, "viteCommand");
6152
6154
  I([
6153
6155
  A("configResolved()")
6154
- ], x.prototype, "isFullApiExtraction");
6156
+ ], P.prototype, "isFullApiExtraction");
6155
6157
  I([
6156
6158
  A("configResolved()")
6157
- ], x.prototype, "viteConfig");
6159
+ ], P.prototype, "viteConfig");
6158
6160
  I([
6159
6161
  A("configResolved()")
6160
- ], x.prototype, "server");
6162
+ ], P.prototype, "server");
6161
6163
  I([
6162
6164
  A("load()")
6163
- ], x.prototype, "componentFiles");
6165
+ ], P.prototype, "componentFiles");
6164
6166
  I([
6165
6167
  A("load()")
6166
- ], x.prototype, "componentStoryFiles");
6168
+ ], P.prototype, "componentStoryFiles");
6167
6169
  I([
6168
6170
  A("configResolved()")
6169
- ], x.prototype, "componentStoriesPromise");
6171
+ ], P.prototype, "componentStoriesPromise");
6170
6172
  I([
6171
6173
  A("load()")
6172
- ], x.prototype, "componentStories");
6174
+ ], P.prototype, "componentStories");
6173
6175
  I([
6174
6176
  A("transform()")
6175
- ], x.prototype, "_globalHydratedCssString");
6177
+ ], P.prototype, "_globalHydratedCssString");
6176
6178
  I([
6177
6179
  A("configResolved()")
6178
- ], x.prototype, "_compilerOptionsForPrinter");
6180
+ ], P.prototype, "_compilerOptionsForPrinter");
6179
6181
  I([
6180
6182
  A("configResolved()")
6181
- ], x.prototype, "_typeScriptPrinter");
6183
+ ], P.prototype, "_typeScriptPrinter");
6182
6184
  const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6183
6185
  name: pt,
6184
6186
  apply: () => e.viteCommand === "build",
@@ -6236,11 +6238,11 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6236
6238
  return S.add(g(E)), `.set("${w}", () => import("${E}"))
6237
6239
  `;
6238
6240
  }
6239
- }).filter(D), $ = `${v}export * from "./${Tt}";`, k = Array.from(S).join("") + $, P = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6241
+ }).filter(D), $ = `${v}export * from "./${Tt}";`, k = Array.from(S).join("") + $, x = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6240
6242
  ${$}
6241
6243
  deferredLoaders${T.join("")};` : $;
6242
6244
  return [
6243
- F(u.join(e.dir.dist, p, Oi), P),
6245
+ F(u.join(e.dir.dist, p, Oi), x),
6244
6246
  F(u.join(e.dir.dist, p, jl), k)
6245
6247
  ];
6246
6248
  });
@@ -6304,7 +6306,7 @@ function Ol(e, t) {
6304
6306
  const d = s(r.webTypes);
6305
6307
  e["web-types"] !== d && (n = !0, e["web-types"] = d);
6306
6308
  }
6307
- const a = `./${Be}.css`, c = t.options.build?.cdn?.namespace !== void 0, l = ie(t.dir.root, u.join(t.dir.dist, a));
6309
+ const a = `./${Ee}.css`, c = t.options.build?.cdn?.namespace !== void 0, l = ie(t.dir.root, u.join(t.dir.dist, a));
6308
6310
  if (!c) {
6309
6311
  e.exports?.[a] === void 0 && (e.exports ??= {}, e.exports[a] = l, n = !0);
6310
6312
  const d = e.name.split("/").length > 1 ? e.name.split("/")[1] : e.name;
@@ -6463,7 +6465,7 @@ const ys = (e) => e.flatMap(
6463
6465
  value: {
6464
6466
  type: ql(t.type.values?.map(pn))
6465
6467
  }
6466
- })) ?? [], ql = (e) => e?.length === 1 ? e[0] : e, Ye = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, $e = {
6468
+ })) ?? [], ql = (e) => e?.length === 1 ? e[0] : e, Ye = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, xe = {
6467
6469
  slots: "Slots",
6468
6470
  events: "Events",
6469
6471
  cssProperties: "CSS Properties",
@@ -6480,21 +6482,21 @@ function gs(e) {
6480
6482
  const Pe = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
6481
6483
  ${t.join(`
6482
6484
  `)}`, Ul = (e) => Pe(
6483
- $e.slots,
6485
+ xe.slots,
6484
6486
  e?.map((t) => `- ${t.name ? `**${t.name}**` : "_default_"} - ${t.description}`)
6485
6487
  ), Gl = (e) => Pe(
6486
- $e.events,
6488
+ xe.events,
6487
6489
  e?.filter((t) => t.name !== null && t.name !== void 0).map((t) => `- **${t.name}**${t.description ? ` - ${t.description}` : ""}`)
6488
6490
  ), Vl = (e = []) => Pe(
6489
- $e.cssProperties,
6491
+ xe.cssProperties,
6490
6492
  e?.map(
6491
6493
  (t) => `- **${t.name}** - ${t.description} ${t.default ? `_(default: ${t.default})_}` : ""}`
6492
6494
  )
6493
6495
  ), Xl = (e) => Pe(
6494
- $e.cssParts,
6496
+ xe.cssParts,
6495
6497
  e?.map((t) => `- **${t.name}** - ${t.description}`)
6496
6498
  ), Ql = (e) => Pe(
6497
- $e.methods,
6499
+ xe.methods,
6498
6500
  e.filter(Cs).map(
6499
6501
  (t) => [`- \`${t.name}${t.signature}\``, Ye(t.description, t.deprecated)].filter(Boolean).join(" - ")
6500
6502
  )
@@ -6618,7 +6620,7 @@ function ld({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6618
6620
  `interface Lumina${t} extends ${s}h.JSX.HTMLAttributes<HTML${t}Element> {
6619
6621
  `,
6620
6622
  n.map(
6621
- (a) => ` ${Ce(`on${a.name}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6623
+ (a) => ` ${$e(`on${a.name}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6622
6624
  `
6623
6625
  ).join(""),
6624
6626
  "}",
@@ -6652,7 +6654,7 @@ function pd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6652
6654
  `interface Preact${t} extends ${s}PreactJsx.HTMLAttributes<HTML${t}Element> {
6653
6655
  `,
6654
6656
  n.map(
6655
- (a) => ` ${Ce(`on${a.name}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6657
+ (a) => ` ${$e(`on${a.name}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6656
6658
  `
6657
6659
  ).join(""),
6658
6660
  "}",
@@ -6697,7 +6699,7 @@ function md({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6697
6699
  `interface React${t} extends ${s}HTMLProps<HTML${t}Element> {
6698
6700
  `,
6699
6701
  n.map(
6700
- (a) => ` ${Ce(`on${a.name}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6702
+ (a) => ` ${$e(`on${a.name}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6701
6703
  `
6702
6704
  ).join(""),
6703
6705
  "}",
@@ -6731,7 +6733,7 @@ function yd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6731
6733
  `interface Stencil${t} extends ${s}StencilJsx.HTMLAttributes<HTML${t}Element> {
6732
6734
  `,
6733
6735
  n.map(
6734
- (a) => ` ${Ce(`on${a.name[0].toUpperCase()}${a.name.slice(1)}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6736
+ (a) => ` ${$e(`on${a.name[0].toUpperCase()}${a.name.slice(1)}`)}?: EventHandler<HTML${t}Element["${a.name}"]>;
6735
6737
  `
6736
6738
  ).join(""),
6737
6739
  "}",
@@ -6844,7 +6846,7 @@ async function Cd(e, t) {
6844
6846
  }
6845
6847
  function $d(e) {
6846
6848
  const t = e.events?.map(
6847
- (i) => ` ${Ce(`on${Is(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6849
+ (i) => ` ${$e(`on${Is(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6848
6850
  ).join(`
6849
6851
  `);
6850
6852
  return `
@@ -6859,7 +6861,7 @@ ${t}
6859
6861
  `;
6860
6862
  }
6861
6863
  function Kd(e = {}) {
6862
- const t = new x(e), i = [
6864
+ const t = new P(e), i = [
6863
6865
  t._plugin,
6864
6866
  yl(t),
6865
6867
  hl(t),
@@ -6898,7 +6900,7 @@ const Wd = {
6898
6900
  isPropertyEscapeNeeded: Qe
6899
6901
  };
6900
6902
  export {
6901
- Je as LuminaApiExtractor,
6903
+ Ke as LuminaApiExtractor,
6902
6904
  Wd as exportsForCodemod,
6903
6905
  Ve as inferCdnUrl,
6904
6906
  Kd as useLumina
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.33.0-next.119",
3
+ "version": "4.33.0-next.120",
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.33.0-next.119",
22
- "@arcgis/components-build-utils": "4.33.0-next.119",
23
- "@arcgis/components-utils": "4.33.0-next.119",
21
+ "@arcgis/api-extractor": "4.33.0-next.120",
22
+ "@arcgis/components-build-utils": "4.33.0-next.120",
23
+ "@arcgis/components-utils": "4.33.0-next.120",
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.33.0-next.119"
40
+ "@arcgis/lumina": "~4.33.0-next.120"
41
41
  }
42
42
  }