@arcgis/api-extractor 5.1.0-next.69 → 5.1.0-next.70
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-9GdVdVtj.js → ApiExtractor-DUMJzS3u.js} +2 -2
- package/dist/extractor/ApiExtractor.js +3 -3
- package/dist/extractor/config.js +2 -2
- package/dist/{typeScript-xzAdwKY2.js → typeScript-Y5GxUXJJ.js} +1 -1
- package/dist/vite/plugin.js +3 -3
- package/dist/vite/typeScript.js +1 -1
- package/dist/{worker-BbPUygwz.js → worker-DmF289Q0.js} +58 -54
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as H, a as se, e as Re, p as fe } from "./typeScript-
|
|
2
|
-
import { a as be, o as Me, t as Ge, b as De, c as Le, e as Oe, p as Ne, d as Be, f as _, i as me, g as We, h as Ue, j as ze, k as je, n as He, r as Je } from "./worker-
|
|
1
|
+
import { l as H, a as se, e as Re, p as fe } from "./typeScript-Y5GxUXJJ.js";
|
|
2
|
+
import { a as be, o as Me, t as Ge, b as De, c as Le, e as Oe, p as Ne, d as Be, f as _, i as me, g as We, h as Ue, j as ze, k as je, n as He, r as Je } from "./worker-DmF289Q0.js";
|
|
3
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
5
|
import { path as N, toPosixPathSeparators as Ye } from "@arcgis/components-build-utils";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../typeScript-
|
|
2
|
-
import "../worker-
|
|
1
|
+
import "../typeScript-Y5GxUXJJ.js";
|
|
2
|
+
import "../worker-DmF289Q0.js";
|
|
3
3
|
import "./processing/links.js";
|
|
4
4
|
import "typescript";
|
|
5
|
-
import { A as x } from "../ApiExtractor-
|
|
5
|
+
import { A as x } from "../ApiExtractor-DUMJzS3u.js";
|
|
6
6
|
import "@arcgis/toolkit/function";
|
|
7
7
|
export {
|
|
8
8
|
x as ApiExtractor
|
package/dist/extractor/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@arcgis/components-build-utils";
|
|
2
|
-
import "../typeScript-
|
|
3
|
-
import { l as n, m as A, r as C } from "../worker-
|
|
2
|
+
import "../typeScript-Y5GxUXJJ.js";
|
|
3
|
+
import { l as n, m as A, r as C } from "../worker-DmF289Q0.js";
|
|
4
4
|
import "./processing/links.js";
|
|
5
5
|
import "typescript";
|
|
6
6
|
import "fs/promises";
|
|
@@ -2,7 +2,7 @@ import { findPath as v, path as C, toSystemPathSeparators as y } from "@arcgis/c
|
|
|
2
2
|
import t from "typescript";
|
|
3
3
|
import E, { supportsColorStderr as S } from "chalk";
|
|
4
4
|
import { styleText as w } from "util";
|
|
5
|
-
const P = "@arcgis/api-extractor", D = "5.1.0-next.
|
|
5
|
+
const P = "@arcgis/api-extractor", D = "5.1.0-next.70", N = {
|
|
6
6
|
name: P,
|
|
7
7
|
version: D
|
|
8
8
|
};
|
package/dist/vite/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as O, m as J } from "../worker-
|
|
2
|
-
import { A as S, w as T } from "../ApiExtractor-
|
|
3
|
-
import { p as A, l as C } from "../typeScript-
|
|
1
|
+
import { l as O, m as J } from "../worker-DmF289Q0.js";
|
|
2
|
+
import { A as S, w as T } from "../ApiExtractor-DUMJzS3u.js";
|
|
3
|
+
import { p as A, l as C } from "../typeScript-Y5GxUXJJ.js";
|
|
4
4
|
import { writeFile as M } from "node:fs/promises";
|
|
5
5
|
import { path as w } from "@arcgis/components-build-utils";
|
|
6
6
|
const N = A.name;
|
package/dist/vite/typeScript.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { path as $e, existsAsync as Qt, getCwd as Pi, retrievePackageJson as lt, toPosixPathSeparators as xi } from "@arcgis/components-build-utils";
|
|
2
|
-
import { b as Ri, p as Di, l as Li } from "./typeScript-
|
|
2
|
+
import { b as Ri, p as Di, l as Li } from "./typeScript-Y5GxUXJJ.js";
|
|
3
3
|
import { getDefaultBasePath as Yt, buildViewUrl as Ii, getViewUrl as Ge } from "./extractor/processing/links.js";
|
|
4
4
|
import o from "typescript";
|
|
5
5
|
import "fs/promises";
|
|
6
6
|
import { a as ie, b as Zt, c as Tt, g as ae, p as Y, l as Ze, o as ei, f as Ai, e as De, m as ki, q as Fi, r as wi, s as ti, t as Ni } from "./apiHelpers-dNwlX631.js";
|
|
7
|
-
import { maybeEscapePropertyName as xt, printTypeAlias as Rt, printInterface as Oi, printFunction as Gi, printVariable as Vi, printClass as
|
|
7
|
+
import { maybeEscapePropertyName as xt, printTypeAlias as Rt, printInterface as Oi, printFunction as Gi, printVariable as Vi, printClass as Wi, printMethod as _i, printProperty as fe, printGetterSetter as Ki, printSignature as Hi } from "./utils/partPrinter.js";
|
|
8
8
|
import oe from "chalk";
|
|
9
9
|
import { readFile as Dt, opendir as Lt, rm as $i } from "node:fs/promises";
|
|
10
10
|
import { pathIsComponentEntrypoint as Bi, findDeclaredComponent as Ui } from "./extractor/webComponent/findComponents.js";
|
|
@@ -549,17 +549,17 @@ function ua(e, t) {
|
|
|
549
549
|
for (let S = 0; S < e.length; ++S) {
|
|
550
550
|
const R = e[S];
|
|
551
551
|
for (let A = 0; A < R.declarations.length; ++A) {
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
552
|
+
const W = R.declarations[A];
|
|
553
|
+
if (W.customElement !== !0)
|
|
554
554
|
continue;
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
555
|
+
const _ = W;
|
|
556
|
+
if (_.privacy !== void 0 || ie(_).hasExplicitAbstract === !0)
|
|
557
557
|
continue;
|
|
558
|
-
const { name: F, tagName: N, pascalCaseName: w, events: H } =
|
|
558
|
+
const { name: F, tagName: N, pascalCaseName: w, events: H } = _;
|
|
559
559
|
i += `import type { ${F} } from "./${R.path}/customElement.js";
|
|
560
560
|
`, n += `import type { ${F} } from "../${R.path}/customElement.js";
|
|
561
561
|
`;
|
|
562
|
-
const [me, ke] = un(
|
|
562
|
+
const [me, ke] = un(_.name, _.members);
|
|
563
563
|
let ne = "", q = "";
|
|
564
564
|
if (H !== void 0) {
|
|
565
565
|
for (let pe = 0; pe < H.length; ++pe) {
|
|
@@ -925,7 +925,7 @@ function wt(e) {
|
|
|
925
925
|
l = m.printableText, m.printableText = void 0, r = void 0;
|
|
926
926
|
} else
|
|
927
927
|
l = `${e.name}Superclass`;
|
|
928
|
-
let c =
|
|
928
|
+
let c = Wi(
|
|
929
929
|
t.hasExplicitAbstract !== void 0,
|
|
930
930
|
n,
|
|
931
931
|
e.name,
|
|
@@ -1032,7 +1032,7 @@ function Nt(e) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
function ri(e, t) {
|
|
1034
1034
|
const n = Tt(e);
|
|
1035
|
-
return
|
|
1035
|
+
return _i(
|
|
1036
1036
|
e.privacy !== void 0,
|
|
1037
1037
|
n.isAbstract === !0,
|
|
1038
1038
|
e.static === !0,
|
|
@@ -1237,7 +1237,7 @@ function Fn(e, t) {
|
|
|
1237
1237
|
return t.pendingNames.has(a);
|
|
1238
1238
|
}
|
|
1239
1239
|
function je(e, t, n, i, a) {
|
|
1240
|
-
const s = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? s.getAliasedSymbol(e) : e, r =
|
|
1240
|
+
const s = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? s.getAliasedSymbol(e) : e, r = Wn(l), c = t.escapedText, m = r ?? c, d = l?.declarations?.[0];
|
|
1241
1241
|
if (d === void 0)
|
|
1242
1242
|
return n.emitError(`Unable to resolve the declaration file name for the type ${m}`, {
|
|
1243
1243
|
file: n.file,
|
|
@@ -1333,7 +1333,7 @@ function je(e, t, n, i, a) {
|
|
|
1333
1333
|
continue;
|
|
1334
1334
|
const k = h !== c;
|
|
1335
1335
|
k && (Me(t, h), a = i + h.length);
|
|
1336
|
-
const P =
|
|
1336
|
+
const P = _n(l), D = P === "named";
|
|
1337
1337
|
D || (g = P), f === void 0 && !n.config.strict && ze(
|
|
1338
1338
|
u,
|
|
1339
1339
|
p.fileName.slice(n.basePath.length),
|
|
@@ -1397,12 +1397,12 @@ function Nn(e, t, n) {
|
|
|
1397
1397
|
0,
|
|
1398
1398
|
i + at.length + c.packageName.length
|
|
1399
1399
|
), d = lt(m);
|
|
1400
|
-
return
|
|
1400
|
+
return Wt(c), c.modulePath = _t(c.modulePath, d, t, n), c;
|
|
1401
1401
|
}
|
|
1402
1402
|
const s = e.indexOf(On);
|
|
1403
1403
|
if (s !== -1) {
|
|
1404
|
-
const r = e.slice(0, s), c = lt(r), m = c.name, d = e.slice(s + 1), p =
|
|
1405
|
-
return
|
|
1404
|
+
const r = e.slice(0, s), c = lt(r), m = c.name, d = e.slice(s + 1), p = _t(d, c, t, n), f = { packageName: m, modulePath: p };
|
|
1405
|
+
return Wt(f), f;
|
|
1406
1406
|
}
|
|
1407
1407
|
if (e.startsWith(t.basePath)) {
|
|
1408
1408
|
const r = e.slice(t.basePath.length), c = Ve(ee(r), t);
|
|
@@ -1430,10 +1430,10 @@ function pi(e) {
|
|
|
1430
1430
|
const t = ct(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
|
|
1431
1431
|
return { packageName: t, modulePath: n };
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Wt(e) {
|
|
1434
1434
|
e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function _t(e, t, n, i) {
|
|
1437
1437
|
const a = ee(e);
|
|
1438
1438
|
if (t.exports === void 0)
|
|
1439
1439
|
return `${a}.js`;
|
|
@@ -1495,14 +1495,14 @@ function Vn(e, t, n) {
|
|
|
1495
1495
|
if (d !== -1)
|
|
1496
1496
|
return e.slice(0, d) + m + e.slice(d + 1);
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function Wn(e) {
|
|
1499
1499
|
const t = e.getDeclarations()?.[0];
|
|
1500
1500
|
if (t !== void 0 && ((o.isClassDeclaration(t) || o.isFunctionDeclaration(t) || o.isInterfaceDeclaration(t) || o.isTypeAliasDeclaration(t) || o.isEnumDeclaration(t)) && t.name !== void 0 && o.isIdentifier(t.name) || o.isVariableDeclaration(t) && o.isIdentifier(t.name) || o.isBindingElement(t) && o.isIdentifier(t.name)))
|
|
1501
1501
|
return t.name.escapedText;
|
|
1502
1502
|
const n = e.escapedName;
|
|
1503
1503
|
return n === "default" || n.startsWith("__") ? void 0 : n;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function _n(e) {
|
|
1506
1506
|
return e.flags & o.SymbolFlags.ValueModule ? "*" : Kn(e) ? "default" : "named";
|
|
1507
1507
|
}
|
|
1508
1508
|
function Kn(e) {
|
|
@@ -1743,7 +1743,7 @@ function zn(e, t) {
|
|
|
1743
1743
|
function Q(e, t, n) {
|
|
1744
1744
|
return n.isInLuminaMinimalExtraction || n.emitError(t, e), yt;
|
|
1745
1745
|
}
|
|
1746
|
-
const X = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", yt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), Oe = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword),
|
|
1746
|
+
const X = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", yt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), Oe = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), We = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), jn = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), Jn = [jn];
|
|
1747
1747
|
function vt(e, t, n, i) {
|
|
1748
1748
|
const a = new Array(e.length);
|
|
1749
1749
|
for (let s = 0; s < a.length; ++s) {
|
|
@@ -1785,7 +1785,7 @@ function Qn(e) {
|
|
|
1785
1785
|
return !1;
|
|
1786
1786
|
}
|
|
1787
1787
|
function z(e, t) {
|
|
1788
|
-
if (M = t,
|
|
1788
|
+
if (M = t, _e.clear(), U = [], qe.clear(), e.pos !== -1 && e.getText(M.file).includes("* @public") && M.emitError(
|
|
1789
1789
|
"@public JSDoc tag may only appear in interfaces, top-level of type alias, or top-level intersection inside a type-alias. @public JSDoc tag inside inline object literal types or deeper aliases is not supported as such are tricky to represent in the docs UI. Refactor out the type into a separate top-level interface/type-alias. Documentation: https://webgis.esri.com/webgis/core/core/documenting-api#describing-nested-object-types",
|
|
1790
1790
|
{ file: M.file, node: e }
|
|
1791
1791
|
), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
|
|
@@ -1798,8 +1798,8 @@ function z(e, t) {
|
|
|
1798
1798
|
qe.add(s.name.escapedText);
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
|
-
return Yn.writeNode(o.EmitHint.Unspecified, e, void 0,
|
|
1802
|
-
text:
|
|
1801
|
+
return Yn.writeNode(o.EmitHint.Unspecified, e, void 0, _e), {
|
|
1802
|
+
text: _e.getText(),
|
|
1803
1803
|
references: U.length > 0 ? U : void 0,
|
|
1804
1804
|
values: void 0,
|
|
1805
1805
|
source: void 0
|
|
@@ -1870,7 +1870,7 @@ const ve = (e, t, n) => {
|
|
|
1870
1870
|
{
|
|
1871
1871
|
onEmitNode: ve
|
|
1872
1872
|
}
|
|
1873
|
-
), Zn = o.factory.createIdentifier("null | undefined"),
|
|
1873
|
+
), Zn = o.factory.createIdentifier("null | undefined"), _e = en.createTextWriter(`
|
|
1874
1874
|
`), eo = 7, qe = /* @__PURE__ */ new Set();
|
|
1875
1875
|
let U;
|
|
1876
1876
|
function Ke(e, t = 0) {
|
|
@@ -1886,7 +1886,7 @@ function Ke(e, t = 0) {
|
|
|
1886
1886
|
const g = i.name;
|
|
1887
1887
|
n.push(g), i = i.expression;
|
|
1888
1888
|
}
|
|
1889
|
-
const a = n.at(-1), s = a.escapedText, l =
|
|
1889
|
+
const a = n.at(-1), s = a.escapedText, l = _e.getTextPos() + t;
|
|
1890
1890
|
let r = l + s.length;
|
|
1891
1891
|
const c = a;
|
|
1892
1892
|
if (c.pos === -1 && c.symbol !== void 0) {
|
|
@@ -2303,9 +2303,9 @@ function Ae(e, t, n, i) {
|
|
|
2303
2303
|
K -= 1;
|
|
2304
2304
|
continue;
|
|
2305
2305
|
}
|
|
2306
|
-
const
|
|
2307
|
-
if (
|
|
2308
|
-
K -= 1, x += 1, i.jsDoc =
|
|
2306
|
+
const _ = u && A !== void 0 && S.modifiers !== void 0 && S.modifiers.length > 0 ? j(S, !0, i) : void 0;
|
|
2307
|
+
if (_ !== void 0) {
|
|
2308
|
+
K -= 1, x += 1, i.jsDoc = _;
|
|
2309
2309
|
const q = vi(S, A, !1, i);
|
|
2310
2310
|
if (q === void 0)
|
|
2311
2311
|
continue;
|
|
@@ -2374,7 +2374,7 @@ function Ae(e, t, n, i) {
|
|
|
2374
2374
|
let C = !0;
|
|
2375
2375
|
for (let S = y.parameters.length - 1; S >= 0; S--) {
|
|
2376
2376
|
const R = y.parameters[S];
|
|
2377
|
-
C &&= R.optional === !0 || R.rest === !0, !C && R.optional && (R.optional = void 0, R.type.text += " | undefined");
|
|
2377
|
+
C &&= R.optional === !0 || R.rest === !0 || R.default !== void 0, !C && R.optional && (R.optional = void 0, R.type.text.endsWith(" | undefined") || (R.type.text += " | undefined"));
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
l && i.componentTagName !== void 0 && (k.signature = Hi(k), I && !Fi(k) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
|
|
@@ -2533,12 +2533,12 @@ function Do(e, t, n) {
|
|
|
2533
2533
|
if (e.questionToken !== void 0)
|
|
2534
2534
|
return;
|
|
2535
2535
|
if (e.type !== void 0)
|
|
2536
|
-
o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ??
|
|
2536
|
+
o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? We);
|
|
2537
2537
|
else if (a !== void 0 && o.isCallExpression(a)) {
|
|
2538
2538
|
const r = a.expression;
|
|
2539
2539
|
if (o.isIdentifier(r)) {
|
|
2540
2540
|
const c = r.escapedText;
|
|
2541
|
-
c === He ? (i = a.typeArguments?.[0] ??
|
|
2541
|
+
c === He ? (i = a.typeArguments?.[0] ?? We, s = a.arguments[0]) : c === "reEmitEvent" ? i = a.typeArguments?.[0] ?? We : c.startsWith("use") && (i = zt(e, n));
|
|
2542
2542
|
} else if (o.isCallExpression(r) && o.isIdentifier(r.expression)) {
|
|
2543
2543
|
const c = r.expression.escapedText;
|
|
2544
2544
|
if (c === "usePropertyChange") {
|
|
@@ -2616,7 +2616,7 @@ function zt(e, t) {
|
|
|
2616
2616
|
return;
|
|
2617
2617
|
const s = n.getTypeArguments(i);
|
|
2618
2618
|
if (s.length === 0)
|
|
2619
|
-
return
|
|
2619
|
+
return We;
|
|
2620
2620
|
const l = s[0];
|
|
2621
2621
|
return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
|
|
2622
2622
|
}
|
|
@@ -2760,20 +2760,20 @@ function vi(e, t, n, i) {
|
|
|
2760
2760
|
const S = C !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
|
|
2761
2761
|
e.type !== void 0 && e.initializer !== void 0 && o.isPropertyAccessExpression(e.initializer) && o.isPropertyAccessExpression(e.initializer.expression) && e.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(e.initializer.expression.name) && o.isIdentifier(e.initializer.name);
|
|
2762
2762
|
if (("initializer" in e && e.initializer !== void 0 && (!T.default || !T.description) || S) && !p) {
|
|
2763
|
-
const R = e.initializer, A = C?.getSymbolAtLocation(R),
|
|
2764
|
-
let
|
|
2765
|
-
const N =
|
|
2763
|
+
const R = e.initializer, A = C?.getSymbolAtLocation(R), W = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? C?.getAliasedSymbol(A) : A;
|
|
2764
|
+
let _, F;
|
|
2765
|
+
const N = W?.getDeclarations();
|
|
2766
2766
|
if (N !== void 0)
|
|
2767
2767
|
for (let w = 0; w < N.length; ++w) {
|
|
2768
2768
|
const H = N[w];
|
|
2769
|
-
|
|
2769
|
+
_ ??= o.isGetAccessor(H) ? H : void 0, F ??= o.isSetAccessor(H) ? H : void 0, "initializer" in H && (T.default = Be(
|
|
2770
2770
|
H.initializer,
|
|
2771
2771
|
T.default,
|
|
2772
2772
|
H.getSourceFile()
|
|
2773
2773
|
));
|
|
2774
2774
|
}
|
|
2775
|
-
S &&
|
|
2776
|
-
text: z(
|
|
2775
|
+
S && _?.type !== void 0 && F !== void 0 && _.type.getText() !== F.parameters[0]?.type?.getText() && (T.getterType = {
|
|
2776
|
+
text: z(_.type, i).text,
|
|
2777
2777
|
references: void 0,
|
|
2778
2778
|
values: void 0,
|
|
2779
2779
|
source: void 0
|
|
@@ -2960,7 +2960,11 @@ function Ao(e, t, n, i, a) {
|
|
|
2960
2960
|
break;
|
|
2961
2961
|
} else o.isExpressionWithTypeArguments(c) && (r = c.typeArguments, c = c.expression);
|
|
2962
2962
|
}
|
|
2963
|
-
const m = Ee(
|
|
2963
|
+
const m = Ee(
|
|
2964
|
+
c,
|
|
2965
|
+
a.isInLuminaMinimalExtraction ? void 0 : r,
|
|
2966
|
+
a
|
|
2967
|
+
);
|
|
2964
2968
|
if (m.name === "LitElement") {
|
|
2965
2969
|
m.name = "PublicLitElement", m.module = "PublicLitElement", m.package = "@arcgis/lumina";
|
|
2966
2970
|
const p = a.moduleContext.importsMap.LitElement;
|
|
@@ -3362,10 +3366,10 @@ function Vo(e, t) {
|
|
|
3362
3366
|
continue;
|
|
3363
3367
|
const x = y.moduleSpecifier.text, T = !x.startsWith("."), K = T ? x : ee(x), O = T ? void 0 : Ve(pt(s, K), t), J = O === void 0 ? void 0 : t.config.types.typeReplacements[O];
|
|
3364
3368
|
if (Pn(y, t), D.name !== void 0) {
|
|
3365
|
-
const C = D.name.escapedText, S = J?.[C], R = S?.[1], A = S === void 0 ? !T && x.endsWith(".json") ? x : K : ye(r, S[0]),
|
|
3369
|
+
const C = D.name.escapedText, S = J?.[C], R = S?.[1], A = S === void 0 ? !T && x.endsWith(".json") ? x : K : ye(r, S[0]), W = S?.[0] ?? O;
|
|
3366
3370
|
c[C] = {
|
|
3367
3371
|
type: S?.[2] ?? "default",
|
|
3368
|
-
modulePath:
|
|
3372
|
+
modulePath: W,
|
|
3369
3373
|
specifier: A,
|
|
3370
3374
|
replacementName: R,
|
|
3371
3375
|
actualName: void 0,
|
|
@@ -3376,10 +3380,10 @@ function Vo(e, t) {
|
|
|
3376
3380
|
if ($ === void 0)
|
|
3377
3381
|
continue;
|
|
3378
3382
|
if ($.kind === o.SyntaxKind.NamespaceImport) {
|
|
3379
|
-
const C = $.name.escapedText, S = J?.[C], R = S?.[1], A = S === void 0 ? K : ye(r, S[0]),
|
|
3383
|
+
const C = $.name.escapedText, S = J?.[C], R = S?.[1], A = S === void 0 ? K : ye(r, S[0]), W = S?.[0] ?? O;
|
|
3380
3384
|
c[C] = {
|
|
3381
3385
|
type: "*",
|
|
3382
|
-
modulePath:
|
|
3386
|
+
modulePath: W,
|
|
3383
3387
|
specifier: A,
|
|
3384
3388
|
replacementName: R,
|
|
3385
3389
|
actualName: void 0,
|
|
@@ -3387,13 +3391,13 @@ function Vo(e, t) {
|
|
|
3387
3391
|
};
|
|
3388
3392
|
} else
|
|
3389
3393
|
for (let C = 0; C < $.elements.length; ++C) {
|
|
3390
|
-
const S = $.elements[C], R = S.propertyName === void 0 ? void 0 : S.propertyName.escapedText ?? S.propertyName.text, A = S.name.escapedText,
|
|
3394
|
+
const S = $.elements[C], R = S.propertyName === void 0 ? void 0 : S.propertyName.escapedText ?? S.propertyName.text, A = S.name.escapedText, W = J?.[R ?? A], _ = W?.[1], F = W === void 0 ? K : ye(r, W[0]), N = W?.[0] ?? O;
|
|
3391
3395
|
c[A] = {
|
|
3392
|
-
type:
|
|
3396
|
+
type: W?.[2] ?? "named",
|
|
3393
3397
|
modulePath: N,
|
|
3394
3398
|
specifier: F,
|
|
3395
|
-
replacementName:
|
|
3396
|
-
actualName:
|
|
3399
|
+
replacementName: _,
|
|
3400
|
+
actualName: W === void 0 ? R : void 0,
|
|
3397
3401
|
wasUsed: !1
|
|
3398
3402
|
};
|
|
3399
3403
|
}
|
|
@@ -3410,12 +3414,12 @@ function Vo(e, t) {
|
|
|
3410
3414
|
if (y.exportClause?.kind === o.SyntaxKind.NamedExports) {
|
|
3411
3415
|
const C = y.exportClause.elements;
|
|
3412
3416
|
for (let S = 0; S < C.length; ++S) {
|
|
3413
|
-
const R = C[S], A = Re(R.name),
|
|
3417
|
+
const R = C[S], A = Re(R.name), W = R.propertyName === void 0 ? void 0 : Re(R.propertyName), _ = W ?? A, F = W === void 0 ? void 0 : A;
|
|
3414
3418
|
$.push({
|
|
3415
|
-
exportName:
|
|
3419
|
+
exportName: _,
|
|
3416
3420
|
aliasName: F,
|
|
3417
3421
|
isTypeOnly: y.isTypeOnly
|
|
3418
|
-
}), !t.config.strict && O !== void 0 && ze(O, K,
|
|
3422
|
+
}), !t.config.strict && O !== void 0 && ze(O, K, _, t);
|
|
3419
3423
|
}
|
|
3420
3424
|
} else
|
|
3421
3425
|
$.push({
|
|
@@ -3543,7 +3547,7 @@ async function Sa(e) {
|
|
|
3543
3547
|
const p = e.program.getSourceFiles();
|
|
3544
3548
|
for (let f = 0; f < p.length; ++f) {
|
|
3545
3549
|
const u = p[f], g = u.fileName;
|
|
3546
|
-
if (!
|
|
3550
|
+
if (!Wo(g, e))
|
|
3547
3551
|
continue;
|
|
3548
3552
|
if (g.includes(".stories.")) {
|
|
3549
3553
|
Ot(u.text, g, e);
|
|
@@ -3604,7 +3608,7 @@ async function Sa(e) {
|
|
|
3604
3608
|
}
|
|
3605
3609
|
return t;
|
|
3606
3610
|
}
|
|
3607
|
-
const
|
|
3611
|
+
const Wo = (e, t) => _o(e) && Ko(e, t), _o = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !Ei(e), Ei = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Ko = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
|
|
3608
3612
|
Sn(e.slice(t.basePath.length))
|
|
3609
3613
|
) && !e.includes("node_modules"), qt = 32, Ho = 64, Ci = "@public", $o = Buffer.from(Ci), bi = "@internal", Bo = Buffer.from(bi);
|
|
3610
3614
|
async function Ta(e) {
|
|
@@ -3667,9 +3671,9 @@ export {
|
|
|
3667
3671
|
ya as d,
|
|
3668
3672
|
Sa as e,
|
|
3669
3673
|
va as f,
|
|
3670
|
-
|
|
3674
|
+
_o as g,
|
|
3671
3675
|
Ko as h,
|
|
3672
|
-
|
|
3676
|
+
Wo as i,
|
|
3673
3677
|
Ei as j,
|
|
3674
3678
|
Xt as k,
|
|
3675
3679
|
pa as l,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/api-extractor",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.70",
|
|
4
4
|
"description": "Documentation engine for WebGIS SDK packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"chalk": "^5.4.1",
|
|
55
55
|
"commander": "^14.0.0",
|
|
56
56
|
"tslib": "^2.8.1",
|
|
57
|
-
"@arcgis/components-build-utils": "5.1.0-next.
|
|
58
|
-
"@arcgis/toolkit": "5.1.0-next.
|
|
57
|
+
"@arcgis/components-build-utils": "5.1.0-next.70",
|
|
58
|
+
"@arcgis/toolkit": "5.1.0-next.70"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"typescript": "~6.0.2",
|