plitejs 54.0.0-beta.7 → 54.0.0-beta.8

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 (54) hide show
  1. package/dist/authored/index.d.ts +44 -41
  2. package/dist/authored/index.js +16489 -16181
  3. package/dist/{authored-veto-CferDljr.js → authored-veto-DLmBMIcy.js} +1 -1
  4. package/dist/{clipboard-format-key-CLFcThXH.js → clipboard-format-key-SzffxWqa.js} +1 -1
  5. package/dist/{comparison-plan-7iIABSWG.js → comparison-plan-BqFJWjO4.js} +36 -14
  6. package/dist/{create-editor-acDgsovY.js → create-editor-kU8fg-PF.js} +6 -30
  7. package/dist/diff/index.d.ts +2 -32
  8. package/dist/diff/index.js +7 -378
  9. package/dist/dom/index.d.ts +2 -2
  10. package/dist/dom/index.js +2 -2
  11. package/dist/{dom-B5bAma7X.js → dom-SUWlnfT9.js} +562 -145
  12. package/dist/history/index.d.ts +5 -5
  13. package/dist/history/index.js +2041 -1833
  14. package/dist/history-skip-CcEhIzak.js +35 -0
  15. package/dist/hyperscript/index.d.ts +1 -1
  16. package/dist/hyperscript/index.js +1 -1
  17. package/dist/{hyperscript-BXUV6sdO.js → hyperscript-DdeGYoSc.js} +3 -2
  18. package/dist/{index-CTTjpWgb.d.ts → index-4PpawhYe.d.ts} +1 -1
  19. package/dist/{index-DJvrmSRP.d.ts → index-BsOySJwr.d.ts} +9 -9
  20. package/dist/{index-D8DQ1YFB.d.ts → index-CHEKdrHP.d.ts} +12 -4
  21. package/dist/{comparison-types-CsmDG5r2.d.ts → index-DM-b6jEe.d.ts} +21 -57
  22. package/dist/{index-LhVJuuEf.d.ts → index-DqmhcD_0.d.ts} +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +5 -4
  25. package/dist/internal/index.d.ts +2 -2
  26. package/dist/internal/index.js +66 -5
  27. package/dist/law-check-Bvnz2EKh.js +19271 -0
  28. package/dist/pagination/index.d.ts +1 -1
  29. package/dist/pagination/index.js +1 -1
  30. package/dist/pagination/react.d.ts +2 -2
  31. package/dist/pagination/react.js +92 -46
  32. package/dist/{pagination-CwjmxPoX.js → pagination-XEnxZ1DX.js} +2 -1
  33. package/dist/{plugin-BZCGtqMI.js → plugin-B8uCi-Hr.js} +8758 -19452
  34. package/dist/{range-geometry-CZari453.d.ts → range-geometry-B2f67yLv.d.ts} +1 -1
  35. package/dist/{range-geometry-CqWrwkjH.js → range-geometry-BGKYQHqO.js} +3 -2
  36. package/dist/react/index.d.ts +3 -3
  37. package/dist/react/index.js +7 -6
  38. package/dist/react/virtualized.d.ts +2 -2
  39. package/dist/react/virtualized.js +59 -38
  40. package/dist/{react-DO9IETEQ.js → react-B6B-5z7t.js} +24 -55
  41. package/dist/{retraction-RHEKiF3h.js → retraction-BMzQ2on5.js} +1 -1
  42. package/dist/scroll-root-DudA40xj.js +25 -0
  43. package/dist/{src-fLbHzUjC.js → src--BZ7fZY4.js} +60 -26
  44. package/dist/testing/index.d.ts +2 -2
  45. package/dist/testing/index.js +4 -3
  46. package/dist/{tx-only-1FM45FSj.d.ts → tx-only-D8lpB-sT.d.ts} +338 -147
  47. package/dist/{update-policy-C32RjjGt.js → update-policy-J-4sHmrg.js} +2 -1
  48. package/dist/{use-editor-dom-scope-CUBnNAZV.js → use-editor-dom-scope-BFWvutxn.js} +2837 -2093
  49. package/dist/yjs/index.d.ts +1 -1
  50. package/dist/yjs/index.js +1 -1
  51. package/dist/yjs/react/index.d.ts +3 -3
  52. package/dist/yjs/react/index.js +3 -3
  53. package/dist/{yjs-BMguSAX_.js → yjs-DPngKQWQ.js} +114 -39
  54. package/package.json +2 -3
@@ -1,4 +1,4 @@
1
- import { Jr as PluginTypeProvider, K as EditorEffect, Lf as RootFactsJson, Rf as CarriedRun, Uf as DocumentChange, Vs as encodeEditorEffect, _r as Plugin, ap as Selection, ar as HistoryApi, fm as EditorSchemaIdentity, fs as encodeEditorSelection, g as Editor, r as TxOnlyMethod, t as TxDeclaredMethod, vi as Value } from "../tx-only-1FM45FSj.js";
1
+ import { Es as encodeEditorSelection, Jr as PluginTypeProvider, K as EditorEffect, Sp as Selection, _r as Plugin, ap as CarriedRun, ar as HistoryApi, g as Editor, ip as RootFactsJson, km as EditorSchemaIdentity, op as DocumentChange, r as TxOnlyMethod, t as TxDeclaredMethod, tc as encodeEditorEffect, vi as Value } from "../tx-only-D8lpB-sT.js";
2
2
  //#region src/history/history.d.ts
3
3
  interface Batch<_V extends Value = Value> {
4
4
  /** Canonical change to apply when this batch is consumed. */
@@ -49,8 +49,8 @@ type HistoryJSON = Readonly<{
49
49
  redos: readonly HistoryBatchJSON[];
50
50
  schema: EditorSchemaIdentity;
51
51
  undos: readonly HistoryBatchJSON[];
52
- /** 7 for every history this build saves. It still reads 4, 5 and 6. */
53
- version: 4 | 5 | 6 | 7;
52
+ /** 8 for every history this build saves (carrying v4 DocumentChangeJson). */
53
+ version: 8;
54
54
  }>;
55
55
  type HistoryBatchJSON = Readonly<{
56
56
  change: ReturnType<DocumentChange['toJSON']>;
@@ -66,8 +66,8 @@ type HistoryBatchJSON = Readonly<{
66
66
  /** Only beside `unsettle` on a step whose commit settled a decision's text. */
67
67
  rest?: ReturnType<DocumentChange['toJSON']>;
68
68
  /**
69
- * Only at version 7: the facts of what the step moved, split and joined,
70
- * per root, or null when they are unknown. A step with no fact omits it.
69
+ * The facts of what the step moved, split and joined, per root, or null when
70
+ * they are unknown. A step with no fact omits it.
71
71
  */
72
72
  record?: Readonly<Record<string, RootFactsJson>> | null;
73
73
  /**