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