@agilehub/agile-editor 1.6.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 +18325 -18426
- package/dist/i18n-DCR9QpaV.js +2785 -0
- package/dist/types/components/editor/index.vue.d.ts +2 -2
- 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 +384 -22
- package/dist/types/components/menus/button.vue.d.ts +1 -1
- package/dist/types/components/menus/toolbar/insert/bookmark.vue.d.ts +24 -0
- 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 +19 -11
- package/dist/types/components/toolbar/ribbon.vue.d.ts +19 -11
- package/dist/types/composables/i18n.d.ts +375 -18
- package/dist/types/extensions/bookmark-transaction.d.ts +4 -0
- package/dist/types/extensions/bookmark.d.ts +8 -5
- 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 +375 -18
- package/dist/types/options/config/index.d.ts +2 -0
- 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/SECONDARY_DEVELOPMENT.md +1 -1
- package/docs/api.md +43 -0
- package/docs/configuration.md +82 -0
- package/docs/custom-components.md +1 -1
- package/docs/development.md +6 -2
- package/docs/menu-extension.md +26 -1
- package/package.json +165 -153
- /package/dist/types/components/{menus/toolbar/view/preview.vue.d.ts → editor/courseware-dialog.vue.d.ts} +0 -0
|
@@ -16,10 +16,24 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
16
16
|
formatting: {
|
|
17
17
|
none: string;
|
|
18
18
|
labels: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
p: string;
|
|
20
|
+
span: string;
|
|
21
|
+
h1: string;
|
|
22
|
+
h2: string;
|
|
23
|
+
h3: string;
|
|
24
|
+
h4: string;
|
|
25
|
+
h5: string;
|
|
26
|
+
h6: string;
|
|
21
27
|
table: string;
|
|
22
|
-
|
|
28
|
+
th: string;
|
|
29
|
+
td: string;
|
|
30
|
+
caption: string;
|
|
31
|
+
figure: string;
|
|
32
|
+
figcaption: string;
|
|
33
|
+
img: string;
|
|
34
|
+
ol: string;
|
|
35
|
+
ul: string;
|
|
36
|
+
li: string;
|
|
23
37
|
audio: string;
|
|
24
38
|
video: string;
|
|
25
39
|
fontFamily: string;
|
|
@@ -35,6 +49,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
35
49
|
textDecoration: string;
|
|
36
50
|
marginTop: string;
|
|
37
51
|
marginBottom: string;
|
|
52
|
+
marginLeft: string;
|
|
53
|
+
marginRight: string;
|
|
38
54
|
paddingTop: string;
|
|
39
55
|
paddingRight: string;
|
|
40
56
|
paddingBottom: string;
|
|
@@ -52,7 +68,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
52
68
|
themeColor: string;
|
|
53
69
|
shading: string;
|
|
54
70
|
cellText: string;
|
|
55
|
-
caption: string;
|
|
56
71
|
bulletList: string;
|
|
57
72
|
orderedList: string;
|
|
58
73
|
taskList: string;
|
|
@@ -62,7 +77,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
62
77
|
callout: string;
|
|
63
78
|
footnote: string;
|
|
64
79
|
codeBlock: string;
|
|
65
|
-
custom: string;
|
|
66
80
|
};
|
|
67
81
|
values: {
|
|
68
82
|
left: string;
|
|
@@ -105,7 +119,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
105
119
|
page: string;
|
|
106
120
|
view: string;
|
|
107
121
|
export: string;
|
|
108
|
-
|
|
122
|
+
extension: string;
|
|
123
|
+
enhancement: string;
|
|
109
124
|
};
|
|
110
125
|
base: {
|
|
111
126
|
align: {
|
|
@@ -219,6 +234,100 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
219
234
|
undo: string;
|
|
220
235
|
};
|
|
221
236
|
insert: {
|
|
237
|
+
smartSheet: {
|
|
238
|
+
text: string;
|
|
239
|
+
insert: string;
|
|
240
|
+
edit: string;
|
|
241
|
+
open: string;
|
|
242
|
+
delete: string;
|
|
243
|
+
title: string;
|
|
244
|
+
titlePlaceholder: string;
|
|
245
|
+
description: string;
|
|
246
|
+
descriptionPlaceholder: string;
|
|
247
|
+
defaultExpanded: string;
|
|
248
|
+
expandDescription: string;
|
|
249
|
+
collapseDescription: string;
|
|
250
|
+
worksheetCount: string;
|
|
251
|
+
export: string;
|
|
252
|
+
exportExcel: string;
|
|
253
|
+
exportCsv: string;
|
|
254
|
+
exportJson: string;
|
|
255
|
+
exportImage: string;
|
|
256
|
+
exportPdf: string;
|
|
257
|
+
zoomIn: string;
|
|
258
|
+
zoomOut: string;
|
|
259
|
+
selectFile: string;
|
|
260
|
+
changeFile: string;
|
|
261
|
+
noFile: string;
|
|
262
|
+
fileTip: string;
|
|
263
|
+
invalidFile: string;
|
|
264
|
+
uploadNotConfigured: string;
|
|
265
|
+
uploadInvalid: string;
|
|
266
|
+
loading: string;
|
|
267
|
+
loadFailed: string;
|
|
268
|
+
unsaved: string;
|
|
269
|
+
close: string;
|
|
270
|
+
unsavedTitle: string;
|
|
271
|
+
unsavedTip: string;
|
|
272
|
+
closeWithoutExport: string;
|
|
273
|
+
};
|
|
274
|
+
courseware: {
|
|
275
|
+
text: string;
|
|
276
|
+
insert: string;
|
|
277
|
+
edit: string;
|
|
278
|
+
delete: string;
|
|
279
|
+
title: string;
|
|
280
|
+
titlePlaceholder: string;
|
|
281
|
+
file: string;
|
|
282
|
+
selectFile: string;
|
|
283
|
+
changeFile: string;
|
|
284
|
+
noFile: string;
|
|
285
|
+
invalidFile: string;
|
|
286
|
+
uploading: string;
|
|
287
|
+
uploadNotConfigured: string;
|
|
288
|
+
uploadInvalid: string;
|
|
289
|
+
retryUpload: string;
|
|
290
|
+
retryLoad: string;
|
|
291
|
+
defaultExpanded: string;
|
|
292
|
+
layout: string;
|
|
293
|
+
single: string;
|
|
294
|
+
double: string;
|
|
295
|
+
preview: string;
|
|
296
|
+
expand: string;
|
|
297
|
+
collapse: string;
|
|
298
|
+
fullscreen: string;
|
|
299
|
+
exitFullscreen: string;
|
|
300
|
+
readerToolbar: string;
|
|
301
|
+
firstPage: string;
|
|
302
|
+
previousPage: string;
|
|
303
|
+
nextPage: string;
|
|
304
|
+
switchToSingle: string;
|
|
305
|
+
switchToDouble: string;
|
|
306
|
+
zoomIn: string;
|
|
307
|
+
zoomOut: string;
|
|
308
|
+
resetZoom: string;
|
|
309
|
+
thumbnails: string;
|
|
310
|
+
closeThumbnails: string;
|
|
311
|
+
thumbnailPage: string;
|
|
312
|
+
annotation: string;
|
|
313
|
+
annotationRect: string;
|
|
314
|
+
annotationLine: string;
|
|
315
|
+
annotationPath: string;
|
|
316
|
+
annotationAnchor: string;
|
|
317
|
+
annotationStyle: string;
|
|
318
|
+
annotationColor: string;
|
|
319
|
+
annotationUndo: string;
|
|
320
|
+
annotationRedo: string;
|
|
321
|
+
annotationSolid: string;
|
|
322
|
+
annotationDashed: string;
|
|
323
|
+
annotationWavy: string;
|
|
324
|
+
annotationSolidBorder: string;
|
|
325
|
+
annotationDashedBorder: string;
|
|
326
|
+
annotationNoBorder: string;
|
|
327
|
+
annotationStorageUnavailable: string;
|
|
328
|
+
loading: string;
|
|
329
|
+
changedError: string;
|
|
330
|
+
};
|
|
222
331
|
timeline: {
|
|
223
332
|
text: string;
|
|
224
333
|
insert: string;
|
|
@@ -368,12 +477,18 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
368
477
|
mention: string;
|
|
369
478
|
bookmark: {
|
|
370
479
|
text: string;
|
|
480
|
+
title: string;
|
|
481
|
+
"edit-title": string;
|
|
482
|
+
note: string;
|
|
371
483
|
set: string;
|
|
372
484
|
ok: string;
|
|
485
|
+
confirm: string;
|
|
486
|
+
cancel: string;
|
|
373
487
|
textName: string;
|
|
374
488
|
placeholder: string;
|
|
375
489
|
show: string;
|
|
376
490
|
actions: string;
|
|
491
|
+
edit: string;
|
|
377
492
|
delete: string;
|
|
378
493
|
emptyError: string;
|
|
379
494
|
};
|
|
@@ -744,6 +859,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
744
859
|
"line-color": string;
|
|
745
860
|
"line-type": string;
|
|
746
861
|
"line-types": {
|
|
862
|
+
none: string;
|
|
747
863
|
solid: string;
|
|
748
864
|
dashed: string;
|
|
749
865
|
dotted: string;
|
|
@@ -765,6 +881,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
765
881
|
"reference-icon-placeholder": string;
|
|
766
882
|
"reference-icon-invalid": string;
|
|
767
883
|
"reference-icon-upload-failed": string;
|
|
884
|
+
"show-icon": string;
|
|
885
|
+
yes: string;
|
|
886
|
+
no: string;
|
|
768
887
|
edit: string;
|
|
769
888
|
delete: string;
|
|
770
889
|
"open-reference": string;
|
|
@@ -1275,10 +1394,24 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1275
1394
|
formatting: {
|
|
1276
1395
|
none: string;
|
|
1277
1396
|
labels: {
|
|
1278
|
-
|
|
1279
|
-
|
|
1397
|
+
p: string;
|
|
1398
|
+
span: string;
|
|
1399
|
+
h1: string;
|
|
1400
|
+
h2: string;
|
|
1401
|
+
h3: string;
|
|
1402
|
+
h4: string;
|
|
1403
|
+
h5: string;
|
|
1404
|
+
h6: string;
|
|
1280
1405
|
table: string;
|
|
1281
|
-
|
|
1406
|
+
th: string;
|
|
1407
|
+
td: string;
|
|
1408
|
+
caption: string;
|
|
1409
|
+
figure: string;
|
|
1410
|
+
figcaption: string;
|
|
1411
|
+
img: string;
|
|
1412
|
+
ol: string;
|
|
1413
|
+
ul: string;
|
|
1414
|
+
li: string;
|
|
1282
1415
|
audio: string;
|
|
1283
1416
|
video: string;
|
|
1284
1417
|
fontFamily: string;
|
|
@@ -1294,6 +1427,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1294
1427
|
textDecoration: string;
|
|
1295
1428
|
marginTop: string;
|
|
1296
1429
|
marginBottom: string;
|
|
1430
|
+
marginLeft: string;
|
|
1431
|
+
marginRight: string;
|
|
1297
1432
|
paddingTop: string;
|
|
1298
1433
|
paddingRight: string;
|
|
1299
1434
|
paddingBottom: string;
|
|
@@ -1311,7 +1446,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1311
1446
|
themeColor: string;
|
|
1312
1447
|
shading: string;
|
|
1313
1448
|
cellText: string;
|
|
1314
|
-
caption: string;
|
|
1315
1449
|
bulletList: string;
|
|
1316
1450
|
orderedList: string;
|
|
1317
1451
|
taskList: string;
|
|
@@ -1321,7 +1455,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1321
1455
|
callout: string;
|
|
1322
1456
|
footnote: string;
|
|
1323
1457
|
codeBlock: string;
|
|
1324
|
-
custom: string;
|
|
1325
1458
|
};
|
|
1326
1459
|
values: {
|
|
1327
1460
|
left: string;
|
|
@@ -1365,7 +1498,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1365
1498
|
page: string;
|
|
1366
1499
|
view: string;
|
|
1367
1500
|
export: string;
|
|
1368
|
-
|
|
1501
|
+
extension: string;
|
|
1502
|
+
enhancement: string;
|
|
1369
1503
|
};
|
|
1370
1504
|
base: {
|
|
1371
1505
|
align: {
|
|
@@ -1479,6 +1613,100 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1479
1613
|
undo: string;
|
|
1480
1614
|
};
|
|
1481
1615
|
insert: {
|
|
1616
|
+
smartSheet: {
|
|
1617
|
+
text: string;
|
|
1618
|
+
insert: string;
|
|
1619
|
+
edit: string;
|
|
1620
|
+
open: string;
|
|
1621
|
+
delete: string;
|
|
1622
|
+
title: string;
|
|
1623
|
+
titlePlaceholder: string;
|
|
1624
|
+
description: string;
|
|
1625
|
+
descriptionPlaceholder: string;
|
|
1626
|
+
defaultExpanded: string;
|
|
1627
|
+
expandDescription: string;
|
|
1628
|
+
collapseDescription: string;
|
|
1629
|
+
worksheetCount: string;
|
|
1630
|
+
export: string;
|
|
1631
|
+
exportExcel: string;
|
|
1632
|
+
exportCsv: string;
|
|
1633
|
+
exportJson: string;
|
|
1634
|
+
exportImage: string;
|
|
1635
|
+
exportPdf: string;
|
|
1636
|
+
zoomIn: string;
|
|
1637
|
+
zoomOut: string;
|
|
1638
|
+
selectFile: string;
|
|
1639
|
+
changeFile: string;
|
|
1640
|
+
noFile: string;
|
|
1641
|
+
fileTip: string;
|
|
1642
|
+
invalidFile: string;
|
|
1643
|
+
uploadNotConfigured: string;
|
|
1644
|
+
uploadInvalid: string;
|
|
1645
|
+
loading: string;
|
|
1646
|
+
loadFailed: string;
|
|
1647
|
+
unsaved: string;
|
|
1648
|
+
close: string;
|
|
1649
|
+
unsavedTitle: string;
|
|
1650
|
+
unsavedTip: string;
|
|
1651
|
+
closeWithoutExport: string;
|
|
1652
|
+
};
|
|
1653
|
+
courseware: {
|
|
1654
|
+
text: string;
|
|
1655
|
+
insert: string;
|
|
1656
|
+
edit: string;
|
|
1657
|
+
delete: string;
|
|
1658
|
+
title: string;
|
|
1659
|
+
titlePlaceholder: string;
|
|
1660
|
+
file: string;
|
|
1661
|
+
selectFile: string;
|
|
1662
|
+
changeFile: string;
|
|
1663
|
+
noFile: string;
|
|
1664
|
+
invalidFile: string;
|
|
1665
|
+
uploading: string;
|
|
1666
|
+
uploadNotConfigured: string;
|
|
1667
|
+
uploadInvalid: string;
|
|
1668
|
+
retryUpload: string;
|
|
1669
|
+
retryLoad: string;
|
|
1670
|
+
defaultExpanded: string;
|
|
1671
|
+
layout: string;
|
|
1672
|
+
single: string;
|
|
1673
|
+
double: string;
|
|
1674
|
+
preview: string;
|
|
1675
|
+
expand: string;
|
|
1676
|
+
collapse: string;
|
|
1677
|
+
fullscreen: string;
|
|
1678
|
+
exitFullscreen: string;
|
|
1679
|
+
readerToolbar: string;
|
|
1680
|
+
firstPage: string;
|
|
1681
|
+
previousPage: string;
|
|
1682
|
+
nextPage: string;
|
|
1683
|
+
switchToSingle: string;
|
|
1684
|
+
switchToDouble: string;
|
|
1685
|
+
zoomIn: string;
|
|
1686
|
+
zoomOut: string;
|
|
1687
|
+
resetZoom: string;
|
|
1688
|
+
thumbnails: string;
|
|
1689
|
+
closeThumbnails: string;
|
|
1690
|
+
thumbnailPage: string;
|
|
1691
|
+
annotation: string;
|
|
1692
|
+
annotationRect: string;
|
|
1693
|
+
annotationLine: string;
|
|
1694
|
+
annotationPath: string;
|
|
1695
|
+
annotationAnchor: string;
|
|
1696
|
+
annotationStyle: string;
|
|
1697
|
+
annotationColor: string;
|
|
1698
|
+
annotationUndo: string;
|
|
1699
|
+
annotationRedo: string;
|
|
1700
|
+
annotationSolid: string;
|
|
1701
|
+
annotationDashed: string;
|
|
1702
|
+
annotationWavy: string;
|
|
1703
|
+
annotationSolidBorder: string;
|
|
1704
|
+
annotationDashedBorder: string;
|
|
1705
|
+
annotationNoBorder: string;
|
|
1706
|
+
annotationStorageUnavailable: string;
|
|
1707
|
+
loading: string;
|
|
1708
|
+
changedError: string;
|
|
1709
|
+
};
|
|
1482
1710
|
timeline: {
|
|
1483
1711
|
text: string;
|
|
1484
1712
|
insert: string;
|
|
@@ -1628,12 +1856,18 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1628
1856
|
mention: string;
|
|
1629
1857
|
bookmark: {
|
|
1630
1858
|
text: string;
|
|
1859
|
+
title: string;
|
|
1860
|
+
"edit-title": string;
|
|
1861
|
+
note: string;
|
|
1631
1862
|
set: string;
|
|
1632
1863
|
ok: string;
|
|
1864
|
+
confirm: string;
|
|
1865
|
+
cancel: string;
|
|
1633
1866
|
textName: string;
|
|
1634
1867
|
placeholder: string;
|
|
1635
1868
|
show: string;
|
|
1636
1869
|
actions: string;
|
|
1870
|
+
edit: string;
|
|
1637
1871
|
delete: string;
|
|
1638
1872
|
emptyError: string;
|
|
1639
1873
|
};
|
|
@@ -2019,6 +2253,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2019
2253
|
"line-color": string;
|
|
2020
2254
|
"line-type": string;
|
|
2021
2255
|
"line-types": {
|
|
2256
|
+
none: string;
|
|
2022
2257
|
solid: string;
|
|
2023
2258
|
dashed: string;
|
|
2024
2259
|
dotted: string;
|
|
@@ -2040,6 +2275,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2040
2275
|
"reference-icon-placeholder": string;
|
|
2041
2276
|
"reference-icon-invalid": string;
|
|
2042
2277
|
"reference-icon-upload-failed": string;
|
|
2278
|
+
"show-icon": string;
|
|
2279
|
+
yes: string;
|
|
2280
|
+
no: string;
|
|
2043
2281
|
edit: string;
|
|
2044
2282
|
delete: string;
|
|
2045
2283
|
"open-reference": string;
|
|
@@ -2527,10 +2765,24 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2527
2765
|
formatting: {
|
|
2528
2766
|
none: string;
|
|
2529
2767
|
labels: {
|
|
2530
|
-
|
|
2531
|
-
|
|
2768
|
+
p: string;
|
|
2769
|
+
span: string;
|
|
2770
|
+
h1: string;
|
|
2771
|
+
h2: string;
|
|
2772
|
+
h3: string;
|
|
2773
|
+
h4: string;
|
|
2774
|
+
h5: string;
|
|
2775
|
+
h6: string;
|
|
2532
2776
|
table: string;
|
|
2533
|
-
|
|
2777
|
+
th: string;
|
|
2778
|
+
td: string;
|
|
2779
|
+
caption: string;
|
|
2780
|
+
figure: string;
|
|
2781
|
+
figcaption: string;
|
|
2782
|
+
img: string;
|
|
2783
|
+
ol: string;
|
|
2784
|
+
ul: string;
|
|
2785
|
+
li: string;
|
|
2534
2786
|
audio: string;
|
|
2535
2787
|
video: string;
|
|
2536
2788
|
fontFamily: string;
|
|
@@ -2546,6 +2798,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2546
2798
|
textDecoration: string;
|
|
2547
2799
|
marginTop: string;
|
|
2548
2800
|
marginBottom: string;
|
|
2801
|
+
marginLeft: string;
|
|
2802
|
+
marginRight: string;
|
|
2549
2803
|
paddingTop: string;
|
|
2550
2804
|
paddingRight: string;
|
|
2551
2805
|
paddingBottom: string;
|
|
@@ -2563,7 +2817,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2563
2817
|
themeColor: string;
|
|
2564
2818
|
shading: string;
|
|
2565
2819
|
cellText: string;
|
|
2566
|
-
caption: string;
|
|
2567
2820
|
bulletList: string;
|
|
2568
2821
|
orderedList: string;
|
|
2569
2822
|
taskList: string;
|
|
@@ -2573,7 +2826,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2573
2826
|
callout: string;
|
|
2574
2827
|
footnote: string;
|
|
2575
2828
|
codeBlock: string;
|
|
2576
|
-
custom: string;
|
|
2577
2829
|
};
|
|
2578
2830
|
values: {
|
|
2579
2831
|
left: string;
|
|
@@ -2617,7 +2869,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2617
2869
|
page: string;
|
|
2618
2870
|
view: string;
|
|
2619
2871
|
export: string;
|
|
2620
|
-
|
|
2872
|
+
extension: string;
|
|
2873
|
+
enhancement: string;
|
|
2621
2874
|
};
|
|
2622
2875
|
base: {
|
|
2623
2876
|
align: {
|
|
@@ -2731,6 +2984,100 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2731
2984
|
undo: string;
|
|
2732
2985
|
};
|
|
2733
2986
|
insert: {
|
|
2987
|
+
smartSheet: {
|
|
2988
|
+
text: string;
|
|
2989
|
+
insert: string;
|
|
2990
|
+
edit: string;
|
|
2991
|
+
open: string;
|
|
2992
|
+
delete: string;
|
|
2993
|
+
title: string;
|
|
2994
|
+
titlePlaceholder: string;
|
|
2995
|
+
description: string;
|
|
2996
|
+
descriptionPlaceholder: string;
|
|
2997
|
+
defaultExpanded: string;
|
|
2998
|
+
expandDescription: string;
|
|
2999
|
+
collapseDescription: string;
|
|
3000
|
+
worksheetCount: string;
|
|
3001
|
+
export: string;
|
|
3002
|
+
exportExcel: string;
|
|
3003
|
+
exportCsv: string;
|
|
3004
|
+
exportJson: string;
|
|
3005
|
+
exportImage: string;
|
|
3006
|
+
exportPdf: string;
|
|
3007
|
+
zoomIn: string;
|
|
3008
|
+
zoomOut: string;
|
|
3009
|
+
selectFile: string;
|
|
3010
|
+
changeFile: string;
|
|
3011
|
+
noFile: string;
|
|
3012
|
+
fileTip: string;
|
|
3013
|
+
invalidFile: string;
|
|
3014
|
+
uploadNotConfigured: string;
|
|
3015
|
+
uploadInvalid: string;
|
|
3016
|
+
loading: string;
|
|
3017
|
+
loadFailed: string;
|
|
3018
|
+
unsaved: string;
|
|
3019
|
+
close: string;
|
|
3020
|
+
unsavedTitle: string;
|
|
3021
|
+
unsavedTip: string;
|
|
3022
|
+
closeWithoutExport: string;
|
|
3023
|
+
};
|
|
3024
|
+
courseware: {
|
|
3025
|
+
text: string;
|
|
3026
|
+
insert: string;
|
|
3027
|
+
edit: string;
|
|
3028
|
+
delete: string;
|
|
3029
|
+
title: string;
|
|
3030
|
+
titlePlaceholder: string;
|
|
3031
|
+
file: string;
|
|
3032
|
+
selectFile: string;
|
|
3033
|
+
changeFile: string;
|
|
3034
|
+
noFile: string;
|
|
3035
|
+
invalidFile: string;
|
|
3036
|
+
uploading: string;
|
|
3037
|
+
uploadNotConfigured: string;
|
|
3038
|
+
uploadInvalid: string;
|
|
3039
|
+
retryUpload: string;
|
|
3040
|
+
retryLoad: string;
|
|
3041
|
+
defaultExpanded: string;
|
|
3042
|
+
layout: string;
|
|
3043
|
+
single: string;
|
|
3044
|
+
double: string;
|
|
3045
|
+
preview: string;
|
|
3046
|
+
expand: string;
|
|
3047
|
+
collapse: string;
|
|
3048
|
+
fullscreen: string;
|
|
3049
|
+
exitFullscreen: string;
|
|
3050
|
+
readerToolbar: string;
|
|
3051
|
+
firstPage: string;
|
|
3052
|
+
previousPage: string;
|
|
3053
|
+
nextPage: string;
|
|
3054
|
+
switchToSingle: string;
|
|
3055
|
+
switchToDouble: string;
|
|
3056
|
+
zoomIn: string;
|
|
3057
|
+
zoomOut: string;
|
|
3058
|
+
resetZoom: string;
|
|
3059
|
+
thumbnails: string;
|
|
3060
|
+
closeThumbnails: string;
|
|
3061
|
+
thumbnailPage: string;
|
|
3062
|
+
annotation: string;
|
|
3063
|
+
annotationRect: string;
|
|
3064
|
+
annotationLine: string;
|
|
3065
|
+
annotationPath: string;
|
|
3066
|
+
annotationAnchor: string;
|
|
3067
|
+
annotationStyle: string;
|
|
3068
|
+
annotationColor: string;
|
|
3069
|
+
annotationUndo: string;
|
|
3070
|
+
annotationRedo: string;
|
|
3071
|
+
annotationSolid: string;
|
|
3072
|
+
annotationDashed: string;
|
|
3073
|
+
annotationWavy: string;
|
|
3074
|
+
annotationSolidBorder: string;
|
|
3075
|
+
annotationDashedBorder: string;
|
|
3076
|
+
annotationNoBorder: string;
|
|
3077
|
+
annotationStorageUnavailable: string;
|
|
3078
|
+
loading: string;
|
|
3079
|
+
changedError: string;
|
|
3080
|
+
};
|
|
2734
3081
|
timeline: {
|
|
2735
3082
|
text: string;
|
|
2736
3083
|
insert: string;
|
|
@@ -2880,12 +3227,18 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2880
3227
|
mention: string;
|
|
2881
3228
|
bookmark: {
|
|
2882
3229
|
text: string;
|
|
3230
|
+
title: string;
|
|
3231
|
+
"edit-title": string;
|
|
3232
|
+
note: string;
|
|
2883
3233
|
set: string;
|
|
2884
3234
|
ok: string;
|
|
3235
|
+
confirm: string;
|
|
3236
|
+
cancel: string;
|
|
2885
3237
|
textName: string;
|
|
2886
3238
|
placeholder: string;
|
|
2887
3239
|
show: string;
|
|
2888
3240
|
actions: string;
|
|
3241
|
+
edit: string;
|
|
2889
3242
|
delete: string;
|
|
2890
3243
|
emptyError: string;
|
|
2891
3244
|
};
|
|
@@ -3271,6 +3624,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3271
3624
|
"line-color": string;
|
|
3272
3625
|
"line-type": string;
|
|
3273
3626
|
"line-types": {
|
|
3627
|
+
none: string;
|
|
3274
3628
|
solid: string;
|
|
3275
3629
|
dashed: string;
|
|
3276
3630
|
dotted: string;
|
|
@@ -3292,6 +3646,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3292
3646
|
"reference-icon-placeholder": string;
|
|
3293
3647
|
"reference-icon-invalid": string;
|
|
3294
3648
|
"reference-icon-upload-failed": string;
|
|
3649
|
+
"show-icon": string;
|
|
3650
|
+
yes: string;
|
|
3651
|
+
no: string;
|
|
3295
3652
|
edit: string;
|
|
3296
3653
|
delete: string;
|
|
3297
3654
|
"open-reference": string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
2
|
+
import type { Transaction } from '@tiptap/pm/state';
|
|
3
|
+
export declare const rangeContainsBookmark: (doc: ProseMirrorNode, from: number, to: number) => boolean;
|
|
4
|
+
export declare const transactionTouchesBookmark: (transaction: Transaction) => boolean;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 插件作用:提供书签标记,记录文档中的定位点。
|
|
3
|
-
* 使用方法:注册扩展后通过书签相关命令添加或移除。
|
|
4
|
-
* 注意事项:书签标识应保持唯一,避免定位到错误位置。
|
|
5
|
-
*/
|
|
6
1
|
import { Mark } from '@tiptap/core';
|
|
2
|
+
/** 同时匹配编辑器书签标签和 DOCX 导入的无链接锚点书签。 */
|
|
3
|
+
export declare const queryBookmarkElements: (root: ParentNode) => Element[];
|
|
4
|
+
/** 读取书签名称,兼容 HTML 属性大小写和 DOCX 导入的 id 字段。 */
|
|
5
|
+
export declare const getBookmarkName: (element: Element) => string;
|
|
6
|
+
/** 在指定 DOM 根节点中按名称查找书签,返回首个匹配项。 */
|
|
7
|
+
export declare const findBookmarkElement: (root: ParentNode, bookmarkName: string) => Element;
|
|
8
|
+
/** 读取书签备注;导入锚点未设置备注时回退到正文文字。 */
|
|
9
|
+
export declare const getBookmarkNote: (element: Element) => string;
|
|
7
10
|
declare const _default: Mark<{
|
|
8
11
|
bookmarkName: string;
|
|
9
12
|
class: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Mark } from '@tiptap/core';
|
|
2
2
|
export declare const normalizeBubbleNoteLineType: (value: any) => any;
|
|
3
3
|
export declare const normalizeBubbleNoteLineColor: (value: any) => string;
|
|
4
|
+
export declare const normalizeBubbleNoteIconSource: (value: any) => string;
|
|
4
5
|
export declare const normalizeBubbleNoteReferenceUrl: (value: any) => string;
|
|
5
6
|
declare const _default: Mark<any, any>;
|
|
6
7
|
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PdfAnnotation } from '@agilehub/vue-pdf-flipbook';
|
|
2
|
+
export declare const readCoursewareAnnotations: (documentId: string) => PdfAnnotation[];
|
|
3
|
+
export declare const writeCoursewareAnnotations: (documentId: string, annotations: readonly PdfAnnotation[]) => boolean;
|
|
4
|
+
export declare const clearCoursewareAnnotations: (documentId: string) => void;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 插件作用:定义课件块节点,并提供插入、回显编辑和 HTML 序列化命令。
|
|
3
|
+
* 使用方法:通过插入菜单或 openCourseware 命令打开设置弹窗。
|
|
4
|
+
* 注意事项:节点只保存课件信息;阅读标注按 URL 派生的课件 ID 存入会话存储。
|
|
5
|
+
*/
|
|
6
|
+
import { Node } from '@tiptap/core';
|
|
7
|
+
import { type CoursewareData } from './model';
|
|
8
|
+
interface CoursewareDialogState {
|
|
9
|
+
visible: boolean;
|
|
10
|
+
position: number | null;
|
|
11
|
+
data: CoursewareData;
|
|
12
|
+
original: string;
|
|
13
|
+
session: number;
|
|
14
|
+
}
|
|
15
|
+
declare module '@tiptap/core' {
|
|
16
|
+
interface Storage {
|
|
17
|
+
courseware: {
|
|
18
|
+
dialog: CoursewareDialogState;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface Commands<ReturnType> {
|
|
22
|
+
courseware: {
|
|
23
|
+
insertCourseware: (data: CoursewareData) => ReturnType;
|
|
24
|
+
openCourseware: (position?: number | null) => ReturnType;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
declare const _default: Node<any, {
|
|
29
|
+
dialog: {
|
|
30
|
+
visible: boolean;
|
|
31
|
+
position: number | null;
|
|
32
|
+
data: {
|
|
33
|
+
version: 1;
|
|
34
|
+
id: string;
|
|
35
|
+
title: string;
|
|
36
|
+
fileId: string;
|
|
37
|
+
url: string;
|
|
38
|
+
name: string;
|
|
39
|
+
size: number;
|
|
40
|
+
fileSize: number;
|
|
41
|
+
defaultExpanded: boolean;
|
|
42
|
+
layout: import("./model").CoursewareLayout;
|
|
43
|
+
};
|
|
44
|
+
original: string;
|
|
45
|
+
session: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
export default _default;
|
|
49
|
+
export type { CoursewareData, CoursewareLayout } from './model';
|