@portabletext/editor 1.55.7 → 1.55.9

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/index.d.ts CHANGED
@@ -63,9 +63,30 @@ import {
63
63
  import type {EventObject, Snapshot} from 'xstate'
64
64
  import {GuardArgs} from 'xstate/guards'
65
65
  import {
66
+ AnnotationPath as AnnotationPath_2,
67
+ BlockOffset as BlockOffset_2,
68
+ BlockPath as BlockPath_2,
69
+ ChildPath as ChildPath_2,
66
70
  Editor as Editor_2,
67
71
  InvalidValueResolution as InvalidValueResolution_2,
68
72
  } from '..'
73
+ import {
74
+ Behavior as Behavior_2,
75
+ CustomBehaviorEvent as CustomBehaviorEvent_2,
76
+ InsertPlacement as InsertPlacement_2,
77
+ NativeBehaviorEvent as NativeBehaviorEvent_2,
78
+ } from '../behaviors'
79
+ import {
80
+ InputBehaviorEvent as InputBehaviorEvent_2,
81
+ MouseBehaviorEvent as MouseBehaviorEvent_2,
82
+ } from '../behaviors/behavior.types.event'
83
+ import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
84
+ import {EditorPriority as EditorPriority_2} from '../priority/priority.types'
85
+ import {
86
+ PickFromUnion as PickFromUnion_2,
87
+ StrictExtract as StrictExtract_2,
88
+ } from '../type-utils'
89
+ import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
69
90
 
70
91
  declare type AbstractBehaviorEvent =
71
92
  | {
@@ -1030,6 +1051,7 @@ export declare function EditorEventListener(props: {
1030
1051
  declare const editorMachine: StateMachine<
1031
1052
  {
1032
1053
  behaviors: Set<BehaviorConfig>
1054
+ behaviorsSorted: boolean
1033
1055
  converters: Set<Converter>
1034
1056
  getLegacySchema: () => PortableTextMemberSchemaTypes
1035
1057
  keyGenerator: () => string
@@ -1179,6 +1201,10 @@ declare const editorMachine: StateMachine<
1179
1201
  type: 'handle behavior event'
1180
1202
  params: unknown
1181
1203
  }
1204
+ 'sort behaviors': {
1205
+ type: 'sort behaviors'
1206
+ params: NonReducibleUnknown
1207
+ }
1182
1208
  }>,
1183
1209
  {
1184
1210
  type: 'slate is busy'
@@ -1308,6 +1334,7 @@ declare const editorMachine: StateMachine<
1308
1334
  MachineSnapshot<
1309
1335
  {
1310
1336
  behaviors: Set<BehaviorConfig>
1337
+ behaviorsSorted: boolean
1311
1338
  converters: Set<Converter>
1312
1339
  getLegacySchema: () => PortableTextMemberSchemaTypes
1313
1340
  keyGenerator: () => string
@@ -1466,7 +1493,2953 @@ declare const editorMachine: StateMachine<
1466
1493
  AnyEventObject
1467
1494
  >
1468
1495
  }) => {
1469
- behaviors: Set<never>
1496
+ behaviors: Set<{
1497
+ behavior: Behavior_2<
1498
+ | 'annotation.set'
1499
+ | 'annotation.toggle'
1500
+ | 'decorator.toggle'
1501
+ | 'delete.backward'
1502
+ | 'delete.block'
1503
+ | 'delete.child'
1504
+ | 'delete.forward'
1505
+ | 'delete.text'
1506
+ | 'deserialize'
1507
+ | 'deserialization.success'
1508
+ | 'deserialization.failure'
1509
+ | 'insert.blocks'
1510
+ | 'insert.break'
1511
+ | 'insert.soft break'
1512
+ | 'list item.add'
1513
+ | 'list item.remove'
1514
+ | 'list item.toggle'
1515
+ | 'move.block down'
1516
+ | 'move.block up'
1517
+ | 'select.previous block'
1518
+ | 'select.next block'
1519
+ | 'serialize'
1520
+ | 'serialization.success'
1521
+ | 'serialization.failure'
1522
+ | 'split'
1523
+ | 'style.add'
1524
+ | 'style.remove'
1525
+ | 'style.toggle'
1526
+ | 'annotation.add'
1527
+ | 'annotation.remove'
1528
+ | 'block.set'
1529
+ | 'block.unset'
1530
+ | 'child.set'
1531
+ | 'child.unset'
1532
+ | 'decorator.add'
1533
+ | 'decorator.remove'
1534
+ | 'delete'
1535
+ | 'history.redo'
1536
+ | 'history.undo'
1537
+ | 'insert.inline object'
1538
+ | 'insert.block'
1539
+ | 'insert.span'
1540
+ | 'insert.text'
1541
+ | 'move.backward'
1542
+ | 'move.block'
1543
+ | 'move.forward'
1544
+ | 'select'
1545
+ | 'clipboard.copy'
1546
+ | 'clipboard.cut'
1547
+ | 'clipboard.paste'
1548
+ | 'drag.dragstart'
1549
+ | 'drag.drag'
1550
+ | 'drag.dragend'
1551
+ | 'drag.dragenter'
1552
+ | 'drag.dragover'
1553
+ | 'drag.dragleave'
1554
+ | 'drag.drop'
1555
+ | 'input.*'
1556
+ | 'keyboard.keydown'
1557
+ | 'keyboard.keyup'
1558
+ | 'mouse.click'
1559
+ | '*'
1560
+ | 'deserialize.*'
1561
+ | 'serialize.*'
1562
+ | 'split.*'
1563
+ | 'delete.*'
1564
+ | 'select.*'
1565
+ | 'style.*'
1566
+ | 'block.*'
1567
+ | 'annotation.*'
1568
+ | 'decorator.*'
1569
+ | 'child.*'
1570
+ | 'deserialization.*'
1571
+ | 'insert.*'
1572
+ | 'list item.*'
1573
+ | 'move.*'
1574
+ | 'serialization.*'
1575
+ | 'history.*'
1576
+ | 'clipboard.*'
1577
+ | 'drag.*'
1578
+ | 'keyboard.*'
1579
+ | 'mouse.*'
1580
+ | `custom.${string}`,
1581
+ true,
1582
+ | {
1583
+ type: StrictExtract_2<
1584
+ | 'annotation.set'
1585
+ | 'annotation.toggle'
1586
+ | 'decorator.toggle'
1587
+ | 'delete.backward'
1588
+ | 'delete.block'
1589
+ | 'delete.child'
1590
+ | 'delete.forward'
1591
+ | 'delete.text'
1592
+ | 'deserialize'
1593
+ | 'deserialization.success'
1594
+ | 'deserialization.failure'
1595
+ | 'insert.blocks'
1596
+ | 'insert.break'
1597
+ | 'insert.soft break'
1598
+ | 'list item.add'
1599
+ | 'list item.remove'
1600
+ | 'list item.toggle'
1601
+ | 'move.block down'
1602
+ | 'move.block up'
1603
+ | 'select.previous block'
1604
+ | 'select.next block'
1605
+ | 'serialize'
1606
+ | 'serialization.success'
1607
+ | 'serialization.failure'
1608
+ | 'split'
1609
+ | 'style.add'
1610
+ | 'style.remove'
1611
+ | 'style.toggle'
1612
+ | 'annotation.add'
1613
+ | 'annotation.remove'
1614
+ | 'block.set'
1615
+ | 'block.unset'
1616
+ | 'child.set'
1617
+ | 'child.unset'
1618
+ | 'decorator.add'
1619
+ | 'decorator.remove'
1620
+ | 'delete'
1621
+ | 'history.redo'
1622
+ | 'history.undo'
1623
+ | 'insert.inline object'
1624
+ | 'insert.block'
1625
+ | 'insert.span'
1626
+ | 'insert.text'
1627
+ | 'move.backward'
1628
+ | 'move.block'
1629
+ | 'move.forward'
1630
+ | 'select',
1631
+ 'annotation.add'
1632
+ >
1633
+ annotation: {
1634
+ name: string
1635
+ value: {
1636
+ [prop: string]: unknown
1637
+ }
1638
+ }
1639
+ }
1640
+ | {
1641
+ type: StrictExtract_2<
1642
+ | 'annotation.set'
1643
+ | 'annotation.toggle'
1644
+ | 'decorator.toggle'
1645
+ | 'delete.backward'
1646
+ | 'delete.block'
1647
+ | 'delete.child'
1648
+ | 'delete.forward'
1649
+ | 'delete.text'
1650
+ | 'deserialize'
1651
+ | 'deserialization.success'
1652
+ | 'deserialization.failure'
1653
+ | 'insert.blocks'
1654
+ | 'insert.break'
1655
+ | 'insert.soft break'
1656
+ | 'list item.add'
1657
+ | 'list item.remove'
1658
+ | 'list item.toggle'
1659
+ | 'move.block down'
1660
+ | 'move.block up'
1661
+ | 'select.previous block'
1662
+ | 'select.next block'
1663
+ | 'serialize'
1664
+ | 'serialization.success'
1665
+ | 'serialization.failure'
1666
+ | 'split'
1667
+ | 'style.add'
1668
+ | 'style.remove'
1669
+ | 'style.toggle'
1670
+ | 'annotation.add'
1671
+ | 'annotation.remove'
1672
+ | 'block.set'
1673
+ | 'block.unset'
1674
+ | 'child.set'
1675
+ | 'child.unset'
1676
+ | 'decorator.add'
1677
+ | 'decorator.remove'
1678
+ | 'delete'
1679
+ | 'history.redo'
1680
+ | 'history.undo'
1681
+ | 'insert.inline object'
1682
+ | 'insert.block'
1683
+ | 'insert.span'
1684
+ | 'insert.text'
1685
+ | 'move.backward'
1686
+ | 'move.block'
1687
+ | 'move.forward'
1688
+ | 'select',
1689
+ 'annotation.remove'
1690
+ >
1691
+ annotation: {
1692
+ name: string
1693
+ }
1694
+ }
1695
+ | {
1696
+ type: StrictExtract_2<
1697
+ | 'annotation.set'
1698
+ | 'annotation.toggle'
1699
+ | 'decorator.toggle'
1700
+ | 'delete.backward'
1701
+ | 'delete.block'
1702
+ | 'delete.child'
1703
+ | 'delete.forward'
1704
+ | 'delete.text'
1705
+ | 'deserialize'
1706
+ | 'deserialization.success'
1707
+ | 'deserialization.failure'
1708
+ | 'insert.blocks'
1709
+ | 'insert.break'
1710
+ | 'insert.soft break'
1711
+ | 'list item.add'
1712
+ | 'list item.remove'
1713
+ | 'list item.toggle'
1714
+ | 'move.block down'
1715
+ | 'move.block up'
1716
+ | 'select.previous block'
1717
+ | 'select.next block'
1718
+ | 'serialize'
1719
+ | 'serialization.success'
1720
+ | 'serialization.failure'
1721
+ | 'split'
1722
+ | 'style.add'
1723
+ | 'style.remove'
1724
+ | 'style.toggle'
1725
+ | 'annotation.add'
1726
+ | 'annotation.remove'
1727
+ | 'block.set'
1728
+ | 'block.unset'
1729
+ | 'child.set'
1730
+ | 'child.unset'
1731
+ | 'decorator.add'
1732
+ | 'decorator.remove'
1733
+ | 'delete'
1734
+ | 'history.redo'
1735
+ | 'history.undo'
1736
+ | 'insert.inline object'
1737
+ | 'insert.block'
1738
+ | 'insert.span'
1739
+ | 'insert.text'
1740
+ | 'move.backward'
1741
+ | 'move.block'
1742
+ | 'move.forward'
1743
+ | 'select',
1744
+ 'block.set'
1745
+ >
1746
+ at: BlockPath_2
1747
+ props: Record<string, unknown>
1748
+ }
1749
+ | {
1750
+ type: StrictExtract_2<
1751
+ | 'annotation.set'
1752
+ | 'annotation.toggle'
1753
+ | 'decorator.toggle'
1754
+ | 'delete.backward'
1755
+ | 'delete.block'
1756
+ | 'delete.child'
1757
+ | 'delete.forward'
1758
+ | 'delete.text'
1759
+ | 'deserialize'
1760
+ | 'deserialization.success'
1761
+ | 'deserialization.failure'
1762
+ | 'insert.blocks'
1763
+ | 'insert.break'
1764
+ | 'insert.soft break'
1765
+ | 'list item.add'
1766
+ | 'list item.remove'
1767
+ | 'list item.toggle'
1768
+ | 'move.block down'
1769
+ | 'move.block up'
1770
+ | 'select.previous block'
1771
+ | 'select.next block'
1772
+ | 'serialize'
1773
+ | 'serialization.success'
1774
+ | 'serialization.failure'
1775
+ | 'split'
1776
+ | 'style.add'
1777
+ | 'style.remove'
1778
+ | 'style.toggle'
1779
+ | 'annotation.add'
1780
+ | 'annotation.remove'
1781
+ | 'block.set'
1782
+ | 'block.unset'
1783
+ | 'child.set'
1784
+ | 'child.unset'
1785
+ | 'decorator.add'
1786
+ | 'decorator.remove'
1787
+ | 'delete'
1788
+ | 'history.redo'
1789
+ | 'history.undo'
1790
+ | 'insert.inline object'
1791
+ | 'insert.block'
1792
+ | 'insert.span'
1793
+ | 'insert.text'
1794
+ | 'move.backward'
1795
+ | 'move.block'
1796
+ | 'move.forward'
1797
+ | 'select',
1798
+ 'block.unset'
1799
+ >
1800
+ at: BlockPath_2
1801
+ props: Array<string>
1802
+ }
1803
+ | {
1804
+ type: StrictExtract_2<
1805
+ | 'annotation.set'
1806
+ | 'annotation.toggle'
1807
+ | 'decorator.toggle'
1808
+ | 'delete.backward'
1809
+ | 'delete.block'
1810
+ | 'delete.child'
1811
+ | 'delete.forward'
1812
+ | 'delete.text'
1813
+ | 'deserialize'
1814
+ | 'deserialization.success'
1815
+ | 'deserialization.failure'
1816
+ | 'insert.blocks'
1817
+ | 'insert.break'
1818
+ | 'insert.soft break'
1819
+ | 'list item.add'
1820
+ | 'list item.remove'
1821
+ | 'list item.toggle'
1822
+ | 'move.block down'
1823
+ | 'move.block up'
1824
+ | 'select.previous block'
1825
+ | 'select.next block'
1826
+ | 'serialize'
1827
+ | 'serialization.success'
1828
+ | 'serialization.failure'
1829
+ | 'split'
1830
+ | 'style.add'
1831
+ | 'style.remove'
1832
+ | 'style.toggle'
1833
+ | 'annotation.add'
1834
+ | 'annotation.remove'
1835
+ | 'block.set'
1836
+ | 'block.unset'
1837
+ | 'child.set'
1838
+ | 'child.unset'
1839
+ | 'decorator.add'
1840
+ | 'decorator.remove'
1841
+ | 'delete'
1842
+ | 'history.redo'
1843
+ | 'history.undo'
1844
+ | 'insert.inline object'
1845
+ | 'insert.block'
1846
+ | 'insert.span'
1847
+ | 'insert.text'
1848
+ | 'move.backward'
1849
+ | 'move.block'
1850
+ | 'move.forward'
1851
+ | 'select',
1852
+ 'child.set'
1853
+ >
1854
+ at: ChildPath_2
1855
+ props: {
1856
+ [prop: string]: unknown
1857
+ }
1858
+ }
1859
+ | {
1860
+ type: StrictExtract_2<
1861
+ | 'annotation.set'
1862
+ | 'annotation.toggle'
1863
+ | 'decorator.toggle'
1864
+ | 'delete.backward'
1865
+ | 'delete.block'
1866
+ | 'delete.child'
1867
+ | 'delete.forward'
1868
+ | 'delete.text'
1869
+ | 'deserialize'
1870
+ | 'deserialization.success'
1871
+ | 'deserialization.failure'
1872
+ | 'insert.blocks'
1873
+ | 'insert.break'
1874
+ | 'insert.soft break'
1875
+ | 'list item.add'
1876
+ | 'list item.remove'
1877
+ | 'list item.toggle'
1878
+ | 'move.block down'
1879
+ | 'move.block up'
1880
+ | 'select.previous block'
1881
+ | 'select.next block'
1882
+ | 'serialize'
1883
+ | 'serialization.success'
1884
+ | 'serialization.failure'
1885
+ | 'split'
1886
+ | 'style.add'
1887
+ | 'style.remove'
1888
+ | 'style.toggle'
1889
+ | 'annotation.add'
1890
+ | 'annotation.remove'
1891
+ | 'block.set'
1892
+ | 'block.unset'
1893
+ | 'child.set'
1894
+ | 'child.unset'
1895
+ | 'decorator.add'
1896
+ | 'decorator.remove'
1897
+ | 'delete'
1898
+ | 'history.redo'
1899
+ | 'history.undo'
1900
+ | 'insert.inline object'
1901
+ | 'insert.block'
1902
+ | 'insert.span'
1903
+ | 'insert.text'
1904
+ | 'move.backward'
1905
+ | 'move.block'
1906
+ | 'move.forward'
1907
+ | 'select',
1908
+ 'child.unset'
1909
+ >
1910
+ at: ChildPath_2
1911
+ props: Array<string>
1912
+ }
1913
+ | {
1914
+ type: StrictExtract_2<
1915
+ | 'annotation.set'
1916
+ | 'annotation.toggle'
1917
+ | 'decorator.toggle'
1918
+ | 'delete.backward'
1919
+ | 'delete.block'
1920
+ | 'delete.child'
1921
+ | 'delete.forward'
1922
+ | 'delete.text'
1923
+ | 'deserialize'
1924
+ | 'deserialization.success'
1925
+ | 'deserialization.failure'
1926
+ | 'insert.blocks'
1927
+ | 'insert.break'
1928
+ | 'insert.soft break'
1929
+ | 'list item.add'
1930
+ | 'list item.remove'
1931
+ | 'list item.toggle'
1932
+ | 'move.block down'
1933
+ | 'move.block up'
1934
+ | 'select.previous block'
1935
+ | 'select.next block'
1936
+ | 'serialize'
1937
+ | 'serialization.success'
1938
+ | 'serialization.failure'
1939
+ | 'split'
1940
+ | 'style.add'
1941
+ | 'style.remove'
1942
+ | 'style.toggle'
1943
+ | 'annotation.add'
1944
+ | 'annotation.remove'
1945
+ | 'block.set'
1946
+ | 'block.unset'
1947
+ | 'child.set'
1948
+ | 'child.unset'
1949
+ | 'decorator.add'
1950
+ | 'decorator.remove'
1951
+ | 'delete'
1952
+ | 'history.redo'
1953
+ | 'history.undo'
1954
+ | 'insert.inline object'
1955
+ | 'insert.block'
1956
+ | 'insert.span'
1957
+ | 'insert.text'
1958
+ | 'move.backward'
1959
+ | 'move.block'
1960
+ | 'move.forward'
1961
+ | 'select',
1962
+ 'decorator.add'
1963
+ >
1964
+ decorator: string
1965
+ at?: {
1966
+ anchor: BlockOffset_2
1967
+ focus: BlockOffset_2
1968
+ }
1969
+ }
1970
+ | {
1971
+ type: StrictExtract_2<
1972
+ | 'annotation.set'
1973
+ | 'annotation.toggle'
1974
+ | 'decorator.toggle'
1975
+ | 'delete.backward'
1976
+ | 'delete.block'
1977
+ | 'delete.child'
1978
+ | 'delete.forward'
1979
+ | 'delete.text'
1980
+ | 'deserialize'
1981
+ | 'deserialization.success'
1982
+ | 'deserialization.failure'
1983
+ | 'insert.blocks'
1984
+ | 'insert.break'
1985
+ | 'insert.soft break'
1986
+ | 'list item.add'
1987
+ | 'list item.remove'
1988
+ | 'list item.toggle'
1989
+ | 'move.block down'
1990
+ | 'move.block up'
1991
+ | 'select.previous block'
1992
+ | 'select.next block'
1993
+ | 'serialize'
1994
+ | 'serialization.success'
1995
+ | 'serialization.failure'
1996
+ | 'split'
1997
+ | 'style.add'
1998
+ | 'style.remove'
1999
+ | 'style.toggle'
2000
+ | 'annotation.add'
2001
+ | 'annotation.remove'
2002
+ | 'block.set'
2003
+ | 'block.unset'
2004
+ | 'child.set'
2005
+ | 'child.unset'
2006
+ | 'decorator.add'
2007
+ | 'decorator.remove'
2008
+ | 'delete'
2009
+ | 'history.redo'
2010
+ | 'history.undo'
2011
+ | 'insert.inline object'
2012
+ | 'insert.block'
2013
+ | 'insert.span'
2014
+ | 'insert.text'
2015
+ | 'move.backward'
2016
+ | 'move.block'
2017
+ | 'move.forward'
2018
+ | 'select',
2019
+ 'decorator.remove'
2020
+ >
2021
+ decorator: string
2022
+ }
2023
+ | {
2024
+ type: StrictExtract_2<
2025
+ | 'annotation.set'
2026
+ | 'annotation.toggle'
2027
+ | 'decorator.toggle'
2028
+ | 'delete.backward'
2029
+ | 'delete.block'
2030
+ | 'delete.child'
2031
+ | 'delete.forward'
2032
+ | 'delete.text'
2033
+ | 'deserialize'
2034
+ | 'deserialization.success'
2035
+ | 'deserialization.failure'
2036
+ | 'insert.blocks'
2037
+ | 'insert.break'
2038
+ | 'insert.soft break'
2039
+ | 'list item.add'
2040
+ | 'list item.remove'
2041
+ | 'list item.toggle'
2042
+ | 'move.block down'
2043
+ | 'move.block up'
2044
+ | 'select.previous block'
2045
+ | 'select.next block'
2046
+ | 'serialize'
2047
+ | 'serialization.success'
2048
+ | 'serialization.failure'
2049
+ | 'split'
2050
+ | 'style.add'
2051
+ | 'style.remove'
2052
+ | 'style.toggle'
2053
+ | 'annotation.add'
2054
+ | 'annotation.remove'
2055
+ | 'block.set'
2056
+ | 'block.unset'
2057
+ | 'child.set'
2058
+ | 'child.unset'
2059
+ | 'decorator.add'
2060
+ | 'decorator.remove'
2061
+ | 'delete'
2062
+ | 'history.redo'
2063
+ | 'history.undo'
2064
+ | 'insert.inline object'
2065
+ | 'insert.block'
2066
+ | 'insert.span'
2067
+ | 'insert.text'
2068
+ | 'move.backward'
2069
+ | 'move.block'
2070
+ | 'move.forward'
2071
+ | 'select',
2072
+ 'delete'
2073
+ >
2074
+ at: NonNullable<EditorSelection>
2075
+ direction?: 'backward' | 'forward'
2076
+ unit?: 'character' | 'word' | 'line' | 'block'
2077
+ }
2078
+ | {
2079
+ type: StrictExtract_2<
2080
+ | 'annotation.set'
2081
+ | 'annotation.toggle'
2082
+ | 'decorator.toggle'
2083
+ | 'delete.backward'
2084
+ | 'delete.block'
2085
+ | 'delete.child'
2086
+ | 'delete.forward'
2087
+ | 'delete.text'
2088
+ | 'deserialize'
2089
+ | 'deserialization.success'
2090
+ | 'deserialization.failure'
2091
+ | 'insert.blocks'
2092
+ | 'insert.break'
2093
+ | 'insert.soft break'
2094
+ | 'list item.add'
2095
+ | 'list item.remove'
2096
+ | 'list item.toggle'
2097
+ | 'move.block down'
2098
+ | 'move.block up'
2099
+ | 'select.previous block'
2100
+ | 'select.next block'
2101
+ | 'serialize'
2102
+ | 'serialization.success'
2103
+ | 'serialization.failure'
2104
+ | 'split'
2105
+ | 'style.add'
2106
+ | 'style.remove'
2107
+ | 'style.toggle'
2108
+ | 'annotation.add'
2109
+ | 'annotation.remove'
2110
+ | 'block.set'
2111
+ | 'block.unset'
2112
+ | 'child.set'
2113
+ | 'child.unset'
2114
+ | 'decorator.add'
2115
+ | 'decorator.remove'
2116
+ | 'delete'
2117
+ | 'history.redo'
2118
+ | 'history.undo'
2119
+ | 'insert.inline object'
2120
+ | 'insert.block'
2121
+ | 'insert.span'
2122
+ | 'insert.text'
2123
+ | 'move.backward'
2124
+ | 'move.block'
2125
+ | 'move.forward'
2126
+ | 'select',
2127
+ 'history.redo'
2128
+ >
2129
+ }
2130
+ | {
2131
+ type: StrictExtract_2<
2132
+ | 'annotation.set'
2133
+ | 'annotation.toggle'
2134
+ | 'decorator.toggle'
2135
+ | 'delete.backward'
2136
+ | 'delete.block'
2137
+ | 'delete.child'
2138
+ | 'delete.forward'
2139
+ | 'delete.text'
2140
+ | 'deserialize'
2141
+ | 'deserialization.success'
2142
+ | 'deserialization.failure'
2143
+ | 'insert.blocks'
2144
+ | 'insert.break'
2145
+ | 'insert.soft break'
2146
+ | 'list item.add'
2147
+ | 'list item.remove'
2148
+ | 'list item.toggle'
2149
+ | 'move.block down'
2150
+ | 'move.block up'
2151
+ | 'select.previous block'
2152
+ | 'select.next block'
2153
+ | 'serialize'
2154
+ | 'serialization.success'
2155
+ | 'serialization.failure'
2156
+ | 'split'
2157
+ | 'style.add'
2158
+ | 'style.remove'
2159
+ | 'style.toggle'
2160
+ | 'annotation.add'
2161
+ | 'annotation.remove'
2162
+ | 'block.set'
2163
+ | 'block.unset'
2164
+ | 'child.set'
2165
+ | 'child.unset'
2166
+ | 'decorator.add'
2167
+ | 'decorator.remove'
2168
+ | 'delete'
2169
+ | 'history.redo'
2170
+ | 'history.undo'
2171
+ | 'insert.inline object'
2172
+ | 'insert.block'
2173
+ | 'insert.span'
2174
+ | 'insert.text'
2175
+ | 'move.backward'
2176
+ | 'move.block'
2177
+ | 'move.forward'
2178
+ | 'select',
2179
+ 'history.undo'
2180
+ >
2181
+ }
2182
+ | {
2183
+ type: StrictExtract_2<
2184
+ | 'annotation.set'
2185
+ | 'annotation.toggle'
2186
+ | 'decorator.toggle'
2187
+ | 'delete.backward'
2188
+ | 'delete.block'
2189
+ | 'delete.child'
2190
+ | 'delete.forward'
2191
+ | 'delete.text'
2192
+ | 'deserialize'
2193
+ | 'deserialization.success'
2194
+ | 'deserialization.failure'
2195
+ | 'insert.blocks'
2196
+ | 'insert.break'
2197
+ | 'insert.soft break'
2198
+ | 'list item.add'
2199
+ | 'list item.remove'
2200
+ | 'list item.toggle'
2201
+ | 'move.block down'
2202
+ | 'move.block up'
2203
+ | 'select.previous block'
2204
+ | 'select.next block'
2205
+ | 'serialize'
2206
+ | 'serialization.success'
2207
+ | 'serialization.failure'
2208
+ | 'split'
2209
+ | 'style.add'
2210
+ | 'style.remove'
2211
+ | 'style.toggle'
2212
+ | 'annotation.add'
2213
+ | 'annotation.remove'
2214
+ | 'block.set'
2215
+ | 'block.unset'
2216
+ | 'child.set'
2217
+ | 'child.unset'
2218
+ | 'decorator.add'
2219
+ | 'decorator.remove'
2220
+ | 'delete'
2221
+ | 'history.redo'
2222
+ | 'history.undo'
2223
+ | 'insert.inline object'
2224
+ | 'insert.block'
2225
+ | 'insert.span'
2226
+ | 'insert.text'
2227
+ | 'move.backward'
2228
+ | 'move.block'
2229
+ | 'move.forward'
2230
+ | 'select',
2231
+ 'insert.inline object'
2232
+ >
2233
+ inlineObject: {
2234
+ name: string
2235
+ value?: {
2236
+ [prop: string]: unknown
2237
+ }
2238
+ }
2239
+ }
2240
+ | {
2241
+ type: StrictExtract_2<
2242
+ | 'annotation.set'
2243
+ | 'annotation.toggle'
2244
+ | 'decorator.toggle'
2245
+ | 'delete.backward'
2246
+ | 'delete.block'
2247
+ | 'delete.child'
2248
+ | 'delete.forward'
2249
+ | 'delete.text'
2250
+ | 'deserialize'
2251
+ | 'deserialization.success'
2252
+ | 'deserialization.failure'
2253
+ | 'insert.blocks'
2254
+ | 'insert.break'
2255
+ | 'insert.soft break'
2256
+ | 'list item.add'
2257
+ | 'list item.remove'
2258
+ | 'list item.toggle'
2259
+ | 'move.block down'
2260
+ | 'move.block up'
2261
+ | 'select.previous block'
2262
+ | 'select.next block'
2263
+ | 'serialize'
2264
+ | 'serialization.success'
2265
+ | 'serialization.failure'
2266
+ | 'split'
2267
+ | 'style.add'
2268
+ | 'style.remove'
2269
+ | 'style.toggle'
2270
+ | 'annotation.add'
2271
+ | 'annotation.remove'
2272
+ | 'block.set'
2273
+ | 'block.unset'
2274
+ | 'child.set'
2275
+ | 'child.unset'
2276
+ | 'decorator.add'
2277
+ | 'decorator.remove'
2278
+ | 'delete'
2279
+ | 'history.redo'
2280
+ | 'history.undo'
2281
+ | 'insert.inline object'
2282
+ | 'insert.block'
2283
+ | 'insert.span'
2284
+ | 'insert.text'
2285
+ | 'move.backward'
2286
+ | 'move.block'
2287
+ | 'move.forward'
2288
+ | 'select',
2289
+ 'insert.block'
2290
+ >
2291
+ block: BlockWithOptionalKey_2
2292
+ placement: InsertPlacement_2
2293
+ select?: 'start' | 'end' | 'none'
2294
+ }
2295
+ | {
2296
+ type: StrictExtract_2<
2297
+ | 'annotation.set'
2298
+ | 'annotation.toggle'
2299
+ | 'decorator.toggle'
2300
+ | 'delete.backward'
2301
+ | 'delete.block'
2302
+ | 'delete.child'
2303
+ | 'delete.forward'
2304
+ | 'delete.text'
2305
+ | 'deserialize'
2306
+ | 'deserialization.success'
2307
+ | 'deserialization.failure'
2308
+ | 'insert.blocks'
2309
+ | 'insert.break'
2310
+ | 'insert.soft break'
2311
+ | 'list item.add'
2312
+ | 'list item.remove'
2313
+ | 'list item.toggle'
2314
+ | 'move.block down'
2315
+ | 'move.block up'
2316
+ | 'select.previous block'
2317
+ | 'select.next block'
2318
+ | 'serialize'
2319
+ | 'serialization.success'
2320
+ | 'serialization.failure'
2321
+ | 'split'
2322
+ | 'style.add'
2323
+ | 'style.remove'
2324
+ | 'style.toggle'
2325
+ | 'annotation.add'
2326
+ | 'annotation.remove'
2327
+ | 'block.set'
2328
+ | 'block.unset'
2329
+ | 'child.set'
2330
+ | 'child.unset'
2331
+ | 'decorator.add'
2332
+ | 'decorator.remove'
2333
+ | 'delete'
2334
+ | 'history.redo'
2335
+ | 'history.undo'
2336
+ | 'insert.inline object'
2337
+ | 'insert.block'
2338
+ | 'insert.span'
2339
+ | 'insert.text'
2340
+ | 'move.backward'
2341
+ | 'move.block'
2342
+ | 'move.forward'
2343
+ | 'select',
2344
+ 'insert.span'
2345
+ >
2346
+ text: string
2347
+ annotations?: Array<{
2348
+ name: string
2349
+ value: {
2350
+ [prop: string]: unknown
2351
+ }
2352
+ }>
2353
+ decorators?: Array<string>
2354
+ }
2355
+ | {
2356
+ type: StrictExtract_2<
2357
+ | 'annotation.set'
2358
+ | 'annotation.toggle'
2359
+ | 'decorator.toggle'
2360
+ | 'delete.backward'
2361
+ | 'delete.block'
2362
+ | 'delete.child'
2363
+ | 'delete.forward'
2364
+ | 'delete.text'
2365
+ | 'deserialize'
2366
+ | 'deserialization.success'
2367
+ | 'deserialization.failure'
2368
+ | 'insert.blocks'
2369
+ | 'insert.break'
2370
+ | 'insert.soft break'
2371
+ | 'list item.add'
2372
+ | 'list item.remove'
2373
+ | 'list item.toggle'
2374
+ | 'move.block down'
2375
+ | 'move.block up'
2376
+ | 'select.previous block'
2377
+ | 'select.next block'
2378
+ | 'serialize'
2379
+ | 'serialization.success'
2380
+ | 'serialization.failure'
2381
+ | 'split'
2382
+ | 'style.add'
2383
+ | 'style.remove'
2384
+ | 'style.toggle'
2385
+ | 'annotation.add'
2386
+ | 'annotation.remove'
2387
+ | 'block.set'
2388
+ | 'block.unset'
2389
+ | 'child.set'
2390
+ | 'child.unset'
2391
+ | 'decorator.add'
2392
+ | 'decorator.remove'
2393
+ | 'delete'
2394
+ | 'history.redo'
2395
+ | 'history.undo'
2396
+ | 'insert.inline object'
2397
+ | 'insert.block'
2398
+ | 'insert.span'
2399
+ | 'insert.text'
2400
+ | 'move.backward'
2401
+ | 'move.block'
2402
+ | 'move.forward'
2403
+ | 'select',
2404
+ 'insert.text'
2405
+ >
2406
+ text: string
2407
+ }
2408
+ | {
2409
+ type: StrictExtract_2<
2410
+ | 'annotation.set'
2411
+ | 'annotation.toggle'
2412
+ | 'decorator.toggle'
2413
+ | 'delete.backward'
2414
+ | 'delete.block'
2415
+ | 'delete.child'
2416
+ | 'delete.forward'
2417
+ | 'delete.text'
2418
+ | 'deserialize'
2419
+ | 'deserialization.success'
2420
+ | 'deserialization.failure'
2421
+ | 'insert.blocks'
2422
+ | 'insert.break'
2423
+ | 'insert.soft break'
2424
+ | 'list item.add'
2425
+ | 'list item.remove'
2426
+ | 'list item.toggle'
2427
+ | 'move.block down'
2428
+ | 'move.block up'
2429
+ | 'select.previous block'
2430
+ | 'select.next block'
2431
+ | 'serialize'
2432
+ | 'serialization.success'
2433
+ | 'serialization.failure'
2434
+ | 'split'
2435
+ | 'style.add'
2436
+ | 'style.remove'
2437
+ | 'style.toggle'
2438
+ | 'annotation.add'
2439
+ | 'annotation.remove'
2440
+ | 'block.set'
2441
+ | 'block.unset'
2442
+ | 'child.set'
2443
+ | 'child.unset'
2444
+ | 'decorator.add'
2445
+ | 'decorator.remove'
2446
+ | 'delete'
2447
+ | 'history.redo'
2448
+ | 'history.undo'
2449
+ | 'insert.inline object'
2450
+ | 'insert.block'
2451
+ | 'insert.span'
2452
+ | 'insert.text'
2453
+ | 'move.backward'
2454
+ | 'move.block'
2455
+ | 'move.forward'
2456
+ | 'select',
2457
+ 'move.backward'
2458
+ >
2459
+ distance: number
2460
+ }
2461
+ | {
2462
+ type: StrictExtract_2<
2463
+ | 'annotation.set'
2464
+ | 'annotation.toggle'
2465
+ | 'decorator.toggle'
2466
+ | 'delete.backward'
2467
+ | 'delete.block'
2468
+ | 'delete.child'
2469
+ | 'delete.forward'
2470
+ | 'delete.text'
2471
+ | 'deserialize'
2472
+ | 'deserialization.success'
2473
+ | 'deserialization.failure'
2474
+ | 'insert.blocks'
2475
+ | 'insert.break'
2476
+ | 'insert.soft break'
2477
+ | 'list item.add'
2478
+ | 'list item.remove'
2479
+ | 'list item.toggle'
2480
+ | 'move.block down'
2481
+ | 'move.block up'
2482
+ | 'select.previous block'
2483
+ | 'select.next block'
2484
+ | 'serialize'
2485
+ | 'serialization.success'
2486
+ | 'serialization.failure'
2487
+ | 'split'
2488
+ | 'style.add'
2489
+ | 'style.remove'
2490
+ | 'style.toggle'
2491
+ | 'annotation.add'
2492
+ | 'annotation.remove'
2493
+ | 'block.set'
2494
+ | 'block.unset'
2495
+ | 'child.set'
2496
+ | 'child.unset'
2497
+ | 'decorator.add'
2498
+ | 'decorator.remove'
2499
+ | 'delete'
2500
+ | 'history.redo'
2501
+ | 'history.undo'
2502
+ | 'insert.inline object'
2503
+ | 'insert.block'
2504
+ | 'insert.span'
2505
+ | 'insert.text'
2506
+ | 'move.backward'
2507
+ | 'move.block'
2508
+ | 'move.forward'
2509
+ | 'select',
2510
+ 'move.block'
2511
+ >
2512
+ at: BlockPath_2
2513
+ to: BlockPath_2
2514
+ }
2515
+ | {
2516
+ type: StrictExtract_2<
2517
+ | 'annotation.set'
2518
+ | 'annotation.toggle'
2519
+ | 'decorator.toggle'
2520
+ | 'delete.backward'
2521
+ | 'delete.block'
2522
+ | 'delete.child'
2523
+ | 'delete.forward'
2524
+ | 'delete.text'
2525
+ | 'deserialize'
2526
+ | 'deserialization.success'
2527
+ | 'deserialization.failure'
2528
+ | 'insert.blocks'
2529
+ | 'insert.break'
2530
+ | 'insert.soft break'
2531
+ | 'list item.add'
2532
+ | 'list item.remove'
2533
+ | 'list item.toggle'
2534
+ | 'move.block down'
2535
+ | 'move.block up'
2536
+ | 'select.previous block'
2537
+ | 'select.next block'
2538
+ | 'serialize'
2539
+ | 'serialization.success'
2540
+ | 'serialization.failure'
2541
+ | 'split'
2542
+ | 'style.add'
2543
+ | 'style.remove'
2544
+ | 'style.toggle'
2545
+ | 'annotation.add'
2546
+ | 'annotation.remove'
2547
+ | 'block.set'
2548
+ | 'block.unset'
2549
+ | 'child.set'
2550
+ | 'child.unset'
2551
+ | 'decorator.add'
2552
+ | 'decorator.remove'
2553
+ | 'delete'
2554
+ | 'history.redo'
2555
+ | 'history.undo'
2556
+ | 'insert.inline object'
2557
+ | 'insert.block'
2558
+ | 'insert.span'
2559
+ | 'insert.text'
2560
+ | 'move.backward'
2561
+ | 'move.block'
2562
+ | 'move.forward'
2563
+ | 'select',
2564
+ 'move.forward'
2565
+ >
2566
+ distance: number
2567
+ }
2568
+ | {
2569
+ type: StrictExtract_2<
2570
+ | 'annotation.set'
2571
+ | 'annotation.toggle'
2572
+ | 'decorator.toggle'
2573
+ | 'delete.backward'
2574
+ | 'delete.block'
2575
+ | 'delete.child'
2576
+ | 'delete.forward'
2577
+ | 'delete.text'
2578
+ | 'deserialize'
2579
+ | 'deserialization.success'
2580
+ | 'deserialization.failure'
2581
+ | 'insert.blocks'
2582
+ | 'insert.break'
2583
+ | 'insert.soft break'
2584
+ | 'list item.add'
2585
+ | 'list item.remove'
2586
+ | 'list item.toggle'
2587
+ | 'move.block down'
2588
+ | 'move.block up'
2589
+ | 'select.previous block'
2590
+ | 'select.next block'
2591
+ | 'serialize'
2592
+ | 'serialization.success'
2593
+ | 'serialization.failure'
2594
+ | 'split'
2595
+ | 'style.add'
2596
+ | 'style.remove'
2597
+ | 'style.toggle'
2598
+ | 'annotation.add'
2599
+ | 'annotation.remove'
2600
+ | 'block.set'
2601
+ | 'block.unset'
2602
+ | 'child.set'
2603
+ | 'child.unset'
2604
+ | 'decorator.add'
2605
+ | 'decorator.remove'
2606
+ | 'delete'
2607
+ | 'history.redo'
2608
+ | 'history.undo'
2609
+ | 'insert.inline object'
2610
+ | 'insert.block'
2611
+ | 'insert.span'
2612
+ | 'insert.text'
2613
+ | 'move.backward'
2614
+ | 'move.block'
2615
+ | 'move.forward'
2616
+ | 'select',
2617
+ 'select'
2618
+ >
2619
+ at: EditorSelection
2620
+ }
2621
+ | {
2622
+ type: StrictExtract_2<
2623
+ | 'annotation.set'
2624
+ | 'annotation.toggle'
2625
+ | 'decorator.toggle'
2626
+ | 'delete.backward'
2627
+ | 'delete.block'
2628
+ | 'delete.child'
2629
+ | 'delete.forward'
2630
+ | 'delete.text'
2631
+ | 'deserialize'
2632
+ | 'deserialization.success'
2633
+ | 'deserialization.failure'
2634
+ | 'insert.blocks'
2635
+ | 'insert.break'
2636
+ | 'insert.soft break'
2637
+ | 'list item.add'
2638
+ | 'list item.remove'
2639
+ | 'list item.toggle'
2640
+ | 'move.block down'
2641
+ | 'move.block up'
2642
+ | 'select.previous block'
2643
+ | 'select.next block'
2644
+ | 'serialize'
2645
+ | 'serialization.success'
2646
+ | 'serialization.failure'
2647
+ | 'split'
2648
+ | 'style.add'
2649
+ | 'style.remove'
2650
+ | 'style.toggle'
2651
+ | 'annotation.add'
2652
+ | 'annotation.remove'
2653
+ | 'block.set'
2654
+ | 'block.unset'
2655
+ | 'child.set'
2656
+ | 'child.unset'
2657
+ | 'decorator.add'
2658
+ | 'decorator.remove'
2659
+ | 'delete'
2660
+ | 'history.redo'
2661
+ | 'history.undo'
2662
+ | 'insert.inline object'
2663
+ | 'insert.block'
2664
+ | 'insert.span'
2665
+ | 'insert.text'
2666
+ | 'move.backward'
2667
+ | 'move.block'
2668
+ | 'move.forward'
2669
+ | 'select',
2670
+ 'annotation.set'
2671
+ >
2672
+ at: AnnotationPath_2
2673
+ props: Record<string, unknown>
2674
+ }
2675
+ | {
2676
+ type: StrictExtract_2<
2677
+ | 'annotation.set'
2678
+ | 'annotation.toggle'
2679
+ | 'decorator.toggle'
2680
+ | 'delete.backward'
2681
+ | 'delete.block'
2682
+ | 'delete.child'
2683
+ | 'delete.forward'
2684
+ | 'delete.text'
2685
+ | 'deserialize'
2686
+ | 'deserialization.success'
2687
+ | 'deserialization.failure'
2688
+ | 'insert.blocks'
2689
+ | 'insert.break'
2690
+ | 'insert.soft break'
2691
+ | 'list item.add'
2692
+ | 'list item.remove'
2693
+ | 'list item.toggle'
2694
+ | 'move.block down'
2695
+ | 'move.block up'
2696
+ | 'select.previous block'
2697
+ | 'select.next block'
2698
+ | 'serialize'
2699
+ | 'serialization.success'
2700
+ | 'serialization.failure'
2701
+ | 'split'
2702
+ | 'style.add'
2703
+ | 'style.remove'
2704
+ | 'style.toggle'
2705
+ | 'annotation.add'
2706
+ | 'annotation.remove'
2707
+ | 'block.set'
2708
+ | 'block.unset'
2709
+ | 'child.set'
2710
+ | 'child.unset'
2711
+ | 'decorator.add'
2712
+ | 'decorator.remove'
2713
+ | 'delete'
2714
+ | 'history.redo'
2715
+ | 'history.undo'
2716
+ | 'insert.inline object'
2717
+ | 'insert.block'
2718
+ | 'insert.span'
2719
+ | 'insert.text'
2720
+ | 'move.backward'
2721
+ | 'move.block'
2722
+ | 'move.forward'
2723
+ | 'select',
2724
+ 'annotation.toggle'
2725
+ >
2726
+ annotation: {
2727
+ name: string
2728
+ value: {
2729
+ [prop: string]: unknown
2730
+ }
2731
+ }
2732
+ }
2733
+ | {
2734
+ type: StrictExtract_2<
2735
+ | 'annotation.set'
2736
+ | 'annotation.toggle'
2737
+ | 'decorator.toggle'
2738
+ | 'delete.backward'
2739
+ | 'delete.block'
2740
+ | 'delete.child'
2741
+ | 'delete.forward'
2742
+ | 'delete.text'
2743
+ | 'deserialize'
2744
+ | 'deserialization.success'
2745
+ | 'deserialization.failure'
2746
+ | 'insert.blocks'
2747
+ | 'insert.break'
2748
+ | 'insert.soft break'
2749
+ | 'list item.add'
2750
+ | 'list item.remove'
2751
+ | 'list item.toggle'
2752
+ | 'move.block down'
2753
+ | 'move.block up'
2754
+ | 'select.previous block'
2755
+ | 'select.next block'
2756
+ | 'serialize'
2757
+ | 'serialization.success'
2758
+ | 'serialization.failure'
2759
+ | 'split'
2760
+ | 'style.add'
2761
+ | 'style.remove'
2762
+ | 'style.toggle'
2763
+ | 'annotation.add'
2764
+ | 'annotation.remove'
2765
+ | 'block.set'
2766
+ | 'block.unset'
2767
+ | 'child.set'
2768
+ | 'child.unset'
2769
+ | 'decorator.add'
2770
+ | 'decorator.remove'
2771
+ | 'delete'
2772
+ | 'history.redo'
2773
+ | 'history.undo'
2774
+ | 'insert.inline object'
2775
+ | 'insert.block'
2776
+ | 'insert.span'
2777
+ | 'insert.text'
2778
+ | 'move.backward'
2779
+ | 'move.block'
2780
+ | 'move.forward'
2781
+ | 'select',
2782
+ 'decorator.toggle'
2783
+ >
2784
+ decorator: string
2785
+ at?: {
2786
+ anchor: BlockOffset_2
2787
+ focus: BlockOffset_2
2788
+ }
2789
+ }
2790
+ | {
2791
+ type: StrictExtract_2<
2792
+ | 'annotation.set'
2793
+ | 'annotation.toggle'
2794
+ | 'decorator.toggle'
2795
+ | 'delete.backward'
2796
+ | 'delete.block'
2797
+ | 'delete.child'
2798
+ | 'delete.forward'
2799
+ | 'delete.text'
2800
+ | 'deserialize'
2801
+ | 'deserialization.success'
2802
+ | 'deserialization.failure'
2803
+ | 'insert.blocks'
2804
+ | 'insert.break'
2805
+ | 'insert.soft break'
2806
+ | 'list item.add'
2807
+ | 'list item.remove'
2808
+ | 'list item.toggle'
2809
+ | 'move.block down'
2810
+ | 'move.block up'
2811
+ | 'select.previous block'
2812
+ | 'select.next block'
2813
+ | 'serialize'
2814
+ | 'serialization.success'
2815
+ | 'serialization.failure'
2816
+ | 'split'
2817
+ | 'style.add'
2818
+ | 'style.remove'
2819
+ | 'style.toggle'
2820
+ | 'annotation.add'
2821
+ | 'annotation.remove'
2822
+ | 'block.set'
2823
+ | 'block.unset'
2824
+ | 'child.set'
2825
+ | 'child.unset'
2826
+ | 'decorator.add'
2827
+ | 'decorator.remove'
2828
+ | 'delete'
2829
+ | 'history.redo'
2830
+ | 'history.undo'
2831
+ | 'insert.inline object'
2832
+ | 'insert.block'
2833
+ | 'insert.span'
2834
+ | 'insert.text'
2835
+ | 'move.backward'
2836
+ | 'move.block'
2837
+ | 'move.forward'
2838
+ | 'select',
2839
+ 'delete.backward'
2840
+ >
2841
+ unit: 'character' | 'word' | 'line' | 'block'
2842
+ }
2843
+ | {
2844
+ type: StrictExtract_2<
2845
+ | 'annotation.set'
2846
+ | 'annotation.toggle'
2847
+ | 'decorator.toggle'
2848
+ | 'delete.backward'
2849
+ | 'delete.block'
2850
+ | 'delete.child'
2851
+ | 'delete.forward'
2852
+ | 'delete.text'
2853
+ | 'deserialize'
2854
+ | 'deserialization.success'
2855
+ | 'deserialization.failure'
2856
+ | 'insert.blocks'
2857
+ | 'insert.break'
2858
+ | 'insert.soft break'
2859
+ | 'list item.add'
2860
+ | 'list item.remove'
2861
+ | 'list item.toggle'
2862
+ | 'move.block down'
2863
+ | 'move.block up'
2864
+ | 'select.previous block'
2865
+ | 'select.next block'
2866
+ | 'serialize'
2867
+ | 'serialization.success'
2868
+ | 'serialization.failure'
2869
+ | 'split'
2870
+ | 'style.add'
2871
+ | 'style.remove'
2872
+ | 'style.toggle'
2873
+ | 'annotation.add'
2874
+ | 'annotation.remove'
2875
+ | 'block.set'
2876
+ | 'block.unset'
2877
+ | 'child.set'
2878
+ | 'child.unset'
2879
+ | 'decorator.add'
2880
+ | 'decorator.remove'
2881
+ | 'delete'
2882
+ | 'history.redo'
2883
+ | 'history.undo'
2884
+ | 'insert.inline object'
2885
+ | 'insert.block'
2886
+ | 'insert.span'
2887
+ | 'insert.text'
2888
+ | 'move.backward'
2889
+ | 'move.block'
2890
+ | 'move.forward'
2891
+ | 'select',
2892
+ 'delete.block'
2893
+ >
2894
+ at: BlockPath_2
2895
+ }
2896
+ | {
2897
+ type: StrictExtract_2<
2898
+ | 'annotation.set'
2899
+ | 'annotation.toggle'
2900
+ | 'decorator.toggle'
2901
+ | 'delete.backward'
2902
+ | 'delete.block'
2903
+ | 'delete.child'
2904
+ | 'delete.forward'
2905
+ | 'delete.text'
2906
+ | 'deserialize'
2907
+ | 'deserialization.success'
2908
+ | 'deserialization.failure'
2909
+ | 'insert.blocks'
2910
+ | 'insert.break'
2911
+ | 'insert.soft break'
2912
+ | 'list item.add'
2913
+ | 'list item.remove'
2914
+ | 'list item.toggle'
2915
+ | 'move.block down'
2916
+ | 'move.block up'
2917
+ | 'select.previous block'
2918
+ | 'select.next block'
2919
+ | 'serialize'
2920
+ | 'serialization.success'
2921
+ | 'serialization.failure'
2922
+ | 'split'
2923
+ | 'style.add'
2924
+ | 'style.remove'
2925
+ | 'style.toggle'
2926
+ | 'annotation.add'
2927
+ | 'annotation.remove'
2928
+ | 'block.set'
2929
+ | 'block.unset'
2930
+ | 'child.set'
2931
+ | 'child.unset'
2932
+ | 'decorator.add'
2933
+ | 'decorator.remove'
2934
+ | 'delete'
2935
+ | 'history.redo'
2936
+ | 'history.undo'
2937
+ | 'insert.inline object'
2938
+ | 'insert.block'
2939
+ | 'insert.span'
2940
+ | 'insert.text'
2941
+ | 'move.backward'
2942
+ | 'move.block'
2943
+ | 'move.forward'
2944
+ | 'select',
2945
+ 'delete.child'
2946
+ >
2947
+ at: ChildPath_2
2948
+ }
2949
+ | {
2950
+ type: StrictExtract_2<
2951
+ | 'annotation.set'
2952
+ | 'annotation.toggle'
2953
+ | 'decorator.toggle'
2954
+ | 'delete.backward'
2955
+ | 'delete.block'
2956
+ | 'delete.child'
2957
+ | 'delete.forward'
2958
+ | 'delete.text'
2959
+ | 'deserialize'
2960
+ | 'deserialization.success'
2961
+ | 'deserialization.failure'
2962
+ | 'insert.blocks'
2963
+ | 'insert.break'
2964
+ | 'insert.soft break'
2965
+ | 'list item.add'
2966
+ | 'list item.remove'
2967
+ | 'list item.toggle'
2968
+ | 'move.block down'
2969
+ | 'move.block up'
2970
+ | 'select.previous block'
2971
+ | 'select.next block'
2972
+ | 'serialize'
2973
+ | 'serialization.success'
2974
+ | 'serialization.failure'
2975
+ | 'split'
2976
+ | 'style.add'
2977
+ | 'style.remove'
2978
+ | 'style.toggle'
2979
+ | 'annotation.add'
2980
+ | 'annotation.remove'
2981
+ | 'block.set'
2982
+ | 'block.unset'
2983
+ | 'child.set'
2984
+ | 'child.unset'
2985
+ | 'decorator.add'
2986
+ | 'decorator.remove'
2987
+ | 'delete'
2988
+ | 'history.redo'
2989
+ | 'history.undo'
2990
+ | 'insert.inline object'
2991
+ | 'insert.block'
2992
+ | 'insert.span'
2993
+ | 'insert.text'
2994
+ | 'move.backward'
2995
+ | 'move.block'
2996
+ | 'move.forward'
2997
+ | 'select',
2998
+ 'delete.forward'
2999
+ >
3000
+ unit: 'character' | 'word' | 'line' | 'block'
3001
+ }
3002
+ | {
3003
+ type: StrictExtract_2<
3004
+ | 'annotation.set'
3005
+ | 'annotation.toggle'
3006
+ | 'decorator.toggle'
3007
+ | 'delete.backward'
3008
+ | 'delete.block'
3009
+ | 'delete.child'
3010
+ | 'delete.forward'
3011
+ | 'delete.text'
3012
+ | 'deserialize'
3013
+ | 'deserialization.success'
3014
+ | 'deserialization.failure'
3015
+ | 'insert.blocks'
3016
+ | 'insert.break'
3017
+ | 'insert.soft break'
3018
+ | 'list item.add'
3019
+ | 'list item.remove'
3020
+ | 'list item.toggle'
3021
+ | 'move.block down'
3022
+ | 'move.block up'
3023
+ | 'select.previous block'
3024
+ | 'select.next block'
3025
+ | 'serialize'
3026
+ | 'serialization.success'
3027
+ | 'serialization.failure'
3028
+ | 'split'
3029
+ | 'style.add'
3030
+ | 'style.remove'
3031
+ | 'style.toggle'
3032
+ | 'annotation.add'
3033
+ | 'annotation.remove'
3034
+ | 'block.set'
3035
+ | 'block.unset'
3036
+ | 'child.set'
3037
+ | 'child.unset'
3038
+ | 'decorator.add'
3039
+ | 'decorator.remove'
3040
+ | 'delete'
3041
+ | 'history.redo'
3042
+ | 'history.undo'
3043
+ | 'insert.inline object'
3044
+ | 'insert.block'
3045
+ | 'insert.span'
3046
+ | 'insert.text'
3047
+ | 'move.backward'
3048
+ | 'move.block'
3049
+ | 'move.forward'
3050
+ | 'select',
3051
+ 'delete.text'
3052
+ >
3053
+ at: {
3054
+ anchor: BlockOffset_2
3055
+ focus: BlockOffset_2
3056
+ }
3057
+ }
3058
+ | {
3059
+ type: StrictExtract_2<
3060
+ | 'annotation.set'
3061
+ | 'annotation.toggle'
3062
+ | 'decorator.toggle'
3063
+ | 'delete.backward'
3064
+ | 'delete.block'
3065
+ | 'delete.child'
3066
+ | 'delete.forward'
3067
+ | 'delete.text'
3068
+ | 'deserialize'
3069
+ | 'deserialization.success'
3070
+ | 'deserialization.failure'
3071
+ | 'insert.blocks'
3072
+ | 'insert.break'
3073
+ | 'insert.soft break'
3074
+ | 'list item.add'
3075
+ | 'list item.remove'
3076
+ | 'list item.toggle'
3077
+ | 'move.block down'
3078
+ | 'move.block up'
3079
+ | 'select.previous block'
3080
+ | 'select.next block'
3081
+ | 'serialize'
3082
+ | 'serialization.success'
3083
+ | 'serialization.failure'
3084
+ | 'split'
3085
+ | 'style.add'
3086
+ | 'style.remove'
3087
+ | 'style.toggle'
3088
+ | 'annotation.add'
3089
+ | 'annotation.remove'
3090
+ | 'block.set'
3091
+ | 'block.unset'
3092
+ | 'child.set'
3093
+ | 'child.unset'
3094
+ | 'decorator.add'
3095
+ | 'decorator.remove'
3096
+ | 'delete'
3097
+ | 'history.redo'
3098
+ | 'history.undo'
3099
+ | 'insert.inline object'
3100
+ | 'insert.block'
3101
+ | 'insert.span'
3102
+ | 'insert.text'
3103
+ | 'move.backward'
3104
+ | 'move.block'
3105
+ | 'move.forward'
3106
+ | 'select',
3107
+ 'deserialize'
3108
+ >
3109
+ originEvent:
3110
+ | PickFromUnion_2<
3111
+ NativeBehaviorEvent_2,
3112
+ 'type',
3113
+ 'drag.drop' | 'clipboard.paste'
3114
+ >
3115
+ | InputBehaviorEvent_2
3116
+ }
3117
+ | {
3118
+ type: StrictExtract_2<
3119
+ | 'annotation.set'
3120
+ | 'annotation.toggle'
3121
+ | 'decorator.toggle'
3122
+ | 'delete.backward'
3123
+ | 'delete.block'
3124
+ | 'delete.child'
3125
+ | 'delete.forward'
3126
+ | 'delete.text'
3127
+ | 'deserialize'
3128
+ | 'deserialization.success'
3129
+ | 'deserialization.failure'
3130
+ | 'insert.blocks'
3131
+ | 'insert.break'
3132
+ | 'insert.soft break'
3133
+ | 'list item.add'
3134
+ | 'list item.remove'
3135
+ | 'list item.toggle'
3136
+ | 'move.block down'
3137
+ | 'move.block up'
3138
+ | 'select.previous block'
3139
+ | 'select.next block'
3140
+ | 'serialize'
3141
+ | 'serialization.success'
3142
+ | 'serialization.failure'
3143
+ | 'split'
3144
+ | 'style.add'
3145
+ | 'style.remove'
3146
+ | 'style.toggle'
3147
+ | 'annotation.add'
3148
+ | 'annotation.remove'
3149
+ | 'block.set'
3150
+ | 'block.unset'
3151
+ | 'child.set'
3152
+ | 'child.unset'
3153
+ | 'decorator.add'
3154
+ | 'decorator.remove'
3155
+ | 'delete'
3156
+ | 'history.redo'
3157
+ | 'history.undo'
3158
+ | 'insert.inline object'
3159
+ | 'insert.block'
3160
+ | 'insert.span'
3161
+ | 'insert.text'
3162
+ | 'move.backward'
3163
+ | 'move.block'
3164
+ | 'move.forward'
3165
+ | 'select',
3166
+ 'serialize'
3167
+ >
3168
+ originEvent: PickFromUnion_2<
3169
+ NativeBehaviorEvent_2,
3170
+ 'type',
3171
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3172
+ >
3173
+ }
3174
+ | {
3175
+ type: StrictExtract_2<
3176
+ | 'annotation.set'
3177
+ | 'annotation.toggle'
3178
+ | 'decorator.toggle'
3179
+ | 'delete.backward'
3180
+ | 'delete.block'
3181
+ | 'delete.child'
3182
+ | 'delete.forward'
3183
+ | 'delete.text'
3184
+ | 'deserialize'
3185
+ | 'deserialization.success'
3186
+ | 'deserialization.failure'
3187
+ | 'insert.blocks'
3188
+ | 'insert.break'
3189
+ | 'insert.soft break'
3190
+ | 'list item.add'
3191
+ | 'list item.remove'
3192
+ | 'list item.toggle'
3193
+ | 'move.block down'
3194
+ | 'move.block up'
3195
+ | 'select.previous block'
3196
+ | 'select.next block'
3197
+ | 'serialize'
3198
+ | 'serialization.success'
3199
+ | 'serialization.failure'
3200
+ | 'split'
3201
+ | 'style.add'
3202
+ | 'style.remove'
3203
+ | 'style.toggle'
3204
+ | 'annotation.add'
3205
+ | 'annotation.remove'
3206
+ | 'block.set'
3207
+ | 'block.unset'
3208
+ | 'child.set'
3209
+ | 'child.unset'
3210
+ | 'decorator.add'
3211
+ | 'decorator.remove'
3212
+ | 'delete'
3213
+ | 'history.redo'
3214
+ | 'history.undo'
3215
+ | 'insert.inline object'
3216
+ | 'insert.block'
3217
+ | 'insert.span'
3218
+ | 'insert.text'
3219
+ | 'move.backward'
3220
+ | 'move.block'
3221
+ | 'move.forward'
3222
+ | 'select',
3223
+ 'deserialization.success'
3224
+ >
3225
+ mimeType: MIMEType_2
3226
+ data: Array<PortableTextBlock>
3227
+ originEvent:
3228
+ | PickFromUnion_2<
3229
+ NativeBehaviorEvent_2,
3230
+ 'type',
3231
+ 'drag.drop' | 'clipboard.paste'
3232
+ >
3233
+ | InputBehaviorEvent_2
3234
+ }
3235
+ | {
3236
+ type: StrictExtract_2<
3237
+ | 'annotation.set'
3238
+ | 'annotation.toggle'
3239
+ | 'decorator.toggle'
3240
+ | 'delete.backward'
3241
+ | 'delete.block'
3242
+ | 'delete.child'
3243
+ | 'delete.forward'
3244
+ | 'delete.text'
3245
+ | 'deserialize'
3246
+ | 'deserialization.success'
3247
+ | 'deserialization.failure'
3248
+ | 'insert.blocks'
3249
+ | 'insert.break'
3250
+ | 'insert.soft break'
3251
+ | 'list item.add'
3252
+ | 'list item.remove'
3253
+ | 'list item.toggle'
3254
+ | 'move.block down'
3255
+ | 'move.block up'
3256
+ | 'select.previous block'
3257
+ | 'select.next block'
3258
+ | 'serialize'
3259
+ | 'serialization.success'
3260
+ | 'serialization.failure'
3261
+ | 'split'
3262
+ | 'style.add'
3263
+ | 'style.remove'
3264
+ | 'style.toggle'
3265
+ | 'annotation.add'
3266
+ | 'annotation.remove'
3267
+ | 'block.set'
3268
+ | 'block.unset'
3269
+ | 'child.set'
3270
+ | 'child.unset'
3271
+ | 'decorator.add'
3272
+ | 'decorator.remove'
3273
+ | 'delete'
3274
+ | 'history.redo'
3275
+ | 'history.undo'
3276
+ | 'insert.inline object'
3277
+ | 'insert.block'
3278
+ | 'insert.span'
3279
+ | 'insert.text'
3280
+ | 'move.backward'
3281
+ | 'move.block'
3282
+ | 'move.forward'
3283
+ | 'select',
3284
+ 'deserialization.failure'
3285
+ >
3286
+ mimeType: MIMEType_2
3287
+ reason: string
3288
+ originEvent:
3289
+ | PickFromUnion_2<
3290
+ NativeBehaviorEvent_2,
3291
+ 'type',
3292
+ 'drag.drop' | 'clipboard.paste'
3293
+ >
3294
+ | InputBehaviorEvent_2
3295
+ }
3296
+ | {
3297
+ type: StrictExtract_2<
3298
+ | 'annotation.set'
3299
+ | 'annotation.toggle'
3300
+ | 'decorator.toggle'
3301
+ | 'delete.backward'
3302
+ | 'delete.block'
3303
+ | 'delete.child'
3304
+ | 'delete.forward'
3305
+ | 'delete.text'
3306
+ | 'deserialize'
3307
+ | 'deserialization.success'
3308
+ | 'deserialization.failure'
3309
+ | 'insert.blocks'
3310
+ | 'insert.break'
3311
+ | 'insert.soft break'
3312
+ | 'list item.add'
3313
+ | 'list item.remove'
3314
+ | 'list item.toggle'
3315
+ | 'move.block down'
3316
+ | 'move.block up'
3317
+ | 'select.previous block'
3318
+ | 'select.next block'
3319
+ | 'serialize'
3320
+ | 'serialization.success'
3321
+ | 'serialization.failure'
3322
+ | 'split'
3323
+ | 'style.add'
3324
+ | 'style.remove'
3325
+ | 'style.toggle'
3326
+ | 'annotation.add'
3327
+ | 'annotation.remove'
3328
+ | 'block.set'
3329
+ | 'block.unset'
3330
+ | 'child.set'
3331
+ | 'child.unset'
3332
+ | 'decorator.add'
3333
+ | 'decorator.remove'
3334
+ | 'delete'
3335
+ | 'history.redo'
3336
+ | 'history.undo'
3337
+ | 'insert.inline object'
3338
+ | 'insert.block'
3339
+ | 'insert.span'
3340
+ | 'insert.text'
3341
+ | 'move.backward'
3342
+ | 'move.block'
3343
+ | 'move.forward'
3344
+ | 'select',
3345
+ 'serialization.success'
3346
+ >
3347
+ mimeType: MIMEType_2
3348
+ data: string
3349
+ originEvent: PickFromUnion_2<
3350
+ NativeBehaviorEvent_2,
3351
+ 'type',
3352
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3353
+ >
3354
+ }
3355
+ | {
3356
+ type: StrictExtract_2<
3357
+ | 'annotation.set'
3358
+ | 'annotation.toggle'
3359
+ | 'decorator.toggle'
3360
+ | 'delete.backward'
3361
+ | 'delete.block'
3362
+ | 'delete.child'
3363
+ | 'delete.forward'
3364
+ | 'delete.text'
3365
+ | 'deserialize'
3366
+ | 'deserialization.success'
3367
+ | 'deserialization.failure'
3368
+ | 'insert.blocks'
3369
+ | 'insert.break'
3370
+ | 'insert.soft break'
3371
+ | 'list item.add'
3372
+ | 'list item.remove'
3373
+ | 'list item.toggle'
3374
+ | 'move.block down'
3375
+ | 'move.block up'
3376
+ | 'select.previous block'
3377
+ | 'select.next block'
3378
+ | 'serialize'
3379
+ | 'serialization.success'
3380
+ | 'serialization.failure'
3381
+ | 'split'
3382
+ | 'style.add'
3383
+ | 'style.remove'
3384
+ | 'style.toggle'
3385
+ | 'annotation.add'
3386
+ | 'annotation.remove'
3387
+ | 'block.set'
3388
+ | 'block.unset'
3389
+ | 'child.set'
3390
+ | 'child.unset'
3391
+ | 'decorator.add'
3392
+ | 'decorator.remove'
3393
+ | 'delete'
3394
+ | 'history.redo'
3395
+ | 'history.undo'
3396
+ | 'insert.inline object'
3397
+ | 'insert.block'
3398
+ | 'insert.span'
3399
+ | 'insert.text'
3400
+ | 'move.backward'
3401
+ | 'move.block'
3402
+ | 'move.forward'
3403
+ | 'select',
3404
+ 'serialization.failure'
3405
+ >
3406
+ mimeType: MIMEType_2
3407
+ reason: string
3408
+ originEvent: PickFromUnion_2<
3409
+ NativeBehaviorEvent_2,
3410
+ 'type',
3411
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3412
+ >
3413
+ }
3414
+ | {
3415
+ type: StrictExtract_2<
3416
+ | 'annotation.set'
3417
+ | 'annotation.toggle'
3418
+ | 'decorator.toggle'
3419
+ | 'delete.backward'
3420
+ | 'delete.block'
3421
+ | 'delete.child'
3422
+ | 'delete.forward'
3423
+ | 'delete.text'
3424
+ | 'deserialize'
3425
+ | 'deserialization.success'
3426
+ | 'deserialization.failure'
3427
+ | 'insert.blocks'
3428
+ | 'insert.break'
3429
+ | 'insert.soft break'
3430
+ | 'list item.add'
3431
+ | 'list item.remove'
3432
+ | 'list item.toggle'
3433
+ | 'move.block down'
3434
+ | 'move.block up'
3435
+ | 'select.previous block'
3436
+ | 'select.next block'
3437
+ | 'serialize'
3438
+ | 'serialization.success'
3439
+ | 'serialization.failure'
3440
+ | 'split'
3441
+ | 'style.add'
3442
+ | 'style.remove'
3443
+ | 'style.toggle'
3444
+ | 'annotation.add'
3445
+ | 'annotation.remove'
3446
+ | 'block.set'
3447
+ | 'block.unset'
3448
+ | 'child.set'
3449
+ | 'child.unset'
3450
+ | 'decorator.add'
3451
+ | 'decorator.remove'
3452
+ | 'delete'
3453
+ | 'history.redo'
3454
+ | 'history.undo'
3455
+ | 'insert.inline object'
3456
+ | 'insert.block'
3457
+ | 'insert.span'
3458
+ | 'insert.text'
3459
+ | 'move.backward'
3460
+ | 'move.block'
3461
+ | 'move.forward'
3462
+ | 'select',
3463
+ 'insert.blocks'
3464
+ >
3465
+ blocks: Array<BlockWithOptionalKey_2>
3466
+ placement: InsertPlacement_2
3467
+ select?: 'start' | 'end' | 'none'
3468
+ }
3469
+ | {
3470
+ type: StrictExtract_2<
3471
+ | 'annotation.set'
3472
+ | 'annotation.toggle'
3473
+ | 'decorator.toggle'
3474
+ | 'delete.backward'
3475
+ | 'delete.block'
3476
+ | 'delete.child'
3477
+ | 'delete.forward'
3478
+ | 'delete.text'
3479
+ | 'deserialize'
3480
+ | 'deserialization.success'
3481
+ | 'deserialization.failure'
3482
+ | 'insert.blocks'
3483
+ | 'insert.break'
3484
+ | 'insert.soft break'
3485
+ | 'list item.add'
3486
+ | 'list item.remove'
3487
+ | 'list item.toggle'
3488
+ | 'move.block down'
3489
+ | 'move.block up'
3490
+ | 'select.previous block'
3491
+ | 'select.next block'
3492
+ | 'serialize'
3493
+ | 'serialization.success'
3494
+ | 'serialization.failure'
3495
+ | 'split'
3496
+ | 'style.add'
3497
+ | 'style.remove'
3498
+ | 'style.toggle'
3499
+ | 'annotation.add'
3500
+ | 'annotation.remove'
3501
+ | 'block.set'
3502
+ | 'block.unset'
3503
+ | 'child.set'
3504
+ | 'child.unset'
3505
+ | 'decorator.add'
3506
+ | 'decorator.remove'
3507
+ | 'delete'
3508
+ | 'history.redo'
3509
+ | 'history.undo'
3510
+ | 'insert.inline object'
3511
+ | 'insert.block'
3512
+ | 'insert.span'
3513
+ | 'insert.text'
3514
+ | 'move.backward'
3515
+ | 'move.block'
3516
+ | 'move.forward'
3517
+ | 'select',
3518
+ 'insert.break'
3519
+ >
3520
+ }
3521
+ | {
3522
+ type: StrictExtract_2<
3523
+ | 'annotation.set'
3524
+ | 'annotation.toggle'
3525
+ | 'decorator.toggle'
3526
+ | 'delete.backward'
3527
+ | 'delete.block'
3528
+ | 'delete.child'
3529
+ | 'delete.forward'
3530
+ | 'delete.text'
3531
+ | 'deserialize'
3532
+ | 'deserialization.success'
3533
+ | 'deserialization.failure'
3534
+ | 'insert.blocks'
3535
+ | 'insert.break'
3536
+ | 'insert.soft break'
3537
+ | 'list item.add'
3538
+ | 'list item.remove'
3539
+ | 'list item.toggle'
3540
+ | 'move.block down'
3541
+ | 'move.block up'
3542
+ | 'select.previous block'
3543
+ | 'select.next block'
3544
+ | 'serialize'
3545
+ | 'serialization.success'
3546
+ | 'serialization.failure'
3547
+ | 'split'
3548
+ | 'style.add'
3549
+ | 'style.remove'
3550
+ | 'style.toggle'
3551
+ | 'annotation.add'
3552
+ | 'annotation.remove'
3553
+ | 'block.set'
3554
+ | 'block.unset'
3555
+ | 'child.set'
3556
+ | 'child.unset'
3557
+ | 'decorator.add'
3558
+ | 'decorator.remove'
3559
+ | 'delete'
3560
+ | 'history.redo'
3561
+ | 'history.undo'
3562
+ | 'insert.inline object'
3563
+ | 'insert.block'
3564
+ | 'insert.span'
3565
+ | 'insert.text'
3566
+ | 'move.backward'
3567
+ | 'move.block'
3568
+ | 'move.forward'
3569
+ | 'select',
3570
+ 'insert.soft break'
3571
+ >
3572
+ }
3573
+ | {
3574
+ type: StrictExtract_2<
3575
+ | 'annotation.set'
3576
+ | 'annotation.toggle'
3577
+ | 'decorator.toggle'
3578
+ | 'delete.backward'
3579
+ | 'delete.block'
3580
+ | 'delete.child'
3581
+ | 'delete.forward'
3582
+ | 'delete.text'
3583
+ | 'deserialize'
3584
+ | 'deserialization.success'
3585
+ | 'deserialization.failure'
3586
+ | 'insert.blocks'
3587
+ | 'insert.break'
3588
+ | 'insert.soft break'
3589
+ | 'list item.add'
3590
+ | 'list item.remove'
3591
+ | 'list item.toggle'
3592
+ | 'move.block down'
3593
+ | 'move.block up'
3594
+ | 'select.previous block'
3595
+ | 'select.next block'
3596
+ | 'serialize'
3597
+ | 'serialization.success'
3598
+ | 'serialization.failure'
3599
+ | 'split'
3600
+ | 'style.add'
3601
+ | 'style.remove'
3602
+ | 'style.toggle'
3603
+ | 'annotation.add'
3604
+ | 'annotation.remove'
3605
+ | 'block.set'
3606
+ | 'block.unset'
3607
+ | 'child.set'
3608
+ | 'child.unset'
3609
+ | 'decorator.add'
3610
+ | 'decorator.remove'
3611
+ | 'delete'
3612
+ | 'history.redo'
3613
+ | 'history.undo'
3614
+ | 'insert.inline object'
3615
+ | 'insert.block'
3616
+ | 'insert.span'
3617
+ | 'insert.text'
3618
+ | 'move.backward'
3619
+ | 'move.block'
3620
+ | 'move.forward'
3621
+ | 'select',
3622
+ 'list item.add'
3623
+ >
3624
+ listItem: string
3625
+ }
3626
+ | {
3627
+ type: StrictExtract_2<
3628
+ | 'annotation.set'
3629
+ | 'annotation.toggle'
3630
+ | 'decorator.toggle'
3631
+ | 'delete.backward'
3632
+ | 'delete.block'
3633
+ | 'delete.child'
3634
+ | 'delete.forward'
3635
+ | 'delete.text'
3636
+ | 'deserialize'
3637
+ | 'deserialization.success'
3638
+ | 'deserialization.failure'
3639
+ | 'insert.blocks'
3640
+ | 'insert.break'
3641
+ | 'insert.soft break'
3642
+ | 'list item.add'
3643
+ | 'list item.remove'
3644
+ | 'list item.toggle'
3645
+ | 'move.block down'
3646
+ | 'move.block up'
3647
+ | 'select.previous block'
3648
+ | 'select.next block'
3649
+ | 'serialize'
3650
+ | 'serialization.success'
3651
+ | 'serialization.failure'
3652
+ | 'split'
3653
+ | 'style.add'
3654
+ | 'style.remove'
3655
+ | 'style.toggle'
3656
+ | 'annotation.add'
3657
+ | 'annotation.remove'
3658
+ | 'block.set'
3659
+ | 'block.unset'
3660
+ | 'child.set'
3661
+ | 'child.unset'
3662
+ | 'decorator.add'
3663
+ | 'decorator.remove'
3664
+ | 'delete'
3665
+ | 'history.redo'
3666
+ | 'history.undo'
3667
+ | 'insert.inline object'
3668
+ | 'insert.block'
3669
+ | 'insert.span'
3670
+ | 'insert.text'
3671
+ | 'move.backward'
3672
+ | 'move.block'
3673
+ | 'move.forward'
3674
+ | 'select',
3675
+ 'list item.remove'
3676
+ >
3677
+ listItem: string
3678
+ }
3679
+ | {
3680
+ type: StrictExtract_2<
3681
+ | 'annotation.set'
3682
+ | 'annotation.toggle'
3683
+ | 'decorator.toggle'
3684
+ | 'delete.backward'
3685
+ | 'delete.block'
3686
+ | 'delete.child'
3687
+ | 'delete.forward'
3688
+ | 'delete.text'
3689
+ | 'deserialize'
3690
+ | 'deserialization.success'
3691
+ | 'deserialization.failure'
3692
+ | 'insert.blocks'
3693
+ | 'insert.break'
3694
+ | 'insert.soft break'
3695
+ | 'list item.add'
3696
+ | 'list item.remove'
3697
+ | 'list item.toggle'
3698
+ | 'move.block down'
3699
+ | 'move.block up'
3700
+ | 'select.previous block'
3701
+ | 'select.next block'
3702
+ | 'serialize'
3703
+ | 'serialization.success'
3704
+ | 'serialization.failure'
3705
+ | 'split'
3706
+ | 'style.add'
3707
+ | 'style.remove'
3708
+ | 'style.toggle'
3709
+ | 'annotation.add'
3710
+ | 'annotation.remove'
3711
+ | 'block.set'
3712
+ | 'block.unset'
3713
+ | 'child.set'
3714
+ | 'child.unset'
3715
+ | 'decorator.add'
3716
+ | 'decorator.remove'
3717
+ | 'delete'
3718
+ | 'history.redo'
3719
+ | 'history.undo'
3720
+ | 'insert.inline object'
3721
+ | 'insert.block'
3722
+ | 'insert.span'
3723
+ | 'insert.text'
3724
+ | 'move.backward'
3725
+ | 'move.block'
3726
+ | 'move.forward'
3727
+ | 'select',
3728
+ 'list item.toggle'
3729
+ >
3730
+ listItem: string
3731
+ }
3732
+ | {
3733
+ type: StrictExtract_2<
3734
+ | 'annotation.set'
3735
+ | 'annotation.toggle'
3736
+ | 'decorator.toggle'
3737
+ | 'delete.backward'
3738
+ | 'delete.block'
3739
+ | 'delete.child'
3740
+ | 'delete.forward'
3741
+ | 'delete.text'
3742
+ | 'deserialize'
3743
+ | 'deserialization.success'
3744
+ | 'deserialization.failure'
3745
+ | 'insert.blocks'
3746
+ | 'insert.break'
3747
+ | 'insert.soft break'
3748
+ | 'list item.add'
3749
+ | 'list item.remove'
3750
+ | 'list item.toggle'
3751
+ | 'move.block down'
3752
+ | 'move.block up'
3753
+ | 'select.previous block'
3754
+ | 'select.next block'
3755
+ | 'serialize'
3756
+ | 'serialization.success'
3757
+ | 'serialization.failure'
3758
+ | 'split'
3759
+ | 'style.add'
3760
+ | 'style.remove'
3761
+ | 'style.toggle'
3762
+ | 'annotation.add'
3763
+ | 'annotation.remove'
3764
+ | 'block.set'
3765
+ | 'block.unset'
3766
+ | 'child.set'
3767
+ | 'child.unset'
3768
+ | 'decorator.add'
3769
+ | 'decorator.remove'
3770
+ | 'delete'
3771
+ | 'history.redo'
3772
+ | 'history.undo'
3773
+ | 'insert.inline object'
3774
+ | 'insert.block'
3775
+ | 'insert.span'
3776
+ | 'insert.text'
3777
+ | 'move.backward'
3778
+ | 'move.block'
3779
+ | 'move.forward'
3780
+ | 'select',
3781
+ 'move.block down'
3782
+ >
3783
+ at: BlockPath_2
3784
+ }
3785
+ | {
3786
+ type: StrictExtract_2<
3787
+ | 'annotation.set'
3788
+ | 'annotation.toggle'
3789
+ | 'decorator.toggle'
3790
+ | 'delete.backward'
3791
+ | 'delete.block'
3792
+ | 'delete.child'
3793
+ | 'delete.forward'
3794
+ | 'delete.text'
3795
+ | 'deserialize'
3796
+ | 'deserialization.success'
3797
+ | 'deserialization.failure'
3798
+ | 'insert.blocks'
3799
+ | 'insert.break'
3800
+ | 'insert.soft break'
3801
+ | 'list item.add'
3802
+ | 'list item.remove'
3803
+ | 'list item.toggle'
3804
+ | 'move.block down'
3805
+ | 'move.block up'
3806
+ | 'select.previous block'
3807
+ | 'select.next block'
3808
+ | 'serialize'
3809
+ | 'serialization.success'
3810
+ | 'serialization.failure'
3811
+ | 'split'
3812
+ | 'style.add'
3813
+ | 'style.remove'
3814
+ | 'style.toggle'
3815
+ | 'annotation.add'
3816
+ | 'annotation.remove'
3817
+ | 'block.set'
3818
+ | 'block.unset'
3819
+ | 'child.set'
3820
+ | 'child.unset'
3821
+ | 'decorator.add'
3822
+ | 'decorator.remove'
3823
+ | 'delete'
3824
+ | 'history.redo'
3825
+ | 'history.undo'
3826
+ | 'insert.inline object'
3827
+ | 'insert.block'
3828
+ | 'insert.span'
3829
+ | 'insert.text'
3830
+ | 'move.backward'
3831
+ | 'move.block'
3832
+ | 'move.forward'
3833
+ | 'select',
3834
+ 'move.block up'
3835
+ >
3836
+ at: BlockPath_2
3837
+ }
3838
+ | {
3839
+ type: StrictExtract_2<
3840
+ | 'annotation.set'
3841
+ | 'annotation.toggle'
3842
+ | 'decorator.toggle'
3843
+ | 'delete.backward'
3844
+ | 'delete.block'
3845
+ | 'delete.child'
3846
+ | 'delete.forward'
3847
+ | 'delete.text'
3848
+ | 'deserialize'
3849
+ | 'deserialization.success'
3850
+ | 'deserialization.failure'
3851
+ | 'insert.blocks'
3852
+ | 'insert.break'
3853
+ | 'insert.soft break'
3854
+ | 'list item.add'
3855
+ | 'list item.remove'
3856
+ | 'list item.toggle'
3857
+ | 'move.block down'
3858
+ | 'move.block up'
3859
+ | 'select.previous block'
3860
+ | 'select.next block'
3861
+ | 'serialize'
3862
+ | 'serialization.success'
3863
+ | 'serialization.failure'
3864
+ | 'split'
3865
+ | 'style.add'
3866
+ | 'style.remove'
3867
+ | 'style.toggle'
3868
+ | 'annotation.add'
3869
+ | 'annotation.remove'
3870
+ | 'block.set'
3871
+ | 'block.unset'
3872
+ | 'child.set'
3873
+ | 'child.unset'
3874
+ | 'decorator.add'
3875
+ | 'decorator.remove'
3876
+ | 'delete'
3877
+ | 'history.redo'
3878
+ | 'history.undo'
3879
+ | 'insert.inline object'
3880
+ | 'insert.block'
3881
+ | 'insert.span'
3882
+ | 'insert.text'
3883
+ | 'move.backward'
3884
+ | 'move.block'
3885
+ | 'move.forward'
3886
+ | 'select',
3887
+ 'select.previous block'
3888
+ >
3889
+ select?: 'start' | 'end'
3890
+ }
3891
+ | {
3892
+ type: StrictExtract_2<
3893
+ | 'annotation.set'
3894
+ | 'annotation.toggle'
3895
+ | 'decorator.toggle'
3896
+ | 'delete.backward'
3897
+ | 'delete.block'
3898
+ | 'delete.child'
3899
+ | 'delete.forward'
3900
+ | 'delete.text'
3901
+ | 'deserialize'
3902
+ | 'deserialization.success'
3903
+ | 'deserialization.failure'
3904
+ | 'insert.blocks'
3905
+ | 'insert.break'
3906
+ | 'insert.soft break'
3907
+ | 'list item.add'
3908
+ | 'list item.remove'
3909
+ | 'list item.toggle'
3910
+ | 'move.block down'
3911
+ | 'move.block up'
3912
+ | 'select.previous block'
3913
+ | 'select.next block'
3914
+ | 'serialize'
3915
+ | 'serialization.success'
3916
+ | 'serialization.failure'
3917
+ | 'split'
3918
+ | 'style.add'
3919
+ | 'style.remove'
3920
+ | 'style.toggle'
3921
+ | 'annotation.add'
3922
+ | 'annotation.remove'
3923
+ | 'block.set'
3924
+ | 'block.unset'
3925
+ | 'child.set'
3926
+ | 'child.unset'
3927
+ | 'decorator.add'
3928
+ | 'decorator.remove'
3929
+ | 'delete'
3930
+ | 'history.redo'
3931
+ | 'history.undo'
3932
+ | 'insert.inline object'
3933
+ | 'insert.block'
3934
+ | 'insert.span'
3935
+ | 'insert.text'
3936
+ | 'move.backward'
3937
+ | 'move.block'
3938
+ | 'move.forward'
3939
+ | 'select',
3940
+ 'select.next block'
3941
+ >
3942
+ select?: 'start' | 'end'
3943
+ }
3944
+ | {
3945
+ type: StrictExtract_2<
3946
+ | 'annotation.set'
3947
+ | 'annotation.toggle'
3948
+ | 'decorator.toggle'
3949
+ | 'delete.backward'
3950
+ | 'delete.block'
3951
+ | 'delete.child'
3952
+ | 'delete.forward'
3953
+ | 'delete.text'
3954
+ | 'deserialize'
3955
+ | 'deserialization.success'
3956
+ | 'deserialization.failure'
3957
+ | 'insert.blocks'
3958
+ | 'insert.break'
3959
+ | 'insert.soft break'
3960
+ | 'list item.add'
3961
+ | 'list item.remove'
3962
+ | 'list item.toggle'
3963
+ | 'move.block down'
3964
+ | 'move.block up'
3965
+ | 'select.previous block'
3966
+ | 'select.next block'
3967
+ | 'serialize'
3968
+ | 'serialization.success'
3969
+ | 'serialization.failure'
3970
+ | 'split'
3971
+ | 'style.add'
3972
+ | 'style.remove'
3973
+ | 'style.toggle'
3974
+ | 'annotation.add'
3975
+ | 'annotation.remove'
3976
+ | 'block.set'
3977
+ | 'block.unset'
3978
+ | 'child.set'
3979
+ | 'child.unset'
3980
+ | 'decorator.add'
3981
+ | 'decorator.remove'
3982
+ | 'delete'
3983
+ | 'history.redo'
3984
+ | 'history.undo'
3985
+ | 'insert.inline object'
3986
+ | 'insert.block'
3987
+ | 'insert.span'
3988
+ | 'insert.text'
3989
+ | 'move.backward'
3990
+ | 'move.block'
3991
+ | 'move.forward'
3992
+ | 'select',
3993
+ 'split'
3994
+ >
3995
+ }
3996
+ | {
3997
+ type: StrictExtract_2<
3998
+ | 'annotation.set'
3999
+ | 'annotation.toggle'
4000
+ | 'decorator.toggle'
4001
+ | 'delete.backward'
4002
+ | 'delete.block'
4003
+ | 'delete.child'
4004
+ | 'delete.forward'
4005
+ | 'delete.text'
4006
+ | 'deserialize'
4007
+ | 'deserialization.success'
4008
+ | 'deserialization.failure'
4009
+ | 'insert.blocks'
4010
+ | 'insert.break'
4011
+ | 'insert.soft break'
4012
+ | 'list item.add'
4013
+ | 'list item.remove'
4014
+ | 'list item.toggle'
4015
+ | 'move.block down'
4016
+ | 'move.block up'
4017
+ | 'select.previous block'
4018
+ | 'select.next block'
4019
+ | 'serialize'
4020
+ | 'serialization.success'
4021
+ | 'serialization.failure'
4022
+ | 'split'
4023
+ | 'style.add'
4024
+ | 'style.remove'
4025
+ | 'style.toggle'
4026
+ | 'annotation.add'
4027
+ | 'annotation.remove'
4028
+ | 'block.set'
4029
+ | 'block.unset'
4030
+ | 'child.set'
4031
+ | 'child.unset'
4032
+ | 'decorator.add'
4033
+ | 'decorator.remove'
4034
+ | 'delete'
4035
+ | 'history.redo'
4036
+ | 'history.undo'
4037
+ | 'insert.inline object'
4038
+ | 'insert.block'
4039
+ | 'insert.span'
4040
+ | 'insert.text'
4041
+ | 'move.backward'
4042
+ | 'move.block'
4043
+ | 'move.forward'
4044
+ | 'select',
4045
+ 'style.add'
4046
+ >
4047
+ style: string
4048
+ }
4049
+ | {
4050
+ type: StrictExtract_2<
4051
+ | 'annotation.set'
4052
+ | 'annotation.toggle'
4053
+ | 'decorator.toggle'
4054
+ | 'delete.backward'
4055
+ | 'delete.block'
4056
+ | 'delete.child'
4057
+ | 'delete.forward'
4058
+ | 'delete.text'
4059
+ | 'deserialize'
4060
+ | 'deserialization.success'
4061
+ | 'deserialization.failure'
4062
+ | 'insert.blocks'
4063
+ | 'insert.break'
4064
+ | 'insert.soft break'
4065
+ | 'list item.add'
4066
+ | 'list item.remove'
4067
+ | 'list item.toggle'
4068
+ | 'move.block down'
4069
+ | 'move.block up'
4070
+ | 'select.previous block'
4071
+ | 'select.next block'
4072
+ | 'serialize'
4073
+ | 'serialization.success'
4074
+ | 'serialization.failure'
4075
+ | 'split'
4076
+ | 'style.add'
4077
+ | 'style.remove'
4078
+ | 'style.toggle'
4079
+ | 'annotation.add'
4080
+ | 'annotation.remove'
4081
+ | 'block.set'
4082
+ | 'block.unset'
4083
+ | 'child.set'
4084
+ | 'child.unset'
4085
+ | 'decorator.add'
4086
+ | 'decorator.remove'
4087
+ | 'delete'
4088
+ | 'history.redo'
4089
+ | 'history.undo'
4090
+ | 'insert.inline object'
4091
+ | 'insert.block'
4092
+ | 'insert.span'
4093
+ | 'insert.text'
4094
+ | 'move.backward'
4095
+ | 'move.block'
4096
+ | 'move.forward'
4097
+ | 'select',
4098
+ 'style.remove'
4099
+ >
4100
+ style: string
4101
+ }
4102
+ | {
4103
+ type: StrictExtract_2<
4104
+ | 'annotation.set'
4105
+ | 'annotation.toggle'
4106
+ | 'decorator.toggle'
4107
+ | 'delete.backward'
4108
+ | 'delete.block'
4109
+ | 'delete.child'
4110
+ | 'delete.forward'
4111
+ | 'delete.text'
4112
+ | 'deserialize'
4113
+ | 'deserialization.success'
4114
+ | 'deserialization.failure'
4115
+ | 'insert.blocks'
4116
+ | 'insert.break'
4117
+ | 'insert.soft break'
4118
+ | 'list item.add'
4119
+ | 'list item.remove'
4120
+ | 'list item.toggle'
4121
+ | 'move.block down'
4122
+ | 'move.block up'
4123
+ | 'select.previous block'
4124
+ | 'select.next block'
4125
+ | 'serialize'
4126
+ | 'serialization.success'
4127
+ | 'serialization.failure'
4128
+ | 'split'
4129
+ | 'style.add'
4130
+ | 'style.remove'
4131
+ | 'style.toggle'
4132
+ | 'annotation.add'
4133
+ | 'annotation.remove'
4134
+ | 'block.set'
4135
+ | 'block.unset'
4136
+ | 'child.set'
4137
+ | 'child.unset'
4138
+ | 'decorator.add'
4139
+ | 'decorator.remove'
4140
+ | 'delete'
4141
+ | 'history.redo'
4142
+ | 'history.undo'
4143
+ | 'insert.inline object'
4144
+ | 'insert.block'
4145
+ | 'insert.span'
4146
+ | 'insert.text'
4147
+ | 'move.backward'
4148
+ | 'move.block'
4149
+ | 'move.forward'
4150
+ | 'select',
4151
+ 'style.toggle'
4152
+ >
4153
+ style: string
4154
+ }
4155
+ | {
4156
+ type: StrictExtract_2<
4157
+ | 'clipboard.copy'
4158
+ | 'clipboard.cut'
4159
+ | 'clipboard.paste'
4160
+ | 'drag.dragstart'
4161
+ | 'drag.drag'
4162
+ | 'drag.dragend'
4163
+ | 'drag.dragenter'
4164
+ | 'drag.dragover'
4165
+ | 'drag.dragleave'
4166
+ | 'drag.drop'
4167
+ | 'input.*'
4168
+ | 'keyboard.keydown'
4169
+ | 'keyboard.keyup'
4170
+ | 'mouse.click',
4171
+ 'clipboard.copy'
4172
+ >
4173
+ originEvent: {
4174
+ dataTransfer: DataTransfer
4175
+ }
4176
+ position: Pick<EventPosition, 'selection'>
4177
+ }
4178
+ | {
4179
+ type: StrictExtract_2<
4180
+ | 'clipboard.copy'
4181
+ | 'clipboard.cut'
4182
+ | 'clipboard.paste'
4183
+ | 'drag.dragstart'
4184
+ | 'drag.drag'
4185
+ | 'drag.dragend'
4186
+ | 'drag.dragenter'
4187
+ | 'drag.dragover'
4188
+ | 'drag.dragleave'
4189
+ | 'drag.drop'
4190
+ | 'input.*'
4191
+ | 'keyboard.keydown'
4192
+ | 'keyboard.keyup'
4193
+ | 'mouse.click',
4194
+ 'clipboard.cut'
4195
+ >
4196
+ originEvent: {
4197
+ dataTransfer: DataTransfer
4198
+ }
4199
+ position: Pick<EventPosition, 'selection'>
4200
+ }
4201
+ | {
4202
+ type: StrictExtract_2<
4203
+ | 'clipboard.copy'
4204
+ | 'clipboard.cut'
4205
+ | 'clipboard.paste'
4206
+ | 'drag.dragstart'
4207
+ | 'drag.drag'
4208
+ | 'drag.dragend'
4209
+ | 'drag.dragenter'
4210
+ | 'drag.dragover'
4211
+ | 'drag.dragleave'
4212
+ | 'drag.drop'
4213
+ | 'input.*'
4214
+ | 'keyboard.keydown'
4215
+ | 'keyboard.keyup'
4216
+ | 'mouse.click',
4217
+ 'clipboard.paste'
4218
+ >
4219
+ originEvent: {
4220
+ dataTransfer: DataTransfer
4221
+ }
4222
+ position: Pick<EventPosition, 'selection'>
4223
+ }
4224
+ | {
4225
+ type: StrictExtract_2<
4226
+ | 'clipboard.copy'
4227
+ | 'clipboard.cut'
4228
+ | 'clipboard.paste'
4229
+ | 'drag.dragstart'
4230
+ | 'drag.drag'
4231
+ | 'drag.dragend'
4232
+ | 'drag.dragenter'
4233
+ | 'drag.dragover'
4234
+ | 'drag.dragleave'
4235
+ | 'drag.drop'
4236
+ | 'input.*'
4237
+ | 'keyboard.keydown'
4238
+ | 'keyboard.keyup'
4239
+ | 'mouse.click',
4240
+ 'drag.dragstart'
4241
+ >
4242
+ originEvent: {
4243
+ clientX: number
4244
+ clientY: number
4245
+ dataTransfer: DataTransfer
4246
+ }
4247
+ position: Pick<EventPosition, 'selection'>
4248
+ }
4249
+ | {
4250
+ type: StrictExtract_2<
4251
+ | 'clipboard.copy'
4252
+ | 'clipboard.cut'
4253
+ | 'clipboard.paste'
4254
+ | 'drag.dragstart'
4255
+ | 'drag.drag'
4256
+ | 'drag.dragend'
4257
+ | 'drag.dragenter'
4258
+ | 'drag.dragover'
4259
+ | 'drag.dragleave'
4260
+ | 'drag.drop'
4261
+ | 'input.*'
4262
+ | 'keyboard.keydown'
4263
+ | 'keyboard.keyup'
4264
+ | 'mouse.click',
4265
+ 'drag.drag'
4266
+ >
4267
+ originEvent: {
4268
+ dataTransfer: DataTransfer
4269
+ }
4270
+ }
4271
+ | {
4272
+ type: StrictExtract_2<
4273
+ | 'clipboard.copy'
4274
+ | 'clipboard.cut'
4275
+ | 'clipboard.paste'
4276
+ | 'drag.dragstart'
4277
+ | 'drag.drag'
4278
+ | 'drag.dragend'
4279
+ | 'drag.dragenter'
4280
+ | 'drag.dragover'
4281
+ | 'drag.dragleave'
4282
+ | 'drag.drop'
4283
+ | 'input.*'
4284
+ | 'keyboard.keydown'
4285
+ | 'keyboard.keyup'
4286
+ | 'mouse.click',
4287
+ 'drag.dragend'
4288
+ >
4289
+ originEvent: {
4290
+ dataTransfer: DataTransfer
4291
+ }
4292
+ }
4293
+ | {
4294
+ type: StrictExtract_2<
4295
+ | 'clipboard.copy'
4296
+ | 'clipboard.cut'
4297
+ | 'clipboard.paste'
4298
+ | 'drag.dragstart'
4299
+ | 'drag.drag'
4300
+ | 'drag.dragend'
4301
+ | 'drag.dragenter'
4302
+ | 'drag.dragover'
4303
+ | 'drag.dragleave'
4304
+ | 'drag.drop'
4305
+ | 'input.*'
4306
+ | 'keyboard.keydown'
4307
+ | 'keyboard.keyup'
4308
+ | 'mouse.click',
4309
+ 'drag.dragenter'
4310
+ >
4311
+ originEvent: {
4312
+ dataTransfer: DataTransfer
4313
+ }
4314
+ position: EventPosition
4315
+ }
4316
+ | {
4317
+ type: StrictExtract_2<
4318
+ | 'clipboard.copy'
4319
+ | 'clipboard.cut'
4320
+ | 'clipboard.paste'
4321
+ | 'drag.dragstart'
4322
+ | 'drag.drag'
4323
+ | 'drag.dragend'
4324
+ | 'drag.dragenter'
4325
+ | 'drag.dragover'
4326
+ | 'drag.dragleave'
4327
+ | 'drag.drop'
4328
+ | 'input.*'
4329
+ | 'keyboard.keydown'
4330
+ | 'keyboard.keyup'
4331
+ | 'mouse.click',
4332
+ 'drag.dragover'
4333
+ >
4334
+ originEvent: {
4335
+ dataTransfer: DataTransfer
4336
+ }
4337
+ dragOrigin?: Pick<EventPosition, 'selection'>
4338
+ position: EventPosition
4339
+ }
4340
+ | {
4341
+ type: StrictExtract_2<
4342
+ | 'clipboard.copy'
4343
+ | 'clipboard.cut'
4344
+ | 'clipboard.paste'
4345
+ | 'drag.dragstart'
4346
+ | 'drag.drag'
4347
+ | 'drag.dragend'
4348
+ | 'drag.dragenter'
4349
+ | 'drag.dragover'
4350
+ | 'drag.dragleave'
4351
+ | 'drag.drop'
4352
+ | 'input.*'
4353
+ | 'keyboard.keydown'
4354
+ | 'keyboard.keyup'
4355
+ | 'mouse.click',
4356
+ 'drag.drop'
4357
+ >
4358
+ originEvent: {
4359
+ dataTransfer: DataTransfer
4360
+ }
4361
+ dragOrigin?: Pick<EventPosition, 'selection'>
4362
+ position: EventPosition
4363
+ }
4364
+ | {
4365
+ type: StrictExtract_2<
4366
+ | 'clipboard.copy'
4367
+ | 'clipboard.cut'
4368
+ | 'clipboard.paste'
4369
+ | 'drag.dragstart'
4370
+ | 'drag.drag'
4371
+ | 'drag.dragend'
4372
+ | 'drag.dragenter'
4373
+ | 'drag.dragover'
4374
+ | 'drag.dragleave'
4375
+ | 'drag.drop'
4376
+ | 'input.*'
4377
+ | 'keyboard.keydown'
4378
+ | 'keyboard.keyup'
4379
+ | 'mouse.click',
4380
+ 'drag.dragleave'
4381
+ >
4382
+ originEvent: {
4383
+ dataTransfer: DataTransfer
4384
+ }
4385
+ }
4386
+ | InputBehaviorEvent_2
4387
+ | {
4388
+ type: StrictExtract_2<
4389
+ | 'clipboard.copy'
4390
+ | 'clipboard.cut'
4391
+ | 'clipboard.paste'
4392
+ | 'drag.dragstart'
4393
+ | 'drag.drag'
4394
+ | 'drag.dragend'
4395
+ | 'drag.dragenter'
4396
+ | 'drag.dragover'
4397
+ | 'drag.dragleave'
4398
+ | 'drag.drop'
4399
+ | 'input.*'
4400
+ | 'keyboard.keydown'
4401
+ | 'keyboard.keyup'
4402
+ | 'mouse.click',
4403
+ 'keyboard.keydown'
4404
+ >
4405
+ originEvent: Pick<
4406
+ KeyboardEvent,
4407
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
4408
+ >
4409
+ }
4410
+ | {
4411
+ type: StrictExtract_2<
4412
+ | 'clipboard.copy'
4413
+ | 'clipboard.cut'
4414
+ | 'clipboard.paste'
4415
+ | 'drag.dragstart'
4416
+ | 'drag.drag'
4417
+ | 'drag.dragend'
4418
+ | 'drag.dragenter'
4419
+ | 'drag.dragover'
4420
+ | 'drag.dragleave'
4421
+ | 'drag.drop'
4422
+ | 'input.*'
4423
+ | 'keyboard.keydown'
4424
+ | 'keyboard.keyup'
4425
+ | 'mouse.click',
4426
+ 'keyboard.keyup'
4427
+ >
4428
+ originEvent: Pick<
4429
+ KeyboardEvent,
4430
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
4431
+ >
4432
+ }
4433
+ | MouseBehaviorEvent_2
4434
+ | CustomBehaviorEvent_2<
4435
+ Record<string, unknown>,
4436
+ string,
4437
+ `custom.${string}`
4438
+ >
4439
+ >
4440
+ priority: EditorPriority_2
4441
+ }>
4442
+ behaviorsSorted: false
1470
4443
  converters: Set<Converter>
1471
4444
  getLegacySchema: () => PortableTextMemberSchemaTypes
1472
4445
  keyGenerator: () => string
@@ -1489,6 +4462,7 @@ declare const editorMachine: StateMachine<
1489
4462
  readonly actions: ActionFunction<
1490
4463
  {
1491
4464
  behaviors: Set<BehaviorConfig>
4465
+ behaviorsSorted: boolean
1492
4466
  converters: Set<Converter>
1493
4467
  getLegacySchema: () => PortableTextMemberSchemaTypes
1494
4468
  keyGenerator: () => string
@@ -1588,6 +4562,7 @@ declare const editorMachine: StateMachine<
1588
4562
  ActionFunction<
1589
4563
  {
1590
4564
  behaviors: Set<BehaviorConfig>
4565
+ behaviorsSorted: boolean
1591
4566
  converters: Set<Converter>
1592
4567
  getLegacySchema: () => PortableTextMemberSchemaTypes
1593
4568
  keyGenerator: () => string
@@ -1684,6 +4659,7 @@ declare const editorMachine: StateMachine<
1684
4659
  ActionFunction<
1685
4660
  {
1686
4661
  behaviors: Set<BehaviorConfig>
4662
+ behaviorsSorted: boolean
1687
4663
  converters: Set<Converter>
1688
4664
  getLegacySchema: () => PortableTextMemberSchemaTypes
1689
4665
  keyGenerator: () => string
@@ -1827,6 +4803,7 @@ declare const editorMachine: StateMachine<
1827
4803
  readonly actions: ActionFunction<
1828
4804
  {
1829
4805
  behaviors: Set<BehaviorConfig>
4806
+ behaviorsSorted: boolean
1830
4807
  converters: Set<Converter>
1831
4808
  getLegacySchema: () => PortableTextMemberSchemaTypes
1832
4809
  keyGenerator: () => string
@@ -1931,12 +4908,16 @@ declare const editorMachine: StateMachine<
1931
4908
  readonly initial: 'determine initial edit mode'
1932
4909
  readonly on: {
1933
4910
  readonly 'behavior event': {
1934
- readonly actions: 'handle behavior event'
4911
+ readonly actions: readonly [
4912
+ 'sort behaviors',
4913
+ 'handle behavior event',
4914
+ ]
1935
4915
  readonly guard: ({
1936
4916
  event,
1937
4917
  }: GuardArgs<
1938
4918
  {
1939
4919
  behaviors: Set<BehaviorConfig>
4920
+ behaviorsSorted: boolean
1940
4921
  converters: Set<Converter>
1941
4922
  getLegacySchema: () => PortableTextMemberSchemaTypes
1942
4923
  keyGenerator: () => string
@@ -1977,6 +4958,7 @@ declare const editorMachine: StateMachine<
1977
4958
  }: GuardArgs<
1978
4959
  {
1979
4960
  behaviors: Set<BehaviorConfig>
4961
+ behaviorsSorted: boolean
1980
4962
  converters: Set<Converter>
1981
4963
  getLegacySchema: () => PortableTextMemberSchemaTypes
1982
4964
  keyGenerator: () => string
@@ -2016,6 +4998,7 @@ declare const editorMachine: StateMachine<
2016
4998
  }: GuardArgs<
2017
4999
  {
2018
5000
  behaviors: Set<BehaviorConfig>
5001
+ behaviorsSorted: boolean
2019
5002
  converters: Set<Converter>
2020
5003
  getLegacySchema: () => PortableTextMemberSchemaTypes
2021
5004
  keyGenerator: () => string
@@ -2052,6 +5035,7 @@ declare const editorMachine: StateMachine<
2052
5035
  }: GuardArgs<
2053
5036
  {
2054
5037
  behaviors: Set<BehaviorConfig>
5038
+ behaviorsSorted: boolean
2055
5039
  converters: Set<Converter>
2056
5040
  getLegacySchema: () => PortableTextMemberSchemaTypes
2057
5041
  keyGenerator: () => string
@@ -2077,7 +5061,10 @@ declare const editorMachine: StateMachine<
2077
5061
  readonly actions: readonly ['emit read only']
2078
5062
  }
2079
5063
  readonly 'behavior event': {
2080
- readonly actions: 'handle behavior event'
5064
+ readonly actions: readonly [
5065
+ 'sort behaviors',
5066
+ 'handle behavior event',
5067
+ ]
2081
5068
  }
2082
5069
  readonly 'blur': {
2083
5070
  readonly actions: 'handle blur'
@@ -2088,6 +5075,7 @@ declare const editorMachine: StateMachine<
2088
5075
  ActionFunction<
2089
5076
  {
2090
5077
  behaviors: Set<BehaviorConfig>
5078
+ behaviorsSorted: boolean
2091
5079
  converters: Set<Converter>
2092
5080
  getLegacySchema: () => PortableTextMemberSchemaTypes
2093
5081
  keyGenerator: () => string
@@ -2195,6 +5183,7 @@ declare const editorMachine: StateMachine<
2195
5183
  ActionFunction<
2196
5184
  {
2197
5185
  behaviors: Set<BehaviorConfig>
5186
+ behaviorsSorted: boolean
2198
5187
  converters: Set<Converter>
2199
5188
  getLegacySchema: () => PortableTextMemberSchemaTypes
2200
5189
  keyGenerator: () => string
@@ -2333,6 +5322,7 @@ declare const editorMachine: StateMachine<
2333
5322
  }: ActionArgs<
2334
5323
  {
2335
5324
  behaviors: Set<BehaviorConfig>
5325
+ behaviorsSorted: boolean
2336
5326
  converters: Set<Converter>
2337
5327
  getLegacySchema: () => PortableTextMemberSchemaTypes
2338
5328
  keyGenerator: () => string
@@ -2485,6 +5475,7 @@ declare const editorMachine: StateMachine<
2485
5475
  ActionFunction<
2486
5476
  {
2487
5477
  behaviors: Set<BehaviorConfig>
5478
+ behaviorsSorted: boolean
2488
5479
  converters: Set<Converter>
2489
5480
  getLegacySchema: () => PortableTextMemberSchemaTypes
2490
5481
  keyGenerator: () => string
@@ -2643,6 +5634,7 @@ declare const editorMachine: StateMachine<
2643
5634
  ActionFunction<
2644
5635
  {
2645
5636
  behaviors: Set<BehaviorConfig>
5637
+ behaviorsSorted: boolean
2646
5638
  converters: Set<Converter>
2647
5639
  getLegacySchema: () => PortableTextMemberSchemaTypes
2648
5640
  keyGenerator: () => string
@@ -2854,6 +5846,7 @@ declare const editorMachine: StateMachine<
2854
5846
  ActionFunction<
2855
5847
  {
2856
5848
  behaviors: Set<BehaviorConfig>
5849
+ behaviorsSorted: boolean
2857
5850
  converters: Set<Converter>
2858
5851
  getLegacySchema: () => PortableTextMemberSchemaTypes
2859
5852
  keyGenerator: () => string