@prosekit/basic 0.0.3 → 0.0.4
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/internal/example.css +54 -0
- package/dist/style.css +0 -3
- package/package.json +6 -1
@@ -0,0 +1,54 @@
|
|
1
|
+
/* src/internal/example.css */
|
2
|
+
.example-editor {
|
3
|
+
box-sizing: border-box;
|
4
|
+
height: 250px;
|
5
|
+
width: 100%;
|
6
|
+
overflow: auto;
|
7
|
+
border-radius: 0.25rem;
|
8
|
+
padding-left: 1rem;
|
9
|
+
padding-right: 1rem;
|
10
|
+
padding-top: 1rem;
|
11
|
+
padding-bottom: 1rem;
|
12
|
+
outline-style: solid;
|
13
|
+
outline-width: 2px;
|
14
|
+
font-family:
|
15
|
+
ui-sans-serif,
|
16
|
+
system-ui,
|
17
|
+
-apple-system,
|
18
|
+
BlinkMacSystemFont,
|
19
|
+
"Segoe UI",
|
20
|
+
Roboto,
|
21
|
+
"Helvetica Neue",
|
22
|
+
Arial,
|
23
|
+
"Noto Sans",
|
24
|
+
sans-serif,
|
25
|
+
"Apple Color Emoji",
|
26
|
+
"Segoe UI Emoji",
|
27
|
+
"Segoe UI Symbol",
|
28
|
+
"Noto Color Emoji";
|
29
|
+
}
|
30
|
+
.example-slash-menu {
|
31
|
+
position: relative;
|
32
|
+
border-radius: 0.25rem;
|
33
|
+
border-width: 1px;
|
34
|
+
border-style: solid;
|
35
|
+
--tw-border-opacity: 1;
|
36
|
+
border-color: rgb(107 114 128 / var(--tw-border-opacity));
|
37
|
+
--tw-bg-opacity: 1;
|
38
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
39
|
+
user-select: none;
|
40
|
+
white-space: nowrap;
|
41
|
+
overflow: auto;
|
42
|
+
}
|
43
|
+
.example-slash-menu-item {
|
44
|
+
position: relative;
|
45
|
+
padding: 8px;
|
46
|
+
min-width: 64px;
|
47
|
+
user-select: none;
|
48
|
+
white-space: nowrap;
|
49
|
+
cursor: pointer;
|
50
|
+
}
|
51
|
+
.example-slash-menu-item[data-selected] {
|
52
|
+
--tw-bg-opacity: 1;
|
53
|
+
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
54
|
+
}
|
package/dist/style.css
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
/* ../../node_modules/.pnpm/prosemirror-view@1.31.5/node_modules/prosemirror-view/style/prosemirror.css */
|
2
2
|
.ProseMirror {
|
3
3
|
position: relative;
|
4
|
-
}
|
5
|
-
.ProseMirror {
|
6
4
|
word-wrap: break-word;
|
7
5
|
white-space: pre-wrap;
|
8
6
|
white-space: break-spaces;
|
@@ -55,7 +53,6 @@ img.ProseMirror-separator {
|
|
55
53
|
.prosemirror-flat-list {
|
56
54
|
padding: 0;
|
57
55
|
margin-top: 0;
|
58
|
-
margin-bottom: 0;
|
59
56
|
margin-left: 32px;
|
60
57
|
margin-bottom: 0;
|
61
58
|
position: relative;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/basic",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.4",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -30,6 +30,9 @@
|
|
30
30
|
"import": "./dist/prosekit-basic.js",
|
31
31
|
"default": "./dist/prosekit-basic.js"
|
32
32
|
},
|
33
|
+
"./internal/example.css": {
|
34
|
+
"default": "./dist/internal/example.css"
|
35
|
+
},
|
33
36
|
"./style.css": {
|
34
37
|
"default": "./dist/style.css"
|
35
38
|
}
|
@@ -43,6 +46,8 @@
|
|
43
46
|
},
|
44
47
|
"devDependencies": {
|
45
48
|
"@prosekit/dev": "*",
|
49
|
+
"postcss": "^8.4.26",
|
50
|
+
"tailwindcss": "^3.3.3",
|
46
51
|
"tsup": "^7.1.0",
|
47
52
|
"typescript": "^5.1.6",
|
48
53
|
"vitest": "^0.33.0"
|