@canofold/markdown 0.3.1 → 0.3.2

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 (33) hide show
  1. package/README.md +2 -0
  2. package/README.zh-CN.md +2 -0
  3. package/dist/ImageGallery-Bcpjlfh9.js +569 -0
  4. package/dist/Markdown-607_slPB.js +117 -0
  5. package/dist/assets-CqlggKr8.js +77 -0
  6. package/dist/client/bundler.js +308 -0
  7. package/dist/client/chunks/{client-CTpZrdpv.js → client-CHUUETWE.js} +3 -3
  8. package/dist/client/chunks/{gallery-BTg1qJjd.js → gallery-Cr0TgC1h.js} +2 -2
  9. package/dist/client/chunks/{image-BsfZtDsx.js → image-6_o7fPkU.js} +3 -3
  10. package/dist/client/chunks/provider-k1N-5njv.js +1037 -0
  11. package/dist/client/chunks/react-runtime-DRPMrVPX.js +12062 -0
  12. package/dist/client/chunks/{serialized-Ck9NBdg7.js → serialized-Chn9ydGA.js} +334 -295
  13. package/dist/client/chunks/{table-jaJMPch3.js → table-D99-Zhc8.js} +3 -3
  14. package/dist/client/index.js +1 -1
  15. package/dist/componentMap-CKSUGzQH.js +1483 -0
  16. package/dist/copyText-C0ZgrMnH.js +18 -0
  17. package/dist/{directiveValidation-BdVbgcY_.js → directiveValidation-B7LY-R5p.js} +187 -248
  18. package/dist/fileKinds-BPzIxbaS.js +170 -0
  19. package/dist/gallery-BqQ-i0TC.js +42 -0
  20. package/dist/image-CiPni6Az.js +38 -0
  21. package/dist/index.js +2 -2
  22. package/dist/plugins-CXYBB-oH.js +130 -0
  23. package/dist/{prepareMarkdown-DPMq7203.js → prepareMarkdown-CS6sALIb.js} +13 -11
  24. package/dist/provider-BJDHf4Z_.js +8 -0
  25. package/dist/serialized-DFiNQYA5.js +39 -0
  26. package/dist/server/analyze.js +11 -11
  27. package/dist/server.js +30 -28
  28. package/dist/table-DQSeLjVL.js +32 -0
  29. package/package.json +14 -9
  30. package/dist/Markdown-CPG2lcO7.js +0 -2127
  31. package/dist/client/chunks/provider-DNSHvvN7.js +0 -841
  32. package/dist/client/chunks/react-runtime-Dzgdzn6D.js +0 -10571
  33. package/dist/plugins-StkCS2su.js +0 -298
@@ -0,0 +1,32 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { hydrateRoot as t } from "react-dom/client";
3
+ import { a as s } from "./componentMap-CKSUGzQH.js";
4
+ import { a as d } from "./serialized-DFiNQYA5.js";
5
+ import { w as b } from "./provider-BJDHf4Z_.js";
6
+ function L(a, e) {
7
+ return t(
8
+ a,
9
+ b(
10
+ /* @__PURE__ */ l(
11
+ s,
12
+ {
13
+ className: a.className,
14
+ tableTitle: a.dataset.cfTableTitle,
15
+ copyLabel: a.dataset.cfCopyLabel,
16
+ copyFailureLabel: a.dataset.cfCopyFailureLabel,
17
+ downloadLabel: a.dataset.cfDownloadLabel,
18
+ zoomLabel: a.dataset.cfZoomLabel,
19
+ closeLabel: a.dataset.cfCloseLabel,
20
+ sortLabel: a.dataset.cfSortLabel,
21
+ serializedTable: a.dataset.cfTable,
22
+ inner: !0,
23
+ children: d(a.dataset.cfTable, e)
24
+ }
25
+ ),
26
+ e
27
+ )
28
+ );
29
+ }
30
+ export {
31
+ L as hydrate
32
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canofold/markdown",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "An interactive, themeable Markdown renderer for knowledge and documentation sites.",
5
5
  "license": "MIT",
6
6
  "author": "Canofold Contributors",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "./client": {
31
31
  "types": "./dist/client.d.ts",
32
- "import": "./dist/client/index.js",
32
+ "import": "./dist/client/bundler.js",
33
33
  "default": "./dist/client/index.js"
34
34
  },
35
35
  "./server": {
@@ -70,7 +70,7 @@
70
70
  "@shikijs/types": "^4.4.3",
71
71
  "github-slugger": "^2.0.0",
72
72
  "hast-util-to-jsx-runtime": "^2.3.6",
73
- "lucide-react": "1.34.0",
73
+ "lucide-react": "1.46.0",
74
74
  "rehype-raw": "^7.0.0",
75
75
  "rehype-sanitize": "^6.0.0",
76
76
  "rehype-slug": "^6.0.0",
@@ -88,21 +88,26 @@
88
88
  "@types/estree": "^1.0.9",
89
89
  "@types/hast": "^3.0.5",
90
90
  "@types/mdast": "^4.0.4",
91
- "@types/node": "^22.10.0",
92
- "@types/react": "^19.2.18",
93
- "@types/react-dom": "^19.2.7",
91
+ "@types/node": "^22.20.3",
92
+ "@types/react": "^19.3.0",
93
+ "@types/react-dom": "^19.3.0",
94
94
  "@types/unist": "^3.0.3",
95
95
  "mdast-util-directive": "^3.1.0",
96
96
  "mdast-util-to-hast": "^13.2.1",
97
- "react": "^19.2.8",
98
- "react-dom": "^19.2.8",
97
+ "react": "^19.3.0",
98
+ "react-dom": "^19.3.0",
99
99
  "tailwindcss": "^4.3.3",
100
100
  "typescript": "^6.0.3",
101
101
  "vite": "^6.4.3",
102
102
  "vitest": "^4.1.11"
103
103
  },
104
104
  "scripts": {
105
- "build": "vite build && vite build -c vite.client.config.ts && tsc -p tsconfig.build.json && tailwindcss -i ./src/tailwind.css -o ./dist/base.css --minify && node scripts/build-css.mjs",
105
+ "build": "vite build && vite build -c vite.client.config.ts && tsc -p tsconfig.build.json && tailwindcss -i ./src/tailwind.css -o ./dist/base.css --minify",
106
+ "dev": "pnpm --parallel --stream run \"/^dev:.+/\"",
107
+ "dev:library": "vite build --watch --mode development",
108
+ "dev:client": "vite build --watch --mode development -c vite.client.config.ts",
109
+ "dev:types": "tsc -p tsconfig.build.json --watch --preserveWatchOutput",
110
+ "dev:styles": "tailwindcss -i ./src/tailwind.css -o ./dist/base.css --minify --watch=always --poll=250",
106
111
  "test:browser": "node scripts/test-browser-build.mjs",
107
112
  "typecheck": "tsc --noEmit",
108
113
  "test": "vitest run --root ../.. packages/markdown"