@conloca/mdx 0.1.15 → 0.1.16

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 (44) hide show
  1. package/README.md +15 -5
  2. package/dist/blocks.d.ts +37 -0
  3. package/dist/blocks.d.ts.map +1 -0
  4. package/dist/blocks.js +51 -0
  5. package/dist/code-block-frame.d.ts +41 -0
  6. package/dist/code-block-frame.d.ts.map +1 -0
  7. package/dist/code-block-frame.js +186 -0
  8. package/dist/editor-core.d.ts +58 -0
  9. package/dist/editor-core.d.ts.map +1 -0
  10. package/dist/editor-core.js +181 -0
  11. package/dist/hooks/useMDXEvaluation.d.ts +28 -0
  12. package/dist/hooks/useMDXEvaluation.d.ts.map +1 -0
  13. package/dist/hooks/useMDXEvaluation.js +117 -0
  14. package/dist/index.d.mts +74 -43
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.d.ts +8 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +4 -0
  19. package/dist/index.mjs +328 -237
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/markdown-options.d.ts +3 -0
  22. package/dist/markdown-options.d.ts.map +1 -0
  23. package/dist/markdown-options.js +19 -0
  24. package/dist/mdx/compile.d.ts +3 -0
  25. package/dist/mdx/compile.d.ts.map +1 -0
  26. package/dist/mdx/compile.js +27 -0
  27. package/dist/mdx/evaluate.d.ts +44 -0
  28. package/dist/mdx/evaluate.d.ts.map +1 -0
  29. package/dist/mdx/evaluate.js +57 -0
  30. package/dist/mdx-editor.d.ts +7 -0
  31. package/dist/mdx-editor.d.ts.map +1 -0
  32. package/dist/mdx-editor.js +7 -0
  33. package/dist/node.d.mts +0 -5
  34. package/dist/node.d.mts.map +1 -1
  35. package/dist/node.d.ts +17 -0
  36. package/dist/node.d.ts.map +1 -0
  37. package/dist/node.js +16 -0
  38. package/dist/node.mjs +26 -11
  39. package/dist/node.mjs.map +1 -1
  40. package/dist/style.css +88 -0
  41. package/dist/types.d.ts +16 -0
  42. package/dist/types.d.ts.map +1 -0
  43. package/dist/types.js +1 -0
  44. package/package.json +54 -15
package/package.json CHANGED
@@ -1,49 +1,55 @@
1
1
  {
2
2
  "name": "@conloca/mdx",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/conloca/conloca.git",
10
- "directory": "mdx"
10
+ "directory": "packages/mdx"
11
11
  },
12
12
  "main": "./dist/index.mjs",
13
13
  "module": "./dist/index.mjs",
14
14
  "dependencies": {
15
- "@conloca/content-api": "^0.1.15",
15
+ "@conloca/content-api": "0.1.16",
16
16
  "@mdx-js/mdx": "^3.1.1",
17
17
  "@mdx-js/react": "^3.1.1",
18
- "@mdxeditor/editor": "^3.52.3",
18
+ "@mdxeditor/editor": "^3.55.0",
19
+ "gray-matter": "^4.0.3",
19
20
  "lucide-react": "^0.564.0",
21
+ "mdast-util-to-markdown": "^2.1.2",
20
22
  "remark-frontmatter": "^5.0.0",
21
23
  "remark-gfm": "^4.0.0",
22
24
  "remark-mdx-frontmatter": "^5.2.0",
23
25
  "tslib": "^2.8.1"
24
26
  },
25
27
  "peerDependencies": {
26
- "react": "^19.0.0",
27
- "react-dom": "^19.0.0"
28
+ "react": "^19.2.5",
29
+ "react-dom": "^19.2.5"
28
30
  },
29
31
  "devDependencies": {
32
+ "@happy-dom/global-registrator": "20.6.1",
30
33
  "@testing-library/react": "^16.3.2",
34
+ "@tsdown/css": "^0.22.0",
31
35
  "@types/react": "19.2.14",
32
36
  "@types/react-dom": "19.2.3",
33
- "@happy-dom/global-registrator": "20.6.1",
34
37
  "happy-dom": "20.6.1",
38
+ "mdast-util-from-markdown": "^2.0.0",
39
+ "mdast-util-gfm": "^3.1.0",
40
+ "micromark-extension-gfm": "^3.0.0",
35
41
  "react": "19.2.4",
36
42
  "react-dom": "19.2.4"
37
43
  },
38
44
  "exports": {
39
45
  "./package.json": "./package.json",
40
46
  ".": {
41
- "types": "./dist/index.d.ts",
47
+ "types": "./dist/index.d.mts",
42
48
  "import": "./dist/index.mjs",
43
49
  "default": "./dist/index.mjs"
44
50
  },
45
51
  "./node": {
46
- "types": "./dist/node.d.ts",
52
+ "types": "./dist/node.d.mts",
47
53
  "import": "./dist/node.mjs",
48
54
  "default": "./dist/node.mjs"
49
55
  }
@@ -53,19 +59,52 @@
53
59
  "!**/*.tsbuildinfo"
54
60
  ],
55
61
  "scripts": {
56
- "build": "tsdown",
57
- "test": "tsc-bun-test",
58
- "test:watch": "bun test --watch"
62
+ "test": "nx run mdx:test --outputStyle=stream"
59
63
  },
60
64
  "nx": {
61
65
  "targets": {
62
66
  "test": {
67
+ "dependsOn": [
68
+ "typecheck-tests",
69
+ "^build"
70
+ ],
71
+ "executor": "@smoothbricks/nx-plugin:bounded-exec",
72
+ "options": {
73
+ "command": "bun --conditions=production test",
74
+ "cwd": "{projectRoot}",
75
+ "timeoutMs": 120000,
76
+ "killAfterMs": 1e4
77
+ }
78
+ },
79
+ "lint": {},
80
+ "tsdown-js": {
81
+ "executor": "nx:run-commands",
82
+ "cache": true,
63
83
  "dependsOn": [
64
84
  "^build"
65
- ]
85
+ ],
86
+ "inputs": [
87
+ "{projectRoot}/src/**/*",
88
+ "{projectRoot}/tsdown.config.ts",
89
+ "{projectRoot}/tsconfig.lib.json",
90
+ "{projectRoot}/package.json"
91
+ ],
92
+ "outputs": [
93
+ "{projectRoot}/dist/**/*.mjs",
94
+ "{projectRoot}/dist/**/*.d.mts"
95
+ ],
96
+ "options": {
97
+ "command": "tsdown",
98
+ "cwd": "{projectRoot}"
99
+ }
66
100
  }
67
- }
101
+ },
102
+ "tags": [
103
+ "npm:public"
104
+ ],
105
+ "name": "mdx"
68
106
  },
69
107
  "type": "module",
70
- "types": "./dist/index.d.ts"
108
+ "types": "./dist/index.d.mts",
109
+ "license": "FSL-1.1-ALv2"
71
110
  }