@meta-1/editor 1.0.7 → 1.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.
- package/package.json +29 -29
- package/src/components/tiptap-node/paragraph-node/paragraph-node.css +12 -4
- package/src/components/tiptap-node/table-node/lib/tiptap-table-utils.ts +412 -499
- package/src/components/tiptap-node/table-node/ui/table-duplicate-row-column-button/use-table-duplicate-row-column.ts +2 -0
- package/src/lib/tiptap-advanced-utils.ts +1 -1
- package/src/lib/tiptap-utils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meta-1/editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"meta",
|
|
6
6
|
"tailwindcss",
|
|
@@ -21,34 +21,34 @@
|
|
|
21
21
|
"@floating-ui/react": "^0.27.16",
|
|
22
22
|
"@radix-ui/react-dropdown-menu": "2.1.2",
|
|
23
23
|
"@radix-ui/react-popover": "1.1.2",
|
|
24
|
-
"@tiptap/core": "3.
|
|
25
|
-
"@tiptap/extensions": "
|
|
26
|
-
"@tiptap/extension-bubble-menu": "3.
|
|
27
|
-
"@tiptap/extension-collaboration": "
|
|
28
|
-
"@tiptap/extension-collaboration-caret": "
|
|
29
|
-
"@tiptap/extension-color": "
|
|
30
|
-
"@tiptap/extension-drag-handle-react": "
|
|
31
|
-
"@tiptap/extension-floating-menu": "3.
|
|
32
|
-
"@tiptap/extension-highlight": "
|
|
33
|
-
"@tiptap/extension-list": "
|
|
34
|
-
"@tiptap/extension-table": "
|
|
35
|
-
"@tiptap/extension-text-style": "
|
|
36
|
-
"@tiptap/extension-unique-id": "
|
|
37
|
-
"@tiptap/extension-horizontal-rule": "
|
|
38
|
-
"@tiptap/extension-text-align": "
|
|
39
|
-
"@tiptap/pm": "3.
|
|
40
|
-
"@tiptap/react": "3.
|
|
41
|
-
"@tiptap/starter-kit": "3.
|
|
42
|
-
"@tiptap/y-tiptap": "^3.0.
|
|
43
|
-
"@tiptap/extension-emoji": "
|
|
44
|
-
"@tiptap/extension-image": "
|
|
45
|
-
"@tiptap/extension-mathematics": "
|
|
46
|
-
"@tiptap/extension-mention": "
|
|
47
|
-
"@tiptap/extension-subscript": "
|
|
48
|
-
"@tiptap/extension-superscript": "
|
|
49
|
-
"@tiptap/extension-typography": "
|
|
50
|
-
"@tiptap/markdown": "
|
|
51
|
-
"@tiptap/suggestion": "
|
|
24
|
+
"@tiptap/core": "3.18.0",
|
|
25
|
+
"@tiptap/extensions": "3.18.0",
|
|
26
|
+
"@tiptap/extension-bubble-menu": "3.18.0",
|
|
27
|
+
"@tiptap/extension-collaboration": "3.18.0",
|
|
28
|
+
"@tiptap/extension-collaboration-caret": "3.18.0",
|
|
29
|
+
"@tiptap/extension-color": "3.18.0",
|
|
30
|
+
"@tiptap/extension-drag-handle-react": "3.18.0",
|
|
31
|
+
"@tiptap/extension-floating-menu": "3.18.0",
|
|
32
|
+
"@tiptap/extension-highlight": "3.18.0",
|
|
33
|
+
"@tiptap/extension-list": "3.18.0",
|
|
34
|
+
"@tiptap/extension-table": "3.18.0",
|
|
35
|
+
"@tiptap/extension-text-style": "3.18.0",
|
|
36
|
+
"@tiptap/extension-unique-id": "3.18.0",
|
|
37
|
+
"@tiptap/extension-horizontal-rule": "3.18.0",
|
|
38
|
+
"@tiptap/extension-text-align": "3.18.0",
|
|
39
|
+
"@tiptap/pm": "3.18.0",
|
|
40
|
+
"@tiptap/react": "3.18.0",
|
|
41
|
+
"@tiptap/starter-kit": "3.18.0",
|
|
42
|
+
"@tiptap/y-tiptap": "^3.0.2",
|
|
43
|
+
"@tiptap/extension-emoji": "3.18.0",
|
|
44
|
+
"@tiptap/extension-image": "3.18.0",
|
|
45
|
+
"@tiptap/extension-mathematics": "3.18.0",
|
|
46
|
+
"@tiptap/extension-mention": "3.18.0",
|
|
47
|
+
"@tiptap/extension-subscript": "3.18.0",
|
|
48
|
+
"@tiptap/extension-superscript": "3.18.0",
|
|
49
|
+
"@tiptap/extension-typography": "3.18.0",
|
|
50
|
+
"@tiptap/markdown": "3.18.0",
|
|
51
|
+
"@tiptap/suggestion": "3.18.0",
|
|
52
52
|
"react-hotkeys-hook": "^5.2.1",
|
|
53
53
|
"y-websocket": "^3.0.0",
|
|
54
54
|
"yjs": "^13.6.28",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
.tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) ::selection {
|
|
25
25
|
@apply bg-indigo-100 dark:bg-indigo-900;
|
|
26
26
|
}
|
|
27
|
+
.dark .tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) ::selection {
|
|
28
|
+
@apply bg-white/15;
|
|
29
|
+
}
|
|
27
30
|
|
|
28
31
|
.tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) .selection::selection {
|
|
29
32
|
@apply bg-transparent;
|
|
@@ -32,21 +35,26 @@
|
|
|
32
35
|
.tiptap.ProseMirror .selection {
|
|
33
36
|
@apply inline bg-indigo-100 dark:bg-indigo-900;
|
|
34
37
|
}
|
|
38
|
+
.dark .tiptap.ProseMirror .selection {
|
|
39
|
+
@apply bg-white/15;
|
|
40
|
+
}
|
|
35
41
|
|
|
36
42
|
/* Selected node styles */
|
|
37
43
|
.tiptap.ProseMirror .ProseMirror-selectednode:not(img):not(pre):not(.react-renderer) {
|
|
38
44
|
@apply rounded-md bg-indigo-100 dark:bg-indigo-900;
|
|
39
45
|
}
|
|
46
|
+
.dark .tiptap.ProseMirror .ProseMirror-selectednode:not(img):not(pre):not(.react-renderer) {
|
|
47
|
+
@apply bg-white/15;
|
|
48
|
+
}
|
|
40
49
|
|
|
41
50
|
.tiptap.ProseMirror .ProseMirror-hideselection {
|
|
42
51
|
caret-color: transparent;
|
|
43
52
|
}
|
|
44
53
|
|
|
45
54
|
/* Resize cursor */
|
|
46
|
-
.tiptap.ProseMirror.resize-cursor {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
55
|
+
.tiptap.ProseMirror.resize-cursor {
|
|
56
|
+
cursor: col-resize;
|
|
57
|
+
}
|
|
50
58
|
|
|
51
59
|
/* =====================
|
|
52
60
|
TEXT DECORATION
|