@meta-1/editor 1.0.6 → 1.0.8
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 +1 -1
- package/src/components/tiptap-node/list-node/list-node.css +9 -0
- 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/styles/table-node.css +11 -0
- 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
|
@@ -94,6 +94,9 @@
|
|
|
94
94
|
@apply dark:border-gray-700 dark:bg-gray-800;
|
|
95
95
|
@apply transition-[background-color,border-color] duration-[80ms] ease-out;
|
|
96
96
|
}
|
|
97
|
+
.dark .tiptap.ProseMirror ul[data-type="taskList"] li label span {
|
|
98
|
+
@apply border-gray-700 bg-gray-800;
|
|
99
|
+
}
|
|
97
100
|
|
|
98
101
|
.tiptap.ProseMirror ul[data-type="taskList"] li label span::before {
|
|
99
102
|
@apply absolute;
|
|
@@ -112,11 +115,17 @@
|
|
|
112
115
|
url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E")
|
|
113
116
|
center / contain no-repeat;
|
|
114
117
|
}
|
|
118
|
+
.dark .tiptap.ProseMirror ul[data-type="taskList"] li label span::before {
|
|
119
|
+
@apply bg-black;
|
|
120
|
+
}
|
|
115
121
|
|
|
116
122
|
.tiptap.ProseMirror ul[data-type="taskList"] li label input[type="checkbox"]:checked + span {
|
|
117
123
|
@apply bg-gray-900 border-gray-900;
|
|
118
124
|
@apply dark:bg-gray-100 dark:border-gray-100;
|
|
119
125
|
}
|
|
126
|
+
.dark .tiptap.ProseMirror ul[data-type="taskList"] li label input[type="checkbox"]:checked + span {
|
|
127
|
+
@apply bg-gray-100 border-gray-100;
|
|
128
|
+
}
|
|
120
129
|
|
|
121
130
|
.tiptap.ProseMirror ul[data-type="taskList"] li label input[type="checkbox"]:checked + span::before {
|
|
122
131
|
opacity: 1;
|
|
@@ -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
|