@halo-dev/richtext-editor 0.0.0-alpha.30 → 0.0.0-alpha.31
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/components/Editor.vue.d.ts +2 -165
- package/dist/components/EditorBubbleMenu.vue.d.ts +2 -99
- package/dist/components/EditorHeader.vue.d.ts +2 -19
- package/dist/rich-text-editor.es.js +9605 -7486
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +8843 -6724
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +324 -45
- package/package.json +51 -54
- package/dist/components/block/BlockActionButton.vue.d.ts +0 -27
- package/dist/components/block/BlockActionInput.vue.d.ts +0 -30
- package/dist/components/block/BlockActionSeparator.vue.d.ts +0 -2
- package/dist/components/block/BlockCard.vue.d.ts +0 -71
- package/dist/components/bubble/BubbleItem.vue.d.ts +0 -60
- package/dist/components/index.d.ts +0 -8
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +0 -60
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +0 -63
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +0 -63
- package/dist/extensions/audio/AudioView.vue.d.ts +0 -102
- package/dist/extensions/audio/index.d.ts +0 -12
- package/dist/extensions/blockquote/index.d.ts +0 -2
- package/dist/extensions/bold/index.d.ts +0 -2
- package/dist/extensions/bullet-list/index.d.ts +0 -2
- package/dist/extensions/code/index.d.ts +0 -2
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +0 -99
- package/dist/extensions/code-block/code-block.d.ts +0 -15
- package/dist/extensions/code-block/index.d.ts +0 -2
- package/dist/extensions/code-block/lowlight.d.ts +0 -2
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +0 -78
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +0 -78
- package/dist/extensions/color/index.d.ts +0 -2
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +0 -33
- package/dist/extensions/commands-menu/commands.d.ts +0 -3
- package/dist/extensions/commands-menu/index.d.ts +0 -1
- package/dist/extensions/font-size/index.d.ts +0 -14
- package/dist/extensions/heading/index.d.ts +0 -2
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +0 -79
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +0 -79
- package/dist/extensions/highlight/index.d.ts +0 -2
- package/dist/extensions/history/index.d.ts +0 -2
- package/dist/extensions/iframe/IframeView.vue.d.ts +0 -113
- package/dist/extensions/iframe/index.d.ts +0 -12
- package/dist/extensions/image/ImageView.vue.d.ts +0 -120
- package/dist/extensions/image/index.d.ts +0 -2
- package/dist/extensions/indent/index.d.ts +0 -22
- package/dist/extensions/index.d.ts +0 -35
- package/dist/extensions/italic/index.d.ts +0 -2
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +0 -75
- package/dist/extensions/link/index.d.ts +0 -2
- package/dist/extensions/ordered-list/index.d.ts +0 -2
- package/dist/extensions/strike/index.d.ts +0 -2
- package/dist/extensions/subscript/index.d.ts +0 -2
- package/dist/extensions/superscript/index.d.ts +0 -2
- package/dist/extensions/table/index.d.ts +0 -2
- package/dist/extensions/task-list/index.d.ts +0 -2
- package/dist/extensions/text-align/index.d.ts +0 -2
- package/dist/extensions/underline/index.d.ts +0 -2
- package/dist/extensions/video/VideoView.vue.d.ts +0 -117
- package/dist/extensions/video/index.d.ts +0 -12
- package/dist/locales/index.d.ts +0 -7
package/dist/style.css
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
.v-popper__popper.v-popper__popper--show-from .v-popper__wrapper {
|
|
3
|
+
transform: scale(0.9);
|
|
4
|
+
}
|
|
5
|
+
.v-popper__popper.v-popper__popper--show-to .v-popper__wrapper {
|
|
6
|
+
transform: none;
|
|
7
|
+
transition: transform 0.1s;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.bubble-menu[data-v-205ae298] {
|
|
11
|
+
max-width: calc(100vw - 30px);
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
}
|
|
14
|
+
.halo-rich-text-editor {
|
|
2
15
|
box-sizing: border-box;
|
|
3
16
|
height: calc(100% - 48px);
|
|
4
17
|
width: 100%;
|
|
@@ -9,6 +22,7 @@
|
|
|
9
22
|
.halo-rich-text-editor .editor-content {
|
|
10
23
|
height: 100%;
|
|
11
24
|
width: 100%;
|
|
25
|
+
position: relative;
|
|
12
26
|
}
|
|
13
27
|
.halo-rich-text-editor .editor-content .ProseMirror {
|
|
14
28
|
height: 100%;
|
|
@@ -16,6 +30,10 @@
|
|
|
16
30
|
outline: none !important;
|
|
17
31
|
padding: 15px;
|
|
18
32
|
}
|
|
33
|
+
.halo-rich-text-editor .editor-content .ProseMirror p {
|
|
34
|
+
margin-top: 0.75em;
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
}
|
|
19
37
|
.halo-rich-text-editor .editor-content .ProseMirror p.is-empty::before {
|
|
20
38
|
content: attr(data-placeholder);
|
|
21
39
|
float: left;
|
|
@@ -60,59 +78,293 @@
|
|
|
60
78
|
.halo-rich-text-editor .editor-content .ProseMirror code br {
|
|
61
79
|
display: block;
|
|
62
80
|
}
|
|
63
|
-
|
|
81
|
+
@media screen and (min-width: 640px) {
|
|
82
|
+
.halo-rich-text-editor .ProseMirror {
|
|
83
|
+
padding: 15px 10% !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@media screen and (min-width: 1024px) {
|
|
87
|
+
.halo-rich-text-editor .ProseMirror {
|
|
88
|
+
padding: 15px 20% !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.v-popper--theme-editor-block-dropdown .v-popper__inner {
|
|
92
|
+
border-radius: 0.375rem;
|
|
93
|
+
--tw-bg-opacity: 1;
|
|
94
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
95
|
+
--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
|
|
96
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
97
|
+
}
|
|
98
|
+
.v-popper--theme-editor-block-dropdown .v-popper__arrow-container {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
.halo-rich-text-editor .ProseMirror .tableWrapper {
|
|
102
|
+
position: relative;
|
|
103
|
+
margin: 0.5em 0px;
|
|
104
|
+
overflow-x: auto;
|
|
105
|
+
overflow-y: hidden;
|
|
106
|
+
}
|
|
107
|
+
.halo-rich-text-editor .ProseMirror .tableWrapper.has-focus .scrollWrapper {
|
|
108
|
+
margin-top: -20px;
|
|
109
|
+
}
|
|
110
|
+
.halo-rich-text-editor .ProseMirror .scrollWrapper {
|
|
111
|
+
width: -moz-max-content;
|
|
112
|
+
width: max-content;
|
|
113
|
+
border-left: 1px solid transparent;
|
|
114
|
+
border-right: 1px solid transparent;
|
|
115
|
+
transition: border 250ms ease-in-out 0s;
|
|
116
|
+
}
|
|
117
|
+
.halo-rich-text-editor .ProseMirror table {
|
|
118
|
+
width: 100%;
|
|
64
119
|
border-collapse: collapse;
|
|
65
|
-
|
|
120
|
+
border-radius: 4px;
|
|
121
|
+
overflow: initial;
|
|
122
|
+
padding-left: 26px;
|
|
123
|
+
padding-top: 26px;
|
|
124
|
+
box-sizing: border-box;
|
|
125
|
+
}
|
|
126
|
+
.halo-rich-text-editor .ProseMirror table * {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
}
|
|
129
|
+
.halo-rich-text-editor .ProseMirror table tr {
|
|
130
|
+
position: relative;
|
|
131
|
+
border-bottom: 1px solid #d8d8d8;
|
|
132
|
+
}
|
|
133
|
+
.halo-rich-text-editor .ProseMirror table th {
|
|
134
|
+
background: #f6f8fa;
|
|
135
|
+
}
|
|
136
|
+
.halo-rich-text-editor .ProseMirror table td {
|
|
137
|
+
background: #fff;
|
|
138
|
+
}
|
|
139
|
+
.halo-rich-text-editor .ProseMirror table td,
|
|
140
|
+
.halo-rich-text-editor .ProseMirror table th {
|
|
141
|
+
vertical-align: top;
|
|
142
|
+
border: 1px solid #d8d8d8;
|
|
143
|
+
position: relative;
|
|
144
|
+
padding: 12px 8px;
|
|
145
|
+
text-align: left;
|
|
146
|
+
min-width: 100px;
|
|
147
|
+
z-index: 1;
|
|
148
|
+
}
|
|
149
|
+
.halo-rich-text-editor .ProseMirror table td > *,
|
|
150
|
+
.halo-rich-text-editor .ProseMirror table th > * {
|
|
151
|
+
margin-top: 0;
|
|
152
|
+
margin-bottom: 0;
|
|
153
|
+
}
|
|
154
|
+
.halo-rich-text-editor .ProseMirror table .selectedCell {
|
|
155
|
+
position: relative;
|
|
156
|
+
border: 1px solid rgb(0, 101, 255);
|
|
157
|
+
}
|
|
158
|
+
.halo-rich-text-editor .ProseMirror table .selectedCell::after {
|
|
159
|
+
box-sizing: content-box;
|
|
160
|
+
height: 100%;
|
|
66
161
|
width: 100%;
|
|
67
|
-
|
|
68
|
-
|
|
162
|
+
border: 1px solid rgb(0, 101, 255);
|
|
163
|
+
content: "";
|
|
164
|
+
position: absolute;
|
|
165
|
+
left: -1px;
|
|
166
|
+
top: -1px;
|
|
167
|
+
bottom: 0px;
|
|
168
|
+
z-index: 12;
|
|
169
|
+
display: inline-block;
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
}
|
|
172
|
+
.halo-rich-text-editor .ProseMirror .grip-column {
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: -12px;
|
|
175
|
+
left: -1px;
|
|
176
|
+
width: 100%;
|
|
177
|
+
}
|
|
178
|
+
.halo-rich-text-editor .ProseMirror .grip-column > div {
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: -18px;
|
|
181
|
+
left: 100%;
|
|
182
|
+
transform: translateX(-8px);
|
|
183
|
+
display: inline-block;
|
|
184
|
+
width: 16px;
|
|
185
|
+
height: 16px;
|
|
186
|
+
font-size: 0;
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
.halo-rich-text-editor .ProseMirror .grip-column > div .plus-icon {
|
|
190
|
+
font-size: inherit;
|
|
69
191
|
}
|
|
70
|
-
.halo-rich-text-editor .
|
|
71
|
-
|
|
192
|
+
.halo-rich-text-editor .ProseMirror .grip-column::before {
|
|
193
|
+
content: "";
|
|
72
194
|
position: absolute;
|
|
195
|
+
left: 100%;
|
|
196
|
+
bottom: 4px;
|
|
197
|
+
transform: translateX(-1px);
|
|
198
|
+
width: 4px;
|
|
199
|
+
height: 4px;
|
|
200
|
+
background-color: #d8d8d8;
|
|
201
|
+
border-radius: 50%;
|
|
202
|
+
display: block;
|
|
203
|
+
}
|
|
204
|
+
.halo-rich-text-editor .ProseMirror .grip-column::after {
|
|
205
|
+
box-sizing: content-box;
|
|
73
206
|
content: "";
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 0;
|
|
210
|
+
left: 0;
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 10px;
|
|
213
|
+
background: #f6f8fa;
|
|
214
|
+
border: 1px solid #d8d8d8;
|
|
215
|
+
display: block;
|
|
216
|
+
}
|
|
217
|
+
.halo-rich-text-editor .ProseMirror .grip-column:hover {
|
|
218
|
+
color: rgb(0, 101, 255);
|
|
219
|
+
}
|
|
220
|
+
.halo-rich-text-editor .ProseMirror .grip-column:hover > div {
|
|
221
|
+
font-size: 14px;
|
|
222
|
+
}
|
|
223
|
+
.halo-rich-text-editor .ProseMirror .grip-column:hover::before {
|
|
224
|
+
display: none;
|
|
225
|
+
}
|
|
226
|
+
.halo-rich-text-editor .ProseMirror .grip-column:hover::after {
|
|
227
|
+
background: #2584ff;
|
|
228
|
+
border-color: #2584ff;
|
|
229
|
+
}
|
|
230
|
+
.halo-rich-text-editor .ProseMirror .grip-column.last::after {
|
|
231
|
+
border-top-right-radius: 3px;
|
|
232
|
+
}
|
|
233
|
+
.halo-rich-text-editor .ProseMirror .grip-column.selected::after {
|
|
234
|
+
background: #2584ff;
|
|
235
|
+
border-color: #2584ff;
|
|
236
|
+
}
|
|
237
|
+
.halo-rich-text-editor .ProseMirror .grip-row {
|
|
238
|
+
position: absolute;
|
|
239
|
+
left: -12px;
|
|
240
|
+
top: -1px;
|
|
241
|
+
height: 100%;
|
|
242
|
+
}
|
|
243
|
+
.halo-rich-text-editor .ProseMirror .grip-row > div {
|
|
244
|
+
transform: translateY(8px);
|
|
245
|
+
position: absolute;
|
|
246
|
+
left: -16px;
|
|
247
|
+
bottom: 4px;
|
|
248
|
+
display: inline-block;
|
|
249
|
+
width: 16px;
|
|
250
|
+
height: 16px;
|
|
251
|
+
font-size: 0;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
}
|
|
254
|
+
.halo-rich-text-editor .ProseMirror .grip-row > div .plus-icon {
|
|
255
|
+
font-size: inherit;
|
|
256
|
+
}
|
|
257
|
+
.halo-rich-text-editor .ProseMirror .grip-row::before {
|
|
258
|
+
content: "";
|
|
259
|
+
position: absolute;
|
|
260
|
+
left: -10px;
|
|
261
|
+
bottom: -2px;
|
|
262
|
+
width: 4px;
|
|
263
|
+
height: 4px;
|
|
264
|
+
background-color: #d8d8d8;
|
|
265
|
+
border-radius: 50%;
|
|
266
|
+
display: block;
|
|
267
|
+
}
|
|
268
|
+
.halo-rich-text-editor .ProseMirror .grip-row::after {
|
|
269
|
+
box-sizing: content-box;
|
|
270
|
+
content: "";
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
position: absolute;
|
|
74
273
|
left: 0;
|
|
75
|
-
right: 0;
|
|
76
274
|
top: 0;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
275
|
+
height: 100%;
|
|
276
|
+
width: 10px;
|
|
277
|
+
background: #f6f8fa;
|
|
278
|
+
border: 1px solid #d8d8d8;
|
|
279
|
+
display: block;
|
|
80
280
|
}
|
|
81
|
-
.halo-rich-text-editor .
|
|
82
|
-
|
|
83
|
-
min-width: 1em;
|
|
84
|
-
border: 2px solid #ced4da;
|
|
85
|
-
padding: 3px 5px;
|
|
86
|
-
vertical-align: top;
|
|
87
|
-
box-sizing: border-box;
|
|
88
|
-
position: relative;
|
|
89
|
-
border-width: 1px;
|
|
281
|
+
.halo-rich-text-editor .ProseMirror .grip-row:hover {
|
|
282
|
+
color: rgb(0, 101, 255);
|
|
90
283
|
}
|
|
91
|
-
.halo-rich-text-editor .
|
|
92
|
-
|
|
93
|
-
margin-top: 0;
|
|
94
|
-
margin-bottom: 0;
|
|
284
|
+
.halo-rich-text-editor .ProseMirror .grip-row:hover > div {
|
|
285
|
+
font-size: 14px;
|
|
95
286
|
}
|
|
96
|
-
.halo-rich-text-editor .
|
|
287
|
+
.halo-rich-text-editor .ProseMirror .grip-row:hover::before {
|
|
288
|
+
display: none;
|
|
289
|
+
}
|
|
290
|
+
.halo-rich-text-editor .ProseMirror .grip-row:hover::after {
|
|
291
|
+
background: #2584ff;
|
|
292
|
+
border-color: rgb(0, 101, 255);
|
|
293
|
+
}
|
|
294
|
+
.halo-rich-text-editor .ProseMirror .grip-row.last::after {
|
|
295
|
+
border-bottom-left-radius: 3px;
|
|
296
|
+
}
|
|
297
|
+
.halo-rich-text-editor .ProseMirror .grip-row.selected::after {
|
|
298
|
+
background: #2584ff;
|
|
299
|
+
border-color: rgb(0, 101, 255);
|
|
300
|
+
}
|
|
301
|
+
.halo-rich-text-editor .ProseMirror .grip-table::after {
|
|
302
|
+
box-sizing: content-box;
|
|
303
|
+
content: "";
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
position: absolute;
|
|
306
|
+
top: -12px;
|
|
307
|
+
left: -12px;
|
|
308
|
+
display: block;
|
|
309
|
+
background: #f6f8fa;
|
|
310
|
+
width: 10px;
|
|
311
|
+
height: 10px;
|
|
312
|
+
border: 1px solid #d8d8d8;
|
|
313
|
+
border-top-left-radius: 3px;
|
|
314
|
+
}
|
|
315
|
+
.halo-rich-text-editor .ProseMirror .grip-table:hover::after {
|
|
316
|
+
background: #2584ff;
|
|
317
|
+
border-color: rgb(0, 101, 255);
|
|
318
|
+
}
|
|
319
|
+
.halo-rich-text-editor .ProseMirror .grip-table.selected::after {
|
|
320
|
+
background: #2584ff;
|
|
321
|
+
border-color: rgb(0, 101, 255);
|
|
322
|
+
}
|
|
323
|
+
.halo-rich-text-editor .ProseMirror .column-resize-handle {
|
|
97
324
|
position: absolute;
|
|
98
|
-
right: -2px;
|
|
99
325
|
top: 0;
|
|
326
|
+
right: -2px;
|
|
100
327
|
bottom: -2px;
|
|
101
328
|
width: 4px;
|
|
102
|
-
background-color: #adf;
|
|
103
329
|
pointer-events: none;
|
|
104
|
-
|
|
330
|
+
background-color: #adf;
|
|
331
|
+
z-index: 1;
|
|
105
332
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
--tw-bg-opacity: 1;
|
|
110
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
111
|
-
--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
|
|
112
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
333
|
+
.halo-rich-text-editor .ProseMirror.resize-cursor {
|
|
334
|
+
cursor: ew-resize;
|
|
335
|
+
cursor: col-resize;
|
|
113
336
|
}
|
|
114
|
-
|
|
115
|
-
|
|
337
|
+
[data-drag-handle] {
|
|
338
|
+
position: absolute;
|
|
339
|
+
z-index: 100;
|
|
340
|
+
display: inline;
|
|
341
|
+
width: 16px;
|
|
342
|
+
height: 16px;
|
|
343
|
+
cursor: move;
|
|
344
|
+
background-color: #fff;
|
|
345
|
+
opacity: 0;
|
|
346
|
+
transition: opacity 0.3s ease-out;
|
|
347
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='1' width='3' height='3' rx='1.5' fill='%23111'/%3E%3Crect x='10' y='1' width='3' height='3' rx='1.5' fill='%23111'/%3E%3Crect x='3' y='6' width='3' height='3' rx='1.5' fill='%23111'/%3E%3Crect x='10' y='6' width='3' height='3' rx='1.5' fill='%23111'/%3E%3Crect x='3' y='11' width='3' height='3' rx='1.5' fill='%23111'/%3E%3Crect x='10' y='11' width='3' height='3' rx='1.5' fill='%23111'/%3E%3C/svg%3E");
|
|
348
|
+
background-size: contain;
|
|
349
|
+
background-position: center 0;
|
|
350
|
+
background-repeat: no-repeat;
|
|
351
|
+
}
|
|
352
|
+
[data-drag-handle].show {
|
|
353
|
+
opacity: 0.3;
|
|
354
|
+
}
|
|
355
|
+
[data-drag-handle].show:hover {
|
|
356
|
+
opacity: 1;
|
|
357
|
+
}
|
|
358
|
+
[data-drag-handle].hide {
|
|
359
|
+
opacity: 0;
|
|
360
|
+
}
|
|
361
|
+
.halo-rich-text-editor .ProseMirror .columns {
|
|
362
|
+
margin-top: 0.75em;
|
|
363
|
+
}
|
|
364
|
+
.halo-rich-text-editor .ProseMirror .columns .column {
|
|
365
|
+
border: 1px solid #e7e9e8;
|
|
366
|
+
border-radius: 6px;
|
|
367
|
+
position: relative;
|
|
116
368
|
}/*
|
|
117
369
|
! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com
|
|
118
370
|
*//*
|
|
@@ -710,8 +962,7 @@ video {
|
|
|
710
962
|
.w-full {
|
|
711
963
|
width: 100%;
|
|
712
964
|
}
|
|
713
|
-
|
|
714
|
-
--tw-rotate: -90deg;
|
|
965
|
+
.transform {
|
|
715
966
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
716
967
|
}
|
|
717
968
|
.cursor-not-allowed {
|
|
@@ -854,12 +1105,6 @@ video {
|
|
|
854
1105
|
--tw-bg-opacity: 1;
|
|
855
1106
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
856
1107
|
}
|
|
857
|
-
.p-0 {
|
|
858
|
-
padding: 0px;
|
|
859
|
-
}
|
|
860
|
-
.p-0\.5 {
|
|
861
|
-
padding: 0.125rem;
|
|
862
|
-
}
|
|
863
1108
|
.p-1 {
|
|
864
1109
|
padding: 0.25rem;
|
|
865
1110
|
}
|
|
@@ -967,6 +1212,13 @@ video {
|
|
|
967
1212
|
.filter {
|
|
968
1213
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
969
1214
|
}
|
|
1215
|
+
.transition {
|
|
1216
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1217
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1218
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
1219
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1220
|
+
transition-duration: 150ms;
|
|
1221
|
+
}
|
|
970
1222
|
.transition-all {
|
|
971
1223
|
transition-property: all;
|
|
972
1224
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2184,4 +2436,31 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
|
|
|
2184
2436
|
line-height: 1rem;
|
|
2185
2437
|
--tw-text-opacity: 1;
|
|
2186
2438
|
color: rgb(75 85 99 / var(--tw-text-opacity))
|
|
2439
|
+
}.editor-block__actions-input {
|
|
2440
|
+
display: block;
|
|
2441
|
+
width: 8rem;
|
|
2442
|
+
border-radius: 0.375rem;
|
|
2443
|
+
border-width: 1px;
|
|
2444
|
+
--tw-border-opacity: 1;
|
|
2445
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
2446
|
+
--tw-bg-opacity: 1;
|
|
2447
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2448
|
+
padding-left: 0.5rem;
|
|
2449
|
+
padding-right: 0.5rem;
|
|
2450
|
+
padding-top: 0.25rem;
|
|
2451
|
+
padding-bottom: 0.25rem;
|
|
2452
|
+
font-size: 0.875rem;
|
|
2453
|
+
line-height: 1.25rem;
|
|
2454
|
+
--tw-text-opacity: 1;
|
|
2455
|
+
color: rgb(17 24 39 / var(--tw-text-opacity))
|
|
2456
|
+
}
|
|
2457
|
+
.editor-block__actions-input:hover {
|
|
2458
|
+
--tw-bg-opacity: 1;
|
|
2459
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity))
|
|
2460
|
+
}
|
|
2461
|
+
.editor-block__actions-input:focus {
|
|
2462
|
+
--tw-border-opacity: 1;
|
|
2463
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
2464
|
+
--tw-ring-opacity: 1;
|
|
2465
|
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))
|
|
2187
2466
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halo-dev/richtext-editor",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"vue": "^3.2.37"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@iconify/json": "^2.2.
|
|
33
|
-
"@intlify/unplugin-vue-i18n": "^
|
|
32
|
+
"@iconify/json": "^2.2.117",
|
|
33
|
+
"@intlify/unplugin-vue-i18n": "^1.2.0",
|
|
34
34
|
"@vue/compiler-sfc": "^3.3.4",
|
|
35
|
-
"autoprefixer": "^10.4.
|
|
36
|
-
"postcss": "^8.4.
|
|
37
|
-
"release-it": "^
|
|
38
|
-
"sass": "^1.
|
|
35
|
+
"autoprefixer": "^10.4.15",
|
|
36
|
+
"postcss": "^8.4.30",
|
|
37
|
+
"release-it": "^16.1.5",
|
|
38
|
+
"sass": "^1.67.0",
|
|
39
39
|
"tailwindcss": "^3.3.3",
|
|
40
|
-
"unplugin-icons": "^0.
|
|
41
|
-
"vite-plugin-dts": "^
|
|
40
|
+
"unplugin-icons": "^0.17.0",
|
|
41
|
+
"vite-plugin-dts": "^3.5.3"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": {
|
|
@@ -49,52 +49,49 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@ckpack/vue-color": "^1.5.0",
|
|
52
|
-
"@tiptap/core": "^2.
|
|
53
|
-
"@tiptap/extension-blockquote": "^2.
|
|
54
|
-
"@tiptap/extension-bold": "^2.
|
|
55
|
-
"@tiptap/extension-bullet-list": "^2.
|
|
56
|
-
"@tiptap/extension-code": "^2.
|
|
57
|
-
"@tiptap/extension-code-block": "^2.
|
|
58
|
-
"@tiptap/extension-code-block-lowlight": "^2.
|
|
59
|
-
"@tiptap/extension-color": "^2.
|
|
60
|
-
"@tiptap/extension-document": "^2.
|
|
61
|
-
"@tiptap/extension-dropcursor": "^2.
|
|
62
|
-
"@tiptap/extension-gapcursor": "^2.
|
|
63
|
-
"@tiptap/extension-hard-break": "^2.
|
|
64
|
-
"@tiptap/extension-heading": "^2.
|
|
65
|
-
"@tiptap/extension-highlight": "^2.
|
|
66
|
-
"@tiptap/extension-history": "^2.
|
|
67
|
-
"@tiptap/extension-horizontal-rule": "^2.
|
|
68
|
-
"@tiptap/extension-image": "^2.
|
|
69
|
-
"@tiptap/extension-italic": "^2.
|
|
70
|
-
"@tiptap/extension-link": "^2.
|
|
71
|
-
"@tiptap/extension-list-item": "^2.
|
|
72
|
-
"@tiptap/extension-ordered-list": "^2.
|
|
73
|
-
"@tiptap/extension-paragraph": "^2.
|
|
74
|
-
"@tiptap/extension-placeholder": "^2.
|
|
75
|
-
"@tiptap/extension-strike": "^2.
|
|
76
|
-
"@tiptap/extension-subscript": "^2.
|
|
77
|
-
"@tiptap/extension-superscript": "^2.
|
|
78
|
-
"@tiptap/extension-table": "^2.
|
|
79
|
-
"@tiptap/extension-table-
|
|
80
|
-
"@tiptap/extension-
|
|
81
|
-
"@tiptap/extension-
|
|
82
|
-
"@tiptap/extension-
|
|
83
|
-
"@tiptap/extension-
|
|
84
|
-
"@tiptap/extension-text": "^2.
|
|
85
|
-
"@tiptap/extension-
|
|
86
|
-
"@tiptap/
|
|
87
|
-
"@tiptap/
|
|
88
|
-
"@tiptap/
|
|
89
|
-
"
|
|
90
|
-
"floating-vue": "2.0.0-beta.20",
|
|
52
|
+
"@tiptap/core": "^2.1.10",
|
|
53
|
+
"@tiptap/extension-blockquote": "^2.1.10",
|
|
54
|
+
"@tiptap/extension-bold": "^2.1.10",
|
|
55
|
+
"@tiptap/extension-bullet-list": "^2.1.10",
|
|
56
|
+
"@tiptap/extension-code": "^2.1.10",
|
|
57
|
+
"@tiptap/extension-code-block": "^2.1.10",
|
|
58
|
+
"@tiptap/extension-code-block-lowlight": "^2.1.10",
|
|
59
|
+
"@tiptap/extension-color": "^2.1.10",
|
|
60
|
+
"@tiptap/extension-document": "^2.1.10",
|
|
61
|
+
"@tiptap/extension-dropcursor": "^2.1.10",
|
|
62
|
+
"@tiptap/extension-gapcursor": "^2.1.10",
|
|
63
|
+
"@tiptap/extension-hard-break": "^2.1.10",
|
|
64
|
+
"@tiptap/extension-heading": "^2.1.10",
|
|
65
|
+
"@tiptap/extension-highlight": "^2.1.10",
|
|
66
|
+
"@tiptap/extension-history": "^2.1.10",
|
|
67
|
+
"@tiptap/extension-horizontal-rule": "^2.1.10",
|
|
68
|
+
"@tiptap/extension-image": "^2.1.10",
|
|
69
|
+
"@tiptap/extension-italic": "^2.1.10",
|
|
70
|
+
"@tiptap/extension-link": "^2.1.10",
|
|
71
|
+
"@tiptap/extension-list-item": "^2.1.10",
|
|
72
|
+
"@tiptap/extension-ordered-list": "^2.1.10",
|
|
73
|
+
"@tiptap/extension-paragraph": "^2.1.10",
|
|
74
|
+
"@tiptap/extension-placeholder": "^2.1.10",
|
|
75
|
+
"@tiptap/extension-strike": "^2.1.10",
|
|
76
|
+
"@tiptap/extension-subscript": "^2.1.10",
|
|
77
|
+
"@tiptap/extension-superscript": "^2.1.10",
|
|
78
|
+
"@tiptap/extension-table": "^2.1.10",
|
|
79
|
+
"@tiptap/extension-table-row": "^2.1.10",
|
|
80
|
+
"@tiptap/extension-task-item": "^2.1.10",
|
|
81
|
+
"@tiptap/extension-task-list": "^2.1.10",
|
|
82
|
+
"@tiptap/extension-text": "^2.1.10",
|
|
83
|
+
"@tiptap/extension-text-align": "^2.1.10",
|
|
84
|
+
"@tiptap/extension-text-style": "^2.1.10",
|
|
85
|
+
"@tiptap/extension-underline": "^2.1.10",
|
|
86
|
+
"@tiptap/pm": "^2.1.10",
|
|
87
|
+
"@tiptap/suggestion": "^2.1.10",
|
|
88
|
+
"@tiptap/vue-3": "^2.1.10",
|
|
89
|
+
"floating-vue": "2.0.0-beta.24",
|
|
91
90
|
"github-markdown-css": "^5.2.0",
|
|
92
|
-
"highlight.js": "11.
|
|
93
|
-
"lowlight": "^
|
|
94
|
-
"
|
|
95
|
-
"prosemirror-state": "^1.4.3",
|
|
96
|
-
"prosemirror-view": "^1.31.6",
|
|
91
|
+
"highlight.js": "11.8.0",
|
|
92
|
+
"lowlight": "^3.0.0",
|
|
93
|
+
"scroll-into-view-if-needed": "^3.1.0",
|
|
97
94
|
"tippy.js": "^6.3.7",
|
|
98
|
-
"vue-i18n": "9.
|
|
95
|
+
"vue-i18n": "9.4.1"
|
|
99
96
|
}
|
|
100
97
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
tooltip: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: false;
|
|
5
|
-
default: any;
|
|
6
|
-
};
|
|
7
|
-
selected: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
required: false;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
12
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
-
tooltip: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
required: false;
|
|
16
|
-
default: any;
|
|
17
|
-
};
|
|
18
|
-
selected: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
required: false;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
}>>, {
|
|
24
|
-
selected: boolean;
|
|
25
|
-
tooltip: string;
|
|
26
|
-
}>;
|
|
27
|
-
export default _sfc_main;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
tooltip: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: false;
|
|
5
|
-
default: any;
|
|
6
|
-
};
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
props: any;
|
|
13
|
-
emit: (emit: "update:modelValue", value: string) => void;
|
|
14
|
-
value: import("vue").WritableComputedRef<string>;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
tooltip: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
required: false;
|
|
19
|
-
default: any;
|
|
20
|
-
};
|
|
21
|
-
modelValue: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
}>> & {
|
|
26
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
27
|
-
}, {
|
|
28
|
-
tooltip: string;
|
|
29
|
-
}>;
|
|
30
|
-
export default _sfc_main;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|