@stll/folio-vue 0.23.0 → 0.25.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.
Files changed (116) hide show
  1. package/README.md +24 -0
  2. package/dist/ListButtons-B8HxA64I.cjs +4 -0
  3. package/dist/{ListButtons-DjLPhg8p.js → ListButtons-BeELtp_-.js} +201 -188
  4. package/dist/{SplitCellDialog-Id6nLwrR.js → SplitCellDialog-CSqbtDum.js} +748 -732
  5. package/dist/SplitCellDialog-DzKBu09z.cjs +15 -0
  6. package/dist/components/AnonymizationRectsOverlay.vue.d.ts +20 -0
  7. package/dist/components/AutocompleteCaretOverlay.vue.d.ts +4 -0
  8. package/dist/components/AutocompleteSuggestionOverlay.vue.d.ts +11 -0
  9. package/dist/components/CommentMarginMarkers.vue.d.ts +16 -0
  10. package/dist/components/ContentControlWidgetsOverlay.vue.d.ts +8 -0
  11. package/dist/components/DecorationLayer.vue.d.ts +12 -0
  12. package/dist/components/DocumentName.vue.d.ts +13 -0
  13. package/dist/components/DocumentOutline.vue.d.ts +28 -0
  14. package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +73 -0
  15. package/dist/components/DocxEditor/DocxEditorMenuBar.vue.d.ts +39 -0
  16. package/dist/components/DocxEditor/DocxEditorOverlays.vue.d.ts +42 -0
  17. package/dist/components/DocxEditor/types.d.ts +11 -4
  18. package/dist/components/DocxEditor.vue.d.ts +58 -0
  19. package/dist/components/EditingModeDropdown.vue.d.ts +11 -0
  20. package/dist/components/EditorToolbar.vue.d.ts +30 -0
  21. package/dist/components/FormattingBar.vue.d.ts +20 -0
  22. package/dist/components/HeaderFooterSelectionOverlay.vue.d.ts +12 -0
  23. package/dist/components/ImageContextMenu.vue.d.ts +24 -0
  24. package/dist/components/ImageSelectionOverlay.vue.d.ts +21 -0
  25. package/dist/components/InlineHeaderFooterEditor.vue.d.ts +15 -0
  26. package/dist/components/MenuBar.vue.d.ts +18 -0
  27. package/dist/components/PageIndicator.vue.d.ts +8 -0
  28. package/dist/components/PassageHighlightOverlay.vue.d.ts +16 -0
  29. package/dist/components/PrintButton.vue.d.ts +16 -0
  30. package/dist/components/ReviewControls.vue.d.ts +17 -0
  31. package/dist/components/TemplateDirectivesOverlay.vue.d.ts +15 -0
  32. package/dist/components/TextContextMenu.vue.d.ts +46 -0
  33. package/dist/components/TitleBar.vue.d.ts +17 -0
  34. package/dist/components/Toolbar.vue.d.ts +139 -0
  35. package/dist/components/UnifiedSidebar.vue.d.ts +55 -0
  36. package/dist/components/dialogs/FindReplaceDialog.vue.d.ts +20 -0
  37. package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +15 -0
  38. package/dist/components/dialogs/HyperlinkDialog.vue.d.ts +30 -0
  39. package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +29 -0
  40. package/dist/components/dialogs/ImagePropertiesDialog.vue.d.ts +13 -0
  41. package/dist/components/dialogs/InsertImageDialog.vue.d.ts +21 -0
  42. package/dist/components/dialogs/InsertSymbolDialog.vue.d.ts +12 -0
  43. package/dist/components/dialogs/InsertTableDialog.vue.d.ts +22 -0
  44. package/dist/components/dialogs/PageSetupDialog.vue.d.ts +14 -0
  45. package/dist/components/dialogs/PasteSpecialDialog.vue.d.ts +16 -0
  46. package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +12 -0
  47. package/dist/components/dialogs/SplitCellDialog.vue.d.ts +22 -0
  48. package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +15 -0
  49. package/dist/components/dialogs/WatermarkDialog.vue.d.ts +14 -0
  50. package/dist/components/dialogs/index.d.ts +13 -13
  51. package/dist/components/sidebar/AddCommentCard.vue.d.ts +9 -0
  52. package/dist/components/sidebar/Avatar.vue.d.ts +10 -0
  53. package/dist/components/sidebar/CommentCard.vue.d.ts +21 -0
  54. package/dist/components/sidebar/ReplyInput.vue.d.ts +7 -0
  55. package/dist/components/sidebar/ReplyThread.vue.d.ts +8 -0
  56. package/dist/components/sidebar/ResolvedCommentMarker.vue.d.ts +11 -0
  57. package/dist/components/sidebar/TrackedChangeCard.vue.d.ts +20 -0
  58. package/dist/components/ui/AlignmentButtons.vue.d.ts +15 -0
  59. package/dist/components/ui/Button.vue.d.ts +30 -0
  60. package/dist/components/ui/Checkbox.vue.d.ts +11 -0
  61. package/dist/components/ui/ColorPicker.vue.d.ts +30 -0
  62. package/dist/components/ui/DatePickerPopover.vue.d.ts +13 -0
  63. package/dist/components/ui/Dialog.vue.d.ts +28 -0
  64. package/dist/components/ui/FontPicker.vue.d.ts +21 -0
  65. package/dist/components/ui/FontSizePicker.vue.d.ts +27 -0
  66. package/dist/components/ui/HorizontalRuler.vue.d.ts +39 -0
  67. package/dist/components/ui/HyperlinkPopup.vue.d.ts +21 -0
  68. package/dist/components/ui/IconGridDropdown.vue.d.ts +32 -0
  69. package/dist/components/ui/ImageTransformDropdown.vue.d.ts +11 -0
  70. package/dist/components/ui/ImageWrapDropdown.vue.d.ts +15 -0
  71. package/dist/components/ui/Input.vue.d.ts +17 -0
  72. package/dist/components/ui/LineSpacingPicker.vue.d.ts +20 -0
  73. package/dist/components/ui/ListButtons.vue.d.ts +30 -0
  74. package/dist/components/ui/MaterialSymbol.vue.d.ts +13 -0
  75. package/dist/components/ui/MenuDropdown.vue.d.ts +42 -0
  76. package/dist/components/ui/OutlineRail.vue.d.ts +19 -0
  77. package/dist/components/ui/Popover.vue.d.ts +40 -0
  78. package/dist/components/ui/Select.vue.d.ts +15 -0
  79. package/dist/components/ui/StylePicker.vue.d.ts +16 -0
  80. package/dist/components/ui/TableBorderColorPicker.vue.d.ts +14 -0
  81. package/dist/components/ui/TableBorderPicker.vue.d.ts +11 -0
  82. package/dist/components/ui/TableBorderWidthPicker.vue.d.ts +10 -0
  83. package/dist/components/ui/TableCellFillPicker.vue.d.ts +14 -0
  84. package/dist/components/ui/TableGridInline.vue.d.ts +14 -0
  85. package/dist/components/ui/TableGridPicker.vue.d.ts +18 -0
  86. package/dist/components/ui/TableMoreDropdown.vue.d.ts +51 -0
  87. package/dist/components/ui/TableStyleGallery.vue.d.ts +10 -0
  88. package/dist/components/ui/TableToolbar.vue.d.ts +61 -0
  89. package/dist/components/ui/VerticalRuler.vue.d.ts +20 -0
  90. package/dist/components/ui/ZoomControl.vue.d.ts +12 -0
  91. package/dist/components/ui/icon-paths.json.d.ts +276 -0
  92. package/dist/composables/useDocxEditor.d.ts +3 -0
  93. package/dist/composables/useDocxEditorRefApi.d.ts +3 -0
  94. package/dist/composables/useFindReplace.d.ts +5 -1
  95. package/dist/composables/useFontLifecycle.d.ts +1 -0
  96. package/dist/composables.cjs +2 -2
  97. package/dist/composables.js +45 -44
  98. package/dist/dialogs.cjs +1 -1
  99. package/dist/dialogs.js +2 -5
  100. package/dist/folio-vue.css +1 -156
  101. package/dist/index.cjs +1 -1
  102. package/dist/index.d.ts +2 -0
  103. package/dist/index.js +1456 -1409
  104. package/dist/ui.cjs +1 -1
  105. package/dist/ui.js +2 -2
  106. package/dist/useFindReplace-BbW0xWo7.js +74 -0
  107. package/dist/useFindReplace-neQmDh2i.cjs +1 -0
  108. package/dist/useZoom-B1miNAf_.cjs +1 -0
  109. package/dist/{useZoom-D8Wi1XkB.js → useZoom-Bw5gp69V.js} +262 -252
  110. package/dist/utils/embeddedFonts.d.ts +1 -1
  111. package/package.json +22 -10
  112. package/dist/ListButtons-DIWR-Q8d.cjs +0 -4
  113. package/dist/SplitCellDialog-B_z6ynxm.cjs +0 -15
  114. package/dist/useFindReplace-CL8Rbc3y.js +0 -59
  115. package/dist/useFindReplace-ZCrdvwEk.cjs +0 -1
  116. package/dist/useZoom-CkbPWZ64.cjs +0 -1
@@ -0,0 +1,139 @@
1
+ import { EditorView } from 'prosemirror-view';
2
+ import { Command } from 'prosemirror-state';
3
+ import { Theme, Style } from '@stll/folio-core/types/document';
4
+ import { EditorMode } from './DocxEditor/types';
5
+ import { DisplayMode } from '@stll/folio-core/managers/EditorModeManager';
6
+ import { FontOption } from '../utils/fontOptions';
7
+ /**
8
+ * A toolbar command factory: called with whatever arguments the specific
9
+ * command needs, it returns a ProseMirror `Command`. Heterogeneous across
10
+ * commands, so it is typed structurally rather than per-command.
11
+ */
12
+ type CommandFactory = (...args: readonly unknown[]) => Command;
13
+ /** Rotate/flip actions the transform dropdown emits. */
14
+ type ImageTransformAction = "rotateCW" | "rotateCCW" | "flipH" | "flipV";
15
+ /**
16
+ * Image context — populated by the host when a NodeSelection lands on
17
+ * an image node. Drives the wrap dropdown's active-value math
18
+ * (e.g. `displayMode === 'float'`) and the "Image properties" button.
19
+ */
20
+ export type ImageToolbarContext = {
21
+ wrapType: string;
22
+ displayMode: string;
23
+ cssFloat: string | null;
24
+ };
25
+ type __VLS_Props = {
26
+ view?: EditorView | null;
27
+ getCommands?: () => Record<string, CommandFactory>;
28
+ stateTick?: number;
29
+ /** History availability and commands from the owning editor session. */
30
+ canUndo?: boolean;
31
+ canRedo?: boolean;
32
+ onUndo?: () => void;
33
+ onRedo?: () => void;
34
+ zoomPercent?: number;
35
+ isMinZoom?: boolean;
36
+ isMaxZoom?: boolean;
37
+ zoomPresets?: number[];
38
+ showZoomControl?: boolean;
39
+ editorMode?: EditorMode;
40
+ /** Whether to render the review controls (track-changes toggle + markup
41
+ display-mode selector). Mirrors React's `showReviewControls` gate. */
42
+ showReviewControls?: boolean;
43
+ /** Whether track-changes (suggesting mode) is active — drives the toggle's
44
+ pressed state and label. */
45
+ trackChangesOn?: boolean;
46
+ /** Current markup display mode — drives the display-mode selector's label. */
47
+ displayMode?: DisplayMode;
48
+ /** Whether the editor is read-only — disables the track-changes toggle. */
49
+ readOnly?: boolean;
50
+ /** Whether the comments sidebar is currently open — drives the
51
+ active state on the comments toolbar button. */
52
+ commentsSidebarOpen?: boolean;
53
+ outlineDrawer?: boolean;
54
+ outlineDrawerOpen?: boolean;
55
+ commentCount?: number;
56
+ /** Image-node selection context — when non-null, the image group
57
+ (properties button) renders inline inside the pill. */
58
+ imageContext?: ImageToolbarContext | null;
59
+ /** Document theme — feeds the color picker's theme-color matrix. */
60
+ theme?: Theme | null;
61
+ /** Optional custom font list matching React's `fontFamilies` prop. */
62
+ fontFamilies?: ReadonlyArray<string | FontOption>;
63
+ /**
64
+ * Fonts the loaded document references that the browser can render (embedded
65
+ * faces + system-resolved). Rendered in a "Document fonts" group, deduped
66
+ * against `fontFamilies`. Managed by the editor, mirrors React's prop.
67
+ */
68
+ documentFonts?: ReadonlyArray<FontOption>;
69
+ /** Paragraph styles from the loaded document (document.package.styles.styles).
70
+ When present, the style picker shows the document's real styles + names,
71
+ matching React's Toolbar `documentStyles` prop. Falls back to presets. */
72
+ documentStyles?: Style[];
73
+ };
74
+ declare var __VLS_169: {}, __VLS_186: {};
75
+ type __VLS_Slots = {} & {
76
+ 'table-context'?: (props: typeof __VLS_169) => any;
77
+ } & {
78
+ 'toolbar-extra'?: (props: typeof __VLS_186) => any;
79
+ };
80
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
81
+ "zoom-in": () => any;
82
+ "zoom-out": () => any;
83
+ "insert-symbol": () => any;
84
+ "insert-table": () => any;
85
+ "toggle-track-changes": () => any;
86
+ "update:display-mode": (mode: "original" | "all-markup" | "simple-markup" | "no-markup") => any;
87
+ "find-replace": () => any;
88
+ "insert-image": () => any;
89
+ "insert-link": () => any;
90
+ "insert-page-break": () => any;
91
+ "insert-toc": () => any;
92
+ "page-setup": () => any;
93
+ "toggle-outline": () => any;
94
+ "zoom-set": (level: number) => any;
95
+ "toggle-sidebar": () => any;
96
+ "apply-style": (styleId: string) => any;
97
+ "mode-change": (mode: EditorMode) => any;
98
+ "image-wrap-type": (wrapType: string) => any;
99
+ "image-properties": () => any;
100
+ "image-transform": (action: ImageTransformAction) => any;
101
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
102
+ "onZoom-in"?: () => any;
103
+ "onZoom-out"?: () => any;
104
+ "onInsert-symbol"?: () => any;
105
+ "onInsert-table"?: () => any;
106
+ "onToggle-track-changes"?: () => any;
107
+ "onUpdate:display-mode"?: (mode: "original" | "all-markup" | "simple-markup" | "no-markup") => any;
108
+ "onFind-replace"?: () => any;
109
+ "onInsert-image"?: () => any;
110
+ "onInsert-link"?: () => any;
111
+ "onInsert-page-break"?: () => any;
112
+ "onInsert-toc"?: () => any;
113
+ "onPage-setup"?: () => any;
114
+ "onToggle-outline"?: () => any;
115
+ "onZoom-set"?: (level: number) => any;
116
+ "onToggle-sidebar"?: () => any;
117
+ "onApply-style"?: (styleId: string) => any;
118
+ "onMode-change"?: (mode: EditorMode) => any;
119
+ "onImage-wrap-type"?: (wrapType: string) => any;
120
+ "onImage-properties"?: () => any;
121
+ "onImage-transform"?: (action: ImageTransformAction) => any;
122
+ }>, {
123
+ view: EditorView | null;
124
+ displayMode: DisplayMode;
125
+ readOnly: boolean;
126
+ trackChangesOn: boolean;
127
+ getCommands: () => Record<string, CommandFactory>;
128
+ stateTick: number;
129
+ showReviewControls: boolean;
130
+ commentCount: number;
131
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
132
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
133
+ declare const _default: typeof __VLS_export;
134
+ export default _default;
135
+ type __VLS_WithSlots<T, S> = T & {
136
+ new (): {
137
+ $slots: S;
138
+ };
139
+ };
@@ -0,0 +1,55 @@
1
+ import { Comment } from '@stll/folio-core/types/content';
2
+ import { TrackedChangeEntry } from './sidebar/sidebarUtils';
3
+ type __VLS_Props = {
4
+ isOpen: boolean;
5
+ surface?: "column" | "drawer";
6
+ comments: Comment[];
7
+ trackedChanges: TrackedChangeEntry[];
8
+ isAddingComment?: boolean;
9
+ showResolved?: boolean;
10
+ pagesContainer: HTMLElement | null;
11
+ pageWidthPx: number;
12
+ zoom?: number;
13
+ /** Controlled expand: when set, overrides local click toggling.
14
+ * Used by DocxEditor to auto-expand cards when the cursor
15
+ * lands on a commented / tracked span (mirrors React
16
+ * DocxEditor.tsx:5080-5118 cursorSidebarItem detection). */
17
+ activeItemId?: string | null;
18
+ /** Y (in unscaled coords inside the pages-viewport) where the
19
+ * AddCommentCard should anchor — mirrors React's
20
+ * addCommentYPosition pass-through. Null = top of rail. */
21
+ addCommentYPosition?: number | null;
22
+ };
23
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
+ close: () => any;
25
+ dismiss: () => any;
26
+ "add-comment": (text: string) => any;
27
+ "cancel-add-comment": () => any;
28
+ "comment-reply": (commentId: number, text: string) => any;
29
+ "comment-resolve": (commentId: number) => any;
30
+ "comment-unresolve": (commentId: number) => any;
31
+ "comment-delete": (commentId: number) => any;
32
+ "accept-change": (from: number, to: number) => any;
33
+ "reject-change": (from: number, to: number) => any;
34
+ "accept-change-by-id": (revisionId: number) => any;
35
+ "reject-change-by-id": (revisionId: number) => any;
36
+ "tracked-change-reply": (revisionId: number, text: string) => any;
37
+ "update:activeItemId": (id: string | null) => any;
38
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
39
+ onClose?: () => any;
40
+ onDismiss?: () => any;
41
+ "onAdd-comment"?: (text: string) => any;
42
+ "onCancel-add-comment"?: () => any;
43
+ "onComment-reply"?: (commentId: number, text: string) => any;
44
+ "onComment-resolve"?: (commentId: number) => any;
45
+ "onComment-unresolve"?: (commentId: number) => any;
46
+ "onComment-delete"?: (commentId: number) => any;
47
+ "onAccept-change"?: (from: number, to: number) => any;
48
+ "onReject-change"?: (from: number, to: number) => any;
49
+ "onAccept-change-by-id"?: (revisionId: number) => any;
50
+ "onReject-change-by-id"?: (revisionId: number) => any;
51
+ "onTracked-change-reply"?: (revisionId: number, text: string) => any;
52
+ "onUpdate:activeItemId"?: (id: string | null) => any;
53
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
+ declare const _default: typeof __VLS_export;
55
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { EditorView } from 'prosemirror-view';
2
+ import { DisplayMode, EditorReadOnlyReason } from '@stll/folio-core/managers/EditorModeManager';
3
+ type __VLS_Props = {
4
+ isOpen: boolean;
5
+ view: EditorView | null;
6
+ markupView?: DisplayMode;
7
+ readOnly?: boolean;
8
+ onReadonlyEditAttempt?: (reason: EditorReadOnlyReason) => void;
9
+ scrollVisiblePositionIntoView?: (pmPos: number) => void;
10
+ };
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ close: () => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onClose?: () => any;
15
+ }>, {
16
+ markupView: DisplayMode;
17
+ readOnly: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { EndnoteProperties, FootnoteProperties } from '@stll/folio-core/types/content';
2
+ type __VLS_Props = {
3
+ isOpen: boolean;
4
+ footnotePr?: FootnoteProperties;
5
+ endnotePr?: EndnoteProperties;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ close: () => any;
9
+ apply: (footnotePr: FootnoteProperties, endnotePr: EndnoteProperties) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onClose?: () => any;
12
+ onApply?: (footnotePr: FootnoteProperties, endnotePr: EndnoteProperties) => any;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { EditorView } from 'prosemirror-view';
2
+ type __VLS_Props = {
3
+ isOpen: boolean;
4
+ view: EditorView | null;
5
+ bookmarks?: Array<{
6
+ name: string;
7
+ label?: string;
8
+ }>;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ close: () => any;
12
+ submit: (data: {
13
+ url?: string;
14
+ bookmark?: string;
15
+ displayText: string;
16
+ tooltip: string;
17
+ }) => any;
18
+ remove: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onClose?: () => any;
21
+ onSubmit?: (data: {
22
+ url?: string;
23
+ bookmark?: string;
24
+ displayText: string;
25
+ tooltip: string;
26
+ }) => any;
27
+ onRemove?: () => any;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
@@ -0,0 +1,29 @@
1
+ export type ImagePositionData = {
2
+ horizontal?: {
3
+ relativeTo?: string;
4
+ posOffset?: number;
5
+ align?: string;
6
+ };
7
+ vertical?: {
8
+ relativeTo?: string;
9
+ posOffset?: number;
10
+ align?: string;
11
+ };
12
+ distTop?: number;
13
+ distBottom?: number;
14
+ distLeft?: number;
15
+ distRight?: number;
16
+ };
17
+ type __VLS_Props = {
18
+ isOpen: boolean;
19
+ currentData?: ImagePositionData;
20
+ };
21
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ close: () => any;
23
+ apply: (data: ImagePositionData) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onClose?: () => any;
26
+ onApply?: (data: ImagePositionData) => any;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { EditorView } from 'prosemirror-view';
2
+ type __VLS_Props = {
3
+ isOpen: boolean;
4
+ view: EditorView | null;
5
+ pmPos: number | null;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ close: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClose?: () => any;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,21 @@
1
+ export type InsertImageDialogData = {
2
+ file: File;
3
+ alt?: string;
4
+ width?: number;
5
+ height?: number;
6
+ };
7
+ type __VLS_Props = {
8
+ isOpen: boolean;
9
+ accept?: string;
10
+ };
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ close: () => any;
13
+ insert: (data: InsertImageDialogData) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onClose?: () => any;
16
+ onInsert?: (data: InsertImageDialogData) => any;
17
+ }>, {
18
+ accept: string;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ isOpen: boolean;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ close: () => any;
6
+ insert: (symbol: string) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onClose?: () => any;
9
+ onInsert?: (symbol: string) => any;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ isOpen: boolean;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ close: () => any;
6
+ insert: (config: {
7
+ rows: number;
8
+ cols: number;
9
+ autofit: boolean;
10
+ styleId: string | null;
11
+ }) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onClose?: () => any;
14
+ onInsert?: (config: {
15
+ rows: number;
16
+ cols: number;
17
+ autofit: boolean;
18
+ styleId: string | null;
19
+ }) => any;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { SectionProperties } from '@stll/folio-core/types/document';
2
+ type __VLS_Props = {
3
+ isOpen: boolean;
4
+ sectionProperties?: SectionProperties | null;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ close: () => any;
8
+ apply: (props: Partial<SectionProperties>) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClose?: () => any;
11
+ onApply?: (props: Partial<SectionProperties>) => any;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export type PasteSpecialMode = "keepFormatting" | "mergeFormatting" | "plainText";
2
+ type __VLS_Props = {
3
+ isOpen: boolean;
4
+ defaultMode?: PasteSpecialMode;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ close: () => any;
8
+ paste: (mode: PasteSpecialMode) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClose?: () => any;
11
+ onPaste?: (mode: PasteSpecialMode) => any;
12
+ }>, {
13
+ defaultMode: PasteSpecialMode;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ isOpen: boolean;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ close: () => any;
6
+ apply: (value: number) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onClose?: () => any;
9
+ onApply?: (value: number) => any;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,22 @@
1
+ export type SplitCellDialogData = {
2
+ rows: number;
3
+ columns: number;
4
+ mergeBeforeSplit: boolean;
5
+ };
6
+ type __VLS_Props = {
7
+ isOpen: boolean;
8
+ defaultRows?: number;
9
+ defaultColumns?: number;
10
+ };
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ split: (data: SplitCellDialogData) => any;
13
+ close: () => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onSplit?: (data: SplitCellDialogData) => any;
16
+ onClose?: () => any;
17
+ }>, {
18
+ defaultRows: number;
19
+ defaultColumns: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { TablePropertiesCommand } from '@stll/folio-core/utils/tableOperations';
2
+ export type TableProperties = TablePropertiesCommand;
3
+ type __VLS_Props = {
4
+ isOpen: boolean;
5
+ currentProps?: TableProperties;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ close: () => any;
9
+ apply: (props: TablePropertiesCommand) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onClose?: () => any;
12
+ onApply?: (props: TablePropertiesCommand) => any;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { Watermark } from '@stll/folio-core/watermark';
2
+ type __VLS_Props = {
3
+ isOpen: boolean;
4
+ currentWatermark?: Watermark | undefined;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ close: () => any;
8
+ apply: (watermark: Watermark | undefined) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClose?: () => any;
11
+ onApply?: (watermark: Watermark | undefined) => any;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -13,16 +13,16 @@
13
13
  * @packageDocumentation
14
14
  * @public
15
15
  */
16
- export declare const FindReplaceDialog: any;
17
- export declare const FootnotePropertiesDialog: any;
18
- export declare const HyperlinkDialog: any;
19
- export declare const ImagePositionDialog: any;
20
- export declare const ImagePropertiesDialog: any;
21
- export declare const InsertImageDialog: any;
22
- export declare const InsertSymbolDialog: any;
23
- export declare const InsertTableDialog: any;
24
- export declare const PageSetupDialog: any;
25
- export declare const PasteSpecialDialog: any;
26
- export declare const SplitCellDialog: any;
27
- export declare const TablePropertiesDialog: any;
28
- export declare const WatermarkDialog: any;
16
+ export { default as FindReplaceDialog } from './FindReplaceDialog.vue';
17
+ export { default as FootnotePropertiesDialog } from './FootnotePropertiesDialog.vue';
18
+ export { default as HyperlinkDialog } from './HyperlinkDialog.vue';
19
+ export { default as ImagePositionDialog } from './ImagePositionDialog.vue';
20
+ export { default as ImagePropertiesDialog } from './ImagePropertiesDialog.vue';
21
+ export { default as InsertImageDialog } from './InsertImageDialog.vue';
22
+ export { default as InsertSymbolDialog } from './InsertSymbolDialog.vue';
23
+ export { default as InsertTableDialog } from './InsertTableDialog.vue';
24
+ export { default as PageSetupDialog } from './PageSetupDialog.vue';
25
+ export { default as PasteSpecialDialog } from './PasteSpecialDialog.vue';
26
+ export { default as SplitCellDialog } from './SplitCellDialog.vue';
27
+ export { default as TablePropertiesDialog } from './TablePropertiesDialog.vue';
28
+ export { default as WatermarkDialog } from './WatermarkDialog.vue';
@@ -0,0 +1,9 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ cancel: () => any;
3
+ submit: (text: string) => any;
4
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
5
+ onCancel?: () => any;
6
+ onSubmit?: (text: string) => any;
7
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ name?: string | null;
3
+ size?: 32 | 28;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ name: string | null;
7
+ size: 32 | 28;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { Comment } from '@stll/folio-core/types/content';
2
+ type __VLS_Props = {
3
+ comment: Comment;
4
+ replies: Comment[];
5
+ expanded: boolean;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ click: () => any;
9
+ reply: (commentId: number, text: string) => any;
10
+ delete: (commentId: number) => any;
11
+ resolve: (commentId: number) => any;
12
+ unresolve: (commentId: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onClick?: () => any;
15
+ onReply?: (commentId: number, text: string) => any;
16
+ onDelete?: (commentId: number) => any;
17
+ onResolve?: (commentId: number) => any;
18
+ onUnresolve?: (commentId: number) => any;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ submit: (text: string) => any;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ onSubmit?: (text: string) => any;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { Comment } from '@stll/folio-core/types/content';
2
+ type __VLS_Props = {
3
+ replies: Comment[];
4
+ isExpanded: boolean;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { Comment } from '@stll/folio-core/types/content';
2
+ type __VLS_Props = {
3
+ comment: Comment;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "toggle-expand": () => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ "onToggle-expand"?: () => any;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { Comment } from '@stll/folio-core/types/content';
2
+ import { TrackedChangeEntry } from './sidebarUtils';
3
+ type __VLS_Props = {
4
+ change: TrackedChangeEntry;
5
+ expanded: boolean;
6
+ replies: Comment[];
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ click: () => any;
10
+ reply: (revisionId: number, text: string) => any;
11
+ "accept-by-id": (revisionId: number) => any;
12
+ "reject-by-id": (revisionId: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onClick?: () => any;
15
+ onReply?: (revisionId: number, text: string) => any;
16
+ "onAccept-by-id"?: (revisionId: number) => any;
17
+ "onReject-by-id"?: (revisionId: number) => any;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { ParagraphAlignment } from './AlignmentButtons.types';
2
+ type __VLS_Props = {
3
+ value?: ParagraphAlignment;
4
+ disabled?: boolean;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ change: (alignment: ParagraphAlignment) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onChange?: (alignment: ParagraphAlignment) => any;
10
+ }>, {
11
+ value: ParagraphAlignment;
12
+ disabled: boolean;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;