@arcgis/api-extractor 5.0.0-next.136 → 5.0.0-next.138
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/ApiExtractor-DXDxS3Cb.js +2644 -0
- package/dist/apiJson.d.ts +706 -760
- package/dist/cli.js +26 -2
- package/dist/compilerHints.d.ts +62 -0
- package/dist/diff/diffApiJson.d.ts +6 -3
- package/dist/diff/diffApiJson.js +142 -0
- package/dist/diff/fetchApiJsonFromNpm.d.ts +5 -2
- package/dist/diff/fetchApiJsonFromNpm.js +9 -0
- package/dist/diff/types.d.ts +70 -56
- package/dist/diffTypes/index.d.ts +20 -23
- package/dist/diffTypes/index.js +4 -2
- package/dist/extractor/ApiExtractor.d.ts +72 -137
- package/dist/extractor/ApiExtractor.js +9 -0
- package/dist/extractor/config.d.ts +425 -39
- package/dist/extractor/config.js +17 -0
- package/dist/extractor/extractors/copyDoc.d.ts +25 -0
- package/dist/extractor/privateContext.d.ts +19 -0
- package/dist/extractor/privateContext.js +84 -0
- package/dist/extractor/processing/links.d.ts +12 -0
- package/dist/extractor/processing/links.js +177 -0
- package/dist/extractor/types.d.ts +40 -0
- package/dist/extractor/webComponent/findComponents.d.ts +19 -0
- package/dist/extractor/webComponent/findComponents.js +36 -0
- package/dist/extractor/webComponent/pathMapping.d.ts +11 -0
- package/dist/extractor/webComponent/pathMapping.js +44 -0
- package/dist/index.d.ts +164 -12
- package/dist/index.js +3 -841
- package/dist/typeScript-9f8GK91w.js +64 -0
- package/dist/uiUtils/index.d.ts +10 -19
- package/dist/uiUtils/index.js +3 -55
- package/dist/utils/apiHelpers.d.ts +28 -61
- package/dist/utils/apiHelpers.js +80 -0
- package/dist/utils/astHelpers.d.ts +22 -21
- package/dist/utils/astHelpers.js +67 -0
- package/dist/utils/hydrateApiType.d.ts +26 -0
- package/dist/utils/hydrateApiType.js +62 -0
- package/dist/utils/inferEntrypoints.d.ts +17 -0
- package/dist/utils/inferEntrypoints.js +26 -0
- package/dist/utils/internalTypeScriptApis.d.ts +92 -0
- package/dist/utils/internalTypeScriptApis.js +58 -0
- package/dist/utils/partPrinter.d.ts +25 -19
- package/dist/utils/partPrinter.js +82 -0
- package/dist/vite/plugin.d.ts +53 -0
- package/dist/vite/plugin.js +107 -0
- package/dist/vite/typeScript.d.ts +16 -0
- package/dist/vite/typeScript.js +6 -0
- package/dist/worker-DuJtWFW5.js +3599 -0
- package/package.json +40 -9
- package/dist/cli.d.ts +0 -2
- package/dist/config/typeReferences/docLinkAdditions.d.ts +0 -51
- package/dist/config/typeReferences/globals.d.ts +0 -11
- package/dist/config/typeReferences/stringDocLinkAdditions.d.ts +0 -17
- package/dist/config/typeReferences/typeScriptGlobals.json.d.ts +0 -3
- package/dist/diff/index.d.ts +0 -3
- package/dist/diff/index.js +0 -149
- package/dist/ensureCemCompatibility.d.ts +0 -1
- package/dist/internalTypeScriptApis.d.ts +0 -31
- package/dist/types.d.ts +0 -22
- package/dist/utils/error.d.ts +0 -17
- package/dist/utils/jsDocHelpers.d.ts +0 -2
- package/dist/utils/jsDocParser.d.ts +0 -46
- package/dist/utils/jsDocPrinter.d.ts +0 -13
- package/dist/utils/print.d.ts +0 -6
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { default as ts } from 'typescript';
|
|
2
|
-
import { ApiCustomElementDeclaration, ApiCustomElementField } from '../apiJson.ts';
|
|
3
|
-
import { NodeDoc } from '../types.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Find node's JSDoc comment and parse it into a NodeDoc
|
|
6
|
-
*
|
|
7
|
-
* @param node AST node that has leading JSDoc comment
|
|
8
|
-
* @param sourceFile Source file that contains the `node`
|
|
9
|
-
* @param ensureIsPublic If true (default), will return undefined if JSDoc does
|
|
10
|
-
* not contain a `@public` tag. In such cases, `@public` is not included in
|
|
11
|
-
* `NodeDoc` as it is assumed.
|
|
12
|
-
* @privateRemarks
|
|
13
|
-
* FINAL: adopt in Lumina
|
|
14
|
-
*/
|
|
15
|
-
export declare function getNodeDoc(node: ts.Node, sourceFile: ts.SourceFile,
|
|
16
|
-
/** @default true */
|
|
17
|
-
ensureIsPublic?: boolean): NodeDoc | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* TypeScript parses too much around \@param, \@property and \@deprecated tags
|
|
20
|
-
* It also parses out inline tags. We have to put them back together
|
|
21
|
-
* (overhead and complexity). Plus, it is a bit too tolerant - we want
|
|
22
|
-
* to disallow some ambiguous behavior to improve consistency.
|
|
23
|
-
* And TypeScript incorrectly parses decorators as tags when used inside code
|
|
24
|
-
* snippets.
|
|
25
|
-
*
|
|
26
|
-
* Given all of the above, we implement a tiny, but strict JSDoc parser
|
|
27
|
-
*
|
|
28
|
-
* @param jsDocText JSDoc string that starts with /** and ends with *\/
|
|
29
|
-
* @param sourceFile Used for error reporting
|
|
30
|
-
* @param ensureIsPublic If true, will return undefined if JSDoc does not contain a \@public tag
|
|
31
|
-
*/
|
|
32
|
-
declare function parseJsDoc(jsDocText: string, sourceFile: ts.SourceFile, ensureIsPublic?: false): NodeDoc;
|
|
33
|
-
declare function parseJsDoc(jsDocText: string, sourceFile: ts.SourceFile, ensureIsPublic: boolean): NodeDoc | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated migrate to getNodeDoc
|
|
36
|
-
*/
|
|
37
|
-
export declare function symbolToDocs(checker: ts.TypeChecker, symbol: ts.Signature | ts.Symbol): NodeDoc;
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated migrate to getNodeDoc
|
|
40
|
-
*/
|
|
41
|
-
export declare function setApiDocFromSymbol(node: ts.PropertyName, checker: ts.TypeChecker, api: Partial<Pick<ApiCustomElementDeclaration, "cssParts" | "cssProperties" | "cssStates" | "slots"> & Pick<ApiCustomElementField, "default" | "deprecated" | "description" | "docsTags" | "privacy" | "readonly">>): void;
|
|
42
|
-
export declare function setApiDocFromJsDoc(api: Partial<Pick<ApiCustomElementDeclaration, "cssParts" | "cssProperties" | "cssStates" | "slots"> & Pick<ApiCustomElementField, "default" | "deprecated" | "description" | "docsTags" | "privacy" | "readonly">>, docs: ReturnType<typeof symbolToDocs>): void;
|
|
43
|
-
export declare const exportsForTests: {
|
|
44
|
-
parseJsDoc: typeof parseJsDoc;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as ts } from 'typescript';
|
|
2
|
-
import { ApiEvent, ApiCustomElementMember, ApiDeclaration, ApiModule, ApiClassMember } from '../apiJson.ts';
|
|
3
|
-
import { NodeDoc } from '../types.ts';
|
|
4
|
-
export declare function apiMemberToNodeDoc(apiMember: ApiClassMember | ApiCustomElementMember | ApiDeclaration | ApiEvent | ApiModule): NodeDoc | undefined;
|
|
5
|
-
export declare function nodeDocToSynthesizedComment(nodeDoc: NodeDoc | undefined): ts.SynthesizedComment[];
|
|
6
|
-
/**
|
|
7
|
-
* Omitting leading /* and trailing *\/ as those will be inserted by TypeScript.
|
|
8
|
-
*
|
|
9
|
-
* @privateRemarks
|
|
10
|
-
* This function is in the hot path - called for every API item. To reduce memory
|
|
11
|
-
* churn, we avoid creating intermediate arrays inside.
|
|
12
|
-
*/
|
|
13
|
-
export declare function nodeDocToString(nodeDoc: NodeDoc): string;
|
package/dist/utils/print.d.ts
DELETED