superdoc 2.29.0-next.2 → 2.29.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{FindReplaceSurface-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
- package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
- package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
- package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
- package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-DmSkZehl.cjs} +70 -99
- package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-aOWhUVI7.es.js} +67 -96
- package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
- package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
- package/dist/chunks/{create-super-doc-ui-BFt8agAI.es.js → create-super-doc-ui-Bm5kmx0W.es.js} +12 -29
- package/dist/chunks/{create-super-doc-ui-BAGOnYGM.cjs → create-super-doc-ui-DN70aatf.cjs} +17 -28
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
- package/dist/document-api/src/comments/comments.d.ts +2 -0
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
- package/dist/document-api/src/index.d.ts +8 -7
- package/dist/document-api/src/insert/insert.d.ts +2 -2
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +12 -6
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +35 -1867
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +3 -4
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +3 -618
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +28 -13
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
- package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +81 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
- package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
- package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
- package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
- package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
- package/dist/superdoc/src/composables/use-field.d.ts +88 -25
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +2 -7
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
- package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
- package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
- package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
- package/dist/superdoc/src/core/create-app.d.ts +13 -24
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +9 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
- package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
- package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +24 -61
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
- package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
- package/dist/superdoc/src/core/types/index.d.ts +4 -19
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
- package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
- package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +1 -5
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
- package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
- package/dist/superdoc/src/icons.d.ts +8 -0
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
- package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
- package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +13 -15
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
- package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
- package/dist/superdoc/src/public/index.d.cts +26 -0
- package/dist/superdoc/src/public/index.d.ts +13 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
- package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +225 -99
- package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +21 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +676 -298
- package/dist/superdoc.cjs +1623 -2477
- package/dist/superdoc.es.js +1604 -2461
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +2 -2
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
type HeaderComment = ReturnType<typeof useComment>;
|
|
2
|
+
import { CommentModel } from './use-comment.js';
|
|
4
3
|
type HeaderConfig = {
|
|
5
4
|
readOnly?: boolean;
|
|
6
5
|
allowResolve?: boolean;
|
|
@@ -15,7 +14,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
14
|
required: true;
|
|
16
15
|
};
|
|
17
16
|
comment: {
|
|
18
|
-
type: PropType<
|
|
17
|
+
type: PropType<CommentModel>;
|
|
19
18
|
required: true;
|
|
20
19
|
};
|
|
21
20
|
isPendingInput: {
|
|
@@ -62,7 +61,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
61
|
required: true;
|
|
63
62
|
};
|
|
64
63
|
comment: {
|
|
65
|
-
type: PropType<
|
|
64
|
+
type: PropType<CommentModel>;
|
|
66
65
|
required: true;
|
|
67
66
|
};
|
|
68
67
|
isPendingInput: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { User } from '../../core/types/index.js';
|
|
3
|
+
import { CommentModel } from './use-comment.js';
|
|
3
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
users: {
|
|
5
6
|
type: PropType<readonly (User & {
|
|
@@ -26,315 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
26
27
|
default: boolean;
|
|
27
28
|
};
|
|
28
29
|
comment: {
|
|
29
|
-
type: PropType<
|
|
30
|
-
uid: string | undefined;
|
|
31
|
-
commentId: string;
|
|
32
|
-
importedId: string | null | undefined;
|
|
33
|
-
parentCommentId: string | null | undefined;
|
|
34
|
-
trackedChangeParentId: string | null | undefined;
|
|
35
|
-
trackedChangeThreadParentId: string | null | undefined;
|
|
36
|
-
trackedChangeSide: string | null | undefined;
|
|
37
|
-
fileId: string | null | undefined;
|
|
38
|
-
fileType: string | null | undefined;
|
|
39
|
-
mentions: {
|
|
40
|
-
name?: string | null | undefined;
|
|
41
|
-
email?: string | null | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
commentElement: HTMLElement | null;
|
|
44
|
-
isFocused: boolean;
|
|
45
|
-
creatorId: string | null;
|
|
46
|
-
creatorEmail: string | null;
|
|
47
|
-
creatorName: string | null;
|
|
48
|
-
creatorImage: string | null;
|
|
49
|
-
createdTime: number;
|
|
50
|
-
isInternal: boolean;
|
|
51
|
-
commentText: string;
|
|
52
|
-
selection: {
|
|
53
|
-
documentId: any;
|
|
54
|
-
page: any;
|
|
55
|
-
selectionBounds: any;
|
|
56
|
-
getValues: () => {
|
|
57
|
-
documentId: any;
|
|
58
|
-
page: any;
|
|
59
|
-
selectionBounds: any;
|
|
60
|
-
source: any;
|
|
61
|
-
};
|
|
62
|
-
getContainerId: () => string;
|
|
63
|
-
getContainerLocation: (parentContainer: any) => {
|
|
64
|
-
top: number;
|
|
65
|
-
left: number;
|
|
66
|
-
};
|
|
67
|
-
source: any;
|
|
68
|
-
};
|
|
69
|
-
floatingPosition: {
|
|
70
|
-
top?: number | undefined;
|
|
71
|
-
left?: number | undefined;
|
|
72
|
-
right?: number | undefined;
|
|
73
|
-
bottom?: number | undefined;
|
|
74
|
-
};
|
|
75
|
-
trackedChange: boolean | undefined;
|
|
76
|
-
deletedText: string | null;
|
|
77
|
-
trackedChangeType: string | null;
|
|
78
|
-
trackedChangeText: string | null;
|
|
79
|
-
trackedChangeDisplayType: string | null;
|
|
80
|
-
semanticColorKey: string | null;
|
|
81
|
-
semanticColor: string | null;
|
|
82
|
-
trackedChangeStory: import('../../public/index.js').StoryLocator | null;
|
|
83
|
-
trackedChangeStoryKind: string | null;
|
|
84
|
-
trackedChangeStoryLabel: string;
|
|
85
|
-
trackedChangeAnchorKey: string | null;
|
|
86
|
-
trackedChangeCanonicalId: string | null;
|
|
87
|
-
trackedChangePositionAliases: string[];
|
|
88
|
-
trackedChangeDecision: ("accept" | "reject") | null;
|
|
89
|
-
trackedChangeLabel: string | null;
|
|
90
|
-
trackedChangeDetailLines: {
|
|
91
|
-
excerpt: string;
|
|
92
|
-
label: string;
|
|
93
|
-
}[] | null;
|
|
94
|
-
trackedChangeImagePreview: {
|
|
95
|
-
src: string;
|
|
96
|
-
contentType: string;
|
|
97
|
-
role: "deleted" | "inserted" | "before" | "after";
|
|
98
|
-
partUri?: string | undefined;
|
|
99
|
-
relationshipId?: string | undefined;
|
|
100
|
-
width?: number | undefined;
|
|
101
|
-
height?: number | undefined;
|
|
102
|
-
alt?: string | undefined;
|
|
103
|
-
} | null;
|
|
104
|
-
customAttributes: readonly {
|
|
105
|
-
name: string;
|
|
106
|
-
namespaceUri: string;
|
|
107
|
-
localName: string;
|
|
108
|
-
value: string;
|
|
109
|
-
}[] | null;
|
|
110
|
-
resolvedTime: number | null;
|
|
111
|
-
resolvedById: string | null;
|
|
112
|
-
resolvedByEmail: string | null | undefined;
|
|
113
|
-
resolvedByName: string | null | undefined;
|
|
114
|
-
importedAuthor: {
|
|
115
|
-
name?: string | null | undefined;
|
|
116
|
-
email?: string | null | undefined;
|
|
117
|
-
} | null;
|
|
118
|
-
docxCommentJSON: {} | null;
|
|
119
|
-
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
120
|
-
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
121
|
-
threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
122
|
-
threadingParentCommentId: string | null | undefined;
|
|
123
|
-
originalXmlStructure: {
|
|
124
|
-
hasCommentsExtended: boolean;
|
|
125
|
-
hasCommentsExtensible: boolean;
|
|
126
|
-
hasCommentsIds: boolean;
|
|
127
|
-
} | undefined;
|
|
128
|
-
setText: ({ text, superdoc, suppressUpdate }: {
|
|
129
|
-
text: string;
|
|
130
|
-
superdoc?: {
|
|
131
|
-
emit: (event: "comments-update", payload: {
|
|
132
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
133
|
-
changes?: {
|
|
134
|
-
key: string;
|
|
135
|
-
value: unknown;
|
|
136
|
-
previousValue?: unknown;
|
|
137
|
-
}[];
|
|
138
|
-
comment: unknown;
|
|
139
|
-
}) => unknown;
|
|
140
|
-
commentsStore?: {
|
|
141
|
-
getConfig?: {
|
|
142
|
-
readOnly?: boolean;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
config?: {
|
|
146
|
-
modules?: import('../../public/index.js').Modules;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
suppressUpdate: true;
|
|
150
|
-
} | {
|
|
151
|
-
text: string;
|
|
152
|
-
superdoc: {
|
|
153
|
-
emit: (event: "comments-update", payload: {
|
|
154
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
155
|
-
changes?: {
|
|
156
|
-
key: string;
|
|
157
|
-
value: unknown;
|
|
158
|
-
previousValue?: unknown;
|
|
159
|
-
}[];
|
|
160
|
-
comment: unknown;
|
|
161
|
-
}) => unknown;
|
|
162
|
-
commentsStore?: {
|
|
163
|
-
getConfig?: {
|
|
164
|
-
readOnly?: boolean;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
config?: {
|
|
168
|
-
modules?: import('../../public/index.js').Modules;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
suppressUpdate?: false;
|
|
172
|
-
}) => {
|
|
173
|
-
ok: false;
|
|
174
|
-
reason: "read-only-document";
|
|
175
|
-
} | undefined;
|
|
176
|
-
getValues: () => {
|
|
177
|
-
uid: string | undefined;
|
|
178
|
-
commentId: string | undefined;
|
|
179
|
-
importedId: string | null | undefined;
|
|
180
|
-
parentCommentId: string | null | undefined;
|
|
181
|
-
trackedChangeParentId: string | null | undefined;
|
|
182
|
-
trackedChangeThreadParentId: string | null | undefined;
|
|
183
|
-
trackedChangeSide: string | null | undefined;
|
|
184
|
-
fileId: string | null | undefined;
|
|
185
|
-
fileType: string | null | undefined;
|
|
186
|
-
mentions: {
|
|
187
|
-
name: string | null | undefined;
|
|
188
|
-
email?: string | null | undefined;
|
|
189
|
-
}[];
|
|
190
|
-
createdAtVersionNumber: number | null | undefined;
|
|
191
|
-
creatorId: string | null;
|
|
192
|
-
creatorEmail: string | null;
|
|
193
|
-
creatorName: string | null;
|
|
194
|
-
creatorImage: string | null;
|
|
195
|
-
createdTime: number;
|
|
196
|
-
importedAuthor: {
|
|
197
|
-
name?: string | null | undefined;
|
|
198
|
-
email?: string | null | undefined;
|
|
199
|
-
} | null;
|
|
200
|
-
docxCommentJSON: {} | null;
|
|
201
|
-
isInternal: boolean;
|
|
202
|
-
commentText: string;
|
|
203
|
-
selection: {
|
|
204
|
-
documentId: any;
|
|
205
|
-
page: any;
|
|
206
|
-
selectionBounds: any;
|
|
207
|
-
source: any;
|
|
208
|
-
} | null;
|
|
209
|
-
trackedChange: boolean | undefined;
|
|
210
|
-
trackedChangeText: string | null;
|
|
211
|
-
trackedChangeType: string | null;
|
|
212
|
-
trackedChangeDisplayType: string | null;
|
|
213
|
-
semanticColorKey: string | null;
|
|
214
|
-
semanticColor: string | null;
|
|
215
|
-
trackedChangeStory: import('../../public/index.js').StoryLocator | null;
|
|
216
|
-
trackedChangeStoryKind: string | null;
|
|
217
|
-
trackedChangeStoryLabel: string;
|
|
218
|
-
trackedChangeAnchorKey: string | null;
|
|
219
|
-
trackedChangeCanonicalId: string | null;
|
|
220
|
-
trackedChangePositionAliases: string[];
|
|
221
|
-
trackedChangeDecision: ("accept" | "reject") | null;
|
|
222
|
-
trackedChangeLabel: string | null;
|
|
223
|
-
trackedChangeDetailLines: {
|
|
224
|
-
excerpt: string;
|
|
225
|
-
label: string;
|
|
226
|
-
}[] | null;
|
|
227
|
-
trackedChangeImagePreview: {
|
|
228
|
-
src: string;
|
|
229
|
-
contentType: string;
|
|
230
|
-
role: "deleted" | "inserted" | "before" | "after";
|
|
231
|
-
partUri?: string | undefined;
|
|
232
|
-
relationshipId?: string | undefined;
|
|
233
|
-
width?: number | undefined;
|
|
234
|
-
height?: number | undefined;
|
|
235
|
-
alt?: string | undefined;
|
|
236
|
-
} | null;
|
|
237
|
-
customAttributes: readonly {
|
|
238
|
-
name: string;
|
|
239
|
-
namespaceUri: string;
|
|
240
|
-
localName: string;
|
|
241
|
-
value: string;
|
|
242
|
-
}[] | null;
|
|
243
|
-
deletedText: string | null;
|
|
244
|
-
resolvedTime: number | null;
|
|
245
|
-
resolvedById: string | null;
|
|
246
|
-
resolvedByEmail: string | null | undefined;
|
|
247
|
-
resolvedByName: string | null | undefined;
|
|
248
|
-
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
249
|
-
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
250
|
-
threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
251
|
-
threadingParentCommentId: string | null | undefined;
|
|
252
|
-
originalXmlStructure: {
|
|
253
|
-
hasCommentsExtended: boolean;
|
|
254
|
-
hasCommentsExtensible: boolean;
|
|
255
|
-
hasCommentsIds: boolean;
|
|
256
|
-
} | undefined;
|
|
257
|
-
};
|
|
258
|
-
resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
|
|
259
|
-
id?: string | null;
|
|
260
|
-
email?: string | null;
|
|
261
|
-
name?: string | null;
|
|
262
|
-
superdoc: {
|
|
263
|
-
emit: (event: "comments-update", payload: {
|
|
264
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
265
|
-
changes?: {
|
|
266
|
-
key: string;
|
|
267
|
-
value: unknown;
|
|
268
|
-
previousValue?: unknown;
|
|
269
|
-
}[];
|
|
270
|
-
comment: unknown;
|
|
271
|
-
}) => unknown;
|
|
272
|
-
commentsStore?: {
|
|
273
|
-
getConfig?: {
|
|
274
|
-
readOnly?: boolean;
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
config?: {
|
|
278
|
-
modules?: import('../../public/index.js').Modules;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
decision?: "accept" | "reject";
|
|
282
|
-
reconciliationToken?: symbol;
|
|
283
|
-
}) => {
|
|
284
|
-
ok: false;
|
|
285
|
-
reason: "read-only-document";
|
|
286
|
-
} | undefined;
|
|
287
|
-
setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
|
|
288
|
-
isInternal: boolean;
|
|
289
|
-
superdoc: {
|
|
290
|
-
emit: (event: "comments-update", payload: {
|
|
291
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
292
|
-
changes?: {
|
|
293
|
-
key: string;
|
|
294
|
-
value: unknown;
|
|
295
|
-
previousValue?: unknown;
|
|
296
|
-
}[];
|
|
297
|
-
comment: unknown;
|
|
298
|
-
}) => unknown;
|
|
299
|
-
commentsStore?: {
|
|
300
|
-
getConfig?: {
|
|
301
|
-
readOnly?: boolean;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
config?: {
|
|
305
|
-
modules?: import('../../public/index.js').Modules;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
}) => {
|
|
309
|
-
ok: false;
|
|
310
|
-
reason: "read-only-document";
|
|
311
|
-
} | undefined;
|
|
312
|
-
updatePosition: (coords: {
|
|
313
|
-
top: number;
|
|
314
|
-
left: number;
|
|
315
|
-
right: number;
|
|
316
|
-
bottom: number;
|
|
317
|
-
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
318
|
-
getCommentUser: () => {
|
|
319
|
-
name: string;
|
|
320
|
-
email: string | null | undefined;
|
|
321
|
-
id?: undefined;
|
|
322
|
-
image?: undefined;
|
|
323
|
-
} | {
|
|
324
|
-
id: string | null;
|
|
325
|
-
name: string | null;
|
|
326
|
-
email: string | null;
|
|
327
|
-
image: string | null;
|
|
328
|
-
};
|
|
329
|
-
updateIdentityValues: (updates?: {
|
|
330
|
-
commentId?: string;
|
|
331
|
-
importedId?: string | null;
|
|
332
|
-
parentCommentId?: string | null;
|
|
333
|
-
trackedChangeParentId?: string | null;
|
|
334
|
-
trackedChangeThreadParentId?: string | null;
|
|
335
|
-
threadingParentCommentId?: string | null;
|
|
336
|
-
}) => void;
|
|
337
|
-
}>;
|
|
30
|
+
type: PropType<CommentModel>;
|
|
338
31
|
required: true;
|
|
339
32
|
};
|
|
340
33
|
}>, {
|
|
@@ -367,315 +60,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
367
60
|
default: boolean;
|
|
368
61
|
};
|
|
369
62
|
comment: {
|
|
370
|
-
type: PropType<
|
|
371
|
-
uid: string | undefined;
|
|
372
|
-
commentId: string;
|
|
373
|
-
importedId: string | null | undefined;
|
|
374
|
-
parentCommentId: string | null | undefined;
|
|
375
|
-
trackedChangeParentId: string | null | undefined;
|
|
376
|
-
trackedChangeThreadParentId: string | null | undefined;
|
|
377
|
-
trackedChangeSide: string | null | undefined;
|
|
378
|
-
fileId: string | null | undefined;
|
|
379
|
-
fileType: string | null | undefined;
|
|
380
|
-
mentions: {
|
|
381
|
-
name?: string | null | undefined;
|
|
382
|
-
email?: string | null | undefined;
|
|
383
|
-
}[];
|
|
384
|
-
commentElement: HTMLElement | null;
|
|
385
|
-
isFocused: boolean;
|
|
386
|
-
creatorId: string | null;
|
|
387
|
-
creatorEmail: string | null;
|
|
388
|
-
creatorName: string | null;
|
|
389
|
-
creatorImage: string | null;
|
|
390
|
-
createdTime: number;
|
|
391
|
-
isInternal: boolean;
|
|
392
|
-
commentText: string;
|
|
393
|
-
selection: {
|
|
394
|
-
documentId: any;
|
|
395
|
-
page: any;
|
|
396
|
-
selectionBounds: any;
|
|
397
|
-
getValues: () => {
|
|
398
|
-
documentId: any;
|
|
399
|
-
page: any;
|
|
400
|
-
selectionBounds: any;
|
|
401
|
-
source: any;
|
|
402
|
-
};
|
|
403
|
-
getContainerId: () => string;
|
|
404
|
-
getContainerLocation: (parentContainer: any) => {
|
|
405
|
-
top: number;
|
|
406
|
-
left: number;
|
|
407
|
-
};
|
|
408
|
-
source: any;
|
|
409
|
-
};
|
|
410
|
-
floatingPosition: {
|
|
411
|
-
top?: number | undefined;
|
|
412
|
-
left?: number | undefined;
|
|
413
|
-
right?: number | undefined;
|
|
414
|
-
bottom?: number | undefined;
|
|
415
|
-
};
|
|
416
|
-
trackedChange: boolean | undefined;
|
|
417
|
-
deletedText: string | null;
|
|
418
|
-
trackedChangeType: string | null;
|
|
419
|
-
trackedChangeText: string | null;
|
|
420
|
-
trackedChangeDisplayType: string | null;
|
|
421
|
-
semanticColorKey: string | null;
|
|
422
|
-
semanticColor: string | null;
|
|
423
|
-
trackedChangeStory: import('../../public/index.js').StoryLocator | null;
|
|
424
|
-
trackedChangeStoryKind: string | null;
|
|
425
|
-
trackedChangeStoryLabel: string;
|
|
426
|
-
trackedChangeAnchorKey: string | null;
|
|
427
|
-
trackedChangeCanonicalId: string | null;
|
|
428
|
-
trackedChangePositionAliases: string[];
|
|
429
|
-
trackedChangeDecision: ("accept" | "reject") | null;
|
|
430
|
-
trackedChangeLabel: string | null;
|
|
431
|
-
trackedChangeDetailLines: {
|
|
432
|
-
excerpt: string;
|
|
433
|
-
label: string;
|
|
434
|
-
}[] | null;
|
|
435
|
-
trackedChangeImagePreview: {
|
|
436
|
-
src: string;
|
|
437
|
-
contentType: string;
|
|
438
|
-
role: "deleted" | "inserted" | "before" | "after";
|
|
439
|
-
partUri?: string | undefined;
|
|
440
|
-
relationshipId?: string | undefined;
|
|
441
|
-
width?: number | undefined;
|
|
442
|
-
height?: number | undefined;
|
|
443
|
-
alt?: string | undefined;
|
|
444
|
-
} | null;
|
|
445
|
-
customAttributes: readonly {
|
|
446
|
-
name: string;
|
|
447
|
-
namespaceUri: string;
|
|
448
|
-
localName: string;
|
|
449
|
-
value: string;
|
|
450
|
-
}[] | null;
|
|
451
|
-
resolvedTime: number | null;
|
|
452
|
-
resolvedById: string | null;
|
|
453
|
-
resolvedByEmail: string | null | undefined;
|
|
454
|
-
resolvedByName: string | null | undefined;
|
|
455
|
-
importedAuthor: {
|
|
456
|
-
name?: string | null | undefined;
|
|
457
|
-
email?: string | null | undefined;
|
|
458
|
-
} | null;
|
|
459
|
-
docxCommentJSON: {} | null;
|
|
460
|
-
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
461
|
-
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
462
|
-
threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
463
|
-
threadingParentCommentId: string | null | undefined;
|
|
464
|
-
originalXmlStructure: {
|
|
465
|
-
hasCommentsExtended: boolean;
|
|
466
|
-
hasCommentsExtensible: boolean;
|
|
467
|
-
hasCommentsIds: boolean;
|
|
468
|
-
} | undefined;
|
|
469
|
-
setText: ({ text, superdoc, suppressUpdate }: {
|
|
470
|
-
text: string;
|
|
471
|
-
superdoc?: {
|
|
472
|
-
emit: (event: "comments-update", payload: {
|
|
473
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
474
|
-
changes?: {
|
|
475
|
-
key: string;
|
|
476
|
-
value: unknown;
|
|
477
|
-
previousValue?: unknown;
|
|
478
|
-
}[];
|
|
479
|
-
comment: unknown;
|
|
480
|
-
}) => unknown;
|
|
481
|
-
commentsStore?: {
|
|
482
|
-
getConfig?: {
|
|
483
|
-
readOnly?: boolean;
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
config?: {
|
|
487
|
-
modules?: import('../../public/index.js').Modules;
|
|
488
|
-
};
|
|
489
|
-
};
|
|
490
|
-
suppressUpdate: true;
|
|
491
|
-
} | {
|
|
492
|
-
text: string;
|
|
493
|
-
superdoc: {
|
|
494
|
-
emit: (event: "comments-update", payload: {
|
|
495
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
496
|
-
changes?: {
|
|
497
|
-
key: string;
|
|
498
|
-
value: unknown;
|
|
499
|
-
previousValue?: unknown;
|
|
500
|
-
}[];
|
|
501
|
-
comment: unknown;
|
|
502
|
-
}) => unknown;
|
|
503
|
-
commentsStore?: {
|
|
504
|
-
getConfig?: {
|
|
505
|
-
readOnly?: boolean;
|
|
506
|
-
};
|
|
507
|
-
};
|
|
508
|
-
config?: {
|
|
509
|
-
modules?: import('../../public/index.js').Modules;
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
|
-
suppressUpdate?: false;
|
|
513
|
-
}) => {
|
|
514
|
-
ok: false;
|
|
515
|
-
reason: "read-only-document";
|
|
516
|
-
} | undefined;
|
|
517
|
-
getValues: () => {
|
|
518
|
-
uid: string | undefined;
|
|
519
|
-
commentId: string | undefined;
|
|
520
|
-
importedId: string | null | undefined;
|
|
521
|
-
parentCommentId: string | null | undefined;
|
|
522
|
-
trackedChangeParentId: string | null | undefined;
|
|
523
|
-
trackedChangeThreadParentId: string | null | undefined;
|
|
524
|
-
trackedChangeSide: string | null | undefined;
|
|
525
|
-
fileId: string | null | undefined;
|
|
526
|
-
fileType: string | null | undefined;
|
|
527
|
-
mentions: {
|
|
528
|
-
name: string | null | undefined;
|
|
529
|
-
email?: string | null | undefined;
|
|
530
|
-
}[];
|
|
531
|
-
createdAtVersionNumber: number | null | undefined;
|
|
532
|
-
creatorId: string | null;
|
|
533
|
-
creatorEmail: string | null;
|
|
534
|
-
creatorName: string | null;
|
|
535
|
-
creatorImage: string | null;
|
|
536
|
-
createdTime: number;
|
|
537
|
-
importedAuthor: {
|
|
538
|
-
name?: string | null | undefined;
|
|
539
|
-
email?: string | null | undefined;
|
|
540
|
-
} | null;
|
|
541
|
-
docxCommentJSON: {} | null;
|
|
542
|
-
isInternal: boolean;
|
|
543
|
-
commentText: string;
|
|
544
|
-
selection: {
|
|
545
|
-
documentId: any;
|
|
546
|
-
page: any;
|
|
547
|
-
selectionBounds: any;
|
|
548
|
-
source: any;
|
|
549
|
-
} | null;
|
|
550
|
-
trackedChange: boolean | undefined;
|
|
551
|
-
trackedChangeText: string | null;
|
|
552
|
-
trackedChangeType: string | null;
|
|
553
|
-
trackedChangeDisplayType: string | null;
|
|
554
|
-
semanticColorKey: string | null;
|
|
555
|
-
semanticColor: string | null;
|
|
556
|
-
trackedChangeStory: import('../../public/index.js').StoryLocator | null;
|
|
557
|
-
trackedChangeStoryKind: string | null;
|
|
558
|
-
trackedChangeStoryLabel: string;
|
|
559
|
-
trackedChangeAnchorKey: string | null;
|
|
560
|
-
trackedChangeCanonicalId: string | null;
|
|
561
|
-
trackedChangePositionAliases: string[];
|
|
562
|
-
trackedChangeDecision: ("accept" | "reject") | null;
|
|
563
|
-
trackedChangeLabel: string | null;
|
|
564
|
-
trackedChangeDetailLines: {
|
|
565
|
-
excerpt: string;
|
|
566
|
-
label: string;
|
|
567
|
-
}[] | null;
|
|
568
|
-
trackedChangeImagePreview: {
|
|
569
|
-
src: string;
|
|
570
|
-
contentType: string;
|
|
571
|
-
role: "deleted" | "inserted" | "before" | "after";
|
|
572
|
-
partUri?: string | undefined;
|
|
573
|
-
relationshipId?: string | undefined;
|
|
574
|
-
width?: number | undefined;
|
|
575
|
-
height?: number | undefined;
|
|
576
|
-
alt?: string | undefined;
|
|
577
|
-
} | null;
|
|
578
|
-
customAttributes: readonly {
|
|
579
|
-
name: string;
|
|
580
|
-
namespaceUri: string;
|
|
581
|
-
localName: string;
|
|
582
|
-
value: string;
|
|
583
|
-
}[] | null;
|
|
584
|
-
deletedText: string | null;
|
|
585
|
-
resolvedTime: number | null;
|
|
586
|
-
resolvedById: string | null;
|
|
587
|
-
resolvedByEmail: string | null | undefined;
|
|
588
|
-
resolvedByName: string | null | undefined;
|
|
589
|
-
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
590
|
-
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
591
|
-
threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
592
|
-
threadingParentCommentId: string | null | undefined;
|
|
593
|
-
originalXmlStructure: {
|
|
594
|
-
hasCommentsExtended: boolean;
|
|
595
|
-
hasCommentsExtensible: boolean;
|
|
596
|
-
hasCommentsIds: boolean;
|
|
597
|
-
} | undefined;
|
|
598
|
-
};
|
|
599
|
-
resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
|
|
600
|
-
id?: string | null;
|
|
601
|
-
email?: string | null;
|
|
602
|
-
name?: string | null;
|
|
603
|
-
superdoc: {
|
|
604
|
-
emit: (event: "comments-update", payload: {
|
|
605
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
606
|
-
changes?: {
|
|
607
|
-
key: string;
|
|
608
|
-
value: unknown;
|
|
609
|
-
previousValue?: unknown;
|
|
610
|
-
}[];
|
|
611
|
-
comment: unknown;
|
|
612
|
-
}) => unknown;
|
|
613
|
-
commentsStore?: {
|
|
614
|
-
getConfig?: {
|
|
615
|
-
readOnly?: boolean;
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
config?: {
|
|
619
|
-
modules?: import('../../public/index.js').Modules;
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
decision?: "accept" | "reject";
|
|
623
|
-
reconciliationToken?: symbol;
|
|
624
|
-
}) => {
|
|
625
|
-
ok: false;
|
|
626
|
-
reason: "read-only-document";
|
|
627
|
-
} | undefined;
|
|
628
|
-
setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
|
|
629
|
-
isInternal: boolean;
|
|
630
|
-
superdoc: {
|
|
631
|
-
emit: (event: "comments-update", payload: {
|
|
632
|
-
type: import('../../../../../shared/common/event-types.js').CommentEvent;
|
|
633
|
-
changes?: {
|
|
634
|
-
key: string;
|
|
635
|
-
value: unknown;
|
|
636
|
-
previousValue?: unknown;
|
|
637
|
-
}[];
|
|
638
|
-
comment: unknown;
|
|
639
|
-
}) => unknown;
|
|
640
|
-
commentsStore?: {
|
|
641
|
-
getConfig?: {
|
|
642
|
-
readOnly?: boolean;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
config?: {
|
|
646
|
-
modules?: import('../../public/index.js').Modules;
|
|
647
|
-
};
|
|
648
|
-
};
|
|
649
|
-
}) => {
|
|
650
|
-
ok: false;
|
|
651
|
-
reason: "read-only-document";
|
|
652
|
-
} | undefined;
|
|
653
|
-
updatePosition: (coords: {
|
|
654
|
-
top: number;
|
|
655
|
-
left: number;
|
|
656
|
-
right: number;
|
|
657
|
-
bottom: number;
|
|
658
|
-
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
659
|
-
getCommentUser: () => {
|
|
660
|
-
name: string;
|
|
661
|
-
email: string | null | undefined;
|
|
662
|
-
id?: undefined;
|
|
663
|
-
image?: undefined;
|
|
664
|
-
} | {
|
|
665
|
-
id: string | null;
|
|
666
|
-
name: string | null;
|
|
667
|
-
email: string | null;
|
|
668
|
-
image: string | null;
|
|
669
|
-
};
|
|
670
|
-
updateIdentityValues: (updates?: {
|
|
671
|
-
commentId?: string;
|
|
672
|
-
importedId?: string | null;
|
|
673
|
-
parentCommentId?: string | null;
|
|
674
|
-
trackedChangeParentId?: string | null;
|
|
675
|
-
trackedChangeThreadParentId?: string | null;
|
|
676
|
-
threadingParentCommentId?: string | null;
|
|
677
|
-
}) => void;
|
|
678
|
-
}>;
|
|
63
|
+
type: PropType<CommentModel>;
|
|
679
64
|
required: true;
|
|
680
65
|
};
|
|
681
66
|
}>> & Readonly<{
|