@agilehub/agile-editor 1.8.3 → 1.8.6

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.
Files changed (122) hide show
  1. package/dist/agile-editor.css +1 -1
  2. package/dist/agile-editor.js +25442 -17377
  3. package/dist/{i18n-E7gk29NK.js → i18n-BZGLJU1q.js} +511 -620
  4. package/dist/types/components/editor/callout-dialog.vue.d.ts +48 -0
  5. package/dist/types/components/editor/callout-gradient-editor.vue.d.ts +12 -0
  6. package/dist/types/components/editor/figure-caption-numbering-dialog.vue.d.ts +11 -0
  7. package/dist/types/components/editor/index.vue.d.ts +2 -2
  8. package/dist/types/components/editor/table-background-control.vue.d.ts +11 -0
  9. package/dist/types/components/editor/table-cell-properties.vue.d.ts +8 -0
  10. package/dist/types/components/editor/table-property-section.vue.d.ts +22 -0
  11. package/dist/types/components/index.d.ts +2 -0
  12. package/dist/types/components/index.vue.d.ts +945 -21
  13. package/dist/types/components/menus/bubble/image/replace.vue.d.ts +3 -0
  14. package/dist/types/components/menus/bubble/image/size.vue.d.ts +3 -0
  15. package/dist/types/components/menus/bubble/link/edit.vue.d.ts +3 -0
  16. package/dist/types/components/menus/bubble/menus.vue.d.ts +2 -2
  17. package/dist/types/components/menus/toolbar/tools/bubble-note-editor.vue.d.ts +52 -0
  18. package/dist/types/components/menus/toolbar/tools/bubble-note-image.d.ts +3 -0
  19. package/dist/types/components/menus/toolbar/tools/bubble-note.vue.d.ts +9 -0
  20. package/dist/types/components/menus/toolbar/tools/figure-caption-numbering.vue.d.ts +15 -1
  21. package/dist/types/components/picker/color-panel.vue.d.ts +37 -0
  22. package/dist/types/components/picker/color.vue.d.ts +9 -0
  23. package/dist/types/components/statusbar/countdown.vue.d.ts +2 -2
  24. package/dist/types/components/toolbar/classic.vue.d.ts +10 -10
  25. package/dist/types/components/toolbar/ribbon.vue.d.ts +10 -10
  26. package/dist/types/composables/i18n.d.ts +942 -18
  27. package/dist/types/extensions/bubble-note-content.d.ts +48 -0
  28. package/dist/types/extensions/bubble-note-extensions.d.ts +12 -0
  29. package/dist/types/extensions/bubble-note-render.d.ts +1 -0
  30. package/dist/types/extensions/bubble-note.d.ts +5 -0
  31. package/dist/types/extensions/callout/index.d.ts +3 -3
  32. package/dist/types/extensions/callout/title-view.vue.d.ts +93 -0
  33. package/dist/types/extensions/callout/title.d.ts +7 -0
  34. package/dist/types/extensions/code-block/index.d.ts +8 -0
  35. package/dist/types/extensions/columns/schema.d.ts +6 -1
  36. package/dist/types/extensions/courseware/reader-visibility.d.ts +6 -0
  37. package/dist/types/extensions/file/index.d.ts +4 -0
  38. package/dist/types/extensions/image/automatic-attributes.d.ts +6 -0
  39. package/dist/types/extensions/image/paste.d.ts +3 -0
  40. package/dist/types/extensions/indent.d.ts +1 -0
  41. package/dist/types/extensions/insert-newline.d.ts +2 -3
  42. package/dist/types/extensions/math/index.d.ts +2 -1
  43. package/dist/types/extensions/smart-sheet/model.d.ts +5 -0
  44. package/dist/types/extensions/table-column-resize.d.ts +15 -0
  45. package/dist/types/extensions/table.d.ts +29 -0
  46. package/dist/types/extensions/timeline/content.vue.d.ts +1 -0
  47. package/dist/types/extensions/timeline/index.d.ts +3 -6
  48. package/dist/types/extensions/timeline/model.d.ts +18 -15
  49. package/dist/types/extensions/trailing-node.d.ts +14 -0
  50. package/dist/types/i18n.d.ts +942 -18
  51. package/dist/types/options/config/callout-assets.d.ts +3 -0
  52. package/dist/types/options/config/callout-color-picker.d.ts +13 -0
  53. package/dist/types/options/config/callout-templates.d.ts +66 -0
  54. package/dist/types/options/config/index.d.ts +12 -0
  55. package/dist/types/options/config/table-color-picker.d.ts +6 -0
  56. package/dist/types/utils/base64url.d.ts +2 -0
  57. package/dist/types/utils/block-menu.d.ts +1 -0
  58. package/dist/types/utils/bookmark-attributes.d.ts +2 -0
  59. package/dist/types/utils/bubble-note-selection.d.ts +7 -0
  60. package/dist/types/utils/callout.d.ts +204 -0
  61. package/dist/types/utils/caption-numbering.d.ts +62 -0
  62. package/dist/types/utils/code-block-indent.d.ts +15 -0
  63. package/dist/types/utils/column-width.d.ts +9 -0
  64. package/dist/types/utils/document-attributes.d.ts +3 -0
  65. package/dist/types/utils/document-import.d.ts +4 -0
  66. package/dist/types/utils/document-loading.d.ts +14 -0
  67. package/dist/types/utils/document-save.d.ts +5 -0
  68. package/dist/types/utils/editor-scroll.d.ts +1 -0
  69. package/dist/types/utils/editor-view.d.ts +12 -0
  70. package/dist/types/utils/figure-caption-numbering.d.ts +11 -55
  71. package/dist/types/utils/figure-caption-visibility.d.ts +8 -0
  72. package/dist/types/utils/file.d.ts +5 -2
  73. package/dist/types/utils/font-size.d.ts +2 -0
  74. package/dist/types/utils/formula-size.d.ts +23 -0
  75. package/dist/types/utils/iframe.d.ts +5 -0
  76. package/dist/types/utils/image-display-size.d.ts +13 -0
  77. package/dist/types/utils/image-file-caption.d.ts +11 -0
  78. package/dist/types/utils/image-replacement.d.ts +31 -0
  79. package/dist/types/utils/image-source.d.ts +2 -0
  80. package/dist/types/utils/inline-style.d.ts +9 -0
  81. package/dist/types/utils/insert-newline-position.d.ts +23 -0
  82. package/dist/types/utils/link.d.ts +5 -0
  83. package/dist/types/utils/player.d.ts +12 -4
  84. package/dist/types/utils/pointer-hover-scheduler.d.ts +9 -0
  85. package/dist/types/utils/selection.d.ts +2 -1
  86. package/dist/types/utils/source-attributes.d.ts +7 -0
  87. package/dist/types/utils/style-target.d.ts +4 -0
  88. package/dist/types/utils/table-appearance.d.ts +33 -0
  89. package/dist/types/utils/table-attributes.d.ts +14 -0
  90. package/dist/types/utils/table-border.d.ts +38 -0
  91. package/dist/types/utils/table-caption-numbering.d.ts +19 -0
  92. package/dist/types/utils/table-caption-visibility.d.ts +32 -0
  93. package/dist/types/utils/table-column-resize.d.ts +10 -0
  94. package/dist/types/utils/table-layout.d.ts +10 -0
  95. package/dist/types/utils/table-properties.d.ts +39 -0
  96. package/dist/types/utils/table-reset.d.ts +23 -0
  97. package/dist/types/utils/table-row-resize.d.ts +8 -0
  98. package/dist/types/utils/table-selection.d.ts +18 -0
  99. package/dist/types/utils/thousands-separator.d.ts +1 -0
  100. package/dist/types/utils/tracking-attributes.d.ts +8 -0
  101. package/dist/types/utils/video-frame.d.ts +1 -0
  102. package/dist/types/utils/video-skin.d.ts +1 -0
  103. package/dist/{viewer-DmoW4doo.js → viewer-Bg-htPGM.js} +2 -2
  104. package/docs/FORMATTING_TEMPLATES.md +253 -253
  105. package/docs/FORMATTING_TEMPLATE_BUSINESS_GUIDE.md +536 -536
  106. package/docs/SECONDARY_DEVELOPMENT.md +13 -9
  107. package/docs/features.md +1 -1
  108. package/docs/superpowers/plans/2026-11-27-table-reset-controls.md +185 -0
  109. package/docs/superpowers/plans/2026-11-28-bubble-note-rich-content.md +101 -0
  110. package/docs/superpowers/plans/2026-11-28-image-replace.md +190 -0
  111. package/docs/superpowers/plans/2026-11-28-table-image-resize-preview.md +121 -0
  112. package/docs/superpowers/plans/2026-11-28-table-property-category-actions.md +192 -0
  113. package/docs/superpowers/specs/2026-11-27-table-reset-controls-design.md +66 -0
  114. package/docs/superpowers/specs/2026-11-28-bubble-note-rich-content-design.md +64 -0
  115. package/docs/superpowers/specs/2026-11-28-image-replace-design.md +40 -0
  116. package/docs/superpowers/specs/2026-11-28-table-image-resize-preview-design.md +30 -0
  117. package/docs/superpowers/specs/2026-11-28-table-property-category-actions-design.md +63 -0
  118. package/package.json +5 -5
  119. package/dist/types/components/menus/bubble/callout/background.vue.d.ts +0 -7
  120. package/dist/types/components/menus/bubble/callout/emoji-remove.vue.d.ts +0 -7
  121. /package/dist/types/components/{menus/bubble/callout/builtin.vue.d.ts → editor/table-cell-context-menu.vue.d.ts} +0 -0
  122. /package/dist/types/components/{menus/bubble/image/open.vue.d.ts → editor/table-quick-toolbar.vue.d.ts} +0 -0
@@ -0,0 +1,48 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ visible: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ attrs: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
10
+ titleEnabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ titleHasText: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ confirm: (...args: any[]) => void;
20
+ "update:visible": (...args: any[]) => void;
21
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
22
+ visible: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ attrs: {
27
+ type: ObjectConstructor;
28
+ default: () => {};
29
+ };
30
+ titleEnabled: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ titleHasText: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }>> & Readonly<{
39
+ onConfirm?: (...args: any[]) => any;
40
+ "onUpdate:visible"?: (...args: any[]) => any;
41
+ }>, {
42
+ attrs: Record<string, any>;
43
+ visible: boolean;
44
+ titleEnabled: boolean;
45
+ titleHasText: boolean;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { type CalloutGradient } from '@/utils/callout';
2
+ type __VLS_Props = {
3
+ modelValue: CalloutGradient;
4
+ maxStops?: number;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:modelValue": (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ "onUpdate:modelValue"?: (...args: any[]) => any;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -3,6 +3,11 @@ declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractProp
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
5
5
  };
6
+ captionType: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ validator: (value: string) => boolean;
10
+ };
6
11
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
12
  "update:visible": (...args: any[]) => void;
8
13
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
@@ -10,10 +15,16 @@ declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractProp
10
15
  type: BooleanConstructor;
11
16
  default: boolean;
12
17
  };
18
+ captionType: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ validator: (value: string) => boolean;
22
+ };
13
23
  }>> & Readonly<{
14
24
  "onUpdate:visible"?: (...args: any[]) => any;
15
25
  }>, {
16
26
  visible: boolean;
27
+ captionType: string;
17
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
29
  declare const _default: typeof __VLS_export;
19
30
  export default _default;
@@ -1,9 +1,9 @@
1
- declare var __VLS_28: {
1
+ declare var __VLS_38: {
2
2
  nodeType: any;
3
3
  nodeAttrs: any;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
- bubble_menu?: (props: typeof __VLS_28) => any;
6
+ bubble_menu?: (props: typeof __VLS_38) => 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,11 @@
1
+ import { type TableBackground } from '@/utils/table-appearance';
2
+ type __VLS_Props = {
3
+ styleText: string | null;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ apply: (background: TableBackground) => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onApply?: (background: TableBackground) => any;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ showTitle?: boolean;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
+ showTitle: boolean;
6
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ save: () => any;
10
+ clear: () => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSave?: () => any;
13
+ onClear?: () => any;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -10,6 +10,8 @@ import AgileTooltip from './tooltip.vue';
10
10
  /** 安装插件时可覆盖的默认编辑器配置;组件 props 优先于此处配置。 */
11
11
  export type AgileEditorOptions = Partial<typeof defaultOptions>;
12
12
  export type { FormattingElementRule, FormattingOptions, FormattingTemplate, FormattingTemplateRules, FormattingStyle, FormattingTableRule, FormattingFigureRule, FormattingListRule, } from '../utils/document-formatting';
13
+ export type { CalloutTemplatePalette, CalloutTemplatePreset, } from '../options/config/callout-templates';
14
+ export { defaultCalloutTemplatePalettes, defaultCalloutTemplates, } from '../options/config/callout-templates';
13
15
  export type { PreviewAnnotation, PreviewAnnotationSnapshot, PreviewAnnotationTool, PreviewAnnotationsSaveHandler, PreviewDrawingState, PreviewDrawTool, PreviewPageSettings, PreviewPoint, PreviewStrokeStyle, } from './preview-toolbar/types';
14
16
  declare const useAgileEditor: {
15
17
  /**