superdoc 2.28.0-next.8 → 2.28.0

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 (64) hide show
  1. package/dist/chunks/{FindReplaceSurface-8V8AjgR4.cjs → FindReplaceSurface-BRs3JrCq.cjs} +1 -1
  2. package/dist/chunks/{FindReplaceSurface-RUiTFDt3.es.js → FindReplaceSurface-Dm043CZP.es.js} +1 -1
  3. package/dist/chunks/{PasswordPromptSurface-B5DHV6qr.cjs → PasswordPromptSurface-BpqP4pUa.cjs} +1 -1
  4. package/dist/chunks/{PasswordPromptSurface-BDpxqdzp.es.js → PasswordPromptSurface-DGjmN7A-.es.js} +1 -1
  5. package/dist/chunks/{PdfViewer-omriDChK.cjs → PdfViewer-Cg072l5d.cjs} +1 -1
  6. package/dist/chunks/{PdfViewer-DjdsIh6n.es.js → PdfViewer-JHXZQZ9x.es.js} +1 -1
  7. package/dist/chunks/{_plugin-vue_export-helper-BUdjGKyl.cjs → _plugin-vue_export-helper-6MBoygIY.cjs} +9 -0
  8. package/dist/chunks/{_plugin-vue_export-helper-7ZiLY07t.es.js → _plugin-vue_export-helper-CsJQtMvr.es.js} +4 -1
  9. package/dist/chunks/{create-super-doc-ui-C4Ka5Ph3.es.js → create-super-doc-ui-BbjHD1ul.es.js} +184 -28
  10. package/dist/chunks/{create-super-doc-ui-B4c55pFy.cjs → create-super-doc-ui-BfgYblyI.cjs} +195 -27
  11. package/dist/collaboration-upgrade-engine.cjs +1 -1
  12. package/dist/collaboration-upgrade-engine.es.js +1 -1
  13. package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
  14. package/dist/document-api/src/lists/lists.types.d.ts +1 -0
  15. package/dist/document-api/src/sections/sections.types.d.ts +5 -1
  16. package/dist/document-api/src/types/clipboard.d.ts +5 -1
  17. package/dist/document-api/src/types/receipt.d.ts +2 -1
  18. package/dist/layout-engine/contracts/src/index.d.ts +5 -1
  19. package/dist/layout-engine/contracts/src/run-helpers.d.ts +1 -0
  20. package/dist/layout-engine/layout-bridge/src/index.d.ts +1 -0
  21. package/dist/layout-engine/layout-bridge/src/place-inline-drawings.d.ts +9 -0
  22. package/dist/layout-engine/layout-engine/src/layout-drawing.d.ts +2 -1
  23. package/dist/layout-engine/layout-engine/src/paginator.d.ts +1 -0
  24. package/dist/layout-engine/style-engine/src/ooxml/index.d.ts +1 -1
  25. package/dist/public/ui-react.cjs +1 -1
  26. package/dist/public/ui-react.es.js +1 -1
  27. package/dist/public/ui-vue.cjs +1 -1
  28. package/dist/public/ui-vue.es.js +1 -1
  29. package/dist/public/ui.cjs +3 -2
  30. package/dist/public/ui.es.js +3 -2
  31. package/dist/shared/font-system/src/resolver.d.ts +3 -3
  32. package/dist/style.css +1 -1
  33. package/dist/style.layered.css +1 -1
  34. package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +11 -0
  35. package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +4 -0
  36. package/dist/superdoc/src/composables/use-high-contrast-mode.d.ts +8 -4
  37. package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +7 -0
  38. package/dist/superdoc/src/core/SuperDoc.d.ts +1 -5
  39. package/dist/superdoc/src/core/collaboration/helpers.d.ts +0 -5
  40. package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +2 -1
  41. package/dist/superdoc/src/core/create-app.d.ts +2 -6
  42. package/dist/superdoc/src/core/editor-runtime/types.d.ts +2 -0
  43. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -0
  44. package/dist/superdoc/src/core/types/index.d.ts +14 -0
  45. package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +1 -0
  46. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +104 -84
  47. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +2 -0
  48. package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +5 -0
  49. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -48
  50. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +4 -1
  51. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +16 -0
  52. package/dist/superdoc/src/public/ui/types.d.ts +39 -1
  53. package/dist/superdoc/src/public/ui.d.cts +12 -0
  54. package/dist/superdoc/src/public/ui.d.ts +1 -1
  55. package/dist/superdoc/src/stores/comments-store.d.ts +7 -97
  56. package/dist/superdoc/src/stores/superdoc-store.d.ts +21 -291
  57. package/dist/superdoc.cjs +262 -1462
  58. package/dist/superdoc.es.js +538 -12833
  59. package/dist-cdn/style.layered.css +1 -1
  60. package/dist-cdn/superdoc.min.css +1 -1
  61. package/dist-cdn/superdoc.min.js +42 -42
  62. package/package.json +4 -3
  63. package/dist/superdoc/src/core/collaboration/collaboration.d.ts +0 -18
  64. package/dist/superdoc/src/helpers/group-changes.d.ts +0 -1
@@ -78,17 +78,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
78
78
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
79
79
  getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
80
80
  getCommentPosition: (commentOrId: Object | string) => Object | null;
81
- getCommentAnchoredText: (commentOrId: Object | string, options?: {
82
- separator?: string | undefined;
83
- trim?: boolean | undefined;
84
- }) => string | null;
85
- getCommentAnchorData: (commentOrId: Object | string, options?: {
86
- separator?: string | undefined;
87
- trim?: boolean | undefined;
88
- }) => {
89
- position: Object;
90
- anchoredText: string | null;
91
- } | null;
92
81
  resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
93
82
  key: string | null;
94
83
  entry: any;
@@ -135,7 +124,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
135
124
  superdoc: any;
136
125
  }) => Promise<any>;
137
126
  removePendingComment: (superdoc: any) => void;
138
- cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
139
127
  removeCommentsForDocument: (documentId: string | null | undefined) => void;
140
128
  setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
141
129
  commentItems?: never[] | undefined;
@@ -150,38 +138,20 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
150
138
  reason?: undefined;
151
139
  };
152
140
  clearReviewDirectory: () => void;
153
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
154
- comments: any[];
155
- documentId: string;
156
- replacedFile?: boolean | undefined;
157
- }) => void;
158
- translateCommentsForExport: () => any[];
159
141
  handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
160
142
  retainMissingTrackedChangeGeometry?: boolean;
161
143
  retainedTrackedChangeIds?: Iterable<string>;
162
144
  }) => void;
163
145
  clearEditorCommentPositions: () => void;
164
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
146
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, trackedChangeIdentityIndex, }: {
165
147
  superdoc: Object;
166
148
  params: Object;
167
149
  }) => void;
168
- refreshTrackedChangeCommentsByIds: ({ superdoc, editor, changeIds, broadcastChanges }: {
169
- superdoc: any;
170
- editor: any;
171
- changeIds: any;
172
- broadcastChanges?: boolean | undefined;
173
- }) => void;
174
- syncResolvedCommentsWithDocument: ({ editor }?: {}) => number;
175
- syncTrackedChangePositionsWithDocument: ({ documentId, editor }?: {}) => number;
150
+ syncResolvedCommentsWithDocument: () => number;
176
151
  setActiveFloatingCommentInstance: (instanceId?: null) => void;
177
152
  requestInstantSidebarAlignment: (targetY?: null, threadId?: null, instanceId?: null) => void;
178
153
  peekInstantSidebarAlignment: () => null;
179
154
  clearInstantSidebarAlignment: () => void;
180
- syncTrackedChangeComments: ({ superdoc, editor, broadcastChanges }: {
181
- superdoc: any;
182
- editor: any;
183
- broadcastChanges?: boolean | undefined;
184
- }) => void;
185
155
  decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
186
156
  superdoc: Object;
187
157
  editor: Object;
@@ -346,17 +316,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
346
316
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
347
317
  getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
348
318
  getCommentPosition: (commentOrId: Object | string) => Object | null;
349
- getCommentAnchoredText: (commentOrId: Object | string, options?: {
350
- separator?: string | undefined;
351
- trim?: boolean | undefined;
352
- }) => string | null;
353
- getCommentAnchorData: (commentOrId: Object | string, options?: {
354
- separator?: string | undefined;
355
- trim?: boolean | undefined;
356
- }) => {
357
- position: Object;
358
- anchoredText: string | null;
359
- } | null;
360
319
  resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
361
320
  key: string | null;
362
321
  entry: any;
@@ -403,7 +362,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
403
362
  superdoc: any;
404
363
  }) => Promise<any>;
405
364
  removePendingComment: (superdoc: any) => void;
406
- cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
407
365
  removeCommentsForDocument: (documentId: string | null | undefined) => void;
408
366
  setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
409
367
  commentItems?: never[] | undefined;
@@ -418,38 +376,20 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
418
376
  reason?: undefined;
419
377
  };
420
378
  clearReviewDirectory: () => void;
421
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
422
- comments: any[];
423
- documentId: string;
424
- replacedFile?: boolean | undefined;
425
- }) => void;
426
- translateCommentsForExport: () => any[];
427
379
  handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
428
380
  retainMissingTrackedChangeGeometry?: boolean;
429
381
  retainedTrackedChangeIds?: Iterable<string>;
430
382
  }) => void;
431
383
  clearEditorCommentPositions: () => void;
432
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
384
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, trackedChangeIdentityIndex, }: {
433
385
  superdoc: Object;
434
386
  params: Object;
435
387
  }) => void;
436
- refreshTrackedChangeCommentsByIds: ({ superdoc, editor, changeIds, broadcastChanges }: {
437
- superdoc: any;
438
- editor: any;
439
- changeIds: any;
440
- broadcastChanges?: boolean | undefined;
441
- }) => void;
442
- syncResolvedCommentsWithDocument: ({ editor }?: {}) => number;
443
- syncTrackedChangePositionsWithDocument: ({ documentId, editor }?: {}) => number;
388
+ syncResolvedCommentsWithDocument: () => number;
444
389
  setActiveFloatingCommentInstance: (instanceId?: null) => void;
445
390
  requestInstantSidebarAlignment: (targetY?: null, threadId?: null, instanceId?: null) => void;
446
391
  peekInstantSidebarAlignment: () => null;
447
392
  clearInstantSidebarAlignment: () => void;
448
- syncTrackedChangeComments: ({ superdoc, editor, broadcastChanges }: {
449
- superdoc: any;
450
- editor: any;
451
- broadcastChanges?: boolean | undefined;
452
- }) => void;
453
393
  decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
454
394
  superdoc: Object;
455
395
  editor: Object;
@@ -614,17 +554,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
614
554
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
615
555
  getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
616
556
  getCommentPosition: (commentOrId: Object | string) => Object | null;
617
- getCommentAnchoredText: (commentOrId: Object | string, options?: {
618
- separator?: string | undefined;
619
- trim?: boolean | undefined;
620
- }) => string | null;
621
- getCommentAnchorData: (commentOrId: Object | string, options?: {
622
- separator?: string | undefined;
623
- trim?: boolean | undefined;
624
- }) => {
625
- position: Object;
626
- anchoredText: string | null;
627
- } | null;
628
557
  resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
629
558
  key: string | null;
630
559
  entry: any;
@@ -671,7 +600,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
671
600
  superdoc: any;
672
601
  }) => Promise<any>;
673
602
  removePendingComment: (superdoc: any) => void;
674
- cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
675
603
  removeCommentsForDocument: (documentId: string | null | undefined) => void;
676
604
  setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
677
605
  commentItems?: never[] | undefined;
@@ -686,38 +614,20 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
686
614
  reason?: undefined;
687
615
  };
688
616
  clearReviewDirectory: () => void;
689
- processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
690
- comments: any[];
691
- documentId: string;
692
- replacedFile?: boolean | undefined;
693
- }) => void;
694
- translateCommentsForExport: () => any[];
695
617
  handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
696
618
  retainMissingTrackedChangeGeometry?: boolean;
697
619
  retainedTrackedChangeIds?: Iterable<string>;
698
620
  }) => void;
699
621
  clearEditorCommentPositions: () => void;
700
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
622
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, trackedChangeIdentityIndex, }: {
701
623
  superdoc: Object;
702
624
  params: Object;
703
625
  }) => void;
704
- refreshTrackedChangeCommentsByIds: ({ superdoc, editor, changeIds, broadcastChanges }: {
705
- superdoc: any;
706
- editor: any;
707
- changeIds: any;
708
- broadcastChanges?: boolean | undefined;
709
- }) => void;
710
- syncResolvedCommentsWithDocument: ({ editor }?: {}) => number;
711
- syncTrackedChangePositionsWithDocument: ({ documentId, editor }?: {}) => number;
626
+ syncResolvedCommentsWithDocument: () => number;
712
627
  setActiveFloatingCommentInstance: (instanceId?: null) => void;
713
628
  requestInstantSidebarAlignment: (targetY?: null, threadId?: null, instanceId?: null) => void;
714
629
  peekInstantSidebarAlignment: () => null;
715
630
  clearInstantSidebarAlignment: () => void;
716
- syncTrackedChangeComments: ({ superdoc, editor, broadcastChanges }: {
717
- superdoc: any;
718
- editor: any;
719
- broadcastChanges?: boolean | undefined;
720
- }) => void;
721
631
  decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
722
632
  superdoc: Object;
723
633
  editor: Object;
@@ -802,4 +712,4 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
802
712
  liveAnchorKeys?: null | undefined;
803
713
  }) => any;
804
714
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
805
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
715
+ }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;