@mui/internal-docs-infra 0.13.1-canary.23 → 0.13.1-canary.24

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,6 @@
1
1
  {
2
2
  "name": "@mui/internal-docs-infra",
3
- "version": "0.13.1-canary.23",
3
+ "version": "0.13.1-canary.24",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI Infra - internal documentation creation tools.",
6
6
  "license": "MIT",
@@ -33,6 +33,7 @@
33
33
  "@csstools/postcss-light-dark-function": "^3.0.7",
34
34
  "@csstools/postcss-relative-color-syntax": "^4.0.15",
35
35
  "@csstools/postcss-stepped-value-functions": "^5.0.9",
36
+ "@mui/internal-typescript-api-extractor": "0.1.1-canary.0",
36
37
  "@orama/orama": "^3.1.18",
37
38
  "@orama/plugin-qps": "^3.1.18",
38
39
  "@orama/stemmers": "^3.1.18",
@@ -64,7 +65,6 @@
64
65
  "remark-typography": "^0.8.10",
65
66
  "sucrase": "^3.35.1",
66
67
  "typescript": "npm:@typescript/typescript6@6.0.2",
67
- "typescript-api-extractor": "1.0.0-beta.7",
68
68
  "uint8-to-base64": "^0.2.1",
69
69
  "unified": "^11.0.5",
70
70
  "unist-util-visit": "^5.1.0",
@@ -813,5 +813,5 @@
813
813
  "bin": {
814
814
  "docs-infra": "./cli/index.mjs"
815
815
  },
816
- "gitSha": "0572f77091d6b3c01daa7626ab0b8a261735a136"
816
+ "gitSha": "a60bc3c76a3193bef52588d5c28a818dbf7c4fb7"
817
817
  }
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  /**
3
3
  * Checks if a type name belongs to a built-in namespace.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import type * as tae from 'typescript-api-extractor';
2
+ import type * as tae from '@mui/internal-typescript-api-extractor';
3
3
  /** Which of a component's tables a constant group holds. */
4
4
  export type ConstantGroupKind = 'dataAttributes' | 'cssVariables';
5
5
  export interface ConstantGroupTarget {
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import { EnumMember, EnumNode, ExportNode, TypeName } from 'typescript-api-extractor';
2
+ import { EnumMember, EnumNode, ExportNode, TypeName } from '@mui/internal-typescript-api-extractor';
3
3
  import { formatPropertyComment } from "./formatType.mjs";
4
4
  import { isComponentType, isEnumType } from "./typeGuards.mjs";
5
5
 
@@ -119,7 +119,13 @@ export function foldConstantNamespaces(exports, namespaces) {
119
119
  if (!members) {
120
120
  members = [];
121
121
  groups.set(namespace, members);
122
- folded.push(new ExportNode(namespace, new EnumNode(new TypeName(namespace), members, undefined), undefined));
122
+ folded.push(new ExportNode(namespace, new EnumNode(new TypeName(namespace), members, undefined), undefined,
123
+ // `export * as X` binds a module namespace object.
124
+ {
125
+ isValue: true,
126
+ isType: false,
127
+ isNamespace: true
128
+ }));
123
129
  }
124
130
  // Typed as a string, but the parser stores numeric enum values as numbers too; do
125
131
  // the same so both forms render alike.
@@ -1,4 +1,4 @@
1
- import type { ParserOptions } from 'typescript-api-extractor';
1
+ import type { ParserOptions } from '@mui/internal-typescript-api-extractor';
2
2
  /**
3
3
  * Extraction policy the pipeline hands to `typescript-api-extractor`.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  /**
3
3
  * Metadata for an external type discovered during formatting.
4
4
  * These are types referenced in props/params that are not publicly exported,
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { Root as HastRoot } from 'hast';
3
3
  import type { ExternalTypesCollector } from "./externalTypes.mjs";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { FormattedParameter, FormatInlineTypeOptions, DescriptionReplacement } from "./format.mjs";
3
3
  import type { TypeRewriteContext } from "./rewriteTypes.mjs";
4
4
  import type { ExternalTypesCollector } from "./externalTypes.mjs";
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { FormattedProperty, FormattedEnumMember, FormatInlineTypeOptions, DescriptionReplacement } from "./format.mjs";
3
3
  import type { ComponentConstantGroups } from "./constantGroups.mjs";
4
4
  import type { TypeRewriteContext } from "./rewriteTypes.mjs";
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { FormattedParameter, FormattedProperty, FormatInlineTypeOptions, DescriptionReplacement } from "./format.mjs";
3
3
  import type { TypeRewriteContext } from "./rewriteTypes.mjs";
4
4
  import type { ExternalTypesCollector } from "./externalTypes.mjs";
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { FormattedProperty, FormattedParameter, FormatInlineTypeOptions, DescriptionReplacement } from "./format.mjs";
3
3
  import type { TypeRewriteContext } from "./rewriteTypes.mjs";
4
4
  import type { ExternalTypesCollector } from "./externalTypes.mjs";
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { FormattedProperty, FormatInlineTypeOptions, DescriptionReplacement } from "./format.mjs";
3
3
  import type { ConstantGroupTarget } from "./constantGroups.mjs";
4
4
  import type { TypeRewriteContext } from "./rewriteTypes.mjs";
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  import type { ExternalTypesCollector } from "./externalTypes.mjs";
3
3
  export interface FormatTypeOptions {
4
4
  removeUndefined?: boolean;
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import type { ExportNode } from 'typescript-api-extractor';
2
+ import type { ExportNode } from '@mui/internal-typescript-api-extractor';
3
3
  /**
4
4
  * Props to re-include for a single externally declared type. Either a list of
5
5
  * prop names, or an object that additionally pins the package the type must be
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import { CallSignature, Documentation, ExternalTypeNode, FunctionNode, IntrinsicNode, LiteralNode, Parameter, PropertyNode, TypeName, UnionNode } from 'typescript-api-extractor';
2
+ import { CallSignature, Documentation, ExternalTypeNode, FunctionNode, IntrinsicNode, LiteralNode, Parameter, PropertyNode, TypeName, UnionNode } from '@mui/internal-typescript-api-extractor';
3
3
  import { isComponentType, isObjectType } from "./typeGuards.mjs";
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import type * as tae from 'typescript-api-extractor';
2
+ import type * as tae from '@mui/internal-typescript-api-extractor';
3
3
  export interface ParseTestSourcesOptions {
4
4
  /**
5
5
  * Declarations placed in the virtual default library. Types declared here are external
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import { parseFromProgram } from 'typescript-api-extractor';
2
+ import { parseFromProgram } from '@mui/internal-typescript-api-extractor';
3
3
  import { PARSER_OPTIONS } from "./constants.mjs";
4
4
  const ROOT = '/virtual';
5
5
  const LIB_PATH = `${ROOT}/lib.d.ts`;
@@ -1,5 +1,5 @@
1
1
  import type { CompilerOptions } from 'typescript';
2
- import type { ExportNode } from 'typescript-api-extractor';
2
+ import type { ExportNode } from '@mui/internal-typescript-api-extractor';
3
3
  import type { InheritedExternalPropsConfig } from "./inheritedExternalProps.mjs";
4
4
  import type { PerformanceLog } from "./performanceTracking.mjs";
5
5
  export interface VariantResult {
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line n/prefer-node-protocol
2
2
  import { fileURLToPath } from 'url';
3
- import { parseFromProgram } from 'typescript-api-extractor';
3
+ import { parseFromProgram } from '@mui/internal-typescript-api-extractor';
4
4
  import ts from 'typescript';
5
5
  import { createOptimizedProgram } from "./createOptimizedProgram.mjs";
6
6
  import { augmentComponentsWithInheritedProps } from "./inheritedExternalProps.mjs";
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  /**
3
3
  * A map from original type names to their canonical export names.
4
4
  * For example: "DialogTrigger" -> "AlertDialog.Trigger"
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  /**
3
3
  * Writes a template literal type as TypeScript source, such as `` `${number}px` ``.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type * as tae from 'typescript-api-extractor';
1
+ import type * as tae from '@mui/internal-typescript-api-extractor';
2
2
  /**
3
3
  * Type guard to check if a type node is an external type reference.
4
4
  * Works with both class instances and serialized objects from typescript-api-extractor.