@prosekit/basic 0.0.4 → 0.0.6

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,14 +1,13 @@
1
1
  /* src/internal/example.css */
2
2
  .example-editor {
3
+ margin-top: 0.5rem;
4
+ margin-bottom: 0.5rem;
3
5
  box-sizing: border-box;
4
6
  height: 250px;
5
7
  width: 100%;
6
8
  overflow: auto;
7
- border-radius: 0.25rem;
8
- padding-left: 1rem;
9
- padding-right: 1rem;
10
- padding-top: 1rem;
11
- padding-bottom: 1rem;
9
+ border-radius: 0.375rem;
10
+ padding: 1rem;
12
11
  outline-style: solid;
13
12
  outline-width: 2px;
14
13
  font-family:
@@ -27,28 +26,51 @@
27
26
  "Segoe UI Symbol",
28
27
  "Noto Color Emoji";
29
28
  }
29
+ .example-editor p {
30
+ line-height: 1.5;
31
+ margin-top: 0.75em;
32
+ margin-bottom: 0.75em;
33
+ }
34
+ .example-editor p:first-of-type {
35
+ margin-top: 0;
36
+ }
37
+ .example-editor p:last-of-type {
38
+ margin-bottom: 0;
39
+ }
30
40
  .example-slash-menu {
31
41
  position: relative;
42
+ max-height: 400px;
43
+ min-width: 120px;
44
+ user-select: none;
45
+ overflow: auto;
46
+ white-space: nowrap;
32
47
  border-radius: 0.25rem;
48
+ --tw-bg-opacity: 1;
49
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
50
+ }
51
+ :is(.dark .example-slash-menu) {
52
+ --tw-bg-opacity: 1;
53
+ background-color: rgb(39 39 42 / var(--tw-bg-opacity));
54
+ }
55
+ .example-slash-menu {
33
56
  border-width: 1px;
34
57
  border-style: solid;
35
58
  --tw-border-opacity: 1;
36
59
  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
60
  }
43
61
  .example-slash-menu-item {
44
62
  position: relative;
45
- padding: 8px;
46
63
  min-width: 64px;
64
+ cursor: pointer;
47
65
  user-select: none;
48
66
  white-space: nowrap;
49
- cursor: pointer;
67
+ padding: 0.5rem;
50
68
  }
51
69
  .example-slash-menu-item[data-selected] {
52
70
  --tw-bg-opacity: 1;
53
- background-color: rgb(209 213 219 / var(--tw-bg-opacity));
71
+ background-color: rgb(229 231 235 / var(--tw-bg-opacity));
72
+ }
73
+ :is(.dark .example-slash-menu-item[data-selected]) {
74
+ --tw-bg-opacity: 1;
75
+ background-color: rgb(55 65 81 / var(--tw-bg-opacity));
54
76
  }
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.31.5/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.31.6/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  word-wrap: break-word;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/basic",
3
3
  "type": "module",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -41,12 +41,12 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@prosekit/core": "^0.0.3",
45
- "@prosekit/extensions": "^0.0.3"
44
+ "@prosekit/core": "^0.0.5",
45
+ "@prosekit/extensions": "^0.0.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@prosekit/dev": "*",
49
- "postcss": "^8.4.26",
49
+ "postcss": "^8.4.27",
50
50
  "tailwindcss": "^3.3.3",
51
51
  "tsup": "^7.1.0",
52
52
  "typescript": "^5.1.6",