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

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,5 +1,5 @@
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 me } from "./typeScript-C9dgub7w.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-Cxfdi8N7.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";
@@ -1,8 +1,8 @@
1
- import "../typeScript-BsuvRihm.js";
2
- import "../worker-D-jUD6OL.js";
1
+ import "../typeScript-C9dgub7w.js";
2
+ import "../worker-Cxfdi8N7.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-BtYLt7dP.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-C9dgub7w.js";
3
+ import { l, m as n, r as A } from "../worker-Cxfdi8N7.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.5", 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,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-Cxfdi8N7.js";
2
+ import { A as S, w as T } from "../ApiExtractor-BtYLt7dP.js";
3
+ import { p as A, l as C } from "../typeScript-C9dgub7w.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-C9dgub7w.js";
4
4
  export {
5
5
  t as loadTypeScriptConfig
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { path as $e, existsAsync as Zt, getCwd as Ri, retrievePackageJson as dt, toPosixPathSeparators as Li } from "@arcgis/components-build-utils";
2
- import { b as Ii, p as Ai, l as ki } from "./typeScript-BsuvRihm.js";
2
+ import { b as Ii, p as Ai, l as ki } from "./typeScript-C9dgub7w.js";
3
3
  import { getDefaultBasePath as ei, buildViewUrl as Gi, getViewUrl as Ve } from "./extractor/processing/links.js";
4
4
  import o from "typescript";
5
5
  import "fs/promises";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/api-extractor",
3
- "version": "5.2.0-next.4",
3
+ "version": "5.2.0-next.5",
4
4
  "description": "Documentation engine for WebGIS SDK packages",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,8 +53,8 @@
53
53
  "@commander-js/extra-typings": "^14.0.0",
54
54
  "commander": "^14.0.0",
55
55
  "tslib": "^2.8.1",
56
- "@arcgis/components-build-utils": "5.2.0-next.4",
57
- "@arcgis/toolkit": "5.2.0-next.4"
56
+ "@arcgis/components-build-utils": "5.2.0-next.5",
57
+ "@arcgis/toolkit": "5.2.0-next.5"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "typescript": "~6.0.2",