superdoc 2.28.0 → 2.29.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-D4lVeOJu.es.js} +3 -2
- package/dist/chunks/{PdfViewer-Cg072l5d.cjs → PdfViewer-boENOZdF.cjs} +3 -2
- package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-0OA8hCNb.cjs} +201 -23
- package/dist/chunks/{create-super-doc-ui-BbjHD1ul.es.js → create-super-doc-ui-Duf65d0b.es.js} +180 -20
- package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
- package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +3 -3
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/lists/lists.d.ts +79 -79
- package/dist/document-api/src/write/write.d.ts +10 -9
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +5 -3
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +1670 -24
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +21 -8
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +7 -0
- package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +27 -9
- package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
- package/dist/superdoc/src/composables/use-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
- package/dist/superdoc/src/core/SuperDoc.d.ts +1 -1
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +1 -0
- package/dist/superdoc/src/core/types/index.d.ts +9 -4
- package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +181 -36
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
- package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +101 -16
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +82 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +122 -33
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +0 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +151 -28
- package/dist/superdoc/src/stores/superdoc-store.d.ts +454 -85
- package/dist/superdoc.cjs +319 -401
- package/dist/superdoc.es.js +247 -330
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +0 -104
|
@@ -101,23 +101,43 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
101
101
|
};
|
|
102
102
|
hasOverlapId: (id: any) => any;
|
|
103
103
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
104
|
-
selection
|
|
105
|
-
documentId
|
|
106
|
-
parentCommentId
|
|
107
|
-
}) =>
|
|
104
|
+
selection?: Object | undefined;
|
|
105
|
+
documentId?: string | null | undefined;
|
|
106
|
+
parentCommentId?: string | null | undefined;
|
|
107
|
+
}) => ReturnType<typeof useComment>;
|
|
108
108
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
109
109
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
110
110
|
superdoc: any;
|
|
111
111
|
comment: any;
|
|
112
112
|
skipEditorUpdate?: boolean | undefined;
|
|
113
113
|
broadcastChanges?: boolean | undefined;
|
|
114
|
-
}) =>
|
|
114
|
+
}) => {
|
|
115
|
+
ok: boolean;
|
|
116
|
+
reason?: string;
|
|
117
|
+
detail?: string;
|
|
118
|
+
code?: string;
|
|
119
|
+
} | Promise<{
|
|
120
|
+
ok: boolean;
|
|
121
|
+
reason?: string;
|
|
122
|
+
detail?: string;
|
|
123
|
+
code?: string;
|
|
124
|
+
}>;
|
|
115
125
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
116
126
|
superdoc: any;
|
|
117
127
|
comment: any;
|
|
118
128
|
skipEditorUpdate?: boolean | undefined;
|
|
119
129
|
broadcastChanges?: boolean | undefined;
|
|
120
|
-
}) =>
|
|
130
|
+
}) => {
|
|
131
|
+
ok: boolean;
|
|
132
|
+
reason?: string;
|
|
133
|
+
detail?: string;
|
|
134
|
+
code?: string;
|
|
135
|
+
} | Promise<{
|
|
136
|
+
ok: boolean;
|
|
137
|
+
reason?: string;
|
|
138
|
+
detail?: string;
|
|
139
|
+
code?: string;
|
|
140
|
+
}>;
|
|
121
141
|
cancelComment: (superdoc: any) => void;
|
|
122
142
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
123
143
|
commentId: any;
|
|
@@ -154,8 +174,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
154
174
|
clearInstantSidebarAlignment: () => void;
|
|
155
175
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
156
176
|
superdoc: Object;
|
|
157
|
-
|
|
158
|
-
|
|
177
|
+
comment: Object;
|
|
178
|
+
decision: string;
|
|
179
|
+
}) => {
|
|
180
|
+
ok: boolean;
|
|
181
|
+
success?: boolean;
|
|
182
|
+
reason?: string;
|
|
183
|
+
} | Promise<{
|
|
184
|
+
ok: boolean;
|
|
185
|
+
success?: boolean;
|
|
186
|
+
reason?: string;
|
|
187
|
+
}>;
|
|
159
188
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
160
189
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
161
190
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
@@ -186,7 +215,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
186
215
|
};
|
|
187
216
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
188
217
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
189
|
-
|
|
218
|
+
superdoc?: Object | undefined;
|
|
219
|
+
parentCommentId?: string | null | undefined;
|
|
220
|
+
text?: string | undefined;
|
|
221
|
+
mentions?: {
|
|
222
|
+
name?: string | null;
|
|
223
|
+
email?: string | null;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
trackedChangeTarget?: {
|
|
226
|
+
kind: "trackedChange";
|
|
227
|
+
trackedChangeId: string;
|
|
228
|
+
story?: unknown;
|
|
229
|
+
side?: "source" | "destination";
|
|
230
|
+
} | undefined;
|
|
190
231
|
}) => Promise<any>;
|
|
191
232
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
192
233
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -236,7 +277,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
236
277
|
liveAnchorKeys?: null | undefined;
|
|
237
278
|
}) => any;
|
|
238
279
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
239
|
-
}, "
|
|
280
|
+
}, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
|
|
240
281
|
COMMENT_EVENTS: {
|
|
241
282
|
readonly RESOLVED: "resolved";
|
|
242
283
|
readonly NEW: "new";
|
|
@@ -339,23 +380,43 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
339
380
|
};
|
|
340
381
|
hasOverlapId: (id: any) => any;
|
|
341
382
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
342
|
-
selection
|
|
343
|
-
documentId
|
|
344
|
-
parentCommentId
|
|
345
|
-
}) =>
|
|
383
|
+
selection?: Object | undefined;
|
|
384
|
+
documentId?: string | null | undefined;
|
|
385
|
+
parentCommentId?: string | null | undefined;
|
|
386
|
+
}) => ReturnType<typeof useComment>;
|
|
346
387
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
347
388
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
348
389
|
superdoc: any;
|
|
349
390
|
comment: any;
|
|
350
391
|
skipEditorUpdate?: boolean | undefined;
|
|
351
392
|
broadcastChanges?: boolean | undefined;
|
|
352
|
-
}) =>
|
|
393
|
+
}) => {
|
|
394
|
+
ok: boolean;
|
|
395
|
+
reason?: string;
|
|
396
|
+
detail?: string;
|
|
397
|
+
code?: string;
|
|
398
|
+
} | Promise<{
|
|
399
|
+
ok: boolean;
|
|
400
|
+
reason?: string;
|
|
401
|
+
detail?: string;
|
|
402
|
+
code?: string;
|
|
403
|
+
}>;
|
|
353
404
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
354
405
|
superdoc: any;
|
|
355
406
|
comment: any;
|
|
356
407
|
skipEditorUpdate?: boolean | undefined;
|
|
357
408
|
broadcastChanges?: boolean | undefined;
|
|
358
|
-
}) =>
|
|
409
|
+
}) => {
|
|
410
|
+
ok: boolean;
|
|
411
|
+
reason?: string;
|
|
412
|
+
detail?: string;
|
|
413
|
+
code?: string;
|
|
414
|
+
} | Promise<{
|
|
415
|
+
ok: boolean;
|
|
416
|
+
reason?: string;
|
|
417
|
+
detail?: string;
|
|
418
|
+
code?: string;
|
|
419
|
+
}>;
|
|
359
420
|
cancelComment: (superdoc: any) => void;
|
|
360
421
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
361
422
|
commentId: any;
|
|
@@ -392,8 +453,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
392
453
|
clearInstantSidebarAlignment: () => void;
|
|
393
454
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
394
455
|
superdoc: Object;
|
|
395
|
-
|
|
396
|
-
|
|
456
|
+
comment: Object;
|
|
457
|
+
decision: string;
|
|
458
|
+
}) => {
|
|
459
|
+
ok: boolean;
|
|
460
|
+
success?: boolean;
|
|
461
|
+
reason?: string;
|
|
462
|
+
} | Promise<{
|
|
463
|
+
ok: boolean;
|
|
464
|
+
success?: boolean;
|
|
465
|
+
reason?: string;
|
|
466
|
+
}>;
|
|
397
467
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
398
468
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
399
469
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
@@ -424,7 +494,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
424
494
|
};
|
|
425
495
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
426
496
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
427
|
-
|
|
497
|
+
superdoc?: Object | undefined;
|
|
498
|
+
parentCommentId?: string | null | undefined;
|
|
499
|
+
text?: string | undefined;
|
|
500
|
+
mentions?: {
|
|
501
|
+
name?: string | null;
|
|
502
|
+
email?: string | null;
|
|
503
|
+
}[] | undefined;
|
|
504
|
+
trackedChangeTarget?: {
|
|
505
|
+
kind: "trackedChange";
|
|
506
|
+
trackedChangeId: string;
|
|
507
|
+
story?: unknown;
|
|
508
|
+
side?: "source" | "destination";
|
|
509
|
+
} | undefined;
|
|
428
510
|
}) => Promise<any>;
|
|
429
511
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
430
512
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -577,23 +659,43 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
577
659
|
};
|
|
578
660
|
hasOverlapId: (id: any) => any;
|
|
579
661
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
580
|
-
selection
|
|
581
|
-
documentId
|
|
582
|
-
parentCommentId
|
|
583
|
-
}) =>
|
|
662
|
+
selection?: Object | undefined;
|
|
663
|
+
documentId?: string | null | undefined;
|
|
664
|
+
parentCommentId?: string | null | undefined;
|
|
665
|
+
}) => ReturnType<typeof useComment>;
|
|
584
666
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
585
667
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
586
668
|
superdoc: any;
|
|
587
669
|
comment: any;
|
|
588
670
|
skipEditorUpdate?: boolean | undefined;
|
|
589
671
|
broadcastChanges?: boolean | undefined;
|
|
590
|
-
}) =>
|
|
672
|
+
}) => {
|
|
673
|
+
ok: boolean;
|
|
674
|
+
reason?: string;
|
|
675
|
+
detail?: string;
|
|
676
|
+
code?: string;
|
|
677
|
+
} | Promise<{
|
|
678
|
+
ok: boolean;
|
|
679
|
+
reason?: string;
|
|
680
|
+
detail?: string;
|
|
681
|
+
code?: string;
|
|
682
|
+
}>;
|
|
591
683
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
592
684
|
superdoc: any;
|
|
593
685
|
comment: any;
|
|
594
686
|
skipEditorUpdate?: boolean | undefined;
|
|
595
687
|
broadcastChanges?: boolean | undefined;
|
|
596
|
-
}) =>
|
|
688
|
+
}) => {
|
|
689
|
+
ok: boolean;
|
|
690
|
+
reason?: string;
|
|
691
|
+
detail?: string;
|
|
692
|
+
code?: string;
|
|
693
|
+
} | Promise<{
|
|
694
|
+
ok: boolean;
|
|
695
|
+
reason?: string;
|
|
696
|
+
detail?: string;
|
|
697
|
+
code?: string;
|
|
698
|
+
}>;
|
|
597
699
|
cancelComment: (superdoc: any) => void;
|
|
598
700
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
599
701
|
commentId: any;
|
|
@@ -630,8 +732,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
630
732
|
clearInstantSidebarAlignment: () => void;
|
|
631
733
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
632
734
|
superdoc: Object;
|
|
633
|
-
|
|
634
|
-
|
|
735
|
+
comment: Object;
|
|
736
|
+
decision: string;
|
|
737
|
+
}) => {
|
|
738
|
+
ok: boolean;
|
|
739
|
+
success?: boolean;
|
|
740
|
+
reason?: string;
|
|
741
|
+
} | Promise<{
|
|
742
|
+
ok: boolean;
|
|
743
|
+
success?: boolean;
|
|
744
|
+
reason?: string;
|
|
745
|
+
}>;
|
|
635
746
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
636
747
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
637
748
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
@@ -662,7 +773,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
662
773
|
};
|
|
663
774
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
664
775
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
665
|
-
|
|
776
|
+
superdoc?: Object | undefined;
|
|
777
|
+
parentCommentId?: string | null | undefined;
|
|
778
|
+
text?: string | undefined;
|
|
779
|
+
mentions?: {
|
|
780
|
+
name?: string | null;
|
|
781
|
+
email?: string | null;
|
|
782
|
+
}[] | undefined;
|
|
783
|
+
trackedChangeTarget?: {
|
|
784
|
+
kind: "trackedChange";
|
|
785
|
+
trackedChangeId: string;
|
|
786
|
+
story?: unknown;
|
|
787
|
+
side?: "source" | "destination";
|
|
788
|
+
} | undefined;
|
|
666
789
|
}) => Promise<any>;
|
|
667
790
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
668
791
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|