@arcgis/lumina-compiler 5.0.0-next.84 → 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.
- package/dist/index.js +78 -78
- 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
|
|
2633
|
+
let P, A;
|
|
2634
2634
|
w.forEach((C) => {
|
|
2635
|
-
if (
|
|
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 &&
|
|
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),
|
|
2980
|
-
return { packageName: e, type: "stencil", components:
|
|
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
|
|
3553
|
-
if (
|
|
3552
|
+
const P = c.statements.slice(0, -1);
|
|
3553
|
+
if (P.some($n))
|
|
3554
3554
|
return t;
|
|
3555
|
-
d =
|
|
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,
|
|
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 ?
|
|
3803
|
-
...
|
|
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
|
|
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(","),
|
|
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}${
|
|
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,
|
|
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:
|
|
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:
|
|
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} */`,
|
|
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,
|
|
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
|
|
6078
|
-
this.apiJsonEnabled = !
|
|
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
|
-
|
|
6215
|
-
|
|
6214
|
+
I([
|
|
6215
|
+
x("buildStart() in build mode or load() serve mode")
|
|
6216
6216
|
], $.prototype, "typeScriptHost");
|
|
6217
|
-
|
|
6218
|
-
|
|
6217
|
+
I([
|
|
6218
|
+
x("configResolved()")
|
|
6219
6219
|
], $.prototype, "shouldMinify");
|
|
6220
|
-
|
|
6221
|
-
|
|
6220
|
+
I([
|
|
6221
|
+
x("configResolved()")
|
|
6222
6222
|
], $.prototype, "shouldMinifyJsx");
|
|
6223
|
-
|
|
6224
|
-
|
|
6223
|
+
I([
|
|
6224
|
+
x("configResolved()")
|
|
6225
6225
|
], $.prototype, "dir");
|
|
6226
|
-
|
|
6227
|
-
|
|
6226
|
+
I([
|
|
6227
|
+
x("load()")
|
|
6228
6228
|
], $.prototype, "apiJson");
|
|
6229
|
-
|
|
6230
|
-
|
|
6229
|
+
I([
|
|
6230
|
+
x("load()")
|
|
6231
6231
|
], $.prototype, "apiJsonComponents");
|
|
6232
|
-
|
|
6233
|
-
|
|
6232
|
+
I([
|
|
6233
|
+
x("load()")
|
|
6234
6234
|
], $.prototype, "privateApiJson");
|
|
6235
|
-
|
|
6236
|
-
|
|
6235
|
+
I([
|
|
6236
|
+
x("configResolved()")
|
|
6237
6237
|
], $.prototype, "apiJsonEnabled");
|
|
6238
|
-
|
|
6239
|
-
|
|
6238
|
+
I([
|
|
6239
|
+
x("load() when in build mode")
|
|
6240
6240
|
], $.prototype, "_componentPathMapping");
|
|
6241
|
-
|
|
6242
|
-
|
|
6241
|
+
I([
|
|
6242
|
+
x("apply()")
|
|
6243
6243
|
], $.prototype, "environment");
|
|
6244
|
-
|
|
6245
|
-
|
|
6244
|
+
I([
|
|
6245
|
+
x("apply()")
|
|
6246
6246
|
], $.prototype, "isInTest");
|
|
6247
|
-
|
|
6248
|
-
|
|
6247
|
+
I([
|
|
6248
|
+
x("apply()")
|
|
6249
6249
|
], $.prototype, "isInPuppeteerTestBackEnd");
|
|
6250
|
-
|
|
6251
|
-
|
|
6250
|
+
I([
|
|
6251
|
+
x("apply()")
|
|
6252
6252
|
], $.prototype, "isInPuppeteerTestFrontEnd");
|
|
6253
|
-
|
|
6254
|
-
|
|
6253
|
+
I([
|
|
6254
|
+
x("configResolved()")
|
|
6255
6255
|
], $.prototype, "isInBuildWatch");
|
|
6256
|
-
|
|
6257
|
-
|
|
6256
|
+
I([
|
|
6257
|
+
x("configResolved()")
|
|
6258
6258
|
], $.prototype, "isInStorybook");
|
|
6259
|
-
|
|
6260
|
-
|
|
6259
|
+
I([
|
|
6260
|
+
x("configResolved()")
|
|
6261
6261
|
], $.prototype, "hmrEnabled");
|
|
6262
|
-
|
|
6263
|
-
|
|
6262
|
+
I([
|
|
6263
|
+
x("apply()")
|
|
6264
6264
|
], $.prototype, "viteCommand");
|
|
6265
|
-
|
|
6266
|
-
|
|
6265
|
+
I([
|
|
6266
|
+
x("configResolved()")
|
|
6267
6267
|
], $.prototype, "isFullApiExtraction");
|
|
6268
|
-
|
|
6269
|
-
|
|
6268
|
+
I([
|
|
6269
|
+
x("configResolved()")
|
|
6270
6270
|
], $.prototype, "viteConfig");
|
|
6271
|
-
|
|
6272
|
-
|
|
6271
|
+
I([
|
|
6272
|
+
x("configureServer()")
|
|
6273
6273
|
], $.prototype, "server");
|
|
6274
|
-
|
|
6275
|
-
|
|
6274
|
+
I([
|
|
6275
|
+
x("load()")
|
|
6276
6276
|
], $.prototype, "componentFiles");
|
|
6277
|
-
|
|
6278
|
-
|
|
6277
|
+
I([
|
|
6278
|
+
x("load()")
|
|
6279
6279
|
], $.prototype, "componentStoryFiles");
|
|
6280
|
-
|
|
6281
|
-
|
|
6280
|
+
I([
|
|
6281
|
+
x("configResolved()")
|
|
6282
6282
|
], $.prototype, "componentStoriesPromise");
|
|
6283
|
-
|
|
6284
|
-
|
|
6283
|
+
I([
|
|
6284
|
+
x("load()")
|
|
6285
6285
|
], $.prototype, "componentStories");
|
|
6286
|
-
|
|
6287
|
-
|
|
6286
|
+
I([
|
|
6287
|
+
x("transform()")
|
|
6288
6288
|
], $.prototype, "_globalHydratedCssString");
|
|
6289
|
-
|
|
6290
|
-
|
|
6289
|
+
I([
|
|
6290
|
+
x("configResolved()")
|
|
6291
6291
|
], $.prototype, "_compilerOptionsForPrinter");
|
|
6292
|
-
|
|
6293
|
-
|
|
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),
|
|
6406
|
-
${
|
|
6407
|
-
deferredLoaders${w.join("")};` :
|
|
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.
|
|
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.
|
|
22
|
-
"@arcgis/components-build-utils": "5.0.0-next.
|
|
23
|
-
"@arcgis/toolkit": "~5.0.0-next.
|
|
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.
|
|
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",
|