@mintlify/common 1.0.41 → 1.0.43

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 (66) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.js +3 -2
  3. package/dist/mdx/getMDXOptions.d.ts +3 -0
  4. package/dist/mdx/getMDXOptions.js +32 -0
  5. package/dist/mdx/index.d.ts +3 -0
  6. package/dist/mdx/index.js +3 -0
  7. package/dist/mdx/lib/findExportedNode.d.ts +2 -0
  8. package/dist/mdx/lib/findExportedNode.js +30 -0
  9. package/dist/mdx/lib/index.d.ts +3 -0
  10. package/dist/mdx/lib/index.js +3 -0
  11. package/dist/mdx/lib/mdx-utils.d.ts +8 -0
  12. package/dist/mdx/lib/mdx-utils.js +8 -0
  13. package/dist/mdx/lib/remark-utils.d.ts +13 -0
  14. package/dist/mdx/lib/remark-utils.js +136 -0
  15. package/dist/mdx/plugins/index.d.ts +2 -0
  16. package/dist/mdx/plugins/index.js +2 -0
  17. package/dist/mdx/plugins/rehype/index.d.ts +8 -0
  18. package/dist/mdx/plugins/rehype/index.js +8 -0
  19. package/dist/mdx/plugins/rehype/rehypeCodeBlocks.d.ts +4 -0
  20. package/dist/mdx/plugins/rehype/rehypeCodeBlocks.js +44 -0
  21. package/dist/mdx/plugins/rehype/rehypeLayouts.d.ts +1 -0
  22. package/dist/mdx/plugins/rehype/rehypeLayouts.js +133 -0
  23. package/dist/mdx/plugins/rehype/rehypeListRoles.d.ts +1 -0
  24. package/dist/mdx/plugins/rehype/rehypeListRoles.js +10 -0
  25. package/dist/mdx/plugins/rehype/rehypeMdxExtractExamples.d.ts +2 -0
  26. package/dist/mdx/plugins/rehype/rehypeMdxExtractExamples.js +64 -0
  27. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/findParentSchema.d.ts +3 -0
  28. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/findParentSchema.js +9 -0
  29. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/index.d.ts +3 -0
  30. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/index.js +93 -0
  31. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/insertSchema.d.ts +17 -0
  32. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/insertSchema.js +83 -0
  33. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/parsers.d.ts +24 -0
  34. package/dist/mdx/plugins/rehype/rehypeMdxInjectEndpoint/parsers.js +251 -0
  35. package/dist/mdx/plugins/rehype/rehypeMdxRemoveUnknownJsx/createCommentNode.d.ts +15 -0
  36. package/dist/mdx/plugins/rehype/rehypeMdxRemoveUnknownJsx/createCommentNode.js +20 -0
  37. package/dist/mdx/plugins/rehype/rehypeMdxRemoveUnknownJsx/index.d.ts +5 -0
  38. package/dist/mdx/plugins/rehype/rehypeMdxRemoveUnknownJsx/index.js +18 -0
  39. package/dist/mdx/plugins/rehype/rehypeRawComponents.d.ts +1 -0
  40. package/dist/mdx/plugins/rehype/rehypeRawComponents.js +12 -0
  41. package/dist/mdx/plugins/rehype/rehypeZoomImages.d.ts +2 -0
  42. package/dist/mdx/plugins/rehype/rehypeZoomImages.js +15 -0
  43. package/dist/mdx/plugins/remark/index.d.ts +7 -0
  44. package/dist/mdx/plugins/remark/index.js +7 -0
  45. package/dist/mdx/plugins/remark/remarkFrames.d.ts +1 -0
  46. package/dist/mdx/plugins/remark/remarkFrames.js +37 -0
  47. package/dist/mdx/plugins/remark/remarkMdxInjectRequire.d.ts +3 -0
  48. package/dist/mdx/plugins/remark/remarkMdxInjectRequire.js +23 -0
  49. package/dist/mdx/plugins/remark/remarkMdxInjectSnippets.d.ts +3 -0
  50. package/dist/mdx/plugins/remark/remarkMdxInjectSnippets.js +26 -0
  51. package/dist/mdx/plugins/remark/remarkMdxRemoveJs/index.d.ts +2 -0
  52. package/dist/mdx/plugins/remark/remarkMdxRemoveJs/index.js +20 -0
  53. package/dist/mdx/plugins/remark/remarkMdxWrapDangerouslySetInnerHtml.d.ts +2 -0
  54. package/dist/mdx/plugins/remark/remarkMdxWrapDangerouslySetInnerHtml.js +28 -0
  55. package/dist/mdx/plugins/remark/remarkRemoveImports.d.ts +2 -0
  56. package/dist/mdx/plugins/remark/remarkRemoveImports.js +11 -0
  57. package/dist/mdx/plugins/remark/remarkTableOfContents.d.ts +1 -0
  58. package/dist/mdx/plugins/remark/remarkTableOfContents.js +57 -0
  59. package/dist/topologicalSort.d.ts +4 -0
  60. package/dist/topologicalSort.js +19 -0
  61. package/dist/tsconfig.build.tsbuildinfo +1 -1
  62. package/dist/types/mdx/UserDefinedExampleData.d.ts +15 -0
  63. package/dist/types/mdx/UserDefinedExampleData.js +1 -0
  64. package/dist/types/mdx/index.d.ts +1 -0
  65. package/dist/types/mdx/index.js +1 -0
  66. package/package.json +23 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/common",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "Commonly shared code within Mintlify",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -29,24 +29,43 @@
29
29
  "license": "ISC",
30
30
  "dependencies": {
31
31
  "@apidevtools/swagger-parser": "^10.1.0",
32
+ "@mintlify/mdx": "0.0.33",
32
33
  "@mintlify/models": "0.0.62",
33
34
  "@mintlify/validation": "0.1.114",
35
+ "@sindresorhus/slugify": "^2.1.1",
36
+ "acorn": "^8.11.2",
34
37
  "acorn-jsx": "^5.3.2",
35
38
  "esast-util-from-js": "^2.0.0",
36
39
  "estree-util-to-js": "^2.0.0",
37
40
  "gray-matter": "^4.0.3",
41
+ "hast-util-from-html": "^1.0.0",
42
+ "hast-util-from-html-isomorphic": "^2.0.0",
43
+ "hast-util-to-html": "^8.0.3",
44
+ "hast-util-to-text": "^4.0.0",
45
+ "is-absolute-url": "^4.0.1",
38
46
  "lodash": "^4.17.21",
47
+ "mdast": "^3.0.0",
48
+ "mdast-util-from-markdown": "^1.2.0",
49
+ "mdast-util-gfm": "^2.0.1",
39
50
  "mdast-util-mdx": "^2.0.0",
40
51
  "mdast-util-mdx-jsx": "^2.1.2",
52
+ "mdast-util-mdxjs-esm": "^1.3.0",
53
+ "micromark-extension-mdx-jsx": "^1.0.3",
54
+ "micromark-extension-mdxjs": "^1.0.0",
55
+ "micromark-extension-mdxjs-esm": "^1.0.0",
41
56
  "openapi-types": "^12.0.0",
42
57
  "remark": "^14.0.2",
43
58
  "remark-frontmatter": "^4.0.1",
44
59
  "remark-gfm": "^3.0.1",
45
60
  "remark-math": "^5.1.1",
46
61
  "remark-mdx": "^2.0.0",
62
+ "unist-builder": "^3.0.1",
63
+ "unist-util-map": "^3.1.2",
47
64
  "unist-util-remove": "^3.1.0",
48
65
  "unist-util-remove-position": "^4.0.0",
49
- "unist-util-visit": "^4.1.1"
66
+ "unist-util-visit": "^4.1.1",
67
+ "unist-util-visit-parents": "^5.0.0",
68
+ "vfile": "^5.3.6"
50
69
  },
51
70
  "devDependencies": {
52
71
  "@mintlify/eslint-config": "^1.0.4",
@@ -54,6 +73,7 @@
54
73
  "@mintlify/ts-config": "^2.0.2",
55
74
  "@tsconfig/recommended": "1.x",
56
75
  "@types/estree-jsx": "^1.0.0",
76
+ "@types/hast": "^3.0.0",
57
77
  "@types/mdast": "^3.0.10",
58
78
  "@typescript-eslint/eslint-plugin": "6.x",
59
79
  "@typescript-eslint/parser": "6.x",
@@ -67,5 +87,5 @@
67
87
  "unified": "^10.0.0",
68
88
  "vitest": "^0.34.6"
69
89
  },
70
- "gitHead": "8560c44e1938c0fa26e03b4866530eaaa68ea502"
90
+ "gitHead": "d04766d50b6dae9c0fb59cae1aa6d43a24949d29"
71
91
  }