@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
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
declare var __VLS_173: {
|
|
3
3
|
toolbarMode: string;
|
|
4
|
-
},
|
|
4
|
+
}, __VLS_290: {
|
|
5
5
|
toolbarMode: string;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_402: {
|
|
7
7
|
toolbarMode: string;
|
|
8
|
-
},
|
|
8
|
+
}, __VLS_459: {
|
|
9
9
|
toolbarMode: string;
|
|
10
|
-
},
|
|
10
|
+
}, __VLS_501: {
|
|
11
11
|
toolbarMode: string;
|
|
12
|
-
},
|
|
12
|
+
}, __VLS_503: {
|
|
13
13
|
toolbarMode: string;
|
|
14
|
-
},
|
|
14
|
+
}, __VLS_505: {
|
|
15
15
|
toolbarMode: string;
|
|
16
|
-
},
|
|
16
|
+
}, __VLS_507: {
|
|
17
17
|
toolbarMode: string;
|
|
18
18
|
};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
20
|
toolbar_base?: (props: typeof __VLS_173) => any;
|
|
21
21
|
} & {
|
|
22
|
-
toolbar_insert?: (props: typeof
|
|
22
|
+
toolbar_insert?: (props: typeof __VLS_290) => any;
|
|
23
23
|
} & {
|
|
24
|
-
toolbar_table?: (props: typeof
|
|
24
|
+
toolbar_table?: (props: typeof __VLS_402) => any;
|
|
25
25
|
} & {
|
|
26
|
-
toolbar_tools?: (props: typeof
|
|
26
|
+
toolbar_tools?: (props: typeof __VLS_459) => any;
|
|
27
27
|
} & {
|
|
28
|
-
toolbar_view?: (props: typeof
|
|
28
|
+
toolbar_view?: (props: typeof __VLS_501) => any;
|
|
29
29
|
} & {
|
|
30
|
-
toolbar_review?: (props: typeof
|
|
30
|
+
toolbar_review?: (props: typeof __VLS_503) => any;
|
|
31
31
|
} & {
|
|
32
|
-
toolbar_extension?: (props: typeof
|
|
32
|
+
toolbar_extension?: (props: typeof __VLS_505) => any;
|
|
33
33
|
} & {
|
|
34
|
-
toolbar_enhancement?: (props: typeof
|
|
34
|
+
toolbar_enhancement?: (props: typeof __VLS_507) => any;
|
|
35
35
|
};
|
|
36
36
|
declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
37
37
|
menus: {
|
|
@@ -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;
|
|
@@ -220,6 +234,100 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
220
234
|
undo: string;
|
|
221
235
|
};
|
|
222
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
|
+
};
|
|
223
331
|
timeline: {
|
|
224
332
|
text: string;
|
|
225
333
|
insert: string;
|
|
@@ -751,6 +859,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
751
859
|
"line-color": string;
|
|
752
860
|
"line-type": string;
|
|
753
861
|
"line-types": {
|
|
862
|
+
none: string;
|
|
754
863
|
solid: string;
|
|
755
864
|
dashed: string;
|
|
756
865
|
dotted: string;
|
|
@@ -772,6 +881,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
772
881
|
"reference-icon-placeholder": string;
|
|
773
882
|
"reference-icon-invalid": string;
|
|
774
883
|
"reference-icon-upload-failed": string;
|
|
884
|
+
"show-icon": string;
|
|
885
|
+
yes: string;
|
|
886
|
+
no: string;
|
|
775
887
|
edit: string;
|
|
776
888
|
delete: string;
|
|
777
889
|
"open-reference": string;
|
|
@@ -1282,10 +1394,24 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1282
1394
|
formatting: {
|
|
1283
1395
|
none: string;
|
|
1284
1396
|
labels: {
|
|
1285
|
-
|
|
1286
|
-
|
|
1397
|
+
p: string;
|
|
1398
|
+
span: string;
|
|
1399
|
+
h1: string;
|
|
1400
|
+
h2: string;
|
|
1401
|
+
h3: string;
|
|
1402
|
+
h4: string;
|
|
1403
|
+
h5: string;
|
|
1404
|
+
h6: string;
|
|
1287
1405
|
table: string;
|
|
1288
|
-
|
|
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;
|
|
1289
1415
|
audio: string;
|
|
1290
1416
|
video: string;
|
|
1291
1417
|
fontFamily: string;
|
|
@@ -1301,6 +1427,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1301
1427
|
textDecoration: string;
|
|
1302
1428
|
marginTop: string;
|
|
1303
1429
|
marginBottom: string;
|
|
1430
|
+
marginLeft: string;
|
|
1431
|
+
marginRight: string;
|
|
1304
1432
|
paddingTop: string;
|
|
1305
1433
|
paddingRight: string;
|
|
1306
1434
|
paddingBottom: string;
|
|
@@ -1318,7 +1446,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1318
1446
|
themeColor: string;
|
|
1319
1447
|
shading: string;
|
|
1320
1448
|
cellText: string;
|
|
1321
|
-
caption: string;
|
|
1322
1449
|
bulletList: string;
|
|
1323
1450
|
orderedList: string;
|
|
1324
1451
|
taskList: string;
|
|
@@ -1328,7 +1455,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1328
1455
|
callout: string;
|
|
1329
1456
|
footnote: string;
|
|
1330
1457
|
codeBlock: string;
|
|
1331
|
-
custom: string;
|
|
1332
1458
|
};
|
|
1333
1459
|
values: {
|
|
1334
1460
|
left: string;
|
|
@@ -1487,6 +1613,100 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1487
1613
|
undo: string;
|
|
1488
1614
|
};
|
|
1489
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
|
+
};
|
|
1490
1710
|
timeline: {
|
|
1491
1711
|
text: string;
|
|
1492
1712
|
insert: string;
|
|
@@ -2033,6 +2253,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2033
2253
|
"line-color": string;
|
|
2034
2254
|
"line-type": string;
|
|
2035
2255
|
"line-types": {
|
|
2256
|
+
none: string;
|
|
2036
2257
|
solid: string;
|
|
2037
2258
|
dashed: string;
|
|
2038
2259
|
dotted: string;
|
|
@@ -2054,6 +2275,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2054
2275
|
"reference-icon-placeholder": string;
|
|
2055
2276
|
"reference-icon-invalid": string;
|
|
2056
2277
|
"reference-icon-upload-failed": string;
|
|
2278
|
+
"show-icon": string;
|
|
2279
|
+
yes: string;
|
|
2280
|
+
no: string;
|
|
2057
2281
|
edit: string;
|
|
2058
2282
|
delete: string;
|
|
2059
2283
|
"open-reference": string;
|
|
@@ -2541,10 +2765,24 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2541
2765
|
formatting: {
|
|
2542
2766
|
none: string;
|
|
2543
2767
|
labels: {
|
|
2544
|
-
|
|
2545
|
-
|
|
2768
|
+
p: string;
|
|
2769
|
+
span: string;
|
|
2770
|
+
h1: string;
|
|
2771
|
+
h2: string;
|
|
2772
|
+
h3: string;
|
|
2773
|
+
h4: string;
|
|
2774
|
+
h5: string;
|
|
2775
|
+
h6: string;
|
|
2546
2776
|
table: string;
|
|
2547
|
-
|
|
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;
|
|
2548
2786
|
audio: string;
|
|
2549
2787
|
video: string;
|
|
2550
2788
|
fontFamily: string;
|
|
@@ -2560,6 +2798,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2560
2798
|
textDecoration: string;
|
|
2561
2799
|
marginTop: string;
|
|
2562
2800
|
marginBottom: string;
|
|
2801
|
+
marginLeft: string;
|
|
2802
|
+
marginRight: string;
|
|
2563
2803
|
paddingTop: string;
|
|
2564
2804
|
paddingRight: string;
|
|
2565
2805
|
paddingBottom: string;
|
|
@@ -2577,7 +2817,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2577
2817
|
themeColor: string;
|
|
2578
2818
|
shading: string;
|
|
2579
2819
|
cellText: string;
|
|
2580
|
-
caption: string;
|
|
2581
2820
|
bulletList: string;
|
|
2582
2821
|
orderedList: string;
|
|
2583
2822
|
taskList: string;
|
|
@@ -2587,7 +2826,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2587
2826
|
callout: string;
|
|
2588
2827
|
footnote: string;
|
|
2589
2828
|
codeBlock: string;
|
|
2590
|
-
custom: string;
|
|
2591
2829
|
};
|
|
2592
2830
|
values: {
|
|
2593
2831
|
left: string;
|
|
@@ -2746,6 +2984,100 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2746
2984
|
undo: string;
|
|
2747
2985
|
};
|
|
2748
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
|
+
};
|
|
2749
3081
|
timeline: {
|
|
2750
3082
|
text: string;
|
|
2751
3083
|
insert: string;
|
|
@@ -3292,6 +3624,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3292
3624
|
"line-color": string;
|
|
3293
3625
|
"line-type": string;
|
|
3294
3626
|
"line-types": {
|
|
3627
|
+
none: string;
|
|
3295
3628
|
solid: string;
|
|
3296
3629
|
dashed: string;
|
|
3297
3630
|
dotted: string;
|
|
@@ -3313,6 +3646,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3313
3646
|
"reference-icon-placeholder": string;
|
|
3314
3647
|
"reference-icon-invalid": string;
|
|
3315
3648
|
"reference-icon-upload-failed": string;
|
|
3649
|
+
"show-icon": string;
|
|
3650
|
+
yes: string;
|
|
3651
|
+
no: string;
|
|
3316
3652
|
edit: string;
|
|
3317
3653
|
delete: string;
|
|
3318
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,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';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type CoursewareLayout = 'single' | 'double';
|
|
2
|
+
export interface CoursewareData {
|
|
3
|
+
version: 1;
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
fileId: string;
|
|
7
|
+
url: string;
|
|
8
|
+
name: string;
|
|
9
|
+
size: number;
|
|
10
|
+
fileSize: number;
|
|
11
|
+
defaultExpanded: boolean;
|
|
12
|
+
layout: CoursewareLayout;
|
|
13
|
+
}
|
|
14
|
+
export declare const coursewareNodeTypes: Set<string>;
|
|
15
|
+
export declare const createEmptyCoursewareData: () => CoursewareData;
|
|
16
|
+
export declare const getCoursewareId: (url: string) => string;
|
|
17
|
+
export declare const normalizeCoursewareData: (value: unknown) => CoursewareData;
|
|
18
|
+
export declare const cloneCoursewareData: (value: unknown) => CoursewareData;
|
|
19
|
+
export declare const serializeCoursewareData: (value: unknown) => string;
|
|
20
|
+
export declare const parseCoursewareElement: (element: HTMLElement) => CoursewareData;
|