@portabletext/editor 1.48.13 → 1.48.15

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.
Files changed (78) hide show
  1. package/lib/_chunks-cjs/editor-provider.cjs +682 -609
  2. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  3. package/lib/_chunks-es/editor-provider.js +683 -610
  4. package/lib/_chunks-es/editor-provider.js.map +1 -1
  5. package/lib/behaviors/index.cjs.map +1 -1
  6. package/lib/behaviors/index.d.cts +226 -2772
  7. package/lib/behaviors/index.d.ts +226 -2772
  8. package/lib/behaviors/index.js.map +1 -1
  9. package/lib/index.cjs +22 -6
  10. package/lib/index.cjs.map +1 -1
  11. package/lib/index.d.cts +227 -2780
  12. package/lib/index.d.ts +227 -2780
  13. package/lib/index.js +23 -7
  14. package/lib/index.js.map +1 -1
  15. package/lib/plugins/index.cjs +1 -7
  16. package/lib/plugins/index.cjs.map +1 -1
  17. package/lib/plugins/index.d.cts +226 -2785
  18. package/lib/plugins/index.d.ts +226 -2785
  19. package/lib/plugins/index.js +2 -8
  20. package/lib/plugins/index.js.map +1 -1
  21. package/lib/selectors/index.d.cts +225 -2771
  22. package/lib/selectors/index.d.ts +225 -2771
  23. package/lib/utils/index.d.cts +227 -2772
  24. package/lib/utils/index.d.ts +227 -2772
  25. package/package.json +1 -1
  26. package/src/behaviors/behavior.abstract.keyboard.ts +16 -0
  27. package/src/behaviors/{behavior.default.ts → behavior.abstract.ts} +3 -3
  28. package/src/behaviors/behavior.config.ts +7 -0
  29. package/src/behaviors/behavior.core.ts +6 -5
  30. package/src/behaviors/behavior.perform-event.ts +27 -51
  31. package/src/behaviors/behavior.types.action.ts +1 -11
  32. package/src/editor/PortableTextEditor.tsx +1 -1
  33. package/src/editor/components/Element.tsx +30 -4
  34. package/src/editor/create-editor.ts +17 -5
  35. package/src/editor/editor-machine.ts +23 -17
  36. package/src/editor/mutation-machine.ts +6 -6
  37. package/src/editor/plugins/create-with-event-listeners.ts +25 -25
  38. package/src/editor/plugins/createWithEditableAPI.ts +3 -3
  39. package/src/editor/plugins/createWithPatches.ts +13 -5
  40. package/src/editor/plugins/createWithPortableTextMarkModel.ts +5 -5
  41. package/src/editor/plugins/createWithUndoRedo.ts +8 -8
  42. package/src/editor/with-applying-behavior-operations.ts +18 -0
  43. package/src/editor/{with-applying-behavior-actions.ts → with-undo-step.ts} +1 -19
  44. package/src/index.ts +1 -1
  45. package/src/{behavior-actions/behavior.action.annotation.add.ts → operations/behavior.operation.annotation.add.ts} +7 -7
  46. package/src/{behavior-actions/behavior.action.annotation.remove.ts → operations/behavior.operation.annotation.remove.ts} +6 -6
  47. package/src/{behavior-actions/behavior.action.block.set.ts → operations/behavior.operation.block.set.ts} +14 -14
  48. package/src/{behavior-actions/behavior.action.block.unset.ts → operations/behavior.operation.block.unset.ts} +19 -17
  49. package/src/{behavior-actions/behavior.action.decorator.add.ts → operations/behavior.operation.decorator.add.ts} +10 -10
  50. package/src/operations/behavior.operation.delete.backward.ts +8 -0
  51. package/src/operations/behavior.operation.delete.block.ts +24 -0
  52. package/src/operations/behavior.operation.delete.forward.ts +8 -0
  53. package/src/{behavior-actions/behavior.action.delete.ts → operations/behavior.operation.delete.ts} +8 -8
  54. package/src/{behavior-actions/behavior.action.insert-inline-object.ts → operations/behavior.operation.insert-inline-object.ts} +11 -11
  55. package/src/{behavior-actions/behavior.action.insert-span.ts → operations/behavior.operation.insert-span.ts} +15 -15
  56. package/src/{behavior-actions/behavior.action.insert.block.ts → operations/behavior.operation.insert.block.ts} +8 -8
  57. package/src/operations/behavior.operation.insert.text.ts +17 -0
  58. package/src/operations/behavior.operation.move.backward.ts +12 -0
  59. package/src/operations/behavior.operation.move.block.ts +16 -0
  60. package/src/operations/behavior.operation.move.forward.ts +11 -0
  61. package/src/operations/behavior.operation.select.ts +15 -0
  62. package/src/operations/behavior.operations.ts +239 -0
  63. package/src/plugins/index.ts +0 -1
  64. package/src/priority/priority.core.ts +3 -0
  65. package/src/priority/priority.sort.test.ts +319 -0
  66. package/src/priority/priority.sort.ts +121 -0
  67. package/src/priority/priority.types.ts +24 -0
  68. package/src/behavior-actions/behavior.action.delete.backward.ts +0 -7
  69. package/src/behavior-actions/behavior.action.delete.block.ts +0 -24
  70. package/src/behavior-actions/behavior.action.delete.forward.ts +0 -7
  71. package/src/behavior-actions/behavior.action.insert.text.ts +0 -17
  72. package/src/behavior-actions/behavior.action.move.backward.ts +0 -12
  73. package/src/behavior-actions/behavior.action.move.block.ts +0 -16
  74. package/src/behavior-actions/behavior.action.move.forward.ts +0 -11
  75. package/src/behavior-actions/behavior.action.select.ts +0 -15
  76. package/src/behavior-actions/behavior.actions.ts +0 -219
  77. package/src/behaviors/behavior.default.raise-soft-break.ts +0 -14
  78. package/src/plugins/plugin.core.tsx +0 -9
package/lib/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import type {
5
5
  BlockDecoratorDefinition,
6
6
  BlockListDefinition,
7
7
  BlockStyleDefinition,
8
+ KeyedSegment,
8
9
  ObjectSchemaType,
9
10
  Path,
10
11
  PortableTextListBlock,
@@ -12,7 +13,6 @@ import type {
12
13
  TypedObject,
13
14
  } from '@sanity/types'
14
15
  import {
15
- KeyedSegment,
16
16
  PortableTextBlock,
17
17
  PortableTextChild,
18
18
  PortableTextSpan,
@@ -37,8 +37,8 @@ import {
37
37
  TextareaHTMLAttributes,
38
38
  } from 'react'
39
39
  import type {Observable, Subject} from 'rxjs'
40
- import {Descendant, TextUnit} from 'slate'
41
- import type {Operation} from 'slate'
40
+ import {Descendant} from 'slate'
41
+ import type {Operation, TextUnit} from 'slate'
42
42
  import type {DOMNode} from 'slate-dom'
43
43
  import type {ReactEditor} from 'slate-react'
44
44
  import {
@@ -63,22 +63,6 @@ import {
63
63
  } from 'xstate'
64
64
  import type {EventObject, Snapshot} from 'xstate'
65
65
  import {GuardArgs} from 'xstate/guards'
66
- import {BlockOffset as BlockOffset_2} from '..'
67
- import {
68
- CustomBehaviorEvent as CustomBehaviorEvent_2,
69
- NativeBehaviorEvent as NativeBehaviorEvent_2,
70
- } from '../behaviors'
71
- import {
72
- InputBehaviorEvent as InputBehaviorEvent_2,
73
- InsertPlacement as InsertPlacement_2,
74
- MouseBehaviorEvent as MouseBehaviorEvent_2,
75
- } from '../behaviors/behavior.types.event'
76
- import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
77
- import {
78
- PickFromUnion as PickFromUnion_2,
79
- StrictExtract as StrictExtract_2,
80
- } from '../type-utils'
81
- import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
82
66
  import {Editor as Editor_2} from './create-editor'
83
67
 
84
68
  declare type AbstractBehaviorEvent =
@@ -342,6 +326,11 @@ declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
342
326
  guardResponse: TGuardResponse,
343
327
  ) => Array<BehaviorAction>
344
328
 
329
+ declare type BehaviorConfig = {
330
+ behavior: Behavior
331
+ priority: EditorPriority
332
+ }
333
+
345
334
  /**
346
335
  * @beta
347
336
  */
@@ -887,7 +876,7 @@ export declare function EditorEventListener(props: {
887
876
  */
888
877
  declare const editorMachine: StateMachine<
889
878
  {
890
- behaviors: Set<Behavior>
879
+ behaviors: Set<BehaviorConfig>
891
880
  converters: Set<Converter>
892
881
  getLegacySchema: () => PortableTextMemberSchemaTypes
893
882
  keyGenerator: () => string
@@ -907,14 +896,6 @@ declare const editorMachine: StateMachine<
907
896
  | InternalPatchEvent
908
897
  | MutationEvent
909
898
  | PatchesEvent
910
- | {
911
- type: 'add behavior'
912
- behavior: Behavior
913
- }
914
- | {
915
- type: 'remove behavior'
916
- behavior: Behavior
917
- }
918
899
  | {
919
900
  type: 'update readOnly'
920
901
  readOnly: boolean
@@ -935,6 +916,14 @@ declare const editorMachine: StateMachine<
935
916
  type: 'update maxBlocks'
936
917
  maxBlocks: number | undefined
937
918
  }
919
+ | {
920
+ type: 'add behavior'
921
+ behaviorConfig: BehaviorConfig
922
+ }
923
+ | {
924
+ type: 'remove behavior'
925
+ behaviorConfig: BehaviorConfig
926
+ }
938
927
  | {
939
928
  type: 'blur'
940
929
  editor: PortableTextSlateEditor
@@ -1231,7 +1220,7 @@ declare const editorMachine: StateMachine<
1231
1220
  self: ActorRef<
1232
1221
  MachineSnapshot<
1233
1222
  {
1234
- behaviors: Set<Behavior>
1223
+ behaviors: Set<BehaviorConfig>
1235
1224
  converters: Set<Converter>
1236
1225
  getLegacySchema: () => PortableTextMemberSchemaTypes
1237
1226
  keyGenerator: () => string
@@ -1251,14 +1240,6 @@ declare const editorMachine: StateMachine<
1251
1240
  | InternalPatchEvent
1252
1241
  | MutationEvent
1253
1242
  | PatchesEvent
1254
- | {
1255
- type: 'add behavior'
1256
- behavior: Behavior
1257
- }
1258
- | {
1259
- type: 'remove behavior'
1260
- behavior: Behavior
1261
- }
1262
1243
  | {
1263
1244
  type: 'update readOnly'
1264
1245
  readOnly: boolean
@@ -1279,6 +1260,14 @@ declare const editorMachine: StateMachine<
1279
1260
  type: 'update maxBlocks'
1280
1261
  maxBlocks: number | undefined
1281
1262
  }
1263
+ | {
1264
+ type: 'add behavior'
1265
+ behaviorConfig: BehaviorConfig
1266
+ }
1267
+ | {
1268
+ type: 'remove behavior'
1269
+ behaviorConfig: BehaviorConfig
1270
+ }
1282
1271
  | {
1283
1272
  type: 'blur'
1284
1273
  editor: PortableTextSlateEditor
@@ -1384,14 +1373,6 @@ declare const editorMachine: StateMachine<
1384
1373
  | InternalPatchEvent
1385
1374
  | MutationEvent
1386
1375
  | PatchesEvent
1387
- | {
1388
- type: 'add behavior'
1389
- behavior: Behavior
1390
- }
1391
- | {
1392
- type: 'remove behavior'
1393
- behavior: Behavior
1394
- }
1395
1376
  | {
1396
1377
  type: 'update readOnly'
1397
1378
  readOnly: boolean
@@ -1412,6 +1393,14 @@ declare const editorMachine: StateMachine<
1412
1393
  type: 'update maxBlocks'
1413
1394
  maxBlocks: number | undefined
1414
1395
  }
1396
+ | {
1397
+ type: 'add behavior'
1398
+ behaviorConfig: BehaviorConfig
1399
+ }
1400
+ | {
1401
+ type: 'remove behavior'
1402
+ behaviorConfig: BehaviorConfig
1403
+ }
1415
1404
  | {
1416
1405
  type: 'blur'
1417
1406
  editor: PortableTextSlateEditor
@@ -1510,2550 +1499,7 @@ declare const editorMachine: StateMachine<
1510
1499
  AnyEventObject
1511
1500
  >
1512
1501
  }) => {
1513
- behaviors: Set<
1514
- Behavior<
1515
- | 'serialize'
1516
- | 'clipboard.copy'
1517
- | 'clipboard.cut'
1518
- | 'drag.dragstart'
1519
- | 'serialization.failure'
1520
- | 'serialization.success'
1521
- | 'deserialize'
1522
- | 'deserialization.failure'
1523
- | 'deserialization.success'
1524
- | 'split'
1525
- | 'delete'
1526
- | 'select'
1527
- | '*'
1528
- | 'annotation.add'
1529
- | 'annotation.remove'
1530
- | 'block.set'
1531
- | 'block.unset'
1532
- | 'decorator.add'
1533
- | 'decorator.remove'
1534
- | 'delete.backward'
1535
- | 'delete.block'
1536
- | 'delete.forward'
1537
- | 'history.redo'
1538
- | 'history.undo'
1539
- | 'insert.inline object'
1540
- | 'insert.block'
1541
- | 'insert.span'
1542
- | 'insert.text'
1543
- | 'move.backward'
1544
- | 'move.block'
1545
- | 'move.forward'
1546
- | 'annotation.toggle'
1547
- | 'decorator.toggle'
1548
- | 'delete.text'
1549
- | 'insert.blocks'
1550
- | 'insert.break'
1551
- | 'insert.soft break'
1552
- | 'list item.add'
1553
- | 'list item.remove'
1554
- | 'list item.toggle'
1555
- | 'move.block down'
1556
- | 'move.block up'
1557
- | 'select.previous block'
1558
- | 'select.next block'
1559
- | 'style.add'
1560
- | 'style.remove'
1561
- | 'style.toggle'
1562
- | 'clipboard.paste'
1563
- | 'drag.drag'
1564
- | 'drag.dragend'
1565
- | 'drag.dragenter'
1566
- | 'drag.dragover'
1567
- | 'drag.dragleave'
1568
- | 'drag.drop'
1569
- | 'input.*'
1570
- | 'keyboard.keydown'
1571
- | 'keyboard.keyup'
1572
- | 'mouse.click'
1573
- | 'serialize.*'
1574
- | 'deserialize.*'
1575
- | 'split.*'
1576
- | 'block.*'
1577
- | 'style.*'
1578
- | 'delete.*'
1579
- | 'move.*'
1580
- | 'select.*'
1581
- | 'history.*'
1582
- | 'serialization.*'
1583
- | 'deserialization.*'
1584
- | 'annotation.*'
1585
- | 'decorator.*'
1586
- | 'insert.*'
1587
- | 'list item.*'
1588
- | 'clipboard.*'
1589
- | 'drag.*'
1590
- | 'keyboard.*'
1591
- | 'mouse.*'
1592
- | `custom.${string}`,
1593
- true,
1594
- | {
1595
- type: StrictExtract_2<
1596
- | 'serialize'
1597
- | 'serialization.failure'
1598
- | 'serialization.success'
1599
- | 'deserialize'
1600
- | 'deserialization.failure'
1601
- | 'deserialization.success'
1602
- | 'split'
1603
- | 'delete'
1604
- | 'select'
1605
- | 'annotation.add'
1606
- | 'annotation.remove'
1607
- | 'block.set'
1608
- | 'block.unset'
1609
- | 'decorator.add'
1610
- | 'decorator.remove'
1611
- | 'delete.backward'
1612
- | 'delete.block'
1613
- | 'delete.forward'
1614
- | 'history.redo'
1615
- | 'history.undo'
1616
- | 'insert.inline object'
1617
- | 'insert.block'
1618
- | 'insert.span'
1619
- | 'insert.text'
1620
- | 'move.backward'
1621
- | 'move.block'
1622
- | 'move.forward'
1623
- | 'annotation.toggle'
1624
- | 'decorator.toggle'
1625
- | 'delete.text'
1626
- | 'insert.blocks'
1627
- | 'insert.break'
1628
- | 'insert.soft break'
1629
- | 'list item.add'
1630
- | 'list item.remove'
1631
- | 'list item.toggle'
1632
- | 'move.block down'
1633
- | 'move.block up'
1634
- | 'select.previous block'
1635
- | 'select.next block'
1636
- | 'style.add'
1637
- | 'style.remove'
1638
- | 'style.toggle',
1639
- 'annotation.add'
1640
- >
1641
- annotation: {
1642
- name: string
1643
- value: {
1644
- [prop: string]: unknown
1645
- }
1646
- }
1647
- }
1648
- | {
1649
- type: StrictExtract_2<
1650
- | 'serialize'
1651
- | 'serialization.failure'
1652
- | 'serialization.success'
1653
- | 'deserialize'
1654
- | 'deserialization.failure'
1655
- | 'deserialization.success'
1656
- | 'split'
1657
- | 'delete'
1658
- | 'select'
1659
- | 'annotation.add'
1660
- | 'annotation.remove'
1661
- | 'block.set'
1662
- | 'block.unset'
1663
- | 'decorator.add'
1664
- | 'decorator.remove'
1665
- | 'delete.backward'
1666
- | 'delete.block'
1667
- | 'delete.forward'
1668
- | 'history.redo'
1669
- | 'history.undo'
1670
- | 'insert.inline object'
1671
- | 'insert.block'
1672
- | 'insert.span'
1673
- | 'insert.text'
1674
- | 'move.backward'
1675
- | 'move.block'
1676
- | 'move.forward'
1677
- | 'annotation.toggle'
1678
- | 'decorator.toggle'
1679
- | 'delete.text'
1680
- | 'insert.blocks'
1681
- | 'insert.break'
1682
- | 'insert.soft break'
1683
- | 'list item.add'
1684
- | 'list item.remove'
1685
- | 'list item.toggle'
1686
- | 'move.block down'
1687
- | 'move.block up'
1688
- | 'select.previous block'
1689
- | 'select.next block'
1690
- | 'style.add'
1691
- | 'style.remove'
1692
- | 'style.toggle',
1693
- 'annotation.remove'
1694
- >
1695
- annotation: {
1696
- name: string
1697
- }
1698
- }
1699
- | {
1700
- type: StrictExtract_2<
1701
- | 'serialize'
1702
- | 'serialization.failure'
1703
- | 'serialization.success'
1704
- | 'deserialize'
1705
- | 'deserialization.failure'
1706
- | 'deserialization.success'
1707
- | 'split'
1708
- | 'delete'
1709
- | 'select'
1710
- | 'annotation.add'
1711
- | 'annotation.remove'
1712
- | 'block.set'
1713
- | 'block.unset'
1714
- | 'decorator.add'
1715
- | 'decorator.remove'
1716
- | 'delete.backward'
1717
- | 'delete.block'
1718
- | 'delete.forward'
1719
- | 'history.redo'
1720
- | 'history.undo'
1721
- | 'insert.inline object'
1722
- | 'insert.block'
1723
- | 'insert.span'
1724
- | 'insert.text'
1725
- | 'move.backward'
1726
- | 'move.block'
1727
- | 'move.forward'
1728
- | 'annotation.toggle'
1729
- | 'decorator.toggle'
1730
- | 'delete.text'
1731
- | 'insert.blocks'
1732
- | 'insert.break'
1733
- | 'insert.soft break'
1734
- | 'list item.add'
1735
- | 'list item.remove'
1736
- | 'list item.toggle'
1737
- | 'move.block down'
1738
- | 'move.block up'
1739
- | 'select.previous block'
1740
- | 'select.next block'
1741
- | 'style.add'
1742
- | 'style.remove'
1743
- | 'style.toggle',
1744
- 'block.set'
1745
- >
1746
- at: [KeyedSegment]
1747
- props: Record<string, unknown>
1748
- }
1749
- | {
1750
- type: StrictExtract_2<
1751
- | 'serialize'
1752
- | 'serialization.failure'
1753
- | 'serialization.success'
1754
- | 'deserialize'
1755
- | 'deserialization.failure'
1756
- | 'deserialization.success'
1757
- | 'split'
1758
- | 'delete'
1759
- | 'select'
1760
- | 'annotation.add'
1761
- | 'annotation.remove'
1762
- | 'block.set'
1763
- | 'block.unset'
1764
- | 'decorator.add'
1765
- | 'decorator.remove'
1766
- | 'delete.backward'
1767
- | 'delete.block'
1768
- | 'delete.forward'
1769
- | 'history.redo'
1770
- | 'history.undo'
1771
- | 'insert.inline object'
1772
- | 'insert.block'
1773
- | 'insert.span'
1774
- | 'insert.text'
1775
- | 'move.backward'
1776
- | 'move.block'
1777
- | 'move.forward'
1778
- | 'annotation.toggle'
1779
- | 'decorator.toggle'
1780
- | 'delete.text'
1781
- | 'insert.blocks'
1782
- | 'insert.break'
1783
- | 'insert.soft break'
1784
- | 'list item.add'
1785
- | 'list item.remove'
1786
- | 'list item.toggle'
1787
- | 'move.block down'
1788
- | 'move.block up'
1789
- | 'select.previous block'
1790
- | 'select.next block'
1791
- | 'style.add'
1792
- | 'style.remove'
1793
- | 'style.toggle',
1794
- 'block.unset'
1795
- >
1796
- at: [KeyedSegment]
1797
- props: Array<string>
1798
- }
1799
- | {
1800
- type: StrictExtract_2<
1801
- | 'serialize'
1802
- | 'serialization.failure'
1803
- | 'serialization.success'
1804
- | 'deserialize'
1805
- | 'deserialization.failure'
1806
- | 'deserialization.success'
1807
- | 'split'
1808
- | 'delete'
1809
- | 'select'
1810
- | 'annotation.add'
1811
- | 'annotation.remove'
1812
- | 'block.set'
1813
- | 'block.unset'
1814
- | 'decorator.add'
1815
- | 'decorator.remove'
1816
- | 'delete.backward'
1817
- | 'delete.block'
1818
- | 'delete.forward'
1819
- | 'history.redo'
1820
- | 'history.undo'
1821
- | 'insert.inline object'
1822
- | 'insert.block'
1823
- | 'insert.span'
1824
- | 'insert.text'
1825
- | 'move.backward'
1826
- | 'move.block'
1827
- | 'move.forward'
1828
- | 'annotation.toggle'
1829
- | 'decorator.toggle'
1830
- | 'delete.text'
1831
- | 'insert.blocks'
1832
- | 'insert.break'
1833
- | 'insert.soft break'
1834
- | 'list item.add'
1835
- | 'list item.remove'
1836
- | 'list item.toggle'
1837
- | 'move.block down'
1838
- | 'move.block up'
1839
- | 'select.previous block'
1840
- | 'select.next block'
1841
- | 'style.add'
1842
- | 'style.remove'
1843
- | 'style.toggle',
1844
- 'decorator.add'
1845
- >
1846
- decorator: string
1847
- at?: {
1848
- anchor: BlockOffset_2
1849
- focus: BlockOffset_2
1850
- }
1851
- }
1852
- | {
1853
- type: StrictExtract_2<
1854
- | 'serialize'
1855
- | 'serialization.failure'
1856
- | 'serialization.success'
1857
- | 'deserialize'
1858
- | 'deserialization.failure'
1859
- | 'deserialization.success'
1860
- | 'split'
1861
- | 'delete'
1862
- | 'select'
1863
- | 'annotation.add'
1864
- | 'annotation.remove'
1865
- | 'block.set'
1866
- | 'block.unset'
1867
- | 'decorator.add'
1868
- | 'decorator.remove'
1869
- | 'delete.backward'
1870
- | 'delete.block'
1871
- | 'delete.forward'
1872
- | 'history.redo'
1873
- | 'history.undo'
1874
- | 'insert.inline object'
1875
- | 'insert.block'
1876
- | 'insert.span'
1877
- | 'insert.text'
1878
- | 'move.backward'
1879
- | 'move.block'
1880
- | 'move.forward'
1881
- | 'annotation.toggle'
1882
- | 'decorator.toggle'
1883
- | 'delete.text'
1884
- | 'insert.blocks'
1885
- | 'insert.break'
1886
- | 'insert.soft break'
1887
- | 'list item.add'
1888
- | 'list item.remove'
1889
- | 'list item.toggle'
1890
- | 'move.block down'
1891
- | 'move.block up'
1892
- | 'select.previous block'
1893
- | 'select.next block'
1894
- | 'style.add'
1895
- | 'style.remove'
1896
- | 'style.toggle',
1897
- 'decorator.remove'
1898
- >
1899
- decorator: string
1900
- }
1901
- | {
1902
- type: StrictExtract_2<
1903
- | 'serialize'
1904
- | 'serialization.failure'
1905
- | 'serialization.success'
1906
- | 'deserialize'
1907
- | 'deserialization.failure'
1908
- | 'deserialization.success'
1909
- | 'split'
1910
- | 'delete'
1911
- | 'select'
1912
- | 'annotation.add'
1913
- | 'annotation.remove'
1914
- | 'block.set'
1915
- | 'block.unset'
1916
- | 'decorator.add'
1917
- | 'decorator.remove'
1918
- | 'delete.backward'
1919
- | 'delete.block'
1920
- | 'delete.forward'
1921
- | 'history.redo'
1922
- | 'history.undo'
1923
- | 'insert.inline object'
1924
- | 'insert.block'
1925
- | 'insert.span'
1926
- | 'insert.text'
1927
- | 'move.backward'
1928
- | 'move.block'
1929
- | 'move.forward'
1930
- | 'annotation.toggle'
1931
- | 'decorator.toggle'
1932
- | 'delete.text'
1933
- | 'insert.blocks'
1934
- | 'insert.break'
1935
- | 'insert.soft break'
1936
- | 'list item.add'
1937
- | 'list item.remove'
1938
- | 'list item.toggle'
1939
- | 'move.block down'
1940
- | 'move.block up'
1941
- | 'select.previous block'
1942
- | 'select.next block'
1943
- | 'style.add'
1944
- | 'style.remove'
1945
- | 'style.toggle',
1946
- 'delete'
1947
- >
1948
- at: NonNullable<EditorSelection>
1949
- }
1950
- | {
1951
- type: StrictExtract_2<
1952
- | 'serialize'
1953
- | 'serialization.failure'
1954
- | 'serialization.success'
1955
- | 'deserialize'
1956
- | 'deserialization.failure'
1957
- | 'deserialization.success'
1958
- | 'split'
1959
- | 'delete'
1960
- | 'select'
1961
- | 'annotation.add'
1962
- | 'annotation.remove'
1963
- | 'block.set'
1964
- | 'block.unset'
1965
- | 'decorator.add'
1966
- | 'decorator.remove'
1967
- | 'delete.backward'
1968
- | 'delete.block'
1969
- | 'delete.forward'
1970
- | 'history.redo'
1971
- | 'history.undo'
1972
- | 'insert.inline object'
1973
- | 'insert.block'
1974
- | 'insert.span'
1975
- | 'insert.text'
1976
- | 'move.backward'
1977
- | 'move.block'
1978
- | 'move.forward'
1979
- | 'annotation.toggle'
1980
- | 'decorator.toggle'
1981
- | 'delete.text'
1982
- | 'insert.blocks'
1983
- | 'insert.break'
1984
- | 'insert.soft break'
1985
- | 'list item.add'
1986
- | 'list item.remove'
1987
- | 'list item.toggle'
1988
- | 'move.block down'
1989
- | 'move.block up'
1990
- | 'select.previous block'
1991
- | 'select.next block'
1992
- | 'style.add'
1993
- | 'style.remove'
1994
- | 'style.toggle',
1995
- 'delete.backward'
1996
- >
1997
- unit: TextUnit
1998
- }
1999
- | {
2000
- type: StrictExtract_2<
2001
- | 'serialize'
2002
- | 'serialization.failure'
2003
- | 'serialization.success'
2004
- | 'deserialize'
2005
- | 'deserialization.failure'
2006
- | 'deserialization.success'
2007
- | 'split'
2008
- | 'delete'
2009
- | 'select'
2010
- | 'annotation.add'
2011
- | 'annotation.remove'
2012
- | 'block.set'
2013
- | 'block.unset'
2014
- | 'decorator.add'
2015
- | 'decorator.remove'
2016
- | 'delete.backward'
2017
- | 'delete.block'
2018
- | 'delete.forward'
2019
- | 'history.redo'
2020
- | 'history.undo'
2021
- | 'insert.inline object'
2022
- | 'insert.block'
2023
- | 'insert.span'
2024
- | 'insert.text'
2025
- | 'move.backward'
2026
- | 'move.block'
2027
- | 'move.forward'
2028
- | 'annotation.toggle'
2029
- | 'decorator.toggle'
2030
- | 'delete.text'
2031
- | 'insert.blocks'
2032
- | 'insert.break'
2033
- | 'insert.soft break'
2034
- | 'list item.add'
2035
- | 'list item.remove'
2036
- | 'list item.toggle'
2037
- | 'move.block down'
2038
- | 'move.block up'
2039
- | 'select.previous block'
2040
- | 'select.next block'
2041
- | 'style.add'
2042
- | 'style.remove'
2043
- | 'style.toggle',
2044
- 'delete.block'
2045
- >
2046
- at: [KeyedSegment]
2047
- }
2048
- | {
2049
- type: StrictExtract_2<
2050
- | 'serialize'
2051
- | 'serialization.failure'
2052
- | 'serialization.success'
2053
- | 'deserialize'
2054
- | 'deserialization.failure'
2055
- | 'deserialization.success'
2056
- | 'split'
2057
- | 'delete'
2058
- | 'select'
2059
- | 'annotation.add'
2060
- | 'annotation.remove'
2061
- | 'block.set'
2062
- | 'block.unset'
2063
- | 'decorator.add'
2064
- | 'decorator.remove'
2065
- | 'delete.backward'
2066
- | 'delete.block'
2067
- | 'delete.forward'
2068
- | 'history.redo'
2069
- | 'history.undo'
2070
- | 'insert.inline object'
2071
- | 'insert.block'
2072
- | 'insert.span'
2073
- | 'insert.text'
2074
- | 'move.backward'
2075
- | 'move.block'
2076
- | 'move.forward'
2077
- | 'annotation.toggle'
2078
- | 'decorator.toggle'
2079
- | 'delete.text'
2080
- | 'insert.blocks'
2081
- | 'insert.break'
2082
- | 'insert.soft break'
2083
- | 'list item.add'
2084
- | 'list item.remove'
2085
- | 'list item.toggle'
2086
- | 'move.block down'
2087
- | 'move.block up'
2088
- | 'select.previous block'
2089
- | 'select.next block'
2090
- | 'style.add'
2091
- | 'style.remove'
2092
- | 'style.toggle',
2093
- 'delete.forward'
2094
- >
2095
- unit: TextUnit
2096
- }
2097
- | {
2098
- type: StrictExtract_2<
2099
- | 'serialize'
2100
- | 'serialization.failure'
2101
- | 'serialization.success'
2102
- | 'deserialize'
2103
- | 'deserialization.failure'
2104
- | 'deserialization.success'
2105
- | 'split'
2106
- | 'delete'
2107
- | 'select'
2108
- | 'annotation.add'
2109
- | 'annotation.remove'
2110
- | 'block.set'
2111
- | 'block.unset'
2112
- | 'decorator.add'
2113
- | 'decorator.remove'
2114
- | 'delete.backward'
2115
- | 'delete.block'
2116
- | 'delete.forward'
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
- | 'annotation.toggle'
2127
- | 'decorator.toggle'
2128
- | 'delete.text'
2129
- | 'insert.blocks'
2130
- | 'insert.break'
2131
- | 'insert.soft break'
2132
- | 'list item.add'
2133
- | 'list item.remove'
2134
- | 'list item.toggle'
2135
- | 'move.block down'
2136
- | 'move.block up'
2137
- | 'select.previous block'
2138
- | 'select.next block'
2139
- | 'style.add'
2140
- | 'style.remove'
2141
- | 'style.toggle',
2142
- 'history.redo'
2143
- >
2144
- }
2145
- | {
2146
- type: StrictExtract_2<
2147
- | 'serialize'
2148
- | 'serialization.failure'
2149
- | 'serialization.success'
2150
- | 'deserialize'
2151
- | 'deserialization.failure'
2152
- | 'deserialization.success'
2153
- | 'split'
2154
- | 'delete'
2155
- | 'select'
2156
- | 'annotation.add'
2157
- | 'annotation.remove'
2158
- | 'block.set'
2159
- | 'block.unset'
2160
- | 'decorator.add'
2161
- | 'decorator.remove'
2162
- | 'delete.backward'
2163
- | 'delete.block'
2164
- | 'delete.forward'
2165
- | 'history.redo'
2166
- | 'history.undo'
2167
- | 'insert.inline object'
2168
- | 'insert.block'
2169
- | 'insert.span'
2170
- | 'insert.text'
2171
- | 'move.backward'
2172
- | 'move.block'
2173
- | 'move.forward'
2174
- | 'annotation.toggle'
2175
- | 'decorator.toggle'
2176
- | 'delete.text'
2177
- | 'insert.blocks'
2178
- | 'insert.break'
2179
- | 'insert.soft break'
2180
- | 'list item.add'
2181
- | 'list item.remove'
2182
- | 'list item.toggle'
2183
- | 'move.block down'
2184
- | 'move.block up'
2185
- | 'select.previous block'
2186
- | 'select.next block'
2187
- | 'style.add'
2188
- | 'style.remove'
2189
- | 'style.toggle',
2190
- 'history.undo'
2191
- >
2192
- }
2193
- | {
2194
- type: StrictExtract_2<
2195
- | 'serialize'
2196
- | 'serialization.failure'
2197
- | 'serialization.success'
2198
- | 'deserialize'
2199
- | 'deserialization.failure'
2200
- | 'deserialization.success'
2201
- | 'split'
2202
- | 'delete'
2203
- | 'select'
2204
- | 'annotation.add'
2205
- | 'annotation.remove'
2206
- | 'block.set'
2207
- | 'block.unset'
2208
- | 'decorator.add'
2209
- | 'decorator.remove'
2210
- | 'delete.backward'
2211
- | 'delete.block'
2212
- | 'delete.forward'
2213
- | 'history.redo'
2214
- | 'history.undo'
2215
- | 'insert.inline object'
2216
- | 'insert.block'
2217
- | 'insert.span'
2218
- | 'insert.text'
2219
- | 'move.backward'
2220
- | 'move.block'
2221
- | 'move.forward'
2222
- | 'annotation.toggle'
2223
- | 'decorator.toggle'
2224
- | 'delete.text'
2225
- | 'insert.blocks'
2226
- | 'insert.break'
2227
- | 'insert.soft break'
2228
- | 'list item.add'
2229
- | 'list item.remove'
2230
- | 'list item.toggle'
2231
- | 'move.block down'
2232
- | 'move.block up'
2233
- | 'select.previous block'
2234
- | 'select.next block'
2235
- | 'style.add'
2236
- | 'style.remove'
2237
- | 'style.toggle',
2238
- 'insert.inline object'
2239
- >
2240
- inlineObject: {
2241
- name: string
2242
- value?: {
2243
- [prop: string]: unknown
2244
- }
2245
- }
2246
- }
2247
- | {
2248
- type: StrictExtract_2<
2249
- | 'serialize'
2250
- | 'serialization.failure'
2251
- | 'serialization.success'
2252
- | 'deserialize'
2253
- | 'deserialization.failure'
2254
- | 'deserialization.success'
2255
- | 'split'
2256
- | 'delete'
2257
- | 'select'
2258
- | 'annotation.add'
2259
- | 'annotation.remove'
2260
- | 'block.set'
2261
- | 'block.unset'
2262
- | 'decorator.add'
2263
- | 'decorator.remove'
2264
- | 'delete.backward'
2265
- | 'delete.block'
2266
- | 'delete.forward'
2267
- | 'history.redo'
2268
- | 'history.undo'
2269
- | 'insert.inline object'
2270
- | 'insert.block'
2271
- | 'insert.span'
2272
- | 'insert.text'
2273
- | 'move.backward'
2274
- | 'move.block'
2275
- | 'move.forward'
2276
- | 'annotation.toggle'
2277
- | 'decorator.toggle'
2278
- | 'delete.text'
2279
- | 'insert.blocks'
2280
- | 'insert.break'
2281
- | 'insert.soft break'
2282
- | 'list item.add'
2283
- | 'list item.remove'
2284
- | 'list item.toggle'
2285
- | 'move.block down'
2286
- | 'move.block up'
2287
- | 'select.previous block'
2288
- | 'select.next block'
2289
- | 'style.add'
2290
- | 'style.remove'
2291
- | 'style.toggle',
2292
- 'insert.block'
2293
- >
2294
- block: BlockWithOptionalKey_2
2295
- placement: InsertPlacement_2
2296
- select?: 'start' | 'end' | 'none'
2297
- }
2298
- | {
2299
- type: StrictExtract_2<
2300
- | 'serialize'
2301
- | 'serialization.failure'
2302
- | 'serialization.success'
2303
- | 'deserialize'
2304
- | 'deserialization.failure'
2305
- | 'deserialization.success'
2306
- | 'split'
2307
- | 'delete'
2308
- | 'select'
2309
- | 'annotation.add'
2310
- | 'annotation.remove'
2311
- | 'block.set'
2312
- | 'block.unset'
2313
- | 'decorator.add'
2314
- | 'decorator.remove'
2315
- | 'delete.backward'
2316
- | 'delete.block'
2317
- | 'delete.forward'
2318
- | 'history.redo'
2319
- | 'history.undo'
2320
- | 'insert.inline object'
2321
- | 'insert.block'
2322
- | 'insert.span'
2323
- | 'insert.text'
2324
- | 'move.backward'
2325
- | 'move.block'
2326
- | 'move.forward'
2327
- | 'annotation.toggle'
2328
- | 'decorator.toggle'
2329
- | 'delete.text'
2330
- | 'insert.blocks'
2331
- | 'insert.break'
2332
- | 'insert.soft break'
2333
- | 'list item.add'
2334
- | 'list item.remove'
2335
- | 'list item.toggle'
2336
- | 'move.block down'
2337
- | 'move.block up'
2338
- | 'select.previous block'
2339
- | 'select.next block'
2340
- | 'style.add'
2341
- | 'style.remove'
2342
- | 'style.toggle',
2343
- 'insert.span'
2344
- >
2345
- text: string
2346
- annotations?: Array<{
2347
- name: string
2348
- value: {
2349
- [prop: string]: unknown
2350
- }
2351
- }>
2352
- decorators?: Array<string>
2353
- }
2354
- | {
2355
- type: StrictExtract_2<
2356
- | 'serialize'
2357
- | 'serialization.failure'
2358
- | 'serialization.success'
2359
- | 'deserialize'
2360
- | 'deserialization.failure'
2361
- | 'deserialization.success'
2362
- | 'split'
2363
- | 'delete'
2364
- | 'select'
2365
- | 'annotation.add'
2366
- | 'annotation.remove'
2367
- | 'block.set'
2368
- | 'block.unset'
2369
- | 'decorator.add'
2370
- | 'decorator.remove'
2371
- | 'delete.backward'
2372
- | 'delete.block'
2373
- | 'delete.forward'
2374
- | 'history.redo'
2375
- | 'history.undo'
2376
- | 'insert.inline object'
2377
- | 'insert.block'
2378
- | 'insert.span'
2379
- | 'insert.text'
2380
- | 'move.backward'
2381
- | 'move.block'
2382
- | 'move.forward'
2383
- | 'annotation.toggle'
2384
- | 'decorator.toggle'
2385
- | 'delete.text'
2386
- | 'insert.blocks'
2387
- | 'insert.break'
2388
- | 'insert.soft break'
2389
- | 'list item.add'
2390
- | 'list item.remove'
2391
- | 'list item.toggle'
2392
- | 'move.block down'
2393
- | 'move.block up'
2394
- | 'select.previous block'
2395
- | 'select.next block'
2396
- | 'style.add'
2397
- | 'style.remove'
2398
- | 'style.toggle',
2399
- 'insert.text'
2400
- >
2401
- text: string
2402
- }
2403
- | {
2404
- type: StrictExtract_2<
2405
- | 'serialize'
2406
- | 'serialization.failure'
2407
- | 'serialization.success'
2408
- | 'deserialize'
2409
- | 'deserialization.failure'
2410
- | 'deserialization.success'
2411
- | 'split'
2412
- | 'delete'
2413
- | 'select'
2414
- | 'annotation.add'
2415
- | 'annotation.remove'
2416
- | 'block.set'
2417
- | 'block.unset'
2418
- | 'decorator.add'
2419
- | 'decorator.remove'
2420
- | 'delete.backward'
2421
- | 'delete.block'
2422
- | 'delete.forward'
2423
- | 'history.redo'
2424
- | 'history.undo'
2425
- | 'insert.inline object'
2426
- | 'insert.block'
2427
- | 'insert.span'
2428
- | 'insert.text'
2429
- | 'move.backward'
2430
- | 'move.block'
2431
- | 'move.forward'
2432
- | 'annotation.toggle'
2433
- | 'decorator.toggle'
2434
- | 'delete.text'
2435
- | 'insert.blocks'
2436
- | 'insert.break'
2437
- | 'insert.soft break'
2438
- | 'list item.add'
2439
- | 'list item.remove'
2440
- | 'list item.toggle'
2441
- | 'move.block down'
2442
- | 'move.block up'
2443
- | 'select.previous block'
2444
- | 'select.next block'
2445
- | 'style.add'
2446
- | 'style.remove'
2447
- | 'style.toggle',
2448
- 'move.backward'
2449
- >
2450
- distance: number
2451
- }
2452
- | {
2453
- type: StrictExtract_2<
2454
- | 'serialize'
2455
- | 'serialization.failure'
2456
- | 'serialization.success'
2457
- | 'deserialize'
2458
- | 'deserialization.failure'
2459
- | 'deserialization.success'
2460
- | 'split'
2461
- | 'delete'
2462
- | 'select'
2463
- | 'annotation.add'
2464
- | 'annotation.remove'
2465
- | 'block.set'
2466
- | 'block.unset'
2467
- | 'decorator.add'
2468
- | 'decorator.remove'
2469
- | 'delete.backward'
2470
- | 'delete.block'
2471
- | 'delete.forward'
2472
- | 'history.redo'
2473
- | 'history.undo'
2474
- | 'insert.inline object'
2475
- | 'insert.block'
2476
- | 'insert.span'
2477
- | 'insert.text'
2478
- | 'move.backward'
2479
- | 'move.block'
2480
- | 'move.forward'
2481
- | 'annotation.toggle'
2482
- | 'decorator.toggle'
2483
- | 'delete.text'
2484
- | 'insert.blocks'
2485
- | 'insert.break'
2486
- | 'insert.soft break'
2487
- | 'list item.add'
2488
- | 'list item.remove'
2489
- | 'list item.toggle'
2490
- | 'move.block down'
2491
- | 'move.block up'
2492
- | 'select.previous block'
2493
- | 'select.next block'
2494
- | 'style.add'
2495
- | 'style.remove'
2496
- | 'style.toggle',
2497
- 'move.block'
2498
- >
2499
- at: [KeyedSegment]
2500
- to: [KeyedSegment]
2501
- }
2502
- | {
2503
- type: StrictExtract_2<
2504
- | 'serialize'
2505
- | 'serialization.failure'
2506
- | 'serialization.success'
2507
- | 'deserialize'
2508
- | 'deserialization.failure'
2509
- | 'deserialization.success'
2510
- | 'split'
2511
- | 'delete'
2512
- | 'select'
2513
- | 'annotation.add'
2514
- | 'annotation.remove'
2515
- | 'block.set'
2516
- | 'block.unset'
2517
- | 'decorator.add'
2518
- | 'decorator.remove'
2519
- | 'delete.backward'
2520
- | 'delete.block'
2521
- | 'delete.forward'
2522
- | 'history.redo'
2523
- | 'history.undo'
2524
- | 'insert.inline object'
2525
- | 'insert.block'
2526
- | 'insert.span'
2527
- | 'insert.text'
2528
- | 'move.backward'
2529
- | 'move.block'
2530
- | 'move.forward'
2531
- | 'annotation.toggle'
2532
- | 'decorator.toggle'
2533
- | 'delete.text'
2534
- | 'insert.blocks'
2535
- | 'insert.break'
2536
- | 'insert.soft break'
2537
- | 'list item.add'
2538
- | 'list item.remove'
2539
- | 'list item.toggle'
2540
- | 'move.block down'
2541
- | 'move.block up'
2542
- | 'select.previous block'
2543
- | 'select.next block'
2544
- | 'style.add'
2545
- | 'style.remove'
2546
- | 'style.toggle',
2547
- 'move.forward'
2548
- >
2549
- distance: number
2550
- }
2551
- | {
2552
- type: StrictExtract_2<
2553
- | 'serialize'
2554
- | 'serialization.failure'
2555
- | 'serialization.success'
2556
- | 'deserialize'
2557
- | 'deserialization.failure'
2558
- | 'deserialization.success'
2559
- | 'split'
2560
- | 'delete'
2561
- | 'select'
2562
- | 'annotation.add'
2563
- | 'annotation.remove'
2564
- | 'block.set'
2565
- | 'block.unset'
2566
- | 'decorator.add'
2567
- | 'decorator.remove'
2568
- | 'delete.backward'
2569
- | 'delete.block'
2570
- | 'delete.forward'
2571
- | 'history.redo'
2572
- | 'history.undo'
2573
- | 'insert.inline object'
2574
- | 'insert.block'
2575
- | 'insert.span'
2576
- | 'insert.text'
2577
- | 'move.backward'
2578
- | 'move.block'
2579
- | 'move.forward'
2580
- | 'annotation.toggle'
2581
- | 'decorator.toggle'
2582
- | 'delete.text'
2583
- | 'insert.blocks'
2584
- | 'insert.break'
2585
- | 'insert.soft break'
2586
- | 'list item.add'
2587
- | 'list item.remove'
2588
- | 'list item.toggle'
2589
- | 'move.block down'
2590
- | 'move.block up'
2591
- | 'select.previous block'
2592
- | 'select.next block'
2593
- | 'style.add'
2594
- | 'style.remove'
2595
- | 'style.toggle',
2596
- 'select'
2597
- >
2598
- at: EditorSelection
2599
- }
2600
- | {
2601
- type: StrictExtract_2<
2602
- | 'serialize'
2603
- | 'serialization.failure'
2604
- | 'serialization.success'
2605
- | 'deserialize'
2606
- | 'deserialization.failure'
2607
- | 'deserialization.success'
2608
- | 'split'
2609
- | 'delete'
2610
- | 'select'
2611
- | 'annotation.add'
2612
- | 'annotation.remove'
2613
- | 'block.set'
2614
- | 'block.unset'
2615
- | 'decorator.add'
2616
- | 'decorator.remove'
2617
- | 'delete.backward'
2618
- | 'delete.block'
2619
- | 'delete.forward'
2620
- | 'history.redo'
2621
- | 'history.undo'
2622
- | 'insert.inline object'
2623
- | 'insert.block'
2624
- | 'insert.span'
2625
- | 'insert.text'
2626
- | 'move.backward'
2627
- | 'move.block'
2628
- | 'move.forward'
2629
- | 'annotation.toggle'
2630
- | 'decorator.toggle'
2631
- | 'delete.text'
2632
- | 'insert.blocks'
2633
- | 'insert.break'
2634
- | 'insert.soft break'
2635
- | 'list item.add'
2636
- | 'list item.remove'
2637
- | 'list item.toggle'
2638
- | 'move.block down'
2639
- | 'move.block up'
2640
- | 'select.previous block'
2641
- | 'select.next block'
2642
- | 'style.add'
2643
- | 'style.remove'
2644
- | 'style.toggle',
2645
- 'annotation.toggle'
2646
- >
2647
- annotation: {
2648
- name: string
2649
- value: {
2650
- [prop: string]: unknown
2651
- }
2652
- }
2653
- }
2654
- | {
2655
- type: StrictExtract_2<
2656
- | 'serialize'
2657
- | 'serialization.failure'
2658
- | 'serialization.success'
2659
- | 'deserialize'
2660
- | 'deserialization.failure'
2661
- | 'deserialization.success'
2662
- | 'split'
2663
- | 'delete'
2664
- | 'select'
2665
- | 'annotation.add'
2666
- | 'annotation.remove'
2667
- | 'block.set'
2668
- | 'block.unset'
2669
- | 'decorator.add'
2670
- | 'decorator.remove'
2671
- | 'delete.backward'
2672
- | 'delete.block'
2673
- | 'delete.forward'
2674
- | 'history.redo'
2675
- | 'history.undo'
2676
- | 'insert.inline object'
2677
- | 'insert.block'
2678
- | 'insert.span'
2679
- | 'insert.text'
2680
- | 'move.backward'
2681
- | 'move.block'
2682
- | 'move.forward'
2683
- | 'annotation.toggle'
2684
- | 'decorator.toggle'
2685
- | 'delete.text'
2686
- | 'insert.blocks'
2687
- | 'insert.break'
2688
- | 'insert.soft break'
2689
- | 'list item.add'
2690
- | 'list item.remove'
2691
- | 'list item.toggle'
2692
- | 'move.block down'
2693
- | 'move.block up'
2694
- | 'select.previous block'
2695
- | 'select.next block'
2696
- | 'style.add'
2697
- | 'style.remove'
2698
- | 'style.toggle',
2699
- 'decorator.toggle'
2700
- >
2701
- decorator: string
2702
- at?: {
2703
- anchor: BlockOffset_2
2704
- focus: BlockOffset_2
2705
- }
2706
- }
2707
- | {
2708
- type: StrictExtract_2<
2709
- | 'serialize'
2710
- | 'serialization.failure'
2711
- | 'serialization.success'
2712
- | 'deserialize'
2713
- | 'deserialization.failure'
2714
- | 'deserialization.success'
2715
- | 'split'
2716
- | 'delete'
2717
- | 'select'
2718
- | 'annotation.add'
2719
- | 'annotation.remove'
2720
- | 'block.set'
2721
- | 'block.unset'
2722
- | 'decorator.add'
2723
- | 'decorator.remove'
2724
- | 'delete.backward'
2725
- | 'delete.block'
2726
- | 'delete.forward'
2727
- | 'history.redo'
2728
- | 'history.undo'
2729
- | 'insert.inline object'
2730
- | 'insert.block'
2731
- | 'insert.span'
2732
- | 'insert.text'
2733
- | 'move.backward'
2734
- | 'move.block'
2735
- | 'move.forward'
2736
- | 'annotation.toggle'
2737
- | 'decorator.toggle'
2738
- | 'delete.text'
2739
- | 'insert.blocks'
2740
- | 'insert.break'
2741
- | 'insert.soft break'
2742
- | 'list item.add'
2743
- | 'list item.remove'
2744
- | 'list item.toggle'
2745
- | 'move.block down'
2746
- | 'move.block up'
2747
- | 'select.previous block'
2748
- | 'select.next block'
2749
- | 'style.add'
2750
- | 'style.remove'
2751
- | 'style.toggle',
2752
- 'delete.text'
2753
- >
2754
- at: {
2755
- anchor: BlockOffset_2
2756
- focus: BlockOffset_2
2757
- }
2758
- }
2759
- | {
2760
- type: StrictExtract_2<
2761
- | 'serialize'
2762
- | 'serialization.failure'
2763
- | 'serialization.success'
2764
- | 'deserialize'
2765
- | 'deserialization.failure'
2766
- | 'deserialization.success'
2767
- | 'split'
2768
- | 'delete'
2769
- | 'select'
2770
- | 'annotation.add'
2771
- | 'annotation.remove'
2772
- | 'block.set'
2773
- | 'block.unset'
2774
- | 'decorator.add'
2775
- | 'decorator.remove'
2776
- | 'delete.backward'
2777
- | 'delete.block'
2778
- | 'delete.forward'
2779
- | 'history.redo'
2780
- | 'history.undo'
2781
- | 'insert.inline object'
2782
- | 'insert.block'
2783
- | 'insert.span'
2784
- | 'insert.text'
2785
- | 'move.backward'
2786
- | 'move.block'
2787
- | 'move.forward'
2788
- | 'annotation.toggle'
2789
- | 'decorator.toggle'
2790
- | 'delete.text'
2791
- | 'insert.blocks'
2792
- | 'insert.break'
2793
- | 'insert.soft break'
2794
- | 'list item.add'
2795
- | 'list item.remove'
2796
- | 'list item.toggle'
2797
- | 'move.block down'
2798
- | 'move.block up'
2799
- | 'select.previous block'
2800
- | 'select.next block'
2801
- | 'style.add'
2802
- | 'style.remove'
2803
- | 'style.toggle',
2804
- 'deserialize'
2805
- >
2806
- originEvent:
2807
- | PickFromUnion_2<
2808
- NativeBehaviorEvent_2,
2809
- 'type',
2810
- 'drag.drop' | 'clipboard.paste'
2811
- >
2812
- | InputBehaviorEvent_2
2813
- }
2814
- | {
2815
- type: StrictExtract_2<
2816
- | 'serialize'
2817
- | 'serialization.failure'
2818
- | 'serialization.success'
2819
- | 'deserialize'
2820
- | 'deserialization.failure'
2821
- | 'deserialization.success'
2822
- | 'split'
2823
- | 'delete'
2824
- | 'select'
2825
- | 'annotation.add'
2826
- | 'annotation.remove'
2827
- | 'block.set'
2828
- | 'block.unset'
2829
- | 'decorator.add'
2830
- | 'decorator.remove'
2831
- | 'delete.backward'
2832
- | 'delete.block'
2833
- | 'delete.forward'
2834
- | 'history.redo'
2835
- | 'history.undo'
2836
- | 'insert.inline object'
2837
- | 'insert.block'
2838
- | 'insert.span'
2839
- | 'insert.text'
2840
- | 'move.backward'
2841
- | 'move.block'
2842
- | 'move.forward'
2843
- | 'annotation.toggle'
2844
- | 'decorator.toggle'
2845
- | 'delete.text'
2846
- | 'insert.blocks'
2847
- | 'insert.break'
2848
- | 'insert.soft break'
2849
- | 'list item.add'
2850
- | 'list item.remove'
2851
- | 'list item.toggle'
2852
- | 'move.block down'
2853
- | 'move.block up'
2854
- | 'select.previous block'
2855
- | 'select.next block'
2856
- | 'style.add'
2857
- | 'style.remove'
2858
- | 'style.toggle',
2859
- 'serialize'
2860
- >
2861
- originEvent: PickFromUnion_2<
2862
- NativeBehaviorEvent_2,
2863
- 'type',
2864
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2865
- >
2866
- }
2867
- | {
2868
- type: StrictExtract_2<
2869
- | 'serialize'
2870
- | 'serialization.failure'
2871
- | 'serialization.success'
2872
- | 'deserialize'
2873
- | 'deserialization.failure'
2874
- | 'deserialization.success'
2875
- | 'split'
2876
- | 'delete'
2877
- | 'select'
2878
- | 'annotation.add'
2879
- | 'annotation.remove'
2880
- | 'block.set'
2881
- | 'block.unset'
2882
- | 'decorator.add'
2883
- | 'decorator.remove'
2884
- | 'delete.backward'
2885
- | 'delete.block'
2886
- | 'delete.forward'
2887
- | 'history.redo'
2888
- | 'history.undo'
2889
- | 'insert.inline object'
2890
- | 'insert.block'
2891
- | 'insert.span'
2892
- | 'insert.text'
2893
- | 'move.backward'
2894
- | 'move.block'
2895
- | 'move.forward'
2896
- | 'annotation.toggle'
2897
- | 'decorator.toggle'
2898
- | 'delete.text'
2899
- | 'insert.blocks'
2900
- | 'insert.break'
2901
- | 'insert.soft break'
2902
- | 'list item.add'
2903
- | 'list item.remove'
2904
- | 'list item.toggle'
2905
- | 'move.block down'
2906
- | 'move.block up'
2907
- | 'select.previous block'
2908
- | 'select.next block'
2909
- | 'style.add'
2910
- | 'style.remove'
2911
- | 'style.toggle',
2912
- 'deserialization.success'
2913
- >
2914
- mimeType: MIMEType_2
2915
- data: Array<PortableTextBlock>
2916
- originEvent:
2917
- | PickFromUnion_2<
2918
- NativeBehaviorEvent_2,
2919
- 'type',
2920
- 'drag.drop' | 'clipboard.paste'
2921
- >
2922
- | InputBehaviorEvent_2
2923
- }
2924
- | {
2925
- type: StrictExtract_2<
2926
- | 'serialize'
2927
- | 'serialization.failure'
2928
- | 'serialization.success'
2929
- | 'deserialize'
2930
- | 'deserialization.failure'
2931
- | 'deserialization.success'
2932
- | 'split'
2933
- | 'delete'
2934
- | 'select'
2935
- | 'annotation.add'
2936
- | 'annotation.remove'
2937
- | 'block.set'
2938
- | 'block.unset'
2939
- | 'decorator.add'
2940
- | 'decorator.remove'
2941
- | 'delete.backward'
2942
- | 'delete.block'
2943
- | 'delete.forward'
2944
- | 'history.redo'
2945
- | 'history.undo'
2946
- | 'insert.inline object'
2947
- | 'insert.block'
2948
- | 'insert.span'
2949
- | 'insert.text'
2950
- | 'move.backward'
2951
- | 'move.block'
2952
- | 'move.forward'
2953
- | 'annotation.toggle'
2954
- | 'decorator.toggle'
2955
- | 'delete.text'
2956
- | 'insert.blocks'
2957
- | 'insert.break'
2958
- | 'insert.soft break'
2959
- | 'list item.add'
2960
- | 'list item.remove'
2961
- | 'list item.toggle'
2962
- | 'move.block down'
2963
- | 'move.block up'
2964
- | 'select.previous block'
2965
- | 'select.next block'
2966
- | 'style.add'
2967
- | 'style.remove'
2968
- | 'style.toggle',
2969
- 'deserialization.failure'
2970
- >
2971
- mimeType: MIMEType_2
2972
- reason: string
2973
- originEvent:
2974
- | PickFromUnion_2<
2975
- NativeBehaviorEvent_2,
2976
- 'type',
2977
- 'drag.drop' | 'clipboard.paste'
2978
- >
2979
- | InputBehaviorEvent_2
2980
- }
2981
- | {
2982
- type: StrictExtract_2<
2983
- | 'serialize'
2984
- | 'serialization.failure'
2985
- | 'serialization.success'
2986
- | 'deserialize'
2987
- | 'deserialization.failure'
2988
- | 'deserialization.success'
2989
- | 'split'
2990
- | 'delete'
2991
- | 'select'
2992
- | 'annotation.add'
2993
- | 'annotation.remove'
2994
- | 'block.set'
2995
- | 'block.unset'
2996
- | 'decorator.add'
2997
- | 'decorator.remove'
2998
- | 'delete.backward'
2999
- | 'delete.block'
3000
- | 'delete.forward'
3001
- | 'history.redo'
3002
- | 'history.undo'
3003
- | 'insert.inline object'
3004
- | 'insert.block'
3005
- | 'insert.span'
3006
- | 'insert.text'
3007
- | 'move.backward'
3008
- | 'move.block'
3009
- | 'move.forward'
3010
- | 'annotation.toggle'
3011
- | 'decorator.toggle'
3012
- | 'delete.text'
3013
- | 'insert.blocks'
3014
- | 'insert.break'
3015
- | 'insert.soft break'
3016
- | 'list item.add'
3017
- | 'list item.remove'
3018
- | 'list item.toggle'
3019
- | 'move.block down'
3020
- | 'move.block up'
3021
- | 'select.previous block'
3022
- | 'select.next block'
3023
- | 'style.add'
3024
- | 'style.remove'
3025
- | 'style.toggle',
3026
- 'serialization.success'
3027
- >
3028
- mimeType: MIMEType_2
3029
- data: string
3030
- originEvent: PickFromUnion_2<
3031
- NativeBehaviorEvent_2,
3032
- 'type',
3033
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3034
- >
3035
- }
3036
- | {
3037
- type: StrictExtract_2<
3038
- | 'serialize'
3039
- | 'serialization.failure'
3040
- | 'serialization.success'
3041
- | 'deserialize'
3042
- | 'deserialization.failure'
3043
- | 'deserialization.success'
3044
- | 'split'
3045
- | 'delete'
3046
- | 'select'
3047
- | 'annotation.add'
3048
- | 'annotation.remove'
3049
- | 'block.set'
3050
- | 'block.unset'
3051
- | 'decorator.add'
3052
- | 'decorator.remove'
3053
- | 'delete.backward'
3054
- | 'delete.block'
3055
- | 'delete.forward'
3056
- | 'history.redo'
3057
- | 'history.undo'
3058
- | 'insert.inline object'
3059
- | 'insert.block'
3060
- | 'insert.span'
3061
- | 'insert.text'
3062
- | 'move.backward'
3063
- | 'move.block'
3064
- | 'move.forward'
3065
- | 'annotation.toggle'
3066
- | 'decorator.toggle'
3067
- | 'delete.text'
3068
- | 'insert.blocks'
3069
- | 'insert.break'
3070
- | 'insert.soft break'
3071
- | 'list item.add'
3072
- | 'list item.remove'
3073
- | 'list item.toggle'
3074
- | 'move.block down'
3075
- | 'move.block up'
3076
- | 'select.previous block'
3077
- | 'select.next block'
3078
- | 'style.add'
3079
- | 'style.remove'
3080
- | 'style.toggle',
3081
- 'serialization.failure'
3082
- >
3083
- mimeType: MIMEType_2
3084
- reason: string
3085
- originEvent: PickFromUnion_2<
3086
- NativeBehaviorEvent_2,
3087
- 'type',
3088
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3089
- >
3090
- }
3091
- | {
3092
- type: StrictExtract_2<
3093
- | 'serialize'
3094
- | 'serialization.failure'
3095
- | 'serialization.success'
3096
- | 'deserialize'
3097
- | 'deserialization.failure'
3098
- | 'deserialization.success'
3099
- | 'split'
3100
- | 'delete'
3101
- | 'select'
3102
- | 'annotation.add'
3103
- | 'annotation.remove'
3104
- | 'block.set'
3105
- | 'block.unset'
3106
- | 'decorator.add'
3107
- | 'decorator.remove'
3108
- | 'delete.backward'
3109
- | 'delete.block'
3110
- | 'delete.forward'
3111
- | 'history.redo'
3112
- | 'history.undo'
3113
- | 'insert.inline object'
3114
- | 'insert.block'
3115
- | 'insert.span'
3116
- | 'insert.text'
3117
- | 'move.backward'
3118
- | 'move.block'
3119
- | 'move.forward'
3120
- | 'annotation.toggle'
3121
- | 'decorator.toggle'
3122
- | 'delete.text'
3123
- | 'insert.blocks'
3124
- | 'insert.break'
3125
- | 'insert.soft break'
3126
- | 'list item.add'
3127
- | 'list item.remove'
3128
- | 'list item.toggle'
3129
- | 'move.block down'
3130
- | 'move.block up'
3131
- | 'select.previous block'
3132
- | 'select.next block'
3133
- | 'style.add'
3134
- | 'style.remove'
3135
- | 'style.toggle',
3136
- 'insert.blocks'
3137
- >
3138
- blocks: Array<BlockWithOptionalKey_2>
3139
- placement: InsertPlacement_2
3140
- }
3141
- | {
3142
- type: StrictExtract_2<
3143
- | 'serialize'
3144
- | 'serialization.failure'
3145
- | 'serialization.success'
3146
- | 'deserialize'
3147
- | 'deserialization.failure'
3148
- | 'deserialization.success'
3149
- | 'split'
3150
- | 'delete'
3151
- | 'select'
3152
- | 'annotation.add'
3153
- | 'annotation.remove'
3154
- | 'block.set'
3155
- | 'block.unset'
3156
- | 'decorator.add'
3157
- | 'decorator.remove'
3158
- | 'delete.backward'
3159
- | 'delete.block'
3160
- | 'delete.forward'
3161
- | 'history.redo'
3162
- | 'history.undo'
3163
- | 'insert.inline object'
3164
- | 'insert.block'
3165
- | 'insert.span'
3166
- | 'insert.text'
3167
- | 'move.backward'
3168
- | 'move.block'
3169
- | 'move.forward'
3170
- | 'annotation.toggle'
3171
- | 'decorator.toggle'
3172
- | 'delete.text'
3173
- | 'insert.blocks'
3174
- | 'insert.break'
3175
- | 'insert.soft break'
3176
- | 'list item.add'
3177
- | 'list item.remove'
3178
- | 'list item.toggle'
3179
- | 'move.block down'
3180
- | 'move.block up'
3181
- | 'select.previous block'
3182
- | 'select.next block'
3183
- | 'style.add'
3184
- | 'style.remove'
3185
- | 'style.toggle',
3186
- 'insert.break'
3187
- >
3188
- }
3189
- | {
3190
- type: StrictExtract_2<
3191
- | 'serialize'
3192
- | 'serialization.failure'
3193
- | 'serialization.success'
3194
- | 'deserialize'
3195
- | 'deserialization.failure'
3196
- | 'deserialization.success'
3197
- | 'split'
3198
- | 'delete'
3199
- | 'select'
3200
- | 'annotation.add'
3201
- | 'annotation.remove'
3202
- | 'block.set'
3203
- | 'block.unset'
3204
- | 'decorator.add'
3205
- | 'decorator.remove'
3206
- | 'delete.backward'
3207
- | 'delete.block'
3208
- | 'delete.forward'
3209
- | 'history.redo'
3210
- | 'history.undo'
3211
- | 'insert.inline object'
3212
- | 'insert.block'
3213
- | 'insert.span'
3214
- | 'insert.text'
3215
- | 'move.backward'
3216
- | 'move.block'
3217
- | 'move.forward'
3218
- | 'annotation.toggle'
3219
- | 'decorator.toggle'
3220
- | 'delete.text'
3221
- | 'insert.blocks'
3222
- | 'insert.break'
3223
- | 'insert.soft break'
3224
- | 'list item.add'
3225
- | 'list item.remove'
3226
- | 'list item.toggle'
3227
- | 'move.block down'
3228
- | 'move.block up'
3229
- | 'select.previous block'
3230
- | 'select.next block'
3231
- | 'style.add'
3232
- | 'style.remove'
3233
- | 'style.toggle',
3234
- 'insert.soft break'
3235
- >
3236
- }
3237
- | {
3238
- type: StrictExtract_2<
3239
- | 'serialize'
3240
- | 'serialization.failure'
3241
- | 'serialization.success'
3242
- | 'deserialize'
3243
- | 'deserialization.failure'
3244
- | 'deserialization.success'
3245
- | 'split'
3246
- | 'delete'
3247
- | 'select'
3248
- | 'annotation.add'
3249
- | 'annotation.remove'
3250
- | 'block.set'
3251
- | 'block.unset'
3252
- | 'decorator.add'
3253
- | 'decorator.remove'
3254
- | 'delete.backward'
3255
- | 'delete.block'
3256
- | 'delete.forward'
3257
- | 'history.redo'
3258
- | 'history.undo'
3259
- | 'insert.inline object'
3260
- | 'insert.block'
3261
- | 'insert.span'
3262
- | 'insert.text'
3263
- | 'move.backward'
3264
- | 'move.block'
3265
- | 'move.forward'
3266
- | 'annotation.toggle'
3267
- | 'decorator.toggle'
3268
- | 'delete.text'
3269
- | 'insert.blocks'
3270
- | 'insert.break'
3271
- | 'insert.soft break'
3272
- | 'list item.add'
3273
- | 'list item.remove'
3274
- | 'list item.toggle'
3275
- | 'move.block down'
3276
- | 'move.block up'
3277
- | 'select.previous block'
3278
- | 'select.next block'
3279
- | 'style.add'
3280
- | 'style.remove'
3281
- | 'style.toggle',
3282
- 'list item.add'
3283
- >
3284
- listItem: string
3285
- }
3286
- | {
3287
- type: StrictExtract_2<
3288
- | 'serialize'
3289
- | 'serialization.failure'
3290
- | 'serialization.success'
3291
- | 'deserialize'
3292
- | 'deserialization.failure'
3293
- | 'deserialization.success'
3294
- | 'split'
3295
- | 'delete'
3296
- | 'select'
3297
- | 'annotation.add'
3298
- | 'annotation.remove'
3299
- | 'block.set'
3300
- | 'block.unset'
3301
- | 'decorator.add'
3302
- | 'decorator.remove'
3303
- | 'delete.backward'
3304
- | 'delete.block'
3305
- | 'delete.forward'
3306
- | 'history.redo'
3307
- | 'history.undo'
3308
- | 'insert.inline object'
3309
- | 'insert.block'
3310
- | 'insert.span'
3311
- | 'insert.text'
3312
- | 'move.backward'
3313
- | 'move.block'
3314
- | 'move.forward'
3315
- | 'annotation.toggle'
3316
- | 'decorator.toggle'
3317
- | 'delete.text'
3318
- | 'insert.blocks'
3319
- | 'insert.break'
3320
- | 'insert.soft break'
3321
- | 'list item.add'
3322
- | 'list item.remove'
3323
- | 'list item.toggle'
3324
- | 'move.block down'
3325
- | 'move.block up'
3326
- | 'select.previous block'
3327
- | 'select.next block'
3328
- | 'style.add'
3329
- | 'style.remove'
3330
- | 'style.toggle',
3331
- 'list item.remove'
3332
- >
3333
- listItem: string
3334
- }
3335
- | {
3336
- type: StrictExtract_2<
3337
- | 'serialize'
3338
- | 'serialization.failure'
3339
- | 'serialization.success'
3340
- | 'deserialize'
3341
- | 'deserialization.failure'
3342
- | 'deserialization.success'
3343
- | 'split'
3344
- | 'delete'
3345
- | 'select'
3346
- | 'annotation.add'
3347
- | 'annotation.remove'
3348
- | 'block.set'
3349
- | 'block.unset'
3350
- | 'decorator.add'
3351
- | 'decorator.remove'
3352
- | 'delete.backward'
3353
- | 'delete.block'
3354
- | 'delete.forward'
3355
- | 'history.redo'
3356
- | 'history.undo'
3357
- | 'insert.inline object'
3358
- | 'insert.block'
3359
- | 'insert.span'
3360
- | 'insert.text'
3361
- | 'move.backward'
3362
- | 'move.block'
3363
- | 'move.forward'
3364
- | 'annotation.toggle'
3365
- | 'decorator.toggle'
3366
- | 'delete.text'
3367
- | 'insert.blocks'
3368
- | 'insert.break'
3369
- | 'insert.soft break'
3370
- | 'list item.add'
3371
- | 'list item.remove'
3372
- | 'list item.toggle'
3373
- | 'move.block down'
3374
- | 'move.block up'
3375
- | 'select.previous block'
3376
- | 'select.next block'
3377
- | 'style.add'
3378
- | 'style.remove'
3379
- | 'style.toggle',
3380
- 'list item.toggle'
3381
- >
3382
- listItem: string
3383
- }
3384
- | {
3385
- type: StrictExtract_2<
3386
- | 'serialize'
3387
- | 'serialization.failure'
3388
- | 'serialization.success'
3389
- | 'deserialize'
3390
- | 'deserialization.failure'
3391
- | 'deserialization.success'
3392
- | 'split'
3393
- | 'delete'
3394
- | 'select'
3395
- | 'annotation.add'
3396
- | 'annotation.remove'
3397
- | 'block.set'
3398
- | 'block.unset'
3399
- | 'decorator.add'
3400
- | 'decorator.remove'
3401
- | 'delete.backward'
3402
- | 'delete.block'
3403
- | 'delete.forward'
3404
- | 'history.redo'
3405
- | 'history.undo'
3406
- | 'insert.inline object'
3407
- | 'insert.block'
3408
- | 'insert.span'
3409
- | 'insert.text'
3410
- | 'move.backward'
3411
- | 'move.block'
3412
- | 'move.forward'
3413
- | 'annotation.toggle'
3414
- | 'decorator.toggle'
3415
- | 'delete.text'
3416
- | 'insert.blocks'
3417
- | 'insert.break'
3418
- | 'insert.soft break'
3419
- | 'list item.add'
3420
- | 'list item.remove'
3421
- | 'list item.toggle'
3422
- | 'move.block down'
3423
- | 'move.block up'
3424
- | 'select.previous block'
3425
- | 'select.next block'
3426
- | 'style.add'
3427
- | 'style.remove'
3428
- | 'style.toggle',
3429
- 'move.block down'
3430
- >
3431
- at: [KeyedSegment]
3432
- }
3433
- | {
3434
- type: StrictExtract_2<
3435
- | 'serialize'
3436
- | 'serialization.failure'
3437
- | 'serialization.success'
3438
- | 'deserialize'
3439
- | 'deserialization.failure'
3440
- | 'deserialization.success'
3441
- | 'split'
3442
- | 'delete'
3443
- | 'select'
3444
- | 'annotation.add'
3445
- | 'annotation.remove'
3446
- | 'block.set'
3447
- | 'block.unset'
3448
- | 'decorator.add'
3449
- | 'decorator.remove'
3450
- | 'delete.backward'
3451
- | 'delete.block'
3452
- | 'delete.forward'
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
- | 'annotation.toggle'
3463
- | 'decorator.toggle'
3464
- | 'delete.text'
3465
- | 'insert.blocks'
3466
- | 'insert.break'
3467
- | 'insert.soft break'
3468
- | 'list item.add'
3469
- | 'list item.remove'
3470
- | 'list item.toggle'
3471
- | 'move.block down'
3472
- | 'move.block up'
3473
- | 'select.previous block'
3474
- | 'select.next block'
3475
- | 'style.add'
3476
- | 'style.remove'
3477
- | 'style.toggle',
3478
- 'move.block up'
3479
- >
3480
- at: [KeyedSegment]
3481
- }
3482
- | {
3483
- type: StrictExtract_2<
3484
- | 'serialize'
3485
- | 'serialization.failure'
3486
- | 'serialization.success'
3487
- | 'deserialize'
3488
- | 'deserialization.failure'
3489
- | 'deserialization.success'
3490
- | 'split'
3491
- | 'delete'
3492
- | 'select'
3493
- | 'annotation.add'
3494
- | 'annotation.remove'
3495
- | 'block.set'
3496
- | 'block.unset'
3497
- | 'decorator.add'
3498
- | 'decorator.remove'
3499
- | 'delete.backward'
3500
- | 'delete.block'
3501
- | 'delete.forward'
3502
- | 'history.redo'
3503
- | 'history.undo'
3504
- | 'insert.inline object'
3505
- | 'insert.block'
3506
- | 'insert.span'
3507
- | 'insert.text'
3508
- | 'move.backward'
3509
- | 'move.block'
3510
- | 'move.forward'
3511
- | 'annotation.toggle'
3512
- | 'decorator.toggle'
3513
- | 'delete.text'
3514
- | 'insert.blocks'
3515
- | 'insert.break'
3516
- | 'insert.soft break'
3517
- | 'list item.add'
3518
- | 'list item.remove'
3519
- | 'list item.toggle'
3520
- | 'move.block down'
3521
- | 'move.block up'
3522
- | 'select.previous block'
3523
- | 'select.next block'
3524
- | 'style.add'
3525
- | 'style.remove'
3526
- | 'style.toggle',
3527
- 'select.previous block'
3528
- >
3529
- select?: 'start' | 'end'
3530
- }
3531
- | {
3532
- type: StrictExtract_2<
3533
- | 'serialize'
3534
- | 'serialization.failure'
3535
- | 'serialization.success'
3536
- | 'deserialize'
3537
- | 'deserialization.failure'
3538
- | 'deserialization.success'
3539
- | 'split'
3540
- | 'delete'
3541
- | 'select'
3542
- | 'annotation.add'
3543
- | 'annotation.remove'
3544
- | 'block.set'
3545
- | 'block.unset'
3546
- | 'decorator.add'
3547
- | 'decorator.remove'
3548
- | 'delete.backward'
3549
- | 'delete.block'
3550
- | 'delete.forward'
3551
- | 'history.redo'
3552
- | 'history.undo'
3553
- | 'insert.inline object'
3554
- | 'insert.block'
3555
- | 'insert.span'
3556
- | 'insert.text'
3557
- | 'move.backward'
3558
- | 'move.block'
3559
- | 'move.forward'
3560
- | 'annotation.toggle'
3561
- | 'decorator.toggle'
3562
- | 'delete.text'
3563
- | 'insert.blocks'
3564
- | 'insert.break'
3565
- | 'insert.soft break'
3566
- | 'list item.add'
3567
- | 'list item.remove'
3568
- | 'list item.toggle'
3569
- | 'move.block down'
3570
- | 'move.block up'
3571
- | 'select.previous block'
3572
- | 'select.next block'
3573
- | 'style.add'
3574
- | 'style.remove'
3575
- | 'style.toggle',
3576
- 'select.next block'
3577
- >
3578
- select?: 'start' | 'end'
3579
- }
3580
- | {
3581
- type: StrictExtract_2<
3582
- | 'serialize'
3583
- | 'serialization.failure'
3584
- | 'serialization.success'
3585
- | 'deserialize'
3586
- | 'deserialization.failure'
3587
- | 'deserialization.success'
3588
- | 'split'
3589
- | 'delete'
3590
- | 'select'
3591
- | 'annotation.add'
3592
- | 'annotation.remove'
3593
- | 'block.set'
3594
- | 'block.unset'
3595
- | 'decorator.add'
3596
- | 'decorator.remove'
3597
- | 'delete.backward'
3598
- | 'delete.block'
3599
- | 'delete.forward'
3600
- | 'history.redo'
3601
- | 'history.undo'
3602
- | 'insert.inline object'
3603
- | 'insert.block'
3604
- | 'insert.span'
3605
- | 'insert.text'
3606
- | 'move.backward'
3607
- | 'move.block'
3608
- | 'move.forward'
3609
- | 'annotation.toggle'
3610
- | 'decorator.toggle'
3611
- | 'delete.text'
3612
- | 'insert.blocks'
3613
- | 'insert.break'
3614
- | 'insert.soft break'
3615
- | 'list item.add'
3616
- | 'list item.remove'
3617
- | 'list item.toggle'
3618
- | 'move.block down'
3619
- | 'move.block up'
3620
- | 'select.previous block'
3621
- | 'select.next block'
3622
- | 'style.add'
3623
- | 'style.remove'
3624
- | 'style.toggle',
3625
- 'split'
3626
- >
3627
- }
3628
- | {
3629
- type: StrictExtract_2<
3630
- | 'serialize'
3631
- | 'serialization.failure'
3632
- | 'serialization.success'
3633
- | 'deserialize'
3634
- | 'deserialization.failure'
3635
- | 'deserialization.success'
3636
- | 'split'
3637
- | 'delete'
3638
- | 'select'
3639
- | 'annotation.add'
3640
- | 'annotation.remove'
3641
- | 'block.set'
3642
- | 'block.unset'
3643
- | 'decorator.add'
3644
- | 'decorator.remove'
3645
- | 'delete.backward'
3646
- | 'delete.block'
3647
- | 'delete.forward'
3648
- | 'history.redo'
3649
- | 'history.undo'
3650
- | 'insert.inline object'
3651
- | 'insert.block'
3652
- | 'insert.span'
3653
- | 'insert.text'
3654
- | 'move.backward'
3655
- | 'move.block'
3656
- | 'move.forward'
3657
- | 'annotation.toggle'
3658
- | 'decorator.toggle'
3659
- | 'delete.text'
3660
- | 'insert.blocks'
3661
- | 'insert.break'
3662
- | 'insert.soft break'
3663
- | 'list item.add'
3664
- | 'list item.remove'
3665
- | 'list item.toggle'
3666
- | 'move.block down'
3667
- | 'move.block up'
3668
- | 'select.previous block'
3669
- | 'select.next block'
3670
- | 'style.add'
3671
- | 'style.remove'
3672
- | 'style.toggle',
3673
- 'style.add'
3674
- >
3675
- style: string
3676
- }
3677
- | {
3678
- type: StrictExtract_2<
3679
- | 'serialize'
3680
- | 'serialization.failure'
3681
- | 'serialization.success'
3682
- | 'deserialize'
3683
- | 'deserialization.failure'
3684
- | 'deserialization.success'
3685
- | 'split'
3686
- | 'delete'
3687
- | 'select'
3688
- | 'annotation.add'
3689
- | 'annotation.remove'
3690
- | 'block.set'
3691
- | 'block.unset'
3692
- | 'decorator.add'
3693
- | 'decorator.remove'
3694
- | 'delete.backward'
3695
- | 'delete.block'
3696
- | 'delete.forward'
3697
- | 'history.redo'
3698
- | 'history.undo'
3699
- | 'insert.inline object'
3700
- | 'insert.block'
3701
- | 'insert.span'
3702
- | 'insert.text'
3703
- | 'move.backward'
3704
- | 'move.block'
3705
- | 'move.forward'
3706
- | 'annotation.toggle'
3707
- | 'decorator.toggle'
3708
- | 'delete.text'
3709
- | 'insert.blocks'
3710
- | 'insert.break'
3711
- | 'insert.soft break'
3712
- | 'list item.add'
3713
- | 'list item.remove'
3714
- | 'list item.toggle'
3715
- | 'move.block down'
3716
- | 'move.block up'
3717
- | 'select.previous block'
3718
- | 'select.next block'
3719
- | 'style.add'
3720
- | 'style.remove'
3721
- | 'style.toggle',
3722
- 'style.remove'
3723
- >
3724
- style: string
3725
- }
3726
- | {
3727
- type: StrictExtract_2<
3728
- | 'serialize'
3729
- | 'serialization.failure'
3730
- | 'serialization.success'
3731
- | 'deserialize'
3732
- | 'deserialization.failure'
3733
- | 'deserialization.success'
3734
- | 'split'
3735
- | 'delete'
3736
- | 'select'
3737
- | 'annotation.add'
3738
- | 'annotation.remove'
3739
- | 'block.set'
3740
- | 'block.unset'
3741
- | 'decorator.add'
3742
- | 'decorator.remove'
3743
- | 'delete.backward'
3744
- | 'delete.block'
3745
- | 'delete.forward'
3746
- | 'history.redo'
3747
- | 'history.undo'
3748
- | 'insert.inline object'
3749
- | 'insert.block'
3750
- | 'insert.span'
3751
- | 'insert.text'
3752
- | 'move.backward'
3753
- | 'move.block'
3754
- | 'move.forward'
3755
- | 'annotation.toggle'
3756
- | 'decorator.toggle'
3757
- | 'delete.text'
3758
- | 'insert.blocks'
3759
- | 'insert.break'
3760
- | 'insert.soft break'
3761
- | 'list item.add'
3762
- | 'list item.remove'
3763
- | 'list item.toggle'
3764
- | 'move.block down'
3765
- | 'move.block up'
3766
- | 'select.previous block'
3767
- | 'select.next block'
3768
- | 'style.add'
3769
- | 'style.remove'
3770
- | 'style.toggle',
3771
- 'style.toggle'
3772
- >
3773
- style: string
3774
- }
3775
- | {
3776
- type: StrictExtract_2<
3777
- | 'clipboard.copy'
3778
- | 'clipboard.cut'
3779
- | 'drag.dragstart'
3780
- | 'clipboard.paste'
3781
- | 'drag.drag'
3782
- | 'drag.dragend'
3783
- | 'drag.dragenter'
3784
- | 'drag.dragover'
3785
- | 'drag.dragleave'
3786
- | 'drag.drop'
3787
- | 'input.*'
3788
- | 'keyboard.keydown'
3789
- | 'keyboard.keyup'
3790
- | 'mouse.click',
3791
- 'clipboard.copy'
3792
- >
3793
- originEvent: {
3794
- dataTransfer: DataTransfer
3795
- }
3796
- position: Pick<EventPosition, 'selection'>
3797
- }
3798
- | {
3799
- type: StrictExtract_2<
3800
- | 'clipboard.copy'
3801
- | 'clipboard.cut'
3802
- | 'drag.dragstart'
3803
- | 'clipboard.paste'
3804
- | 'drag.drag'
3805
- | 'drag.dragend'
3806
- | 'drag.dragenter'
3807
- | 'drag.dragover'
3808
- | 'drag.dragleave'
3809
- | 'drag.drop'
3810
- | 'input.*'
3811
- | 'keyboard.keydown'
3812
- | 'keyboard.keyup'
3813
- | 'mouse.click',
3814
- 'clipboard.cut'
3815
- >
3816
- originEvent: {
3817
- dataTransfer: DataTransfer
3818
- }
3819
- position: Pick<EventPosition, 'selection'>
3820
- }
3821
- | {
3822
- type: StrictExtract_2<
3823
- | 'clipboard.copy'
3824
- | 'clipboard.cut'
3825
- | 'drag.dragstart'
3826
- | 'clipboard.paste'
3827
- | 'drag.drag'
3828
- | 'drag.dragend'
3829
- | 'drag.dragenter'
3830
- | 'drag.dragover'
3831
- | 'drag.dragleave'
3832
- | 'drag.drop'
3833
- | 'input.*'
3834
- | 'keyboard.keydown'
3835
- | 'keyboard.keyup'
3836
- | 'mouse.click',
3837
- 'clipboard.paste'
3838
- >
3839
- originEvent: {
3840
- dataTransfer: DataTransfer
3841
- }
3842
- position: Pick<EventPosition, 'selection'>
3843
- }
3844
- | {
3845
- type: StrictExtract_2<
3846
- | 'clipboard.copy'
3847
- | 'clipboard.cut'
3848
- | 'drag.dragstart'
3849
- | 'clipboard.paste'
3850
- | 'drag.drag'
3851
- | 'drag.dragend'
3852
- | 'drag.dragenter'
3853
- | 'drag.dragover'
3854
- | 'drag.dragleave'
3855
- | 'drag.drop'
3856
- | 'input.*'
3857
- | 'keyboard.keydown'
3858
- | 'keyboard.keyup'
3859
- | 'mouse.click',
3860
- 'drag.dragstart'
3861
- >
3862
- originEvent: {
3863
- dataTransfer: DataTransfer
3864
- }
3865
- position: Pick<EventPosition, 'selection'>
3866
- }
3867
- | {
3868
- type: StrictExtract_2<
3869
- | 'clipboard.copy'
3870
- | 'clipboard.cut'
3871
- | 'drag.dragstart'
3872
- | 'clipboard.paste'
3873
- | 'drag.drag'
3874
- | 'drag.dragend'
3875
- | 'drag.dragenter'
3876
- | 'drag.dragover'
3877
- | 'drag.dragleave'
3878
- | 'drag.drop'
3879
- | 'input.*'
3880
- | 'keyboard.keydown'
3881
- | 'keyboard.keyup'
3882
- | 'mouse.click',
3883
- 'drag.drag'
3884
- >
3885
- originEvent: {
3886
- dataTransfer: DataTransfer
3887
- }
3888
- }
3889
- | {
3890
- type: StrictExtract_2<
3891
- | 'clipboard.copy'
3892
- | 'clipboard.cut'
3893
- | 'drag.dragstart'
3894
- | 'clipboard.paste'
3895
- | 'drag.drag'
3896
- | 'drag.dragend'
3897
- | 'drag.dragenter'
3898
- | 'drag.dragover'
3899
- | 'drag.dragleave'
3900
- | 'drag.drop'
3901
- | 'input.*'
3902
- | 'keyboard.keydown'
3903
- | 'keyboard.keyup'
3904
- | 'mouse.click',
3905
- 'drag.dragend'
3906
- >
3907
- originEvent: {
3908
- dataTransfer: DataTransfer
3909
- }
3910
- }
3911
- | {
3912
- type: StrictExtract_2<
3913
- | 'clipboard.copy'
3914
- | 'clipboard.cut'
3915
- | 'drag.dragstart'
3916
- | 'clipboard.paste'
3917
- | 'drag.drag'
3918
- | 'drag.dragend'
3919
- | 'drag.dragenter'
3920
- | 'drag.dragover'
3921
- | 'drag.dragleave'
3922
- | 'drag.drop'
3923
- | 'input.*'
3924
- | 'keyboard.keydown'
3925
- | 'keyboard.keyup'
3926
- | 'mouse.click',
3927
- 'drag.dragenter'
3928
- >
3929
- originEvent: {
3930
- dataTransfer: DataTransfer
3931
- }
3932
- position: EventPosition
3933
- }
3934
- | {
3935
- type: StrictExtract_2<
3936
- | 'clipboard.copy'
3937
- | 'clipboard.cut'
3938
- | 'drag.dragstart'
3939
- | 'clipboard.paste'
3940
- | 'drag.drag'
3941
- | 'drag.dragend'
3942
- | 'drag.dragenter'
3943
- | 'drag.dragover'
3944
- | 'drag.dragleave'
3945
- | 'drag.drop'
3946
- | 'input.*'
3947
- | 'keyboard.keydown'
3948
- | 'keyboard.keyup'
3949
- | 'mouse.click',
3950
- 'drag.dragover'
3951
- >
3952
- originEvent: {
3953
- dataTransfer: DataTransfer
3954
- }
3955
- position: EventPosition
3956
- }
3957
- | {
3958
- type: StrictExtract_2<
3959
- | 'clipboard.copy'
3960
- | 'clipboard.cut'
3961
- | 'drag.dragstart'
3962
- | 'clipboard.paste'
3963
- | 'drag.drag'
3964
- | 'drag.dragend'
3965
- | 'drag.dragenter'
3966
- | 'drag.dragover'
3967
- | 'drag.dragleave'
3968
- | 'drag.drop'
3969
- | 'input.*'
3970
- | 'keyboard.keydown'
3971
- | 'keyboard.keyup'
3972
- | 'mouse.click',
3973
- 'drag.drop'
3974
- >
3975
- originEvent: {
3976
- dataTransfer: DataTransfer
3977
- }
3978
- position: EventPosition
3979
- }
3980
- | {
3981
- type: StrictExtract_2<
3982
- | 'clipboard.copy'
3983
- | 'clipboard.cut'
3984
- | 'drag.dragstart'
3985
- | 'clipboard.paste'
3986
- | 'drag.drag'
3987
- | 'drag.dragend'
3988
- | 'drag.dragenter'
3989
- | 'drag.dragover'
3990
- | 'drag.dragleave'
3991
- | 'drag.drop'
3992
- | 'input.*'
3993
- | 'keyboard.keydown'
3994
- | 'keyboard.keyup'
3995
- | 'mouse.click',
3996
- 'drag.dragleave'
3997
- >
3998
- originEvent: {
3999
- dataTransfer: DataTransfer
4000
- }
4001
- }
4002
- | InputBehaviorEvent_2
4003
- | {
4004
- type: StrictExtract_2<
4005
- | 'clipboard.copy'
4006
- | 'clipboard.cut'
4007
- | 'drag.dragstart'
4008
- | 'clipboard.paste'
4009
- | 'drag.drag'
4010
- | 'drag.dragend'
4011
- | 'drag.dragenter'
4012
- | 'drag.dragover'
4013
- | 'drag.dragleave'
4014
- | 'drag.drop'
4015
- | 'input.*'
4016
- | 'keyboard.keydown'
4017
- | 'keyboard.keyup'
4018
- | 'mouse.click',
4019
- 'keyboard.keydown'
4020
- >
4021
- originEvent: Pick<
4022
- KeyboardEvent,
4023
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
4024
- >
4025
- }
4026
- | {
4027
- type: StrictExtract_2<
4028
- | 'clipboard.copy'
4029
- | 'clipboard.cut'
4030
- | 'drag.dragstart'
4031
- | 'clipboard.paste'
4032
- | 'drag.drag'
4033
- | 'drag.dragend'
4034
- | 'drag.dragenter'
4035
- | 'drag.dragover'
4036
- | 'drag.dragleave'
4037
- | 'drag.drop'
4038
- | 'input.*'
4039
- | 'keyboard.keydown'
4040
- | 'keyboard.keyup'
4041
- | 'mouse.click',
4042
- 'keyboard.keyup'
4043
- >
4044
- originEvent: Pick<
4045
- KeyboardEvent,
4046
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
4047
- >
4048
- }
4049
- | MouseBehaviorEvent_2
4050
- | CustomBehaviorEvent_2<
4051
- Record<string, unknown>,
4052
- string,
4053
- `custom.${string}`
4054
- >
4055
- >
4056
- >
1502
+ behaviors: Set<never>
4057
1503
  converters: Set<Converter>
4058
1504
  getLegacySchema: () => PortableTextMemberSchemaTypes
4059
1505
  keyGenerator: () => string
@@ -4069,7 +1515,7 @@ declare const editorMachine: StateMachine<
4069
1515
  readonly 'notify.blurred': {
4070
1516
  readonly actions: ActionFunction<
4071
1517
  {
4072
- behaviors: Set<Behavior>
1518
+ behaviors: Set<BehaviorConfig>
4073
1519
  converters: Set<Converter>
4074
1520
  getLegacySchema: () => PortableTextMemberSchemaTypes
4075
1521
  keyGenerator: () => string
@@ -4093,14 +1539,6 @@ declare const editorMachine: StateMachine<
4093
1539
  | InternalPatchEvent
4094
1540
  | MutationEvent
4095
1541
  | PatchesEvent
4096
- | {
4097
- type: 'add behavior'
4098
- behavior: Behavior
4099
- }
4100
- | {
4101
- type: 'remove behavior'
4102
- behavior: Behavior
4103
- }
4104
1542
  | {
4105
1543
  type: 'update readOnly'
4106
1544
  readOnly: boolean
@@ -4121,6 +1559,14 @@ declare const editorMachine: StateMachine<
4121
1559
  type: 'update maxBlocks'
4122
1560
  maxBlocks: number | undefined
4123
1561
  }
1562
+ | {
1563
+ type: 'add behavior'
1564
+ behaviorConfig: BehaviorConfig
1565
+ }
1566
+ | {
1567
+ type: 'remove behavior'
1568
+ behaviorConfig: BehaviorConfig
1569
+ }
4124
1570
  | {
4125
1571
  type: 'blur'
4126
1572
  editor: PortableTextSlateEditor
@@ -4273,7 +1719,7 @@ declare const editorMachine: StateMachine<
4273
1719
  readonly 'notify.done loading': {
4274
1720
  readonly actions: ActionFunction<
4275
1721
  {
4276
- behaviors: Set<Behavior>
1722
+ behaviors: Set<BehaviorConfig>
4277
1723
  converters: Set<Converter>
4278
1724
  getLegacySchema: () => PortableTextMemberSchemaTypes
4279
1725
  keyGenerator: () => string
@@ -4296,14 +1742,6 @@ declare const editorMachine: StateMachine<
4296
1742
  | InternalPatchEvent
4297
1743
  | MutationEvent
4298
1744
  | PatchesEvent
4299
- | {
4300
- type: 'add behavior'
4301
- behavior: Behavior
4302
- }
4303
- | {
4304
- type: 'remove behavior'
4305
- behavior: Behavior
4306
- }
4307
1745
  | {
4308
1746
  type: 'update readOnly'
4309
1747
  readOnly: boolean
@@ -4324,6 +1762,14 @@ declare const editorMachine: StateMachine<
4324
1762
  type: 'update maxBlocks'
4325
1763
  maxBlocks: number | undefined
4326
1764
  }
1765
+ | {
1766
+ type: 'add behavior'
1767
+ behaviorConfig: BehaviorConfig
1768
+ }
1769
+ | {
1770
+ type: 'remove behavior'
1771
+ behaviorConfig: BehaviorConfig
1772
+ }
4327
1773
  | {
4328
1774
  type: 'blur'
4329
1775
  editor: PortableTextSlateEditor
@@ -4476,7 +1922,7 @@ declare const editorMachine: StateMachine<
4476
1922
  readonly 'notify.error': {
4477
1923
  readonly actions: ActionFunction<
4478
1924
  {
4479
- behaviors: Set<Behavior>
1925
+ behaviors: Set<BehaviorConfig>
4480
1926
  converters: Set<Converter>
4481
1927
  getLegacySchema: () => PortableTextMemberSchemaTypes
4482
1928
  keyGenerator: () => string
@@ -4502,14 +1948,6 @@ declare const editorMachine: StateMachine<
4502
1948
  | InternalPatchEvent
4503
1949
  | MutationEvent
4504
1950
  | PatchesEvent
4505
- | {
4506
- type: 'add behavior'
4507
- behavior: Behavior
4508
- }
4509
- | {
4510
- type: 'remove behavior'
4511
- behavior: Behavior
4512
- }
4513
1951
  | {
4514
1952
  type: 'update readOnly'
4515
1953
  readOnly: boolean
@@ -4530,6 +1968,14 @@ declare const editorMachine: StateMachine<
4530
1968
  type: 'update maxBlocks'
4531
1969
  maxBlocks: number | undefined
4532
1970
  }
1971
+ | {
1972
+ type: 'add behavior'
1973
+ behaviorConfig: BehaviorConfig
1974
+ }
1975
+ | {
1976
+ type: 'remove behavior'
1977
+ behaviorConfig: BehaviorConfig
1978
+ }
4533
1979
  | {
4534
1980
  type: 'blur'
4535
1981
  editor: PortableTextSlateEditor
@@ -4682,7 +2128,7 @@ declare const editorMachine: StateMachine<
4682
2128
  readonly 'notify.invalid value': {
4683
2129
  readonly actions: ActionFunction<
4684
2130
  {
4685
- behaviors: Set<Behavior>
2131
+ behaviors: Set<BehaviorConfig>
4686
2132
  converters: Set<Converter>
4687
2133
  getLegacySchema: () => PortableTextMemberSchemaTypes
4688
2134
  keyGenerator: () => string
@@ -4707,14 +2153,6 @@ declare const editorMachine: StateMachine<
4707
2153
  | InternalPatchEvent
4708
2154
  | MutationEvent
4709
2155
  | PatchesEvent
4710
- | {
4711
- type: 'add behavior'
4712
- behavior: Behavior
4713
- }
4714
- | {
4715
- type: 'remove behavior'
4716
- behavior: Behavior
4717
- }
4718
2156
  | {
4719
2157
  type: 'update readOnly'
4720
2158
  readOnly: boolean
@@ -4735,6 +2173,14 @@ declare const editorMachine: StateMachine<
4735
2173
  type: 'update maxBlocks'
4736
2174
  maxBlocks: number | undefined
4737
2175
  }
2176
+ | {
2177
+ type: 'add behavior'
2178
+ behaviorConfig: BehaviorConfig
2179
+ }
2180
+ | {
2181
+ type: 'remove behavior'
2182
+ behaviorConfig: BehaviorConfig
2183
+ }
4738
2184
  | {
4739
2185
  type: 'blur'
4740
2186
  editor: PortableTextSlateEditor
@@ -4887,7 +2333,7 @@ declare const editorMachine: StateMachine<
4887
2333
  readonly 'notify.focused': {
4888
2334
  readonly actions: ActionFunction<
4889
2335
  {
4890
- behaviors: Set<Behavior>
2336
+ behaviors: Set<BehaviorConfig>
4891
2337
  converters: Set<Converter>
4892
2338
  getLegacySchema: () => PortableTextMemberSchemaTypes
4893
2339
  keyGenerator: () => string
@@ -4911,14 +2357,6 @@ declare const editorMachine: StateMachine<
4911
2357
  | InternalPatchEvent
4912
2358
  | MutationEvent
4913
2359
  | PatchesEvent
4914
- | {
4915
- type: 'add behavior'
4916
- behavior: Behavior
4917
- }
4918
- | {
4919
- type: 'remove behavior'
4920
- behavior: Behavior
4921
- }
4922
2360
  | {
4923
2361
  type: 'update readOnly'
4924
2362
  readOnly: boolean
@@ -4939,6 +2377,14 @@ declare const editorMachine: StateMachine<
4939
2377
  type: 'update maxBlocks'
4940
2378
  maxBlocks: number | undefined
4941
2379
  }
2380
+ | {
2381
+ type: 'add behavior'
2382
+ behaviorConfig: BehaviorConfig
2383
+ }
2384
+ | {
2385
+ type: 'remove behavior'
2386
+ behaviorConfig: BehaviorConfig
2387
+ }
4942
2388
  | {
4943
2389
  type: 'blur'
4944
2390
  editor: PortableTextSlateEditor
@@ -5092,7 +2538,7 @@ declare const editorMachine: StateMachine<
5092
2538
  readonly actions: readonly [
5093
2539
  ActionFunction<
5094
2540
  {
5095
- behaviors: Set<Behavior>
2541
+ behaviors: Set<BehaviorConfig>
5096
2542
  converters: Set<Converter>
5097
2543
  getLegacySchema: () => PortableTextMemberSchemaTypes
5098
2544
  keyGenerator: () => string
@@ -5116,14 +2562,6 @@ declare const editorMachine: StateMachine<
5116
2562
  | InternalPatchEvent
5117
2563
  | MutationEvent
5118
2564
  | PatchesEvent
5119
- | {
5120
- type: 'add behavior'
5121
- behavior: Behavior
5122
- }
5123
- | {
5124
- type: 'remove behavior'
5125
- behavior: Behavior
5126
- }
5127
2565
  | {
5128
2566
  type: 'update readOnly'
5129
2567
  readOnly: boolean
@@ -5144,6 +2582,14 @@ declare const editorMachine: StateMachine<
5144
2582
  type: 'update maxBlocks'
5145
2583
  maxBlocks: number | undefined
5146
2584
  }
2585
+ | {
2586
+ type: 'add behavior'
2587
+ behaviorConfig: BehaviorConfig
2588
+ }
2589
+ | {
2590
+ type: 'remove behavior'
2591
+ behaviorConfig: BehaviorConfig
2592
+ }
5147
2593
  | {
5148
2594
  type: 'blur'
5149
2595
  editor: PortableTextSlateEditor
@@ -5248,7 +2694,7 @@ declare const editorMachine: StateMachine<
5248
2694
  >,
5249
2695
  ActionFunction<
5250
2696
  {
5251
- behaviors: Set<Behavior>
2697
+ behaviors: Set<BehaviorConfig>
5252
2698
  converters: Set<Converter>
5253
2699
  getLegacySchema: () => PortableTextMemberSchemaTypes
5254
2700
  keyGenerator: () => string
@@ -5272,14 +2718,6 @@ declare const editorMachine: StateMachine<
5272
2718
  | InternalPatchEvent
5273
2719
  | MutationEvent
5274
2720
  | PatchesEvent
5275
- | {
5276
- type: 'add behavior'
5277
- behavior: Behavior
5278
- }
5279
- | {
5280
- type: 'remove behavior'
5281
- behavior: Behavior
5282
- }
5283
2721
  | {
5284
2722
  type: 'update readOnly'
5285
2723
  readOnly: boolean
@@ -5300,6 +2738,14 @@ declare const editorMachine: StateMachine<
5300
2738
  type: 'update maxBlocks'
5301
2739
  maxBlocks: number | undefined
5302
2740
  }
2741
+ | {
2742
+ type: 'add behavior'
2743
+ behaviorConfig: BehaviorConfig
2744
+ }
2745
+ | {
2746
+ type: 'remove behavior'
2747
+ behaviorConfig: BehaviorConfig
2748
+ }
5303
2749
  | {
5304
2750
  type: 'blur'
5305
2751
  editor: PortableTextSlateEditor
@@ -5453,7 +2899,7 @@ declare const editorMachine: StateMachine<
5453
2899
  readonly 'notify.unset': {
5454
2900
  readonly actions: ActionFunction<
5455
2901
  {
5456
- behaviors: Set<Behavior>
2902
+ behaviors: Set<BehaviorConfig>
5457
2903
  converters: Set<Converter>
5458
2904
  getLegacySchema: () => PortableTextMemberSchemaTypes
5459
2905
  keyGenerator: () => string
@@ -5477,14 +2923,6 @@ declare const editorMachine: StateMachine<
5477
2923
  | InternalPatchEvent
5478
2924
  | MutationEvent
5479
2925
  | PatchesEvent
5480
- | {
5481
- type: 'add behavior'
5482
- behavior: Behavior
5483
- }
5484
- | {
5485
- type: 'remove behavior'
5486
- behavior: Behavior
5487
- }
5488
2926
  | {
5489
2927
  type: 'update readOnly'
5490
2928
  readOnly: boolean
@@ -5505,6 +2943,14 @@ declare const editorMachine: StateMachine<
5505
2943
  type: 'update maxBlocks'
5506
2944
  maxBlocks: number | undefined
5507
2945
  }
2946
+ | {
2947
+ type: 'add behavior'
2948
+ behaviorConfig: BehaviorConfig
2949
+ }
2950
+ | {
2951
+ type: 'remove behavior'
2952
+ behaviorConfig: BehaviorConfig
2953
+ }
5508
2954
  | {
5509
2955
  type: 'blur'
5510
2956
  editor: PortableTextSlateEditor
@@ -5657,7 +3103,7 @@ declare const editorMachine: StateMachine<
5657
3103
  readonly 'notify.loading': {
5658
3104
  readonly actions: ActionFunction<
5659
3105
  {
5660
- behaviors: Set<Behavior>
3106
+ behaviors: Set<BehaviorConfig>
5661
3107
  converters: Set<Converter>
5662
3108
  getLegacySchema: () => PortableTextMemberSchemaTypes
5663
3109
  keyGenerator: () => string
@@ -5680,14 +3126,6 @@ declare const editorMachine: StateMachine<
5680
3126
  | InternalPatchEvent
5681
3127
  | MutationEvent
5682
3128
  | PatchesEvent
5683
- | {
5684
- type: 'add behavior'
5685
- behavior: Behavior
5686
- }
5687
- | {
5688
- type: 'remove behavior'
5689
- behavior: Behavior
5690
- }
5691
3129
  | {
5692
3130
  type: 'update readOnly'
5693
3131
  readOnly: boolean
@@ -5708,6 +3146,14 @@ declare const editorMachine: StateMachine<
5708
3146
  type: 'update maxBlocks'
5709
3147
  maxBlocks: number | undefined
5710
3148
  }
3149
+ | {
3150
+ type: 'add behavior'
3151
+ behaviorConfig: BehaviorConfig
3152
+ }
3153
+ | {
3154
+ type: 'remove behavior'
3155
+ behaviorConfig: BehaviorConfig
3156
+ }
5711
3157
  | {
5712
3158
  type: 'blur'
5713
3159
  editor: PortableTextSlateEditor
@@ -5860,7 +3306,7 @@ declare const editorMachine: StateMachine<
5860
3306
  readonly 'notify.value changed': {
5861
3307
  readonly actions: ActionFunction<
5862
3308
  {
5863
- behaviors: Set<Behavior>
3309
+ behaviors: Set<BehaviorConfig>
5864
3310
  converters: Set<Converter>
5865
3311
  getLegacySchema: () => PortableTextMemberSchemaTypes
5866
3312
  keyGenerator: () => string
@@ -5884,14 +3330,6 @@ declare const editorMachine: StateMachine<
5884
3330
  | InternalPatchEvent
5885
3331
  | MutationEvent
5886
3332
  | PatchesEvent
5887
- | {
5888
- type: 'add behavior'
5889
- behavior: Behavior
5890
- }
5891
- | {
5892
- type: 'remove behavior'
5893
- behavior: Behavior
5894
- }
5895
3333
  | {
5896
3334
  type: 'update readOnly'
5897
3335
  readOnly: boolean
@@ -5912,6 +3350,14 @@ declare const editorMachine: StateMachine<
5912
3350
  type: 'update maxBlocks'
5913
3351
  maxBlocks: number | undefined
5914
3352
  }
3353
+ | {
3354
+ type: 'add behavior'
3355
+ behaviorConfig: BehaviorConfig
3356
+ }
3357
+ | {
3358
+ type: 'remove behavior'
3359
+ behaviorConfig: BehaviorConfig
3360
+ }
5915
3361
  | {
5916
3362
  type: 'blur'
5917
3363
  editor: PortableTextSlateEditor
@@ -6070,7 +3516,7 @@ declare const editorMachine: StateMachine<
6070
3516
  readonly 'update key generator': {
6071
3517
  readonly actions: ActionFunction<
6072
3518
  {
6073
- behaviors: Set<Behavior>
3519
+ behaviors: Set<BehaviorConfig>
6074
3520
  converters: Set<Converter>
6075
3521
  getLegacySchema: () => PortableTextMemberSchemaTypes
6076
3522
  keyGenerator: () => string
@@ -6094,14 +3540,6 @@ declare const editorMachine: StateMachine<
6094
3540
  | InternalPatchEvent
6095
3541
  | MutationEvent
6096
3542
  | PatchesEvent
6097
- | {
6098
- type: 'add behavior'
6099
- behavior: Behavior
6100
- }
6101
- | {
6102
- type: 'remove behavior'
6103
- behavior: Behavior
6104
- }
6105
3543
  | {
6106
3544
  type: 'update readOnly'
6107
3545
  readOnly: boolean
@@ -6122,6 +3560,14 @@ declare const editorMachine: StateMachine<
6122
3560
  type: 'update maxBlocks'
6123
3561
  maxBlocks: number | undefined
6124
3562
  }
3563
+ | {
3564
+ type: 'add behavior'
3565
+ behaviorConfig: BehaviorConfig
3566
+ }
3567
+ | {
3568
+ type: 'remove behavior'
3569
+ behaviorConfig: BehaviorConfig
3570
+ }
6125
3571
  | {
6126
3572
  type: 'blur'
6127
3573
  editor: PortableTextSlateEditor
@@ -6231,7 +3677,7 @@ declare const editorMachine: StateMachine<
6231
3677
  readonly 'update value': {
6232
3678
  readonly actions: ActionFunction<
6233
3679
  {
6234
- behaviors: Set<Behavior>
3680
+ behaviors: Set<BehaviorConfig>
6235
3681
  converters: Set<Converter>
6236
3682
  getLegacySchema: () => PortableTextMemberSchemaTypes
6237
3683
  keyGenerator: () => string
@@ -6255,14 +3701,6 @@ declare const editorMachine: StateMachine<
6255
3701
  | InternalPatchEvent
6256
3702
  | MutationEvent
6257
3703
  | PatchesEvent
6258
- | {
6259
- type: 'add behavior'
6260
- behavior: Behavior
6261
- }
6262
- | {
6263
- type: 'remove behavior'
6264
- behavior: Behavior
6265
- }
6266
3704
  | {
6267
3705
  type: 'update readOnly'
6268
3706
  readOnly: boolean
@@ -6283,6 +3721,14 @@ declare const editorMachine: StateMachine<
6283
3721
  type: 'update maxBlocks'
6284
3722
  maxBlocks: number | undefined
6285
3723
  }
3724
+ | {
3725
+ type: 'add behavior'
3726
+ behaviorConfig: BehaviorConfig
3727
+ }
3728
+ | {
3729
+ type: 'remove behavior'
3730
+ behaviorConfig: BehaviorConfig
3731
+ }
6286
3732
  | {
6287
3733
  type: 'blur'
6288
3734
  editor: PortableTextSlateEditor
@@ -6389,7 +3835,7 @@ declare const editorMachine: StateMachine<
6389
3835
  readonly 'update maxBlocks': {
6390
3836
  readonly actions: ActionFunction<
6391
3837
  {
6392
- behaviors: Set<Behavior>
3838
+ behaviors: Set<BehaviorConfig>
6393
3839
  converters: Set<Converter>
6394
3840
  getLegacySchema: () => PortableTextMemberSchemaTypes
6395
3841
  keyGenerator: () => string
@@ -6413,14 +3859,6 @@ declare const editorMachine: StateMachine<
6413
3859
  | InternalPatchEvent
6414
3860
  | MutationEvent
6415
3861
  | PatchesEvent
6416
- | {
6417
- type: 'add behavior'
6418
- behavior: Behavior
6419
- }
6420
- | {
6421
- type: 'remove behavior'
6422
- behavior: Behavior
6423
- }
6424
3862
  | {
6425
3863
  type: 'update readOnly'
6426
3864
  readOnly: boolean
@@ -6441,6 +3879,14 @@ declare const editorMachine: StateMachine<
6441
3879
  type: 'update maxBlocks'
6442
3880
  maxBlocks: number | undefined
6443
3881
  }
3882
+ | {
3883
+ type: 'add behavior'
3884
+ behaviorConfig: BehaviorConfig
3885
+ }
3886
+ | {
3887
+ type: 'remove behavior'
3888
+ behaviorConfig: BehaviorConfig
3889
+ }
6444
3890
  | {
6445
3891
  type: 'blur'
6446
3892
  editor: PortableTextSlateEditor
@@ -6559,7 +4005,7 @@ declare const editorMachine: StateMachine<
6559
4005
  event,
6560
4006
  }: GuardArgs<
6561
4007
  {
6562
- behaviors: Set<Behavior>
4008
+ behaviors: Set<BehaviorConfig>
6563
4009
  converters: Set<Converter>
6564
4010
  getLegacySchema: () => PortableTextMemberSchemaTypes
6565
4011
  keyGenerator: () => string
@@ -6597,7 +4043,7 @@ declare const editorMachine: StateMachine<
6597
4043
  context,
6598
4044
  }: GuardArgs<
6599
4045
  {
6600
- behaviors: Set<Behavior>
4046
+ behaviors: Set<BehaviorConfig>
6601
4047
  converters: Set<Converter>
6602
4048
  getLegacySchema: () => PortableTextMemberSchemaTypes
6603
4049
  keyGenerator: () => string
@@ -6634,7 +4080,7 @@ declare const editorMachine: StateMachine<
6634
4080
  event,
6635
4081
  }: GuardArgs<
6636
4082
  {
6637
- behaviors: Set<Behavior>
4083
+ behaviors: Set<BehaviorConfig>
6638
4084
  converters: Set<Converter>
6639
4085
  getLegacySchema: () => PortableTextMemberSchemaTypes
6640
4086
  keyGenerator: () => string
@@ -6670,7 +4116,7 @@ declare const editorMachine: StateMachine<
6670
4116
  event,
6671
4117
  }: GuardArgs<
6672
4118
  {
6673
- behaviors: Set<Behavior>
4119
+ behaviors: Set<BehaviorConfig>
6674
4120
  converters: Set<Converter>
6675
4121
  getLegacySchema: () => PortableTextMemberSchemaTypes
6676
4122
  keyGenerator: () => string
@@ -6706,7 +4152,7 @@ declare const editorMachine: StateMachine<
6706
4152
  readonly actions: readonly [
6707
4153
  ActionFunction<
6708
4154
  {
6709
- behaviors: Set<Behavior>
4155
+ behaviors: Set<BehaviorConfig>
6710
4156
  converters: Set<Converter>
6711
4157
  getLegacySchema: () => PortableTextMemberSchemaTypes
6712
4158
  keyGenerator: () => string
@@ -6730,14 +4176,6 @@ declare const editorMachine: StateMachine<
6730
4176
  | InternalPatchEvent
6731
4177
  | MutationEvent
6732
4178
  | PatchesEvent
6733
- | {
6734
- type: 'add behavior'
6735
- behavior: Behavior
6736
- }
6737
- | {
6738
- type: 'remove behavior'
6739
- behavior: Behavior
6740
- }
6741
4179
  | {
6742
4180
  type: 'update readOnly'
6743
4181
  readOnly: boolean
@@ -6758,6 +4196,14 @@ declare const editorMachine: StateMachine<
6758
4196
  type: 'update maxBlocks'
6759
4197
  maxBlocks: number | undefined
6760
4198
  }
4199
+ | {
4200
+ type: 'add behavior'
4201
+ behaviorConfig: BehaviorConfig
4202
+ }
4203
+ | {
4204
+ type: 'remove behavior'
4205
+ behaviorConfig: BehaviorConfig
4206
+ }
6761
4207
  | {
6762
4208
  type: 'blur'
6763
4209
  editor: PortableTextSlateEditor
@@ -6871,7 +4317,7 @@ declare const editorMachine: StateMachine<
6871
4317
  readonly actions: readonly [
6872
4318
  ActionFunction<
6873
4319
  {
6874
- behaviors: Set<Behavior>
4320
+ behaviors: Set<BehaviorConfig>
6875
4321
  converters: Set<Converter>
6876
4322
  getLegacySchema: () => PortableTextMemberSchemaTypes
6877
4323
  keyGenerator: () => string
@@ -6898,14 +4344,6 @@ declare const editorMachine: StateMachine<
6898
4344
  | InternalPatchEvent
6899
4345
  | MutationEvent
6900
4346
  | PatchesEvent
6901
- | {
6902
- type: 'add behavior'
6903
- behavior: Behavior
6904
- }
6905
- | {
6906
- type: 'remove behavior'
6907
- behavior: Behavior
6908
- }
6909
4347
  | {
6910
4348
  type: 'update readOnly'
6911
4349
  readOnly: boolean
@@ -6926,6 +4364,14 @@ declare const editorMachine: StateMachine<
6926
4364
  type: 'update maxBlocks'
6927
4365
  maxBlocks: number | undefined
6928
4366
  }
4367
+ | {
4368
+ type: 'add behavior'
4369
+ behaviorConfig: BehaviorConfig
4370
+ }
4371
+ | {
4372
+ type: 'remove behavior'
4373
+ behaviorConfig: BehaviorConfig
4374
+ }
6929
4375
  | {
6930
4376
  type: 'blur'
6931
4377
  editor: PortableTextSlateEditor
@@ -7063,7 +4509,7 @@ declare const editorMachine: StateMachine<
7063
4509
  context,
7064
4510
  }: ActionArgs<
7065
4511
  {
7066
- behaviors: Set<Behavior>
4512
+ behaviors: Set<BehaviorConfig>
7067
4513
  converters: Set<Converter>
7068
4514
  getLegacySchema: () => PortableTextMemberSchemaTypes
7069
4515
  keyGenerator: () => string
@@ -7083,14 +4529,6 @@ declare const editorMachine: StateMachine<
7083
4529
  | InternalPatchEvent
7084
4530
  | MutationEvent
7085
4531
  | PatchesEvent
7086
- | {
7087
- type: 'add behavior'
7088
- behavior: Behavior
7089
- }
7090
- | {
7091
- type: 'remove behavior'
7092
- behavior: Behavior
7093
- }
7094
4532
  | {
7095
4533
  type: 'update readOnly'
7096
4534
  readOnly: boolean
@@ -7111,6 +4549,14 @@ declare const editorMachine: StateMachine<
7111
4549
  type: 'update maxBlocks'
7112
4550
  maxBlocks: number | undefined
7113
4551
  }
4552
+ | {
4553
+ type: 'add behavior'
4554
+ behaviorConfig: BehaviorConfig
4555
+ }
4556
+ | {
4557
+ type: 'remove behavior'
4558
+ behaviorConfig: BehaviorConfig
4559
+ }
7114
4560
  | {
7115
4561
  type: 'blur'
7116
4562
  editor: PortableTextSlateEditor
@@ -7209,14 +4655,6 @@ declare const editorMachine: StateMachine<
7209
4655
  | InternalPatchEvent
7210
4656
  | MutationEvent
7211
4657
  | PatchesEvent
7212
- | {
7213
- type: 'add behavior'
7214
- behavior: Behavior
7215
- }
7216
- | {
7217
- type: 'remove behavior'
7218
- behavior: Behavior
7219
- }
7220
4658
  | {
7221
4659
  type: 'update readOnly'
7222
4660
  readOnly: boolean
@@ -7237,6 +4675,14 @@ declare const editorMachine: StateMachine<
7237
4675
  type: 'update maxBlocks'
7238
4676
  maxBlocks: number | undefined
7239
4677
  }
4678
+ | {
4679
+ type: 'add behavior'
4680
+ behaviorConfig: BehaviorConfig
4681
+ }
4682
+ | {
4683
+ type: 'remove behavior'
4684
+ behaviorConfig: BehaviorConfig
4685
+ }
7240
4686
  | {
7241
4687
  type: 'blur'
7242
4688
  editor: PortableTextSlateEditor
@@ -7335,7 +4781,7 @@ declare const editorMachine: StateMachine<
7335
4781
  >) => void,
7336
4782
  ActionFunction<
7337
4783
  {
7338
- behaviors: Set<Behavior>
4784
+ behaviors: Set<BehaviorConfig>
7339
4785
  converters: Set<Converter>
7340
4786
  getLegacySchema: () => PortableTextMemberSchemaTypes
7341
4787
  keyGenerator: () => string
@@ -7355,14 +4801,6 @@ declare const editorMachine: StateMachine<
7355
4801
  | InternalPatchEvent
7356
4802
  | MutationEvent
7357
4803
  | PatchesEvent
7358
- | {
7359
- type: 'add behavior'
7360
- behavior: Behavior
7361
- }
7362
- | {
7363
- type: 'remove behavior'
7364
- behavior: Behavior
7365
- }
7366
4804
  | {
7367
4805
  type: 'update readOnly'
7368
4806
  readOnly: boolean
@@ -7383,6 +4821,14 @@ declare const editorMachine: StateMachine<
7383
4821
  type: 'update maxBlocks'
7384
4822
  maxBlocks: number | undefined
7385
4823
  }
4824
+ | {
4825
+ type: 'add behavior'
4826
+ behaviorConfig: BehaviorConfig
4827
+ }
4828
+ | {
4829
+ type: 'remove behavior'
4830
+ behaviorConfig: BehaviorConfig
4831
+ }
7386
4832
  | {
7387
4833
  type: 'blur'
7388
4834
  editor: PortableTextSlateEditor
@@ -7481,14 +4927,6 @@ declare const editorMachine: StateMachine<
7481
4927
  | InternalPatchEvent
7482
4928
  | MutationEvent
7483
4929
  | PatchesEvent
7484
- | {
7485
- type: 'add behavior'
7486
- behavior: Behavior
7487
- }
7488
- | {
7489
- type: 'remove behavior'
7490
- behavior: Behavior
7491
- }
7492
4930
  | {
7493
4931
  type: 'update readOnly'
7494
4932
  readOnly: boolean
@@ -7509,6 +4947,14 @@ declare const editorMachine: StateMachine<
7509
4947
  type: 'update maxBlocks'
7510
4948
  maxBlocks: number | undefined
7511
4949
  }
4950
+ | {
4951
+ type: 'add behavior'
4952
+ behaviorConfig: BehaviorConfig
4953
+ }
4954
+ | {
4955
+ type: 'remove behavior'
4956
+ behaviorConfig: BehaviorConfig
4957
+ }
7512
4958
  | {
7513
4959
  type: 'blur'
7514
4960
  editor: PortableTextSlateEditor
@@ -7662,7 +5108,7 @@ declare const editorMachine: StateMachine<
7662
5108
  readonly actions: readonly [
7663
5109
  ActionFunction<
7664
5110
  {
7665
- behaviors: Set<Behavior>
5111
+ behaviors: Set<BehaviorConfig>
7666
5112
  converters: Set<Converter>
7667
5113
  getLegacySchema: () => PortableTextMemberSchemaTypes
7668
5114
  keyGenerator: () => string
@@ -7687,14 +5133,6 @@ declare const editorMachine: StateMachine<
7687
5133
  | InternalPatchEvent
7688
5134
  | MutationEvent
7689
5135
  | PatchesEvent
7690
- | {
7691
- type: 'add behavior'
7692
- behavior: Behavior
7693
- }
7694
- | {
7695
- type: 'remove behavior'
7696
- behavior: Behavior
7697
- }
7698
5136
  | {
7699
5137
  type: 'update readOnly'
7700
5138
  readOnly: boolean
@@ -7715,6 +5153,14 @@ declare const editorMachine: StateMachine<
7715
5153
  type: 'update maxBlocks'
7716
5154
  maxBlocks: number | undefined
7717
5155
  }
5156
+ | {
5157
+ type: 'add behavior'
5158
+ behaviorConfig: BehaviorConfig
5159
+ }
5160
+ | {
5161
+ type: 'remove behavior'
5162
+ behaviorConfig: BehaviorConfig
5163
+ }
7718
5164
  | {
7719
5165
  type: 'blur'
7720
5166
  editor: PortableTextSlateEditor
@@ -7946,6 +5392,15 @@ declare const editorMachine: StateMachine<
7946
5392
  }
7947
5393
  >
7948
5394
 
5395
+ declare type EditorPriority = {
5396
+ id: string
5397
+ name?: string
5398
+ reference?: {
5399
+ priority: EditorPriority
5400
+ importance: 'higher' | 'lower'
5401
+ }
5402
+ }
5403
+
7949
5404
  /**
7950
5405
  * @public
7951
5406
  * The EditorProvider component is used to set up the editor context and configure the Portable Text Editor.
@@ -8132,14 +5587,6 @@ declare type ExternalBehaviorEventType<
8132
5587
  * @public
8133
5588
  */
8134
5589
  declare type ExternalEditorEvent =
8135
- | {
8136
- type: 'add behavior'
8137
- behavior: Behavior
8138
- }
8139
- | {
8140
- type: 'remove behavior'
8141
- behavior: Behavior
8142
- }
8143
5590
  | {
8144
5591
  type: 'update readOnly'
8145
5592
  readOnly: boolean
@@ -8230,7 +5677,7 @@ declare type InternalEditor = Editor & {
8230
5677
  }
8231
5678
 
8232
5679
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
8233
- actionId?: string
5680
+ operationId?: string
8234
5681
  value: Array<PortableTextBlock>
8235
5682
  }
8236
5683