@arcgis/api-extractor 5.1.0-next.0 → 5.1.0-next.10
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/{ApiExtractor-B-jpUesB.js → ApiExtractor-BsCYv8eU.js} +216 -213
- package/dist/apiJson.d.ts +1 -1
- package/dist/cli-7PX_wNxb.js +34 -0
- package/dist/cli.js +29 -10
- package/dist/diff/apiDiffToMarkdown.d.ts +9 -0
- package/dist/diff/apiDiffToMarkdown.js +142 -0
- package/dist/diff/diffApiJson.d.ts +4 -4
- package/dist/diff/diffApiJson.js +208 -90
- package/dist/diff/types.d.ts +3 -2
- package/dist/extractor/ApiExtractor.d.ts +0 -5
- package/dist/extractor/ApiExtractor.js +3 -3
- package/dist/extractor/config.d.ts +32 -3
- package/dist/extractor/config.js +9 -8
- package/dist/extractor/processing/links.d.ts +4 -1
- package/dist/extractor/processing/links.js +106 -107
- package/dist/extractor/types.d.ts +1 -1
- package/dist/{typeScript-CB4YIsEl.js → typeScript-C42JuOpR.js} +1 -1
- package/dist/vite/plugin.js +3 -3
- package/dist/vite/typeScript.js +1 -1
- package/dist/{worker-DhIYTiur.js → worker-DZJ5CvpK.js} +741 -730
- package/package.json +7 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { l as H, a as se, e as
|
|
2
|
-
import { a as
|
|
3
|
-
import { getViewUrl as
|
|
1
|
+
import { l as H, a as se, e as Re, p as fe } from "./typeScript-C42JuOpR.js";
|
|
2
|
+
import { a as be, o as Me, t as Ge, b as De, c as Le, e as Oe, d as _, p as Ne, f as Be, i as me, g as We, h as Ue, j as ze, k as je, n as He, r as Je } from "./worker-DZJ5CvpK.js";
|
|
3
|
+
import { getViewUrl as Ve, postProcessDeprecated as ee, postProcessDescription as G, postProcessDocsTags as V, resolveJsDocLink as Xe } from "./extractor/processing/links.js";
|
|
4
4
|
import E from "typescript";
|
|
5
|
-
import { path as N, toPosixPathSeparators as
|
|
6
|
-
import { mkdir as ae, writeFile as
|
|
5
|
+
import { path as N, toPosixPathSeparators as Ye } from "@arcgis/components-build-utils";
|
|
6
|
+
import { mkdir as ae, writeFile as xe } from "fs/promises";
|
|
7
7
|
import x from "chalk";
|
|
8
|
-
import { styleText as
|
|
9
|
-
import { kebabToPascal as
|
|
10
|
-
import { g as h, a as Q, b as
|
|
11
|
-
import { printTypeParameters as ie, printTypeAlias as
|
|
12
|
-
import { identity as
|
|
13
|
-
import { opendirSync as
|
|
14
|
-
const
|
|
8
|
+
import { styleText as qe } from "util";
|
|
9
|
+
import { kebabToPascal as Ze } from "@arcgis/toolkit/string";
|
|
10
|
+
import { g as h, a as Q, b as _e, c as Ke, d as le, e as Pe, f as oe, p as Qe, h as et, i as ce, m as Ie, n as tt, j as it, k as nt } from "./apiHelpers-BYzO767m.js";
|
|
11
|
+
import { printTypeParameters as ie, printTypeAlias as ot } from "./utils/partPrinter.js";
|
|
12
|
+
import { identity as Se, debounce as rt } from "@arcgis/toolkit/function";
|
|
13
|
+
import { opendirSync as st, watch as at, readFileSync as lt, statSync as ct } from "node:fs";
|
|
14
|
+
const k = "/** @deprecated since 5.0. Refactor using \\@arcgis/codemod */", dt = `${k}
|
|
15
15
|
type HashMap<T> = Record<string, T | undefined>;
|
|
16
16
|
${k}
|
|
17
17
|
type nullish = null | undefined;
|
|
@@ -33,7 +33,7 @@ declare namespace __esri {
|
|
|
33
33
|
${k}
|
|
34
34
|
export type ReadonlyAccessor = Omit<Accessor, "set" | "_set" | "destroy" | "notifyChange" | "_get">;
|
|
35
35
|
|
|
36
|
-
`,
|
|
36
|
+
`, ft = `
|
|
37
37
|
|
|
38
38
|
${k}
|
|
39
39
|
export namespace CIM {
|
|
@@ -1093,20 +1093,20 @@ declare namespace __esri {
|
|
|
1093
1093
|
${k}
|
|
1094
1094
|
export type On = (eventName: string, eventHandler: EventHandlerCallback) => IHandle;
|
|
1095
1095
|
}`;
|
|
1096
|
-
let B,
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1099
|
-
const i = `import("./${
|
|
1096
|
+
let B, D, z, W, O = "", U = "", q = "", te = "";
|
|
1097
|
+
function mt(e, t) {
|
|
1098
|
+
z = void 0, W = void 0, U = e.path, q = "", te = "";
|
|
1099
|
+
const i = `import("./${U}.js")`;
|
|
1100
1100
|
let n = "";
|
|
1101
1101
|
const s = e.exports?.[0]?.declaration.name, a = h(e);
|
|
1102
1102
|
if (a.constructorPropertiesInterface !== void 0) {
|
|
1103
1103
|
const o = a.constructorPropertiesInterface;
|
|
1104
|
-
|
|
1104
|
+
ue(o), w.length !== 0 && (n += pe(o, U, o.name, t));
|
|
1105
1105
|
}
|
|
1106
1106
|
let r;
|
|
1107
1107
|
for (let o = 0; o < e.declarations.length; ++o) {
|
|
1108
1108
|
const l = e.declarations[o];
|
|
1109
|
-
if (
|
|
1109
|
+
if (ue(l), w.length === 0)
|
|
1110
1110
|
continue;
|
|
1111
1111
|
const c = l.name === s, d = c ? "default" : l.name, m = l.kind === "function", f = l.kind === "variable";
|
|
1112
1112
|
if (m || f) {
|
|
@@ -1117,16 +1117,16 @@ function ut(e, t) {
|
|
|
1117
1117
|
w.length !== 1 && t.emitError("Expected only a single @esriCompatibilityName tag on a default export function.", {
|
|
1118
1118
|
file: h(e).file,
|
|
1119
1119
|
node: void 0
|
|
1120
|
-
}), Z(w[0], t),
|
|
1120
|
+
}), Z(w[0], t), D === void 0 && t.emitError("Expected default export @esriCompatibilityName tag to include a #", {
|
|
1121
1121
|
file: h(e).file,
|
|
1122
1122
|
node: void 0
|
|
1123
1123
|
}), n += ` ${k}
|
|
1124
|
-
interface ${
|
|
1124
|
+
interface ${D} {
|
|
1125
1125
|
${l.name}: typeof ${i}.${d};
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
-
const __${
|
|
1129
|
-
export const ${
|
|
1128
|
+
const __${D}Mapped: ${D};
|
|
1129
|
+
export const ${D}: typeof __${D}Mapped.${l.name};
|
|
1130
1130
|
|
|
1131
1131
|
`;
|
|
1132
1132
|
continue;
|
|
@@ -1135,7 +1135,7 @@ function ut(e, t) {
|
|
|
1135
1135
|
w.length !== 1 && t.emitError("Expected only a single @esriCompatibilityName tag on a default export variable.", {
|
|
1136
1136
|
file: h(e).file,
|
|
1137
1137
|
node: void 0
|
|
1138
|
-
}), Z(w[0], t), (
|
|
1138
|
+
}), Z(w[0], t), (D !== void 0 || B !== void 0) && t.emitError("Expected default export @esriCompatibilityName tag to not include a # or .", {
|
|
1139
1139
|
file: h(e).file,
|
|
1140
1140
|
node: void 0
|
|
1141
1141
|
}), n += ` export const ${O}: typeof ${i}.default;
|
|
@@ -1144,15 +1144,15 @@ function ut(e, t) {
|
|
|
1144
1144
|
continue;
|
|
1145
1145
|
}
|
|
1146
1146
|
for (let p = 0; p < w.length; ++p)
|
|
1147
|
-
Z(w[p], t), f &&
|
|
1147
|
+
Z(w[p], t), f && z !== void 0 ? q += ` export const ${O}: ${i}.${d};
|
|
1148
1148
|
` : te += ` ${O}: typeof ${i}.${d};
|
|
1149
1149
|
`;
|
|
1150
1150
|
} else if (l.kind === "class" || l.kind === "mixin" || l.kind === "interface" && Q(l).isMixinBaseClass === !0) {
|
|
1151
|
-
const p = ie(K(l.typeParameters, !1,
|
|
1151
|
+
const p = ie(K(l.typeParameters, !1, U)), g = ie(K(l.typeParameters, !1, void 0)), u = ie(K(l.typeParameters, !0, void 0)), v = ` ${i}.${d}`;
|
|
1152
1152
|
for (let C = 0; C < w.length; ++C) {
|
|
1153
1153
|
if (Z(w[C], t), O.startsWith("$")) {
|
|
1154
|
-
const
|
|
1155
|
-
n +=
|
|
1154
|
+
const M = O.slice(1);
|
|
1155
|
+
n += pt(M, l, d, U);
|
|
1156
1156
|
continue;
|
|
1157
1157
|
}
|
|
1158
1158
|
const y = B === void 0 ? " " : " ";
|
|
@@ -1162,13 +1162,13 @@ ${y}export const ${O}: typeof${v}${u};
|
|
|
1162
1162
|
|
|
1163
1163
|
`;
|
|
1164
1164
|
}
|
|
1165
|
-
} else l.kind === "interface" && (n +=
|
|
1165
|
+
} else l.kind === "interface" && (n += pe(l, U, d, t));
|
|
1166
1166
|
}
|
|
1167
|
-
return q.length > 0 && (
|
|
1167
|
+
return q.length > 0 && (z === void 0 && t.emitError("Invalid @esriCompatibilityName usage: Namespace name was not set correctly.", {
|
|
1168
1168
|
file: h(e).file,
|
|
1169
1169
|
node: void 0
|
|
1170
1170
|
}), n += ` ${k}
|
|
1171
|
-
namespace ${
|
|
1171
|
+
namespace ${z} {
|
|
1172
1172
|
${q.slice(0, -1)} }
|
|
1173
1173
|
|
|
1174
1174
|
`), te.length > 0 && (W === void 0 && t.emitError(
|
|
@@ -1185,12 +1185,12 @@ ${te} }
|
|
|
1185
1185
|
|
|
1186
1186
|
`), n;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function pe(e, t, i, n) {
|
|
1189
1189
|
const s = ie(K(e.typeParameters, !1, void 0)), a = K(e.typeParameters, !1, t), r = `import("./${t}.js").${i}${s}`;
|
|
1190
1190
|
let o = "";
|
|
1191
1191
|
for (let l = 0; l < w.length; ++l) {
|
|
1192
1192
|
Z(w[l], n);
|
|
1193
|
-
const c =
|
|
1193
|
+
const c = ot(O, a, void 0, r);
|
|
1194
1194
|
B === void 0 ? o += ` ${k}
|
|
1195
1195
|
${c}
|
|
1196
1196
|
` : q += ` ${k}
|
|
@@ -1244,17 +1244,17 @@ function K(e, t, i) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
const ne = [];
|
|
1246
1246
|
let w = ne;
|
|
1247
|
-
function
|
|
1248
|
-
e.kind === "variable" ? w =
|
|
1247
|
+
function ue(e) {
|
|
1248
|
+
e.kind === "variable" ? w = _e(e).esriCompatibilityNames ?? ne : e.kind === "function" ? w = Ke(e).esriCompatibilityNames ?? ne : w = Q(e).esriCompatibilityNames ?? ne;
|
|
1249
1249
|
}
|
|
1250
1250
|
function Z(e, t) {
|
|
1251
1251
|
const i = e.indexOf(".");
|
|
1252
1252
|
if (i !== -1) {
|
|
1253
|
-
B = e.slice(0, i),
|
|
1254
|
-
`Invalid @esriCompatibilityName usage: Multiple different namespaces in a single file are not supported. Found ${
|
|
1253
|
+
B = e.slice(0, i), D = void 0, O = e.slice(i + 1), z === void 0 ? z = B : z !== B && t.emitError(
|
|
1254
|
+
`Invalid @esriCompatibilityName usage: Multiple different namespaces in a single file are not supported. Found ${z} and ${B}`,
|
|
1255
1255
|
{
|
|
1256
1256
|
file: void 0,
|
|
1257
|
-
scope:
|
|
1257
|
+
scope: U,
|
|
1258
1258
|
node: void 0
|
|
1259
1259
|
}
|
|
1260
1260
|
);
|
|
@@ -1262,21 +1262,21 @@ function Z(e, t) {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
const n = e.indexOf("#");
|
|
1264
1264
|
if (n !== -1) {
|
|
1265
|
-
B = void 0,
|
|
1266
|
-
`Invalid @esriCompatibilityName usage: Multiple different __esri interfaces in a single file are not supported. Found ${W} and ${
|
|
1265
|
+
B = void 0, D = e.slice(0, n), O = e.slice(n + 1), W === void 0 ? W = D : W !== D && t.emitError(
|
|
1266
|
+
`Invalid @esriCompatibilityName usage: Multiple different __esri interfaces in a single file are not supported. Found ${W} and ${D}`,
|
|
1267
1267
|
{
|
|
1268
1268
|
file: void 0,
|
|
1269
|
-
scope:
|
|
1269
|
+
scope: U,
|
|
1270
1270
|
node: void 0
|
|
1271
1271
|
}
|
|
1272
1272
|
);
|
|
1273
1273
|
return;
|
|
1274
1274
|
}
|
|
1275
|
-
B = void 0,
|
|
1275
|
+
B = void 0, D = void 0, O = e;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
const s =
|
|
1279
|
-
t.name.startsWith(w[0]) ? w[0] : t.name}${
|
|
1277
|
+
function pt(e, t, i, n) {
|
|
1278
|
+
const s = ut(e, t.events), r = `${// IdentityManager fake class got renamed to IdentityManagerBase real class
|
|
1279
|
+
t.name.startsWith(w[0]) ? w[0] : t.name}${Ze(e)}Event`, o = yt(s, n) ?? ` = import("./${n}.js").${i}["@eventTypes"]["${e}"]`, l = o.startsWith("<") ? o.indexOf(">") + 1 : -1, c = l !== -1 ? o.slice(0, l) : "";
|
|
1280
1280
|
return ` ${k}
|
|
1281
1281
|
export type ${r}${o};
|
|
1282
1282
|
${k}
|
|
@@ -1284,7 +1284,7 @@ function yt(e, t, i, n) {
|
|
|
1284
1284
|
|
|
1285
1285
|
`;
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function ut(e, t) {
|
|
1288
1288
|
if (t !== void 0)
|
|
1289
1289
|
for (let i = 0; i < t.length; ++i) {
|
|
1290
1290
|
const n = t[i];
|
|
@@ -1292,7 +1292,7 @@ function ht(e, t) {
|
|
|
1292
1292
|
return n;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function yt(e, t) {
|
|
1296
1296
|
const i = e?.type;
|
|
1297
1297
|
if (t = e?.inheritedFrom?.module ?? t, i?.references?.length === 1) {
|
|
1298
1298
|
const a = i.references[0];
|
|
@@ -1305,15 +1305,15 @@ function gt(e, t) {
|
|
|
1305
1305
|
if (!(n.package !== void 0 || s.package !== void 0 || s.module !== void 0 || s.viewUrl !== void 0) && i.text === `${n.name}<${s.name}>`)
|
|
1306
1306
|
return t = n.module ?? t, `<${s.name}> = import("./${t}.js").${n.name}<${s.name}>`;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1309
|
-
let i =
|
|
1308
|
+
function ht(e, t) {
|
|
1309
|
+
let i = dt;
|
|
1310
1310
|
for (let n = 0; n < e.length; ++n) {
|
|
1311
1311
|
const s = e[n];
|
|
1312
|
-
i +=
|
|
1312
|
+
i += mt(s, t);
|
|
1313
1313
|
}
|
|
1314
|
-
return i +
|
|
1314
|
+
return i + ft;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function gt(e, t, i) {
|
|
1317
1317
|
let n = "";
|
|
1318
1318
|
const s = t.importsMap, a = /* @__PURE__ */ Object.create(null);
|
|
1319
1319
|
for (const r in s) {
|
|
@@ -1396,9 +1396,9 @@ ${n}` : n += `import type * as ${c} from "${l}";
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
function re(e, t) {
|
|
1399
|
-
return `${
|
|
1399
|
+
return `${be(t.dtsPath, e.dtsPath)}.js`;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function vt(e, t, i, n) {
|
|
1402
1402
|
const s = e.references;
|
|
1403
1403
|
if (s !== void 0) {
|
|
1404
1404
|
if (t.autoCastingRequiresType === void 0 && s.length > 1 && s[0].module === "core/Collection")
|
|
@@ -1406,20 +1406,20 @@ function Mt(e, t, i, n) {
|
|
|
1406
1406
|
t.autoCastingRequiresType = !0;
|
|
1407
1407
|
else {
|
|
1408
1408
|
const a = s[1], r = a.module === void 0 ? i : n.moduleMap.get(a.module), o = r === void 0 ? void 0 : h(r), l = a.name === "default" ? o?.index.default : o?.index.named[a.name];
|
|
1409
|
-
|
|
1409
|
+
$e(l) && (t.autoCastingRequiresType = !0);
|
|
1410
1410
|
}
|
|
1411
|
-
return
|
|
1411
|
+
return ke(e, t, n, i, s);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function ke(e, t, i, n, s) {
|
|
1415
1415
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
1416
1416
|
const r = s[a];
|
|
1417
1417
|
if (r.package !== void 0) {
|
|
1418
|
-
r.package ===
|
|
1418
|
+
r.package === Pe && r.name === "Date" && ye(
|
|
1419
1419
|
e,
|
|
1420
1420
|
s,
|
|
1421
1421
|
a,
|
|
1422
|
-
{ type:
|
|
1422
|
+
{ type: Mt, inheritedFrom: void 0 },
|
|
1423
1423
|
i,
|
|
1424
1424
|
n,
|
|
1425
1425
|
t
|
|
@@ -1427,31 +1427,31 @@ function Te(e, t, i, n, s) {
|
|
|
1427
1427
|
continue;
|
|
1428
1428
|
}
|
|
1429
1429
|
const o = r.module === void 0 ? n : i.moduleMap.get(r.module), l = o === void 0 ? void 0 : h(o), c = r.name === "default" ? l?.index.default : l?.index.named[r.name];
|
|
1430
|
-
if (
|
|
1430
|
+
if ($e(c)) {
|
|
1431
1431
|
const m = `(${c.type.text})`, f = e.text;
|
|
1432
1432
|
e.text = `${e.text.slice(0, r.start)}${m}${e.text.slice(r.end)}`;
|
|
1433
1433
|
const p = e.text, g = r.start + 1, u = [];
|
|
1434
1434
|
for (let C = 0; C < c.type.references.length; ++C) {
|
|
1435
|
-
const y = c.type.references[C],
|
|
1435
|
+
const y = c.type.references[C], M = y.module ?? o?.path, b = M === n.path;
|
|
1436
1436
|
u.push({
|
|
1437
1437
|
...y,
|
|
1438
|
-
module:
|
|
1438
|
+
module: b ? void 0 : M,
|
|
1439
1439
|
start: y.start + g,
|
|
1440
1440
|
end: y.end + g
|
|
1441
1441
|
});
|
|
1442
1442
|
}
|
|
1443
|
-
if (
|
|
1443
|
+
if (ke(e, t, i, n, u), e.text === p) {
|
|
1444
1444
|
e.text = f;
|
|
1445
1445
|
continue;
|
|
1446
1446
|
}
|
|
1447
1447
|
s.splice(a, 1, ...u);
|
|
1448
1448
|
const v = e.text.length - f.length;
|
|
1449
|
-
|
|
1449
|
+
Me(s, v, a + u.length);
|
|
1450
1450
|
continue;
|
|
1451
1451
|
}
|
|
1452
1452
|
if (c?.kind !== "class")
|
|
1453
1453
|
continue;
|
|
1454
|
-
const d =
|
|
1454
|
+
const d = Ee(c, o, void 0, i);
|
|
1455
1455
|
if (d === void 0) {
|
|
1456
1456
|
i.emitError(
|
|
1457
1457
|
`Failed to resolve auto-castable type for ${x.red(c.name)} from ${x.red(o.sourcePath)}. Ensure the class either has a public constructor or a public ${x.green(c.name)}Properties interface. Auto-casting resolution was attempted because this class is used in an autocastable property in ${x.blue(
|
|
@@ -1464,7 +1464,7 @@ function Te(e, t, i, n, s) {
|
|
|
1464
1464
|
);
|
|
1465
1465
|
continue;
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
ye(
|
|
1468
1468
|
e,
|
|
1469
1469
|
s,
|
|
1470
1470
|
a,
|
|
@@ -1475,14 +1475,14 @@ function Te(e, t, i, n, s) {
|
|
|
1475
1475
|
);
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Ee(e, t, i, n) {
|
|
1479
1479
|
const s = h(t), a = s.constructorAutoCastType;
|
|
1480
1480
|
if (a !== void 0)
|
|
1481
1481
|
return a;
|
|
1482
|
-
const r =
|
|
1482
|
+
const r = Ct(e, t, i, n);
|
|
1483
1483
|
return r !== void 0 && (s.constructorAutoCastType = r), r;
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function Ct(e, t, i, n) {
|
|
1486
1486
|
if (e.members !== void 0)
|
|
1487
1487
|
for (let r = 0; r < e.members.length; ++r) {
|
|
1488
1488
|
const o = e.members[r];
|
|
@@ -1506,7 +1506,7 @@ function bt(e, t, i, n) {
|
|
|
1506
1506
|
name: a.name,
|
|
1507
1507
|
module: t.path,
|
|
1508
1508
|
package: void 0,
|
|
1509
|
-
viewUrl:
|
|
1509
|
+
viewUrl: Ve(t.path, a.name, void 0, n),
|
|
1510
1510
|
start: 0,
|
|
1511
1511
|
end: a.name.length
|
|
1512
1512
|
}
|
|
@@ -1517,10 +1517,10 @@ function bt(e, t, i, n) {
|
|
|
1517
1517
|
if (e.superclass !== void 0) {
|
|
1518
1518
|
const r = e.superclass.module === void 0 ? t : n.moduleMap.get(e.superclass.module), c = (r === void 0 ? void 0 : h(r))?.index?.class;
|
|
1519
1519
|
if (c !== void 0)
|
|
1520
|
-
return
|
|
1520
|
+
return Ee(c, r, r, n);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function ye(e, t, i, { type: n, inheritedFrom: s }, a, r, o) {
|
|
1524
1524
|
let l = n.references;
|
|
1525
1525
|
l.length === 2 && l[0].name === "ReadonlyArrayOrCollection" && l[1].name === "T" && (l = [l[0]], n = {
|
|
1526
1526
|
...n,
|
|
@@ -1554,11 +1554,11 @@ function ge(e, t, i, { type: n, inheritedFrom: s }, a, r, o) {
|
|
|
1554
1554
|
);
|
|
1555
1555
|
continue;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1558
|
-
const
|
|
1557
|
+
Te(g, C, a, r);
|
|
1558
|
+
const b = d.start, I = {
|
|
1559
1559
|
...g,
|
|
1560
|
-
start: g.start +
|
|
1561
|
-
end: g.end +
|
|
1560
|
+
start: g.start + b + f,
|
|
1561
|
+
end: g.end + b + f
|
|
1562
1562
|
}, P = y.typeName;
|
|
1563
1563
|
if (l.length === 1 && o.autoCastingRequiresType === !0 && P !== void 0) {
|
|
1564
1564
|
const L = o.autoCastingDefaultType === P, S = `(${u} & { type${L ? "?" : ""}: "${P}" })`, F = S.length - u.length;
|
|
@@ -1566,16 +1566,16 @@ function ge(e, t, i, { type: n, inheritedFrom: s }, a, r, o) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
t.splice(i, 0, I);
|
|
1568
1568
|
}
|
|
1569
|
-
return e.text = e.text.slice(0, d.start) + c + e.text.slice(d.end),
|
|
1569
|
+
return e.text = e.text.slice(0, d.start) + c + e.text.slice(d.end), Me(
|
|
1570
1570
|
t,
|
|
1571
1571
|
m + f,
|
|
1572
1572
|
i + (l?.length ?? 0)
|
|
1573
1573
|
), !0;
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function Te(e, t, i, n) {
|
|
1576
1576
|
const s = h(n);
|
|
1577
1577
|
if (e.package !== void 0) {
|
|
1578
|
-
if (e.package ===
|
|
1578
|
+
if (e.package === Pe)
|
|
1579
1579
|
return;
|
|
1580
1580
|
i.emitError(
|
|
1581
1581
|
`Unsupported case: cannot yet handle auto-adding imports for external packages. Tried to add ${e.name} from ${e.package} when resolving auto-casting type.`,
|
|
@@ -1605,7 +1605,7 @@ function Fe(e, t, i, n) {
|
|
|
1605
1605
|
d === void 0 ? s.importsMap[o] = {
|
|
1606
1606
|
type: e.name === "default" ? "default" : "named",
|
|
1607
1607
|
modulePath: t.path,
|
|
1608
|
-
specifier:
|
|
1608
|
+
specifier: be(s.dtsPath, a.dtsPath),
|
|
1609
1609
|
replacementName: void 0,
|
|
1610
1610
|
actualName: l,
|
|
1611
1611
|
wasUsed: !0
|
|
@@ -1617,10 +1617,10 @@ function Fe(e, t, i, n) {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
) : d.wasUsed = !0;
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1621
|
-
return e?.kind === "interface" && e.members === void 0 && e.supertypes === void 0 && e.type?.references !== void 0 && e.type.references.length > 1 && e.typeParameters === void 0 &&
|
|
1620
|
+
function $e(e) {
|
|
1621
|
+
return e?.kind === "interface" && e.members === void 0 && e.supertypes === void 0 && e.type?.references !== void 0 && e.type.references.length > 1 && e.typeParameters === void 0 && bt(e.type);
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function bt(e) {
|
|
1624
1624
|
let t = 0;
|
|
1625
1625
|
for (let i = 0; i < e.references.length; ++i) {
|
|
1626
1626
|
const n = e.references[i], s = e.text.slice(t, n.start).trim();
|
|
@@ -1630,7 +1630,7 @@ function xt(e) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
return t === e.text.length;
|
|
1632
1632
|
}
|
|
1633
|
-
const
|
|
1633
|
+
const Mt = {
|
|
1634
1634
|
// Wrap in parents to correctly substitute Date[] in TimeInfo.stops
|
|
1635
1635
|
text: "(Date | number | string)",
|
|
1636
1636
|
references: [
|
|
@@ -1646,12 +1646,12 @@ const Pt = {
|
|
|
1646
1646
|
values: void 0,
|
|
1647
1647
|
source: void 0
|
|
1648
1648
|
};
|
|
1649
|
-
function
|
|
1649
|
+
function xt(e, t) {
|
|
1650
1650
|
const i = e.constructorPropertiesInterface;
|
|
1651
1651
|
i.type = void 0;
|
|
1652
1652
|
const n = Q(i), s = h(t.apiModule).index.class;
|
|
1653
1653
|
if (i.typeParameters = s.typeParameters, s.superclass !== void 0) {
|
|
1654
|
-
const r =
|
|
1654
|
+
const r = he(
|
|
1655
1655
|
s.superclass,
|
|
1656
1656
|
t,
|
|
1657
1657
|
Q(s).superClassText
|
|
@@ -1660,7 +1660,7 @@ function It(e, t) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
if (s.mixins !== void 0)
|
|
1662
1662
|
for (let r = 0; r < s.mixins.length; ++r) {
|
|
1663
|
-
const o = s.mixins[r], l =
|
|
1663
|
+
const o = s.mixins[r], l = he(
|
|
1664
1664
|
o,
|
|
1665
1665
|
t,
|
|
1666
1666
|
o.printableText
|
|
@@ -1696,7 +1696,7 @@ function It(e, t) {
|
|
|
1696
1696
|
isOverride: void 0,
|
|
1697
1697
|
dtsTypeOverride: void 0
|
|
1698
1698
|
}, m = o, f = {
|
|
1699
|
-
[
|
|
1699
|
+
[Qe]: d,
|
|
1700
1700
|
kind: "field",
|
|
1701
1701
|
name: m.name,
|
|
1702
1702
|
static: void 0,
|
|
@@ -1731,10 +1731,13 @@ function It(e, t) {
|
|
|
1731
1731
|
r += `, ${a}>>`, n.superTypesText.push(r);
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function he(e, t, i) {
|
|
1735
1735
|
if (e.package !== void 0)
|
|
1736
1736
|
return;
|
|
1737
|
-
const n = t.moduleMap.get(e.module)
|
|
1737
|
+
const n = t.moduleMap.get(e.module);
|
|
1738
|
+
if (n === void 0)
|
|
1739
|
+
return;
|
|
1740
|
+
const s = h(n), a = s.constructorPropertiesInterface;
|
|
1738
1741
|
if (a === void 0) {
|
|
1739
1742
|
const o = s.inheritance;
|
|
1740
1743
|
if (typeof o == "object" && o.hasSettableField) {
|
|
@@ -1758,18 +1761,18 @@ function ve(e, t, i) {
|
|
|
1758
1761
|
* views/3d/environment/SunLighting as it imports webscene/SunLighting.
|
|
1759
1762
|
* apiReference.name !== class.name for references to mixin base classes.
|
|
1760
1763
|
*/
|
|
1761
|
-
printableText: i === e.name ? void 0 :
|
|
1764
|
+
printableText: i === e.name ? void 0 : Pt(i, s.index.class.name)
|
|
1762
1765
|
};
|
|
1763
|
-
return
|
|
1766
|
+
return Te(r, n, t, t.apiModule), r;
|
|
1764
1767
|
}
|
|
1765
|
-
function
|
|
1768
|
+
function Pt(e, t) {
|
|
1766
1769
|
if (e === void 0 || e === t)
|
|
1767
1770
|
return;
|
|
1768
1771
|
const i = e.indexOf("<");
|
|
1769
1772
|
if (e = i === -1 ? e : e.slice(0, i), e !== t)
|
|
1770
1773
|
return `${e}Properties`;
|
|
1771
1774
|
}
|
|
1772
|
-
function
|
|
1775
|
+
function It(e) {
|
|
1773
1776
|
if (e.customElement === void 0)
|
|
1774
1777
|
return;
|
|
1775
1778
|
const t = e, i = [];
|
|
@@ -1786,7 +1789,7 @@ function kt(e) {
|
|
|
1786
1789
|
description: s.description,
|
|
1787
1790
|
inheritedFrom: s.inheritedFrom,
|
|
1788
1791
|
type: a === void 0 || a.length === 0 ? s.type : {
|
|
1789
|
-
text:
|
|
1792
|
+
text: Ge(a),
|
|
1790
1793
|
references: void 0,
|
|
1791
1794
|
values: a,
|
|
1792
1795
|
source: void 0
|
|
@@ -1810,7 +1813,7 @@ const de = {
|
|
|
1810
1813
|
*/
|
|
1811
1814
|
deferred: 1
|
|
1812
1815
|
};
|
|
1813
|
-
function
|
|
1816
|
+
function St(e, t, i, n) {
|
|
1814
1817
|
const s = e;
|
|
1815
1818
|
n.produceDts && (Q(t).eventTypesProperty = s);
|
|
1816
1819
|
const a = h(i), r = `${t.name}Events`;
|
|
@@ -1837,9 +1840,9 @@ function Et(e, t, i, n) {
|
|
|
1837
1840
|
);
|
|
1838
1841
|
return;
|
|
1839
1842
|
}
|
|
1840
|
-
t.events ??= [],
|
|
1843
|
+
t.events ??= [], Fe(o, t, i, void 0, n);
|
|
1841
1844
|
}
|
|
1842
|
-
function
|
|
1845
|
+
function Fe(e, t, i, n, s) {
|
|
1843
1846
|
const a = n !== void 0;
|
|
1844
1847
|
if (n ??= /* @__PURE__ */ new Set(), e.type !== void 0) {
|
|
1845
1848
|
s.emitError(
|
|
@@ -1856,7 +1859,7 @@ function Ae(e, t, i, n, s) {
|
|
|
1856
1859
|
const o = e.members[r];
|
|
1857
1860
|
if (o.kind !== "field") {
|
|
1858
1861
|
s.emitError(
|
|
1859
|
-
`Event interfaces should only contain properties. Found ${
|
|
1862
|
+
`Event interfaces should only contain properties. Found ${et(o)} of kind ${x.red(o.kind)} in ${e.name}.`,
|
|
1860
1863
|
{
|
|
1861
1864
|
file: h(i).file,
|
|
1862
1865
|
node: void 0
|
|
@@ -1896,10 +1899,10 @@ function Ae(e, t, i, n, s) {
|
|
|
1896
1899
|
);
|
|
1897
1900
|
return;
|
|
1898
1901
|
}
|
|
1899
|
-
|
|
1902
|
+
Fe(c, t, l, n, s);
|
|
1900
1903
|
}
|
|
1901
1904
|
}
|
|
1902
|
-
function
|
|
1905
|
+
function we(e, t, i) {
|
|
1903
1906
|
const n = h(e);
|
|
1904
1907
|
if (n.inheritance !== void 0)
|
|
1905
1908
|
return;
|
|
@@ -1910,14 +1913,14 @@ function De(e, t, i) {
|
|
|
1910
1913
|
const f = t.members[m];
|
|
1911
1914
|
if (f.kind === "field") {
|
|
1912
1915
|
if (f.name === "@eventTypes") {
|
|
1913
|
-
a = !0,
|
|
1916
|
+
a = !0, St(f, t, e, i), t.members.splice(m, 1), m -= 1;
|
|
1914
1917
|
continue;
|
|
1915
1918
|
}
|
|
1916
|
-
f.inheritedFrom === void 0 &&
|
|
1919
|
+
f.inheritedFrom === void 0 && Et(f, e, i);
|
|
1917
1920
|
}
|
|
1918
1921
|
}
|
|
1919
1922
|
const r = t;
|
|
1920
|
-
let o = t.mixins, l = r.superclass, c = l === void 0 ? void 0 :
|
|
1923
|
+
let o = t.mixins, l = r.superclass, c = l === void 0 ? void 0 : Ce(l, e, i);
|
|
1921
1924
|
if (c?.supertypes !== void 0) {
|
|
1922
1925
|
o = o === void 0 ? [] : [...o];
|
|
1923
1926
|
do {
|
|
@@ -1926,28 +1929,28 @@ function De(e, t, i) {
|
|
|
1926
1929
|
const g = c.supertypes[p], u = g.module === void 0 ? { ...g, module: l.module } : g;
|
|
1927
1930
|
o.unshift(u);
|
|
1928
1931
|
}
|
|
1929
|
-
l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 :
|
|
1932
|
+
l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 : Ce(l, e, i);
|
|
1930
1933
|
} while (c?.supertypes !== void 0);
|
|
1931
1934
|
}
|
|
1932
1935
|
if (o !== void 0) {
|
|
1933
1936
|
const m = o.length - (t.mixins?.length ?? 0);
|
|
1934
1937
|
for (let f = o.length - 1; f >= 0; f--) {
|
|
1935
|
-
const p = o[f], g =
|
|
1936
|
-
typeof g == "object" ?
|
|
1938
|
+
const p = o[f], g = ve(p.module ?? e.path, !0, i);
|
|
1939
|
+
typeof g == "object" ? ge(g, t, a, i) : f >= m && (t.mixins.splice(f - m, 1), t.mixins.length === 0 && (t.mixins = void 0));
|
|
1937
1940
|
}
|
|
1938
1941
|
}
|
|
1939
1942
|
if (l?.package !== void 0)
|
|
1940
1943
|
return;
|
|
1941
1944
|
const d = l?.module;
|
|
1942
1945
|
if (d !== void 0) {
|
|
1943
|
-
const m =
|
|
1946
|
+
const m = ve(d, !1, i);
|
|
1944
1947
|
typeof m == "object" && (m.declaration.privacy !== void 0 && t.privacy === void 0 && i.emitError(
|
|
1945
1948
|
`Public component may only subclass a public component to avoid broken inheritance. Tried to inherit from private ${m.declaration.name}. Remove @private from it but feel free to add a jsdoc description stating the base class is abstract - not for direct consumption. Lumina does bare minimum extraction work for private components, which makes them ineligible for public docs.`,
|
|
1946
1949
|
{ file: n.file, node: void 0 }
|
|
1947
|
-
),
|
|
1950
|
+
), ge(m, t, a, i));
|
|
1948
1951
|
}
|
|
1949
1952
|
}
|
|
1950
|
-
function
|
|
1953
|
+
function ge(e, t, i, n) {
|
|
1951
1954
|
const s = e.declaration, a = t;
|
|
1952
1955
|
if (e.indexedMembers !== void 0) {
|
|
1953
1956
|
t.members ??= [];
|
|
@@ -1961,7 +1964,7 @@ function Ce(e, t, i, n) {
|
|
|
1961
1964
|
const u = oe(m);
|
|
1962
1965
|
oe(p).isAccessor === !0 && (u.isAccessor = !0), u.isOverride = !0;
|
|
1963
1966
|
}
|
|
1964
|
-
p !== void 0 && m.inheritedFrom === void 0 &&
|
|
1967
|
+
p !== void 0 && m.inheritedFrom === void 0 && Ie(p, m);
|
|
1965
1968
|
}
|
|
1966
1969
|
const c = s.members;
|
|
1967
1970
|
for (let d = 0; d < c.length; ++d) {
|
|
@@ -2005,7 +2008,7 @@ function X(e = [], t, i, n) {
|
|
|
2005
2008
|
const s = /* @__PURE__ */ new Set();
|
|
2006
2009
|
for (let a = 0; a < e.length; ++a) {
|
|
2007
2010
|
const r = e[a], o = i[r.name];
|
|
2008
|
-
o !== void 0 && (s.add(r.name), r.inheritedFrom === void 0 &&
|
|
2011
|
+
o !== void 0 && (s.add(r.name), r.inheritedFrom === void 0 && Ie(o, r));
|
|
2009
2012
|
}
|
|
2010
2013
|
for (let a = 0; a < t.length; ++a) {
|
|
2011
2014
|
const r = t[a];
|
|
@@ -2015,12 +2018,12 @@ function X(e = [], t, i, n) {
|
|
|
2015
2018
|
}
|
|
2016
2019
|
return e;
|
|
2017
2020
|
}
|
|
2018
|
-
function
|
|
2019
|
-
const n = i.moduleMap.get(e), s =
|
|
2021
|
+
function ve(e, t, i) {
|
|
2022
|
+
const n = i.moduleMap.get(e), s = kt(n, e, t, i), a = n === void 0 ? void 0 : h(n);
|
|
2020
2023
|
if (s === !1 || n === void 0)
|
|
2021
2024
|
return a !== void 0 ? a.inheritance = de.skip : t && i.privateMixinModuleNames.add(e), de.skip;
|
|
2022
2025
|
const [r, o] = s, l = o;
|
|
2023
|
-
|
|
2026
|
+
we(n, o, i);
|
|
2024
2027
|
let c, d = !1;
|
|
2025
2028
|
if (o.members !== void 0) {
|
|
2026
2029
|
c = /* @__PURE__ */ Object.create(null);
|
|
@@ -2058,7 +2061,7 @@ function Y(e) {
|
|
|
2058
2061
|
}
|
|
2059
2062
|
return t;
|
|
2060
2063
|
}
|
|
2061
|
-
function
|
|
2064
|
+
function kt(e, t, i, n) {
|
|
2062
2065
|
const s = e === void 0 ? void 0 : h(e), a = s?.index.class;
|
|
2063
2066
|
return a === void 0 ? (i || n.emitError(
|
|
2064
2067
|
`Failed to find @public class/custom element declaration in ${x.red(t)}. Referenced in the extends clause by ${x.blue(n.apiModule.sourcePath)}`,
|
|
@@ -2069,7 +2072,7 @@ function Tt(e, t, i, n) {
|
|
|
2069
2072
|
}
|
|
2070
2073
|
), !1) : [t, a];
|
|
2071
2074
|
}
|
|
2072
|
-
function
|
|
2075
|
+
function Ce(e, t, i) {
|
|
2073
2076
|
if (e.package !== void 0)
|
|
2074
2077
|
return;
|
|
2075
2078
|
const n = e.module === void 0 ? t : i.moduleMap.get(e.module), s = n === void 0 ? void 0 : h(n), a = e.name === "default" ? s?.index.default : s?.index.named[e.name];
|
|
@@ -2086,11 +2089,11 @@ function be(e, t, i) {
|
|
|
2086
2089
|
}
|
|
2087
2090
|
return a.kind === "interface" ? a : void 0;
|
|
2088
2091
|
}
|
|
2089
|
-
function
|
|
2092
|
+
function Et(e, t, i) {
|
|
2090
2093
|
const n = oe(e), s = h(t);
|
|
2091
|
-
n.hasAutoCasting === !0 && (
|
|
2094
|
+
n.hasAutoCasting === !0 && (vt(e.type, n, t, i), n.isConstructorOnly !== !0 && e.getterType?.text === e.type.text && (e.getterType = void 0)), n.isConstructorOnly === !0 && (s.constructorOnlySetters ??= {}, s.constructorOnlySetters[e.name] = e.type, e.type = e.getterType ?? e.type, e.getterType = void 0, e.readonly = !0);
|
|
2092
2095
|
}
|
|
2093
|
-
function
|
|
2096
|
+
function Tt(e, t, i) {
|
|
2094
2097
|
if (!(i.watchFiles === void 0 || t.reExports === void 0))
|
|
2095
2098
|
for (let n = 0; n < t.reExports.length; ++n) {
|
|
2096
2099
|
const s = t.reExports[n];
|
|
@@ -2100,10 +2103,10 @@ function Ft(e, t, i) {
|
|
|
2100
2103
|
o !== void 0 && (i.watchFiles.get(e.sourcePath).dependencies.add(o), i.watchFiles.get(o).dependents.set(e.sourcePath, !0));
|
|
2101
2104
|
}
|
|
2102
2105
|
}
|
|
2103
|
-
function
|
|
2104
|
-
e.sort(
|
|
2106
|
+
function $t(e, t) {
|
|
2107
|
+
e.sort(tt), Ft(e, t), t.isComponentProject && De(e, t);
|
|
2105
2108
|
}
|
|
2106
|
-
function
|
|
2109
|
+
function Ft(e, t) {
|
|
2107
2110
|
for (let i = 0; i < e.length; ++i) {
|
|
2108
2111
|
const n = e[i];
|
|
2109
2112
|
if (!h(n).isStale)
|
|
@@ -2118,7 +2121,7 @@ function At(e, t) {
|
|
|
2118
2121
|
file: h(n).file,
|
|
2119
2122
|
node: void 0
|
|
2120
2123
|
}
|
|
2121
|
-
), "members" in o && o.kind !== "interface" && (
|
|
2124
|
+
), "members" in o && o.kind !== "interface" && (we(n, o, t), o.events?.sort(it));
|
|
2122
2125
|
}
|
|
2123
2126
|
}
|
|
2124
2127
|
for (let i = 0; i < e.length; ++i) {
|
|
@@ -2135,72 +2138,72 @@ function At(e, t) {
|
|
|
2135
2138
|
}
|
|
2136
2139
|
continue;
|
|
2137
2140
|
}
|
|
2138
|
-
t.apiModule = n, t.inheritedModuleName = void 0, n.deprecated = ee(n.deprecated, t), n.description =
|
|
2141
|
+
t.apiModule = n, t.inheritedModuleName = void 0, n.deprecated = ee(n.deprecated, t), n.description = G(n.description, t), V(n.docsTags, t);
|
|
2139
2142
|
for (let a = 0; a < n.declarations.length; ++a) {
|
|
2140
2143
|
const r = n.declarations[a];
|
|
2141
|
-
if (r.deprecated = ee(r.deprecated, t), r.description =
|
|
2144
|
+
if (r.deprecated = ee(r.deprecated, t), r.description = G(r.description, t), V(r.docsTags, t), r.kind === "function") {
|
|
2142
2145
|
if (r.parameters !== void 0)
|
|
2143
2146
|
for (let l = 0; l < r.parameters.length; ++l) {
|
|
2144
2147
|
const c = r.parameters[l];
|
|
2145
|
-
c.description =
|
|
2148
|
+
c.description = G(c.description, t), V(c.docsTags, t);
|
|
2146
2149
|
}
|
|
2147
|
-
r.return !== void 0 && (r.return.description =
|
|
2150
|
+
r.return !== void 0 && (r.return.description = G(r.return.description, t));
|
|
2148
2151
|
}
|
|
2149
2152
|
const o = r;
|
|
2150
2153
|
if (o.members !== void 0) {
|
|
2151
2154
|
for (let c = 0; c < o.members.length; ++c) {
|
|
2152
2155
|
const d = o.members[c], m = d.inheritedFrom, f = m !== void 0;
|
|
2153
|
-
if (t.inheritedModuleName = m?.module, d.deprecated = ee(d.deprecated, t), d.description =
|
|
2156
|
+
if (t.inheritedModuleName = m?.module, d.deprecated = ee(d.deprecated, t), d.description = G(d.description, t), V(d.docsTags, t), !f && d.kind !== "field") {
|
|
2154
2157
|
if (d.parameters !== void 0)
|
|
2155
2158
|
for (let g = 0; g < d.parameters.length; ++g) {
|
|
2156
2159
|
const u = d.parameters[g];
|
|
2157
|
-
u.description =
|
|
2160
|
+
u.description = G(u.description, t), V(u.docsTags, t);
|
|
2158
2161
|
}
|
|
2159
2162
|
const p = d;
|
|
2160
|
-
p.return !== void 0 && (p.return.description =
|
|
2163
|
+
p.return !== void 0 && (p.return.description = G(p.return.description, t));
|
|
2161
2164
|
}
|
|
2162
2165
|
t.inheritedModuleName = void 0;
|
|
2163
2166
|
}
|
|
2164
|
-
r.kind !== "interface" && o.members.sort(
|
|
2167
|
+
r.kind !== "interface" && o.members.sort(nt);
|
|
2165
2168
|
const l = r;
|
|
2166
2169
|
if (l.events !== void 0) {
|
|
2167
2170
|
for (let c = 0; c < l.events.length; ++c) {
|
|
2168
2171
|
const d = l.events[c];
|
|
2169
|
-
t.inheritedModuleName = d.inheritedFrom?.module, d.deprecated = ee(d.deprecated, t), d.description =
|
|
2172
|
+
t.inheritedModuleName = d.inheritedFrom?.module, d.deprecated = ee(d.deprecated, t), d.description = G(d.description, t), V(d.docsTags, t);
|
|
2170
2173
|
}
|
|
2171
2174
|
t.inheritedModuleName = void 0;
|
|
2172
2175
|
}
|
|
2173
|
-
if (t.config.context.isLuminaMinimalExtraction ||
|
|
2176
|
+
if (t.config.context.isLuminaMinimalExtraction || It(o), l.slots !== void 0)
|
|
2174
2177
|
for (let c = 0; c < l.slots.length; ++c) {
|
|
2175
2178
|
const d = l.slots[c];
|
|
2176
|
-
d.description =
|
|
2179
|
+
d.description = G(d.description, t);
|
|
2177
2180
|
}
|
|
2178
2181
|
if (l.cssProperties !== void 0)
|
|
2179
2182
|
for (let c = 0; c < l.cssProperties.length; ++c) {
|
|
2180
2183
|
const d = l.cssProperties[c];
|
|
2181
|
-
d.description =
|
|
2184
|
+
d.description = G(d.description, t);
|
|
2182
2185
|
}
|
|
2183
2186
|
if (l.cssParts !== void 0)
|
|
2184
2187
|
for (let c = 0; c < l.cssParts.length; ++c) {
|
|
2185
2188
|
const d = l.cssParts[c];
|
|
2186
|
-
d.description =
|
|
2189
|
+
d.description = G(d.description, t);
|
|
2187
2190
|
}
|
|
2188
2191
|
if (l.cssStates !== void 0)
|
|
2189
2192
|
for (let c = 0; c < l.cssStates.length; ++c) {
|
|
2190
2193
|
const d = l.cssStates[c];
|
|
2191
|
-
d.description =
|
|
2194
|
+
d.description = G(d.description, t);
|
|
2192
2195
|
}
|
|
2193
2196
|
if (l.demos !== void 0)
|
|
2194
2197
|
for (let c = 0; c < l.demos.length; ++c) {
|
|
2195
2198
|
const d = l.demos[c];
|
|
2196
|
-
d.description =
|
|
2199
|
+
d.description = G(d.description, t);
|
|
2197
2200
|
}
|
|
2198
2201
|
} else r === s.constructorPropertiesInterface && (n.declarations.splice(a, 1), a -= 1);
|
|
2199
2202
|
}
|
|
2200
|
-
s.constructorPropertiesInterface !== void 0 &&
|
|
2203
|
+
s.constructorPropertiesInterface !== void 0 && xt(s, t), gt(n, s, t), Tt(n, s, t);
|
|
2201
2204
|
}
|
|
2202
2205
|
}
|
|
2203
|
-
const
|
|
2206
|
+
const wt = async function() {
|
|
2204
2207
|
if (this.isRunInProgress)
|
|
2205
2208
|
throw Error(
|
|
2206
2209
|
"The ApiExtractor.run() is already in progress, or previous run crashed with unrecoverable error. Await the previous run first or create a new ApiExtractor"
|
|
@@ -2210,7 +2213,7 @@ const Dt = async function() {
|
|
|
2210
2213
|
this.watchFiles === void 0 && (this.moduleMap = /* @__PURE__ */ new Map());
|
|
2211
2214
|
const t = e.context.dtsEmitPath !== "", i = e.context.emptyDtsEmitPath && t ? (
|
|
2212
2215
|
// This takes 80ms for JSAPI
|
|
2213
|
-
|
|
2216
|
+
Le(e.context.dtsEmitPath)
|
|
2214
2217
|
) : void 0;
|
|
2215
2218
|
if (e.types.typeCheckedExtraction || e.types.fullTypeCheck) {
|
|
2216
2219
|
const o = _(), l = e.types.typeScriptConfig;
|
|
@@ -2223,26 +2226,26 @@ const Dt = async function() {
|
|
|
2223
2226
|
});
|
|
2224
2227
|
this.program = d, e.types.typeScriptInstanceCreated(d, c);
|
|
2225
2228
|
}
|
|
2226
|
-
|
|
2229
|
+
Ae(this, o);
|
|
2227
2230
|
}
|
|
2228
|
-
const n = _(), s = await
|
|
2229
|
-
|
|
2231
|
+
const n = _(), s = await Oe(this);
|
|
2232
|
+
$t(s, this);
|
|
2230
2233
|
const a = this.wrapApiModules(s);
|
|
2231
2234
|
e.context.logger.info(
|
|
2232
2235
|
`${H}Extracted ${s.length} @public files in ${x.green(`${n()}s`)}`
|
|
2233
2236
|
);
|
|
2234
2237
|
const r = { apiJson: a, dtsFiles: void 0 };
|
|
2235
|
-
if (e.afterApiJsonCreate !==
|
|
2238
|
+
if (e.afterApiJsonCreate !== Se && e.afterApiJsonCreate(r), this.produceDts) {
|
|
2236
2239
|
const o = _(), l = this.dtsFiles;
|
|
2237
2240
|
if (this.dtsFiles = /* @__PURE__ */ new Map(), this.isJsApi) {
|
|
2238
|
-
const c =
|
|
2241
|
+
const c = ht(s, this), d = `${e.context.dtsEmitPath}interfaces.d.ts`;
|
|
2239
2242
|
this.dtsFiles.set(d, c);
|
|
2240
|
-
} else this.isComponentProject &&
|
|
2243
|
+
} else this.isComponentProject && Ne(s, this);
|
|
2241
2244
|
for (let c = 0; c < s.length; ++c) {
|
|
2242
2245
|
const d = s[c], m = h(d);
|
|
2243
2246
|
let f = `${e.context.dtsEmitPath + m.dtsPath}.d.ts`, p;
|
|
2244
2247
|
if (m.isStale) {
|
|
2245
|
-
if (p =
|
|
2248
|
+
if (p = Be(d, this), e.types.declarationTextTransformers.length > 0) {
|
|
2246
2249
|
let v = { filePath: f, content: p };
|
|
2247
2250
|
for (let C = 0; C < e.types.declarationTextTransformers.length; ++C) {
|
|
2248
2251
|
const y = e.types.declarationTextTransformers[C];
|
|
@@ -2265,7 +2268,7 @@ const Dt = async function() {
|
|
|
2265
2268
|
for (const [c, d] of this.dtsFiles)
|
|
2266
2269
|
l.get(c) !== d && this.changedDtsFiles.set(c, d);
|
|
2267
2270
|
if (t) {
|
|
2268
|
-
await i, await ae(e.context.dtsEmitPath, { recursive: !0 }), await
|
|
2271
|
+
await i, await ae(e.context.dtsEmitPath, { recursive: !0 }), await At(e.context.dtsEmitPath, !0, this.changedDtsFiles ?? this.dtsFiles);
|
|
2269
2272
|
const c = N.join(N.relative(process.cwd(), e.context.dtsEmitPath), "/");
|
|
2270
2273
|
e.context.logger.info(
|
|
2271
2274
|
`${H}Wrote ${c}**/*${x.blue(".d.ts")} in ${x.green(`${o()}s`)}`
|
|
@@ -2274,7 +2277,7 @@ const Dt = async function() {
|
|
|
2274
2277
|
}
|
|
2275
2278
|
if (e.context.apiJsonEmitPath !== "") {
|
|
2276
2279
|
const o = N.resolve(e.context.cwd, e.context.apiJsonEmitPath), l = N.join(N.relative(process.cwd(), N.dirname(o)), "/");
|
|
2277
|
-
await ae(N.dirname(o), { recursive: !0 }), await
|
|
2280
|
+
await ae(N.dirname(o), { recursive: !0 }), await xe(
|
|
2278
2281
|
o,
|
|
2279
2282
|
e.context.environment === "production" ? JSON.stringify(a) : JSON.stringify(a, null, 2)
|
|
2280
2283
|
), e.context.logger.info(
|
|
@@ -2285,7 +2288,7 @@ const Dt = async function() {
|
|
|
2285
2288
|
`${H}${x.red(`Found ${this.errorCount} ${this.errorCount === 1 ? "error" : "errors"}`)}`
|
|
2286
2289
|
), this.silencedBrokenLinkCount > 0 && e.context.logger.info(`${H}Silenced ${this.silencedBrokenLinkCount} broken link errors.`), this.isRunInProgress = !1, this.produceDts && (r.dtsFiles = this.dtsFiles), r;
|
|
2287
2290
|
};
|
|
2288
|
-
async function
|
|
2291
|
+
async function At(e, t, i) {
|
|
2289
2292
|
const n = /* @__PURE__ */ new Set(), s = Array.from(i.entries());
|
|
2290
2293
|
for (let l = 0; l < s.length; ++l) {
|
|
2291
2294
|
const [c, d] = s[l];
|
|
@@ -2305,24 +2308,24 @@ async function Rt(e, t, i) {
|
|
|
2305
2308
|
if (d.length === 0)
|
|
2306
2309
|
continue;
|
|
2307
2310
|
const m = o + c;
|
|
2308
|
-
r[l] =
|
|
2311
|
+
r[l] = xe(m, d);
|
|
2309
2312
|
}
|
|
2310
2313
|
await Promise.all(r);
|
|
2311
2314
|
}
|
|
2312
|
-
function
|
|
2315
|
+
function Ae(e, t) {
|
|
2313
2316
|
if (e.config.types.fullTypeCheck)
|
|
2314
2317
|
if ("getSemanticDiagnostics" in e.program) {
|
|
2315
2318
|
const i = e.builderProgram === void 0 ? E.getPreEmitDiagnostics(e.program) : e.builderProgram.getSemanticDiagnostics();
|
|
2316
2319
|
i.length > 0 && (e.config.context.logger.error(
|
|
2317
2320
|
E.formatDiagnosticsWithColorAndContext(i, se)
|
|
2318
|
-
), e.errorCount += i.length, process.exitCode = 1), e.config.types.afterDiagnostic(i), e.config.context.logger.info(`${H}Type checked in ${
|
|
2321
|
+
), e.errorCount += i.length, process.exitCode = 1), e.config.types.afterDiagnostic(i), e.config.context.logger.info(`${H}Type checked in ${qe("cyan", `${t()}s`)}`);
|
|
2319
2322
|
} else
|
|
2320
2323
|
e.emitError("Can't do type checking as the passed ts.Program is not a ts.Program instance.", {
|
|
2321
2324
|
file: void 0,
|
|
2322
2325
|
node: void 0
|
|
2323
2326
|
});
|
|
2324
2327
|
}
|
|
2325
|
-
const
|
|
2328
|
+
const Rt = async function() {
|
|
2326
2329
|
if (this.watchFiles !== void 0)
|
|
2327
2330
|
throw Error(
|
|
2328
2331
|
"The ApiExtractor.watch() is already in progress, or previous watch crashed with unrecoverable error. Stop the previous watch first or create a new ApiExtractor"
|
|
@@ -2344,13 +2347,13 @@ const Gt = async function() {
|
|
|
2344
2347
|
for (const C of u.dependencies)
|
|
2345
2348
|
this.watchFiles.get(C)?.dependents.delete(v.sourcePath);
|
|
2346
2349
|
for (const [C, y] of u.dependents) {
|
|
2347
|
-
const
|
|
2348
|
-
|
|
2350
|
+
const M = this.watchFiles.get(C);
|
|
2351
|
+
M !== void 0 && (y ? (M.dependencies.delete(v.sourcePath), r(M)) : M.hasDirtyLinks = !0);
|
|
2349
2352
|
}
|
|
2350
2353
|
}, o = (u, v, C) => {
|
|
2351
2354
|
if (v === void 0) {
|
|
2352
|
-
const y = e.context.cwd + u,
|
|
2353
|
-
v =
|
|
2355
|
+
const y = e.context.cwd + u, M = lt(y, "utf8");
|
|
2356
|
+
v = je(y, M);
|
|
2354
2357
|
}
|
|
2355
2358
|
this.watchFiles.set(u, {
|
|
2356
2359
|
file: v,
|
|
@@ -2377,28 +2380,28 @@ const Gt = async function() {
|
|
|
2377
2380
|
let u;
|
|
2378
2381
|
try {
|
|
2379
2382
|
u = await this.run();
|
|
2380
|
-
} catch (
|
|
2381
|
-
throw f(void 0),
|
|
2383
|
+
} catch (b) {
|
|
2384
|
+
throw f(void 0), b;
|
|
2382
2385
|
}
|
|
2383
2386
|
const v = [], C = [];
|
|
2384
|
-
for (const
|
|
2385
|
-
const I =
|
|
2387
|
+
for (const b of this.watchFiles.values()) {
|
|
2388
|
+
const I = b.module, P = b.previousModule;
|
|
2386
2389
|
if (I === void 0)
|
|
2387
|
-
P !== void 0 && (
|
|
2390
|
+
P !== void 0 && (b.module = b.previousModule, a(b, P.sourcePath));
|
|
2388
2391
|
else {
|
|
2389
|
-
P === void 0 ? (c || C.push(I),
|
|
2392
|
+
P === void 0 ? (c || C.push(I), b.previousModule = I) : I !== P && (He(I, P) ? b.module = P : (v.push({ old: P, new: I }), b.previousModule = I));
|
|
2390
2393
|
const L = h(I);
|
|
2391
2394
|
L.isStale && (L.isStale = !1);
|
|
2392
2395
|
}
|
|
2393
2396
|
}
|
|
2394
2397
|
this.program ??= {
|
|
2395
2398
|
getSourceFiles: () => {
|
|
2396
|
-
const
|
|
2399
|
+
const b = [];
|
|
2397
2400
|
for (const I of this.watchFiles.values())
|
|
2398
|
-
|
|
2399
|
-
return
|
|
2401
|
+
b.push(I.file);
|
|
2402
|
+
return b;
|
|
2400
2403
|
},
|
|
2401
|
-
getSourceFile: (
|
|
2404
|
+
getSourceFile: (b) => this.watchFiles.get(b.slice(e.context.cwd.length))?.file
|
|
2402
2405
|
};
|
|
2403
2406
|
const y = {
|
|
2404
2407
|
apiJson: u.apiJson,
|
|
@@ -2408,8 +2411,8 @@ const Gt = async function() {
|
|
|
2408
2411
|
removedModules: n
|
|
2409
2412
|
};
|
|
2410
2413
|
n = [];
|
|
2411
|
-
const
|
|
2412
|
-
c = !1, f(
|
|
2414
|
+
const M = c || v.length > 0 || C.length > 0 || y.removedModules.length > 0;
|
|
2415
|
+
c = !1, f(M ? y : void 0), l?.();
|
|
2413
2416
|
};
|
|
2414
2417
|
if (e.types.typeCheckedExtraction || e.types.fullTypeCheck) {
|
|
2415
2418
|
const u = e.types.fullTypeCheck ? E.createSemanticDiagnosticsBuilderProgram : E.createAbstractBuilder;
|
|
@@ -2417,7 +2420,7 @@ const Gt = async function() {
|
|
|
2417
2420
|
const C = (S, F, T, ...A) => (v = T, u(
|
|
2418
2421
|
// If not doing full type check, don't scout test files
|
|
2419
2422
|
// If non-tests import tests, they will be included implicitly anyway
|
|
2420
|
-
e.types.fullTypeCheck ? S : S?.filter(($) => !
|
|
2423
|
+
e.types.fullTypeCheck ? S : S?.filter(($) => !ze($)),
|
|
2421
2424
|
F,
|
|
2422
2425
|
T,
|
|
2423
2426
|
...A
|
|
@@ -2431,21 +2434,21 @@ const Gt = async function() {
|
|
|
2431
2434
|
C,
|
|
2432
2435
|
void 0,
|
|
2433
2436
|
void 0
|
|
2434
|
-
),
|
|
2435
|
-
let
|
|
2436
|
-
y.setTimeout =
|
|
2437
|
+
), M = y.setTimeout;
|
|
2438
|
+
let b;
|
|
2439
|
+
y.setTimeout = M === void 0 ? void 0 : (S, F, ...T) => {
|
|
2437
2440
|
if (!(T[0] === "timerToUpdateProgram"))
|
|
2438
|
-
return
|
|
2439
|
-
const
|
|
2440
|
-
return
|
|
2441
|
+
return M(S, F, ...T);
|
|
2442
|
+
const R = b !== void 0 ? Promise.resolve() : d === void 0 ? Promise.resolve(m()) : d.promise.finally(m);
|
|
2443
|
+
return b = M(
|
|
2441
2444
|
(...J) => {
|
|
2442
|
-
|
|
2445
|
+
b = void 0, R.finally(() => {
|
|
2443
2446
|
this.program = void 0, S(...J), this.program === void 0 && f(void 0);
|
|
2444
2447
|
});
|
|
2445
2448
|
},
|
|
2446
2449
|
e.watch.debounceTime,
|
|
2447
2450
|
...T
|
|
2448
|
-
),
|
|
2451
|
+
), b;
|
|
2449
2452
|
};
|
|
2450
2453
|
const I = y.onWatchStatusChange, P = 6031, L = 6032;
|
|
2451
2454
|
y.onWatchStatusChange = (S, ...F) => {
|
|
@@ -2460,41 +2463,41 @@ const Gt = async function() {
|
|
|
2460
2463
|
$.wasRemoved = !0;
|
|
2461
2464
|
let A = !1;
|
|
2462
2465
|
for (let $ = 0; $ < T.length; ++$) {
|
|
2463
|
-
const
|
|
2464
|
-
if (!me(
|
|
2466
|
+
const R = T[$];
|
|
2467
|
+
if (!me(R.fileName, this))
|
|
2465
2468
|
continue;
|
|
2466
|
-
const j =
|
|
2467
|
-
J === void 0 ? (o(j,
|
|
2469
|
+
const j = R.fileName.slice(e.context.cwd.length), J = this.watchFiles.get(j);
|
|
2470
|
+
J === void 0 ? (o(j, R, void 0), A = !0) : J.file !== R ? (s(J, j, R), A = !0) : J.wasRemoved = !1;
|
|
2468
2471
|
}
|
|
2469
|
-
for (const [$,
|
|
2470
|
-
|
|
2471
|
-
A ? p() : (
|
|
2472
|
+
for (const [$, R] of this.watchFiles)
|
|
2473
|
+
R.wasRemoved && (a(R, $), A = !0);
|
|
2474
|
+
A ? p() : (Ae(this, _()), f(void 0));
|
|
2472
2475
|
}, t = E.createWatchProgram(y);
|
|
2473
2476
|
} else {
|
|
2474
2477
|
let u = function(y) {
|
|
2475
|
-
return
|
|
2478
|
+
return ct(y, {
|
|
2476
2479
|
throwIfNoEntry: !1
|
|
2477
2480
|
})?.isFile();
|
|
2478
2481
|
};
|
|
2479
|
-
const v =
|
|
2482
|
+
const v = rt(() => {
|
|
2480
2483
|
let y = !1;
|
|
2481
|
-
for (const [
|
|
2482
|
-
y = C(
|
|
2484
|
+
for (const [M, b] of i)
|
|
2485
|
+
y = C(M, b) || y;
|
|
2483
2486
|
i.clear(), y ? (e.watch.clearScreen && E.sys.clearScreen?.(), p()) : f(void 0);
|
|
2484
|
-
}, e.watch.debounceTime), C = (y,
|
|
2485
|
-
const
|
|
2487
|
+
}, e.watch.debounceTime), C = (y, M) => {
|
|
2488
|
+
const b = e.context.cwd + y, I = !M, P = this.watchFiles.get(y), L = P !== void 0;
|
|
2486
2489
|
if (I || P === void 0) {
|
|
2487
|
-
const S = u(
|
|
2490
|
+
const S = u(b);
|
|
2488
2491
|
if (S === !1) {
|
|
2489
2492
|
let T, A = !1;
|
|
2490
2493
|
try {
|
|
2491
|
-
T =
|
|
2494
|
+
T = st(b, { recursive: !0 });
|
|
2492
2495
|
let $;
|
|
2493
2496
|
for (; ($ = T.readSync()) !== null; ) {
|
|
2494
2497
|
if ($.isDirectory())
|
|
2495
2498
|
continue;
|
|
2496
2499
|
const j = `${$.parentPath}/${$.name}`.slice(e.context.cwd.length);
|
|
2497
|
-
|
|
2500
|
+
We(j) && (A = C(j, !1) || A);
|
|
2498
2501
|
}
|
|
2499
2502
|
} finally {
|
|
2500
2503
|
T?.closeSync();
|
|
@@ -2515,24 +2518,24 @@ const Gt = async function() {
|
|
|
2515
2518
|
{
|
|
2516
2519
|
let T = !1;
|
|
2517
2520
|
const A = `${y}/`;
|
|
2518
|
-
for (const [$,
|
|
2519
|
-
$.startsWith(A) && (a(
|
|
2521
|
+
for (const [$, R] of this.watchFiles)
|
|
2522
|
+
$.startsWith(A) && (a(R, $), T = !0);
|
|
2520
2523
|
return T;
|
|
2521
2524
|
}
|
|
2522
2525
|
}
|
|
2523
2526
|
} else
|
|
2524
2527
|
return s(P, y, void 0), !0;
|
|
2525
2528
|
};
|
|
2526
|
-
t =
|
|
2527
|
-
const
|
|
2529
|
+
t = at(this.basePath, { recursive: !0 }, (y, M) => {
|
|
2530
|
+
const b = m(), I = M === null ? void 0 : Ye(M), P = y === "change";
|
|
2528
2531
|
if (I !== void 0 && // If changed, check if it is an included file
|
|
2529
2532
|
// For a rename, we don't know if it is directory or a file - only check
|
|
2530
2533
|
// if directory is included, and the file will be checked later.
|
|
2531
|
-
(P ? me(this.basePath + I, this) :
|
|
2534
|
+
(P ? me(this.basePath + I, this) : Ue(this.basePath + I, this))) {
|
|
2532
2535
|
const L = e.context.basePath + I, F = (i.get(L) ?? !0) && P;
|
|
2533
2536
|
i.set(L, F);
|
|
2534
2537
|
}
|
|
2535
|
-
|
|
2538
|
+
b && v();
|
|
2536
2539
|
}), p(), l = () => {
|
|
2537
2540
|
i.size > 0 && v();
|
|
2538
2541
|
};
|
|
@@ -2542,14 +2545,14 @@ const Gt = async function() {
|
|
|
2542
2545
|
t.close(), i.clear(), await d?.promise, this.watchFiles = void 0;
|
|
2543
2546
|
}
|
|
2544
2547
|
};
|
|
2545
|
-
},
|
|
2546
|
-
class
|
|
2548
|
+
}, Gt = ".verify-typings.ts";
|
|
2549
|
+
class Dt {
|
|
2547
2550
|
constructor(t, i = N.join(process.cwd(), "dist")) {
|
|
2548
2551
|
this.extractor = t, this.virtualCwdPath = N.join(i, "/");
|
|
2549
2552
|
}
|
|
2550
2553
|
verifyTypes(t) {
|
|
2551
2554
|
const i = _(), n = /* @__PURE__ */ Object.create(null);
|
|
2552
|
-
n[this.virtualCwdPath +
|
|
2555
|
+
n[this.virtualCwdPath + Gt] = this.getVerificationFileContents(t);
|
|
2553
2556
|
const s = this.extractor.config.context.dtsEmitPath === "" ? this.virtualCwdPath : "";
|
|
2554
2557
|
for (const [f, p] of this.extractor.dtsFiles)
|
|
2555
2558
|
n[s + f] = p;
|
|
@@ -2619,18 +2622,18 @@ class Ot {
|
|
|
2619
2622
|
return i;
|
|
2620
2623
|
}
|
|
2621
2624
|
}
|
|
2622
|
-
class
|
|
2625
|
+
class qt {
|
|
2623
2626
|
/**
|
|
2624
2627
|
* @public
|
|
2625
2628
|
* @param rawConfig Optional configuration for the extractor.
|
|
2626
2629
|
*/
|
|
2627
2630
|
constructor(t = {}) {
|
|
2628
|
-
this.componentStories = /* @__PURE__ */ Object.create(null), this.dtsFiles = /* @__PURE__ */ new Map(), this.changedDtsFiles = void 0, this.isRunInProgress = !1, this.watchFiles = void 0, this.program = void 0, this.builderProgram = void 0, this.componentPathMapping = void 0, this.componentCssFileDocs = void 0, this.vanillaComponentTypes = void 0, this.isInLuminaMinimalExtraction = !1, this.errorCount = 0, this.silencedBrokenLinkCount = 0, this.loggedBooleanWarning = !1, this.moduleMap = void 0, this.privateMixinModuleNames = /* @__PURE__ */ new Set(), this.implicitPublicModules = void 0, this.file = void 0, this.apiModule = void 0, this.componentTagName = void 0, this.pairedSetter = void 0, this.statementJsDocs = [], this.jsDoc = void 0, this.apiObject = void 0, this.moduleContext = void 0, this.localDeclarations = /* @__PURE__ */ new Set(), this.exportDefaultName = void 0, this.objectLikeTypeParameters = void 0, this.functionLikeTypeParameters = void 0, this.apiClassLikeName = void 0, this.mixinName = void 0, this.mixinMixins = void 0, this.moduleHasAccessorLikeClass = !1, this.moduleHasClass = !1, this.inheritedModuleName = void 0, this.run =
|
|
2629
|
-
const i =
|
|
2630
|
-
this.config = i, this.
|
|
2631
|
+
this.componentStories = /* @__PURE__ */ Object.create(null), this.dtsFiles = /* @__PURE__ */ new Map(), this.changedDtsFiles = void 0, this.isRunInProgress = !1, this.watchFiles = void 0, this.program = void 0, this.builderProgram = void 0, this.componentPathMapping = void 0, this.componentCssFileDocs = void 0, this.vanillaComponentTypes = void 0, this.isInLuminaMinimalExtraction = !1, this.errorCount = 0, this.silencedBrokenLinkCount = 0, this.loggedBooleanWarning = !1, this.moduleMap = void 0, this.privateMixinModuleNames = /* @__PURE__ */ new Set(), this.implicitPublicModules = void 0, this.file = void 0, this.apiModule = void 0, this.componentTagName = void 0, this.pairedSetter = void 0, this.statementJsDocs = [], this.jsDoc = void 0, this.apiObject = void 0, this.moduleContext = void 0, this.localDeclarations = /* @__PURE__ */ new Set(), this.exportDefaultName = void 0, this.objectLikeTypeParameters = void 0, this.functionLikeTypeParameters = void 0, this.apiClassLikeName = void 0, this.mixinName = void 0, this.mixinMixins = void 0, this.moduleHasAccessorLikeClass = !1, this.moduleHasClass = !1, this.inheritedModuleName = void 0, this.run = wt.bind(this), this.watch = Rt.bind(this), this.emitError = Re.bind(this);
|
|
2632
|
+
const i = Je(t);
|
|
2633
|
+
this.config = i, this.produceDts = i.types.forceProduceDts || i.context.dtsEmitPath !== "" || i.verify.typeCheckTypes, this.basePath = `${i.context.cwd}${i.context.basePath}`, this.normalizedApiReferencePrefix = `https://${this.config.documentation.host}${this.config.documentation.basePath}`, this.runtimeDependencyNames = /* @__PURE__ */ new Set([
|
|
2631
2634
|
...Object.keys(i.context.packageJson.dependencies ?? {}),
|
|
2632
2635
|
...Object.keys(i.context.packageJson.peerDependencies ?? {})
|
|
2633
|
-
]), this.resolveJsDocLink = i.context.isLuminaMinimalExtraction ?
|
|
2636
|
+
]), this.resolveJsDocLink = i.context.isLuminaMinimalExtraction ? Se : Xe.bind(void 0, this), this.isComponentProject = "@arcgis/lumina" in (i.context.packageJson.dependencies ?? {}), this.isJsApi = i.context.packageJson.name === "arcgis-js-api", this.typeVerifier = i.verify.typeCheckTypes ? new Dt(this, i.context.dtsEmitPath || void 0) : void 0, this.localPrivateDeclarations = i.strict ? void 0 : /* @__PURE__ */ new Map();
|
|
2634
2637
|
}
|
|
2635
2638
|
/**
|
|
2636
2639
|
* Given an array of ApiModules, add top-level api.json metadata and return
|
|
@@ -2656,6 +2659,6 @@ class _t {
|
|
|
2656
2659
|
}
|
|
2657
2660
|
}
|
|
2658
2661
|
export {
|
|
2659
|
-
|
|
2660
|
-
|
|
2662
|
+
qt as A,
|
|
2663
|
+
At as w
|
|
2661
2664
|
};
|