@halo-dev/richtext-editor 0.0.0-alpha.11 → 0.0.0-alpha.13
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/rich-text-editor.es.js +32759 -30326
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +30479 -28046
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +172 -166
- package/package.json +44 -43
- package/dist/components/EditorHeader.vue.d.ts +0 -19
- package/dist/extensions/code-block/code-block.d.ts +0 -2
- package/dist/extensions/code-block/index.d.ts +0 -2
- package/dist/extensions/code-block/lowlight.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 -3
- package/dist/extensions/commands-menu/suggestion.d.ts +0 -21
- package/dist/extensions/index.d.ts +0 -34
- package/dist/index.d.ts +0 -9
- package/dist/menus/index.d.ts +0 -26
package/dist/style.css
CHANGED
|
@@ -24,63 +24,14 @@
|
|
|
24
24
|
height: 0;
|
|
25
25
|
}
|
|
26
26
|
.halo-rich-text-editor .editor-content .ProseMirror pre {
|
|
27
|
-
background: #0d0d0d;
|
|
28
|
-
color: #fff;
|
|
29
|
-
font-family: "JetBrainsMono", monospace;
|
|
30
27
|
padding: 0.75rem 1rem;
|
|
31
|
-
border-radius: 0;
|
|
32
28
|
margin: 0;
|
|
33
29
|
}
|
|
34
30
|
.halo-rich-text-editor .editor-content .ProseMirror pre code {
|
|
35
31
|
color: inherit;
|
|
36
|
-
padding: 0;
|
|
37
32
|
background: none;
|
|
38
33
|
font-size: 0.8rem;
|
|
39
34
|
}
|
|
40
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-comment,
|
|
41
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-quote {
|
|
42
|
-
color: #616161;
|
|
43
|
-
}
|
|
44
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-variable,
|
|
45
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-template-variable,
|
|
46
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-attribute,
|
|
47
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-tag,
|
|
48
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-name,
|
|
49
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-regexp,
|
|
50
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-link,
|
|
51
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-name,
|
|
52
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-selector-id,
|
|
53
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-selector-class {
|
|
54
|
-
color: #f98181;
|
|
55
|
-
}
|
|
56
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-number,
|
|
57
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-meta,
|
|
58
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-built_in,
|
|
59
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-builtin-name,
|
|
60
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-literal,
|
|
61
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-type,
|
|
62
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-params {
|
|
63
|
-
color: #fbbc88;
|
|
64
|
-
}
|
|
65
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-string,
|
|
66
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-symbol,
|
|
67
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-bullet {
|
|
68
|
-
color: #b9f18d;
|
|
69
|
-
}
|
|
70
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-title,
|
|
71
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-section {
|
|
72
|
-
color: #faf594;
|
|
73
|
-
}
|
|
74
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-keyword,
|
|
75
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-selector-tag {
|
|
76
|
-
color: #70cff8;
|
|
77
|
-
}
|
|
78
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-emphasis {
|
|
79
|
-
font-style: italic;
|
|
80
|
-
}
|
|
81
|
-
.halo-rich-text-editor .editor-content .ProseMirror pre .hljs-strong {
|
|
82
|
-
font-weight: 700;
|
|
83
|
-
}
|
|
84
35
|
.halo-rich-text-editor .editor-content .ProseMirror ul[data-type=taskList] {
|
|
85
36
|
list-style: none;
|
|
86
37
|
padding: 0;
|
|
@@ -98,8 +49,51 @@
|
|
|
98
49
|
}
|
|
99
50
|
.halo-rich-text-editor .editor-content .ProseMirror code br {
|
|
100
51
|
display: block;
|
|
52
|
+
}
|
|
53
|
+
.halo-rich-text-editor .editor-content .ProseMirror table {
|
|
54
|
+
border-collapse: collapse;
|
|
55
|
+
table-layout: fixed;
|
|
56
|
+
width: 100%;
|
|
57
|
+
margin: 0;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
.halo-rich-text-editor .editor-content .ProseMirror table .selectedCell:after {
|
|
61
|
+
z-index: 2;
|
|
62
|
+
position: absolute;
|
|
63
|
+
content: "";
|
|
64
|
+
left: 0;
|
|
65
|
+
right: 0;
|
|
66
|
+
top: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
background: rgba(200, 200, 255, 0.4);
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
71
|
+
.halo-rich-text-editor .editor-content .ProseMirror table th,
|
|
72
|
+
.halo-rich-text-editor .editor-content .ProseMirror table td {
|
|
73
|
+
min-width: 1em;
|
|
74
|
+
border: 2px solid #ced4da;
|
|
75
|
+
padding: 3px 5px;
|
|
76
|
+
vertical-align: top;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
position: relative;
|
|
79
|
+
border-width: 1px;
|
|
80
|
+
}
|
|
81
|
+
.halo-rich-text-editor .editor-content .ProseMirror table th > *,
|
|
82
|
+
.halo-rich-text-editor .editor-content .ProseMirror table td > * {
|
|
83
|
+
margin-top: 0;
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
}
|
|
86
|
+
.halo-rich-text-editor .editor-content .ProseMirror table .column-resize-handle {
|
|
87
|
+
position: absolute;
|
|
88
|
+
right: -2px;
|
|
89
|
+
top: 0;
|
|
90
|
+
bottom: -2px;
|
|
91
|
+
width: 4px;
|
|
92
|
+
background-color: #adf;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
cursor: col-resize !important;
|
|
101
95
|
}/*
|
|
102
|
-
! tailwindcss v3.2.
|
|
96
|
+
! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com
|
|
103
97
|
*//*
|
|
104
98
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
105
99
|
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
@@ -124,6 +118,7 @@
|
|
|
124
118
|
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
125
119
|
3. Use a more readable tab size.
|
|
126
120
|
4. Use the user's configured `sans` font-family by default.
|
|
121
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
127
122
|
*/
|
|
128
123
|
|
|
129
124
|
html {
|
|
@@ -133,6 +128,7 @@ html {
|
|
|
133
128
|
-o-tab-size: 4;
|
|
134
129
|
tab-size: 4; /* 3 */
|
|
135
130
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
|
131
|
+
font-feature-settings: normal; /* 5 */
|
|
136
132
|
}
|
|
137
133
|
|
|
138
134
|
/*
|
|
@@ -943,28 +939,6 @@ video {
|
|
|
943
939
|
.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
|
|
944
940
|
margin-bottom: 0;
|
|
945
941
|
}
|
|
946
|
-
.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
|
|
947
|
-
margin-top: 0.5714286em;
|
|
948
|
-
margin-bottom: 0.5714286em;
|
|
949
|
-
}
|
|
950
|
-
.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
951
|
-
margin-top: 1.1428571em;
|
|
952
|
-
}
|
|
953
|
-
.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
954
|
-
margin-bottom: 1.1428571em;
|
|
955
|
-
}
|
|
956
|
-
.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
957
|
-
margin-top: 1.1428571em;
|
|
958
|
-
}
|
|
959
|
-
.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
960
|
-
margin-bottom: 1.1428571em;
|
|
961
|
-
}
|
|
962
|
-
.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
|
|
963
|
-
margin-top: 0;
|
|
964
|
-
}
|
|
965
|
-
.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
|
|
966
|
-
margin-bottom: 0;
|
|
967
|
-
}
|
|
968
942
|
.prose-base {
|
|
969
943
|
font-size: 1rem;
|
|
970
944
|
line-height: 1.75;
|
|
@@ -1068,20 +1042,20 @@ video {
|
|
|
1068
1042
|
.prose-base :where(ul > li):not(:where([class~="not-prose"] *)) {
|
|
1069
1043
|
padding-left: 0.375em;
|
|
1070
1044
|
}
|
|
1071
|
-
.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
|
|
1045
|
+
.prose-base :where(.prose-base > ul > li p):not(:where([class~="not-prose"] *)) {
|
|
1072
1046
|
margin-top: 0.75em;
|
|
1073
1047
|
margin-bottom: 0.75em;
|
|
1074
1048
|
}
|
|
1075
|
-
.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1049
|
+
.prose-base :where(.prose-base > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1076
1050
|
margin-top: 1.25em;
|
|
1077
1051
|
}
|
|
1078
|
-
.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1052
|
+
.prose-base :where(.prose-base > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1079
1053
|
margin-bottom: 1.25em;
|
|
1080
1054
|
}
|
|
1081
|
-
.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1055
|
+
.prose-base :where(.prose-base > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1082
1056
|
margin-top: 1.25em;
|
|
1083
1057
|
}
|
|
1084
|
-
.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1058
|
+
.prose-base :where(.prose-base > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1085
1059
|
margin-bottom: 1.25em;
|
|
1086
1060
|
}
|
|
1087
1061
|
.prose-base :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"] *)) {
|
|
@@ -1131,80 +1105,30 @@ video {
|
|
|
1131
1105
|
.prose-base :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"] *)) {
|
|
1132
1106
|
padding-right: 0;
|
|
1133
1107
|
}
|
|
1134
|
-
.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
|
|
1135
|
-
margin-top: 0;
|
|
1136
|
-
}
|
|
1137
|
-
.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
|
|
1138
|
-
margin-bottom: 0;
|
|
1139
|
-
}
|
|
1140
|
-
.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
|
|
1141
|
-
margin-top: 0.8888889em;
|
|
1142
|
-
margin-bottom: 0.8888889em;
|
|
1143
|
-
}
|
|
1144
|
-
.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1145
|
-
margin-top: 1.3333333em;
|
|
1146
|
-
}
|
|
1147
|
-
.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1148
|
-
margin-bottom: 1.3333333em;
|
|
1149
|
-
}
|
|
1150
|
-
.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1151
|
-
margin-top: 1.3333333em;
|
|
1152
|
-
}
|
|
1153
|
-
.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1154
|
-
margin-bottom: 1.3333333em;
|
|
1155
|
-
}
|
|
1156
|
-
.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
|
|
1157
|
-
margin-top: 0;
|
|
1158
|
-
}
|
|
1159
|
-
.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
|
|
1160
|
-
margin-bottom: 0;
|
|
1161
|
-
}
|
|
1162
|
-
.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
|
|
1163
|
-
margin-top: 0.8em;
|
|
1164
|
-
margin-bottom: 0.8em;
|
|
1165
|
-
}
|
|
1166
|
-
.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1167
|
-
margin-top: 1.2em;
|
|
1168
|
-
}
|
|
1169
|
-
.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1170
|
-
margin-bottom: 1.2em;
|
|
1171
|
-
}
|
|
1172
|
-
.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1173
|
-
margin-top: 1.2em;
|
|
1174
|
-
}
|
|
1175
|
-
.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
|
|
1176
|
-
margin-bottom: 1.2em;
|
|
1177
|
-
}
|
|
1178
|
-
.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
|
|
1108
|
+
.prose-base :where(.prose-base > :first-child):not(:where([class~="not-prose"] *)) {
|
|
1179
1109
|
margin-top: 0;
|
|
1180
1110
|
}
|
|
1181
|
-
.prose-
|
|
1111
|
+
.prose-base :where(.prose-base > :last-child):not(:where([class~="not-prose"] *)) {
|
|
1182
1112
|
margin-bottom: 0;
|
|
1183
1113
|
}
|
|
1184
|
-
.
|
|
1185
|
-
|
|
1186
|
-
margin-bottom: 0.8333333em;
|
|
1187
|
-
}
|
|
1188
|
-
.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
|
|
1189
|
-
margin-top: 1.3333333em;
|
|
1114
|
+
.relative {
|
|
1115
|
+
position: relative;
|
|
1190
1116
|
}
|
|
1191
|
-
.
|
|
1192
|
-
margin-
|
|
1117
|
+
.my-3 {
|
|
1118
|
+
margin-top: 0.75rem;
|
|
1119
|
+
margin-bottom: 0.75rem;
|
|
1193
1120
|
}
|
|
1194
|
-
.
|
|
1195
|
-
margin-top:
|
|
1121
|
+
.mt-4 {
|
|
1122
|
+
margin-top: 1rem;
|
|
1196
1123
|
}
|
|
1197
|
-
.
|
|
1198
|
-
margin-bottom:
|
|
1124
|
+
.mb-4 {
|
|
1125
|
+
margin-bottom: 1rem;
|
|
1199
1126
|
}
|
|
1200
|
-
.
|
|
1201
|
-
|
|
1202
|
-
}
|
|
1203
|
-
.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
|
|
1204
|
-
margin-bottom: 0;
|
|
1127
|
+
.block {
|
|
1128
|
+
display: block;
|
|
1205
1129
|
}
|
|
1206
|
-
.
|
|
1207
|
-
|
|
1130
|
+
.inline-block {
|
|
1131
|
+
display: inline-block;
|
|
1208
1132
|
}
|
|
1209
1133
|
.flex {
|
|
1210
1134
|
display: flex;
|
|
@@ -1215,39 +1139,42 @@ video {
|
|
|
1215
1139
|
.h-full {
|
|
1216
1140
|
height: 100%;
|
|
1217
1141
|
}
|
|
1142
|
+
.h-6 {
|
|
1143
|
+
height: 1.5rem;
|
|
1144
|
+
}
|
|
1218
1145
|
.max-h-72 {
|
|
1219
1146
|
max-height: 18rem;
|
|
1220
1147
|
}
|
|
1221
1148
|
.w-full {
|
|
1222
1149
|
width: 100%;
|
|
1223
1150
|
}
|
|
1224
|
-
.w-
|
|
1225
|
-
width:
|
|
1226
|
-
}
|
|
1227
|
-
.w-52 {
|
|
1228
|
-
width: 13rem;
|
|
1151
|
+
.w-48 {
|
|
1152
|
+
width: 12rem;
|
|
1229
1153
|
}
|
|
1230
1154
|
.w-6 {
|
|
1231
1155
|
width: 1.5rem;
|
|
1232
1156
|
}
|
|
1157
|
+
.w-52 {
|
|
1158
|
+
width: 13rem;
|
|
1159
|
+
}
|
|
1233
1160
|
.\!max-w-none {
|
|
1234
1161
|
max-width: none !important;
|
|
1235
1162
|
}
|
|
1163
|
+
.cursor-pointer {
|
|
1164
|
+
cursor: pointer;
|
|
1165
|
+
}
|
|
1166
|
+
.resize {
|
|
1167
|
+
resize: both;
|
|
1168
|
+
}
|
|
1236
1169
|
.flex-row {
|
|
1237
1170
|
flex-direction: row;
|
|
1238
1171
|
}
|
|
1239
|
-
.flex-col {
|
|
1240
|
-
flex-direction: column;
|
|
1241
|
-
}
|
|
1242
1172
|
.items-center {
|
|
1243
1173
|
align-items: center;
|
|
1244
1174
|
}
|
|
1245
1175
|
.justify-center {
|
|
1246
1176
|
justify-content: center;
|
|
1247
1177
|
}
|
|
1248
|
-
.gap-2 {
|
|
1249
|
-
gap: 0.5rem;
|
|
1250
|
-
}
|
|
1251
1178
|
.gap-4 {
|
|
1252
1179
|
gap: 1rem;
|
|
1253
1180
|
}
|
|
@@ -1268,6 +1195,9 @@ video {
|
|
|
1268
1195
|
.overflow-hidden {
|
|
1269
1196
|
overflow: hidden;
|
|
1270
1197
|
}
|
|
1198
|
+
.overflow-y-auto {
|
|
1199
|
+
overflow-y: auto;
|
|
1200
|
+
}
|
|
1271
1201
|
.rounded {
|
|
1272
1202
|
border-radius: 0.25rem;
|
|
1273
1203
|
}
|
|
@@ -1283,6 +1213,10 @@ video {
|
|
|
1283
1213
|
.border-b {
|
|
1284
1214
|
border-bottom-width: 1px;
|
|
1285
1215
|
}
|
|
1216
|
+
.border-gray-300 {
|
|
1217
|
+
--tw-border-opacity: 1;
|
|
1218
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
1219
|
+
}
|
|
1286
1220
|
.bg-white {
|
|
1287
1221
|
--tw-bg-opacity: 1;
|
|
1288
1222
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
@@ -1291,10 +1225,22 @@ video {
|
|
|
1291
1225
|
--tw-bg-opacity: 1;
|
|
1292
1226
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
1293
1227
|
}
|
|
1228
|
+
.\!bg-gray-100 {
|
|
1229
|
+
--tw-bg-opacity: 1 !important;
|
|
1230
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity)) !important;
|
|
1231
|
+
}
|
|
1294
1232
|
.bg-gray-100 {
|
|
1295
1233
|
--tw-bg-opacity: 1;
|
|
1296
1234
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1297
1235
|
}
|
|
1236
|
+
.\!bg-white {
|
|
1237
|
+
--tw-bg-opacity: 1 !important;
|
|
1238
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;
|
|
1239
|
+
}
|
|
1240
|
+
.bg-gray-50 {
|
|
1241
|
+
--tw-bg-opacity: 1;
|
|
1242
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1243
|
+
}
|
|
1298
1244
|
.p-1 {
|
|
1299
1245
|
padding: 0.25rem;
|
|
1300
1246
|
}
|
|
@@ -1311,29 +1257,31 @@ video {
|
|
|
1311
1257
|
padding-top: 0.25rem;
|
|
1312
1258
|
padding-bottom: 0.25rem;
|
|
1313
1259
|
}
|
|
1314
|
-
.
|
|
1315
|
-
padding-
|
|
1316
|
-
padding-
|
|
1260
|
+
.px-2 {
|
|
1261
|
+
padding-left: 0.5rem;
|
|
1262
|
+
padding-right: 0.5rem;
|
|
1317
1263
|
}
|
|
1318
|
-
.
|
|
1319
|
-
padding-
|
|
1320
|
-
padding-
|
|
1264
|
+
.py-1\.5 {
|
|
1265
|
+
padding-top: 0.375rem;
|
|
1266
|
+
padding-bottom: 0.375rem;
|
|
1321
1267
|
}
|
|
1322
|
-
.
|
|
1323
|
-
|
|
1324
|
-
padding-bottom: 0px;
|
|
1268
|
+
.text-center {
|
|
1269
|
+
text-align: center;
|
|
1325
1270
|
}
|
|
1326
1271
|
.text-lg {
|
|
1327
1272
|
font-size: 1.125rem;
|
|
1328
1273
|
line-height: 1.75rem;
|
|
1329
1274
|
}
|
|
1275
|
+
.text-xs {
|
|
1276
|
+
font-size: 0.75rem;
|
|
1277
|
+
line-height: 1rem;
|
|
1278
|
+
}
|
|
1330
1279
|
.text-sm {
|
|
1331
1280
|
font-size: 0.875rem;
|
|
1332
1281
|
line-height: 1.25rem;
|
|
1333
1282
|
}
|
|
1334
|
-
|
|
1335
|
-
font-
|
|
1336
|
-
line-height: 1rem;
|
|
1283
|
+
.\!font-medium {
|
|
1284
|
+
font-weight: 500 !important;
|
|
1337
1285
|
}
|
|
1338
1286
|
.\!text-black {
|
|
1339
1287
|
--tw-text-opacity: 1 !important;
|
|
@@ -1343,10 +1291,19 @@ video {
|
|
|
1343
1291
|
--tw-text-opacity: 1;
|
|
1344
1292
|
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
1345
1293
|
}
|
|
1294
|
+
.\!text-gray-900 {
|
|
1295
|
+
--tw-text-opacity: 1 !important;
|
|
1296
|
+
color: rgb(17 24 39 / var(--tw-text-opacity)) !important;
|
|
1297
|
+
}
|
|
1346
1298
|
.text-gray-900 {
|
|
1347
1299
|
--tw-text-opacity: 1;
|
|
1348
1300
|
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1349
1301
|
}
|
|
1302
|
+
.ring-2 {
|
|
1303
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1304
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1305
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1306
|
+
}
|
|
1350
1307
|
.drop-shadow {
|
|
1351
1308
|
--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
|
|
1352
1309
|
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);
|
|
@@ -1355,15 +1312,64 @@ video {
|
|
|
1355
1312
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
1356
1313
|
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);
|
|
1357
1314
|
}
|
|
1315
|
+
.transition-all {
|
|
1316
|
+
transition-property: all;
|
|
1317
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1318
|
+
transition-duration: 150ms;
|
|
1319
|
+
}
|
|
1358
1320
|
.hover\:bg-gray-100:hover {
|
|
1359
1321
|
--tw-bg-opacity: 1;
|
|
1360
1322
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1361
1323
|
}
|
|
1324
|
+
.focus\:border-blue-500:focus {
|
|
1325
|
+
--tw-border-opacity: 1;
|
|
1326
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
1327
|
+
}
|
|
1328
|
+
.focus\:ring-blue-500:focus {
|
|
1329
|
+
--tw-ring-opacity: 1;
|
|
1330
|
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
1331
|
+
}
|
|
1332
|
+
.group:hover .group-hover\:bg-white {
|
|
1333
|
+
--tw-bg-opacity: 1;
|
|
1334
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1335
|
+
}
|
|
1336
|
+
.group:hover .group-hover\:\!bg-white {
|
|
1337
|
+
--tw-bg-opacity: 1 !important;
|
|
1338
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;
|
|
1339
|
+
}
|
|
1340
|
+
.group:hover .group-hover\:font-medium {
|
|
1341
|
+
font-weight: 500;
|
|
1342
|
+
}
|
|
1343
|
+
.group:hover .group-hover\:text-gray-900 {
|
|
1344
|
+
--tw-text-opacity: 1;
|
|
1345
|
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1346
|
+
}
|
|
1347
|
+
.prose-p\:mt-3 :is(:where(p):not(:where([class~="not-prose"] *))) {
|
|
1348
|
+
margin-top: 0.75rem;
|
|
1349
|
+
}
|
|
1350
|
+
.prose-p\:mb-3 :is(:where(p):not(:where([class~="not-prose"] *))) {
|
|
1351
|
+
margin-bottom: 0.75rem;
|
|
1352
|
+
}
|
|
1362
1353
|
.prose-pre\:p-0 :is(:where(pre):not(:where([class~="not-prose"] *))) {
|
|
1363
1354
|
padding: 0px;
|
|
1364
1355
|
}
|
|
1356
|
+
.prose-img\:mt-0 :is(:where(img):not(:where([class~="not-prose"] *))) {
|
|
1357
|
+
margin-top: 0px;
|
|
1358
|
+
}
|
|
1359
|
+
.prose-img\:mb-0 :is(:where(img):not(:where([class~="not-prose"] *))) {
|
|
1360
|
+
margin-bottom: 0px;
|
|
1361
|
+
}
|
|
1365
1362
|
.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}
|
|
1366
|
-
.
|
|
1363
|
+
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
1364
|
+
Theme: GitHub Dark
|
|
1365
|
+
Description: Dark theme as seen on github.com
|
|
1366
|
+
Author: github.com
|
|
1367
|
+
Maintainer: @Hirse
|
|
1368
|
+
Updated: 2021-05-15
|
|
1369
|
+
|
|
1370
|
+
Outdated base version: https://github.com/primer/github-syntax-dark
|
|
1371
|
+
Current colors taken from GitHub's CSS
|
|
1372
|
+
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.command-items {
|
|
1367
1373
|
position: relative;
|
|
1368
1374
|
max-height: 18rem;
|
|
1369
1375
|
width: 13rem;
|
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.13",
|
|
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.1.
|
|
32
|
+
"@iconify/json": "^2.1.142",
|
|
33
33
|
"@types/katex": "^0.14.0",
|
|
34
|
-
"@vue/compiler-sfc": "^3.2.
|
|
34
|
+
"@vue/compiler-sfc": "^3.2.45",
|
|
35
35
|
"autoprefixer": "^10.4.13",
|
|
36
|
-
"postcss": "^8.4.
|
|
36
|
+
"postcss": "^8.4.19",
|
|
37
37
|
"release-it": "^15.5.0",
|
|
38
|
-
"sass": "^1.
|
|
39
|
-
"tailwindcss": "^3.2.
|
|
40
|
-
"unplugin-icons": "^0.14.
|
|
41
|
-
"vite-plugin-dts": "^1.
|
|
38
|
+
"sass": "^1.56.1",
|
|
39
|
+
"tailwindcss": "^3.2.4",
|
|
40
|
+
"unplugin-icons": "^0.14.14",
|
|
41
|
+
"vite-plugin-dts": "^1.7.1"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": {
|
|
@@ -48,41 +48,42 @@
|
|
|
48
48
|
"./dist/style.css": "./dist/style.css"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tiptap/core": "2.0.0-beta.
|
|
52
|
-
"@tiptap/extension-blockquote": "^2.0.0-beta.
|
|
53
|
-
"@tiptap/extension-bold": "^2.0.0-beta.
|
|
54
|
-
"@tiptap/extension-bullet-list": "^2.0.0-beta.
|
|
55
|
-
"@tiptap/extension-code": "^2.0.0-beta.
|
|
56
|
-
"@tiptap/extension-code-block": "^2.0.0-beta.
|
|
57
|
-
"@tiptap/extension-code-block-lowlight": "2.0.0-beta.
|
|
58
|
-
"@tiptap/extension-document": "^2.0.0-beta.
|
|
59
|
-
"@tiptap/extension-dropcursor": "^2.0.0-beta.
|
|
60
|
-
"@tiptap/extension-gapcursor": "^2.0.0-beta.
|
|
61
|
-
"@tiptap/extension-hard-break": "^2.0.0-beta.
|
|
62
|
-
"@tiptap/extension-heading": "^2.0.0-beta.
|
|
63
|
-
"@tiptap/extension-history": "^2.0.0-beta.
|
|
64
|
-
"@tiptap/extension-horizontal-rule": "^2.0.0-beta.
|
|
65
|
-
"@tiptap/extension-image": "2.0.0-beta.
|
|
66
|
-
"@tiptap/extension-italic": "^2.0.0-beta.
|
|
67
|
-
"@tiptap/extension-link": "2.0.0-beta.
|
|
68
|
-
"@tiptap/extension-list-item": "^2.0.0-beta.
|
|
69
|
-
"@tiptap/extension-ordered-list": "^2.0.0-beta.
|
|
70
|
-
"@tiptap/extension-paragraph": "^2.0.0-beta.
|
|
71
|
-
"@tiptap/extension-placeholder": "2.0.0-beta.
|
|
72
|
-
"@tiptap/extension-strike": "^2.0.0-beta.
|
|
73
|
-
"@tiptap/extension-subscript": "2.0.0-beta.
|
|
74
|
-
"@tiptap/extension-superscript": "2.0.0-beta.
|
|
75
|
-
"@tiptap/extension-table": "2.0.0-beta.
|
|
76
|
-
"@tiptap/extension-table-cell": "2.0.0-beta.
|
|
77
|
-
"@tiptap/extension-table-header": "2.0.0-beta.
|
|
78
|
-
"@tiptap/extension-table-row": "2.0.0-beta.
|
|
79
|
-
"@tiptap/extension-task-item": "2.0.0-beta.
|
|
80
|
-
"@tiptap/extension-task-list": "2.0.0-beta.
|
|
81
|
-
"@tiptap/extension-text": "^2.0.0-beta.
|
|
82
|
-
"@tiptap/extension-text-align": "2.0.0-beta.
|
|
83
|
-
"@tiptap/extension-underline": "2.0.0-beta.
|
|
84
|
-
"@tiptap/suggestion": "2.0.0-beta.
|
|
85
|
-
"@tiptap/vue-3": "2.0.0-beta.
|
|
51
|
+
"@tiptap/core": "2.0.0-beta.202",
|
|
52
|
+
"@tiptap/extension-blockquote": "^2.0.0-beta.202",
|
|
53
|
+
"@tiptap/extension-bold": "^2.0.0-beta.202",
|
|
54
|
+
"@tiptap/extension-bullet-list": "^2.0.0-beta.202",
|
|
55
|
+
"@tiptap/extension-code": "^2.0.0-beta.202",
|
|
56
|
+
"@tiptap/extension-code-block": "^2.0.0-beta.202",
|
|
57
|
+
"@tiptap/extension-code-block-lowlight": "2.0.0-beta.202",
|
|
58
|
+
"@tiptap/extension-document": "^2.0.0-beta.202",
|
|
59
|
+
"@tiptap/extension-dropcursor": "^2.0.0-beta.202",
|
|
60
|
+
"@tiptap/extension-gapcursor": "^2.0.0-beta.202",
|
|
61
|
+
"@tiptap/extension-hard-break": "^2.0.0-beta.202",
|
|
62
|
+
"@tiptap/extension-heading": "^2.0.0-beta.202",
|
|
63
|
+
"@tiptap/extension-history": "^2.0.0-beta.202",
|
|
64
|
+
"@tiptap/extension-horizontal-rule": "^2.0.0-beta.202",
|
|
65
|
+
"@tiptap/extension-image": "2.0.0-beta.202",
|
|
66
|
+
"@tiptap/extension-italic": "^2.0.0-beta.202",
|
|
67
|
+
"@tiptap/extension-link": "2.0.0-beta.202",
|
|
68
|
+
"@tiptap/extension-list-item": "^2.0.0-beta.202",
|
|
69
|
+
"@tiptap/extension-ordered-list": "^2.0.0-beta.202",
|
|
70
|
+
"@tiptap/extension-paragraph": "^2.0.0-beta.202",
|
|
71
|
+
"@tiptap/extension-placeholder": "2.0.0-beta.202",
|
|
72
|
+
"@tiptap/extension-strike": "^2.0.0-beta.202",
|
|
73
|
+
"@tiptap/extension-subscript": "2.0.0-beta.202",
|
|
74
|
+
"@tiptap/extension-superscript": "2.0.0-beta.202",
|
|
75
|
+
"@tiptap/extension-table": "2.0.0-beta.202",
|
|
76
|
+
"@tiptap/extension-table-cell": "2.0.0-beta.202",
|
|
77
|
+
"@tiptap/extension-table-header": "2.0.0-beta.202",
|
|
78
|
+
"@tiptap/extension-table-row": "2.0.0-beta.202",
|
|
79
|
+
"@tiptap/extension-task-item": "2.0.0-beta.202",
|
|
80
|
+
"@tiptap/extension-task-list": "2.0.0-beta.202",
|
|
81
|
+
"@tiptap/extension-text": "^2.0.0-beta.202",
|
|
82
|
+
"@tiptap/extension-text-align": "2.0.0-beta.202",
|
|
83
|
+
"@tiptap/extension-underline": "2.0.0-beta.202",
|
|
84
|
+
"@tiptap/suggestion": "2.0.0-beta.202",
|
|
85
|
+
"@tiptap/vue-3": "2.0.0-beta.202",
|
|
86
|
+
"@vueuse/core": "^9.6.0",
|
|
86
87
|
"floating-vue": "2.0.0-beta.20",
|
|
87
88
|
"katex": "^0.16.3",
|
|
88
89
|
"lowlight": "^2.7.0",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PropType } from "vue";
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
-
menuItems: {
|
|
4
|
-
type: PropType<MenuItem[]>;
|
|
5
|
-
required: false;
|
|
6
|
-
default: () => any[];
|
|
7
|
-
};
|
|
8
|
-
}, {
|
|
9
|
-
VMenu: any;
|
|
10
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
menuItems: {
|
|
12
|
-
type: PropType<MenuItem[]>;
|
|
13
|
-
required: false;
|
|
14
|
-
default: () => any[];
|
|
15
|
-
};
|
|
16
|
-
}>>, {
|
|
17
|
-
menuItems: MenuItem[];
|
|
18
|
-
}>;
|
|
19
|
-
export default _sfc_main;
|