@portabletext/editor 2.3.1 → 2.3.2
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/lib/_chunks-dts/behavior.types.action.d.cts +51 -51
- package/lib/_chunks-dts/behavior.types.action.d.ts +122 -122
- package/lib/index.cjs +40 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +40 -1
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.d.ts +3 -3
- package/lib/utils/index.d.cts +2 -2
- package/lib/utils/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/converters/converter.text-plain.test.ts +7 -5
- package/src/editor/__tests__/PortableTextEditor.test.tsx +5 -14
- package/src/editor/__tests__/PortableTextEditorTester.tsx +23 -77
- package/src/editor/__tests__/RangeDecorations.test.tsx +2 -9
- package/src/editor/__tests__/insert-block.test.tsx +7 -28
- package/src/editor/__tests__/self-solving.test.tsx +5 -17
- package/src/editor/create-editor.ts +4 -1
- package/src/editor/editor-schema.ts +36 -3
- package/src/editor/plugins/__tests__/withEditableAPIDelete.test.tsx +8 -15
- package/src/editor/plugins/__tests__/withEditableAPIGetFragment.test.tsx +7 -11
- package/src/editor/plugins/__tests__/withEditableAPIInsert.test.tsx +81 -63
- package/src/editor/plugins/__tests__/withEditableAPISelectionsOverlapping.test.tsx +2 -9
- package/src/editor/plugins/__tests__/withPortableTextLists.test.tsx +3 -7
- package/src/editor/plugins/__tests__/withPortableTextMarkModel.test.tsx +17 -27
- package/src/editor/plugins/__tests__/withPortableTextSelections.test.tsx +3 -7
- package/src/editor/plugins/__tests__/withUndoRedo.test.tsx +4 -9
- package/src/internal-utils/__tests__/valueNormalization.test.tsx +3 -7
- package/src/internal-utils/__tests__/values.test.ts +5 -6
- package/src/internal-utils/operation-to-patches.test.ts +17 -12
- package/src/plugins/plugin.internal.portable-text-editor-ref.tsx +16 -0
- package/src/editor/__tests__/sync-value.test.tsx +0 -154
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Patch, Patch as Patch$1 } from "@portabletext/patches";
|
|
2
2
|
import * as _sanity_types5 from "@sanity/types";
|
|
3
3
|
import { ArrayDefinition, ArraySchemaType, BlockDecoratorDefinition, BlockListDefinition, BlockStyleDefinition, ObjectSchemaType, Path, PortableTextBlock, PortableTextBlock as PortableTextBlock$1, PortableTextChild, PortableTextChild as PortableTextChild$1, PortableTextListBlock, PortableTextObject, PortableTextObject as PortableTextObject$1, PortableTextSpan, PortableTextSpan as PortableTextSpan$1, PortableTextTextBlock, PortableTextTextBlock as PortableTextTextBlock$1, TypedObject } from "@sanity/types";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate227 from "xstate";
|
|
5
5
|
import { ActorRef, ActorRefFrom, EventObject, Snapshot } from "xstate";
|
|
6
6
|
import { BaseRange, Descendant, Operation } from "slate";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react20 from "react";
|
|
8
8
|
import React$1, { BaseSyntheticEvent, ClipboardEvent, Component, FocusEvent, JSX, KeyboardEvent as KeyboardEvent$1, MutableRefObject, PropsWithChildren, ReactElement, RefObject, TextareaHTMLAttributes } from "react";
|
|
9
|
-
import * as
|
|
9
|
+
import * as xstate_guards12 from "xstate/guards";
|
|
10
10
|
import { Observable, Subject } from "rxjs";
|
|
11
11
|
import { DOMNode } from "slate-dom";
|
|
12
12
|
import { ReactEditor } from "slate-react";
|
|
@@ -352,7 +352,7 @@ declare class PortableTextEditor extends Component<PortableTextEditorProps<Inter
|
|
|
352
352
|
componentDidUpdate(prevProps: PortableTextEditorProps): void;
|
|
353
353
|
componentWillUnmount(): void;
|
|
354
354
|
setEditable: (editable: EditableAPI) => void;
|
|
355
|
-
render():
|
|
355
|
+
render(): react20.JSX.Element;
|
|
356
356
|
/**
|
|
357
357
|
* @deprecated
|
|
358
358
|
* Use built-in selectors or write your own: https://www.portabletext.org/reference/selectors/
|
|
@@ -747,7 +747,7 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
|
|
|
747
747
|
* ```
|
|
748
748
|
* @group Components
|
|
749
749
|
*/
|
|
750
|
-
declare const PortableTextEditable:
|
|
750
|
+
declare const PortableTextEditable: react20.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react20.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
|
|
751
751
|
type DecoratedRange = BaseRange & {
|
|
752
752
|
rangeDecoration: RangeDecoration;
|
|
753
753
|
};
|
|
@@ -1313,7 +1313,7 @@ type EditorActor = ActorRefFrom<typeof editorMachine>;
|
|
|
1313
1313
|
/**
|
|
1314
1314
|
* @internal
|
|
1315
1315
|
*/
|
|
1316
|
-
declare const editorMachine:
|
|
1316
|
+
declare const editorMachine: xstate227.StateMachine<{
|
|
1317
1317
|
behaviors: Set<BehaviorConfig>;
|
|
1318
1318
|
behaviorsSorted: boolean;
|
|
1319
1319
|
converters: Set<Converter>;
|
|
@@ -1378,58 +1378,58 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1378
1378
|
type: "dragend";
|
|
1379
1379
|
} | {
|
|
1380
1380
|
type: "drop";
|
|
1381
|
-
}, {}, never,
|
|
1381
|
+
}, {}, never, xstate227.Values<{
|
|
1382
1382
|
"add behavior to context": {
|
|
1383
1383
|
type: "add behavior to context";
|
|
1384
|
-
params:
|
|
1384
|
+
params: xstate227.NonReducibleUnknown;
|
|
1385
1385
|
};
|
|
1386
1386
|
"remove behavior from context": {
|
|
1387
1387
|
type: "remove behavior from context";
|
|
1388
|
-
params:
|
|
1388
|
+
params: xstate227.NonReducibleUnknown;
|
|
1389
1389
|
};
|
|
1390
1390
|
"emit patch event": {
|
|
1391
1391
|
type: "emit patch event";
|
|
1392
|
-
params:
|
|
1392
|
+
params: xstate227.NonReducibleUnknown;
|
|
1393
1393
|
};
|
|
1394
1394
|
"emit mutation event": {
|
|
1395
1395
|
type: "emit mutation event";
|
|
1396
|
-
params:
|
|
1396
|
+
params: xstate227.NonReducibleUnknown;
|
|
1397
1397
|
};
|
|
1398
1398
|
"emit read only": {
|
|
1399
1399
|
type: "emit read only";
|
|
1400
|
-
params:
|
|
1400
|
+
params: xstate227.NonReducibleUnknown;
|
|
1401
1401
|
};
|
|
1402
1402
|
"emit editable": {
|
|
1403
1403
|
type: "emit editable";
|
|
1404
|
-
params:
|
|
1404
|
+
params: xstate227.NonReducibleUnknown;
|
|
1405
1405
|
};
|
|
1406
1406
|
"defer event": {
|
|
1407
1407
|
type: "defer event";
|
|
1408
|
-
params:
|
|
1408
|
+
params: xstate227.NonReducibleUnknown;
|
|
1409
1409
|
};
|
|
1410
1410
|
"emit pending events": {
|
|
1411
1411
|
type: "emit pending events";
|
|
1412
|
-
params:
|
|
1412
|
+
params: xstate227.NonReducibleUnknown;
|
|
1413
1413
|
};
|
|
1414
1414
|
"emit ready": {
|
|
1415
1415
|
type: "emit ready";
|
|
1416
|
-
params:
|
|
1416
|
+
params: xstate227.NonReducibleUnknown;
|
|
1417
1417
|
};
|
|
1418
1418
|
"clear pending events": {
|
|
1419
1419
|
type: "clear pending events";
|
|
1420
|
-
params:
|
|
1420
|
+
params: xstate227.NonReducibleUnknown;
|
|
1421
1421
|
};
|
|
1422
1422
|
"defer incoming patches": {
|
|
1423
1423
|
type: "defer incoming patches";
|
|
1424
|
-
params:
|
|
1424
|
+
params: xstate227.NonReducibleUnknown;
|
|
1425
1425
|
};
|
|
1426
1426
|
"emit pending incoming patches": {
|
|
1427
1427
|
type: "emit pending incoming patches";
|
|
1428
|
-
params:
|
|
1428
|
+
params: xstate227.NonReducibleUnknown;
|
|
1429
1429
|
};
|
|
1430
1430
|
"clear pending incoming patches": {
|
|
1431
1431
|
type: "clear pending incoming patches";
|
|
1432
|
-
params:
|
|
1432
|
+
params: xstate227.NonReducibleUnknown;
|
|
1433
1433
|
};
|
|
1434
1434
|
"handle blur": {
|
|
1435
1435
|
type: "handle blur";
|
|
@@ -1445,7 +1445,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1445
1445
|
};
|
|
1446
1446
|
"sort behaviors": {
|
|
1447
1447
|
type: "sort behaviors";
|
|
1448
|
-
params:
|
|
1448
|
+
params: xstate227.NonReducibleUnknown;
|
|
1449
1449
|
};
|
|
1450
1450
|
}>, {
|
|
1451
1451
|
type: "slate is busy";
|
|
@@ -1474,9 +1474,9 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1474
1474
|
readOnly?: boolean;
|
|
1475
1475
|
schema: EditorSchema;
|
|
1476
1476
|
initialValue?: Array<PortableTextBlock>;
|
|
1477
|
-
},
|
|
1477
|
+
}, xstate227.NonReducibleUnknown, InternalPatchEvent | MutationEvent | PatchesEvent | {
|
|
1478
1478
|
type: "blurred";
|
|
1479
|
-
event:
|
|
1479
|
+
event: react20.FocusEvent<HTMLDivElement, Element>;
|
|
1480
1480
|
} | {
|
|
1481
1481
|
type: "done loading";
|
|
1482
1482
|
} | {
|
|
@@ -1488,7 +1488,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1488
1488
|
data: unknown;
|
|
1489
1489
|
} | {
|
|
1490
1490
|
type: "focused";
|
|
1491
|
-
event:
|
|
1491
|
+
event: react20.FocusEvent<HTMLDivElement, Element>;
|
|
1492
1492
|
} | {
|
|
1493
1493
|
type: "invalid value";
|
|
1494
1494
|
resolution: InvalidValueResolution | null;
|
|
@@ -1505,19 +1505,19 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1505
1505
|
} | {
|
|
1506
1506
|
type: "value changed";
|
|
1507
1507
|
value: Array<PortableTextBlock> | undefined;
|
|
1508
|
-
},
|
|
1508
|
+
}, xstate227.MetaObject, {
|
|
1509
1509
|
readonly id: "editor";
|
|
1510
1510
|
readonly context: ({
|
|
1511
1511
|
input
|
|
1512
1512
|
}: {
|
|
1513
1513
|
spawn: {
|
|
1514
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never):
|
|
1515
|
-
<TLogic extends
|
|
1514
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): xstate227.ActorRefFromLogic<never>;
|
|
1515
|
+
<TLogic extends xstate227.AnyActorLogic>(src: TLogic, ...[options]: xstate227.ConditionalRequired<[options?: ({
|
|
1516
1516
|
id?: never;
|
|
1517
1517
|
systemId?: string;
|
|
1518
|
-
input?:
|
|
1518
|
+
input?: xstate227.InputFrom<TLogic> | undefined;
|
|
1519
1519
|
syncSnapshot?: boolean;
|
|
1520
|
-
} & { [K in
|
|
1520
|
+
} & { [K in xstate227.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate227.IsNotNever<xstate227.RequiredLogicInput<TLogic>>>): xstate227.ActorRefFromLogic<TLogic>;
|
|
1521
1521
|
};
|
|
1522
1522
|
input: {
|
|
1523
1523
|
converters?: Array<Converter>;
|
|
@@ -1528,7 +1528,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1528
1528
|
schema: EditorSchema;
|
|
1529
1529
|
initialValue?: Array<PortableTextBlock>;
|
|
1530
1530
|
};
|
|
1531
|
-
self:
|
|
1531
|
+
self: xstate227.ActorRef<xstate227.MachineSnapshot<{
|
|
1532
1532
|
behaviors: Set<BehaviorConfig>;
|
|
1533
1533
|
behaviorsSorted: boolean;
|
|
1534
1534
|
converters: Set<Converter>;
|
|
@@ -1593,7 +1593,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1593
1593
|
type: "dragend";
|
|
1594
1594
|
} | {
|
|
1595
1595
|
type: "drop";
|
|
1596
|
-
}, Record<string,
|
|
1596
|
+
}, Record<string, xstate227.AnyActorRef | undefined>, xstate227.StateValue, string, unknown, any, any>, InternalPatchEvent | MutationEvent | PatchesEvent | {
|
|
1597
1597
|
type: "update readOnly";
|
|
1598
1598
|
readOnly: boolean;
|
|
1599
1599
|
} | {
|
|
@@ -1640,10 +1640,10 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1640
1640
|
type: "dragend";
|
|
1641
1641
|
} | {
|
|
1642
1642
|
type: "drop";
|
|
1643
|
-
},
|
|
1643
|
+
}, xstate227.AnyEventObject>;
|
|
1644
1644
|
}) => {
|
|
1645
1645
|
behaviors: Set<{
|
|
1646
|
-
behavior: Behavior<"*" | "split" | `custom.${string}` | "annotation.add" | "annotation.remove" | "block.set" | "block.unset" | "child.set" | "child.unset" | "decorator.add" | "decorator.remove" | "delete" | "history.redo" | "history.undo" | "insert.inline object" | "insert.block" | "insert.span" | "insert.text" | "move.backward" | "move.block" | "move.forward" | "select" | "annotation.set" | "annotation.toggle" | "decorator.toggle" | "delete.backward" | "delete.block" | "delete.child" | "delete.forward" | "delete.text" | "deserialize" | "deserialization.success" | "deserialization.failure" | "insert.blocks" | "insert.break" | "insert.soft break" | "list item.add" | "list item.remove" | "list item.toggle" | "move.block down" | "move.block up" | "select.previous block" | "select.next block" | "serialize" | "serialization.success" | "serialization.failure" | "style.add" | "style.remove" | "style.toggle" | "clipboard.copy" | "clipboard.cut" | "clipboard.paste" | "drag.dragstart" | "drag.drag" | "drag.dragend" | "drag.dragenter" | "drag.dragover" | "drag.dragleave" | "drag.drop" | "input.*" | "keyboard.keydown" | "keyboard.keyup" | "mouse.click" | "history.*" | "split.*" | "delete.*" | "select.*" | "deserialize.*" | "serialize.*" | "annotation.*" | "block.*" | "child.*" | "decorator.*" | "insert.*" | "move.*" | "deserialization.*" | "list item.*" | "serialization.*" | "
|
|
1646
|
+
behavior: Behavior<"*" | "split" | `custom.${string}` | "annotation.add" | "annotation.remove" | "block.set" | "block.unset" | "child.set" | "child.unset" | "decorator.add" | "decorator.remove" | "delete" | "history.redo" | "history.undo" | "insert.inline object" | "insert.block" | "insert.span" | "insert.text" | "move.backward" | "move.block" | "move.forward" | "select" | "annotation.set" | "annotation.toggle" | "decorator.toggle" | "delete.backward" | "delete.block" | "delete.child" | "delete.forward" | "delete.text" | "deserialize" | "deserialization.success" | "deserialization.failure" | "insert.blocks" | "insert.break" | "insert.soft break" | "list item.add" | "list item.remove" | "list item.toggle" | "move.block down" | "move.block up" | "select.previous block" | "select.next block" | "serialize" | "serialization.success" | "serialization.failure" | "style.add" | "style.remove" | "style.toggle" | "clipboard.copy" | "clipboard.cut" | "clipboard.paste" | "drag.dragstart" | "drag.drag" | "drag.dragend" | "drag.dragenter" | "drag.dragover" | "drag.dragleave" | "drag.drop" | "input.*" | "keyboard.keydown" | "keyboard.keyup" | "mouse.click" | "style.*" | "history.*" | "split.*" | "delete.*" | "select.*" | "deserialize.*" | "serialize.*" | "annotation.*" | "block.*" | "child.*" | "decorator.*" | "insert.*" | "move.*" | "deserialization.*" | "list item.*" | "serialization.*" | "clipboard.*" | "drag.*" | "keyboard.*" | "mouse.*", true, {
|
|
1647
1647
|
type: StrictExtract<"split" | "annotation.add" | "annotation.remove" | "block.set" | "block.unset" | "child.set" | "child.unset" | "decorator.add" | "decorator.remove" | "delete" | "history.redo" | "history.undo" | "insert.inline object" | "insert.block" | "insert.span" | "insert.text" | "move.backward" | "move.block" | "move.forward" | "select" | "annotation.set" | "annotation.toggle" | "decorator.toggle" | "delete.backward" | "delete.block" | "delete.child" | "delete.forward" | "delete.text" | "deserialize" | "deserialization.success" | "deserialization.failure" | "insert.blocks" | "insert.break" | "insert.soft break" | "list item.add" | "list item.remove" | "list item.toggle" | "move.block down" | "move.block up" | "select.previous block" | "select.next block" | "serialize" | "serialization.success" | "serialization.failure" | "style.add" | "style.remove" | "style.toggle", "annotation.add">;
|
|
1648
1648
|
annotation: {
|
|
1649
1649
|
name: string;
|
|
@@ -1926,7 +1926,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1926
1926
|
readonly actions: "remove behavior from context";
|
|
1927
1927
|
};
|
|
1928
1928
|
readonly 'update maxBlocks': {
|
|
1929
|
-
readonly actions:
|
|
1929
|
+
readonly actions: xstate227.ActionFunction<{
|
|
1930
1930
|
behaviors: Set<BehaviorConfig>;
|
|
1931
1931
|
behaviorsSorted: boolean;
|
|
1932
1932
|
converters: Set<Converter>;
|
|
@@ -1997,7 +1997,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
1997
1997
|
}, undefined, never, never, never, never, never>;
|
|
1998
1998
|
};
|
|
1999
1999
|
readonly 'update selection': {
|
|
2000
|
-
readonly actions: readonly [
|
|
2000
|
+
readonly actions: readonly [xstate227.ActionFunction<{
|
|
2001
2001
|
behaviors: Set<BehaviorConfig>;
|
|
2002
2002
|
behaviorsSorted: boolean;
|
|
2003
2003
|
converters: Set<Converter>;
|
|
@@ -2065,7 +2065,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2065
2065
|
type: "dragend";
|
|
2066
2066
|
} | {
|
|
2067
2067
|
type: "drop";
|
|
2068
|
-
}, undefined, never, never, never, never, never>,
|
|
2068
|
+
}, undefined, never, never, never, never, never>, xstate227.ActionFunction<{
|
|
2069
2069
|
behaviors: Set<BehaviorConfig>;
|
|
2070
2070
|
behaviorsSorted: boolean;
|
|
2071
2071
|
converters: Set<Converter>;
|
|
@@ -2135,7 +2135,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2135
2135
|
type: "drop";
|
|
2136
2136
|
}, undefined, never, never, never, never, InternalPatchEvent | MutationEvent | PatchesEvent | {
|
|
2137
2137
|
type: "blurred";
|
|
2138
|
-
event:
|
|
2138
|
+
event: react20.FocusEvent<HTMLDivElement, Element>;
|
|
2139
2139
|
} | {
|
|
2140
2140
|
type: "done loading";
|
|
2141
2141
|
} | {
|
|
@@ -2147,7 +2147,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2147
2147
|
data: unknown;
|
|
2148
2148
|
} | {
|
|
2149
2149
|
type: "focused";
|
|
2150
|
-
event:
|
|
2150
|
+
event: react20.FocusEvent<HTMLDivElement, Element>;
|
|
2151
2151
|
} | {
|
|
2152
2152
|
type: "invalid value";
|
|
2153
2153
|
resolution: InvalidValueResolution | null;
|
|
@@ -2167,7 +2167,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2167
2167
|
}>];
|
|
2168
2168
|
};
|
|
2169
2169
|
readonly 'set drag ghost': {
|
|
2170
|
-
readonly actions:
|
|
2170
|
+
readonly actions: xstate227.ActionFunction<{
|
|
2171
2171
|
behaviors: Set<BehaviorConfig>;
|
|
2172
2172
|
behaviorsSorted: boolean;
|
|
2173
2173
|
converters: Set<Converter>;
|
|
@@ -2250,7 +2250,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2250
2250
|
readonly actions: readonly ["sort behaviors", "handle behavior event"];
|
|
2251
2251
|
readonly guard: ({
|
|
2252
2252
|
event
|
|
2253
|
-
}:
|
|
2253
|
+
}: xstate_guards12.GuardArgs<{
|
|
2254
2254
|
behaviors: Set<BehaviorConfig>;
|
|
2255
2255
|
behaviorsSorted: boolean;
|
|
2256
2256
|
converters: Set<Converter>;
|
|
@@ -2287,7 +2287,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2287
2287
|
readonly target: "#editor.edit mode.read only.read only";
|
|
2288
2288
|
readonly guard: ({
|
|
2289
2289
|
context
|
|
2290
|
-
}:
|
|
2290
|
+
}: xstate_guards12.GuardArgs<{
|
|
2291
2291
|
behaviors: Set<BehaviorConfig>;
|
|
2292
2292
|
behaviorsSorted: boolean;
|
|
2293
2293
|
converters: Set<Converter>;
|
|
@@ -2320,7 +2320,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2320
2320
|
readonly 'update readOnly': {
|
|
2321
2321
|
readonly guard: ({
|
|
2322
2322
|
event
|
|
2323
|
-
}:
|
|
2323
|
+
}: xstate_guards12.GuardArgs<{
|
|
2324
2324
|
behaviors: Set<BehaviorConfig>;
|
|
2325
2325
|
behaviorsSorted: boolean;
|
|
2326
2326
|
converters: Set<Converter>;
|
|
@@ -2354,7 +2354,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2354
2354
|
readonly 'update readOnly': {
|
|
2355
2355
|
readonly guard: ({
|
|
2356
2356
|
event
|
|
2357
|
-
}:
|
|
2357
|
+
}: xstate_guards12.GuardArgs<{
|
|
2358
2358
|
behaviors: Set<BehaviorConfig>;
|
|
2359
2359
|
behaviorsSorted: boolean;
|
|
2360
2360
|
converters: Set<Converter>;
|
|
@@ -2387,7 +2387,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2387
2387
|
};
|
|
2388
2388
|
readonly focus: {
|
|
2389
2389
|
readonly target: ".focusing";
|
|
2390
|
-
readonly actions: readonly [
|
|
2390
|
+
readonly actions: readonly [xstate227.ActionFunction<{
|
|
2391
2391
|
behaviors: Set<BehaviorConfig>;
|
|
2392
2392
|
behaviorsSorted: boolean;
|
|
2393
2393
|
converters: Set<Converter>;
|
|
@@ -2465,7 +2465,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2465
2465
|
readonly exit: readonly [() => void];
|
|
2466
2466
|
readonly on: {
|
|
2467
2467
|
readonly dragstart: {
|
|
2468
|
-
readonly actions: readonly [
|
|
2468
|
+
readonly actions: readonly [xstate227.ActionFunction<{
|
|
2469
2469
|
behaviors: Set<BehaviorConfig>;
|
|
2470
2470
|
behaviorsSorted: boolean;
|
|
2471
2471
|
converters: Set<Converter>;
|
|
@@ -2568,7 +2568,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2568
2568
|
readonly entry: readonly [() => void];
|
|
2569
2569
|
readonly exit: readonly [() => void, ({
|
|
2570
2570
|
context
|
|
2571
|
-
}:
|
|
2571
|
+
}: xstate227.ActionArgs<{
|
|
2572
2572
|
behaviors: Set<BehaviorConfig>;
|
|
2573
2573
|
behaviorsSorted: boolean;
|
|
2574
2574
|
converters: Set<Converter>;
|
|
@@ -2680,7 +2680,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2680
2680
|
type: "dragend";
|
|
2681
2681
|
} | {
|
|
2682
2682
|
type: "drop";
|
|
2683
|
-
}>) => void,
|
|
2683
|
+
}>) => void, xstate227.ActionFunction<{
|
|
2684
2684
|
behaviors: Set<BehaviorConfig>;
|
|
2685
2685
|
behaviorsSorted: boolean;
|
|
2686
2686
|
converters: Set<Converter>;
|
|
@@ -2792,7 +2792,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2792
2792
|
type: "dragend";
|
|
2793
2793
|
} | {
|
|
2794
2794
|
type: "drop";
|
|
2795
|
-
}, undefined, never, never, never, never, never>,
|
|
2795
|
+
}, undefined, never, never, never, never, never>, xstate227.ActionFunction<{
|
|
2796
2796
|
behaviors: Set<BehaviorConfig>;
|
|
2797
2797
|
behaviorsSorted: boolean;
|
|
2798
2798
|
converters: Set<Converter>;
|
|
@@ -2951,7 +2951,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
2951
2951
|
readonly exit: readonly [() => void];
|
|
2952
2952
|
readonly on: {
|
|
2953
2953
|
readonly patches: {
|
|
2954
|
-
readonly actions: readonly [
|
|
2954
|
+
readonly actions: readonly [xstate227.ActionFunction<{
|
|
2955
2955
|
behaviors: Set<BehaviorConfig>;
|
|
2956
2956
|
behaviorsSorted: boolean;
|
|
2957
2957
|
converters: Set<Converter>;
|
|
@@ -3018,7 +3018,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
3018
3018
|
type: "drop";
|
|
3019
3019
|
}, undefined, never, never, never, never, InternalPatchEvent | MutationEvent | PatchesEvent | {
|
|
3020
3020
|
type: "blurred";
|
|
3021
|
-
event:
|
|
3021
|
+
event: react20.FocusEvent<HTMLDivElement, Element>;
|
|
3022
3022
|
} | {
|
|
3023
3023
|
type: "done loading";
|
|
3024
3024
|
} | {
|
|
@@ -3030,7 +3030,7 @@ declare const editorMachine: xstate241.StateMachine<{
|
|
|
3030
3030
|
data: unknown;
|
|
3031
3031
|
} | {
|
|
3032
3032
|
type: "focused";
|
|
3033
|
-
event:
|
|
3033
|
+
event: react20.FocusEvent<HTMLDivElement, Element>;
|
|
3034
3034
|
} | {
|
|
3035
3035
|
type: "invalid value";
|
|
3036
3036
|
resolution: InvalidValueResolution | null;
|