prosekit 0.11.3 → 0.11.5
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 { canUseRegexLookbehind } from '@prosekit/core';
|
|
|
148
148
|
import { chainCommands } from '@prosekit/pm/commands';
|
|
149
149
|
import { ClickHandler } from '@prosekit/core';
|
|
150
150
|
import { ClickOnHandler } from '@prosekit/core';
|
|
151
|
+
import { ClipboardSerializerOptions } from '@prosekit/core';
|
|
151
152
|
import { closeDoubleQuote } from '@prosekit/pm/inputrules';
|
|
152
153
|
import { closeHistory } from '@prosekit/pm/history';
|
|
153
154
|
import { closeSingleQuote } from '@prosekit/pm/inputrules';
|
|
@@ -196,6 +197,7 @@ import { defineBoldKeymap } from '@prosekit/extensions/bold';
|
|
|
196
197
|
import { defineBoldSpec } from '@prosekit/extensions/bold';
|
|
197
198
|
import { defineClickHandler } from '@prosekit/core';
|
|
198
199
|
import { defineClickOnHandler } from '@prosekit/core';
|
|
200
|
+
import { defineClipboardSerializer } from '@prosekit/core';
|
|
199
201
|
import { defineCode } from '@prosekit/extensions/code';
|
|
200
202
|
import { defineCodeBlock } from '@prosekit/extensions/code-block';
|
|
201
203
|
import { defineCodeBlockCommands } from '@prosekit/extensions/code-block';
|
|
@@ -260,6 +262,7 @@ import { defineListCommands } from '@prosekit/extensions/list';
|
|
|
260
262
|
import { defineListInputRules } from '@prosekit/extensions/list';
|
|
261
263
|
import { defineListKeymap } from '@prosekit/extensions/list';
|
|
262
264
|
import { defineListPlugins } from '@prosekit/extensions/list';
|
|
265
|
+
import { defineListSerializer } from '@prosekit/extensions/list';
|
|
263
266
|
import { defineListSpec } from '@prosekit/extensions/list';
|
|
264
267
|
import { defineLoro } from '@prosekit/extensions/loro';
|
|
265
268
|
import { defineLoroCommands } from '@prosekit/extensions/loro';
|
|
@@ -446,6 +449,7 @@ import { isAllSelection } from '@prosekit/core';
|
|
|
446
449
|
import { isApple } from '@prosekit/core';
|
|
447
450
|
import { isAtBlockStart } from '@prosekit/core';
|
|
448
451
|
import { isCellSelection } from '@prosekit/extensions/table';
|
|
452
|
+
import { isElement } from '@prosekit/core';
|
|
449
453
|
import { isFragment } from '@prosekit/core';
|
|
450
454
|
import { isInCodeBlock } from '@prosekit/core';
|
|
451
455
|
import { isMark } from '@prosekit/core';
|
|
@@ -1325,6 +1329,8 @@ export { ClickHandler }
|
|
|
1325
1329
|
|
|
1326
1330
|
export { ClickOnHandler }
|
|
1327
1331
|
|
|
1332
|
+
export { ClipboardSerializerOptions }
|
|
1333
|
+
|
|
1328
1334
|
export { closeDoubleQuote }
|
|
1329
1335
|
|
|
1330
1336
|
export { closeHistory }
|
|
@@ -1421,6 +1427,8 @@ export { defineClickHandler }
|
|
|
1421
1427
|
|
|
1422
1428
|
export { defineClickOnHandler }
|
|
1423
1429
|
|
|
1430
|
+
export { defineClipboardSerializer }
|
|
1431
|
+
|
|
1424
1432
|
export { defineCode }
|
|
1425
1433
|
|
|
1426
1434
|
export { defineCodeBlock }
|
|
@@ -1549,6 +1557,8 @@ export { defineListKeymap }
|
|
|
1549
1557
|
|
|
1550
1558
|
export { defineListPlugins }
|
|
1551
1559
|
|
|
1560
|
+
export { defineListSerializer }
|
|
1561
|
+
|
|
1552
1562
|
export { defineListSpec }
|
|
1553
1563
|
|
|
1554
1564
|
export { defineLoro }
|
|
@@ -1921,6 +1931,8 @@ export { isAtBlockStart }
|
|
|
1921
1931
|
|
|
1922
1932
|
export { isCellSelection }
|
|
1923
1933
|
|
|
1934
|
+
export { isElement }
|
|
1935
|
+
|
|
1924
1936
|
export { isFragment }
|
|
1925
1937
|
|
|
1926
1938
|
export { isInCodeBlock }
|
|
@@ -3,6 +3,9 @@ div.ProseMirror {
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
}
|
|
6
|
+
div.ProseMirror {
|
|
7
|
+
line-height: 1.5;
|
|
8
|
+
}
|
|
6
9
|
div.ProseMirror p:first-child,
|
|
7
10
|
div.ProseMirror h1:first-child,
|
|
8
11
|
div.ProseMirror h2:first-child,
|
|
@@ -105,6 +108,7 @@ div.ProseMirror hr {
|
|
|
105
108
|
div.ProseMirror .prosekit-horizontal-rule {
|
|
106
109
|
padding: 1em 0;
|
|
107
110
|
margin: 1em 0;
|
|
111
|
+
line-height: 1px;
|
|
108
112
|
}
|
|
109
113
|
:is(div.ProseMirror .prosekit-horizontal-rule) hr {
|
|
110
114
|
margin: 0;
|
package/dist/prosekit-core.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ export { union } from './_tsup-dts-rollup.js';
|
|
|
38
38
|
export { withPriority } from './_tsup-dts-rollup.js';
|
|
39
39
|
export { EditorNotFoundError } from './_tsup-dts-rollup.js';
|
|
40
40
|
export { ProseKitError } from './_tsup-dts-rollup.js';
|
|
41
|
+
export { defineClipboardSerializer } from './_tsup-dts-rollup.js';
|
|
42
|
+
export { ClipboardSerializerOptions } from './_tsup-dts-rollup.js';
|
|
41
43
|
export { defineBaseCommands } from './_tsup-dts-rollup.js';
|
|
42
44
|
export { defineCommands } from './_tsup-dts-rollup.js';
|
|
43
45
|
export { BaseCommandsExtension } from './_tsup-dts-rollup.js';
|
|
@@ -168,6 +170,7 @@ export { _getId } from './_tsup-dts-rollup.js';
|
|
|
168
170
|
export { getMarkType } from './_tsup-dts-rollup.js';
|
|
169
171
|
export { getNodeType } from './_tsup-dts-rollup.js';
|
|
170
172
|
export { isAtBlockStart } from './_tsup-dts-rollup.js';
|
|
173
|
+
export { isElement } from './_tsup-dts-rollup.js';
|
|
171
174
|
export { isInCodeBlock } from './_tsup-dts-rollup.js';
|
|
172
175
|
export { isMarkAbsent } from './_tsup-dts-rollup.js';
|
|
173
176
|
export { isMarkActive } from './_tsup-dts-rollup.js';
|
|
@@ -11,6 +11,7 @@ export { ListCommandsExtension } from './_tsup-dts-rollup.js';
|
|
|
11
11
|
export { defineListInputRules } from './_tsup-dts-rollup.js';
|
|
12
12
|
export { defineListKeymap } from './_tsup-dts-rollup.js';
|
|
13
13
|
export { defineListPlugins } from './_tsup-dts-rollup.js';
|
|
14
|
+
export { defineListSerializer } from './_tsup-dts-rollup.js';
|
|
14
15
|
export { defineListSpec } from './_tsup-dts-rollup.js';
|
|
15
16
|
export { ListSpecExtension } from './_tsup-dts-rollup.js';
|
|
16
17
|
export { ListAttrs } from './_tsup-dts-rollup.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosekit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -566,17 +566,17 @@
|
|
|
566
566
|
"dist"
|
|
567
567
|
],
|
|
568
568
|
"dependencies": {
|
|
569
|
-
"@prosekit/basic": "0.3.
|
|
570
|
-
"@prosekit/core": "0.7.
|
|
571
|
-
"@prosekit/extensions": "0.7.
|
|
572
|
-
"@prosekit/lit": "0.4.7",
|
|
573
|
-
"@prosekit/preact": "0.4.7",
|
|
569
|
+
"@prosekit/basic": "0.3.37",
|
|
570
|
+
"@prosekit/core": "0.7.15",
|
|
571
|
+
"@prosekit/extensions": "0.7.24",
|
|
574
572
|
"@prosekit/pm": "0.1.9",
|
|
575
|
-
"@prosekit/
|
|
576
|
-
"@prosekit/
|
|
577
|
-
"@prosekit/
|
|
578
|
-
"@prosekit/
|
|
579
|
-
"@prosekit/
|
|
573
|
+
"@prosekit/lit": "0.4.9",
|
|
574
|
+
"@prosekit/preact": "0.4.9",
|
|
575
|
+
"@prosekit/react": "0.4.10",
|
|
576
|
+
"@prosekit/solid": "0.4.10",
|
|
577
|
+
"@prosekit/svelte": "0.6.5",
|
|
578
|
+
"@prosekit/vue": "0.4.10",
|
|
579
|
+
"@prosekit/web": "0.5.5"
|
|
580
580
|
},
|
|
581
581
|
"peerDependencies": {
|
|
582
582
|
"loro-crdt": ">= 0.16.7",
|
|
@@ -625,24 +625,24 @@
|
|
|
625
625
|
"devDependencies": {
|
|
626
626
|
"@types/react": "^18.3.18",
|
|
627
627
|
"@types/react-dom": "^18.3.5",
|
|
628
|
-
"loro-crdt": "^1.
|
|
629
|
-
"loro-prosemirror": "^0.2.
|
|
630
|
-
"postcss": "^8.
|
|
628
|
+
"loro-crdt": "^1.3.0",
|
|
629
|
+
"loro-prosemirror": "^0.2.1",
|
|
630
|
+
"postcss": "^8.5.0",
|
|
631
631
|
"postcss-nesting": "^13.0.1",
|
|
632
632
|
"preact": "^10.25.4",
|
|
633
633
|
"react": "^18.3.1",
|
|
634
634
|
"react-dom": "^18.3.1",
|
|
635
|
-
"solid-js": "^1.9.
|
|
636
|
-
"svelte": "^5.
|
|
635
|
+
"solid-js": "^1.9.4",
|
|
636
|
+
"svelte": "^5.17.4",
|
|
637
637
|
"tsup": "^8.3.5",
|
|
638
638
|
"typedoc": "^0.27.6",
|
|
639
639
|
"typedoc-plugin-external-package-links": "^0.1.0",
|
|
640
640
|
"typedoc-plugin-md": "^0.5.0",
|
|
641
|
-
"typedoc-plugin-mdn-links": "^4.0.
|
|
641
|
+
"typedoc-plugin-mdn-links": "^4.0.8",
|
|
642
642
|
"typescript": "~5.7.2",
|
|
643
643
|
"vue": "^3.5.13",
|
|
644
644
|
"y-prosemirror": "^1.2.15",
|
|
645
|
-
"yjs": "^13.6.
|
|
645
|
+
"yjs": "^13.6.22",
|
|
646
646
|
"@prosekit/dev": "0.0.0"
|
|
647
647
|
},
|
|
648
648
|
"scripts": {
|