@stll/folio-vue 0.25.0 → 0.26.1

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 (117) hide show
  1. package/dist/SplitCellDialog-DfMw2Ev2.cjs +15 -0
  2. package/dist/{SplitCellDialog-CSqbtDum.js → SplitCellDialog-bNeugz_3.js} +1737 -1757
  3. package/dist/{ListButtons-BeELtp_-.js → StylePicker-DfIQUq6G.js} +1158 -1164
  4. package/dist/StylePicker-ynX3GzFu.cjs +4 -0
  5. package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +4 -10
  6. package/dist/components/DocxEditor/pagedEditorRef.d.ts +1 -1
  7. package/dist/components/DocxEditor/types.d.ts +18 -9
  8. package/dist/components/DocxEditor.vue.d.ts +7 -4
  9. package/dist/components/InlineHeaderFooterEditor.vue.d.ts +2 -2
  10. package/dist/components/OutlineToggleButton.vue.d.ts +21 -0
  11. package/dist/components/ReviewControls.vue.d.ts +2 -2
  12. package/dist/components/Toolbar.vue.d.ts +9 -9
  13. package/dist/components/UnifiedSidebar.vue.d.ts +2 -2
  14. package/dist/components/dialogs/FindReplaceDialog.vue.d.ts +3 -11
  15. package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +2 -2
  16. package/dist/components/dialogs/HyperlinkDialog.vue.d.ts +2 -2
  17. package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +2 -2
  18. package/dist/components/dialogs/PageSetupDialog.vue.d.ts +2 -2
  19. package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +2 -2
  20. package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +2 -2
  21. package/dist/components/dialogs/WatermarkDialog.vue.d.ts +2 -2
  22. package/dist/components/sidebar/CommentCard.vue.d.ts +2 -2
  23. package/dist/components/sidebar/TrackedChangeCard.vue.d.ts +2 -2
  24. package/dist/components/sidebar/cardStyles.d.ts +1 -1
  25. package/dist/components/tableStylePresets.d.ts +1 -1
  26. package/dist/components/ui/Button.vue.d.ts +1 -1
  27. package/dist/components/ui/FontSizePicker.vue.d.ts +1 -1
  28. package/dist/components/ui/HorizontalRuler.vue.d.ts +2 -2
  29. package/dist/components/ui/HyperlinkPopup.vue.d.ts +4 -4
  30. package/dist/components/ui/Input.vue.d.ts +1 -1
  31. package/dist/components/ui/ListButtons.vue.d.ts +1 -1
  32. package/dist/components/ui/OutlineRail.vue.d.ts +1 -1
  33. package/dist/components/ui/TableMoreDropdown.vue.d.ts +1 -1
  34. package/dist/components/ui/TableToolbar.vue.d.ts +1 -1
  35. package/dist/components/ui/VerticalRuler.vue.d.ts +2 -2
  36. package/dist/components/ui/icon-paths.json.d.ts +18 -6
  37. package/dist/composables/useAutoSave.d.ts +1 -1
  38. package/dist/composables/useClipboard.d.ts +2 -2
  39. package/dist/composables/useCommentLifecycle.d.ts +1 -1
  40. package/dist/composables/useCommentManagement.d.ts +1 -1
  41. package/dist/composables/useContextMenus.d.ts +2 -2
  42. package/dist/composables/useDocxEditor.d.ts +4 -4
  43. package/dist/composables/useDocxEditorRefApi.d.ts +6 -4
  44. package/dist/composables/useFindReplace.d.ts +36 -18
  45. package/dist/composables/useFixedDropdown.d.ts +1 -1
  46. package/dist/composables/useFormattingActions.d.ts +1 -1
  47. package/dist/composables/useHistory.d.ts +1 -1
  48. package/dist/composables/useHyperlinkManagement.d.ts +1 -1
  49. package/dist/composables/useImageActions.d.ts +1 -1
  50. package/dist/composables/useOutlineSidebar.d.ts +1 -1
  51. package/dist/composables/usePageSetupControls.d.ts +1 -1
  52. package/dist/composables/usePagesPointer.d.ts +3 -3
  53. package/dist/composables/useParagraphStyleOptions.d.ts +1 -1
  54. package/dist/composables/useSelectionHighlight.d.ts +1 -1
  55. package/dist/composables/useSelectionSync.d.ts +1 -1
  56. package/dist/composables/useToolbarDropdowns.d.ts +1 -1
  57. package/dist/composables/useToolbarFontSize.d.ts +1 -1
  58. package/dist/composables/useTrackedChanges.d.ts +1 -1
  59. package/dist/composables/useVisualLineNavigation.d.ts +1 -1
  60. package/dist/composables/useZoom.d.ts +1 -1
  61. package/dist/composables.cjs +2 -2
  62. package/dist/composables.js +65 -72
  63. package/dist/dialogs.cjs +1 -1
  64. package/dist/dialogs.js +1 -2
  65. package/dist/folio-vue.css +1 -1
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.d.ts +5 -4
  68. package/dist/index.js +4816 -4831
  69. package/dist/messages/ar.cjs +1 -1
  70. package/dist/messages/ar.js +1 -2
  71. package/dist/messages/cs.cjs +1 -1
  72. package/dist/messages/cs.js +1 -2
  73. package/dist/messages/de.cjs +1 -1
  74. package/dist/messages/de.js +1 -2
  75. package/dist/messages/en.cjs +1 -1
  76. package/dist/messages/en.js +1 -2
  77. package/dist/messages/es.cjs +1 -1
  78. package/dist/messages/es.js +1 -2
  79. package/dist/messages/et.cjs +1 -1
  80. package/dist/messages/et.js +1 -2
  81. package/dist/messages/fr.cjs +1 -1
  82. package/dist/messages/fr.js +1 -2
  83. package/dist/messages/he.cjs +1 -1
  84. package/dist/messages/he.js +1 -2
  85. package/dist/messages/hi.cjs +1 -1
  86. package/dist/messages/hi.js +1 -2
  87. package/dist/messages/hu.cjs +1 -1
  88. package/dist/messages/hu.js +1 -2
  89. package/dist/messages/locales.js +1 -2
  90. package/dist/messages/lt.cjs +1 -1
  91. package/dist/messages/lt.js +1 -2
  92. package/dist/messages/lv.cjs +1 -1
  93. package/dist/messages/lv.js +1 -2
  94. package/dist/messages/pl.cjs +1 -1
  95. package/dist/messages/pl.js +1 -2
  96. package/dist/messages/pt-BR.cjs +1 -1
  97. package/dist/messages/pt-BR.js +1 -2
  98. package/dist/messages/sk.cjs +1 -1
  99. package/dist/messages/sk.js +1 -2
  100. package/dist/messages/tr.cjs +1 -1
  101. package/dist/messages/tr.js +1 -2
  102. package/dist/messages/zh-CN.cjs +1 -1
  103. package/dist/messages/zh-CN.js +1 -2
  104. package/dist/{rolldown-runtime-C6qsp3rV.cjs → rolldown-runtime-CYJQrBu7.cjs} +1 -1
  105. package/dist/ui.cjs +1 -1
  106. package/dist/ui.d.ts +1 -1
  107. package/dist/ui.js +21 -27
  108. package/dist/useZoom-Bwnae1jX.cjs +1 -0
  109. package/dist/useZoom-CX0mrPQY.js +996 -0
  110. package/dist/utils/viewportPosition.d.ts +1 -1
  111. package/package.json +13 -13
  112. package/dist/ListButtons-B8HxA64I.cjs +0 -4
  113. package/dist/SplitCellDialog-DzKBu09z.cjs +0 -15
  114. package/dist/useFindReplace-BbW0xWo7.js +0 -74
  115. package/dist/useFindReplace-neQmDh2i.cjs +0 -1
  116. package/dist/useZoom-B1miNAf_.cjs +0 -1
  117. package/dist/useZoom-Bw5gp69V.js +0 -887
@@ -8,6 +8,7 @@ type __VLS_Props = {
8
8
  }>;
9
9
  };
10
10
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ remove: () => any;
11
12
  close: () => any;
12
13
  submit: (data: {
13
14
  url?: string;
@@ -15,8 +16,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
15
16
  displayText: string;
16
17
  tooltip: string;
17
18
  }) => any;
18
- remove: () => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onRemove?: () => any;
20
21
  onClose?: () => any;
21
22
  onSubmit?: (data: {
22
23
  url?: string;
@@ -24,7 +25,6 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
24
25
  displayText: string;
25
26
  tooltip: string;
26
27
  }) => any;
27
- onRemove?: () => any;
28
28
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -19,11 +19,11 @@ type __VLS_Props = {
19
19
  currentData?: ImagePositionData;
20
20
  };
21
21
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
- close: () => any;
23
22
  apply: (data: ImagePositionData) => any;
23
+ close: () => any;
24
24
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onClose?: () => any;
26
25
  onApply?: (data: ImagePositionData) => any;
26
+ onClose?: () => any;
27
27
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -4,11 +4,11 @@ type __VLS_Props = {
4
4
  sectionProperties?: SectionProperties | null;
5
5
  };
6
6
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- close: () => any;
8
7
  apply: (props: Partial<SectionProperties>) => any;
8
+ close: () => any;
9
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onClose?: () => any;
11
10
  onApply?: (props: Partial<SectionProperties>) => any;
11
+ onClose?: () => any;
12
12
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -2,11 +2,11 @@ type __VLS_Props = {
2
2
  isOpen: boolean;
3
3
  };
4
4
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
- close: () => any;
6
5
  apply: (value: number) => any;
6
+ close: () => any;
7
7
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onClose?: () => any;
9
8
  onApply?: (value: number) => any;
9
+ onClose?: () => any;
10
10
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  export default _default;
@@ -5,11 +5,11 @@ type __VLS_Props = {
5
5
  currentProps?: TableProperties;
6
6
  };
7
7
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
- close: () => any;
9
8
  apply: (props: TablePropertiesCommand) => any;
9
+ close: () => any;
10
10
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onClose?: () => any;
12
11
  onApply?: (props: TablePropertiesCommand) => any;
12
+ onClose?: () => any;
13
13
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -4,11 +4,11 @@ type __VLS_Props = {
4
4
  currentWatermark?: Watermark | undefined;
5
5
  };
6
6
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- close: () => any;
8
7
  apply: (watermark: Watermark | undefined) => any;
8
+ close: () => any;
9
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onClose?: () => any;
11
10
  onApply?: (watermark: Watermark | undefined) => any;
11
+ onClose?: () => any;
12
12
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -5,14 +5,14 @@ type __VLS_Props = {
5
5
  expanded: boolean;
6
6
  };
7
7
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
- click: () => any;
9
8
  reply: (commentId: number, text: string) => any;
9
+ click: () => any;
10
10
  delete: (commentId: number) => any;
11
11
  resolve: (commentId: number) => any;
12
12
  unresolve: (commentId: number) => any;
13
13
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onClick?: () => any;
15
14
  onReply?: (commentId: number, text: string) => any;
15
+ onClick?: () => any;
16
16
  onDelete?: (commentId: number) => any;
17
17
  onResolve?: (commentId: number) => any;
18
18
  onUnresolve?: (commentId: number) => any;
@@ -6,13 +6,13 @@ type __VLS_Props = {
6
6
  replies: Comment[];
7
7
  };
8
8
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
- click: () => any;
10
9
  reply: (revisionId: number, text: string) => any;
10
+ click: () => any;
11
11
  "accept-by-id": (revisionId: number) => any;
12
12
  "reject-by-id": (revisionId: number) => any;
13
13
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onClick?: () => any;
15
14
  onReply?: (revisionId: number, text: string) => any;
15
+ onClick?: () => any;
16
16
  "onAccept-by-id"?: (revisionId: number) => any;
17
17
  "onReject-by-id"?: (revisionId: number) => any;
18
18
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- export { CARD_STYLE_COLLAPSED, CARD_STYLE_EXPANDED } from '../../utils/cardStyles';
1
+ export { CARD_STYLE_COLLAPSED, CARD_STYLE_EXPANDED, } from '../../utils/cardStyles';
@@ -1,5 +1,5 @@
1
- import { TableCellBorderCommandSpec } from '@stll/folio-core/prosemirror';
2
1
  import { CSSProperties } from 'vue';
2
+ import { TableCellBorderCommandSpec } from '@stll/folio-core/prosemirror';
3
3
  /**
4
4
  * One preset border: the command spec `applyTableStyle` takes, not a copy of
5
5
  * its shape, so a preset read off a document style round-trips whatever
@@ -15,8 +15,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
15
15
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
16
  onClick?: (evt: MouseEvent) => any;
17
17
  }>, {
18
- size: ButtonSize;
19
18
  variant: ButtonVariant;
19
+ size: ButtonSize;
20
20
  className: string;
21
21
  disabled: boolean;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- export { halfPointsToPoints, pointsToHalfPoints } from '@stll/folio-core/utils/units';
1
+ export { halfPointsToPoints, pointsToHalfPoints, } from '@stll/folio-core/utils/units';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: import('vue').DefineComponent<{
@@ -29,9 +29,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
29
29
  indentLeft: number;
30
30
  indentRight: number;
31
31
  hangingIndent: boolean;
32
- zoom: number;
33
- unit: "inch" | "cm";
32
+ unit: "cm" | "inch";
34
33
  editable: boolean;
34
+ zoom: number;
35
35
  firstLineIndent: number;
36
36
  showFirstLineIndent: boolean;
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -5,16 +5,16 @@ type __VLS_Props = {
5
5
  readOnly?: boolean;
6
6
  };
7
7
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
- close: () => any;
9
- copy: (href: string) => any;
10
8
  remove: () => any;
11
9
  edit: (displayText: string, href: string) => any;
10
+ close: () => any;
11
+ copy: (href: string) => any;
12
12
  navigate: (href: string) => any;
13
13
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onClose?: () => any;
15
- onCopy?: (href: string) => any;
16
14
  onRemove?: () => any;
17
15
  onEdit?: (displayText: string, href: string) => any;
16
+ onClose?: () => any;
17
+ onCopy?: (href: string) => any;
18
18
  onNavigate?: (href: string) => any;
19
19
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
@@ -11,7 +11,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
11
11
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
12
  "onUpdate:modelValue"?: (value: string) => any;
13
13
  }>, {
14
- size: "sm" | "default" | "lg";
14
+ size: "default" | "sm" | "lg";
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  export default _default;
@@ -25,6 +25,6 @@ declare const __VLS_export: import('vue').DefineComponent<{
25
25
  "onNumbered-list"?: () => any;
26
26
  }>, {
27
27
  disabled: boolean;
28
- canOutdent: boolean;
29
28
  showIndentButtons: boolean;
29
+ canOutdent: boolean;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -13,7 +13,7 @@ type __VLS_Props = {
13
13
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
14
  ariaLabel: string;
15
15
  activeId: string | null;
16
- presentation: "panel" | "rail";
16
+ presentation: "rail" | "panel";
17
17
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -45,7 +45,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
45
45
  rowCount: number;
46
46
  canSplit: boolean;
47
47
  canMerge: boolean;
48
- currentJustification: "left" | "center" | "right";
48
+ currentJustification: "center" | "left" | "right";
49
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
50
  declare const _default: typeof __VLS_export;
51
51
  export default _default;
@@ -1,5 +1,5 @@
1
- import { EditorView } from 'prosemirror-view';
2
1
  import { Command } from 'prosemirror-state';
2
+ import { EditorView } from 'prosemirror-view';
3
3
  import { Theme } from '@stll/folio-core/types/document';
4
4
  /**
5
5
  * A toolbar command factory: called with whatever arguments the specific
@@ -12,9 +12,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
12
12
  "onTop-margin-change"?: (twips: number) => any;
13
13
  "onBottom-margin-change"?: (twips: number) => any;
14
14
  }>, {
15
- zoom: number;
16
- unit: "inch" | "cm";
15
+ unit: "cm" | "inch";
17
16
  editable: boolean;
17
+ zoom: number;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
@@ -17,7 +17,9 @@ declare const _default: {
17
17
  "format_bold": [
18
18
  "M272-200v-560h221q65 0 120 40t55 111q0 51-23 78.5T602-491q25 11 55.5 41t30.5 90q0 89-65 124.5T501-200H272Zm121-112h104q48 0 58.5-24.5T566-372q0-11-10.5-35.5T494-432H393v120Zm0-228h93q33 0 48-17t15-38q0-24-17-39t-44-15h-95v109Z"
19
19
  ],
20
- "format_italic": ["M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z"],
20
+ "format_italic": [
21
+ "M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z"
22
+ ],
21
23
  "format_underlined": [
22
24
  "M200-120v-80h560v80H200Zm123-223q-56-63-56-167v-330h103v336q0 56 28 91t82 35q54 0 82-35t28-91v-336h103v330q0 104-56 167t-157 63q-101 0-157-63Z"
23
25
  ],
@@ -216,17 +218,27 @@ declare const _default: {
216
218
  "line_weight": [
217
219
  "M120-160v-40h720v40H120Zm0-120v-80h720v80H120Zm0-160v-120h720v120H120Zm0-200v-160h720v160H120Z"
218
220
  ],
219
- "keyboard_arrow_up": ["M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z"],
220
- "keyboard_arrow_down": ["M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"],
221
- "keyboard_arrow_left": ["M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"],
222
- "keyboard_arrow_right": ["M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"],
221
+ "keyboard_arrow_up": [
222
+ "M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z"
223
+ ],
224
+ "keyboard_arrow_down": [
225
+ "M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"
226
+ ],
227
+ "keyboard_arrow_left": [
228
+ "M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"
229
+ ],
230
+ "keyboard_arrow_right": [
231
+ "M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"
232
+ ],
223
233
  "more_vert": [
224
234
  "M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"
225
235
  ],
226
236
  "page_break": [
227
237
  "M120-440v-80h160v80H120Zm200 0v-80h160v80H320Zm200 0v-80h160v80H520Zm200 0v-80h120v80H720ZM240-120q-33 0-56.5-23.5T160-200v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-120H240Zm-80-520v-120q0-33 23.5-56.5T240-840h480q33 0 56.5 23.5T800-760v120h-80v-120H240v120h-80Z"
228
238
  ],
229
- "arrow_back": ["M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"],
239
+ "arrow_back": [
240
+ "M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"
241
+ ],
230
242
  "branding_watermark": [
231
243
  "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm320-60q66 0 113-37t47-93q0-29-13-58t-34-55q-21-26-50-49t-50-31q-21 8-50 31t-50 49q-21 26-34 55t-13 58q0 56 47 93t140 37Z"
232
244
  ],
@@ -1,5 +1,5 @@
1
1
  import { MaybeRef, Ref } from 'vue';
2
- import { formatLastSaveTime, getAutoSaveStatusLabel, getAutoSaveStorageSize, formatStorageSize, isAutoSaveSupported, AutoSaveStatus, SavedDocumentData } from '@stll/folio-core/managers/AutoSaveManager';
2
+ import { AutoSaveStatus, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported, SavedDocumentData } from '@stll/folio-core/managers/AutoSaveManager';
3
3
  import { Document } from '@stll/folio-core/types/document';
4
4
  export type { AutoSaveStatus, SavedDocumentData };
5
5
  export { formatLastSaveTime, getAutoSaveStatusLabel, getAutoSaveStorageSize, formatStorageSize, isAutoSaveSupported, };
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { runsToClipboardContent, ParsedClipboardContent } from '@stll/folio-core/utils/clipboard';
3
- import { getSelectionRuns, createSelectionFromDOM, ClipboardSelection } from '@stll/folio-core/managers/ClipboardManager';
2
+ import { ClipboardSelection, createSelectionFromDOM, getSelectionRuns } from '@stll/folio-core/managers/ClipboardManager';
3
+ import { ParsedClipboardContent, runsToClipboardContent } from '@stll/folio-core/utils/clipboard';
4
4
  export { getSelectionRuns, createSelectionFromDOM, runsToClipboardContent };
5
5
  export type { ClipboardSelection };
6
6
  export type UseClipboardOptions = {
@@ -1,5 +1,5 @@
1
- import { Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref } from 'vue';
3
3
  import { Comment } from '@stll/folio-core/types/content';
4
4
  import { CommentMarkRange } from './commentMarks';
5
5
  export type FloatingCommentButton = {
@@ -1,6 +1,6 @@
1
+ import { EditorView } from 'prosemirror-view';
1
2
  import { ComputedRef, Ref } from 'vue';
2
3
  import { FolioEditor } from '@stll/folio-core/controller/folioEditor';
3
- import { EditorView } from 'prosemirror-view';
4
4
  import { Comment } from '@stll/folio-core/types/content';
5
5
  import { Document } from '@stll/folio-core/types/document';
6
6
  export type UseCommentManagementOptions = {
@@ -1,10 +1,10 @@
1
- import { ComputedRef, Ref, ShallowRef, VNodeChild } from 'vue';
2
1
  import { Command } from 'prosemirror-state';
3
2
  import { EditorView } from 'prosemirror-view';
3
+ import { ComputedRef, Ref, ShallowRef, VNodeChild } from 'vue';
4
4
  import { ImageLayoutTarget } from '@stll/folio-core/layout-painter/imageLayout';
5
5
  import { ListNumberingMenuState } from '@stll/folio-core/prosemirror';
6
- import { ImageSelectionInfo } from '../components/imageSelectionTypes';
7
6
  import { ImageContextMenuState, ImageContextMenuTextAction } from '../components/imageContextMenuTypes';
7
+ import { ImageSelectionInfo } from '../components/imageSelectionTypes';
8
8
  type CommandFactory = (...args: readonly unknown[]) => Command;
9
9
  export type TextContextMenuState = {
10
10
  isOpen: boolean;
@@ -1,15 +1,15 @@
1
- import { MaybeRefOrGetter, Ref } from 'vue';
2
1
  import { EditorState, Plugin } from 'prosemirror-state';
3
2
  import { EditorView } from 'prosemirror-view';
3
+ import { MaybeRefOrGetter, Ref } from 'vue';
4
4
  import { FolioEditor } from '@stll/folio-core/controller/folioEditor';
5
- import { PageRendererName } from '@stll/folio-core/display-list/editor/pageRenderer';
6
- import { DisplayMode } from '@stll/folio-core/managers/EditorModeManager';
7
5
  import { HeaderFooterPartKind } from '@stll/folio-core/controller/headerFooterEditorManager';
8
- import { NoteStoryKey } from '@stll/folio-core/controller/noteEditorManager';
9
6
  import { HiddenProseMirrorCollaboration, HiddenProseMirrorRemoteSelection } from '@stll/folio-core/controller/hiddenEditorManager';
7
+ import { NoteStoryKey } from '@stll/folio-core/controller/noteEditorManager';
8
+ import { PageRendererName } from '@stll/folio-core/display-list/editor/pageRenderer';
10
9
  import { FolioSelectiveSaveFlags } from '@stll/folio-core/docx/selectiveSaveFlags';
11
10
  import { TripwireResult } from '@stll/folio-core/docx/selectiveSaveTripwire';
12
11
  import { FlowBlock, Layout, Measure } from '@stll/folio-core/layout-engine/types';
12
+ import { DisplayMode } from '@stll/folio-core/managers/EditorModeManager';
13
13
  import { LayoutSelectionGate } from '@stll/folio-core/paged-layout/LayoutSelectionGate';
14
14
  import { HistoryShortcutOwner } from '@stll/folio-core/prosemirror/extensions/core/HistoryExtension';
15
15
  import { CommandMap } from '@stll/folio-core/prosemirror/extensions/types';
@@ -1,12 +1,13 @@
1
- import { Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
3
- import { FolioEditor } from '@stll/folio-core/controller/folioEditor';
2
+ import { Ref } from 'vue';
4
3
  import { OpStory } from '@stll/folio-core/controller/canonicalOperations';
4
+ import { FolioEditor } from '@stll/folio-core/controller/folioEditor';
5
5
  import { Layout } from '@stll/folio-core/layout-engine';
6
- import { Document } from '@stll/folio-core/types/document';
6
+ import { DisplayMode, EditorReadOnlyReason } from '@stll/folio-core/managers/EditorModeManager';
7
7
  import { Comment } from '@stll/folio-core/types/content';
8
+ import { Document } from '@stll/folio-core/types/document';
8
9
  import { DocxEditorRef } from '../components/DocxEditor/types';
9
- import { DisplayMode, EditorReadOnlyReason } from '@stll/folio-core/managers/EditorModeManager';
10
+ import { UseFindReplaceReturn } from './useFindReplace';
10
11
  type StagedOperationCommentsOptions<Result extends {
11
12
  applied: readonly {
12
13
  commentId?: number;
@@ -101,6 +102,7 @@ export type UseDocxEditorRefApiOptions = {
101
102
  * panel has a single open state, so both land here.
102
103
  */
103
104
  openFindReplace: () => void;
105
+ search: UseFindReplaceReturn;
104
106
  /** Optional host hook for print. */
105
107
  onPrint?: (() => void) | undefined;
106
108
  /** Optional host hook fired with the serialized `.docx` bytes after `save()`. */
@@ -1,28 +1,46 @@
1
- import { ComputedRef, Ref, ShallowRef } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref } from 'vue';
3
+ import { Layout } from '@stll/folio-core/layout-engine';
3
4
  import { DisplayMode, EditorReadOnlyReason } from '@stll/folio-core/managers/EditorModeManager';
4
- import { ProseMirrorFindMatch } from '@stll/folio-core/prosemirror/findReplaceSelection';
5
- import { FindOptions } from '@stll/folio-core/utils/findReplace';
5
+ import { Document } from '@stll/folio-core/types/document';
6
+ import { FindMatch, FindOptions, FindResult, ReplaceAllSummary } from '@stll/folio-core/utils/findReplace';
6
7
  export type UseFindReplaceOptions = {
7
8
  editorView: Readonly<Ref<EditorView | null>>;
8
- markupView?: Readonly<Ref<DisplayMode>>;
9
- readOnly?: Readonly<Ref<boolean>>;
9
+ pagesRef: Readonly<Ref<HTMLElement | null>>;
10
+ getDocument: () => Document | null;
11
+ layout: Readonly<Ref<Layout | null>>;
12
+ commentRoot?: Readonly<Ref<HTMLElement | null>>;
13
+ revealComment?: (commentId: number) => void;
14
+ displayMode: Readonly<Ref<DisplayMode>>;
15
+ readOnly: Readonly<Ref<boolean>>;
16
+ /** Notified when a replacement is refused because editing is not allowed. */
10
17
  onReadonlyEditAttempt?: (reason: EditorReadOnlyReason) => void;
11
- scrollVisiblePositionIntoView?: (pmPos: number) => void;
18
+ onResultChange: (result: FindResult | null) => void;
12
19
  };
13
- export type UseFindReplaceReturn = {
14
- searchText: Ref<string>;
15
- replaceText: Ref<string>;
16
- options: FindOptions;
17
- matches: ShallowRef<ProseMirrorFindMatch[]>;
18
- currentIndex: Ref<number>;
19
- currentMatch: ComputedRef<ProseMirrorFindMatch | null>;
20
- performSearch: () => ProseMirrorFindMatch[];
20
+ export declare function useFindReplace({ editorView, pagesRef, getDocument, layout, commentRoot, revealComment, displayMode, readOnly, onReadonlyEditAttempt, onResultChange, }: UseFindReplaceOptions): {
21
+ searchText: Ref<string, string>;
22
+ replaceText: Ref<string, string>;
23
+ options: {
24
+ matchCase: boolean;
25
+ matchWholeWord: boolean;
26
+ useRegex?: boolean;
27
+ displayMode?: DisplayMode;
28
+ includeComments?: boolean;
29
+ };
30
+ matches: import('vue').ShallowRef<FindMatch[], FindMatch[]>;
31
+ currentIndex: Ref<number, number>;
32
+ currentMatch: import('vue').ComputedRef<FindMatch | null>;
33
+ canReplaceCurrent: import('vue').ComputedRef<boolean>;
34
+ replacementRefusal: import('vue').ComputedRef<EditorReadOnlyReason | null>;
35
+ performSearch: (cause?: "query" | "refresh") => FindMatch[];
36
+ scheduleSearch: () => void;
37
+ find: (text: string, nextOptions?: Partial<FindOptions>) => FindResult | null;
38
+ getFindResult: () => FindResult | null;
21
39
  goToMatch: (index: number) => boolean;
22
- findNext: () => ProseMirrorFindMatch | null;
23
- findPrevious: () => ProseMirrorFindMatch | null;
40
+ findNext: () => FindMatch | null;
41
+ findPrevious: () => FindMatch | null;
24
42
  replaceCurrent: () => boolean;
25
- replaceAll: () => number;
43
+ replaceAll: () => ReplaceAllSummary;
26
44
  clear: () => void;
27
45
  };
28
- export declare function useFindReplace({ editorView, markupView, readOnly, onReadonlyEditAttempt, scrollVisiblePositionIntoView, }: UseFindReplaceOptions): UseFindReplaceReturn;
46
+ export type UseFindReplaceReturn = ReturnType<typeof useFindReplace>;
@@ -1,4 +1,4 @@
1
- import { Ref, CSSProperties } from 'vue';
1
+ import { CSSProperties, Ref } from 'vue';
2
2
  export type UseFixedDropdownOptions = {
3
3
  isOpen: Ref<boolean>;
4
4
  onClose: () => void;
@@ -1,5 +1,5 @@
1
- import { Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref } from 'vue';
3
3
  import { Document } from '@stll/folio-core/types/document';
4
4
  export type UseFormattingActionsOptions = {
5
5
  editorView: Ref<EditorView | null>;
@@ -1,5 +1,5 @@
1
- import { ComputedRef, Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { ComputedRef, Ref } from 'vue';
3
3
  export type UseHistoryReturn = {
4
4
  canUndo: ComputedRef<boolean>;
5
5
  canRedo: ComputedRef<boolean>;
@@ -1,6 +1,6 @@
1
- import { Ref } from 'vue';
2
1
  import { Command } from 'prosemirror-state';
3
2
  import { EditorView } from 'prosemirror-view';
3
+ import { Ref } from 'vue';
4
4
  import { HyperlinkPopupData } from '../components/ui/hyperlinkPopupTypes';
5
5
  export type { HyperlinkPopupData };
6
6
  type CommandFactory = (...args: readonly unknown[]) => Command;
@@ -1,6 +1,6 @@
1
- import { ComputedRef, Ref, ShallowRef } from 'vue';
2
1
  import { Command } from 'prosemirror-state';
3
2
  import { EditorView } from 'prosemirror-view';
3
+ import { ComputedRef, Ref, ShallowRef } from 'vue';
4
4
  import { ImageSelectionInfo } from '../components/imageSelectionTypes';
5
5
  type CommandFactory = (...args: readonly unknown[]) => Command;
6
6
  export type UseImageActionsOptions = {
@@ -1,5 +1,5 @@
1
- import { Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref } from 'vue';
3
3
  import { HeadingInfo } from '@stll/folio-core/utils/headingCollector';
4
4
  export type UseOutlineSidebarOptions = {
5
5
  editorView: Ref<EditorView | null>;
@@ -1,5 +1,5 @@
1
- import { Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref } from 'vue';
3
3
  import { Document, SectionProperties } from '@stll/folio-core/types/document';
4
4
  export type UsePageSetupControlsOptions = {
5
5
  editorView: Ref<EditorView | null>;
@@ -1,13 +1,13 @@
1
- import { Ref, ShallowRef } from 'vue';
2
1
  import { Node as PMNode } from 'prosemirror-model';
3
2
  import { Command } from 'prosemirror-state';
4
3
  import { EditorView } from 'prosemirror-view';
5
- import { Document } from '@stll/folio-core/types/document';
4
+ import { Ref, ShallowRef } from 'vue';
5
+ import { DocumentOp } from '@stll/folio-core/controller/canonicalOperations';
6
6
  import { NoteStoryKey } from '@stll/folio-core/controller/noteEditorManager';
7
7
  import { Layout } from '@stll/folio-core/layout-engine';
8
+ import { Document } from '@stll/folio-core/types/document';
8
9
  import { ImageSelectionInfo } from '../components/imageSelectionTypes';
9
10
  import { HyperlinkPopupData } from '../components/ui/hyperlinkPopupTypes';
10
- import { DocumentOp } from '@stll/folio-core/controller/canonicalOperations';
11
11
  type CommandFactory = (...args: readonly unknown[]) => Command;
12
12
  type Commands = Record<string, CommandFactory>;
13
13
  type TableResizeApi = {
@@ -1,7 +1,7 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { StylePreviewProps } from '../utils/stylePreview';
3
2
  import { Style } from '@stll/folio-core/types/document';
4
3
  import { TranslationKey } from '../components/Toolbar/presets';
4
+ import { StylePreviewProps } from '../utils/stylePreview';
5
5
  export type ResolvedStyle = {
6
6
  id: string;
7
7
  label: string;
@@ -1,4 +1,4 @@
1
- import { Ref, ComputedRef, CSSProperties } from 'vue';
1
+ import { ComputedRef, CSSProperties, Ref } from 'vue';
2
2
  import { HighlightRect, SelectionHighlightConfig } from '../utils/selectionHighlight';
3
3
  export type UseSelectionHighlightOptions = {
4
4
  containerRef: Ref<HTMLElement | null>;
@@ -1,5 +1,5 @@
1
- import { Ref, ShallowRef } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref, ShallowRef } from 'vue';
3
3
  import { DisplayMode } from '@stll/folio-core/managers/EditorModeManager';
4
4
  import { LayoutSelectionGate } from '@stll/folio-core/paged-layout/LayoutSelectionGate';
5
5
  import { ImageSelectionInfo } from '../components/imageSelectionTypes';
@@ -1,4 +1,4 @@
1
- import { Ref, CSSProperties } from 'vue';
1
+ import { CSSProperties, Ref } from 'vue';
2
2
  export type UseToolbarDropdownsOptions = {
3
3
  zoom: Ref<HTMLElement | null>;
4
4
  style: Ref<HTMLElement | null>;
@@ -1,4 +1,4 @@
1
- import { Ref, ComputedRef } from 'vue';
1
+ import { ComputedRef, Ref } from 'vue';
2
2
  export type UseToolbarFontSizeReturn = {
3
3
  onSizeFocus: () => void;
4
4
  onSizeInput: () => void;
@@ -1,5 +1,5 @@
1
- import { Ref } from 'vue';
2
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Ref } from 'vue';
3
3
  import { extractTrackedChanges, TrackedChangesResult } from '@stll/folio-core/prosemirror/utils/extractTrackedChanges';
4
4
  export type { TrackedChangesResult };
5
5
  export { extractTrackedChanges };
@@ -1,6 +1,6 @@
1
+ import { EditorView } from 'prosemirror-view';
1
2
  import { Ref } from 'vue';
2
3
  import { createVisualLineState } from '@stll/folio-core/prosemirror/utils/visualLineNavigation';
3
- import { EditorView } from 'prosemirror-view';
4
4
  export type UseVisualLineNavigationReturn = {
5
5
  state: ReturnType<typeof createVisualLineState>;
6
6
  getCaretClientX: (pmPos: number) => number | null;
@@ -1,4 +1,4 @@
1
- import { Ref, ComputedRef } from 'vue';
1
+ import { ComputedRef, Ref } from 'vue';
2
2
  export type UseZoomReturn = {
3
3
  zoom: Ref<number>;
4
4
  zoomPercent: ComputedRef<number>;