@agilehub/agile-editor 1.7.0 → 1.8.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/README.md +1 -0
- package/dist/agile-editor.css +1 -1
- package/dist/agile-editor.js +17696 -18074
- package/dist/i18n-DCR9QpaV.js +2785 -0
- package/dist/types/components/editor/courseware-dialog.vue.d.ts +3 -0
- package/dist/types/components/editor/smart-sheet-dialog.vue.d.ts +3 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/index.vue.d.ts +355 -19
- package/dist/types/components/menus/button.vue.d.ts +1 -1
- package/dist/types/components/menus/toolbar/insert/courseware.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/smart-sheet.vue.d.ts +3 -0
- package/dist/types/components/preview-toolbar/index.vue.d.ts +2 -2
- package/dist/types/components/toolbar/classic.vue.d.ts +14 -14
- package/dist/types/components/toolbar/ribbon.vue.d.ts +14 -14
- package/dist/types/composables/i18n.d.ts +351 -15
- package/dist/types/extensions/bookmark-transaction.d.ts +4 -0
- package/dist/types/extensions/bubble-note.d.ts +1 -0
- package/dist/types/extensions/courseware/annotation-session.d.ts +4 -0
- package/dist/types/extensions/courseware/index.d.ts +49 -0
- package/dist/types/extensions/courseware/model.d.ts +20 -0
- package/dist/types/extensions/courseware/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/courseware/reader.vue.d.ts +22 -0
- package/dist/types/extensions/smart-sheet/index.d.ts +47 -0
- package/dist/types/extensions/smart-sheet/model.d.ts +18 -0
- package/dist/types/extensions/smart-sheet/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/smart-sheet/viewer.vue.d.ts +36 -0
- package/dist/types/i18n.d.ts +351 -15
- package/dist/types/utils/bubble-note-icon.d.ts +1 -0
- package/dist/types/utils/document-formatting.d.ts +41 -37
- package/dist/types/utils/document-import.d.ts +2 -0
- package/dist/types/utils/html-element-id.d.ts +9 -2
- package/dist/types/utils/md5.d.ts +2 -0
- package/dist/viewer-CyuLA7YS.js +97 -0
- package/docs/FORMATTING_TEMPLATES.md +253 -250
- package/docs/FORMATTING_TEMPLATE_BUSINESS_GUIDE.md +536 -0
- package/docs/README.md +1 -0
- package/docs/configuration.md +25 -0
- package/package.json +165 -162
package/dist/types/i18n.d.ts
CHANGED
|
@@ -3,10 +3,24 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3
3
|
formatting: {
|
|
4
4
|
none: string;
|
|
5
5
|
labels: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
p: string;
|
|
7
|
+
span: string;
|
|
8
|
+
h1: string;
|
|
9
|
+
h2: string;
|
|
10
|
+
h3: string;
|
|
11
|
+
h4: string;
|
|
12
|
+
h5: string;
|
|
13
|
+
h6: string;
|
|
8
14
|
table: string;
|
|
9
|
-
|
|
15
|
+
th: string;
|
|
16
|
+
td: string;
|
|
17
|
+
caption: string;
|
|
18
|
+
figure: string;
|
|
19
|
+
figcaption: string;
|
|
20
|
+
img: string;
|
|
21
|
+
ol: string;
|
|
22
|
+
ul: string;
|
|
23
|
+
li: string;
|
|
10
24
|
audio: string;
|
|
11
25
|
video: string;
|
|
12
26
|
fontFamily: string;
|
|
@@ -22,6 +36,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
22
36
|
textDecoration: string;
|
|
23
37
|
marginTop: string;
|
|
24
38
|
marginBottom: string;
|
|
39
|
+
marginLeft: string;
|
|
40
|
+
marginRight: string;
|
|
25
41
|
paddingTop: string;
|
|
26
42
|
paddingRight: string;
|
|
27
43
|
paddingBottom: string;
|
|
@@ -39,7 +55,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
39
55
|
themeColor: string;
|
|
40
56
|
shading: string;
|
|
41
57
|
cellText: string;
|
|
42
|
-
caption: string;
|
|
43
58
|
bulletList: string;
|
|
44
59
|
orderedList: string;
|
|
45
60
|
taskList: string;
|
|
@@ -49,7 +64,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
49
64
|
callout: string;
|
|
50
65
|
footnote: string;
|
|
51
66
|
codeBlock: string;
|
|
52
|
-
custom: string;
|
|
53
67
|
};
|
|
54
68
|
values: {
|
|
55
69
|
left: string;
|
|
@@ -207,6 +221,100 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
207
221
|
undo: string;
|
|
208
222
|
};
|
|
209
223
|
insert: {
|
|
224
|
+
smartSheet: {
|
|
225
|
+
text: string;
|
|
226
|
+
insert: string;
|
|
227
|
+
edit: string;
|
|
228
|
+
open: string;
|
|
229
|
+
delete: string;
|
|
230
|
+
title: string;
|
|
231
|
+
titlePlaceholder: string;
|
|
232
|
+
description: string;
|
|
233
|
+
descriptionPlaceholder: string;
|
|
234
|
+
defaultExpanded: string;
|
|
235
|
+
expandDescription: string;
|
|
236
|
+
collapseDescription: string;
|
|
237
|
+
worksheetCount: string;
|
|
238
|
+
export: string;
|
|
239
|
+
exportExcel: string;
|
|
240
|
+
exportCsv: string;
|
|
241
|
+
exportJson: string;
|
|
242
|
+
exportImage: string;
|
|
243
|
+
exportPdf: string;
|
|
244
|
+
zoomIn: string;
|
|
245
|
+
zoomOut: string;
|
|
246
|
+
selectFile: string;
|
|
247
|
+
changeFile: string;
|
|
248
|
+
noFile: string;
|
|
249
|
+
fileTip: string;
|
|
250
|
+
invalidFile: string;
|
|
251
|
+
uploadNotConfigured: string;
|
|
252
|
+
uploadInvalid: string;
|
|
253
|
+
loading: string;
|
|
254
|
+
loadFailed: string;
|
|
255
|
+
unsaved: string;
|
|
256
|
+
close: string;
|
|
257
|
+
unsavedTitle: string;
|
|
258
|
+
unsavedTip: string;
|
|
259
|
+
closeWithoutExport: string;
|
|
260
|
+
};
|
|
261
|
+
courseware: {
|
|
262
|
+
text: string;
|
|
263
|
+
insert: string;
|
|
264
|
+
edit: string;
|
|
265
|
+
delete: string;
|
|
266
|
+
title: string;
|
|
267
|
+
titlePlaceholder: string;
|
|
268
|
+
file: string;
|
|
269
|
+
selectFile: string;
|
|
270
|
+
changeFile: string;
|
|
271
|
+
noFile: string;
|
|
272
|
+
invalidFile: string;
|
|
273
|
+
uploading: string;
|
|
274
|
+
uploadNotConfigured: string;
|
|
275
|
+
uploadInvalid: string;
|
|
276
|
+
retryUpload: string;
|
|
277
|
+
retryLoad: string;
|
|
278
|
+
defaultExpanded: string;
|
|
279
|
+
layout: string;
|
|
280
|
+
single: string;
|
|
281
|
+
double: string;
|
|
282
|
+
preview: string;
|
|
283
|
+
expand: string;
|
|
284
|
+
collapse: string;
|
|
285
|
+
fullscreen: string;
|
|
286
|
+
exitFullscreen: string;
|
|
287
|
+
readerToolbar: string;
|
|
288
|
+
firstPage: string;
|
|
289
|
+
previousPage: string;
|
|
290
|
+
nextPage: string;
|
|
291
|
+
switchToSingle: string;
|
|
292
|
+
switchToDouble: string;
|
|
293
|
+
zoomIn: string;
|
|
294
|
+
zoomOut: string;
|
|
295
|
+
resetZoom: string;
|
|
296
|
+
thumbnails: string;
|
|
297
|
+
closeThumbnails: string;
|
|
298
|
+
thumbnailPage: string;
|
|
299
|
+
annotation: string;
|
|
300
|
+
annotationRect: string;
|
|
301
|
+
annotationLine: string;
|
|
302
|
+
annotationPath: string;
|
|
303
|
+
annotationAnchor: string;
|
|
304
|
+
annotationStyle: string;
|
|
305
|
+
annotationColor: string;
|
|
306
|
+
annotationUndo: string;
|
|
307
|
+
annotationRedo: string;
|
|
308
|
+
annotationSolid: string;
|
|
309
|
+
annotationDashed: string;
|
|
310
|
+
annotationWavy: string;
|
|
311
|
+
annotationSolidBorder: string;
|
|
312
|
+
annotationDashedBorder: string;
|
|
313
|
+
annotationNoBorder: string;
|
|
314
|
+
annotationStorageUnavailable: string;
|
|
315
|
+
loading: string;
|
|
316
|
+
changedError: string;
|
|
317
|
+
};
|
|
210
318
|
timeline: {
|
|
211
319
|
text: string;
|
|
212
320
|
insert: string;
|
|
@@ -738,6 +846,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
738
846
|
"line-color": string;
|
|
739
847
|
"line-type": string;
|
|
740
848
|
"line-types": {
|
|
849
|
+
none: string;
|
|
741
850
|
solid: string;
|
|
742
851
|
dashed: string;
|
|
743
852
|
dotted: string;
|
|
@@ -759,6 +868,9 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
759
868
|
"reference-icon-placeholder": string;
|
|
760
869
|
"reference-icon-invalid": string;
|
|
761
870
|
"reference-icon-upload-failed": string;
|
|
871
|
+
"show-icon": string;
|
|
872
|
+
yes: string;
|
|
873
|
+
no: string;
|
|
762
874
|
edit: string;
|
|
763
875
|
delete: string;
|
|
764
876
|
"open-reference": string;
|
|
@@ -1269,10 +1381,24 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1269
1381
|
formatting: {
|
|
1270
1382
|
none: string;
|
|
1271
1383
|
labels: {
|
|
1272
|
-
|
|
1273
|
-
|
|
1384
|
+
p: string;
|
|
1385
|
+
span: string;
|
|
1386
|
+
h1: string;
|
|
1387
|
+
h2: string;
|
|
1388
|
+
h3: string;
|
|
1389
|
+
h4: string;
|
|
1390
|
+
h5: string;
|
|
1391
|
+
h6: string;
|
|
1274
1392
|
table: string;
|
|
1275
|
-
|
|
1393
|
+
th: string;
|
|
1394
|
+
td: string;
|
|
1395
|
+
caption: string;
|
|
1396
|
+
figure: string;
|
|
1397
|
+
figcaption: string;
|
|
1398
|
+
img: string;
|
|
1399
|
+
ol: string;
|
|
1400
|
+
ul: string;
|
|
1401
|
+
li: string;
|
|
1276
1402
|
audio: string;
|
|
1277
1403
|
video: string;
|
|
1278
1404
|
fontFamily: string;
|
|
@@ -1288,6 +1414,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1288
1414
|
textDecoration: string;
|
|
1289
1415
|
marginTop: string;
|
|
1290
1416
|
marginBottom: string;
|
|
1417
|
+
marginLeft: string;
|
|
1418
|
+
marginRight: string;
|
|
1291
1419
|
paddingTop: string;
|
|
1292
1420
|
paddingRight: string;
|
|
1293
1421
|
paddingBottom: string;
|
|
@@ -1305,7 +1433,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1305
1433
|
themeColor: string;
|
|
1306
1434
|
shading: string;
|
|
1307
1435
|
cellText: string;
|
|
1308
|
-
caption: string;
|
|
1309
1436
|
bulletList: string;
|
|
1310
1437
|
orderedList: string;
|
|
1311
1438
|
taskList: string;
|
|
@@ -1315,7 +1442,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1315
1442
|
callout: string;
|
|
1316
1443
|
footnote: string;
|
|
1317
1444
|
codeBlock: string;
|
|
1318
|
-
custom: string;
|
|
1319
1445
|
};
|
|
1320
1446
|
values: {
|
|
1321
1447
|
left: string;
|
|
@@ -1474,6 +1600,100 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1474
1600
|
undo: string;
|
|
1475
1601
|
};
|
|
1476
1602
|
insert: {
|
|
1603
|
+
smartSheet: {
|
|
1604
|
+
text: string;
|
|
1605
|
+
insert: string;
|
|
1606
|
+
edit: string;
|
|
1607
|
+
open: string;
|
|
1608
|
+
delete: string;
|
|
1609
|
+
title: string;
|
|
1610
|
+
titlePlaceholder: string;
|
|
1611
|
+
description: string;
|
|
1612
|
+
descriptionPlaceholder: string;
|
|
1613
|
+
defaultExpanded: string;
|
|
1614
|
+
expandDescription: string;
|
|
1615
|
+
collapseDescription: string;
|
|
1616
|
+
worksheetCount: string;
|
|
1617
|
+
export: string;
|
|
1618
|
+
exportExcel: string;
|
|
1619
|
+
exportCsv: string;
|
|
1620
|
+
exportJson: string;
|
|
1621
|
+
exportImage: string;
|
|
1622
|
+
exportPdf: string;
|
|
1623
|
+
zoomIn: string;
|
|
1624
|
+
zoomOut: string;
|
|
1625
|
+
selectFile: string;
|
|
1626
|
+
changeFile: string;
|
|
1627
|
+
noFile: string;
|
|
1628
|
+
fileTip: string;
|
|
1629
|
+
invalidFile: string;
|
|
1630
|
+
uploadNotConfigured: string;
|
|
1631
|
+
uploadInvalid: string;
|
|
1632
|
+
loading: string;
|
|
1633
|
+
loadFailed: string;
|
|
1634
|
+
unsaved: string;
|
|
1635
|
+
close: string;
|
|
1636
|
+
unsavedTitle: string;
|
|
1637
|
+
unsavedTip: string;
|
|
1638
|
+
closeWithoutExport: string;
|
|
1639
|
+
};
|
|
1640
|
+
courseware: {
|
|
1641
|
+
text: string;
|
|
1642
|
+
insert: string;
|
|
1643
|
+
edit: string;
|
|
1644
|
+
delete: string;
|
|
1645
|
+
title: string;
|
|
1646
|
+
titlePlaceholder: string;
|
|
1647
|
+
file: string;
|
|
1648
|
+
selectFile: string;
|
|
1649
|
+
changeFile: string;
|
|
1650
|
+
noFile: string;
|
|
1651
|
+
invalidFile: string;
|
|
1652
|
+
uploading: string;
|
|
1653
|
+
uploadNotConfigured: string;
|
|
1654
|
+
uploadInvalid: string;
|
|
1655
|
+
retryUpload: string;
|
|
1656
|
+
retryLoad: string;
|
|
1657
|
+
defaultExpanded: string;
|
|
1658
|
+
layout: string;
|
|
1659
|
+
single: string;
|
|
1660
|
+
double: string;
|
|
1661
|
+
preview: string;
|
|
1662
|
+
expand: string;
|
|
1663
|
+
collapse: string;
|
|
1664
|
+
fullscreen: string;
|
|
1665
|
+
exitFullscreen: string;
|
|
1666
|
+
readerToolbar: string;
|
|
1667
|
+
firstPage: string;
|
|
1668
|
+
previousPage: string;
|
|
1669
|
+
nextPage: string;
|
|
1670
|
+
switchToSingle: string;
|
|
1671
|
+
switchToDouble: string;
|
|
1672
|
+
zoomIn: string;
|
|
1673
|
+
zoomOut: string;
|
|
1674
|
+
resetZoom: string;
|
|
1675
|
+
thumbnails: string;
|
|
1676
|
+
closeThumbnails: string;
|
|
1677
|
+
thumbnailPage: string;
|
|
1678
|
+
annotation: string;
|
|
1679
|
+
annotationRect: string;
|
|
1680
|
+
annotationLine: string;
|
|
1681
|
+
annotationPath: string;
|
|
1682
|
+
annotationAnchor: string;
|
|
1683
|
+
annotationStyle: string;
|
|
1684
|
+
annotationColor: string;
|
|
1685
|
+
annotationUndo: string;
|
|
1686
|
+
annotationRedo: string;
|
|
1687
|
+
annotationSolid: string;
|
|
1688
|
+
annotationDashed: string;
|
|
1689
|
+
annotationWavy: string;
|
|
1690
|
+
annotationSolidBorder: string;
|
|
1691
|
+
annotationDashedBorder: string;
|
|
1692
|
+
annotationNoBorder: string;
|
|
1693
|
+
annotationStorageUnavailable: string;
|
|
1694
|
+
loading: string;
|
|
1695
|
+
changedError: string;
|
|
1696
|
+
};
|
|
1477
1697
|
timeline: {
|
|
1478
1698
|
text: string;
|
|
1479
1699
|
insert: string;
|
|
@@ -2020,6 +2240,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2020
2240
|
"line-color": string;
|
|
2021
2241
|
"line-type": string;
|
|
2022
2242
|
"line-types": {
|
|
2243
|
+
none: string;
|
|
2023
2244
|
solid: string;
|
|
2024
2245
|
dashed: string;
|
|
2025
2246
|
dotted: string;
|
|
@@ -2041,6 +2262,9 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2041
2262
|
"reference-icon-placeholder": string;
|
|
2042
2263
|
"reference-icon-invalid": string;
|
|
2043
2264
|
"reference-icon-upload-failed": string;
|
|
2265
|
+
"show-icon": string;
|
|
2266
|
+
yes: string;
|
|
2267
|
+
no: string;
|
|
2044
2268
|
edit: string;
|
|
2045
2269
|
delete: string;
|
|
2046
2270
|
"open-reference": string;
|
|
@@ -2528,10 +2752,24 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2528
2752
|
formatting: {
|
|
2529
2753
|
none: string;
|
|
2530
2754
|
labels: {
|
|
2531
|
-
|
|
2532
|
-
|
|
2755
|
+
p: string;
|
|
2756
|
+
span: string;
|
|
2757
|
+
h1: string;
|
|
2758
|
+
h2: string;
|
|
2759
|
+
h3: string;
|
|
2760
|
+
h4: string;
|
|
2761
|
+
h5: string;
|
|
2762
|
+
h6: string;
|
|
2533
2763
|
table: string;
|
|
2534
|
-
|
|
2764
|
+
th: string;
|
|
2765
|
+
td: string;
|
|
2766
|
+
caption: string;
|
|
2767
|
+
figure: string;
|
|
2768
|
+
figcaption: string;
|
|
2769
|
+
img: string;
|
|
2770
|
+
ol: string;
|
|
2771
|
+
ul: string;
|
|
2772
|
+
li: string;
|
|
2535
2773
|
audio: string;
|
|
2536
2774
|
video: string;
|
|
2537
2775
|
fontFamily: string;
|
|
@@ -2547,6 +2785,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2547
2785
|
textDecoration: string;
|
|
2548
2786
|
marginTop: string;
|
|
2549
2787
|
marginBottom: string;
|
|
2788
|
+
marginLeft: string;
|
|
2789
|
+
marginRight: string;
|
|
2550
2790
|
paddingTop: string;
|
|
2551
2791
|
paddingRight: string;
|
|
2552
2792
|
paddingBottom: string;
|
|
@@ -2564,7 +2804,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2564
2804
|
themeColor: string;
|
|
2565
2805
|
shading: string;
|
|
2566
2806
|
cellText: string;
|
|
2567
|
-
caption: string;
|
|
2568
2807
|
bulletList: string;
|
|
2569
2808
|
orderedList: string;
|
|
2570
2809
|
taskList: string;
|
|
@@ -2574,7 +2813,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2574
2813
|
callout: string;
|
|
2575
2814
|
footnote: string;
|
|
2576
2815
|
codeBlock: string;
|
|
2577
|
-
custom: string;
|
|
2578
2816
|
};
|
|
2579
2817
|
values: {
|
|
2580
2818
|
left: string;
|
|
@@ -2733,6 +2971,100 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2733
2971
|
undo: string;
|
|
2734
2972
|
};
|
|
2735
2973
|
insert: {
|
|
2974
|
+
smartSheet: {
|
|
2975
|
+
text: string;
|
|
2976
|
+
insert: string;
|
|
2977
|
+
edit: string;
|
|
2978
|
+
open: string;
|
|
2979
|
+
delete: string;
|
|
2980
|
+
title: string;
|
|
2981
|
+
titlePlaceholder: string;
|
|
2982
|
+
description: string;
|
|
2983
|
+
descriptionPlaceholder: string;
|
|
2984
|
+
defaultExpanded: string;
|
|
2985
|
+
expandDescription: string;
|
|
2986
|
+
collapseDescription: string;
|
|
2987
|
+
worksheetCount: string;
|
|
2988
|
+
export: string;
|
|
2989
|
+
exportExcel: string;
|
|
2990
|
+
exportCsv: string;
|
|
2991
|
+
exportJson: string;
|
|
2992
|
+
exportImage: string;
|
|
2993
|
+
exportPdf: string;
|
|
2994
|
+
zoomIn: string;
|
|
2995
|
+
zoomOut: string;
|
|
2996
|
+
selectFile: string;
|
|
2997
|
+
changeFile: string;
|
|
2998
|
+
noFile: string;
|
|
2999
|
+
fileTip: string;
|
|
3000
|
+
invalidFile: string;
|
|
3001
|
+
uploadNotConfigured: string;
|
|
3002
|
+
uploadInvalid: string;
|
|
3003
|
+
loading: string;
|
|
3004
|
+
loadFailed: string;
|
|
3005
|
+
unsaved: string;
|
|
3006
|
+
close: string;
|
|
3007
|
+
unsavedTitle: string;
|
|
3008
|
+
unsavedTip: string;
|
|
3009
|
+
closeWithoutExport: string;
|
|
3010
|
+
};
|
|
3011
|
+
courseware: {
|
|
3012
|
+
text: string;
|
|
3013
|
+
insert: string;
|
|
3014
|
+
edit: string;
|
|
3015
|
+
delete: string;
|
|
3016
|
+
title: string;
|
|
3017
|
+
titlePlaceholder: string;
|
|
3018
|
+
file: string;
|
|
3019
|
+
selectFile: string;
|
|
3020
|
+
changeFile: string;
|
|
3021
|
+
noFile: string;
|
|
3022
|
+
invalidFile: string;
|
|
3023
|
+
uploading: string;
|
|
3024
|
+
uploadNotConfigured: string;
|
|
3025
|
+
uploadInvalid: string;
|
|
3026
|
+
retryUpload: string;
|
|
3027
|
+
retryLoad: string;
|
|
3028
|
+
defaultExpanded: string;
|
|
3029
|
+
layout: string;
|
|
3030
|
+
single: string;
|
|
3031
|
+
double: string;
|
|
3032
|
+
preview: string;
|
|
3033
|
+
expand: string;
|
|
3034
|
+
collapse: string;
|
|
3035
|
+
fullscreen: string;
|
|
3036
|
+
exitFullscreen: string;
|
|
3037
|
+
readerToolbar: string;
|
|
3038
|
+
firstPage: string;
|
|
3039
|
+
previousPage: string;
|
|
3040
|
+
nextPage: string;
|
|
3041
|
+
switchToSingle: string;
|
|
3042
|
+
switchToDouble: string;
|
|
3043
|
+
zoomIn: string;
|
|
3044
|
+
zoomOut: string;
|
|
3045
|
+
resetZoom: string;
|
|
3046
|
+
thumbnails: string;
|
|
3047
|
+
closeThumbnails: string;
|
|
3048
|
+
thumbnailPage: string;
|
|
3049
|
+
annotation: string;
|
|
3050
|
+
annotationRect: string;
|
|
3051
|
+
annotationLine: string;
|
|
3052
|
+
annotationPath: string;
|
|
3053
|
+
annotationAnchor: string;
|
|
3054
|
+
annotationStyle: string;
|
|
3055
|
+
annotationColor: string;
|
|
3056
|
+
annotationUndo: string;
|
|
3057
|
+
annotationRedo: string;
|
|
3058
|
+
annotationSolid: string;
|
|
3059
|
+
annotationDashed: string;
|
|
3060
|
+
annotationWavy: string;
|
|
3061
|
+
annotationSolidBorder: string;
|
|
3062
|
+
annotationDashedBorder: string;
|
|
3063
|
+
annotationNoBorder: string;
|
|
3064
|
+
annotationStorageUnavailable: string;
|
|
3065
|
+
loading: string;
|
|
3066
|
+
changedError: string;
|
|
3067
|
+
};
|
|
2736
3068
|
timeline: {
|
|
2737
3069
|
text: string;
|
|
2738
3070
|
insert: string;
|
|
@@ -3279,6 +3611,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3279
3611
|
"line-color": string;
|
|
3280
3612
|
"line-type": string;
|
|
3281
3613
|
"line-types": {
|
|
3614
|
+
none: string;
|
|
3282
3615
|
solid: string;
|
|
3283
3616
|
dashed: string;
|
|
3284
3617
|
dotted: string;
|
|
@@ -3300,6 +3633,9 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3300
3633
|
"reference-icon-placeholder": string;
|
|
3301
3634
|
"reference-icon-invalid": string;
|
|
3302
3635
|
"reference-icon-upload-failed": string;
|
|
3636
|
+
"show-icon": string;
|
|
3637
|
+
yes: string;
|
|
3638
|
+
no: string;
|
|
3303
3639
|
edit: string;
|
|
3304
3640
|
delete: string;
|
|
3305
3641
|
"open-reference": string;
|
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
import type { Editor } from '@tiptap/core';
|
|
2
|
-
import { type Node as PMNode } from '@tiptap/pm/model';
|
|
3
2
|
/** Only these presentation properties can be supplied by a JSON template. */
|
|
4
|
-
export declare const formattingProperties: readonly ["fontFamily", "fontSize", "fontWeight", "fontStyle", "color", "backgroundColor", "letterSpacing", "lineHeight", "textAlign", "textIndent", "textDecoration", "marginTop", "marginBottom", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "border", "borderColor", "borderWidth", "borderStyle", "borderRadius", "width", "maxWidth", "minHeight", "verticalAlign"];
|
|
3
|
+
export declare const formattingProperties: readonly ["fontFamily", "fontSize", "fontWeight", "fontStyle", "color", "backgroundColor", "letterSpacing", "lineHeight", "textAlign", "textIndent", "textDecoration", "marginTop", "marginBottom", "marginLeft", "marginRight", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "border", "borderColor", "borderWidth", "borderStyle", "borderRadius", "width", "maxWidth", "minHeight", "verticalAlign"];
|
|
5
4
|
export type FormattingStyle = Partial<Record<(typeof formattingProperties)[number], string | number | null>>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
/**
|
|
6
|
+
* New-style element rules use the same JSON shape as the HTML-like document
|
|
7
|
+
* tree. For example `rules.table.td.p` styles only paragraphs inside table
|
|
8
|
+
* cells, while `rules.table.th.p` handles header cells.
|
|
9
|
+
*/
|
|
10
|
+
export interface FormattingElementRule extends FormattingStyle {
|
|
11
|
+
[selector: string]: unknown;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
/** Partial existing schema attributes, not replacement content. */
|
|
15
|
-
attrs?: Record<string, unknown>;
|
|
16
|
-
/** Explicit styles for this node's direct text children (if marks are allowed). */
|
|
17
|
-
textStyle?: FormattingStyle;
|
|
18
|
-
}
|
|
19
|
-
export type FormattingNodeAdapter = (context: {
|
|
20
|
-
node: PMNode;
|
|
21
|
-
rule: Readonly<FormattingNodeRule>;
|
|
22
|
-
}) => FormattingAdapterResult;
|
|
23
|
-
export interface FormattingTableRule extends FormattingStyle {
|
|
13
|
+
export interface FormattingTableRule extends FormattingElementRule {
|
|
24
14
|
preset?: string;
|
|
25
15
|
themeColor?: string;
|
|
26
16
|
shading?: string[];
|
|
27
17
|
cellText?: FormattingStyle;
|
|
28
|
-
caption?:
|
|
18
|
+
caption?: FormattingElementRule;
|
|
19
|
+
th?: FormattingElementRule;
|
|
20
|
+
td?: FormattingElementRule;
|
|
21
|
+
}
|
|
22
|
+
export interface FormattingFigureRule extends FormattingElementRule {
|
|
23
|
+
img?: FormattingElementRule;
|
|
24
|
+
figcaption?: FormattingElementRule;
|
|
25
|
+
}
|
|
26
|
+
export interface FormattingListRule extends FormattingElementRule {
|
|
27
|
+
li?: FormattingElementRule;
|
|
29
28
|
}
|
|
30
|
-
export interface
|
|
31
|
-
|
|
29
|
+
export interface FormattingTemplateRules {
|
|
30
|
+
p?: FormattingElementRule;
|
|
31
|
+
h1?: FormattingElementRule;
|
|
32
|
+
h2?: FormattingElementRule;
|
|
33
|
+
h3?: FormattingElementRule;
|
|
34
|
+
h4?: FormattingElementRule;
|
|
35
|
+
h5?: FormattingElementRule;
|
|
36
|
+
h6?: FormattingElementRule;
|
|
37
|
+
table?: FormattingTableRule;
|
|
38
|
+
figure?: FormattingFigureRule;
|
|
39
|
+
img?: FormattingElementRule;
|
|
40
|
+
audio?: FormattingElementRule;
|
|
41
|
+
video?: FormattingElementRule;
|
|
42
|
+
ol?: FormattingListRule;
|
|
43
|
+
ul?: FormattingListRule;
|
|
44
|
+
li?: FormattingElementRule;
|
|
45
|
+
codeBlock?: FormattingElementRule;
|
|
46
|
+
blockquote?: FormattingElementRule;
|
|
47
|
+
taskItem?: FormattingElementRule;
|
|
48
|
+
footnote?: FormattingElementRule;
|
|
32
49
|
}
|
|
33
50
|
export interface FormattingTemplate {
|
|
34
51
|
id: string;
|
|
35
52
|
name: string;
|
|
36
53
|
description: string;
|
|
37
|
-
rules:
|
|
38
|
-
paragraph?: FormattingStyle;
|
|
39
|
-
heading?: Partial<Record<1 | 2 | 3 | 4 | 5 | 6, FormattingStyle>>;
|
|
40
|
-
table?: FormattingTableRule;
|
|
41
|
-
image?: FormattingImageRule;
|
|
42
|
-
audio?: FormattingStyle;
|
|
43
|
-
video?: FormattingStyle;
|
|
44
|
-
/** Presentation of a registered node; unknown/unadapted nodes are reported. */
|
|
45
|
-
nodes?: Record<string, FormattingNodeRule>;
|
|
46
|
-
/** Paragraph styles within these ancestor node types, nearest ancestor wins. */
|
|
47
|
-
contexts?: Record<string, FormattingStyle>;
|
|
48
|
-
};
|
|
54
|
+
rules: FormattingTemplateRules;
|
|
49
55
|
}
|
|
50
56
|
export interface FormattingOptions {
|
|
51
57
|
enabled?: boolean;
|
|
52
58
|
defaultTemplateId?: string;
|
|
53
59
|
templates?: FormattingTemplate[];
|
|
54
|
-
/** Component adapters override editor.storage[nodeType].formatting adapters. */
|
|
55
|
-
adapters?: Record<string, FormattingNodeAdapter>;
|
|
56
60
|
}
|
|
57
61
|
export declare class FormattingValidationError extends Error {
|
|
58
62
|
readonly path: string;
|
|
@@ -63,7 +67,7 @@ export declare function validateFormattingOptions(value: unknown): asserts value
|
|
|
63
67
|
export declare class FormattingCancelled extends Error {
|
|
64
68
|
}
|
|
65
69
|
/** Plan against a snapshot, yield periodically, then commit only changed attributes/marks. */
|
|
66
|
-
export declare function applyFormattingTemplate(editor: Editor, template: FormattingTemplate, signal?: AbortSignal
|
|
70
|
+
export declare function applyFormattingTemplate(editor: Editor, template: FormattingTemplate, signal?: AbortSignal): Promise<{
|
|
67
71
|
changed: number;
|
|
68
72
|
skipped: string[];
|
|
69
73
|
}>;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import type { EditorState } from '@tiptap/pm/state';
|
|
2
|
+
import { Slice } from '@tiptap/pm/model';
|
|
2
3
|
export declare const nodeTypesWithOwnId: Set<string>;
|
|
3
4
|
export declare const nodeTypesWithoutHtmlId: Set<string>;
|
|
5
|
+
/** HTML 标签与菜单节点的并集,Set 保证重复定义的节点只生成一次 ID。 */
|
|
4
6
|
export declare const htmlIdNodeTypes: string[];
|
|
7
|
+
export declare const globalHtmlIdNodeTypes: string[];
|
|
5
8
|
export declare const htmlIdMarkTypes: string[];
|
|
6
|
-
export declare const
|
|
9
|
+
export declare const globalHtmlIdMarkTypes: string[];
|
|
10
|
+
export declare const stripPastedHtmlElementIds: (slice: Slice) => Slice;
|
|
11
|
+
type HtmlIdRange = {
|
|
7
12
|
from: number;
|
|
8
13
|
to: number;
|
|
9
|
-
}
|
|
14
|
+
};
|
|
15
|
+
export declare const ensureHtmlElementIds: (state: EditorState, ranges?: HtmlIdRange | HtmlIdRange[]) => import("@tiptap/pm/state").Transaction;
|
|
16
|
+
export {};
|