@arcgis/lumina-compiler 4.34.0-next.60 → 4.34.0-next.62

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.
@@ -11,7 +11,7 @@ import { CustomElementInterdependencies } from '../entrypoints/config';
11
11
  import { getCompilerOptionsForPrinter } from '../transformers';
12
12
  import { getPrinter } from '../transformers/internalTypeScriptApis';
13
13
  import { getLocalDefinedComponentsFromApiJson } from '../entrypoints/resolveTagName';
14
- import { Deferred } from '@arcgis/components-utils';
14
+ import { Deferred } from '@arcgis/toolkit/promise';
15
15
  export declare class CompilerContext {
16
16
  /**
17
17
  * The path to the resolved TypeScript configuration
package/dist/index.js CHANGED
@@ -3,10 +3,14 @@ import ps from "vite-plugin-dts";
3
3
  import o from "typescript";
4
4
  import { f as w, l as T } from "./logger-KpGU2b3R.js";
5
5
  import { getMemberName as Q, apiMemberToSynthesizedComments as X, globalPackageIdentifier as Oi, setApiDocFromJsDoc as fe, ApiExtractor as us, hasIgnoredModifier as ms, symbolToDocs as Wt, setDefaultFromInitializer as Bt, multipleJsDocTags as fs, findDecorator as _t, isApiMethod as gs, isApiProperty as ys } from "@arcgis/api-extractor";
6
- import { isNotUndefined as j, mappedFind as he, camelToKebab as Tt, kebabToPascal as hs, uncapitalize as mt, identity as Ji, Deferred as vs, getPreamble as Ss, capitalize as ws } from "@arcgis/components-utils";
7
- import { readdir as ze, readFile as O, rm as bs, mkdir as Z, cp as Ts, writeFile as D, copyFile as Es } from "node:fs/promises";
8
- import { lazyMetaSubItemJoiner as Cs, lazyMetaItemJoiner as et, lazyMetaGroupJoiner as $s, propertyFlagAttribute as Ht, propertyFlagReflect as xs, propertyFlagBoolean as Ps, propertyFlagNumber as ks, propertyFlagState as Is, propertyFlagReadOnly as As, propertyFlagNoAccessor as Ls } from "@arcgis/lumina/config";
9
- import { build as Fs } from "esbuild";
6
+ import { isNotUndefined as j } from "@arcgis/toolkit/predicate";
7
+ import { readdir as ze, readFile as O, rm as hs, mkdir as Z, cp as vs, writeFile as D, copyFile as Ss } from "node:fs/promises";
8
+ import { mappedFind as he } from "@arcgis/toolkit/array";
9
+ import { camelToKebab as Tt, kebabToPascal as ws, uncapitalize as mt, getPreamble as bs, capitalize as Ts } from "@arcgis/toolkit/string";
10
+ import { lazyMetaSubItemJoiner as Es, lazyMetaItemJoiner as et, lazyMetaGroupJoiner as Cs, propertyFlagAttribute as Ht, propertyFlagReflect as $s, propertyFlagBoolean as xs, propertyFlagNumber as Ps, propertyFlagState as ks, propertyFlagReadOnly as Is, propertyFlagNoAccessor as As } from "@arcgis/lumina/config";
11
+ import { build as Ls } from "esbuild";
12
+ import { identity as Ji } from "@arcgis/toolkit/function";
13
+ import { Deferred as Fs } from "@arcgis/toolkit/promise";
10
14
  import { glob as Ns } from "glob";
11
15
  import Ds from "mime-types";
12
16
  import { writeFileSync as Ki } from "node:fs";
@@ -2316,8 +2320,8 @@ export declare const defineCustomElements: import("@arcgis/lumina").DefineCustom
2316
2320
  "]"
2317
2321
  ].join("");
2318
2322
  function Oo(e) {
2319
- const { properties: t, asyncMethods: i, syncMethods: n } = gn(e), s = t.map((p) => p.join(Cs)).join(et), r = i.join(et), a = n.join(et), c = [s, r, a], l = c.findLastIndex((p) => p.length > 0), d = c.slice(0, l + 1);
2320
- return d.length > 0 ? `"${d.join($s)}"` : "";
2323
+ const { properties: t, asyncMethods: i, syncMethods: n } = gn(e), s = t.map((p) => p.join(Es)).join(et), r = i.join(et), a = n.join(et), c = [s, r, a], l = c.findLastIndex((p) => p.length > 0), d = c.slice(0, l + 1);
2324
+ return d.length > 0 ? `"${d.join(Cs)}"` : "";
2321
2325
  }
2322
2326
  function gn(e) {
2323
2327
  const t = e.members.filter((r) => r.kind === "field").map((r) => {
@@ -2497,7 +2501,7 @@ class We extends us {
2497
2501
  * prefix (Arcgis), where as tag name always does. This also matches
2498
2502
  * Stencil's behavior.
2499
2503
  */
2500
- pascalCaseName: hs(n),
2504
+ pascalCaseName: ws(n),
2501
2505
  privacy: void 0,
2502
2506
  importPath: "",
2503
2507
  members: [],
@@ -4209,18 +4213,18 @@ function ic(e, t) {
4209
4213
  if (d === "attribute")
4210
4214
  return n = !1, i |= m ? Ht : 0, !m && !f;
4211
4215
  if (d === "reflect")
4212
- return i |= m ? xs : 0, !1;
4216
+ return i |= m ? $s : 0, !1;
4213
4217
  if (d === "type" && o.isIdentifier(p)) {
4214
4218
  if (p.text === "Boolean")
4215
- return i |= Ps, !1;
4219
+ return i |= xs, !1;
4216
4220
  if (p.text === "Number")
4217
- return i |= ks, !1;
4221
+ return i |= Ps, !1;
4218
4222
  } else {
4219
4223
  if (d === "state")
4220
- return n = !1, i |= m ? Is : 0, !1;
4224
+ return n = !1, i |= m ? ks : 0, !1;
4221
4225
  if (d === "readOnly")
4222
- return i |= m ? As : 0, !1;
4223
- d === "noAccessor" && (i |= m ? Ls : 0);
4226
+ return i |= m ? Is : 0, !1;
4227
+ d === "noAccessor" && (i |= m ? As : 0);
4224
4228
  }
4225
4229
  return !0;
4226
4230
  }
@@ -4669,14 +4673,14 @@ function wc(e, t) {
4669
4673
  l[0] === "timerToUpdateProgram" ? s : c,
4670
4674
  ...l
4671
4675
  ), n.afterProgramCreate = (a) => {
4672
- e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new vs();
4676
+ e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Fs();
4673
4677
  }, e.typeScriptWatchProgram = o.createWatchProgram(n), e.typeScriptConfig = e.typeScriptProgram.getCompilerOptions();
4674
4678
  }
4675
4679
  e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = vc(e), e._typeScriptPrinter = tn(e._compilerOptionsForPrinter);
4676
4680
  }
4677
4681
  async function bc(e, t, i) {
4678
4682
  const n = u.resolve(e.dir.root, t);
4679
- await z(n) && await bs(n, { recursive: !0, force: !0 }), await Z(n, { recursive: !0 }), await Ts(e.dir.distCdn, u.join(n, "build"), { recursive: !0 });
4683
+ await z(n) && await hs(n, { recursive: !0, force: !0 }), await Z(n, { recursive: !0 }), await vs(e.dir.distCdn, u.join(n, "build"), { recursive: !0 });
4680
4684
  const s = [
4681
4685
  "index.html",
4682
4686
  ...await Ns("**/*.html", {
@@ -4780,7 +4784,7 @@ async function Ec(e, t, i, n, s) {
4780
4784
  "Source maps in the CDN build are not yet supported - open a feature request with Lumina maintainers if it is needed"
4781
4785
  )
4782
4786
  );
4783
- return await Fs({
4787
+ return await Ls({
4784
4788
  bundle: !0,
4785
4789
  minify: s ? !0 : r === "production",
4786
4790
  treeShaking: !0,
@@ -5393,7 +5397,7 @@ const Xn = Ri ? (e) => e : (e) => e.type === "dynamic" ? {
5393
5397
  async function Pi(e, t, i, n) {
5394
5398
  const s = i.find((r) => r.match(t, n));
5395
5399
  if (s === void 0)
5396
- await Es(e, t);
5400
+ await Ss(e, t);
5397
5401
  else {
5398
5402
  const r = await O(e, "utf8"), a = s.transform(r, t, n);
5399
5403
  await D(t, a);
@@ -5712,7 +5716,7 @@ const ts = (e, t) => ({
5712
5716
  });
5713
5717
  function il(e = J()) {
5714
5718
  const t = e.version ?? "0.0.1";
5715
- return Ss(t);
5719
+ return bs(t);
5716
5720
  }
5717
5721
  const nl = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5718
5722
  Object.defineProperty(t, i, {
@@ -6865,7 +6869,7 @@ async function ld(e, t) {
6865
6869
  }
6866
6870
  function dd(e) {
6867
6871
  const t = e.events?.map(
6868
- (i) => ` ${Ce(`on${ws(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6872
+ (i) => ` ${Ce(`on${Ts(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6869
6873
  ).join(`
6870
6874
  `);
6871
6875
  return `
@@ -6879,8 +6883,8 @@ ${t}
6879
6883
  );
6880
6884
  `;
6881
6885
  }
6882
- function Cd(e = {}) {
6883
- const t = new x(e), i = [
6886
+ function kd(e = {}) {
6887
+ const t = new x(e), n = [
6884
6888
  t._plugin,
6885
6889
  el(t),
6886
6890
  tl(t),
@@ -6900,9 +6904,9 @@ function Cd(e = {}) {
6900
6904
  od(t),
6901
6905
  Vc(t)
6902
6906
  ].filter(j);
6903
- return i.context = t, i;
6907
+ return n.context = t, n;
6904
6908
  }
6905
- const $d = {
6909
+ const Id = {
6906
6910
  initializeComponentDependencies: vn,
6907
6911
  updateLuminaTs: ns,
6908
6912
  propertyToAttributeMappings: _,
@@ -6917,7 +6921,7 @@ const $d = {
6917
6921
  };
6918
6922
  export {
6919
6923
  We as LuminaApiExtractor,
6920
- $d as exportsForCodemod,
6924
+ Id as exportsForCodemod,
6921
6925
  Ge as inferCdnUrl,
6922
- Cd as useLumina
6926
+ kd as useLumina
6923
6927
  };
@@ -1,7 +1,7 @@
1
1
  import { render as C } from "lit-html";
2
2
  import { unsafeStatic as m, html as w } from "lit-html/static.js";
3
3
  import { devOnly$getLitElementTagNameAndRuntime as $, LitElement as S } from "@arcgis/lumina";
4
- import { camelToKebab as _ } from "@arcgis/components-utils";
4
+ import { camelToKebab as _ } from "@arcgis/toolkit/string";
5
5
  import { onTestFinished as x, expect as E } from "vitest";
6
6
  import O from "vitest-fail-on-console";
7
7
  import R from "js-beautify";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.34.0-next.60",
3
+ "version": "4.34.0-next.62",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
- "@arcgis/api-extractor": "4.34.0-next.60",
22
- "@arcgis/components-build-utils": "4.34.0-next.60",
23
- "@arcgis/components-utils": "4.34.0-next.60",
21
+ "@arcgis/api-extractor": "4.34.0-next.62",
22
+ "@arcgis/components-build-utils": "4.34.0-next.62",
23
+ "@arcgis/toolkit": "4.34.0-next.62",
24
24
  "chalk": "^5.4.1",
25
25
  "esbuild": "^0.25.5",
26
26
  "glob": "^11.0.3",
@@ -31,7 +31,7 @@
31
31
  "vitest-fail-on-console": "^0.7.1"
32
32
  },
33
33
  "peerDependencies": {
34
- "@arcgis/lumina": "~4.34.0-next.60",
34
+ "@arcgis/lumina": "~4.34.0-next.62",
35
35
  "lit": "^3.3.0",
36
36
  "typescript": "~5.8.3",
37
37
  "vite": "^7.0.0",