superdoc 2.4.0-next.21 → 2.4.0-next.22

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 (43) hide show
  1. package/dist/chunks/{create-super-doc-ui-CFsY0uxw.es.js → create-super-doc-ui-CmOSA_lN.es.js} +252 -657
  2. package/dist/chunks/{create-super-doc-ui-jSJQis_0.cjs → create-super-doc-ui-CqGmoMMA.cjs} +251 -662
  3. package/dist/collaboration-upgrade-engine.cjs +1 -1
  4. package/dist/collaboration-upgrade-engine.es.js +1 -1
  5. package/dist/document-api/src/citations/citations.types.d.ts +9 -0
  6. package/dist/document-api/src/types/receipt.d.ts +9 -5
  7. package/dist/layout-engine/contracts/src/index.d.ts +73 -1
  8. package/dist/layout-engine/contracts/src/inline-box.d.ts +19 -0
  9. package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +19 -0
  10. package/dist/layout-engine/layout-bridge/src/inline-box-key.d.ts +3 -0
  11. package/dist/layout-engine/layout-bridge/src/run-visual-marks.d.ts +2 -0
  12. package/dist/layout-engine/layout-bridge/src/text-measurement.d.ts +0 -12
  13. package/dist/layout-engine/painters/dom/src/runs/inline-box.d.ts +8 -0
  14. package/dist/public/ui-react.cjs +1 -1
  15. package/dist/public/ui-react.es.js +1 -1
  16. package/dist/public/ui.cjs +1 -1
  17. package/dist/public/ui.es.js +1 -1
  18. package/dist/style.css +93 -92
  19. package/dist/style.layered.css +93 -92
  20. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2 -0
  21. package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +16 -0
  22. package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +3 -1
  23. package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +12 -0
  24. package/dist/superdoc/src/core/SuperDoc.d.ts +6 -7
  25. package/dist/superdoc/src/core/extensions/index.d.ts +1 -1
  26. package/dist/superdoc/src/core/extensions/types.d.ts +63 -5
  27. package/dist/superdoc/src/core/types/index.d.ts +19 -0
  28. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +3 -3
  29. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +3 -5
  30. package/dist/superdoc/src/public/index.d.cts +6 -0
  31. package/dist/superdoc/src/public/index.d.ts +3 -0
  32. package/dist/superdoc/src/public/ui/types.d.ts +5 -5
  33. package/dist/superdoc/src/stores/comments-store.d.ts +81 -78
  34. package/dist/superdoc/src/stores/superdoc-store.d.ts +243 -234
  35. package/dist/superdoc.cjs +660 -857
  36. package/dist/superdoc.es.js +648 -846
  37. package/dist-cdn/style.layered.css +1 -1
  38. package/dist-cdn/superdoc.min.css +1 -1
  39. package/dist-cdn/superdoc.min.js +36 -36
  40. package/package.json +2 -2
  41. package/dist/superdoc/src/helpers/v2-remote-review-hydration.d.ts +0 -12
  42. package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +0 -19
  43. package/dist/superdoc/src/helpers/v2-typing-review-hydration.d.ts +0 -16
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "superdoc",
3
3
  "type": "module",
4
- "version": "2.4.0-next.21",
4
+ "version": "2.4.0-next.22",
5
5
  "description": "The document engine for DOCX files. Open, edit, and render Word documents in the browser.",
6
6
  "license": "AGPL-3.0",
7
7
  "repository": {
@@ -76,7 +76,7 @@
76
76
  "main": "./dist/superdoc.cjs",
77
77
  "module": "./dist/superdoc.es.js",
78
78
  "dependencies": {
79
- "@superdoc/docx-engine": "0.3.0-next.18",
79
+ "@superdoc/docx-engine": "0.3.0-next.19",
80
80
  "@types/mdast": "^4.0.4",
81
81
  "@types/ws": "^8.18.1",
82
82
  "buffer-crc32": "^1.0.0",
@@ -1,12 +0,0 @@
1
- export function createV2RemoteReviewHydrationScheduler({ hydrate, getActiveDocumentId, debounceMs, ceilingMs, now, setTimer, clearTimer, }: {
2
- hydrate: any;
3
- getActiveDocumentId: any;
4
- debounceMs?: number | undefined;
5
- ceilingMs?: number | undefined;
6
- now?: (() => number) | undefined;
7
- setTimer?: ((callback: any, delay: any) => NodeJS.Timeout) | undefined;
8
- clearTimer?: ((timer: any) => void) | undefined;
9
- }): {
10
- schedule: (documentId: any) => boolean;
11
- clear: () => void;
12
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * Reconcile tracked changes only after their canonical render has made the
3
- * read model observable. Command receipts use narrow reads; history results
4
- * use one authoritative catalog because undo/redo can restore hundreds of
5
- * identities in one transaction. An absent history identity only converges
6
- * when both catalog and source coverage are explicitly complete.
7
- */
8
- export function createV2ReviewMutationReconciler({ getContext, reconcile, hydrate, onReconciled }: {
9
- getContext: any;
10
- reconcile: any;
11
- hydrate: any;
12
- onReconciled: any;
13
- }): {
14
- enqueue: (impact: any) => void;
15
- enqueueAfterPaint(impact: any, waitForPaint: any): Promise<any>;
16
- onRender: (supersedesInFlight?: boolean) => void;
17
- reset(): void;
18
- getPendingIds(): Set<any>;
19
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Coalesce automatic review-catalog reconciliation behind a genuine typing
3
- * quiet period. Every typing signal restarts the trailing timer; there is no
4
- * maximum-wait escape hatch because that would deliberately run the expensive
5
- * catalog reads in the middle of a sustained input burst.
6
- */
7
- export function createV2TypingReviewHydrationScheduler({ hydrate, idleMs, setTimer, clearTimer, }: {
8
- hydrate: any;
9
- idleMs?: number | undefined;
10
- setTimer?: ((callback: any, delay: any) => NodeJS.Timeout) | undefined;
11
- clearTimer?: ((timer: any) => void) | undefined;
12
- }): {
13
- schedule: () => void;
14
- clear: () => void;
15
- isPending: () => boolean;
16
- };