superdoc 2.28.0-next.9 → 2.29.0-next.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 (94) hide show
  1. package/dist/chunks/{FindReplaceSurface-8V8AjgR4.cjs → FindReplaceSurface-BRs3JrCq.cjs} +1 -1
  2. package/dist/chunks/{FindReplaceSurface-RUiTFDt3.es.js → FindReplaceSurface-Dm043CZP.es.js} +1 -1
  3. package/dist/chunks/{PasswordPromptSurface-B5DHV6qr.cjs → PasswordPromptSurface-BpqP4pUa.cjs} +1 -1
  4. package/dist/chunks/{PasswordPromptSurface-BDpxqdzp.es.js → PasswordPromptSurface-DGjmN7A-.es.js} +1 -1
  5. package/dist/chunks/{PdfViewer-DjdsIh6n.es.js → PdfViewer-D4lVeOJu.es.js} +4 -3
  6. package/dist/chunks/{PdfViewer-omriDChK.cjs → PdfViewer-boENOZdF.cjs} +4 -3
  7. package/dist/chunks/{_plugin-vue_export-helper-BUdjGKyl.cjs → _plugin-vue_export-helper-6MBoygIY.cjs} +9 -0
  8. package/dist/chunks/{_plugin-vue_export-helper-7ZiLY07t.es.js → _plugin-vue_export-helper-CsJQtMvr.es.js} +4 -1
  9. package/dist/chunks/{create-super-doc-ui-B4c55pFy.cjs → create-super-doc-ui-0OA8hCNb.cjs} +390 -44
  10. package/dist/chunks/{create-super-doc-ui-C4Ka5Ph3.es.js → create-super-doc-ui-Duf65d0b.es.js} +357 -41
  11. package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
  12. package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
  13. package/dist/collaboration-upgrade-engine.cjs +1 -1
  14. package/dist/collaboration-upgrade-engine.es.js +1 -1
  15. package/dist/document-api/src/capabilities/html-markdown-support.d.ts +3 -3
  16. package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
  17. package/dist/document-api/src/index.d.ts +1 -1
  18. package/dist/document-api/src/lists/lists.d.ts +79 -79
  19. package/dist/document-api/src/lists/lists.types.d.ts +1 -0
  20. package/dist/document-api/src/sections/sections.types.d.ts +5 -1
  21. package/dist/document-api/src/types/clipboard.d.ts +5 -1
  22. package/dist/document-api/src/types/receipt.d.ts +2 -1
  23. package/dist/document-api/src/write/write.d.ts +10 -9
  24. package/dist/layout-engine/contracts/src/index.d.ts +5 -1
  25. package/dist/layout-engine/contracts/src/run-helpers.d.ts +1 -0
  26. package/dist/layout-engine/layout-bridge/src/index.d.ts +1 -0
  27. package/dist/layout-engine/layout-bridge/src/place-inline-drawings.d.ts +9 -0
  28. package/dist/layout-engine/layout-engine/src/layout-drawing.d.ts +2 -1
  29. package/dist/layout-engine/layout-engine/src/paginator.d.ts +1 -0
  30. package/dist/layout-engine/painters/dom/src/page-content.d.ts +1 -1
  31. package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
  32. package/dist/layout-engine/style-engine/src/ooxml/index.d.ts +1 -1
  33. package/dist/public/ui-react.cjs +1 -1
  34. package/dist/public/ui-react.es.js +1 -1
  35. package/dist/public/ui-vue.cjs +1 -1
  36. package/dist/public/ui-vue.es.js +1 -1
  37. package/dist/public/ui.cjs +3 -2
  38. package/dist/public/ui.es.js +3 -2
  39. package/dist/shared/font-system/src/resolver.d.ts +3 -3
  40. package/dist/style.css +1 -1
  41. package/dist/style.layered.css +1 -1
  42. package/dist/superdoc/src/SuperDoc.vue.d.ts +5 -3
  43. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +1670 -24
  44. package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +2 -2
  45. package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +2 -2
  46. package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +24 -0
  47. package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +4 -0
  48. package/dist/superdoc/src/components/general/Avatar.vue.d.ts +7 -0
  49. package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +27 -9
  50. package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
  51. package/dist/superdoc/src/composables/use-high-contrast-mode.d.ts +8 -4
  52. package/dist/superdoc/src/composables/use-link-popover.d.ts +3 -3
  53. package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +10 -0
  54. package/dist/superdoc/src/core/SuperDoc.d.ts +2 -6
  55. package/dist/superdoc/src/core/collaboration/helpers.d.ts +0 -5
  56. package/dist/superdoc/src/core/collaboration/permissions.d.ts +1 -0
  57. package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +2 -1
  58. package/dist/superdoc/src/core/create-app.d.ts +2 -6
  59. package/dist/superdoc/src/core/editor-runtime/types.d.ts +2 -0
  60. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -0
  61. package/dist/superdoc/src/core/types/index.d.ts +10 -4
  62. package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +1 -0
  63. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +104 -84
  64. package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
  65. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +2 -0
  66. package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +2 -2
  67. package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +5 -0
  68. package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
  69. package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +181 -36
  70. package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
  71. package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
  72. package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
  73. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +101 -16
  74. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
  75. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +82 -11
  76. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +122 -33
  77. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -48
  78. package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +0 -1
  79. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +4 -1
  80. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +16 -0
  81. package/dist/superdoc/src/public/ui/types.d.ts +39 -1
  82. package/dist/superdoc/src/public/ui.d.cts +12 -0
  83. package/dist/superdoc/src/public/ui.d.ts +1 -1
  84. package/dist/superdoc/src/stores/comments-store.d.ts +158 -125
  85. package/dist/superdoc/src/stores/superdoc-store.d.ts +475 -376
  86. package/dist/superdoc.cjs +561 -1843
  87. package/dist/superdoc.es.js +766 -13144
  88. package/dist-cdn/style.layered.css +1 -1
  89. package/dist-cdn/superdoc.min.css +1 -1
  90. package/dist-cdn/superdoc.min.js +42 -42
  91. package/package.json +4 -3
  92. package/dist/superdoc/src/core/collaboration/collaboration.d.ts +0 -18
  93. package/dist/superdoc/src/helpers/group-changes.d.ts +0 -1
  94. package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +0 -104
@@ -1,37 +1,1683 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- $emit: (event: "resize" | "ready" | "click-outside" | "dialog-exit", ...args: any[]) => void;
3
- comment: Record<string, any>;
1
+ import { PropType, Ref } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ comment: {
4
+ type: PropType<{
5
+ uid: string | undefined;
6
+ commentId: string;
7
+ importedId: string | null | undefined;
8
+ parentCommentId: string | null | undefined;
9
+ trackedChangeParentId: string | null | undefined;
10
+ trackedChangeThreadParentId: string | null | undefined;
11
+ trackedChangeSide: string | null | undefined;
12
+ fileId: string | null | undefined;
13
+ fileType: string | null | undefined;
14
+ mentions: {
15
+ name?: string | null | undefined;
16
+ email?: string | null | undefined;
17
+ }[];
18
+ commentElement: HTMLElement | null;
19
+ isFocused: boolean;
20
+ creatorId: string | null;
21
+ creatorEmail: string | null;
22
+ creatorName: string | null;
23
+ creatorImage: string | null;
24
+ createdTime: number;
25
+ isInternal: boolean;
26
+ commentText: string;
27
+ selection: {
28
+ documentId: any;
29
+ page: any;
30
+ selectionBounds: any;
31
+ getValues: () => {
32
+ documentId: any;
33
+ page: any;
34
+ selectionBounds: any;
35
+ source: any;
36
+ };
37
+ getContainerId: () => string;
38
+ getContainerLocation: (parentContainer: any) => {
39
+ top: number;
40
+ left: number;
41
+ };
42
+ source: any;
43
+ };
44
+ floatingPosition: {
45
+ top?: number | undefined;
46
+ left?: number | undefined;
47
+ right?: number | undefined;
48
+ bottom?: number | undefined;
49
+ };
50
+ trackedChange: boolean | undefined;
51
+ deletedText: string | null;
52
+ trackedChangeType: string | null;
53
+ trackedChangeText: string | null;
54
+ trackedChangeDisplayType: string | null;
55
+ semanticColorKey: string | null;
56
+ semanticColor: string | null;
57
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
58
+ trackedChangeStoryKind: string | null;
59
+ trackedChangeStoryLabel: string;
60
+ trackedChangeAnchorKey: string | null;
61
+ trackedChangeCanonicalId: string | null;
62
+ trackedChangePositionAliases: string[];
63
+ trackedChangeDecision: ("accept" | "reject") | null;
64
+ trackedChangeLabel: string | null;
65
+ trackedChangeDetailLines: {
66
+ excerpt: string;
67
+ label: string;
68
+ }[] | null;
69
+ trackedChangeImagePreview: {
70
+ src: string;
71
+ contentType: string;
72
+ role: "deleted" | "inserted" | "before" | "after";
73
+ partUri?: string | undefined;
74
+ relationshipId?: string | undefined;
75
+ width?: number | undefined;
76
+ height?: number | undefined;
77
+ alt?: string | undefined;
78
+ } | null;
79
+ customAttributes: readonly {
80
+ name: string;
81
+ namespaceUri: string;
82
+ localName: string;
83
+ value: string;
84
+ }[] | null;
85
+ resolvedTime: number | null;
86
+ resolvedById: string | null;
87
+ resolvedByEmail: string | null | undefined;
88
+ resolvedByName: string | null | undefined;
89
+ importedAuthor: {
90
+ name?: string | null | undefined;
91
+ email?: string | null | undefined;
92
+ } | null;
93
+ docxCommentJSON: {} | null;
94
+ origin: "word" | "google-docs" | "unknown" | undefined;
95
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
96
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
97
+ threadingParentCommentId: string | null | undefined;
98
+ originalXmlStructure: {
99
+ hasCommentsExtended: boolean;
100
+ hasCommentsExtensible: boolean;
101
+ hasCommentsIds: boolean;
102
+ } | undefined;
103
+ setText: ({ text, superdoc, suppressUpdate }: {
104
+ text: string;
105
+ superdoc?: {
106
+ emit: (event: "comments-update", payload: {
107
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
108
+ changes?: {
109
+ key: string;
110
+ value: unknown;
111
+ previousValue?: unknown;
112
+ }[];
113
+ comment: unknown;
114
+ }) => unknown;
115
+ commentsStore?: {
116
+ getConfig?: {
117
+ readOnly?: boolean;
118
+ };
119
+ };
120
+ config?: {
121
+ modules?: import('../../public/index.js').Modules;
122
+ };
123
+ };
124
+ suppressUpdate: true;
125
+ } | {
126
+ text: string;
127
+ superdoc: {
128
+ emit: (event: "comments-update", payload: {
129
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
130
+ changes?: {
131
+ key: string;
132
+ value: unknown;
133
+ previousValue?: unknown;
134
+ }[];
135
+ comment: unknown;
136
+ }) => unknown;
137
+ commentsStore?: {
138
+ getConfig?: {
139
+ readOnly?: boolean;
140
+ };
141
+ };
142
+ config?: {
143
+ modules?: import('../../public/index.js').Modules;
144
+ };
145
+ };
146
+ suppressUpdate?: false;
147
+ }) => {
148
+ ok: false;
149
+ reason: "read-only-document";
150
+ } | undefined;
151
+ getValues: () => {
152
+ uid: string | undefined;
153
+ commentId: string | undefined;
154
+ importedId: string | null | undefined;
155
+ parentCommentId: string | null | undefined;
156
+ trackedChangeParentId: string | null | undefined;
157
+ trackedChangeThreadParentId: string | null | undefined;
158
+ trackedChangeSide: string | null | undefined;
159
+ fileId: string | null | undefined;
160
+ fileType: string | null | undefined;
161
+ mentions: {
162
+ name: string | null | undefined;
163
+ email?: string | null | undefined;
164
+ }[];
165
+ createdAtVersionNumber: number | null | undefined;
166
+ creatorId: string | null;
167
+ creatorEmail: string | null;
168
+ creatorName: string | null;
169
+ creatorImage: string | null;
170
+ createdTime: number;
171
+ importedAuthor: {
172
+ name?: string | null | undefined;
173
+ email?: string | null | undefined;
174
+ } | null;
175
+ docxCommentJSON: {} | null;
176
+ isInternal: boolean;
177
+ commentText: string;
178
+ selection: {
179
+ documentId: any;
180
+ page: any;
181
+ selectionBounds: any;
182
+ source: any;
183
+ } | null;
184
+ trackedChange: boolean | undefined;
185
+ trackedChangeText: string | null;
186
+ trackedChangeType: string | null;
187
+ trackedChangeDisplayType: string | null;
188
+ semanticColorKey: string | null;
189
+ semanticColor: string | null;
190
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
191
+ trackedChangeStoryKind: string | null;
192
+ trackedChangeStoryLabel: string;
193
+ trackedChangeAnchorKey: string | null;
194
+ trackedChangeCanonicalId: string | null;
195
+ trackedChangePositionAliases: string[];
196
+ trackedChangeDecision: ("accept" | "reject") | null;
197
+ trackedChangeLabel: string | null;
198
+ trackedChangeDetailLines: {
199
+ excerpt: string;
200
+ label: string;
201
+ }[] | null;
202
+ trackedChangeImagePreview: {
203
+ src: string;
204
+ contentType: string;
205
+ role: "deleted" | "inserted" | "before" | "after";
206
+ partUri?: string | undefined;
207
+ relationshipId?: string | undefined;
208
+ width?: number | undefined;
209
+ height?: number | undefined;
210
+ alt?: string | undefined;
211
+ } | null;
212
+ customAttributes: readonly {
213
+ name: string;
214
+ namespaceUri: string;
215
+ localName: string;
216
+ value: string;
217
+ }[] | null;
218
+ deletedText: string | null;
219
+ resolvedTime: number | null;
220
+ resolvedById: string | null;
221
+ resolvedByEmail: string | null | undefined;
222
+ resolvedByName: string | null | undefined;
223
+ origin: "word" | "google-docs" | "unknown" | undefined;
224
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
225
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
226
+ threadingParentCommentId: string | null | undefined;
227
+ originalXmlStructure: {
228
+ hasCommentsExtended: boolean;
229
+ hasCommentsExtensible: boolean;
230
+ hasCommentsIds: boolean;
231
+ } | undefined;
232
+ };
233
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
234
+ id?: string | null;
235
+ email?: string | null;
236
+ name?: string | null;
237
+ superdoc: {
238
+ emit: (event: "comments-update", payload: {
239
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
240
+ changes?: {
241
+ key: string;
242
+ value: unknown;
243
+ previousValue?: unknown;
244
+ }[];
245
+ comment: unknown;
246
+ }) => unknown;
247
+ commentsStore?: {
248
+ getConfig?: {
249
+ readOnly?: boolean;
250
+ };
251
+ };
252
+ config?: {
253
+ modules?: import('../../public/index.js').Modules;
254
+ };
255
+ };
256
+ decision?: "accept" | "reject";
257
+ reconciliationToken?: symbol;
258
+ }) => {
259
+ ok: false;
260
+ reason: "read-only-document";
261
+ } | undefined;
262
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
263
+ isInternal: boolean;
264
+ superdoc: {
265
+ emit: (event: "comments-update", payload: {
266
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
267
+ changes?: {
268
+ key: string;
269
+ value: unknown;
270
+ previousValue?: unknown;
271
+ }[];
272
+ comment: unknown;
273
+ }) => unknown;
274
+ commentsStore?: {
275
+ getConfig?: {
276
+ readOnly?: boolean;
277
+ };
278
+ };
279
+ config?: {
280
+ modules?: import('../../public/index.js').Modules;
281
+ };
282
+ };
283
+ }) => {
284
+ ok: false;
285
+ reason: "read-only-document";
286
+ } | undefined;
287
+ updatePosition: (coords: {
288
+ top: number;
289
+ left: number;
290
+ right: number;
291
+ bottom: number;
292
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
293
+ getCommentUser: () => {
294
+ name: string;
295
+ email: string | null | undefined;
296
+ id?: undefined;
297
+ image?: undefined;
298
+ } | {
299
+ id: string | null;
300
+ name: string | null;
301
+ email: string | null;
302
+ image: string | null;
303
+ };
304
+ updateIdentityValues: (updates?: {
305
+ commentId?: string;
306
+ importedId?: string | null;
307
+ parentCommentId?: string | null;
308
+ trackedChangeParentId?: string | null;
309
+ trackedChangeThreadParentId?: string | null;
310
+ threadingParentCommentId?: string | null;
311
+ }) => void;
312
+ }>;
313
+ required: true;
314
+ };
315
+ autoFocus: {
316
+ type: BooleanConstructor;
317
+ default: boolean;
318
+ };
319
+ parent: {
320
+ type: PropType<HTMLElement | null>;
321
+ required: false;
322
+ };
323
+ floatingInstanceId: {
324
+ type: PropType<string | null>;
325
+ default: null;
326
+ };
327
+ floatingPageIndex: {
328
+ type: PropType<number | null>;
329
+ default: null;
330
+ };
331
+ floatingPositionEntry: {
332
+ type: PropType<{
333
+ kind?: string;
334
+ storyKey?: string;
335
+ pageIndex?: number | null;
336
+ start?: number;
337
+ end?: number;
338
+ bounds?: {
339
+ top?: number;
340
+ left?: number;
341
+ right?: number;
342
+ bottom?: number;
343
+ } | null;
344
+ } | null>;
345
+ default: null;
346
+ };
347
+ isFloatingInstanceActive: {
348
+ type: PropType<boolean | undefined>;
349
+ default: undefined;
350
+ };
351
+ threadComments: {
352
+ type: PropType<{
353
+ uid: string | undefined;
354
+ commentId: string;
355
+ importedId: string | null | undefined;
356
+ parentCommentId: string | null | undefined;
357
+ trackedChangeParentId: string | null | undefined;
358
+ trackedChangeThreadParentId: string | null | undefined;
359
+ trackedChangeSide: string | null | undefined;
360
+ fileId: string | null | undefined;
361
+ fileType: string | null | undefined;
362
+ mentions: {
363
+ name?: string | null | undefined;
364
+ email?: string | null | undefined;
365
+ }[];
366
+ commentElement: HTMLElement | null;
367
+ isFocused: boolean;
368
+ creatorId: string | null;
369
+ creatorEmail: string | null;
370
+ creatorName: string | null;
371
+ creatorImage: string | null;
372
+ createdTime: number;
373
+ isInternal: boolean;
374
+ commentText: string;
375
+ selection: {
376
+ documentId: any;
377
+ page: any;
378
+ selectionBounds: any;
379
+ getValues: () => {
380
+ documentId: any;
381
+ page: any;
382
+ selectionBounds: any;
383
+ source: any;
384
+ };
385
+ getContainerId: () => string;
386
+ getContainerLocation: (parentContainer: any) => {
387
+ top: number;
388
+ left: number;
389
+ };
390
+ source: any;
391
+ };
392
+ floatingPosition: {
393
+ top?: number | undefined;
394
+ left?: number | undefined;
395
+ right?: number | undefined;
396
+ bottom?: number | undefined;
397
+ };
398
+ trackedChange: boolean | undefined;
399
+ deletedText: string | null;
400
+ trackedChangeType: string | null;
401
+ trackedChangeText: string | null;
402
+ trackedChangeDisplayType: string | null;
403
+ semanticColorKey: string | null;
404
+ semanticColor: string | null;
405
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
406
+ trackedChangeStoryKind: string | null;
407
+ trackedChangeStoryLabel: string;
408
+ trackedChangeAnchorKey: string | null;
409
+ trackedChangeCanonicalId: string | null;
410
+ trackedChangePositionAliases: string[];
411
+ trackedChangeDecision: ("accept" | "reject") | null;
412
+ trackedChangeLabel: string | null;
413
+ trackedChangeDetailLines: {
414
+ excerpt: string;
415
+ label: string;
416
+ }[] | null;
417
+ trackedChangeImagePreview: {
418
+ src: string;
419
+ contentType: string;
420
+ role: "deleted" | "inserted" | "before" | "after";
421
+ partUri?: string | undefined;
422
+ relationshipId?: string | undefined;
423
+ width?: number | undefined;
424
+ height?: number | undefined;
425
+ alt?: string | undefined;
426
+ } | null;
427
+ customAttributes: readonly {
428
+ name: string;
429
+ namespaceUri: string;
430
+ localName: string;
431
+ value: string;
432
+ }[] | null;
433
+ resolvedTime: number | null;
434
+ resolvedById: string | null;
435
+ resolvedByEmail: string | null | undefined;
436
+ resolvedByName: string | null | undefined;
437
+ importedAuthor: {
438
+ name?: string | null | undefined;
439
+ email?: string | null | undefined;
440
+ } | null;
441
+ docxCommentJSON: {} | null;
442
+ origin: "word" | "google-docs" | "unknown" | undefined;
443
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
444
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
445
+ threadingParentCommentId: string | null | undefined;
446
+ originalXmlStructure: {
447
+ hasCommentsExtended: boolean;
448
+ hasCommentsExtensible: boolean;
449
+ hasCommentsIds: boolean;
450
+ } | undefined;
451
+ setText: ({ text, superdoc, suppressUpdate }: {
452
+ text: string;
453
+ superdoc?: {
454
+ emit: (event: "comments-update", payload: {
455
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
456
+ changes?: {
457
+ key: string;
458
+ value: unknown;
459
+ previousValue?: unknown;
460
+ }[];
461
+ comment: unknown;
462
+ }) => unknown;
463
+ commentsStore?: {
464
+ getConfig?: {
465
+ readOnly?: boolean;
466
+ };
467
+ };
468
+ config?: {
469
+ modules?: import('../../public/index.js').Modules;
470
+ };
471
+ };
472
+ suppressUpdate: true;
473
+ } | {
474
+ text: string;
475
+ superdoc: {
476
+ emit: (event: "comments-update", payload: {
477
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
478
+ changes?: {
479
+ key: string;
480
+ value: unknown;
481
+ previousValue?: unknown;
482
+ }[];
483
+ comment: unknown;
484
+ }) => unknown;
485
+ commentsStore?: {
486
+ getConfig?: {
487
+ readOnly?: boolean;
488
+ };
489
+ };
490
+ config?: {
491
+ modules?: import('../../public/index.js').Modules;
492
+ };
493
+ };
494
+ suppressUpdate?: false;
495
+ }) => {
496
+ ok: false;
497
+ reason: "read-only-document";
498
+ } | undefined;
499
+ getValues: () => {
500
+ uid: string | undefined;
501
+ commentId: string | undefined;
502
+ importedId: string | null | undefined;
503
+ parentCommentId: string | null | undefined;
504
+ trackedChangeParentId: string | null | undefined;
505
+ trackedChangeThreadParentId: string | null | undefined;
506
+ trackedChangeSide: string | null | undefined;
507
+ fileId: string | null | undefined;
508
+ fileType: string | null | undefined;
509
+ mentions: {
510
+ name: string | null | undefined;
511
+ email?: string | null | undefined;
512
+ }[];
513
+ createdAtVersionNumber: number | null | undefined;
514
+ creatorId: string | null;
515
+ creatorEmail: string | null;
516
+ creatorName: string | null;
517
+ creatorImage: string | null;
518
+ createdTime: number;
519
+ importedAuthor: {
520
+ name?: string | null | undefined;
521
+ email?: string | null | undefined;
522
+ } | null;
523
+ docxCommentJSON: {} | null;
524
+ isInternal: boolean;
525
+ commentText: string;
526
+ selection: {
527
+ documentId: any;
528
+ page: any;
529
+ selectionBounds: any;
530
+ source: any;
531
+ } | null;
532
+ trackedChange: boolean | undefined;
533
+ trackedChangeText: string | null;
534
+ trackedChangeType: string | null;
535
+ trackedChangeDisplayType: string | null;
536
+ semanticColorKey: string | null;
537
+ semanticColor: string | null;
538
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
539
+ trackedChangeStoryKind: string | null;
540
+ trackedChangeStoryLabel: string;
541
+ trackedChangeAnchorKey: string | null;
542
+ trackedChangeCanonicalId: string | null;
543
+ trackedChangePositionAliases: string[];
544
+ trackedChangeDecision: ("accept" | "reject") | null;
545
+ trackedChangeLabel: string | null;
546
+ trackedChangeDetailLines: {
547
+ excerpt: string;
548
+ label: string;
549
+ }[] | null;
550
+ trackedChangeImagePreview: {
551
+ src: string;
552
+ contentType: string;
553
+ role: "deleted" | "inserted" | "before" | "after";
554
+ partUri?: string | undefined;
555
+ relationshipId?: string | undefined;
556
+ width?: number | undefined;
557
+ height?: number | undefined;
558
+ alt?: string | undefined;
559
+ } | null;
560
+ customAttributes: readonly {
561
+ name: string;
562
+ namespaceUri: string;
563
+ localName: string;
564
+ value: string;
565
+ }[] | null;
566
+ deletedText: string | null;
567
+ resolvedTime: number | null;
568
+ resolvedById: string | null;
569
+ resolvedByEmail: string | null | undefined;
570
+ resolvedByName: string | null | undefined;
571
+ origin: "word" | "google-docs" | "unknown" | undefined;
572
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
573
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
574
+ threadingParentCommentId: string | null | undefined;
575
+ originalXmlStructure: {
576
+ hasCommentsExtended: boolean;
577
+ hasCommentsExtensible: boolean;
578
+ hasCommentsIds: boolean;
579
+ } | undefined;
580
+ };
581
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
582
+ id?: string | null;
583
+ email?: string | null;
584
+ name?: string | null;
585
+ superdoc: {
586
+ emit: (event: "comments-update", payload: {
587
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
588
+ changes?: {
589
+ key: string;
590
+ value: unknown;
591
+ previousValue?: unknown;
592
+ }[];
593
+ comment: unknown;
594
+ }) => unknown;
595
+ commentsStore?: {
596
+ getConfig?: {
597
+ readOnly?: boolean;
598
+ };
599
+ };
600
+ config?: {
601
+ modules?: import('../../public/index.js').Modules;
602
+ };
603
+ };
604
+ decision?: "accept" | "reject";
605
+ reconciliationToken?: symbol;
606
+ }) => {
607
+ ok: false;
608
+ reason: "read-only-document";
609
+ } | undefined;
610
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
611
+ isInternal: boolean;
612
+ superdoc: {
613
+ emit: (event: "comments-update", payload: {
614
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
615
+ changes?: {
616
+ key: string;
617
+ value: unknown;
618
+ previousValue?: unknown;
619
+ }[];
620
+ comment: unknown;
621
+ }) => unknown;
622
+ commentsStore?: {
623
+ getConfig?: {
624
+ readOnly?: boolean;
625
+ };
626
+ };
627
+ config?: {
628
+ modules?: import('../../public/index.js').Modules;
629
+ };
630
+ };
631
+ }) => {
632
+ ok: false;
633
+ reason: "read-only-document";
634
+ } | undefined;
635
+ updatePosition: (coords: {
636
+ top: number;
637
+ left: number;
638
+ right: number;
639
+ bottom: number;
640
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
641
+ getCommentUser: () => {
642
+ name: string;
643
+ email: string | null | undefined;
644
+ id?: undefined;
645
+ image?: undefined;
646
+ } | {
647
+ id: string | null;
648
+ name: string | null;
649
+ email: string | null;
650
+ image: string | null;
651
+ };
652
+ updateIdentityValues: (updates?: {
653
+ commentId?: string;
654
+ importedId?: string | null;
655
+ parentCommentId?: string | null;
656
+ trackedChangeParentId?: string | null;
657
+ trackedChangeThreadParentId?: string | null;
658
+ threadingParentCommentId?: string | null;
659
+ }) => void;
660
+ }[] | null>;
661
+ default: null;
662
+ };
663
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
664
+ resize: () => any;
665
+ ready: (payload: {
666
+ commentId: string | null | undefined;
667
+ elementRef: Ref<HTMLElement | null>;
668
+ }) => any;
669
+ "click-outside": () => any;
670
+ "dialog-exit": () => any;
671
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
672
+ comment: {
673
+ type: PropType<{
674
+ uid: string | undefined;
675
+ commentId: string;
676
+ importedId: string | null | undefined;
677
+ parentCommentId: string | null | undefined;
678
+ trackedChangeParentId: string | null | undefined;
679
+ trackedChangeThreadParentId: string | null | undefined;
680
+ trackedChangeSide: string | null | undefined;
681
+ fileId: string | null | undefined;
682
+ fileType: string | null | undefined;
683
+ mentions: {
684
+ name?: string | null | undefined;
685
+ email?: string | null | undefined;
686
+ }[];
687
+ commentElement: HTMLElement | null;
688
+ isFocused: boolean;
689
+ creatorId: string | null;
690
+ creatorEmail: string | null;
691
+ creatorName: string | null;
692
+ creatorImage: string | null;
693
+ createdTime: number;
694
+ isInternal: boolean;
695
+ commentText: string;
696
+ selection: {
697
+ documentId: any;
698
+ page: any;
699
+ selectionBounds: any;
700
+ getValues: () => {
701
+ documentId: any;
702
+ page: any;
703
+ selectionBounds: any;
704
+ source: any;
705
+ };
706
+ getContainerId: () => string;
707
+ getContainerLocation: (parentContainer: any) => {
708
+ top: number;
709
+ left: number;
710
+ };
711
+ source: any;
712
+ };
713
+ floatingPosition: {
714
+ top?: number | undefined;
715
+ left?: number | undefined;
716
+ right?: number | undefined;
717
+ bottom?: number | undefined;
718
+ };
719
+ trackedChange: boolean | undefined;
720
+ deletedText: string | null;
721
+ trackedChangeType: string | null;
722
+ trackedChangeText: string | null;
723
+ trackedChangeDisplayType: string | null;
724
+ semanticColorKey: string | null;
725
+ semanticColor: string | null;
726
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
727
+ trackedChangeStoryKind: string | null;
728
+ trackedChangeStoryLabel: string;
729
+ trackedChangeAnchorKey: string | null;
730
+ trackedChangeCanonicalId: string | null;
731
+ trackedChangePositionAliases: string[];
732
+ trackedChangeDecision: ("accept" | "reject") | null;
733
+ trackedChangeLabel: string | null;
734
+ trackedChangeDetailLines: {
735
+ excerpt: string;
736
+ label: string;
737
+ }[] | null;
738
+ trackedChangeImagePreview: {
739
+ src: string;
740
+ contentType: string;
741
+ role: "deleted" | "inserted" | "before" | "after";
742
+ partUri?: string | undefined;
743
+ relationshipId?: string | undefined;
744
+ width?: number | undefined;
745
+ height?: number | undefined;
746
+ alt?: string | undefined;
747
+ } | null;
748
+ customAttributes: readonly {
749
+ name: string;
750
+ namespaceUri: string;
751
+ localName: string;
752
+ value: string;
753
+ }[] | null;
754
+ resolvedTime: number | null;
755
+ resolvedById: string | null;
756
+ resolvedByEmail: string | null | undefined;
757
+ resolvedByName: string | null | undefined;
758
+ importedAuthor: {
759
+ name?: string | null | undefined;
760
+ email?: string | null | undefined;
761
+ } | null;
762
+ docxCommentJSON: {} | null;
763
+ origin: "word" | "google-docs" | "unknown" | undefined;
764
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
765
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
766
+ threadingParentCommentId: string | null | undefined;
767
+ originalXmlStructure: {
768
+ hasCommentsExtended: boolean;
769
+ hasCommentsExtensible: boolean;
770
+ hasCommentsIds: boolean;
771
+ } | undefined;
772
+ setText: ({ text, superdoc, suppressUpdate }: {
773
+ text: string;
774
+ superdoc?: {
775
+ emit: (event: "comments-update", payload: {
776
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
777
+ changes?: {
778
+ key: string;
779
+ value: unknown;
780
+ previousValue?: unknown;
781
+ }[];
782
+ comment: unknown;
783
+ }) => unknown;
784
+ commentsStore?: {
785
+ getConfig?: {
786
+ readOnly?: boolean;
787
+ };
788
+ };
789
+ config?: {
790
+ modules?: import('../../public/index.js').Modules;
791
+ };
792
+ };
793
+ suppressUpdate: true;
794
+ } | {
795
+ text: string;
796
+ superdoc: {
797
+ emit: (event: "comments-update", payload: {
798
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
799
+ changes?: {
800
+ key: string;
801
+ value: unknown;
802
+ previousValue?: unknown;
803
+ }[];
804
+ comment: unknown;
805
+ }) => unknown;
806
+ commentsStore?: {
807
+ getConfig?: {
808
+ readOnly?: boolean;
809
+ };
810
+ };
811
+ config?: {
812
+ modules?: import('../../public/index.js').Modules;
813
+ };
814
+ };
815
+ suppressUpdate?: false;
816
+ }) => {
817
+ ok: false;
818
+ reason: "read-only-document";
819
+ } | undefined;
820
+ getValues: () => {
821
+ uid: string | undefined;
822
+ commentId: string | undefined;
823
+ importedId: string | null | undefined;
824
+ parentCommentId: string | null | undefined;
825
+ trackedChangeParentId: string | null | undefined;
826
+ trackedChangeThreadParentId: string | null | undefined;
827
+ trackedChangeSide: string | null | undefined;
828
+ fileId: string | null | undefined;
829
+ fileType: string | null | undefined;
830
+ mentions: {
831
+ name: string | null | undefined;
832
+ email?: string | null | undefined;
833
+ }[];
834
+ createdAtVersionNumber: number | null | undefined;
835
+ creatorId: string | null;
836
+ creatorEmail: string | null;
837
+ creatorName: string | null;
838
+ creatorImage: string | null;
839
+ createdTime: number;
840
+ importedAuthor: {
841
+ name?: string | null | undefined;
842
+ email?: string | null | undefined;
843
+ } | null;
844
+ docxCommentJSON: {} | null;
845
+ isInternal: boolean;
846
+ commentText: string;
847
+ selection: {
848
+ documentId: any;
849
+ page: any;
850
+ selectionBounds: any;
851
+ source: any;
852
+ } | null;
853
+ trackedChange: boolean | undefined;
854
+ trackedChangeText: string | null;
855
+ trackedChangeType: string | null;
856
+ trackedChangeDisplayType: string | null;
857
+ semanticColorKey: string | null;
858
+ semanticColor: string | null;
859
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
860
+ trackedChangeStoryKind: string | null;
861
+ trackedChangeStoryLabel: string;
862
+ trackedChangeAnchorKey: string | null;
863
+ trackedChangeCanonicalId: string | null;
864
+ trackedChangePositionAliases: string[];
865
+ trackedChangeDecision: ("accept" | "reject") | null;
866
+ trackedChangeLabel: string | null;
867
+ trackedChangeDetailLines: {
868
+ excerpt: string;
869
+ label: string;
870
+ }[] | null;
871
+ trackedChangeImagePreview: {
872
+ src: string;
873
+ contentType: string;
874
+ role: "deleted" | "inserted" | "before" | "after";
875
+ partUri?: string | undefined;
876
+ relationshipId?: string | undefined;
877
+ width?: number | undefined;
878
+ height?: number | undefined;
879
+ alt?: string | undefined;
880
+ } | null;
881
+ customAttributes: readonly {
882
+ name: string;
883
+ namespaceUri: string;
884
+ localName: string;
885
+ value: string;
886
+ }[] | null;
887
+ deletedText: string | null;
888
+ resolvedTime: number | null;
889
+ resolvedById: string | null;
890
+ resolvedByEmail: string | null | undefined;
891
+ resolvedByName: string | null | undefined;
892
+ origin: "word" | "google-docs" | "unknown" | undefined;
893
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
894
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
895
+ threadingParentCommentId: string | null | undefined;
896
+ originalXmlStructure: {
897
+ hasCommentsExtended: boolean;
898
+ hasCommentsExtensible: boolean;
899
+ hasCommentsIds: boolean;
900
+ } | undefined;
901
+ };
902
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
903
+ id?: string | null;
904
+ email?: string | null;
905
+ name?: string | null;
906
+ superdoc: {
907
+ emit: (event: "comments-update", payload: {
908
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
909
+ changes?: {
910
+ key: string;
911
+ value: unknown;
912
+ previousValue?: unknown;
913
+ }[];
914
+ comment: unknown;
915
+ }) => unknown;
916
+ commentsStore?: {
917
+ getConfig?: {
918
+ readOnly?: boolean;
919
+ };
920
+ };
921
+ config?: {
922
+ modules?: import('../../public/index.js').Modules;
923
+ };
924
+ };
925
+ decision?: "accept" | "reject";
926
+ reconciliationToken?: symbol;
927
+ }) => {
928
+ ok: false;
929
+ reason: "read-only-document";
930
+ } | undefined;
931
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
932
+ isInternal: boolean;
933
+ superdoc: {
934
+ emit: (event: "comments-update", payload: {
935
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
936
+ changes?: {
937
+ key: string;
938
+ value: unknown;
939
+ previousValue?: unknown;
940
+ }[];
941
+ comment: unknown;
942
+ }) => unknown;
943
+ commentsStore?: {
944
+ getConfig?: {
945
+ readOnly?: boolean;
946
+ };
947
+ };
948
+ config?: {
949
+ modules?: import('../../public/index.js').Modules;
950
+ };
951
+ };
952
+ }) => {
953
+ ok: false;
954
+ reason: "read-only-document";
955
+ } | undefined;
956
+ updatePosition: (coords: {
957
+ top: number;
958
+ left: number;
959
+ right: number;
960
+ bottom: number;
961
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
962
+ getCommentUser: () => {
963
+ name: string;
964
+ email: string | null | undefined;
965
+ id?: undefined;
966
+ image?: undefined;
967
+ } | {
968
+ id: string | null;
969
+ name: string | null;
970
+ email: string | null;
971
+ image: string | null;
972
+ };
973
+ updateIdentityValues: (updates?: {
974
+ commentId?: string;
975
+ importedId?: string | null;
976
+ parentCommentId?: string | null;
977
+ trackedChangeParentId?: string | null;
978
+ trackedChangeThreadParentId?: string | null;
979
+ threadingParentCommentId?: string | null;
980
+ }) => void;
981
+ }>;
982
+ required: true;
983
+ };
984
+ autoFocus: {
985
+ type: BooleanConstructor;
986
+ default: boolean;
987
+ };
988
+ parent: {
989
+ type: PropType<HTMLElement | null>;
990
+ required: false;
991
+ };
992
+ floatingInstanceId: {
993
+ type: PropType<string | null>;
994
+ default: null;
995
+ };
996
+ floatingPageIndex: {
997
+ type: PropType<number | null>;
998
+ default: null;
999
+ };
1000
+ floatingPositionEntry: {
1001
+ type: PropType<{
1002
+ kind?: string;
1003
+ storyKey?: string;
1004
+ pageIndex?: number | null;
1005
+ start?: number;
1006
+ end?: number;
1007
+ bounds?: {
1008
+ top?: number;
1009
+ left?: number;
1010
+ right?: number;
1011
+ bottom?: number;
1012
+ } | null;
1013
+ } | null>;
1014
+ default: null;
1015
+ };
1016
+ isFloatingInstanceActive: {
1017
+ type: PropType<boolean | undefined>;
1018
+ default: undefined;
1019
+ };
1020
+ threadComments: {
1021
+ type: PropType<{
1022
+ uid: string | undefined;
1023
+ commentId: string;
1024
+ importedId: string | null | undefined;
1025
+ parentCommentId: string | null | undefined;
1026
+ trackedChangeParentId: string | null | undefined;
1027
+ trackedChangeThreadParentId: string | null | undefined;
1028
+ trackedChangeSide: string | null | undefined;
1029
+ fileId: string | null | undefined;
1030
+ fileType: string | null | undefined;
1031
+ mentions: {
1032
+ name?: string | null | undefined;
1033
+ email?: string | null | undefined;
1034
+ }[];
1035
+ commentElement: HTMLElement | null;
1036
+ isFocused: boolean;
1037
+ creatorId: string | null;
1038
+ creatorEmail: string | null;
1039
+ creatorName: string | null;
1040
+ creatorImage: string | null;
1041
+ createdTime: number;
1042
+ isInternal: boolean;
1043
+ commentText: string;
1044
+ selection: {
1045
+ documentId: any;
1046
+ page: any;
1047
+ selectionBounds: any;
1048
+ getValues: () => {
1049
+ documentId: any;
1050
+ page: any;
1051
+ selectionBounds: any;
1052
+ source: any;
1053
+ };
1054
+ getContainerId: () => string;
1055
+ getContainerLocation: (parentContainer: any) => {
1056
+ top: number;
1057
+ left: number;
1058
+ };
1059
+ source: any;
1060
+ };
1061
+ floatingPosition: {
1062
+ top?: number | undefined;
1063
+ left?: number | undefined;
1064
+ right?: number | undefined;
1065
+ bottom?: number | undefined;
1066
+ };
1067
+ trackedChange: boolean | undefined;
1068
+ deletedText: string | null;
1069
+ trackedChangeType: string | null;
1070
+ trackedChangeText: string | null;
1071
+ trackedChangeDisplayType: string | null;
1072
+ semanticColorKey: string | null;
1073
+ semanticColor: string | null;
1074
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1075
+ trackedChangeStoryKind: string | null;
1076
+ trackedChangeStoryLabel: string;
1077
+ trackedChangeAnchorKey: string | null;
1078
+ trackedChangeCanonicalId: string | null;
1079
+ trackedChangePositionAliases: string[];
1080
+ trackedChangeDecision: ("accept" | "reject") | null;
1081
+ trackedChangeLabel: string | null;
1082
+ trackedChangeDetailLines: {
1083
+ excerpt: string;
1084
+ label: string;
1085
+ }[] | null;
1086
+ trackedChangeImagePreview: {
1087
+ src: string;
1088
+ contentType: string;
1089
+ role: "deleted" | "inserted" | "before" | "after";
1090
+ partUri?: string | undefined;
1091
+ relationshipId?: string | undefined;
1092
+ width?: number | undefined;
1093
+ height?: number | undefined;
1094
+ alt?: string | undefined;
1095
+ } | null;
1096
+ customAttributes: readonly {
1097
+ name: string;
1098
+ namespaceUri: string;
1099
+ localName: string;
1100
+ value: string;
1101
+ }[] | null;
1102
+ resolvedTime: number | null;
1103
+ resolvedById: string | null;
1104
+ resolvedByEmail: string | null | undefined;
1105
+ resolvedByName: string | null | undefined;
1106
+ importedAuthor: {
1107
+ name?: string | null | undefined;
1108
+ email?: string | null | undefined;
1109
+ } | null;
1110
+ docxCommentJSON: {} | null;
1111
+ origin: "word" | "google-docs" | "unknown" | undefined;
1112
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1113
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1114
+ threadingParentCommentId: string | null | undefined;
1115
+ originalXmlStructure: {
1116
+ hasCommentsExtended: boolean;
1117
+ hasCommentsExtensible: boolean;
1118
+ hasCommentsIds: boolean;
1119
+ } | undefined;
1120
+ setText: ({ text, superdoc, suppressUpdate }: {
1121
+ text: string;
1122
+ superdoc?: {
1123
+ emit: (event: "comments-update", payload: {
1124
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1125
+ changes?: {
1126
+ key: string;
1127
+ value: unknown;
1128
+ previousValue?: unknown;
1129
+ }[];
1130
+ comment: unknown;
1131
+ }) => unknown;
1132
+ commentsStore?: {
1133
+ getConfig?: {
1134
+ readOnly?: boolean;
1135
+ };
1136
+ };
1137
+ config?: {
1138
+ modules?: import('../../public/index.js').Modules;
1139
+ };
1140
+ };
1141
+ suppressUpdate: true;
1142
+ } | {
1143
+ text: string;
1144
+ superdoc: {
1145
+ emit: (event: "comments-update", payload: {
1146
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1147
+ changes?: {
1148
+ key: string;
1149
+ value: unknown;
1150
+ previousValue?: unknown;
1151
+ }[];
1152
+ comment: unknown;
1153
+ }) => unknown;
1154
+ commentsStore?: {
1155
+ getConfig?: {
1156
+ readOnly?: boolean;
1157
+ };
1158
+ };
1159
+ config?: {
1160
+ modules?: import('../../public/index.js').Modules;
1161
+ };
1162
+ };
1163
+ suppressUpdate?: false;
1164
+ }) => {
1165
+ ok: false;
1166
+ reason: "read-only-document";
1167
+ } | undefined;
1168
+ getValues: () => {
1169
+ uid: string | undefined;
1170
+ commentId: string | undefined;
1171
+ importedId: string | null | undefined;
1172
+ parentCommentId: string | null | undefined;
1173
+ trackedChangeParentId: string | null | undefined;
1174
+ trackedChangeThreadParentId: string | null | undefined;
1175
+ trackedChangeSide: string | null | undefined;
1176
+ fileId: string | null | undefined;
1177
+ fileType: string | null | undefined;
1178
+ mentions: {
1179
+ name: string | null | undefined;
1180
+ email?: string | null | undefined;
1181
+ }[];
1182
+ createdAtVersionNumber: number | null | undefined;
1183
+ creatorId: string | null;
1184
+ creatorEmail: string | null;
1185
+ creatorName: string | null;
1186
+ creatorImage: string | null;
1187
+ createdTime: number;
1188
+ importedAuthor: {
1189
+ name?: string | null | undefined;
1190
+ email?: string | null | undefined;
1191
+ } | null;
1192
+ docxCommentJSON: {} | null;
1193
+ isInternal: boolean;
1194
+ commentText: string;
1195
+ selection: {
1196
+ documentId: any;
1197
+ page: any;
1198
+ selectionBounds: any;
1199
+ source: any;
1200
+ } | null;
1201
+ trackedChange: boolean | undefined;
1202
+ trackedChangeText: string | null;
1203
+ trackedChangeType: string | null;
1204
+ trackedChangeDisplayType: string | null;
1205
+ semanticColorKey: string | null;
1206
+ semanticColor: string | null;
1207
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1208
+ trackedChangeStoryKind: string | null;
1209
+ trackedChangeStoryLabel: string;
1210
+ trackedChangeAnchorKey: string | null;
1211
+ trackedChangeCanonicalId: string | null;
1212
+ trackedChangePositionAliases: string[];
1213
+ trackedChangeDecision: ("accept" | "reject") | null;
1214
+ trackedChangeLabel: string | null;
1215
+ trackedChangeDetailLines: {
1216
+ excerpt: string;
1217
+ label: string;
1218
+ }[] | null;
1219
+ trackedChangeImagePreview: {
1220
+ src: string;
1221
+ contentType: string;
1222
+ role: "deleted" | "inserted" | "before" | "after";
1223
+ partUri?: string | undefined;
1224
+ relationshipId?: string | undefined;
1225
+ width?: number | undefined;
1226
+ height?: number | undefined;
1227
+ alt?: string | undefined;
1228
+ } | null;
1229
+ customAttributes: readonly {
1230
+ name: string;
1231
+ namespaceUri: string;
1232
+ localName: string;
1233
+ value: string;
1234
+ }[] | null;
1235
+ deletedText: string | null;
1236
+ resolvedTime: number | null;
1237
+ resolvedById: string | null;
1238
+ resolvedByEmail: string | null | undefined;
1239
+ resolvedByName: string | null | undefined;
1240
+ origin: "word" | "google-docs" | "unknown" | undefined;
1241
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1242
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1243
+ threadingParentCommentId: string | null | undefined;
1244
+ originalXmlStructure: {
1245
+ hasCommentsExtended: boolean;
1246
+ hasCommentsExtensible: boolean;
1247
+ hasCommentsIds: boolean;
1248
+ } | undefined;
1249
+ };
1250
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
1251
+ id?: string | null;
1252
+ email?: string | null;
1253
+ name?: string | null;
1254
+ superdoc: {
1255
+ emit: (event: "comments-update", payload: {
1256
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1257
+ changes?: {
1258
+ key: string;
1259
+ value: unknown;
1260
+ previousValue?: unknown;
1261
+ }[];
1262
+ comment: unknown;
1263
+ }) => unknown;
1264
+ commentsStore?: {
1265
+ getConfig?: {
1266
+ readOnly?: boolean;
1267
+ };
1268
+ };
1269
+ config?: {
1270
+ modules?: import('../../public/index.js').Modules;
1271
+ };
1272
+ };
1273
+ decision?: "accept" | "reject";
1274
+ reconciliationToken?: symbol;
1275
+ }) => {
1276
+ ok: false;
1277
+ reason: "read-only-document";
1278
+ } | undefined;
1279
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
1280
+ isInternal: boolean;
1281
+ superdoc: {
1282
+ emit: (event: "comments-update", payload: {
1283
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1284
+ changes?: {
1285
+ key: string;
1286
+ value: unknown;
1287
+ previousValue?: unknown;
1288
+ }[];
1289
+ comment: unknown;
1290
+ }) => unknown;
1291
+ commentsStore?: {
1292
+ getConfig?: {
1293
+ readOnly?: boolean;
1294
+ };
1295
+ };
1296
+ config?: {
1297
+ modules?: import('../../public/index.js').Modules;
1298
+ };
1299
+ };
1300
+ }) => {
1301
+ ok: false;
1302
+ reason: "read-only-document";
1303
+ } | undefined;
1304
+ updatePosition: (coords: {
1305
+ top: number;
1306
+ left: number;
1307
+ right: number;
1308
+ bottom: number;
1309
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
1310
+ getCommentUser: () => {
1311
+ name: string;
1312
+ email: string | null | undefined;
1313
+ id?: undefined;
1314
+ image?: undefined;
1315
+ } | {
1316
+ id: string | null;
1317
+ name: string | null;
1318
+ email: string | null;
1319
+ image: string | null;
1320
+ };
1321
+ updateIdentityValues: (updates?: {
1322
+ commentId?: string;
1323
+ importedId?: string | null;
1324
+ parentCommentId?: string | null;
1325
+ trackedChangeParentId?: string | null;
1326
+ trackedChangeThreadParentId?: string | null;
1327
+ threadingParentCommentId?: string | null;
1328
+ }) => void;
1329
+ }[] | null>;
1330
+ default: null;
1331
+ };
1332
+ }>> & Readonly<{
1333
+ onResize?: (() => any) | undefined;
1334
+ onReady?: ((payload: {
1335
+ commentId: string | null | undefined;
1336
+ elementRef: Ref<HTMLElement | null>;
1337
+ }) => any) | undefined;
1338
+ "onClick-outside"?: (() => any) | undefined;
1339
+ "onDialog-exit"?: (() => any) | undefined;
1340
+ }>, {
4
1341
  autoFocus: boolean;
5
- floatingInstanceId: string;
6
- floatingPageIndex: number;
7
- floatingPositionEntry: Record<string, any>;
8
- threadComments: unknown[];
9
- parent?: Record<string, any> | undefined;
10
- isFloatingInstanceActive?: boolean | undefined;
11
- $props: {
12
- readonly comment?: Record<string, any> | undefined;
13
- readonly autoFocus?: boolean | undefined;
14
- readonly floatingInstanceId?: string | undefined;
15
- readonly floatingPageIndex?: number | undefined;
16
- readonly floatingPositionEntry?: Record<string, any> | undefined;
17
- readonly threadComments?: unknown[] | undefined;
18
- readonly parent?: Record<string, any> | undefined;
19
- readonly isFloatingInstanceActive?: boolean | undefined;
20
- };
21
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
1342
+ floatingInstanceId: string | null;
1343
+ floatingPageIndex: number | null;
1344
+ floatingPositionEntry: {
1345
+ kind?: string;
1346
+ storyKey?: string;
1347
+ pageIndex?: number | null;
1348
+ start?: number;
1349
+ end?: number;
1350
+ bounds?: {
1351
+ top?: number;
1352
+ left?: number;
1353
+ right?: number;
1354
+ bottom?: number;
1355
+ } | null;
1356
+ } | null;
1357
+ isFloatingInstanceActive: boolean | undefined;
1358
+ threadComments: {
1359
+ uid: string | undefined;
1360
+ commentId: string;
1361
+ importedId: string | null | undefined;
1362
+ parentCommentId: string | null | undefined;
1363
+ trackedChangeParentId: string | null | undefined;
1364
+ trackedChangeThreadParentId: string | null | undefined;
1365
+ trackedChangeSide: string | null | undefined;
1366
+ fileId: string | null | undefined;
1367
+ fileType: string | null | undefined;
1368
+ mentions: {
1369
+ name?: string | null | undefined;
1370
+ email?: string | null | undefined;
1371
+ }[];
1372
+ commentElement: HTMLElement | null;
1373
+ isFocused: boolean;
1374
+ creatorId: string | null;
1375
+ creatorEmail: string | null;
1376
+ creatorName: string | null;
1377
+ creatorImage: string | null;
1378
+ createdTime: number;
1379
+ isInternal: boolean;
1380
+ commentText: string;
1381
+ selection: {
1382
+ documentId: any;
1383
+ page: any;
1384
+ selectionBounds: any;
1385
+ getValues: () => {
1386
+ documentId: any;
1387
+ page: any;
1388
+ selectionBounds: any;
1389
+ source: any;
1390
+ };
1391
+ getContainerId: () => string;
1392
+ getContainerLocation: (parentContainer: any) => {
1393
+ top: number;
1394
+ left: number;
1395
+ };
1396
+ source: any;
1397
+ };
1398
+ floatingPosition: {
1399
+ top?: number | undefined;
1400
+ left?: number | undefined;
1401
+ right?: number | undefined;
1402
+ bottom?: number | undefined;
1403
+ };
1404
+ trackedChange: boolean | undefined;
1405
+ deletedText: string | null;
1406
+ trackedChangeType: string | null;
1407
+ trackedChangeText: string | null;
1408
+ trackedChangeDisplayType: string | null;
1409
+ semanticColorKey: string | null;
1410
+ semanticColor: string | null;
1411
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1412
+ trackedChangeStoryKind: string | null;
1413
+ trackedChangeStoryLabel: string;
1414
+ trackedChangeAnchorKey: string | null;
1415
+ trackedChangeCanonicalId: string | null;
1416
+ trackedChangePositionAliases: string[];
1417
+ trackedChangeDecision: ("accept" | "reject") | null;
1418
+ trackedChangeLabel: string | null;
1419
+ trackedChangeDetailLines: {
1420
+ excerpt: string;
1421
+ label: string;
1422
+ }[] | null;
1423
+ trackedChangeImagePreview: {
1424
+ src: string;
1425
+ contentType: string;
1426
+ role: "deleted" | "inserted" | "before" | "after";
1427
+ partUri?: string | undefined;
1428
+ relationshipId?: string | undefined;
1429
+ width?: number | undefined;
1430
+ height?: number | undefined;
1431
+ alt?: string | undefined;
1432
+ } | null;
1433
+ customAttributes: readonly {
1434
+ name: string;
1435
+ namespaceUri: string;
1436
+ localName: string;
1437
+ value: string;
1438
+ }[] | null;
1439
+ resolvedTime: number | null;
1440
+ resolvedById: string | null;
1441
+ resolvedByEmail: string | null | undefined;
1442
+ resolvedByName: string | null | undefined;
1443
+ importedAuthor: {
1444
+ name?: string | null | undefined;
1445
+ email?: string | null | undefined;
1446
+ } | null;
1447
+ docxCommentJSON: {} | null;
1448
+ origin: "word" | "google-docs" | "unknown" | undefined;
1449
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1450
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1451
+ threadingParentCommentId: string | null | undefined;
1452
+ originalXmlStructure: {
1453
+ hasCommentsExtended: boolean;
1454
+ hasCommentsExtensible: boolean;
1455
+ hasCommentsIds: boolean;
1456
+ } | undefined;
1457
+ setText: ({ text, superdoc, suppressUpdate }: {
1458
+ text: string;
1459
+ superdoc?: {
1460
+ emit: (event: "comments-update", payload: {
1461
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1462
+ changes?: {
1463
+ key: string;
1464
+ value: unknown;
1465
+ previousValue?: unknown;
1466
+ }[];
1467
+ comment: unknown;
1468
+ }) => unknown;
1469
+ commentsStore?: {
1470
+ getConfig?: {
1471
+ readOnly?: boolean;
1472
+ };
1473
+ };
1474
+ config?: {
1475
+ modules?: import('../../public/index.js').Modules;
1476
+ };
1477
+ };
1478
+ suppressUpdate: true;
1479
+ } | {
1480
+ text: string;
1481
+ superdoc: {
1482
+ emit: (event: "comments-update", payload: {
1483
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1484
+ changes?: {
1485
+ key: string;
1486
+ value: unknown;
1487
+ previousValue?: unknown;
1488
+ }[];
1489
+ comment: unknown;
1490
+ }) => unknown;
1491
+ commentsStore?: {
1492
+ getConfig?: {
1493
+ readOnly?: boolean;
1494
+ };
1495
+ };
1496
+ config?: {
1497
+ modules?: import('../../public/index.js').Modules;
1498
+ };
1499
+ };
1500
+ suppressUpdate?: false;
1501
+ }) => {
1502
+ ok: false;
1503
+ reason: "read-only-document";
1504
+ } | undefined;
1505
+ getValues: () => {
1506
+ uid: string | undefined;
1507
+ commentId: string | undefined;
1508
+ importedId: string | null | undefined;
1509
+ parentCommentId: string | null | undefined;
1510
+ trackedChangeParentId: string | null | undefined;
1511
+ trackedChangeThreadParentId: string | null | undefined;
1512
+ trackedChangeSide: string | null | undefined;
1513
+ fileId: string | null | undefined;
1514
+ fileType: string | null | undefined;
1515
+ mentions: {
1516
+ name: string | null | undefined;
1517
+ email?: string | null | undefined;
1518
+ }[];
1519
+ createdAtVersionNumber: number | null | undefined;
1520
+ creatorId: string | null;
1521
+ creatorEmail: string | null;
1522
+ creatorName: string | null;
1523
+ creatorImage: string | null;
1524
+ createdTime: number;
1525
+ importedAuthor: {
1526
+ name?: string | null | undefined;
1527
+ email?: string | null | undefined;
1528
+ } | null;
1529
+ docxCommentJSON: {} | null;
1530
+ isInternal: boolean;
1531
+ commentText: string;
1532
+ selection: {
1533
+ documentId: any;
1534
+ page: any;
1535
+ selectionBounds: any;
1536
+ source: any;
1537
+ } | null;
1538
+ trackedChange: boolean | undefined;
1539
+ trackedChangeText: string | null;
1540
+ trackedChangeType: string | null;
1541
+ trackedChangeDisplayType: string | null;
1542
+ semanticColorKey: string | null;
1543
+ semanticColor: string | null;
1544
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1545
+ trackedChangeStoryKind: string | null;
1546
+ trackedChangeStoryLabel: string;
1547
+ trackedChangeAnchorKey: string | null;
1548
+ trackedChangeCanonicalId: string | null;
1549
+ trackedChangePositionAliases: string[];
1550
+ trackedChangeDecision: ("accept" | "reject") | null;
1551
+ trackedChangeLabel: string | null;
1552
+ trackedChangeDetailLines: {
1553
+ excerpt: string;
1554
+ label: string;
1555
+ }[] | null;
1556
+ trackedChangeImagePreview: {
1557
+ src: string;
1558
+ contentType: string;
1559
+ role: "deleted" | "inserted" | "before" | "after";
1560
+ partUri?: string | undefined;
1561
+ relationshipId?: string | undefined;
1562
+ width?: number | undefined;
1563
+ height?: number | undefined;
1564
+ alt?: string | undefined;
1565
+ } | null;
1566
+ customAttributes: readonly {
1567
+ name: string;
1568
+ namespaceUri: string;
1569
+ localName: string;
1570
+ value: string;
1571
+ }[] | null;
1572
+ deletedText: string | null;
1573
+ resolvedTime: number | null;
1574
+ resolvedById: string | null;
1575
+ resolvedByEmail: string | null | undefined;
1576
+ resolvedByName: string | null | undefined;
1577
+ origin: "word" | "google-docs" | "unknown" | undefined;
1578
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1579
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1580
+ threadingParentCommentId: string | null | undefined;
1581
+ originalXmlStructure: {
1582
+ hasCommentsExtended: boolean;
1583
+ hasCommentsExtensible: boolean;
1584
+ hasCommentsIds: boolean;
1585
+ } | undefined;
1586
+ };
1587
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
1588
+ id?: string | null;
1589
+ email?: string | null;
1590
+ name?: string | null;
1591
+ superdoc: {
1592
+ emit: (event: "comments-update", payload: {
1593
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1594
+ changes?: {
1595
+ key: string;
1596
+ value: unknown;
1597
+ previousValue?: unknown;
1598
+ }[];
1599
+ comment: unknown;
1600
+ }) => unknown;
1601
+ commentsStore?: {
1602
+ getConfig?: {
1603
+ readOnly?: boolean;
1604
+ };
1605
+ };
1606
+ config?: {
1607
+ modules?: import('../../public/index.js').Modules;
1608
+ };
1609
+ };
1610
+ decision?: "accept" | "reject";
1611
+ reconciliationToken?: symbol;
1612
+ }) => {
1613
+ ok: false;
1614
+ reason: "read-only-document";
1615
+ } | undefined;
1616
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
1617
+ isInternal: boolean;
1618
+ superdoc: {
1619
+ emit: (event: "comments-update", payload: {
1620
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1621
+ changes?: {
1622
+ key: string;
1623
+ value: unknown;
1624
+ previousValue?: unknown;
1625
+ }[];
1626
+ comment: unknown;
1627
+ }) => unknown;
1628
+ commentsStore?: {
1629
+ getConfig?: {
1630
+ readOnly?: boolean;
1631
+ };
1632
+ };
1633
+ config?: {
1634
+ modules?: import('../../public/index.js').Modules;
1635
+ };
1636
+ };
1637
+ }) => {
1638
+ ok: false;
1639
+ reason: "read-only-document";
1640
+ } | undefined;
1641
+ updatePosition: (coords: {
1642
+ top: number;
1643
+ left: number;
1644
+ right: number;
1645
+ bottom: number;
1646
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
1647
+ getCommentUser: () => {
1648
+ name: string;
1649
+ email: string | null | undefined;
1650
+ id?: undefined;
1651
+ image?: undefined;
1652
+ } | {
1653
+ id: string | null;
1654
+ name: string | null;
1655
+ email: string | null;
1656
+ image: string | null;
1657
+ };
1658
+ updateIdentityValues: (updates?: {
1659
+ commentId?: string;
1660
+ importedId?: string | null;
1661
+ parentCommentId?: string | null;
1662
+ trackedChangeParentId?: string | null;
1663
+ trackedChangeThreadParentId?: string | null;
1664
+ threadingParentCommentId?: string | null;
1665
+ }) => void;
1666
+ }[] | null;
1667
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
22
1668
  commentDialogElement: HTMLDivElement;
23
1669
  commentInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
24
1670
  focus: (options: any) => void;
25
1671
  $emit: (event: "focus", ...args: any[]) => void;
26
1672
  config: Record<string, any>;
27
- users: unknown[];
28
1673
  isFocused: boolean;
1674
+ users: unknown[];
29
1675
  includeHeader: boolean;
30
1676
  comment?: Record<string, any> | undefined;
31
1677
  $props: {
32
1678
  readonly config?: Record<string, any> | undefined;
33
- readonly users?: unknown[] | undefined;
34
1679
  readonly isFocused?: boolean | undefined;
1680
+ readonly users?: unknown[] | undefined;
35
1681
  readonly includeHeader?: boolean | undefined;
36
1682
  readonly comment?: Record<string, any> | undefined;
37
1683
  };
@@ -48,14 +1694,14 @@ declare const _default: import('vue').DefineComponent<{}, {
48
1694
  focus: (options: any) => void;
49
1695
  $emit: (event: "focus", ...args: any[]) => void;
50
1696
  config: Record<string, any>;
51
- users: unknown[];
52
1697
  isFocused: boolean;
1698
+ users: unknown[];
53
1699
  includeHeader: boolean;
54
1700
  comment?: Record<string, any> | undefined;
55
1701
  $props: {
56
1702
  readonly config?: Record<string, any> | undefined;
57
- readonly users?: unknown[] | undefined;
58
1703
  readonly isFocused?: boolean | undefined;
1704
+ readonly users?: unknown[] | undefined;
59
1705
  readonly includeHeader?: boolean | undefined;
60
1706
  readonly comment?: Record<string, any> | undefined;
61
1707
  };