@arcgis/api-extractor 5.1.0-next.9 → 5.1.0-next.91

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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@arcgis/api-extractor",
3
- "version": "5.1.0-next.9",
3
+ "version": "5.1.0-next.91",
4
+ "description": "Documentation engine for WebGIS SDK packages",
4
5
  "type": "module",
5
6
  "main": "dist/index.cjs",
6
7
  "module": "dist/index.js",
@@ -46,19 +47,18 @@
46
47
  "files": [
47
48
  "dist/"
48
49
  ],
49
- "bin": "./dist/cli.js",
50
+ "bin": "./bin/cli.js",
50
51
  "license": "SEE LICENSE IN LICENSE.md",
51
52
  "dependencies": {
52
53
  "@commander-js/extra-typings": "^14.0.0",
53
- "chalk": "^5.4.1",
54
54
  "commander": "^14.0.0",
55
55
  "tslib": "^2.8.1",
56
- "@arcgis/toolkit": "5.1.0-next.9",
57
- "@arcgis/components-build-utils": "5.1.0-next.9"
56
+ "@arcgis/components-build-utils": "5.1.0-next.91",
57
+ "@arcgis/toolkit": "5.1.0-next.91"
58
58
  },
59
59
  "peerDependencies": {
60
- "typescript": "~5.9.3",
61
- "vite": "^7.2.2"
60
+ "typescript": "~6.0.2",
61
+ "vite": "^7.3.2"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "vite": {
@@ -1,161 +0,0 @@
1
- const c = Symbol("privateContext");
2
- function m(e, o, i, n) {
3
- return {
4
- isStale: !0,
5
- file: e,
6
- dtsPath: o,
7
- importsMap: i,
8
- importsText: void 0,
9
- constructorPropertiesInterface: void 0,
10
- constructorOnlySetters: void 0,
11
- constructorAutoCastType: void 0,
12
- typeName: void 0,
13
- inheritance: void 0,
14
- index: n,
15
- reExports: void 0,
16
- namespaces: void 0
17
- };
18
- }
19
- function x() {
20
- return {
21
- hasExplicitAbstract: void 0,
22
- isDefaultExported: void 0,
23
- superClassText: void 0,
24
- superTypesText: void 0,
25
- eventTypesProperty: void 0,
26
- isMixinBaseClass: void 0,
27
- emitAsTypeAlias: void 0,
28
- esriCompatibilityNames: void 0
29
- };
30
- }
31
- function g() {
32
- return {
33
- isAbstract: void 0,
34
- isAccessor: void 0,
35
- hasAutoCasting: void 0,
36
- autoCastingRequiresType: void 0,
37
- autoCastingDefaultType: void 0,
38
- isConstructorOnly: void 0,
39
- isOverride: void 0,
40
- dtsTypeOverride: void 0
41
- };
42
- }
43
- function y() {
44
- return {
45
- isAbstract: void 0,
46
- isDefaultExported: void 0,
47
- hasQuestionToken: void 0,
48
- esriCompatibilityNames: void 0
49
- };
50
- }
51
- function C() {
52
- return {
53
- isDefaultExported: void 0,
54
- esriCompatibilityNames: void 0
55
- };
56
- }
57
- function v(e) {
58
- return e[c];
59
- }
60
- function h(e) {
61
- return e[c];
62
- }
63
- function T(e) {
64
- return e[c];
65
- }
66
- function b(e) {
67
- return e[c];
68
- }
69
- function A(e) {
70
- return e[c];
71
- }
72
- const k = (e) => e.kind === "method", S = (e) => e.kind === "field";
73
- function P(e, o) {
74
- const i = e.sourcePath, n = o.sourcePath;
75
- let t = 0;
76
- for (; ; ) {
77
- const a = i.indexOf("/", t), s = n.indexOf("/", t);
78
- if (a === -1)
79
- return s === -1 ? i.slice(t) < n.slice(t) ? -1 : 1 : -1;
80
- if (s === -1)
81
- return 1;
82
- {
83
- const r = i.slice(t, a), d = n.slice(t, s);
84
- if (r !== d)
85
- return r < d ? -1 : 1;
86
- t = a + 1;
87
- }
88
- }
89
- }
90
- const f = "global:";
91
- function M(e, o, i) {
92
- const n = v(i.apiModule).file, t = n.text.indexOf(o) ?? -1;
93
- i.emitError(`${e}${t === -1 ? `. Found in: ${o}` : ""}`, {
94
- file: n,
95
- node: void 0,
96
- scope: n === void 0 ? i.apiModule.sourcePath : void 0,
97
- start: t,
98
- length: o.length
99
- });
100
- }
101
- const l = new Intl.Collator("en", { numeric: !0 }).compare, N = (e, o) => l(e.name, o.name), O = (e, o) => e.static !== void 0 && o.static === void 0 ? -1 : o.static !== void 0 && e.static === void 0 ? 1 : e.name === void 0 ? o.name === void 0 ? 0 : -1 : o.name === void 0 || "return" in e && !("return" in o) ? 1 : "return" in o && !("return" in e) ? -1 : l(e.name, o.name), u = (e) => e.name ?? (e.kind === "constructor" ? "constructor" : "call-signature"), D = (e) => e.static === !0 ? `static ${u(e)}` : u(e), $ = (e) => ("bubbles" in e ? "@" : "") + (e.tagName ?? e.name ?? (e.kind === "constructor" ? "constructor" : "")) + ("return" in e ? "()" : "");
102
- function E(e, o, i = -1) {
103
- "description" in o && (o.description ??= e.description), "deprecated" in o && (o.deprecated ??= e.deprecated), "return" in o && e.return !== void 0 && (o.return.description ??= e.return?.description), "readonly" in o && (o.readonly ??= e.readonly);
104
- const { docsTags: n } = e, t = o;
105
- if (i !== -1 && (n === void 0 && t.docsTags.length === 1 ? t.docsTags = void 0 : t.docsTags.splice(i, 1)), n !== void 0) {
106
- t.docsTags ??= [];
107
- const a = /* @__PURE__ */ new Set();
108
- for (let s = 0; s < t.docsTags.length; ++s)
109
- a.add(t.docsTags[s].name);
110
- for (let s = 0; s < n.length; ++s) {
111
- const r = n[s];
112
- a.has(r.name) && r.name !== "example" && r.name !== "see" || t.docsTags.push(r);
113
- }
114
- }
115
- }
116
- function I(e, o) {
117
- let i = e.text;
118
- if (e.references !== void 0)
119
- for (let n = e.references.length - 1; n >= 0; n--) {
120
- const t = e.references[n];
121
- if (t.package === f || t.module === void 0 && t.package === void 0 && t.viewUrl === void 0)
122
- continue;
123
- const r = t.name === "default" ? "default" : t.name, p = `import("${t.package === void 0 ? `./${t.module ?? o}.js` : t.package + (t.module === void 0 ? "" : `/${t.module}`)}").${r}`;
124
- i = i.slice(0, t.start) + p + i.slice(t.end);
125
- }
126
- return {
127
- ...e,
128
- text: i,
129
- references: void 0
130
- };
131
- }
132
- function w(e) {
133
- return e.return.type.text.startsWith("Promise<");
134
- }
135
- export {
136
- h as a,
137
- A as b,
138
- b as c,
139
- I as d,
140
- f as e,
141
- T as f,
142
- v as g,
143
- u as h,
144
- D as i,
145
- N as j,
146
- O as k,
147
- y as l,
148
- E as m,
149
- P as n,
150
- m as o,
151
- c as p,
152
- w as q,
153
- g as r,
154
- x as s,
155
- C as t,
156
- M as u,
157
- $ as v,
158
- k as w,
159
- S as x,
160
- l as y
161
- };
@@ -1,64 +0,0 @@
1
- import { findPath as v, path as C, toSystemPathSeparators as y } from "@arcgis/components-build-utils";
2
- import t from "typescript";
3
- import E, { supportsColorStderr as S } from "chalk";
4
- import { styleText as w } from "util";
5
- const P = "@arcgis/api-extractor", D = "5.1.0-next.9", N = {
6
- name: P,
7
- version: D
8
- };
9
- let u;
10
- function A(o) {
11
- return u ??= t.createPrinter(), u.printNode(t.EmitHint.Unspecified, o, void 0);
12
- }
13
- function F(o, r) {
14
- return o.pos !== -1 && o.end !== -1 && r !== void 0 ? o.getText(r) : A(o);
15
- }
16
- const p = N.name, g = {
17
- getCurrentDirectory: process.cwd,
18
- getCanonicalFileName: (o) => o,
19
- getNewLine: () => t.sys.newLine
20
- }, W = function(o, { file: r, node: n, scope: s, start: i, length: c }) {
21
- this.errorCount += 1, process.exitCode = 1, i ??= n === void 0 || n.pos === -1 ? -1 : n.getStart(r, !1);
22
- const a = n?.end ?? -1;
23
- c ??= a === -1 ? -1 : Math.max(1, a - i);
24
- const e = i >= 0 && c >= 0, d = !e && s !== void 0, f = {
25
- category: t.DiagnosticCategory.Error,
26
- code: e ? p : x,
27
- file: d ? void 0 : r,
28
- start: e ? i : 0,
29
- length: e ? c : 0,
30
- messageText: (d ? `${E.cyan(s)}: ` : "") + o + (e || n === void 0 ? "" : `
31
-
32
- ${F(n, r)}`)
33
- }, l = t.formatDiagnosticsWithColorAndContext([f], g), m = S ? l : l.replaceAll($, ""), h = e ? m : m.replace(x.toString(), p);
34
- this.config.context.logger.error(h);
35
- }, x = 1490, $ = /\x1B\[[0-9;]*m/gu, J = w("cyan", `[${p}] `);
36
- function U(o = process.cwd(), r, n) {
37
- const s = r === void 0 ? v("tsconfig.json", o) : C.resolve(o, r);
38
- if (s === void 0)
39
- throw Error(
40
- `Unable to find ${y(String(r))}. Please make sure the file exists, or provide types.tsconfigPath option to useLumina()`
41
- );
42
- const i = t.readConfigFile(s, t.sys.readFile);
43
- if (i.error !== void 0)
44
- throw Error(t.formatDiagnosticsWithColorAndContext([i.error], g));
45
- const c = i.config, a = n ? c : {
46
- ...c,
47
- include: [],
48
- files: [],
49
- exclude: []
50
- }, e = t.parseJsonConfigFileContent(a, t.sys, C.dirname(s)), d = 18002, f = n ? e.errors : e.errors.filter((l) => l.code !== d);
51
- if (f.length > 0)
52
- throw Error(t.formatDiagnosticsWithColorAndContext(f, g));
53
- return {
54
- configPath: s,
55
- config: e
56
- };
57
- }
58
- export {
59
- g as a,
60
- U as b,
61
- W as e,
62
- J as l,
63
- N as p
64
- };