moondown 0.1.0
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/LICENSE +201 -0
- package/README.md +435 -0
- package/dist/error-image-generic-FKEGJ3ZW.png +0 -0
- package/dist/index.cjs +8706 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +147 -0
- package/dist/index.js +8699 -0
- package/dist/index.js.map +7 -0
- package/dist/style.css +728 -0
- package/package.json +89 -0
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "moondown",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Headless Markdown editor built on CodeMirror 6 with widgets, slash commands, tables, and AI hooks.",
|
|
5
|
+
"packageManager": "pnpm@10.33.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": "./dist/style.css",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"setup": "bash ./scripts/setup-env.sh",
|
|
29
|
+
"doctor": "node ./scripts/doctor.mjs",
|
|
30
|
+
"dev": "node ./scripts/run-playground-server.mjs",
|
|
31
|
+
"build": "node ./scripts/build-with-esbuild.mjs",
|
|
32
|
+
"build:lib": "node ./scripts/build-with-esbuild.mjs",
|
|
33
|
+
"build:esbuild": "node ./scripts/build-with-esbuild.mjs",
|
|
34
|
+
"build:playground": "node ./scripts/build-playground.mjs",
|
|
35
|
+
"plugin:new": "node ./scripts/create-plugin-scaffold.mjs",
|
|
36
|
+
"check": "tsc --noEmit",
|
|
37
|
+
"preview": "node ./scripts/run-playground-server.mjs",
|
|
38
|
+
"test:unit": "node ./scripts/build-with-esbuild.mjs && tsx --test test/unit-runner.ts",
|
|
39
|
+
"test:unit:watch": "node ./scripts/build-with-esbuild.mjs && tsx --watch --test test/unit-runner.ts",
|
|
40
|
+
"test:coverage": "echo \"Coverage by Vitest is unavailable in current env; use e2e + unit reports.\" && pnpm run test:unit",
|
|
41
|
+
"test:e2e": "env -u FORCE_COLOR -u NO_COLOR playwright test test/e2e/moondown.spec.ts",
|
|
42
|
+
"test:e2e:real-ai": "env -u FORCE_COLOR -u NO_COLOR MOONDOWN_AI_REAL=true playwright test test/e2e/ai-real.spec.ts",
|
|
43
|
+
"test:ai:smoke": "node ./scripts/run-ai-smoke.mjs",
|
|
44
|
+
"test:all": "pnpm run test:unit && pnpm run test:e2e",
|
|
45
|
+
"test:full": "pnpm run check && pnpm run build && pnpm run test:unit && pnpm run test:e2e"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"markdown",
|
|
49
|
+
"editor",
|
|
50
|
+
"codemirror",
|
|
51
|
+
"headless",
|
|
52
|
+
"wysiwyg"
|
|
53
|
+
],
|
|
54
|
+
"license": "Apache-2.0",
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22.0.0",
|
|
57
|
+
"pnpm": ">=10.0.0"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@codemirror/autocomplete": "^6.19.1",
|
|
64
|
+
"@codemirror/commands": "^6.8.1",
|
|
65
|
+
"@codemirror/lang-markdown": "^6.3.2",
|
|
66
|
+
"@codemirror/language": "^6.11.3",
|
|
67
|
+
"@codemirror/language-data": "^6.5.1",
|
|
68
|
+
"@codemirror/state": "^6.5.2",
|
|
69
|
+
"@codemirror/view": "^6.38.6",
|
|
70
|
+
"@lezer/common": "^1.3.0",
|
|
71
|
+
"@lezer/highlight": "^1.2.3",
|
|
72
|
+
"@lezer/markdown": "^1.6.0",
|
|
73
|
+
"@popperjs/core": "^2.11.8",
|
|
74
|
+
"katex": "^0.16.45",
|
|
75
|
+
"lucide": "^0.552.0",
|
|
76
|
+
"mermaid": "^11.14.0",
|
|
77
|
+
"tippy.js": "^6.3.7"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@playwright/test": "^1.59.1",
|
|
81
|
+
"@types/jsdom": "^28.0.1",
|
|
82
|
+
"@types/node": "^25.6.0",
|
|
83
|
+
"esbuild": "^0.25.12",
|
|
84
|
+
"jsdom": "^22.1.0",
|
|
85
|
+
"openai": "^6.34.0",
|
|
86
|
+
"tsx": "^4.21.0",
|
|
87
|
+
"typescript": "^5.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|