@arcgis/api-extractor 5.2.0-next.4 → 5.2.0-next.6

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,13 +1,13 @@
1
- import { l as H, a as se, e as De, p as me } from "./typeScript-BsuvRihm.js";
2
- import { a as be, o as xe, t as Le, b as Oe, c as Ne, e as Be, p as We, d as Ue, f as _, i as pe, g as je, h as ze, j as He, k as Je, n as Ve, r as Xe } from "./worker-D-jUD6OL.js";
1
+ import { l as H, a as se, e as De, p as pe } from "./typeScript-CzxI8NsH.js";
2
+ import { a as xe, o as Pe, t as Le, b as Oe, c as Ne, e as Be, p as We, d as Ue, f as _, i as ue, g as je, h as ze, j as He, k as Je, n as Ve, r as Xe } from "./worker-BmWcv5VA.js";
3
3
  import { getViewUrl as Ye, postProcessDeprecated as Q, postProcessDescription as R, postProcessDocsTags as V, resolveJsDocLink as qe } from "./extractor/processing/links.js";
4
4
  import E from "typescript";
5
5
  import { path as N, toPosixPathSeparators as Ze } from "@arcgis/components-build-utils";
6
- import { mkdir as ae, writeFile as Pe } from "fs/promises";
6
+ import { mkdir as ae, writeFile as Ie } from "fs/promises";
7
7
  import { styleText as x } from "node:util";
8
8
  import { kebabToPascal as _e } from "@arcgis/toolkit/string";
9
- import { g as h, a as fe, b as Ke, c as Qe, d as Ie, e as oe, p as ne } from "./privateContext-CB7P40up.js";
10
- import { apiTypeToImportType as le, globalPackageIdentifier as ke, getApiMemberName as et, getMaybeStaticApiMemberName as ce, mergeApiNodes as Se, naturalSortModules as tt, compareNamedNodes as it, compareClassMembers as ot } from "./utils/apiHelpers.js";
9
+ import { g as h, a as fe, b as Ke, c as Qe, d as ke, e as oe, p as ne } from "./privateContext-CB7P40up.js";
10
+ import { apiTypeToImportType as le, globalPackageIdentifier as me, getApiMemberName as et, getMaybeStaticApiMemberName as ce, mergeApiNodes as Se, naturalSortModules as tt, compareNamedNodes as it, compareClassMembers as ot } from "./utils/apiHelpers.js";
11
11
  import { printTypeParameters as te, printTypeAlias as nt } from "./utils/partPrinter.js";
12
12
  import { identity as Ee, debounce as rt } from "@arcgis/toolkit/function";
13
13
  import { hasRuntimeDeclaration as st } from "./utils/inferEntrypoints.js";
@@ -1102,12 +1102,12 @@ function pt(e, t) {
1102
1102
  const s = e.exports?.[0]?.declaration.name, a = h(e);
1103
1103
  if (a.constructorPropertiesInterface !== void 0) {
1104
1104
  const n = a.constructorPropertiesInterface;
1105
- ye(n), A.length !== 0 && (o += ue(n, U, n.name, t));
1105
+ he(n), A.length !== 0 && (o += ye(n, U, n.name, t));
1106
1106
  }
1107
1107
  let r;
1108
1108
  for (let n = 0; n < e.declarations.length; ++n) {
1109
1109
  const l = e.declarations[n];
1110
- if (ye(l), A.length === 0)
1110
+ if (he(l), A.length === 0)
1111
1111
  continue;
1112
1112
  const c = l.name === s, d = c ? "default" : l.name, m = l.kind === "function", f = l.kind === "variable";
1113
1113
  if (m || f) {
@@ -1163,7 +1163,7 @@ ${y}export const ${O}: typeof${v}${u};
1163
1163
 
1164
1164
  `;
1165
1165
  }
1166
- } else l.kind === "interface" && (o += ue(l, U, d, t));
1166
+ } else l.kind === "interface" && (o += ye(l, U, d, t));
1167
1167
  }
1168
1168
  return q.length > 0 && (j === void 0 && t.emitError("Invalid @esriCompatibilityName usage: Namespace name was not set correctly.", {
1169
1169
  file: h(e).file,
@@ -1186,7 +1186,7 @@ ${ee} }
1186
1186
 
1187
1187
  `), o;
1188
1188
  }
1189
- function ue(e, t, i, o) {
1189
+ function ye(e, t, i, o) {
1190
1190
  const s = te(K(e.typeParameters, !1, void 0)), a = K(e.typeParameters, !1, t), r = `import("./${t}.js").${i}${s}`;
1191
1191
  let n = "";
1192
1192
  for (let l = 0; l < A.length; ++l) {
@@ -1245,7 +1245,7 @@ function K(e, t, i) {
1245
1245
  }
1246
1246
  const ie = [];
1247
1247
  let A = ie;
1248
- function ye(e) {
1248
+ function he(e) {
1249
1249
  e.kind === "variable" ? A = Ke(e).esriCompatibilityNames ?? ie : e.kind === "function" ? A = Qe(e).esriCompatibilityNames ?? ie : A = fe(e).esriCompatibilityNames ?? ie;
1250
1250
  }
1251
1251
  function Z(e, t) {
@@ -1397,7 +1397,7 @@ ${o}` : o += `import type * as ${c} from "${l}";
1397
1397
  }
1398
1398
  }
1399
1399
  function re(e, t) {
1400
- return `${be(t.dtsPath, e.dtsPath)}.js`;
1400
+ return `${xe(t.dtsPath, e.dtsPath)}.js`;
1401
1401
  }
1402
1402
  function Ct(e, t, i, o) {
1403
1403
  const s = e.references;
@@ -1416,7 +1416,7 @@ function Te(e, t, i, o, s) {
1416
1416
  for (let a = s.length - 1; a >= 0; a--) {
1417
1417
  const r = s[a];
1418
1418
  if (r.package !== void 0) {
1419
- r.package === ke && r.name === "Date" && he(
1419
+ r.package === me && r.name === "Date" && ge(
1420
1420
  e,
1421
1421
  s,
1422
1422
  a,
@@ -1447,7 +1447,7 @@ function Te(e, t, i, o, s) {
1447
1447
  }
1448
1448
  s.splice(a, 1, ...u);
1449
1449
  const v = e.text.length - f.length;
1450
- xe(s, v, a + u.length);
1450
+ Pe(s, v, a + u.length);
1451
1451
  continue;
1452
1452
  }
1453
1453
  if (c?.kind !== "class")
@@ -1463,7 +1463,7 @@ function Te(e, t, i, o, s) {
1463
1463
  );
1464
1464
  continue;
1465
1465
  }
1466
- he(
1466
+ ge(
1467
1467
  e,
1468
1468
  s,
1469
1469
  a,
@@ -1519,7 +1519,7 @@ function Mt(e, t, i, o) {
1519
1519
  return $e(c, r, r, o);
1520
1520
  }
1521
1521
  }
1522
- function he(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1522
+ function ge(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1523
1523
  let l = o.references;
1524
1524
  l.length === 2 && l[0].name === "ReadonlyArrayOrCollection" && l[1].name === "T" && (l = [l[0]], o = {
1525
1525
  ...o,
@@ -1565,7 +1565,7 @@ function he(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1565
1565
  }
1566
1566
  t.splice(i, 0, I);
1567
1567
  }
1568
- return e.text = e.text.slice(0, d.start) + c + e.text.slice(d.end), xe(
1568
+ return e.text = e.text.slice(0, d.start) + c + e.text.slice(d.end), Pe(
1569
1569
  t,
1570
1570
  m + f,
1571
1571
  i + (l?.length ?? 0)
@@ -1574,7 +1574,7 @@ function he(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1574
1574
  function Fe(e, t, i, o) {
1575
1575
  const s = h(o);
1576
1576
  if (e.package !== void 0) {
1577
- if (e.package === ke)
1577
+ if (e.package === me)
1578
1578
  return;
1579
1579
  i.emitError(
1580
1580
  `Unsupported case: cannot yet handle auto-adding imports for external packages. Tried to add ${e.name} from ${e.package} when resolving auto-casting type.`,
@@ -1598,13 +1598,13 @@ function Fe(e, t, i, o) {
1598
1598
  return;
1599
1599
  }
1600
1600
  let n = r, l;
1601
- const c = Ie(e);
1601
+ const c = ke(e);
1602
1602
  c !== void 0 && (n = c, l = r);
1603
1603
  const d = s.importsMap[n];
1604
1604
  d === void 0 ? s.importsMap[n] = {
1605
1605
  type: e.name === "default" ? "default" : "named",
1606
1606
  modulePath: t.path,
1607
- specifier: be(s.dtsPath, a.dtsPath),
1607
+ specifier: xe(s.dtsPath, a.dtsPath),
1608
1608
  replacementName: void 0,
1609
1609
  actualName: l,
1610
1610
  wasUsed: !0
@@ -1636,7 +1636,7 @@ const xt = {
1636
1636
  {
1637
1637
  name: "Date",
1638
1638
  module: void 0,
1639
- package: "global:",
1639
+ package: me,
1640
1640
  viewUrl: "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date",
1641
1641
  start: 1,
1642
1642
  end: 5
@@ -1652,12 +1652,12 @@ function Pt(e, t) {
1652
1652
  i.typeParameters = o.typeParameters;
1653
1653
  const s = o.superclass;
1654
1654
  if (s !== void 0) {
1655
- const r = ge(s, t);
1655
+ const r = ve(s, t);
1656
1656
  r !== void 0 && (i.supertypes ??= [], i.supertypes.push(r));
1657
1657
  }
1658
1658
  if (o.mixins !== void 0)
1659
1659
  for (let r = 0; r < o.mixins.length; ++r) {
1660
- const n = o.mixins[r], l = ge(n, t);
1660
+ const n = o.mixins[r], l = ve(n, t);
1661
1661
  l !== void 0 && (i.supertypes ??= [], i.supertypes.push(l));
1662
1662
  }
1663
1663
  let a = "";
@@ -1733,7 +1733,7 @@ function Pt(e, t) {
1733
1733
  i.supertypes.push(n);
1734
1734
  }
1735
1735
  }
1736
- function ge(e, t) {
1736
+ function ve(e, t) {
1737
1737
  if (e.package !== void 0)
1738
1738
  return;
1739
1739
  const i = t.moduleMap.get(e.module);
@@ -1751,7 +1751,7 @@ function ge(e, t) {
1751
1751
  }
1752
1752
  return;
1753
1753
  }
1754
- const a = Ie(e), r = {
1754
+ const a = ke(e), r = {
1755
1755
  /**
1756
1756
  * If class was renamed when imported, also rename the created Properties
1757
1757
  * interface. This avoids name collision inside of
@@ -1922,7 +1922,7 @@ function Ge(e, t, i) {
1922
1922
  }
1923
1923
  }
1924
1924
  const r = t;
1925
- let n = t.mixins, l = r.superclass, c = l === void 0 ? void 0 : Me(l, e, i);
1925
+ let n = t.mixins, l = r.superclass, c = l === void 0 ? void 0 : be(l, e, i);
1926
1926
  if (c?.supertypes !== void 0) {
1927
1927
  n = n === void 0 ? [] : [...n];
1928
1928
  do {
@@ -1931,28 +1931,28 @@ function Ge(e, t, i) {
1931
1931
  const g = c.supertypes[p], u = g.module === void 0 ? { ...g, module: l.module } : g;
1932
1932
  n.unshift(u);
1933
1933
  }
1934
- l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 : Me(l, e, i);
1934
+ l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 : be(l, e, i);
1935
1935
  } while (c?.supertypes !== void 0);
1936
1936
  }
1937
1937
  if (n !== void 0) {
1938
1938
  const m = n.length - (t.mixins?.length ?? 0);
1939
1939
  for (let f = n.length - 1; f >= 0; f--) {
1940
- const p = n[f], g = Ce(p.module ?? e.path, !0, i);
1941
- typeof g == "object" ? ve(g, t, a, i) : f >= m && (t.mixins.splice(f - m, 1), t.mixins.length === 0 && (t.mixins = void 0));
1940
+ const p = n[f], g = Me(p.module ?? e.path, !0, i);
1941
+ typeof g == "object" ? Ce(g, t, a, i) : f >= m && (t.mixins.splice(f - m, 1), t.mixins.length === 0 && (t.mixins = void 0));
1942
1942
  }
1943
1943
  }
1944
1944
  if (l?.package !== void 0)
1945
1945
  return;
1946
1946
  const d = l?.module;
1947
1947
  if (d !== void 0) {
1948
- const m = Ce(d, !1, i);
1948
+ const m = Me(d, !1, i);
1949
1949
  typeof m == "object" && (m.declaration.privacy !== void 0 && t.privacy === void 0 && i.emitError(
1950
1950
  `Public component may only subclass a public component to avoid broken inheritance. Tried to inherit from private ${m.declaration.name}. Remove @private from it but feel free to add a jsdoc description stating the base class is abstract - not for direct consumption. Lumina does bare minimum extraction work for private components, which makes them ineligible for public docs.`,
1951
1951
  { file: o.file, node: void 0 }
1952
- ), ve(m, t, a, i));
1952
+ ), Ce(m, t, a, i));
1953
1953
  }
1954
1954
  }
1955
- function ve(e, t, i, o) {
1955
+ function Ce(e, t, i, o) {
1956
1956
  const s = e.declaration, a = t;
1957
1957
  if (e.indexedMembers !== void 0) {
1958
1958
  t.members ??= [];
@@ -2020,7 +2020,7 @@ function X(e = [], t, i, o) {
2020
2020
  }
2021
2021
  return e;
2022
2022
  }
2023
- function Ce(e, t, i) {
2023
+ function Me(e, t, i) {
2024
2024
  const o = i.moduleMap.get(e), s = Et(o, e, t, i), a = o === void 0 ? void 0 : h(o);
2025
2025
  if (s === !1 || o === void 0)
2026
2026
  return a !== void 0 ? a.inheritance = de.skip : t && i.privateMixinModuleNames.add(e), de.skip;
@@ -2074,7 +2074,7 @@ function Et(e, t, i, o) {
2074
2074
  }
2075
2075
  ), !1) : [t, a];
2076
2076
  }
2077
- function Me(e, t, i) {
2077
+ function be(e, t, i) {
2078
2078
  if (e.package !== void 0)
2079
2079
  return;
2080
2080
  const o = e.module === void 0 ? t : i.moduleMap.get(e.module), s = o === void 0 ? void 0 : h(o), a = e.name === "default" ? s?.index.default : s?.index.named[e.name];
@@ -2313,7 +2313,7 @@ export interface ArcgisImportModules {
2313
2313
  }
2314
2314
  if (e.context.apiJsonEmitPath !== "") {
2315
2315
  const n = N.resolve(e.context.cwd, e.context.apiJsonEmitPath), l = N.join(N.relative(process.cwd(), N.dirname(n)), "/");
2316
- await ae(N.dirname(n), { recursive: !0 }), await Pe(
2316
+ await ae(N.dirname(n), { recursive: !0 }), await Ie(
2317
2317
  n,
2318
2318
  e.context.environment === "production" ? JSON.stringify(a) : JSON.stringify(a, null, 2)
2319
2319
  ), e.context.logger.info(
@@ -2344,7 +2344,7 @@ async function Lt(e, t, i) {
2344
2344
  if (d.length === 0)
2345
2345
  continue;
2346
2346
  const m = n + c;
2347
- r[l] = Pe(m, d);
2347
+ r[l] = Ie(m, d);
2348
2348
  }
2349
2349
  await Promise.all(r);
2350
2350
  }
@@ -2500,7 +2500,7 @@ const Ot = async function() {
2500
2500
  let w = !1;
2501
2501
  for (let $ = 0; $ < T.length; ++$) {
2502
2502
  const G = T[$];
2503
- if (!pe(G.fileName, this))
2503
+ if (!ue(G.fileName, this))
2504
2504
  continue;
2505
2505
  const z = G.fileName.slice(e.context.cwd.length), J = this.watchFiles.get(z);
2506
2506
  J === void 0 ? (n(z, G, void 0), w = !0) : J.file !== G ? (s(J, z, G), w = !0) : J.wasRemoved = !1;
@@ -2567,7 +2567,7 @@ const Ot = async function() {
2567
2567
  if (I !== void 0 && // If changed, check if it is an included file
2568
2568
  // For a rename, we don't know if it is directory or a file - only check
2569
2569
  // if directory is included, and the file will be checked later.
2570
- (P ? pe(this.basePath + I, this) : ze(this.basePath + I, this))) {
2570
+ (P ? ue(this.basePath + I, this) : ze(this.basePath + I, this))) {
2571
2571
  const L = e.context.basePath + I, F = (i.get(L) ?? !0) && P;
2572
2572
  i.set(L, F);
2573
2573
  }
@@ -2682,8 +2682,8 @@ class ei {
2682
2682
  compiler: {
2683
2683
  // Preserve previous compiler.name for component projects as that is what
2684
2684
  // pre 5.0 Lumina versions expect.
2685
- name: this.isComponentProject ? "@arcgis/lumina-compiler" : me.name,
2686
- version: me.version,
2685
+ name: this.isComponentProject ? "@arcgis/lumina-compiler" : pe.name,
2686
+ version: pe.version,
2687
2687
  typescriptVersion: E.version
2688
2688
  },
2689
2689
  // https://github.com/webcomponents/custom-elements-manifest?tab=readme-ov-file#schema-versioning
@@ -1,8 +1,8 @@
1
- import "../typeScript-BsuvRihm.js";
2
- import "../worker-D-jUD6OL.js";
1
+ import "../typeScript-CzxI8NsH.js";
2
+ import "../worker-BmWcv5VA.js";
3
3
  import "./processing/links.js";
4
4
  import "typescript";
5
- import { A as x } from "../ApiExtractor-Dgo6jr2j.js";
5
+ import { A as x } from "../ApiExtractor-Czsu8T1F.js";
6
6
  import "@arcgis/toolkit/function";
7
7
  export {
8
8
  x as ApiExtractor
@@ -1,6 +1,6 @@
1
1
  import "@arcgis/components-build-utils";
2
- import "../typeScript-BsuvRihm.js";
3
- import { l, m as n, r as A } from "../worker-D-jUD6OL.js";
2
+ import "../typeScript-CzxI8NsH.js";
3
+ import { l, m as n, r as A } from "../worker-BmWcv5VA.js";
4
4
  import "./processing/links.js";
5
5
  import "typescript";
6
6
  import "fs/promises";
@@ -1,4 +1,4 @@
1
- import type { ApiClassDeclaration, ApiClassMethod, ApiCustomElementDeclaration, ApiCustomElementField, ApiEvent, ApiFunctionDeclaration, ApiInterfaceDeclaration, ApiModule, ApiVariableDeclaration } from "../../apiJson.js";
1
+ import type { ApiClassDeclaration, ApiClassMethod, ApiCustomElementDeclaration, ApiCustomElementField, ApiEvent, ApiFunctionDeclaration, ApiInterfaceDeclaration, ApiModule, ApiVariableDeclaration, ApiWithDeprecated, ApiWithDescription, ApiWithDocsTags } from "../../apiJson.js";
2
2
 
3
3
  /** [Documentation](https://webgis.esri.com/references/api-extractor/tags-reference#copydoc)) */
4
4
  export interface CopyDocDefinitions {
@@ -18,8 +18,14 @@ export interface CopyDocDefinitions {
18
18
  interfaces?: CopyDocDeclarations<ApiInterfaceDeclaration>;
19
19
  }
20
20
 
21
- export type CopiableFields = "deprecated" | "description" | "docsTags" | "readonly" | "return";
21
+ /**
22
+ * A common shape for metadata that can be included in declarative copy doc.
23
+ * Extra fields can be specified by imperatively mutating the API declaration.
24
+ */
25
+ export interface CopyDocCommonBase extends Partial<ApiWithDescription>, Partial<ApiWithDocsTags>, Partial<ApiWithDeprecated> {
26
+ return?: ApiWithDescription;
27
+ }
22
28
 
23
- export type CopyDocDeclarations<ApiType extends Partial<Record<CopiableFields, unknown>>> = Record<string, Partial<Pick<ApiType, CopiableFields>> | ((apiDeclaration: ApiType, module: ApiModule) => Partial<Pick<ApiType, CopiableFields>>) | undefined>;
29
+ export type CopyDocDeclarations<ApiType extends Partial<CopyDocCommonBase>> = Record<string, Pick<CopyDocCommonBase, keyof ApiType & keyof CopyDocCommonBase> | ((apiDeclaration: ApiType, module: ApiModule) => Pick<CopyDocCommonBase, keyof ApiType & keyof CopyDocCommonBase>) | undefined>;
24
30
 
25
- export type CopyDocMemberDeclarations<ApiType extends Partial<Record<CopiableFields, unknown>>> = Record<string, Partial<Pick<ApiType, CopiableFields>> | ((apiDeclaration: ApiType, classOrComponent: ApiClassDeclaration | ApiCustomElementDeclaration, module: ApiModule) => Partial<Pick<ApiType, CopiableFields>>) | undefined>;
31
+ export type CopyDocMemberDeclarations<ApiType extends Partial<CopyDocCommonBase>> = Record<string, Pick<CopyDocCommonBase, keyof ApiType & keyof CopyDocCommonBase> | ((apiDeclaration: ApiType, classOrComponent: ApiClassDeclaration | ApiCustomElementDeclaration, module: ApiModule) => Pick<CopyDocCommonBase, keyof ApiType & keyof CopyDocCommonBase> | undefined) | undefined>;
@@ -1,7 +1,7 @@
1
1
  import { findPath as E, path as u, toSystemPathSeparators as S } from "@arcgis/components-build-utils";
2
2
  import t from "typescript";
3
3
  import { styleText as f } from "util";
4
- const w = "@arcgis/api-extractor", P = "5.2.0-next.4", D = {
4
+ const w = "@arcgis/api-extractor", P = "5.2.0-next.6", D = {
5
5
  name: w,
6
6
  version: P
7
7
  };
@@ -30,7 +30,7 @@ function x(e, n, o) {
30
30
  }
31
31
  const l = new Intl.Collator("en", { numeric: !0 }).compare, S = (e, n) => l(e.name, n.name), M = (e, n) => e.static !== void 0 && n.static === void 0 ? -1 : n.static !== void 0 && e.static === void 0 ? 1 : e.name === void 0 ? n.name === void 0 ? 0 : -1 : n.name === void 0 || "return" in e && !("return" in n) ? 1 : "return" in n && !("return" in e) ? -1 : l(e.name, n.name), d = (e) => e.name ?? (e.kind === "constructor" ? "constructor" : "call-signature"), P = (e) => e.static === !0 ? `static ${d(e)}` : d(e), T = (e) => ("bubbles" in e ? "@" : "") + (e.tagName ?? e.name ?? (e.kind === "constructor" ? "constructor" : "")) + ("return" in e ? "()" : "");
32
32
  function k(e, n, o = -1) {
33
- "description" in n && (n.description ??= e.description), "deprecated" in n && (n.deprecated ??= e.deprecated), "return" in n && e.return !== void 0 && (n.return.description ??= e.return?.description), "readonly" in n && (n.readonly ??= e.readonly);
33
+ "description" in n && (n.description ??= e.description), "deprecated" in n && (n.deprecated ??= e.deprecated), "return" in n && e.return !== void 0 && (n.return.description ??= e.return?.description);
34
34
  const { docsTags: i } = e, t = n;
35
35
  if (o !== -1 && (i === void 0 && t.docsTags.length === 1 ? t.docsTags = void 0 : t.docsTags.splice(o, 1)), i !== void 0) {
36
36
  t.docsTags ??= [];
@@ -43,7 +43,7 @@ function k(e, n, o = -1) {
43
43
  }
44
44
  }
45
45
  }
46
- function y(e, n) {
46
+ function A(e, n) {
47
47
  let o = e.text;
48
48
  if (e.references !== void 0)
49
49
  for (let i = e.references.length - 1; i >= 0; i--) {
@@ -59,11 +59,11 @@ function y(e, n) {
59
59
  references: void 0
60
60
  };
61
61
  }
62
- function A(e) {
62
+ function N(e) {
63
63
  return e.return.type.text.startsWith("Promise<");
64
64
  }
65
65
  export {
66
- y as apiTypeToImportType,
66
+ A as apiTypeToImportType,
67
67
  M as compareClassMembers,
68
68
  S as compareNamedNodes,
69
69
  l as compareStrings,
@@ -73,7 +73,7 @@ export {
73
73
  P as getMaybeStaticApiMemberName,
74
74
  p as globalPackageIdentifier,
75
75
  g as isApiMethod,
76
- A as isApiMethodAsync,
76
+ N as isApiMethodAsync,
77
77
  v as isApiProperty,
78
78
  k as mergeApiNodes,
79
79
  h as naturalSortModules
@@ -1,3 +1,4 @@
1
+ import { globalPackageIdentifier as h } from "./apiHelpers.js";
1
2
  const d = {
2
3
  // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
3
4
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -13,50 +14,50 @@ const d = {
13
14
  never: "https://www.typescriptlang.org/docs/handbook/2/functions.html#never",
14
15
  any: "https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any",
15
16
  this: "#"
16
- }, h = Object.keys(d).join("|"), g = new RegExp(`(?<!["'-])\\b(?:${h})\\b(?!["'-])`, "u");
17
- function p(e, c) {
18
- const n = [];
19
- let o = e.text.length;
17
+ }, g = Object.keys(d).join("|"), p = new RegExp(`(?<!["'-])\\b(?:${g})\\b(?!["'-])`, "u");
18
+ function v(e, l) {
19
+ const o = [];
20
+ let n = e.text.length;
20
21
  if (e.references !== void 0)
21
- for (let l = e.references.length - 1; l >= 0; l--) {
22
- const t = e.references[l];
22
+ for (let c = e.references.length - 1; c >= 0; c--) {
23
+ const t = e.references[c];
23
24
  if (t.start === void 0 || t.end === void 0)
24
25
  continue;
25
- const r = e.text.slice(t.end, o);
26
- r.length > 0 && i(r, c, n);
26
+ const r = e.text.slice(t.end, n);
27
+ r.length > 0 && i(r, l, o);
27
28
  const s = e.text.slice(t.start, t.end);
28
- o = t.start, t.viewUrl === void 0 ? n.push(s) : n.push(
29
- c(s, t)
29
+ n = t.start, t.viewUrl === void 0 ? o.push(s) : o.push(
30
+ l(s, t)
30
31
  );
31
32
  }
32
- if (o > 0) {
33
- const l = e.text.slice(0, o);
34
- i(l, c, n);
33
+ if (n > 0) {
34
+ const c = e.text.slice(0, n);
35
+ i(c, l, o);
35
36
  }
36
- return n.reverse();
37
+ return o.reverse();
37
38
  }
38
- function i(e, c, n) {
39
- const o = n.length;
40
- for (let l = 0; l < e.length; ) {
41
- const t = e.match(g);
39
+ function i(e, l, o) {
40
+ const n = o.length;
41
+ for (let c = 0; c < e.length; ) {
42
+ const t = e.match(p);
42
43
  if (t?.index === void 0)
43
44
  break;
44
45
  const r = e.slice(0, t.index);
45
- r.length > 0 && n.splice(o, 0, r);
46
+ r.length > 0 && o.splice(n, 0, r);
46
47
  const s = t[0];
47
48
  e = e.slice(t.index + s.length);
48
- const a = d[s], b = c(s, {
49
+ const a = d[s], b = l(s, {
49
50
  name: s,
50
51
  module: void 0,
51
- package: s === "this" ? void 0 : "global:",
52
+ package: s === "this" ? void 0 : h,
52
53
  viewUrl: a,
53
54
  start: void 0,
54
55
  end: void 0
55
56
  });
56
- n.splice(o, 0, b);
57
+ o.splice(n, 0, b);
57
58
  }
58
- e.length > 0 && n.splice(o, 0, e);
59
+ e.length > 0 && o.splice(n, 0, e);
59
60
  }
60
61
  export {
61
- p as hydrateApiType
62
+ v as hydrateApiType
62
63
  };
@@ -1,6 +1,6 @@
1
- import { l as O, m as J } from "../worker-D-jUD6OL.js";
2
- import { A as S, w as T } from "../ApiExtractor-Dgo6jr2j.js";
3
- import { p as A, l as C } from "../typeScript-BsuvRihm.js";
1
+ import { l as O, m as J } from "../worker-BmWcv5VA.js";
2
+ import { A as S, w as T } from "../ApiExtractor-Czsu8T1F.js";
3
+ import { p as A, l as C } from "../typeScript-CzxI8NsH.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;
@@ -1,6 +1,6 @@
1
1
  import "@arcgis/components-build-utils";
2
2
  import "typescript";
3
- import { b as t } from "../typeScript-BsuvRihm.js";
3
+ import { b as t } from "../typeScript-CzxI8NsH.js";
4
4
  export {
5
5
  t as loadTypeScriptConfig
6
6
  };