forked from mdx-editor/editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
421 lines (421 loc) · 16.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
{
"name": "@betty-blocks/mdxeditor",
"author": "Petyo Ivanov",
"homepage": "https://github.com/bettyblocks/mdxeditor/",
"bugs": {
"url": "https://github.com/mdx-editor/editor/issues",
"email": "petyo@virtuoso.dev"
},
"private": false,
"sideEffects": false,
"type": "module",
"version": "1.0.0",
"description": "Fork of https://www.npmjs.com/package/@mdxeditor/editor without sandpack",
"scripts": {
"build": "vite build",
"build:docs:api": "./scripts/build_docs_api.sh",
"build:update-exports": "node ./scripts/generate-exports.js",
"start": "LADLE=true ladle dev",
"dev": "LADLE=true ladle dev",
"typecheck": "tsc --noEmit",
"lint": "eslint src --ext .ts,.tsx",
"test": "vitest",
"semantic-release": "semantic-release",
"image-upload-backend": "node ./src/stories/file-backend.js"
},
"files": [
"dist"
],
"keywords": [
"mdx",
"markdown",
"rich-text-editor",
"lexical",
"react"
],
"license": "MIT",
"dependencies": {
"@lexical/clipboard": "^0.12.4",
"@lexical/link": "^0.12.4",
"@lexical/list": "^0.12.4",
"@lexical/markdown": "^0.12.4",
"@lexical/plain-text": "^0.12.4",
"@lexical/react": "^0.12.4",
"@lexical/rich-text": "^0.12.4",
"@lexical/selection": "^0.12.4",
"@lexical/utils": "^0.12.4",
"@radix-ui/colors": "^0.1.8",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-select": "^1.2.2",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.6",
"classnames": "^2.3.2",
"cm6-theme-basic-light": "^0.2.0",
"codemirror": "^6.0.1",
"downshift": "^7.6.0",
"hast-util-raw": "^8.0.0",
"hast-util-sanitize": "^4.1.0",
"hast-util-to-html": "^8.0.4",
"js-yaml": "4.1.0",
"lexical": "^0.12.4",
"mdast-util-directive": "2.2.4",
"mdast-util-from-markdown": "^1.3.0",
"mdast-util-frontmatter": "1.0.1",
"mdast-util-gfm-table": "^1.0.7",
"mdast-util-gfm-task-list-item": "1.0.2",
"mdast-util-mdx": "2.0.1",
"mdast-util-mdx-jsx": "^2.1.4",
"mdast-util-to-hast": "^12.3.0",
"mdast-util-to-markdown": "1.5.0",
"micromark-extension-directive": "2.2.0",
"micromark-extension-frontmatter": "1.1.0",
"micromark-extension-gfm-table": "^1.0.6",
"micromark-extension-gfm-task-list-item": "1.0.5",
"micromark-extension-mdx-jsx": "^1.0.5",
"micromark-extension-mdxjs": "1.0.1",
"react-hook-form": "^7.44.2",
"unidiff": "^1.0.2"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.22.1",
"@babel/plugin-transform-react-jsx": "^7.22.3",
"@babel/plugin-transform-typescript": "^7.22.3",
"@babel/preset-react": "^7.22.3",
"@babel/preset-typescript": "^7.21.5",
"@ladle/react": "^4.0.2",
"@microsoft/api-documenter": "^7.22.21",
"@microsoft/api-extractor": "^7.36.0",
"@ngneat/falso": "^6.4.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/express": "^4.17.17",
"@types/js-yaml": "4.0.5",
"@types/mdast": "3.0.11",
"@types/multer": "^1.4.7",
"@types/node": "^20.2.5",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/testing-library__jest-dom": "^5.14.6",
"@types/unist": "^2.0.6",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.14",
"cm6-theme-basic-dark": "^0.2.0",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard-with-typescript": "^39.1.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"express": "^4.18.2",
"jsdom": "^22.1.0",
"micromark-util-types": "^1.1.0",
"multer": "1.4.5-lts.1",
"postcss": "^8.4.24",
"postcss-extend": "^1.0.5",
"postcss-mixins": "^9.0.4",
"postcss-nesting": "^11.2.2",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "^21.0.5",
"svgo": "^3.0.2",
"terser": "^5.17.6",
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^3.15.3",
"typedoc-plugin-no-inherit": "^1.4.0",
"typescript": "5.0.4",
"typescript-plugin-css-modules": "^5.0.1",
"vite": "^4.3.9",
"vite-plugin-dts": "^2.3.0",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^0.31.1"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=16"
},
"packageManager": "npm@9.5.1",
"repository": {
"type": "git",
"url": "https://github.com/bettyblocks/mdxeditor/editor.git"
},
"release": {
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
]
},
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json",
"./style.css": "./dist/style.css",
"./gurx": {
"types": "./dist/gurx/index.d.ts",
"import": "./dist/gurx/index.js",
"default": "./dist/gurx/index.js"
},
"./MDXEditor": {
"types": "./dist/MDXEditor.d.ts",
"import": "./dist/MDXEditor.js",
"default": "./dist/MDXEditor.js"
},
"./importMarkdownToLexical": {
"types": "./dist/importMarkdownToLexical.d.ts",
"import": "./dist/importMarkdownToLexical.js",
"default": "./dist/importMarkdownToLexical.js"
},
"./exportMarkdownFromLexical": {
"types": "./dist/exportMarkdownFromLexical.d.ts",
"import": "./dist/exportMarkdownFromLexical.js",
"default": "./dist/exportMarkdownFromLexical.js"
},
"./directive-editors/AdmonitionDirectiveDescriptor": {
"types": "./dist/directive-editors/AdmonitionDirectiveDescriptor.d.ts",
"import": "./dist/directive-editors/AdmonitionDirectiveDescriptor.js",
"default": "./dist/directive-editors/AdmonitionDirectiveDescriptor.js"
},
"./directive-editors/GenericDirectiveEditor": {
"types": "./dist/directive-editors/GenericDirectiveEditor.d.ts",
"import": "./dist/directive-editors/GenericDirectiveEditor.js",
"default": "./dist/directive-editors/GenericDirectiveEditor.js"
},
"./jsx-editors/GenericJsxEditor": {
"types": "./dist/jsx-editors/GenericJsxEditor.d.ts",
"import": "./dist/jsx-editors/GenericJsxEditor.js",
"default": "./dist/jsx-editors/GenericJsxEditor.js"
},
"./plugins/core/PropertyPopover": {
"types": "./dist/plugins/core/PropertyPopover.d.ts",
"import": "./dist/plugins/core/PropertyPopover.js",
"default": "./dist/plugins/core/PropertyPopover.js"
},
"./plugins/core/NestedLexicalEditor": {
"types": "./dist/plugins/core/NestedLexicalEditor.d.ts",
"import": "./dist/plugins/core/NestedLexicalEditor.js",
"default": "./dist/plugins/core/NestedLexicalEditor.js"
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.js",
"default": "./dist/utils.js"
},
"./plugins/codeblock": {
"types": "./dist/plugins/codeblock/index.d.ts",
"import": "./dist/plugins/codeblock/index.js",
"default": "./dist/plugins/codeblock/index.js"
},
"./plugins/codemirror": {
"types": "./dist/plugins/codemirror/index.d.ts",
"import": "./dist/plugins/codemirror/index.js",
"default": "./dist/plugins/codemirror/index.js"
},
"./plugins/core": {
"types": "./dist/plugins/core/index.d.ts",
"import": "./dist/plugins/core/index.js",
"default": "./dist/plugins/core/index.js"
},
"./plugins/diff-source": {
"types": "./dist/plugins/diff-source/index.d.ts",
"import": "./dist/plugins/diff-source/index.js",
"default": "./dist/plugins/diff-source/index.js"
},
"./plugins/directives": {
"types": "./dist/plugins/directives/index.d.ts",
"import": "./dist/plugins/directives/index.js",
"default": "./dist/plugins/directives/index.js"
},
"./plugins/frontmatter": {
"types": "./dist/plugins/frontmatter/index.d.ts",
"import": "./dist/plugins/frontmatter/index.js",
"default": "./dist/plugins/frontmatter/index.js"
},
"./plugins/headings": {
"types": "./dist/plugins/headings/index.d.ts",
"import": "./dist/plugins/headings/index.js",
"default": "./dist/plugins/headings/index.js"
},
"./plugins/image": {
"types": "./dist/plugins/image/index.d.ts",
"import": "./dist/plugins/image/index.js",
"default": "./dist/plugins/image/index.js"
},
"./plugins/jsx": {
"types": "./dist/plugins/jsx/index.d.ts",
"import": "./dist/plugins/jsx/index.js",
"default": "./dist/plugins/jsx/index.js"
},
"./plugins/link": {
"types": "./dist/plugins/link/index.d.ts",
"import": "./dist/plugins/link/index.js",
"default": "./dist/plugins/link/index.js"
},
"./plugins/link-dialog": {
"types": "./dist/plugins/link-dialog/index.d.ts",
"import": "./dist/plugins/link-dialog/index.js",
"default": "./dist/plugins/link-dialog/index.js"
},
"./plugins/lists": {
"types": "./dist/plugins/lists/index.d.ts",
"import": "./dist/plugins/lists/index.js",
"default": "./dist/plugins/lists/index.js"
},
"./plugins/markdown-shortcut": {
"types": "./dist/plugins/markdown-shortcut/index.d.ts",
"import": "./dist/plugins/markdown-shortcut/index.js",
"default": "./dist/plugins/markdown-shortcut/index.js"
},
"./plugins/quote": {
"types": "./dist/plugins/quote/index.d.ts",
"import": "./dist/plugins/quote/index.js",
"default": "./dist/plugins/quote/index.js"
},
"./plugins/table": {
"types": "./dist/plugins/table/index.d.ts",
"import": "./dist/plugins/table/index.js",
"default": "./dist/plugins/table/index.js"
},
"./plugins/thematic-break": {
"types": "./dist/plugins/thematic-break/index.d.ts",
"import": "./dist/plugins/thematic-break/index.js",
"default": "./dist/plugins/thematic-break/index.js"
},
"./plugins/toolbar": {
"types": "./dist/plugins/toolbar/index.d.ts",
"import": "./dist/plugins/toolbar/index.js",
"default": "./dist/plugins/toolbar/index.js"
},
"./plugins/toolbar/components/BlockTypeSelect": {
"types": "./dist/plugins/toolbar/components/BlockTypeSelect.d.ts",
"import": "./dist/plugins/toolbar/components/BlockTypeSelect.js",
"default": "./dist/plugins/toolbar/components/BlockTypeSelect.js"
},
"./plugins/toolbar/components/BoldItalicUnderlineToggles": {
"types": "./dist/plugins/toolbar/components/BoldItalicUnderlineToggles.d.ts",
"import": "./dist/plugins/toolbar/components/BoldItalicUnderlineToggles.js",
"default": "./dist/plugins/toolbar/components/BoldItalicUnderlineToggles.js"
},
"./plugins/toolbar/components/ChangeAdmonitionType": {
"types": "./dist/plugins/toolbar/components/ChangeAdmonitionType.d.ts",
"import": "./dist/plugins/toolbar/components/ChangeAdmonitionType.js",
"default": "./dist/plugins/toolbar/components/ChangeAdmonitionType.js"
},
"./plugins/toolbar/components/ChangeCodeMirrorLanguage": {
"types": "./dist/plugins/toolbar/components/ChangeCodeMirrorLanguage.d.ts",
"import": "./dist/plugins/toolbar/components/ChangeCodeMirrorLanguage.js",
"default": "./dist/plugins/toolbar/components/ChangeCodeMirrorLanguage.js"
},
"./plugins/toolbar/components/CodeToggle": {
"types": "./dist/plugins/toolbar/components/CodeToggle.d.ts",
"import": "./dist/plugins/toolbar/components/CodeToggle.js",
"default": "./dist/plugins/toolbar/components/CodeToggle.js"
},
"./plugins/toolbar/components/CreateLink": {
"types": "./dist/plugins/toolbar/components/CreateLink.d.ts",
"import": "./dist/plugins/toolbar/components/CreateLink.js",
"default": "./dist/plugins/toolbar/components/CreateLink.js"
},
"./plugins/toolbar/components/DiffSourceToggleWrapper": {
"types": "./dist/plugins/toolbar/components/DiffSourceToggleWrapper.d.ts",
"import": "./dist/plugins/toolbar/components/DiffSourceToggleWrapper.js",
"default": "./dist/plugins/toolbar/components/DiffSourceToggleWrapper.js"
},
"./plugins/toolbar/components/InsertAdmonition": {
"types": "./dist/plugins/toolbar/components/InsertAdmonition.d.ts",
"import": "./dist/plugins/toolbar/components/InsertAdmonition.js",
"default": "./dist/plugins/toolbar/components/InsertAdmonition.js"
},
"./plugins/toolbar/components/InsertCodeBlock": {
"types": "./dist/plugins/toolbar/components/InsertCodeBlock.d.ts",
"import": "./dist/plugins/toolbar/components/InsertCodeBlock.js",
"default": "./dist/plugins/toolbar/components/InsertCodeBlock.js"
},
"./plugins/toolbar/components/InsertFrontmatter": {
"types": "./dist/plugins/toolbar/components/InsertFrontmatter.d.ts",
"import": "./dist/plugins/toolbar/components/InsertFrontmatter.js",
"default": "./dist/plugins/toolbar/components/InsertFrontmatter.js"
},
"./plugins/toolbar/components/InsertImage": {
"types": "./dist/plugins/toolbar/components/InsertImage.d.ts",
"import": "./dist/plugins/toolbar/components/InsertImage.js",
"default": "./dist/plugins/toolbar/components/InsertImage.js"
},
"./plugins/toolbar/components/InsertTable": {
"types": "./dist/plugins/toolbar/components/InsertTable.d.ts",
"import": "./dist/plugins/toolbar/components/InsertTable.js",
"default": "./dist/plugins/toolbar/components/InsertTable.js"
},
"./plugins/toolbar/components/InsertThematicBreak": {
"types": "./dist/plugins/toolbar/components/InsertThematicBreak.d.ts",
"import": "./dist/plugins/toolbar/components/InsertThematicBreak.js",
"default": "./dist/plugins/toolbar/components/InsertThematicBreak.js"
},
"./plugins/toolbar/components/KitchenSinkToolbar": {
"types": "./dist/plugins/toolbar/components/KitchenSinkToolbar.d.ts",
"import": "./dist/plugins/toolbar/components/KitchenSinkToolbar.js",
"default": "./dist/plugins/toolbar/components/KitchenSinkToolbar.js"
},
"./plugins/toolbar/components/ListsToggle": {
"types": "./dist/plugins/toolbar/components/ListsToggle.d.ts",
"import": "./dist/plugins/toolbar/components/ListsToggle.js",
"default": "./dist/plugins/toolbar/components/ListsToggle.js"
},
"./plugins/toolbar/components/UndoRedo": {
"types": "./dist/plugins/toolbar/components/UndoRedo.d.ts",
"import": "./dist/plugins/toolbar/components/UndoRedo.js",
"default": "./dist/plugins/toolbar/components/UndoRedo.js"
},
"./plugins/toolbar/primitives/DialogButton": {
"types": "./dist/plugins/toolbar/primitives/DialogButton.d.ts",
"import": "./dist/plugins/toolbar/primitives/DialogButton.js",
"default": "./dist/plugins/toolbar/primitives/DialogButton.js"
},
"./plugins/toolbar/primitives/TooltipWrap": {
"types": "./dist/plugins/toolbar/primitives/TooltipWrap.d.ts",
"import": "./dist/plugins/toolbar/primitives/TooltipWrap.js",
"default": "./dist/plugins/toolbar/primitives/TooltipWrap.js"
},
"./plugins/toolbar/primitives/select": {
"types": "./dist/plugins/toolbar/primitives/select.d.ts",
"import": "./dist/plugins/toolbar/primitives/select.js",
"default": "./dist/plugins/toolbar/primitives/select.js"
},
"./plugins/toolbar/primitives/toolbar": {
"types": "./dist/plugins/toolbar/primitives/toolbar.d.ts",
"import": "./dist/plugins/toolbar/primitives/toolbar.js",
"default": "./dist/plugins/toolbar/primitives/toolbar.js"
}
}
}