prosekit 0.0.18 → 0.0.19

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.
@@ -23,6 +23,7 @@ import { addHeadingCommands } from '@prosekit/extensions/heading';
23
23
  import { addHeadingInputRule } from '@prosekit/extensions/heading';
24
24
  import { addHeadingKeymap } from '@prosekit/extensions/heading';
25
25
  import { addHeadingSpec } from '@prosekit/extensions/heading';
26
+ import { addHistory } from '@prosekit/core';
26
27
  import { addInputRule } from '@prosekit/core';
27
28
  import { addItalic } from '@prosekit/extensions/italic';
28
29
  import { addItalic as addItalic_alias_1 } from '@prosekit/extensions/link';
@@ -111,6 +112,7 @@ import { canJoin } from '@prosekit/pm/transform';
111
112
  import { canSplit } from '@prosekit/pm/transform';
112
113
  import { chainCommands } from '@prosekit/pm/commands';
113
114
  import { closeDoubleQuote } from '@prosekit/pm/inputrules';
115
+ import { closeHistory } from '@prosekit/pm/history';
114
116
  import { closeSingleQuote } from '@prosekit/pm/inputrules';
115
117
  import { CodeBlockAttrs } from '@prosekit/extensions/code-block';
116
118
  import { CodeBlockPopover } from '@prosekit/lit/components/code-block-popover';
@@ -202,8 +204,8 @@ import { emDash } from '@prosekit/pm/inputrules';
202
204
  import { exitCode } from '@prosekit/pm/commands';
203
205
  import { Extension } from '@prosekit/core';
204
206
  import { ExtensionTyping } from '@prosekit/core';
207
+ import { ExtractCommandAppliers } from '@prosekit/core';
205
208
  import { ExtractCommandCreators } from '@prosekit/core';
206
- import { ExtractCommandDispatchers } from '@prosekit/core';
207
209
  import { ExtractMarks } from '@prosekit/core';
208
210
  import { ExtractNodes } from '@prosekit/core';
209
211
  import { Facet } from '@prosekit/core';
@@ -215,6 +217,7 @@ import { getEditor } from '@prosekit/svelte';
215
217
  import { getMarkType } from '@prosekit/core';
216
218
  import { getNodeType } from '@prosekit/core';
217
219
  import { HeadingAttrs } from '@prosekit/extensions/heading';
220
+ import { history as history_2 } from '@prosekit/pm/history';
218
221
  import { InputRule } from '@prosekit/pm/inputrules';
219
222
  import { inputRules } from '@prosekit/pm/inputrules';
220
223
  import { insertPoint } from '@prosekit/pm/transform';
@@ -297,6 +300,8 @@ import { ProseKitProps as ProseKitProps_alias_4 } from '@prosekit/svelte/compone
297
300
  import { ProseMirrorFragment } from '@prosekit/pm/model';
298
301
  import { ProseMirrorNode } from '@prosekit/pm/model';
299
302
  import { ProseMirrorPlugin } from '@prosekit/pm/state';
303
+ import { redo } from '@prosekit/pm/history';
304
+ import { redoDepth } from '@prosekit/pm/history';
300
305
  import { RemoveMarkStep } from '@prosekit/pm/transform';
301
306
  import { RemoveNodeMarkStep } from '@prosekit/pm/transform';
302
307
  import { ReplaceAroundStep } from '@prosekit/pm/transform';
@@ -341,6 +346,8 @@ import { toggleNode } from '@prosekit/core';
341
346
  import { ToggleNodeOptions } from '@prosekit/core';
342
347
  import { Transaction } from '@prosekit/pm/state';
343
348
  import { Transform } from '@prosekit/pm/transform';
349
+ import { undo } from '@prosekit/pm/history';
350
+ import { undoDepth } from '@prosekit/pm/history';
344
351
  import { undoInputRule } from '@prosekit/pm/inputrules';
345
352
  import { useEditor } from '@prosekit/preact';
346
353
  import { useEditor as useEditor_alias_1 } from '@prosekit/react';
@@ -410,6 +417,8 @@ export { addHeadingKeymap }
410
417
 
411
418
  export { addHeadingSpec }
412
419
 
420
+ export { addHistory }
421
+
413
422
  export { addInputRule }
414
423
 
415
424
  export { addItalic }
@@ -586,6 +595,8 @@ export { chainCommands }
586
595
 
587
596
  export { closeDoubleQuote }
588
597
 
598
+ export { closeHistory }
599
+
589
600
  export { closeSingleQuote }
590
601
 
591
602
  export { CodeBlockAttrs }
@@ -770,9 +781,9 @@ export { Extension }
770
781
 
771
782
  export { ExtensionTyping }
772
783
 
773
- export { ExtractCommandCreators }
784
+ export { ExtractCommandAppliers }
774
785
 
775
- export { ExtractCommandDispatchers }
786
+ export { ExtractCommandCreators }
776
787
 
777
788
  export { ExtractMarks }
778
789
 
@@ -796,6 +807,8 @@ export { getNodeType }
796
807
 
797
808
  export { HeadingAttrs }
798
809
 
810
+ export { history_2 as history }
811
+
799
812
  export { InputRule }
800
813
 
801
814
  export { inputRules }
@@ -958,6 +971,10 @@ export { ProseMirrorNode }
958
971
 
959
972
  export { ProseMirrorPlugin }
960
973
 
974
+ export { redo }
975
+
976
+ export { redoDepth }
977
+
961
978
  export { RemoveMarkStep }
962
979
 
963
980
  export { RemoveNodeMarkStep }
@@ -1046,6 +1063,10 @@ export { Transaction }
1046
1063
 
1047
1064
  export { Transform }
1048
1065
 
1066
+ export { undo }
1067
+
1068
+ export { undoDepth }
1069
+
1049
1070
  export { undoInputRule }
1050
1071
 
1051
1072
  export { useEditor }
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.31.7/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.31.8/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -51,7 +51,7 @@ img.ProseMirror-separator {
51
51
 
52
52
  /* ../core/src/style.css */
53
53
 
54
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.4.1/node_modules/prosemirror-flat-list/dist/style.css */
54
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.4.2/node_modules/prosemirror-flat-list/dist/style.css */
55
55
  .prosemirror-flat-list {
56
56
  padding: 0;
57
57
  margin-top: 0;
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.31.7/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.31.8/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.4.1/node_modules/prosemirror-flat-list/dist/style.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.4.2/node_modules/prosemirror-flat-list/dist/style.css */
2
2
  .prosemirror-flat-list {
3
3
  padding: 0;
4
4
  margin-top: 0;
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.31.7/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.31.8/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -19,6 +19,7 @@ export { addDefaultState } from './_tsup-dts-rollup';
19
19
  export { DefaultStateOptions } from './_tsup-dts-rollup';
20
20
  export { addDoc } from './_tsup-dts-rollup';
21
21
  export { addEventHandler } from './_tsup-dts-rollup';
22
+ export { addHistory } from './_tsup-dts-rollup';
22
23
  export { addInputRule } from './_tsup-dts-rollup';
23
24
  export { addBaseKeymap } from './_tsup-dts-rollup';
24
25
  export { addKeymap } from './_tsup-dts-rollup';
@@ -36,8 +37,8 @@ export { PluginFacetInput } from './_tsup-dts-rollup';
36
37
  export { addText } from './_tsup-dts-rollup';
37
38
  export { CommandArgs } from './_tsup-dts-rollup';
38
39
  export { Extension } from './_tsup-dts-rollup';
40
+ export { ExtractCommandAppliers } from './_tsup-dts-rollup';
39
41
  export { ExtractCommandCreators } from './_tsup-dts-rollup';
40
- export { ExtractCommandDispatchers } from './_tsup-dts-rollup';
41
42
  export { ExtractMarks } from './_tsup-dts-rollup';
42
43
  export { ExtractNodes } from './_tsup-dts-rollup';
43
44
  export { SimplifyExtension } from './_tsup-dts-rollup';
@@ -0,0 +1,6 @@
1
+ export { closeHistory } from './_tsup-dts-rollup';
2
+ export { history } from './_tsup-dts-rollup';
3
+ export { redo } from './_tsup-dts-rollup';
4
+ export { redoDepth } from './_tsup-dts-rollup';
5
+ export { undo } from './_tsup-dts-rollup';
6
+ export { undoDepth } from './_tsup-dts-rollup';
@@ -0,0 +1,2 @@
1
+ // src/pm/history.gen.ts
2
+ export * from "@prosekit/pm/history";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prosekit",
3
3
  "type": "module",
4
- "version": "0.0.18",
4
+ "version": "0.0.19",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -180,6 +180,11 @@
180
180
  "import": "./dist/prosekit-pm-commands.js",
181
181
  "default": "./dist/prosekit-pm-commands.js"
182
182
  },
183
+ "./pm/history": {
184
+ "types": "./dist/prosekit-pm-history.d.ts",
185
+ "import": "./dist/prosekit-pm-history.js",
186
+ "default": "./dist/prosekit-pm-history.js"
187
+ },
183
188
  "./pm/inputrules": {
184
189
  "types": "./dist/prosekit-pm-inputrules.d.ts",
185
190
  "import": "./dist/prosekit-pm-inputrules.js",
@@ -473,16 +478,16 @@
473
478
  "dist"
474
479
  ],
475
480
  "dependencies": {
476
- "@prosekit/basic": "0.0.13",
477
- "@prosekit/core": "0.0.10",
478
- "@prosekit/extensions": "0.0.11",
479
- "@prosekit/lit": "0.0.13",
480
- "@prosekit/pm": "0.0.5",
481
- "@prosekit/preact": "0.0.10",
482
- "@prosekit/react": "0.0.13",
483
- "@prosekit/solid": "0.0.11",
484
- "@prosekit/svelte": "0.0.11",
485
- "@prosekit/vue": "0.0.14"
481
+ "@prosekit/basic": "0.0.14",
482
+ "@prosekit/core": "0.0.11",
483
+ "@prosekit/extensions": "0.0.12",
484
+ "@prosekit/lit": "0.0.14",
485
+ "@prosekit/pm": "0.0.6",
486
+ "@prosekit/preact": "0.0.11",
487
+ "@prosekit/react": "0.0.14",
488
+ "@prosekit/solid": "0.0.12",
489
+ "@prosekit/svelte": "0.0.12",
490
+ "@prosekit/vue": "0.0.15"
486
491
  },
487
492
  "peerDependencies": {
488
493
  "preact": ">= 9.0.0",
@@ -514,13 +519,13 @@
514
519
  },
515
520
  "devDependencies": {
516
521
  "@prosekit/dev": "*",
517
- "@types/react": "^18.2.21",
522
+ "@types/react": "^18.2.22",
518
523
  "@types/react-dom": "^18.2.7",
519
524
  "preact": "^10.17.1",
520
525
  "react": "^18.2.0",
521
526
  "react-dom": "^18.2.0",
522
- "solid-js": "^1.7.11",
523
- "svelte": "^4.2.0",
527
+ "solid-js": "^1.7.12",
528
+ "svelte": "^4.2.1",
524
529
  "tsup": "^7.2.0",
525
530
  "typescript": "^5.2.2",
526
531
  "vue": "^3.3.4"
@@ -616,6 +621,9 @@
616
621
  "pm/commands": [
617
622
  "./dist/prosekit-pm-commands.d.ts"
618
623
  ],
624
+ "pm/history": [
625
+ "./dist/prosekit-pm-history.d.ts"
626
+ ],
619
627
  "pm/inputrules": [
620
628
  "./dist/prosekit-pm-inputrules.d.ts"
621
629
  ],