@portabletext/editor 1.39.1 → 1.40.1
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-cjs/behavior.core.cjs +12 -4
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +131 -109
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/{parse-blocks.cjs → util.selection-point-to-block-offset.cjs} +74 -4
- package/lib/_chunks-cjs/util.selection-point-to-block-offset.cjs.map +1 -0
- package/lib/_chunks-cjs/util.slice-blocks.cjs +2 -2
- package/lib/_chunks-cjs/util.slice-blocks.cjs.map +1 -1
- package/lib/_chunks-cjs/util.split-text-block.cjs +68 -0
- package/lib/_chunks-cjs/util.split-text-block.cjs.map +1 -0
- package/lib/_chunks-es/behavior.core.js +12 -4
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +125 -103
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/{parse-blocks.js → util.selection-point-to-block-offset.js} +76 -5
- package/lib/_chunks-es/util.selection-point-to-block-offset.js.map +1 -0
- package/lib/_chunks-es/util.slice-blocks.js +2 -2
- package/lib/_chunks-es/util.slice-blocks.js.map +1 -1
- package/lib/_chunks-es/util.split-text-block.js +70 -0
- package/lib/_chunks-es/util.split-text-block.js.map +1 -0
- package/lib/behaviors/index.d.cts +383 -111
- package/lib/behaviors/index.d.ts +383 -111
- package/lib/index.cjs +198 -195
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +345 -90
- package/lib/index.d.ts +345 -90
- package/lib/index.js +205 -202
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.cjs +11 -11
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +335 -93
- package/lib/plugins/index.d.ts +335 -93
- package/lib/plugins/index.js +2 -2
- package/lib/selectors/index.d.cts +333 -81
- package/lib/selectors/index.d.ts +333 -81
- package/lib/utils/index.cjs +15 -87
- package/lib/utils/index.cjs.map +1 -1
- package/lib/utils/index.d.cts +386 -84
- package/lib/utils/index.d.ts +386 -84
- package/lib/utils/index.js +13 -86
- package/lib/utils/index.js.map +1 -1
- package/package.json +6 -6
- package/src/behavior-actions/behavior.action.decorator.add.ts +13 -2
- package/src/behaviors/behavior.core.block-objects.ts +32 -2
- package/src/behaviors/behavior.default.ts +38 -14
- package/src/behaviors/behavior.types.ts +5 -4
- package/src/converters/converter.portable-text.ts +9 -0
- package/src/converters/converter.text-plain.test.ts +5 -5
- package/src/converters/converter.text-plain.ts +12 -19
- package/src/editor/Editable.tsx +122 -68
- package/src/editor/PortableTextEditor.tsx +8 -8
- package/src/editor/__tests__/self-solving.test.tsx +1 -1
- package/src/editor/components/Element.tsx +2 -9
- package/src/editor/create-editor.ts +13 -5
- package/src/editor/editor-machine.ts +6 -2
- package/src/editor/editor-provider.tsx +11 -7
- package/src/editor/editor-selector.ts +4 -3
- package/src/editor/editor-snapshot.ts +2 -2
- package/src/editor/plugins/create-with-event-listeners.ts +2 -5
- package/src/editor/plugins/createWithPortableTextMarkModel.ts +1 -2
- package/src/internal-utils/block-keys.ts +9 -0
- package/src/internal-utils/collapse-selection.ts +36 -0
- package/src/internal-utils/compound-client-rect.ts +28 -0
- package/src/internal-utils/drag-selection.test.ts +507 -0
- package/src/internal-utils/drag-selection.ts +66 -0
- package/src/internal-utils/editor-selection.test.ts +40 -0
- package/src/internal-utils/editor-selection.ts +60 -0
- package/src/internal-utils/event-position.ts +55 -80
- package/src/internal-utils/inline-object-selection.ts +115 -0
- package/src/internal-utils/selection-block-keys.ts +20 -0
- package/src/internal-utils/selection-elements.ts +61 -0
- package/src/internal-utils/selection-focus-text.ts +38 -0
- package/src/internal-utils/selection-text.test.ts +23 -0
- package/src/internal-utils/selection-text.ts +90 -0
- package/src/internal-utils/split-string.ts +12 -0
- package/src/internal-utils/string-overlap.test.ts +14 -0
- package/src/internal-utils/string-overlap.ts +28 -0
- package/src/internal-utils/string-utils.ts +7 -0
- package/src/internal-utils/terse-pt.test.ts +60 -0
- package/src/internal-utils/terse-pt.ts +36 -0
- package/src/internal-utils/text-block-key.test.ts +30 -0
- package/src/internal-utils/text-block-key.ts +30 -0
- package/src/internal-utils/text-marks.test.ts +33 -0
- package/src/internal-utils/text-marks.ts +26 -0
- package/src/internal-utils/text-selection.test.ts +175 -0
- package/src/internal-utils/text-selection.ts +122 -0
- package/src/internal-utils/value-annotations.ts +31 -0
- package/src/internal-utils/values.ts +16 -5
- package/src/utils/index.ts +5 -0
- package/src/utils/util.block-offset-to-block-selection-point.ts +28 -0
- package/src/utils/util.block-offset-to-selection-point.ts +33 -0
- package/src/utils/util.block-offsets-to-selection.ts +3 -3
- package/src/utils/util.is-equal-selections.ts +20 -0
- package/src/utils/util.is-selection-collapsed.ts +15 -0
- package/src/utils/util.reverse-selection.ts +9 -5
- package/src/utils/util.selection-point-to-block-offset.ts +31 -0
- package/lib/_chunks-cjs/parse-blocks.cjs.map +0 -1
- package/lib/_chunks-es/parse-blocks.js.map +0 -1
- package/src/editor/components/use-draggable.ts +0 -123
package/lib/behaviors/index.d.ts
CHANGED
|
@@ -192,21 +192,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
192
192
|
originEvent: {
|
|
193
193
|
dataTransfer: DataTransfer
|
|
194
194
|
}
|
|
195
|
-
position: EventPosition_2
|
|
195
|
+
position: Pick<EventPosition_2, 'selection'>
|
|
196
196
|
}
|
|
197
197
|
| {
|
|
198
198
|
type: 'clipboard.cut'
|
|
199
199
|
originEvent: {
|
|
200
200
|
dataTransfer: DataTransfer
|
|
201
201
|
}
|
|
202
|
-
position: EventPosition_2
|
|
202
|
+
position: Pick<EventPosition_2, 'selection'>
|
|
203
203
|
}
|
|
204
204
|
| {
|
|
205
205
|
type: 'clipboard.paste'
|
|
206
206
|
originEvent: {
|
|
207
207
|
dataTransfer: DataTransfer
|
|
208
208
|
}
|
|
209
|
-
position: EventPosition_2
|
|
209
|
+
position: Pick<EventPosition_2, 'selection'>
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/**
|
|
@@ -268,10 +268,8 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
268
268
|
| 'clipboard.copy'
|
|
269
269
|
| 'clipboard.cut'
|
|
270
270
|
| 'drag.dragstart'
|
|
271
|
-
| 'focus'
|
|
272
271
|
| 'delete'
|
|
273
272
|
| 'select'
|
|
274
|
-
| '*'
|
|
275
273
|
| `custom.${string}`
|
|
276
274
|
| 'annotation.add'
|
|
277
275
|
| 'annotation.remove'
|
|
@@ -287,6 +285,7 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
287
285
|
| 'delete.block'
|
|
288
286
|
| 'delete.forward'
|
|
289
287
|
| 'delete.text'
|
|
288
|
+
| 'focus'
|
|
290
289
|
| 'history.redo'
|
|
291
290
|
| 'history.undo'
|
|
292
291
|
| 'insert.blocks'
|
|
@@ -320,6 +319,7 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
320
319
|
| 'keyboard.keydown'
|
|
321
320
|
| 'keyboard.keyup'
|
|
322
321
|
| 'mouse.click'
|
|
322
|
+
| '*'
|
|
323
323
|
| 'clipboard.*'
|
|
324
324
|
| 'drag.*'
|
|
325
325
|
| 'keyboard.*'
|
|
@@ -383,6 +383,10 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
383
383
|
| {
|
|
384
384
|
type: 'decorator.toggle'
|
|
385
385
|
decorator: string
|
|
386
|
+
offsets?: {
|
|
387
|
+
anchor: BlockOffset
|
|
388
|
+
focus: BlockOffset
|
|
389
|
+
}
|
|
386
390
|
}
|
|
387
391
|
| {
|
|
388
392
|
type: 'delete'
|
|
@@ -591,28 +595,28 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
591
595
|
originEvent: {
|
|
592
596
|
dataTransfer: DataTransfer
|
|
593
597
|
}
|
|
594
|
-
position: EventPosition
|
|
598
|
+
position: Pick<EventPosition, 'selection'>
|
|
595
599
|
}
|
|
596
600
|
| {
|
|
597
601
|
type: 'clipboard.cut'
|
|
598
602
|
originEvent: {
|
|
599
603
|
dataTransfer: DataTransfer
|
|
600
604
|
}
|
|
601
|
-
position: EventPosition
|
|
605
|
+
position: Pick<EventPosition, 'selection'>
|
|
602
606
|
}
|
|
603
607
|
| {
|
|
604
608
|
type: 'clipboard.paste'
|
|
605
609
|
originEvent: {
|
|
606
610
|
dataTransfer: DataTransfer
|
|
607
611
|
}
|
|
608
|
-
position: EventPosition
|
|
612
|
+
position: Pick<EventPosition, 'selection'>
|
|
609
613
|
}
|
|
610
614
|
| {
|
|
611
615
|
type: 'drag.dragstart'
|
|
612
616
|
originEvent: {
|
|
613
617
|
dataTransfer: DataTransfer
|
|
614
618
|
}
|
|
615
|
-
position: EventPosition
|
|
619
|
+
position: Pick<EventPosition, 'selection'>
|
|
616
620
|
}
|
|
617
621
|
| {
|
|
618
622
|
type: 'drag.drag'
|
|
@@ -705,10 +709,8 @@ export declare function createCodeEditorBehaviors(
|
|
|
705
709
|
| 'clipboard.copy'
|
|
706
710
|
| 'clipboard.cut'
|
|
707
711
|
| 'drag.dragstart'
|
|
708
|
-
| 'focus'
|
|
709
712
|
| 'delete'
|
|
710
713
|
| 'select'
|
|
711
|
-
| '*'
|
|
712
714
|
| `custom.${string}`
|
|
713
715
|
| 'annotation.add'
|
|
714
716
|
| 'annotation.remove'
|
|
@@ -724,6 +726,7 @@ export declare function createCodeEditorBehaviors(
|
|
|
724
726
|
| 'delete.block'
|
|
725
727
|
| 'delete.forward'
|
|
726
728
|
| 'delete.text'
|
|
729
|
+
| 'focus'
|
|
727
730
|
| 'history.redo'
|
|
728
731
|
| 'history.undo'
|
|
729
732
|
| 'insert.blocks'
|
|
@@ -757,6 +760,7 @@ export declare function createCodeEditorBehaviors(
|
|
|
757
760
|
| 'keyboard.keydown'
|
|
758
761
|
| 'keyboard.keyup'
|
|
759
762
|
| 'mouse.click'
|
|
763
|
+
| '*'
|
|
760
764
|
| 'clipboard.*'
|
|
761
765
|
| 'drag.*'
|
|
762
766
|
| 'keyboard.*'
|
|
@@ -820,6 +824,10 @@ export declare function createCodeEditorBehaviors(
|
|
|
820
824
|
| {
|
|
821
825
|
type: 'decorator.toggle'
|
|
822
826
|
decorator: string
|
|
827
|
+
offsets?: {
|
|
828
|
+
anchor: BlockOffset
|
|
829
|
+
focus: BlockOffset
|
|
830
|
+
}
|
|
823
831
|
}
|
|
824
832
|
| {
|
|
825
833
|
type: 'delete'
|
|
@@ -1028,28 +1036,28 @@ export declare function createCodeEditorBehaviors(
|
|
|
1028
1036
|
originEvent: {
|
|
1029
1037
|
dataTransfer: DataTransfer
|
|
1030
1038
|
}
|
|
1031
|
-
position: EventPosition
|
|
1039
|
+
position: Pick<EventPosition, 'selection'>
|
|
1032
1040
|
}
|
|
1033
1041
|
| {
|
|
1034
1042
|
type: 'clipboard.cut'
|
|
1035
1043
|
originEvent: {
|
|
1036
1044
|
dataTransfer: DataTransfer
|
|
1037
1045
|
}
|
|
1038
|
-
position: EventPosition
|
|
1046
|
+
position: Pick<EventPosition, 'selection'>
|
|
1039
1047
|
}
|
|
1040
1048
|
| {
|
|
1041
1049
|
type: 'clipboard.paste'
|
|
1042
1050
|
originEvent: {
|
|
1043
1051
|
dataTransfer: DataTransfer
|
|
1044
1052
|
}
|
|
1045
|
-
position: EventPosition
|
|
1053
|
+
position: Pick<EventPosition, 'selection'>
|
|
1046
1054
|
}
|
|
1047
1055
|
| {
|
|
1048
1056
|
type: 'drag.dragstart'
|
|
1049
1057
|
originEvent: {
|
|
1050
1058
|
dataTransfer: DataTransfer
|
|
1051
1059
|
}
|
|
1052
|
-
position: EventPosition
|
|
1060
|
+
position: Pick<EventPosition, 'selection'>
|
|
1053
1061
|
}
|
|
1054
1062
|
| {
|
|
1055
1063
|
type: 'drag.drag'
|
|
@@ -1142,10 +1150,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1142
1150
|
| 'clipboard.copy'
|
|
1143
1151
|
| 'clipboard.cut'
|
|
1144
1152
|
| 'drag.dragstart'
|
|
1145
|
-
| 'focus'
|
|
1146
1153
|
| 'delete'
|
|
1147
1154
|
| 'select'
|
|
1148
|
-
| '*'
|
|
1149
1155
|
| `custom.${string}`
|
|
1150
1156
|
| 'annotation.add'
|
|
1151
1157
|
| 'annotation.remove'
|
|
@@ -1161,6 +1167,7 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1161
1167
|
| 'delete.block'
|
|
1162
1168
|
| 'delete.forward'
|
|
1163
1169
|
| 'delete.text'
|
|
1170
|
+
| 'focus'
|
|
1164
1171
|
| 'history.redo'
|
|
1165
1172
|
| 'history.undo'
|
|
1166
1173
|
| 'insert.blocks'
|
|
@@ -1194,6 +1201,7 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1194
1201
|
| 'keyboard.keydown'
|
|
1195
1202
|
| 'keyboard.keyup'
|
|
1196
1203
|
| 'mouse.click'
|
|
1204
|
+
| '*'
|
|
1197
1205
|
| 'clipboard.*'
|
|
1198
1206
|
| 'drag.*'
|
|
1199
1207
|
| 'keyboard.*'
|
|
@@ -1257,6 +1265,10 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1257
1265
|
| {
|
|
1258
1266
|
type: 'decorator.toggle'
|
|
1259
1267
|
decorator: string
|
|
1268
|
+
offsets?: {
|
|
1269
|
+
anchor: BlockOffset
|
|
1270
|
+
focus: BlockOffset
|
|
1271
|
+
}
|
|
1260
1272
|
}
|
|
1261
1273
|
| {
|
|
1262
1274
|
type: 'delete'
|
|
@@ -1465,28 +1477,28 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1465
1477
|
originEvent: {
|
|
1466
1478
|
dataTransfer: DataTransfer
|
|
1467
1479
|
}
|
|
1468
|
-
position: EventPosition
|
|
1480
|
+
position: Pick<EventPosition, 'selection'>
|
|
1469
1481
|
}
|
|
1470
1482
|
| {
|
|
1471
1483
|
type: 'clipboard.cut'
|
|
1472
1484
|
originEvent: {
|
|
1473
1485
|
dataTransfer: DataTransfer
|
|
1474
1486
|
}
|
|
1475
|
-
position: EventPosition
|
|
1487
|
+
position: Pick<EventPosition, 'selection'>
|
|
1476
1488
|
}
|
|
1477
1489
|
| {
|
|
1478
1490
|
type: 'clipboard.paste'
|
|
1479
1491
|
originEvent: {
|
|
1480
1492
|
dataTransfer: DataTransfer
|
|
1481
1493
|
}
|
|
1482
|
-
position: EventPosition
|
|
1494
|
+
position: Pick<EventPosition, 'selection'>
|
|
1483
1495
|
}
|
|
1484
1496
|
| {
|
|
1485
1497
|
type: 'drag.dragstart'
|
|
1486
1498
|
originEvent: {
|
|
1487
1499
|
dataTransfer: DataTransfer
|
|
1488
1500
|
}
|
|
1489
|
-
position: EventPosition
|
|
1501
|
+
position: Pick<EventPosition, 'selection'>
|
|
1490
1502
|
}
|
|
1491
1503
|
| {
|
|
1492
1504
|
type: 'drag.drag'
|
|
@@ -1579,10 +1591,8 @@ export declare function createLinkBehaviors(
|
|
|
1579
1591
|
| 'clipboard.copy'
|
|
1580
1592
|
| 'clipboard.cut'
|
|
1581
1593
|
| 'drag.dragstart'
|
|
1582
|
-
| 'focus'
|
|
1583
1594
|
| 'delete'
|
|
1584
1595
|
| 'select'
|
|
1585
|
-
| '*'
|
|
1586
1596
|
| `custom.${string}`
|
|
1587
1597
|
| 'annotation.add'
|
|
1588
1598
|
| 'annotation.remove'
|
|
@@ -1598,6 +1608,7 @@ export declare function createLinkBehaviors(
|
|
|
1598
1608
|
| 'delete.block'
|
|
1599
1609
|
| 'delete.forward'
|
|
1600
1610
|
| 'delete.text'
|
|
1611
|
+
| 'focus'
|
|
1601
1612
|
| 'history.redo'
|
|
1602
1613
|
| 'history.undo'
|
|
1603
1614
|
| 'insert.blocks'
|
|
@@ -1631,6 +1642,7 @@ export declare function createLinkBehaviors(
|
|
|
1631
1642
|
| 'keyboard.keydown'
|
|
1632
1643
|
| 'keyboard.keyup'
|
|
1633
1644
|
| 'mouse.click'
|
|
1645
|
+
| '*'
|
|
1634
1646
|
| 'clipboard.*'
|
|
1635
1647
|
| 'drag.*'
|
|
1636
1648
|
| 'keyboard.*'
|
|
@@ -1694,6 +1706,10 @@ export declare function createLinkBehaviors(
|
|
|
1694
1706
|
| {
|
|
1695
1707
|
type: 'decorator.toggle'
|
|
1696
1708
|
decorator: string
|
|
1709
|
+
offsets?: {
|
|
1710
|
+
anchor: BlockOffset
|
|
1711
|
+
focus: BlockOffset
|
|
1712
|
+
}
|
|
1697
1713
|
}
|
|
1698
1714
|
| {
|
|
1699
1715
|
type: 'delete'
|
|
@@ -1902,28 +1918,28 @@ export declare function createLinkBehaviors(
|
|
|
1902
1918
|
originEvent: {
|
|
1903
1919
|
dataTransfer: DataTransfer
|
|
1904
1920
|
}
|
|
1905
|
-
position: EventPosition
|
|
1921
|
+
position: Pick<EventPosition, 'selection'>
|
|
1906
1922
|
}
|
|
1907
1923
|
| {
|
|
1908
1924
|
type: 'clipboard.cut'
|
|
1909
1925
|
originEvent: {
|
|
1910
1926
|
dataTransfer: DataTransfer
|
|
1911
1927
|
}
|
|
1912
|
-
position: EventPosition
|
|
1928
|
+
position: Pick<EventPosition, 'selection'>
|
|
1913
1929
|
}
|
|
1914
1930
|
| {
|
|
1915
1931
|
type: 'clipboard.paste'
|
|
1916
1932
|
originEvent: {
|
|
1917
1933
|
dataTransfer: DataTransfer
|
|
1918
1934
|
}
|
|
1919
|
-
position: EventPosition
|
|
1935
|
+
position: Pick<EventPosition, 'selection'>
|
|
1920
1936
|
}
|
|
1921
1937
|
| {
|
|
1922
1938
|
type: 'drag.dragstart'
|
|
1923
1939
|
originEvent: {
|
|
1924
1940
|
dataTransfer: DataTransfer
|
|
1925
1941
|
}
|
|
1926
|
-
position: EventPosition
|
|
1942
|
+
position: Pick<EventPosition, 'selection'>
|
|
1927
1943
|
}
|
|
1928
1944
|
| {
|
|
1929
1945
|
type: 'drag.drag'
|
|
@@ -2058,10 +2074,8 @@ export declare function createMarkdownBehaviors(
|
|
|
2058
2074
|
| 'clipboard.copy'
|
|
2059
2075
|
| 'clipboard.cut'
|
|
2060
2076
|
| 'drag.dragstart'
|
|
2061
|
-
| 'focus'
|
|
2062
2077
|
| 'delete'
|
|
2063
2078
|
| 'select'
|
|
2064
|
-
| '*'
|
|
2065
2079
|
| `custom.${string}`
|
|
2066
2080
|
| 'annotation.add'
|
|
2067
2081
|
| 'annotation.remove'
|
|
@@ -2077,6 +2091,7 @@ export declare function createMarkdownBehaviors(
|
|
|
2077
2091
|
| 'delete.block'
|
|
2078
2092
|
| 'delete.forward'
|
|
2079
2093
|
| 'delete.text'
|
|
2094
|
+
| 'focus'
|
|
2080
2095
|
| 'history.redo'
|
|
2081
2096
|
| 'history.undo'
|
|
2082
2097
|
| 'insert.blocks'
|
|
@@ -2110,6 +2125,7 @@ export declare function createMarkdownBehaviors(
|
|
|
2110
2125
|
| 'keyboard.keydown'
|
|
2111
2126
|
| 'keyboard.keyup'
|
|
2112
2127
|
| 'mouse.click'
|
|
2128
|
+
| '*'
|
|
2113
2129
|
| 'clipboard.*'
|
|
2114
2130
|
| 'drag.*'
|
|
2115
2131
|
| 'keyboard.*'
|
|
@@ -2173,6 +2189,10 @@ export declare function createMarkdownBehaviors(
|
|
|
2173
2189
|
| {
|
|
2174
2190
|
type: 'decorator.toggle'
|
|
2175
2191
|
decorator: string
|
|
2192
|
+
offsets?: {
|
|
2193
|
+
anchor: BlockOffset
|
|
2194
|
+
focus: BlockOffset
|
|
2195
|
+
}
|
|
2176
2196
|
}
|
|
2177
2197
|
| {
|
|
2178
2198
|
type: 'delete'
|
|
@@ -2381,28 +2401,28 @@ export declare function createMarkdownBehaviors(
|
|
|
2381
2401
|
originEvent: {
|
|
2382
2402
|
dataTransfer: DataTransfer
|
|
2383
2403
|
}
|
|
2384
|
-
position: EventPosition
|
|
2404
|
+
position: Pick<EventPosition, 'selection'>
|
|
2385
2405
|
}
|
|
2386
2406
|
| {
|
|
2387
2407
|
type: 'clipboard.cut'
|
|
2388
2408
|
originEvent: {
|
|
2389
2409
|
dataTransfer: DataTransfer
|
|
2390
2410
|
}
|
|
2391
|
-
position: EventPosition
|
|
2411
|
+
position: Pick<EventPosition, 'selection'>
|
|
2392
2412
|
}
|
|
2393
2413
|
| {
|
|
2394
2414
|
type: 'clipboard.paste'
|
|
2395
2415
|
originEvent: {
|
|
2396
2416
|
dataTransfer: DataTransfer
|
|
2397
2417
|
}
|
|
2398
|
-
position: EventPosition
|
|
2418
|
+
position: Pick<EventPosition, 'selection'>
|
|
2399
2419
|
}
|
|
2400
2420
|
| {
|
|
2401
2421
|
type: 'drag.dragstart'
|
|
2402
2422
|
originEvent: {
|
|
2403
2423
|
dataTransfer: DataTransfer
|
|
2404
2424
|
}
|
|
2405
|
-
position: EventPosition
|
|
2425
|
+
position: Pick<EventPosition, 'selection'>
|
|
2406
2426
|
}
|
|
2407
2427
|
| {
|
|
2408
2428
|
type: 'drag.drag'
|
|
@@ -2574,7 +2594,7 @@ declare type DragBehaviorEvent =
|
|
|
2574
2594
|
originEvent: {
|
|
2575
2595
|
dataTransfer: DataTransfer
|
|
2576
2596
|
}
|
|
2577
|
-
position: EventPosition_2
|
|
2597
|
+
position: Pick<EventPosition_2, 'selection'>
|
|
2578
2598
|
}
|
|
2579
2599
|
| {
|
|
2580
2600
|
type: 'drag.drag'
|
|
@@ -2739,7 +2759,7 @@ declare const editorMachine: StateMachine<
|
|
|
2739
2759
|
value: Array<PortableTextBlock> | undefined
|
|
2740
2760
|
internalDrag?: {
|
|
2741
2761
|
ghost?: HTMLElement
|
|
2742
|
-
origin: EventPosition_2
|
|
2762
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
2743
2763
|
}
|
|
2744
2764
|
},
|
|
2745
2765
|
| {
|
|
@@ -2800,6 +2820,10 @@ declare const editorMachine: StateMachine<
|
|
|
2800
2820
|
| {
|
|
2801
2821
|
type: 'decorator.toggle'
|
|
2802
2822
|
decorator: string
|
|
2823
|
+
offsets?: {
|
|
2824
|
+
anchor: BlockOffset
|
|
2825
|
+
focus: BlockOffset
|
|
2826
|
+
}
|
|
2803
2827
|
}
|
|
2804
2828
|
| {
|
|
2805
2829
|
type: 'delete'
|
|
@@ -3108,7 +3132,7 @@ declare const editorMachine: StateMachine<
|
|
|
3108
3132
|
}
|
|
3109
3133
|
| {
|
|
3110
3134
|
type: 'dragstart'
|
|
3111
|
-
origin: EventPosition_2
|
|
3135
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
3112
3136
|
ghost?: HTMLElement
|
|
3113
3137
|
}
|
|
3114
3138
|
| {
|
|
@@ -3178,7 +3202,7 @@ declare const editorMachine: StateMachine<
|
|
|
3178
3202
|
{
|
|
3179
3203
|
'edit mode':
|
|
3180
3204
|
| {
|
|
3181
|
-
editable: '
|
|
3205
|
+
editable: 'dragging internally' | 'idle'
|
|
3182
3206
|
}
|
|
3183
3207
|
| {
|
|
3184
3208
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -3187,7 +3211,7 @@ declare const editorMachine: StateMachine<
|
|
|
3187
3211
|
| 'setting up'
|
|
3188
3212
|
| 'dirty'
|
|
3189
3213
|
| {
|
|
3190
|
-
pristine: '
|
|
3214
|
+
pristine: 'normalizing' | 'idle'
|
|
3191
3215
|
}
|
|
3192
3216
|
},
|
|
3193
3217
|
'dragging internally',
|
|
@@ -3259,6 +3283,10 @@ declare const editorMachine: StateMachine<
|
|
|
3259
3283
|
| {
|
|
3260
3284
|
type: 'decorator.toggle'
|
|
3261
3285
|
decorator: string
|
|
3286
|
+
offsets?: {
|
|
3287
|
+
anchor: BlockOffset
|
|
3288
|
+
focus: BlockOffset
|
|
3289
|
+
}
|
|
3262
3290
|
}
|
|
3263
3291
|
| {
|
|
3264
3292
|
type: 'delete'
|
|
@@ -3546,7 +3574,7 @@ declare const editorMachine: StateMachine<
|
|
|
3546
3574
|
value: Array<PortableTextBlock> | undefined
|
|
3547
3575
|
internalDrag?: {
|
|
3548
3576
|
ghost?: HTMLElement
|
|
3549
|
-
origin: EventPosition_2
|
|
3577
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
3550
3578
|
}
|
|
3551
3579
|
},
|
|
3552
3580
|
| {
|
|
@@ -3607,6 +3635,10 @@ declare const editorMachine: StateMachine<
|
|
|
3607
3635
|
| {
|
|
3608
3636
|
type: 'decorator.toggle'
|
|
3609
3637
|
decorator: string
|
|
3638
|
+
offsets?: {
|
|
3639
|
+
anchor: BlockOffset
|
|
3640
|
+
focus: BlockOffset
|
|
3641
|
+
}
|
|
3610
3642
|
}
|
|
3611
3643
|
| {
|
|
3612
3644
|
type: 'delete'
|
|
@@ -3915,7 +3947,7 @@ declare const editorMachine: StateMachine<
|
|
|
3915
3947
|
}
|
|
3916
3948
|
| {
|
|
3917
3949
|
type: 'dragstart'
|
|
3918
|
-
origin: EventPosition_2
|
|
3950
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
3919
3951
|
ghost?: HTMLElement
|
|
3920
3952
|
}
|
|
3921
3953
|
| {
|
|
@@ -3989,6 +4021,10 @@ declare const editorMachine: StateMachine<
|
|
|
3989
4021
|
| {
|
|
3990
4022
|
type: 'decorator.toggle'
|
|
3991
4023
|
decorator: string
|
|
4024
|
+
offsets?: {
|
|
4025
|
+
anchor: BlockOffset
|
|
4026
|
+
focus: BlockOffset
|
|
4027
|
+
}
|
|
3992
4028
|
}
|
|
3993
4029
|
| {
|
|
3994
4030
|
type: 'delete'
|
|
@@ -4297,7 +4333,7 @@ declare const editorMachine: StateMachine<
|
|
|
4297
4333
|
}
|
|
4298
4334
|
| {
|
|
4299
4335
|
type: 'dragstart'
|
|
4300
|
-
origin: EventPosition_2
|
|
4336
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
4301
4337
|
ghost?: HTMLElement
|
|
4302
4338
|
}
|
|
4303
4339
|
| {
|
|
@@ -4334,7 +4370,7 @@ declare const editorMachine: StateMachine<
|
|
|
4334
4370
|
value: Array<PortableTextBlock> | undefined
|
|
4335
4371
|
internalDrag?: {
|
|
4336
4372
|
ghost?: HTMLElement
|
|
4337
|
-
origin: EventPosition_2
|
|
4373
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
4338
4374
|
}
|
|
4339
4375
|
},
|
|
4340
4376
|
{
|
|
@@ -4399,6 +4435,10 @@ declare const editorMachine: StateMachine<
|
|
|
4399
4435
|
| {
|
|
4400
4436
|
type: 'decorator.toggle'
|
|
4401
4437
|
decorator: string
|
|
4438
|
+
offsets?: {
|
|
4439
|
+
anchor: BlockOffset
|
|
4440
|
+
focus: BlockOffset
|
|
4441
|
+
}
|
|
4402
4442
|
}
|
|
4403
4443
|
| {
|
|
4404
4444
|
type: 'delete'
|
|
@@ -4707,7 +4747,7 @@ declare const editorMachine: StateMachine<
|
|
|
4707
4747
|
}
|
|
4708
4748
|
| {
|
|
4709
4749
|
type: 'dragstart'
|
|
4710
|
-
origin: EventPosition_2
|
|
4750
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
4711
4751
|
ghost?: HTMLElement
|
|
4712
4752
|
}
|
|
4713
4753
|
| {
|
|
@@ -4779,6 +4819,10 @@ declare const editorMachine: StateMachine<
|
|
|
4779
4819
|
| {
|
|
4780
4820
|
type: 'decorator.toggle'
|
|
4781
4821
|
decorator: string
|
|
4822
|
+
offsets?: {
|
|
4823
|
+
anchor: BlockOffset
|
|
4824
|
+
focus: BlockOffset
|
|
4825
|
+
}
|
|
4782
4826
|
}
|
|
4783
4827
|
| {
|
|
4784
4828
|
type: 'delete'
|
|
@@ -5031,7 +5075,7 @@ declare const editorMachine: StateMachine<
|
|
|
5031
5075
|
value: Array<PortableTextBlock> | undefined
|
|
5032
5076
|
internalDrag?: {
|
|
5033
5077
|
ghost?: HTMLElement
|
|
5034
|
-
origin: EventPosition_2
|
|
5078
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
5035
5079
|
}
|
|
5036
5080
|
},
|
|
5037
5081
|
{
|
|
@@ -5095,6 +5139,10 @@ declare const editorMachine: StateMachine<
|
|
|
5095
5139
|
| {
|
|
5096
5140
|
type: 'decorator.toggle'
|
|
5097
5141
|
decorator: string
|
|
5142
|
+
offsets?: {
|
|
5143
|
+
anchor: BlockOffset
|
|
5144
|
+
focus: BlockOffset
|
|
5145
|
+
}
|
|
5098
5146
|
}
|
|
5099
5147
|
| {
|
|
5100
5148
|
type: 'delete'
|
|
@@ -5403,7 +5451,7 @@ declare const editorMachine: StateMachine<
|
|
|
5403
5451
|
}
|
|
5404
5452
|
| {
|
|
5405
5453
|
type: 'dragstart'
|
|
5406
|
-
origin: EventPosition_2
|
|
5454
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
5407
5455
|
ghost?: HTMLElement
|
|
5408
5456
|
}
|
|
5409
5457
|
| {
|
|
@@ -5475,6 +5523,10 @@ declare const editorMachine: StateMachine<
|
|
|
5475
5523
|
| {
|
|
5476
5524
|
type: 'decorator.toggle'
|
|
5477
5525
|
decorator: string
|
|
5526
|
+
offsets?: {
|
|
5527
|
+
anchor: BlockOffset
|
|
5528
|
+
focus: BlockOffset
|
|
5529
|
+
}
|
|
5478
5530
|
}
|
|
5479
5531
|
| {
|
|
5480
5532
|
type: 'delete'
|
|
@@ -5727,7 +5779,7 @@ declare const editorMachine: StateMachine<
|
|
|
5727
5779
|
value: Array<PortableTextBlock> | undefined
|
|
5728
5780
|
internalDrag?: {
|
|
5729
5781
|
ghost?: HTMLElement
|
|
5730
|
-
origin: EventPosition_2
|
|
5782
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
5731
5783
|
}
|
|
5732
5784
|
},
|
|
5733
5785
|
{
|
|
@@ -5794,6 +5846,10 @@ declare const editorMachine: StateMachine<
|
|
|
5794
5846
|
| {
|
|
5795
5847
|
type: 'decorator.toggle'
|
|
5796
5848
|
decorator: string
|
|
5849
|
+
offsets?: {
|
|
5850
|
+
anchor: BlockOffset
|
|
5851
|
+
focus: BlockOffset
|
|
5852
|
+
}
|
|
5797
5853
|
}
|
|
5798
5854
|
| {
|
|
5799
5855
|
type: 'delete'
|
|
@@ -6102,7 +6158,7 @@ declare const editorMachine: StateMachine<
|
|
|
6102
6158
|
}
|
|
6103
6159
|
| {
|
|
6104
6160
|
type: 'dragstart'
|
|
6105
|
-
origin: EventPosition_2
|
|
6161
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
6106
6162
|
ghost?: HTMLElement
|
|
6107
6163
|
}
|
|
6108
6164
|
| {
|
|
@@ -6174,6 +6230,10 @@ declare const editorMachine: StateMachine<
|
|
|
6174
6230
|
| {
|
|
6175
6231
|
type: 'decorator.toggle'
|
|
6176
6232
|
decorator: string
|
|
6233
|
+
offsets?: {
|
|
6234
|
+
anchor: BlockOffset
|
|
6235
|
+
focus: BlockOffset
|
|
6236
|
+
}
|
|
6177
6237
|
}
|
|
6178
6238
|
| {
|
|
6179
6239
|
type: 'delete'
|
|
@@ -6426,7 +6486,7 @@ declare const editorMachine: StateMachine<
|
|
|
6426
6486
|
value: Array<PortableTextBlock> | undefined
|
|
6427
6487
|
internalDrag?: {
|
|
6428
6488
|
ghost?: HTMLElement
|
|
6429
|
-
origin: EventPosition_2
|
|
6489
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
6430
6490
|
}
|
|
6431
6491
|
},
|
|
6432
6492
|
{
|
|
@@ -6492,6 +6552,10 @@ declare const editorMachine: StateMachine<
|
|
|
6492
6552
|
| {
|
|
6493
6553
|
type: 'decorator.toggle'
|
|
6494
6554
|
decorator: string
|
|
6555
|
+
offsets?: {
|
|
6556
|
+
anchor: BlockOffset
|
|
6557
|
+
focus: BlockOffset
|
|
6558
|
+
}
|
|
6495
6559
|
}
|
|
6496
6560
|
| {
|
|
6497
6561
|
type: 'delete'
|
|
@@ -6800,7 +6864,7 @@ declare const editorMachine: StateMachine<
|
|
|
6800
6864
|
}
|
|
6801
6865
|
| {
|
|
6802
6866
|
type: 'dragstart'
|
|
6803
|
-
origin: EventPosition_2
|
|
6867
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
6804
6868
|
ghost?: HTMLElement
|
|
6805
6869
|
}
|
|
6806
6870
|
| {
|
|
@@ -6872,6 +6936,10 @@ declare const editorMachine: StateMachine<
|
|
|
6872
6936
|
| {
|
|
6873
6937
|
type: 'decorator.toggle'
|
|
6874
6938
|
decorator: string
|
|
6939
|
+
offsets?: {
|
|
6940
|
+
anchor: BlockOffset
|
|
6941
|
+
focus: BlockOffset
|
|
6942
|
+
}
|
|
6875
6943
|
}
|
|
6876
6944
|
| {
|
|
6877
6945
|
type: 'delete'
|
|
@@ -7124,7 +7192,7 @@ declare const editorMachine: StateMachine<
|
|
|
7124
7192
|
value: Array<PortableTextBlock> | undefined
|
|
7125
7193
|
internalDrag?: {
|
|
7126
7194
|
ghost?: HTMLElement
|
|
7127
|
-
origin: EventPosition_2
|
|
7195
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
7128
7196
|
}
|
|
7129
7197
|
},
|
|
7130
7198
|
{
|
|
@@ -7189,6 +7257,10 @@ declare const editorMachine: StateMachine<
|
|
|
7189
7257
|
| {
|
|
7190
7258
|
type: 'decorator.toggle'
|
|
7191
7259
|
decorator: string
|
|
7260
|
+
offsets?: {
|
|
7261
|
+
anchor: BlockOffset
|
|
7262
|
+
focus: BlockOffset
|
|
7263
|
+
}
|
|
7192
7264
|
}
|
|
7193
7265
|
| {
|
|
7194
7266
|
type: 'delete'
|
|
@@ -7497,7 +7569,7 @@ declare const editorMachine: StateMachine<
|
|
|
7497
7569
|
}
|
|
7498
7570
|
| {
|
|
7499
7571
|
type: 'dragstart'
|
|
7500
|
-
origin: EventPosition_2
|
|
7572
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
7501
7573
|
ghost?: HTMLElement
|
|
7502
7574
|
}
|
|
7503
7575
|
| {
|
|
@@ -7569,6 +7641,10 @@ declare const editorMachine: StateMachine<
|
|
|
7569
7641
|
| {
|
|
7570
7642
|
type: 'decorator.toggle'
|
|
7571
7643
|
decorator: string
|
|
7644
|
+
offsets?: {
|
|
7645
|
+
anchor: BlockOffset
|
|
7646
|
+
focus: BlockOffset
|
|
7647
|
+
}
|
|
7572
7648
|
}
|
|
7573
7649
|
| {
|
|
7574
7650
|
type: 'delete'
|
|
@@ -7822,7 +7898,7 @@ declare const editorMachine: StateMachine<
|
|
|
7822
7898
|
value: Array<PortableTextBlock> | undefined
|
|
7823
7899
|
internalDrag?: {
|
|
7824
7900
|
ghost?: HTMLElement
|
|
7825
|
-
origin: EventPosition_2
|
|
7901
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
7826
7902
|
}
|
|
7827
7903
|
},
|
|
7828
7904
|
{
|
|
@@ -7887,6 +7963,10 @@ declare const editorMachine: StateMachine<
|
|
|
7887
7963
|
| {
|
|
7888
7964
|
type: 'decorator.toggle'
|
|
7889
7965
|
decorator: string
|
|
7966
|
+
offsets?: {
|
|
7967
|
+
anchor: BlockOffset
|
|
7968
|
+
focus: BlockOffset
|
|
7969
|
+
}
|
|
7890
7970
|
}
|
|
7891
7971
|
| {
|
|
7892
7972
|
type: 'delete'
|
|
@@ -8195,7 +8275,7 @@ declare const editorMachine: StateMachine<
|
|
|
8195
8275
|
}
|
|
8196
8276
|
| {
|
|
8197
8277
|
type: 'dragstart'
|
|
8198
|
-
origin: EventPosition_2
|
|
8278
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
8199
8279
|
ghost?: HTMLElement
|
|
8200
8280
|
}
|
|
8201
8281
|
| {
|
|
@@ -8224,7 +8304,7 @@ declare const editorMachine: StateMachine<
|
|
|
8224
8304
|
value: Array<PortableTextBlock> | undefined
|
|
8225
8305
|
internalDrag?: {
|
|
8226
8306
|
ghost?: HTMLElement
|
|
8227
|
-
origin: EventPosition_2
|
|
8307
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
8228
8308
|
}
|
|
8229
8309
|
},
|
|
8230
8310
|
{
|
|
@@ -8289,6 +8369,10 @@ declare const editorMachine: StateMachine<
|
|
|
8289
8369
|
| {
|
|
8290
8370
|
type: 'decorator.toggle'
|
|
8291
8371
|
decorator: string
|
|
8372
|
+
offsets?: {
|
|
8373
|
+
anchor: BlockOffset
|
|
8374
|
+
focus: BlockOffset
|
|
8375
|
+
}
|
|
8292
8376
|
}
|
|
8293
8377
|
| {
|
|
8294
8378
|
type: 'delete'
|
|
@@ -8597,7 +8681,7 @@ declare const editorMachine: StateMachine<
|
|
|
8597
8681
|
}
|
|
8598
8682
|
| {
|
|
8599
8683
|
type: 'dragstart'
|
|
8600
|
-
origin: EventPosition_2
|
|
8684
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
8601
8685
|
ghost?: HTMLElement
|
|
8602
8686
|
}
|
|
8603
8687
|
| {
|
|
@@ -8669,6 +8753,10 @@ declare const editorMachine: StateMachine<
|
|
|
8669
8753
|
| {
|
|
8670
8754
|
type: 'decorator.toggle'
|
|
8671
8755
|
decorator: string
|
|
8756
|
+
offsets?: {
|
|
8757
|
+
anchor: BlockOffset
|
|
8758
|
+
focus: BlockOffset
|
|
8759
|
+
}
|
|
8672
8760
|
}
|
|
8673
8761
|
| {
|
|
8674
8762
|
type: 'delete'
|
|
@@ -8922,7 +9010,7 @@ declare const editorMachine: StateMachine<
|
|
|
8922
9010
|
value: Array<PortableTextBlock> | undefined
|
|
8923
9011
|
internalDrag?: {
|
|
8924
9012
|
ghost?: HTMLElement
|
|
8925
|
-
origin: EventPosition_2
|
|
9013
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
8926
9014
|
}
|
|
8927
9015
|
},
|
|
8928
9016
|
{
|
|
@@ -8987,6 +9075,10 @@ declare const editorMachine: StateMachine<
|
|
|
8987
9075
|
| {
|
|
8988
9076
|
type: 'decorator.toggle'
|
|
8989
9077
|
decorator: string
|
|
9078
|
+
offsets?: {
|
|
9079
|
+
anchor: BlockOffset
|
|
9080
|
+
focus: BlockOffset
|
|
9081
|
+
}
|
|
8990
9082
|
}
|
|
8991
9083
|
| {
|
|
8992
9084
|
type: 'delete'
|
|
@@ -9295,7 +9387,7 @@ declare const editorMachine: StateMachine<
|
|
|
9295
9387
|
}
|
|
9296
9388
|
| {
|
|
9297
9389
|
type: 'dragstart'
|
|
9298
|
-
origin: EventPosition_2
|
|
9390
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
9299
9391
|
ghost?: HTMLElement
|
|
9300
9392
|
}
|
|
9301
9393
|
| {
|
|
@@ -9367,6 +9459,10 @@ declare const editorMachine: StateMachine<
|
|
|
9367
9459
|
| {
|
|
9368
9460
|
type: 'decorator.toggle'
|
|
9369
9461
|
decorator: string
|
|
9462
|
+
offsets?: {
|
|
9463
|
+
anchor: BlockOffset
|
|
9464
|
+
focus: BlockOffset
|
|
9465
|
+
}
|
|
9370
9466
|
}
|
|
9371
9467
|
| {
|
|
9372
9468
|
type: 'delete'
|
|
@@ -9619,7 +9715,7 @@ declare const editorMachine: StateMachine<
|
|
|
9619
9715
|
value: Array<PortableTextBlock> | undefined
|
|
9620
9716
|
internalDrag?: {
|
|
9621
9717
|
ghost?: HTMLElement
|
|
9622
|
-
origin: EventPosition_2
|
|
9718
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
9623
9719
|
}
|
|
9624
9720
|
},
|
|
9625
9721
|
{
|
|
@@ -9683,6 +9779,10 @@ declare const editorMachine: StateMachine<
|
|
|
9683
9779
|
| {
|
|
9684
9780
|
type: 'decorator.toggle'
|
|
9685
9781
|
decorator: string
|
|
9782
|
+
offsets?: {
|
|
9783
|
+
anchor: BlockOffset
|
|
9784
|
+
focus: BlockOffset
|
|
9785
|
+
}
|
|
9686
9786
|
}
|
|
9687
9787
|
| {
|
|
9688
9788
|
type: 'delete'
|
|
@@ -9991,7 +10091,7 @@ declare const editorMachine: StateMachine<
|
|
|
9991
10091
|
}
|
|
9992
10092
|
| {
|
|
9993
10093
|
type: 'dragstart'
|
|
9994
|
-
origin: EventPosition_2
|
|
10094
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
9995
10095
|
ghost?: HTMLElement
|
|
9996
10096
|
}
|
|
9997
10097
|
| {
|
|
@@ -10063,6 +10163,10 @@ declare const editorMachine: StateMachine<
|
|
|
10063
10163
|
| {
|
|
10064
10164
|
type: 'decorator.toggle'
|
|
10065
10165
|
decorator: string
|
|
10166
|
+
offsets?: {
|
|
10167
|
+
anchor: BlockOffset
|
|
10168
|
+
focus: BlockOffset
|
|
10169
|
+
}
|
|
10066
10170
|
}
|
|
10067
10171
|
| {
|
|
10068
10172
|
type: 'delete'
|
|
@@ -10315,7 +10419,7 @@ declare const editorMachine: StateMachine<
|
|
|
10315
10419
|
value: Array<PortableTextBlock> | undefined
|
|
10316
10420
|
internalDrag?: {
|
|
10317
10421
|
ghost?: HTMLElement
|
|
10318
|
-
origin: EventPosition_2
|
|
10422
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
10319
10423
|
}
|
|
10320
10424
|
},
|
|
10321
10425
|
{
|
|
@@ -10380,6 +10484,10 @@ declare const editorMachine: StateMachine<
|
|
|
10380
10484
|
| {
|
|
10381
10485
|
type: 'decorator.toggle'
|
|
10382
10486
|
decorator: string
|
|
10487
|
+
offsets?: {
|
|
10488
|
+
anchor: BlockOffset
|
|
10489
|
+
focus: BlockOffset
|
|
10490
|
+
}
|
|
10383
10491
|
}
|
|
10384
10492
|
| {
|
|
10385
10493
|
type: 'delete'
|
|
@@ -10688,7 +10796,7 @@ declare const editorMachine: StateMachine<
|
|
|
10688
10796
|
}
|
|
10689
10797
|
| {
|
|
10690
10798
|
type: 'dragstart'
|
|
10691
|
-
origin: EventPosition_2
|
|
10799
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
10692
10800
|
ghost?: HTMLElement
|
|
10693
10801
|
}
|
|
10694
10802
|
| {
|
|
@@ -10760,6 +10868,10 @@ declare const editorMachine: StateMachine<
|
|
|
10760
10868
|
| {
|
|
10761
10869
|
type: 'decorator.toggle'
|
|
10762
10870
|
decorator: string
|
|
10871
|
+
offsets?: {
|
|
10872
|
+
anchor: BlockOffset
|
|
10873
|
+
focus: BlockOffset
|
|
10874
|
+
}
|
|
10763
10875
|
}
|
|
10764
10876
|
| {
|
|
10765
10877
|
type: 'delete'
|
|
@@ -11018,7 +11130,7 @@ declare const editorMachine: StateMachine<
|
|
|
11018
11130
|
value: Array<PortableTextBlock> | undefined
|
|
11019
11131
|
internalDrag?: {
|
|
11020
11132
|
ghost?: HTMLElement
|
|
11021
|
-
origin: EventPosition_2
|
|
11133
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
11022
11134
|
}
|
|
11023
11135
|
},
|
|
11024
11136
|
PatchesEvent,
|
|
@@ -11080,6 +11192,10 @@ declare const editorMachine: StateMachine<
|
|
|
11080
11192
|
| {
|
|
11081
11193
|
type: 'decorator.toggle'
|
|
11082
11194
|
decorator: string
|
|
11195
|
+
offsets?: {
|
|
11196
|
+
anchor: BlockOffset
|
|
11197
|
+
focus: BlockOffset
|
|
11198
|
+
}
|
|
11083
11199
|
}
|
|
11084
11200
|
| {
|
|
11085
11201
|
type: 'delete'
|
|
@@ -11388,7 +11504,7 @@ declare const editorMachine: StateMachine<
|
|
|
11388
11504
|
}
|
|
11389
11505
|
| {
|
|
11390
11506
|
type: 'dragstart'
|
|
11391
|
-
origin: EventPosition_2
|
|
11507
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
11392
11508
|
ghost?: HTMLElement
|
|
11393
11509
|
}
|
|
11394
11510
|
| {
|
|
@@ -11460,6 +11576,10 @@ declare const editorMachine: StateMachine<
|
|
|
11460
11576
|
| {
|
|
11461
11577
|
type: 'decorator.toggle'
|
|
11462
11578
|
decorator: string
|
|
11579
|
+
offsets?: {
|
|
11580
|
+
anchor: BlockOffset
|
|
11581
|
+
focus: BlockOffset
|
|
11582
|
+
}
|
|
11463
11583
|
}
|
|
11464
11584
|
| {
|
|
11465
11585
|
type: 'delete'
|
|
@@ -11715,7 +11835,7 @@ declare const editorMachine: StateMachine<
|
|
|
11715
11835
|
value: Array<PortableTextBlock> | undefined
|
|
11716
11836
|
internalDrag?: {
|
|
11717
11837
|
ghost?: HTMLElement
|
|
11718
|
-
origin: EventPosition_2
|
|
11838
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
11719
11839
|
}
|
|
11720
11840
|
},
|
|
11721
11841
|
{
|
|
@@ -11780,6 +11900,10 @@ declare const editorMachine: StateMachine<
|
|
|
11780
11900
|
| {
|
|
11781
11901
|
type: 'decorator.toggle'
|
|
11782
11902
|
decorator: string
|
|
11903
|
+
offsets?: {
|
|
11904
|
+
anchor: BlockOffset
|
|
11905
|
+
focus: BlockOffset
|
|
11906
|
+
}
|
|
11783
11907
|
}
|
|
11784
11908
|
| {
|
|
11785
11909
|
type: 'delete'
|
|
@@ -12088,7 +12212,7 @@ declare const editorMachine: StateMachine<
|
|
|
12088
12212
|
}
|
|
12089
12213
|
| {
|
|
12090
12214
|
type: 'dragstart'
|
|
12091
|
-
origin: EventPosition_2
|
|
12215
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12092
12216
|
ghost?: HTMLElement
|
|
12093
12217
|
}
|
|
12094
12218
|
| {
|
|
@@ -12122,7 +12246,7 @@ declare const editorMachine: StateMachine<
|
|
|
12122
12246
|
value: Array<PortableTextBlock> | undefined
|
|
12123
12247
|
internalDrag?: {
|
|
12124
12248
|
ghost?: HTMLElement
|
|
12125
|
-
origin: EventPosition_2
|
|
12249
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12126
12250
|
}
|
|
12127
12251
|
},
|
|
12128
12252
|
{
|
|
@@ -12187,6 +12311,10 @@ declare const editorMachine: StateMachine<
|
|
|
12187
12311
|
| {
|
|
12188
12312
|
type: 'decorator.toggle'
|
|
12189
12313
|
decorator: string
|
|
12314
|
+
offsets?: {
|
|
12315
|
+
anchor: BlockOffset
|
|
12316
|
+
focus: BlockOffset
|
|
12317
|
+
}
|
|
12190
12318
|
}
|
|
12191
12319
|
| {
|
|
12192
12320
|
type: 'delete'
|
|
@@ -12495,7 +12623,7 @@ declare const editorMachine: StateMachine<
|
|
|
12495
12623
|
}
|
|
12496
12624
|
| {
|
|
12497
12625
|
type: 'dragstart'
|
|
12498
|
-
origin: EventPosition_2
|
|
12626
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12499
12627
|
ghost?: HTMLElement
|
|
12500
12628
|
}
|
|
12501
12629
|
| {
|
|
@@ -12526,7 +12654,7 @@ declare const editorMachine: StateMachine<
|
|
|
12526
12654
|
value: Array<PortableTextBlock> | undefined
|
|
12527
12655
|
internalDrag?: {
|
|
12528
12656
|
ghost?: HTMLElement
|
|
12529
|
-
origin: EventPosition_2
|
|
12657
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12530
12658
|
}
|
|
12531
12659
|
},
|
|
12532
12660
|
{
|
|
@@ -12591,6 +12719,10 @@ declare const editorMachine: StateMachine<
|
|
|
12591
12719
|
| {
|
|
12592
12720
|
type: 'decorator.toggle'
|
|
12593
12721
|
decorator: string
|
|
12722
|
+
offsets?: {
|
|
12723
|
+
anchor: BlockOffset
|
|
12724
|
+
focus: BlockOffset
|
|
12725
|
+
}
|
|
12594
12726
|
}
|
|
12595
12727
|
| {
|
|
12596
12728
|
type: 'delete'
|
|
@@ -12899,7 +13031,7 @@ declare const editorMachine: StateMachine<
|
|
|
12899
13031
|
}
|
|
12900
13032
|
| {
|
|
12901
13033
|
type: 'dragstart'
|
|
12902
|
-
origin: EventPosition_2
|
|
13034
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12903
13035
|
ghost?: HTMLElement
|
|
12904
13036
|
}
|
|
12905
13037
|
| {
|
|
@@ -12942,7 +13074,7 @@ declare const editorMachine: StateMachine<
|
|
|
12942
13074
|
value: Array<PortableTextBlock> | undefined
|
|
12943
13075
|
internalDrag?: {
|
|
12944
13076
|
ghost?: HTMLElement
|
|
12945
|
-
origin: EventPosition_2
|
|
13077
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12946
13078
|
}
|
|
12947
13079
|
},
|
|
12948
13080
|
{
|
|
@@ -12983,7 +13115,7 @@ declare const editorMachine: StateMachine<
|
|
|
12983
13115
|
value: Array<PortableTextBlock> | undefined
|
|
12984
13116
|
internalDrag?: {
|
|
12985
13117
|
ghost?: HTMLElement
|
|
12986
|
-
origin: EventPosition_2
|
|
13118
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
12987
13119
|
}
|
|
12988
13120
|
},
|
|
12989
13121
|
{
|
|
@@ -13015,7 +13147,7 @@ declare const editorMachine: StateMachine<
|
|
|
13015
13147
|
value: Array<PortableTextBlock> | undefined
|
|
13016
13148
|
internalDrag?: {
|
|
13017
13149
|
ghost?: HTMLElement
|
|
13018
|
-
origin: EventPosition_2
|
|
13150
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
13019
13151
|
}
|
|
13020
13152
|
},
|
|
13021
13153
|
{
|
|
@@ -13048,7 +13180,7 @@ declare const editorMachine: StateMachine<
|
|
|
13048
13180
|
value: Array<PortableTextBlock> | undefined
|
|
13049
13181
|
internalDrag?: {
|
|
13050
13182
|
ghost?: HTMLElement
|
|
13051
|
-
origin: EventPosition_2
|
|
13183
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
13052
13184
|
}
|
|
13053
13185
|
},
|
|
13054
13186
|
{
|
|
@@ -13079,7 +13211,7 @@ declare const editorMachine: StateMachine<
|
|
|
13079
13211
|
value: Array<PortableTextBlock> | undefined
|
|
13080
13212
|
internalDrag?: {
|
|
13081
13213
|
ghost?: HTMLElement
|
|
13082
|
-
origin: EventPosition_2
|
|
13214
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
13083
13215
|
}
|
|
13084
13216
|
},
|
|
13085
13217
|
| {
|
|
@@ -13164,6 +13296,10 @@ declare const editorMachine: StateMachine<
|
|
|
13164
13296
|
| {
|
|
13165
13297
|
type: 'decorator.toggle'
|
|
13166
13298
|
decorator: string
|
|
13299
|
+
offsets?: {
|
|
13300
|
+
anchor: BlockOffset
|
|
13301
|
+
focus: BlockOffset
|
|
13302
|
+
}
|
|
13167
13303
|
}
|
|
13168
13304
|
| {
|
|
13169
13305
|
type: 'delete'
|
|
@@ -13472,7 +13608,7 @@ declare const editorMachine: StateMachine<
|
|
|
13472
13608
|
}
|
|
13473
13609
|
| {
|
|
13474
13610
|
type: 'dragstart'
|
|
13475
|
-
origin: EventPosition_2
|
|
13611
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
13476
13612
|
ghost?: HTMLElement
|
|
13477
13613
|
}
|
|
13478
13614
|
| {
|
|
@@ -13544,6 +13680,10 @@ declare const editorMachine: StateMachine<
|
|
|
13544
13680
|
| {
|
|
13545
13681
|
type: 'decorator.toggle'
|
|
13546
13682
|
decorator: string
|
|
13683
|
+
offsets?: {
|
|
13684
|
+
anchor: BlockOffset
|
|
13685
|
+
focus: BlockOffset
|
|
13686
|
+
}
|
|
13547
13687
|
}
|
|
13548
13688
|
| {
|
|
13549
13689
|
type: 'delete'
|
|
@@ -13796,7 +13936,7 @@ declare const editorMachine: StateMachine<
|
|
|
13796
13936
|
value: Array<PortableTextBlock> | undefined
|
|
13797
13937
|
internalDrag?: {
|
|
13798
13938
|
ghost?: HTMLElement
|
|
13799
|
-
origin: EventPosition_2
|
|
13939
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
13800
13940
|
}
|
|
13801
13941
|
},
|
|
13802
13942
|
| {
|
|
@@ -13867,6 +14007,10 @@ declare const editorMachine: StateMachine<
|
|
|
13867
14007
|
| {
|
|
13868
14008
|
type: 'decorator.toggle'
|
|
13869
14009
|
decorator: string
|
|
14010
|
+
offsets?: {
|
|
14011
|
+
anchor: BlockOffset
|
|
14012
|
+
focus: BlockOffset
|
|
14013
|
+
}
|
|
13870
14014
|
}
|
|
13871
14015
|
| {
|
|
13872
14016
|
type: 'delete'
|
|
@@ -14175,7 +14319,7 @@ declare const editorMachine: StateMachine<
|
|
|
14175
14319
|
}
|
|
14176
14320
|
| {
|
|
14177
14321
|
type: 'dragstart'
|
|
14178
|
-
origin: EventPosition_2
|
|
14322
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
14179
14323
|
ghost?: HTMLElement
|
|
14180
14324
|
}
|
|
14181
14325
|
| {
|
|
@@ -14247,6 +14391,10 @@ declare const editorMachine: StateMachine<
|
|
|
14247
14391
|
| {
|
|
14248
14392
|
type: 'decorator.toggle'
|
|
14249
14393
|
decorator: string
|
|
14394
|
+
offsets?: {
|
|
14395
|
+
anchor: BlockOffset
|
|
14396
|
+
focus: BlockOffset
|
|
14397
|
+
}
|
|
14250
14398
|
}
|
|
14251
14399
|
| {
|
|
14252
14400
|
type: 'delete'
|
|
@@ -14499,7 +14647,7 @@ declare const editorMachine: StateMachine<
|
|
|
14499
14647
|
value: Array<PortableTextBlock> | undefined
|
|
14500
14648
|
internalDrag?: {
|
|
14501
14649
|
ghost?: HTMLElement
|
|
14502
|
-
origin: EventPosition_2
|
|
14650
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
14503
14651
|
}
|
|
14504
14652
|
},
|
|
14505
14653
|
{
|
|
@@ -14563,6 +14711,10 @@ declare const editorMachine: StateMachine<
|
|
|
14563
14711
|
| {
|
|
14564
14712
|
type: 'decorator.toggle'
|
|
14565
14713
|
decorator: string
|
|
14714
|
+
offsets?: {
|
|
14715
|
+
anchor: BlockOffset
|
|
14716
|
+
focus: BlockOffset
|
|
14717
|
+
}
|
|
14566
14718
|
}
|
|
14567
14719
|
| {
|
|
14568
14720
|
type: 'delete'
|
|
@@ -14871,7 +15023,7 @@ declare const editorMachine: StateMachine<
|
|
|
14871
15023
|
}
|
|
14872
15024
|
| {
|
|
14873
15025
|
type: 'dragstart'
|
|
14874
|
-
origin: EventPosition_2
|
|
15026
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
14875
15027
|
ghost?: HTMLElement
|
|
14876
15028
|
}
|
|
14877
15029
|
| {
|
|
@@ -14943,6 +15095,10 @@ declare const editorMachine: StateMachine<
|
|
|
14943
15095
|
| {
|
|
14944
15096
|
type: 'decorator.toggle'
|
|
14945
15097
|
decorator: string
|
|
15098
|
+
offsets?: {
|
|
15099
|
+
anchor: BlockOffset
|
|
15100
|
+
focus: BlockOffset
|
|
15101
|
+
}
|
|
14946
15102
|
}
|
|
14947
15103
|
| {
|
|
14948
15104
|
type: 'delete'
|
|
@@ -15195,7 +15351,7 @@ declare const editorMachine: StateMachine<
|
|
|
15195
15351
|
value: Array<PortableTextBlock> | undefined
|
|
15196
15352
|
internalDrag?: {
|
|
15197
15353
|
ghost?: HTMLElement
|
|
15198
|
-
origin: EventPosition_2
|
|
15354
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
15199
15355
|
}
|
|
15200
15356
|
},
|
|
15201
15357
|
{
|
|
@@ -15259,6 +15415,10 @@ declare const editorMachine: StateMachine<
|
|
|
15259
15415
|
| {
|
|
15260
15416
|
type: 'decorator.toggle'
|
|
15261
15417
|
decorator: string
|
|
15418
|
+
offsets?: {
|
|
15419
|
+
anchor: BlockOffset
|
|
15420
|
+
focus: BlockOffset
|
|
15421
|
+
}
|
|
15262
15422
|
}
|
|
15263
15423
|
| {
|
|
15264
15424
|
type: 'delete'
|
|
@@ -15567,7 +15727,7 @@ declare const editorMachine: StateMachine<
|
|
|
15567
15727
|
}
|
|
15568
15728
|
| {
|
|
15569
15729
|
type: 'dragstart'
|
|
15570
|
-
origin: EventPosition_2
|
|
15730
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
15571
15731
|
ghost?: HTMLElement
|
|
15572
15732
|
}
|
|
15573
15733
|
| {
|
|
@@ -15639,6 +15799,10 @@ declare const editorMachine: StateMachine<
|
|
|
15639
15799
|
| {
|
|
15640
15800
|
type: 'decorator.toggle'
|
|
15641
15801
|
decorator: string
|
|
15802
|
+
offsets?: {
|
|
15803
|
+
anchor: BlockOffset
|
|
15804
|
+
focus: BlockOffset
|
|
15805
|
+
}
|
|
15642
15806
|
}
|
|
15643
15807
|
| {
|
|
15644
15808
|
type: 'delete'
|
|
@@ -15891,7 +16055,7 @@ declare const editorMachine: StateMachine<
|
|
|
15891
16055
|
value: Array<PortableTextBlock> | undefined
|
|
15892
16056
|
internalDrag?: {
|
|
15893
16057
|
ghost?: HTMLElement
|
|
15894
|
-
origin: EventPosition_2
|
|
16058
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
15895
16059
|
}
|
|
15896
16060
|
},
|
|
15897
16061
|
| {
|
|
@@ -15909,6 +16073,10 @@ declare const editorMachine: StateMachine<
|
|
|
15909
16073
|
| {
|
|
15910
16074
|
type: 'decorator.toggle'
|
|
15911
16075
|
decorator: string
|
|
16076
|
+
offsets?: {
|
|
16077
|
+
anchor: BlockOffset
|
|
16078
|
+
focus: BlockOffset
|
|
16079
|
+
}
|
|
15912
16080
|
},
|
|
15913
16081
|
| {
|
|
15914
16082
|
type: 'annotation.add'
|
|
@@ -15968,6 +16136,10 @@ declare const editorMachine: StateMachine<
|
|
|
15968
16136
|
| {
|
|
15969
16137
|
type: 'decorator.toggle'
|
|
15970
16138
|
decorator: string
|
|
16139
|
+
offsets?: {
|
|
16140
|
+
anchor: BlockOffset
|
|
16141
|
+
focus: BlockOffset
|
|
16142
|
+
}
|
|
15971
16143
|
}
|
|
15972
16144
|
| {
|
|
15973
16145
|
type: 'delete'
|
|
@@ -16276,7 +16448,7 @@ declare const editorMachine: StateMachine<
|
|
|
16276
16448
|
}
|
|
16277
16449
|
| {
|
|
16278
16450
|
type: 'dragstart'
|
|
16279
|
-
origin: EventPosition_2
|
|
16451
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
16280
16452
|
ghost?: HTMLElement
|
|
16281
16453
|
}
|
|
16282
16454
|
| {
|
|
@@ -16348,6 +16520,10 @@ declare const editorMachine: StateMachine<
|
|
|
16348
16520
|
| {
|
|
16349
16521
|
type: 'decorator.toggle'
|
|
16350
16522
|
decorator: string
|
|
16523
|
+
offsets?: {
|
|
16524
|
+
anchor: BlockOffset
|
|
16525
|
+
focus: BlockOffset
|
|
16526
|
+
}
|
|
16351
16527
|
}
|
|
16352
16528
|
| {
|
|
16353
16529
|
type: 'delete'
|
|
@@ -16600,7 +16776,7 @@ declare const editorMachine: StateMachine<
|
|
|
16600
16776
|
value: Array<PortableTextBlock> | undefined
|
|
16601
16777
|
internalDrag?: {
|
|
16602
16778
|
ghost?: HTMLElement
|
|
16603
|
-
origin: EventPosition_2
|
|
16779
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
16604
16780
|
}
|
|
16605
16781
|
},
|
|
16606
16782
|
| {
|
|
@@ -16678,6 +16854,10 @@ declare const editorMachine: StateMachine<
|
|
|
16678
16854
|
| {
|
|
16679
16855
|
type: 'decorator.toggle'
|
|
16680
16856
|
decorator: string
|
|
16857
|
+
offsets?: {
|
|
16858
|
+
anchor: BlockOffset
|
|
16859
|
+
focus: BlockOffset
|
|
16860
|
+
}
|
|
16681
16861
|
}
|
|
16682
16862
|
| {
|
|
16683
16863
|
type: 'delete'
|
|
@@ -16986,7 +17166,7 @@ declare const editorMachine: StateMachine<
|
|
|
16986
17166
|
}
|
|
16987
17167
|
| {
|
|
16988
17168
|
type: 'dragstart'
|
|
16989
|
-
origin: EventPosition_2
|
|
17169
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
16990
17170
|
ghost?: HTMLElement
|
|
16991
17171
|
}
|
|
16992
17172
|
| {
|
|
@@ -17058,6 +17238,10 @@ declare const editorMachine: StateMachine<
|
|
|
17058
17238
|
| {
|
|
17059
17239
|
type: 'decorator.toggle'
|
|
17060
17240
|
decorator: string
|
|
17241
|
+
offsets?: {
|
|
17242
|
+
anchor: BlockOffset
|
|
17243
|
+
focus: BlockOffset
|
|
17244
|
+
}
|
|
17061
17245
|
}
|
|
17062
17246
|
| {
|
|
17063
17247
|
type: 'delete'
|
|
@@ -17310,7 +17494,7 @@ declare const editorMachine: StateMachine<
|
|
|
17310
17494
|
value: Array<PortableTextBlock> | undefined
|
|
17311
17495
|
internalDrag?: {
|
|
17312
17496
|
ghost?: HTMLElement
|
|
17313
|
-
origin: EventPosition_2
|
|
17497
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
17314
17498
|
}
|
|
17315
17499
|
},
|
|
17316
17500
|
{
|
|
@@ -17374,6 +17558,10 @@ declare const editorMachine: StateMachine<
|
|
|
17374
17558
|
| {
|
|
17375
17559
|
type: 'decorator.toggle'
|
|
17376
17560
|
decorator: string
|
|
17561
|
+
offsets?: {
|
|
17562
|
+
anchor: BlockOffset
|
|
17563
|
+
focus: BlockOffset
|
|
17564
|
+
}
|
|
17377
17565
|
}
|
|
17378
17566
|
| {
|
|
17379
17567
|
type: 'delete'
|
|
@@ -17682,7 +17870,7 @@ declare const editorMachine: StateMachine<
|
|
|
17682
17870
|
}
|
|
17683
17871
|
| {
|
|
17684
17872
|
type: 'dragstart'
|
|
17685
|
-
origin: EventPosition_2
|
|
17873
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
17686
17874
|
ghost?: HTMLElement
|
|
17687
17875
|
}
|
|
17688
17876
|
| {
|
|
@@ -17754,6 +17942,10 @@ declare const editorMachine: StateMachine<
|
|
|
17754
17942
|
| {
|
|
17755
17943
|
type: 'decorator.toggle'
|
|
17756
17944
|
decorator: string
|
|
17945
|
+
offsets?: {
|
|
17946
|
+
anchor: BlockOffset
|
|
17947
|
+
focus: BlockOffset
|
|
17948
|
+
}
|
|
17757
17949
|
}
|
|
17758
17950
|
| {
|
|
17759
17951
|
type: 'delete'
|
|
@@ -18006,7 +18198,7 @@ declare const editorMachine: StateMachine<
|
|
|
18006
18198
|
value: Array<PortableTextBlock> | undefined
|
|
18007
18199
|
internalDrag?: {
|
|
18008
18200
|
ghost?: HTMLElement
|
|
18009
|
-
origin: EventPosition_2
|
|
18201
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
18010
18202
|
}
|
|
18011
18203
|
},
|
|
18012
18204
|
| {
|
|
@@ -18073,6 +18265,10 @@ declare const editorMachine: StateMachine<
|
|
|
18073
18265
|
| {
|
|
18074
18266
|
type: 'decorator.toggle'
|
|
18075
18267
|
decorator: string
|
|
18268
|
+
offsets?: {
|
|
18269
|
+
anchor: BlockOffset
|
|
18270
|
+
focus: BlockOffset
|
|
18271
|
+
}
|
|
18076
18272
|
}
|
|
18077
18273
|
| {
|
|
18078
18274
|
type: 'delete'
|
|
@@ -18381,7 +18577,7 @@ declare const editorMachine: StateMachine<
|
|
|
18381
18577
|
}
|
|
18382
18578
|
| {
|
|
18383
18579
|
type: 'dragstart'
|
|
18384
|
-
origin: EventPosition_2
|
|
18580
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
18385
18581
|
ghost?: HTMLElement
|
|
18386
18582
|
}
|
|
18387
18583
|
| {
|
|
@@ -18453,6 +18649,10 @@ declare const editorMachine: StateMachine<
|
|
|
18453
18649
|
| {
|
|
18454
18650
|
type: 'decorator.toggle'
|
|
18455
18651
|
decorator: string
|
|
18652
|
+
offsets?: {
|
|
18653
|
+
anchor: BlockOffset
|
|
18654
|
+
focus: BlockOffset
|
|
18655
|
+
}
|
|
18456
18656
|
}
|
|
18457
18657
|
| {
|
|
18458
18658
|
type: 'delete'
|
|
@@ -18705,7 +18905,7 @@ declare const editorMachine: StateMachine<
|
|
|
18705
18905
|
value: Array<PortableTextBlock> | undefined
|
|
18706
18906
|
internalDrag?: {
|
|
18707
18907
|
ghost?: HTMLElement
|
|
18708
|
-
origin: EventPosition_2
|
|
18908
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
18709
18909
|
}
|
|
18710
18910
|
},
|
|
18711
18911
|
| {
|
|
@@ -18825,6 +19025,10 @@ declare const editorMachine: StateMachine<
|
|
|
18825
19025
|
| {
|
|
18826
19026
|
type: 'decorator.toggle'
|
|
18827
19027
|
decorator: string
|
|
19028
|
+
offsets?: {
|
|
19029
|
+
anchor: BlockOffset
|
|
19030
|
+
focus: BlockOffset
|
|
19031
|
+
}
|
|
18828
19032
|
}
|
|
18829
19033
|
| {
|
|
18830
19034
|
type: 'delete'
|
|
@@ -19133,7 +19337,7 @@ declare const editorMachine: StateMachine<
|
|
|
19133
19337
|
}
|
|
19134
19338
|
| {
|
|
19135
19339
|
type: 'dragstart'
|
|
19136
|
-
origin: EventPosition_2
|
|
19340
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
19137
19341
|
ghost?: HTMLElement
|
|
19138
19342
|
}
|
|
19139
19343
|
| {
|
|
@@ -19205,6 +19409,10 @@ declare const editorMachine: StateMachine<
|
|
|
19205
19409
|
| {
|
|
19206
19410
|
type: 'decorator.toggle'
|
|
19207
19411
|
decorator: string
|
|
19412
|
+
offsets?: {
|
|
19413
|
+
anchor: BlockOffset
|
|
19414
|
+
focus: BlockOffset
|
|
19415
|
+
}
|
|
19208
19416
|
}
|
|
19209
19417
|
| {
|
|
19210
19418
|
type: 'delete'
|
|
@@ -19457,7 +19665,7 @@ declare const editorMachine: StateMachine<
|
|
|
19457
19665
|
value: Array<PortableTextBlock> | undefined
|
|
19458
19666
|
internalDrag?: {
|
|
19459
19667
|
ghost?: HTMLElement
|
|
19460
|
-
origin: EventPosition_2
|
|
19668
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
19461
19669
|
}
|
|
19462
19670
|
},
|
|
19463
19671
|
| {
|
|
@@ -19530,6 +19738,10 @@ declare const editorMachine: StateMachine<
|
|
|
19530
19738
|
| {
|
|
19531
19739
|
type: 'decorator.toggle'
|
|
19532
19740
|
decorator: string
|
|
19741
|
+
offsets?: {
|
|
19742
|
+
anchor: BlockOffset
|
|
19743
|
+
focus: BlockOffset
|
|
19744
|
+
}
|
|
19533
19745
|
}
|
|
19534
19746
|
| {
|
|
19535
19747
|
type: 'delete'
|
|
@@ -19838,7 +20050,7 @@ declare const editorMachine: StateMachine<
|
|
|
19838
20050
|
}
|
|
19839
20051
|
| {
|
|
19840
20052
|
type: 'dragstart'
|
|
19841
|
-
origin: EventPosition_2
|
|
20053
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
19842
20054
|
ghost?: HTMLElement
|
|
19843
20055
|
}
|
|
19844
20056
|
| {
|
|
@@ -19910,6 +20122,10 @@ declare const editorMachine: StateMachine<
|
|
|
19910
20122
|
| {
|
|
19911
20123
|
type: 'decorator.toggle'
|
|
19912
20124
|
decorator: string
|
|
20125
|
+
offsets?: {
|
|
20126
|
+
anchor: BlockOffset
|
|
20127
|
+
focus: BlockOffset
|
|
20128
|
+
}
|
|
19913
20129
|
}
|
|
19914
20130
|
| {
|
|
19915
20131
|
type: 'delete'
|
|
@@ -20162,7 +20378,7 @@ declare const editorMachine: StateMachine<
|
|
|
20162
20378
|
value: Array<PortableTextBlock> | undefined
|
|
20163
20379
|
internalDrag?: {
|
|
20164
20380
|
ghost?: HTMLElement
|
|
20165
|
-
origin: EventPosition_2
|
|
20381
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
20166
20382
|
}
|
|
20167
20383
|
},
|
|
20168
20384
|
| {
|
|
@@ -20236,6 +20452,10 @@ declare const editorMachine: StateMachine<
|
|
|
20236
20452
|
| {
|
|
20237
20453
|
type: 'decorator.toggle'
|
|
20238
20454
|
decorator: string
|
|
20455
|
+
offsets?: {
|
|
20456
|
+
anchor: BlockOffset
|
|
20457
|
+
focus: BlockOffset
|
|
20458
|
+
}
|
|
20239
20459
|
}
|
|
20240
20460
|
| {
|
|
20241
20461
|
type: 'delete'
|
|
@@ -20544,7 +20764,7 @@ declare const editorMachine: StateMachine<
|
|
|
20544
20764
|
}
|
|
20545
20765
|
| {
|
|
20546
20766
|
type: 'dragstart'
|
|
20547
|
-
origin: EventPosition_2
|
|
20767
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
20548
20768
|
ghost?: HTMLElement
|
|
20549
20769
|
}
|
|
20550
20770
|
| {
|
|
@@ -20616,6 +20836,10 @@ declare const editorMachine: StateMachine<
|
|
|
20616
20836
|
| {
|
|
20617
20837
|
type: 'decorator.toggle'
|
|
20618
20838
|
decorator: string
|
|
20839
|
+
offsets?: {
|
|
20840
|
+
anchor: BlockOffset
|
|
20841
|
+
focus: BlockOffset
|
|
20842
|
+
}
|
|
20619
20843
|
}
|
|
20620
20844
|
| {
|
|
20621
20845
|
type: 'delete'
|
|
@@ -20868,7 +21092,7 @@ declare const editorMachine: StateMachine<
|
|
|
20868
21092
|
value: Array<PortableTextBlock> | undefined
|
|
20869
21093
|
internalDrag?: {
|
|
20870
21094
|
ghost?: HTMLElement
|
|
20871
|
-
origin: EventPosition_2
|
|
21095
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
20872
21096
|
}
|
|
20873
21097
|
},
|
|
20874
21098
|
{
|
|
@@ -20933,6 +21157,10 @@ declare const editorMachine: StateMachine<
|
|
|
20933
21157
|
| {
|
|
20934
21158
|
type: 'decorator.toggle'
|
|
20935
21159
|
decorator: string
|
|
21160
|
+
offsets?: {
|
|
21161
|
+
anchor: BlockOffset
|
|
21162
|
+
focus: BlockOffset
|
|
21163
|
+
}
|
|
20936
21164
|
}
|
|
20937
21165
|
| {
|
|
20938
21166
|
type: 'delete'
|
|
@@ -21241,7 +21469,7 @@ declare const editorMachine: StateMachine<
|
|
|
21241
21469
|
}
|
|
21242
21470
|
| {
|
|
21243
21471
|
type: 'dragstart'
|
|
21244
|
-
origin: EventPosition_2
|
|
21472
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
21245
21473
|
ghost?: HTMLElement
|
|
21246
21474
|
}
|
|
21247
21475
|
| {
|
|
@@ -21313,6 +21541,10 @@ declare const editorMachine: StateMachine<
|
|
|
21313
21541
|
| {
|
|
21314
21542
|
type: 'decorator.toggle'
|
|
21315
21543
|
decorator: string
|
|
21544
|
+
offsets?: {
|
|
21545
|
+
anchor: BlockOffset
|
|
21546
|
+
focus: BlockOffset
|
|
21547
|
+
}
|
|
21316
21548
|
}
|
|
21317
21549
|
| {
|
|
21318
21550
|
type: 'delete'
|
|
@@ -21565,7 +21797,7 @@ declare const editorMachine: StateMachine<
|
|
|
21565
21797
|
value: Array<PortableTextBlock> | undefined
|
|
21566
21798
|
internalDrag?: {
|
|
21567
21799
|
ghost?: HTMLElement
|
|
21568
|
-
origin: EventPosition_2
|
|
21800
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
21569
21801
|
}
|
|
21570
21802
|
},
|
|
21571
21803
|
| {
|
|
@@ -21634,6 +21866,10 @@ declare const editorMachine: StateMachine<
|
|
|
21634
21866
|
| {
|
|
21635
21867
|
type: 'decorator.toggle'
|
|
21636
21868
|
decorator: string
|
|
21869
|
+
offsets?: {
|
|
21870
|
+
anchor: BlockOffset
|
|
21871
|
+
focus: BlockOffset
|
|
21872
|
+
}
|
|
21637
21873
|
}
|
|
21638
21874
|
| {
|
|
21639
21875
|
type: 'delete'
|
|
@@ -21942,7 +22178,7 @@ declare const editorMachine: StateMachine<
|
|
|
21942
22178
|
}
|
|
21943
22179
|
| {
|
|
21944
22180
|
type: 'dragstart'
|
|
21945
|
-
origin: EventPosition_2
|
|
22181
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
21946
22182
|
ghost?: HTMLElement
|
|
21947
22183
|
}
|
|
21948
22184
|
| {
|
|
@@ -22014,6 +22250,10 @@ declare const editorMachine: StateMachine<
|
|
|
22014
22250
|
| {
|
|
22015
22251
|
type: 'decorator.toggle'
|
|
22016
22252
|
decorator: string
|
|
22253
|
+
offsets?: {
|
|
22254
|
+
anchor: BlockOffset
|
|
22255
|
+
focus: BlockOffset
|
|
22256
|
+
}
|
|
22017
22257
|
}
|
|
22018
22258
|
| {
|
|
22019
22259
|
type: 'delete'
|
|
@@ -22266,7 +22506,7 @@ declare const editorMachine: StateMachine<
|
|
|
22266
22506
|
value: Array<PortableTextBlock> | undefined
|
|
22267
22507
|
internalDrag?: {
|
|
22268
22508
|
ghost?: HTMLElement
|
|
22269
|
-
origin: EventPosition_2
|
|
22509
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
22270
22510
|
}
|
|
22271
22511
|
},
|
|
22272
22512
|
| {
|
|
@@ -22339,6 +22579,10 @@ declare const editorMachine: StateMachine<
|
|
|
22339
22579
|
| {
|
|
22340
22580
|
type: 'decorator.toggle'
|
|
22341
22581
|
decorator: string
|
|
22582
|
+
offsets?: {
|
|
22583
|
+
anchor: BlockOffset
|
|
22584
|
+
focus: BlockOffset
|
|
22585
|
+
}
|
|
22342
22586
|
}
|
|
22343
22587
|
| {
|
|
22344
22588
|
type: 'delete'
|
|
@@ -22647,7 +22891,7 @@ declare const editorMachine: StateMachine<
|
|
|
22647
22891
|
}
|
|
22648
22892
|
| {
|
|
22649
22893
|
type: 'dragstart'
|
|
22650
|
-
origin: EventPosition_2
|
|
22894
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
22651
22895
|
ghost?: HTMLElement
|
|
22652
22896
|
}
|
|
22653
22897
|
| {
|
|
@@ -22719,6 +22963,10 @@ declare const editorMachine: StateMachine<
|
|
|
22719
22963
|
| {
|
|
22720
22964
|
type: 'decorator.toggle'
|
|
22721
22965
|
decorator: string
|
|
22966
|
+
offsets?: {
|
|
22967
|
+
anchor: BlockOffset
|
|
22968
|
+
focus: BlockOffset
|
|
22969
|
+
}
|
|
22722
22970
|
}
|
|
22723
22971
|
| {
|
|
22724
22972
|
type: 'delete'
|
|
@@ -22992,12 +23240,12 @@ declare const editorMachine: StateMachine<
|
|
|
22992
23240
|
value: Array<PortableTextBlock> | undefined
|
|
22993
23241
|
internalDrag?: {
|
|
22994
23242
|
ghost?: HTMLElement
|
|
22995
|
-
origin: EventPosition_2
|
|
23243
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
22996
23244
|
}
|
|
22997
23245
|
},
|
|
22998
23246
|
{
|
|
22999
23247
|
type: 'dragstart'
|
|
23000
|
-
origin: EventPosition_2
|
|
23248
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
23001
23249
|
ghost?: HTMLElement
|
|
23002
23250
|
},
|
|
23003
23251
|
| {
|
|
@@ -23058,6 +23306,10 @@ declare const editorMachine: StateMachine<
|
|
|
23058
23306
|
| {
|
|
23059
23307
|
type: 'decorator.toggle'
|
|
23060
23308
|
decorator: string
|
|
23309
|
+
offsets?: {
|
|
23310
|
+
anchor: BlockOffset
|
|
23311
|
+
focus: BlockOffset
|
|
23312
|
+
}
|
|
23061
23313
|
}
|
|
23062
23314
|
| {
|
|
23063
23315
|
type: 'delete'
|
|
@@ -23370,7 +23622,7 @@ declare const editorMachine: StateMachine<
|
|
|
23370
23622
|
}
|
|
23371
23623
|
| {
|
|
23372
23624
|
type: 'dragstart'
|
|
23373
|
-
origin: EventPosition_2
|
|
23625
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
23374
23626
|
ghost?: HTMLElement
|
|
23375
23627
|
}
|
|
23376
23628
|
| {
|
|
@@ -23408,7 +23660,7 @@ declare const editorMachine: StateMachine<
|
|
|
23408
23660
|
value: Array<PortableTextBlock> | undefined
|
|
23409
23661
|
internalDrag?: {
|
|
23410
23662
|
ghost?: HTMLElement
|
|
23411
|
-
origin: EventPosition_2
|
|
23663
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
23412
23664
|
}
|
|
23413
23665
|
},
|
|
23414
23666
|
| {
|
|
@@ -23469,6 +23721,10 @@ declare const editorMachine: StateMachine<
|
|
|
23469
23721
|
| {
|
|
23470
23722
|
type: 'decorator.toggle'
|
|
23471
23723
|
decorator: string
|
|
23724
|
+
offsets?: {
|
|
23725
|
+
anchor: BlockOffset
|
|
23726
|
+
focus: BlockOffset
|
|
23727
|
+
}
|
|
23472
23728
|
}
|
|
23473
23729
|
| {
|
|
23474
23730
|
type: 'delete'
|
|
@@ -23777,7 +24033,7 @@ declare const editorMachine: StateMachine<
|
|
|
23777
24033
|
}
|
|
23778
24034
|
| {
|
|
23779
24035
|
type: 'dragstart'
|
|
23780
|
-
origin: EventPosition_2
|
|
24036
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
23781
24037
|
ghost?: HTMLElement
|
|
23782
24038
|
}
|
|
23783
24039
|
| {
|
|
@@ -23844,6 +24100,10 @@ declare const editorMachine: StateMachine<
|
|
|
23844
24100
|
| {
|
|
23845
24101
|
type: 'decorator.toggle'
|
|
23846
24102
|
decorator: string
|
|
24103
|
+
offsets?: {
|
|
24104
|
+
anchor: BlockOffset
|
|
24105
|
+
focus: BlockOffset
|
|
24106
|
+
}
|
|
23847
24107
|
}
|
|
23848
24108
|
| {
|
|
23849
24109
|
type: 'delete'
|
|
@@ -24152,7 +24412,7 @@ declare const editorMachine: StateMachine<
|
|
|
24152
24412
|
}
|
|
24153
24413
|
| {
|
|
24154
24414
|
type: 'dragstart'
|
|
24155
|
-
origin: EventPosition_2
|
|
24415
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
24156
24416
|
ghost?: HTMLElement
|
|
24157
24417
|
}
|
|
24158
24418
|
| {
|
|
@@ -24175,7 +24435,7 @@ declare const editorMachine: StateMachine<
|
|
|
24175
24435
|
value: Array<PortableTextBlock> | undefined
|
|
24176
24436
|
internalDrag?: {
|
|
24177
24437
|
ghost?: HTMLElement
|
|
24178
|
-
origin: EventPosition_2
|
|
24438
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
24179
24439
|
}
|
|
24180
24440
|
},
|
|
24181
24441
|
| {
|
|
@@ -24236,6 +24496,10 @@ declare const editorMachine: StateMachine<
|
|
|
24236
24496
|
| {
|
|
24237
24497
|
type: 'decorator.toggle'
|
|
24238
24498
|
decorator: string
|
|
24499
|
+
offsets?: {
|
|
24500
|
+
anchor: BlockOffset
|
|
24501
|
+
focus: BlockOffset
|
|
24502
|
+
}
|
|
24239
24503
|
}
|
|
24240
24504
|
| {
|
|
24241
24505
|
type: 'delete'
|
|
@@ -24544,7 +24808,7 @@ declare const editorMachine: StateMachine<
|
|
|
24544
24808
|
}
|
|
24545
24809
|
| {
|
|
24546
24810
|
type: 'dragstart'
|
|
24547
|
-
origin: EventPosition_2
|
|
24811
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
24548
24812
|
ghost?: HTMLElement
|
|
24549
24813
|
}
|
|
24550
24814
|
| {
|
|
@@ -24611,6 +24875,10 @@ declare const editorMachine: StateMachine<
|
|
|
24611
24875
|
| {
|
|
24612
24876
|
type: 'decorator.toggle'
|
|
24613
24877
|
decorator: string
|
|
24878
|
+
offsets?: {
|
|
24879
|
+
anchor: BlockOffset
|
|
24880
|
+
focus: BlockOffset
|
|
24881
|
+
}
|
|
24614
24882
|
}
|
|
24615
24883
|
| {
|
|
24616
24884
|
type: 'delete'
|
|
@@ -24919,7 +25187,7 @@ declare const editorMachine: StateMachine<
|
|
|
24919
25187
|
}
|
|
24920
25188
|
| {
|
|
24921
25189
|
type: 'dragstart'
|
|
24922
|
-
origin: EventPosition_2
|
|
25190
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
24923
25191
|
ghost?: HTMLElement
|
|
24924
25192
|
}
|
|
24925
25193
|
| {
|
|
@@ -25051,7 +25319,7 @@ declare type EditorSnapshot = {
|
|
|
25051
25319
|
hasTag: HasTag
|
|
25052
25320
|
internalDrag:
|
|
25053
25321
|
| {
|
|
25054
|
-
origin: EventPosition_2
|
|
25322
|
+
origin: Pick<EventPosition_2, 'selection'>
|
|
25055
25323
|
}
|
|
25056
25324
|
| undefined
|
|
25057
25325
|
}
|
|
@@ -25398,6 +25666,10 @@ export declare type SyntheticBehaviorEvent =
|
|
|
25398
25666
|
| {
|
|
25399
25667
|
type: 'decorator.toggle'
|
|
25400
25668
|
decorator: string
|
|
25669
|
+
offsets?: {
|
|
25670
|
+
anchor: BlockOffset_2
|
|
25671
|
+
focus: BlockOffset_2
|
|
25672
|
+
}
|
|
25401
25673
|
}
|
|
25402
25674
|
| {
|
|
25403
25675
|
type: 'delete'
|