mossmd 0.8.1
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/CHANGELOG.md +87 -0
- package/LICENSE +21 -0
- package/README.md +336 -0
- package/dist/collab/index.d.ts +14 -0
- package/dist/collab/index.d.ts.map +1 -0
- package/dist/collab/index.js +6 -0
- package/dist/collab/index.js.map +1 -0
- package/dist/core/code-languages.d.ts +3 -0
- package/dist/core/code-languages.d.ts.map +1 -0
- package/dist/core/code-languages.js +130 -0
- package/dist/core/code-languages.js.map +1 -0
- package/dist/core/decoration-utils.d.ts +4 -0
- package/dist/core/decoration-utils.d.ts.map +1 -0
- package/dist/core/decoration-utils.js +25 -0
- package/dist/core/decoration-utils.js.map +1 -0
- package/dist/core/edit-helpers.d.ts +13 -0
- package/dist/core/edit-helpers.d.ts.map +1 -0
- package/dist/core/edit-helpers.js +318 -0
- package/dist/core/edit-helpers.js.map +1 -0
- package/dist/core/icons.d.ts +16 -0
- package/dist/core/icons.d.ts.map +1 -0
- package/dist/core/icons.js +86 -0
- package/dist/core/icons.js.map +1 -0
- package/dist/core/inline-preview.d.ts +32 -0
- package/dist/core/inline-preview.d.ts.map +1 -0
- package/dist/core/inline-preview.js +925 -0
- package/dist/core/inline-preview.js.map +1 -0
- package/dist/core/list-editing.d.ts +10 -0
- package/dist/core/list-editing.d.ts.map +1 -0
- package/dist/core/list-editing.js +244 -0
- package/dist/core/list-editing.js.map +1 -0
- package/dist/core/list-model.d.ts +40 -0
- package/dist/core/list-model.d.ts.map +1 -0
- package/dist/core/list-model.js +114 -0
- package/dist/core/list-model.js.map +1 -0
- package/dist/core/list-navigation.d.ts +3 -0
- package/dist/core/list-navigation.d.ts.map +1 -0
- package/dist/core/list-navigation.js +234 -0
- package/dist/core/list-navigation.js.map +1 -0
- package/dist/core/markdown-context.d.ts +3 -0
- package/dist/core/markdown-context.d.ts.map +1 -0
- package/dist/core/markdown-context.js +10 -0
- package/dist/core/markdown-context.js.map +1 -0
- package/dist/core/preview-activity.d.ts +18 -0
- package/dist/core/preview-activity.d.ts.map +1 -0
- package/dist/core/preview-activity.js +199 -0
- package/dist/core/preview-activity.js.map +1 -0
- package/dist/core/preview-widgets.d.ts +65 -0
- package/dist/core/preview-widgets.d.ts.map +1 -0
- package/dist/core/preview-widgets.js +359 -0
- package/dist/core/preview-widgets.js.map +1 -0
- package/dist/core/read-only.d.ts +26 -0
- package/dist/core/read-only.d.ts.map +1 -0
- package/dist/core/read-only.js +49 -0
- package/dist/core/read-only.js.map +1 -0
- package/dist/core/tree-progress.d.ts +29 -0
- package/dist/core/tree-progress.d.ts.map +1 -0
- package/dist/core/tree-progress.js +143 -0
- package/dist/core/tree-progress.js.map +1 -0
- package/dist/editor.d.ts +219 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +551 -0
- package/dist/editor.js.map +1 -0
- package/dist/features/callout/index.d.ts +9 -0
- package/dist/features/callout/index.d.ts.map +1 -0
- package/dist/features/callout/index.js +223 -0
- package/dist/features/callout/index.js.map +1 -0
- package/dist/features/file-blocks/index.d.ts +12 -0
- package/dist/features/file-blocks/index.d.ts.map +1 -0
- package/dist/features/file-blocks/index.js +397 -0
- package/dist/features/file-blocks/index.js.map +1 -0
- package/dist/features/image/index.d.ts +28 -0
- package/dist/features/image/index.d.ts.map +1 -0
- package/dist/features/image/index.js +699 -0
- package/dist/features/image/index.js.map +1 -0
- package/dist/features/index.d.ts +17 -0
- package/dist/features/index.d.ts.map +1 -0
- package/dist/features/index.js +9 -0
- package/dist/features/index.js.map +1 -0
- package/dist/features/search/index.d.ts +4 -0
- package/dist/features/search/index.d.ts.map +1 -0
- package/dist/features/search/index.js +131 -0
- package/dist/features/search/index.js.map +1 -0
- package/dist/features/slash-commands/index.d.ts +52 -0
- package/dist/features/slash-commands/index.d.ts.map +1 -0
- package/dist/features/slash-commands/index.js +422 -0
- package/dist/features/slash-commands/index.js.map +1 -0
- package/dist/features/table/index.d.ts +44 -0
- package/dist/features/table/index.d.ts.map +1 -0
- package/dist/features/table/index.js +1262 -0
- package/dist/features/table/index.js.map +1 -0
- package/dist/features/upload/index.d.ts +80 -0
- package/dist/features/upload/index.d.ts.map +1 -0
- package/dist/features/upload/index.js +790 -0
- package/dist/features/upload/index.js.map +1 -0
- package/dist/features/wiki-links/index.d.ts +27 -0
- package/dist/features/wiki-links/index.d.ts.map +1 -0
- package/dist/features/wiki-links/index.js +577 -0
- package/dist/features/wiki-links/index.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/content.css +247 -0
- package/dist/styles/inline-preview.css +2116 -0
- package/dist/styles/tokens.css +234 -0
- package/dist/syntax/highlight.d.ts +10 -0
- package/dist/syntax/highlight.d.ts.map +1 -0
- package/dist/syntax/highlight.js +75 -0
- package/dist/syntax/highlight.js.map +1 -0
- package/dist/syntax/index.d.ts +16 -0
- package/dist/syntax/index.d.ts.map +1 -0
- package/dist/syntax/index.js +29 -0
- package/dist/syntax/index.js.map +1 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +204 -0
- package/dist/theme/index.js.map +1 -0
- package/package.json +237 -0
package/package.json
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mossmd",
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"description": "CodeMirror 6 markdown editor with Obsidian-style inline live preview and custom block syntax extensions.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"codemirror",
|
|
7
|
+
"codemirror6",
|
|
8
|
+
"markdown",
|
|
9
|
+
"editor",
|
|
10
|
+
"wysiwyg",
|
|
11
|
+
"live-preview",
|
|
12
|
+
"obsidian",
|
|
13
|
+
"react"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "vioulo",
|
|
17
|
+
"homepage": "https://github.com/vioulo/mossmd#readme",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/vioulo/mossmd.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/vioulo/mossmd/issues"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"module": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./code-languages": {
|
|
35
|
+
"types": "./dist/core/code-languages.d.ts",
|
|
36
|
+
"default": "./dist/core/code-languages.js"
|
|
37
|
+
},
|
|
38
|
+
"./theme": {
|
|
39
|
+
"types": "./dist/theme/index.d.ts",
|
|
40
|
+
"default": "./dist/theme/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./features": {
|
|
43
|
+
"types": "./dist/features/index.d.ts",
|
|
44
|
+
"default": "./dist/features/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./features/image": {
|
|
47
|
+
"types": "./dist/features/image/index.d.ts",
|
|
48
|
+
"default": "./dist/features/image/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./features/table": {
|
|
51
|
+
"types": "./dist/features/table/index.d.ts",
|
|
52
|
+
"default": "./dist/features/table/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./features/wiki-links": {
|
|
55
|
+
"types": "./dist/features/wiki-links/index.d.ts",
|
|
56
|
+
"default": "./dist/features/wiki-links/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./features/callout": {
|
|
59
|
+
"types": "./dist/features/callout/index.d.ts",
|
|
60
|
+
"default": "./dist/features/callout/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./features/slash-commands": {
|
|
63
|
+
"types": "./dist/features/slash-commands/index.d.ts",
|
|
64
|
+
"default": "./dist/features/slash-commands/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./features/upload": {
|
|
67
|
+
"types": "./dist/features/upload/index.d.ts",
|
|
68
|
+
"default": "./dist/features/upload/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./icons": {
|
|
71
|
+
"types": "./dist/core/icons.d.ts",
|
|
72
|
+
"default": "./dist/core/icons.js"
|
|
73
|
+
},
|
|
74
|
+
"./features/search": {
|
|
75
|
+
"types": "./dist/features/search/index.d.ts",
|
|
76
|
+
"default": "./dist/features/search/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./editor.css": "./dist/styles/inline-preview.css",
|
|
79
|
+
"./styles.css": "./dist/styles/inline-preview.css",
|
|
80
|
+
"./content.css": "./dist/styles/content.css",
|
|
81
|
+
"./tokens.css": "./dist/styles/tokens.css",
|
|
82
|
+
"./collab": {
|
|
83
|
+
"types": "./dist/collab/index.d.ts",
|
|
84
|
+
"default": "./dist/collab/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./syntax": {
|
|
87
|
+
"types": "./dist/syntax/index.d.ts",
|
|
88
|
+
"default": "./dist/syntax/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./syntax/highlight": {
|
|
91
|
+
"types": "./dist/syntax/highlight.d.ts",
|
|
92
|
+
"default": "./dist/syntax/highlight.js"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"files": [
|
|
96
|
+
"dist",
|
|
97
|
+
"README.md",
|
|
98
|
+
"LICENSE",
|
|
99
|
+
"CHANGELOG.md"
|
|
100
|
+
],
|
|
101
|
+
"sideEffects": [
|
|
102
|
+
"**/*.css"
|
|
103
|
+
],
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=18"
|
|
106
|
+
},
|
|
107
|
+
"publishConfig": {
|
|
108
|
+
"access": "public"
|
|
109
|
+
},
|
|
110
|
+
"scripts": {
|
|
111
|
+
"dev": "vite --host 0.0.0.0",
|
|
112
|
+
"clean:dist": "bun scripts/clean-dist.mjs",
|
|
113
|
+
"build": "bun run clean:dist && tsc -p tsconfig.build.json && mkdir -p dist/styles && cp src/styles/*.css dist/styles/",
|
|
114
|
+
"build:demo": "vite build",
|
|
115
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
116
|
+
"test": "vitest run",
|
|
117
|
+
"test:watch": "vitest",
|
|
118
|
+
"test:e2e": "playwright test",
|
|
119
|
+
"test:e2e:headed": "playwright test --project=chromium --headed",
|
|
120
|
+
"test:package": "node scripts/test-package.mjs",
|
|
121
|
+
"prepare": "bun run build",
|
|
122
|
+
"prepublishOnly": "bun run typecheck && bun run test && bun run build"
|
|
123
|
+
},
|
|
124
|
+
"peerDependencies": {
|
|
125
|
+
"@codemirror/autocomplete": "^6.0.0",
|
|
126
|
+
"@codemirror/commands": "^6.0.0",
|
|
127
|
+
"@codemirror/lang-markdown": "^6.0.0",
|
|
128
|
+
"@codemirror/language": "^6.0.0",
|
|
129
|
+
"@codemirror/search": "^6.0.0",
|
|
130
|
+
"@codemirror/state": "^6.0.0",
|
|
131
|
+
"@codemirror/view": "^6.0.0",
|
|
132
|
+
"@lezer/common": "^1.0.0",
|
|
133
|
+
"@lezer/highlight": "^1.0.0",
|
|
134
|
+
"@lezer/markdown": "^1.0.0",
|
|
135
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
136
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
137
|
+
"@codemirror/lang-cpp": "^6.0.0",
|
|
138
|
+
"@codemirror/lang-css": "^6.0.0",
|
|
139
|
+
"@codemirror/lang-go": "^6.0.0",
|
|
140
|
+
"@codemirror/lang-html": "^6.0.0",
|
|
141
|
+
"@codemirror/lang-java": "^6.0.0",
|
|
142
|
+
"@codemirror/lang-javascript": "^6.0.0",
|
|
143
|
+
"@codemirror/lang-json": "^6.0.0",
|
|
144
|
+
"@codemirror/lang-php": "^6.0.0",
|
|
145
|
+
"@codemirror/lang-python": "^6.0.0",
|
|
146
|
+
"@codemirror/lang-rust": "^6.0.0",
|
|
147
|
+
"@codemirror/lang-sql": "^6.0.0",
|
|
148
|
+
"@codemirror/lang-xml": "^6.0.0",
|
|
149
|
+
"@codemirror/lang-yaml": "^6.0.0",
|
|
150
|
+
"@codemirror/legacy-modes": "^6.0.0"
|
|
151
|
+
},
|
|
152
|
+
"peerDependenciesMeta": {
|
|
153
|
+
"@codemirror/lang-cpp": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
156
|
+
"@codemirror/lang-css": {
|
|
157
|
+
"optional": true
|
|
158
|
+
},
|
|
159
|
+
"@codemirror/lang-go": {
|
|
160
|
+
"optional": true
|
|
161
|
+
},
|
|
162
|
+
"@codemirror/lang-html": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"@codemirror/lang-java": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"@codemirror/lang-javascript": {
|
|
169
|
+
"optional": true
|
|
170
|
+
},
|
|
171
|
+
"@codemirror/lang-json": {
|
|
172
|
+
"optional": true
|
|
173
|
+
},
|
|
174
|
+
"@codemirror/lang-php": {
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
177
|
+
"@codemirror/lang-python": {
|
|
178
|
+
"optional": true
|
|
179
|
+
},
|
|
180
|
+
"@codemirror/lang-rust": {
|
|
181
|
+
"optional": true
|
|
182
|
+
},
|
|
183
|
+
"@codemirror/lang-sql": {
|
|
184
|
+
"optional": true
|
|
185
|
+
},
|
|
186
|
+
"@codemirror/lang-xml": {
|
|
187
|
+
"optional": true
|
|
188
|
+
},
|
|
189
|
+
"@codemirror/lang-yaml": {
|
|
190
|
+
"optional": true
|
|
191
|
+
},
|
|
192
|
+
"@codemirror/legacy-modes": {
|
|
193
|
+
"optional": true
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"devDependencies": {
|
|
197
|
+
"@codemirror/autocomplete": "^6.20.0",
|
|
198
|
+
"@codemirror/commands": "^6.10.0",
|
|
199
|
+
"@codemirror/lang-cpp": "^6.0.3",
|
|
200
|
+
"@codemirror/lang-css": "^6.3.1",
|
|
201
|
+
"@codemirror/lang-go": "^6.0.1",
|
|
202
|
+
"@codemirror/lang-html": "^6.4.11",
|
|
203
|
+
"@codemirror/lang-java": "^6.0.2",
|
|
204
|
+
"@codemirror/lang-javascript": "^6.2.5",
|
|
205
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
206
|
+
"@codemirror/lang-markdown": "^6.5.0",
|
|
207
|
+
"@codemirror/lang-php": "^6.0.2",
|
|
208
|
+
"@codemirror/lang-python": "^6.2.1",
|
|
209
|
+
"@codemirror/lang-rust": "^6.0.2",
|
|
210
|
+
"@codemirror/lang-sql": "^6.10.0",
|
|
211
|
+
"@codemirror/lang-xml": "^6.1.0",
|
|
212
|
+
"@codemirror/lang-yaml": "^6.1.3",
|
|
213
|
+
"@codemirror/language": "^6.12.3",
|
|
214
|
+
"@codemirror/legacy-modes": "^6.5.2",
|
|
215
|
+
"@codemirror/search": "^6.5.11",
|
|
216
|
+
"@codemirror/state": "^6.5.2",
|
|
217
|
+
"@codemirror/view": "^6.38.8",
|
|
218
|
+
"@lezer/common": "^1.2.3",
|
|
219
|
+
"@lezer/highlight": "^1.2.3",
|
|
220
|
+
"@lezer/markdown": "^1.6.3",
|
|
221
|
+
"@playwright/test": "^1.40.0",
|
|
222
|
+
"@types/node": "^26.2.0",
|
|
223
|
+
"@types/react": "^19.2.17",
|
|
224
|
+
"@types/react-dom": "^19.2.3",
|
|
225
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
226
|
+
"happy-dom": "^12.0.0",
|
|
227
|
+
"playwright": "^1.40.0",
|
|
228
|
+
"react": "^19.2.7",
|
|
229
|
+
"react-dom": "^19.2.7",
|
|
230
|
+
"typescript": "^5.0.0",
|
|
231
|
+
"vite": "^5.0.0",
|
|
232
|
+
"vitest": "^1.0.0"
|
|
233
|
+
},
|
|
234
|
+
"dependencies": {
|
|
235
|
+
"lucide-react": "^1.33.0"
|
|
236
|
+
}
|
|
237
|
+
}
|