@harbour-enterprises/superdoc 0.11.38 → 0.11.39

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 (29) hide show
  1. package/dist/chunks/{super-editor.es-CNFVm8hq.es.js → super-editor.es-CfOoZR7Y.es.js} +3 -3
  2. package/dist/chunks/{super-editor.es-Cg89uKA2.cjs → super-editor.es-Oav3pft6.cjs} +3 -3
  3. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +1 -2
  4. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +1 -1
  5. package/dist/core/SuperDoc.d.ts +262 -40
  6. package/dist/core/SuperDoc.d.ts.map +1 -1
  7. package/dist/stores/superdoc-store.d.ts +6 -744
  8. package/dist/stores/superdoc-store.d.ts.map +1 -1
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-kImULoLP.js → converter-BaPyRYsP.js} +2 -2
  11. package/dist/super-editor/chunks/{docx-zipper-BJa8Y-Dq.js → docx-zipper-DWp5ugUc.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-ChxV_2MO.js → editor-C80oU8zg.js} +3 -3
  13. package/dist/super-editor/chunks/{toolbar-Bw9cFCzz.js → toolbar-BfR55xSN.js} +2 -2
  14. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -1
  15. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.d.ts +3 -0
  24. package/dist/super-editor.es.js +1 -1
  25. package/dist/superdoc.cjs +3 -3
  26. package/dist/superdoc.es.js +111 -9
  27. package/dist/superdoc.umd.js +111 -11
  28. package/dist/superdoc.umd.js.map +1 -1
  29. package/package.json +1 -1
@@ -1,251 +1,5 @@
1
1
  export const useSuperdocStore: import("pinia").StoreDefinition<"superdoc", Pick<{
2
- commentsStore: import("pinia").Store<"comments", Pick<{
3
- COMMENT_EVENTS: Readonly<{
4
- RESOLVED: "resolved";
5
- NEW: "new";
6
- ADD: "add";
7
- UPDATE: "update";
8
- DELETED: "deleted";
9
- PENDING: "pending";
10
- SELECTED: "selected";
11
- COMMENTS_LIST: "comments-list";
12
- CHANGE_ACCEPTED: "change-accepted";
13
- CHANGE_REJECTED: "change-rejected";
14
- }>;
15
- isDebugging: boolean;
16
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
17
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
18
- editingCommentId: import("vue").Ref<any, any>;
19
- activeComment: import("vue").Ref<any, any>;
20
- commentDialogs: import("vue").Ref<any[], any[]>;
21
- overlappingComments: import("vue").Ref<any[], any[]>;
22
- overlappedIds: Set<any>;
23
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
24
- pendingComment: import("vue").Ref<any, any>;
25
- currentCommentText: import("vue").Ref<string, string>;
26
- commentsList: import("vue").Ref<any[], any[]>;
27
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
28
- generalCommentIds: import("vue").Ref<any[], any[]>;
29
- editorCommentIds: import("vue").Ref<any[], any[]>;
30
- commentsParentElement: import("vue").Ref<any, any>;
31
- editorCommentPositions: import("vue").Ref<{}, {}>;
32
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
33
- floatingCommentsOffset: import("vue").Ref<number, number>;
34
- sortedConversations: import("vue").Ref<any[], any[]>;
35
- visibleConversations: import("vue").Ref<any[], any[]>;
36
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
37
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
38
- getConfig: import("vue").ComputedRef<{
39
- name: string;
40
- readOnly: boolean;
41
- allowResolve: boolean;
42
- showResolved: boolean;
43
- }>;
44
- documentsWithConverations: import("vue").ComputedRef<any>;
45
- getGroupedComments: import("vue").ComputedRef<{
46
- parentComments: any[];
47
- resolvedComments: any[];
48
- }>;
49
- getFloatingComments: import("vue").ComputedRef<any[]>;
50
- init: (config?: any) => void;
51
- getComment: (id: string) => any;
52
- setActiveComment: (id: string | undefined | null) => void;
53
- getCommentLocation: (selection: any, parent: any) => {
54
- top: any;
55
- left: any;
56
- };
57
- hasOverlapId: (id: any) => any;
58
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
59
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
60
- selection: any;
61
- documentId: string;
62
- parentCommentId: string;
63
- }) => any;
64
- showAddComment: (superdoc: any) => void;
65
- addComment: ({ superdoc, comment }: {
66
- superdoc: any;
67
- }) => void;
68
- cancelComment: (superdoc: any) => void;
69
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
70
- commentId: any;
71
- superdoc: any;
72
- }) => void;
73
- removePendingComment: (superdoc: any) => void;
74
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
75
- comments: any[];
76
- documentId: string;
77
- }) => void;
78
- translateCommentsForExport: () => any[];
79
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
80
- handleTrackedChangeUpdate: ({ superdoc, params }: {
81
- superdoc: any;
82
- params: any;
83
- }) => void;
84
- }, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "commentsList" | "isCommentsListVisible" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "floatingCommentsOffset" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady">, Pick<{
85
- COMMENT_EVENTS: Readonly<{
86
- RESOLVED: "resolved";
87
- NEW: "new";
88
- ADD: "add";
89
- UPDATE: "update";
90
- DELETED: "deleted";
91
- PENDING: "pending";
92
- SELECTED: "selected";
93
- COMMENTS_LIST: "comments-list";
94
- CHANGE_ACCEPTED: "change-accepted";
95
- CHANGE_REJECTED: "change-rejected";
96
- }>;
97
- isDebugging: boolean;
98
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
99
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
100
- editingCommentId: import("vue").Ref<any, any>;
101
- activeComment: import("vue").Ref<any, any>;
102
- commentDialogs: import("vue").Ref<any[], any[]>;
103
- overlappingComments: import("vue").Ref<any[], any[]>;
104
- overlappedIds: Set<any>;
105
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
106
- pendingComment: import("vue").Ref<any, any>;
107
- currentCommentText: import("vue").Ref<string, string>;
108
- commentsList: import("vue").Ref<any[], any[]>;
109
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
110
- generalCommentIds: import("vue").Ref<any[], any[]>;
111
- editorCommentIds: import("vue").Ref<any[], any[]>;
112
- commentsParentElement: import("vue").Ref<any, any>;
113
- editorCommentPositions: import("vue").Ref<{}, {}>;
114
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
115
- floatingCommentsOffset: import("vue").Ref<number, number>;
116
- sortedConversations: import("vue").Ref<any[], any[]>;
117
- visibleConversations: import("vue").Ref<any[], any[]>;
118
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
119
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
120
- getConfig: import("vue").ComputedRef<{
121
- name: string;
122
- readOnly: boolean;
123
- allowResolve: boolean;
124
- showResolved: boolean;
125
- }>;
126
- documentsWithConverations: import("vue").ComputedRef<any>;
127
- getGroupedComments: import("vue").ComputedRef<{
128
- parentComments: any[];
129
- resolvedComments: any[];
130
- }>;
131
- getFloatingComments: import("vue").ComputedRef<any[]>;
132
- init: (config?: any) => void;
133
- getComment: (id: string) => any;
134
- setActiveComment: (id: string | undefined | null) => void;
135
- getCommentLocation: (selection: any, parent: any) => {
136
- top: any;
137
- left: any;
138
- };
139
- hasOverlapId: (id: any) => any;
140
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
141
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
142
- selection: any;
143
- documentId: string;
144
- parentCommentId: string;
145
- }) => any;
146
- showAddComment: (superdoc: any) => void;
147
- addComment: ({ superdoc, comment }: {
148
- superdoc: any;
149
- }) => void;
150
- cancelComment: (superdoc: any) => void;
151
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
152
- commentId: any;
153
- superdoc: any;
154
- }) => void;
155
- removePendingComment: (superdoc: any) => void;
156
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
157
- comments: any[];
158
- documentId: string;
159
- }) => void;
160
- translateCommentsForExport: () => any[];
161
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
162
- handleTrackedChangeUpdate: ({ superdoc, params }: {
163
- superdoc: any;
164
- params: any;
165
- }) => void;
166
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getFloatingComments">, Pick<{
167
- COMMENT_EVENTS: Readonly<{
168
- RESOLVED: "resolved";
169
- NEW: "new";
170
- ADD: "add";
171
- UPDATE: "update";
172
- DELETED: "deleted";
173
- PENDING: "pending";
174
- SELECTED: "selected";
175
- COMMENTS_LIST: "comments-list";
176
- CHANGE_ACCEPTED: "change-accepted";
177
- CHANGE_REJECTED: "change-rejected";
178
- }>;
179
- isDebugging: boolean;
180
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
181
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
182
- editingCommentId: import("vue").Ref<any, any>;
183
- activeComment: import("vue").Ref<any, any>;
184
- commentDialogs: import("vue").Ref<any[], any[]>;
185
- overlappingComments: import("vue").Ref<any[], any[]>;
186
- overlappedIds: Set<any>;
187
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
188
- pendingComment: import("vue").Ref<any, any>;
189
- currentCommentText: import("vue").Ref<string, string>;
190
- commentsList: import("vue").Ref<any[], any[]>;
191
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
192
- generalCommentIds: import("vue").Ref<any[], any[]>;
193
- editorCommentIds: import("vue").Ref<any[], any[]>;
194
- commentsParentElement: import("vue").Ref<any, any>;
195
- editorCommentPositions: import("vue").Ref<{}, {}>;
196
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
197
- floatingCommentsOffset: import("vue").Ref<number, number>;
198
- sortedConversations: import("vue").Ref<any[], any[]>;
199
- visibleConversations: import("vue").Ref<any[], any[]>;
200
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
201
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
202
- getConfig: import("vue").ComputedRef<{
203
- name: string;
204
- readOnly: boolean;
205
- allowResolve: boolean;
206
- showResolved: boolean;
207
- }>;
208
- documentsWithConverations: import("vue").ComputedRef<any>;
209
- getGroupedComments: import("vue").ComputedRef<{
210
- parentComments: any[];
211
- resolvedComments: any[];
212
- }>;
213
- getFloatingComments: import("vue").ComputedRef<any[]>;
214
- init: (config?: any) => void;
215
- getComment: (id: string) => any;
216
- setActiveComment: (id: string | undefined | null) => void;
217
- getCommentLocation: (selection: any, parent: any) => {
218
- top: any;
219
- left: any;
220
- };
221
- hasOverlapId: (id: any) => any;
222
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
223
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
224
- selection: any;
225
- documentId: string;
226
- parentCommentId: string;
227
- }) => any;
228
- showAddComment: (superdoc: any) => void;
229
- addComment: ({ superdoc, comment }: {
230
- superdoc: any;
231
- }) => void;
232
- cancelComment: (superdoc: any) => void;
233
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
234
- commentId: any;
235
- superdoc: any;
236
- }) => void;
237
- removePendingComment: (superdoc: any) => void;
238
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
239
- comments: any[];
240
- documentId: string;
241
- }) => void;
242
- translateCommentsForExport: () => any[];
243
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
244
- handleTrackedChangeUpdate: ({ superdoc, params }: {
245
- superdoc: any;
246
- params: any;
247
- }) => void;
248
- }, "setActiveComment" | "init" | "getComment" | "getCommentLocation" | "hasOverlapId" | "checkOverlaps" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "handleTrackedChangeUpdate">>;
2
+ commentsStore: any;
249
3
  documents: import("vue").Ref<any[], any[]>;
250
4
  documentBounds: import("vue").Ref<any[], any[]>;
251
5
  pages: {};
@@ -291,254 +45,8 @@ export const useSuperdocStore: import("pinia").StoreDefinition<"superdoc", Pick<
291
45
  getPageBounds: (documentId: any, page: any) => {
292
46
  top: number;
293
47
  };
294
- }, "user" | "isInternal" | "commentsStore" | "documents" | "documentBounds" | "pages" | "documentUsers" | "users" | "activeZoom" | "documentScroll" | "selectionPosition" | "activeSelection" | "isReady" | "modules">, Pick<{
295
- commentsStore: import("pinia").Store<"comments", Pick<{
296
- COMMENT_EVENTS: Readonly<{
297
- RESOLVED: "resolved";
298
- NEW: "new";
299
- ADD: "add";
300
- UPDATE: "update";
301
- DELETED: "deleted";
302
- PENDING: "pending";
303
- SELECTED: "selected";
304
- COMMENTS_LIST: "comments-list";
305
- CHANGE_ACCEPTED: "change-accepted";
306
- CHANGE_REJECTED: "change-rejected";
307
- }>;
308
- isDebugging: boolean;
309
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
310
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
311
- editingCommentId: import("vue").Ref<any, any>;
312
- activeComment: import("vue").Ref<any, any>;
313
- commentDialogs: import("vue").Ref<any[], any[]>;
314
- overlappingComments: import("vue").Ref<any[], any[]>;
315
- overlappedIds: Set<any>;
316
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
317
- pendingComment: import("vue").Ref<any, any>;
318
- currentCommentText: import("vue").Ref<string, string>;
319
- commentsList: import("vue").Ref<any[], any[]>;
320
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
321
- generalCommentIds: import("vue").Ref<any[], any[]>;
322
- editorCommentIds: import("vue").Ref<any[], any[]>;
323
- commentsParentElement: import("vue").Ref<any, any>;
324
- editorCommentPositions: import("vue").Ref<{}, {}>;
325
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
326
- floatingCommentsOffset: import("vue").Ref<number, number>;
327
- sortedConversations: import("vue").Ref<any[], any[]>;
328
- visibleConversations: import("vue").Ref<any[], any[]>;
329
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
330
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
331
- getConfig: import("vue").ComputedRef<{
332
- name: string;
333
- readOnly: boolean;
334
- allowResolve: boolean;
335
- showResolved: boolean;
336
- }>;
337
- documentsWithConverations: import("vue").ComputedRef<any>;
338
- getGroupedComments: import("vue").ComputedRef<{
339
- parentComments: any[];
340
- resolvedComments: any[];
341
- }>;
342
- getFloatingComments: import("vue").ComputedRef<any[]>;
343
- init: (config?: any) => void;
344
- getComment: (id: string) => any;
345
- setActiveComment: (id: string | undefined | null) => void;
346
- getCommentLocation: (selection: any, parent: any) => {
347
- top: any;
348
- left: any;
349
- };
350
- hasOverlapId: (id: any) => any;
351
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
352
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
353
- selection: any;
354
- documentId: string;
355
- parentCommentId: string;
356
- }) => any;
357
- showAddComment: (superdoc: any) => void;
358
- addComment: ({ superdoc, comment }: {
359
- superdoc: any;
360
- }) => void;
361
- cancelComment: (superdoc: any) => void;
362
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
363
- commentId: any;
364
- superdoc: any;
365
- }) => void;
366
- removePendingComment: (superdoc: any) => void;
367
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
368
- comments: any[];
369
- documentId: string;
370
- }) => void;
371
- translateCommentsForExport: () => any[];
372
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
373
- handleTrackedChangeUpdate: ({ superdoc, params }: {
374
- superdoc: any;
375
- params: any;
376
- }) => void;
377
- }, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "commentsList" | "isCommentsListVisible" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "floatingCommentsOffset" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady">, Pick<{
378
- COMMENT_EVENTS: Readonly<{
379
- RESOLVED: "resolved";
380
- NEW: "new";
381
- ADD: "add";
382
- UPDATE: "update";
383
- DELETED: "deleted";
384
- PENDING: "pending";
385
- SELECTED: "selected";
386
- COMMENTS_LIST: "comments-list";
387
- CHANGE_ACCEPTED: "change-accepted";
388
- CHANGE_REJECTED: "change-rejected";
389
- }>;
390
- isDebugging: boolean;
391
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
392
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
393
- editingCommentId: import("vue").Ref<any, any>;
394
- activeComment: import("vue").Ref<any, any>;
395
- commentDialogs: import("vue").Ref<any[], any[]>;
396
- overlappingComments: import("vue").Ref<any[], any[]>;
397
- overlappedIds: Set<any>;
398
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
399
- pendingComment: import("vue").Ref<any, any>;
400
- currentCommentText: import("vue").Ref<string, string>;
401
- commentsList: import("vue").Ref<any[], any[]>;
402
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
403
- generalCommentIds: import("vue").Ref<any[], any[]>;
404
- editorCommentIds: import("vue").Ref<any[], any[]>;
405
- commentsParentElement: import("vue").Ref<any, any>;
406
- editorCommentPositions: import("vue").Ref<{}, {}>;
407
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
408
- floatingCommentsOffset: import("vue").Ref<number, number>;
409
- sortedConversations: import("vue").Ref<any[], any[]>;
410
- visibleConversations: import("vue").Ref<any[], any[]>;
411
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
412
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
413
- getConfig: import("vue").ComputedRef<{
414
- name: string;
415
- readOnly: boolean;
416
- allowResolve: boolean;
417
- showResolved: boolean;
418
- }>;
419
- documentsWithConverations: import("vue").ComputedRef<any>;
420
- getGroupedComments: import("vue").ComputedRef<{
421
- parentComments: any[];
422
- resolvedComments: any[];
423
- }>;
424
- getFloatingComments: import("vue").ComputedRef<any[]>;
425
- init: (config?: any) => void;
426
- getComment: (id: string) => any;
427
- setActiveComment: (id: string | undefined | null) => void;
428
- getCommentLocation: (selection: any, parent: any) => {
429
- top: any;
430
- left: any;
431
- };
432
- hasOverlapId: (id: any) => any;
433
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
434
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
435
- selection: any;
436
- documentId: string;
437
- parentCommentId: string;
438
- }) => any;
439
- showAddComment: (superdoc: any) => void;
440
- addComment: ({ superdoc, comment }: {
441
- superdoc: any;
442
- }) => void;
443
- cancelComment: (superdoc: any) => void;
444
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
445
- commentId: any;
446
- superdoc: any;
447
- }) => void;
448
- removePendingComment: (superdoc: any) => void;
449
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
450
- comments: any[];
451
- documentId: string;
452
- }) => void;
453
- translateCommentsForExport: () => any[];
454
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
455
- handleTrackedChangeUpdate: ({ superdoc, params }: {
456
- superdoc: any;
457
- params: any;
458
- }) => void;
459
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getFloatingComments">, Pick<{
460
- COMMENT_EVENTS: Readonly<{
461
- RESOLVED: "resolved";
462
- NEW: "new";
463
- ADD: "add";
464
- UPDATE: "update";
465
- DELETED: "deleted";
466
- PENDING: "pending";
467
- SELECTED: "selected";
468
- COMMENTS_LIST: "comments-list";
469
- CHANGE_ACCEPTED: "change-accepted";
470
- CHANGE_REJECTED: "change-rejected";
471
- }>;
472
- isDebugging: boolean;
473
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
474
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
475
- editingCommentId: import("vue").Ref<any, any>;
476
- activeComment: import("vue").Ref<any, any>;
477
- commentDialogs: import("vue").Ref<any[], any[]>;
478
- overlappingComments: import("vue").Ref<any[], any[]>;
479
- overlappedIds: Set<any>;
480
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
481
- pendingComment: import("vue").Ref<any, any>;
482
- currentCommentText: import("vue").Ref<string, string>;
483
- commentsList: import("vue").Ref<any[], any[]>;
484
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
485
- generalCommentIds: import("vue").Ref<any[], any[]>;
486
- editorCommentIds: import("vue").Ref<any[], any[]>;
487
- commentsParentElement: import("vue").Ref<any, any>;
488
- editorCommentPositions: import("vue").Ref<{}, {}>;
489
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
490
- floatingCommentsOffset: import("vue").Ref<number, number>;
491
- sortedConversations: import("vue").Ref<any[], any[]>;
492
- visibleConversations: import("vue").Ref<any[], any[]>;
493
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
494
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
495
- getConfig: import("vue").ComputedRef<{
496
- name: string;
497
- readOnly: boolean;
498
- allowResolve: boolean;
499
- showResolved: boolean;
500
- }>;
501
- documentsWithConverations: import("vue").ComputedRef<any>;
502
- getGroupedComments: import("vue").ComputedRef<{
503
- parentComments: any[];
504
- resolvedComments: any[];
505
- }>;
506
- getFloatingComments: import("vue").ComputedRef<any[]>;
507
- init: (config?: any) => void;
508
- getComment: (id: string) => any;
509
- setActiveComment: (id: string | undefined | null) => void;
510
- getCommentLocation: (selection: any, parent: any) => {
511
- top: any;
512
- left: any;
513
- };
514
- hasOverlapId: (id: any) => any;
515
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
516
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
517
- selection: any;
518
- documentId: string;
519
- parentCommentId: string;
520
- }) => any;
521
- showAddComment: (superdoc: any) => void;
522
- addComment: ({ superdoc, comment }: {
523
- superdoc: any;
524
- }) => void;
525
- cancelComment: (superdoc: any) => void;
526
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
527
- commentId: any;
528
- superdoc: any;
529
- }) => void;
530
- removePendingComment: (superdoc: any) => void;
531
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
532
- comments: any[];
533
- documentId: string;
534
- }) => void;
535
- translateCommentsForExport: () => any[];
536
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
537
- handleTrackedChangeUpdate: ({ superdoc, params }: {
538
- superdoc: any;
539
- params: any;
540
- }) => void;
541
- }, "setActiveComment" | "init" | "getComment" | "getCommentLocation" | "hasOverlapId" | "checkOverlaps" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "handleTrackedChangeUpdate">>;
48
+ }, any>, Pick<{
49
+ commentsStore: any;
542
50
  documents: import("vue").Ref<any[], any[]>;
543
51
  documentBounds: import("vue").Ref<any[], any[]>;
544
52
  pages: {};
@@ -584,254 +92,8 @@ export const useSuperdocStore: import("pinia").StoreDefinition<"superdoc", Pick<
584
92
  getPageBounds: (documentId: any, page: any) => {
585
93
  top: number;
586
94
  };
587
- }, "areDocumentsReady">, Pick<{
588
- commentsStore: import("pinia").Store<"comments", Pick<{
589
- COMMENT_EVENTS: Readonly<{
590
- RESOLVED: "resolved";
591
- NEW: "new";
592
- ADD: "add";
593
- UPDATE: "update";
594
- DELETED: "deleted";
595
- PENDING: "pending";
596
- SELECTED: "selected";
597
- COMMENTS_LIST: "comments-list";
598
- CHANGE_ACCEPTED: "change-accepted";
599
- CHANGE_REJECTED: "change-rejected";
600
- }>;
601
- isDebugging: boolean;
602
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
603
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
604
- editingCommentId: import("vue").Ref<any, any>;
605
- activeComment: import("vue").Ref<any, any>;
606
- commentDialogs: import("vue").Ref<any[], any[]>;
607
- overlappingComments: import("vue").Ref<any[], any[]>;
608
- overlappedIds: Set<any>;
609
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
610
- pendingComment: import("vue").Ref<any, any>;
611
- currentCommentText: import("vue").Ref<string, string>;
612
- commentsList: import("vue").Ref<any[], any[]>;
613
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
614
- generalCommentIds: import("vue").Ref<any[], any[]>;
615
- editorCommentIds: import("vue").Ref<any[], any[]>;
616
- commentsParentElement: import("vue").Ref<any, any>;
617
- editorCommentPositions: import("vue").Ref<{}, {}>;
618
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
619
- floatingCommentsOffset: import("vue").Ref<number, number>;
620
- sortedConversations: import("vue").Ref<any[], any[]>;
621
- visibleConversations: import("vue").Ref<any[], any[]>;
622
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
623
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
624
- getConfig: import("vue").ComputedRef<{
625
- name: string;
626
- readOnly: boolean;
627
- allowResolve: boolean;
628
- showResolved: boolean;
629
- }>;
630
- documentsWithConverations: import("vue").ComputedRef<any>;
631
- getGroupedComments: import("vue").ComputedRef<{
632
- parentComments: any[];
633
- resolvedComments: any[];
634
- }>;
635
- getFloatingComments: import("vue").ComputedRef<any[]>;
636
- init: (config?: any) => void;
637
- getComment: (id: string) => any;
638
- setActiveComment: (id: string | undefined | null) => void;
639
- getCommentLocation: (selection: any, parent: any) => {
640
- top: any;
641
- left: any;
642
- };
643
- hasOverlapId: (id: any) => any;
644
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
645
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
646
- selection: any;
647
- documentId: string;
648
- parentCommentId: string;
649
- }) => any;
650
- showAddComment: (superdoc: any) => void;
651
- addComment: ({ superdoc, comment }: {
652
- superdoc: any;
653
- }) => void;
654
- cancelComment: (superdoc: any) => void;
655
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
656
- commentId: any;
657
- superdoc: any;
658
- }) => void;
659
- removePendingComment: (superdoc: any) => void;
660
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
661
- comments: any[];
662
- documentId: string;
663
- }) => void;
664
- translateCommentsForExport: () => any[];
665
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
666
- handleTrackedChangeUpdate: ({ superdoc, params }: {
667
- superdoc: any;
668
- params: any;
669
- }) => void;
670
- }, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "commentsList" | "isCommentsListVisible" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "floatingCommentsOffset" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady">, Pick<{
671
- COMMENT_EVENTS: Readonly<{
672
- RESOLVED: "resolved";
673
- NEW: "new";
674
- ADD: "add";
675
- UPDATE: "update";
676
- DELETED: "deleted";
677
- PENDING: "pending";
678
- SELECTED: "selected";
679
- COMMENTS_LIST: "comments-list";
680
- CHANGE_ACCEPTED: "change-accepted";
681
- CHANGE_REJECTED: "change-rejected";
682
- }>;
683
- isDebugging: boolean;
684
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
685
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
686
- editingCommentId: import("vue").Ref<any, any>;
687
- activeComment: import("vue").Ref<any, any>;
688
- commentDialogs: import("vue").Ref<any[], any[]>;
689
- overlappingComments: import("vue").Ref<any[], any[]>;
690
- overlappedIds: Set<any>;
691
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
692
- pendingComment: import("vue").Ref<any, any>;
693
- currentCommentText: import("vue").Ref<string, string>;
694
- commentsList: import("vue").Ref<any[], any[]>;
695
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
696
- generalCommentIds: import("vue").Ref<any[], any[]>;
697
- editorCommentIds: import("vue").Ref<any[], any[]>;
698
- commentsParentElement: import("vue").Ref<any, any>;
699
- editorCommentPositions: import("vue").Ref<{}, {}>;
700
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
701
- floatingCommentsOffset: import("vue").Ref<number, number>;
702
- sortedConversations: import("vue").Ref<any[], any[]>;
703
- visibleConversations: import("vue").Ref<any[], any[]>;
704
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
705
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
706
- getConfig: import("vue").ComputedRef<{
707
- name: string;
708
- readOnly: boolean;
709
- allowResolve: boolean;
710
- showResolved: boolean;
711
- }>;
712
- documentsWithConverations: import("vue").ComputedRef<any>;
713
- getGroupedComments: import("vue").ComputedRef<{
714
- parentComments: any[];
715
- resolvedComments: any[];
716
- }>;
717
- getFloatingComments: import("vue").ComputedRef<any[]>;
718
- init: (config?: any) => void;
719
- getComment: (id: string) => any;
720
- setActiveComment: (id: string | undefined | null) => void;
721
- getCommentLocation: (selection: any, parent: any) => {
722
- top: any;
723
- left: any;
724
- };
725
- hasOverlapId: (id: any) => any;
726
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
727
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
728
- selection: any;
729
- documentId: string;
730
- parentCommentId: string;
731
- }) => any;
732
- showAddComment: (superdoc: any) => void;
733
- addComment: ({ superdoc, comment }: {
734
- superdoc: any;
735
- }) => void;
736
- cancelComment: (superdoc: any) => void;
737
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
738
- commentId: any;
739
- superdoc: any;
740
- }) => void;
741
- removePendingComment: (superdoc: any) => void;
742
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
743
- comments: any[];
744
- documentId: string;
745
- }) => void;
746
- translateCommentsForExport: () => any[];
747
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
748
- handleTrackedChangeUpdate: ({ superdoc, params }: {
749
- superdoc: any;
750
- params: any;
751
- }) => void;
752
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getFloatingComments">, Pick<{
753
- COMMENT_EVENTS: Readonly<{
754
- RESOLVED: "resolved";
755
- NEW: "new";
756
- ADD: "add";
757
- UPDATE: "update";
758
- DELETED: "deleted";
759
- PENDING: "pending";
760
- SELECTED: "selected";
761
- COMMENTS_LIST: "comments-list";
762
- CHANGE_ACCEPTED: "change-accepted";
763
- CHANGE_REJECTED: "change-rejected";
764
- }>;
765
- isDebugging: boolean;
766
- hasInitializedComments: import("vue").Ref<boolean, boolean>;
767
- hasSyncedCollaborationComments: import("vue").Ref<boolean, boolean>;
768
- editingCommentId: import("vue").Ref<any, any>;
769
- activeComment: import("vue").Ref<any, any>;
770
- commentDialogs: import("vue").Ref<any[], any[]>;
771
- overlappingComments: import("vue").Ref<any[], any[]>;
772
- overlappedIds: Set<any>;
773
- suppressInternalExternal: import("vue").Ref<boolean, boolean>;
774
- pendingComment: import("vue").Ref<any, any>;
775
- currentCommentText: import("vue").Ref<string, string>;
776
- commentsList: import("vue").Ref<any[], any[]>;
777
- isCommentsListVisible: import("vue").Ref<boolean, boolean>;
778
- generalCommentIds: import("vue").Ref<any[], any[]>;
779
- editorCommentIds: import("vue").Ref<any[], any[]>;
780
- commentsParentElement: import("vue").Ref<any, any>;
781
- editorCommentPositions: import("vue").Ref<{}, {}>;
782
- hasInitializedLocations: import("vue").Ref<boolean, boolean>;
783
- floatingCommentsOffset: import("vue").Ref<number, number>;
784
- sortedConversations: import("vue").Ref<any[], any[]>;
785
- visibleConversations: import("vue").Ref<any[], any[]>;
786
- skipSelectionUpdate: import("vue").Ref<boolean, boolean>;
787
- isFloatingCommentsReady: import("vue").Ref<boolean, boolean>;
788
- getConfig: import("vue").ComputedRef<{
789
- name: string;
790
- readOnly: boolean;
791
- allowResolve: boolean;
792
- showResolved: boolean;
793
- }>;
794
- documentsWithConverations: import("vue").ComputedRef<any>;
795
- getGroupedComments: import("vue").ComputedRef<{
796
- parentComments: any[];
797
- resolvedComments: any[];
798
- }>;
799
- getFloatingComments: import("vue").ComputedRef<any[]>;
800
- init: (config?: any) => void;
801
- getComment: (id: string) => any;
802
- setActiveComment: (id: string | undefined | null) => void;
803
- getCommentLocation: (selection: any, parent: any) => {
804
- top: any;
805
- left: any;
806
- };
807
- hasOverlapId: (id: any) => any;
808
- checkOverlaps: (currentElement: any, dialog: any, doc: any) => void;
809
- getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
810
- selection: any;
811
- documentId: string;
812
- parentCommentId: string;
813
- }) => any;
814
- showAddComment: (superdoc: any) => void;
815
- addComment: ({ superdoc, comment }: {
816
- superdoc: any;
817
- }) => void;
818
- cancelComment: (superdoc: any) => void;
819
- deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
820
- commentId: any;
821
- superdoc: any;
822
- }) => void;
823
- removePendingComment: (superdoc: any) => void;
824
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId }: {
825
- comments: any[];
826
- documentId: string;
827
- }) => void;
828
- translateCommentsForExport: () => any[];
829
- handleEditorLocationsUpdate: (allCommentPositions: any, activeThreadId: any) => void;
830
- handleTrackedChangeUpdate: ({ superdoc, params }: {
831
- superdoc: any;
832
- params: any;
833
- }) => void;
834
- }, "setActiveComment" | "init" | "getComment" | "getCommentLocation" | "hasOverlapId" | "checkOverlaps" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "handleTrackedChangeUpdate">>;
95
+ }, any>, Pick<{
96
+ commentsStore: any;
835
97
  documents: import("vue").Ref<any[], any[]>;
836
98
  documentBounds: import("vue").Ref<any[], any[]>;
837
99
  pages: {};
@@ -877,5 +139,5 @@ export const useSuperdocStore: import("pinia").StoreDefinition<"superdoc", Pick<
877
139
  getPageBounds: (documentId: any, page: any) => {
878
140
  top: number;
879
141
  };
880
- }, "reset" | "init" | "handlePageReady" | "getDocument" | "getPageBounds">>;
142
+ }, any>>;
881
143
  //# sourceMappingURL=superdoc-store.d.ts.map