@arcgis/api-extractor 5.1.0-next.0 → 5.1.0-next.1
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-DByayOhi.js} +212 -212
- package/dist/apiJson.d.ts +1 -1
- 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-D4_nAmBW.js} +1 -1
- package/dist/vite/plugin.js +3 -3
- package/dist/vite/typeScript.js +1 -1
- package/dist/{worker-DhIYTiur.js → worker-Btg0KdqM.js} +467 -460
- package/package.json +3 -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-D4_nAmBW.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-Btg0KdqM.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,7 +1731,7 @@ 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
1737
|
const n = t.moduleMap.get(e.module), s = h(n), a = s.constructorPropertiesInterface;
|
|
@@ -1758,18 +1758,18 @@ function ve(e, t, i) {
|
|
|
1758
1758
|
* views/3d/environment/SunLighting as it imports webscene/SunLighting.
|
|
1759
1759
|
* apiReference.name !== class.name for references to mixin base classes.
|
|
1760
1760
|
*/
|
|
1761
|
-
printableText: i === e.name ? void 0 :
|
|
1761
|
+
printableText: i === e.name ? void 0 : Pt(i, s.index.class.name)
|
|
1762
1762
|
};
|
|
1763
|
-
return
|
|
1763
|
+
return Te(r, n, t, t.apiModule), r;
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function Pt(e, t) {
|
|
1766
1766
|
if (e === void 0 || e === t)
|
|
1767
1767
|
return;
|
|
1768
1768
|
const i = e.indexOf("<");
|
|
1769
1769
|
if (e = i === -1 ? e : e.slice(0, i), e !== t)
|
|
1770
1770
|
return `${e}Properties`;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function It(e) {
|
|
1773
1773
|
if (e.customElement === void 0)
|
|
1774
1774
|
return;
|
|
1775
1775
|
const t = e, i = [];
|
|
@@ -1786,7 +1786,7 @@ function kt(e) {
|
|
|
1786
1786
|
description: s.description,
|
|
1787
1787
|
inheritedFrom: s.inheritedFrom,
|
|
1788
1788
|
type: a === void 0 || a.length === 0 ? s.type : {
|
|
1789
|
-
text:
|
|
1789
|
+
text: Ge(a),
|
|
1790
1790
|
references: void 0,
|
|
1791
1791
|
values: a,
|
|
1792
1792
|
source: void 0
|
|
@@ -1810,7 +1810,7 @@ const de = {
|
|
|
1810
1810
|
*/
|
|
1811
1811
|
deferred: 1
|
|
1812
1812
|
};
|
|
1813
|
-
function
|
|
1813
|
+
function St(e, t, i, n) {
|
|
1814
1814
|
const s = e;
|
|
1815
1815
|
n.produceDts && (Q(t).eventTypesProperty = s);
|
|
1816
1816
|
const a = h(i), r = `${t.name}Events`;
|
|
@@ -1837,9 +1837,9 @@ function Et(e, t, i, n) {
|
|
|
1837
1837
|
);
|
|
1838
1838
|
return;
|
|
1839
1839
|
}
|
|
1840
|
-
t.events ??= [],
|
|
1840
|
+
t.events ??= [], Fe(o, t, i, void 0, n);
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Fe(e, t, i, n, s) {
|
|
1843
1843
|
const a = n !== void 0;
|
|
1844
1844
|
if (n ??= /* @__PURE__ */ new Set(), e.type !== void 0) {
|
|
1845
1845
|
s.emitError(
|
|
@@ -1856,7 +1856,7 @@ function Ae(e, t, i, n, s) {
|
|
|
1856
1856
|
const o = e.members[r];
|
|
1857
1857
|
if (o.kind !== "field") {
|
|
1858
1858
|
s.emitError(
|
|
1859
|
-
`Event interfaces should only contain properties. Found ${
|
|
1859
|
+
`Event interfaces should only contain properties. Found ${et(o)} of kind ${x.red(o.kind)} in ${e.name}.`,
|
|
1860
1860
|
{
|
|
1861
1861
|
file: h(i).file,
|
|
1862
1862
|
node: void 0
|
|
@@ -1896,10 +1896,10 @@ function Ae(e, t, i, n, s) {
|
|
|
1896
1896
|
);
|
|
1897
1897
|
return;
|
|
1898
1898
|
}
|
|
1899
|
-
|
|
1899
|
+
Fe(c, t, l, n, s);
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function we(e, t, i) {
|
|
1903
1903
|
const n = h(e);
|
|
1904
1904
|
if (n.inheritance !== void 0)
|
|
1905
1905
|
return;
|
|
@@ -1910,14 +1910,14 @@ function De(e, t, i) {
|
|
|
1910
1910
|
const f = t.members[m];
|
|
1911
1911
|
if (f.kind === "field") {
|
|
1912
1912
|
if (f.name === "@eventTypes") {
|
|
1913
|
-
a = !0,
|
|
1913
|
+
a = !0, St(f, t, e, i), t.members.splice(m, 1), m -= 1;
|
|
1914
1914
|
continue;
|
|
1915
1915
|
}
|
|
1916
|
-
f.inheritedFrom === void 0 &&
|
|
1916
|
+
f.inheritedFrom === void 0 && Et(f, e, i);
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
1919
|
const r = t;
|
|
1920
|
-
let o = t.mixins, l = r.superclass, c = l === void 0 ? void 0 :
|
|
1920
|
+
let o = t.mixins, l = r.superclass, c = l === void 0 ? void 0 : Ce(l, e, i);
|
|
1921
1921
|
if (c?.supertypes !== void 0) {
|
|
1922
1922
|
o = o === void 0 ? [] : [...o];
|
|
1923
1923
|
do {
|
|
@@ -1926,28 +1926,28 @@ function De(e, t, i) {
|
|
|
1926
1926
|
const g = c.supertypes[p], u = g.module === void 0 ? { ...g, module: l.module } : g;
|
|
1927
1927
|
o.unshift(u);
|
|
1928
1928
|
}
|
|
1929
|
-
l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 :
|
|
1929
|
+
l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 : Ce(l, e, i);
|
|
1930
1930
|
} while (c?.supertypes !== void 0);
|
|
1931
1931
|
}
|
|
1932
1932
|
if (o !== void 0) {
|
|
1933
1933
|
const m = o.length - (t.mixins?.length ?? 0);
|
|
1934
1934
|
for (let f = o.length - 1; f >= 0; f--) {
|
|
1935
|
-
const p = o[f], g =
|
|
1936
|
-
typeof g == "object" ?
|
|
1935
|
+
const p = o[f], g = ve(p.module ?? e.path, !0, i);
|
|
1936
|
+
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
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
if (l?.package !== void 0)
|
|
1940
1940
|
return;
|
|
1941
1941
|
const d = l?.module;
|
|
1942
1942
|
if (d !== void 0) {
|
|
1943
|
-
const m =
|
|
1943
|
+
const m = ve(d, !1, i);
|
|
1944
1944
|
typeof m == "object" && (m.declaration.privacy !== void 0 && t.privacy === void 0 && i.emitError(
|
|
1945
1945
|
`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
1946
|
{ file: n.file, node: void 0 }
|
|
1947
|
-
),
|
|
1947
|
+
), ge(m, t, a, i));
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function ge(e, t, i, n) {
|
|
1951
1951
|
const s = e.declaration, a = t;
|
|
1952
1952
|
if (e.indexedMembers !== void 0) {
|
|
1953
1953
|
t.members ??= [];
|
|
@@ -1961,7 +1961,7 @@ function Ce(e, t, i, n) {
|
|
|
1961
1961
|
const u = oe(m);
|
|
1962
1962
|
oe(p).isAccessor === !0 && (u.isAccessor = !0), u.isOverride = !0;
|
|
1963
1963
|
}
|
|
1964
|
-
p !== void 0 && m.inheritedFrom === void 0 &&
|
|
1964
|
+
p !== void 0 && m.inheritedFrom === void 0 && Ie(p, m);
|
|
1965
1965
|
}
|
|
1966
1966
|
const c = s.members;
|
|
1967
1967
|
for (let d = 0; d < c.length; ++d) {
|
|
@@ -2005,7 +2005,7 @@ function X(e = [], t, i, n) {
|
|
|
2005
2005
|
const s = /* @__PURE__ */ new Set();
|
|
2006
2006
|
for (let a = 0; a < e.length; ++a) {
|
|
2007
2007
|
const r = e[a], o = i[r.name];
|
|
2008
|
-
o !== void 0 && (s.add(r.name), r.inheritedFrom === void 0 &&
|
|
2008
|
+
o !== void 0 && (s.add(r.name), r.inheritedFrom === void 0 && Ie(o, r));
|
|
2009
2009
|
}
|
|
2010
2010
|
for (let a = 0; a < t.length; ++a) {
|
|
2011
2011
|
const r = t[a];
|
|
@@ -2015,12 +2015,12 @@ function X(e = [], t, i, n) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
return e;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2019
|
-
const n = i.moduleMap.get(e), s =
|
|
2018
|
+
function ve(e, t, i) {
|
|
2019
|
+
const n = i.moduleMap.get(e), s = kt(n, e, t, i), a = n === void 0 ? void 0 : h(n);
|
|
2020
2020
|
if (s === !1 || n === void 0)
|
|
2021
2021
|
return a !== void 0 ? a.inheritance = de.skip : t && i.privateMixinModuleNames.add(e), de.skip;
|
|
2022
2022
|
const [r, o] = s, l = o;
|
|
2023
|
-
|
|
2023
|
+
we(n, o, i);
|
|
2024
2024
|
let c, d = !1;
|
|
2025
2025
|
if (o.members !== void 0) {
|
|
2026
2026
|
c = /* @__PURE__ */ Object.create(null);
|
|
@@ -2058,7 +2058,7 @@ function Y(e) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
return t;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function kt(e, t, i, n) {
|
|
2062
2062
|
const s = e === void 0 ? void 0 : h(e), a = s?.index.class;
|
|
2063
2063
|
return a === void 0 ? (i || n.emitError(
|
|
2064
2064
|
`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 +2069,7 @@ function Tt(e, t, i, n) {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
), !1) : [t, a];
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Ce(e, t, i) {
|
|
2073
2073
|
if (e.package !== void 0)
|
|
2074
2074
|
return;
|
|
2075
2075
|
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 +2086,11 @@ function be(e, t, i) {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
return a.kind === "interface" ? a : void 0;
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function Et(e, t, i) {
|
|
2090
2090
|
const n = oe(e), s = h(t);
|
|
2091
|
-
n.hasAutoCasting === !0 && (
|
|
2091
|
+
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
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function Tt(e, t, i) {
|
|
2094
2094
|
if (!(i.watchFiles === void 0 || t.reExports === void 0))
|
|
2095
2095
|
for (let n = 0; n < t.reExports.length; ++n) {
|
|
2096
2096
|
const s = t.reExports[n];
|
|
@@ -2100,10 +2100,10 @@ function Ft(e, t, i) {
|
|
|
2100
2100
|
o !== void 0 && (i.watchFiles.get(e.sourcePath).dependencies.add(o), i.watchFiles.get(o).dependents.set(e.sourcePath, !0));
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2104
|
-
e.sort(
|
|
2103
|
+
function $t(e, t) {
|
|
2104
|
+
e.sort(tt), Ft(e, t), t.isComponentProject && De(e, t);
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function Ft(e, t) {
|
|
2107
2107
|
for (let i = 0; i < e.length; ++i) {
|
|
2108
2108
|
const n = e[i];
|
|
2109
2109
|
if (!h(n).isStale)
|
|
@@ -2118,7 +2118,7 @@ function At(e, t) {
|
|
|
2118
2118
|
file: h(n).file,
|
|
2119
2119
|
node: void 0
|
|
2120
2120
|
}
|
|
2121
|
-
), "members" in o && o.kind !== "interface" && (
|
|
2121
|
+
), "members" in o && o.kind !== "interface" && (we(n, o, t), o.events?.sort(it));
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
for (let i = 0; i < e.length; ++i) {
|
|
@@ -2135,72 +2135,72 @@ function At(e, t) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
continue;
|
|
2137
2137
|
}
|
|
2138
|
-
t.apiModule = n, t.inheritedModuleName = void 0, n.deprecated = ee(n.deprecated, t), n.description =
|
|
2138
|
+
t.apiModule = n, t.inheritedModuleName = void 0, n.deprecated = ee(n.deprecated, t), n.description = G(n.description, t), V(n.docsTags, t);
|
|
2139
2139
|
for (let a = 0; a < n.declarations.length; ++a) {
|
|
2140
2140
|
const r = n.declarations[a];
|
|
2141
|
-
if (r.deprecated = ee(r.deprecated, t), r.description =
|
|
2141
|
+
if (r.deprecated = ee(r.deprecated, t), r.description = G(r.description, t), V(r.docsTags, t), r.kind === "function") {
|
|
2142
2142
|
if (r.parameters !== void 0)
|
|
2143
2143
|
for (let l = 0; l < r.parameters.length; ++l) {
|
|
2144
2144
|
const c = r.parameters[l];
|
|
2145
|
-
c.description =
|
|
2145
|
+
c.description = G(c.description, t), V(c.docsTags, t);
|
|
2146
2146
|
}
|
|
2147
|
-
r.return !== void 0 && (r.return.description =
|
|
2147
|
+
r.return !== void 0 && (r.return.description = G(r.return.description, t));
|
|
2148
2148
|
}
|
|
2149
2149
|
const o = r;
|
|
2150
2150
|
if (o.members !== void 0) {
|
|
2151
2151
|
for (let c = 0; c < o.members.length; ++c) {
|
|
2152
2152
|
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 =
|
|
2153
|
+
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
2154
|
if (d.parameters !== void 0)
|
|
2155
2155
|
for (let g = 0; g < d.parameters.length; ++g) {
|
|
2156
2156
|
const u = d.parameters[g];
|
|
2157
|
-
u.description =
|
|
2157
|
+
u.description = G(u.description, t), V(u.docsTags, t);
|
|
2158
2158
|
}
|
|
2159
2159
|
const p = d;
|
|
2160
|
-
p.return !== void 0 && (p.return.description =
|
|
2160
|
+
p.return !== void 0 && (p.return.description = G(p.return.description, t));
|
|
2161
2161
|
}
|
|
2162
2162
|
t.inheritedModuleName = void 0;
|
|
2163
2163
|
}
|
|
2164
|
-
r.kind !== "interface" && o.members.sort(
|
|
2164
|
+
r.kind !== "interface" && o.members.sort(nt);
|
|
2165
2165
|
const l = r;
|
|
2166
2166
|
if (l.events !== void 0) {
|
|
2167
2167
|
for (let c = 0; c < l.events.length; ++c) {
|
|
2168
2168
|
const d = l.events[c];
|
|
2169
|
-
t.inheritedModuleName = d.inheritedFrom?.module, d.deprecated = ee(d.deprecated, t), d.description =
|
|
2169
|
+
t.inheritedModuleName = d.inheritedFrom?.module, d.deprecated = ee(d.deprecated, t), d.description = G(d.description, t), V(d.docsTags, t);
|
|
2170
2170
|
}
|
|
2171
2171
|
t.inheritedModuleName = void 0;
|
|
2172
2172
|
}
|
|
2173
|
-
if (t.config.context.isLuminaMinimalExtraction ||
|
|
2173
|
+
if (t.config.context.isLuminaMinimalExtraction || It(o), l.slots !== void 0)
|
|
2174
2174
|
for (let c = 0; c < l.slots.length; ++c) {
|
|
2175
2175
|
const d = l.slots[c];
|
|
2176
|
-
d.description =
|
|
2176
|
+
d.description = G(d.description, t);
|
|
2177
2177
|
}
|
|
2178
2178
|
if (l.cssProperties !== void 0)
|
|
2179
2179
|
for (let c = 0; c < l.cssProperties.length; ++c) {
|
|
2180
2180
|
const d = l.cssProperties[c];
|
|
2181
|
-
d.description =
|
|
2181
|
+
d.description = G(d.description, t);
|
|
2182
2182
|
}
|
|
2183
2183
|
if (l.cssParts !== void 0)
|
|
2184
2184
|
for (let c = 0; c < l.cssParts.length; ++c) {
|
|
2185
2185
|
const d = l.cssParts[c];
|
|
2186
|
-
d.description =
|
|
2186
|
+
d.description = G(d.description, t);
|
|
2187
2187
|
}
|
|
2188
2188
|
if (l.cssStates !== void 0)
|
|
2189
2189
|
for (let c = 0; c < l.cssStates.length; ++c) {
|
|
2190
2190
|
const d = l.cssStates[c];
|
|
2191
|
-
d.description =
|
|
2191
|
+
d.description = G(d.description, t);
|
|
2192
2192
|
}
|
|
2193
2193
|
if (l.demos !== void 0)
|
|
2194
2194
|
for (let c = 0; c < l.demos.length; ++c) {
|
|
2195
2195
|
const d = l.demos[c];
|
|
2196
|
-
d.description =
|
|
2196
|
+
d.description = G(d.description, t);
|
|
2197
2197
|
}
|
|
2198
2198
|
} else r === s.constructorPropertiesInterface && (n.declarations.splice(a, 1), a -= 1);
|
|
2199
2199
|
}
|
|
2200
|
-
s.constructorPropertiesInterface !== void 0 &&
|
|
2200
|
+
s.constructorPropertiesInterface !== void 0 && xt(s, t), gt(n, s, t), Tt(n, s, t);
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
|
-
const
|
|
2203
|
+
const wt = async function() {
|
|
2204
2204
|
if (this.isRunInProgress)
|
|
2205
2205
|
throw Error(
|
|
2206
2206
|
"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 +2210,7 @@ const Dt = async function() {
|
|
|
2210
2210
|
this.watchFiles === void 0 && (this.moduleMap = /* @__PURE__ */ new Map());
|
|
2211
2211
|
const t = e.context.dtsEmitPath !== "", i = e.context.emptyDtsEmitPath && t ? (
|
|
2212
2212
|
// This takes 80ms for JSAPI
|
|
2213
|
-
|
|
2213
|
+
Le(e.context.dtsEmitPath)
|
|
2214
2214
|
) : void 0;
|
|
2215
2215
|
if (e.types.typeCheckedExtraction || e.types.fullTypeCheck) {
|
|
2216
2216
|
const o = _(), l = e.types.typeScriptConfig;
|
|
@@ -2223,26 +2223,26 @@ const Dt = async function() {
|
|
|
2223
2223
|
});
|
|
2224
2224
|
this.program = d, e.types.typeScriptInstanceCreated(d, c);
|
|
2225
2225
|
}
|
|
2226
|
-
|
|
2226
|
+
Ae(this, o);
|
|
2227
2227
|
}
|
|
2228
|
-
const n = _(), s = await
|
|
2229
|
-
|
|
2228
|
+
const n = _(), s = await Oe(this);
|
|
2229
|
+
$t(s, this);
|
|
2230
2230
|
const a = this.wrapApiModules(s);
|
|
2231
2231
|
e.context.logger.info(
|
|
2232
2232
|
`${H}Extracted ${s.length} @public files in ${x.green(`${n()}s`)}`
|
|
2233
2233
|
);
|
|
2234
2234
|
const r = { apiJson: a, dtsFiles: void 0 };
|
|
2235
|
-
if (e.afterApiJsonCreate !==
|
|
2235
|
+
if (e.afterApiJsonCreate !== Se && e.afterApiJsonCreate(r), this.produceDts) {
|
|
2236
2236
|
const o = _(), l = this.dtsFiles;
|
|
2237
2237
|
if (this.dtsFiles = /* @__PURE__ */ new Map(), this.isJsApi) {
|
|
2238
|
-
const c =
|
|
2238
|
+
const c = ht(s, this), d = `${e.context.dtsEmitPath}interfaces.d.ts`;
|
|
2239
2239
|
this.dtsFiles.set(d, c);
|
|
2240
|
-
} else this.isComponentProject &&
|
|
2240
|
+
} else this.isComponentProject && Ne(s, this);
|
|
2241
2241
|
for (let c = 0; c < s.length; ++c) {
|
|
2242
2242
|
const d = s[c], m = h(d);
|
|
2243
2243
|
let f = `${e.context.dtsEmitPath + m.dtsPath}.d.ts`, p;
|
|
2244
2244
|
if (m.isStale) {
|
|
2245
|
-
if (p =
|
|
2245
|
+
if (p = Be(d, this), e.types.declarationTextTransformers.length > 0) {
|
|
2246
2246
|
let v = { filePath: f, content: p };
|
|
2247
2247
|
for (let C = 0; C < e.types.declarationTextTransformers.length; ++C) {
|
|
2248
2248
|
const y = e.types.declarationTextTransformers[C];
|
|
@@ -2265,7 +2265,7 @@ const Dt = async function() {
|
|
|
2265
2265
|
for (const [c, d] of this.dtsFiles)
|
|
2266
2266
|
l.get(c) !== d && this.changedDtsFiles.set(c, d);
|
|
2267
2267
|
if (t) {
|
|
2268
|
-
await i, await ae(e.context.dtsEmitPath, { recursive: !0 }), await
|
|
2268
|
+
await i, await ae(e.context.dtsEmitPath, { recursive: !0 }), await At(e.context.dtsEmitPath, !0, this.changedDtsFiles ?? this.dtsFiles);
|
|
2269
2269
|
const c = N.join(N.relative(process.cwd(), e.context.dtsEmitPath), "/");
|
|
2270
2270
|
e.context.logger.info(
|
|
2271
2271
|
`${H}Wrote ${c}**/*${x.blue(".d.ts")} in ${x.green(`${o()}s`)}`
|
|
@@ -2274,7 +2274,7 @@ const Dt = async function() {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
if (e.context.apiJsonEmitPath !== "") {
|
|
2276
2276
|
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
|
|
2277
|
+
await ae(N.dirname(o), { recursive: !0 }), await xe(
|
|
2278
2278
|
o,
|
|
2279
2279
|
e.context.environment === "production" ? JSON.stringify(a) : JSON.stringify(a, null, 2)
|
|
2280
2280
|
), e.context.logger.info(
|
|
@@ -2285,7 +2285,7 @@ const Dt = async function() {
|
|
|
2285
2285
|
`${H}${x.red(`Found ${this.errorCount} ${this.errorCount === 1 ? "error" : "errors"}`)}`
|
|
2286
2286
|
), 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
2287
|
};
|
|
2288
|
-
async function
|
|
2288
|
+
async function At(e, t, i) {
|
|
2289
2289
|
const n = /* @__PURE__ */ new Set(), s = Array.from(i.entries());
|
|
2290
2290
|
for (let l = 0; l < s.length; ++l) {
|
|
2291
2291
|
const [c, d] = s[l];
|
|
@@ -2305,24 +2305,24 @@ async function Rt(e, t, i) {
|
|
|
2305
2305
|
if (d.length === 0)
|
|
2306
2306
|
continue;
|
|
2307
2307
|
const m = o + c;
|
|
2308
|
-
r[l] =
|
|
2308
|
+
r[l] = xe(m, d);
|
|
2309
2309
|
}
|
|
2310
2310
|
await Promise.all(r);
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function Ae(e, t) {
|
|
2313
2313
|
if (e.config.types.fullTypeCheck)
|
|
2314
2314
|
if ("getSemanticDiagnostics" in e.program) {
|
|
2315
2315
|
const i = e.builderProgram === void 0 ? E.getPreEmitDiagnostics(e.program) : e.builderProgram.getSemanticDiagnostics();
|
|
2316
2316
|
i.length > 0 && (e.config.context.logger.error(
|
|
2317
2317
|
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 ${
|
|
2318
|
+
), 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
2319
|
} else
|
|
2320
2320
|
e.emitError("Can't do type checking as the passed ts.Program is not a ts.Program instance.", {
|
|
2321
2321
|
file: void 0,
|
|
2322
2322
|
node: void 0
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|
|
2325
|
-
const
|
|
2325
|
+
const Rt = async function() {
|
|
2326
2326
|
if (this.watchFiles !== void 0)
|
|
2327
2327
|
throw Error(
|
|
2328
2328
|
"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 +2344,13 @@ const Gt = async function() {
|
|
|
2344
2344
|
for (const C of u.dependencies)
|
|
2345
2345
|
this.watchFiles.get(C)?.dependents.delete(v.sourcePath);
|
|
2346
2346
|
for (const [C, y] of u.dependents) {
|
|
2347
|
-
const
|
|
2348
|
-
|
|
2347
|
+
const M = this.watchFiles.get(C);
|
|
2348
|
+
M !== void 0 && (y ? (M.dependencies.delete(v.sourcePath), r(M)) : M.hasDirtyLinks = !0);
|
|
2349
2349
|
}
|
|
2350
2350
|
}, o = (u, v, C) => {
|
|
2351
2351
|
if (v === void 0) {
|
|
2352
|
-
const y = e.context.cwd + u,
|
|
2353
|
-
v =
|
|
2352
|
+
const y = e.context.cwd + u, M = lt(y, "utf8");
|
|
2353
|
+
v = je(y, M);
|
|
2354
2354
|
}
|
|
2355
2355
|
this.watchFiles.set(u, {
|
|
2356
2356
|
file: v,
|
|
@@ -2377,28 +2377,28 @@ const Gt = async function() {
|
|
|
2377
2377
|
let u;
|
|
2378
2378
|
try {
|
|
2379
2379
|
u = await this.run();
|
|
2380
|
-
} catch (
|
|
2381
|
-
throw f(void 0),
|
|
2380
|
+
} catch (b) {
|
|
2381
|
+
throw f(void 0), b;
|
|
2382
2382
|
}
|
|
2383
2383
|
const v = [], C = [];
|
|
2384
|
-
for (const
|
|
2385
|
-
const I =
|
|
2384
|
+
for (const b of this.watchFiles.values()) {
|
|
2385
|
+
const I = b.module, P = b.previousModule;
|
|
2386
2386
|
if (I === void 0)
|
|
2387
|
-
P !== void 0 && (
|
|
2387
|
+
P !== void 0 && (b.module = b.previousModule, a(b, P.sourcePath));
|
|
2388
2388
|
else {
|
|
2389
|
-
P === void 0 ? (c || C.push(I),
|
|
2389
|
+
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
2390
|
const L = h(I);
|
|
2391
2391
|
L.isStale && (L.isStale = !1);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
this.program ??= {
|
|
2395
2395
|
getSourceFiles: () => {
|
|
2396
|
-
const
|
|
2396
|
+
const b = [];
|
|
2397
2397
|
for (const I of this.watchFiles.values())
|
|
2398
|
-
|
|
2399
|
-
return
|
|
2398
|
+
b.push(I.file);
|
|
2399
|
+
return b;
|
|
2400
2400
|
},
|
|
2401
|
-
getSourceFile: (
|
|
2401
|
+
getSourceFile: (b) => this.watchFiles.get(b.slice(e.context.cwd.length))?.file
|
|
2402
2402
|
};
|
|
2403
2403
|
const y = {
|
|
2404
2404
|
apiJson: u.apiJson,
|
|
@@ -2408,8 +2408,8 @@ const Gt = async function() {
|
|
|
2408
2408
|
removedModules: n
|
|
2409
2409
|
};
|
|
2410
2410
|
n = [];
|
|
2411
|
-
const
|
|
2412
|
-
c = !1, f(
|
|
2411
|
+
const M = c || v.length > 0 || C.length > 0 || y.removedModules.length > 0;
|
|
2412
|
+
c = !1, f(M ? y : void 0), l?.();
|
|
2413
2413
|
};
|
|
2414
2414
|
if (e.types.typeCheckedExtraction || e.types.fullTypeCheck) {
|
|
2415
2415
|
const u = e.types.fullTypeCheck ? E.createSemanticDiagnosticsBuilderProgram : E.createAbstractBuilder;
|
|
@@ -2417,7 +2417,7 @@ const Gt = async function() {
|
|
|
2417
2417
|
const C = (S, F, T, ...A) => (v = T, u(
|
|
2418
2418
|
// If not doing full type check, don't scout test files
|
|
2419
2419
|
// If non-tests import tests, they will be included implicitly anyway
|
|
2420
|
-
e.types.fullTypeCheck ? S : S?.filter(($) => !
|
|
2420
|
+
e.types.fullTypeCheck ? S : S?.filter(($) => !ze($)),
|
|
2421
2421
|
F,
|
|
2422
2422
|
T,
|
|
2423
2423
|
...A
|
|
@@ -2431,21 +2431,21 @@ const Gt = async function() {
|
|
|
2431
2431
|
C,
|
|
2432
2432
|
void 0,
|
|
2433
2433
|
void 0
|
|
2434
|
-
),
|
|
2435
|
-
let
|
|
2436
|
-
y.setTimeout =
|
|
2434
|
+
), M = y.setTimeout;
|
|
2435
|
+
let b;
|
|
2436
|
+
y.setTimeout = M === void 0 ? void 0 : (S, F, ...T) => {
|
|
2437
2437
|
if (!(T[0] === "timerToUpdateProgram"))
|
|
2438
|
-
return
|
|
2439
|
-
const
|
|
2440
|
-
return
|
|
2438
|
+
return M(S, F, ...T);
|
|
2439
|
+
const R = b !== void 0 ? Promise.resolve() : d === void 0 ? Promise.resolve(m()) : d.promise.finally(m);
|
|
2440
|
+
return b = M(
|
|
2441
2441
|
(...J) => {
|
|
2442
|
-
|
|
2442
|
+
b = void 0, R.finally(() => {
|
|
2443
2443
|
this.program = void 0, S(...J), this.program === void 0 && f(void 0);
|
|
2444
2444
|
});
|
|
2445
2445
|
},
|
|
2446
2446
|
e.watch.debounceTime,
|
|
2447
2447
|
...T
|
|
2448
|
-
),
|
|
2448
|
+
), b;
|
|
2449
2449
|
};
|
|
2450
2450
|
const I = y.onWatchStatusChange, P = 6031, L = 6032;
|
|
2451
2451
|
y.onWatchStatusChange = (S, ...F) => {
|
|
@@ -2460,41 +2460,41 @@ const Gt = async function() {
|
|
|
2460
2460
|
$.wasRemoved = !0;
|
|
2461
2461
|
let A = !1;
|
|
2462
2462
|
for (let $ = 0; $ < T.length; ++$) {
|
|
2463
|
-
const
|
|
2464
|
-
if (!me(
|
|
2463
|
+
const R = T[$];
|
|
2464
|
+
if (!me(R.fileName, this))
|
|
2465
2465
|
continue;
|
|
2466
|
-
const j =
|
|
2467
|
-
J === void 0 ? (o(j,
|
|
2466
|
+
const j = R.fileName.slice(e.context.cwd.length), J = this.watchFiles.get(j);
|
|
2467
|
+
J === void 0 ? (o(j, R, void 0), A = !0) : J.file !== R ? (s(J, j, R), A = !0) : J.wasRemoved = !1;
|
|
2468
2468
|
}
|
|
2469
|
-
for (const [$,
|
|
2470
|
-
|
|
2471
|
-
A ? p() : (
|
|
2469
|
+
for (const [$, R] of this.watchFiles)
|
|
2470
|
+
R.wasRemoved && (a(R, $), A = !0);
|
|
2471
|
+
A ? p() : (Ae(this, _()), f(void 0));
|
|
2472
2472
|
}, t = E.createWatchProgram(y);
|
|
2473
2473
|
} else {
|
|
2474
2474
|
let u = function(y) {
|
|
2475
|
-
return
|
|
2475
|
+
return ct(y, {
|
|
2476
2476
|
throwIfNoEntry: !1
|
|
2477
2477
|
})?.isFile();
|
|
2478
2478
|
};
|
|
2479
|
-
const v =
|
|
2479
|
+
const v = rt(() => {
|
|
2480
2480
|
let y = !1;
|
|
2481
|
-
for (const [
|
|
2482
|
-
y = C(
|
|
2481
|
+
for (const [M, b] of i)
|
|
2482
|
+
y = C(M, b) || y;
|
|
2483
2483
|
i.clear(), y ? (e.watch.clearScreen && E.sys.clearScreen?.(), p()) : f(void 0);
|
|
2484
|
-
}, e.watch.debounceTime), C = (y,
|
|
2485
|
-
const
|
|
2484
|
+
}, e.watch.debounceTime), C = (y, M) => {
|
|
2485
|
+
const b = e.context.cwd + y, I = !M, P = this.watchFiles.get(y), L = P !== void 0;
|
|
2486
2486
|
if (I || P === void 0) {
|
|
2487
|
-
const S = u(
|
|
2487
|
+
const S = u(b);
|
|
2488
2488
|
if (S === !1) {
|
|
2489
2489
|
let T, A = !1;
|
|
2490
2490
|
try {
|
|
2491
|
-
T =
|
|
2491
|
+
T = st(b, { recursive: !0 });
|
|
2492
2492
|
let $;
|
|
2493
2493
|
for (; ($ = T.readSync()) !== null; ) {
|
|
2494
2494
|
if ($.isDirectory())
|
|
2495
2495
|
continue;
|
|
2496
2496
|
const j = `${$.parentPath}/${$.name}`.slice(e.context.cwd.length);
|
|
2497
|
-
|
|
2497
|
+
We(j) && (A = C(j, !1) || A);
|
|
2498
2498
|
}
|
|
2499
2499
|
} finally {
|
|
2500
2500
|
T?.closeSync();
|
|
@@ -2515,24 +2515,24 @@ const Gt = async function() {
|
|
|
2515
2515
|
{
|
|
2516
2516
|
let T = !1;
|
|
2517
2517
|
const A = `${y}/`;
|
|
2518
|
-
for (const [$,
|
|
2519
|
-
$.startsWith(A) && (a(
|
|
2518
|
+
for (const [$, R] of this.watchFiles)
|
|
2519
|
+
$.startsWith(A) && (a(R, $), T = !0);
|
|
2520
2520
|
return T;
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
} else
|
|
2524
2524
|
return s(P, y, void 0), !0;
|
|
2525
2525
|
};
|
|
2526
|
-
t =
|
|
2527
|
-
const
|
|
2526
|
+
t = at(this.basePath, { recursive: !0 }, (y, M) => {
|
|
2527
|
+
const b = m(), I = M === null ? void 0 : Ye(M), P = y === "change";
|
|
2528
2528
|
if (I !== void 0 && // If changed, check if it is an included file
|
|
2529
2529
|
// For a rename, we don't know if it is directory or a file - only check
|
|
2530
2530
|
// if directory is included, and the file will be checked later.
|
|
2531
|
-
(P ? me(this.basePath + I, this) :
|
|
2531
|
+
(P ? me(this.basePath + I, this) : Ue(this.basePath + I, this))) {
|
|
2532
2532
|
const L = e.context.basePath + I, F = (i.get(L) ?? !0) && P;
|
|
2533
2533
|
i.set(L, F);
|
|
2534
2534
|
}
|
|
2535
|
-
|
|
2535
|
+
b && v();
|
|
2536
2536
|
}), p(), l = () => {
|
|
2537
2537
|
i.size > 0 && v();
|
|
2538
2538
|
};
|
|
@@ -2542,14 +2542,14 @@ const Gt = async function() {
|
|
|
2542
2542
|
t.close(), i.clear(), await d?.promise, this.watchFiles = void 0;
|
|
2543
2543
|
}
|
|
2544
2544
|
};
|
|
2545
|
-
},
|
|
2546
|
-
class
|
|
2545
|
+
}, Gt = ".verify-typings.ts";
|
|
2546
|
+
class Dt {
|
|
2547
2547
|
constructor(t, i = N.join(process.cwd(), "dist")) {
|
|
2548
2548
|
this.extractor = t, this.virtualCwdPath = N.join(i, "/");
|
|
2549
2549
|
}
|
|
2550
2550
|
verifyTypes(t) {
|
|
2551
2551
|
const i = _(), n = /* @__PURE__ */ Object.create(null);
|
|
2552
|
-
n[this.virtualCwdPath +
|
|
2552
|
+
n[this.virtualCwdPath + Gt] = this.getVerificationFileContents(t);
|
|
2553
2553
|
const s = this.extractor.config.context.dtsEmitPath === "" ? this.virtualCwdPath : "";
|
|
2554
2554
|
for (const [f, p] of this.extractor.dtsFiles)
|
|
2555
2555
|
n[s + f] = p;
|
|
@@ -2619,18 +2619,18 @@ class Ot {
|
|
|
2619
2619
|
return i;
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
class
|
|
2622
|
+
class qt {
|
|
2623
2623
|
/**
|
|
2624
2624
|
* @public
|
|
2625
2625
|
* @param rawConfig Optional configuration for the extractor.
|
|
2626
2626
|
*/
|
|
2627
2627
|
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.
|
|
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 = wt.bind(this), this.watch = Rt.bind(this), this.emitError = Re.bind(this);
|
|
2629
|
+
const i = Je(t);
|
|
2630
|
+
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
2631
|
...Object.keys(i.context.packageJson.dependencies ?? {}),
|
|
2632
2632
|
...Object.keys(i.context.packageJson.peerDependencies ?? {})
|
|
2633
|
-
]), this.resolveJsDocLink = i.context.isLuminaMinimalExtraction ?
|
|
2633
|
+
]), 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
2634
|
}
|
|
2635
2635
|
/**
|
|
2636
2636
|
* Given an array of ApiModules, add top-level api.json metadata and return
|
|
@@ -2656,6 +2656,6 @@ class _t {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
export {
|
|
2659
|
-
|
|
2660
|
-
|
|
2659
|
+
qt as A,
|
|
2660
|
+
At as w
|
|
2661
2661
|
};
|