@mdxeditor/editor 1.0.0 → 1.0.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/dist/plugins/codeblock/index.d.ts +10 -10
- package/dist/plugins/codemirror/index.d.ts +14 -14
- package/dist/plugins/core/index.d.ts +9 -9
- package/dist/plugins/core/index.js +7 -5
- package/dist/plugins/diff-source/index.d.ts +10 -10
- package/dist/plugins/directives/index.d.ts +10 -10
- package/dist/plugins/frontmatter/index.d.ts +10 -10
- package/dist/plugins/headings/index.d.ts +10 -10
- package/dist/plugins/image/index.d.ts +10 -10
- package/dist/plugins/jsx/index.d.ts +10 -10
- package/dist/plugins/link/index.d.ts +1 -1
- package/dist/plugins/link-dialog/index.d.ts +8 -8
- package/dist/plugins/lists/index.d.ts +10 -10
- package/dist/plugins/markdown-shortcut/index.d.ts +1 -1
- package/dist/plugins/quote/index.d.ts +7 -7
- package/dist/plugins/sandpack/index.d.ts +14 -14
- package/dist/plugins/table/index.d.ts +10 -10
- package/dist/plugins/thematic-break/index.d.ts +10 -10
- package/dist/plugins/toolbar/index.d.ts +8 -8
- package/package.json +15 -15
|
@@ -44,7 +44,7 @@ export declare const tableSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
44
44
|
placeholder: RealmNode<ReactNode>;
|
|
45
45
|
autoFocus: RealmNode<boolean | {
|
|
46
46
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
47
|
-
preventScroll
|
|
47
|
+
preventScroll?: boolean | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
readOnly: RealmNode<boolean>;
|
|
50
50
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -99,7 +99,7 @@ export declare const tableSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
99
99
|
placeholder: RealmNode<ReactNode>;
|
|
100
100
|
autoFocus: RealmNode<boolean | {
|
|
101
101
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
102
|
-
preventScroll
|
|
102
|
+
preventScroll?: boolean | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
readOnly: RealmNode<boolean>;
|
|
105
105
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -159,7 +159,7 @@ tablePlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
159
159
|
placeholder: RealmNode<ReactNode>;
|
|
160
160
|
autoFocus: RealmNode<boolean | {
|
|
161
161
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
162
|
-
preventScroll
|
|
162
|
+
preventScroll?: boolean | undefined;
|
|
163
163
|
}>;
|
|
164
164
|
readOnly: RealmNode<boolean>;
|
|
165
165
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -214,7 +214,7 @@ tablePlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
214
214
|
placeholder: RealmNode<ReactNode>;
|
|
215
215
|
autoFocus: RealmNode<boolean | {
|
|
216
216
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
217
|
-
preventScroll
|
|
217
|
+
preventScroll?: boolean | undefined;
|
|
218
218
|
}>;
|
|
219
219
|
readOnly: RealmNode<boolean>;
|
|
220
220
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -276,7 +276,7 @@ tablePluginHooks: {
|
|
|
276
276
|
placeholder: RealmNode<ReactNode>;
|
|
277
277
|
autoFocus: RealmNode<boolean | {
|
|
278
278
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
279
|
-
preventScroll
|
|
279
|
+
preventScroll?: boolean | undefined;
|
|
280
280
|
}>;
|
|
281
281
|
readOnly: RealmNode<boolean>;
|
|
282
282
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -334,7 +334,7 @@ tablePluginHooks: {
|
|
|
334
334
|
placeholder: RealmNode<ReactNode>;
|
|
335
335
|
autoFocus: RealmNode<boolean | {
|
|
336
336
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
337
|
-
preventScroll
|
|
337
|
+
preventScroll?: boolean | undefined;
|
|
338
338
|
}>;
|
|
339
339
|
readOnly: RealmNode<boolean>;
|
|
340
340
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -392,7 +392,7 @@ tablePluginHooks: {
|
|
|
392
392
|
placeholder: RealmNode<ReactNode>;
|
|
393
393
|
autoFocus: RealmNode<boolean | {
|
|
394
394
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
395
|
-
preventScroll
|
|
395
|
+
preventScroll?: boolean | undefined;
|
|
396
396
|
}>;
|
|
397
397
|
readOnly: RealmNode<boolean>;
|
|
398
398
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -449,7 +449,7 @@ tablePluginHooks: {
|
|
|
449
449
|
placeholder: RealmNode<ReactNode>;
|
|
450
450
|
autoFocus: RealmNode<boolean | {
|
|
451
451
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
452
|
-
preventScroll
|
|
452
|
+
preventScroll?: boolean | undefined;
|
|
453
453
|
}>;
|
|
454
454
|
readOnly: RealmNode<boolean>;
|
|
455
455
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -507,7 +507,7 @@ tablePluginHooks: {
|
|
|
507
507
|
placeholder: RealmNode<ReactNode>;
|
|
508
508
|
autoFocus: RealmNode<boolean | {
|
|
509
509
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
510
|
-
preventScroll
|
|
510
|
+
preventScroll?: boolean | undefined;
|
|
511
511
|
}>;
|
|
512
512
|
readOnly: RealmNode<boolean>;
|
|
513
513
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -565,7 +565,7 @@ tablePluginHooks: {
|
|
|
565
565
|
placeholder: RealmNode<ReactNode>;
|
|
566
566
|
autoFocus: RealmNode<boolean | {
|
|
567
567
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
568
|
-
preventScroll
|
|
568
|
+
preventScroll?: boolean | undefined;
|
|
569
569
|
}>;
|
|
570
570
|
readOnly: RealmNode<boolean>;
|
|
571
571
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -44,7 +44,7 @@ export declare const thematicBreakSystem: SystemSpec<[SystemSpec<[], (r: Realm)
|
|
|
44
44
|
placeholder: RealmNode<ReactNode>;
|
|
45
45
|
autoFocus: RealmNode<boolean | {
|
|
46
46
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
47
|
-
preventScroll
|
|
47
|
+
preventScroll?: boolean | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
readOnly: RealmNode<boolean>;
|
|
50
50
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -99,7 +99,7 @@ export declare const thematicBreakSystem: SystemSpec<[SystemSpec<[], (r: Realm)
|
|
|
99
99
|
placeholder: RealmNode<ReactNode>;
|
|
100
100
|
autoFocus: RealmNode<boolean | {
|
|
101
101
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
102
|
-
preventScroll
|
|
102
|
+
preventScroll?: boolean | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
readOnly: RealmNode<boolean>;
|
|
105
105
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -159,7 +159,7 @@ thematicBreakPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) =>
|
|
|
159
159
|
placeholder: RealmNode<ReactNode>;
|
|
160
160
|
autoFocus: RealmNode<boolean | {
|
|
161
161
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
162
|
-
preventScroll
|
|
162
|
+
preventScroll?: boolean | undefined;
|
|
163
163
|
}>;
|
|
164
164
|
readOnly: RealmNode<boolean>;
|
|
165
165
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -214,7 +214,7 @@ thematicBreakPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) =>
|
|
|
214
214
|
placeholder: RealmNode<ReactNode>;
|
|
215
215
|
autoFocus: RealmNode<boolean | {
|
|
216
216
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
217
|
-
preventScroll
|
|
217
|
+
preventScroll?: boolean | undefined;
|
|
218
218
|
}>;
|
|
219
219
|
readOnly: RealmNode<boolean>;
|
|
220
220
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -276,7 +276,7 @@ thematicBreakPluginHooks: {
|
|
|
276
276
|
placeholder: RealmNode<ReactNode>;
|
|
277
277
|
autoFocus: RealmNode<boolean | {
|
|
278
278
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
279
|
-
preventScroll
|
|
279
|
+
preventScroll?: boolean | undefined;
|
|
280
280
|
}>;
|
|
281
281
|
readOnly: RealmNode<boolean>;
|
|
282
282
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -334,7 +334,7 @@ thematicBreakPluginHooks: {
|
|
|
334
334
|
placeholder: RealmNode<ReactNode>;
|
|
335
335
|
autoFocus: RealmNode<boolean | {
|
|
336
336
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
337
|
-
preventScroll
|
|
337
|
+
preventScroll?: boolean | undefined;
|
|
338
338
|
}>;
|
|
339
339
|
readOnly: RealmNode<boolean>;
|
|
340
340
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -392,7 +392,7 @@ thematicBreakPluginHooks: {
|
|
|
392
392
|
placeholder: RealmNode<ReactNode>;
|
|
393
393
|
autoFocus: RealmNode<boolean | {
|
|
394
394
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
395
|
-
preventScroll
|
|
395
|
+
preventScroll?: boolean | undefined;
|
|
396
396
|
}>;
|
|
397
397
|
readOnly: RealmNode<boolean>;
|
|
398
398
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -449,7 +449,7 @@ thematicBreakPluginHooks: {
|
|
|
449
449
|
placeholder: RealmNode<ReactNode>;
|
|
450
450
|
autoFocus: RealmNode<boolean | {
|
|
451
451
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
452
|
-
preventScroll
|
|
452
|
+
preventScroll?: boolean | undefined;
|
|
453
453
|
}>;
|
|
454
454
|
readOnly: RealmNode<boolean>;
|
|
455
455
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -507,7 +507,7 @@ thematicBreakPluginHooks: {
|
|
|
507
507
|
placeholder: RealmNode<ReactNode>;
|
|
508
508
|
autoFocus: RealmNode<boolean | {
|
|
509
509
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
510
|
-
preventScroll
|
|
510
|
+
preventScroll?: boolean | undefined;
|
|
511
511
|
}>;
|
|
512
512
|
readOnly: RealmNode<boolean>;
|
|
513
513
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -565,7 +565,7 @@ thematicBreakPluginHooks: {
|
|
|
565
565
|
placeholder: RealmNode<ReactNode>;
|
|
566
566
|
autoFocus: RealmNode<boolean | {
|
|
567
567
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
568
|
-
preventScroll
|
|
568
|
+
preventScroll?: boolean | undefined;
|
|
569
569
|
}>;
|
|
570
570
|
readOnly: RealmNode<boolean>;
|
|
571
571
|
composerChildren: RealmNode<ComponentType<{}>[]>;
|
|
@@ -43,7 +43,7 @@ export declare const toolbarSystem: SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
43
43
|
placeholder: RealmNode<React.ReactNode>;
|
|
44
44
|
autoFocus: RealmNode<boolean | {
|
|
45
45
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
46
|
-
preventScroll
|
|
46
|
+
preventScroll?: boolean | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
readOnly: RealmNode<boolean>;
|
|
49
49
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -103,7 +103,7 @@ toolbarPlugin: PluginConstructor<SystemSpec<[SystemSpec<[], (r: Realm) => {
|
|
|
103
103
|
placeholder: RealmNode<React.ReactNode>;
|
|
104
104
|
autoFocus: RealmNode<boolean | {
|
|
105
105
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
106
|
-
preventScroll
|
|
106
|
+
preventScroll?: boolean | undefined;
|
|
107
107
|
}>;
|
|
108
108
|
readOnly: RealmNode<boolean>;
|
|
109
109
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -167,7 +167,7 @@ toolbarPluginHooks: {
|
|
|
167
167
|
placeholder: RealmNode<React.ReactNode>;
|
|
168
168
|
autoFocus: RealmNode<boolean | {
|
|
169
169
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
170
|
-
preventScroll
|
|
170
|
+
preventScroll?: boolean | undefined;
|
|
171
171
|
}>;
|
|
172
172
|
readOnly: RealmNode<boolean>;
|
|
173
173
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -225,7 +225,7 @@ toolbarPluginHooks: {
|
|
|
225
225
|
placeholder: RealmNode<React.ReactNode>;
|
|
226
226
|
autoFocus: RealmNode<boolean | {
|
|
227
227
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
228
|
-
preventScroll
|
|
228
|
+
preventScroll?: boolean | undefined;
|
|
229
229
|
}>;
|
|
230
230
|
readOnly: RealmNode<boolean>;
|
|
231
231
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -283,7 +283,7 @@ toolbarPluginHooks: {
|
|
|
283
283
|
placeholder: RealmNode<React.ReactNode>;
|
|
284
284
|
autoFocus: RealmNode<boolean | {
|
|
285
285
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
286
|
-
preventScroll
|
|
286
|
+
preventScroll?: boolean | undefined;
|
|
287
287
|
}>;
|
|
288
288
|
readOnly: RealmNode<boolean>;
|
|
289
289
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -340,7 +340,7 @@ toolbarPluginHooks: {
|
|
|
340
340
|
placeholder: RealmNode<React.ReactNode>;
|
|
341
341
|
autoFocus: RealmNode<boolean | {
|
|
342
342
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
343
|
-
preventScroll
|
|
343
|
+
preventScroll?: boolean | undefined;
|
|
344
344
|
}>;
|
|
345
345
|
readOnly: RealmNode<boolean>;
|
|
346
346
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -398,7 +398,7 @@ toolbarPluginHooks: {
|
|
|
398
398
|
placeholder: RealmNode<React.ReactNode>;
|
|
399
399
|
autoFocus: RealmNode<boolean | {
|
|
400
400
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
401
|
-
preventScroll
|
|
401
|
+
preventScroll?: boolean | undefined;
|
|
402
402
|
}>;
|
|
403
403
|
readOnly: RealmNode<boolean>;
|
|
404
404
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
|
@@ -456,7 +456,7 @@ toolbarPluginHooks: {
|
|
|
456
456
|
placeholder: RealmNode<React.ReactNode>;
|
|
457
457
|
autoFocus: RealmNode<boolean | {
|
|
458
458
|
defaultSelection?: "rootStart" | "rootEnd" | undefined;
|
|
459
|
-
preventScroll
|
|
459
|
+
preventScroll?: boolean | undefined;
|
|
460
460
|
}>;
|
|
461
461
|
readOnly: RealmNode<boolean>;
|
|
462
462
|
composerChildren: RealmNode<React.ComponentType<{}>[]>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"private": false,
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"type": "module",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1",
|
|
13
13
|
"description": "React component for rich text markdown editing",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "vite build",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"@codemirror/state": "^6.2.1",
|
|
40
40
|
"@codemirror/view": "6.15.3",
|
|
41
41
|
"@codesandbox/sandpack-react": "^2.6.7",
|
|
42
|
-
"@lexical/clipboard": "^0.
|
|
43
|
-
"@lexical/code": "^0.
|
|
44
|
-
"@lexical/link": "^0.
|
|
45
|
-
"@lexical/list": "^0.
|
|
46
|
-
"@lexical/markdown": "^0.
|
|
47
|
-
"@lexical/plain-text": "^0.
|
|
48
|
-
"@lexical/react": "^0.
|
|
49
|
-
"@lexical/rich-text": "^0.
|
|
50
|
-
"@lexical/selection": "^0.
|
|
51
|
-
"@lexical/utils": "^0.
|
|
42
|
+
"@lexical/clipboard": "^0.12.2",
|
|
43
|
+
"@lexical/code": "^0.12.2",
|
|
44
|
+
"@lexical/link": "^0.12.2",
|
|
45
|
+
"@lexical/list": "^0.12.2",
|
|
46
|
+
"@lexical/markdown": "^0.12.2",
|
|
47
|
+
"@lexical/plain-text": "^0.12.2",
|
|
48
|
+
"@lexical/react": "^0.12.2",
|
|
49
|
+
"@lexical/rich-text": "^0.12.2",
|
|
50
|
+
"@lexical/selection": "^0.12.2",
|
|
51
|
+
"@lexical/utils": "^0.12.2",
|
|
52
52
|
"@radix-ui/colors": "^0.1.8",
|
|
53
53
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
54
54
|
"@radix-ui/react-icons": "^1.3.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"hast-util-sanitize": "^4.1.0",
|
|
64
64
|
"hast-util-to-html": "^8.0.4",
|
|
65
65
|
"js-yaml": "4.1.0",
|
|
66
|
-
"lexical": "^0.
|
|
66
|
+
"lexical": "^0.12.2",
|
|
67
67
|
"mdast-util-directive": "2.2.4",
|
|
68
68
|
"mdast-util-from-markdown": "^1.3.0",
|
|
69
69
|
"mdast-util-frontmatter": "1.0.1",
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
"@types/react-dom": "^18.2.4",
|
|
106
106
|
"@types/testing-library__jest-dom": "^5.14.6",
|
|
107
107
|
"@types/unist": "^2.0.6",
|
|
108
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
109
|
-
"@typescript-eslint/parser": "^
|
|
108
|
+
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
109
|
+
"@typescript-eslint/parser": "^6.7.2",
|
|
110
110
|
"@vitejs/plugin-react": "^4.0.0",
|
|
111
111
|
"autoprefixer": "^10.4.14",
|
|
112
112
|
"eslint": "^8.41.0",
|
|
113
113
|
"eslint-config-prettier": "^8.8.0",
|
|
114
|
-
"eslint-config-standard-with-typescript": "^
|
|
114
|
+
"eslint-config-standard-with-typescript": "^39.1.0",
|
|
115
115
|
"eslint-plugin-html": "^7.1.0",
|
|
116
116
|
"eslint-plugin-import": "^2.27.5",
|
|
117
117
|
"eslint-plugin-json": "^3.1.0",
|