@mintlify/common 1.0.363 → 1.0.365
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/mdx/astUtils.d.ts +7 -0
- package/dist/mdx/astUtils.js +11 -0
- package/dist/mdx/index.d.ts +1 -0
- package/dist/mdx/index.js +1 -0
- package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/index.d.ts +1 -1
- package/dist/mdx/remark.d.ts +4 -2
- package/dist/mdx/remark.js +2 -0
- package/dist/mdx/snippets/findAndRemoveExports.d.ts +2 -4
- package/dist/mdx/snippets/findAndRemoveExports.js +10 -29
- package/dist/mdx/snippets/findAndRemoveImports.d.ts +6 -5
- package/dist/mdx/snippets/findAndRemoveImports.js +40 -48
- package/dist/mdx/snippets/getExportMap.d.ts +0 -1
- package/dist/mdx/snippets/getExportMap.js +0 -29
- package/dist/mdx/snippets/resolveAllImports.d.ts +2 -1
- package/dist/mdx/snippets/resolveAllImports.js +9 -9
- package/dist/mdx/snippets/resolveImport/findExport.d.ts +3 -2
- package/dist/mdx/snippets/resolveImport/findExport.js +3 -5
- package/dist/mdx/snippets/resolveImport/index.d.ts +2 -1
- package/dist/mdx/snippets/resolveImport/index.js +4 -2
- package/dist/mdx/snippets/resolveImport/injectToTopOfFile.d.ts +8 -0
- package/dist/mdx/snippets/resolveImport/injectToTopOfFile.js +17 -0
- package/dist/mdx/snippets/resolveImport/resolveComponentWithContent.d.ts +5 -3
- package/dist/mdx/snippets/resolveImport/resolveComponentWithContent.js +20 -30
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/mdx/index.d.ts +2 -1
- package/dist/types/mdx/snippets/import.d.ts +2 -1
- package/package.json +4 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Directive, Statement, ModuleDeclaration } from 'estree-jsx';
|
|
2
|
+
import { Root } from 'mdast';
|
|
2
3
|
export type MdxNodeBodyChildType = Directive | Statement | ModuleDeclaration;
|
|
3
4
|
export type MdxNodeBodyType = Array<MdxNodeBodyChildType>;
|
|
4
5
|
export type FileType = {
|
|
5
6
|
filename: string;
|
|
6
|
-
|
|
7
|
+
tree: Root;
|
|
7
8
|
};
|
|
8
9
|
export type { MdxImportNode, FindAndRemoveImportsResponse, FileWithImports, } from './snippets/import.js';
|
|
9
10
|
export * from './snippets/import.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Root } from 'mdast';
|
|
1
2
|
export type MdxImportNode = {
|
|
2
3
|
source: string;
|
|
3
4
|
specifiers: ImportSpecifier[];
|
|
@@ -17,7 +18,7 @@ type Source = string;
|
|
|
17
18
|
export type ImportMap = Record<Source, ImportSpecifier[]>;
|
|
18
19
|
export type FindAndRemoveImportsResponse = {
|
|
19
20
|
importMap: ImportMap;
|
|
20
|
-
|
|
21
|
+
tree: Root;
|
|
21
22
|
};
|
|
22
23
|
export type FileWithImports = FindAndRemoveImportsResponse & {
|
|
23
24
|
filename: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.365",
|
|
4
4
|
"description": "Commonly shared code within Mintlify",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@mintlify/mdx": "^1.0.1",
|
|
33
33
|
"@mintlify/models": "0.0.188",
|
|
34
34
|
"@mintlify/openapi-parser": "^0.0.7",
|
|
35
|
-
"@mintlify/validation": "0.1.
|
|
35
|
+
"@mintlify/validation": "0.1.356",
|
|
36
36
|
"@sindresorhus/slugify": "^2.1.1",
|
|
37
37
|
"acorn": "^8.11.2",
|
|
38
38
|
"estree-util-to-js": "^2.0.0",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"remark-gfm": "^4.0.0",
|
|
56
56
|
"remark-math": "^6.0.0",
|
|
57
57
|
"remark-mdx": "^3.1.0",
|
|
58
|
+
"remark-stringify": "^11.0.0",
|
|
58
59
|
"unified": "^11.0.5",
|
|
59
60
|
"unist-builder": "^4.0.0",
|
|
60
61
|
"unist-util-map": "^4.0.0",
|
|
@@ -82,5 +83,5 @@
|
|
|
82
83
|
"typescript": "^5.5.3",
|
|
83
84
|
"vitest": "^2.0.4"
|
|
84
85
|
},
|
|
85
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "4ca254a6836942ae92f2fdfa29c9f24c5046ef8b"
|
|
86
87
|
}
|