@arcgis/lumina-compiler 5.1.0-next.70 → 5.1.0-next.72
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 +52 -52
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { externalizeDependencies as cs, path as m, retrievePackageJson as O, fetchPackageLocation as Gt, asyncRetrievePackageJson as Xt, existsAsync as _,
|
|
1
|
+
import { externalizeDependencies as cs, path as m, retrievePackageJson as O, fetchPackageLocation as Gt, asyncRetrievePackageJson as Xt, existsAsync as _, toPosixPathSeparators as ce, isPosix as Yt, toSystemPathSeparators as xe, getCwd as Qt } from "@arcgis/components-build-utils";
|
|
2
2
|
import { isNotUndefined as F } from "@arcgis/toolkit/predicate";
|
|
3
3
|
import { f as b, l as E } from "./logger-63CXuX6h.js";
|
|
4
4
|
import o from "typescript";
|
|
@@ -1154,7 +1154,7 @@ const Ws = (e) => e.replaceAll("\\", "\\\\").replace(zs, "\\${").replaceAll("`",
|
|
|
1154
1154
|
"&": "&",
|
|
1155
1155
|
"<": "<",
|
|
1156
1156
|
">": ">"
|
|
1157
|
-
}, li = (e) => e.replace(Vs, (t) => Gs[t]), rt = (e) => typeof e == "string" && e.includes("-") && !_s.has(e), Xs = ["keyed", "ref", "repeat", "live"], se = "staticHtml", X = "staticSvg", re = "html", ee = "svg", ci = /* @__PURE__ */ Symbol("maybe HTML namespace or maybe SVG"), di = "css", pi = "mathml", ui = [di, re, pi, se, X, ee], Ys = new Set(ui), Qs = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], Zs = "nothing", er = [...Xs, ...ui, ...Qs, Zs], tr = (e) => o.isArrayLiteralExpression(e) && e.elements.every((t) =>
|
|
1157
|
+
}, li = (e) => e.replace(Vs, (t) => Gs[t]), rt = (e) => typeof e == "string" && e.includes("-") && !_s.has(e), Xs = ["keyed", "ref", "repeat", "live"], se = "staticHtml", X = "staticSvg", re = "html", ee = "svg", ci = /* @__PURE__ */ Symbol("maybe HTML namespace or maybe SVG"), di = "css", pi = "mathml", ui = [di, re, pi, se, X, ee], Ys = new Set(ui), Qs = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], Zs = "nothing", er = [...Xs, ...ui, ...Qs, Zs], tr = (e) => o.isArrayLiteralExpression(e) && e.elements.every((t) => pe(t)), pe = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), te = {
|
|
1158
1158
|
[re]: ["lit", "lit/html.js", "lit-html"],
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Sadly, Lit called these "html" and "svg", rather than "staticHtml" and
|
|
@@ -1606,9 +1606,9 @@ const Br = -1, Kr = -2, _r = /["']\.\.?\/[^'"]+/gu, Ur = (e, t, i, s) => e.repla
|
|
|
1606
1606
|
const a = m.join(s, n), c = !n.endsWith(".js") && !n.split("/").at(-1).includes(".") ? Jr(t.dir.distComponents, a) : a, d = c.startsWith(t.dir.distComponents) ? t.dir.dist + We(c.slice(t.dir.dist.length), t.apiExtractor) : c;
|
|
1607
1607
|
if (i === s && a === d)
|
|
1608
1608
|
return r;
|
|
1609
|
-
const l =
|
|
1609
|
+
const l = fe(i, d), p = r.endsWith("/") ? `${l}/` : l;
|
|
1610
1610
|
return `${r[0]}${p}`;
|
|
1611
|
-
}),
|
|
1611
|
+
}), fe = (e, t) => {
|
|
1612
1612
|
const i = m.relative(e, t);
|
|
1613
1613
|
return i.startsWith(".") ? i : `.${m.sep}${i}`;
|
|
1614
1614
|
};
|
|
@@ -1625,7 +1625,7 @@ async function Wr(e, t, i) {
|
|
|
1625
1625
|
// Not applicable for our glob pattern
|
|
1626
1626
|
expandDirectories: !1
|
|
1627
1627
|
})
|
|
1628
|
-
], n = m.relative(e.dir.root, e.dir.src), a = await
|
|
1628
|
+
], n = m.relative(e.dir.root, e.dir.src), a = await ue(e), c = m.join(e.dir.src, "loader.ts"), d = a.map((l) => {
|
|
1629
1629
|
if ("cssHref" in l)
|
|
1630
1630
|
return `<link rel="stylesheet" href="${l.cssHref}">`;
|
|
1631
1631
|
if ("javascriptCode" in l && l.javascriptCode.at(0)?.includes(c) === !0)
|
|
@@ -1642,7 +1642,7 @@ async function Wr(e, t, i) {
|
|
|
1642
1642
|
r.map(async (l, p) => {
|
|
1643
1643
|
const f = p === 0 ? l : m.join(n, l), g = m.join(e.dir.root, f), h = m.join(s, f);
|
|
1644
1644
|
await G(m.dirname(h), { recursive: !0 });
|
|
1645
|
-
const y = await H(g, "utf-8"), v =
|
|
1645
|
+
const y = await H(g, "utf-8"), v = fe(m.dirname(f), `build/${i}`), C = `${d}<script type="module" src="${v}"><\/script>
|
|
1646
1646
|
`, S = Math.min(
|
|
1647
1647
|
...[y.indexOf("<style>"), y.indexOf("<script"), y.indexOf("</head>")].filter(
|
|
1648
1648
|
(x) => x !== -1
|
|
@@ -1842,7 +1842,7 @@ async function qr(e, t, i, s, r) {
|
|
|
1842
1842
|
isProcessing: !1,
|
|
1843
1843
|
isAsync: void 0,
|
|
1844
1844
|
oldSingleExportName: void 0
|
|
1845
|
-
}, f = p.path.slice(n.length);
|
|
1845
|
+
}, f = ce(p.path.slice(n.length));
|
|
1846
1846
|
if (f === Et) {
|
|
1847
1847
|
if (r) {
|
|
1848
1848
|
const h = p.text.match(Vr)?.[0];
|
|
@@ -1943,13 +1943,13 @@ function Pi(e, t) {
|
|
|
1943
1943
|
else {
|
|
1944
1944
|
const D = ki(N, t), M = D?.isAsync === !0;
|
|
1945
1945
|
if (A !== void 0) {
|
|
1946
|
-
const
|
|
1946
|
+
const ye = [];
|
|
1947
1947
|
for (const Fe of A.slice(1, -1).split(",")) {
|
|
1948
1948
|
const [mt, ft = mt] = Fe.split(" as ");
|
|
1949
|
-
M || n.add(ft),
|
|
1949
|
+
M || n.add(ft), ye.push(`${mt}:${ft}`);
|
|
1950
1950
|
}
|
|
1951
1951
|
if (M) {
|
|
1952
|
-
const Fe = D.oldSingleExportName === void 0 ? `{${
|
|
1952
|
+
const Fe = D.oldSingleExportName === void 0 ? `{${ye.join(",")}}` : ye[0].split(":")[1];
|
|
1953
1953
|
a.push([w.index + 6, 0, A.length, Fe]);
|
|
1954
1954
|
}
|
|
1955
1955
|
} else if (z === void 0 && j === void 0)
|
|
@@ -2186,7 +2186,7 @@ function cn(e) {
|
|
|
2186
2186
|
const i = Object.entries(t).filter(([r]) => m.extname(r) === ".css"), s = i.find(([, r]) => r === `./${Q}.css`);
|
|
2187
2187
|
return s ? s[0] : i.length > 0 ? i[0][0] : `./${Q}.css`;
|
|
2188
2188
|
}
|
|
2189
|
-
async function
|
|
2189
|
+
async function ue(e) {
|
|
2190
2190
|
return e._loadersCache ??= dn(e), await e._loadersCache;
|
|
2191
2191
|
}
|
|
2192
2192
|
async function dn(e) {
|
|
@@ -2253,7 +2253,7 @@ async function mn(e) {
|
|
|
2253
2253
|
!e.apiJsonEnabled
|
|
2254
2254
|
)
|
|
2255
2255
|
return Pt(e);
|
|
2256
|
-
const i = (await
|
|
2256
|
+
const i = (await ue(e)).map((s, r) => {
|
|
2257
2257
|
if ("javascriptCode" in s)
|
|
2258
2258
|
return s.javascriptCode.join(`
|
|
2259
2259
|
`);
|
|
@@ -2328,7 +2328,7 @@ const kt = (e) => {
|
|
|
2328
2328
|
path: m.join("/", m.relative(e.dir.root, Ie))
|
|
2329
2329
|
});
|
|
2330
2330
|
}, Qe = "@arcgis/lumina:provideAssets";
|
|
2331
|
-
function
|
|
2331
|
+
function de(e, t, i = lt) {
|
|
2332
2332
|
if (e.viteCommand !== "serve")
|
|
2333
2333
|
throw Error(b(Qe, "serveAssets() is only available when Vite is running in serve mode"));
|
|
2334
2334
|
const s = e._serverConfigured, r = e.server.middlewares.stack.length;
|
|
@@ -2377,11 +2377,11 @@ async function ji(e, t, i = lt) {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
const Fi = Yt ? (e) => e : (e) => e.type === "dynamic" ? {
|
|
2379
2379
|
...e,
|
|
2380
|
-
destination:
|
|
2380
|
+
destination: ce(e.destination)
|
|
2381
2381
|
} : {
|
|
2382
2382
|
...e,
|
|
2383
|
-
source:
|
|
2384
|
-
destination:
|
|
2383
|
+
source: ce(e.source),
|
|
2384
|
+
destination: ce(e.destination)
|
|
2385
2385
|
};
|
|
2386
2386
|
async function xt(e, t, i, s) {
|
|
2387
2387
|
const r = i.find((n) => n.match(t, s));
|
|
@@ -2463,10 +2463,10 @@ function En(e) {
|
|
|
2463
2463
|
e.viteCommand === "build" && (t = At(e));
|
|
2464
2464
|
},
|
|
2465
2465
|
async configureServer(s) {
|
|
2466
|
-
e.server = s,
|
|
2466
|
+
e.server = s, de(e, await t, i()), s.watcher.on("addDir", (r) => {
|
|
2467
2467
|
if (r.endsWith("assets")) {
|
|
2468
2468
|
const n = m.dirname(r);
|
|
2469
|
-
m.join(n, "/") === e.dir.root ?
|
|
2469
|
+
m.join(n, "/") === e.dir.root ? de(e, [Bi], i()) : r.startsWith(e.dir.srcComponents) && de(e, [Ji(r, n)], i());
|
|
2470
2470
|
}
|
|
2471
2471
|
});
|
|
2472
2472
|
},
|
|
@@ -2796,7 +2796,7 @@ function ae(e) {
|
|
|
2796
2796
|
`Documentation file name was expected to be a relative path (relative to dist). Instead, received an absolute path: ${e}`
|
|
2797
2797
|
)
|
|
2798
2798
|
);
|
|
2799
|
-
return
|
|
2799
|
+
return ce(e);
|
|
2800
2800
|
}
|
|
2801
2801
|
const le = {
|
|
2802
2802
|
vsCodeHtml: "docs/vscode.html-custom-data.json",
|
|
@@ -2878,7 +2878,7 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
|
|
|
2878
2878
|
// Add imports to index.html before Vite starts resolving imports
|
|
2879
2879
|
order: "pre",
|
|
2880
2880
|
async handler(t, i) {
|
|
2881
|
-
return _i(e, i) ? (await
|
|
2881
|
+
return _i(e, i) ? (await ue(e)).map(
|
|
2882
2882
|
(r) => "javascriptCode" in r ? {
|
|
2883
2883
|
tag: "script",
|
|
2884
2884
|
attrs: {
|
|
@@ -2905,7 +2905,7 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
|
|
|
2905
2905
|
async buildStart() {
|
|
2906
2906
|
if (e.viteCommand !== "serve")
|
|
2907
2907
|
return;
|
|
2908
|
-
const i = (await
|
|
2908
|
+
const i = (await ue(e)).flatMap((s) => {
|
|
2909
2909
|
if ("javascriptCode" in s)
|
|
2910
2910
|
return s.optimizableImports;
|
|
2911
2911
|
if ("cssHref" in s)
|
|
@@ -3106,7 +3106,7 @@ class $ {
|
|
|
3106
3106
|
// Do not downlevel. ESBuild will do that if needed.
|
|
3107
3107
|
target: o.ScriptTarget.ESNext,
|
|
3108
3108
|
sourceMap: p.build.sourcemap !== !1
|
|
3109
|
-
}), _i(this) &&
|
|
3109
|
+
}), _i(this) && ue(this);
|
|
3110
3110
|
}
|
|
3111
3111
|
},
|
|
3112
3112
|
configureServer: {
|
|
@@ -3229,7 +3229,7 @@ class $ {
|
|
|
3229
3229
|
if (Array.isArray(this.assetsToProvide))
|
|
3230
3230
|
this.assetsToProvide.push({ assets: t, transformers: i, apply: s });
|
|
3231
3231
|
else if (this.viteCommand === "serve")
|
|
3232
|
-
s === "serve" &&
|
|
3232
|
+
s === "serve" && de(this, t, i);
|
|
3233
3233
|
else
|
|
3234
3234
|
throw Error(
|
|
3235
3235
|
b(
|
|
@@ -3321,7 +3321,7 @@ function Kn(e, t, i) {
|
|
|
3321
3321
|
return s;
|
|
3322
3322
|
}
|
|
3323
3323
|
function _n(e, t) {
|
|
3324
|
-
return e.packageName === void 0 ?
|
|
3324
|
+
return e.packageName === void 0 ? fe(t, e.modulePath) : m.join(e.packageName, e.modulePath);
|
|
3325
3325
|
}
|
|
3326
3326
|
function Ui(e) {
|
|
3327
3327
|
return e._localDefinedComponents ??= Ei(
|
|
@@ -3350,7 +3350,7 @@ const Rt = "makeRuntime(", Un = "@arcgis/core", Wn = "@arcgis/lumina:injectRunti
|
|
|
3350
3350
|
const r = s + Rt.length, n = e.options.css?.commonStylesPath;
|
|
3351
3351
|
return {
|
|
3352
3352
|
code: [
|
|
3353
|
-
n === void 0 ? "" : `import commonStyles from "${
|
|
3353
|
+
n === void 0 ? "" : `import commonStyles from "${fe(e.dir.src, n)}${Te}";`,
|
|
3354
3354
|
t.slice(0, r),
|
|
3355
3355
|
"{",
|
|
3356
3356
|
"defaultAssetPath:import.meta.env.BASE_URL,",
|
|
@@ -3379,8 +3379,8 @@ function Hn(e) {
|
|
|
3379
3379
|
return `import "../${e.options.build?.cdn?.namespace === void 0 ? `${ne}/${Q}.css` : `${e.options.build.cdn.namespace}/${e.options.build.cdn.namespace}.css`}";
|
|
3380
3380
|
`;
|
|
3381
3381
|
}
|
|
3382
|
-
const
|
|
3383
|
-
name:
|
|
3382
|
+
const ve = "@arcgis/lumina:addNonLazyImports", qn = (e) => ({
|
|
3383
|
+
name: ve,
|
|
3384
3384
|
apply: () => e.viteCommand === "build",
|
|
3385
3385
|
generateBundle(t, i) {
|
|
3386
3386
|
const r = e.viteConfig.build.sourcemap !== !1 ? " " : `
|
|
@@ -3394,7 +3394,7 @@ const ye = "@arcgis/lumina:addNonLazyImports", qn = (e) => ({
|
|
|
3394
3394
|
u = Ur(u, e, p, l), !e.isInStorybook && d === "chunks/runtime.js" && (n = !0, u = Hn(e) + u), u = `${e.banner}${r}${u}`, c.code = u;
|
|
3395
3395
|
}
|
|
3396
3396
|
}), !n && !e.isInStorybook)
|
|
3397
|
-
throw Error(b(
|
|
3397
|
+
throw Error(b(ve, "Expected to find a chunks/runtime.js file in the Vite's build output."));
|
|
3398
3398
|
},
|
|
3399
3399
|
async writeBundle() {
|
|
3400
3400
|
if (e.isInStorybook)
|
|
@@ -3412,7 +3412,7 @@ const ye = "@arcgis/lumina:addNonLazyImports", qn = (e) => ({
|
|
|
3412
3412
|
const p = xe(n);
|
|
3413
3413
|
throw Error(
|
|
3414
3414
|
b(
|
|
3415
|
-
|
|
3415
|
+
ve,
|
|
3416
3416
|
`Unable to determine what files imported ${p}. This is necessary because this file referenced other web components (${[...a, ...c].join(", ")}), and so the compiler needs to know what component entrypoints these imports should be added to. Please double check if you are referencing ${p} in the code dynamically in the way that Lumina cannot detect, and report this issue to the Lumina maintainers.
|
|
3417
3417
|
|
|
3418
3418
|
Possible causes:
|
|
@@ -3441,7 +3441,7 @@ Possible causes:
|
|
|
3441
3441
|
if (x !== void 0) {
|
|
3442
3442
|
if (f.has(T)) {
|
|
3443
3443
|
E.warn(
|
|
3444
|
-
|
|
3444
|
+
ve,
|
|
3445
3445
|
`"${T}" is used both with and without deferLoad in ${n} (either directly in ${n} or via a functional component). deferLoad will be ignored in this case.`
|
|
3446
3446
|
);
|
|
3447
3447
|
return;
|
|
@@ -3679,7 +3679,7 @@ function _e(e) {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
function we(e, t, i = !1) {
|
|
3682
|
-
if (
|
|
3682
|
+
if (pe(t))
|
|
3683
3683
|
throw new Error(
|
|
3684
3684
|
`Invalid JSX syntax detected or there is a bug in Lumina. Found ${t.getText(e.sourceFile)}. Expected JSX attribute value to be wrapped in { }`
|
|
3685
3685
|
);
|
|
@@ -3881,7 +3881,7 @@ function co(e, t) {
|
|
|
3881
3881
|
if (!(typeof n == "object" && // If .map() callback has 3rd argument, it's not supported
|
|
3882
3882
|
s.parameters.length <= 2))
|
|
3883
3883
|
return t;
|
|
3884
|
-
const c =
|
|
3884
|
+
const c = me(s.body);
|
|
3885
3885
|
let d = !0, l;
|
|
3886
3886
|
if (_t(c))
|
|
3887
3887
|
l = c;
|
|
@@ -3891,7 +3891,7 @@ function co(e, t) {
|
|
|
3891
3891
|
const v = c.statements.at(-1);
|
|
3892
3892
|
if (!(v && o.isReturnStatement(v) && v.expression))
|
|
3893
3893
|
return t;
|
|
3894
|
-
const S =
|
|
3894
|
+
const S = me(v.expression);
|
|
3895
3895
|
if (!_t(S))
|
|
3896
3896
|
return t;
|
|
3897
3897
|
const k = c.statements.slice(0, -1);
|
|
@@ -3996,7 +3996,7 @@ function B(e) {
|
|
|
3996
3996
|
if (uo.has(e.kind))
|
|
3997
3997
|
return [];
|
|
3998
3998
|
{
|
|
3999
|
-
const t =
|
|
3999
|
+
const t = me(e);
|
|
4000
4000
|
return t !== e ? B(t) : void 0;
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
@@ -4010,7 +4010,7 @@ const uo = /* @__PURE__ */ new Set([
|
|
|
4010
4010
|
o.SyntaxKind.FalseKeyword,
|
|
4011
4011
|
o.SyntaxKind.NullKeyword,
|
|
4012
4012
|
o.SyntaxKind.TrueKeyword
|
|
4013
|
-
]),
|
|
4013
|
+
]), me = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? me(e.expression) : e, Gi = (e, t) => o.isObjectBindingPattern(e) ? ho(e, t) : e;
|
|
4014
4014
|
function mo(e, t, i) {
|
|
4015
4015
|
if (e.every(ke, t))
|
|
4016
4016
|
return t;
|
|
@@ -4044,7 +4044,7 @@ function ho(e, t) {
|
|
|
4044
4044
|
}
|
|
4045
4045
|
const Xi = (e, t) => t.liftedKeys.has(e);
|
|
4046
4046
|
function q(e, t, i) {
|
|
4047
|
-
if (
|
|
4047
|
+
if (pe(i))
|
|
4048
4048
|
return Yi(e, i);
|
|
4049
4049
|
const s = o.isCallExpression(i) ? co(e, i) : i, r = o.visitEachChild(
|
|
4050
4050
|
s,
|
|
@@ -4052,7 +4052,7 @@ function q(e, t, i) {
|
|
|
4052
4052
|
q.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
|
|
4053
4053
|
e.transformationContext
|
|
4054
4054
|
);
|
|
4055
|
-
return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) ||
|
|
4055
|
+
return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || pe(me(i.right)) || tr(i.right)) ? bo(r) : r;
|
|
4056
4056
|
}
|
|
4057
4057
|
function Yi(e, t) {
|
|
4058
4058
|
const i = Qi(e, t);
|
|
@@ -4149,7 +4149,7 @@ function vo(e, t, i, s) {
|
|
|
4149
4149
|
throw Error(`JSX namespaced attributes are not supported. Found ${l.getText(e.sourceFile)}`);
|
|
4150
4150
|
if (l.text === "key")
|
|
4151
4151
|
return;
|
|
4152
|
-
const u = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p :
|
|
4152
|
+
const u = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : pe(p) ? Yi(e, p) : q(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = ti(l.text) ? o.factory.createStringLiteral(l.text) : l;
|
|
4153
4153
|
return o.factory.createPropertyAssignment(f, u);
|
|
4154
4154
|
}), { parts: a, litTag: c } = Se(s, e);
|
|
4155
4155
|
return a.length > 0 && n.push(
|
|
@@ -4879,7 +4879,7 @@ const Wo = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expressio
|
|
|
4879
4879
|
}, Go = (e) => ({
|
|
4880
4880
|
name: "@arcgis/lumina:handleDynamicAssets",
|
|
4881
4881
|
configureServer(t) {
|
|
4882
|
-
e.server = t, Ht(e).forEach(({ assets: i, transformers: s }) =>
|
|
4882
|
+
e.server = t, Ht(e).forEach(({ assets: i, transformers: s }) => de(e, i, s));
|
|
4883
4883
|
},
|
|
4884
4884
|
async writeBundle() {
|
|
4885
4885
|
await Promise.all(
|
|
@@ -4934,7 +4934,7 @@ function Qo(e, t) {
|
|
|
4934
4934
|
const l = r(n.webTypes);
|
|
4935
4935
|
e["web-types"] !== l && (s = !0, e["web-types"] = l);
|
|
4936
4936
|
}
|
|
4937
|
-
const a = `./${Q}.css`, c = t.options.build?.cdn?.namespace !== void 0, d =
|
|
4937
|
+
const a = `./${Q}.css`, c = t.options.build?.cdn?.namespace !== void 0, d = fe(
|
|
4938
4938
|
t.dir.root,
|
|
4939
4939
|
m.join(t.dir.distCdn, a)
|
|
4940
4940
|
);
|
|
@@ -5111,7 +5111,7 @@ function na(e) {
|
|
|
5111
5111
|
}
|
|
5112
5112
|
return t;
|
|
5113
5113
|
}
|
|
5114
|
-
const oa = (e) => e?.length === 1 ? e[0] : e, je = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`,
|
|
5114
|
+
const oa = (e) => e?.length === 1 ? e[0] : e, je = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, ge = {
|
|
5115
5115
|
slots: "Slots",
|
|
5116
5116
|
events: "Events",
|
|
5117
5117
|
cssProperties: "CSS Properties",
|
|
@@ -5125,24 +5125,24 @@ function ls(e) {
|
|
|
5125
5125
|
|
|
5126
5126
|
`);
|
|
5127
5127
|
}
|
|
5128
|
-
const
|
|
5128
|
+
const he = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
|
|
5129
5129
|
${t.join(`
|
|
5130
|
-
`)}`, aa = (e) =>
|
|
5131
|
-
|
|
5130
|
+
`)}`, aa = (e) => he(
|
|
5131
|
+
ge.slots,
|
|
5132
5132
|
e?.map((t) => `- ${t.name ? `**${t.name}**` : "_default_"} - ${t.description}`)
|
|
5133
|
-
), la = (e) =>
|
|
5134
|
-
|
|
5133
|
+
), la = (e) => he(
|
|
5134
|
+
ge.events,
|
|
5135
5135
|
e?.filter((t) => t.name !== null && t.name !== void 0).map((t) => `- **${t.name}**${t.description ? ` - ${t.description}` : ""}`)
|
|
5136
|
-
), ca = (e = []) =>
|
|
5137
|
-
|
|
5136
|
+
), ca = (e = []) => he(
|
|
5137
|
+
ge.cssProperties,
|
|
5138
5138
|
e?.map(
|
|
5139
5139
|
(t) => `- **${t.name}** - ${t.description} ${t.default ? `_(default: ${t.default})_}` : ""}`
|
|
5140
5140
|
)
|
|
5141
|
-
), da = (e) =>
|
|
5142
|
-
|
|
5141
|
+
), da = (e) => he(
|
|
5142
|
+
ge.cssParts,
|
|
5143
5143
|
e?.map((t) => `- **${t.name}** - ${t.description}`)
|
|
5144
|
-
), pa = (e) =>
|
|
5145
|
-
|
|
5144
|
+
), pa = (e) => he(
|
|
5145
|
+
ge.methods,
|
|
5146
5146
|
e.filter(Cs).map(
|
|
5147
5147
|
(t) => [`- \`${t.name}${t.signature}\``, je(t.description, t.deprecated)].filter(Boolean).join(" - ")
|
|
5148
5148
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.72",
|
|
4
4
|
"description": "Compiler for WebGIS web components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"mime-types": "^3.0.1",
|
|
28
28
|
"tinyglobby": "^0.2.15",
|
|
29
29
|
"tslib": "^2.8.1",
|
|
30
|
-
"@arcgis/
|
|
31
|
-
"@arcgis/toolkit": "~5.1.0-next.
|
|
32
|
-
"@arcgis/
|
|
30
|
+
"@arcgis/api-extractor": "5.1.0-next.72",
|
|
31
|
+
"@arcgis/toolkit": "~5.1.0-next.72",
|
|
32
|
+
"@arcgis/components-build-utils": "5.1.0-next.72"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"lit": "^3.3.0",
|
|
36
36
|
"typescript": "~6.0.2",
|
|
37
37
|
"vite": "^7.3.2",
|
|
38
38
|
"vitest": "^4.1.2",
|
|
39
|
-
"@arcgis/lumina": "~5.1.0-next.
|
|
39
|
+
"@arcgis/lumina": "~5.1.0-next.72"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"vitest": {
|