@mui/internal-docs-infra 0.2.3-canary.9 → 0.3.1-canary.1

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 (156) hide show
  1. package/README.md +3 -2
  2. package/esm/CodeHighlighter/CodeHighlighter.js +16 -16
  3. package/esm/CodeHighlighter/CodeHighlighterClient.js +33 -33
  4. package/esm/CodeHighlighter/errors.js +3 -3
  5. package/esm/CodeHighlighter/types.d.ts +1 -1
  6. package/esm/CodeProvider/CodeContext.d.ts +4 -4
  7. package/esm/CodeProvider/CodeProvider.js +7 -7
  8. package/esm/cli/index.d.ts +1 -0
  9. package/esm/cli/index.js +6 -0
  10. package/esm/cli/runValidate.d.ts +8 -0
  11. package/esm/cli/runValidate.js +297 -0
  12. package/esm/createSitemap/createSitemap.d.ts +23 -0
  13. package/esm/createSitemap/createSitemap.js +45 -0
  14. package/esm/createSitemap/index.d.ts +1 -0
  15. package/esm/createSitemap/index.js +1 -0
  16. package/esm/createSitemap/types.d.ts +68 -0
  17. package/esm/createSitemap/types.js +1 -0
  18. package/esm/pipeline/getFileConventions/fileConventions.d.ts +4 -0
  19. package/esm/pipeline/getFileConventions/fileConventions.js +4 -0
  20. package/esm/pipeline/getFileConventions/getFileConventions.d.ts +4 -0
  21. package/esm/pipeline/getFileConventions/getFileConventions.js +17 -0
  22. package/esm/pipeline/getFileConventions/index.d.ts +1 -0
  23. package/esm/pipeline/getFileConventions/index.js +1 -0
  24. package/esm/{CodeHighlighter/addPathsToVariant.d.ts → pipeline/loadCodeVariant/addCodeVariantPaths.d.ts} +1 -1
  25. package/esm/{CodeHighlighter/applyTransform.d.ts → pipeline/loadCodeVariant/applyCodeTransform.d.ts} +3 -3
  26. package/esm/{CodeHighlighter/applyTransform.js → pipeline/loadCodeVariant/applyCodeTransform.js} +4 -4
  27. package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/calculateMainFilePath.js +1 -1
  28. package/esm/{CodeHighlighter/transformCode.d.ts → pipeline/loadCodeVariant/computeHastDeltas.d.ts} +9 -5
  29. package/esm/{CodeHighlighter/transformCode.js → pipeline/loadCodeVariant/computeHastDeltas.js} +20 -16
  30. package/esm/pipeline/loadCodeVariant/diffHast.d.ts +3 -0
  31. package/esm/{CodeHighlighter/transformParsedSource.js → pipeline/loadCodeVariant/diffHast.js} +5 -5
  32. package/esm/{CodeHighlighter/examineVariant.d.ts → pipeline/loadCodeVariant/examineCodeVariant.d.ts} +2 -2
  33. package/esm/{CodeHighlighter/examineVariant.js → pipeline/loadCodeVariant/examineCodeVariant.js} +1 -1
  34. package/esm/{useDemo/flattenVariant.d.ts → pipeline/loadCodeVariant/flattenCodeVariant.d.ts} +2 -2
  35. package/esm/{useDemo/flattenVariant.js → pipeline/loadCodeVariant/flattenCodeVariant.js} +3 -3
  36. package/esm/{CodeHighlighter/hasAllVariants.d.ts → pipeline/loadCodeVariant/hasAllCodeVariants.d.ts} +1 -1
  37. package/esm/pipeline/loadCodeVariant/index.d.ts +10 -0
  38. package/esm/pipeline/loadCodeVariant/index.js +17 -0
  39. package/esm/{CodeHighlighter/loadFallbackCode.d.ts → pipeline/loadCodeVariant/loadCodeFallback.d.ts} +2 -2
  40. package/esm/{CodeHighlighter/loadFallbackCode.js → pipeline/loadCodeVariant/loadCodeFallback.js} +180 -106
  41. package/esm/{CodeHighlighter/loadVariant.d.ts → pipeline/loadCodeVariant/loadCodeVariant.d.ts} +2 -2
  42. package/esm/{CodeHighlighter/loadVariant.js → pipeline/loadCodeVariant/loadCodeVariant.js} +141 -55
  43. package/esm/{CodeHighlighter/maybeInitialData.d.ts → pipeline/loadCodeVariant/maybeCodeInitialData.d.ts} +6 -6
  44. package/esm/{CodeHighlighter/maybeInitialData.js → pipeline/loadCodeVariant/maybeCodeInitialData.js} +6 -6
  45. package/esm/{CodeHighlighter/mergeMetadata.d.ts → pipeline/loadCodeVariant/mergeCodeMetadata.d.ts} +3 -3
  46. package/esm/{CodeHighlighter/mergeMetadata.js → pipeline/loadCodeVariant/mergeCodeMetadata.js} +3 -3
  47. package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/parseCode.d.ts +1 -1
  48. package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/transformSource.d.ts +1 -1
  49. package/esm/pipeline/loadPrecomputedCodeHighlighter/loadPrecomputedCodeHighlighter.d.ts +5 -0
  50. package/esm/pipeline/loadPrecomputedCodeHighlighter/loadPrecomputedCodeHighlighter.js +94 -16
  51. package/esm/pipeline/loadPrecomputedCodeHighlighter/parseCreateFactoryCall.js +3 -3
  52. package/esm/pipeline/loadPrecomputedCodeHighlighter/performanceLogger.d.ts +30 -0
  53. package/esm/pipeline/loadPrecomputedCodeHighlighter/performanceLogger.js +77 -0
  54. package/esm/pipeline/loadPrecomputedCodeHighlighterClient/loadPrecomputedCodeHighlighterClient.js +24 -14
  55. package/esm/pipeline/loadPrecomputedSitemap/index.d.ts +2 -0
  56. package/esm/pipeline/loadPrecomputedSitemap/index.js +4 -0
  57. package/esm/pipeline/loadPrecomputedSitemap/loadPrecomputedSitemap.d.ts +10 -0
  58. package/esm/pipeline/loadPrecomputedSitemap/loadPrecomputedSitemap.js +220 -0
  59. package/esm/pipeline/loadServerCodeMeta/index.d.ts +2 -1
  60. package/esm/pipeline/loadServerCodeMeta/index.js +2 -1
  61. package/esm/pipeline/loadServerCodeMeta/loadServerCodeMeta.d.ts +1 -1
  62. package/esm/pipeline/loadServerCodeMeta/loadServerCodeMeta.js +7 -5
  63. package/esm/pipeline/{loaderUtils → loadServerCodeMeta}/resolveModulePathWithFs.d.ts +3 -3
  64. package/esm/pipeline/{loaderUtils → loadServerCodeMeta}/resolveModulePathWithFs.js +14 -8
  65. package/esm/pipeline/loadServerPageIndex/index.d.ts +2 -0
  66. package/esm/pipeline/loadServerPageIndex/index.js +1 -0
  67. package/esm/pipeline/loadServerPageIndex/loadServerPageIndex.d.ts +51 -0
  68. package/esm/pipeline/loadServerPageIndex/loadServerPageIndex.js +176 -0
  69. package/esm/pipeline/loadServerSitemap/index.d.ts +2 -0
  70. package/esm/pipeline/loadServerSitemap/index.js +1 -0
  71. package/esm/pipeline/loadServerSitemap/loadServerSitemap.d.ts +39 -0
  72. package/esm/pipeline/loadServerSitemap/loadServerSitemap.js +170 -0
  73. package/esm/pipeline/loadServerSource/loadServerSource.js +18 -15
  74. package/esm/pipeline/loaderUtils/externalsToPackages.js +1 -1
  75. package/esm/pipeline/loaderUtils/extractNameAndSlugFromUrl.d.ts +0 -9
  76. package/esm/pipeline/loaderUtils/extractNameAndSlugFromUrl.js +7 -7
  77. package/esm/pipeline/loaderUtils/fileUrlToPortablePath.d.ts +44 -0
  78. package/esm/pipeline/loaderUtils/fileUrlToPortablePath.js +80 -0
  79. package/esm/pipeline/loaderUtils/index.d.ts +2 -1
  80. package/esm/pipeline/loaderUtils/index.js +2 -1
  81. package/esm/pipeline/loaderUtils/parseImportsAndComments.d.ts +10 -6
  82. package/esm/pipeline/loaderUtils/parseImportsAndComments.js +17 -12
  83. package/esm/pipeline/loaderUtils/processRelativeImports.d.ts +1 -1
  84. package/esm/pipeline/loaderUtils/processRelativeImports.js +44 -27
  85. package/esm/pipeline/loaderUtils/resolveModulePath.d.ts +5 -5
  86. package/esm/pipeline/loaderUtils/resolveModulePath.js +40 -37
  87. package/esm/pipeline/loaderUtils/rewriteImports.d.ts +36 -0
  88. package/esm/pipeline/loaderUtils/rewriteImports.js +139 -8
  89. package/esm/pipeline/syncPageIndex/createMarkdownNodes.d.ts +76 -0
  90. package/esm/pipeline/syncPageIndex/createMarkdownNodes.js +305 -0
  91. package/esm/pipeline/syncPageIndex/index.d.ts +1 -0
  92. package/esm/pipeline/syncPageIndex/index.js +1 -0
  93. package/esm/pipeline/syncPageIndex/mergeMetadataMarkdown.d.ts +58 -0
  94. package/esm/pipeline/syncPageIndex/mergeMetadataMarkdown.js +214 -0
  95. package/esm/pipeline/syncPageIndex/metadataToMarkdown.d.ts +67 -0
  96. package/esm/pipeline/syncPageIndex/metadataToMarkdown.js +1486 -0
  97. package/esm/pipeline/syncPageIndex/syncPageIndex.d.ts +108 -0
  98. package/esm/pipeline/syncPageIndex/syncPageIndex.js +540 -0
  99. package/esm/pipeline/transformHtmlCodePrecomputed/transformHtmlCodePrecomputed.d.ts +2 -2
  100. package/esm/pipeline/transformHtmlCodePrecomputed/transformHtmlCodePrecomputed.js +5 -5
  101. package/esm/pipeline/transformMarkdownBlockquoteCallouts/index.d.ts +2 -0
  102. package/esm/pipeline/transformMarkdownBlockquoteCallouts/index.js +4 -0
  103. package/esm/pipeline/transformMarkdownBlockquoteCallouts/transformMarkdownBlockquoteCallouts.d.ts +16 -0
  104. package/esm/pipeline/transformMarkdownBlockquoteCallouts/transformMarkdownBlockquoteCallouts.js +58 -0
  105. package/esm/pipeline/transformMarkdownDemoLinks/index.d.ts +2 -0
  106. package/esm/pipeline/transformMarkdownDemoLinks/index.js +4 -0
  107. package/esm/pipeline/transformMarkdownDemoLinks/transformMarkdownDemoLinks.d.ts +26 -0
  108. package/esm/pipeline/transformMarkdownDemoLinks/transformMarkdownDemoLinks.js +107 -0
  109. package/esm/pipeline/transformMarkdownMetadata/index.d.ts +2 -0
  110. package/esm/pipeline/transformMarkdownMetadata/index.js +4 -0
  111. package/esm/pipeline/transformMarkdownMetadata/transformMarkdownMetadata.d.ts +3 -0
  112. package/esm/pipeline/transformMarkdownMetadata/transformMarkdownMetadata.js +1010 -0
  113. package/esm/pipeline/transformMarkdownMetadata/types.d.ts +110 -0
  114. package/esm/pipeline/transformMarkdownMetadata/types.js +1 -0
  115. package/esm/pipeline/transformMarkdownRelativePaths/index.d.ts +2 -0
  116. package/esm/pipeline/transformMarkdownRelativePaths/index.js +4 -0
  117. package/esm/pipeline/transformMarkdownRelativePaths/transformMarkdownRelativePaths.d.ts +15 -0
  118. package/esm/pipeline/transformMarkdownRelativePaths/transformMarkdownRelativePaths.js +43 -0
  119. package/esm/useCode/Pre.js +15 -2
  120. package/esm/useCode/useCode.d.ts +15 -2
  121. package/esm/useCode/useCode.js +15 -6
  122. package/esm/useCode/useCodeUtils.js +3 -3
  123. package/esm/useCode/useFileNavigation.d.ts +9 -3
  124. package/esm/useCode/useFileNavigation.js +124 -81
  125. package/esm/useCode/useUIState.d.ts +4 -1
  126. package/esm/useCode/useUIState.js +17 -2
  127. package/esm/useCode/useVariantSelection.d.ts +8 -3
  128. package/esm/useCode/useVariantSelection.js +144 -52
  129. package/esm/useCopier/index.js +5 -4
  130. package/esm/useDemo/createCodeSandbox.d.ts +1 -1
  131. package/esm/useDemo/createStackBlitz.d.ts +1 -1
  132. package/esm/useDemo/exportVariant.js +13 -11
  133. package/esm/useDemo/index.d.ts +1 -1
  134. package/esm/useDemo/index.js +1 -1
  135. package/esm/useDemo/useDemo.d.ts +5 -5
  136. package/esm/useDemo/useDemo.js +6 -6
  137. package/esm/useErrors/useErrors.d.ts +1 -1
  138. package/esm/useErrors/useErrors.js +6 -2
  139. package/esm/useSearch/index.d.ts +1 -0
  140. package/esm/useSearch/index.js +1 -0
  141. package/esm/useSearch/types.d.ts +165 -0
  142. package/esm/useSearch/types.js +1 -0
  143. package/esm/useSearch/useSearch.d.ts +56 -0
  144. package/esm/useSearch/useSearch.js +647 -0
  145. package/esm/withDocsInfra/withDeploymentConfig.js +4 -2
  146. package/esm/withDocsInfra/withDocsInfra.d.ts +39 -0
  147. package/esm/withDocsInfra/withDocsInfra.js +94 -14
  148. package/package.json +105 -5
  149. package/esm/CodeHighlighter/transformParsedSource.d.ts +0 -3
  150. /package/esm/{CodeHighlighter/addPathsToVariant.js → pipeline/loadCodeVariant/addCodeVariantPaths.js} +0 -0
  151. /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/calculateMainFilePath.d.ts +0 -0
  152. /package/esm/{CodeHighlighter/hasAllVariants.js → pipeline/loadCodeVariant/hasAllCodeVariants.js} +0 -0
  153. /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/parseCode.js +0 -0
  154. /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/pathUtils.d.ts +0 -0
  155. /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/pathUtils.js +0 -0
  156. /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/transformSource.js +0 -0
@@ -5,7 +5,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
5
5
  import _typeof from "@babel/runtime/helpers/esm/typeof";
6
6
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
7
7
  import { toText } from 'hast-util-to-text';
8
- import { transformParsedSource } from "./transformParsedSource.js";
8
+ import { diffHast } from "./diffHast.js";
9
9
 
10
10
  /**
11
11
  * Pure function to identify which variants need transformation.
@@ -85,16 +85,20 @@ export function getAvailableTransforms(parsedCode, variantName) {
85
85
  * Pure async function to transform a single variant's code and extraFiles.
86
86
  * Returns the transformed variant or the original if transformation fails.
87
87
  */
88
- export function transformVariant(_x, _x2, _x3) {
89
- return _transformVariant.apply(this, arguments);
88
+ export function computeVariantDeltas(_x, _x2, _x3) {
89
+ return _computeVariantDeltas.apply(this, arguments);
90
90
  }
91
91
 
92
92
  /**
93
- * Pure async function to apply transformations to all variants that need them.
94
- * Returns the enhanced code with computed transforms.
93
+ * Computes transform deltas for all variants in the parsed code.
94
+ * This function generates the transformation data that can be applied later.
95
+ *
96
+ * @param parsedCode - The parsed code object containing variants
97
+ * @param parseSource - The parser function to parse source strings
98
+ * @returns A promise that resolves to the code with computed transforms
95
99
  */
96
- function _transformVariant() {
97
- _transformVariant = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(variant, variantCode, parseSource) {
100
+ function _computeVariantDeltas() {
101
+ _computeVariantDeltas = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(variant, variantCode, parseSource) {
98
102
  var mainTransformResult, transformedExtraFiles, hastNodes, sourceString, transformedVariant;
99
103
  return _regenerator().w(function (_context2) {
100
104
  while (1) switch (_context2.n) {
@@ -114,7 +118,7 @@ function _transformVariant() {
114
118
  whitespace: 'pre'
115
119
  });
116
120
  _context2.n = 2;
117
- return transformParsedSource(sourceString, hastNodes, variant,
121
+ return diffHast(sourceString, hastNodes, variant,
118
122
  // fileName
119
123
  variantCode.transforms, parseSource);
120
124
  case 2:
@@ -142,7 +146,7 @@ function _transformVariant() {
142
146
  whitespace: 'pre'
143
147
  });
144
148
  _context.n = 2;
145
- return transformParsedSource(extraSourceString, extraHastNodes, fileName, fileContent.transforms, parseSource);
149
+ return diffHast(extraSourceString, extraHastNodes, fileName, fileContent.transforms, parseSource);
146
150
  case 2:
147
151
  extraTransformResult = _context.v;
148
152
  return _context.a(2, [fileName, _extends(_extends({}, fileContent), {}, {
@@ -177,13 +181,13 @@ function _transformVariant() {
177
181
  }
178
182
  }, _callee2);
179
183
  }));
180
- return _transformVariant.apply(this, arguments);
184
+ return _computeVariantDeltas.apply(this, arguments);
181
185
  }
182
- export function applyTransforms(_x4, _x5) {
183
- return _applyTransforms.apply(this, arguments);
186
+ export function computeHastDeltas(_x4, _x5) {
187
+ return _computeHastDeltas.apply(this, arguments);
184
188
  }
185
- function _applyTransforms() {
186
- _applyTransforms = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(parsedCode, parseSource) {
189
+ function _computeHastDeltas() {
190
+ _computeHastDeltas = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(parsedCode, parseSource) {
187
191
  var variantsToTransform, results, enhancedCode, _iterator, _step, _step$value, variant, transformedVariant;
188
192
  return _regenerator().w(function (_context4) {
189
193
  while (1) switch (_context4.n) {
@@ -205,7 +209,7 @@ function _applyTransforms() {
205
209
  _ref8 = _slicedToArray(_ref6, 2), variant = _ref8[0], variantCode = _ref8[1];
206
210
  _context3.p = 1;
207
211
  _context3.n = 2;
208
- return transformVariant(variant, variantCode, parseSource);
212
+ return computeVariantDeltas(variant, variantCode, parseSource);
209
213
  case 2:
210
214
  transformedVariant = _context3.v;
211
215
  return _context3.a(2, {
@@ -247,5 +251,5 @@ function _applyTransforms() {
247
251
  }
248
252
  }, _callee4);
249
253
  }));
250
- return _applyTransforms.apply(this, arguments);
254
+ return _computeHastDeltas.apply(this, arguments);
251
255
  }
@@ -0,0 +1,3 @@
1
+ import type { Nodes } from 'hast';
2
+ import { ParseSource, Transforms } from "../../CodeHighlighter/types.js";
3
+ export declare function diffHast(source: string, parsedSource: Nodes, filename: string, transforms: Transforms, parseSource: ParseSource): Promise<Record<string, any>>;
@@ -9,11 +9,11 @@ var differ = create({
9
9
  omitRemovedValues: true,
10
10
  cloneDiffValues: true
11
11
  });
12
- export function transformParsedSource(_x, _x2, _x3, _x4, _x5) {
13
- return _transformParsedSource.apply(this, arguments);
12
+ export function diffHast(_x, _x2, _x3, _x4, _x5) {
13
+ return _diffHast.apply(this, arguments);
14
14
  }
15
- function _transformParsedSource() {
16
- _transformParsedSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(source, parsedSource, filename, transforms, parseSource) {
15
+ function _diffHast() {
16
+ _diffHast = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(source, parsedSource, filename, transforms, parseSource) {
17
17
  var transformed;
18
18
  return _regenerator().w(function (_context2) {
19
19
  while (1) switch (_context2.n) {
@@ -56,5 +56,5 @@ function _transformParsedSource() {
56
56
  }
57
57
  }, _callee2);
58
58
  }));
59
- return _transformParsedSource.apply(this, arguments);
59
+ return _diffHast.apply(this, arguments);
60
60
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Variant examination utility for analyzing variant structure and paths
3
3
  */
4
- import type { VariantCode } from "./types.js";
4
+ import type { VariantCode } from "../../CodeHighlighter/types.js";
5
5
  interface PathContextBase {
6
6
  hasMetadata: boolean;
7
7
  maxSourceBackNavigation: number;
@@ -21,5 +21,5 @@ export type PathContext = PathContextWithUrl | PathContextWithoutUrl;
21
21
  /**
22
22
  * Create path context for processing files with extended information
23
23
  */
24
- export declare function createPathContext(variant: VariantCode): PathContext;
24
+ export declare function examineCodeVariant(variant: VariantCode): PathContext;
25
25
  export {};
@@ -7,7 +7,7 @@ import { getUrlParts, calculateMaxSourceBackNavigation } from "./pathUtils.js";
7
7
  /**
8
8
  * Create path context for processing files with extended information
9
9
  */
10
- export function createPathContext(variant) {
10
+ export function examineCodeVariant(variant) {
11
11
  var hasMetadata = variant.extraFiles ? Object.values(variant.extraFiles).some(function (file) {
12
12
  return _typeof(file) === 'object' && file.metadata;
13
13
  }) : false;
@@ -3,7 +3,7 @@
3
3
  * Handles relative path resolution and metadata file scoping
4
4
  * Uses addPathsToVariant for the core logic, then flattens the result
5
5
  */
6
- import type { VariantCode } from "../CodeHighlighter/types.js";
6
+ import type { VariantCode } from "../../CodeHighlighter/types.js";
7
7
  export interface FlatFile {
8
8
  source: string;
9
9
  metadata?: boolean;
@@ -16,4 +16,4 @@ export interface FlattenedFiles {
16
16
  * Resolves relative paths and handles metadata file scoping
17
17
  * Uses addPathsToVariant for path resolution logic
18
18
  */
19
- export declare function flattenVariant(variant: VariantCode): FlattenedFiles;
19
+ export declare function flattenCodeVariant(variant: VariantCode): FlattenedFiles;
@@ -5,14 +5,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  * Uses addPathsToVariant for the core logic, then flattens the result
6
6
  */
7
7
 
8
- import { stringOrHastToString } from "../pipeline/hastUtils/index.js";
9
- import { addPathsToVariant } from "../CodeHighlighter/addPathsToVariant.js";
8
+ import { stringOrHastToString } from "../hastUtils/index.js";
9
+ import { addPathsToVariant } from "./addCodeVariantPaths.js";
10
10
  /**
11
11
  * Flatten a VariantCode into a flat files structure
12
12
  * Resolves relative paths and handles metadata file scoping
13
13
  * Uses addPathsToVariant for path resolution logic
14
14
  */
15
- export function flattenVariant(variant) {
15
+ export function flattenCodeVariant(variant) {
16
16
  var result = {};
17
17
 
18
18
  // Use addPathsToVariant to get the structured paths
@@ -1,4 +1,4 @@
1
- import { Code } from "./types.js";
1
+ import { Code } from "../../CodeHighlighter/types.js";
2
2
  /**
3
3
  * Determines if all code variants are fully loaded and ready to render the complete content component.
4
4
  *
@@ -0,0 +1,10 @@
1
+ export * from "./loadCodeVariant.js";
2
+ export * from "./loadCodeFallback.js";
3
+ export * from "./parseCode.js";
4
+ export * from "./flattenCodeVariant.js";
5
+ export * from "./mergeCodeMetadata.js";
6
+ export * from "./examineCodeVariant.js";
7
+ export * from "./maybeCodeInitialData.js";
8
+ export * from "./hasAllCodeVariants.js";
9
+ export * from "./applyCodeTransform.js";
10
+ export * from "./addCodeVariantPaths.js";
@@ -0,0 +1,17 @@
1
+ // Main loading functions
2
+ export * from "./loadCodeVariant.js";
3
+ export * from "./loadCodeFallback.js";
4
+
5
+ // Code processing utilities
6
+ export * from "./parseCode.js";
7
+ export * from "./flattenCodeVariant.js";
8
+ export * from "./mergeCodeMetadata.js";
9
+ export * from "./examineCodeVariant.js";
10
+ export * from "./maybeCodeInitialData.js";
11
+ export * from "./hasAllCodeVariants.js";
12
+
13
+ // Transform utilities
14
+ export * from "./applyCodeTransform.js";
15
+
16
+ // Path utilities (if needed by consumers)
17
+ export * from "./addCodeVariantPaths.js";
@@ -1,4 +1,4 @@
1
- import type { Code, VariantExtraFiles, VariantSource, LoadFallbackCodeOptions } from "./types.js";
1
+ import type { Code, VariantExtraFiles, VariantSource, LoadFallbackCodeOptions } from "../../CodeHighlighter/types.js";
2
2
  export type FallbackVariants = {
3
3
  code: Code;
4
4
  initialFilename: string | undefined;
@@ -7,4 +7,4 @@ export type FallbackVariants = {
7
7
  allFileNames: string[];
8
8
  processedGlobalsCode?: Array<Code>;
9
9
  };
10
- export declare function loadFallbackCode(url: string, initialVariant: string, loaded: Code | undefined, options?: LoadFallbackCodeOptions): Promise<FallbackVariants>;
10
+ export declare function loadCodeFallback(url: string, initialVariant: string, loaded: Code | undefined, options?: LoadFallbackCodeOptions): Promise<FallbackVariants>;