prosekit 0.0.7 → 0.0.9
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.
|
@@ -1,3 +1,98 @@
|
|
|
1
|
+
/* ../basic/src/internal/text-content.css */
|
|
2
|
+
.example-editor p:first-of-type {
|
|
3
|
+
margin-top: 0;
|
|
4
|
+
}
|
|
5
|
+
.example-editor p:last-of-type {
|
|
6
|
+
margin-bottom: 0;
|
|
7
|
+
}
|
|
8
|
+
.example-editor h1,
|
|
9
|
+
.example-editor h2,
|
|
10
|
+
.example-editor h3,
|
|
11
|
+
.example-editor h4,
|
|
12
|
+
.example-editor h5,
|
|
13
|
+
.example-editor h6 {
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
line-height: 1.25;
|
|
16
|
+
}
|
|
17
|
+
.example-editor a {
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
}
|
|
21
|
+
.example-editor p,
|
|
22
|
+
.example-editor ul,
|
|
23
|
+
.example-editor ol,
|
|
24
|
+
.example-editor pre {
|
|
25
|
+
margin: 1em 0;
|
|
26
|
+
line-height: 1.5;
|
|
27
|
+
}
|
|
28
|
+
.example-editor blockquote {
|
|
29
|
+
margin: 1em 0;
|
|
30
|
+
padding-left: 1em;
|
|
31
|
+
font-style: italic;
|
|
32
|
+
}
|
|
33
|
+
.example-editor h1 {
|
|
34
|
+
margin: 1rem 0;
|
|
35
|
+
font-size: 2.25em;
|
|
36
|
+
}
|
|
37
|
+
.example-editor h2 {
|
|
38
|
+
margin: 1.75em 0 0.5em;
|
|
39
|
+
font-size: 1.75em;
|
|
40
|
+
}
|
|
41
|
+
.example-editor h3 {
|
|
42
|
+
margin: 1.5em 0 0.5em;
|
|
43
|
+
font-size: 1.375em;
|
|
44
|
+
}
|
|
45
|
+
.example-editor h4 {
|
|
46
|
+
margin: 1em 0;
|
|
47
|
+
font-size: 1.125em;
|
|
48
|
+
}
|
|
49
|
+
.example-editor img,
|
|
50
|
+
.example-editor video {
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
}
|
|
53
|
+
.example-editor code {
|
|
54
|
+
font-size: 0.875em;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
}
|
|
57
|
+
.example-editor pre {
|
|
58
|
+
padding: 1.25rem 1.5rem;
|
|
59
|
+
overflow-x: auto;
|
|
60
|
+
border-radius: 0.375rem;
|
|
61
|
+
}
|
|
62
|
+
.example-editor pre,
|
|
63
|
+
.example-editor code {
|
|
64
|
+
white-space: pre;
|
|
65
|
+
word-spacing: normal;
|
|
66
|
+
word-break: normal;
|
|
67
|
+
word-wrap: normal;
|
|
68
|
+
-moz-tab-size: 4;
|
|
69
|
+
-o-tab-size: 4;
|
|
70
|
+
tab-size: 4;
|
|
71
|
+
-webkit-hyphens: none;
|
|
72
|
+
-moz-hyphens: none;
|
|
73
|
+
hyphens: none;
|
|
74
|
+
background: transparent;
|
|
75
|
+
}
|
|
76
|
+
.example-editor pre code {
|
|
77
|
+
font-weight: inherit;
|
|
78
|
+
}
|
|
79
|
+
.example-editor hr {
|
|
80
|
+
margin: 2em 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ../basic/src/internal/component.css */
|
|
84
|
+
.example-slash-menu {
|
|
85
|
+
@apply relative max-h-[400px] min-w-[120px] select-none overflow-auto whitespace-nowrap rounded;
|
|
86
|
+
@apply bg-white dark:bg-zinc-800;
|
|
87
|
+
@apply border border-solid border-gray-500;
|
|
88
|
+
}
|
|
89
|
+
.example-slash-menu-item {
|
|
90
|
+
@apply relative min-w-[64px] cursor-pointer select-none whitespace-nowrap p-2;
|
|
91
|
+
}
|
|
92
|
+
.example-slash-menu-item[data-selected] {
|
|
93
|
+
@apply bg-gray-200 dark:bg-gray-700;
|
|
94
|
+
}
|
|
95
|
+
|
|
1
96
|
/* ../basic/src/internal/example.css */
|
|
2
97
|
.example-editor {
|
|
3
98
|
@apply my-2 box-border h-[250px] w-full overflow-auto rounded-md p-4 outline outline-2;
|
|
@@ -17,27 +112,17 @@
|
|
|
17
112
|
"Segoe UI Symbol",
|
|
18
113
|
"Noto Color Emoji";
|
|
19
114
|
}
|
|
20
|
-
.example-editor
|
|
21
|
-
|
|
22
|
-
margin-top: 0.75em;
|
|
23
|
-
margin-bottom: 0.75em;
|
|
24
|
-
}
|
|
25
|
-
.example-editor p:first-of-type {
|
|
26
|
-
margin-top: 0;
|
|
27
|
-
}
|
|
28
|
-
.example-editor p:last-of-type {
|
|
29
|
-
margin-bottom: 0;
|
|
115
|
+
.example-editor span[data-mention=user] {
|
|
116
|
+
@apply rounded-sm text-blue-500;
|
|
30
117
|
}
|
|
31
|
-
.example-
|
|
32
|
-
@
|
|
33
|
-
@apply bg-white dark:bg-zinc-800;
|
|
34
|
-
@apply border border-solid border-gray-500;
|
|
118
|
+
.example-editor span[data-mention=user]::before {
|
|
119
|
+
content: "@";
|
|
35
120
|
}
|
|
36
|
-
.example-
|
|
37
|
-
@apply
|
|
121
|
+
.example-editor span[data-mention=tag] {
|
|
122
|
+
@apply rounded-sm bg-slate-300;
|
|
38
123
|
}
|
|
39
|
-
.example-
|
|
40
|
-
|
|
124
|
+
.example-editor span[data-mention=tag]::before {
|
|
125
|
+
content: "#";
|
|
41
126
|
}
|
|
42
127
|
|
|
43
128
|
/* src/basic/internal/example.css */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@prosekit/extensions/mention';
|
package/dist/prosekit.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import '@prosekit/extensions/code';
|
|
|
8
8
|
import '@prosekit/extensions/heading';
|
|
9
9
|
import '@prosekit/extensions/italic';
|
|
10
10
|
import '@prosekit/extensions/list';
|
|
11
|
+
import '@prosekit/extensions/mention';
|
|
11
12
|
import '@prosekit/extensions/placeholder';
|
|
12
13
|
import '@prosekit/extensions/suggestion';
|
|
13
14
|
import '@prosekit/lit';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosekit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -92,6 +92,11 @@
|
|
|
92
92
|
"./extensions/list/style.css": {
|
|
93
93
|
"default": "./dist/extensions/list/style.css"
|
|
94
94
|
},
|
|
95
|
+
"./extensions/mention": {
|
|
96
|
+
"types": "./dist/prosekit-extensions-mention.d.ts",
|
|
97
|
+
"import": "./dist/prosekit-extensions-mention.js",
|
|
98
|
+
"default": "./dist/prosekit-extensions-mention.js"
|
|
99
|
+
},
|
|
95
100
|
"./extensions/placeholder": {
|
|
96
101
|
"types": "./dist/prosekit-extensions-placeholder.d.ts",
|
|
97
102
|
"import": "./dist/prosekit-extensions-placeholder.js",
|
|
@@ -308,16 +313,16 @@
|
|
|
308
313
|
"dist"
|
|
309
314
|
],
|
|
310
315
|
"dependencies": {
|
|
311
|
-
"@prosekit/basic": "0.0.
|
|
312
|
-
"@prosekit/core": "0.0.
|
|
313
|
-
"@prosekit/extensions": "0.0.
|
|
314
|
-
"@prosekit/lit": "0.0.
|
|
316
|
+
"@prosekit/basic": "0.0.7",
|
|
317
|
+
"@prosekit/core": "0.0.6",
|
|
318
|
+
"@prosekit/extensions": "0.0.6",
|
|
319
|
+
"@prosekit/lit": "0.0.7",
|
|
315
320
|
"@prosekit/pm": "0.0.3",
|
|
316
|
-
"@prosekit/preact": "0.0.
|
|
317
|
-
"@prosekit/react": "0.0.
|
|
318
|
-
"@prosekit/solid": "0.0.
|
|
319
|
-
"@prosekit/svelte": "0.0.
|
|
320
|
-
"@prosekit/vue": "0.0.
|
|
321
|
+
"@prosekit/preact": "0.0.4",
|
|
322
|
+
"@prosekit/react": "0.0.7",
|
|
323
|
+
"@prosekit/solid": "0.0.5",
|
|
324
|
+
"@prosekit/svelte": "0.0.4",
|
|
325
|
+
"@prosekit/vue": "0.0.7"
|
|
321
326
|
},
|
|
322
327
|
"peerDependencies": {
|
|
323
328
|
"preact": ">= 9.0.0",
|
|
@@ -400,6 +405,9 @@
|
|
|
400
405
|
"extensions/list": [
|
|
401
406
|
"./dist/prosekit-extensions-list.d.ts"
|
|
402
407
|
],
|
|
408
|
+
"extensions/mention": [
|
|
409
|
+
"./dist/prosekit-extensions-mention.d.ts"
|
|
410
|
+
],
|
|
403
411
|
"extensions/placeholder": [
|
|
404
412
|
"./dist/prosekit-extensions-placeholder.d.ts"
|
|
405
413
|
],
|