prosekit 0.9.10 → 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.
@@ -148,6 +148,7 @@ import { defineEnterRule } from '@prosekit/extensions/enter-rule';
148
148
  import { defineFacet } from '@prosekit/core';
149
149
  import { defineFacetPayload } from '@prosekit/core';
150
150
  import { defineFocusChangeHandler } from '@prosekit/core';
151
+ import { defineGapCursor } from '@prosekit/extensions/gap-cursor';
151
152
  import { defineHeading } from '@prosekit/extensions/heading';
152
153
  import { defineHeadingCommands } from '@prosekit/extensions/heading';
153
154
  import { defineHeadingInputRule } from '@prosekit/extensions/heading';
@@ -278,6 +279,7 @@ import { Facet } from '@prosekit/core';
278
279
  import { findWrapping } from '@prosekit/pm/transform';
279
280
  import { FocusChangeHandler } from '@prosekit/core';
280
281
  import { Fragment } from '@prosekit/pm/model';
282
+ import { GapCursor } from '@prosekit/extensions/gap-cursor';
281
283
  import { GenericParseRule } from '@prosekit/pm/model';
282
284
  import { _getId } from '@prosekit/core';
283
285
  import { getMarkType } from '@prosekit/core';
@@ -923,6 +925,8 @@ export { defineFacetPayload }
923
925
 
924
926
  export { defineFocusChangeHandler }
925
927
 
928
+ export { defineGapCursor }
929
+
926
930
  export { defineHeading }
927
931
 
928
932
  export { defineHeadingCommands }
@@ -1183,6 +1187,8 @@ export { FocusChangeHandler }
1183
1187
 
1184
1188
  export { Fragment }
1185
1189
 
1190
+ export { GapCursor }
1191
+
1186
1192
  export { GenericParseRule }
1187
1193
 
1188
1194
  export { _getId }
@@ -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 */
@@ -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.10",
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.17",
501
- "@prosekit/extensions": "0.7.5",
508
+ "@prosekit/basic": "0.3.18",
509
+ "@prosekit/lit": "0.3.14",
502
510
  "@prosekit/core": "0.7.5",
503
- "@prosekit/lit": "0.3.13",
511
+ "@prosekit/extensions": "0.7.6",
504
512
  "@prosekit/pm": "0.1.7",
505
- "@prosekit/preact": "0.3.16",
506
- "@prosekit/react": "0.3.17",
507
- "@prosekit/solid": "0.3.15",
508
- "@prosekit/svelte": "0.4.7",
509
- "@prosekit/web": "0.3.5",
510
- "@prosekit/vue": "0.3.16"
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
  ],