@mui/internal-docs-infra 0.2.3-canary.8 → 0.3.1-canary.0
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/README.md +3 -2
- package/esm/CodeHighlighter/CodeHighlighter.js +16 -16
- package/esm/CodeHighlighter/CodeHighlighterClient.js +33 -33
- package/esm/CodeHighlighter/errors.js +3 -3
- package/esm/CodeHighlighter/types.d.ts +1 -1
- package/esm/CodeProvider/CodeContext.d.ts +4 -4
- package/esm/CodeProvider/CodeProvider.js +7 -7
- package/esm/cli/index.d.ts +1 -0
- package/esm/cli/index.js +6 -0
- package/esm/cli/runValidate.d.ts +8 -0
- package/esm/cli/runValidate.js +297 -0
- package/esm/createSitemap/createSitemap.d.ts +23 -0
- package/esm/createSitemap/createSitemap.js +45 -0
- package/esm/createSitemap/index.d.ts +1 -0
- package/esm/createSitemap/index.js +1 -0
- package/esm/createSitemap/types.d.ts +68 -0
- package/esm/createSitemap/types.js +1 -0
- package/esm/pipeline/getFileConventions/fileConventions.d.ts +4 -0
- package/esm/pipeline/getFileConventions/fileConventions.js +4 -0
- package/esm/pipeline/getFileConventions/getFileConventions.d.ts +4 -0
- package/esm/pipeline/getFileConventions/getFileConventions.js +17 -0
- package/esm/pipeline/getFileConventions/index.d.ts +1 -0
- package/esm/pipeline/getFileConventions/index.js +1 -0
- package/esm/{CodeHighlighter/addPathsToVariant.d.ts → pipeline/loadCodeVariant/addCodeVariantPaths.d.ts} +1 -1
- package/esm/{CodeHighlighter/applyTransform.d.ts → pipeline/loadCodeVariant/applyCodeTransform.d.ts} +3 -3
- package/esm/{CodeHighlighter/applyTransform.js → pipeline/loadCodeVariant/applyCodeTransform.js} +4 -4
- package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/calculateMainFilePath.js +1 -1
- package/esm/{CodeHighlighter/transformCode.d.ts → pipeline/loadCodeVariant/computeHastDeltas.d.ts} +9 -5
- package/esm/{CodeHighlighter/transformCode.js → pipeline/loadCodeVariant/computeHastDeltas.js} +20 -16
- package/esm/pipeline/loadCodeVariant/diffHast.d.ts +3 -0
- package/esm/{CodeHighlighter/transformParsedSource.js → pipeline/loadCodeVariant/diffHast.js} +5 -5
- package/esm/{CodeHighlighter/examineVariant.d.ts → pipeline/loadCodeVariant/examineCodeVariant.d.ts} +2 -2
- package/esm/{CodeHighlighter/examineVariant.js → pipeline/loadCodeVariant/examineCodeVariant.js} +1 -1
- package/esm/{useDemo/flattenVariant.d.ts → pipeline/loadCodeVariant/flattenCodeVariant.d.ts} +2 -2
- package/esm/{useDemo/flattenVariant.js → pipeline/loadCodeVariant/flattenCodeVariant.js} +3 -3
- package/esm/{CodeHighlighter/hasAllVariants.d.ts → pipeline/loadCodeVariant/hasAllCodeVariants.d.ts} +1 -1
- package/esm/pipeline/loadCodeVariant/index.d.ts +10 -0
- package/esm/pipeline/loadCodeVariant/index.js +17 -0
- package/esm/{CodeHighlighter/loadFallbackCode.d.ts → pipeline/loadCodeVariant/loadCodeFallback.d.ts} +2 -2
- package/esm/{CodeHighlighter/loadFallbackCode.js → pipeline/loadCodeVariant/loadCodeFallback.js} +180 -106
- package/esm/{CodeHighlighter/loadVariant.d.ts → pipeline/loadCodeVariant/loadCodeVariant.d.ts} +2 -2
- package/esm/{CodeHighlighter/loadVariant.js → pipeline/loadCodeVariant/loadCodeVariant.js} +122 -49
- package/esm/{CodeHighlighter/maybeInitialData.d.ts → pipeline/loadCodeVariant/maybeCodeInitialData.d.ts} +6 -6
- package/esm/{CodeHighlighter/maybeInitialData.js → pipeline/loadCodeVariant/maybeCodeInitialData.js} +6 -6
- package/esm/{CodeHighlighter/mergeMetadata.d.ts → pipeline/loadCodeVariant/mergeCodeMetadata.d.ts} +3 -3
- package/esm/{CodeHighlighter/mergeMetadata.js → pipeline/loadCodeVariant/mergeCodeMetadata.js} +3 -3
- package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/parseCode.d.ts +1 -1
- package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/transformSource.d.ts +1 -1
- package/esm/pipeline/loadPrecomputedCodeHighlighter/loadPrecomputedCodeHighlighter.d.ts +5 -0
- package/esm/pipeline/loadPrecomputedCodeHighlighter/loadPrecomputedCodeHighlighter.js +86 -13
- package/esm/pipeline/loadPrecomputedCodeHighlighter/performanceLogger.d.ts +30 -0
- package/esm/pipeline/loadPrecomputedCodeHighlighter/performanceLogger.js +77 -0
- package/esm/pipeline/loadPrecomputedCodeHighlighterClient/loadPrecomputedCodeHighlighterClient.js +7 -7
- package/esm/pipeline/loadPrecomputedSitemap/index.d.ts +2 -0
- package/esm/pipeline/loadPrecomputedSitemap/index.js +4 -0
- package/esm/pipeline/loadPrecomputedSitemap/loadPrecomputedSitemap.d.ts +10 -0
- package/esm/pipeline/loadPrecomputedSitemap/loadPrecomputedSitemap.js +213 -0
- package/esm/pipeline/loadServerCodeMeta/index.d.ts +2 -1
- package/esm/pipeline/loadServerCodeMeta/index.js +2 -1
- package/esm/pipeline/loadServerCodeMeta/loadServerCodeMeta.d.ts +1 -1
- package/esm/pipeline/loadServerCodeMeta/loadServerCodeMeta.js +2 -2
- package/esm/pipeline/{loaderUtils → loadServerCodeMeta}/resolveModulePathWithFs.d.ts +1 -1
- package/esm/pipeline/{loaderUtils → loadServerCodeMeta}/resolveModulePathWithFs.js +1 -1
- package/esm/pipeline/loadServerPageIndex/index.d.ts +2 -0
- package/esm/pipeline/loadServerPageIndex/index.js +1 -0
- package/esm/pipeline/loadServerPageIndex/loadServerPageIndex.d.ts +51 -0
- package/esm/pipeline/loadServerPageIndex/loadServerPageIndex.js +174 -0
- package/esm/pipeline/loadServerSitemap/index.d.ts +2 -0
- package/esm/pipeline/loadServerSitemap/index.js +1 -0
- package/esm/pipeline/loadServerSitemap/loadServerSitemap.d.ts +39 -0
- package/esm/pipeline/loadServerSitemap/loadServerSitemap.js +168 -0
- package/esm/pipeline/loadServerSource/loadServerSource.js +1 -1
- package/esm/pipeline/loaderUtils/externalsToPackages.js +1 -1
- package/esm/pipeline/loaderUtils/processRelativeImports.js +16 -3
- package/esm/pipeline/loaderUtils/rewriteImports.d.ts +36 -0
- package/esm/pipeline/loaderUtils/rewriteImports.js +139 -8
- package/esm/pipeline/syncPageIndex/createMarkdownNodes.d.ts +76 -0
- package/esm/pipeline/syncPageIndex/createMarkdownNodes.js +305 -0
- package/esm/pipeline/syncPageIndex/index.d.ts +1 -0
- package/esm/pipeline/syncPageIndex/index.js +1 -0
- package/esm/pipeline/syncPageIndex/mergeMetadataMarkdown.d.ts +58 -0
- package/esm/pipeline/syncPageIndex/mergeMetadataMarkdown.js +214 -0
- package/esm/pipeline/syncPageIndex/metadataToMarkdown.d.ts +67 -0
- package/esm/pipeline/syncPageIndex/metadataToMarkdown.js +1486 -0
- package/esm/pipeline/syncPageIndex/syncPageIndex.d.ts +108 -0
- package/esm/pipeline/syncPageIndex/syncPageIndex.js +540 -0
- package/esm/pipeline/transformHtmlCodePrecomputed/transformHtmlCodePrecomputed.d.ts +2 -2
- package/esm/pipeline/transformHtmlCodePrecomputed/transformHtmlCodePrecomputed.js +5 -5
- package/esm/pipeline/transformMarkdownBlockquoteCallouts/index.d.ts +2 -0
- package/esm/pipeline/transformMarkdownBlockquoteCallouts/index.js +4 -0
- package/esm/pipeline/transformMarkdownBlockquoteCallouts/transformMarkdownBlockquoteCallouts.d.ts +16 -0
- package/esm/pipeline/transformMarkdownBlockquoteCallouts/transformMarkdownBlockquoteCallouts.js +58 -0
- package/esm/pipeline/transformMarkdownDemoLinks/index.d.ts +2 -0
- package/esm/pipeline/transformMarkdownDemoLinks/index.js +4 -0
- package/esm/pipeline/transformMarkdownDemoLinks/transformMarkdownDemoLinks.d.ts +26 -0
- package/esm/pipeline/transformMarkdownDemoLinks/transformMarkdownDemoLinks.js +107 -0
- package/esm/pipeline/transformMarkdownMetadata/index.d.ts +2 -0
- package/esm/pipeline/transformMarkdownMetadata/index.js +4 -0
- package/esm/pipeline/transformMarkdownMetadata/transformMarkdownMetadata.d.ts +3 -0
- package/esm/pipeline/transformMarkdownMetadata/transformMarkdownMetadata.js +1010 -0
- package/esm/pipeline/transformMarkdownMetadata/types.d.ts +110 -0
- package/esm/pipeline/transformMarkdownMetadata/types.js +1 -0
- package/esm/pipeline/transformMarkdownRelativePaths/index.d.ts +2 -0
- package/esm/pipeline/transformMarkdownRelativePaths/index.js +4 -0
- package/esm/pipeline/transformMarkdownRelativePaths/transformMarkdownRelativePaths.d.ts +15 -0
- package/esm/pipeline/transformMarkdownRelativePaths/transformMarkdownRelativePaths.js +40 -0
- package/esm/useCode/Pre.js +15 -2
- package/esm/useCode/useCode.d.ts +15 -2
- package/esm/useCode/useCode.js +15 -6
- package/esm/useCode/useCodeUtils.js +3 -3
- package/esm/useCode/useFileNavigation.d.ts +9 -3
- package/esm/useCode/useFileNavigation.js +124 -81
- package/esm/useCode/useUIState.d.ts +4 -1
- package/esm/useCode/useUIState.js +17 -2
- package/esm/useCode/useVariantSelection.d.ts +8 -3
- package/esm/useCode/useVariantSelection.js +144 -52
- package/esm/useCopier/index.js +5 -4
- package/esm/useDemo/createCodeSandbox.d.ts +1 -1
- package/esm/useDemo/createStackBlitz.d.ts +1 -1
- package/esm/useDemo/exportVariant.js +13 -11
- package/esm/useDemo/index.d.ts +1 -1
- package/esm/useDemo/index.js +1 -1
- package/esm/useDemo/useDemo.d.ts +5 -5
- package/esm/useDemo/useDemo.js +6 -6
- package/esm/useErrors/useErrors.d.ts +1 -1
- package/esm/useErrors/useErrors.js +6 -2
- package/esm/useSearch/index.d.ts +1 -0
- package/esm/useSearch/index.js +1 -0
- package/esm/useSearch/types.d.ts +165 -0
- package/esm/useSearch/types.js +1 -0
- package/esm/useSearch/useSearch.d.ts +56 -0
- package/esm/useSearch/useSearch.js +647 -0
- package/esm/withDocsInfra/withDeploymentConfig.js +4 -2
- package/esm/withDocsInfra/withDocsInfra.d.ts +39 -0
- package/esm/withDocsInfra/withDocsInfra.js +79 -7
- package/package.json +106 -6
- package/esm/CodeHighlighter/transformParsedSource.d.ts +0 -3
- /package/esm/{CodeHighlighter/addPathsToVariant.js → pipeline/loadCodeVariant/addCodeVariantPaths.js} +0 -0
- /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/calculateMainFilePath.d.ts +0 -0
- /package/esm/{CodeHighlighter/hasAllVariants.js → pipeline/loadCodeVariant/hasAllCodeVariants.js} +0 -0
- /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/parseCode.js +0 -0
- /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/pathUtils.d.ts +0 -0
- /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/pathUtils.js +0 -0
- /package/esm/{CodeHighlighter → pipeline/loadCodeVariant}/transformSource.js +0 -0
package/esm/{CodeHighlighter/transformCode.js → pipeline/loadCodeVariant/computeHastDeltas.js}
RENAMED
|
@@ -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 {
|
|
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
|
|
89
|
-
return
|
|
88
|
+
export function computeVariantDeltas(_x, _x2, _x3) {
|
|
89
|
+
return _computeVariantDeltas.apply(this, arguments);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
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
|
|
97
|
-
|
|
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
|
|
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
|
|
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
|
|
184
|
+
return _computeVariantDeltas.apply(this, arguments);
|
|
181
185
|
}
|
|
182
|
-
export function
|
|
183
|
-
return
|
|
186
|
+
export function computeHastDeltas(_x4, _x5) {
|
|
187
|
+
return _computeHastDeltas.apply(this, arguments);
|
|
184
188
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
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
|
|
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
|
|
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>>;
|
package/esm/{CodeHighlighter/transformParsedSource.js → pipeline/loadCodeVariant/diffHast.js}
RENAMED
|
@@ -9,11 +9,11 @@ var differ = create({
|
|
|
9
9
|
omitRemovedValues: true,
|
|
10
10
|
cloneDiffValues: true
|
|
11
11
|
});
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function diffHast(_x, _x2, _x3, _x4, _x5) {
|
|
13
|
+
return _diffHast.apply(this, arguments);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
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
|
|
59
|
+
return _diffHast.apply(this, arguments);
|
|
60
60
|
}
|
package/esm/{CodeHighlighter/examineVariant.d.ts → pipeline/loadCodeVariant/examineCodeVariant.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Variant examination utility for analyzing variant structure and paths
|
|
3
3
|
*/
|
|
4
|
-
import type { VariantCode } from "
|
|
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
|
|
24
|
+
export declare function examineCodeVariant(variant: VariantCode): PathContext;
|
|
25
25
|
export {};
|
package/esm/{CodeHighlighter/examineVariant.js → pipeline/loadCodeVariant/examineCodeVariant.js}
RENAMED
|
@@ -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
|
|
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;
|
package/esm/{useDemo/flattenVariant.d.ts → pipeline/loadCodeVariant/flattenCodeVariant.d.ts}
RENAMED
|
@@ -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 "
|
|
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
|
|
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 "../
|
|
9
|
-
import { addPathsToVariant } from "
|
|
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
|
|
15
|
+
export function flattenCodeVariant(variant) {
|
|
16
16
|
var result = {};
|
|
17
17
|
|
|
18
18
|
// Use addPathsToVariant to get the structured paths
|
|
@@ -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";
|
package/esm/{CodeHighlighter/loadFallbackCode.d.ts → pipeline/loadCodeVariant/loadCodeFallback.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Code, VariantExtraFiles, VariantSource, LoadFallbackCodeOptions } from "
|
|
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
|
|
10
|
+
export declare function loadCodeFallback(url: string, initialVariant: string, loaded: Code | undefined, options?: LoadFallbackCodeOptions): Promise<FallbackVariants>;
|