superdoc 2.28.0 → 2.29.0-next.2

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 (68) hide show
  1. package/dist/chunks/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-D4lVeOJu.es.js} +3 -2
  2. package/dist/chunks/{PdfViewer-Cg072l5d.cjs → PdfViewer-boENOZdF.cjs} +3 -2
  3. package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-BAGOnYGM.cjs} +201 -23
  4. package/dist/chunks/{create-super-doc-ui-BbjHD1ul.es.js → create-super-doc-ui-BFt8agAI.es.js} +180 -20
  5. package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
  6. package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
  7. package/dist/collaboration-upgrade-engine.cjs +1 -1
  8. package/dist/collaboration-upgrade-engine.es.js +1 -1
  9. package/dist/document-api/src/capabilities/html-markdown-support.d.ts +3 -3
  10. package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
  11. package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
  12. package/dist/document-api/src/index.d.ts +1 -1
  13. package/dist/document-api/src/lists/lists.d.ts +79 -79
  14. package/dist/document-api/src/tables/tables.d.ts +2 -1
  15. package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
  16. package/dist/document-api/src/write/write.d.ts +10 -9
  17. package/dist/layout-engine/contracts/src/index.d.ts +1 -1
  18. package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
  19. package/dist/layout-engine/painters/dom/src/page-content.d.ts +1 -1
  20. package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
  21. package/dist/public/ui-react.cjs +1 -1
  22. package/dist/public/ui-react.es.js +1 -1
  23. package/dist/public/ui-vue.cjs +1 -1
  24. package/dist/public/ui-vue.es.js +1 -1
  25. package/dist/public/ui.cjs +1 -1
  26. package/dist/public/ui.es.js +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/style.layered.css +1 -1
  29. package/dist/superdoc/src/SuperDoc.vue.d.ts +5 -3
  30. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2365 -48
  31. package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +108 -23
  32. package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +689 -14
  33. package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
  34. package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +21 -8
  35. package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
  36. package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
  37. package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
  38. package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
  39. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +1 -0
  40. package/dist/superdoc/src/components/general/Avatar.vue.d.ts +14 -0
  41. package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +27 -9
  42. package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
  43. package/dist/superdoc/src/composables/use-link-popover.d.ts +3 -3
  44. package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
  45. package/dist/superdoc/src/core/SuperDoc.d.ts +1 -1
  46. package/dist/superdoc/src/core/collaboration/permissions.d.ts +2 -1
  47. package/dist/superdoc/src/core/types/index.d.ts +9 -4
  48. package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
  49. package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +2 -2
  50. package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
  51. package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +181 -36
  52. package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
  53. package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
  54. package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
  55. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +101 -16
  56. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
  57. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +82 -11
  58. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +122 -33
  59. package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +0 -1
  60. package/dist/superdoc/src/stores/comments-store.d.ts +151 -28
  61. package/dist/superdoc/src/stores/superdoc-store.d.ts +454 -85
  62. package/dist/superdoc.cjs +396 -443
  63. package/dist/superdoc.es.js +329 -378
  64. package/dist-cdn/style.layered.css +1 -1
  65. package/dist-cdn/superdoc.min.css +1 -1
  66. package/dist-cdn/superdoc.min.js +42 -42
  67. package/package.json +2 -2
  68. package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +0 -104
@@ -1,41 +1,2024 @@
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
+ import { User } from '../../core/types/index.js';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ comment: {
5
+ type: PropType<{
6
+ uid: string | undefined;
7
+ commentId: string;
8
+ importedId: string | null | undefined;
9
+ parentCommentId: string | null | undefined;
10
+ trackedChangeParentId: string | null | undefined;
11
+ trackedChangeThreadParentId: string | null | undefined;
12
+ trackedChangeSide: string | null | undefined;
13
+ fileId: string | null | undefined;
14
+ fileType: string | null | undefined;
15
+ mentions: {
16
+ name?: string | null | undefined;
17
+ email?: string | null | undefined;
18
+ }[];
19
+ commentElement: HTMLElement | null;
20
+ isFocused: boolean;
21
+ creatorId: string | null;
22
+ creatorEmail: string | null;
23
+ creatorName: string | null;
24
+ creatorImage: string | null;
25
+ createdTime: number;
26
+ isInternal: boolean;
27
+ commentText: string;
28
+ selection: {
29
+ documentId: any;
30
+ page: any;
31
+ selectionBounds: any;
32
+ getValues: () => {
33
+ documentId: any;
34
+ page: any;
35
+ selectionBounds: any;
36
+ source: any;
37
+ };
38
+ getContainerId: () => string;
39
+ getContainerLocation: (parentContainer: any) => {
40
+ top: number;
41
+ left: number;
42
+ };
43
+ source: any;
44
+ };
45
+ floatingPosition: {
46
+ top?: number | undefined;
47
+ left?: number | undefined;
48
+ right?: number | undefined;
49
+ bottom?: number | undefined;
50
+ };
51
+ trackedChange: boolean | undefined;
52
+ deletedText: string | null;
53
+ trackedChangeType: string | null;
54
+ trackedChangeText: string | null;
55
+ trackedChangeDisplayType: string | null;
56
+ semanticColorKey: string | null;
57
+ semanticColor: string | null;
58
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
59
+ trackedChangeStoryKind: string | null;
60
+ trackedChangeStoryLabel: string;
61
+ trackedChangeAnchorKey: string | null;
62
+ trackedChangeCanonicalId: string | null;
63
+ trackedChangePositionAliases: string[];
64
+ trackedChangeDecision: ("accept" | "reject") | null;
65
+ trackedChangeLabel: string | null;
66
+ trackedChangeDetailLines: {
67
+ excerpt: string;
68
+ label: string;
69
+ }[] | null;
70
+ trackedChangeImagePreview: {
71
+ src: string;
72
+ contentType: string;
73
+ role: "deleted" | "inserted" | "before" | "after";
74
+ partUri?: string | undefined;
75
+ relationshipId?: string | undefined;
76
+ width?: number | undefined;
77
+ height?: number | undefined;
78
+ alt?: string | undefined;
79
+ } | null;
80
+ customAttributes: readonly {
81
+ name: string;
82
+ namespaceUri: string;
83
+ localName: string;
84
+ value: string;
85
+ }[] | null;
86
+ resolvedTime: number | null;
87
+ resolvedById: string | null;
88
+ resolvedByEmail: string | null | undefined;
89
+ resolvedByName: string | null | undefined;
90
+ importedAuthor: {
91
+ name?: string | null | undefined;
92
+ email?: string | null | undefined;
93
+ } | null;
94
+ docxCommentJSON: {} | null;
95
+ origin: "word" | "google-docs" | "unknown" | undefined;
96
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
97
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
98
+ threadingParentCommentId: string | null | undefined;
99
+ originalXmlStructure: {
100
+ hasCommentsExtended: boolean;
101
+ hasCommentsExtensible: boolean;
102
+ hasCommentsIds: boolean;
103
+ } | undefined;
104
+ setText: ({ text, superdoc, suppressUpdate }: {
105
+ text: string;
106
+ superdoc?: {
107
+ emit: (event: "comments-update", payload: {
108
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
109
+ changes?: {
110
+ key: string;
111
+ value: unknown;
112
+ previousValue?: unknown;
113
+ }[];
114
+ comment: unknown;
115
+ }) => unknown;
116
+ commentsStore?: {
117
+ getConfig?: {
118
+ readOnly?: boolean;
119
+ };
120
+ };
121
+ config?: {
122
+ modules?: import('../../public/index.js').Modules;
123
+ };
124
+ };
125
+ suppressUpdate: true;
126
+ } | {
127
+ text: string;
128
+ superdoc: {
129
+ emit: (event: "comments-update", payload: {
130
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
131
+ changes?: {
132
+ key: string;
133
+ value: unknown;
134
+ previousValue?: unknown;
135
+ }[];
136
+ comment: unknown;
137
+ }) => unknown;
138
+ commentsStore?: {
139
+ getConfig?: {
140
+ readOnly?: boolean;
141
+ };
142
+ };
143
+ config?: {
144
+ modules?: import('../../public/index.js').Modules;
145
+ };
146
+ };
147
+ suppressUpdate?: false;
148
+ }) => {
149
+ ok: false;
150
+ reason: "read-only-document";
151
+ } | undefined;
152
+ getValues: () => {
153
+ uid: string | undefined;
154
+ commentId: string | undefined;
155
+ importedId: string | null | undefined;
156
+ parentCommentId: string | null | undefined;
157
+ trackedChangeParentId: string | null | undefined;
158
+ trackedChangeThreadParentId: string | null | undefined;
159
+ trackedChangeSide: string | null | undefined;
160
+ fileId: string | null | undefined;
161
+ fileType: string | null | undefined;
162
+ mentions: {
163
+ name: string | null | undefined;
164
+ email?: string | null | undefined;
165
+ }[];
166
+ createdAtVersionNumber: number | null | undefined;
167
+ creatorId: string | null;
168
+ creatorEmail: string | null;
169
+ creatorName: string | null;
170
+ creatorImage: string | null;
171
+ createdTime: number;
172
+ importedAuthor: {
173
+ name?: string | null | undefined;
174
+ email?: string | null | undefined;
175
+ } | null;
176
+ docxCommentJSON: {} | null;
177
+ isInternal: boolean;
178
+ commentText: string;
179
+ selection: {
180
+ documentId: any;
181
+ page: any;
182
+ selectionBounds: any;
183
+ source: any;
184
+ } | null;
185
+ trackedChange: boolean | undefined;
186
+ trackedChangeText: string | null;
187
+ trackedChangeType: string | null;
188
+ trackedChangeDisplayType: string | null;
189
+ semanticColorKey: string | null;
190
+ semanticColor: string | null;
191
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
192
+ trackedChangeStoryKind: string | null;
193
+ trackedChangeStoryLabel: string;
194
+ trackedChangeAnchorKey: string | null;
195
+ trackedChangeCanonicalId: string | null;
196
+ trackedChangePositionAliases: string[];
197
+ trackedChangeDecision: ("accept" | "reject") | null;
198
+ trackedChangeLabel: string | null;
199
+ trackedChangeDetailLines: {
200
+ excerpt: string;
201
+ label: string;
202
+ }[] | null;
203
+ trackedChangeImagePreview: {
204
+ src: string;
205
+ contentType: string;
206
+ role: "deleted" | "inserted" | "before" | "after";
207
+ partUri?: string | undefined;
208
+ relationshipId?: string | undefined;
209
+ width?: number | undefined;
210
+ height?: number | undefined;
211
+ alt?: string | undefined;
212
+ } | null;
213
+ customAttributes: readonly {
214
+ name: string;
215
+ namespaceUri: string;
216
+ localName: string;
217
+ value: string;
218
+ }[] | null;
219
+ deletedText: string | null;
220
+ resolvedTime: number | null;
221
+ resolvedById: string | null;
222
+ resolvedByEmail: string | null | undefined;
223
+ resolvedByName: string | null | undefined;
224
+ origin: "word" | "google-docs" | "unknown" | undefined;
225
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
226
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
227
+ threadingParentCommentId: string | null | undefined;
228
+ originalXmlStructure: {
229
+ hasCommentsExtended: boolean;
230
+ hasCommentsExtensible: boolean;
231
+ hasCommentsIds: boolean;
232
+ } | undefined;
233
+ };
234
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
235
+ id?: string | null;
236
+ email?: string | null;
237
+ name?: string | null;
238
+ superdoc: {
239
+ emit: (event: "comments-update", payload: {
240
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
241
+ changes?: {
242
+ key: string;
243
+ value: unknown;
244
+ previousValue?: unknown;
245
+ }[];
246
+ comment: unknown;
247
+ }) => unknown;
248
+ commentsStore?: {
249
+ getConfig?: {
250
+ readOnly?: boolean;
251
+ };
252
+ };
253
+ config?: {
254
+ modules?: import('../../public/index.js').Modules;
255
+ };
256
+ };
257
+ decision?: "accept" | "reject";
258
+ reconciliationToken?: symbol;
259
+ }) => {
260
+ ok: false;
261
+ reason: "read-only-document";
262
+ } | undefined;
263
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
264
+ isInternal: boolean;
265
+ superdoc: {
266
+ emit: (event: "comments-update", payload: {
267
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
268
+ changes?: {
269
+ key: string;
270
+ value: unknown;
271
+ previousValue?: unknown;
272
+ }[];
273
+ comment: unknown;
274
+ }) => unknown;
275
+ commentsStore?: {
276
+ getConfig?: {
277
+ readOnly?: boolean;
278
+ };
279
+ };
280
+ config?: {
281
+ modules?: import('../../public/index.js').Modules;
282
+ };
283
+ };
284
+ }) => {
285
+ ok: false;
286
+ reason: "read-only-document";
287
+ } | undefined;
288
+ updatePosition: (coords: {
289
+ top: number;
290
+ left: number;
291
+ right: number;
292
+ bottom: number;
293
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
294
+ getCommentUser: () => {
295
+ name: string;
296
+ email: string | null | undefined;
297
+ id?: undefined;
298
+ image?: undefined;
299
+ } | {
300
+ id: string | null;
301
+ name: string | null;
302
+ email: string | null;
303
+ image: string | null;
304
+ };
305
+ updateIdentityValues: (updates?: {
306
+ commentId?: string;
307
+ importedId?: string | null;
308
+ parentCommentId?: string | null;
309
+ trackedChangeParentId?: string | null;
310
+ trackedChangeThreadParentId?: string | null;
311
+ threadingParentCommentId?: string | null;
312
+ }) => void;
313
+ }>;
314
+ required: true;
315
+ };
316
+ autoFocus: {
317
+ type: BooleanConstructor;
318
+ default: boolean;
319
+ };
320
+ parent: {
321
+ type: PropType<HTMLElement | null>;
322
+ required: false;
323
+ };
324
+ floatingInstanceId: {
325
+ type: PropType<string | null>;
326
+ default: null;
327
+ };
328
+ floatingPageIndex: {
329
+ type: PropType<number | null>;
330
+ default: null;
331
+ };
332
+ floatingPositionEntry: {
333
+ type: PropType<{
334
+ kind?: string;
335
+ storyKey?: string;
336
+ pageIndex?: number | null;
337
+ start?: number;
338
+ end?: number;
339
+ bounds?: {
340
+ top?: number;
341
+ left?: number;
342
+ right?: number;
343
+ bottom?: number;
344
+ } | null;
345
+ } | null>;
346
+ default: null;
347
+ };
348
+ isFloatingInstanceActive: {
349
+ type: PropType<boolean | undefined>;
350
+ default: undefined;
351
+ };
352
+ threadComments: {
353
+ type: PropType<{
354
+ uid: string | undefined;
355
+ commentId: string;
356
+ importedId: string | null | undefined;
357
+ parentCommentId: string | null | undefined;
358
+ trackedChangeParentId: string | null | undefined;
359
+ trackedChangeThreadParentId: string | null | undefined;
360
+ trackedChangeSide: string | null | undefined;
361
+ fileId: string | null | undefined;
362
+ fileType: string | null | undefined;
363
+ mentions: {
364
+ name?: string | null | undefined;
365
+ email?: string | null | undefined;
366
+ }[];
367
+ commentElement: HTMLElement | null;
368
+ isFocused: boolean;
369
+ creatorId: string | null;
370
+ creatorEmail: string | null;
371
+ creatorName: string | null;
372
+ creatorImage: string | null;
373
+ createdTime: number;
374
+ isInternal: boolean;
375
+ commentText: string;
376
+ selection: {
377
+ documentId: any;
378
+ page: any;
379
+ selectionBounds: any;
380
+ getValues: () => {
381
+ documentId: any;
382
+ page: any;
383
+ selectionBounds: any;
384
+ source: any;
385
+ };
386
+ getContainerId: () => string;
387
+ getContainerLocation: (parentContainer: any) => {
388
+ top: number;
389
+ left: number;
390
+ };
391
+ source: any;
392
+ };
393
+ floatingPosition: {
394
+ top?: number | undefined;
395
+ left?: number | undefined;
396
+ right?: number | undefined;
397
+ bottom?: number | undefined;
398
+ };
399
+ trackedChange: boolean | undefined;
400
+ deletedText: string | null;
401
+ trackedChangeType: string | null;
402
+ trackedChangeText: string | null;
403
+ trackedChangeDisplayType: string | null;
404
+ semanticColorKey: string | null;
405
+ semanticColor: string | null;
406
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
407
+ trackedChangeStoryKind: string | null;
408
+ trackedChangeStoryLabel: string;
409
+ trackedChangeAnchorKey: string | null;
410
+ trackedChangeCanonicalId: string | null;
411
+ trackedChangePositionAliases: string[];
412
+ trackedChangeDecision: ("accept" | "reject") | null;
413
+ trackedChangeLabel: string | null;
414
+ trackedChangeDetailLines: {
415
+ excerpt: string;
416
+ label: string;
417
+ }[] | null;
418
+ trackedChangeImagePreview: {
419
+ src: string;
420
+ contentType: string;
421
+ role: "deleted" | "inserted" | "before" | "after";
422
+ partUri?: string | undefined;
423
+ relationshipId?: string | undefined;
424
+ width?: number | undefined;
425
+ height?: number | undefined;
426
+ alt?: string | undefined;
427
+ } | null;
428
+ customAttributes: readonly {
429
+ name: string;
430
+ namespaceUri: string;
431
+ localName: string;
432
+ value: string;
433
+ }[] | null;
434
+ resolvedTime: number | null;
435
+ resolvedById: string | null;
436
+ resolvedByEmail: string | null | undefined;
437
+ resolvedByName: string | null | undefined;
438
+ importedAuthor: {
439
+ name?: string | null | undefined;
440
+ email?: string | null | undefined;
441
+ } | null;
442
+ docxCommentJSON: {} | null;
443
+ origin: "word" | "google-docs" | "unknown" | undefined;
444
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
445
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
446
+ threadingParentCommentId: string | null | undefined;
447
+ originalXmlStructure: {
448
+ hasCommentsExtended: boolean;
449
+ hasCommentsExtensible: boolean;
450
+ hasCommentsIds: boolean;
451
+ } | undefined;
452
+ setText: ({ text, superdoc, suppressUpdate }: {
453
+ text: string;
454
+ superdoc?: {
455
+ emit: (event: "comments-update", payload: {
456
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
457
+ changes?: {
458
+ key: string;
459
+ value: unknown;
460
+ previousValue?: unknown;
461
+ }[];
462
+ comment: unknown;
463
+ }) => unknown;
464
+ commentsStore?: {
465
+ getConfig?: {
466
+ readOnly?: boolean;
467
+ };
468
+ };
469
+ config?: {
470
+ modules?: import('../../public/index.js').Modules;
471
+ };
472
+ };
473
+ suppressUpdate: true;
474
+ } | {
475
+ text: string;
476
+ superdoc: {
477
+ emit: (event: "comments-update", payload: {
478
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
479
+ changes?: {
480
+ key: string;
481
+ value: unknown;
482
+ previousValue?: unknown;
483
+ }[];
484
+ comment: unknown;
485
+ }) => unknown;
486
+ commentsStore?: {
487
+ getConfig?: {
488
+ readOnly?: boolean;
489
+ };
490
+ };
491
+ config?: {
492
+ modules?: import('../../public/index.js').Modules;
493
+ };
494
+ };
495
+ suppressUpdate?: false;
496
+ }) => {
497
+ ok: false;
498
+ reason: "read-only-document";
499
+ } | undefined;
500
+ getValues: () => {
501
+ uid: string | undefined;
502
+ commentId: string | undefined;
503
+ importedId: string | null | undefined;
504
+ parentCommentId: string | null | undefined;
505
+ trackedChangeParentId: string | null | undefined;
506
+ trackedChangeThreadParentId: string | null | undefined;
507
+ trackedChangeSide: string | null | undefined;
508
+ fileId: string | null | undefined;
509
+ fileType: string | null | undefined;
510
+ mentions: {
511
+ name: string | null | undefined;
512
+ email?: string | null | undefined;
513
+ }[];
514
+ createdAtVersionNumber: number | null | undefined;
515
+ creatorId: string | null;
516
+ creatorEmail: string | null;
517
+ creatorName: string | null;
518
+ creatorImage: string | null;
519
+ createdTime: number;
520
+ importedAuthor: {
521
+ name?: string | null | undefined;
522
+ email?: string | null | undefined;
523
+ } | null;
524
+ docxCommentJSON: {} | null;
525
+ isInternal: boolean;
526
+ commentText: string;
527
+ selection: {
528
+ documentId: any;
529
+ page: any;
530
+ selectionBounds: any;
531
+ source: any;
532
+ } | null;
533
+ trackedChange: boolean | undefined;
534
+ trackedChangeText: string | null;
535
+ trackedChangeType: string | null;
536
+ trackedChangeDisplayType: string | null;
537
+ semanticColorKey: string | null;
538
+ semanticColor: string | null;
539
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
540
+ trackedChangeStoryKind: string | null;
541
+ trackedChangeStoryLabel: string;
542
+ trackedChangeAnchorKey: string | null;
543
+ trackedChangeCanonicalId: string | null;
544
+ trackedChangePositionAliases: string[];
545
+ trackedChangeDecision: ("accept" | "reject") | null;
546
+ trackedChangeLabel: string | null;
547
+ trackedChangeDetailLines: {
548
+ excerpt: string;
549
+ label: string;
550
+ }[] | null;
551
+ trackedChangeImagePreview: {
552
+ src: string;
553
+ contentType: string;
554
+ role: "deleted" | "inserted" | "before" | "after";
555
+ partUri?: string | undefined;
556
+ relationshipId?: string | undefined;
557
+ width?: number | undefined;
558
+ height?: number | undefined;
559
+ alt?: string | undefined;
560
+ } | null;
561
+ customAttributes: readonly {
562
+ name: string;
563
+ namespaceUri: string;
564
+ localName: string;
565
+ value: string;
566
+ }[] | null;
567
+ deletedText: string | null;
568
+ resolvedTime: number | null;
569
+ resolvedById: string | null;
570
+ resolvedByEmail: string | null | undefined;
571
+ resolvedByName: string | null | undefined;
572
+ origin: "word" | "google-docs" | "unknown" | undefined;
573
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
574
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
575
+ threadingParentCommentId: string | null | undefined;
576
+ originalXmlStructure: {
577
+ hasCommentsExtended: boolean;
578
+ hasCommentsExtensible: boolean;
579
+ hasCommentsIds: boolean;
580
+ } | undefined;
581
+ };
582
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
583
+ id?: string | null;
584
+ email?: string | null;
585
+ name?: string | null;
586
+ superdoc: {
587
+ emit: (event: "comments-update", payload: {
588
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
589
+ changes?: {
590
+ key: string;
591
+ value: unknown;
592
+ previousValue?: unknown;
593
+ }[];
594
+ comment: unknown;
595
+ }) => unknown;
596
+ commentsStore?: {
597
+ getConfig?: {
598
+ readOnly?: boolean;
599
+ };
600
+ };
601
+ config?: {
602
+ modules?: import('../../public/index.js').Modules;
603
+ };
604
+ };
605
+ decision?: "accept" | "reject";
606
+ reconciliationToken?: symbol;
607
+ }) => {
608
+ ok: false;
609
+ reason: "read-only-document";
610
+ } | undefined;
611
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
612
+ isInternal: boolean;
613
+ superdoc: {
614
+ emit: (event: "comments-update", payload: {
615
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
616
+ changes?: {
617
+ key: string;
618
+ value: unknown;
619
+ previousValue?: unknown;
620
+ }[];
621
+ comment: unknown;
622
+ }) => unknown;
623
+ commentsStore?: {
624
+ getConfig?: {
625
+ readOnly?: boolean;
626
+ };
627
+ };
628
+ config?: {
629
+ modules?: import('../../public/index.js').Modules;
630
+ };
631
+ };
632
+ }) => {
633
+ ok: false;
634
+ reason: "read-only-document";
635
+ } | undefined;
636
+ updatePosition: (coords: {
637
+ top: number;
638
+ left: number;
639
+ right: number;
640
+ bottom: number;
641
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
642
+ getCommentUser: () => {
643
+ name: string;
644
+ email: string | null | undefined;
645
+ id?: undefined;
646
+ image?: undefined;
647
+ } | {
648
+ id: string | null;
649
+ name: string | null;
650
+ email: string | null;
651
+ image: string | null;
652
+ };
653
+ updateIdentityValues: (updates?: {
654
+ commentId?: string;
655
+ importedId?: string | null;
656
+ parentCommentId?: string | null;
657
+ trackedChangeParentId?: string | null;
658
+ trackedChangeThreadParentId?: string | null;
659
+ threadingParentCommentId?: string | null;
660
+ }) => void;
661
+ }[] | null>;
662
+ default: null;
663
+ };
664
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
665
+ resize: () => any;
666
+ ready: (payload: {
667
+ commentId: string | null | undefined;
668
+ elementRef: Ref<HTMLElement | null>;
669
+ }) => any;
670
+ "click-outside": () => any;
671
+ "dialog-exit": () => any;
672
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
673
+ comment: {
674
+ type: PropType<{
675
+ uid: string | undefined;
676
+ commentId: string;
677
+ importedId: string | null | undefined;
678
+ parentCommentId: string | null | undefined;
679
+ trackedChangeParentId: string | null | undefined;
680
+ trackedChangeThreadParentId: string | null | undefined;
681
+ trackedChangeSide: string | null | undefined;
682
+ fileId: string | null | undefined;
683
+ fileType: string | null | undefined;
684
+ mentions: {
685
+ name?: string | null | undefined;
686
+ email?: string | null | undefined;
687
+ }[];
688
+ commentElement: HTMLElement | null;
689
+ isFocused: boolean;
690
+ creatorId: string | null;
691
+ creatorEmail: string | null;
692
+ creatorName: string | null;
693
+ creatorImage: string | null;
694
+ createdTime: number;
695
+ isInternal: boolean;
696
+ commentText: string;
697
+ selection: {
698
+ documentId: any;
699
+ page: any;
700
+ selectionBounds: any;
701
+ getValues: () => {
702
+ documentId: any;
703
+ page: any;
704
+ selectionBounds: any;
705
+ source: any;
706
+ };
707
+ getContainerId: () => string;
708
+ getContainerLocation: (parentContainer: any) => {
709
+ top: number;
710
+ left: number;
711
+ };
712
+ source: any;
713
+ };
714
+ floatingPosition: {
715
+ top?: number | undefined;
716
+ left?: number | undefined;
717
+ right?: number | undefined;
718
+ bottom?: number | undefined;
719
+ };
720
+ trackedChange: boolean | undefined;
721
+ deletedText: string | null;
722
+ trackedChangeType: string | null;
723
+ trackedChangeText: string | null;
724
+ trackedChangeDisplayType: string | null;
725
+ semanticColorKey: string | null;
726
+ semanticColor: string | null;
727
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
728
+ trackedChangeStoryKind: string | null;
729
+ trackedChangeStoryLabel: string;
730
+ trackedChangeAnchorKey: string | null;
731
+ trackedChangeCanonicalId: string | null;
732
+ trackedChangePositionAliases: string[];
733
+ trackedChangeDecision: ("accept" | "reject") | null;
734
+ trackedChangeLabel: string | null;
735
+ trackedChangeDetailLines: {
736
+ excerpt: string;
737
+ label: string;
738
+ }[] | null;
739
+ trackedChangeImagePreview: {
740
+ src: string;
741
+ contentType: string;
742
+ role: "deleted" | "inserted" | "before" | "after";
743
+ partUri?: string | undefined;
744
+ relationshipId?: string | undefined;
745
+ width?: number | undefined;
746
+ height?: number | undefined;
747
+ alt?: string | undefined;
748
+ } | null;
749
+ customAttributes: readonly {
750
+ name: string;
751
+ namespaceUri: string;
752
+ localName: string;
753
+ value: string;
754
+ }[] | null;
755
+ resolvedTime: number | null;
756
+ resolvedById: string | null;
757
+ resolvedByEmail: string | null | undefined;
758
+ resolvedByName: string | null | undefined;
759
+ importedAuthor: {
760
+ name?: string | null | undefined;
761
+ email?: string | null | undefined;
762
+ } | null;
763
+ docxCommentJSON: {} | null;
764
+ origin: "word" | "google-docs" | "unknown" | undefined;
765
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
766
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
767
+ threadingParentCommentId: string | null | undefined;
768
+ originalXmlStructure: {
769
+ hasCommentsExtended: boolean;
770
+ hasCommentsExtensible: boolean;
771
+ hasCommentsIds: boolean;
772
+ } | undefined;
773
+ setText: ({ text, superdoc, suppressUpdate }: {
774
+ text: string;
775
+ superdoc?: {
776
+ emit: (event: "comments-update", payload: {
777
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
778
+ changes?: {
779
+ key: string;
780
+ value: unknown;
781
+ previousValue?: unknown;
782
+ }[];
783
+ comment: unknown;
784
+ }) => unknown;
785
+ commentsStore?: {
786
+ getConfig?: {
787
+ readOnly?: boolean;
788
+ };
789
+ };
790
+ config?: {
791
+ modules?: import('../../public/index.js').Modules;
792
+ };
793
+ };
794
+ suppressUpdate: true;
795
+ } | {
796
+ text: string;
797
+ superdoc: {
798
+ emit: (event: "comments-update", payload: {
799
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
800
+ changes?: {
801
+ key: string;
802
+ value: unknown;
803
+ previousValue?: unknown;
804
+ }[];
805
+ comment: unknown;
806
+ }) => unknown;
807
+ commentsStore?: {
808
+ getConfig?: {
809
+ readOnly?: boolean;
810
+ };
811
+ };
812
+ config?: {
813
+ modules?: import('../../public/index.js').Modules;
814
+ };
815
+ };
816
+ suppressUpdate?: false;
817
+ }) => {
818
+ ok: false;
819
+ reason: "read-only-document";
820
+ } | undefined;
821
+ getValues: () => {
822
+ uid: string | undefined;
823
+ commentId: string | undefined;
824
+ importedId: string | null | undefined;
825
+ parentCommentId: string | null | undefined;
826
+ trackedChangeParentId: string | null | undefined;
827
+ trackedChangeThreadParentId: string | null | undefined;
828
+ trackedChangeSide: string | null | undefined;
829
+ fileId: string | null | undefined;
830
+ fileType: string | null | undefined;
831
+ mentions: {
832
+ name: string | null | undefined;
833
+ email?: string | null | undefined;
834
+ }[];
835
+ createdAtVersionNumber: number | null | undefined;
836
+ creatorId: string | null;
837
+ creatorEmail: string | null;
838
+ creatorName: string | null;
839
+ creatorImage: string | null;
840
+ createdTime: number;
841
+ importedAuthor: {
842
+ name?: string | null | undefined;
843
+ email?: string | null | undefined;
844
+ } | null;
845
+ docxCommentJSON: {} | null;
846
+ isInternal: boolean;
847
+ commentText: string;
848
+ selection: {
849
+ documentId: any;
850
+ page: any;
851
+ selectionBounds: any;
852
+ source: any;
853
+ } | null;
854
+ trackedChange: boolean | undefined;
855
+ trackedChangeText: string | null;
856
+ trackedChangeType: string | null;
857
+ trackedChangeDisplayType: string | null;
858
+ semanticColorKey: string | null;
859
+ semanticColor: string | null;
860
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
861
+ trackedChangeStoryKind: string | null;
862
+ trackedChangeStoryLabel: string;
863
+ trackedChangeAnchorKey: string | null;
864
+ trackedChangeCanonicalId: string | null;
865
+ trackedChangePositionAliases: string[];
866
+ trackedChangeDecision: ("accept" | "reject") | null;
867
+ trackedChangeLabel: string | null;
868
+ trackedChangeDetailLines: {
869
+ excerpt: string;
870
+ label: string;
871
+ }[] | null;
872
+ trackedChangeImagePreview: {
873
+ src: string;
874
+ contentType: string;
875
+ role: "deleted" | "inserted" | "before" | "after";
876
+ partUri?: string | undefined;
877
+ relationshipId?: string | undefined;
878
+ width?: number | undefined;
879
+ height?: number | undefined;
880
+ alt?: string | undefined;
881
+ } | null;
882
+ customAttributes: readonly {
883
+ name: string;
884
+ namespaceUri: string;
885
+ localName: string;
886
+ value: string;
887
+ }[] | null;
888
+ deletedText: string | null;
889
+ resolvedTime: number | null;
890
+ resolvedById: string | null;
891
+ resolvedByEmail: string | null | undefined;
892
+ resolvedByName: string | null | undefined;
893
+ origin: "word" | "google-docs" | "unknown" | undefined;
894
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
895
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
896
+ threadingParentCommentId: string | null | undefined;
897
+ originalXmlStructure: {
898
+ hasCommentsExtended: boolean;
899
+ hasCommentsExtensible: boolean;
900
+ hasCommentsIds: boolean;
901
+ } | undefined;
902
+ };
903
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
904
+ id?: string | null;
905
+ email?: string | null;
906
+ name?: string | null;
907
+ superdoc: {
908
+ emit: (event: "comments-update", payload: {
909
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
910
+ changes?: {
911
+ key: string;
912
+ value: unknown;
913
+ previousValue?: unknown;
914
+ }[];
915
+ comment: unknown;
916
+ }) => unknown;
917
+ commentsStore?: {
918
+ getConfig?: {
919
+ readOnly?: boolean;
920
+ };
921
+ };
922
+ config?: {
923
+ modules?: import('../../public/index.js').Modules;
924
+ };
925
+ };
926
+ decision?: "accept" | "reject";
927
+ reconciliationToken?: symbol;
928
+ }) => {
929
+ ok: false;
930
+ reason: "read-only-document";
931
+ } | undefined;
932
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
933
+ isInternal: boolean;
934
+ superdoc: {
935
+ emit: (event: "comments-update", payload: {
936
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
937
+ changes?: {
938
+ key: string;
939
+ value: unknown;
940
+ previousValue?: unknown;
941
+ }[];
942
+ comment: unknown;
943
+ }) => unknown;
944
+ commentsStore?: {
945
+ getConfig?: {
946
+ readOnly?: boolean;
947
+ };
948
+ };
949
+ config?: {
950
+ modules?: import('../../public/index.js').Modules;
951
+ };
952
+ };
953
+ }) => {
954
+ ok: false;
955
+ reason: "read-only-document";
956
+ } | undefined;
957
+ updatePosition: (coords: {
958
+ top: number;
959
+ left: number;
960
+ right: number;
961
+ bottom: number;
962
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
963
+ getCommentUser: () => {
964
+ name: string;
965
+ email: string | null | undefined;
966
+ id?: undefined;
967
+ image?: undefined;
968
+ } | {
969
+ id: string | null;
970
+ name: string | null;
971
+ email: string | null;
972
+ image: string | null;
973
+ };
974
+ updateIdentityValues: (updates?: {
975
+ commentId?: string;
976
+ importedId?: string | null;
977
+ parentCommentId?: string | null;
978
+ trackedChangeParentId?: string | null;
979
+ trackedChangeThreadParentId?: string | null;
980
+ threadingParentCommentId?: string | null;
981
+ }) => void;
982
+ }>;
983
+ required: true;
984
+ };
985
+ autoFocus: {
986
+ type: BooleanConstructor;
987
+ default: boolean;
988
+ };
989
+ parent: {
990
+ type: PropType<HTMLElement | null>;
991
+ required: false;
992
+ };
993
+ floatingInstanceId: {
994
+ type: PropType<string | null>;
995
+ default: null;
996
+ };
997
+ floatingPageIndex: {
998
+ type: PropType<number | null>;
999
+ default: null;
1000
+ };
1001
+ floatingPositionEntry: {
1002
+ type: PropType<{
1003
+ kind?: string;
1004
+ storyKey?: string;
1005
+ pageIndex?: number | null;
1006
+ start?: number;
1007
+ end?: number;
1008
+ bounds?: {
1009
+ top?: number;
1010
+ left?: number;
1011
+ right?: number;
1012
+ bottom?: number;
1013
+ } | null;
1014
+ } | null>;
1015
+ default: null;
1016
+ };
1017
+ isFloatingInstanceActive: {
1018
+ type: PropType<boolean | undefined>;
1019
+ default: undefined;
1020
+ };
1021
+ threadComments: {
1022
+ type: PropType<{
1023
+ uid: string | undefined;
1024
+ commentId: string;
1025
+ importedId: string | null | undefined;
1026
+ parentCommentId: string | null | undefined;
1027
+ trackedChangeParentId: string | null | undefined;
1028
+ trackedChangeThreadParentId: string | null | undefined;
1029
+ trackedChangeSide: string | null | undefined;
1030
+ fileId: string | null | undefined;
1031
+ fileType: string | null | undefined;
1032
+ mentions: {
1033
+ name?: string | null | undefined;
1034
+ email?: string | null | undefined;
1035
+ }[];
1036
+ commentElement: HTMLElement | null;
1037
+ isFocused: boolean;
1038
+ creatorId: string | null;
1039
+ creatorEmail: string | null;
1040
+ creatorName: string | null;
1041
+ creatorImage: string | null;
1042
+ createdTime: number;
1043
+ isInternal: boolean;
1044
+ commentText: string;
1045
+ selection: {
1046
+ documentId: any;
1047
+ page: any;
1048
+ selectionBounds: any;
1049
+ getValues: () => {
1050
+ documentId: any;
1051
+ page: any;
1052
+ selectionBounds: any;
1053
+ source: any;
1054
+ };
1055
+ getContainerId: () => string;
1056
+ getContainerLocation: (parentContainer: any) => {
1057
+ top: number;
1058
+ left: number;
1059
+ };
1060
+ source: any;
1061
+ };
1062
+ floatingPosition: {
1063
+ top?: number | undefined;
1064
+ left?: number | undefined;
1065
+ right?: number | undefined;
1066
+ bottom?: number | undefined;
1067
+ };
1068
+ trackedChange: boolean | undefined;
1069
+ deletedText: string | null;
1070
+ trackedChangeType: string | null;
1071
+ trackedChangeText: string | null;
1072
+ trackedChangeDisplayType: string | null;
1073
+ semanticColorKey: string | null;
1074
+ semanticColor: string | null;
1075
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1076
+ trackedChangeStoryKind: string | null;
1077
+ trackedChangeStoryLabel: string;
1078
+ trackedChangeAnchorKey: string | null;
1079
+ trackedChangeCanonicalId: string | null;
1080
+ trackedChangePositionAliases: string[];
1081
+ trackedChangeDecision: ("accept" | "reject") | null;
1082
+ trackedChangeLabel: string | null;
1083
+ trackedChangeDetailLines: {
1084
+ excerpt: string;
1085
+ label: string;
1086
+ }[] | null;
1087
+ trackedChangeImagePreview: {
1088
+ src: string;
1089
+ contentType: string;
1090
+ role: "deleted" | "inserted" | "before" | "after";
1091
+ partUri?: string | undefined;
1092
+ relationshipId?: string | undefined;
1093
+ width?: number | undefined;
1094
+ height?: number | undefined;
1095
+ alt?: string | undefined;
1096
+ } | null;
1097
+ customAttributes: readonly {
1098
+ name: string;
1099
+ namespaceUri: string;
1100
+ localName: string;
1101
+ value: string;
1102
+ }[] | null;
1103
+ resolvedTime: number | null;
1104
+ resolvedById: string | null;
1105
+ resolvedByEmail: string | null | undefined;
1106
+ resolvedByName: string | null | undefined;
1107
+ importedAuthor: {
1108
+ name?: string | null | undefined;
1109
+ email?: string | null | undefined;
1110
+ } | null;
1111
+ docxCommentJSON: {} | null;
1112
+ origin: "word" | "google-docs" | "unknown" | undefined;
1113
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1114
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1115
+ threadingParentCommentId: string | null | undefined;
1116
+ originalXmlStructure: {
1117
+ hasCommentsExtended: boolean;
1118
+ hasCommentsExtensible: boolean;
1119
+ hasCommentsIds: boolean;
1120
+ } | undefined;
1121
+ setText: ({ text, superdoc, suppressUpdate }: {
1122
+ text: string;
1123
+ superdoc?: {
1124
+ emit: (event: "comments-update", payload: {
1125
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1126
+ changes?: {
1127
+ key: string;
1128
+ value: unknown;
1129
+ previousValue?: unknown;
1130
+ }[];
1131
+ comment: unknown;
1132
+ }) => unknown;
1133
+ commentsStore?: {
1134
+ getConfig?: {
1135
+ readOnly?: boolean;
1136
+ };
1137
+ };
1138
+ config?: {
1139
+ modules?: import('../../public/index.js').Modules;
1140
+ };
1141
+ };
1142
+ suppressUpdate: true;
1143
+ } | {
1144
+ text: string;
1145
+ superdoc: {
1146
+ emit: (event: "comments-update", payload: {
1147
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1148
+ changes?: {
1149
+ key: string;
1150
+ value: unknown;
1151
+ previousValue?: unknown;
1152
+ }[];
1153
+ comment: unknown;
1154
+ }) => unknown;
1155
+ commentsStore?: {
1156
+ getConfig?: {
1157
+ readOnly?: boolean;
1158
+ };
1159
+ };
1160
+ config?: {
1161
+ modules?: import('../../public/index.js').Modules;
1162
+ };
1163
+ };
1164
+ suppressUpdate?: false;
1165
+ }) => {
1166
+ ok: false;
1167
+ reason: "read-only-document";
1168
+ } | undefined;
1169
+ getValues: () => {
1170
+ uid: string | undefined;
1171
+ commentId: string | undefined;
1172
+ importedId: string | null | undefined;
1173
+ parentCommentId: string | null | undefined;
1174
+ trackedChangeParentId: string | null | undefined;
1175
+ trackedChangeThreadParentId: string | null | undefined;
1176
+ trackedChangeSide: string | null | undefined;
1177
+ fileId: string | null | undefined;
1178
+ fileType: string | null | undefined;
1179
+ mentions: {
1180
+ name: string | null | undefined;
1181
+ email?: string | null | undefined;
1182
+ }[];
1183
+ createdAtVersionNumber: number | null | undefined;
1184
+ creatorId: string | null;
1185
+ creatorEmail: string | null;
1186
+ creatorName: string | null;
1187
+ creatorImage: string | null;
1188
+ createdTime: number;
1189
+ importedAuthor: {
1190
+ name?: string | null | undefined;
1191
+ email?: string | null | undefined;
1192
+ } | null;
1193
+ docxCommentJSON: {} | null;
1194
+ isInternal: boolean;
1195
+ commentText: string;
1196
+ selection: {
1197
+ documentId: any;
1198
+ page: any;
1199
+ selectionBounds: any;
1200
+ source: any;
1201
+ } | null;
1202
+ trackedChange: boolean | undefined;
1203
+ trackedChangeText: string | null;
1204
+ trackedChangeType: string | null;
1205
+ trackedChangeDisplayType: string | null;
1206
+ semanticColorKey: string | null;
1207
+ semanticColor: string | null;
1208
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1209
+ trackedChangeStoryKind: string | null;
1210
+ trackedChangeStoryLabel: string;
1211
+ trackedChangeAnchorKey: string | null;
1212
+ trackedChangeCanonicalId: string | null;
1213
+ trackedChangePositionAliases: string[];
1214
+ trackedChangeDecision: ("accept" | "reject") | null;
1215
+ trackedChangeLabel: string | null;
1216
+ trackedChangeDetailLines: {
1217
+ excerpt: string;
1218
+ label: string;
1219
+ }[] | null;
1220
+ trackedChangeImagePreview: {
1221
+ src: string;
1222
+ contentType: string;
1223
+ role: "deleted" | "inserted" | "before" | "after";
1224
+ partUri?: string | undefined;
1225
+ relationshipId?: string | undefined;
1226
+ width?: number | undefined;
1227
+ height?: number | undefined;
1228
+ alt?: string | undefined;
1229
+ } | null;
1230
+ customAttributes: readonly {
1231
+ name: string;
1232
+ namespaceUri: string;
1233
+ localName: string;
1234
+ value: string;
1235
+ }[] | null;
1236
+ deletedText: string | null;
1237
+ resolvedTime: number | null;
1238
+ resolvedById: string | null;
1239
+ resolvedByEmail: string | null | undefined;
1240
+ resolvedByName: string | null | undefined;
1241
+ origin: "word" | "google-docs" | "unknown" | undefined;
1242
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1243
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1244
+ threadingParentCommentId: string | null | undefined;
1245
+ originalXmlStructure: {
1246
+ hasCommentsExtended: boolean;
1247
+ hasCommentsExtensible: boolean;
1248
+ hasCommentsIds: boolean;
1249
+ } | undefined;
1250
+ };
1251
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
1252
+ id?: string | null;
1253
+ email?: string | null;
1254
+ name?: string | null;
1255
+ superdoc: {
1256
+ emit: (event: "comments-update", payload: {
1257
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1258
+ changes?: {
1259
+ key: string;
1260
+ value: unknown;
1261
+ previousValue?: unknown;
1262
+ }[];
1263
+ comment: unknown;
1264
+ }) => unknown;
1265
+ commentsStore?: {
1266
+ getConfig?: {
1267
+ readOnly?: boolean;
1268
+ };
1269
+ };
1270
+ config?: {
1271
+ modules?: import('../../public/index.js').Modules;
1272
+ };
1273
+ };
1274
+ decision?: "accept" | "reject";
1275
+ reconciliationToken?: symbol;
1276
+ }) => {
1277
+ ok: false;
1278
+ reason: "read-only-document";
1279
+ } | undefined;
1280
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
1281
+ isInternal: boolean;
1282
+ superdoc: {
1283
+ emit: (event: "comments-update", payload: {
1284
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1285
+ changes?: {
1286
+ key: string;
1287
+ value: unknown;
1288
+ previousValue?: unknown;
1289
+ }[];
1290
+ comment: unknown;
1291
+ }) => unknown;
1292
+ commentsStore?: {
1293
+ getConfig?: {
1294
+ readOnly?: boolean;
1295
+ };
1296
+ };
1297
+ config?: {
1298
+ modules?: import('../../public/index.js').Modules;
1299
+ };
1300
+ };
1301
+ }) => {
1302
+ ok: false;
1303
+ reason: "read-only-document";
1304
+ } | undefined;
1305
+ updatePosition: (coords: {
1306
+ top: number;
1307
+ left: number;
1308
+ right: number;
1309
+ bottom: number;
1310
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
1311
+ getCommentUser: () => {
1312
+ name: string;
1313
+ email: string | null | undefined;
1314
+ id?: undefined;
1315
+ image?: undefined;
1316
+ } | {
1317
+ id: string | null;
1318
+ name: string | null;
1319
+ email: string | null;
1320
+ image: string | null;
1321
+ };
1322
+ updateIdentityValues: (updates?: {
1323
+ commentId?: string;
1324
+ importedId?: string | null;
1325
+ parentCommentId?: string | null;
1326
+ trackedChangeParentId?: string | null;
1327
+ trackedChangeThreadParentId?: string | null;
1328
+ threadingParentCommentId?: string | null;
1329
+ }) => void;
1330
+ }[] | null>;
1331
+ default: null;
1332
+ };
1333
+ }>> & Readonly<{
1334
+ onResize?: (() => any) | undefined;
1335
+ onReady?: ((payload: {
1336
+ commentId: string | null | undefined;
1337
+ elementRef: Ref<HTMLElement | null>;
1338
+ }) => any) | undefined;
1339
+ "onClick-outside"?: (() => any) | undefined;
1340
+ "onDialog-exit"?: (() => any) | undefined;
1341
+ }>, {
4
1342
  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, {
1343
+ floatingInstanceId: string | null;
1344
+ floatingPageIndex: number | null;
1345
+ floatingPositionEntry: {
1346
+ kind?: string;
1347
+ storyKey?: string;
1348
+ pageIndex?: number | null;
1349
+ start?: number;
1350
+ end?: number;
1351
+ bounds?: {
1352
+ top?: number;
1353
+ left?: number;
1354
+ right?: number;
1355
+ bottom?: number;
1356
+ } | null;
1357
+ } | null;
1358
+ isFloatingInstanceActive: boolean | undefined;
1359
+ threadComments: {
1360
+ uid: string | undefined;
1361
+ commentId: string;
1362
+ importedId: string | null | undefined;
1363
+ parentCommentId: string | null | undefined;
1364
+ trackedChangeParentId: string | null | undefined;
1365
+ trackedChangeThreadParentId: string | null | undefined;
1366
+ trackedChangeSide: string | null | undefined;
1367
+ fileId: string | null | undefined;
1368
+ fileType: string | null | undefined;
1369
+ mentions: {
1370
+ name?: string | null | undefined;
1371
+ email?: string | null | undefined;
1372
+ }[];
1373
+ commentElement: HTMLElement | null;
1374
+ isFocused: boolean;
1375
+ creatorId: string | null;
1376
+ creatorEmail: string | null;
1377
+ creatorName: string | null;
1378
+ creatorImage: string | null;
1379
+ createdTime: number;
1380
+ isInternal: boolean;
1381
+ commentText: string;
1382
+ selection: {
1383
+ documentId: any;
1384
+ page: any;
1385
+ selectionBounds: any;
1386
+ getValues: () => {
1387
+ documentId: any;
1388
+ page: any;
1389
+ selectionBounds: any;
1390
+ source: any;
1391
+ };
1392
+ getContainerId: () => string;
1393
+ getContainerLocation: (parentContainer: any) => {
1394
+ top: number;
1395
+ left: number;
1396
+ };
1397
+ source: any;
1398
+ };
1399
+ floatingPosition: {
1400
+ top?: number | undefined;
1401
+ left?: number | undefined;
1402
+ right?: number | undefined;
1403
+ bottom?: number | undefined;
1404
+ };
1405
+ trackedChange: boolean | undefined;
1406
+ deletedText: string | null;
1407
+ trackedChangeType: string | null;
1408
+ trackedChangeText: string | null;
1409
+ trackedChangeDisplayType: string | null;
1410
+ semanticColorKey: string | null;
1411
+ semanticColor: string | null;
1412
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1413
+ trackedChangeStoryKind: string | null;
1414
+ trackedChangeStoryLabel: string;
1415
+ trackedChangeAnchorKey: string | null;
1416
+ trackedChangeCanonicalId: string | null;
1417
+ trackedChangePositionAliases: string[];
1418
+ trackedChangeDecision: ("accept" | "reject") | null;
1419
+ trackedChangeLabel: string | null;
1420
+ trackedChangeDetailLines: {
1421
+ excerpt: string;
1422
+ label: string;
1423
+ }[] | null;
1424
+ trackedChangeImagePreview: {
1425
+ src: string;
1426
+ contentType: string;
1427
+ role: "deleted" | "inserted" | "before" | "after";
1428
+ partUri?: string | undefined;
1429
+ relationshipId?: string | undefined;
1430
+ width?: number | undefined;
1431
+ height?: number | undefined;
1432
+ alt?: string | undefined;
1433
+ } | null;
1434
+ customAttributes: readonly {
1435
+ name: string;
1436
+ namespaceUri: string;
1437
+ localName: string;
1438
+ value: string;
1439
+ }[] | null;
1440
+ resolvedTime: number | null;
1441
+ resolvedById: string | null;
1442
+ resolvedByEmail: string | null | undefined;
1443
+ resolvedByName: string | null | undefined;
1444
+ importedAuthor: {
1445
+ name?: string | null | undefined;
1446
+ email?: string | null | undefined;
1447
+ } | null;
1448
+ docxCommentJSON: {} | null;
1449
+ origin: "word" | "google-docs" | "unknown" | undefined;
1450
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1451
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1452
+ threadingParentCommentId: string | null | undefined;
1453
+ originalXmlStructure: {
1454
+ hasCommentsExtended: boolean;
1455
+ hasCommentsExtensible: boolean;
1456
+ hasCommentsIds: boolean;
1457
+ } | undefined;
1458
+ setText: ({ text, superdoc, suppressUpdate }: {
1459
+ text: string;
1460
+ superdoc?: {
1461
+ emit: (event: "comments-update", payload: {
1462
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1463
+ changes?: {
1464
+ key: string;
1465
+ value: unknown;
1466
+ previousValue?: unknown;
1467
+ }[];
1468
+ comment: unknown;
1469
+ }) => unknown;
1470
+ commentsStore?: {
1471
+ getConfig?: {
1472
+ readOnly?: boolean;
1473
+ };
1474
+ };
1475
+ config?: {
1476
+ modules?: import('../../public/index.js').Modules;
1477
+ };
1478
+ };
1479
+ suppressUpdate: true;
1480
+ } | {
1481
+ text: string;
1482
+ superdoc: {
1483
+ emit: (event: "comments-update", payload: {
1484
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1485
+ changes?: {
1486
+ key: string;
1487
+ value: unknown;
1488
+ previousValue?: unknown;
1489
+ }[];
1490
+ comment: unknown;
1491
+ }) => unknown;
1492
+ commentsStore?: {
1493
+ getConfig?: {
1494
+ readOnly?: boolean;
1495
+ };
1496
+ };
1497
+ config?: {
1498
+ modules?: import('../../public/index.js').Modules;
1499
+ };
1500
+ };
1501
+ suppressUpdate?: false;
1502
+ }) => {
1503
+ ok: false;
1504
+ reason: "read-only-document";
1505
+ } | undefined;
1506
+ getValues: () => {
1507
+ uid: string | undefined;
1508
+ commentId: string | undefined;
1509
+ importedId: string | null | undefined;
1510
+ parentCommentId: string | null | undefined;
1511
+ trackedChangeParentId: string | null | undefined;
1512
+ trackedChangeThreadParentId: string | null | undefined;
1513
+ trackedChangeSide: string | null | undefined;
1514
+ fileId: string | null | undefined;
1515
+ fileType: string | null | undefined;
1516
+ mentions: {
1517
+ name: string | null | undefined;
1518
+ email?: string | null | undefined;
1519
+ }[];
1520
+ createdAtVersionNumber: number | null | undefined;
1521
+ creatorId: string | null;
1522
+ creatorEmail: string | null;
1523
+ creatorName: string | null;
1524
+ creatorImage: string | null;
1525
+ createdTime: number;
1526
+ importedAuthor: {
1527
+ name?: string | null | undefined;
1528
+ email?: string | null | undefined;
1529
+ } | null;
1530
+ docxCommentJSON: {} | null;
1531
+ isInternal: boolean;
1532
+ commentText: string;
1533
+ selection: {
1534
+ documentId: any;
1535
+ page: any;
1536
+ selectionBounds: any;
1537
+ source: any;
1538
+ } | null;
1539
+ trackedChange: boolean | undefined;
1540
+ trackedChangeText: string | null;
1541
+ trackedChangeType: string | null;
1542
+ trackedChangeDisplayType: string | null;
1543
+ semanticColorKey: string | null;
1544
+ semanticColor: string | null;
1545
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1546
+ trackedChangeStoryKind: string | null;
1547
+ trackedChangeStoryLabel: string;
1548
+ trackedChangeAnchorKey: string | null;
1549
+ trackedChangeCanonicalId: string | null;
1550
+ trackedChangePositionAliases: string[];
1551
+ trackedChangeDecision: ("accept" | "reject") | null;
1552
+ trackedChangeLabel: string | null;
1553
+ trackedChangeDetailLines: {
1554
+ excerpt: string;
1555
+ label: string;
1556
+ }[] | null;
1557
+ trackedChangeImagePreview: {
1558
+ src: string;
1559
+ contentType: string;
1560
+ role: "deleted" | "inserted" | "before" | "after";
1561
+ partUri?: string | undefined;
1562
+ relationshipId?: string | undefined;
1563
+ width?: number | undefined;
1564
+ height?: number | undefined;
1565
+ alt?: string | undefined;
1566
+ } | null;
1567
+ customAttributes: readonly {
1568
+ name: string;
1569
+ namespaceUri: string;
1570
+ localName: string;
1571
+ value: string;
1572
+ }[] | null;
1573
+ deletedText: string | null;
1574
+ resolvedTime: number | null;
1575
+ resolvedById: string | null;
1576
+ resolvedByEmail: string | null | undefined;
1577
+ resolvedByName: string | null | undefined;
1578
+ origin: "word" | "google-docs" | "unknown" | undefined;
1579
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1580
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1581
+ threadingParentCommentId: string | null | undefined;
1582
+ originalXmlStructure: {
1583
+ hasCommentsExtended: boolean;
1584
+ hasCommentsExtensible: boolean;
1585
+ hasCommentsIds: boolean;
1586
+ } | undefined;
1587
+ };
1588
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
1589
+ id?: string | null;
1590
+ email?: string | null;
1591
+ name?: string | null;
1592
+ superdoc: {
1593
+ emit: (event: "comments-update", payload: {
1594
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1595
+ changes?: {
1596
+ key: string;
1597
+ value: unknown;
1598
+ previousValue?: unknown;
1599
+ }[];
1600
+ comment: unknown;
1601
+ }) => unknown;
1602
+ commentsStore?: {
1603
+ getConfig?: {
1604
+ readOnly?: boolean;
1605
+ };
1606
+ };
1607
+ config?: {
1608
+ modules?: import('../../public/index.js').Modules;
1609
+ };
1610
+ };
1611
+ decision?: "accept" | "reject";
1612
+ reconciliationToken?: symbol;
1613
+ }) => {
1614
+ ok: false;
1615
+ reason: "read-only-document";
1616
+ } | undefined;
1617
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
1618
+ isInternal: boolean;
1619
+ superdoc: {
1620
+ emit: (event: "comments-update", payload: {
1621
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1622
+ changes?: {
1623
+ key: string;
1624
+ value: unknown;
1625
+ previousValue?: unknown;
1626
+ }[];
1627
+ comment: unknown;
1628
+ }) => unknown;
1629
+ commentsStore?: {
1630
+ getConfig?: {
1631
+ readOnly?: boolean;
1632
+ };
1633
+ };
1634
+ config?: {
1635
+ modules?: import('../../public/index.js').Modules;
1636
+ };
1637
+ };
1638
+ }) => {
1639
+ ok: false;
1640
+ reason: "read-only-document";
1641
+ } | undefined;
1642
+ updatePosition: (coords: {
1643
+ top: number;
1644
+ left: number;
1645
+ right: number;
1646
+ bottom: number;
1647
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
1648
+ getCommentUser: () => {
1649
+ name: string;
1650
+ email: string | null | undefined;
1651
+ id?: undefined;
1652
+ image?: undefined;
1653
+ } | {
1654
+ id: string | null;
1655
+ name: string | null;
1656
+ email: string | null;
1657
+ image: string | null;
1658
+ };
1659
+ updateIdentityValues: (updates?: {
1660
+ commentId?: string;
1661
+ importedId?: string | null;
1662
+ parentCommentId?: string | null;
1663
+ trackedChangeParentId?: string | null;
1664
+ trackedChangeThreadParentId?: string | null;
1665
+ threadingParentCommentId?: string | null;
1666
+ }) => void;
1667
+ }[] | null;
1668
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
22
1669
  commentDialogElement: HTMLDivElement;
23
- commentInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
24
- focus: (options: any) => void;
25
- $emit: (event: "focus", ...args: any[]) => void;
26
- config: Record<string, any>;
27
- users: unknown[];
1670
+ commentInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1671
+ users: {
1672
+ type: PropType<readonly (User & {
1673
+ access?: string | {
1674
+ role?: string;
1675
+ } | null;
1676
+ })[]>;
1677
+ required: false;
1678
+ default: () => never[];
1679
+ };
1680
+ config: {
1681
+ type: PropType<{
1682
+ readOnly?: boolean;
1683
+ allowResolve?: boolean;
1684
+ }>;
1685
+ required: true;
1686
+ };
1687
+ isFocused: {
1688
+ type: BooleanConstructor;
1689
+ default: boolean;
1690
+ };
1691
+ includeHeader: {
1692
+ type: BooleanConstructor;
1693
+ default: boolean;
1694
+ };
1695
+ comment: {
1696
+ type: PropType<{
1697
+ uid: string | undefined;
1698
+ commentId: string;
1699
+ importedId: string | null | undefined;
1700
+ parentCommentId: string | null | undefined;
1701
+ trackedChangeParentId: string | null | undefined;
1702
+ trackedChangeThreadParentId: string | null | undefined;
1703
+ trackedChangeSide: string | null | undefined;
1704
+ fileId: string | null | undefined;
1705
+ fileType: string | null | undefined;
1706
+ mentions: {
1707
+ name?: string | null | undefined;
1708
+ email?: string | null | undefined;
1709
+ }[];
1710
+ commentElement: HTMLElement | null;
1711
+ isFocused: boolean;
1712
+ creatorId: string | null;
1713
+ creatorEmail: string | null;
1714
+ creatorName: string | null;
1715
+ creatorImage: string | null;
1716
+ createdTime: number;
1717
+ isInternal: boolean;
1718
+ commentText: string;
1719
+ selection: {
1720
+ documentId: any;
1721
+ page: any;
1722
+ selectionBounds: any;
1723
+ getValues: () => {
1724
+ documentId: any;
1725
+ page: any;
1726
+ selectionBounds: any;
1727
+ source: any;
1728
+ };
1729
+ getContainerId: () => string;
1730
+ getContainerLocation: (parentContainer: any) => {
1731
+ top: number;
1732
+ left: number;
1733
+ };
1734
+ source: any;
1735
+ };
1736
+ floatingPosition: {
1737
+ top?: number | undefined;
1738
+ left?: number | undefined;
1739
+ right?: number | undefined;
1740
+ bottom?: number | undefined;
1741
+ };
1742
+ trackedChange: boolean | undefined;
1743
+ deletedText: string | null;
1744
+ trackedChangeType: string | null;
1745
+ trackedChangeText: string | null;
1746
+ trackedChangeDisplayType: string | null;
1747
+ semanticColorKey: string | null;
1748
+ semanticColor: string | null;
1749
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1750
+ trackedChangeStoryKind: string | null;
1751
+ trackedChangeStoryLabel: string;
1752
+ trackedChangeAnchorKey: string | null;
1753
+ trackedChangeCanonicalId: string | null;
1754
+ trackedChangePositionAliases: string[];
1755
+ trackedChangeDecision: ("accept" | "reject") | null;
1756
+ trackedChangeLabel: string | null;
1757
+ trackedChangeDetailLines: {
1758
+ excerpt: string;
1759
+ label: string;
1760
+ }[] | null;
1761
+ trackedChangeImagePreview: {
1762
+ src: string;
1763
+ contentType: string;
1764
+ role: "deleted" | "inserted" | "before" | "after";
1765
+ partUri?: string | undefined;
1766
+ relationshipId?: string | undefined;
1767
+ width?: number | undefined;
1768
+ height?: number | undefined;
1769
+ alt?: string | undefined;
1770
+ } | null;
1771
+ customAttributes: readonly {
1772
+ name: string;
1773
+ namespaceUri: string;
1774
+ localName: string;
1775
+ value: string;
1776
+ }[] | null;
1777
+ resolvedTime: number | null;
1778
+ resolvedById: string | null;
1779
+ resolvedByEmail: string | null | undefined;
1780
+ resolvedByName: string | null | undefined;
1781
+ importedAuthor: {
1782
+ name?: string | null | undefined;
1783
+ email?: string | null | undefined;
1784
+ } | null;
1785
+ docxCommentJSON: {} | null;
1786
+ origin: "word" | "google-docs" | "unknown" | undefined;
1787
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1788
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1789
+ threadingParentCommentId: string | null | undefined;
1790
+ originalXmlStructure: {
1791
+ hasCommentsExtended: boolean;
1792
+ hasCommentsExtensible: boolean;
1793
+ hasCommentsIds: boolean;
1794
+ } | undefined;
1795
+ setText: ({ text, superdoc, suppressUpdate }: {
1796
+ text: string;
1797
+ superdoc?: {
1798
+ emit: (event: "comments-update", payload: {
1799
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1800
+ changes?: {
1801
+ key: string;
1802
+ value: unknown;
1803
+ previousValue?: unknown;
1804
+ }[];
1805
+ comment: unknown;
1806
+ }) => unknown;
1807
+ commentsStore?: {
1808
+ getConfig?: {
1809
+ readOnly?: boolean;
1810
+ };
1811
+ };
1812
+ config?: {
1813
+ modules?: import('../../public/index.js').Modules;
1814
+ };
1815
+ };
1816
+ suppressUpdate: true;
1817
+ } | {
1818
+ text: string;
1819
+ superdoc: {
1820
+ emit: (event: "comments-update", payload: {
1821
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1822
+ changes?: {
1823
+ key: string;
1824
+ value: unknown;
1825
+ previousValue?: unknown;
1826
+ }[];
1827
+ comment: unknown;
1828
+ }) => unknown;
1829
+ commentsStore?: {
1830
+ getConfig?: {
1831
+ readOnly?: boolean;
1832
+ };
1833
+ };
1834
+ config?: {
1835
+ modules?: import('../../public/index.js').Modules;
1836
+ };
1837
+ };
1838
+ suppressUpdate?: false;
1839
+ }) => {
1840
+ ok: false;
1841
+ reason: "read-only-document";
1842
+ } | undefined;
1843
+ getValues: () => {
1844
+ uid: string | undefined;
1845
+ commentId: string | undefined;
1846
+ importedId: string | null | undefined;
1847
+ parentCommentId: string | null | undefined;
1848
+ trackedChangeParentId: string | null | undefined;
1849
+ trackedChangeThreadParentId: string | null | undefined;
1850
+ trackedChangeSide: string | null | undefined;
1851
+ fileId: string | null | undefined;
1852
+ fileType: string | null | undefined;
1853
+ mentions: {
1854
+ name: string | null | undefined;
1855
+ email?: string | null | undefined;
1856
+ }[];
1857
+ createdAtVersionNumber: number | null | undefined;
1858
+ creatorId: string | null;
1859
+ creatorEmail: string | null;
1860
+ creatorName: string | null;
1861
+ creatorImage: string | null;
1862
+ createdTime: number;
1863
+ importedAuthor: {
1864
+ name?: string | null | undefined;
1865
+ email?: string | null | undefined;
1866
+ } | null;
1867
+ docxCommentJSON: {} | null;
1868
+ isInternal: boolean;
1869
+ commentText: string;
1870
+ selection: {
1871
+ documentId: any;
1872
+ page: any;
1873
+ selectionBounds: any;
1874
+ source: any;
1875
+ } | null;
1876
+ trackedChange: boolean | undefined;
1877
+ trackedChangeText: string | null;
1878
+ trackedChangeType: string | null;
1879
+ trackedChangeDisplayType: string | null;
1880
+ semanticColorKey: string | null;
1881
+ semanticColor: string | null;
1882
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1883
+ trackedChangeStoryKind: string | null;
1884
+ trackedChangeStoryLabel: string;
1885
+ trackedChangeAnchorKey: string | null;
1886
+ trackedChangeCanonicalId: string | null;
1887
+ trackedChangePositionAliases: string[];
1888
+ trackedChangeDecision: ("accept" | "reject") | null;
1889
+ trackedChangeLabel: string | null;
1890
+ trackedChangeDetailLines: {
1891
+ excerpt: string;
1892
+ label: string;
1893
+ }[] | null;
1894
+ trackedChangeImagePreview: {
1895
+ src: string;
1896
+ contentType: string;
1897
+ role: "deleted" | "inserted" | "before" | "after";
1898
+ partUri?: string | undefined;
1899
+ relationshipId?: string | undefined;
1900
+ width?: number | undefined;
1901
+ height?: number | undefined;
1902
+ alt?: string | undefined;
1903
+ } | null;
1904
+ customAttributes: readonly {
1905
+ name: string;
1906
+ namespaceUri: string;
1907
+ localName: string;
1908
+ value: string;
1909
+ }[] | null;
1910
+ deletedText: string | null;
1911
+ resolvedTime: number | null;
1912
+ resolvedById: string | null;
1913
+ resolvedByEmail: string | null | undefined;
1914
+ resolvedByName: string | null | undefined;
1915
+ origin: "word" | "google-docs" | "unknown" | undefined;
1916
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1917
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1918
+ threadingParentCommentId: string | null | undefined;
1919
+ originalXmlStructure: {
1920
+ hasCommentsExtended: boolean;
1921
+ hasCommentsExtensible: boolean;
1922
+ hasCommentsIds: boolean;
1923
+ } | undefined;
1924
+ };
1925
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
1926
+ id?: string | null;
1927
+ email?: string | null;
1928
+ name?: string | null;
1929
+ superdoc: {
1930
+ emit: (event: "comments-update", payload: {
1931
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1932
+ changes?: {
1933
+ key: string;
1934
+ value: unknown;
1935
+ previousValue?: unknown;
1936
+ }[];
1937
+ comment: unknown;
1938
+ }) => unknown;
1939
+ commentsStore?: {
1940
+ getConfig?: {
1941
+ readOnly?: boolean;
1942
+ };
1943
+ };
1944
+ config?: {
1945
+ modules?: import('../../public/index.js').Modules;
1946
+ };
1947
+ };
1948
+ decision?: "accept" | "reject";
1949
+ reconciliationToken?: symbol;
1950
+ }) => {
1951
+ ok: false;
1952
+ reason: "read-only-document";
1953
+ } | undefined;
1954
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
1955
+ isInternal: boolean;
1956
+ superdoc: {
1957
+ emit: (event: "comments-update", payload: {
1958
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1959
+ changes?: {
1960
+ key: string;
1961
+ value: unknown;
1962
+ previousValue?: unknown;
1963
+ }[];
1964
+ comment: unknown;
1965
+ }) => unknown;
1966
+ commentsStore?: {
1967
+ getConfig?: {
1968
+ readOnly?: boolean;
1969
+ };
1970
+ };
1971
+ config?: {
1972
+ modules?: import('../../public/index.js').Modules;
1973
+ };
1974
+ };
1975
+ }) => {
1976
+ ok: false;
1977
+ reason: "read-only-document";
1978
+ } | undefined;
1979
+ updatePosition: (coords: {
1980
+ top: number;
1981
+ left: number;
1982
+ right: number;
1983
+ bottom: number;
1984
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
1985
+ getCommentUser: () => {
1986
+ name: string;
1987
+ email: string | null | undefined;
1988
+ id?: undefined;
1989
+ image?: undefined;
1990
+ } | {
1991
+ id: string | null;
1992
+ name: string | null;
1993
+ email: string | null;
1994
+ image: string | null;
1995
+ };
1996
+ updateIdentityValues: (updates?: {
1997
+ commentId?: string;
1998
+ importedId?: string | null;
1999
+ parentCommentId?: string | null;
2000
+ trackedChangeParentId?: string | null;
2001
+ trackedChangeThreadParentId?: string | null;
2002
+ threadingParentCommentId?: string | null;
2003
+ }) => void;
2004
+ }>;
2005
+ required: true;
2006
+ };
2007
+ }>> & Readonly<{
2008
+ onFocus?: ((...args: any[]) => any) | undefined;
2009
+ }>, {
2010
+ focus: (options?: FocusOptions) => void;
2011
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2012
+ focus: (...args: any[]) => void;
2013
+ }, import('vue').PublicProps, {
28
2014
  isFocused: boolean;
2015
+ users: readonly (User & {
2016
+ access?: string | {
2017
+ role?: string;
2018
+ } | null;
2019
+ })[];
29
2020
  includeHeader: boolean;
30
- comment?: Record<string, any> | undefined;
31
- $props: {
32
- readonly config?: Record<string, any> | undefined;
33
- readonly users?: unknown[] | undefined;
34
- readonly isFocused?: boolean | undefined;
35
- readonly includeHeader?: boolean | undefined;
36
- readonly comment?: Record<string, any> | undefined;
37
- };
38
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
2021
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
39
2022
  inputRef: HTMLTextAreaElement;
40
2023
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
41
2024
  P: {};
@@ -44,21 +2027,355 @@ declare const _default: import('vue').DefineComponent<{}, {
44
2027
  C: {};
45
2028
  M: {};
46
2029
  Defaults: {};
47
- }, Readonly<{}> & Readonly<{}>, {
48
- focus: (options: any) => void;
49
- $emit: (event: "focus", ...args: any[]) => void;
50
- config: Record<string, any>;
51
- users: unknown[];
2030
+ }, Readonly<import('vue').ExtractPropTypes<{
2031
+ users: {
2032
+ type: PropType<readonly (User & {
2033
+ access?: string | {
2034
+ role?: string;
2035
+ } | null;
2036
+ })[]>;
2037
+ required: false;
2038
+ default: () => never[];
2039
+ };
2040
+ config: {
2041
+ type: PropType<{
2042
+ readOnly?: boolean;
2043
+ allowResolve?: boolean;
2044
+ }>;
2045
+ required: true;
2046
+ };
2047
+ isFocused: {
2048
+ type: BooleanConstructor;
2049
+ default: boolean;
2050
+ };
2051
+ includeHeader: {
2052
+ type: BooleanConstructor;
2053
+ default: boolean;
2054
+ };
2055
+ comment: {
2056
+ type: PropType<{
2057
+ uid: string | undefined;
2058
+ commentId: string;
2059
+ importedId: string | null | undefined;
2060
+ parentCommentId: string | null | undefined;
2061
+ trackedChangeParentId: string | null | undefined;
2062
+ trackedChangeThreadParentId: string | null | undefined;
2063
+ trackedChangeSide: string | null | undefined;
2064
+ fileId: string | null | undefined;
2065
+ fileType: string | null | undefined;
2066
+ mentions: {
2067
+ name?: string | null | undefined;
2068
+ email?: string | null | undefined;
2069
+ }[];
2070
+ commentElement: HTMLElement | null;
2071
+ isFocused: boolean;
2072
+ creatorId: string | null;
2073
+ creatorEmail: string | null;
2074
+ creatorName: string | null;
2075
+ creatorImage: string | null;
2076
+ createdTime: number;
2077
+ isInternal: boolean;
2078
+ commentText: string;
2079
+ selection: {
2080
+ documentId: any;
2081
+ page: any;
2082
+ selectionBounds: any;
2083
+ getValues: () => {
2084
+ documentId: any;
2085
+ page: any;
2086
+ selectionBounds: any;
2087
+ source: any;
2088
+ };
2089
+ getContainerId: () => string;
2090
+ getContainerLocation: (parentContainer: any) => {
2091
+ top: number;
2092
+ left: number;
2093
+ };
2094
+ source: any;
2095
+ };
2096
+ floatingPosition: {
2097
+ top?: number | undefined;
2098
+ left?: number | undefined;
2099
+ right?: number | undefined;
2100
+ bottom?: number | undefined;
2101
+ };
2102
+ trackedChange: boolean | undefined;
2103
+ deletedText: string | null;
2104
+ trackedChangeType: string | null;
2105
+ trackedChangeText: string | null;
2106
+ trackedChangeDisplayType: string | null;
2107
+ semanticColorKey: string | null;
2108
+ semanticColor: string | null;
2109
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
2110
+ trackedChangeStoryKind: string | null;
2111
+ trackedChangeStoryLabel: string;
2112
+ trackedChangeAnchorKey: string | null;
2113
+ trackedChangeCanonicalId: string | null;
2114
+ trackedChangePositionAliases: string[];
2115
+ trackedChangeDecision: ("accept" | "reject") | null;
2116
+ trackedChangeLabel: string | null;
2117
+ trackedChangeDetailLines: {
2118
+ excerpt: string;
2119
+ label: string;
2120
+ }[] | null;
2121
+ trackedChangeImagePreview: {
2122
+ src: string;
2123
+ contentType: string;
2124
+ role: "deleted" | "inserted" | "before" | "after";
2125
+ partUri?: string | undefined;
2126
+ relationshipId?: string | undefined;
2127
+ width?: number | undefined;
2128
+ height?: number | undefined;
2129
+ alt?: string | undefined;
2130
+ } | null;
2131
+ customAttributes: readonly {
2132
+ name: string;
2133
+ namespaceUri: string;
2134
+ localName: string;
2135
+ value: string;
2136
+ }[] | null;
2137
+ resolvedTime: number | null;
2138
+ resolvedById: string | null;
2139
+ resolvedByEmail: string | null | undefined;
2140
+ resolvedByName: string | null | undefined;
2141
+ importedAuthor: {
2142
+ name?: string | null | undefined;
2143
+ email?: string | null | undefined;
2144
+ } | null;
2145
+ docxCommentJSON: {} | null;
2146
+ origin: "word" | "google-docs" | "unknown" | undefined;
2147
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
2148
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
2149
+ threadingParentCommentId: string | null | undefined;
2150
+ originalXmlStructure: {
2151
+ hasCommentsExtended: boolean;
2152
+ hasCommentsExtensible: boolean;
2153
+ hasCommentsIds: boolean;
2154
+ } | undefined;
2155
+ setText: ({ text, superdoc, suppressUpdate }: {
2156
+ text: string;
2157
+ superdoc?: {
2158
+ emit: (event: "comments-update", payload: {
2159
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2160
+ changes?: {
2161
+ key: string;
2162
+ value: unknown;
2163
+ previousValue?: unknown;
2164
+ }[];
2165
+ comment: unknown;
2166
+ }) => unknown;
2167
+ commentsStore?: {
2168
+ getConfig?: {
2169
+ readOnly?: boolean;
2170
+ };
2171
+ };
2172
+ config?: {
2173
+ modules?: import('../../public/index.js').Modules;
2174
+ };
2175
+ };
2176
+ suppressUpdate: true;
2177
+ } | {
2178
+ text: string;
2179
+ superdoc: {
2180
+ emit: (event: "comments-update", payload: {
2181
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2182
+ changes?: {
2183
+ key: string;
2184
+ value: unknown;
2185
+ previousValue?: unknown;
2186
+ }[];
2187
+ comment: unknown;
2188
+ }) => unknown;
2189
+ commentsStore?: {
2190
+ getConfig?: {
2191
+ readOnly?: boolean;
2192
+ };
2193
+ };
2194
+ config?: {
2195
+ modules?: import('../../public/index.js').Modules;
2196
+ };
2197
+ };
2198
+ suppressUpdate?: false;
2199
+ }) => {
2200
+ ok: false;
2201
+ reason: "read-only-document";
2202
+ } | undefined;
2203
+ getValues: () => {
2204
+ uid: string | undefined;
2205
+ commentId: string | undefined;
2206
+ importedId: string | null | undefined;
2207
+ parentCommentId: string | null | undefined;
2208
+ trackedChangeParentId: string | null | undefined;
2209
+ trackedChangeThreadParentId: string | null | undefined;
2210
+ trackedChangeSide: string | null | undefined;
2211
+ fileId: string | null | undefined;
2212
+ fileType: string | null | undefined;
2213
+ mentions: {
2214
+ name: string | null | undefined;
2215
+ email?: string | null | undefined;
2216
+ }[];
2217
+ createdAtVersionNumber: number | null | undefined;
2218
+ creatorId: string | null;
2219
+ creatorEmail: string | null;
2220
+ creatorName: string | null;
2221
+ creatorImage: string | null;
2222
+ createdTime: number;
2223
+ importedAuthor: {
2224
+ name?: string | null | undefined;
2225
+ email?: string | null | undefined;
2226
+ } | null;
2227
+ docxCommentJSON: {} | null;
2228
+ isInternal: boolean;
2229
+ commentText: string;
2230
+ selection: {
2231
+ documentId: any;
2232
+ page: any;
2233
+ selectionBounds: any;
2234
+ source: any;
2235
+ } | null;
2236
+ trackedChange: boolean | undefined;
2237
+ trackedChangeText: string | null;
2238
+ trackedChangeType: string | null;
2239
+ trackedChangeDisplayType: string | null;
2240
+ semanticColorKey: string | null;
2241
+ semanticColor: string | null;
2242
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
2243
+ trackedChangeStoryKind: string | null;
2244
+ trackedChangeStoryLabel: string;
2245
+ trackedChangeAnchorKey: string | null;
2246
+ trackedChangeCanonicalId: string | null;
2247
+ trackedChangePositionAliases: string[];
2248
+ trackedChangeDecision: ("accept" | "reject") | null;
2249
+ trackedChangeLabel: string | null;
2250
+ trackedChangeDetailLines: {
2251
+ excerpt: string;
2252
+ label: string;
2253
+ }[] | null;
2254
+ trackedChangeImagePreview: {
2255
+ src: string;
2256
+ contentType: string;
2257
+ role: "deleted" | "inserted" | "before" | "after";
2258
+ partUri?: string | undefined;
2259
+ relationshipId?: string | undefined;
2260
+ width?: number | undefined;
2261
+ height?: number | undefined;
2262
+ alt?: string | undefined;
2263
+ } | null;
2264
+ customAttributes: readonly {
2265
+ name: string;
2266
+ namespaceUri: string;
2267
+ localName: string;
2268
+ value: string;
2269
+ }[] | null;
2270
+ deletedText: string | null;
2271
+ resolvedTime: number | null;
2272
+ resolvedById: string | null;
2273
+ resolvedByEmail: string | null | undefined;
2274
+ resolvedByName: string | null | undefined;
2275
+ origin: "word" | "google-docs" | "unknown" | undefined;
2276
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
2277
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
2278
+ threadingParentCommentId: string | null | undefined;
2279
+ originalXmlStructure: {
2280
+ hasCommentsExtended: boolean;
2281
+ hasCommentsExtensible: boolean;
2282
+ hasCommentsIds: boolean;
2283
+ } | undefined;
2284
+ };
2285
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
2286
+ id?: string | null;
2287
+ email?: string | null;
2288
+ name?: string | null;
2289
+ superdoc: {
2290
+ emit: (event: "comments-update", payload: {
2291
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2292
+ changes?: {
2293
+ key: string;
2294
+ value: unknown;
2295
+ previousValue?: unknown;
2296
+ }[];
2297
+ comment: unknown;
2298
+ }) => unknown;
2299
+ commentsStore?: {
2300
+ getConfig?: {
2301
+ readOnly?: boolean;
2302
+ };
2303
+ };
2304
+ config?: {
2305
+ modules?: import('../../public/index.js').Modules;
2306
+ };
2307
+ };
2308
+ decision?: "accept" | "reject";
2309
+ reconciliationToken?: symbol;
2310
+ }) => {
2311
+ ok: false;
2312
+ reason: "read-only-document";
2313
+ } | undefined;
2314
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
2315
+ isInternal: boolean;
2316
+ superdoc: {
2317
+ emit: (event: "comments-update", payload: {
2318
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2319
+ changes?: {
2320
+ key: string;
2321
+ value: unknown;
2322
+ previousValue?: unknown;
2323
+ }[];
2324
+ comment: unknown;
2325
+ }) => unknown;
2326
+ commentsStore?: {
2327
+ getConfig?: {
2328
+ readOnly?: boolean;
2329
+ };
2330
+ };
2331
+ config?: {
2332
+ modules?: import('../../public/index.js').Modules;
2333
+ };
2334
+ };
2335
+ }) => {
2336
+ ok: false;
2337
+ reason: "read-only-document";
2338
+ } | undefined;
2339
+ updatePosition: (coords: {
2340
+ top: number;
2341
+ left: number;
2342
+ right: number;
2343
+ bottom: number;
2344
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
2345
+ getCommentUser: () => {
2346
+ name: string;
2347
+ email: string | null | undefined;
2348
+ id?: undefined;
2349
+ image?: undefined;
2350
+ } | {
2351
+ id: string | null;
2352
+ name: string | null;
2353
+ email: string | null;
2354
+ image: string | null;
2355
+ };
2356
+ updateIdentityValues: (updates?: {
2357
+ commentId?: string;
2358
+ importedId?: string | null;
2359
+ parentCommentId?: string | null;
2360
+ trackedChangeParentId?: string | null;
2361
+ trackedChangeThreadParentId?: string | null;
2362
+ threadingParentCommentId?: string | null;
2363
+ }) => void;
2364
+ }>;
2365
+ required: true;
2366
+ };
2367
+ }>> & Readonly<{
2368
+ onFocus?: ((...args: any[]) => any) | undefined;
2369
+ }>, {
2370
+ focus: (options?: FocusOptions) => void;
2371
+ }, {}, {}, {}, {
52
2372
  isFocused: boolean;
2373
+ users: readonly (User & {
2374
+ access?: string | {
2375
+ role?: string;
2376
+ } | null;
2377
+ })[];
53
2378
  includeHeader: boolean;
54
- comment?: Record<string, any> | undefined;
55
- $props: {
56
- readonly config?: Record<string, any> | undefined;
57
- readonly users?: unknown[] | undefined;
58
- readonly isFocused?: boolean | undefined;
59
- readonly includeHeader?: boolean | undefined;
60
- readonly comment?: Record<string, any> | undefined;
61
- };
62
- }, {}, {}, {}, {}> | null;
2379
+ }> | null;
63
2380
  }, HTMLDivElement>;
64
2381
  export default _default;