@portabletext/editor 1.47.2 → 1.47.4
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/editor-provider.cjs +125 -100
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/editor-provider.js +126 -101
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/behaviors/index.d.cts +404 -543
- package/lib/behaviors/index.d.ts +404 -543
- package/lib/index.cjs +9 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +411 -34
- package/lib/index.d.ts +411 -34
- package/lib/index.js +9 -6
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.d.cts +411 -34
- package/lib/plugins/index.d.ts +411 -34
- package/lib/selectors/index.d.cts +404 -33
- package/lib/selectors/index.d.ts +404 -33
- package/lib/utils/index.d.cts +404 -33
- package/lib/utils/index.d.ts +404 -33
- package/package.json +3 -3
- package/src/behavior-actions/behavior.action.insert.text.ts +10 -1
- package/src/behavior-actions/behavior.actions.ts +0 -18
- package/src/behaviors/behavior.perform-event.ts +55 -65
- package/src/behaviors/behavior.types.event.ts +7 -9
- package/src/editor/Editable.tsx +18 -13
- package/src/editor/create-editor.ts +14 -0
- package/src/editor/editor-machine.ts +76 -5
- package/src/editor/plugins/create-with-event-listeners.ts +0 -6
- package/src/editor/plugins/createWithEditableAPI.ts +2 -8
- package/src/editor/with-applying-behavior-actions.ts +2 -2
- package/src/behavior-actions/behavior.action.blur.ts +0 -8
- package/src/behavior-actions/behavior.action.focus.ts +0 -8
package/lib/selectors/index.d.ts
CHANGED
|
@@ -592,6 +592,7 @@ declare const editorMachine: StateMachine<
|
|
|
592
592
|
ghost?: HTMLElement
|
|
593
593
|
origin: Pick<EventPosition, 'selection'>
|
|
594
594
|
}
|
|
595
|
+
slateEditor?: PortableTextSlateEditor
|
|
595
596
|
},
|
|
596
597
|
| InternalPatchEvent
|
|
597
598
|
| MutationEvent
|
|
@@ -628,6 +629,14 @@ declare const editorMachine: StateMachine<
|
|
|
628
629
|
maxBlocks: number | undefined
|
|
629
630
|
}
|
|
630
631
|
| PatchesEvent
|
|
632
|
+
| {
|
|
633
|
+
type: 'blur'
|
|
634
|
+
editor: PortableTextSlateEditor
|
|
635
|
+
}
|
|
636
|
+
| {
|
|
637
|
+
type: 'focus'
|
|
638
|
+
editor: PortableTextSlateEditor
|
|
639
|
+
}
|
|
631
640
|
| {
|
|
632
641
|
type: 'normalizing'
|
|
633
642
|
}
|
|
@@ -641,7 +650,6 @@ declare const editorMachine: StateMachine<
|
|
|
641
650
|
type: 'behavior event'
|
|
642
651
|
behaviorEvent: BehaviorEvent
|
|
643
652
|
editor: PortableTextSlateEditor
|
|
644
|
-
defaultActionCallback?: () => void
|
|
645
653
|
nativeEvent?: {
|
|
646
654
|
preventDefault: () => void
|
|
647
655
|
}
|
|
@@ -764,17 +772,33 @@ declare const editorMachine: StateMachine<
|
|
|
764
772
|
type: 'clear pending events'
|
|
765
773
|
params: NonReducibleUnknown
|
|
766
774
|
}
|
|
775
|
+
'handle blur': {
|
|
776
|
+
type: 'handle blur'
|
|
777
|
+
params: unknown
|
|
778
|
+
}
|
|
779
|
+
'handle focus': {
|
|
780
|
+
type: 'handle focus'
|
|
781
|
+
params: unknown
|
|
782
|
+
}
|
|
767
783
|
'handle behavior event': {
|
|
768
784
|
type: 'handle behavior event'
|
|
769
785
|
params: unknown
|
|
770
786
|
}
|
|
771
787
|
}>,
|
|
772
|
-
|
|
788
|
+
{
|
|
789
|
+
type: 'slate is busy'
|
|
790
|
+
params: unknown
|
|
791
|
+
},
|
|
773
792
|
never,
|
|
774
793
|
{
|
|
775
794
|
'edit mode':
|
|
776
795
|
| {
|
|
777
|
-
editable:
|
|
796
|
+
editable:
|
|
797
|
+
| 'dragging internally'
|
|
798
|
+
| 'idle'
|
|
799
|
+
| {
|
|
800
|
+
focusing: 'checking if busy' | 'busy'
|
|
801
|
+
}
|
|
778
802
|
}
|
|
779
803
|
| {
|
|
780
804
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -897,6 +921,7 @@ declare const editorMachine: StateMachine<
|
|
|
897
921
|
ghost?: HTMLElement
|
|
898
922
|
origin: Pick<EventPosition, 'selection'>
|
|
899
923
|
}
|
|
924
|
+
slateEditor?: PortableTextSlateEditor
|
|
900
925
|
},
|
|
901
926
|
| InternalPatchEvent
|
|
902
927
|
| MutationEvent
|
|
@@ -933,6 +958,14 @@ declare const editorMachine: StateMachine<
|
|
|
933
958
|
maxBlocks: number | undefined
|
|
934
959
|
}
|
|
935
960
|
| PatchesEvent
|
|
961
|
+
| {
|
|
962
|
+
type: 'blur'
|
|
963
|
+
editor: PortableTextSlateEditor
|
|
964
|
+
}
|
|
965
|
+
| {
|
|
966
|
+
type: 'focus'
|
|
967
|
+
editor: PortableTextSlateEditor
|
|
968
|
+
}
|
|
936
969
|
| {
|
|
937
970
|
type: 'normalizing'
|
|
938
971
|
}
|
|
@@ -946,7 +979,6 @@ declare const editorMachine: StateMachine<
|
|
|
946
979
|
type: 'behavior event'
|
|
947
980
|
behaviorEvent: BehaviorEvent
|
|
948
981
|
editor: PortableTextSlateEditor
|
|
949
|
-
defaultActionCallback?: () => void
|
|
950
982
|
nativeEvent?: {
|
|
951
983
|
preventDefault: () => void
|
|
952
984
|
}
|
|
@@ -1060,6 +1092,14 @@ declare const editorMachine: StateMachine<
|
|
|
1060
1092
|
maxBlocks: number | undefined
|
|
1061
1093
|
}
|
|
1062
1094
|
| PatchesEvent
|
|
1095
|
+
| {
|
|
1096
|
+
type: 'blur'
|
|
1097
|
+
editor: PortableTextSlateEditor
|
|
1098
|
+
}
|
|
1099
|
+
| {
|
|
1100
|
+
type: 'focus'
|
|
1101
|
+
editor: PortableTextSlateEditor
|
|
1102
|
+
}
|
|
1063
1103
|
| {
|
|
1064
1104
|
type: 'normalizing'
|
|
1065
1105
|
}
|
|
@@ -1073,7 +1113,6 @@ declare const editorMachine: StateMachine<
|
|
|
1073
1113
|
type: 'behavior event'
|
|
1074
1114
|
behaviorEvent: BehaviorEvent
|
|
1075
1115
|
editor: PortableTextSlateEditor
|
|
1076
|
-
defaultActionCallback?: () => void
|
|
1077
1116
|
nativeEvent?: {
|
|
1078
1117
|
preventDefault: () => void
|
|
1079
1118
|
}
|
|
@@ -1175,6 +1214,7 @@ declare const editorMachine: StateMachine<
|
|
|
1175
1214
|
ghost?: HTMLElement
|
|
1176
1215
|
origin: Pick<EventPosition, 'selection'>
|
|
1177
1216
|
}
|
|
1217
|
+
slateEditor?: PortableTextSlateEditor
|
|
1178
1218
|
},
|
|
1179
1219
|
{
|
|
1180
1220
|
type: 'notify.blurred'
|
|
@@ -1215,6 +1255,14 @@ declare const editorMachine: StateMachine<
|
|
|
1215
1255
|
maxBlocks: number | undefined
|
|
1216
1256
|
}
|
|
1217
1257
|
| PatchesEvent
|
|
1258
|
+
| {
|
|
1259
|
+
type: 'blur'
|
|
1260
|
+
editor: PortableTextSlateEditor
|
|
1261
|
+
}
|
|
1262
|
+
| {
|
|
1263
|
+
type: 'focus'
|
|
1264
|
+
editor: PortableTextSlateEditor
|
|
1265
|
+
}
|
|
1218
1266
|
| {
|
|
1219
1267
|
type: 'normalizing'
|
|
1220
1268
|
}
|
|
@@ -1228,7 +1276,6 @@ declare const editorMachine: StateMachine<
|
|
|
1228
1276
|
type: 'behavior event'
|
|
1229
1277
|
behaviorEvent: BehaviorEvent
|
|
1230
1278
|
editor: PortableTextSlateEditor
|
|
1231
|
-
defaultActionCallback?: () => void
|
|
1232
1279
|
nativeEvent?: {
|
|
1233
1280
|
preventDefault: () => void
|
|
1234
1281
|
}
|
|
@@ -1370,6 +1417,7 @@ declare const editorMachine: StateMachine<
|
|
|
1370
1417
|
ghost?: HTMLElement
|
|
1371
1418
|
origin: Pick<EventPosition, 'selection'>
|
|
1372
1419
|
}
|
|
1420
|
+
slateEditor?: PortableTextSlateEditor
|
|
1373
1421
|
},
|
|
1374
1422
|
{
|
|
1375
1423
|
type: 'notify.done loading'
|
|
@@ -1409,6 +1457,14 @@ declare const editorMachine: StateMachine<
|
|
|
1409
1457
|
maxBlocks: number | undefined
|
|
1410
1458
|
}
|
|
1411
1459
|
| PatchesEvent
|
|
1460
|
+
| {
|
|
1461
|
+
type: 'blur'
|
|
1462
|
+
editor: PortableTextSlateEditor
|
|
1463
|
+
}
|
|
1464
|
+
| {
|
|
1465
|
+
type: 'focus'
|
|
1466
|
+
editor: PortableTextSlateEditor
|
|
1467
|
+
}
|
|
1412
1468
|
| {
|
|
1413
1469
|
type: 'normalizing'
|
|
1414
1470
|
}
|
|
@@ -1422,7 +1478,6 @@ declare const editorMachine: StateMachine<
|
|
|
1422
1478
|
type: 'behavior event'
|
|
1423
1479
|
behaviorEvent: BehaviorEvent
|
|
1424
1480
|
editor: PortableTextSlateEditor
|
|
1425
|
-
defaultActionCallback?: () => void
|
|
1426
1481
|
nativeEvent?: {
|
|
1427
1482
|
preventDefault: () => void
|
|
1428
1483
|
}
|
|
@@ -1564,6 +1619,7 @@ declare const editorMachine: StateMachine<
|
|
|
1564
1619
|
ghost?: HTMLElement
|
|
1565
1620
|
origin: Pick<EventPosition, 'selection'>
|
|
1566
1621
|
}
|
|
1622
|
+
slateEditor?: PortableTextSlateEditor
|
|
1567
1623
|
},
|
|
1568
1624
|
{
|
|
1569
1625
|
type: 'notify.error'
|
|
@@ -1606,6 +1662,14 @@ declare const editorMachine: StateMachine<
|
|
|
1606
1662
|
maxBlocks: number | undefined
|
|
1607
1663
|
}
|
|
1608
1664
|
| PatchesEvent
|
|
1665
|
+
| {
|
|
1666
|
+
type: 'blur'
|
|
1667
|
+
editor: PortableTextSlateEditor
|
|
1668
|
+
}
|
|
1669
|
+
| {
|
|
1670
|
+
type: 'focus'
|
|
1671
|
+
editor: PortableTextSlateEditor
|
|
1672
|
+
}
|
|
1609
1673
|
| {
|
|
1610
1674
|
type: 'normalizing'
|
|
1611
1675
|
}
|
|
@@ -1619,7 +1683,6 @@ declare const editorMachine: StateMachine<
|
|
|
1619
1683
|
type: 'behavior event'
|
|
1620
1684
|
behaviorEvent: BehaviorEvent
|
|
1621
1685
|
editor: PortableTextSlateEditor
|
|
1622
|
-
defaultActionCallback?: () => void
|
|
1623
1686
|
nativeEvent?: {
|
|
1624
1687
|
preventDefault: () => void
|
|
1625
1688
|
}
|
|
@@ -1761,6 +1824,7 @@ declare const editorMachine: StateMachine<
|
|
|
1761
1824
|
ghost?: HTMLElement
|
|
1762
1825
|
origin: Pick<EventPosition, 'selection'>
|
|
1763
1826
|
}
|
|
1827
|
+
slateEditor?: PortableTextSlateEditor
|
|
1764
1828
|
},
|
|
1765
1829
|
{
|
|
1766
1830
|
type: 'notify.invalid value'
|
|
@@ -1802,6 +1866,14 @@ declare const editorMachine: StateMachine<
|
|
|
1802
1866
|
maxBlocks: number | undefined
|
|
1803
1867
|
}
|
|
1804
1868
|
| PatchesEvent
|
|
1869
|
+
| {
|
|
1870
|
+
type: 'blur'
|
|
1871
|
+
editor: PortableTextSlateEditor
|
|
1872
|
+
}
|
|
1873
|
+
| {
|
|
1874
|
+
type: 'focus'
|
|
1875
|
+
editor: PortableTextSlateEditor
|
|
1876
|
+
}
|
|
1805
1877
|
| {
|
|
1806
1878
|
type: 'normalizing'
|
|
1807
1879
|
}
|
|
@@ -1815,7 +1887,6 @@ declare const editorMachine: StateMachine<
|
|
|
1815
1887
|
type: 'behavior event'
|
|
1816
1888
|
behaviorEvent: BehaviorEvent
|
|
1817
1889
|
editor: PortableTextSlateEditor
|
|
1818
|
-
defaultActionCallback?: () => void
|
|
1819
1890
|
nativeEvent?: {
|
|
1820
1891
|
preventDefault: () => void
|
|
1821
1892
|
}
|
|
@@ -1957,6 +2028,7 @@ declare const editorMachine: StateMachine<
|
|
|
1957
2028
|
ghost?: HTMLElement
|
|
1958
2029
|
origin: Pick<EventPosition, 'selection'>
|
|
1959
2030
|
}
|
|
2031
|
+
slateEditor?: PortableTextSlateEditor
|
|
1960
2032
|
},
|
|
1961
2033
|
{
|
|
1962
2034
|
type: 'notify.focused'
|
|
@@ -1997,6 +2069,14 @@ declare const editorMachine: StateMachine<
|
|
|
1997
2069
|
maxBlocks: number | undefined
|
|
1998
2070
|
}
|
|
1999
2071
|
| PatchesEvent
|
|
2072
|
+
| {
|
|
2073
|
+
type: 'blur'
|
|
2074
|
+
editor: PortableTextSlateEditor
|
|
2075
|
+
}
|
|
2076
|
+
| {
|
|
2077
|
+
type: 'focus'
|
|
2078
|
+
editor: PortableTextSlateEditor
|
|
2079
|
+
}
|
|
2000
2080
|
| {
|
|
2001
2081
|
type: 'normalizing'
|
|
2002
2082
|
}
|
|
@@ -2010,7 +2090,6 @@ declare const editorMachine: StateMachine<
|
|
|
2010
2090
|
type: 'behavior event'
|
|
2011
2091
|
behaviorEvent: BehaviorEvent
|
|
2012
2092
|
editor: PortableTextSlateEditor
|
|
2013
|
-
defaultActionCallback?: () => void
|
|
2014
2093
|
nativeEvent?: {
|
|
2015
2094
|
preventDefault: () => void
|
|
2016
2095
|
}
|
|
@@ -2153,6 +2232,7 @@ declare const editorMachine: StateMachine<
|
|
|
2153
2232
|
ghost?: HTMLElement
|
|
2154
2233
|
origin: Pick<EventPosition, 'selection'>
|
|
2155
2234
|
}
|
|
2235
|
+
slateEditor?: PortableTextSlateEditor
|
|
2156
2236
|
},
|
|
2157
2237
|
{
|
|
2158
2238
|
type: 'notify.selection'
|
|
@@ -2193,6 +2273,14 @@ declare const editorMachine: StateMachine<
|
|
|
2193
2273
|
maxBlocks: number | undefined
|
|
2194
2274
|
}
|
|
2195
2275
|
| PatchesEvent
|
|
2276
|
+
| {
|
|
2277
|
+
type: 'blur'
|
|
2278
|
+
editor: PortableTextSlateEditor
|
|
2279
|
+
}
|
|
2280
|
+
| {
|
|
2281
|
+
type: 'focus'
|
|
2282
|
+
editor: PortableTextSlateEditor
|
|
2283
|
+
}
|
|
2196
2284
|
| {
|
|
2197
2285
|
type: 'normalizing'
|
|
2198
2286
|
}
|
|
@@ -2206,7 +2294,6 @@ declare const editorMachine: StateMachine<
|
|
|
2206
2294
|
type: 'behavior event'
|
|
2207
2295
|
behaviorEvent: BehaviorEvent
|
|
2208
2296
|
editor: PortableTextSlateEditor
|
|
2209
|
-
defaultActionCallback?: () => void
|
|
2210
2297
|
nativeEvent?: {
|
|
2211
2298
|
preventDefault: () => void
|
|
2212
2299
|
}
|
|
@@ -2300,6 +2387,7 @@ declare const editorMachine: StateMachine<
|
|
|
2300
2387
|
ghost?: HTMLElement
|
|
2301
2388
|
origin: Pick<EventPosition, 'selection'>
|
|
2302
2389
|
}
|
|
2390
|
+
slateEditor?: PortableTextSlateEditor
|
|
2303
2391
|
},
|
|
2304
2392
|
{
|
|
2305
2393
|
type: 'notify.selection'
|
|
@@ -2340,6 +2428,14 @@ declare const editorMachine: StateMachine<
|
|
|
2340
2428
|
maxBlocks: number | undefined
|
|
2341
2429
|
}
|
|
2342
2430
|
| PatchesEvent
|
|
2431
|
+
| {
|
|
2432
|
+
type: 'blur'
|
|
2433
|
+
editor: PortableTextSlateEditor
|
|
2434
|
+
}
|
|
2435
|
+
| {
|
|
2436
|
+
type: 'focus'
|
|
2437
|
+
editor: PortableTextSlateEditor
|
|
2438
|
+
}
|
|
2343
2439
|
| {
|
|
2344
2440
|
type: 'normalizing'
|
|
2345
2441
|
}
|
|
@@ -2353,7 +2449,6 @@ declare const editorMachine: StateMachine<
|
|
|
2353
2449
|
type: 'behavior event'
|
|
2354
2450
|
behaviorEvent: BehaviorEvent
|
|
2355
2451
|
editor: PortableTextSlateEditor
|
|
2356
|
-
defaultActionCallback?: () => void
|
|
2357
2452
|
nativeEvent?: {
|
|
2358
2453
|
preventDefault: () => void
|
|
2359
2454
|
}
|
|
@@ -2496,6 +2591,7 @@ declare const editorMachine: StateMachine<
|
|
|
2496
2591
|
ghost?: HTMLElement
|
|
2497
2592
|
origin: Pick<EventPosition, 'selection'>
|
|
2498
2593
|
}
|
|
2594
|
+
slateEditor?: PortableTextSlateEditor
|
|
2499
2595
|
},
|
|
2500
2596
|
{
|
|
2501
2597
|
type: 'notify.unset'
|
|
@@ -2536,6 +2632,14 @@ declare const editorMachine: StateMachine<
|
|
|
2536
2632
|
maxBlocks: number | undefined
|
|
2537
2633
|
}
|
|
2538
2634
|
| PatchesEvent
|
|
2635
|
+
| {
|
|
2636
|
+
type: 'blur'
|
|
2637
|
+
editor: PortableTextSlateEditor
|
|
2638
|
+
}
|
|
2639
|
+
| {
|
|
2640
|
+
type: 'focus'
|
|
2641
|
+
editor: PortableTextSlateEditor
|
|
2642
|
+
}
|
|
2539
2643
|
| {
|
|
2540
2644
|
type: 'normalizing'
|
|
2541
2645
|
}
|
|
@@ -2549,7 +2653,6 @@ declare const editorMachine: StateMachine<
|
|
|
2549
2653
|
type: 'behavior event'
|
|
2550
2654
|
behaviorEvent: BehaviorEvent
|
|
2551
2655
|
editor: PortableTextSlateEditor
|
|
2552
|
-
defaultActionCallback?: () => void
|
|
2553
2656
|
nativeEvent?: {
|
|
2554
2657
|
preventDefault: () => void
|
|
2555
2658
|
}
|
|
@@ -2691,6 +2794,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2794
|
ghost?: HTMLElement
|
|
2692
2795
|
origin: Pick<EventPosition, 'selection'>
|
|
2693
2796
|
}
|
|
2797
|
+
slateEditor?: PortableTextSlateEditor
|
|
2694
2798
|
},
|
|
2695
2799
|
{
|
|
2696
2800
|
type: 'notify.loading'
|
|
@@ -2730,6 +2834,14 @@ declare const editorMachine: StateMachine<
|
|
|
2730
2834
|
maxBlocks: number | undefined
|
|
2731
2835
|
}
|
|
2732
2836
|
| PatchesEvent
|
|
2837
|
+
| {
|
|
2838
|
+
type: 'blur'
|
|
2839
|
+
editor: PortableTextSlateEditor
|
|
2840
|
+
}
|
|
2841
|
+
| {
|
|
2842
|
+
type: 'focus'
|
|
2843
|
+
editor: PortableTextSlateEditor
|
|
2844
|
+
}
|
|
2733
2845
|
| {
|
|
2734
2846
|
type: 'normalizing'
|
|
2735
2847
|
}
|
|
@@ -2743,7 +2855,6 @@ declare const editorMachine: StateMachine<
|
|
|
2743
2855
|
type: 'behavior event'
|
|
2744
2856
|
behaviorEvent: BehaviorEvent
|
|
2745
2857
|
editor: PortableTextSlateEditor
|
|
2746
|
-
defaultActionCallback?: () => void
|
|
2747
2858
|
nativeEvent?: {
|
|
2748
2859
|
preventDefault: () => void
|
|
2749
2860
|
}
|
|
@@ -2885,6 +2996,7 @@ declare const editorMachine: StateMachine<
|
|
|
2885
2996
|
ghost?: HTMLElement
|
|
2886
2997
|
origin: Pick<EventPosition, 'selection'>
|
|
2887
2998
|
}
|
|
2999
|
+
slateEditor?: PortableTextSlateEditor
|
|
2888
3000
|
},
|
|
2889
3001
|
{
|
|
2890
3002
|
type: 'notify.value changed'
|
|
@@ -2925,6 +3037,14 @@ declare const editorMachine: StateMachine<
|
|
|
2925
3037
|
maxBlocks: number | undefined
|
|
2926
3038
|
}
|
|
2927
3039
|
| PatchesEvent
|
|
3040
|
+
| {
|
|
3041
|
+
type: 'blur'
|
|
3042
|
+
editor: PortableTextSlateEditor
|
|
3043
|
+
}
|
|
3044
|
+
| {
|
|
3045
|
+
type: 'focus'
|
|
3046
|
+
editor: PortableTextSlateEditor
|
|
3047
|
+
}
|
|
2928
3048
|
| {
|
|
2929
3049
|
type: 'normalizing'
|
|
2930
3050
|
}
|
|
@@ -2938,7 +3058,6 @@ declare const editorMachine: StateMachine<
|
|
|
2938
3058
|
type: 'behavior event'
|
|
2939
3059
|
behaviorEvent: BehaviorEvent
|
|
2940
3060
|
editor: PortableTextSlateEditor
|
|
2941
|
-
defaultActionCallback?: () => void
|
|
2942
3061
|
nativeEvent?: {
|
|
2943
3062
|
preventDefault: () => void
|
|
2944
3063
|
}
|
|
@@ -3086,6 +3205,7 @@ declare const editorMachine: StateMachine<
|
|
|
3086
3205
|
ghost?: HTMLElement
|
|
3087
3206
|
origin: Pick<EventPosition, 'selection'>
|
|
3088
3207
|
}
|
|
3208
|
+
slateEditor?: PortableTextSlateEditor
|
|
3089
3209
|
},
|
|
3090
3210
|
PatchesEvent,
|
|
3091
3211
|
| InternalPatchEvent
|
|
@@ -3123,6 +3243,14 @@ declare const editorMachine: StateMachine<
|
|
|
3123
3243
|
maxBlocks: number | undefined
|
|
3124
3244
|
}
|
|
3125
3245
|
| PatchesEvent
|
|
3246
|
+
| {
|
|
3247
|
+
type: 'blur'
|
|
3248
|
+
editor: PortableTextSlateEditor
|
|
3249
|
+
}
|
|
3250
|
+
| {
|
|
3251
|
+
type: 'focus'
|
|
3252
|
+
editor: PortableTextSlateEditor
|
|
3253
|
+
}
|
|
3126
3254
|
| {
|
|
3127
3255
|
type: 'normalizing'
|
|
3128
3256
|
}
|
|
@@ -3136,7 +3264,6 @@ declare const editorMachine: StateMachine<
|
|
|
3136
3264
|
type: 'behavior event'
|
|
3137
3265
|
behaviorEvent: BehaviorEvent
|
|
3138
3266
|
editor: PortableTextSlateEditor
|
|
3139
|
-
defaultActionCallback?: () => void
|
|
3140
3267
|
nativeEvent?: {
|
|
3141
3268
|
preventDefault: () => void
|
|
3142
3269
|
}
|
|
@@ -3281,6 +3408,7 @@ declare const editorMachine: StateMachine<
|
|
|
3281
3408
|
ghost?: HTMLElement
|
|
3282
3409
|
origin: Pick<EventPosition, 'selection'>
|
|
3283
3410
|
}
|
|
3411
|
+
slateEditor?: PortableTextSlateEditor
|
|
3284
3412
|
},
|
|
3285
3413
|
{
|
|
3286
3414
|
type: 'update key generator'
|
|
@@ -3321,6 +3449,14 @@ declare const editorMachine: StateMachine<
|
|
|
3321
3449
|
maxBlocks: number | undefined
|
|
3322
3450
|
}
|
|
3323
3451
|
| PatchesEvent
|
|
3452
|
+
| {
|
|
3453
|
+
type: 'blur'
|
|
3454
|
+
editor: PortableTextSlateEditor
|
|
3455
|
+
}
|
|
3456
|
+
| {
|
|
3457
|
+
type: 'focus'
|
|
3458
|
+
editor: PortableTextSlateEditor
|
|
3459
|
+
}
|
|
3324
3460
|
| {
|
|
3325
3461
|
type: 'normalizing'
|
|
3326
3462
|
}
|
|
@@ -3334,7 +3470,6 @@ declare const editorMachine: StateMachine<
|
|
|
3334
3470
|
type: 'behavior event'
|
|
3335
3471
|
behaviorEvent: BehaviorEvent
|
|
3336
3472
|
editor: PortableTextSlateEditor
|
|
3337
|
-
defaultActionCallback?: () => void
|
|
3338
3473
|
nativeEvent?: {
|
|
3339
3474
|
preventDefault: () => void
|
|
3340
3475
|
}
|
|
@@ -3433,6 +3568,7 @@ declare const editorMachine: StateMachine<
|
|
|
3433
3568
|
ghost?: HTMLElement
|
|
3434
3569
|
origin: Pick<EventPosition, 'selection'>
|
|
3435
3570
|
}
|
|
3571
|
+
slateEditor?: PortableTextSlateEditor
|
|
3436
3572
|
},
|
|
3437
3573
|
{
|
|
3438
3574
|
type: 'update value'
|
|
@@ -3473,6 +3609,14 @@ declare const editorMachine: StateMachine<
|
|
|
3473
3609
|
maxBlocks: number | undefined
|
|
3474
3610
|
}
|
|
3475
3611
|
| PatchesEvent
|
|
3612
|
+
| {
|
|
3613
|
+
type: 'blur'
|
|
3614
|
+
editor: PortableTextSlateEditor
|
|
3615
|
+
}
|
|
3616
|
+
| {
|
|
3617
|
+
type: 'focus'
|
|
3618
|
+
editor: PortableTextSlateEditor
|
|
3619
|
+
}
|
|
3476
3620
|
| {
|
|
3477
3621
|
type: 'normalizing'
|
|
3478
3622
|
}
|
|
@@ -3486,7 +3630,6 @@ declare const editorMachine: StateMachine<
|
|
|
3486
3630
|
type: 'behavior event'
|
|
3487
3631
|
behaviorEvent: BehaviorEvent
|
|
3488
3632
|
editor: PortableTextSlateEditor
|
|
3489
|
-
defaultActionCallback?: () => void
|
|
3490
3633
|
nativeEvent?: {
|
|
3491
3634
|
preventDefault: () => void
|
|
3492
3635
|
}
|
|
@@ -3582,6 +3725,7 @@ declare const editorMachine: StateMachine<
|
|
|
3582
3725
|
ghost?: HTMLElement
|
|
3583
3726
|
origin: Pick<EventPosition, 'selection'>
|
|
3584
3727
|
}
|
|
3728
|
+
slateEditor?: PortableTextSlateEditor
|
|
3585
3729
|
},
|
|
3586
3730
|
{
|
|
3587
3731
|
type: 'update maxBlocks'
|
|
@@ -3622,6 +3766,14 @@ declare const editorMachine: StateMachine<
|
|
|
3622
3766
|
maxBlocks: number | undefined
|
|
3623
3767
|
}
|
|
3624
3768
|
| PatchesEvent
|
|
3769
|
+
| {
|
|
3770
|
+
type: 'blur'
|
|
3771
|
+
editor: PortableTextSlateEditor
|
|
3772
|
+
}
|
|
3773
|
+
| {
|
|
3774
|
+
type: 'focus'
|
|
3775
|
+
editor: PortableTextSlateEditor
|
|
3776
|
+
}
|
|
3625
3777
|
| {
|
|
3626
3778
|
type: 'normalizing'
|
|
3627
3779
|
}
|
|
@@ -3635,7 +3787,6 @@ declare const editorMachine: StateMachine<
|
|
|
3635
3787
|
type: 'behavior event'
|
|
3636
3788
|
behaviorEvent: BehaviorEvent
|
|
3637
3789
|
editor: PortableTextSlateEditor
|
|
3638
|
-
defaultActionCallback?: () => void
|
|
3639
3790
|
nativeEvent?: {
|
|
3640
3791
|
preventDefault: () => void
|
|
3641
3792
|
}
|
|
@@ -3743,12 +3894,12 @@ declare const editorMachine: StateMachine<
|
|
|
3743
3894
|
ghost?: HTMLElement
|
|
3744
3895
|
origin: Pick<EventPosition, 'selection'>
|
|
3745
3896
|
}
|
|
3897
|
+
slateEditor?: PortableTextSlateEditor
|
|
3746
3898
|
},
|
|
3747
3899
|
{
|
|
3748
3900
|
type: 'behavior event'
|
|
3749
3901
|
behaviorEvent: BehaviorEvent
|
|
3750
3902
|
editor: PortableTextSlateEditor
|
|
3751
|
-
defaultActionCallback?: () => void
|
|
3752
3903
|
nativeEvent?: {
|
|
3753
3904
|
preventDefault: () => void
|
|
3754
3905
|
}
|
|
@@ -3781,6 +3932,7 @@ declare const editorMachine: StateMachine<
|
|
|
3781
3932
|
ghost?: HTMLElement
|
|
3782
3933
|
origin: Pick<EventPosition, 'selection'>
|
|
3783
3934
|
}
|
|
3935
|
+
slateEditor?: PortableTextSlateEditor
|
|
3784
3936
|
},
|
|
3785
3937
|
{
|
|
3786
3938
|
type: 'done syncing initial value'
|
|
@@ -3813,6 +3965,7 @@ declare const editorMachine: StateMachine<
|
|
|
3813
3965
|
ghost?: HTMLElement
|
|
3814
3966
|
origin: Pick<EventPosition, 'selection'>
|
|
3815
3967
|
}
|
|
3968
|
+
slateEditor?: PortableTextSlateEditor
|
|
3816
3969
|
},
|
|
3817
3970
|
{
|
|
3818
3971
|
type: 'update readOnly'
|
|
@@ -3846,6 +3999,7 @@ declare const editorMachine: StateMachine<
|
|
|
3846
3999
|
ghost?: HTMLElement
|
|
3847
4000
|
origin: Pick<EventPosition, 'selection'>
|
|
3848
4001
|
}
|
|
4002
|
+
slateEditor?: PortableTextSlateEditor
|
|
3849
4003
|
},
|
|
3850
4004
|
{
|
|
3851
4005
|
type: 'update readOnly'
|
|
@@ -3858,6 +4012,169 @@ declare const editorMachine: StateMachine<
|
|
|
3858
4012
|
readonly 'behavior event': {
|
|
3859
4013
|
readonly actions: 'handle behavior event'
|
|
3860
4014
|
}
|
|
4015
|
+
readonly 'blur': {
|
|
4016
|
+
readonly actions: 'handle blur'
|
|
4017
|
+
}
|
|
4018
|
+
readonly 'focus': {
|
|
4019
|
+
readonly target: '.focusing'
|
|
4020
|
+
readonly actions: readonly [
|
|
4021
|
+
ActionFunction<
|
|
4022
|
+
{
|
|
4023
|
+
behaviors: Set<Behavior>
|
|
4024
|
+
converters: Set<Converter>
|
|
4025
|
+
keyGenerator: () => string
|
|
4026
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4027
|
+
schema: EditorSchema
|
|
4028
|
+
initialReadOnly: boolean
|
|
4029
|
+
maxBlocks: number | undefined
|
|
4030
|
+
selection: EditorSelection
|
|
4031
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4032
|
+
internalDrag?: {
|
|
4033
|
+
ghost?: HTMLElement
|
|
4034
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4035
|
+
}
|
|
4036
|
+
slateEditor?: PortableTextSlateEditor
|
|
4037
|
+
},
|
|
4038
|
+
{
|
|
4039
|
+
type: 'focus'
|
|
4040
|
+
editor: PortableTextSlateEditor
|
|
4041
|
+
},
|
|
4042
|
+
| InternalPatchEvent
|
|
4043
|
+
| MutationEvent
|
|
4044
|
+
| {
|
|
4045
|
+
type: 'add behavior'
|
|
4046
|
+
behavior: Behavior
|
|
4047
|
+
}
|
|
4048
|
+
| {
|
|
4049
|
+
type: 'remove behavior'
|
|
4050
|
+
behavior: Behavior
|
|
4051
|
+
}
|
|
4052
|
+
| {
|
|
4053
|
+
type: 'update readOnly'
|
|
4054
|
+
readOnly: boolean
|
|
4055
|
+
}
|
|
4056
|
+
| {
|
|
4057
|
+
type: 'update schema'
|
|
4058
|
+
schema: EditorSchema
|
|
4059
|
+
}
|
|
4060
|
+
| {
|
|
4061
|
+
type: 'update behaviors'
|
|
4062
|
+
behaviors: Array<Behavior>
|
|
4063
|
+
}
|
|
4064
|
+
| {
|
|
4065
|
+
type: 'update key generator'
|
|
4066
|
+
keyGenerator: () => string
|
|
4067
|
+
}
|
|
4068
|
+
| {
|
|
4069
|
+
type: 'update value'
|
|
4070
|
+
value: Array<PortableTextBlock> | undefined
|
|
4071
|
+
}
|
|
4072
|
+
| {
|
|
4073
|
+
type: 'update maxBlocks'
|
|
4074
|
+
maxBlocks: number | undefined
|
|
4075
|
+
}
|
|
4076
|
+
| PatchesEvent
|
|
4077
|
+
| {
|
|
4078
|
+
type: 'blur'
|
|
4079
|
+
editor: PortableTextSlateEditor
|
|
4080
|
+
}
|
|
4081
|
+
| {
|
|
4082
|
+
type: 'focus'
|
|
4083
|
+
editor: PortableTextSlateEditor
|
|
4084
|
+
}
|
|
4085
|
+
| {
|
|
4086
|
+
type: 'normalizing'
|
|
4087
|
+
}
|
|
4088
|
+
| {
|
|
4089
|
+
type: 'done normalizing'
|
|
4090
|
+
}
|
|
4091
|
+
| {
|
|
4092
|
+
type: 'done syncing initial value'
|
|
4093
|
+
}
|
|
4094
|
+
| {
|
|
4095
|
+
type: 'behavior event'
|
|
4096
|
+
behaviorEvent: BehaviorEvent
|
|
4097
|
+
editor: PortableTextSlateEditor
|
|
4098
|
+
nativeEvent?: {
|
|
4099
|
+
preventDefault: () => void
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4102
|
+
| {
|
|
4103
|
+
type: 'notify.patch'
|
|
4104
|
+
patch: Patch
|
|
4105
|
+
}
|
|
4106
|
+
| {
|
|
4107
|
+
type: 'notify.mutation'
|
|
4108
|
+
patches: Array<Patch>
|
|
4109
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
4110
|
+
value: Array<PortableTextBlock> | undefined
|
|
4111
|
+
}
|
|
4112
|
+
| {
|
|
4113
|
+
type: 'notify.blurred'
|
|
4114
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4115
|
+
}
|
|
4116
|
+
| {
|
|
4117
|
+
type: 'notify.done loading'
|
|
4118
|
+
}
|
|
4119
|
+
| {
|
|
4120
|
+
type: 'notify.editable'
|
|
4121
|
+
}
|
|
4122
|
+
| {
|
|
4123
|
+
type: 'notify.error'
|
|
4124
|
+
name: string
|
|
4125
|
+
description: string
|
|
4126
|
+
data: unknown
|
|
4127
|
+
}
|
|
4128
|
+
| {
|
|
4129
|
+
type: 'notify.focused'
|
|
4130
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4131
|
+
}
|
|
4132
|
+
| {
|
|
4133
|
+
type: 'notify.invalid value'
|
|
4134
|
+
resolution: InvalidValueResolution | null
|
|
4135
|
+
value: Array<PortableTextBlock> | undefined
|
|
4136
|
+
}
|
|
4137
|
+
| {
|
|
4138
|
+
type: 'notify.loading'
|
|
4139
|
+
}
|
|
4140
|
+
| {
|
|
4141
|
+
type: 'notify.read only'
|
|
4142
|
+
}
|
|
4143
|
+
| {
|
|
4144
|
+
type: 'notify.ready'
|
|
4145
|
+
}
|
|
4146
|
+
| {
|
|
4147
|
+
type: 'notify.selection'
|
|
4148
|
+
selection: EditorSelection
|
|
4149
|
+
}
|
|
4150
|
+
| {
|
|
4151
|
+
type: 'notify.value changed'
|
|
4152
|
+
value: Array<PortableTextBlock> | undefined
|
|
4153
|
+
}
|
|
4154
|
+
| {
|
|
4155
|
+
type: 'notify.unset'
|
|
4156
|
+
previousValue: Array<PortableTextBlock>
|
|
4157
|
+
}
|
|
4158
|
+
| {
|
|
4159
|
+
type: 'dragstart'
|
|
4160
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4161
|
+
ghost?: HTMLElement
|
|
4162
|
+
}
|
|
4163
|
+
| {
|
|
4164
|
+
type: 'dragend'
|
|
4165
|
+
}
|
|
4166
|
+
| {
|
|
4167
|
+
type: 'drop'
|
|
4168
|
+
},
|
|
4169
|
+
undefined,
|
|
4170
|
+
never,
|
|
4171
|
+
never,
|
|
4172
|
+
never,
|
|
4173
|
+
never,
|
|
4174
|
+
never
|
|
4175
|
+
>,
|
|
4176
|
+
]
|
|
4177
|
+
}
|
|
3861
4178
|
}
|
|
3862
4179
|
readonly initial: 'idle'
|
|
3863
4180
|
readonly states: {
|
|
@@ -3882,6 +4199,7 @@ declare const editorMachine: StateMachine<
|
|
|
3882
4199
|
ghost?: HTMLElement
|
|
3883
4200
|
origin: Pick<EventPosition, 'selection'>
|
|
3884
4201
|
}
|
|
4202
|
+
slateEditor?: PortableTextSlateEditor
|
|
3885
4203
|
},
|
|
3886
4204
|
{
|
|
3887
4205
|
type: 'dragstart'
|
|
@@ -3923,6 +4241,14 @@ declare const editorMachine: StateMachine<
|
|
|
3923
4241
|
maxBlocks: number | undefined
|
|
3924
4242
|
}
|
|
3925
4243
|
| PatchesEvent
|
|
4244
|
+
| {
|
|
4245
|
+
type: 'blur'
|
|
4246
|
+
editor: PortableTextSlateEditor
|
|
4247
|
+
}
|
|
4248
|
+
| {
|
|
4249
|
+
type: 'focus'
|
|
4250
|
+
editor: PortableTextSlateEditor
|
|
4251
|
+
}
|
|
3926
4252
|
| {
|
|
3927
4253
|
type: 'normalizing'
|
|
3928
4254
|
}
|
|
@@ -3936,7 +4262,6 @@ declare const editorMachine: StateMachine<
|
|
|
3936
4262
|
type: 'behavior event'
|
|
3937
4263
|
behaviorEvent: BehaviorEvent
|
|
3938
4264
|
editor: PortableTextSlateEditor
|
|
3939
|
-
defaultActionCallback?: () => void
|
|
3940
4265
|
nativeEvent?: {
|
|
3941
4266
|
preventDefault: () => void
|
|
3942
4267
|
}
|
|
@@ -4020,6 +4345,30 @@ declare const editorMachine: StateMachine<
|
|
|
4020
4345
|
}
|
|
4021
4346
|
}
|
|
4022
4347
|
}
|
|
4348
|
+
readonly 'focusing': {
|
|
4349
|
+
readonly initial: 'checking if busy'
|
|
4350
|
+
readonly states: {
|
|
4351
|
+
readonly 'checking if busy': {
|
|
4352
|
+
readonly always: readonly [
|
|
4353
|
+
{
|
|
4354
|
+
readonly guard: 'slate is busy'
|
|
4355
|
+
readonly target: 'busy'
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
readonly target: '#editor.edit mode.editable.idle'
|
|
4359
|
+
readonly actions: readonly ['handle focus']
|
|
4360
|
+
},
|
|
4361
|
+
]
|
|
4362
|
+
}
|
|
4363
|
+
readonly 'busy': {
|
|
4364
|
+
readonly after: {
|
|
4365
|
+
readonly 10: {
|
|
4366
|
+
readonly target: 'checking if busy'
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4023
4372
|
readonly 'dragging internally': {
|
|
4024
4373
|
readonly exit: readonly [
|
|
4025
4374
|
({
|
|
@@ -4039,6 +4388,7 @@ declare const editorMachine: StateMachine<
|
|
|
4039
4388
|
ghost?: HTMLElement
|
|
4040
4389
|
origin: Pick<EventPosition, 'selection'>
|
|
4041
4390
|
}
|
|
4391
|
+
slateEditor?: PortableTextSlateEditor
|
|
4042
4392
|
},
|
|
4043
4393
|
| InternalPatchEvent
|
|
4044
4394
|
| MutationEvent
|
|
@@ -4075,6 +4425,14 @@ declare const editorMachine: StateMachine<
|
|
|
4075
4425
|
maxBlocks: number | undefined
|
|
4076
4426
|
}
|
|
4077
4427
|
| PatchesEvent
|
|
4428
|
+
| {
|
|
4429
|
+
type: 'blur'
|
|
4430
|
+
editor: PortableTextSlateEditor
|
|
4431
|
+
}
|
|
4432
|
+
| {
|
|
4433
|
+
type: 'focus'
|
|
4434
|
+
editor: PortableTextSlateEditor
|
|
4435
|
+
}
|
|
4078
4436
|
| {
|
|
4079
4437
|
type: 'normalizing'
|
|
4080
4438
|
}
|
|
@@ -4088,7 +4446,6 @@ declare const editorMachine: StateMachine<
|
|
|
4088
4446
|
type: 'behavior event'
|
|
4089
4447
|
behaviorEvent: BehaviorEvent
|
|
4090
4448
|
editor: PortableTextSlateEditor
|
|
4091
|
-
defaultActionCallback?: () => void
|
|
4092
4449
|
nativeEvent?: {
|
|
4093
4450
|
preventDefault: () => void
|
|
4094
4451
|
}
|
|
@@ -4195,6 +4552,14 @@ declare const editorMachine: StateMachine<
|
|
|
4195
4552
|
maxBlocks: number | undefined
|
|
4196
4553
|
}
|
|
4197
4554
|
| PatchesEvent
|
|
4555
|
+
| {
|
|
4556
|
+
type: 'blur'
|
|
4557
|
+
editor: PortableTextSlateEditor
|
|
4558
|
+
}
|
|
4559
|
+
| {
|
|
4560
|
+
type: 'focus'
|
|
4561
|
+
editor: PortableTextSlateEditor
|
|
4562
|
+
}
|
|
4198
4563
|
| {
|
|
4199
4564
|
type: 'normalizing'
|
|
4200
4565
|
}
|
|
@@ -4208,7 +4573,6 @@ declare const editorMachine: StateMachine<
|
|
|
4208
4573
|
type: 'behavior event'
|
|
4209
4574
|
behaviorEvent: BehaviorEvent
|
|
4210
4575
|
editor: PortableTextSlateEditor
|
|
4211
|
-
defaultActionCallback?: () => void
|
|
4212
4576
|
nativeEvent?: {
|
|
4213
4577
|
preventDefault: () => void
|
|
4214
4578
|
}
|
|
@@ -4296,6 +4660,7 @@ declare const editorMachine: StateMachine<
|
|
|
4296
4660
|
ghost?: HTMLElement
|
|
4297
4661
|
origin: Pick<EventPosition, 'selection'>
|
|
4298
4662
|
}
|
|
4663
|
+
slateEditor?: PortableTextSlateEditor
|
|
4299
4664
|
},
|
|
4300
4665
|
| InternalPatchEvent
|
|
4301
4666
|
| MutationEvent
|
|
@@ -4332,6 +4697,14 @@ declare const editorMachine: StateMachine<
|
|
|
4332
4697
|
maxBlocks: number | undefined
|
|
4333
4698
|
}
|
|
4334
4699
|
| PatchesEvent
|
|
4700
|
+
| {
|
|
4701
|
+
type: 'blur'
|
|
4702
|
+
editor: PortableTextSlateEditor
|
|
4703
|
+
}
|
|
4704
|
+
| {
|
|
4705
|
+
type: 'focus'
|
|
4706
|
+
editor: PortableTextSlateEditor
|
|
4707
|
+
}
|
|
4335
4708
|
| {
|
|
4336
4709
|
type: 'normalizing'
|
|
4337
4710
|
}
|
|
@@ -4345,7 +4718,6 @@ declare const editorMachine: StateMachine<
|
|
|
4345
4718
|
type: 'behavior event'
|
|
4346
4719
|
behaviorEvent: BehaviorEvent
|
|
4347
4720
|
editor: PortableTextSlateEditor
|
|
4348
|
-
defaultActionCallback?: () => void
|
|
4349
4721
|
nativeEvent?: {
|
|
4350
4722
|
preventDefault: () => void
|
|
4351
4723
|
}
|
|
@@ -4452,6 +4824,14 @@ declare const editorMachine: StateMachine<
|
|
|
4452
4824
|
maxBlocks: number | undefined
|
|
4453
4825
|
}
|
|
4454
4826
|
| PatchesEvent
|
|
4827
|
+
| {
|
|
4828
|
+
type: 'blur'
|
|
4829
|
+
editor: PortableTextSlateEditor
|
|
4830
|
+
}
|
|
4831
|
+
| {
|
|
4832
|
+
type: 'focus'
|
|
4833
|
+
editor: PortableTextSlateEditor
|
|
4834
|
+
}
|
|
4455
4835
|
| {
|
|
4456
4836
|
type: 'normalizing'
|
|
4457
4837
|
}
|
|
@@ -4465,7 +4845,6 @@ declare const editorMachine: StateMachine<
|
|
|
4465
4845
|
type: 'behavior event'
|
|
4466
4846
|
behaviorEvent: BehaviorEvent
|
|
4467
4847
|
editor: PortableTextSlateEditor
|
|
4468
|
-
defaultActionCallback?: () => void
|
|
4469
4848
|
nativeEvent?: {
|
|
4470
4849
|
preventDefault: () => void
|
|
4471
4850
|
}
|
|
@@ -5420,9 +5799,6 @@ declare type SyntheticBehaviorEvent =
|
|
|
5420
5799
|
at: [KeyedSegment]
|
|
5421
5800
|
props: Array<string>
|
|
5422
5801
|
}
|
|
5423
|
-
| {
|
|
5424
|
-
type: StrictExtract<SyntheticBehaviorEventType, 'blur'>
|
|
5425
|
-
}
|
|
5426
5802
|
| {
|
|
5427
5803
|
type: StrictExtract<SyntheticBehaviorEventType, 'decorator.add'>
|
|
5428
5804
|
decorator: string
|
|
@@ -5451,9 +5827,6 @@ declare type SyntheticBehaviorEvent =
|
|
|
5451
5827
|
type: StrictExtract<SyntheticBehaviorEventType, 'delete.forward'>
|
|
5452
5828
|
unit: TextUnit
|
|
5453
5829
|
}
|
|
5454
|
-
| {
|
|
5455
|
-
type: StrictExtract<SyntheticBehaviorEventType, 'focus'>
|
|
5456
|
-
}
|
|
5457
5830
|
| {
|
|
5458
5831
|
type: StrictExtract<SyntheticBehaviorEventType, 'history.redo'>
|
|
5459
5832
|
}
|
|
@@ -5525,14 +5898,12 @@ declare const syntheticBehaviorEventTypes: readonly [
|
|
|
5525
5898
|
'annotation.remove',
|
|
5526
5899
|
'block.set',
|
|
5527
5900
|
'block.unset',
|
|
5528
|
-
'blur',
|
|
5529
5901
|
'decorator.add',
|
|
5530
5902
|
'decorator.remove',
|
|
5531
5903
|
'delete',
|
|
5532
5904
|
'delete.backward',
|
|
5533
5905
|
'delete.block',
|
|
5534
5906
|
'delete.forward',
|
|
5535
|
-
'focus',
|
|
5536
5907
|
'history.redo',
|
|
5537
5908
|
'history.undo',
|
|
5538
5909
|
'insert.inline object',
|