@agilehub/agile-editor 1.4.1 → 1.5.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 +225 -225
- package/dist/agile-editor.css +1 -1
- package/dist/agile-editor.js +4171 -3570
- package/dist/types/components/editor/index.vue.d.ts +2 -2
- package/dist/types/components/index.vue.d.ts +66 -12
- package/dist/types/components/menus/toolbar/tools/bubble-note.vue.d.ts +22 -1
- package/dist/types/components/toolbar/classic.vue.d.ts +13 -13
- package/dist/types/components/toolbar/ribbon.vue.d.ts +7 -7
- package/dist/types/composables/i18n.d.ts +66 -12
- package/dist/types/extensions/bubble-note.d.ts +1 -0
- package/dist/types/extensions/footnotes/utils.d.ts +1 -0
- package/dist/types/i18n.d.ts +66 -12
- package/dist/types/options/config/dicts.d.ts +8 -0
- package/dist/types/options/config/index.d.ts +10 -1
- package/dist/types/utils/bubble-note-icon.d.ts +19 -0
- package/dist/types/utils/docx-json.d.ts +4 -1
- package/docs/README.md +40 -40
- package/docs/api.md +155 -155
- package/docs/architecture.md +133 -133
- package/docs/configuration.md +233 -233
- package/docs/custom-components.md +277 -277
- package/docs/development.md +85 -85
- package/docs/faq.md +98 -98
- package/docs/features.md +181 -181
- package/docs/menu-extension.md +276 -276
- package/package.json +11 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_23: {
|
|
2
2
|
nodeType: any;
|
|
3
3
|
nodeAttrs: any;
|
|
4
4
|
};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
bubble_menu?: (props: typeof
|
|
6
|
+
bubble_menu?: (props: typeof __VLS_23) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -439,6 +439,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
439
439
|
placeholder: string;
|
|
440
440
|
};
|
|
441
441
|
footnote: string;
|
|
442
|
+
insertFootnote: string;
|
|
443
|
+
deleteFootnote: string;
|
|
442
444
|
prompt: {
|
|
443
445
|
text: string;
|
|
444
446
|
title: string;
|
|
@@ -779,6 +781,9 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
779
781
|
"bubble-note": {
|
|
780
782
|
title: string;
|
|
781
783
|
note: string;
|
|
784
|
+
"note-title": string;
|
|
785
|
+
"note-title-color": string;
|
|
786
|
+
"note-title-placeholder": string;
|
|
782
787
|
annotation: string;
|
|
783
788
|
"line-color": string;
|
|
784
789
|
"line-type": string;
|
|
@@ -790,6 +795,23 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
790
795
|
wavy: string;
|
|
791
796
|
};
|
|
792
797
|
placeholder: string;
|
|
798
|
+
"selection-required-error": string;
|
|
799
|
+
"non-text-content-error": string;
|
|
800
|
+
"cross-paragraph-error": string;
|
|
801
|
+
"max-length-error": string;
|
|
802
|
+
"already-exists-error": string;
|
|
803
|
+
"reference-link": string;
|
|
804
|
+
"reference-link-placeholder": string;
|
|
805
|
+
"invalid-reference-link": string;
|
|
806
|
+
"reference-icon": string;
|
|
807
|
+
"reference-icon-builtin": string;
|
|
808
|
+
"reference-icon-upload": string;
|
|
809
|
+
"reference-icon-placeholder": string;
|
|
810
|
+
"reference-icon-invalid": string;
|
|
811
|
+
"reference-icon-upload-failed": string;
|
|
812
|
+
edit: string;
|
|
813
|
+
delete: string;
|
|
814
|
+
"open-reference": string;
|
|
793
815
|
cancel: string;
|
|
794
816
|
confirm: string;
|
|
795
817
|
};
|
|
@@ -1079,10 +1101,6 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
1079
1101
|
hide: string;
|
|
1080
1102
|
empty: string;
|
|
1081
1103
|
};
|
|
1082
|
-
spellcheck: {
|
|
1083
|
-
enable: string;
|
|
1084
|
-
disable: string;
|
|
1085
|
-
};
|
|
1086
1104
|
shortcut: {
|
|
1087
1105
|
title: string;
|
|
1088
1106
|
text: string;
|
|
@@ -1641,6 +1659,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
1641
1659
|
placeholder: string;
|
|
1642
1660
|
};
|
|
1643
1661
|
footnote: string;
|
|
1662
|
+
insertFootnote: string;
|
|
1663
|
+
deleteFootnote: string;
|
|
1644
1664
|
prompt: {
|
|
1645
1665
|
text: string;
|
|
1646
1666
|
title: string;
|
|
@@ -1996,6 +2016,9 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
1996
2016
|
"bubble-note": {
|
|
1997
2017
|
title: string;
|
|
1998
2018
|
note: string;
|
|
2019
|
+
"note-title": string;
|
|
2020
|
+
"note-title-color": string;
|
|
2021
|
+
"note-title-placeholder": string;
|
|
1999
2022
|
annotation: string;
|
|
2000
2023
|
"line-color": string;
|
|
2001
2024
|
"line-type": string;
|
|
@@ -2007,6 +2030,23 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
2007
2030
|
wavy: string;
|
|
2008
2031
|
};
|
|
2009
2032
|
placeholder: string;
|
|
2033
|
+
"selection-required-error": string;
|
|
2034
|
+
"non-text-content-error": string;
|
|
2035
|
+
"cross-paragraph-error": string;
|
|
2036
|
+
"max-length-error": string;
|
|
2037
|
+
"already-exists-error": string;
|
|
2038
|
+
"reference-link": string;
|
|
2039
|
+
"reference-link-placeholder": string;
|
|
2040
|
+
"invalid-reference-link": string;
|
|
2041
|
+
"reference-icon": string;
|
|
2042
|
+
"reference-icon-builtin": string;
|
|
2043
|
+
"reference-icon-upload": string;
|
|
2044
|
+
"reference-icon-placeholder": string;
|
|
2045
|
+
"reference-icon-invalid": string;
|
|
2046
|
+
"reference-icon-upload-failed": string;
|
|
2047
|
+
edit: string;
|
|
2048
|
+
delete: string;
|
|
2049
|
+
"open-reference": string;
|
|
2010
2050
|
cancel: string;
|
|
2011
2051
|
confirm: string;
|
|
2012
2052
|
};
|
|
@@ -2286,10 +2326,6 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
2286
2326
|
hide: string;
|
|
2287
2327
|
empty: string;
|
|
2288
2328
|
};
|
|
2289
|
-
spellcheck: {
|
|
2290
|
-
enable: string;
|
|
2291
|
-
disable: string;
|
|
2292
|
-
};
|
|
2293
2329
|
shortcut: {
|
|
2294
2330
|
title: string;
|
|
2295
2331
|
text: string;
|
|
@@ -2835,6 +2871,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
2835
2871
|
placeholder: string;
|
|
2836
2872
|
};
|
|
2837
2873
|
footnote: string;
|
|
2874
|
+
insertFootnote: string;
|
|
2875
|
+
deleteFootnote: string;
|
|
2838
2876
|
prompt: {
|
|
2839
2877
|
text: string;
|
|
2840
2878
|
title: string;
|
|
@@ -3190,6 +3228,9 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
3190
3228
|
"bubble-note": {
|
|
3191
3229
|
title: string;
|
|
3192
3230
|
note: string;
|
|
3231
|
+
"note-title": string;
|
|
3232
|
+
"note-title-color": string;
|
|
3233
|
+
"note-title-placeholder": string;
|
|
3193
3234
|
annotation: string;
|
|
3194
3235
|
"line-color": string;
|
|
3195
3236
|
"line-type": string;
|
|
@@ -3201,6 +3242,23 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
3201
3242
|
wavy: string;
|
|
3202
3243
|
};
|
|
3203
3244
|
placeholder: string;
|
|
3245
|
+
"selection-required-error": string;
|
|
3246
|
+
"non-text-content-error": string;
|
|
3247
|
+
"cross-paragraph-error": string;
|
|
3248
|
+
"max-length-error": string;
|
|
3249
|
+
"already-exists-error": string;
|
|
3250
|
+
"reference-link": string;
|
|
3251
|
+
"reference-link-placeholder": string;
|
|
3252
|
+
"invalid-reference-link": string;
|
|
3253
|
+
"reference-icon": string;
|
|
3254
|
+
"reference-icon-builtin": string;
|
|
3255
|
+
"reference-icon-upload": string;
|
|
3256
|
+
"reference-icon-placeholder": string;
|
|
3257
|
+
"reference-icon-invalid": string;
|
|
3258
|
+
"reference-icon-upload-failed": string;
|
|
3259
|
+
edit: string;
|
|
3260
|
+
delete: string;
|
|
3261
|
+
"open-reference": string;
|
|
3204
3262
|
cancel: string;
|
|
3205
3263
|
confirm: string;
|
|
3206
3264
|
};
|
|
@@ -3480,10 +3538,6 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
|
3480
3538
|
hide: string;
|
|
3481
3539
|
empty: string;
|
|
3482
3540
|
};
|
|
3483
|
-
spellcheck: {
|
|
3484
|
-
enable: string;
|
|
3485
|
-
disable: string;
|
|
3486
|
-
};
|
|
3487
3541
|
shortcut: {
|
|
3488
3542
|
title: string;
|
|
3489
3543
|
text: string;
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
dialogOnly: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
triggerOnly: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
11
|
+
dialogOnly: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
triggerOnly: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
dialogOnly: boolean;
|
|
21
|
+
triggerOnly: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
23
|
declare const _default: typeof __VLS_export;
|
|
3
24
|
export default _default;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { PropType } from
|
|
2
|
-
declare var
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare var __VLS_172: {
|
|
3
3
|
toolbarMode: string;
|
|
4
|
-
},
|
|
4
|
+
}, __VLS_274: {
|
|
5
5
|
toolbarMode: string;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_386: {
|
|
7
7
|
toolbarMode: string;
|
|
8
|
-
},
|
|
8
|
+
}, __VLS_443: {
|
|
9
9
|
toolbarMode: string;
|
|
10
|
-
},
|
|
10
|
+
}, __VLS_490: {
|
|
11
11
|
toolbarMode: string;
|
|
12
|
-
},
|
|
12
|
+
}, __VLS_492: {
|
|
13
13
|
toolbarMode: string;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
toolbar_base?: (props: typeof
|
|
16
|
+
toolbar_base?: (props: typeof __VLS_172) => any;
|
|
17
17
|
} & {
|
|
18
|
-
toolbar_insert?: (props: typeof
|
|
18
|
+
toolbar_insert?: (props: typeof __VLS_274) => any;
|
|
19
19
|
} & {
|
|
20
|
-
toolbar_table?: (props: typeof
|
|
20
|
+
toolbar_table?: (props: typeof __VLS_386) => any;
|
|
21
21
|
} & {
|
|
22
|
-
toolbar_tools?: (props: typeof
|
|
22
|
+
toolbar_tools?: (props: typeof __VLS_443) => any;
|
|
23
23
|
} & {
|
|
24
|
-
toolbar_view?: (props: typeof
|
|
24
|
+
toolbar_view?: (props: typeof __VLS_490) => any;
|
|
25
25
|
} & {
|
|
26
|
-
toolbar_copyediting?: (props: typeof
|
|
26
|
+
toolbar_copyediting?: (props: typeof __VLS_492) => any;
|
|
27
27
|
};
|
|
28
28
|
declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
29
29
|
menus: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PropType } from
|
|
2
|
-
declare var
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare var __VLS_173: {
|
|
3
3
|
toolbarMode: string;
|
|
4
|
-
},
|
|
4
|
+
}, __VLS_275: {
|
|
5
5
|
toolbarMode: string;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_387: {
|
|
7
7
|
toolbarMode: string;
|
|
8
8
|
}, __VLS_444: {
|
|
9
9
|
toolbarMode: string;
|
|
@@ -13,11 +13,11 @@ declare var __VLS_178: {
|
|
|
13
13
|
toolbarMode: string;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
toolbar_base?: (props: typeof
|
|
16
|
+
toolbar_base?: (props: typeof __VLS_173) => any;
|
|
17
17
|
} & {
|
|
18
|
-
toolbar_insert?: (props: typeof
|
|
18
|
+
toolbar_insert?: (props: typeof __VLS_275) => any;
|
|
19
19
|
} & {
|
|
20
|
-
toolbar_table?: (props: typeof
|
|
20
|
+
toolbar_table?: (props: typeof __VLS_387) => any;
|
|
21
21
|
} & {
|
|
22
22
|
toolbar_tools?: (props: typeof __VLS_444) => any;
|
|
23
23
|
} & {
|
|
@@ -395,6 +395,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
395
395
|
placeholder: string;
|
|
396
396
|
};
|
|
397
397
|
footnote: string;
|
|
398
|
+
insertFootnote: string;
|
|
399
|
+
deleteFootnote: string;
|
|
398
400
|
prompt: {
|
|
399
401
|
text: string;
|
|
400
402
|
title: string;
|
|
@@ -735,6 +737,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
735
737
|
"bubble-note": {
|
|
736
738
|
title: string;
|
|
737
739
|
note: string;
|
|
740
|
+
"note-title": string;
|
|
741
|
+
"note-title-color": string;
|
|
742
|
+
"note-title-placeholder": string;
|
|
738
743
|
annotation: string;
|
|
739
744
|
"line-color": string;
|
|
740
745
|
"line-type": string;
|
|
@@ -746,6 +751,23 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
746
751
|
wavy: string;
|
|
747
752
|
};
|
|
748
753
|
placeholder: string;
|
|
754
|
+
"selection-required-error": string;
|
|
755
|
+
"non-text-content-error": string;
|
|
756
|
+
"cross-paragraph-error": string;
|
|
757
|
+
"max-length-error": string;
|
|
758
|
+
"already-exists-error": string;
|
|
759
|
+
"reference-link": string;
|
|
760
|
+
"reference-link-placeholder": string;
|
|
761
|
+
"invalid-reference-link": string;
|
|
762
|
+
"reference-icon": string;
|
|
763
|
+
"reference-icon-builtin": string;
|
|
764
|
+
"reference-icon-upload": string;
|
|
765
|
+
"reference-icon-placeholder": string;
|
|
766
|
+
"reference-icon-invalid": string;
|
|
767
|
+
"reference-icon-upload-failed": string;
|
|
768
|
+
edit: string;
|
|
769
|
+
delete: string;
|
|
770
|
+
"open-reference": string;
|
|
749
771
|
cancel: string;
|
|
750
772
|
confirm: string;
|
|
751
773
|
};
|
|
@@ -1035,10 +1057,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1035
1057
|
hide: string;
|
|
1036
1058
|
empty: string;
|
|
1037
1059
|
};
|
|
1038
|
-
spellcheck: {
|
|
1039
|
-
enable: string;
|
|
1040
|
-
disable: string;
|
|
1041
|
-
};
|
|
1042
1060
|
shortcut: {
|
|
1043
1061
|
title: string;
|
|
1044
1062
|
text: string;
|
|
@@ -1597,6 +1615,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1597
1615
|
placeholder: string;
|
|
1598
1616
|
};
|
|
1599
1617
|
footnote: string;
|
|
1618
|
+
insertFootnote: string;
|
|
1619
|
+
deleteFootnote: string;
|
|
1600
1620
|
prompt: {
|
|
1601
1621
|
text: string;
|
|
1602
1622
|
title: string;
|
|
@@ -1952,6 +1972,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1952
1972
|
"bubble-note": {
|
|
1953
1973
|
title: string;
|
|
1954
1974
|
note: string;
|
|
1975
|
+
"note-title": string;
|
|
1976
|
+
"note-title-color": string;
|
|
1977
|
+
"note-title-placeholder": string;
|
|
1955
1978
|
annotation: string;
|
|
1956
1979
|
"line-color": string;
|
|
1957
1980
|
"line-type": string;
|
|
@@ -1963,6 +1986,23 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
1963
1986
|
wavy: string;
|
|
1964
1987
|
};
|
|
1965
1988
|
placeholder: string;
|
|
1989
|
+
"selection-required-error": string;
|
|
1990
|
+
"non-text-content-error": string;
|
|
1991
|
+
"cross-paragraph-error": string;
|
|
1992
|
+
"max-length-error": string;
|
|
1993
|
+
"already-exists-error": string;
|
|
1994
|
+
"reference-link": string;
|
|
1995
|
+
"reference-link-placeholder": string;
|
|
1996
|
+
"invalid-reference-link": string;
|
|
1997
|
+
"reference-icon": string;
|
|
1998
|
+
"reference-icon-builtin": string;
|
|
1999
|
+
"reference-icon-upload": string;
|
|
2000
|
+
"reference-icon-placeholder": string;
|
|
2001
|
+
"reference-icon-invalid": string;
|
|
2002
|
+
"reference-icon-upload-failed": string;
|
|
2003
|
+
edit: string;
|
|
2004
|
+
delete: string;
|
|
2005
|
+
"open-reference": string;
|
|
1966
2006
|
cancel: string;
|
|
1967
2007
|
confirm: string;
|
|
1968
2008
|
};
|
|
@@ -2242,10 +2282,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2242
2282
|
hide: string;
|
|
2243
2283
|
empty: string;
|
|
2244
2284
|
};
|
|
2245
|
-
spellcheck: {
|
|
2246
|
-
enable: string;
|
|
2247
|
-
disable: string;
|
|
2248
|
-
};
|
|
2249
2285
|
shortcut: {
|
|
2250
2286
|
title: string;
|
|
2251
2287
|
text: string;
|
|
@@ -2791,6 +2827,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
2791
2827
|
placeholder: string;
|
|
2792
2828
|
};
|
|
2793
2829
|
footnote: string;
|
|
2830
|
+
insertFootnote: string;
|
|
2831
|
+
deleteFootnote: string;
|
|
2794
2832
|
prompt: {
|
|
2795
2833
|
text: string;
|
|
2796
2834
|
title: string;
|
|
@@ -3146,6 +3184,9 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3146
3184
|
"bubble-note": {
|
|
3147
3185
|
title: string;
|
|
3148
3186
|
note: string;
|
|
3187
|
+
"note-title": string;
|
|
3188
|
+
"note-title-color": string;
|
|
3189
|
+
"note-title-placeholder": string;
|
|
3149
3190
|
annotation: string;
|
|
3150
3191
|
"line-color": string;
|
|
3151
3192
|
"line-type": string;
|
|
@@ -3157,6 +3198,23 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3157
3198
|
wavy: string;
|
|
3158
3199
|
};
|
|
3159
3200
|
placeholder: string;
|
|
3201
|
+
"selection-required-error": string;
|
|
3202
|
+
"non-text-content-error": string;
|
|
3203
|
+
"cross-paragraph-error": string;
|
|
3204
|
+
"max-length-error": string;
|
|
3205
|
+
"already-exists-error": string;
|
|
3206
|
+
"reference-link": string;
|
|
3207
|
+
"reference-link-placeholder": string;
|
|
3208
|
+
"invalid-reference-link": string;
|
|
3209
|
+
"reference-icon": string;
|
|
3210
|
+
"reference-icon-builtin": string;
|
|
3211
|
+
"reference-icon-upload": string;
|
|
3212
|
+
"reference-icon-placeholder": string;
|
|
3213
|
+
"reference-icon-invalid": string;
|
|
3214
|
+
"reference-icon-upload-failed": string;
|
|
3215
|
+
edit: string;
|
|
3216
|
+
delete: string;
|
|
3217
|
+
"open-reference": string;
|
|
3160
3218
|
cancel: string;
|
|
3161
3219
|
confirm: string;
|
|
3162
3220
|
};
|
|
@@ -3436,10 +3494,6 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
|
|
|
3436
3494
|
hide: string;
|
|
3437
3495
|
empty: string;
|
|
3438
3496
|
};
|
|
3439
|
-
spellcheck: {
|
|
3440
|
-
enable: string;
|
|
3441
|
-
disable: string;
|
|
3442
|
-
};
|
|
3443
3497
|
shortcut: {
|
|
3444
3498
|
title: string;
|
|
3445
3499
|
text: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const FOOTNOTE_FOCUS_META = "footnoteFocusId";
|
|
1
2
|
export declare const updateFootnoteReferences: (tr: any) => any[];
|
|
2
3
|
export declare const syncFootnoteReferenceCaptions: (tr: any) => boolean;
|
|
3
4
|
export declare const updateFootnotesList: (tr: any, state: any) => void;
|
package/dist/types/i18n.d.ts
CHANGED
|
@@ -382,6 +382,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
382
382
|
placeholder: string;
|
|
383
383
|
};
|
|
384
384
|
footnote: string;
|
|
385
|
+
insertFootnote: string;
|
|
386
|
+
deleteFootnote: string;
|
|
385
387
|
prompt: {
|
|
386
388
|
text: string;
|
|
387
389
|
title: string;
|
|
@@ -722,6 +724,9 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
722
724
|
"bubble-note": {
|
|
723
725
|
title: string;
|
|
724
726
|
note: string;
|
|
727
|
+
"note-title": string;
|
|
728
|
+
"note-title-color": string;
|
|
729
|
+
"note-title-placeholder": string;
|
|
725
730
|
annotation: string;
|
|
726
731
|
"line-color": string;
|
|
727
732
|
"line-type": string;
|
|
@@ -733,6 +738,23 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
733
738
|
wavy: string;
|
|
734
739
|
};
|
|
735
740
|
placeholder: string;
|
|
741
|
+
"selection-required-error": string;
|
|
742
|
+
"non-text-content-error": string;
|
|
743
|
+
"cross-paragraph-error": string;
|
|
744
|
+
"max-length-error": string;
|
|
745
|
+
"already-exists-error": string;
|
|
746
|
+
"reference-link": string;
|
|
747
|
+
"reference-link-placeholder": string;
|
|
748
|
+
"invalid-reference-link": string;
|
|
749
|
+
"reference-icon": string;
|
|
750
|
+
"reference-icon-builtin": string;
|
|
751
|
+
"reference-icon-upload": string;
|
|
752
|
+
"reference-icon-placeholder": string;
|
|
753
|
+
"reference-icon-invalid": string;
|
|
754
|
+
"reference-icon-upload-failed": string;
|
|
755
|
+
edit: string;
|
|
756
|
+
delete: string;
|
|
757
|
+
"open-reference": string;
|
|
736
758
|
cancel: string;
|
|
737
759
|
confirm: string;
|
|
738
760
|
};
|
|
@@ -1022,10 +1044,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1022
1044
|
hide: string;
|
|
1023
1045
|
empty: string;
|
|
1024
1046
|
};
|
|
1025
|
-
spellcheck: {
|
|
1026
|
-
enable: string;
|
|
1027
|
-
disable: string;
|
|
1028
|
-
};
|
|
1029
1047
|
shortcut: {
|
|
1030
1048
|
title: string;
|
|
1031
1049
|
text: string;
|
|
@@ -1584,6 +1602,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1584
1602
|
placeholder: string;
|
|
1585
1603
|
};
|
|
1586
1604
|
footnote: string;
|
|
1605
|
+
insertFootnote: string;
|
|
1606
|
+
deleteFootnote: string;
|
|
1587
1607
|
prompt: {
|
|
1588
1608
|
text: string;
|
|
1589
1609
|
title: string;
|
|
@@ -1939,6 +1959,9 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1939
1959
|
"bubble-note": {
|
|
1940
1960
|
title: string;
|
|
1941
1961
|
note: string;
|
|
1962
|
+
"note-title": string;
|
|
1963
|
+
"note-title-color": string;
|
|
1964
|
+
"note-title-placeholder": string;
|
|
1942
1965
|
annotation: string;
|
|
1943
1966
|
"line-color": string;
|
|
1944
1967
|
"line-type": string;
|
|
@@ -1950,6 +1973,23 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1950
1973
|
wavy: string;
|
|
1951
1974
|
};
|
|
1952
1975
|
placeholder: string;
|
|
1976
|
+
"selection-required-error": string;
|
|
1977
|
+
"non-text-content-error": string;
|
|
1978
|
+
"cross-paragraph-error": string;
|
|
1979
|
+
"max-length-error": string;
|
|
1980
|
+
"already-exists-error": string;
|
|
1981
|
+
"reference-link": string;
|
|
1982
|
+
"reference-link-placeholder": string;
|
|
1983
|
+
"invalid-reference-link": string;
|
|
1984
|
+
"reference-icon": string;
|
|
1985
|
+
"reference-icon-builtin": string;
|
|
1986
|
+
"reference-icon-upload": string;
|
|
1987
|
+
"reference-icon-placeholder": string;
|
|
1988
|
+
"reference-icon-invalid": string;
|
|
1989
|
+
"reference-icon-upload-failed": string;
|
|
1990
|
+
edit: string;
|
|
1991
|
+
delete: string;
|
|
1992
|
+
"open-reference": string;
|
|
1953
1993
|
cancel: string;
|
|
1954
1994
|
confirm: string;
|
|
1955
1995
|
};
|
|
@@ -2229,10 +2269,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2229
2269
|
hide: string;
|
|
2230
2270
|
empty: string;
|
|
2231
2271
|
};
|
|
2232
|
-
spellcheck: {
|
|
2233
|
-
enable: string;
|
|
2234
|
-
disable: string;
|
|
2235
|
-
};
|
|
2236
2272
|
shortcut: {
|
|
2237
2273
|
title: string;
|
|
2238
2274
|
text: string;
|
|
@@ -2778,6 +2814,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2778
2814
|
placeholder: string;
|
|
2779
2815
|
};
|
|
2780
2816
|
footnote: string;
|
|
2817
|
+
insertFootnote: string;
|
|
2818
|
+
deleteFootnote: string;
|
|
2781
2819
|
prompt: {
|
|
2782
2820
|
text: string;
|
|
2783
2821
|
title: string;
|
|
@@ -3133,6 +3171,9 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3133
3171
|
"bubble-note": {
|
|
3134
3172
|
title: string;
|
|
3135
3173
|
note: string;
|
|
3174
|
+
"note-title": string;
|
|
3175
|
+
"note-title-color": string;
|
|
3176
|
+
"note-title-placeholder": string;
|
|
3136
3177
|
annotation: string;
|
|
3137
3178
|
"line-color": string;
|
|
3138
3179
|
"line-type": string;
|
|
@@ -3144,6 +3185,23 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3144
3185
|
wavy: string;
|
|
3145
3186
|
};
|
|
3146
3187
|
placeholder: string;
|
|
3188
|
+
"selection-required-error": string;
|
|
3189
|
+
"non-text-content-error": string;
|
|
3190
|
+
"cross-paragraph-error": string;
|
|
3191
|
+
"max-length-error": string;
|
|
3192
|
+
"already-exists-error": string;
|
|
3193
|
+
"reference-link": string;
|
|
3194
|
+
"reference-link-placeholder": string;
|
|
3195
|
+
"invalid-reference-link": string;
|
|
3196
|
+
"reference-icon": string;
|
|
3197
|
+
"reference-icon-builtin": string;
|
|
3198
|
+
"reference-icon-upload": string;
|
|
3199
|
+
"reference-icon-placeholder": string;
|
|
3200
|
+
"reference-icon-invalid": string;
|
|
3201
|
+
"reference-icon-upload-failed": string;
|
|
3202
|
+
edit: string;
|
|
3203
|
+
delete: string;
|
|
3204
|
+
"open-reference": string;
|
|
3147
3205
|
cancel: string;
|
|
3148
3206
|
confirm: string;
|
|
3149
3207
|
};
|
|
@@ -3423,10 +3481,6 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3423
3481
|
hide: string;
|
|
3424
3482
|
empty: string;
|
|
3425
3483
|
};
|
|
3426
|
-
spellcheck: {
|
|
3427
|
-
enable: string;
|
|
3428
|
-
disable: string;
|
|
3429
|
-
};
|
|
3430
3484
|
shortcut: {
|
|
3431
3485
|
title: string;
|
|
3432
3486
|
text: string;
|
|
@@ -64,6 +64,16 @@ declare const _default: {
|
|
|
64
64
|
default?: undefined;
|
|
65
65
|
})[];
|
|
66
66
|
};
|
|
67
|
+
bubbleNote: {
|
|
68
|
+
referenceIcons: {
|
|
69
|
+
label: {
|
|
70
|
+
zh_CN: string;
|
|
71
|
+
en_US: string;
|
|
72
|
+
};
|
|
73
|
+
value: string;
|
|
74
|
+
svg: string;
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
67
77
|
toolbar: {
|
|
68
78
|
showSaveLabel: boolean;
|
|
69
79
|
defaultMode: string;
|
|
@@ -103,7 +113,6 @@ declare const _default: {
|
|
|
103
113
|
zh_CN: string;
|
|
104
114
|
};
|
|
105
115
|
structure: string;
|
|
106
|
-
enableSpellcheck: boolean;
|
|
107
116
|
enableMarkdown: boolean;
|
|
108
117
|
enableBubbleMenu: boolean;
|
|
109
118
|
enableBlockMenu: boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type BubbleNoteIconDefinition = {
|
|
2
|
+
svg?: string;
|
|
3
|
+
base64?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const normalizeBubbleNoteIconName: (value: any) => string;
|
|
7
|
+
export declare const normalizeBubbleNoteIconImage: (value: any) => string;
|
|
8
|
+
export declare const svgCodeToDataUrl: (value: any) => string;
|
|
9
|
+
export declare const base64ImageToDataUrl: (value: any) => string;
|
|
10
|
+
export declare const resolveBubbleNoteIconSource: (definition?: BubbleNoteIconDefinition) => {
|
|
11
|
+
type: string;
|
|
12
|
+
src: string;
|
|
13
|
+
name?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
type: string;
|
|
16
|
+
name: string;
|
|
17
|
+
src?: undefined;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -10,5 +10,8 @@ type TiptapNode = {
|
|
|
10
10
|
text?: string;
|
|
11
11
|
marks?: TiptapMark[];
|
|
12
12
|
};
|
|
13
|
-
export declare const convertDocxJsonToTiptap: (document: HtmlJsonDocument
|
|
13
|
+
export declare const convertDocxJsonToTiptap: (document: HtmlJsonDocument, options?: {
|
|
14
|
+
footnotes?: boolean;
|
|
15
|
+
annotations?: boolean;
|
|
16
|
+
}) => TiptapNode[];
|
|
14
17
|
export {};
|