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,19 +1,694 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- focus: (options: any) => void;
3
- $emit: (event: "focus", ...args: any[]) => void;
4
- config: Record<string, any>;
5
- users: unknown[];
1
+ import { PropType } from 'vue';
2
+ import { User } from '../../core/types/index.js';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ users: {
5
+ type: PropType<readonly (User & {
6
+ access?: string | {
7
+ role?: string;
8
+ } | null;
9
+ })[]>;
10
+ required: false;
11
+ default: () => never[];
12
+ };
13
+ config: {
14
+ type: PropType<{
15
+ readOnly?: boolean;
16
+ allowResolve?: boolean;
17
+ }>;
18
+ required: true;
19
+ };
20
+ isFocused: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ includeHeader: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ comment: {
29
+ type: PropType<{
30
+ uid: string | undefined;
31
+ commentId: string;
32
+ importedId: string | null | undefined;
33
+ parentCommentId: string | null | undefined;
34
+ trackedChangeParentId: string | null | undefined;
35
+ trackedChangeThreadParentId: string | null | undefined;
36
+ trackedChangeSide: string | null | undefined;
37
+ fileId: string | null | undefined;
38
+ fileType: string | null | undefined;
39
+ mentions: {
40
+ name?: string | null | undefined;
41
+ email?: string | null | undefined;
42
+ }[];
43
+ commentElement: HTMLElement | null;
44
+ isFocused: boolean;
45
+ creatorId: string | null;
46
+ creatorEmail: string | null;
47
+ creatorName: string | null;
48
+ creatorImage: string | null;
49
+ createdTime: number;
50
+ isInternal: boolean;
51
+ commentText: string;
52
+ selection: {
53
+ documentId: any;
54
+ page: any;
55
+ selectionBounds: any;
56
+ getValues: () => {
57
+ documentId: any;
58
+ page: any;
59
+ selectionBounds: any;
60
+ source: any;
61
+ };
62
+ getContainerId: () => string;
63
+ getContainerLocation: (parentContainer: any) => {
64
+ top: number;
65
+ left: number;
66
+ };
67
+ source: any;
68
+ };
69
+ floatingPosition: {
70
+ top?: number | undefined;
71
+ left?: number | undefined;
72
+ right?: number | undefined;
73
+ bottom?: number | undefined;
74
+ };
75
+ trackedChange: boolean | undefined;
76
+ deletedText: string | null;
77
+ trackedChangeType: string | null;
78
+ trackedChangeText: string | null;
79
+ trackedChangeDisplayType: string | null;
80
+ semanticColorKey: string | null;
81
+ semanticColor: string | null;
82
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
83
+ trackedChangeStoryKind: string | null;
84
+ trackedChangeStoryLabel: string;
85
+ trackedChangeAnchorKey: string | null;
86
+ trackedChangeCanonicalId: string | null;
87
+ trackedChangePositionAliases: string[];
88
+ trackedChangeDecision: ("accept" | "reject") | null;
89
+ trackedChangeLabel: string | null;
90
+ trackedChangeDetailLines: {
91
+ excerpt: string;
92
+ label: string;
93
+ }[] | null;
94
+ trackedChangeImagePreview: {
95
+ src: string;
96
+ contentType: string;
97
+ role: "deleted" | "inserted" | "before" | "after";
98
+ partUri?: string | undefined;
99
+ relationshipId?: string | undefined;
100
+ width?: number | undefined;
101
+ height?: number | undefined;
102
+ alt?: string | undefined;
103
+ } | null;
104
+ customAttributes: readonly {
105
+ name: string;
106
+ namespaceUri: string;
107
+ localName: string;
108
+ value: string;
109
+ }[] | null;
110
+ resolvedTime: number | null;
111
+ resolvedById: string | null;
112
+ resolvedByEmail: string | null | undefined;
113
+ resolvedByName: string | null | undefined;
114
+ importedAuthor: {
115
+ name?: string | null | undefined;
116
+ email?: string | null | undefined;
117
+ } | null;
118
+ docxCommentJSON: {} | null;
119
+ origin: "word" | "google-docs" | "unknown" | undefined;
120
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
121
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
122
+ threadingParentCommentId: string | null | undefined;
123
+ originalXmlStructure: {
124
+ hasCommentsExtended: boolean;
125
+ hasCommentsExtensible: boolean;
126
+ hasCommentsIds: boolean;
127
+ } | undefined;
128
+ setText: ({ text, superdoc, suppressUpdate }: {
129
+ text: string;
130
+ superdoc?: {
131
+ emit: (event: "comments-update", payload: {
132
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
133
+ changes?: {
134
+ key: string;
135
+ value: unknown;
136
+ previousValue?: unknown;
137
+ }[];
138
+ comment: unknown;
139
+ }) => unknown;
140
+ commentsStore?: {
141
+ getConfig?: {
142
+ readOnly?: boolean;
143
+ };
144
+ };
145
+ config?: {
146
+ modules?: import('../../public/index.js').Modules;
147
+ };
148
+ };
149
+ suppressUpdate: true;
150
+ } | {
151
+ text: string;
152
+ superdoc: {
153
+ emit: (event: "comments-update", payload: {
154
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
155
+ changes?: {
156
+ key: string;
157
+ value: unknown;
158
+ previousValue?: unknown;
159
+ }[];
160
+ comment: unknown;
161
+ }) => unknown;
162
+ commentsStore?: {
163
+ getConfig?: {
164
+ readOnly?: boolean;
165
+ };
166
+ };
167
+ config?: {
168
+ modules?: import('../../public/index.js').Modules;
169
+ };
170
+ };
171
+ suppressUpdate?: false;
172
+ }) => {
173
+ ok: false;
174
+ reason: "read-only-document";
175
+ } | undefined;
176
+ getValues: () => {
177
+ uid: string | undefined;
178
+ commentId: string | undefined;
179
+ importedId: string | null | undefined;
180
+ parentCommentId: string | null | undefined;
181
+ trackedChangeParentId: string | null | undefined;
182
+ trackedChangeThreadParentId: string | null | undefined;
183
+ trackedChangeSide: string | null | undefined;
184
+ fileId: string | null | undefined;
185
+ fileType: string | null | undefined;
186
+ mentions: {
187
+ name: string | null | undefined;
188
+ email?: string | null | undefined;
189
+ }[];
190
+ createdAtVersionNumber: number | null | undefined;
191
+ creatorId: string | null;
192
+ creatorEmail: string | null;
193
+ creatorName: string | null;
194
+ creatorImage: string | null;
195
+ createdTime: number;
196
+ importedAuthor: {
197
+ name?: string | null | undefined;
198
+ email?: string | null | undefined;
199
+ } | null;
200
+ docxCommentJSON: {} | null;
201
+ isInternal: boolean;
202
+ commentText: string;
203
+ selection: {
204
+ documentId: any;
205
+ page: any;
206
+ selectionBounds: any;
207
+ source: any;
208
+ } | null;
209
+ trackedChange: boolean | undefined;
210
+ trackedChangeText: string | null;
211
+ trackedChangeType: string | null;
212
+ trackedChangeDisplayType: string | null;
213
+ semanticColorKey: string | null;
214
+ semanticColor: string | null;
215
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
216
+ trackedChangeStoryKind: string | null;
217
+ trackedChangeStoryLabel: string;
218
+ trackedChangeAnchorKey: string | null;
219
+ trackedChangeCanonicalId: string | null;
220
+ trackedChangePositionAliases: string[];
221
+ trackedChangeDecision: ("accept" | "reject") | null;
222
+ trackedChangeLabel: string | null;
223
+ trackedChangeDetailLines: {
224
+ excerpt: string;
225
+ label: string;
226
+ }[] | null;
227
+ trackedChangeImagePreview: {
228
+ src: string;
229
+ contentType: string;
230
+ role: "deleted" | "inserted" | "before" | "after";
231
+ partUri?: string | undefined;
232
+ relationshipId?: string | undefined;
233
+ width?: number | undefined;
234
+ height?: number | undefined;
235
+ alt?: string | undefined;
236
+ } | null;
237
+ customAttributes: readonly {
238
+ name: string;
239
+ namespaceUri: string;
240
+ localName: string;
241
+ value: string;
242
+ }[] | null;
243
+ deletedText: string | null;
244
+ resolvedTime: number | null;
245
+ resolvedById: string | null;
246
+ resolvedByEmail: string | null | undefined;
247
+ resolvedByName: string | null | undefined;
248
+ origin: "word" | "google-docs" | "unknown" | undefined;
249
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
250
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
251
+ threadingParentCommentId: string | null | undefined;
252
+ originalXmlStructure: {
253
+ hasCommentsExtended: boolean;
254
+ hasCommentsExtensible: boolean;
255
+ hasCommentsIds: boolean;
256
+ } | undefined;
257
+ };
258
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
259
+ id?: string | null;
260
+ email?: string | null;
261
+ name?: string | null;
262
+ superdoc: {
263
+ emit: (event: "comments-update", payload: {
264
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
265
+ changes?: {
266
+ key: string;
267
+ value: unknown;
268
+ previousValue?: unknown;
269
+ }[];
270
+ comment: unknown;
271
+ }) => unknown;
272
+ commentsStore?: {
273
+ getConfig?: {
274
+ readOnly?: boolean;
275
+ };
276
+ };
277
+ config?: {
278
+ modules?: import('../../public/index.js').Modules;
279
+ };
280
+ };
281
+ decision?: "accept" | "reject";
282
+ reconciliationToken?: symbol;
283
+ }) => {
284
+ ok: false;
285
+ reason: "read-only-document";
286
+ } | undefined;
287
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
288
+ isInternal: boolean;
289
+ superdoc: {
290
+ emit: (event: "comments-update", payload: {
291
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
292
+ changes?: {
293
+ key: string;
294
+ value: unknown;
295
+ previousValue?: unknown;
296
+ }[];
297
+ comment: unknown;
298
+ }) => unknown;
299
+ commentsStore?: {
300
+ getConfig?: {
301
+ readOnly?: boolean;
302
+ };
303
+ };
304
+ config?: {
305
+ modules?: import('../../public/index.js').Modules;
306
+ };
307
+ };
308
+ }) => {
309
+ ok: false;
310
+ reason: "read-only-document";
311
+ } | undefined;
312
+ updatePosition: (coords: {
313
+ top: number;
314
+ left: number;
315
+ right: number;
316
+ bottom: number;
317
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
318
+ getCommentUser: () => {
319
+ name: string;
320
+ email: string | null | undefined;
321
+ id?: undefined;
322
+ image?: undefined;
323
+ } | {
324
+ id: string | null;
325
+ name: string | null;
326
+ email: string | null;
327
+ image: string | null;
328
+ };
329
+ updateIdentityValues: (updates?: {
330
+ commentId?: string;
331
+ importedId?: string | null;
332
+ parentCommentId?: string | null;
333
+ trackedChangeParentId?: string | null;
334
+ trackedChangeThreadParentId?: string | null;
335
+ threadingParentCommentId?: string | null;
336
+ }) => void;
337
+ }>;
338
+ required: true;
339
+ };
340
+ }>, {
341
+ focus: (options?: FocusOptions) => void;
342
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
343
+ focus: (...args: any[]) => void;
344
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
345
+ users: {
346
+ type: PropType<readonly (User & {
347
+ access?: string | {
348
+ role?: string;
349
+ } | null;
350
+ })[]>;
351
+ required: false;
352
+ default: () => never[];
353
+ };
354
+ config: {
355
+ type: PropType<{
356
+ readOnly?: boolean;
357
+ allowResolve?: boolean;
358
+ }>;
359
+ required: true;
360
+ };
361
+ isFocused: {
362
+ type: BooleanConstructor;
363
+ default: boolean;
364
+ };
365
+ includeHeader: {
366
+ type: BooleanConstructor;
367
+ default: boolean;
368
+ };
369
+ comment: {
370
+ type: PropType<{
371
+ uid: string | undefined;
372
+ commentId: string;
373
+ importedId: string | null | undefined;
374
+ parentCommentId: string | null | undefined;
375
+ trackedChangeParentId: string | null | undefined;
376
+ trackedChangeThreadParentId: string | null | undefined;
377
+ trackedChangeSide: string | null | undefined;
378
+ fileId: string | null | undefined;
379
+ fileType: string | null | undefined;
380
+ mentions: {
381
+ name?: string | null | undefined;
382
+ email?: string | null | undefined;
383
+ }[];
384
+ commentElement: HTMLElement | null;
385
+ isFocused: boolean;
386
+ creatorId: string | null;
387
+ creatorEmail: string | null;
388
+ creatorName: string | null;
389
+ creatorImage: string | null;
390
+ createdTime: number;
391
+ isInternal: boolean;
392
+ commentText: string;
393
+ selection: {
394
+ documentId: any;
395
+ page: any;
396
+ selectionBounds: any;
397
+ getValues: () => {
398
+ documentId: any;
399
+ page: any;
400
+ selectionBounds: any;
401
+ source: any;
402
+ };
403
+ getContainerId: () => string;
404
+ getContainerLocation: (parentContainer: any) => {
405
+ top: number;
406
+ left: number;
407
+ };
408
+ source: any;
409
+ };
410
+ floatingPosition: {
411
+ top?: number | undefined;
412
+ left?: number | undefined;
413
+ right?: number | undefined;
414
+ bottom?: number | undefined;
415
+ };
416
+ trackedChange: boolean | undefined;
417
+ deletedText: string | null;
418
+ trackedChangeType: string | null;
419
+ trackedChangeText: string | null;
420
+ trackedChangeDisplayType: string | null;
421
+ semanticColorKey: string | null;
422
+ semanticColor: string | null;
423
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
424
+ trackedChangeStoryKind: string | null;
425
+ trackedChangeStoryLabel: string;
426
+ trackedChangeAnchorKey: string | null;
427
+ trackedChangeCanonicalId: string | null;
428
+ trackedChangePositionAliases: string[];
429
+ trackedChangeDecision: ("accept" | "reject") | null;
430
+ trackedChangeLabel: string | null;
431
+ trackedChangeDetailLines: {
432
+ excerpt: string;
433
+ label: string;
434
+ }[] | null;
435
+ trackedChangeImagePreview: {
436
+ src: string;
437
+ contentType: string;
438
+ role: "deleted" | "inserted" | "before" | "after";
439
+ partUri?: string | undefined;
440
+ relationshipId?: string | undefined;
441
+ width?: number | undefined;
442
+ height?: number | undefined;
443
+ alt?: string | undefined;
444
+ } | null;
445
+ customAttributes: readonly {
446
+ name: string;
447
+ namespaceUri: string;
448
+ localName: string;
449
+ value: string;
450
+ }[] | null;
451
+ resolvedTime: number | null;
452
+ resolvedById: string | null;
453
+ resolvedByEmail: string | null | undefined;
454
+ resolvedByName: string | null | undefined;
455
+ importedAuthor: {
456
+ name?: string | null | undefined;
457
+ email?: string | null | undefined;
458
+ } | null;
459
+ docxCommentJSON: {} | null;
460
+ origin: "word" | "google-docs" | "unknown" | undefined;
461
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
462
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
463
+ threadingParentCommentId: string | null | undefined;
464
+ originalXmlStructure: {
465
+ hasCommentsExtended: boolean;
466
+ hasCommentsExtensible: boolean;
467
+ hasCommentsIds: boolean;
468
+ } | undefined;
469
+ setText: ({ text, superdoc, suppressUpdate }: {
470
+ text: string;
471
+ superdoc?: {
472
+ emit: (event: "comments-update", payload: {
473
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
474
+ changes?: {
475
+ key: string;
476
+ value: unknown;
477
+ previousValue?: unknown;
478
+ }[];
479
+ comment: unknown;
480
+ }) => unknown;
481
+ commentsStore?: {
482
+ getConfig?: {
483
+ readOnly?: boolean;
484
+ };
485
+ };
486
+ config?: {
487
+ modules?: import('../../public/index.js').Modules;
488
+ };
489
+ };
490
+ suppressUpdate: true;
491
+ } | {
492
+ text: string;
493
+ superdoc: {
494
+ emit: (event: "comments-update", payload: {
495
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
496
+ changes?: {
497
+ key: string;
498
+ value: unknown;
499
+ previousValue?: unknown;
500
+ }[];
501
+ comment: unknown;
502
+ }) => unknown;
503
+ commentsStore?: {
504
+ getConfig?: {
505
+ readOnly?: boolean;
506
+ };
507
+ };
508
+ config?: {
509
+ modules?: import('../../public/index.js').Modules;
510
+ };
511
+ };
512
+ suppressUpdate?: false;
513
+ }) => {
514
+ ok: false;
515
+ reason: "read-only-document";
516
+ } | undefined;
517
+ getValues: () => {
518
+ uid: string | undefined;
519
+ commentId: string | undefined;
520
+ importedId: string | null | undefined;
521
+ parentCommentId: string | null | undefined;
522
+ trackedChangeParentId: string | null | undefined;
523
+ trackedChangeThreadParentId: string | null | undefined;
524
+ trackedChangeSide: string | null | undefined;
525
+ fileId: string | null | undefined;
526
+ fileType: string | null | undefined;
527
+ mentions: {
528
+ name: string | null | undefined;
529
+ email?: string | null | undefined;
530
+ }[];
531
+ createdAtVersionNumber: number | null | undefined;
532
+ creatorId: string | null;
533
+ creatorEmail: string | null;
534
+ creatorName: string | null;
535
+ creatorImage: string | null;
536
+ createdTime: number;
537
+ importedAuthor: {
538
+ name?: string | null | undefined;
539
+ email?: string | null | undefined;
540
+ } | null;
541
+ docxCommentJSON: {} | null;
542
+ isInternal: boolean;
543
+ commentText: string;
544
+ selection: {
545
+ documentId: any;
546
+ page: any;
547
+ selectionBounds: any;
548
+ source: any;
549
+ } | null;
550
+ trackedChange: boolean | undefined;
551
+ trackedChangeText: string | null;
552
+ trackedChangeType: string | null;
553
+ trackedChangeDisplayType: string | null;
554
+ semanticColorKey: string | null;
555
+ semanticColor: string | null;
556
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
557
+ trackedChangeStoryKind: string | null;
558
+ trackedChangeStoryLabel: string;
559
+ trackedChangeAnchorKey: string | null;
560
+ trackedChangeCanonicalId: string | null;
561
+ trackedChangePositionAliases: string[];
562
+ trackedChangeDecision: ("accept" | "reject") | null;
563
+ trackedChangeLabel: string | null;
564
+ trackedChangeDetailLines: {
565
+ excerpt: string;
566
+ label: string;
567
+ }[] | null;
568
+ trackedChangeImagePreview: {
569
+ src: string;
570
+ contentType: string;
571
+ role: "deleted" | "inserted" | "before" | "after";
572
+ partUri?: string | undefined;
573
+ relationshipId?: string | undefined;
574
+ width?: number | undefined;
575
+ height?: number | undefined;
576
+ alt?: string | undefined;
577
+ } | null;
578
+ customAttributes: readonly {
579
+ name: string;
580
+ namespaceUri: string;
581
+ localName: string;
582
+ value: string;
583
+ }[] | null;
584
+ deletedText: string | null;
585
+ resolvedTime: number | null;
586
+ resolvedById: string | null;
587
+ resolvedByEmail: string | null | undefined;
588
+ resolvedByName: string | null | undefined;
589
+ origin: "word" | "google-docs" | "unknown" | undefined;
590
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
591
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
592
+ threadingParentCommentId: string | null | undefined;
593
+ originalXmlStructure: {
594
+ hasCommentsExtended: boolean;
595
+ hasCommentsExtensible: boolean;
596
+ hasCommentsIds: boolean;
597
+ } | undefined;
598
+ };
599
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
600
+ id?: string | null;
601
+ email?: string | null;
602
+ name?: string | null;
603
+ superdoc: {
604
+ emit: (event: "comments-update", payload: {
605
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
606
+ changes?: {
607
+ key: string;
608
+ value: unknown;
609
+ previousValue?: unknown;
610
+ }[];
611
+ comment: unknown;
612
+ }) => unknown;
613
+ commentsStore?: {
614
+ getConfig?: {
615
+ readOnly?: boolean;
616
+ };
617
+ };
618
+ config?: {
619
+ modules?: import('../../public/index.js').Modules;
620
+ };
621
+ };
622
+ decision?: "accept" | "reject";
623
+ reconciliationToken?: symbol;
624
+ }) => {
625
+ ok: false;
626
+ reason: "read-only-document";
627
+ } | undefined;
628
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
629
+ isInternal: boolean;
630
+ superdoc: {
631
+ emit: (event: "comments-update", payload: {
632
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
633
+ changes?: {
634
+ key: string;
635
+ value: unknown;
636
+ previousValue?: unknown;
637
+ }[];
638
+ comment: unknown;
639
+ }) => unknown;
640
+ commentsStore?: {
641
+ getConfig?: {
642
+ readOnly?: boolean;
643
+ };
644
+ };
645
+ config?: {
646
+ modules?: import('../../public/index.js').Modules;
647
+ };
648
+ };
649
+ }) => {
650
+ ok: false;
651
+ reason: "read-only-document";
652
+ } | undefined;
653
+ updatePosition: (coords: {
654
+ top: number;
655
+ left: number;
656
+ right: number;
657
+ bottom: number;
658
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
659
+ getCommentUser: () => {
660
+ name: string;
661
+ email: string | null | undefined;
662
+ id?: undefined;
663
+ image?: undefined;
664
+ } | {
665
+ id: string | null;
666
+ name: string | null;
667
+ email: string | null;
668
+ image: string | null;
669
+ };
670
+ updateIdentityValues: (updates?: {
671
+ commentId?: string;
672
+ importedId?: string | null;
673
+ parentCommentId?: string | null;
674
+ trackedChangeParentId?: string | null;
675
+ trackedChangeThreadParentId?: string | null;
676
+ threadingParentCommentId?: string | null;
677
+ }) => void;
678
+ }>;
679
+ required: true;
680
+ };
681
+ }>> & Readonly<{
682
+ onFocus?: ((...args: any[]) => any) | undefined;
683
+ }>, {
6
684
  isFocused: boolean;
685
+ users: readonly (User & {
686
+ access?: string | {
687
+ role?: string;
688
+ } | null;
689
+ })[];
7
690
  includeHeader: boolean;
8
- comment?: Record<string, any> | undefined;
9
- $props: {
10
- readonly config?: Record<string, any> | undefined;
11
- readonly users?: unknown[] | undefined;
12
- readonly isFocused?: boolean | undefined;
13
- readonly includeHeader?: boolean | undefined;
14
- readonly comment?: Record<string, any> | undefined;
15
- };
16
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
691
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
17
692
  inputRef: HTMLTextAreaElement;
18
693
  }, HTMLDivElement>;
19
694
  export default _default;