@arcgis/api-extractor 5.0.0-next.135 → 5.0.0-next.137

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.
Files changed (63) hide show
  1. package/dist/ApiExtractor-BwOcUvPV.js +2644 -0
  2. package/dist/apiJson.d.ts +706 -760
  3. package/dist/cli.js +26 -2
  4. package/dist/compilerHints.d.ts +62 -0
  5. package/dist/diff/diffApiJson.d.ts +6 -3
  6. package/dist/diff/diffApiJson.js +142 -0
  7. package/dist/diff/fetchApiJsonFromNpm.d.ts +5 -2
  8. package/dist/diff/fetchApiJsonFromNpm.js +9 -0
  9. package/dist/diff/types.d.ts +70 -56
  10. package/dist/diffTypes/index.d.ts +20 -23
  11. package/dist/diffTypes/index.js +4 -2
  12. package/dist/extractor/ApiExtractor.d.ts +72 -137
  13. package/dist/extractor/ApiExtractor.js +9 -0
  14. package/dist/extractor/config.d.ts +425 -39
  15. package/dist/extractor/config.js +17 -0
  16. package/dist/extractor/extractors/copyDoc.d.ts +25 -0
  17. package/dist/extractor/privateContext.d.ts +19 -0
  18. package/dist/extractor/privateContext.js +84 -0
  19. package/dist/extractor/processing/links.d.ts +12 -0
  20. package/dist/extractor/processing/links.js +177 -0
  21. package/dist/extractor/types.d.ts +40 -0
  22. package/dist/extractor/webComponent/findComponents.d.ts +19 -0
  23. package/dist/extractor/webComponent/findComponents.js +36 -0
  24. package/dist/extractor/webComponent/pathMapping.d.ts +11 -0
  25. package/dist/extractor/webComponent/pathMapping.js +44 -0
  26. package/dist/index.d.ts +164 -12
  27. package/dist/index.js +3 -841
  28. package/dist/typeScript-CzUTFiYO.js +64 -0
  29. package/dist/uiUtils/index.d.ts +10 -19
  30. package/dist/uiUtils/index.js +3 -55
  31. package/dist/utils/apiHelpers.d.ts +28 -61
  32. package/dist/utils/apiHelpers.js +80 -0
  33. package/dist/utils/astHelpers.d.ts +22 -21
  34. package/dist/utils/astHelpers.js +67 -0
  35. package/dist/utils/hydrateApiType.d.ts +26 -0
  36. package/dist/utils/hydrateApiType.js +62 -0
  37. package/dist/utils/inferEntrypoints.d.ts +17 -0
  38. package/dist/utils/inferEntrypoints.js +26 -0
  39. package/dist/utils/internalTypeScriptApis.d.ts +92 -0
  40. package/dist/utils/internalTypeScriptApis.js +58 -0
  41. package/dist/utils/partPrinter.d.ts +25 -19
  42. package/dist/utils/partPrinter.js +82 -0
  43. package/dist/vite/plugin.d.ts +53 -0
  44. package/dist/vite/plugin.js +107 -0
  45. package/dist/vite/typeScript.d.ts +16 -0
  46. package/dist/vite/typeScript.js +6 -0
  47. package/dist/worker-CULPfolw.js +3599 -0
  48. package/package.json +40 -9
  49. package/dist/cli.d.ts +0 -2
  50. package/dist/config/typeReferences/docLinkAdditions.d.ts +0 -51
  51. package/dist/config/typeReferences/globals.d.ts +0 -11
  52. package/dist/config/typeReferences/stringDocLinkAdditions.d.ts +0 -17
  53. package/dist/config/typeReferences/typeScriptGlobals.json.d.ts +0 -3
  54. package/dist/diff/index.d.ts +0 -3
  55. package/dist/diff/index.js +0 -149
  56. package/dist/ensureCemCompatibility.d.ts +0 -1
  57. package/dist/internalTypeScriptApis.d.ts +0 -31
  58. package/dist/types.d.ts +0 -22
  59. package/dist/utils/error.d.ts +0 -17
  60. package/dist/utils/jsDocHelpers.d.ts +0 -2
  61. package/dist/utils/jsDocParser.d.ts +0 -46
  62. package/dist/utils/jsDocPrinter.d.ts +0 -13
  63. 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;
@@ -1,6 +0,0 @@
1
- import { default as ts } from 'typescript';
2
- /**
3
- * For usage in error messages. Print original node text if available. Otherwise,
4
- * print the AST.
5
- */
6
- export declare function debugPrintNode(node: ts.Node, sourceFile: ts.SourceFile | undefined): string;