superdoc 2.0.0-next.24 → 2.0.0-next.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -2
- package/dist/chunks/{create-super-doc-ui-BMpP-iB6.es.js → create-super-doc-ui-CBs8xQUw.es.js} +7 -2
- package/dist/chunks/{create-super-doc-ui-DbFtp705.cjs → create-super-doc-ui-CHZKlLiH.cjs} +7 -2
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/types/blocks.types.d.ts +3 -1
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +8 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +104 -98
- package/dist/style.layered.css +104 -98
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +1 -0
- package/dist/superdoc/src/core/types/index.d.ts +4 -0
- package/dist/superdoc/src/stores/comments-store.d.ts +37 -7
- package/dist/superdoc/src/stores/superdoc-store.d.ts +111 -21
- package/dist/superdoc.cjs +305 -58
- package/dist/superdoc.es.js +305 -58
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +37 -37
- package/package.json +2 -2
|
@@ -125,7 +125,16 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
125
125
|
reason?: undefined;
|
|
126
126
|
};
|
|
127
127
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
128
|
-
superdoc:
|
|
128
|
+
superdoc: any;
|
|
129
|
+
comment: any;
|
|
130
|
+
skipEditorUpdate?: boolean | undefined;
|
|
131
|
+
broadcastChanges?: boolean | undefined;
|
|
132
|
+
}) => void;
|
|
133
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
134
|
+
superdoc: any;
|
|
135
|
+
comment: any;
|
|
136
|
+
skipEditorUpdate?: boolean | undefined;
|
|
137
|
+
broadcastChanges?: boolean | undefined;
|
|
129
138
|
}) => void;
|
|
130
139
|
cancelComment: (superdoc: any) => void;
|
|
131
140
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -133,6 +142,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
133
142
|
superdoc: any;
|
|
134
143
|
}) => Promise<any>;
|
|
135
144
|
removePendingComment: (superdoc: any) => void;
|
|
145
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
136
146
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
137
147
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
138
148
|
comments: any[];
|
|
@@ -142,7 +152,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
142
152
|
translateCommentsForExport: () => any[];
|
|
143
153
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
144
154
|
clearEditorCommentPositions: () => void;
|
|
145
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
155
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
146
156
|
superdoc: Object;
|
|
147
157
|
params: Object;
|
|
148
158
|
}) => void;
|
|
@@ -338,7 +348,16 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
338
348
|
reason?: undefined;
|
|
339
349
|
};
|
|
340
350
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
341
|
-
superdoc:
|
|
351
|
+
superdoc: any;
|
|
352
|
+
comment: any;
|
|
353
|
+
skipEditorUpdate?: boolean | undefined;
|
|
354
|
+
broadcastChanges?: boolean | undefined;
|
|
355
|
+
}) => void;
|
|
356
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
357
|
+
superdoc: any;
|
|
358
|
+
comment: any;
|
|
359
|
+
skipEditorUpdate?: boolean | undefined;
|
|
360
|
+
broadcastChanges?: boolean | undefined;
|
|
342
361
|
}) => void;
|
|
343
362
|
cancelComment: (superdoc: any) => void;
|
|
344
363
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -346,6 +365,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
346
365
|
superdoc: any;
|
|
347
366
|
}) => Promise<any>;
|
|
348
367
|
removePendingComment: (superdoc: any) => void;
|
|
368
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
349
369
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
350
370
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
351
371
|
comments: any[];
|
|
@@ -355,7 +375,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
355
375
|
translateCommentsForExport: () => any[];
|
|
356
376
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
357
377
|
clearEditorCommentPositions: () => void;
|
|
358
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
378
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
359
379
|
superdoc: Object;
|
|
360
380
|
params: Object;
|
|
361
381
|
}) => void;
|
|
@@ -551,7 +571,16 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
551
571
|
reason?: undefined;
|
|
552
572
|
};
|
|
553
573
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
554
|
-
superdoc:
|
|
574
|
+
superdoc: any;
|
|
575
|
+
comment: any;
|
|
576
|
+
skipEditorUpdate?: boolean | undefined;
|
|
577
|
+
broadcastChanges?: boolean | undefined;
|
|
578
|
+
}) => void;
|
|
579
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
580
|
+
superdoc: any;
|
|
581
|
+
comment: any;
|
|
582
|
+
skipEditorUpdate?: boolean | undefined;
|
|
583
|
+
broadcastChanges?: boolean | undefined;
|
|
555
584
|
}) => void;
|
|
556
585
|
cancelComment: (superdoc: any) => void;
|
|
557
586
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -559,6 +588,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
559
588
|
superdoc: any;
|
|
560
589
|
}) => Promise<any>;
|
|
561
590
|
removePendingComment: (superdoc: any) => void;
|
|
591
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
562
592
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
563
593
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
564
594
|
comments: any[];
|
|
@@ -568,7 +598,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
568
598
|
translateCommentsForExport: () => any[];
|
|
569
599
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
570
600
|
clearEditorCommentPositions: () => void;
|
|
571
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
601
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
572
602
|
superdoc: Object;
|
|
573
603
|
params: Object;
|
|
574
604
|
}) => void;
|
|
@@ -637,4 +667,4 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
637
667
|
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
638
668
|
pruneStale?: boolean | undefined;
|
|
639
669
|
}) => any;
|
|
640
|
-
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
670
|
+
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
@@ -126,7 +126,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
126
126
|
reason?: undefined;
|
|
127
127
|
};
|
|
128
128
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
129
|
-
superdoc:
|
|
129
|
+
superdoc: any;
|
|
130
|
+
comment: any;
|
|
131
|
+
skipEditorUpdate?: boolean | undefined;
|
|
132
|
+
broadcastChanges?: boolean | undefined;
|
|
133
|
+
}) => void;
|
|
134
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
135
|
+
superdoc: any;
|
|
136
|
+
comment: any;
|
|
137
|
+
skipEditorUpdate?: boolean | undefined;
|
|
138
|
+
broadcastChanges?: boolean | undefined;
|
|
130
139
|
}) => void;
|
|
131
140
|
cancelComment: (superdoc: any) => void;
|
|
132
141
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -134,6 +143,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
134
143
|
superdoc: any;
|
|
135
144
|
}) => Promise<any>;
|
|
136
145
|
removePendingComment: (superdoc: any) => void;
|
|
146
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
137
147
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
138
148
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
139
149
|
comments: any[];
|
|
@@ -143,7 +153,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
143
153
|
translateCommentsForExport: () => any[];
|
|
144
154
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
145
155
|
clearEditorCommentPositions: () => void;
|
|
146
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
156
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
147
157
|
superdoc: Object;
|
|
148
158
|
params: Object;
|
|
149
159
|
}) => void;
|
|
@@ -339,7 +349,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
339
349
|
reason?: undefined;
|
|
340
350
|
};
|
|
341
351
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
342
|
-
superdoc:
|
|
352
|
+
superdoc: any;
|
|
353
|
+
comment: any;
|
|
354
|
+
skipEditorUpdate?: boolean | undefined;
|
|
355
|
+
broadcastChanges?: boolean | undefined;
|
|
356
|
+
}) => void;
|
|
357
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
358
|
+
superdoc: any;
|
|
359
|
+
comment: any;
|
|
360
|
+
skipEditorUpdate?: boolean | undefined;
|
|
361
|
+
broadcastChanges?: boolean | undefined;
|
|
343
362
|
}) => void;
|
|
344
363
|
cancelComment: (superdoc: any) => void;
|
|
345
364
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -347,6 +366,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
347
366
|
superdoc: any;
|
|
348
367
|
}) => Promise<any>;
|
|
349
368
|
removePendingComment: (superdoc: any) => void;
|
|
369
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
350
370
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
351
371
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
352
372
|
comments: any[];
|
|
@@ -356,7 +376,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
356
376
|
translateCommentsForExport: () => any[];
|
|
357
377
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
358
378
|
clearEditorCommentPositions: () => void;
|
|
359
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
379
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
360
380
|
superdoc: Object;
|
|
361
381
|
params: Object;
|
|
362
382
|
}) => void;
|
|
@@ -552,7 +572,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
552
572
|
reason?: undefined;
|
|
553
573
|
};
|
|
554
574
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
555
|
-
superdoc:
|
|
575
|
+
superdoc: any;
|
|
576
|
+
comment: any;
|
|
577
|
+
skipEditorUpdate?: boolean | undefined;
|
|
578
|
+
broadcastChanges?: boolean | undefined;
|
|
579
|
+
}) => void;
|
|
580
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
581
|
+
superdoc: any;
|
|
582
|
+
comment: any;
|
|
583
|
+
skipEditorUpdate?: boolean | undefined;
|
|
584
|
+
broadcastChanges?: boolean | undefined;
|
|
556
585
|
}) => void;
|
|
557
586
|
cancelComment: (superdoc: any) => void;
|
|
558
587
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -560,6 +589,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
560
589
|
superdoc: any;
|
|
561
590
|
}) => Promise<any>;
|
|
562
591
|
removePendingComment: (superdoc: any) => void;
|
|
592
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
563
593
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
564
594
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
565
595
|
comments: any[];
|
|
@@ -569,7 +599,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
569
599
|
translateCommentsForExport: () => any[];
|
|
570
600
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
571
601
|
clearEditorCommentPositions: () => void;
|
|
572
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
602
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
573
603
|
superdoc: Object;
|
|
574
604
|
params: Object;
|
|
575
605
|
}) => void;
|
|
@@ -638,7 +668,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
638
668
|
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
639
669
|
pruneStale?: boolean | undefined;
|
|
640
670
|
}) => any;
|
|
641
|
-
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
671
|
+
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
642
672
|
documents: import('vue').Ref<any[], any[]>;
|
|
643
673
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
644
674
|
pages: {};
|
|
@@ -817,7 +847,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
817
847
|
reason?: undefined;
|
|
818
848
|
};
|
|
819
849
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
820
|
-
superdoc:
|
|
850
|
+
superdoc: any;
|
|
851
|
+
comment: any;
|
|
852
|
+
skipEditorUpdate?: boolean | undefined;
|
|
853
|
+
broadcastChanges?: boolean | undefined;
|
|
854
|
+
}) => void;
|
|
855
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
856
|
+
superdoc: any;
|
|
857
|
+
comment: any;
|
|
858
|
+
skipEditorUpdate?: boolean | undefined;
|
|
859
|
+
broadcastChanges?: boolean | undefined;
|
|
821
860
|
}) => void;
|
|
822
861
|
cancelComment: (superdoc: any) => void;
|
|
823
862
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -825,6 +864,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
825
864
|
superdoc: any;
|
|
826
865
|
}) => Promise<any>;
|
|
827
866
|
removePendingComment: (superdoc: any) => void;
|
|
867
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
828
868
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
829
869
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
830
870
|
comments: any[];
|
|
@@ -834,7 +874,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
834
874
|
translateCommentsForExport: () => any[];
|
|
835
875
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
836
876
|
clearEditorCommentPositions: () => void;
|
|
837
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
877
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
838
878
|
superdoc: Object;
|
|
839
879
|
params: Object;
|
|
840
880
|
}) => void;
|
|
@@ -1030,7 +1070,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1030
1070
|
reason?: undefined;
|
|
1031
1071
|
};
|
|
1032
1072
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1033
|
-
superdoc:
|
|
1073
|
+
superdoc: any;
|
|
1074
|
+
comment: any;
|
|
1075
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1076
|
+
broadcastChanges?: boolean | undefined;
|
|
1077
|
+
}) => void;
|
|
1078
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1079
|
+
superdoc: any;
|
|
1080
|
+
comment: any;
|
|
1081
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1082
|
+
broadcastChanges?: boolean | undefined;
|
|
1034
1083
|
}) => void;
|
|
1035
1084
|
cancelComment: (superdoc: any) => void;
|
|
1036
1085
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -1038,6 +1087,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1038
1087
|
superdoc: any;
|
|
1039
1088
|
}) => Promise<any>;
|
|
1040
1089
|
removePendingComment: (superdoc: any) => void;
|
|
1090
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1041
1091
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1042
1092
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1043
1093
|
comments: any[];
|
|
@@ -1047,7 +1097,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1047
1097
|
translateCommentsForExport: () => any[];
|
|
1048
1098
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
1049
1099
|
clearEditorCommentPositions: () => void;
|
|
1050
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
1100
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1051
1101
|
superdoc: Object;
|
|
1052
1102
|
params: Object;
|
|
1053
1103
|
}) => void;
|
|
@@ -1243,7 +1293,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1243
1293
|
reason?: undefined;
|
|
1244
1294
|
};
|
|
1245
1295
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1246
|
-
superdoc:
|
|
1296
|
+
superdoc: any;
|
|
1297
|
+
comment: any;
|
|
1298
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1299
|
+
broadcastChanges?: boolean | undefined;
|
|
1300
|
+
}) => void;
|
|
1301
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1302
|
+
superdoc: any;
|
|
1303
|
+
comment: any;
|
|
1304
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1305
|
+
broadcastChanges?: boolean | undefined;
|
|
1247
1306
|
}) => void;
|
|
1248
1307
|
cancelComment: (superdoc: any) => void;
|
|
1249
1308
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -1251,6 +1310,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1251
1310
|
superdoc: any;
|
|
1252
1311
|
}) => Promise<any>;
|
|
1253
1312
|
removePendingComment: (superdoc: any) => void;
|
|
1313
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1254
1314
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1255
1315
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1256
1316
|
comments: any[];
|
|
@@ -1260,7 +1320,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1260
1320
|
translateCommentsForExport: () => any[];
|
|
1261
1321
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
1262
1322
|
clearEditorCommentPositions: () => void;
|
|
1263
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
1323
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1264
1324
|
superdoc: Object;
|
|
1265
1325
|
params: Object;
|
|
1266
1326
|
}) => void;
|
|
@@ -1329,7 +1389,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1329
1389
|
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
1330
1390
|
pruneStale?: boolean | undefined;
|
|
1331
1391
|
}) => any;
|
|
1332
|
-
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
1392
|
+
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
1333
1393
|
documents: import('vue').Ref<any[], any[]>;
|
|
1334
1394
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
1335
1395
|
pages: {};
|
|
@@ -1508,7 +1568,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1508
1568
|
reason?: undefined;
|
|
1509
1569
|
};
|
|
1510
1570
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1511
|
-
superdoc:
|
|
1571
|
+
superdoc: any;
|
|
1572
|
+
comment: any;
|
|
1573
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1574
|
+
broadcastChanges?: boolean | undefined;
|
|
1575
|
+
}) => void;
|
|
1576
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1577
|
+
superdoc: any;
|
|
1578
|
+
comment: any;
|
|
1579
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1580
|
+
broadcastChanges?: boolean | undefined;
|
|
1512
1581
|
}) => void;
|
|
1513
1582
|
cancelComment: (superdoc: any) => void;
|
|
1514
1583
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -1516,6 +1585,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1516
1585
|
superdoc: any;
|
|
1517
1586
|
}) => Promise<any>;
|
|
1518
1587
|
removePendingComment: (superdoc: any) => void;
|
|
1588
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1519
1589
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1520
1590
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1521
1591
|
comments: any[];
|
|
@@ -1525,7 +1595,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1525
1595
|
translateCommentsForExport: () => any[];
|
|
1526
1596
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
1527
1597
|
clearEditorCommentPositions: () => void;
|
|
1528
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
1598
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1529
1599
|
superdoc: Object;
|
|
1530
1600
|
params: Object;
|
|
1531
1601
|
}) => void;
|
|
@@ -1721,7 +1791,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1721
1791
|
reason?: undefined;
|
|
1722
1792
|
};
|
|
1723
1793
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1724
|
-
superdoc:
|
|
1794
|
+
superdoc: any;
|
|
1795
|
+
comment: any;
|
|
1796
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1797
|
+
broadcastChanges?: boolean | undefined;
|
|
1798
|
+
}) => void;
|
|
1799
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1800
|
+
superdoc: any;
|
|
1801
|
+
comment: any;
|
|
1802
|
+
skipEditorUpdate?: boolean | undefined;
|
|
1803
|
+
broadcastChanges?: boolean | undefined;
|
|
1725
1804
|
}) => void;
|
|
1726
1805
|
cancelComment: (superdoc: any) => void;
|
|
1727
1806
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -1729,6 +1808,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1729
1808
|
superdoc: any;
|
|
1730
1809
|
}) => Promise<any>;
|
|
1731
1810
|
removePendingComment: (superdoc: any) => void;
|
|
1811
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1732
1812
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1733
1813
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1734
1814
|
comments: any[];
|
|
@@ -1738,7 +1818,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1738
1818
|
translateCommentsForExport: () => any[];
|
|
1739
1819
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
1740
1820
|
clearEditorCommentPositions: () => void;
|
|
1741
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
1821
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1742
1822
|
superdoc: Object;
|
|
1743
1823
|
params: Object;
|
|
1744
1824
|
}) => void;
|
|
@@ -1934,7 +2014,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1934
2014
|
reason?: undefined;
|
|
1935
2015
|
};
|
|
1936
2016
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
1937
|
-
superdoc:
|
|
2017
|
+
superdoc: any;
|
|
2018
|
+
comment: any;
|
|
2019
|
+
skipEditorUpdate?: boolean | undefined;
|
|
2020
|
+
broadcastChanges?: boolean | undefined;
|
|
2021
|
+
}) => void;
|
|
2022
|
+
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
2023
|
+
superdoc: any;
|
|
2024
|
+
comment: any;
|
|
2025
|
+
skipEditorUpdate?: boolean | undefined;
|
|
2026
|
+
broadcastChanges?: boolean | undefined;
|
|
1938
2027
|
}) => void;
|
|
1939
2028
|
cancelComment: (superdoc: any) => void;
|
|
1940
2029
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
@@ -1942,6 +2031,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1942
2031
|
superdoc: any;
|
|
1943
2032
|
}) => Promise<any>;
|
|
1944
2033
|
removePendingComment: (superdoc: any) => void;
|
|
2034
|
+
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1945
2035
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1946
2036
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1947
2037
|
comments: any[];
|
|
@@ -1951,7 +2041,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1951
2041
|
translateCommentsForExport: () => any[];
|
|
1952
2042
|
handleEditorLocationsUpdate: (allCommentPositions: any) => void;
|
|
1953
2043
|
clearEditorCommentPositions: () => void;
|
|
1954
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges }: {
|
|
2044
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1955
2045
|
superdoc: Object;
|
|
1956
2046
|
params: Object;
|
|
1957
2047
|
}) => void;
|
|
@@ -2020,7 +2110,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2020
2110
|
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
2021
2111
|
pruneStale?: boolean | undefined;
|
|
2022
2112
|
}) => any;
|
|
2023
|
-
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
2113
|
+
}, "getCommentAliasIds" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
|
|
2024
2114
|
documents: import('vue').Ref<any[], any[]>;
|
|
2025
2115
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
2026
2116
|
pages: {};
|