@arcgis/api-extractor 5.1.0-next.4 → 5.1.0-next.41

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.
@@ -1,142 +1,265 @@
1
- function M(r, a) {
2
- const n = new Map(r.modules.map((e) => [e.path, e])), t = [];
3
- for (const e of a.modules) {
4
- const s = n.get(e.path), i = k(s, e, !0);
5
- i !== void 0 && t.push(i), n.delete(e.path);
1
+ function w(i, o) {
2
+ if (i.compiler?.name !== "@arcgis/core:manual" || i.compiler?.version !== "4.34")
3
+ return;
4
+ const a = {};
5
+ return i.modules.forEach((e) => {
6
+ a[e.path] = e;
7
+ }), {
8
+ ...o,
9
+ modules: o.modules.filter((e) => {
10
+ const t = a[e.path];
11
+ return e.declarations = e.declarations.filter((s) => {
12
+ if (s.kind === "mixin")
13
+ return !1;
14
+ if (s.kind === "interface") {
15
+ const r = t?.declarations.find(
16
+ (d) => d.name === s.name && d.kind === "interface"
17
+ );
18
+ return s.members = void 0, r !== void 0;
19
+ }
20
+ return !0;
21
+ }), e.declarations.length > 0;
22
+ })
23
+ };
24
+ }
25
+ function x(i) {
26
+ const o = /* @__PURE__ */ new Set([
27
+ // Fake class turned into a variable
28
+ "config",
29
+ // Wasn't visible directly before due to doc mismatch
30
+ "identity/IdentityManagerBase",
31
+ // Fake class turned into a variable
32
+ "identity/IdentityManager",
33
+ // Fake class turned into an interface
34
+ "views/layers/GeoRSSLayerView",
35
+ "views/layers/GraphicsLayerView",
36
+ "views/layers/KMLLayerView",
37
+ "views/layers/VectorTileLayerView",
38
+ "views/layers/PointCloudLayerView",
39
+ // ENUM-like objects turned into const variable + interfaces
40
+ "layers/support/rasterFunctionConstants"
41
+ ]), a = i.modules.filter((n) => {
42
+ if (o.has(n.path))
43
+ return !1;
44
+ const e = n.path.startsWith("widgets/");
45
+ return n.declarations = n.declarations.filter((t) => e ? t.deprecated === void 0 && t.removed === void 0 ? !1 : ((t.kind === "class" || t.kind === "interface" || t.kind === "mixin") && (t.members = void 0), !0) : t.kind === "class" ? t.members === void 0 ? !0 : (t.members = t.members.filter((s) => !(s.kind === "constructor" || s.kind === "call-signature" || A.has(s.name))), t.members.length > 0) : !0), n.declarations.length > 0;
46
+ });
47
+ return { ...i, modules: a };
48
+ }
49
+ const A = /* @__PURE__ */ new Set([
50
+ // Excluded from api.json inheritance to keep file size in check
51
+ "addHandles",
52
+ "hasHandles",
53
+ "removeHandles",
54
+ // These are coming from mixins. Exclude them from the diff to reduce noise
55
+ // compared to more valuable new 5.0 fields.
56
+ // Added 77 times
57
+ "emit",
58
+ // 77
59
+ "hasEventListener",
60
+ // 73
61
+ "fromJSON",
62
+ // 72
63
+ "on",
64
+ // 71
65
+ "toJSON",
66
+ // 63
67
+ "declaredClass",
68
+ // 63
69
+ "getAtOrigin",
70
+ // 63
71
+ "originOf",
72
+ // 63
73
+ "revertAllToOrigin",
74
+ // 63
75
+ "revertToOrigin",
76
+ // 54
77
+ "clone",
78
+ // 50
79
+ "fromPortalItem",
80
+ // 49
81
+ "fromArcGISServerUrl",
82
+ // 28
83
+ "isFulfilled",
84
+ // 28
85
+ "isRejected",
86
+ // 28
87
+ "isResolved",
88
+ // 28
89
+ "when",
90
+ // 6
91
+ "cancelLoad",
92
+ // 6
93
+ "loadError",
94
+ // 6
95
+ "loadStatus",
96
+ // 6
97
+ "loadWarnings"
98
+ ]);
99
+ function N(i, o) {
100
+ const a = w(i, o), n = a ?? o, e = i.compiler?.version.startsWith("4.") === !0 && n.compiler?.version.startsWith("4.") !== !0, t = new Map(
101
+ i.modules.map((d) => [
102
+ b(d, e),
103
+ d
104
+ ])
105
+ ), s = [];
106
+ for (const d of n.modules) {
107
+ const l = t.get(d.path), m = y(l, d, !0);
108
+ m !== void 0 && s.push(m), t.delete(d.path);
6
109
  }
7
- for (const e of n.values()) {
8
- const s = k(void 0, e, !1);
9
- s !== void 0 && t.push(s);
110
+ for (const d of t.values()) {
111
+ const l = y(
112
+ void 0,
113
+ e ? { ...d, path: b(d, e) } : d,
114
+ !1
115
+ );
116
+ l !== void 0 && s.push(l);
10
117
  }
11
- return { modules: t };
118
+ const r = { modules: s };
119
+ return a === void 0 ? r : x(r);
120
+ }
121
+ function b(i, o) {
122
+ return o ? i.declarations?.[0]?.importPath ?? i.path : i.path;
12
123
  }
13
- function k(r, a, n) {
14
- const t = [], e = h(r?.declarations ?? []), s = h(a.declarations ?? []);
15
- for (const i of s.values()) {
16
- const o = i.at(-1), p = o.tagName, u = p ?? o.name, f = e.get(u);
17
- e.delete(u);
18
- const g = f === void 0 && !n ? !0 : void 0, m = n && // Only mark as deprecated if all overloads are deprecated
19
- (i.length === 1 || i.every((d) => d.deprecated !== void 0)) ? o.deprecated : void 0, D = !m && f === void 0 && n ? !0 : void 0;
20
- if (g || D) {
21
- t.push({
22
- kind: o.kind,
23
- name: o.name,
24
- tagName: p,
124
+ function y(i, o, a) {
125
+ const n = [], e = h(i?.declarations ?? []), t = h(o.declarations ?? []);
126
+ for (const s of t.values()) {
127
+ const r = s.at(-1), d = r.tagName, l = d ?? r.name, m = e.get(l);
128
+ e.delete(l);
129
+ const g = m === void 0 && !a ? !0 : void 0, v = (
130
+ // Only mark as deprecated if all overloads are deprecated
131
+ s.length === 1 || s.every((c) => c.deprecated !== void 0) ? r.deprecated : void 0
132
+ ), k = !v && m === void 0 && a ? !0 : void 0;
133
+ if (g || k) {
134
+ n.push({
135
+ kind: r.kind,
136
+ name: r.name,
137
+ tagName: d,
25
138
  members: void 0,
26
139
  removed: g,
27
- added: D,
28
- deprecated: m
140
+ added: k,
141
+ deprecated: v
29
142
  });
30
143
  continue;
31
- } else if (!n)
144
+ } else if (!a)
32
145
  continue;
33
- if (p !== void 0) {
34
- const d = o, c = f?.[0], l = {
35
- kind: d.kind,
36
- name: d.name,
37
- tagName: d.tagName,
38
- deprecated: m,
146
+ if (d !== void 0) {
147
+ const c = r, u = m?.[0], f = {
148
+ kind: c.kind,
149
+ name: c.name,
150
+ tagName: c.tagName,
151
+ deprecated: v,
39
152
  added: void 0,
40
153
  removed: void 0,
41
- members: b(c?.members, d.members),
42
- events: v(c?.events, d.events),
43
- slots: v(c?.slots, d.slots),
44
- cssParts: v(c?.cssParts, d.cssParts),
45
- cssProperties: v(c?.cssProperties, d.cssProperties),
46
- cssStates: v(c?.cssStates, d.cssStates)
154
+ members: M(u?.members, c.members),
155
+ events: p(u?.events, c.events),
156
+ slots: p(u?.slots, c.slots),
157
+ cssParts: p(u?.cssParts, c.cssParts),
158
+ cssProperties: p(u?.cssProperties, c.cssProperties),
159
+ cssStates: p(u?.cssStates, c.cssStates)
47
160
  };
48
- (m !== void 0 || l.members !== void 0 || l.events !== void 0 || l.slots !== void 0 || l.cssParts !== void 0 || l.cssProperties !== void 0 || l.cssStates !== void 0) && t.push(l);
49
- } else if (o.kind === "class" || o.kind === "interface" || o.kind === "mixin") {
50
- const d = f?.[0], c = {
51
- kind: o.kind,
52
- name: o.name,
53
- deprecated: m,
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) && n.push(f);
162
+ } else if (r.kind === "class" || r.kind === "interface" || r.kind === "mixin") {
163
+ const c = m?.[0], u = {
164
+ kind: r.kind,
165
+ name: r.name,
166
+ deprecated: v,
54
167
  added: void 0,
55
168
  removed: void 0,
56
- members: b(d?.members, o.members),
57
- events: "events" in o ? v(d?.events, o.events) : void 0
169
+ members: M(c?.members, r.members),
170
+ events: "events" in r ? p(c?.events, r.events) : void 0
58
171
  };
59
- (m !== void 0 || c.members !== void 0 || c.events !== void 0) && t.push(c);
60
- } else m !== void 0 && t.push({
61
- kind: o.kind,
62
- name: o.name,
63
- deprecated: m,
172
+ (v !== void 0 || u.members !== void 0 || u.events !== void 0) && n.push(u);
173
+ } else v !== void 0 && n.push({
174
+ kind: r.kind,
175
+ name: r.name,
176
+ deprecated: v,
64
177
  added: void 0,
65
178
  removed: void 0
66
179
  });
67
180
  }
68
- if (n)
69
- for (const [i] of e.values())
70
- t.push({
71
- kind: i.kind,
72
- name: i.name,
73
- tagName: i.tagName,
181
+ if (a)
182
+ for (const [s] of e.values())
183
+ n.push({
184
+ kind: s.kind,
185
+ name: s.name,
186
+ tagName: s.tagName,
74
187
  members: void 0,
75
188
  removed: !0,
76
189
  added: void 0,
77
- deprecated: void 0
190
+ deprecated: s.deprecated
78
191
  });
79
- if (t.length !== 0)
192
+ if (n.length !== 0)
80
193
  return {
81
- path: a.path,
82
- declarations: t
194
+ path: o.path,
195
+ declarations: n
83
196
  };
84
197
  }
85
- function h(r) {
86
- const a = /* @__PURE__ */ new Map();
87
- for (let n = 0; n < r.length; ++n) {
88
- const t = r[n], e = t.tagName ?? t.name ?? t.kind, s = a.get(e);
89
- s === void 0 ? a.set(e, [t]) : s.push(t);
198
+ function h(i) {
199
+ const o = /* @__PURE__ */ new Map();
200
+ for (let a = 0; a < i.length; ++a) {
201
+ const n = i[a], e = n.tagName ?? n.name ?? n.kind, t = o.get(e);
202
+ P(n.docsTags) || (t === void 0 ? o.set(e, [n]) : t.push(n));
203
+ }
204
+ return o;
205
+ }
206
+ function P(i) {
207
+ if (i !== void 0) {
208
+ for (let o = 0; o < i.length; ++o)
209
+ if (i[o].name === "internal")
210
+ return !0;
90
211
  }
91
- return a;
212
+ return !1;
92
213
  }
93
- function v(r, a) {
94
- const n = h(r ?? []), t = [];
95
- if (a !== void 0)
96
- for (const e of a)
97
- n.get(e.name) === void 0 ? t.push({
214
+ function p(i, o) {
215
+ const a = h(i ?? []), n = [];
216
+ if (o !== void 0)
217
+ for (const e of o)
218
+ a.get(e.name) === void 0 ? n.push({
98
219
  name: e.name,
99
220
  added: !0
100
- }) : e.deprecated && t.push({
221
+ }) : e.deprecated && n.push({
101
222
  name: e.name,
102
223
  deprecated: e.deprecated
103
- }), n.delete(e.name);
104
- for (const [e] of n.values())
105
- t.push({
224
+ }), a.delete(e.name);
225
+ for (const [e] of a.values())
226
+ n.push({
106
227
  name: e.name,
107
- removed: !0
228
+ removed: !0,
229
+ deprecated: e.deprecated
108
230
  });
109
- return t.length ? t : void 0;
231
+ return n.length ? n : void 0;
110
232
  }
111
- function b(r, a) {
112
- const n = h(r ?? []), t = h(a ?? []), e = [];
113
- for (const [s, i] of t.entries()) {
114
- const o = i.at(-1), p = n.get(s);
115
- n.delete(s);
116
- const u = (
233
+ function M(i, o) {
234
+ const a = h(i ?? []), n = h(o ?? []), e = [];
235
+ for (const [t, s] of n.entries()) {
236
+ const r = s.at(-1), d = a.get(t);
237
+ a.delete(t);
238
+ const l = (
117
239
  // Only mark as deprecated if all overloads are deprecated
118
- i.length === 1 || i.every((g) => g.deprecated !== void 0) ? o.deprecated : void 0
119
- ), f = s === "constructor" || s === "call-signature" ? void 0 : s;
120
- u ? e.push({
121
- kind: o.kind,
122
- name: f,
123
- deprecated: u
124
- }) : p === void 0 && e.push({
125
- kind: o.kind,
126
- name: f,
240
+ s.length === 1 || s.every((g) => g.deprecated !== void 0) ? r.deprecated : void 0
241
+ ), m = t === "constructor" || t === "call-signature" ? void 0 : t;
242
+ l ? e.push({
243
+ kind: r.kind,
244
+ name: m,
245
+ deprecated: l
246
+ }) : d === void 0 && e.push({
247
+ kind: r.kind,
248
+ name: m,
127
249
  added: !0
128
250
  });
129
251
  }
130
- for (const [s, [i]] of n.entries()) {
131
- const o = s === "constructor" || s === "call-signature" ? void 0 : s;
252
+ for (const [t, [s]] of a.entries()) {
253
+ const r = t === "constructor" || t === "call-signature" ? void 0 : t;
132
254
  e.push({
133
- kind: i.kind,
134
- name: o,
135
- removed: !0
255
+ kind: s.kind,
256
+ name: r,
257
+ removed: !0,
258
+ deprecated: s.deprecated
136
259
  });
137
260
  }
138
261
  return e.length ? e : void 0;
139
262
  }
140
263
  export {
141
- M as diffApiJson
264
+ N as diffApiJson
142
265
  };
@@ -26,8 +26,9 @@ export interface ApiDiffBase {
26
26
  */
27
27
  added?: true;
28
28
  /**
29
- * Whether this declaration is deprecated in the new api.json, regardless of
30
- * whether it was deprecated in the old api.json.
29
+ * Whether this declaration is deprecated in the new api.json. If declaration
30
+ * was removed, but was deprecated in the old api.json, this will show the old
31
+ * deprecation message as it points at the replacement API.
31
32
  * If the value is a string, it's the reason for the deprecation.
32
33
  * Deprecated takes precedence over added.
33
34
  *
@@ -1,8 +1,8 @@
1
- import "../typeScript-9o44f0Xi.js";
2
- import "../worker-CioRtC8r.js";
1
+ import "../typeScript-jQ0g_5Lb.js";
2
+ import "../worker-BNCgmrRe.js";
3
3
  import "./processing/links.js";
4
4
  import "typescript";
5
- import { A as x } from "../ApiExtractor-D5Q4mIBe.js";
5
+ import { A as x } from "../ApiExtractor-DNB-koEY.js";
6
6
  import "@arcgis/toolkit/function";
7
7
  export {
8
8
  x as ApiExtractor
@@ -186,7 +186,7 @@ export interface ApiExtractorTypesConfig {
186
186
  * anyway, this option deduplicates work by removing the need for you to run
187
187
  * type checking separately.
188
188
  *
189
- * @default // false if running standalone. true if running in Vite.
189
+ * @default // false if running standalone or in storybook. true if running in Vite.
190
190
  */
191
191
  readonly fullTypeCheck?: boolean;
192
192
  /**
@@ -1,13 +1,13 @@
1
1
  import "@arcgis/components-build-utils";
2
- import "../typeScript-9o44f0Xi.js";
3
- import { l as n, m as A, r as C } from "../worker-CioRtC8r.js";
2
+ import "../typeScript-jQ0g_5Lb.js";
3
+ import { l as n, m as A, r as C } from "../worker-BNCgmrRe.js";
4
4
  import "./processing/links.js";
5
5
  import "typescript";
6
6
  import "fs/promises";
7
7
  import "chalk";
8
8
  import "util";
9
9
  import "@arcgis/toolkit/string";
10
- import "../apiHelpers-BYzO767m.js";
10
+ import "../apiHelpers-DWMIGwi4.js";
11
11
  import "@arcgis/toolkit/function";
12
12
  import "node:fs";
13
13
  import "node:url";
@@ -1,5 +1,5 @@
1
1
  import C from "chalk";
2
- import { u as a, g as P, v as w } from "../../apiHelpers-BYzO767m.js";
2
+ import { u as a, g as P, v as w } from "../../apiHelpers-DWMIGwi4.js";
3
3
  import { kebabToPascal as I } from "@arcgis/toolkit/string";
4
4
  function R(e, n) {
5
5
  if (typeof e == "string") {
@@ -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.4", N = {
5
+ const P = "@arcgis/api-extractor", D = "5.1.0-next.41", N = {
6
6
  name: P,
7
7
  version: D
8
8
  };
@@ -1,4 +1,4 @@
1
- import { d as s, k as r, j as o, y as i, u as p, h as t, v as m, i as d, e as A, w as c, q as g, x as M, m as b, n as l } from "../apiHelpers-BYzO767m.js";
1
+ import { d as s, k as r, j as o, w as i, u as p, h as t, v as m, i as d, e as A, x as c, q as g, y as M, m as b, n as l } from "../apiHelpers-DWMIGwi4.js";
2
2
  export {
3
3
  s as apiTypeToImportType,
4
4
  r as compareClassMembers,
@@ -7,7 +7,7 @@ export interface IndexedModule {
7
7
  readonly apiModule: ApiModule;
8
8
  readonly classLike?: ApiClassDeclaration | ApiCustomElementDeclaration | ApiMixinDeclaration;
9
9
  /**
10
- * Mixins and superclasses ancestors. Sorted from most immediate to furthest
10
+ * Superclasses ancestors. Sorted from most immediate to furthest
11
11
  * ancestor.
12
12
  *
13
13
  * The type reference may refer to a local module or an external package.
@@ -1,82 +1,83 @@
1
- function y(s) {
2
- const t = g(s.modules);
3
- return k(t), t;
1
+ function y(t) {
2
+ const o = g(t.modules);
3
+ return k(o), o;
4
4
  }
5
- function g(s) {
6
- const t = /* @__PURE__ */ new Map();
7
- for (let o = 0; o < s.length; ++o) {
8
- const n = s[o];
5
+ function g(t) {
6
+ const o = /* @__PURE__ */ new Map();
7
+ for (let s = 0; s < t.length; ++s) {
8
+ const n = t[s];
9
9
  let i;
10
10
  for (let a = 0; a < n.declarations.length; ++a) {
11
- const r = n.declarations[a];
12
- if (r.kind === "class" || r.kind === "mixin") {
13
- i = r;
11
+ const e = n.declarations[a];
12
+ if (e.kind === "class" || e.kind === "mixin") {
13
+ i = e;
14
14
  break;
15
15
  }
16
16
  }
17
- t.set(n.path, {
17
+ o.set(n.path, {
18
18
  apiModule: n,
19
19
  classLike: i,
20
20
  ancestors: void 0,
21
21
  children: void 0
22
22
  });
23
23
  }
24
- return t;
24
+ return o;
25
25
  }
26
- function k(s) {
27
- for (const t of s.values())
28
- p(t, s);
26
+ function k(t) {
27
+ for (const o of t.values())
28
+ p(o, t);
29
29
  }
30
- function p(s, t) {
31
- const o = s.classLike;
32
- if (o === void 0)
30
+ function p(t, o) {
31
+ const s = t.classLike;
32
+ if (s === void 0)
33
33
  return;
34
- const n = o;
35
- if (!(s.ancestors !== void 0 || o.mixins === void 0 && n.superclass === void 0)) {
36
- if (s.ancestors ??= [], o.mixins !== void 0)
37
- for (let a = o.mixins.length - 1; a >= 0; --a)
38
- v(o.mixins[a], s, t);
39
- n.superclass !== void 0 && h(n.superclass, s, t);
34
+ const n = s;
35
+ if (!(t.ancestors !== void 0 || s.mixins === void 0 && n.superclass === void 0)) {
36
+ if (t.ancestors ??= [], s.mixins !== void 0)
37
+ for (let a = s.mixins.length - 1; a >= 0; --a)
38
+ f(s.mixins[a], t, o);
39
+ n.superclass !== void 0 && v(n.superclass, t, o);
40
40
  }
41
41
  }
42
- function v(s, t, o) {
43
- if (s.module !== void 0 && s.package === void 0) {
44
- const n = o.get(s.module);
45
- p(n, o), n.children ??= [], n.children.push(t);
42
+ function f(t, o, s) {
43
+ if (t.module !== void 0 && t.package === void 0) {
44
+ const n = s.get(t.module);
45
+ if (n === void 0)
46
+ return;
47
+ p(n, s), n.children ??= [], n.children.push(o);
46
48
  }
47
- t.ancestors.push(s);
48
49
  }
49
- function h(s, t, o) {
50
- if (!(s.module !== void 0 && s.package === void 0)) {
51
- t.ancestors.push(s);
50
+ function v(t, o, s) {
51
+ if (!(t.module !== void 0 && t.package === void 0)) {
52
+ o.ancestors.push(t);
52
53
  return;
53
54
  }
54
- const i = o.get(s.module);
55
- p(i, o), i.children ??= [], i.children.push(t);
55
+ const i = s.get(t.module);
56
+ p(i, s), i.children ??= [], i.children.push(o);
56
57
  const a = i.classLike;
57
- if (a.kind === "mixin" && a.name !== s.name && s.name !== "default") {
58
+ if (a.kind === "mixin" && a.name !== t.name && t.name !== "default") {
58
59
  const u = i.apiModule.declarations;
59
- for (let e = 0; e < u.length; ++e) {
60
- const f = u[e];
61
- if (f.name === s.name) {
62
- const l = f;
60
+ for (let r = 0; r < u.length; ++r) {
61
+ const d = u[r];
62
+ if (d.name === t.name) {
63
+ const l = d;
63
64
  for (let m = l.supertypes.length - 1; m >= 1; --m) {
64
- const c = l.supertypes[m], d = c.module === void 0 && c.package === void 0 ? {
65
+ const c = l.supertypes[m], h = c.module === void 0 && c.package === void 0 ? {
65
66
  name: c.name,
66
- module: s.module,
67
+ module: t.module,
67
68
  package: void 0,
68
69
  viewUrl: c.viewUrl,
69
70
  typeArguments: c.typeArguments
70
71
  } : c;
71
- v(d, t, o);
72
+ f(h, o, s);
72
73
  }
73
- h(l.supertypes[0], t, o);
74
+ v(l.supertypes[0], o, s);
74
75
  break;
75
76
  }
76
77
  }
77
78
  } else
78
- t.ancestors.push(s);
79
- i.ancestors !== void 0 && t.ancestors.push(...i.ancestors);
79
+ o.ancestors.push(t);
80
+ i.ancestors !== void 0 && o.ancestors.push(...i.ancestors);
80
81
  }
81
82
  export {
82
83
  y as createIndex