@arcgis/api-extractor 5.2.0-next.90 → 5.2.0-next.93
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-cixc5HhK.js → ApiExtractor-C2CJZrBq.js} +1998 -1719
- package/dist/apiJson.d.ts +11 -56
- package/dist/config-D0cgQ7jF.js +191 -0
- package/dist/diff/diffApiJson.js +108 -113
- package/dist/extractor/ApiExtractor.d.ts +3 -0
- package/dist/extractor/ApiExtractor.js +3 -4
- package/dist/extractor/config.d.ts +2 -2
- package/dist/extractor/config.js +11 -185
- package/dist/extractor/processing/links.js +69 -67
- package/dist/{privateContext-CZnnBVGR.js → privateContext-CjPsSpfv.js} +6 -4
- package/dist/utils/apiHelpers.js +1 -1
- package/dist/utils/partPrinter.js +1 -1
- package/dist/vite/plugin.d.ts +3 -1
- package/dist/vite/plugin.js +9 -10
- package/package.json +3 -4
- package/dist/typeScript-D3TNAYYk.js +0 -67
- package/dist/vite/typeScript.d.ts +0 -16
- package/dist/vite/typeScript.js +0 -7
package/dist/apiJson.d.ts
CHANGED
|
@@ -452,23 +452,14 @@ export interface ApiWithInheritance {
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
/** @see [MDN Slot](https://developer.mozilla.org/docs/Web/HTML/Element/slot) */
|
|
455
|
-
export interface ApiSlot extends ApiWithDescription, ApiWithUnusedSummary {
|
|
455
|
+
export interface ApiSlot extends ApiWithDescription, ApiWithDocsTags, ApiWithDeprecated, ApiWithUnusedSummary {
|
|
456
456
|
/**
|
|
457
457
|
* The slot name, or the empty string for an unnamed slot.
|
|
458
458
|
*
|
|
459
459
|
* @example "header"
|
|
460
460
|
*/
|
|
461
461
|
name: string;
|
|
462
|
-
|
|
463
|
-
* Whether the slot is deprecated.
|
|
464
|
-
* If the value is a string, it's the reason for the deprecation.
|
|
465
|
-
*
|
|
466
|
-
* @deprecated
|
|
467
|
-
* Not used by `@arcgis/api-extractor`. Preserved in types for compatibility
|
|
468
|
-
* with custom-elements-manifest.
|
|
469
|
-
* @default false
|
|
470
|
-
*/
|
|
471
|
-
deprecated?: string | true;
|
|
462
|
+
type?: ApiType;
|
|
472
463
|
}
|
|
473
464
|
|
|
474
465
|
/**
|
|
@@ -476,19 +467,10 @@ export interface ApiSlot extends ApiWithDescription, ApiWithUnusedSummary {
|
|
|
476
467
|
*
|
|
477
468
|
* @see https://developer.mozilla.org/docs/Web/CSS/CSS_shadow_parts
|
|
478
469
|
*/
|
|
479
|
-
export interface ApiCssPart extends ApiWithDescription, ApiWithUnusedSummary {
|
|
470
|
+
export interface ApiCssPart extends ApiWithDescription, ApiWithDocsTags, ApiWithDeprecated, ApiWithUnusedSummary {
|
|
480
471
|
/** @example "tab" */
|
|
481
472
|
name: string;
|
|
482
|
-
|
|
483
|
-
* Whether the CSS shadow part is deprecated.
|
|
484
|
-
* If the value is a string, it's the reason for the deprecation.
|
|
485
|
-
*
|
|
486
|
-
* @deprecated
|
|
487
|
-
* Not used by `@arcgis/api-extractor`. Preserved in types for compatibility
|
|
488
|
-
* with custom-elements-manifest.
|
|
489
|
-
* @default false
|
|
490
|
-
*/
|
|
491
|
-
deprecated?: string | true;
|
|
473
|
+
type?: ApiType;
|
|
492
474
|
}
|
|
493
475
|
|
|
494
476
|
/**
|
|
@@ -496,7 +478,7 @@ export interface ApiCssPart extends ApiWithDescription, ApiWithUnusedSummary {
|
|
|
496
478
|
*
|
|
497
479
|
* @see https://developer.mozilla.org/docs/Web/API/CustomStateSet
|
|
498
480
|
*/
|
|
499
|
-
export interface ApiCssCustomState extends ApiWithDescription, ApiWithUnusedSummary {
|
|
481
|
+
export interface ApiCssCustomState extends ApiWithDescription, ApiWithDocsTags, ApiWithDeprecated, ApiWithUnusedSummary {
|
|
500
482
|
/**
|
|
501
483
|
* The name of the state. Note: Unlike CSS custom properties, custom states
|
|
502
484
|
* do not have a leading `--`.
|
|
@@ -504,55 +486,28 @@ export interface ApiCssCustomState extends ApiWithDescription, ApiWithUnusedSumm
|
|
|
504
486
|
* @example "active"
|
|
505
487
|
*/
|
|
506
488
|
name: string;
|
|
507
|
-
/**
|
|
508
|
-
* Whether the CSS custom state is deprecated.
|
|
509
|
-
* If the value is a string, it's the reason for the deprecation.
|
|
510
|
-
*
|
|
511
|
-
* @deprecated
|
|
512
|
-
* Not used by `@arcgis/api-extractor`. Preserved in types for compatibility
|
|
513
|
-
* with custom-elements-manifest.
|
|
514
|
-
* @default false
|
|
515
|
-
*/
|
|
516
|
-
deprecated?: string | true;
|
|
517
489
|
}
|
|
518
490
|
|
|
519
|
-
export interface ApiCssCustomProperty extends ApiWithDescription, ApiWithUnusedSummary {
|
|
491
|
+
export interface ApiCssCustomProperty extends ApiWithDescription, ApiWithDocsTags, ApiWithDeprecated, ApiWithUnusedSummary {
|
|
520
492
|
/**
|
|
521
493
|
* The name of the property, including leading `--`.
|
|
522
494
|
*
|
|
523
495
|
* @example "--calcite-text-color"
|
|
524
496
|
*/
|
|
525
497
|
name: string;
|
|
498
|
+
type?: ApiType;
|
|
526
499
|
/**
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
* The syntax must be a valid CSS
|
|
530
|
-
* [syntax string](https://developer.mozilla.org/docs/Web/CSS/@property/syntax)
|
|
531
|
-
* as defined in the CSS Properties and Values API.
|
|
532
|
-
*
|
|
533
|
-
* Examples:
|
|
534
|
-
*
|
|
535
|
-
* "<color>": accepts a color
|
|
536
|
-
* "<length> | <percentage>": accepts lengths or percentages but not calc expressions with a combination of the two
|
|
537
|
-
* "small | medium | large": accepts one of these values set as custom indents.
|
|
538
|
-
* "*": any valid token
|
|
500
|
+
* A [CSS syntax string](https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax)
|
|
539
501
|
*
|
|
540
502
|
* @deprecated
|
|
541
503
|
* Not used by `@arcgis/api-extractor`. Preserved in types for compatibility
|
|
542
504
|
* with custom-elements-manifest.
|
|
505
|
+
*
|
|
506
|
+
* We use [ApiCssCustomProperty](https://developers.arcgis.com/javascript/latest/references/api-extractor/apiJson/#ApiCssCustomProperty-) instead, which is more
|
|
507
|
+
* powerful, and we have existing utils for dealing with it.
|
|
543
508
|
*/
|
|
544
509
|
syntax?: string;
|
|
545
510
|
default?: string;
|
|
546
|
-
/**
|
|
547
|
-
* Whether the CSS custom property is deprecated.
|
|
548
|
-
* If the value is a string, it's the reason for the deprecation.
|
|
549
|
-
*
|
|
550
|
-
* @deprecated
|
|
551
|
-
* Not used by `@arcgis/api-extractor`. Preserved in types for compatibility
|
|
552
|
-
* with custom-elements-manifest.
|
|
553
|
-
* @default false
|
|
554
|
-
*/
|
|
555
|
-
deprecated?: string | true;
|
|
556
511
|
}
|
|
557
512
|
|
|
558
513
|
export interface ApiType extends ApiWithUnusedSource {
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { existsAsync as S } from "@arcgis/node-toolkit/file";
|
|
2
|
+
import { path as y, getCwd as E } from "@arcgis/node-toolkit/path";
|
|
3
|
+
import { retrievePackageJson as U } from "@arcgis/node-toolkit/packageJson";
|
|
4
|
+
import { loadTypeScriptConfig as b } from "@arcgis/node-toolkit/vite/typeScript";
|
|
5
|
+
import { identity as d } from "@arcgis/toolkit/function";
|
|
6
|
+
import { pathToFileURL as I } from "node:url";
|
|
7
|
+
import { getDefaultBasePath as J } from "./extractor/processing/links.js";
|
|
8
|
+
const w = "@arcgis/api-extractor", L = "5.2.0-next.93", A = {
|
|
9
|
+
name: w,
|
|
10
|
+
version: L
|
|
11
|
+
}, T = "developers.arcgis.com", k = "next.gha.afd.arcgis.com";
|
|
12
|
+
function N(e) {
|
|
13
|
+
if (e.isResolvedConfig === !0)
|
|
14
|
+
return e;
|
|
15
|
+
const t = e.context, o = e.types, n = e.documentation, r = `${t?.cwd === void 0 ? E() : y.resolve(t?.cwd)}/`, s = t?.packageJson ?? U(r);
|
|
16
|
+
let c = t?.basePath ?? "src/";
|
|
17
|
+
c.endsWith("/") || (c += "/");
|
|
18
|
+
const m = "customElements" in s && "@arcgis/lumina" in (s.dependencies ?? {}), l = o?.typeCheckedExtraction ?? m, p = o?.fullTypeCheck ?? !1, a = o?.typeScriptConfig ?? (l || p ? b(r, o?.typeScriptConfigPath, !0) : {
|
|
19
|
+
configPath: "",
|
|
20
|
+
config: {
|
|
21
|
+
options: {},
|
|
22
|
+
fileNames: [],
|
|
23
|
+
errors: []
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
if (o?.typeScriptConfig?.config.fileNames.length === 0)
|
|
27
|
+
throw Error(
|
|
28
|
+
`${A.name}: Provided types.typeScriptConfig has no included files. If you used loadTypeScriptConfig, make sure to set resolveIncludedFiles to true.`
|
|
29
|
+
);
|
|
30
|
+
const h = {
|
|
31
|
+
config: {
|
|
32
|
+
...a.config,
|
|
33
|
+
options: {
|
|
34
|
+
...a.config.options,
|
|
35
|
+
...o?.compilerOptions
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
configPath: a.configPath
|
|
39
|
+
}, g = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${y.resolve(r, t.dtsEmitPath)}/`, x = g !== "", P = t?.environment ?? "production", u = P === "development", v = t?.emptyDtsEmitPath ?? (!u && x), D = n?.omitInternal ?? !1, C = o?.forceProduceDts ?? !1;
|
|
40
|
+
if (D && (x || C))
|
|
41
|
+
throw Error(
|
|
42
|
+
"omitInternal must be false if emitting .d.ts files in order to produce functional types for internal APIs."
|
|
43
|
+
);
|
|
44
|
+
return {
|
|
45
|
+
isResolvedConfig: !0,
|
|
46
|
+
context: {
|
|
47
|
+
dtsEmitPath: g,
|
|
48
|
+
emptyDtsEmitPath: v,
|
|
49
|
+
apiJsonEmitPath: t?.apiJsonEmitPath ?? "",
|
|
50
|
+
environment: P,
|
|
51
|
+
cwd: r,
|
|
52
|
+
basePath: c,
|
|
53
|
+
packageJson: s,
|
|
54
|
+
logger: t?.logger ?? {
|
|
55
|
+
// We namespace manually
|
|
56
|
+
// eslint-disable-next-line webgis/consistent-logging
|
|
57
|
+
info: console.log,
|
|
58
|
+
// eslint-disable-next-line webgis/consistent-logging
|
|
59
|
+
error: console.error
|
|
60
|
+
},
|
|
61
|
+
excludedDirectories: t?.excludedDirectories ?? /* @__PURE__ */ new Set(),
|
|
62
|
+
isLuminaMinimalExtraction: t?.isLuminaMinimalExtraction ?? !1,
|
|
63
|
+
includeLuminaPrivateComponents: t?.includeLuminaPrivateComponents ?? !1,
|
|
64
|
+
supportApplyMixinsSyntax: t?.supportApplyMixinsSyntax ?? !1
|
|
65
|
+
},
|
|
66
|
+
types: {
|
|
67
|
+
typeCheckedExtraction: l,
|
|
68
|
+
fullTypeCheck: p,
|
|
69
|
+
afterDiagnostic: o?.afterDiagnostic ?? d,
|
|
70
|
+
typeScriptInstanceCreated: o?.typeScriptInstanceCreated ?? d,
|
|
71
|
+
typeScriptConfigPath: a.configPath,
|
|
72
|
+
typeScriptConfig: h,
|
|
73
|
+
compilerOptions: h.config.options,
|
|
74
|
+
declarationTextTransformers: o?.declarationTextTransformers ?? [],
|
|
75
|
+
typeReplacements: o?.typeReplacements ?? {},
|
|
76
|
+
forceProduceDts: C
|
|
77
|
+
},
|
|
78
|
+
documentation: {
|
|
79
|
+
copyDocDefinitions: n?.copyDocDefinitions ?? {},
|
|
80
|
+
noInheritMembers: n?.noInheritMembers ?? {},
|
|
81
|
+
omitInternal: D,
|
|
82
|
+
publicStoryUrlPrefix: n?.publicStoryUrlPrefix ?? !1,
|
|
83
|
+
getComponentDocsUrl: n?.getComponentDocsUrl ?? !1,
|
|
84
|
+
getComponentDemoUrl: n?.getComponentDemoUrl ?? !1,
|
|
85
|
+
host: n?.host ?? (u ? k : T),
|
|
86
|
+
alternativeHost: n?.alternativeHost ?? (u ? T : k),
|
|
87
|
+
basePath: n?.basePath ?? J(s.name.split("/").at(-1))
|
|
88
|
+
},
|
|
89
|
+
verify: {
|
|
90
|
+
typeCheckTypes: e.verify?.typeCheckTypes ?? !1,
|
|
91
|
+
filterTypeCheckDiagnostic: e.verify?.filterTypeCheckDiagnostic ?? (() => !0),
|
|
92
|
+
detectBrokenLinks: e.verify?.detectBrokenLinks ?? !0
|
|
93
|
+
},
|
|
94
|
+
watch: {
|
|
95
|
+
onUpdate: e.watch?.onUpdate ?? d,
|
|
96
|
+
// Many reads can happen in a short time (on folder moves, or if prettier re-runs)
|
|
97
|
+
// Shorter than TypeScript's default of 250ms as we are blocked until this
|
|
98
|
+
// timeout is complete. Short timeout for unchecked extraction as it is fast,
|
|
99
|
+
// so doesn't need long debounce.
|
|
100
|
+
debounceTime: e.watch?.debounceTime ?? (l || p ? 50 : 20),
|
|
101
|
+
clearScreen: e.watch?.clearScreen ?? !1,
|
|
102
|
+
skipWritingUnchanged: v ? !1 : e.watch?.skipWritingUnchanged ?? !0
|
|
103
|
+
},
|
|
104
|
+
strict: e.strict ?? !m,
|
|
105
|
+
afterApiJsonCreate: e.afterApiJsonCreate ?? d
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
async function V(e, t) {
|
|
109
|
+
const o = t !== void 0, n = e ?? process.cwd(), i = y.resolve(n, t ?? "api-extractor.config.ts"), r = await S(i);
|
|
110
|
+
if (o && !r)
|
|
111
|
+
throw Error(`The provided config file at ${i} does not exist.`);
|
|
112
|
+
if (!r)
|
|
113
|
+
return e === void 0 ? {} : { context: { cwd: e } };
|
|
114
|
+
const s = (await import(I(i).href)).config;
|
|
115
|
+
return {
|
|
116
|
+
...s,
|
|
117
|
+
context: {
|
|
118
|
+
...s.context,
|
|
119
|
+
cwd: s.context?.cwd ?? y.dirname(i)
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function j(e, t) {
|
|
124
|
+
const o = e.context, n = t.context, i = e.types, r = t.types, s = e.documentation, c = t.documentation, m = e.verify, l = t.verify, p = e.watch, a = t.watch;
|
|
125
|
+
return {
|
|
126
|
+
isResolvedConfig: e.isResolvedConfig || t.isResolvedConfig || void 0,
|
|
127
|
+
context: {
|
|
128
|
+
dtsEmitPath: n?.dtsEmitPath ?? o?.dtsEmitPath,
|
|
129
|
+
emptyDtsEmitPath: n?.emptyDtsEmitPath ?? o?.emptyDtsEmitPath,
|
|
130
|
+
apiJsonEmitPath: n?.apiJsonEmitPath ?? o?.apiJsonEmitPath,
|
|
131
|
+
environment: n?.environment ?? o?.environment,
|
|
132
|
+
cwd: n?.cwd ?? o?.cwd,
|
|
133
|
+
basePath: n?.basePath ?? o?.basePath,
|
|
134
|
+
packageJson: n?.packageJson ?? o?.packageJson,
|
|
135
|
+
logger: n?.logger ?? o?.logger,
|
|
136
|
+
excludedDirectories: n?.excludedDirectories ?? o?.excludedDirectories,
|
|
137
|
+
isLuminaMinimalExtraction: n?.isLuminaMinimalExtraction ?? o?.isLuminaMinimalExtraction,
|
|
138
|
+
includeLuminaPrivateComponents: n?.includeLuminaPrivateComponents ?? o?.includeLuminaPrivateComponents,
|
|
139
|
+
supportApplyMixinsSyntax: n?.supportApplyMixinsSyntax ?? o?.supportApplyMixinsSyntax ?? !1
|
|
140
|
+
},
|
|
141
|
+
types: {
|
|
142
|
+
typeCheckedExtraction: r?.typeCheckedExtraction ?? i?.typeCheckedExtraction,
|
|
143
|
+
fullTypeCheck: r?.fullTypeCheck ?? i?.fullTypeCheck,
|
|
144
|
+
afterDiagnostic: f(r?.afterDiagnostic, i?.afterDiagnostic),
|
|
145
|
+
typeScriptInstanceCreated: f(
|
|
146
|
+
t?.types?.typeScriptInstanceCreated,
|
|
147
|
+
e?.types?.typeScriptInstanceCreated
|
|
148
|
+
),
|
|
149
|
+
typeScriptConfigPath: r?.typeScriptConfigPath ?? i?.typeScriptConfigPath,
|
|
150
|
+
typeScriptConfig: r?.typeScriptConfig ?? i?.typeScriptConfig,
|
|
151
|
+
compilerOptions: r?.compilerOptions ?? i?.compilerOptions,
|
|
152
|
+
declarationTextTransformers: r?.declarationTextTransformers !== void 0 && i?.declarationTextTransformers !== void 0 ? [...i.declarationTextTransformers, ...r.declarationTextTransformers] : r?.declarationTextTransformers ?? i?.declarationTextTransformers,
|
|
153
|
+
typeReplacements: r?.typeReplacements ?? i?.typeReplacements,
|
|
154
|
+
forceProduceDts: r?.forceProduceDts ?? i?.forceProduceDts
|
|
155
|
+
},
|
|
156
|
+
documentation: {
|
|
157
|
+
copyDocDefinitions: c?.copyDocDefinitions ?? s?.copyDocDefinitions,
|
|
158
|
+
noInheritMembers: c?.noInheritMembers ?? s?.noInheritMembers,
|
|
159
|
+
omitInternal: c?.omitInternal ?? s?.omitInternal,
|
|
160
|
+
publicStoryUrlPrefix: c?.publicStoryUrlPrefix ?? s?.publicStoryUrlPrefix,
|
|
161
|
+
getComponentDocsUrl: c?.getComponentDocsUrl ?? s?.getComponentDocsUrl,
|
|
162
|
+
getComponentDemoUrl: c?.getComponentDemoUrl ?? s?.getComponentDemoUrl,
|
|
163
|
+
host: c?.host ?? s?.host,
|
|
164
|
+
alternativeHost: c?.alternativeHost ?? s?.alternativeHost,
|
|
165
|
+
basePath: c?.basePath ?? s?.basePath
|
|
166
|
+
},
|
|
167
|
+
verify: {
|
|
168
|
+
typeCheckTypes: l?.typeCheckTypes ?? m?.typeCheckTypes,
|
|
169
|
+
filterTypeCheckDiagnostic: l?.filterTypeCheckDiagnostic ?? m?.filterTypeCheckDiagnostic,
|
|
170
|
+
detectBrokenLinks: l?.detectBrokenLinks ?? m?.detectBrokenLinks
|
|
171
|
+
},
|
|
172
|
+
watch: {
|
|
173
|
+
onUpdate: f(a?.onUpdate, p?.onUpdate),
|
|
174
|
+
debounceTime: a?.debounceTime ?? p?.debounceTime,
|
|
175
|
+
clearScreen: a?.clearScreen ?? p?.clearScreen,
|
|
176
|
+
skipWritingUnchanged: a?.skipWritingUnchanged ?? p?.skipWritingUnchanged
|
|
177
|
+
},
|
|
178
|
+
strict: t.strict ?? e.strict,
|
|
179
|
+
afterApiJsonCreate: f(t.afterApiJsonCreate, e.afterApiJsonCreate)
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function f(e, t) {
|
|
183
|
+
const o = t === d ? void 0 : t, n = e === d ? void 0 : e;
|
|
184
|
+
return o !== void 0 && n !== void 0 ? ((...i) => (o(...i), n(...i))) : n ?? o;
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
V as l,
|
|
188
|
+
j as m,
|
|
189
|
+
A as p,
|
|
190
|
+
N as r
|
|
191
|
+
};
|
package/dist/diff/diffApiJson.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
function w(
|
|
2
|
-
if (
|
|
1
|
+
function w(r, a) {
|
|
2
|
+
if (r.compiler?.name !== "@arcgis/core:manual" || r.compiler?.version !== "4.34")
|
|
3
3
|
return;
|
|
4
|
-
const
|
|
5
|
-
return
|
|
6
|
-
|
|
4
|
+
const o = {};
|
|
5
|
+
return r.modules.forEach((t) => {
|
|
6
|
+
o[t.path] = t;
|
|
7
7
|
}), {
|
|
8
|
-
...
|
|
9
|
-
modules:
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
if (
|
|
8
|
+
...a,
|
|
9
|
+
modules: a.modules.filter((t) => {
|
|
10
|
+
const e = o[t.path];
|
|
11
|
+
return t.declarations = t.declarations.filter((n) => {
|
|
12
|
+
if (n.kind === "mixin")
|
|
13
13
|
return !1;
|
|
14
|
-
if (
|
|
15
|
-
const
|
|
16
|
-
(d) => d.name ===
|
|
14
|
+
if (n.kind === "interface") {
|
|
15
|
+
const s = e?.declarations.find(
|
|
16
|
+
(d) => d.name === n.name && d.kind === "interface"
|
|
17
17
|
);
|
|
18
|
-
return
|
|
18
|
+
return n.members = void 0, s !== void 0;
|
|
19
19
|
}
|
|
20
20
|
return !0;
|
|
21
|
-
}),
|
|
21
|
+
}), t.declarations.length > 0;
|
|
22
22
|
})
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function x(
|
|
26
|
-
const
|
|
25
|
+
function x(r) {
|
|
26
|
+
const a = /* @__PURE__ */ new Set([
|
|
27
27
|
// Fake class turned into a variable
|
|
28
28
|
"config",
|
|
29
29
|
// Wasn't visible directly before due to doc mismatch
|
|
@@ -38,13 +38,13 @@ function x(i) {
|
|
|
38
38
|
"views/layers/PointCloudLayerView",
|
|
39
39
|
// ENUM-like objects turned into const variable + interfaces
|
|
40
40
|
"layers/support/rasterFunctionConstants"
|
|
41
|
-
]),
|
|
42
|
-
if (
|
|
41
|
+
]), o = r.modules.filter((i) => {
|
|
42
|
+
if (a.has(i.path))
|
|
43
43
|
return !1;
|
|
44
|
-
const
|
|
45
|
-
return
|
|
44
|
+
const t = i.path.startsWith("widgets/");
|
|
45
|
+
return i.declarations = i.declarations.filter((e) => t ? e.deprecated === void 0 && e.removed === void 0 ? !1 : ((e.kind === "class" || e.kind === "interface" || e.kind === "mixin") && (e.members = void 0), !0) : e.kind === "class" ? e.members === void 0 ? !0 : (e.members = e.members.filter((n) => !(n.kind === "constructor" || n.kind === "call-signature" || A.has(n.name))), e.members.length > 0) : !0), i.declarations.length > 0;
|
|
46
46
|
});
|
|
47
|
-
return { ...
|
|
47
|
+
return { ...r, modules: o };
|
|
48
48
|
}
|
|
49
49
|
const A = /* @__PURE__ */ new Set([
|
|
50
50
|
// Excluded from api.json inheritance to keep file size in check
|
|
@@ -96,44 +96,44 @@ const A = /* @__PURE__ */ new Set([
|
|
|
96
96
|
// 6
|
|
97
97
|
"loadWarnings"
|
|
98
98
|
]);
|
|
99
|
-
function
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
b(d,
|
|
99
|
+
function I(r, a) {
|
|
100
|
+
const o = w(r, a), i = o ?? a, t = r.compiler?.version.startsWith("4.") === !0 && i.compiler?.version.startsWith("4.") !== !0, e = new Map(
|
|
101
|
+
r.modules.map((d) => [
|
|
102
|
+
b(d, t),
|
|
103
103
|
d
|
|
104
104
|
])
|
|
105
|
-
),
|
|
106
|
-
for (const d of
|
|
107
|
-
const l =
|
|
108
|
-
m !== void 0 &&
|
|
105
|
+
), n = [];
|
|
106
|
+
for (const d of i.modules) {
|
|
107
|
+
const l = e.get(d.path), m = y(l, d, !0);
|
|
108
|
+
m !== void 0 && n.push(m), e.delete(d.path);
|
|
109
109
|
}
|
|
110
|
-
for (const d of
|
|
110
|
+
for (const d of e.values()) {
|
|
111
111
|
const l = y(
|
|
112
112
|
void 0,
|
|
113
|
-
|
|
113
|
+
t ? { ...d, path: b(d, t) } : d,
|
|
114
114
|
!1
|
|
115
115
|
);
|
|
116
|
-
l !== void 0 &&
|
|
116
|
+
l !== void 0 && n.push(l);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
return
|
|
118
|
+
const s = { modules: n };
|
|
119
|
+
return o === void 0 ? s : x(s);
|
|
120
120
|
}
|
|
121
|
-
function b(
|
|
122
|
-
return
|
|
121
|
+
function b(r, a) {
|
|
122
|
+
return a ? r.declarations?.[0]?.importPath ?? r.path : r.path;
|
|
123
123
|
}
|
|
124
|
-
function y(
|
|
125
|
-
const
|
|
126
|
-
for (const
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
const g = m === void 0 && !
|
|
124
|
+
function y(r, a, o) {
|
|
125
|
+
const i = [], t = h(r?.declarations ?? []), e = h(a.declarations ?? []);
|
|
126
|
+
for (const n of e.values()) {
|
|
127
|
+
const s = n.at(-1), d = s.tagName, l = d ?? s.name, m = t.get(l);
|
|
128
|
+
t.delete(l);
|
|
129
|
+
const g = m === void 0 && !o ? !0 : void 0, v = (
|
|
130
130
|
// Only mark as deprecated if all overloads are deprecated
|
|
131
|
-
|
|
132
|
-
), k = !v && m === void 0 &&
|
|
131
|
+
n.length === 1 || n.every((c) => c.deprecated !== void 0) ? s.deprecated : void 0
|
|
132
|
+
), k = !v && m === void 0 && o ? !0 : void 0;
|
|
133
133
|
if (g || k) {
|
|
134
|
-
|
|
135
|
-
kind:
|
|
136
|
-
name:
|
|
134
|
+
i.push({
|
|
135
|
+
kind: s.kind,
|
|
136
|
+
name: s.name,
|
|
137
137
|
tagName: d,
|
|
138
138
|
members: void 0,
|
|
139
139
|
removed: g,
|
|
@@ -141,10 +141,10 @@ function y(i, o, a) {
|
|
|
141
141
|
deprecated: v
|
|
142
142
|
});
|
|
143
143
|
continue;
|
|
144
|
-
} else if (!
|
|
144
|
+
} else if (!o)
|
|
145
145
|
continue;
|
|
146
146
|
if (d !== void 0) {
|
|
147
|
-
const c =
|
|
147
|
+
const c = s, u = m?.[0], f = {
|
|
148
148
|
kind: c.kind,
|
|
149
149
|
name: c.name,
|
|
150
150
|
tagName: c.tagName,
|
|
@@ -158,108 +158,103 @@ function y(i, o, a) {
|
|
|
158
158
|
cssProperties: p(u?.cssProperties, c.cssProperties),
|
|
159
159
|
cssStates: p(u?.cssStates, c.cssStates)
|
|
160
160
|
};
|
|
161
|
-
(v !== void 0 || f.members !== void 0 || f.events !== void 0 || f.slots !== void 0 || f.cssParts !== void 0 || f.cssProperties !== void 0 || f.cssStates !== void 0) &&
|
|
162
|
-
} else if (
|
|
161
|
+
(v !== void 0 || f.members !== void 0 || f.events !== void 0 || f.slots !== void 0 || f.cssParts !== void 0 || f.cssProperties !== void 0 || f.cssStates !== void 0) && i.push(f);
|
|
162
|
+
} else if (s.kind === "class" || s.kind === "interface" || s.kind === "mixin") {
|
|
163
163
|
const c = m?.[0], u = {
|
|
164
|
-
kind:
|
|
165
|
-
name:
|
|
164
|
+
kind: s.kind,
|
|
165
|
+
name: s.name,
|
|
166
166
|
deprecated: v,
|
|
167
167
|
added: void 0,
|
|
168
168
|
removed: void 0,
|
|
169
|
-
members: M(c?.members,
|
|
170
|
-
events: "events" in
|
|
169
|
+
members: M(c?.members, s.members),
|
|
170
|
+
events: "events" in s ? p(c?.events, s.events) : void 0
|
|
171
171
|
};
|
|
172
|
-
(v !== void 0 || u.members !== void 0 || u.events !== void 0) &&
|
|
173
|
-
} else v !== void 0 &&
|
|
174
|
-
kind:
|
|
175
|
-
name:
|
|
172
|
+
(v !== void 0 || u.members !== void 0 || u.events !== void 0) && i.push(u);
|
|
173
|
+
} else v !== void 0 && i.push({
|
|
174
|
+
kind: s.kind,
|
|
175
|
+
name: s.name,
|
|
176
176
|
deprecated: v,
|
|
177
177
|
added: void 0,
|
|
178
178
|
removed: void 0
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
if (
|
|
182
|
-
for (const [
|
|
183
|
-
|
|
184
|
-
kind:
|
|
185
|
-
name:
|
|
186
|
-
tagName:
|
|
181
|
+
if (o)
|
|
182
|
+
for (const [n] of t.values())
|
|
183
|
+
i.push({
|
|
184
|
+
kind: n.kind,
|
|
185
|
+
name: n.name,
|
|
186
|
+
tagName: n.tagName,
|
|
187
187
|
members: void 0,
|
|
188
188
|
removed: !0,
|
|
189
189
|
added: void 0,
|
|
190
|
-
deprecated:
|
|
190
|
+
deprecated: n.deprecated
|
|
191
191
|
});
|
|
192
|
-
if (
|
|
192
|
+
if (i.length !== 0)
|
|
193
193
|
return {
|
|
194
|
-
path:
|
|
195
|
-
declarations:
|
|
194
|
+
path: a.path,
|
|
195
|
+
declarations: i
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function h(
|
|
199
|
-
const
|
|
200
|
-
for (let
|
|
201
|
-
const
|
|
202
|
-
P(
|
|
198
|
+
function h(r) {
|
|
199
|
+
const a = /* @__PURE__ */ new Map();
|
|
200
|
+
for (let o = 0; o < r.length; ++o) {
|
|
201
|
+
const i = r[o], t = i.tagName ?? i.name ?? i.kind, e = a.get(t);
|
|
202
|
+
P(i.docsTags) || (e === void 0 ? a.set(t, [i]) : e.push(i));
|
|
203
203
|
}
|
|
204
|
-
return
|
|
204
|
+
return a;
|
|
205
205
|
}
|
|
206
|
-
function P(
|
|
207
|
-
if (
|
|
208
|
-
for (let
|
|
209
|
-
if (
|
|
206
|
+
function P(r) {
|
|
207
|
+
if (r !== void 0) {
|
|
208
|
+
for (let a = 0; a < r.length; ++a)
|
|
209
|
+
if (r[a].name === "internal")
|
|
210
210
|
return !0;
|
|
211
211
|
}
|
|
212
212
|
return !1;
|
|
213
213
|
}
|
|
214
|
-
function p(
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
name: e.name,
|
|
223
|
-
deprecated: e.deprecated
|
|
224
|
-
}), a.delete(e.name);
|
|
225
|
-
for (const [e] of a.values())
|
|
226
|
-
n.push({
|
|
214
|
+
function p(r, a) {
|
|
215
|
+
const o = h(r ?? []), i = h(a ?? []), t = [];
|
|
216
|
+
for (const [e, n] of i) {
|
|
217
|
+
const s = n.at(-1), d = o.get(e)?.at(-1);
|
|
218
|
+
o.delete(e), d === void 0 ? t.push({ name: e, added: !0 }) : s.deprecated && t.push({ name: e, deprecated: s.deprecated });
|
|
219
|
+
}
|
|
220
|
+
for (const [e] of o.values())
|
|
221
|
+
t.push({
|
|
227
222
|
name: e.name,
|
|
228
223
|
removed: !0,
|
|
229
224
|
deprecated: e.deprecated
|
|
230
225
|
});
|
|
231
|
-
return
|
|
226
|
+
return t.length ? t : void 0;
|
|
232
227
|
}
|
|
233
|
-
function M(
|
|
234
|
-
const
|
|
235
|
-
for (const [
|
|
236
|
-
const
|
|
237
|
-
|
|
228
|
+
function M(r, a) {
|
|
229
|
+
const o = h(r ?? []), i = h(a ?? []), t = [];
|
|
230
|
+
for (const [e, n] of i.entries()) {
|
|
231
|
+
const s = n.at(-1), d = o.get(e);
|
|
232
|
+
o.delete(e);
|
|
238
233
|
const l = (
|
|
239
234
|
// Only mark as deprecated if all overloads are deprecated
|
|
240
|
-
|
|
241
|
-
), m =
|
|
242
|
-
l ?
|
|
243
|
-
kind:
|
|
235
|
+
n.length === 1 || n.every((g) => g.deprecated !== void 0) ? s.deprecated : void 0
|
|
236
|
+
), m = e === "constructor" || e === "call-signature" ? void 0 : e;
|
|
237
|
+
l ? t.push({
|
|
238
|
+
kind: s.kind,
|
|
244
239
|
name: m,
|
|
245
240
|
deprecated: l
|
|
246
|
-
}) : d === void 0 &&
|
|
247
|
-
kind:
|
|
241
|
+
}) : d === void 0 && t.push({
|
|
242
|
+
kind: s.kind,
|
|
248
243
|
name: m,
|
|
249
244
|
added: !0
|
|
250
245
|
});
|
|
251
246
|
}
|
|
252
|
-
for (const [
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
kind:
|
|
256
|
-
name:
|
|
247
|
+
for (const [e, [n]] of o.entries()) {
|
|
248
|
+
const s = e === "constructor" || e === "call-signature" ? void 0 : e;
|
|
249
|
+
t.push({
|
|
250
|
+
kind: n.kind,
|
|
251
|
+
name: s,
|
|
257
252
|
removed: !0,
|
|
258
|
-
deprecated:
|
|
253
|
+
deprecated: n.deprecated
|
|
259
254
|
});
|
|
260
255
|
}
|
|
261
|
-
return
|
|
256
|
+
return t.length ? t : void 0;
|
|
262
257
|
}
|
|
263
258
|
export {
|
|
264
|
-
|
|
259
|
+
I as diffApiJson
|
|
265
260
|
};
|
|
@@ -58,9 +58,12 @@ export class ApiExtractor {
|
|
|
58
58
|
run(): Promise<ApiExtractorResult>;
|
|
59
59
|
/**
|
|
60
60
|
* The high-level API for starting a watch-mode extraction on the current project.
|
|
61
|
+
*
|
|
61
62
|
* When watching, double check that the configuration options the ApiExtractor
|
|
62
63
|
* was created with are appropriate for watch mode (disable full type check
|
|
63
64
|
* and type verifier if not necessary).
|
|
65
|
+
*
|
|
66
|
+
* Use [ApiExtractorConfig](https://developers.arcgis.com/javascript/latest/references/api-extractor/extractor/config/#ApiExtractorConfig-watch) to configure the watch callback to receive a reference to the api.json each time it is re-generated.
|
|
64
67
|
*/
|
|
65
68
|
watch(): Promise<ApiExtractorWatcher>;
|
|
66
69
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "./config.js";
|
|
1
|
+
import "../config-D0cgQ7jF.js";
|
|
3
2
|
import "./processing/links.js";
|
|
4
3
|
import "typescript";
|
|
5
|
-
import { A as
|
|
4
|
+
import { A as a } from "../ApiExtractor-C2CJZrBq.js";
|
|
6
5
|
import "@arcgis/toolkit/function";
|
|
7
6
|
export {
|
|
8
|
-
|
|
7
|
+
a as ApiExtractor
|
|
9
8
|
};
|