@arcgis/api-extractor 5.0.0-next.65 → 5.0.0-next.68
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/config/typeReferences/docLinkAdditions.d.ts +1 -0
- package/dist/config/typeReferences/stringDocLinkAdditions.d.ts +2 -0
- package/dist/config/typeReferences/typeScriptGlobals.json.d.ts +1 -1
- package/dist/diff/diffApiJson.d.ts +2 -2
- package/dist/diff/fetchApiJsonFromNpm.d.ts +1 -1
- package/dist/diff/index.d.ts +3 -3
- package/dist/diff/types.d.ts +1 -1
- package/dist/extractor/ApiExtractor.d.ts +4 -3
- package/dist/index.d.ts +12 -12
- package/dist/index.js +229 -207
- package/dist/types.d.ts +1 -1
- package/dist/uiUtils/index.d.ts +1 -1
- package/dist/uiUtils/index.js +18 -16
- package/dist/utils/apiHelpers.d.ts +1 -1
- package/dist/utils/astHelpers.d.ts +1 -1
- package/dist/utils/jsDocParser.d.ts +2 -2
- package/dist/utils/jsDocPrinter.d.ts +2 -2
- package/dist/utils/partPrinter.d.ts +1 -1
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCustomElementDeclaration, ApiClassMethod, ApiEvent, ApiClassDeclaration, ApiFunctionDeclaration, ApiModule, ApiVariableDeclaration, ApiInterfaceDeclaration, ApiDocsTag, ApiCustomElementField, ApiWithDescription } from './apiJson';
|
|
1
|
+
import { ApiCustomElementDeclaration, ApiClassMethod, ApiEvent, ApiClassDeclaration, ApiFunctionDeclaration, ApiModule, ApiVariableDeclaration, ApiInterfaceDeclaration, ApiDocsTag, ApiCustomElementField, ApiWithDescription } from './apiJson.ts';
|
|
2
2
|
export interface NodeDoc extends ApiWithDescription {
|
|
3
3
|
docsTags: ApiDocsTag[];
|
|
4
4
|
}
|
package/dist/uiUtils/index.d.ts
CHANGED
package/dist/uiUtils/index.js
CHANGED
|
@@ -7,9 +7,11 @@ const d = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
|
7
7
|
object: "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
|
8
8
|
void: "https://www.typescriptlang.org/docs/handbook/2/functions.html#void",
|
|
9
9
|
unknown: "https://www.typescriptlang.org/docs/handbook/2/functions.html#unknown",
|
|
10
|
-
never: "https://www.typescriptlang.org/docs/handbook/2/functions.html#never"
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
never: "https://www.typescriptlang.org/docs/handbook/2/functions.html#never",
|
|
11
|
+
any: "https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any",
|
|
12
|
+
this: "#"
|
|
13
|
+
}), h = Object.keys(d).join("|"), g = new RegExp(`\\b(?:${h})\\b`, "u");
|
|
14
|
+
function p(e, l) {
|
|
13
15
|
const n = [];
|
|
14
16
|
let o = e.text.length;
|
|
15
17
|
if (e.references !== void 0)
|
|
@@ -18,32 +20,32 @@ function h(e, s) {
|
|
|
18
20
|
if (t.start === void 0 || t.end === void 0)
|
|
19
21
|
continue;
|
|
20
22
|
const r = e.text.slice(t.end, o);
|
|
21
|
-
r.length > 0 && i(r,
|
|
22
|
-
const
|
|
23
|
-
o = t.start, t.viewUrl === void 0 ? n.push(
|
|
24
|
-
s
|
|
23
|
+
r.length > 0 && i(r, l, n);
|
|
24
|
+
const s = e.text.slice(t.start, t.end);
|
|
25
|
+
o = t.start, t.viewUrl === void 0 ? n.push(s) : n.push(
|
|
26
|
+
l(s, t)
|
|
25
27
|
);
|
|
26
28
|
}
|
|
27
29
|
if (o > 0) {
|
|
28
30
|
const c = e.text.slice(0, o);
|
|
29
|
-
i(c,
|
|
31
|
+
i(c, l, n);
|
|
30
32
|
}
|
|
31
33
|
return n.reverse();
|
|
32
34
|
}
|
|
33
|
-
function i(e,
|
|
35
|
+
function i(e, l, n) {
|
|
34
36
|
const o = n.length;
|
|
35
37
|
for (let c = 0; c < e.length; ) {
|
|
36
|
-
const t = e.match(
|
|
38
|
+
const t = e.match(g);
|
|
37
39
|
if (t?.index === void 0)
|
|
38
40
|
break;
|
|
39
41
|
const r = e.slice(0, t.index);
|
|
40
42
|
r.length > 0 && n.splice(o, 0, r);
|
|
41
|
-
const
|
|
42
|
-
e = e.slice(t.index +
|
|
43
|
-
const a = d[
|
|
44
|
-
name:
|
|
43
|
+
const s = t[0];
|
|
44
|
+
e = e.slice(t.index + s.length);
|
|
45
|
+
const a = d[s], b = l(s, {
|
|
46
|
+
name: s,
|
|
45
47
|
module: void 0,
|
|
46
|
-
package: "global:",
|
|
48
|
+
package: s === "this" ? void 0 : "global:",
|
|
47
49
|
viewUrl: a
|
|
48
50
|
});
|
|
49
51
|
n.splice(o, 0, b);
|
|
@@ -51,5 +53,5 @@ function i(e, s, n) {
|
|
|
51
53
|
e.length > 0 && n.splice(o, 0, e);
|
|
52
54
|
}
|
|
53
55
|
export {
|
|
54
|
-
|
|
56
|
+
p as hydrateApiType
|
|
55
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as ts } from 'typescript';
|
|
2
|
-
import { ApiAttribute, ApiClassDeclaration, ApiClassMember, ApiClassMethod, ApiCssCustomProperty, ApiCssCustomState, ApiCssPart, ApiCustomElementDeclaration, ApiCustomElementField, ApiCustomElementMember, ApiDeclaration, ApiEvent, ApiFunctionDeclaration, ApiInterfaceDeclaration, ApiModule, ApiSlot, ApiTypeReference, ApiVariableDeclaration } from '../apiJson';
|
|
2
|
+
import { ApiAttribute, ApiClassDeclaration, ApiClassMember, ApiClassMethod, ApiCssCustomProperty, ApiCssCustomState, ApiCssPart, ApiCustomElementDeclaration, ApiCustomElementField, ApiCustomElementMember, ApiDeclaration, ApiEvent, ApiFunctionDeclaration, ApiInterfaceDeclaration, ApiModule, ApiSlot, ApiTypeReference, ApiVariableDeclaration } from '../apiJson.ts';
|
|
3
3
|
export declare const isApiMethod: (member: ApiClassMember) => member is ApiClassMethod;
|
|
4
4
|
export declare const isApiProperty: (member: ApiClassMember) => member is ApiCustomElementField;
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ts } from 'typescript';
|
|
2
|
-
import { ApiCustomElementDeclaration, ApiCustomElementField } from '../apiJson';
|
|
3
|
-
import { NodeDoc } from '../types';
|
|
2
|
+
import { ApiCustomElementDeclaration, ApiCustomElementField } from '../apiJson.ts';
|
|
3
|
+
import { NodeDoc } from '../types.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Find node's JSDoc comment and parse it into a NodeDoc
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ts } from 'typescript';
|
|
2
|
-
import { ApiEvent, ApiCustomElementMember, ApiDeclaration, ApiModule, ApiClassMember } from '../apiJson';
|
|
3
|
-
import { NodeDoc } from '../types';
|
|
2
|
+
import { ApiEvent, ApiCustomElementMember, ApiDeclaration, ApiModule, ApiClassMember } from '../apiJson.ts';
|
|
3
|
+
import { NodeDoc } from '../types.ts';
|
|
4
4
|
export declare function apiMemberToNodeDoc(apiMember: ApiClassMember | ApiCustomElementMember | ApiDeclaration | ApiEvent | ApiModule): NodeDoc | undefined;
|
|
5
5
|
export declare function nodeDocToSynthesizedComment(nodeDoc: NodeDoc | undefined): ts.SynthesizedComment[];
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiFunctionLike, ApiParameter, ApiTypeParameter } from '../apiJson';
|
|
1
|
+
import { ApiFunctionLike, ApiParameter, ApiTypeParameter } from '../apiJson.ts';
|
|
2
2
|
export declare function printClass(isAbstract: boolean,
|
|
3
3
|
/**
|
|
4
4
|
* For consistency and to simplify the docs messaging, everything that appears
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/api-extractor",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"bin": "./dist/cli.js",
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/components-build-utils": "5.0.0-next.
|
|
22
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
21
|
+
"@arcgis/components-build-utils": "5.0.0-next.68",
|
|
22
|
+
"@arcgis/toolkit": "5.0.0-next.68",
|
|
23
23
|
"@commander-js/extra-typings": "^14.0.0",
|
|
24
24
|
"chalk": "^5.4.1",
|
|
25
25
|
"commander": "^14.0.0",
|