prosekit 0.9.9 → 0.9.11

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.
@@ -79,6 +79,7 @@ import { CommandAction } from '@prosekit/core';
79
79
  import { CommandTyping } from '@prosekit/core';
80
80
  import { Commit } from '@prosekit/extensions/commit';
81
81
  import { CommitRecorder } from '@prosekit/extensions/commit';
82
+ import { containsInlineNode } from '@prosekit/core';
82
83
  import { ContentMatch } from '@prosekit/pm/model';
83
84
  import { createEditor } from '@prosekit/core';
84
85
  import { createMarkInputRule } from '@prosekit/extensions/input-rule';
@@ -147,6 +148,7 @@ import { defineEnterRule } from '@prosekit/extensions/enter-rule';
147
148
  import { defineFacet } from '@prosekit/core';
148
149
  import { defineFacetPayload } from '@prosekit/core';
149
150
  import { defineFocusChangeHandler } from '@prosekit/core';
151
+ import { defineGapCursor } from '@prosekit/extensions/gap-cursor';
150
152
  import { defineHeading } from '@prosekit/extensions/heading';
151
153
  import { defineHeadingCommands } from '@prosekit/extensions/heading';
152
154
  import { defineHeadingInputRule } from '@prosekit/extensions/heading';
@@ -277,6 +279,7 @@ import { Facet } from '@prosekit/core';
277
279
  import { findWrapping } from '@prosekit/pm/transform';
278
280
  import { FocusChangeHandler } from '@prosekit/core';
279
281
  import { Fragment } from '@prosekit/pm/model';
282
+ import { GapCursor } from '@prosekit/extensions/gap-cursor';
280
283
  import { GenericParseRule } from '@prosekit/pm/model';
281
284
  import { _getId } from '@prosekit/core';
282
285
  import { getMarkType } from '@prosekit/core';
@@ -776,6 +779,8 @@ export { Commit }
776
779
 
777
780
  export { CommitRecorder }
778
781
 
782
+ export { containsInlineNode }
783
+
779
784
  export { ContentMatch }
780
785
 
781
786
  export { createEditor }
@@ -920,6 +925,8 @@ export { defineFacetPayload }
920
925
 
921
926
  export { defineFocusChangeHandler }
922
927
 
928
+ export { defineGapCursor }
929
+
923
930
  export { defineHeading }
924
931
 
925
932
  export { defineHeadingCommands }
@@ -1180,6 +1187,8 @@ export { FocusChangeHandler }
1180
1187
 
1181
1188
  export { Fragment }
1182
1189
 
1190
+ export { GapCursor }
1191
+
1183
1192
  export { GenericParseRule }
1184
1193
 
1185
1194
  export { _getId }
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.33.8/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.33.9/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -52,7 +52,7 @@ img.ProseMirror-separator {
52
52
 
53
53
  /* ../pm/src/view/style/prosemirror.css */
54
54
 
55
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.3/node_modules/prosemirror-flat-list/dist/style.css */
55
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.4/node_modules/prosemirror-flat-list/dist/style.css */
56
56
  .prosemirror-flat-list {
57
57
  padding: 0;
58
58
  margin-top: 0;
@@ -202,6 +202,30 @@ img.ProseMirror-separator {
202
202
  background-color: #53e54b80;
203
203
  }
204
204
 
205
+ /* ../extensions/src/gap-cursor/style.css */
206
+ .ProseMirror-gapcursor {
207
+ display: none;
208
+ pointer-events: none;
209
+ position: relative;
210
+ }
211
+ .ProseMirror-gapcursor:after {
212
+ content: "";
213
+ display: block;
214
+ position: absolute;
215
+ top: -2px;
216
+ width: 20px;
217
+ border-top: 1px solid currentColor;
218
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
219
+ }
220
+ @keyframes ProseMirror-cursor-blink {
221
+ to {
222
+ visibility: hidden;
223
+ }
224
+ }
225
+ .ProseMirror-focused .ProseMirror-gapcursor {
226
+ display: block;
227
+ }
228
+
205
229
  /* ../basic/src/style.css */
206
230
 
207
231
  /* src/basic/style.css */
@@ -0,0 +1,25 @@
1
+ /* ../extensions/src/gap-cursor/style.css */
2
+ .ProseMirror-gapcursor {
3
+ display: none;
4
+ pointer-events: none;
5
+ position: relative;
6
+ }
7
+ .ProseMirror-gapcursor:after {
8
+ content: "";
9
+ display: block;
10
+ position: absolute;
11
+ top: -2px;
12
+ width: 20px;
13
+ border-top: 1px solid currentColor;
14
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
15
+ }
16
+ @keyframes ProseMirror-cursor-blink {
17
+ to {
18
+ visibility: hidden;
19
+ }
20
+ }
21
+ .ProseMirror-focused .ProseMirror-gapcursor {
22
+ display: block;
23
+ }
24
+
25
+ /* src/extensions/gap-cursor/style.css */
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.3/node_modules/prosemirror-flat-list/dist/style.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.4/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.33.8/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.33.9/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
@@ -136,6 +136,7 @@ export { canUseRegexLookbehind } from './_tsup-dts-rollup';
136
136
  export { clsx } from './_tsup-dts-rollup';
137
137
  export { collectNodes } from './_tsup-dts-rollup';
138
138
  export { NodeContent } from './_tsup-dts-rollup';
139
+ export { containsInlineNode } from './_tsup-dts-rollup';
139
140
  export { defaultBlockAt } from './_tsup-dts-rollup';
140
141
  export { isApple } from './_tsup-dts-rollup';
141
142
  export { _getId } from './_tsup-dts-rollup';
@@ -0,0 +1,2 @@
1
+ export { defineGapCursor } from './_tsup-dts-rollup';
2
+ export { GapCursor } from './_tsup-dts-rollup';
@@ -0,0 +1,2 @@
1
+ // src/extensions/gap-cursor.gen.ts
2
+ export * from "@prosekit/extensions/gap-cursor";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prosekit",
3
3
  "type": "module",
4
- "version": "0.9.9",
4
+ "version": "0.9.11",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -99,6 +99,14 @@
99
99
  "import": "./dist/prosekit-extensions-enter-rule.js",
100
100
  "default": "./dist/prosekit-extensions-enter-rule.js"
101
101
  },
102
+ "./extensions/gap-cursor": {
103
+ "types": "./dist/prosekit-extensions-gap-cursor.d.ts",
104
+ "import": "./dist/prosekit-extensions-gap-cursor.js",
105
+ "default": "./dist/prosekit-extensions-gap-cursor.js"
106
+ },
107
+ "./extensions/gap-cursor/style.css": {
108
+ "default": "./dist/extensions/gap-cursor/style.css"
109
+ },
102
110
  "./extensions/heading": {
103
111
  "types": "./dist/prosekit-extensions-heading.d.ts",
104
112
  "import": "./dist/prosekit-extensions-heading.js",
@@ -497,17 +505,17 @@
497
505
  "dist"
498
506
  ],
499
507
  "dependencies": {
500
- "@prosekit/basic": "0.3.16",
501
- "@prosekit/extensions": "0.7.4",
502
- "@prosekit/core": "0.7.4",
503
- "@prosekit/lit": "0.3.12",
504
- "@prosekit/pm": "0.1.6",
505
- "@prosekit/preact": "0.3.15",
506
- "@prosekit/solid": "0.3.14",
507
- "@prosekit/react": "0.3.16",
508
- "@prosekit/svelte": "0.4.6",
509
- "@prosekit/vue": "0.3.15",
510
- "@prosekit/web": "0.3.4"
508
+ "@prosekit/basic": "0.3.18",
509
+ "@prosekit/lit": "0.3.14",
510
+ "@prosekit/core": "0.7.5",
511
+ "@prosekit/extensions": "0.7.6",
512
+ "@prosekit/pm": "0.1.7",
513
+ "@prosekit/react": "0.3.18",
514
+ "@prosekit/solid": "0.3.16",
515
+ "@prosekit/preact": "0.3.17",
516
+ "@prosekit/svelte": "0.4.8",
517
+ "@prosekit/vue": "0.3.17",
518
+ "@prosekit/web": "0.3.6"
511
519
  },
512
520
  "peerDependencies": {
513
521
  "preact": ">= 10.11.0",
@@ -542,14 +550,14 @@
542
550
  "@types/react-dom": "^18.3.0",
543
551
  "postcss": "^8.4.39",
544
552
  "postcss-nesting": "^12.1.5",
545
- "preact": "^10.22.1",
553
+ "preact": "^10.23.0",
546
554
  "react": "^18.3.1",
547
555
  "react-dom": "^18.3.1",
548
556
  "solid-js": "^1.8.18",
549
557
  "svelte": "^4.2.18",
550
- "tsup": "^8.1.2",
558
+ "tsup": "^8.2.2",
551
559
  "typescript": "^5.5.3",
552
- "vue": "^3.4.32",
560
+ "vue": "^3.4.33",
553
561
  "@prosekit/dev": "0.0.0"
554
562
  },
555
563
  "scripts": {
@@ -598,6 +606,9 @@
598
606
  "extensions/enter-rule": [
599
607
  "./dist/prosekit-extensions-enter-rule.d.ts"
600
608
  ],
609
+ "extensions/gap-cursor": [
610
+ "./dist/prosekit-extensions-gap-cursor.d.ts"
611
+ ],
601
612
  "extensions/heading": [
602
613
  "./dist/prosekit-extensions-heading.d.ts"
603
614
  ],