@halo-dev/richtext-editor 0.0.0-alpha.16 → 0.0.0-alpha.18-0
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 +14177 -16523
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +12659 -15005
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +107 -16
- package/package.json +46 -46
- package/dist/components/EditorHeader.vue.d.ts +0 -19
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +0 -98
- 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 -27
- package/dist/extensions/iframe/IframeView.vue.d.ts +0 -84
- package/dist/extensions/iframe/index.d.ts +0 -12
- package/dist/extensions/image/ImageView.vue.d.ts +0 -86
- package/dist/extensions/image/index.d.ts +0 -2
- package/dist/extensions/index.d.ts +0 -33
- package/dist/extensions/table/index.d.ts +0 -2
- package/dist/index.d.ts +0 -9
- package/dist/menus/index.d.ts +0 -32
package/dist/style.css
CHANGED
|
@@ -92,6 +92,17 @@
|
|
|
92
92
|
background-color: #adf;
|
|
93
93
|
pointer-events: none;
|
|
94
94
|
cursor: col-resize !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.v-popper--theme-editor-block-dropdown .v-popper__inner {
|
|
98
|
+
border-radius: 0.375rem;
|
|
99
|
+
--tw-bg-opacity: 1;
|
|
100
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
101
|
+
--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));
|
|
102
|
+
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);
|
|
103
|
+
}
|
|
104
|
+
.v-popper--theme-editor-block-dropdown .v-popper__arrow-container {
|
|
105
|
+
display: none;
|
|
95
106
|
}/*
|
|
96
107
|
! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com
|
|
97
108
|
*//*
|
|
@@ -1114,15 +1125,9 @@ video {
|
|
|
1114
1125
|
.relative {
|
|
1115
1126
|
position: relative;
|
|
1116
1127
|
}
|
|
1117
|
-
.
|
|
1118
|
-
margin-
|
|
1119
|
-
margin-
|
|
1120
|
-
}
|
|
1121
|
-
.mt-4 {
|
|
1122
|
-
margin-top: 1rem;
|
|
1123
|
-
}
|
|
1124
|
-
.mb-4 {
|
|
1125
|
-
margin-bottom: 1rem;
|
|
1128
|
+
.mx-1 {
|
|
1129
|
+
margin-left: 0.25rem;
|
|
1130
|
+
margin-right: 0.25rem;
|
|
1126
1131
|
}
|
|
1127
1132
|
.block {
|
|
1128
1133
|
display: block;
|
|
@@ -1157,18 +1162,22 @@ video {
|
|
|
1157
1162
|
.w-6 {
|
|
1158
1163
|
width: 1.5rem;
|
|
1159
1164
|
}
|
|
1165
|
+
.w-32 {
|
|
1166
|
+
width: 8rem;
|
|
1167
|
+
}
|
|
1160
1168
|
.w-52 {
|
|
1161
1169
|
width: 13rem;
|
|
1162
1170
|
}
|
|
1163
1171
|
.\!max-w-none {
|
|
1164
1172
|
max-width: none !important;
|
|
1165
1173
|
}
|
|
1174
|
+
.-rotate-90 {
|
|
1175
|
+
--tw-rotate: -90deg;
|
|
1176
|
+
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));
|
|
1177
|
+
}
|
|
1166
1178
|
.cursor-pointer {
|
|
1167
1179
|
cursor: pointer;
|
|
1168
1180
|
}
|
|
1169
|
-
.resize {
|
|
1170
|
-
resize: both;
|
|
1171
|
-
}
|
|
1172
1181
|
.flex-row {
|
|
1173
1182
|
flex-direction: row;
|
|
1174
1183
|
}
|
|
@@ -1181,6 +1190,12 @@ video {
|
|
|
1181
1190
|
.gap-4 {
|
|
1182
1191
|
gap: 1rem;
|
|
1183
1192
|
}
|
|
1193
|
+
.gap-0\.5 {
|
|
1194
|
+
gap: 0.125rem;
|
|
1195
|
+
}
|
|
1196
|
+
.gap-0 {
|
|
1197
|
+
gap: 0px;
|
|
1198
|
+
}
|
|
1184
1199
|
.space-x-0\.5 > :not([hidden]) ~ :not([hidden]) {
|
|
1185
1200
|
--tw-space-x-reverse: 0;
|
|
1186
1201
|
margin-right: calc(0.125rem * var(--tw-space-x-reverse));
|
|
@@ -1191,10 +1206,6 @@ video {
|
|
|
1191
1206
|
margin-right: calc(0px * var(--tw-space-x-reverse));
|
|
1192
1207
|
margin-left: calc(0px * calc(1 - var(--tw-space-x-reverse)));
|
|
1193
1208
|
}
|
|
1194
|
-
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
|
|
1195
|
-
--tw-divide-opacity: 1;
|
|
1196
|
-
border-color: rgb(243 244 246 / var(--tw-divide-opacity));
|
|
1197
|
-
}
|
|
1198
1209
|
.overflow-hidden {
|
|
1199
1210
|
overflow: hidden;
|
|
1200
1211
|
}
|
|
@@ -1213,6 +1224,9 @@ video {
|
|
|
1213
1224
|
.border {
|
|
1214
1225
|
border-width: 1px;
|
|
1215
1226
|
}
|
|
1227
|
+
.border-2 {
|
|
1228
|
+
border-width: 2px;
|
|
1229
|
+
}
|
|
1216
1230
|
.border-b {
|
|
1217
1231
|
border-bottom-width: 1px;
|
|
1218
1232
|
}
|
|
@@ -1253,6 +1267,9 @@ video {
|
|
|
1253
1267
|
.p-0 {
|
|
1254
1268
|
padding: 0px;
|
|
1255
1269
|
}
|
|
1270
|
+
.p-1\.5 {
|
|
1271
|
+
padding: 0.375rem;
|
|
1272
|
+
}
|
|
1256
1273
|
.p-4 {
|
|
1257
1274
|
padding: 1rem;
|
|
1258
1275
|
}
|
|
@@ -1433,4 +1450,78 @@ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5p
|
|
|
1433
1450
|
line-height: 1rem;
|
|
1434
1451
|
--tw-text-opacity: 1;
|
|
1435
1452
|
color: rgb(75 85 99 / var(--tw-text-opacity))
|
|
1453
|
+
}
|
|
1454
|
+
.editor-block__actions-separator {
|
|
1455
|
+
margin-left: 0.375rem;
|
|
1456
|
+
margin-right: 0.375rem;
|
|
1457
|
+
height: 1.25rem;
|
|
1458
|
+
--tw-bg-opacity: 1;
|
|
1459
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1460
|
+
width: 1px
|
|
1461
|
+
}
|
|
1462
|
+
.editor-block__actions-button {
|
|
1463
|
+
cursor: pointer;
|
|
1464
|
+
border-radius: 0.375rem;
|
|
1465
|
+
--tw-bg-opacity: 1;
|
|
1466
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1467
|
+
padding: 0.375rem
|
|
1468
|
+
}
|
|
1469
|
+
.editor-block__actions-button:hover {
|
|
1470
|
+
--tw-bg-opacity: 1;
|
|
1471
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity))
|
|
1472
|
+
}
|
|
1473
|
+
.editor-block__actions-button--selected {
|
|
1474
|
+
--tw-bg-opacity: 1;
|
|
1475
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity))
|
|
1476
|
+
}.editor-block {
|
|
1477
|
+
position: relative
|
|
1478
|
+
}
|
|
1479
|
+
.editor-block__content {
|
|
1480
|
+
border-radius: 0.25rem;
|
|
1481
|
+
padding: 0.5rem;
|
|
1482
|
+
transition-property: all;
|
|
1483
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1484
|
+
transition-duration: 150ms
|
|
1485
|
+
}
|
|
1486
|
+
.editor-block__actions {
|
|
1487
|
+
display: flex;
|
|
1488
|
+
flex-direction: row;
|
|
1489
|
+
align-items: center;
|
|
1490
|
+
gap: 0.125rem;
|
|
1491
|
+
padding: 0.25rem
|
|
1492
|
+
}
|
|
1493
|
+
.editor-block:hover .editor-block__content {
|
|
1494
|
+
--tw-bg-opacity: 1;
|
|
1495
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity))
|
|
1496
|
+
}
|
|
1497
|
+
.editor-block--selected .editor-block__content {
|
|
1498
|
+
--tw-bg-opacity: 1;
|
|
1499
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity))
|
|
1500
|
+
}.editor-block__actions-input {
|
|
1501
|
+
display: block;
|
|
1502
|
+
width: 8rem;
|
|
1503
|
+
border-radius: 0.375rem;
|
|
1504
|
+
border-width: 1px;
|
|
1505
|
+
--tw-border-opacity: 1;
|
|
1506
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
1507
|
+
--tw-bg-opacity: 1;
|
|
1508
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1509
|
+
padding-left: 0.5rem;
|
|
1510
|
+
padding-right: 0.5rem;
|
|
1511
|
+
padding-top: 0.375rem;
|
|
1512
|
+
padding-bottom: 0.375rem;
|
|
1513
|
+
font-size: 0.875rem;
|
|
1514
|
+
line-height: 1.25rem;
|
|
1515
|
+
--tw-text-opacity: 1;
|
|
1516
|
+
color: rgb(17 24 39 / var(--tw-text-opacity))
|
|
1517
|
+
}
|
|
1518
|
+
.editor-block__actions-input:hover {
|
|
1519
|
+
--tw-bg-opacity: 1;
|
|
1520
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity))
|
|
1521
|
+
}
|
|
1522
|
+
.editor-block__actions-input:focus {
|
|
1523
|
+
--tw-border-opacity: 1;
|
|
1524
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
1525
|
+
--tw-ring-opacity: 1;
|
|
1526
|
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))
|
|
1436
1527
|
}
|
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.18-0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"vue": "^3.2.37"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@iconify/json": "^2.1
|
|
33
|
-
"@types/katex": "^0.
|
|
32
|
+
"@iconify/json": "^2.2.1",
|
|
33
|
+
"@types/katex": "^0.16.0",
|
|
34
34
|
"@vue/compiler-sfc": "^3.2.45",
|
|
35
35
|
"autoprefixer": "^10.4.13",
|
|
36
|
-
"postcss": "^8.4.
|
|
37
|
-
"release-it": "^15.
|
|
38
|
-
"sass": "^1.
|
|
36
|
+
"postcss": "^8.4.20",
|
|
37
|
+
"release-it": "^15.6.0",
|
|
38
|
+
"sass": "^1.57.1",
|
|
39
39
|
"tailwindcss": "^3.2.4",
|
|
40
|
-
"unplugin-icons": "^0.
|
|
40
|
+
"unplugin-icons": "^0.15.0",
|
|
41
41
|
"vite-plugin-dts": "^1.7.1"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
@@ -48,46 +48,46 @@
|
|
|
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-highlight": "2.0.0-beta.
|
|
64
|
-
"@tiptap/extension-history": "^2.0.0-beta.
|
|
65
|
-
"@tiptap/extension-horizontal-rule": "^2.0.0-beta.
|
|
66
|
-
"@tiptap/extension-image": "2.0.0-beta.
|
|
67
|
-
"@tiptap/extension-italic": "^2.0.0-beta.
|
|
68
|
-
"@tiptap/extension-link": "2.0.0-beta.
|
|
69
|
-
"@tiptap/extension-list-item": "^2.0.0-beta.
|
|
70
|
-
"@tiptap/extension-ordered-list": "^2.0.0-beta.
|
|
71
|
-
"@tiptap/extension-paragraph": "^2.0.0-beta.
|
|
72
|
-
"@tiptap/extension-placeholder": "2.0.0-beta.
|
|
73
|
-
"@tiptap/extension-strike": "^2.0.0-beta.
|
|
74
|
-
"@tiptap/extension-subscript": "2.0.0-beta.
|
|
75
|
-
"@tiptap/extension-superscript": "2.0.0-beta.
|
|
76
|
-
"@tiptap/extension-table": "2.0.0-beta.
|
|
77
|
-
"@tiptap/extension-table-cell": "2.0.0-beta.
|
|
78
|
-
"@tiptap/extension-table-header": "2.0.0-beta.
|
|
79
|
-
"@tiptap/extension-table-row": "2.0.0-beta.
|
|
80
|
-
"@tiptap/extension-task-item": "2.0.0-beta.
|
|
81
|
-
"@tiptap/extension-task-list": "2.0.0-beta.
|
|
82
|
-
"@tiptap/extension-text": "^2.0.0-beta.
|
|
83
|
-
"@tiptap/extension-text-align": "2.0.0-beta.
|
|
84
|
-
"@tiptap/extension-underline": "2.0.0-beta.
|
|
85
|
-
"@tiptap/suggestion": "2.0.0-beta.
|
|
86
|
-
"@tiptap/vue-3": "2.0.0-beta.
|
|
87
|
-
"@vueuse/core": "^9.6.0",
|
|
51
|
+
"@tiptap/core": "2.0.0-beta.209",
|
|
52
|
+
"@tiptap/extension-blockquote": "^2.0.0-beta.209",
|
|
53
|
+
"@tiptap/extension-bold": "^2.0.0-beta.209",
|
|
54
|
+
"@tiptap/extension-bullet-list": "^2.0.0-beta.209",
|
|
55
|
+
"@tiptap/extension-code": "^2.0.0-beta.209",
|
|
56
|
+
"@tiptap/extension-code-block": "^2.0.0-beta.209",
|
|
57
|
+
"@tiptap/extension-code-block-lowlight": "2.0.0-beta.209",
|
|
58
|
+
"@tiptap/extension-document": "^2.0.0-beta.209",
|
|
59
|
+
"@tiptap/extension-dropcursor": "^2.0.0-beta.209",
|
|
60
|
+
"@tiptap/extension-gapcursor": "^2.0.0-beta.209",
|
|
61
|
+
"@tiptap/extension-hard-break": "^2.0.0-beta.209",
|
|
62
|
+
"@tiptap/extension-heading": "^2.0.0-beta.209",
|
|
63
|
+
"@tiptap/extension-highlight": "2.0.0-beta.209",
|
|
64
|
+
"@tiptap/extension-history": "^2.0.0-beta.209",
|
|
65
|
+
"@tiptap/extension-horizontal-rule": "^2.0.0-beta.209",
|
|
66
|
+
"@tiptap/extension-image": "2.0.0-beta.209",
|
|
67
|
+
"@tiptap/extension-italic": "^2.0.0-beta.209",
|
|
68
|
+
"@tiptap/extension-link": "2.0.0-beta.209",
|
|
69
|
+
"@tiptap/extension-list-item": "^2.0.0-beta.209",
|
|
70
|
+
"@tiptap/extension-ordered-list": "^2.0.0-beta.209",
|
|
71
|
+
"@tiptap/extension-paragraph": "^2.0.0-beta.209",
|
|
72
|
+
"@tiptap/extension-placeholder": "2.0.0-beta.209",
|
|
73
|
+
"@tiptap/extension-strike": "^2.0.0-beta.209",
|
|
74
|
+
"@tiptap/extension-subscript": "2.0.0-beta.209",
|
|
75
|
+
"@tiptap/extension-superscript": "2.0.0-beta.209",
|
|
76
|
+
"@tiptap/extension-table": "2.0.0-beta.209",
|
|
77
|
+
"@tiptap/extension-table-cell": "2.0.0-beta.209",
|
|
78
|
+
"@tiptap/extension-table-header": "2.0.0-beta.209",
|
|
79
|
+
"@tiptap/extension-table-row": "2.0.0-beta.209",
|
|
80
|
+
"@tiptap/extension-task-item": "2.0.0-beta.209",
|
|
81
|
+
"@tiptap/extension-task-list": "2.0.0-beta.209",
|
|
82
|
+
"@tiptap/extension-text": "^2.0.0-beta.209",
|
|
83
|
+
"@tiptap/extension-text-align": "2.0.0-beta.209",
|
|
84
|
+
"@tiptap/extension-underline": "2.0.0-beta.209",
|
|
85
|
+
"@tiptap/suggestion": "2.0.0-beta.209",
|
|
86
|
+
"@tiptap/vue-3": "2.0.0-beta.209",
|
|
88
87
|
"floating-vue": "2.0.0-beta.20",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
88
|
+
"highlight.js": "11.7.0",
|
|
89
|
+
"katex": "^0.16.4",
|
|
90
|
+
"lowlight": "^2.8.0",
|
|
91
91
|
"tippy.js": "^6.3.7"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -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
|
-
readonly 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;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
editor: {
|
|
3
|
-
type: any;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
node: {
|
|
7
|
-
type: any;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
decorations: {
|
|
11
|
-
type: ArrayConstructor;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
selected: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
extension: {
|
|
19
|
-
type: any;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
getPos: {
|
|
23
|
-
type: FunctionConstructor;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
updateAttributes: {
|
|
27
|
-
type: FunctionConstructor;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
deleteNode: {
|
|
31
|
-
type: FunctionConstructor;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
}, {
|
|
35
|
-
props: any;
|
|
36
|
-
languages: import("vue").ComputedRef<string[]>;
|
|
37
|
-
selectedLanguage: import("vue").WritableComputedRef<any>;
|
|
38
|
-
readonly NodeViewContent: import("vue").DefineComponent<{
|
|
39
|
-
as: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
-
as: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
}>>, {
|
|
49
|
-
as: string;
|
|
50
|
-
}>;
|
|
51
|
-
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
52
|
-
as: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
-
as: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
}>>, {
|
|
62
|
-
as: string;
|
|
63
|
-
}>;
|
|
64
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
-
editor: {
|
|
66
|
-
type: any;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
node: {
|
|
70
|
-
type: any;
|
|
71
|
-
required: true;
|
|
72
|
-
};
|
|
73
|
-
decorations: {
|
|
74
|
-
type: ArrayConstructor;
|
|
75
|
-
required: true;
|
|
76
|
-
};
|
|
77
|
-
selected: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
required: true;
|
|
80
|
-
};
|
|
81
|
-
extension: {
|
|
82
|
-
type: any;
|
|
83
|
-
required: true;
|
|
84
|
-
};
|
|
85
|
-
getPos: {
|
|
86
|
-
type: FunctionConstructor;
|
|
87
|
-
required: true;
|
|
88
|
-
};
|
|
89
|
-
updateAttributes: {
|
|
90
|
-
type: FunctionConstructor;
|
|
91
|
-
required: true;
|
|
92
|
-
};
|
|
93
|
-
deleteNode: {
|
|
94
|
-
type: FunctionConstructor;
|
|
95
|
-
required: true;
|
|
96
|
-
};
|
|
97
|
-
}>>, {}>;
|
|
98
|
-
export default _sfc_main;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type PropType } from "vue";
|
|
2
|
-
import type { Item } from "./suggestion";
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
-
items: {
|
|
5
|
-
type: PropType<Item[]>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
command: {
|
|
9
|
-
type: PropType<(item: Item) => void>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
props: any;
|
|
14
|
-
selectedIndex: import("vue").Ref<number>;
|
|
15
|
-
onKeyDown: ({ event }: {
|
|
16
|
-
event: KeyboardEvent;
|
|
17
|
-
}) => boolean;
|
|
18
|
-
handleKeyUp: () => void;
|
|
19
|
-
handleKeyDown: () => void;
|
|
20
|
-
handleKeyEnter: () => void;
|
|
21
|
-
handleSelectItem: (index: number) => void;
|
|
22
|
-
scrollToSelected: () => void;
|
|
23
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
items: {
|
|
25
|
-
type: PropType<Item[]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
command: {
|
|
29
|
-
type: PropType<(item: Item) => void>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
}>>, {}>;
|
|
33
|
-
export default _sfc_main;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type Editor, type Range } from "@tiptap/vue-3";
|
|
2
|
-
import { type Component } from "vue";
|
|
3
|
-
import type { SuggestionOptions } from "@tiptap/suggestion";
|
|
4
|
-
export interface Item {
|
|
5
|
-
icon: Component;
|
|
6
|
-
title: string;
|
|
7
|
-
keywords: string[];
|
|
8
|
-
command: ({ editor, range }: {
|
|
9
|
-
editor: Editor;
|
|
10
|
-
range: Range;
|
|
11
|
-
}) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const CommentParagraph: Item;
|
|
14
|
-
export declare const CommandHeader1: Item;
|
|
15
|
-
export declare const CommandHeader2: Item;
|
|
16
|
-
export declare const CommandHeader3: Item;
|
|
17
|
-
export declare const CommandHeader4: Item;
|
|
18
|
-
export declare const CommandHeader5: Item;
|
|
19
|
-
export declare const CommandHeader6: Item;
|
|
20
|
-
export declare const CommandCodeBlock: Item;
|
|
21
|
-
export declare const CommandIframe: Item;
|
|
22
|
-
export declare const CommandTable: Item;
|
|
23
|
-
export declare const CommandBulletList: Item;
|
|
24
|
-
export declare const CommandOrderedList: Item;
|
|
25
|
-
export declare const CommandTaskList: Item;
|
|
26
|
-
declare const _default: Omit<SuggestionOptions<Item>, "editor">;
|
|
27
|
-
export default _default;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
editor: {
|
|
3
|
-
type: any;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
node: {
|
|
7
|
-
type: any;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
decorations: {
|
|
11
|
-
type: ArrayConstructor;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
selected: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
extension: {
|
|
19
|
-
type: any;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
getPos: {
|
|
23
|
-
type: FunctionConstructor;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
updateAttributes: {
|
|
27
|
-
type: FunctionConstructor;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
deleteNode: {
|
|
31
|
-
type: FunctionConstructor;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
}, {
|
|
35
|
-
props: any;
|
|
36
|
-
src: import("vue").WritableComputedRef<any>;
|
|
37
|
-
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
38
|
-
as: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
as: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
}>>, {
|
|
48
|
-
as: string;
|
|
49
|
-
}>;
|
|
50
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
-
editor: {
|
|
52
|
-
type: any;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
node: {
|
|
56
|
-
type: any;
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
decorations: {
|
|
60
|
-
type: ArrayConstructor;
|
|
61
|
-
required: true;
|
|
62
|
-
};
|
|
63
|
-
selected: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
required: true;
|
|
66
|
-
};
|
|
67
|
-
extension: {
|
|
68
|
-
type: any;
|
|
69
|
-
required: true;
|
|
70
|
-
};
|
|
71
|
-
getPos: {
|
|
72
|
-
type: FunctionConstructor;
|
|
73
|
-
required: true;
|
|
74
|
-
};
|
|
75
|
-
updateAttributes: {
|
|
76
|
-
type: FunctionConstructor;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
deleteNode: {
|
|
80
|
-
type: FunctionConstructor;
|
|
81
|
-
required: true;
|
|
82
|
-
};
|
|
83
|
-
}>>, {}>;
|
|
84
|
-
export default _sfc_main;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Node } from "@tiptap/core";
|
|
2
|
-
declare module "@tiptap/core" {
|
|
3
|
-
interface Commands<ReturnType> {
|
|
4
|
-
iframe: {
|
|
5
|
-
setIframe: (options: {
|
|
6
|
-
src: string;
|
|
7
|
-
}) => ReturnType;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const Iframe: Node<any, any>;
|
|
12
|
-
export default Iframe;
|