@arcgis/lumina-compiler 5.0.0-next.83 → 5.0.0-next.85

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 +78 -78
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -2630,13 +2630,13 @@ console.log("${s.tagName} is ready to go!");
2630
2630
  } else
2631
2631
  i.description ||= C.description;
2632
2632
  }
2633
- let I, A;
2633
+ let P, A;
2634
2634
  w.forEach((C) => {
2635
- if (I ??= o.isGetAccessor(C) ? C : void 0, A ??= o.isSetAccessor(C) ? C : void 0, !("initializer" in C))
2635
+ if (P ??= o.isGetAccessor(C) ? C : void 0, A ??= o.isSetAccessor(C) ? C : void 0, !("initializer" in C))
2636
2636
  return;
2637
2637
  const S = C;
2638
2638
  d ||= S.modifiers?.some((k) => k.kind === o.SyntaxKind.ReadonlyKeyword) ?? !1, ut(S, i, S.getSourceFile());
2639
- }), g && I !== void 0 && A !== void 0 && I.type?.getText() !== A.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${h.getText(this.file)}` });
2639
+ }), d ||= P !== void 0 && A === void 0, g && P !== void 0 && A !== void 0 && P.type?.getText() !== A.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${h.getText(this.file)}` });
2640
2640
  }
2641
2641
  if (d && (i.readonly = !0, n || (i.docsOnlyReadonly = !0)), i.type.values && i.type.values.length > 0 && i.type.values?.every((h) => h.type === "boolean") && (i.default ? f && this.context.viteCommand === "build" && i.deprecated === void 0 && (Ue.loggedBooleanWarning || this.context.logLintWarning(
2642
2642
  `Boolean properties should default to "false". Found default value "true" in ${this.apiComponent.name}.${i.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
@@ -2976,8 +2976,8 @@ async function Sn(e, t) {
2976
2976
  if (a ? await U(c) : !1) {
2977
2977
  const g = await B(c, "utf8"), y = Yo(g, "bootstrapLazy("), h = g.indexOf(", options", y), v = g.slice(y, h), b = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
2978
2978
  try {
2979
- const w = JSON.parse(b), I = aa(w, { packageName: e, getImportPath: r });
2980
- return { packageName: e, type: "stencil", components: I, packageLocation: i, packageJson: n };
2979
+ const w = JSON.parse(b), P = aa(w, { packageName: e, getImportPath: r });
2980
+ return { packageName: e, type: "stencil", components: P, packageLocation: i, packageJson: n };
2981
2981
  } catch (w) {
2982
2982
  T.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
2983
2983
  Error: ${String(w)}`);
@@ -3549,10 +3549,10 @@ function Ia(e, t) {
3549
3549
  const w = Te(v.expression);
3550
3550
  if (!li(w))
3551
3551
  return t;
3552
- const I = c.statements.slice(0, -1);
3553
- if (I.some($n))
3552
+ const P = c.statements.slice(0, -1);
3553
+ if (P.some($n))
3554
3554
  return t;
3555
- d = I.length === 0, l = w;
3555
+ d = P.length === 0, l = w;
3556
3556
  }
3557
3557
  const p = o.isJsxElement(l) ? l.openingElement : l, f = An(p);
3558
3558
  if (f === -1)
@@ -3794,13 +3794,13 @@ Found ${C.getText(e.sourceFile)}`
3794
3794
  throw Error(
3795
3795
  `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
3796
3796
  );
3797
- const w = (d === ae || d === te) && b.parts.length === 0, I = [
3797
+ const w = (d === ae || d === te) && b.parts.length === 0, P = [
3798
3798
  "<",
3799
3799
  typeof c == "string" ? c : r,
3800
3800
  ...h,
3801
3801
  w ? `${h.length === 0 ? "" : " "}/>` : ">"
3802
- ], A = v || w ? I : [
3803
- ...I,
3802
+ ], A = v || w ? P : [
3803
+ ...P,
3804
3804
  /**
3805
3805
  * If parent was an HTML element (e.g. `<svg>`), but children are SVG
3806
3806
  * fragments (e.g. `<circle />`, then wrap the children in their own
@@ -4677,7 +4677,7 @@ async function hc(e, t, i) {
4677
4677
  );
4678
4678
  if (w === Number.POSITIVE_INFINITY)
4679
4679
  throw Error(E("@arcgis/lumina:buildWebApp", `Failed to find <head> or <style> tag in ${g}`));
4680
- const I = h.slice(0, w) + b + h.slice(w), A = e.options?.build?.webApp?.transformFile?.(I, y, e) ?? I;
4680
+ const P = h.slice(0, w) + b + h.slice(w), A = e.options?.build?.webApp?.transformFile?.(P, y, e) ?? P;
4681
4681
  await F(y, A, "utf-8");
4682
4682
  })
4683
4683
  ), await e.options.build?.webApp?.afterBuildEnd?.(e);
@@ -4988,10 +4988,10 @@ ${O.code}`
4988
4988
  }
4989
4989
  f = f.slice(0, k) + W + f.slice(k + L);
4990
4990
  }
4991
- const [m, g] = fi(e), y = i.findLastIndex((S) => S.length > 0), h = i.slice(0, y + 1).join(","), b = `export default $arcgis.t(${i.length === 0 ? "_" : `([${h}])`}=>{`, w = n.join(","), I = `${g}},${w})`;
4991
+ const [m, g] = fi(e), y = i.findLastIndex((S) => S.length > 0), h = i.slice(0, y + 1).join(","), b = `export default $arcgis.t(${i.length === 0 ? "_" : `([${h}])`}=>{`, w = n.join(","), P = `${g}},${w})`;
4992
4992
  let A = e.code.slice(c, m);
4993
4993
  A = `${s.join("")}${A}`, A = gi(A, t);
4994
- const C = `${f}${b}${A}${I}`;
4994
+ const C = `${f}${b}${A}${P}`;
4995
4995
  e.code = C;
4996
4996
  }
4997
4997
  function fi(e) {
@@ -5609,7 +5609,7 @@ const Yn = (e, t) => ({
5609
5609
  * the CDN build
5610
5610
  */
5611
5611
  loader: "src/loader.ts"
5612
- }, { loader: b, ...w } = v, I = e.environment === "development" || e.isInTest ? {
5612
+ }, { loader: b, ...w } = v, P = e.environment === "development" || e.isInTest ? {
5613
5613
  "process.env.ESRI_INTERNAL": "true"
5614
5614
  } : void 0, A = !import.meta.url.includes("node_modules"), C = {
5615
5615
  /**
@@ -5719,7 +5719,7 @@ const Yn = (e, t) => ({
5719
5719
  forceRerunTriggers: h === void 0 ? ["**/*.{ts,tsx}"] : void 0
5720
5720
  },
5721
5721
  optimizeDeps: C,
5722
- define: I
5722
+ define: P
5723
5723
  };
5724
5724
  }
5725
5725
  return {
@@ -5766,7 +5766,7 @@ const Yn = (e, t) => ({
5766
5766
  emptyOutDir: l ?? !f
5767
5767
  },
5768
5768
  optimizeDeps: C,
5769
- define: I,
5769
+ define: P,
5770
5770
  test: {
5771
5771
  /*
5772
5772
  * If in browser, run all test files that include *.e2e.* in the name.
@@ -5806,7 +5806,7 @@ function Yc(e = R()) {
5806
5806
  const t = e.version ?? "0.0.1";
5807
5807
  return vs(t);
5808
5808
  }
5809
- const el = (e) => `/*! ${e} */`, P = (e) => (t, i) => {
5809
+ const el = (e) => `/*! ${e} */`, x = (e) => (t, i) => {
5810
5810
  Object.defineProperty(t, i, {
5811
5811
  get() {
5812
5812
  throw Error(
@@ -6031,7 +6031,7 @@ ${h}` : ""}`,
6031
6031
  const cl = /component: ["']([^"']+)["']/u, ll = /export const (\w+)/gu, dl = /name: ["']([^"']+)["']/u, pl = /^\s*\*\s?/gmu, ml = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), ul = (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(), fl = { node: "^24.11" }, G = {
6032
6032
  engines: fl
6033
6033
  };
6034
- var gl = Object.defineProperty, x = (e, t, i, n) => {
6034
+ var gl = Object.defineProperty, I = (e, t, i, n) => {
6035
6035
  for (var s = void 0, r = e.length - 1, a; r >= 0; r--)
6036
6036
  (a = e[r]) && (s = a(t, i, s) || s);
6037
6037
  return s && gl(t, i, s), s;
@@ -6074,8 +6074,8 @@ class $ {
6074
6074
  H,
6075
6075
  "Vite output directory is outside the root directory. This is not officially supported by Lumina and may lead to unexpected behavior. Contact Lumina maintainers if you need this to be supported."
6076
6076
  ), this.isInStorybook = l.resolve.conditions.includes("storybook"), this.isFullApiExtraction = this.viteCommand === "build" || this.isInStorybook, this.hmrEnabled = this.viteCommand === "serve" && !this.isInTest && !!(l.server?.hmr ?? !0), this.isInBuildWatch = l.command === "build" && l.build.watch != null;
6077
- const I = this.isInTest && l.test?.browser?.enabled === !0 && l.resolve.conditions.includes("node"), A = this.isInTest && l.test?.browser?.enabled !== !0 && l.resolve.conditions.includes("node");
6078
- this.apiJsonEnabled = !I && !this.isInPuppeteerTestBackEnd && !A, this.apiJsonEnabled || (this._localDefinedComponents = {}, this.options.build ??= {}, this.options.build.dependencies ??= {}, this.options.build.dependencies.silenceUnknownJsxElementUsage = () => !0, this.typeScriptHost = o.createCompilerHost({}, !1)), this._startCollectingComponentStories(), gc(this, l.build.sourcemap !== !1), is(this) && Ee(this);
6077
+ const P = this.isInTest && l.test?.browser?.enabled === !0 && l.resolve.conditions.includes("node"), A = this.isInTest && l.test?.browser?.enabled !== !0 && l.resolve.conditions.includes("node");
6078
+ this.apiJsonEnabled = !P && !this.isInPuppeteerTestBackEnd && !A, this.apiJsonEnabled || (this._localDefinedComponents = {}, this.options.build ??= {}, this.options.build.dependencies ??= {}, this.options.build.dependencies.silenceUnknownJsxElementUsage = () => !0, this.typeScriptHost = o.createCompilerHost({}, !1)), this._startCollectingComponentStories(), gc(this, l.build.sourcemap !== !1), is(this) && Ee(this);
6079
6079
  }
6080
6080
  },
6081
6081
  configureServer: {
@@ -6211,86 +6211,86 @@ class $ {
6211
6211
  this._silencedRules?.[t]?.includes(i.slice(this.dir.root.length)) !== !0 ? T.error("@arcgis/lumina:linting", n, i) : T.warn("@arcgis/lumina:linting", n, i);
6212
6212
  }
6213
6213
  }
6214
- x([
6215
- P("buildStart() in build mode or load() serve mode")
6214
+ I([
6215
+ x("buildStart() in build mode or load() serve mode")
6216
6216
  ], $.prototype, "typeScriptHost");
6217
- x([
6218
- P("configResolved()")
6217
+ I([
6218
+ x("configResolved()")
6219
6219
  ], $.prototype, "shouldMinify");
6220
- x([
6221
- P("configResolved()")
6220
+ I([
6221
+ x("configResolved()")
6222
6222
  ], $.prototype, "shouldMinifyJsx");
6223
- x([
6224
- P("configResolved()")
6223
+ I([
6224
+ x("configResolved()")
6225
6225
  ], $.prototype, "dir");
6226
- x([
6227
- P("load()")
6226
+ I([
6227
+ x("load()")
6228
6228
  ], $.prototype, "apiJson");
6229
- x([
6230
- P("load()")
6229
+ I([
6230
+ x("load()")
6231
6231
  ], $.prototype, "apiJsonComponents");
6232
- x([
6233
- P("load()")
6232
+ I([
6233
+ x("load()")
6234
6234
  ], $.prototype, "privateApiJson");
6235
- x([
6236
- P("configResolved()")
6235
+ I([
6236
+ x("configResolved()")
6237
6237
  ], $.prototype, "apiJsonEnabled");
6238
- x([
6239
- P("load() when in build mode")
6238
+ I([
6239
+ x("load() when in build mode")
6240
6240
  ], $.prototype, "_componentPathMapping");
6241
- x([
6242
- P("apply()")
6241
+ I([
6242
+ x("apply()")
6243
6243
  ], $.prototype, "environment");
6244
- x([
6245
- P("apply()")
6244
+ I([
6245
+ x("apply()")
6246
6246
  ], $.prototype, "isInTest");
6247
- x([
6248
- P("apply()")
6247
+ I([
6248
+ x("apply()")
6249
6249
  ], $.prototype, "isInPuppeteerTestBackEnd");
6250
- x([
6251
- P("apply()")
6250
+ I([
6251
+ x("apply()")
6252
6252
  ], $.prototype, "isInPuppeteerTestFrontEnd");
6253
- x([
6254
- P("configResolved()")
6253
+ I([
6254
+ x("configResolved()")
6255
6255
  ], $.prototype, "isInBuildWatch");
6256
- x([
6257
- P("configResolved()")
6256
+ I([
6257
+ x("configResolved()")
6258
6258
  ], $.prototype, "isInStorybook");
6259
- x([
6260
- P("configResolved()")
6259
+ I([
6260
+ x("configResolved()")
6261
6261
  ], $.prototype, "hmrEnabled");
6262
- x([
6263
- P("apply()")
6262
+ I([
6263
+ x("apply()")
6264
6264
  ], $.prototype, "viteCommand");
6265
- x([
6266
- P("configResolved()")
6265
+ I([
6266
+ x("configResolved()")
6267
6267
  ], $.prototype, "isFullApiExtraction");
6268
- x([
6269
- P("configResolved()")
6268
+ I([
6269
+ x("configResolved()")
6270
6270
  ], $.prototype, "viteConfig");
6271
- x([
6272
- P("configureServer()")
6271
+ I([
6272
+ x("configureServer()")
6273
6273
  ], $.prototype, "server");
6274
- x([
6275
- P("load()")
6274
+ I([
6275
+ x("load()")
6276
6276
  ], $.prototype, "componentFiles");
6277
- x([
6278
- P("load()")
6277
+ I([
6278
+ x("load()")
6279
6279
  ], $.prototype, "componentStoryFiles");
6280
- x([
6281
- P("configResolved()")
6280
+ I([
6281
+ x("configResolved()")
6282
6282
  ], $.prototype, "componentStoriesPromise");
6283
- x([
6284
- P("load()")
6283
+ I([
6284
+ x("load()")
6285
6285
  ], $.prototype, "componentStories");
6286
- x([
6287
- P("transform()")
6286
+ I([
6287
+ x("transform()")
6288
6288
  ], $.prototype, "_globalHydratedCssString");
6289
- x([
6290
- P("configResolved()")
6289
+ I([
6290
+ x("configResolved()")
6291
6291
  ], $.prototype, "_compilerOptionsForPrinter");
6292
- x([
6293
- P("configResolved()")
6292
+ I([
6293
+ x("configResolved()")
6294
6294
  ], $.prototype, "_typeScriptPrinter");
6295
6295
  const Ci = "makeRuntime(", yl = "@arcgis/core", hl = "@arcgis/lumina:injectRuntimeOptions", vl = (e) => ({
6296
6296
  name: hl,
@@ -6402,9 +6402,9 @@ Possible causes:
6402
6402
  return b.add(h(k)), `.set("${S}", () => import("${k}"))
6403
6403
  `;
6404
6404
  }
6405
- }).filter(j), I = `${v}export * from "./${Pt}";`, A = Array.from(b).join("") + I, C = w.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6406
- ${I}
6407
- deferredLoaders${w.join("")};` : I;
6405
+ }).filter(j), P = `${v}export * from "./${Pt}";`, A = Array.from(b).join("") + P, C = w.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6406
+ ${P}
6407
+ deferredLoaders${w.join("")};` : P;
6408
6408
  return [
6409
6409
  F(u.join(e.dir.dist, p, $i), C),
6410
6410
  F(u.join(e.dir.dist, p, wl), A)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "5.0.0-next.83",
3
+ "version": "5.0.0-next.85",
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": "5.0.0-next.83",
22
- "@arcgis/components-build-utils": "5.0.0-next.83",
23
- "@arcgis/toolkit": "~5.0.0-next.83",
21
+ "@arcgis/api-extractor": "5.0.0-next.85",
22
+ "@arcgis/components-build-utils": "5.0.0-next.85",
23
+ "@arcgis/toolkit": "~5.0.0-next.85",
24
24
  "chalk": "^5.4.1",
25
25
  "esbuild": "^0.25.12",
26
26
  "glob": "^11.0.3",
@@ -30,7 +30,7 @@
30
30
  "vite-plugin-dts": "^4.5.4"
31
31
  },
32
32
  "peerDependencies": {
33
- "@arcgis/lumina": "~5.0.0-next.83",
33
+ "@arcgis/lumina": "~5.0.0-next.85",
34
34
  "lit": "^3.3.0",
35
35
  "typescript": "~5.9.3",
36
36
  "vite": "^7.2.2",