@arcgis/api-extractor 5.0.0-next.87 → 5.0.0-next.89
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/extractor/ApiExtractor.d.ts +2 -2
- package/dist/index.js +226 -224
- package/package.json +3 -3
|
@@ -94,14 +94,14 @@ export declare abstract class ApiExtractor {
|
|
|
94
94
|
/**
|
|
95
95
|
* Based on the superclass name, find the actual declaration in the modules.
|
|
96
96
|
*/
|
|
97
|
-
protected resolveInheritance(superClassModule: string, modules: ApiModule[]): ApiExtractorInheritanceData | false;
|
|
97
|
+
protected resolveInheritance(superClassModule: string, modules: ApiModule[], isMixin: boolean): ApiExtractorInheritanceData | false;
|
|
98
98
|
/**
|
|
99
99
|
* Overwrite point
|
|
100
100
|
*
|
|
101
101
|
* FINAL: jsapi-extractor has a more efficient implementation because it
|
|
102
102
|
* has to deal with inheritance a lot. Unify it with Lumina.
|
|
103
103
|
*/
|
|
104
|
-
protected findSuperclassDeclaration(moduleName: string, modules: ApiModule[]): readonly [string, ApiClassDeclaration | ApiMixinDeclaration] | false;
|
|
104
|
+
protected findSuperclassDeclaration(moduleName: string, modules: ApiModule[], _isMixin: boolean): readonly [string, ApiClassDeclaration | ApiMixinDeclaration] | false;
|
|
105
105
|
protected handleEventTypesProperty(_apiMember: ApiClassMember, _apiComponent: ApiClassDeclaration | ApiMixinDeclaration, _moduleName: string): void;
|
|
106
106
|
protected resolvePropertyAutoCastingType(_apiMember: ApiClassMember, _moduleName: string): void;
|
|
107
107
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2,61 +2,61 @@ import d from "typescript";
|
|
|
2
2
|
import z, { supportsColorStderr as q } from "chalk";
|
|
3
3
|
import { path as J } from "@arcgis/components-build-utils";
|
|
4
4
|
import { mappedFind as j } from "@arcgis/toolkit/array";
|
|
5
|
-
const X = "@arcgis/api-extractor", Q = "5.0.0-next.
|
|
5
|
+
const X = "@arcgis/api-extractor", Q = "5.0.0-next.89", D = {
|
|
6
6
|
name: X,
|
|
7
7
|
version: Q
|
|
8
8
|
};
|
|
9
|
-
let
|
|
9
|
+
let G;
|
|
10
10
|
function Y(e) {
|
|
11
|
-
return
|
|
11
|
+
return G ??= d.createPrinter(), G.printNode(d.EmitHint.Unspecified, e, void 0);
|
|
12
12
|
}
|
|
13
13
|
function Z(e, t) {
|
|
14
14
|
return e.pos !== -1 && e.end !== -1 && t !== void 0 ? e.getText(t) : Y(e);
|
|
15
15
|
}
|
|
16
|
-
let
|
|
16
|
+
let B = 0;
|
|
17
17
|
function Pe(e = 0) {
|
|
18
|
-
|
|
18
|
+
B = e;
|
|
19
19
|
}
|
|
20
|
-
let
|
|
20
|
+
let K = console.error;
|
|
21
21
|
function De(e) {
|
|
22
|
-
|
|
22
|
+
K = e;
|
|
23
23
|
}
|
|
24
24
|
const ee = {
|
|
25
25
|
getCurrentDirectory: process.cwd,
|
|
26
26
|
getCanonicalFileName: (e) => e,
|
|
27
27
|
getNewLine: () => d.sys.newLine
|
|
28
28
|
};
|
|
29
|
-
function y(e, { file: t, node: n, scope: o, start: r, length:
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const s = r >= 0 &&
|
|
29
|
+
function y(e, { file: t, node: n, scope: o, start: r, length: i }) {
|
|
30
|
+
B += 1, process.exitCode = 1, r ??= n === void 0 || n.pos === -1 ? -1 : n.getStart(t, !1);
|
|
31
|
+
const a = n?.end ?? -1;
|
|
32
|
+
i ??= a === -1 ? -1 : Math.max(1, a - r);
|
|
33
|
+
const s = r >= 0 && i >= 0, l = !s && o !== void 0, m = {
|
|
34
34
|
category: d.DiagnosticCategory.Error,
|
|
35
|
-
code: s ?
|
|
35
|
+
code: s ? D.name : te,
|
|
36
36
|
file: l ? void 0 : t,
|
|
37
37
|
start: s ? r : 0,
|
|
38
|
-
length: s ?
|
|
38
|
+
length: s ? i : 0,
|
|
39
39
|
messageText: (l ? `${z.cyan(o)}: ` : "") + e + (s || n === void 0 ? "" : `
|
|
40
40
|
|
|
41
41
|
${Z(n, t)}`)
|
|
42
|
-
},
|
|
43
|
-
|
|
42
|
+
}, S = d.formatDiagnosticsWithColorAndContext([m], ee), c = q ? S : S.replaceAll(ne, "");
|
|
43
|
+
K(c);
|
|
44
44
|
}
|
|
45
45
|
const te = 1490, ne = /\x1B\[[0-9;]*m/gu, xe = (e) => e.kind === "method", Ae = (e) => e.kind === "field";
|
|
46
46
|
function oe(e, t) {
|
|
47
47
|
const n = e.sourcePath, o = t.sourcePath;
|
|
48
48
|
let r = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const
|
|
51
|
-
if (a === -1)
|
|
52
|
-
return i === -1 ? n.slice(r) < o.slice(r) ? -1 : 1 : -1;
|
|
50
|
+
const i = n.indexOf("/", r), a = o.indexOf("/", r);
|
|
53
51
|
if (i === -1)
|
|
52
|
+
return a === -1 ? n.slice(r) < o.slice(r) ? -1 : 1 : -1;
|
|
53
|
+
if (a === -1)
|
|
54
54
|
return 1;
|
|
55
55
|
{
|
|
56
|
-
const s = n.slice(r,
|
|
56
|
+
const s = n.slice(r, i), l = o.slice(r, a);
|
|
57
57
|
if (s !== l)
|
|
58
58
|
return s < l ? -1 : 1;
|
|
59
|
-
r =
|
|
59
|
+
r = i + 1;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -73,15 +73,15 @@ const Ge = "global:", Oe = /* @__PURE__ */ new Set([
|
|
|
73
73
|
"privateRemarks"
|
|
74
74
|
]), re = /* @__PURE__ */ new Set(["example", "see"]);
|
|
75
75
|
function Fe(e, t) {
|
|
76
|
-
if (e.description && (e.description = e.description.replaceAll(
|
|
76
|
+
if (e.description && (e.description = e.description.replaceAll(b, t.resolveJsDocLink).replaceAll(t.alternativeDocumentationHost, t.normalizedDocumentationHost), e.description.includes("](.") && M(h, e.description, t)), e.docsTags !== void 0 && e.inheritedFrom === void 0)
|
|
77
77
|
for (let n = 0; n < e.docsTags.length; n++) {
|
|
78
78
|
const o = e.docsTags[n];
|
|
79
|
-
o.text && (o.text = o.text.replaceAll(
|
|
79
|
+
o.text && (o.text = o.text.replaceAll(b, t.resolveJsDocLink).replaceAll(t.alternativeDocumentationHost, t.normalizedDocumentationHost), o.text.includes("](.") && M(h, o.text, t));
|
|
80
80
|
}
|
|
81
|
-
typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(
|
|
81
|
+
typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(b, t.resolveJsDocLink).replaceAll(t.alternativeDocumentationHost, t.normalizedDocumentationHost), e.deprecated.includes("](.") && M(h, e.deprecated, t));
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
83
|
+
const h = "Unexpected relative markdown link. For links to API within the package use {@link}. For all other links, use absolute markdown. Documentation: https://webgis.esri.com/webgis/core/core/documenting-api#link";
|
|
84
|
+
function M(e, t, n) {
|
|
85
85
|
const o = n.file?.text.indexOf(t) ?? -1;
|
|
86
86
|
y(`${e}${o === -1 ? `. Found in: ${t}` : ""}`, {
|
|
87
87
|
file: n.file,
|
|
@@ -91,29 +91,29 @@ function h(e, t, n) {
|
|
|
91
91
|
length: t.length
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const b = /\{@link +([^}]+)\}/gu, U = new Intl.Collator("en", { numeric: !0 }).compare, ke = (e, t) => U(e.name, t.name), Ve = (e, t) => e.static !== void 0 && t.static === void 0 ? -1 : t.static !== void 0 && e.static === void 0 ? 1 : e.name === void 0 ? t.name === void 0 ? 0 : -1 : t.name === void 0 || "return" in e && !("return" in t) ? 1 : "return" in t && !("return" in e) ? -1 : U(e.name, t.name);
|
|
95
95
|
function _e(e, t) {
|
|
96
96
|
if (e.length === 0)
|
|
97
97
|
return;
|
|
98
|
-
const n = t.matchAll(
|
|
98
|
+
const n = t.matchAll(ie), o = [];
|
|
99
99
|
for (const r of n) {
|
|
100
|
-
const
|
|
101
|
-
|
|
100
|
+
const i = e.find((a) => a.name === r[0]);
|
|
101
|
+
i !== void 0 && o.push({ ...i, start: r.index, end: r.index + i.name.length });
|
|
102
102
|
}
|
|
103
103
|
return o.length === 0 ? void 0 : o;
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
function
|
|
105
|
+
const ie = /"[^"]+"|'[^"]+'|\w+/gu, O = (e) => e.name ?? (e.kind === "constructor" ? "constructor" : "call-signature"), R = (e) => e.static === !0 ? `static ${O(e)}` : O(e), We = (e) => ("bubbles" in e ? "@" : "") + (e.name ?? (e.kind === "constructor" ? "constructor" : "")) + ("return" in e ? "()" : "");
|
|
106
|
+
function L(e, t, n = -1) {
|
|
107
107
|
"description" in t && (t.description ??= e.description), "deprecated" in t && (t.deprecated ??= e.deprecated), "return" in t && e.return !== void 0 && (t.return.description ??= e.return?.description), "readonly" in t && (t.readonly ??= e.readonly);
|
|
108
108
|
const { docsTags: o } = e, r = t;
|
|
109
109
|
if (n !== -1 && (o === void 0 && r.docsTags.length === 1 ? r.docsTags = void 0 : r.docsTags.splice(n, 1)), o !== void 0) {
|
|
110
110
|
r.docsTags ??= [];
|
|
111
|
-
const
|
|
112
|
-
for (let
|
|
113
|
-
|
|
114
|
-
for (let
|
|
115
|
-
const s = o[
|
|
116
|
-
|
|
111
|
+
const i = /* @__PURE__ */ new Set();
|
|
112
|
+
for (let a = 0; a < r.docsTags.length; a++)
|
|
113
|
+
i.add(r.docsTags[a].name);
|
|
114
|
+
for (let a = 0; a < o.length; a++) {
|
|
115
|
+
const s = o[a];
|
|
116
|
+
i.has(s.name) && !re.has(s.name) || r.docsTags.push(s);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -122,13 +122,13 @@ const we = (e) => e.modifiers?.some?.(
|
|
|
122
122
|
) ?? !1;
|
|
123
123
|
function He(e, t, n) {
|
|
124
124
|
if (!t.default && "initializer" in e && e.initializer) {
|
|
125
|
-
const o =
|
|
126
|
-
|
|
125
|
+
const o = $(e.initializer);
|
|
126
|
+
ae(o) && (t.default = o.getText(n));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
function
|
|
131
|
-
return d.isSatisfiesExpression(e) || d.isParenthesizedExpression(e) ?
|
|
129
|
+
const ae = (e) => d.isLiteralExpression(e) || e.kind === d.SyntaxKind.TrueKeyword || e.kind === d.SyntaxKind.FalseKeyword || d.isPrefixUnaryExpression(e) && d.isLiteralExpression(e.operand);
|
|
130
|
+
function $(e) {
|
|
131
|
+
return d.isSatisfiesExpression(e) || d.isParenthesizedExpression(e) ? $(e.expression) : e;
|
|
132
132
|
}
|
|
133
133
|
function Ne(e) {
|
|
134
134
|
if (e !== void 0) {
|
|
@@ -159,18 +159,18 @@ function se(e) {
|
|
|
159
159
|
const t = e.lastIndexOf("/"), n = e.indexOf(".", t === -1 ? 0 : t + 1);
|
|
160
160
|
return n === -1 ? e : e.slice(0, n);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const F = "developers.arcgis.com", k = "next.gha.afd.arcgis.com";
|
|
163
163
|
class Ue {
|
|
164
164
|
constructor(t) {
|
|
165
|
-
this.resolvedInheritance = /* @__PURE__ */ Object.create(null), this.noInheritMembers = {}, this.options = t, t.environment === "production" ? (this.normalizedDocumentationHost =
|
|
165
|
+
this.resolvedInheritance = /* @__PURE__ */ Object.create(null), this.noInheritMembers = {}, this.options = t, t.environment === "production" ? (this.normalizedDocumentationHost = F, this.alternativeDocumentationHost = k) : (this.normalizedDocumentationHost = k, this.alternativeDocumentationHost = F);
|
|
166
166
|
}
|
|
167
167
|
/** Given an array of TypeScript source files, generate an api.json file */
|
|
168
168
|
extract(t) {
|
|
169
169
|
return {
|
|
170
170
|
timestamp: (/* @__PURE__ */ new Date()).toISOString().split(".")[0],
|
|
171
171
|
compiler: {
|
|
172
|
-
name:
|
|
173
|
-
version:
|
|
172
|
+
name: D.name,
|
|
173
|
+
version: D.version,
|
|
174
174
|
typescriptVersion: d.version
|
|
175
175
|
},
|
|
176
176
|
// https://github.com/webcomponents/custom-elements-manifest?tab=readme-ov-file#schema-versioning
|
|
@@ -208,8 +208,8 @@ class Ue {
|
|
|
208
208
|
extractDeclarations(t) {
|
|
209
209
|
const n = this.apiModule.declarations, o = t.statements;
|
|
210
210
|
for (let r = 0; r < o.length; r++) {
|
|
211
|
-
const
|
|
212
|
-
|
|
211
|
+
const i = o[r], a = this.extractDeclaration(i, r);
|
|
212
|
+
a !== void 0 && n.push(a);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
@@ -227,12 +227,12 @@ class Ue {
|
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
copyDoc(t, n, o, r,
|
|
230
|
+
copyDoc(t, n, o, r, i) {
|
|
231
231
|
if (o.docsTags === void 0 || n === void 0)
|
|
232
232
|
return;
|
|
233
|
-
let
|
|
234
|
-
for (; o.docsTags[
|
|
235
|
-
if (
|
|
233
|
+
let a = 0;
|
|
234
|
+
for (; o.docsTags[a].name !== "copyDoc"; )
|
|
235
|
+
if (a += 1, a === o.docsTags.length)
|
|
236
236
|
return;
|
|
237
237
|
const s = o.name;
|
|
238
238
|
let l = n?.[s];
|
|
@@ -242,10 +242,10 @@ class Ue {
|
|
|
242
242
|
file: this.file,
|
|
243
243
|
node: t
|
|
244
244
|
}
|
|
245
|
-
), !(typeof l == "function" && (l = l(o, r,
|
|
245
|
+
), !(typeof l == "function" && (l = l(o, r, i), l === void 0)) && L(
|
|
246
246
|
l,
|
|
247
247
|
o,
|
|
248
|
-
|
|
248
|
+
a
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
@@ -260,101 +260,103 @@ class Ue {
|
|
|
260
260
|
if (t in this.resolvedInheritance)
|
|
261
261
|
return;
|
|
262
262
|
this.resolvedInheritance[t] = void 0;
|
|
263
|
-
let
|
|
263
|
+
let i = !1;
|
|
264
264
|
if (n.members !== void 0)
|
|
265
265
|
for (let p = 0; p < n.members.length; p++) {
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
269
|
-
|
|
266
|
+
const u = n.members[p];
|
|
267
|
+
if (u.kind === "field") {
|
|
268
|
+
if (u.name === "@eventTypes") {
|
|
269
|
+
i = !0, this.handleEventTypesProperty(u, n, t), n.members.splice(p, 1), p -= 1;
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
u.inheritedFrom === void 0 && this.resolvePropertyAutoCastingType(u, t);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
let s = n.mixins, l =
|
|
275
|
+
const a = n;
|
|
276
|
+
let s = n.mixins, l = a.superclass, m = l === void 0 ? void 0 : this.maybeResolveMixinBaseClass(l, t);
|
|
277
277
|
if (m?.supertypes !== void 0) {
|
|
278
278
|
s = s === void 0 ? [] : [...s];
|
|
279
279
|
do {
|
|
280
|
-
const p = m.supertypes.length > 1,
|
|
281
|
-
for (let
|
|
282
|
-
const
|
|
283
|
-
s.unshift(
|
|
280
|
+
const p = m.supertypes.length > 1, u = p ? 1 : 0;
|
|
281
|
+
for (let C = m.supertypes.length - 1; C >= u; C--) {
|
|
282
|
+
const E = m.supertypes[C], v = E.module === void 0 ? { ...E, module: l.module } : E;
|
|
283
|
+
s.unshift(v);
|
|
284
284
|
}
|
|
285
285
|
l = p ? m.supertypes[0] : void 0, m = l === void 0 ? void 0 : this.maybeResolveMixinBaseClass(l, t);
|
|
286
286
|
} while (m?.supertypes !== void 0);
|
|
287
287
|
}
|
|
288
|
-
if (s !== void 0)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
if (s !== void 0) {
|
|
289
|
+
const p = s.length - (n.mixins?.length ?? 0);
|
|
290
|
+
for (let u = s.length - 1; u >= 0; u--) {
|
|
291
|
+
const E = s[u].module ?? t, v = this.resolvedInheritance[E] ?? this.resolveInheritance(E, o, !0);
|
|
292
|
+
v !== !1 ? this.inheritMembersFrom(v, n, i) : u >= p && (n.mixins.splice(u - p, 1), n.mixins.length === 0 && (n.mixins = void 0));
|
|
292
293
|
}
|
|
294
|
+
}
|
|
293
295
|
if (l?.package !== void 0)
|
|
294
296
|
return;
|
|
295
|
-
const
|
|
296
|
-
c !== !1 && (this.inheritMembersFrom(c, n,
|
|
297
|
+
const S = l?.module, c = S === void 0 ? !1 : this.resolvedInheritance[S] ?? this.resolveInheritance(S, o, !1);
|
|
298
|
+
c !== !1 && (this.inheritMembersFrom(c, n, i), l.module = c.inheritanceData.module);
|
|
297
299
|
}
|
|
298
300
|
/**
|
|
299
301
|
* Inherit members from a superclass or mixin.
|
|
300
302
|
*/
|
|
301
303
|
inheritMembersFrom(t, n, o) {
|
|
302
|
-
const r = t.declaration,
|
|
304
|
+
const r = t.declaration, i = n;
|
|
303
305
|
if (t.indexedMembers !== void 0) {
|
|
304
306
|
n.members ??= [];
|
|
305
|
-
const
|
|
307
|
+
const a = n.members, s = this.noInheritMembers[t.inheritanceData.module];
|
|
306
308
|
let l = s === void 0 ? void 0 : new Set(s);
|
|
307
|
-
for (let
|
|
308
|
-
const c =
|
|
309
|
-
|
|
309
|
+
for (let S = 0; S < a.length; S++) {
|
|
310
|
+
const c = a[S], p = R(c), u = t.indexedMembers.get(p);
|
|
311
|
+
u === void 0 || (l ??= /* @__PURE__ */ new Set(), l.add(p), c.kind === "field" && this.maybePromotePropertyToAutoAccessor(c, u), u === void 0) || c.inheritedFrom === void 0 && L(u, c);
|
|
310
312
|
}
|
|
311
313
|
const m = r.members;
|
|
312
|
-
for (let
|
|
313
|
-
const c = m[
|
|
314
|
+
for (let S = 0; S < m.length; S++) {
|
|
315
|
+
const c = m[S];
|
|
314
316
|
// Most classes don't override any public members, so don't even check
|
|
315
317
|
// for this if no members were overridden.
|
|
316
|
-
(l?.has(
|
|
318
|
+
(l?.has(R(c)) ?? !1) || n.members.push(
|
|
317
319
|
c.inheritedFrom === void 0 ? { ...c, inheritedFrom: t.inheritanceData } : c
|
|
318
320
|
);
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
|
-
!o && t.indexedEvents !== void 0 && (
|
|
322
|
-
|
|
323
|
+
!o && t.indexedEvents !== void 0 && (i.events = this.inheritMembersOfKind(
|
|
324
|
+
i.events,
|
|
323
325
|
r.events,
|
|
324
326
|
t.indexedEvents,
|
|
325
327
|
t.inheritanceData
|
|
326
|
-
)), t.indexedAttributes !== void 0 && (
|
|
327
|
-
|
|
328
|
+
)), t.indexedAttributes !== void 0 && (i.attributes = this.inheritMembersOfKind(
|
|
329
|
+
i.attributes,
|
|
328
330
|
r.attributes,
|
|
329
331
|
t.indexedAttributes,
|
|
330
332
|
t.inheritanceData
|
|
331
|
-
)), t.indexedSlots !== void 0 && (
|
|
332
|
-
|
|
333
|
+
)), t.indexedSlots !== void 0 && (i.slots = this.inheritMembersOfKind(
|
|
334
|
+
i.slots,
|
|
333
335
|
r.slots,
|
|
334
336
|
t.indexedSlots
|
|
335
|
-
)), t.indexedCssParts !== void 0 && (
|
|
336
|
-
|
|
337
|
+
)), t.indexedCssParts !== void 0 && (i.cssParts = this.inheritMembersOfKind(
|
|
338
|
+
i.cssParts,
|
|
337
339
|
r.cssParts,
|
|
338
340
|
t.indexedCssParts
|
|
339
|
-
)), t.indexedCssProperties !== void 0 && (
|
|
340
|
-
|
|
341
|
+
)), t.indexedCssProperties !== void 0 && (i.cssProperties = this.inheritMembersOfKind(
|
|
342
|
+
i.cssProperties,
|
|
341
343
|
r.cssProperties,
|
|
342
344
|
t.indexedCssProperties
|
|
343
|
-
)), t.indexedCssStates !== void 0 && (
|
|
344
|
-
|
|
345
|
+
)), t.indexedCssStates !== void 0 && (i.cssStates = this.inheritMembersOfKind(
|
|
346
|
+
i.cssStates,
|
|
345
347
|
r.cssStates,
|
|
346
348
|
t.indexedCssStates
|
|
347
349
|
));
|
|
348
350
|
}
|
|
349
351
|
inheritMembersOfKind(t = [], n, o, r) {
|
|
350
|
-
const
|
|
351
|
-
for (let
|
|
352
|
-
const s = t[
|
|
353
|
-
l !== void 0 && (
|
|
352
|
+
const i = /* @__PURE__ */ new Set();
|
|
353
|
+
for (let a = 0; a < t.length; a++) {
|
|
354
|
+
const s = t[a], l = o[s.name];
|
|
355
|
+
l !== void 0 && (i.add(s.name), s.inheritedFrom === void 0 && L(l, s));
|
|
354
356
|
}
|
|
355
|
-
for (let
|
|
356
|
-
const s = n[
|
|
357
|
-
|
|
357
|
+
for (let a = 0; a < n.length; a++) {
|
|
358
|
+
const s = n[a];
|
|
359
|
+
i.has(s.name) || t.push(
|
|
358
360
|
r === void 0 || s.inheritedFrom !== void 0 ? s : { ...s, inheritedFrom: r }
|
|
359
361
|
);
|
|
360
362
|
}
|
|
@@ -363,36 +365,36 @@ class Ue {
|
|
|
363
365
|
/**
|
|
364
366
|
* Based on the superclass name, find the actual declaration in the modules.
|
|
365
367
|
*/
|
|
366
|
-
resolveInheritance(t, n) {
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
368
|
+
resolveInheritance(t, n, o) {
|
|
369
|
+
const r = this.findSuperclassDeclaration(t, n, o);
|
|
370
|
+
if (r === !1)
|
|
369
371
|
return this.resolvedInheritance[t] = !1, !1;
|
|
370
|
-
const [
|
|
372
|
+
const [i, a] = r, s = a;
|
|
371
373
|
this.inheritMembers(t, a, n);
|
|
372
|
-
let
|
|
374
|
+
let l, m = !1;
|
|
373
375
|
if (a.members !== void 0) {
|
|
374
|
-
|
|
375
|
-
for (let
|
|
376
|
-
const
|
|
377
|
-
|
|
376
|
+
l = /* @__PURE__ */ new Map();
|
|
377
|
+
for (let c = 0; c < a.members.length; c++) {
|
|
378
|
+
const p = a.members[c], u = R(p), E = l.get(u) !== void 0;
|
|
379
|
+
l.set(u, E ? void 0 : p), m ||= p.kind === "field" && p.readonly === void 0;
|
|
378
380
|
}
|
|
379
381
|
}
|
|
380
|
-
const
|
|
382
|
+
const S = {
|
|
381
383
|
inheritanceData: {
|
|
382
384
|
name: a.name,
|
|
383
|
-
module:
|
|
385
|
+
module: i
|
|
384
386
|
},
|
|
385
387
|
declaration: a,
|
|
386
|
-
hasSettableField:
|
|
387
|
-
indexedMembers:
|
|
388
|
+
hasSettableField: m,
|
|
389
|
+
indexedMembers: l,
|
|
388
390
|
indexedEvents: f(a.events),
|
|
389
|
-
indexedAttributes: f(
|
|
390
|
-
indexedSlots: f(
|
|
391
|
-
indexedCssParts: f(
|
|
392
|
-
indexedCssProperties: f(
|
|
393
|
-
indexedCssStates: f(
|
|
391
|
+
indexedAttributes: f(s.attributes),
|
|
392
|
+
indexedSlots: f(s.slots),
|
|
393
|
+
indexedCssParts: f(s.cssParts),
|
|
394
|
+
indexedCssProperties: f(s.cssProperties),
|
|
395
|
+
indexedCssStates: f(s.cssStates)
|
|
394
396
|
};
|
|
395
|
-
return this.resolvedInheritance[t] =
|
|
397
|
+
return this.resolvedInheritance[t] = S, S;
|
|
396
398
|
}
|
|
397
399
|
/**
|
|
398
400
|
* Overwrite point
|
|
@@ -400,16 +402,16 @@ class Ue {
|
|
|
400
402
|
* FINAL: jsapi-extractor has a more efficient implementation because it
|
|
401
403
|
* has to deal with inheritance a lot. Unify it with Lumina.
|
|
402
404
|
*/
|
|
403
|
-
findSuperclassDeclaration(t, n) {
|
|
404
|
-
for (let
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
405
|
+
findSuperclassDeclaration(t, n, o) {
|
|
406
|
+
for (let r = 0; r < n.length; r++) {
|
|
407
|
+
const i = n[r];
|
|
408
|
+
if (i.path !== t)
|
|
407
409
|
continue;
|
|
408
|
-
const a =
|
|
409
|
-
for (let
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
412
|
-
return [
|
|
410
|
+
const a = i.declarations;
|
|
411
|
+
for (let s = 0; s < a.length; s++) {
|
|
412
|
+
const l = a[s];
|
|
413
|
+
if (l.kind === "class")
|
|
414
|
+
return [i.path, l];
|
|
413
415
|
}
|
|
414
416
|
}
|
|
415
417
|
return !1;
|
|
@@ -439,18 +441,18 @@ function f(e) {
|
|
|
439
441
|
}
|
|
440
442
|
return t;
|
|
441
443
|
}
|
|
442
|
-
const
|
|
443
|
-
ce(
|
|
444
|
-
de(
|
|
445
|
-
me(
|
|
444
|
+
const T = d, le = T, V = 5, _ = 1, W = 1, w = 3, H = 4;
|
|
445
|
+
ce(T.createSourceMapGenerator);
|
|
446
|
+
de(T.createTextWriter);
|
|
447
|
+
me(T.getNewLineCharacter);
|
|
446
448
|
function ce(e) {
|
|
447
449
|
if (typeof e != "function")
|
|
448
450
|
throw Error(
|
|
449
451
|
"Failed to find ts.createSourceMapGenerator() function. Lumina needs to be updated to support the new TypeScript version"
|
|
450
452
|
);
|
|
451
|
-
if (e.length !==
|
|
453
|
+
if (e.length !== V)
|
|
452
454
|
throw Error(
|
|
453
|
-
`ts.createSourceMapGenerator() signature changed. Expected ${
|
|
455
|
+
`ts.createSourceMapGenerator() signature changed. Expected ${V} arguments. Lumina needs to be updated to support the new TypeScript version`
|
|
454
456
|
);
|
|
455
457
|
}
|
|
456
458
|
function de(e) {
|
|
@@ -458,9 +460,9 @@ function de(e) {
|
|
|
458
460
|
throw Error(
|
|
459
461
|
"Failed to find ts.createTextWriter() function. Lumina needs to be updated to support the new TypeScript version"
|
|
460
462
|
);
|
|
461
|
-
if (e.length !==
|
|
463
|
+
if (e.length !== _)
|
|
462
464
|
throw Error(
|
|
463
|
-
`ts.createTextWriter() signature changed. Expected ${
|
|
465
|
+
`ts.createTextWriter() signature changed. Expected ${_} arguments. Lumina needs to be updated to support the new TypeScript version`
|
|
464
466
|
);
|
|
465
467
|
}
|
|
466
468
|
function me(e) {
|
|
@@ -468,9 +470,9 @@ function me(e) {
|
|
|
468
470
|
throw Error(
|
|
469
471
|
"Failed to find ts.getNewLineCharacter() function. Lumina needs to be updated to support the new TypeScript version"
|
|
470
472
|
);
|
|
471
|
-
if (e.length !==
|
|
473
|
+
if (e.length !== W)
|
|
472
474
|
throw Error(
|
|
473
|
-
`ts.getNewLineCharacter() signature changed. Expected ${
|
|
475
|
+
`ts.getNewLineCharacter() signature changed. Expected ${W} argument. Lumina needs to be updated to support the new TypeScript version`
|
|
474
476
|
);
|
|
475
477
|
}
|
|
476
478
|
function pe(e) {
|
|
@@ -478,9 +480,9 @@ function pe(e) {
|
|
|
478
480
|
throw Error(
|
|
479
481
|
"Failed to find ts.Printer.writeFile() function. Lumina needs to be updated to support the new TypeScript version"
|
|
480
482
|
);
|
|
481
|
-
if (e.length !==
|
|
483
|
+
if (e.length !== w)
|
|
482
484
|
throw Error(
|
|
483
|
-
`ts.Printer.writeFile() signature changed. Expected ${
|
|
485
|
+
`ts.Printer.writeFile() signature changed. Expected ${w} arguments. Lumina needs to be updated to support the new TypeScript version`
|
|
484
486
|
);
|
|
485
487
|
}
|
|
486
488
|
function ue(e) {
|
|
@@ -488,9 +490,9 @@ function ue(e) {
|
|
|
488
490
|
throw Error(
|
|
489
491
|
"Failed to find ts.Printer.writeNode() function. Lumina needs to be updated to support the new TypeScript version"
|
|
490
492
|
);
|
|
491
|
-
if (e.length !==
|
|
493
|
+
if (e.length !== H)
|
|
492
494
|
throw Error(
|
|
493
|
-
`ts.Printer.writeNode() signature changed. Expected ${
|
|
495
|
+
`ts.Printer.writeNode() signature changed. Expected ${H} arguments. Lumina needs to be updated to support the new TypeScript version`
|
|
494
496
|
);
|
|
495
497
|
}
|
|
496
498
|
function $e(e, t) {
|
|
@@ -506,10 +508,10 @@ function ze(e) {
|
|
|
506
508
|
name: "default",
|
|
507
509
|
text: n.default
|
|
508
510
|
}), o.return) {
|
|
509
|
-
const
|
|
510
|
-
if (
|
|
511
|
-
for (let
|
|
512
|
-
const s = a
|
|
511
|
+
const i = o.parameters;
|
|
512
|
+
if (i !== void 0)
|
|
513
|
+
for (let a = 0; a < i.length; a++) {
|
|
514
|
+
const s = i[a];
|
|
513
515
|
t.push({
|
|
514
516
|
name: "param",
|
|
515
517
|
text: `${s.name}${s.description ? ` - ${s.description}` : ""}`
|
|
@@ -522,22 +524,22 @@ function ze(e) {
|
|
|
522
524
|
}
|
|
523
525
|
if ("customElement" in e) {
|
|
524
526
|
if (e.cssParts)
|
|
525
|
-
for (const
|
|
527
|
+
for (const i of e.cssParts)
|
|
526
528
|
t.push({
|
|
527
529
|
name: "csspart",
|
|
528
|
-
text:
|
|
530
|
+
text: I(i)
|
|
529
531
|
});
|
|
530
532
|
if (e.cssStates)
|
|
531
|
-
for (const
|
|
533
|
+
for (const i of e.cssStates)
|
|
532
534
|
t.push({
|
|
533
535
|
name: "cssstate",
|
|
534
|
-
text:
|
|
536
|
+
text: I(i)
|
|
535
537
|
});
|
|
536
538
|
if (e.slots)
|
|
537
|
-
for (const
|
|
539
|
+
for (const i of e.slots)
|
|
538
540
|
t.push({
|
|
539
541
|
name: "slot",
|
|
540
|
-
text:
|
|
542
|
+
text: I(i)
|
|
541
543
|
});
|
|
542
544
|
}
|
|
543
545
|
n.privacy === "private" && t.push({
|
|
@@ -551,7 +553,7 @@ function ze(e) {
|
|
|
551
553
|
docsTags: t
|
|
552
554
|
};
|
|
553
555
|
}
|
|
554
|
-
function
|
|
556
|
+
function I(e) {
|
|
555
557
|
const t = e.name + (e.default !== void 0 ? `=${e.default}` : ""), n = t.length > 0 ? `[${t}]` : "", o = e.description ?? "", r = o.length > 0 ? ` - ${o}` : "";
|
|
556
558
|
return `${n}${r}`;
|
|
557
559
|
}
|
|
@@ -574,21 +576,21 @@ function Se(e) {
|
|
|
574
576
|
o[0]?.text?.includes(`
|
|
575
577
|
`) === !0
|
|
576
578
|
);
|
|
577
|
-
let
|
|
578
|
-
n ? r || (
|
|
579
|
-
* `,
|
|
579
|
+
let i = "*";
|
|
580
|
+
n ? r || (i += " ") : (r ? (i += `
|
|
581
|
+
* `, i += N(t)) : i += ` ${t.replaceAll(" @", " \\@")}`, o.length > 0 && (i += `
|
|
580
582
|
*`));
|
|
581
|
-
for (let
|
|
582
|
-
const s = o[
|
|
583
|
-
|
|
583
|
+
for (let a = 0; a < o.length; a++) {
|
|
584
|
+
const s = o[a], l = `@${s.name}`, m = s.text ?? "";
|
|
585
|
+
i += `${r ? `
|
|
584
586
|
* ` : ""}${l}`, m.includes(`
|
|
585
|
-
`) ? (s.name === "returns" || s.name === "param" ?
|
|
586
|
-
* `,
|
|
587
|
+
`) ? (s.name === "returns" || s.name === "param" ? i += " " : i += `
|
|
588
|
+
* `, i += N(m)) : m.length > 0 && (i += ` ${m.replaceAll(" @", " \\@")}`);
|
|
587
589
|
}
|
|
588
|
-
return
|
|
589
|
-
` : " ",
|
|
590
|
+
return i += r ? `
|
|
591
|
+
` : " ", i;
|
|
590
592
|
}
|
|
591
|
-
function
|
|
593
|
+
function N(e) {
|
|
592
594
|
let t = "";
|
|
593
595
|
for (let n = 0; n < e.length; n++) {
|
|
594
596
|
const o = e[n];
|
|
@@ -606,9 +608,9 @@ function Je(e, t, n = !0) {
|
|
|
606
608
|
if (o === void 0)
|
|
607
609
|
return;
|
|
608
610
|
let r;
|
|
609
|
-
for (const
|
|
610
|
-
const
|
|
611
|
-
|
|
611
|
+
for (const i of o) {
|
|
612
|
+
const a = t.text.slice(i.pos, i.end);
|
|
613
|
+
a.startsWith("/**") && (r !== void 0 && y(
|
|
612
614
|
`Found multiple JSDoc comments for the same node. This is not allowed.
|
|
613
615
|
If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/webgis/core/core/documenting-api#file-documentation
|
|
614
616
|
If this is meant to be a function overload, read the documentation: https://webgis.esri.com/webgis/core/core/documenting-api#function-overloads`,
|
|
@@ -616,59 +618,59 @@ If this is meant to be a function overload, read the documentation: https://webg
|
|
|
616
618
|
file: t,
|
|
617
619
|
node: e
|
|
618
620
|
}
|
|
619
|
-
), r =
|
|
621
|
+
), r = a);
|
|
620
622
|
}
|
|
621
623
|
if (r !== void 0 && !(n && !r.includes("* @public")))
|
|
622
624
|
return Ee(r, t, n);
|
|
623
625
|
}
|
|
624
626
|
function Ee(e, t, n = !1) {
|
|
625
627
|
const o = e.length - 2;
|
|
626
|
-
let r = 3,
|
|
627
|
-
const
|
|
628
|
+
let r = 3, i = "";
|
|
629
|
+
const a = [];
|
|
628
630
|
let s, l = !n, m = !1;
|
|
629
631
|
for (; r < o; ) {
|
|
630
|
-
let
|
|
632
|
+
let S = e.indexOf(`
|
|
631
633
|
`, r);
|
|
632
|
-
|
|
633
|
-
let c = e.slice(r,
|
|
634
|
-
if (r =
|
|
634
|
+
S === -1 && (S = o);
|
|
635
|
+
let c = e.slice(r, S).trim();
|
|
636
|
+
if (r = S + 1, c === "*" ? c = "" : c.startsWith("*") && (c[1] === " " ? c = c.slice(2) : y(
|
|
635
637
|
`For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
|
|
636
638
|
{
|
|
637
639
|
file: t,
|
|
638
640
|
node: void 0
|
|
639
641
|
}
|
|
640
642
|
)), c.startsWith("@")) {
|
|
641
|
-
s !== void 0 && !m &&
|
|
643
|
+
s !== void 0 && !m && a.push({
|
|
642
644
|
name: s.name,
|
|
643
645
|
text: s.text.trim().replaceAll("\\@", "@") || void 0
|
|
644
646
|
});
|
|
645
|
-
const p = c.indexOf(" "),
|
|
646
|
-
l ||=
|
|
647
|
-
const
|
|
647
|
+
const p = c.indexOf(" "), u = p === -1 ? c.slice(1) : c.slice(1, p), C = n && u === "public";
|
|
648
|
+
l ||= C, m = C || u === "privateRemarks";
|
|
649
|
+
const E = p === -1 ? "" : c.slice(p + 1);
|
|
648
650
|
s = {
|
|
649
|
-
name:
|
|
650
|
-
text:
|
|
651
|
+
name: u,
|
|
652
|
+
text: E
|
|
651
653
|
};
|
|
652
654
|
} else s !== void 0 ? s.text = `${s.text}
|
|
653
|
-
${c}` :
|
|
655
|
+
${c}` : i += `${c}
|
|
654
656
|
`;
|
|
655
657
|
}
|
|
656
658
|
if (l)
|
|
657
|
-
return s !== void 0 && !m &&
|
|
659
|
+
return s !== void 0 && !m && a.push({
|
|
658
660
|
name: s.name,
|
|
659
661
|
text: s.text.trim().replaceAll("\\@", "@") || void 0
|
|
660
662
|
}), {
|
|
661
|
-
description:
|
|
662
|
-
docsTags:
|
|
663
|
+
description: i.trim().replaceAll("\\@", "@") || void 0,
|
|
664
|
+
docsTags: a
|
|
663
665
|
};
|
|
664
666
|
}
|
|
665
667
|
function Ce(e, t) {
|
|
666
668
|
const n = ye(t.getJsDocTags());
|
|
667
669
|
let o = d.displayPartsToString(t.getDocumentationComment(e));
|
|
668
|
-
const r = n.at(-1),
|
|
669
|
-
if (
|
|
670
|
-
const
|
|
671
|
-
|
|
670
|
+
const r = n.at(-1), i = r?.text?.indexOf(ge);
|
|
671
|
+
if (i !== void 0 && i !== -1) {
|
|
672
|
+
const a = r.text.indexOf(fe);
|
|
673
|
+
a !== -1 && (o += r.text.slice(a), r.text = r.text?.slice(0, a));
|
|
672
674
|
}
|
|
673
675
|
return {
|
|
674
676
|
description: o || void 0,
|
|
@@ -689,11 +691,11 @@ function je(e, t, n) {
|
|
|
689
691
|
function ve(e, t) {
|
|
690
692
|
for (const n of t.docsTags) {
|
|
691
693
|
const { name: o, text: r } = n;
|
|
692
|
-
o === "deprecated" ? e.deprecated = r || !0 : o === "default" ? e.default = r : o === "readonly" ? e.readonly = !0 : o === "private" ? e.privacy = "private" : o === "csspart" ? e.cssParts.push(
|
|
694
|
+
o === "deprecated" ? e.deprecated = r || !0 : o === "default" ? e.default = r : o === "readonly" ? e.readonly = !0 : o === "private" ? e.privacy = "private" : o === "csspart" ? e.cssParts.push(P(r)) : o === "cssstate" ? e.cssStates.push(P(r)) : o === "slot" ? e.slots.push(P(r)) : (e.docsTags ??= [], e.docsTags.push(n));
|
|
693
695
|
}
|
|
694
696
|
e.description = t.description;
|
|
695
697
|
}
|
|
696
|
-
function
|
|
698
|
+
function P(e) {
|
|
697
699
|
if (e === void 0)
|
|
698
700
|
return { name: "" };
|
|
699
701
|
const t = e.indexOf(" - ");
|
|
@@ -701,8 +703,8 @@ function I(e) {
|
|
|
701
703
|
return e.startsWith("- ") ? { name: "", description: e.slice(2) } : { name: e };
|
|
702
704
|
let n, o = e.slice(0, t);
|
|
703
705
|
if (o.startsWith("[") && o.endsWith("]")) {
|
|
704
|
-
const
|
|
705
|
-
o =
|
|
706
|
+
const i = o.slice(1, -1), a = i.indexOf("=");
|
|
707
|
+
o = i.slice(0, a), n = i.slice(a + 1);
|
|
706
708
|
}
|
|
707
709
|
const r = e.slice(t + 3);
|
|
708
710
|
return {
|
|
@@ -716,8 +718,8 @@ const Te = /* @__PURE__ */ JSON.parse('{"AbortController":["AbortController"],"A
|
|
|
716
718
|
}, Xe = Object.freeze(
|
|
717
719
|
Object.assign(/* @__PURE__ */ Object.create(null), he.globals)
|
|
718
720
|
), Qe = "https://developer.mozilla.org/docs/Web/API/";
|
|
719
|
-
function Ye(e, t, n, o, r,
|
|
720
|
-
return `${`${t ? "export default " : "export "}${e ? "abstract " : ""}`}class ${n}${g(o)}${r === void 0 ? "" : ` extends ${r}`} {${
|
|
721
|
+
function Ye(e, t, n, o, r, i) {
|
|
722
|
+
return `${`${t ? "export default " : "export "}${e ? "abstract " : ""}`}class ${n}${g(o)}${r === void 0 ? "" : ` extends ${r}`} {${i}}`;
|
|
721
723
|
}
|
|
722
724
|
function g(e) {
|
|
723
725
|
if (e === void 0)
|
|
@@ -730,30 +732,30 @@ function g(e) {
|
|
|
730
732
|
return t += ">", t;
|
|
731
733
|
}
|
|
732
734
|
function Ze(e, t, n, o, r) {
|
|
733
|
-
const
|
|
734
|
-
let
|
|
735
|
+
const i = e ? "export default " : "export ";
|
|
736
|
+
let a = "";
|
|
735
737
|
if (o !== void 0) {
|
|
736
|
-
|
|
738
|
+
a = " extends ";
|
|
737
739
|
for (let s = 0; s < o.length; s++)
|
|
738
|
-
|
|
740
|
+
a += o[s], s < o.length - 1 && (a += ", ");
|
|
739
741
|
}
|
|
740
|
-
return `${
|
|
742
|
+
return `${i}interface ${t}${g(n)}${a} {${r}}`;
|
|
741
743
|
}
|
|
742
|
-
function et(e, t, n, o, r,
|
|
744
|
+
function et(e, t, n, o, r, i, a, s) {
|
|
743
745
|
const l = `${e ? "protected " : ""}${t ? "abstract " : ""}${n ? "static " : ""}`, m = s === void 0 ? "" : `: ${s}`;
|
|
744
|
-
return `${l}${r === "" ? "" :
|
|
746
|
+
return `${l}${r === "" ? "" : x(r)}${o ? "?" : ""}${g(i)}(${A(a)})${m};`;
|
|
745
747
|
}
|
|
746
|
-
function
|
|
748
|
+
function x(e) {
|
|
747
749
|
return Me.test(e) || e.startsWith("[") ? e : `"${e.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
748
750
|
}
|
|
749
751
|
const Me = /^[A-Za-z_$][A-Za-z0-9_$]*$/u;
|
|
750
752
|
function tt(e, t, n, o, r) {
|
|
751
|
-
return `${e ? "export default " : "export "}function ${t}${g(n)}(${
|
|
753
|
+
return `${e ? "export default " : "export "}function ${t}${g(n)}(${A(o)}): ${r};`;
|
|
752
754
|
}
|
|
753
755
|
function nt(e) {
|
|
754
|
-
return `${g(e.typeParameters)}(${
|
|
756
|
+
return `${g(e.typeParameters)}(${A(e.parameters)}): ${e.return.type.text}`;
|
|
755
757
|
}
|
|
756
|
-
function
|
|
758
|
+
function A(e) {
|
|
757
759
|
if (e === void 0)
|
|
758
760
|
return "";
|
|
759
761
|
let t = "";
|
|
@@ -763,45 +765,45 @@ function x(e) {
|
|
|
763
765
|
}
|
|
764
766
|
return t;
|
|
765
767
|
}
|
|
766
|
-
function ot(e, t, n, o, r,
|
|
767
|
-
return `${`${e ? "protected " : ""}${t ? "abstract " : n ? "static " : ""}${o ? "readonly " : r ? "accessor " : ""}`}${
|
|
768
|
+
function ot(e, t, n, o, r, i, a, s) {
|
|
769
|
+
return `${`${e ? "protected " : ""}${t ? "abstract " : n ? "static " : ""}${o ? "readonly " : r ? "accessor " : ""}`}${x(a)}${i ? "?" : ""}: ${s};`;
|
|
768
770
|
}
|
|
769
|
-
function rt(e, t, n, o, r,
|
|
770
|
-
const
|
|
771
|
-
${
|
|
772
|
-
return `${
|
|
771
|
+
function rt(e, t, n, o, r, i) {
|
|
772
|
+
const a = `${e ? "protected " : ""}${t ? "abstract " : ""}${n ? "static " : ""}`, s = x(o), l = i === void 0 ? "" : `
|
|
773
|
+
${a}set ${s}(value: ${i});`;
|
|
774
|
+
return `${a}get ${s}(): ${r};${l}`;
|
|
773
775
|
}
|
|
774
|
-
function
|
|
776
|
+
function it(e, t, n) {
|
|
775
777
|
const r = `${e ? "declare " : "export "}const ${t}: ${n};`;
|
|
776
778
|
return e ? `${r}
|
|
777
779
|
export default ${t};` : r;
|
|
778
780
|
}
|
|
779
|
-
function
|
|
781
|
+
function at(e, t, n, o) {
|
|
780
782
|
let r = `export type ${e}${g(t)} = `;
|
|
781
783
|
if (n !== void 0)
|
|
782
|
-
for (let
|
|
783
|
-
r += n[
|
|
784
|
+
for (let i = 0; i < n.length; i++)
|
|
785
|
+
r += n[i], (i < n.length - 1 || o !== void 0) && (r += `
|
|
784
786
|
& `);
|
|
785
787
|
return o !== void 0 && (r += o), r += ";", r;
|
|
786
788
|
}
|
|
787
789
|
export {
|
|
788
790
|
Ue as ApiExtractor,
|
|
789
|
-
|
|
791
|
+
k as alternativeDocumentationHost,
|
|
790
792
|
ee as apiExtractorDiagnosticContext,
|
|
791
793
|
y as apiExtractorError,
|
|
792
|
-
|
|
793
|
-
|
|
794
|
+
B as apiExtractorErrorCount,
|
|
795
|
+
M as apiExtractorJsDocError,
|
|
794
796
|
ze as apiMemberToNodeDoc,
|
|
795
797
|
Ve as compareClassMembers,
|
|
796
798
|
ke as compareNamedNodes,
|
|
797
|
-
|
|
799
|
+
U as compareStrings,
|
|
798
800
|
Ke as extractBooleanInitializer,
|
|
799
801
|
Be as findDecorator,
|
|
800
802
|
_e as findReferenceRanges,
|
|
801
|
-
|
|
803
|
+
O as getApiMemberName,
|
|
802
804
|
We as getApiNodeLabel,
|
|
803
805
|
se as getBasename,
|
|
804
|
-
|
|
806
|
+
R as getMaybeStaticApiMemberName,
|
|
805
807
|
Ne as getMemberName,
|
|
806
808
|
Je as getNodeDoc,
|
|
807
809
|
Ge as globalPackageIdentifier,
|
|
@@ -812,7 +814,7 @@ export {
|
|
|
812
814
|
oe as naturalSortModules,
|
|
813
815
|
Se as nodeDocToString,
|
|
814
816
|
qe as nodeDocToSynthesizedComment,
|
|
815
|
-
|
|
817
|
+
F as normalizedDocumentationHost,
|
|
816
818
|
Fe as postProcessLinks,
|
|
817
819
|
Ye as printClass,
|
|
818
820
|
tt as printFunction,
|
|
@@ -821,9 +823,9 @@ export {
|
|
|
821
823
|
et as printMethod,
|
|
822
824
|
ot as printProperty,
|
|
823
825
|
nt as printSignature,
|
|
824
|
-
|
|
826
|
+
at as printTypeAlias,
|
|
825
827
|
g as printTypeParameters,
|
|
826
|
-
|
|
828
|
+
it as printVariable,
|
|
827
829
|
Pe as resetApiExtractorErrorCount,
|
|
828
830
|
ve as setApiDocFromJsDoc,
|
|
829
831
|
je as setApiDocFromSymbol,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/api-extractor",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.89",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"bin": "./dist/cli.js",
|
|
22
22
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@arcgis/components-build-utils": "5.0.0-next.
|
|
25
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
24
|
+
"@arcgis/components-build-utils": "5.0.0-next.89",
|
|
25
|
+
"@arcgis/toolkit": "5.0.0-next.89",
|
|
26
26
|
"@commander-js/extra-typings": "^14.0.0",
|
|
27
27
|
"chalk": "^5.4.1",
|
|
28
28
|
"commander": "^14.0.0",
|