@mintlify/common 1.0.651 → 1.0.652
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/getFileCategory.d.ts +4 -1
- package/dist/getFileCategory.js +18 -7
- package/dist/mdx/snippets/buildImportMap.d.ts +9 -0
- package/dist/mdx/snippets/buildImportMap.js +19 -0
- package/dist/mdx/snippets/constants.js +1 -1
- package/dist/mdx/snippets/extractImportSources.d.ts +2 -0
- package/dist/mdx/snippets/extractImportSources.js +15 -0
- package/dist/mdx/snippets/index.d.ts +10 -6
- package/dist/mdx/snippets/index.js +10 -6
- package/dist/mdx/snippets/isImportedAsSnippet.d.ts +1 -0
- package/dist/mdx/snippets/isImportedAsSnippet.js +7 -0
- package/dist/mdx/snippets/isSnippetExtension.d.ts +1 -0
- package/dist/mdx/snippets/isSnippetExtension.js +5 -0
- package/dist/mdx/snippets/resolveAllImports.js +3 -3
- package/dist/mdx/snippets/resolveImportPath.d.ts +8 -0
- package/dist/mdx/snippets/{resolveSnippetImportPath.js → resolveImportPath.js} +9 -13
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/mdx/snippets/resolveSnippetImportPath.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.652",
|
|
4
4
|
"description": "Commonly shared code within Mintlify",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"typescript": "5.5.3",
|
|
112
112
|
"vitest": "2.0.4"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "f3cb7f5adfd7d8bbfa1a9dad9f7f4b2cf432e1e3"
|
|
115
115
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves an import path to an absolute path with leading slash.
|
|
3
|
-
* Only allows imports that resolve to files in /snippets/.
|
|
4
|
-
*
|
|
5
|
-
* @param source The import source path (e.g., '/snippets/foo.mdx' or '../snippets/bar.mdx')
|
|
6
|
-
* @param importingFilePath The path of the file containing the import
|
|
7
|
-
* @returns The resolved absolute path with leading slash, or null if invalid or not in snippets folder
|
|
8
|
-
*/
|
|
9
|
-
export declare const resolveSnippetImportPath: (source: string, importingFilePath: string) => string | null;
|