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.
- package/dist/authored/index.d.ts +44 -41
- package/dist/authored/index.js +16489 -16181
- package/dist/{authored-veto-CferDljr.js → authored-veto-DLmBMIcy.js} +1 -1
- package/dist/{clipboard-format-key-CLFcThXH.js → clipboard-format-key-SzffxWqa.js} +1 -1
- package/dist/{comparison-plan-7iIABSWG.js → comparison-plan-BqFJWjO4.js} +36 -14
- package/dist/{create-editor-acDgsovY.js → create-editor-kU8fg-PF.js} +6 -30
- package/dist/diff/index.d.ts +2 -32
- package/dist/diff/index.js +7 -378
- package/dist/dom/index.d.ts +2 -2
- package/dist/dom/index.js +2 -2
- package/dist/{dom-B5bAma7X.js → dom-SUWlnfT9.js} +562 -145
- package/dist/history/index.d.ts +5 -5
- package/dist/history/index.js +2041 -1833
- package/dist/history-skip-CcEhIzak.js +35 -0
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/hyperscript/index.js +1 -1
- package/dist/{hyperscript-BXUV6sdO.js → hyperscript-DdeGYoSc.js} +3 -2
- package/dist/{index-CTTjpWgb.d.ts → index-4PpawhYe.d.ts} +1 -1
- package/dist/{index-DJvrmSRP.d.ts → index-BsOySJwr.d.ts} +9 -9
- package/dist/{index-D8DQ1YFB.d.ts → index-CHEKdrHP.d.ts} +12 -4
- package/dist/{comparison-types-CsmDG5r2.d.ts → index-DM-b6jEe.d.ts} +21 -57
- package/dist/{index-LhVJuuEf.d.ts → index-DqmhcD_0.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +66 -5
- package/dist/law-check-Bvnz2EKh.js +19271 -0
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/react.d.ts +2 -2
- package/dist/pagination/react.js +92 -46
- package/dist/{pagination-CwjmxPoX.js → pagination-XEnxZ1DX.js} +2 -1
- package/dist/{plugin-BZCGtqMI.js → plugin-B8uCi-Hr.js} +8758 -19452
- package/dist/{range-geometry-CZari453.d.ts → range-geometry-B2f67yLv.d.ts} +1 -1
- package/dist/{range-geometry-CqWrwkjH.js → range-geometry-BGKYQHqO.js} +3 -2
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +7 -6
- package/dist/react/virtualized.d.ts +2 -2
- package/dist/react/virtualized.js +59 -38
- package/dist/{react-DO9IETEQ.js → react-B6B-5z7t.js} +24 -55
- package/dist/{retraction-RHEKiF3h.js → retraction-BMzQ2on5.js} +1 -1
- package/dist/scroll-root-DudA40xj.js +25 -0
- package/dist/{src-fLbHzUjC.js → src--BZ7fZY4.js} +60 -26
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +4 -3
- package/dist/{tx-only-1FM45FSj.d.ts → tx-only-D8lpB-sT.d.ts} +338 -147
- package/dist/{update-policy-C32RjjGt.js → update-policy-J-4sHmrg.js} +2 -1
- package/dist/{use-editor-dom-scope-CUBnNAZV.js → use-editor-dom-scope-BFWvutxn.js} +2837 -2093
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/dist/yjs/react/index.d.ts +3 -3
- package/dist/yjs/react/index.js +3 -3
- package/dist/{yjs-BMguSAX_.js → yjs-DPngKQWQ.js} +114 -39
- package/package.json +2 -3
package/dist/history/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
/**
|
|
53
|
-
version:
|
|
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
|
-
*
|
|
70
|
-
*
|
|
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
|
/**
|