prosekit 0.1.14 → 0.2.0
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/_tsup-dts-rollup.d.ts +0 -9
- package/dist/basic/style.css +10 -3
- package/dist/basic/{internal/preflight.css → typography.css} +2 -22
- package/dist/pm/view/style/prosemirror.css +1 -1
- package/package.json +14 -25
- package/dist/core/style.css +0 -57
- package/dist/prosekit-extensions-suggestion.d.ts +0 -3
- package/dist/prosekit-extensions-suggestion.js +0 -2
|
@@ -186,7 +186,6 @@ import { defineStrike } from '@prosekit/extensions/strike';
|
|
|
186
186
|
import { defineStrikeCommands } from '@prosekit/extensions/strike';
|
|
187
187
|
import { defineStrikeKeymap } from '@prosekit/extensions/strike';
|
|
188
188
|
import { defineStrikeSpec } from '@prosekit/extensions/strike';
|
|
189
|
-
import { defineSuggestion } from '@prosekit/extensions/suggestion';
|
|
190
189
|
import { defineText } from '@prosekit/core';
|
|
191
190
|
import { defineUnderline } from '@prosekit/extensions/underline';
|
|
192
191
|
import { defineUnderlineCommands } from '@prosekit/extensions/underline';
|
|
@@ -326,7 +325,6 @@ import { PopoverProps as PopoverProps_alias_2 } from '@prosekit/react/popover';
|
|
|
326
325
|
import { PopoverProps as PopoverProps_alias_3 } from '@prosekit/solid/popover';
|
|
327
326
|
import { PopoverProps as PopoverProps_alias_4 } from '@prosekit/svelte/popover';
|
|
328
327
|
import { PopoverProps as PopoverProps_alias_5 } from '@prosekit/vue/popover';
|
|
329
|
-
import { PredictionRule } from '@prosekit/extensions/suggestion';
|
|
330
328
|
import { Priority } from '@prosekit/core';
|
|
331
329
|
import { propNames } from '@prosekit/lit/autocomplete-empty';
|
|
332
330
|
import { propNames as propNames_alias_1 } from '@prosekit/lit/autocomplete-item';
|
|
@@ -397,7 +395,6 @@ import { StateJSON } from '@prosekit/core';
|
|
|
397
395
|
import { Step } from '@prosekit/pm/transform';
|
|
398
396
|
import { StepMap } from '@prosekit/pm/transform';
|
|
399
397
|
import { StepResult } from '@prosekit/pm/transform';
|
|
400
|
-
import { SuggestionOptions } from '@prosekit/extensions/suggestion';
|
|
401
398
|
import { textblockTypeInputRule } from '@prosekit/pm/inputrules';
|
|
402
399
|
import { TextSelection } from '@prosekit/pm/state';
|
|
403
400
|
import { toggleMark } from '@prosekit/core';
|
|
@@ -809,8 +806,6 @@ export { defineStrikeKeymap }
|
|
|
809
806
|
|
|
810
807
|
export { defineStrikeSpec }
|
|
811
808
|
|
|
812
|
-
export { defineSuggestion }
|
|
813
|
-
|
|
814
809
|
export { defineText }
|
|
815
810
|
|
|
816
811
|
export { defineUnderline }
|
|
@@ -1087,8 +1082,6 @@ export { PopoverProps_alias_4 }
|
|
|
1087
1082
|
|
|
1088
1083
|
export { PopoverProps_alias_5 }
|
|
1089
1084
|
|
|
1090
|
-
export { PredictionRule }
|
|
1091
|
-
|
|
1092
1085
|
export { Priority }
|
|
1093
1086
|
|
|
1094
1087
|
export { propNames }
|
|
@@ -1229,8 +1222,6 @@ export { StepMap }
|
|
|
1229
1222
|
|
|
1230
1223
|
export { StepResult }
|
|
1231
1224
|
|
|
1232
|
-
export { SuggestionOptions }
|
|
1233
|
-
|
|
1234
1225
|
export { textblockTypeInputRule }
|
|
1235
1226
|
|
|
1236
1227
|
export { TextSelection }
|
package/dist/basic/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ../../node_modules/.pnpm/prosemirror-view@1.32.
|
|
1
|
+
/* ../../node_modules/.pnpm/prosemirror-view@1.32.7/node_modules/prosemirror-view/style/prosemirror.css */
|
|
2
2
|
.ProseMirror {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
@@ -52,8 +52,6 @@ img.ProseMirror-separator {
|
|
|
52
52
|
|
|
53
53
|
/* ../pm/src/view/style/prosemirror.css */
|
|
54
54
|
|
|
55
|
-
/* ../core/src/style.css */
|
|
56
|
-
|
|
57
55
|
/* ../../node_modules/.pnpm/prosemirror-flat-list@0.4.5/node_modules/prosemirror-flat-list/dist/style.css */
|
|
58
56
|
.prosemirror-flat-list {
|
|
59
57
|
padding: 0;
|
|
@@ -144,6 +142,15 @@ img.ProseMirror-separator {
|
|
|
144
142
|
|
|
145
143
|
/* ../extensions/src/list/style.css */
|
|
146
144
|
|
|
145
|
+
/* ../extensions/src/placeholder/style.css */
|
|
146
|
+
.prosekit-placeholder::before {
|
|
147
|
+
position: absolute;
|
|
148
|
+
opacity: 30%;
|
|
149
|
+
pointer-events: none;
|
|
150
|
+
height: 0;
|
|
151
|
+
content: attr(data-placeholder);
|
|
152
|
+
}
|
|
153
|
+
|
|
147
154
|
/* ../basic/src/style.css */
|
|
148
155
|
|
|
149
156
|
/* src/basic/style.css */
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
/* ../basic/src/
|
|
2
|
-
*,
|
|
3
|
-
::before,
|
|
4
|
-
::after {
|
|
5
|
-
border-width: 0;
|
|
6
|
-
border-style: solid;
|
|
7
|
-
}
|
|
8
|
-
*:has(> div.ProseMirror) {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
font-family:
|
|
11
|
-
ui-sans-serif,
|
|
12
|
-
sans-serif,
|
|
13
|
-
"Apple Color Emoji",
|
|
14
|
-
"Segoe UI Emoji",
|
|
15
|
-
"Segoe UI Symbol",
|
|
16
|
-
"Noto Color Emoji",
|
|
17
|
-
system-ui;
|
|
18
|
-
}
|
|
19
|
-
*:has(> div.ProseMirror) * {
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
}
|
|
1
|
+
/* ../basic/src/typography.css */
|
|
22
2
|
div.ProseMirror {
|
|
23
3
|
& {
|
|
24
4
|
display: flex;
|
|
@@ -120,4 +100,4 @@ div.ProseMirror {
|
|
|
120
100
|
}
|
|
121
101
|
}
|
|
122
102
|
|
|
123
|
-
/* src/basic/
|
|
103
|
+
/* src/basic/typography.css */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosekit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -35,20 +35,17 @@
|
|
|
35
35
|
"import": "./dist/prosekit-basic.js",
|
|
36
36
|
"default": "./dist/prosekit-basic.js"
|
|
37
37
|
},
|
|
38
|
-
"./basic/internal/preflight.css": {
|
|
39
|
-
"default": "./dist/basic/internal/preflight.css"
|
|
40
|
-
},
|
|
41
38
|
"./basic/style.css": {
|
|
42
39
|
"default": "./dist/basic/style.css"
|
|
43
40
|
},
|
|
41
|
+
"./basic/typography.css": {
|
|
42
|
+
"default": "./dist/basic/typography.css"
|
|
43
|
+
},
|
|
44
44
|
"./core": {
|
|
45
45
|
"types": "./dist/prosekit-core.d.ts",
|
|
46
46
|
"import": "./dist/prosekit-core.js",
|
|
47
47
|
"default": "./dist/prosekit-core.js"
|
|
48
48
|
},
|
|
49
|
-
"./core/style.css": {
|
|
50
|
-
"default": "./dist/core/style.css"
|
|
51
|
-
},
|
|
52
49
|
"./extensions": {
|
|
53
50
|
"types": "./dist/prosekit-extensions.d.ts",
|
|
54
51
|
"import": "./dist/prosekit-extensions.js",
|
|
@@ -130,11 +127,6 @@
|
|
|
130
127
|
"import": "./dist/prosekit-extensions-strike.js",
|
|
131
128
|
"default": "./dist/prosekit-extensions-strike.js"
|
|
132
129
|
},
|
|
133
|
-
"./extensions/suggestion": {
|
|
134
|
-
"types": "./dist/prosekit-extensions-suggestion.d.ts",
|
|
135
|
-
"import": "./dist/prosekit-extensions-suggestion.js",
|
|
136
|
-
"default": "./dist/prosekit-extensions-suggestion.js"
|
|
137
|
-
},
|
|
138
130
|
"./extensions/underline": {
|
|
139
131
|
"types": "./dist/prosekit-extensions-underline.d.ts",
|
|
140
132
|
"import": "./dist/prosekit-extensions-underline.js",
|
|
@@ -523,16 +515,16 @@
|
|
|
523
515
|
"dist"
|
|
524
516
|
],
|
|
525
517
|
"dependencies": {
|
|
526
|
-
"@prosekit/basic": "0.
|
|
527
|
-
"@prosekit/core": "0.
|
|
528
|
-
"@prosekit/extensions": "0.
|
|
529
|
-
"@prosekit/lit": "0.1.
|
|
518
|
+
"@prosekit/basic": "0.2.0",
|
|
519
|
+
"@prosekit/core": "0.2.0",
|
|
520
|
+
"@prosekit/extensions": "0.2.0",
|
|
521
|
+
"@prosekit/lit": "0.1.6",
|
|
530
522
|
"@prosekit/pm": "0.1.1",
|
|
531
|
-
"@prosekit/preact": "0.1.
|
|
532
|
-
"@prosekit/react": "0.1.
|
|
533
|
-
"@prosekit/solid": "0.1.
|
|
534
|
-
"@prosekit/svelte": "0.1.
|
|
535
|
-
"@prosekit/vue": "0.1.
|
|
523
|
+
"@prosekit/preact": "0.1.3",
|
|
524
|
+
"@prosekit/react": "0.1.4",
|
|
525
|
+
"@prosekit/solid": "0.1.4",
|
|
526
|
+
"@prosekit/svelte": "0.1.3",
|
|
527
|
+
"@prosekit/vue": "0.1.4"
|
|
536
528
|
},
|
|
537
529
|
"peerDependencies": {
|
|
538
530
|
"preact": ">= 9.0.0",
|
|
@@ -573,7 +565,7 @@
|
|
|
573
565
|
"svelte": "^4.2.8",
|
|
574
566
|
"tsup": "^8.0.1",
|
|
575
567
|
"typescript": "^5.3.3",
|
|
576
|
-
"vue": "^3.
|
|
568
|
+
"vue": "^3.4.0-rc.2"
|
|
577
569
|
},
|
|
578
570
|
"scripts": {
|
|
579
571
|
"build:tsup": "tsup",
|
|
@@ -636,9 +628,6 @@
|
|
|
636
628
|
"extensions/strike": [
|
|
637
629
|
"./dist/prosekit-extensions-strike.d.ts"
|
|
638
630
|
],
|
|
639
|
-
"extensions/suggestion": [
|
|
640
|
-
"./dist/prosekit-extensions-suggestion.d.ts"
|
|
641
|
-
],
|
|
642
631
|
"extensions/underline": [
|
|
643
632
|
"./dist/prosekit-extensions-underline.d.ts"
|
|
644
633
|
],
|
package/dist/core/style.css
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* ../../node_modules/.pnpm/prosemirror-view@1.32.6/node_modules/prosemirror-view/style/prosemirror.css */
|
|
2
|
-
.ProseMirror {
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
.ProseMirror {
|
|
6
|
-
word-wrap: break-word;
|
|
7
|
-
white-space: pre-wrap;
|
|
8
|
-
white-space: break-spaces;
|
|
9
|
-
-webkit-font-variant-ligatures: none;
|
|
10
|
-
font-variant-ligatures: none;
|
|
11
|
-
font-feature-settings: "liga" 0;
|
|
12
|
-
}
|
|
13
|
-
.ProseMirror pre {
|
|
14
|
-
white-space: pre-wrap;
|
|
15
|
-
}
|
|
16
|
-
.ProseMirror li {
|
|
17
|
-
position: relative;
|
|
18
|
-
}
|
|
19
|
-
.ProseMirror-hideselection *::selection {
|
|
20
|
-
background: transparent;
|
|
21
|
-
}
|
|
22
|
-
.ProseMirror-hideselection *::-moz-selection {
|
|
23
|
-
background: transparent;
|
|
24
|
-
}
|
|
25
|
-
.ProseMirror-hideselection {
|
|
26
|
-
caret-color: transparent;
|
|
27
|
-
}
|
|
28
|
-
.ProseMirror [draggable][contenteditable=false] {
|
|
29
|
-
user-select: text;
|
|
30
|
-
}
|
|
31
|
-
.ProseMirror-selectednode {
|
|
32
|
-
outline: 2px solid #8cf;
|
|
33
|
-
}
|
|
34
|
-
li.ProseMirror-selectednode {
|
|
35
|
-
outline: none;
|
|
36
|
-
}
|
|
37
|
-
li.ProseMirror-selectednode:after {
|
|
38
|
-
content: "";
|
|
39
|
-
position: absolute;
|
|
40
|
-
left: -32px;
|
|
41
|
-
right: -2px;
|
|
42
|
-
top: -2px;
|
|
43
|
-
bottom: -2px;
|
|
44
|
-
border: 2px solid #8cf;
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
}
|
|
47
|
-
img.ProseMirror-separator {
|
|
48
|
-
display: inline !important;
|
|
49
|
-
border: none !important;
|
|
50
|
-
margin: 0 !important;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* ../pm/src/view/style/prosemirror.css */
|
|
54
|
-
|
|
55
|
-
/* ../core/src/style.css */
|
|
56
|
-
|
|
57
|
-
/* src/core/style.css */
|