@agilehub/agile-editor 1.8.2 → 1.8.3

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @agilehub/agile-editor 1.8.2
2
+ * @agilehub/agile-editor 1.8.3
3
3
  * @license Apache-2.0
4
4
  * @author undefined undefined
5
5
  * @see undefined
@@ -743,6 +743,56 @@ var o = ["width", "height"], s = ["xlink:href", "fill"], c = /* @__PURE__ */ n({
743
743
  "selection-required": "Select a number first",
744
744
  "invalid-number": "Select a valid number"
745
745
  },
746
+ "figure-caption-numbering": {
747
+ text: "Figure Caption Automation",
748
+ tip: "Generate figure caption numbers from the first caption rule",
749
+ title: "Figure Caption Numbering",
750
+ fullscreen: "Full Screen",
751
+ "exit-fullscreen": "Exit Full Screen",
752
+ readonly: "Figure captions cannot be numbered in read-only mode",
753
+ rule: "Rule",
754
+ "rule-source": "Rule Source",
755
+ "first-caption": "First non-empty caption",
756
+ "manual-rule": "Manual rule",
757
+ "source-caption": "Source Caption",
758
+ template: "Caption Template",
759
+ "fixed-prefix": "Fixed Prefix",
760
+ "start-sequence": "Start Number",
761
+ "sequence-width": "Number Width",
762
+ "caption-separator": "Number/Caption Separator",
763
+ "separator-placeholder": "Enter a space or another separator",
764
+ summary: "Scope",
765
+ "candidate-count": "Candidate Images",
766
+ "empty-count": "Empty Captions",
767
+ "replace-count": "Replaced Numbers",
768
+ "append-count": "Added Numbers",
769
+ "warning-count": "Needs Review",
770
+ preview: "Caption Changes",
771
+ order: "No.",
772
+ image: "Image",
773
+ "old-caption": "Current Caption",
774
+ "new-caption": "New Caption",
775
+ status: "Status",
776
+ "edit-caption": "Edit New Caption",
777
+ "save-caption": "Save New Caption",
778
+ "caption-required": "The new caption cannot be empty",
779
+ "empty-caption": "(Empty caption)",
780
+ "status-keep": "Keep",
781
+ "status-replace": "Replace",
782
+ "status-append": "Add Number",
783
+ "status-empty": "Empty Caption",
784
+ "status-warning": "Needs Review",
785
+ "warning-title": "The following captions cannot be handled safely and will be skipped:",
786
+ "unparsed-label": "The old number cannot be removed reliably",
787
+ "error-no-caption": "No caption is available to extract a numbering rule",
788
+ "error-unrecognized": "Unable to extract a rule from the first caption",
789
+ "manual-confirm": "Use Current Manual Rule",
790
+ "no-changes": "The current rule will not change any caption",
791
+ "doc-changed": "The document changed. The preview has been regenerated",
792
+ success: "Figure caption numbers generated",
793
+ "no-candidates": "No eligible block images found",
794
+ confirm: "Apply"
795
+ },
746
796
  math: {
747
797
  text: "Mathematics",
748
798
  insert: "Insert LaTeX Math",
@@ -1133,6 +1183,7 @@ var o = ["width", "height"], s = ["xlink:href", "fill"], c = /* @__PURE__ */ n({
1133
1183
  convertToNode: "Convert to Block Image",
1134
1184
  convertToInline: "Convert to Inline Image"
1135
1185
  },
1186
+ imageText: { edit: "Edit Image & Text" },
1136
1187
  textBox: {
1137
1188
  background: "Background Color",
1138
1189
  border: "Border Settings",
@@ -2129,6 +2180,56 @@ var o = ["width", "height"], s = ["xlink:href", "fill"], c = /* @__PURE__ */ n({
2129
2180
  "selection-required": "请先选中数字",
2130
2181
  "invalid-number": "请选择有效的数字"
2131
2182
  },
2183
+ "figure-caption-numbering": {
2184
+ text: "图注自动化",
2185
+ tip: "根据首个图注规则批量生成图注编号",
2186
+ title: "图注编号自动化",
2187
+ fullscreen: "全屏查看",
2188
+ "exit-fullscreen": "退出全屏",
2189
+ readonly: "只读状态下不能生成图注编号",
2190
+ rule: "规则设置",
2191
+ "rule-source": "规则来源",
2192
+ "first-caption": "首个非空图注",
2193
+ "manual-rule": "手动指定规则",
2194
+ "source-caption": "来源图注",
2195
+ template: "图注模板",
2196
+ "fixed-prefix": "固定前缀",
2197
+ "start-sequence": "起始序号",
2198
+ "sequence-width": "序号位数",
2199
+ "caption-separator": "编号与图注分隔符",
2200
+ "separator-placeholder": "输入空格或其他分隔符",
2201
+ summary: "处理范围",
2202
+ "candidate-count": "候选图片",
2203
+ "empty-count": "空图注",
2204
+ "replace-count": "替换旧编号",
2205
+ "append-count": "补充编号",
2206
+ "warning-count": "需要检查",
2207
+ preview: "图注修改预览",
2208
+ order: "序号",
2209
+ image: "图片",
2210
+ "old-caption": "当前图注",
2211
+ "new-caption": "新图注",
2212
+ status: "状态",
2213
+ "edit-caption": "编辑新图注",
2214
+ "save-caption": "保存新图注",
2215
+ "caption-required": "新图注不能为空",
2216
+ "empty-caption": "(空图注)",
2217
+ "status-keep": "保持",
2218
+ "status-replace": "替换编号",
2219
+ "status-append": "补充编号",
2220
+ "status-empty": "空图注",
2221
+ "status-warning": "需要检查",
2222
+ "warning-title": "以下图注无法可靠处理,将跳过:",
2223
+ "unparsed-label": "无法可靠移除旧编号",
2224
+ "error-no-caption": "文档中没有可用于提取规则的图注",
2225
+ "error-unrecognized": "无法从首个图注提取规则",
2226
+ "manual-confirm": "使用当前手动规则",
2227
+ "no-changes": "当前规则不会产生图注修改",
2228
+ "doc-changed": "文档已发生变化,预览已重新生成",
2229
+ success: "图注编号生成成功",
2230
+ "no-candidates": "没有符合条件的普通块级图片",
2231
+ confirm: "确认执行"
2232
+ },
2132
2233
  math: {
2133
2234
  text: "公式",
2134
2235
  insert: "插入 LaTex 公式",
@@ -2524,6 +2625,7 @@ var o = ["width", "height"], s = ["xlink:href", "fill"], c = /* @__PURE__ */ n({
2524
2625
  convertToNode: "转为块图片",
2525
2626
  convertToInline: "转为行内图片"
2526
2627
  },
2628
+ imageText: { edit: "编辑图文混排" },
2527
2629
  textBox: {
2528
2630
  background: "背景颜色",
2529
2631
  border: "边框设置",
@@ -0,0 +1,19 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ visible: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:visible": (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
9
+ visible: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{
14
+ "onUpdate:visible"?: (...args: any[]) => any;
15
+ }>, {
16
+ visible: boolean;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ visible: boolean;
3
+ initialAttrs?: Record<string, any> | null;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ confirm: (...args: any[]) => void;
7
+ "update:visible": (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onConfirm?: (...args: any[]) => any;
10
+ "onUpdate:visible"?: (...args: any[]) => any;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -762,6 +762,56 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
762
762
  "selection-required": string;
763
763
  "invalid-number": string;
764
764
  };
765
+ "figure-caption-numbering": {
766
+ text: string;
767
+ tip: string;
768
+ title: string;
769
+ fullscreen: string;
770
+ "exit-fullscreen": string;
771
+ readonly: string;
772
+ rule: string;
773
+ "rule-source": string;
774
+ "first-caption": string;
775
+ "manual-rule": string;
776
+ "source-caption": string;
777
+ template: string;
778
+ "fixed-prefix": string;
779
+ "start-sequence": string;
780
+ "sequence-width": string;
781
+ "caption-separator": string;
782
+ "separator-placeholder": string;
783
+ summary: string;
784
+ "candidate-count": string;
785
+ "empty-count": string;
786
+ "replace-count": string;
787
+ "append-count": string;
788
+ "warning-count": string;
789
+ preview: string;
790
+ order: string;
791
+ image: string;
792
+ "old-caption": string;
793
+ "new-caption": string;
794
+ status: string;
795
+ "edit-caption": string;
796
+ "save-caption": string;
797
+ "caption-required": string;
798
+ "empty-caption": string;
799
+ "status-keep": string;
800
+ "status-replace": string;
801
+ "status-append": string;
802
+ "status-empty": string;
803
+ "status-warning": string;
804
+ "warning-title": string;
805
+ "unparsed-label": string;
806
+ "error-no-caption": string;
807
+ "error-unrecognized": string;
808
+ "manual-confirm": string;
809
+ "no-changes": string;
810
+ "doc-changed": string;
811
+ success: string;
812
+ "no-candidates": string;
813
+ confirm: string;
814
+ };
765
815
  math: {
766
816
  text: string;
767
817
  insert: string;
@@ -1156,6 +1206,9 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
1156
1206
  convertToNode: string;
1157
1207
  convertToInline: string;
1158
1208
  };
1209
+ imageText: {
1210
+ edit: string;
1211
+ };
1159
1212
  textBox: {
1160
1213
  background: string;
1161
1214
  border: string;
@@ -2161,6 +2214,56 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
2161
2214
  "selection-required": string;
2162
2215
  "invalid-number": string;
2163
2216
  };
2217
+ "figure-caption-numbering": {
2218
+ text: string;
2219
+ tip: string;
2220
+ title: string;
2221
+ fullscreen: string;
2222
+ "exit-fullscreen": string;
2223
+ readonly: string;
2224
+ rule: string;
2225
+ "rule-source": string;
2226
+ "first-caption": string;
2227
+ "manual-rule": string;
2228
+ "source-caption": string;
2229
+ template: string;
2230
+ "fixed-prefix": string;
2231
+ "start-sequence": string;
2232
+ "sequence-width": string;
2233
+ "caption-separator": string;
2234
+ "separator-placeholder": string;
2235
+ summary: string;
2236
+ "candidate-count": string;
2237
+ "empty-count": string;
2238
+ "replace-count": string;
2239
+ "append-count": string;
2240
+ "warning-count": string;
2241
+ preview: string;
2242
+ order: string;
2243
+ image: string;
2244
+ "old-caption": string;
2245
+ "new-caption": string;
2246
+ status: string;
2247
+ "edit-caption": string;
2248
+ "save-caption": string;
2249
+ "caption-required": string;
2250
+ "empty-caption": string;
2251
+ "status-keep": string;
2252
+ "status-replace": string;
2253
+ "status-append": string;
2254
+ "status-empty": string;
2255
+ "status-warning": string;
2256
+ "warning-title": string;
2257
+ "unparsed-label": string;
2258
+ "error-no-caption": string;
2259
+ "error-unrecognized": string;
2260
+ "manual-confirm": string;
2261
+ "no-changes": string;
2262
+ "doc-changed": string;
2263
+ success: string;
2264
+ "no-candidates": string;
2265
+ confirm: string;
2266
+ };
2164
2267
  math: {
2165
2268
  text: string;
2166
2269
  insert: string;
@@ -2556,6 +2659,9 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
2556
2659
  convertToNode: string;
2557
2660
  convertToInline: string;
2558
2661
  };
2662
+ imageText: {
2663
+ edit: string;
2664
+ };
2559
2665
  textBox: {
2560
2666
  background: string;
2561
2667
  border: string;
@@ -3548,6 +3654,56 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
3548
3654
  "selection-required": string;
3549
3655
  "invalid-number": string;
3550
3656
  };
3657
+ "figure-caption-numbering": {
3658
+ text: string;
3659
+ tip: string;
3660
+ title: string;
3661
+ fullscreen: string;
3662
+ "exit-fullscreen": string;
3663
+ readonly: string;
3664
+ rule: string;
3665
+ "rule-source": string;
3666
+ "first-caption": string;
3667
+ "manual-rule": string;
3668
+ "source-caption": string;
3669
+ template: string;
3670
+ "fixed-prefix": string;
3671
+ "start-sequence": string;
3672
+ "sequence-width": string;
3673
+ "caption-separator": string;
3674
+ "separator-placeholder": string;
3675
+ summary: string;
3676
+ "candidate-count": string;
3677
+ "empty-count": string;
3678
+ "replace-count": string;
3679
+ "append-count": string;
3680
+ "warning-count": string;
3681
+ preview: string;
3682
+ order: string;
3683
+ image: string;
3684
+ "old-caption": string;
3685
+ "new-caption": string;
3686
+ status: string;
3687
+ "edit-caption": string;
3688
+ "save-caption": string;
3689
+ "caption-required": string;
3690
+ "empty-caption": string;
3691
+ "status-keep": string;
3692
+ "status-replace": string;
3693
+ "status-append": string;
3694
+ "status-empty": string;
3695
+ "status-warning": string;
3696
+ "warning-title": string;
3697
+ "unparsed-label": string;
3698
+ "error-no-caption": string;
3699
+ "error-unrecognized": string;
3700
+ "manual-confirm": string;
3701
+ "no-changes": string;
3702
+ "doc-changed": string;
3703
+ success: string;
3704
+ "no-candidates": string;
3705
+ confirm: string;
3706
+ };
3551
3707
  math: {
3552
3708
  text: string;
3553
3709
  insert: string;
@@ -3943,6 +4099,9 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
3943
4099
  convertToNode: string;
3944
4100
  convertToInline: string;
3945
4101
  };
4102
+ imageText: {
4103
+ edit: string;
4104
+ };
3946
4105
  textBox: {
3947
4106
  background: string;
3948
4107
  border: string;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { type EditorState } from '@tiptap/pm/state';
2
+ export declare const getImageTextTarget: (state: EditorState) => {
3
+ node: import("@tiptap/pm/model").Node;
4
+ position: number;
5
+ };
@@ -1,9 +1,9 @@
1
- declare var __VLS_401: {
1
+ declare var __VLS_411: {
2
2
  nodeType: any;
3
3
  nodeAttrs: any;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
- bubble_menu?: (props: typeof __VLS_401) => any;
6
+ bubble_menu?: (props: typeof __VLS_411) => 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>;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -5,15 +5,15 @@ declare var __VLS_172: {
5
5
  toolbarMode: string;
6
6
  }, __VLS_401: {
7
7
  toolbarMode: string;
8
- }, __VLS_463: {
8
+ }, __VLS_468: {
9
9
  toolbarMode: string;
10
- }, __VLS_505: {
10
+ }, __VLS_510: {
11
11
  toolbarMode: string;
12
- }, __VLS_507: {
12
+ }, __VLS_512: {
13
13
  toolbarMode: string;
14
- }, __VLS_509: {
14
+ }, __VLS_514: {
15
15
  toolbarMode: string;
16
- }, __VLS_511: {
16
+ }, __VLS_516: {
17
17
  toolbarMode: string;
18
18
  };
19
19
  type __VLS_Slots = {} & {
@@ -23,15 +23,15 @@ type __VLS_Slots = {} & {
23
23
  } & {
24
24
  toolbar_table?: (props: typeof __VLS_401) => any;
25
25
  } & {
26
- toolbar_tools?: (props: typeof __VLS_463) => any;
26
+ toolbar_tools?: (props: typeof __VLS_468) => any;
27
27
  } & {
28
- toolbar_view?: (props: typeof __VLS_505) => any;
28
+ toolbar_view?: (props: typeof __VLS_510) => any;
29
29
  } & {
30
- toolbar_review?: (props: typeof __VLS_507) => any;
30
+ toolbar_review?: (props: typeof __VLS_512) => any;
31
31
  } & {
32
- toolbar_extension?: (props: typeof __VLS_509) => any;
32
+ toolbar_extension?: (props: typeof __VLS_514) => any;
33
33
  } & {
34
- toolbar_enhancement?: (props: typeof __VLS_511) => any;
34
+ toolbar_enhancement?: (props: typeof __VLS_516) => any;
35
35
  };
36
36
  declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
37
37
  menus: {
@@ -5,15 +5,15 @@ declare var __VLS_173: {
5
5
  toolbarMode: string;
6
6
  }, __VLS_402: {
7
7
  toolbarMode: string;
8
- }, __VLS_464: {
8
+ }, __VLS_469: {
9
9
  toolbarMode: string;
10
- }, __VLS_506: {
10
+ }, __VLS_511: {
11
11
  toolbarMode: string;
12
- }, __VLS_508: {
12
+ }, __VLS_513: {
13
13
  toolbarMode: string;
14
- }, __VLS_510: {
14
+ }, __VLS_515: {
15
15
  toolbarMode: string;
16
- }, __VLS_512: {
16
+ }, __VLS_517: {
17
17
  toolbarMode: string;
18
18
  };
19
19
  type __VLS_Slots = {} & {
@@ -23,15 +23,15 @@ type __VLS_Slots = {} & {
23
23
  } & {
24
24
  toolbar_table?: (props: typeof __VLS_402) => any;
25
25
  } & {
26
- toolbar_tools?: (props: typeof __VLS_464) => any;
26
+ toolbar_tools?: (props: typeof __VLS_469) => any;
27
27
  } & {
28
- toolbar_view?: (props: typeof __VLS_506) => any;
28
+ toolbar_view?: (props: typeof __VLS_511) => any;
29
29
  } & {
30
- toolbar_review?: (props: typeof __VLS_508) => any;
30
+ toolbar_review?: (props: typeof __VLS_513) => any;
31
31
  } & {
32
- toolbar_extension?: (props: typeof __VLS_510) => any;
32
+ toolbar_extension?: (props: typeof __VLS_515) => any;
33
33
  } & {
34
- toolbar_enhancement?: (props: typeof __VLS_512) => any;
34
+ toolbar_enhancement?: (props: typeof __VLS_517) => any;
35
35
  };
36
36
  declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
37
37
  menus: {