@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
@@ -4,6 +4,7 @@ import type {
4
4
  BlockDecoratorDefinition,
5
5
  BlockListDefinition,
6
6
  BlockStyleDefinition,
7
+ KeyedSegment,
7
8
  ObjectSchemaType,
8
9
  Path,
9
10
  PortableTextBlock,
@@ -11,13 +12,12 @@ import type {
11
12
  PortableTextListBlock,
12
13
  PortableTextTextBlock,
13
14
  } from '@sanity/types'
14
- import {KeyedSegment, PortableTextObject, PortableTextSpan} from '@sanity/types'
15
+ import {PortableTextObject, PortableTextSpan} from '@sanity/types'
15
16
  import type {
16
17
  FocusEvent as FocusEvent_2,
17
18
  KeyboardEvent as KeyboardEvent_2,
18
19
  } from 'react'
19
- import type {Descendant, Operation} from 'slate'
20
- import {TextUnit} from 'slate'
20
+ import type {Descendant, Operation, TextUnit} from 'slate'
21
21
  import type {DOMNode} from 'slate-dom'
22
22
  import type {ReactEditor} from 'slate-react'
23
23
  import {
@@ -41,22 +41,6 @@ import {
41
41
  Values,
42
42
  } from 'xstate'
43
43
  import {GuardArgs} from 'xstate/guards'
44
- import {BlockOffset as BlockOffset_2} from '..'
45
- import {
46
- CustomBehaviorEvent as CustomBehaviorEvent_2,
47
- NativeBehaviorEvent as NativeBehaviorEvent_2,
48
- } from '../behaviors'
49
- import {
50
- InputBehaviorEvent as InputBehaviorEvent_2,
51
- InsertPlacement as InsertPlacement_2,
52
- MouseBehaviorEvent as MouseBehaviorEvent_2,
53
- } from '../behaviors/behavior.types.event'
54
- import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
55
- import {
56
- PickFromUnion as PickFromUnion_2,
57
- StrictExtract as StrictExtract_2,
58
- } from '../type-utils'
59
- import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
60
44
 
61
45
  declare type AbstractBehaviorEvent =
62
46
  | {
@@ -301,6 +285,11 @@ declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
301
285
  guardResponse: TGuardResponse,
302
286
  ) => Array<BehaviorAction>
303
287
 
288
+ declare type BehaviorConfig = {
289
+ behavior: Behavior
290
+ priority: EditorPriority
291
+ }
292
+
304
293
  /**
305
294
  * @beta
306
295
  */
@@ -660,7 +649,7 @@ declare type EditorContext = {
660
649
  */
661
650
  declare const editorMachine: StateMachine<
662
651
  {
663
- behaviors: Set<Behavior>
652
+ behaviors: Set<BehaviorConfig>
664
653
  converters: Set<Converter>
665
654
  getLegacySchema: () => PortableTextMemberSchemaTypes
666
655
  keyGenerator: () => string
@@ -680,14 +669,6 @@ declare const editorMachine: StateMachine<
680
669
  | InternalPatchEvent
681
670
  | MutationEvent
682
671
  | PatchesEvent
683
- | {
684
- type: 'add behavior'
685
- behavior: Behavior
686
- }
687
- | {
688
- type: 'remove behavior'
689
- behavior: Behavior
690
- }
691
672
  | {
692
673
  type: 'update readOnly'
693
674
  readOnly: boolean
@@ -708,6 +689,14 @@ declare const editorMachine: StateMachine<
708
689
  type: 'update maxBlocks'
709
690
  maxBlocks: number | undefined
710
691
  }
692
+ | {
693
+ type: 'add behavior'
694
+ behaviorConfig: BehaviorConfig
695
+ }
696
+ | {
697
+ type: 'remove behavior'
698
+ behaviorConfig: BehaviorConfig
699
+ }
711
700
  | {
712
701
  type: 'blur'
713
702
  editor: PortableTextSlateEditor
@@ -1004,7 +993,7 @@ declare const editorMachine: StateMachine<
1004
993
  self: ActorRef<
1005
994
  MachineSnapshot<
1006
995
  {
1007
- behaviors: Set<Behavior>
996
+ behaviors: Set<BehaviorConfig>
1008
997
  converters: Set<Converter>
1009
998
  getLegacySchema: () => PortableTextMemberSchemaTypes
1010
999
  keyGenerator: () => string
@@ -1024,14 +1013,6 @@ declare const editorMachine: StateMachine<
1024
1013
  | InternalPatchEvent
1025
1014
  | MutationEvent
1026
1015
  | PatchesEvent
1027
- | {
1028
- type: 'add behavior'
1029
- behavior: Behavior
1030
- }
1031
- | {
1032
- type: 'remove behavior'
1033
- behavior: Behavior
1034
- }
1035
1016
  | {
1036
1017
  type: 'update readOnly'
1037
1018
  readOnly: boolean
@@ -1052,6 +1033,14 @@ declare const editorMachine: StateMachine<
1052
1033
  type: 'update maxBlocks'
1053
1034
  maxBlocks: number | undefined
1054
1035
  }
1036
+ | {
1037
+ type: 'add behavior'
1038
+ behaviorConfig: BehaviorConfig
1039
+ }
1040
+ | {
1041
+ type: 'remove behavior'
1042
+ behaviorConfig: BehaviorConfig
1043
+ }
1055
1044
  | {
1056
1045
  type: 'blur'
1057
1046
  editor: PortableTextSlateEditor
@@ -1157,14 +1146,6 @@ declare const editorMachine: StateMachine<
1157
1146
  | InternalPatchEvent
1158
1147
  | MutationEvent
1159
1148
  | PatchesEvent
1160
- | {
1161
- type: 'add behavior'
1162
- behavior: Behavior
1163
- }
1164
- | {
1165
- type: 'remove behavior'
1166
- behavior: Behavior
1167
- }
1168
1149
  | {
1169
1150
  type: 'update readOnly'
1170
1151
  readOnly: boolean
@@ -1185,6 +1166,14 @@ declare const editorMachine: StateMachine<
1185
1166
  type: 'update maxBlocks'
1186
1167
  maxBlocks: number | undefined
1187
1168
  }
1169
+ | {
1170
+ type: 'add behavior'
1171
+ behaviorConfig: BehaviorConfig
1172
+ }
1173
+ | {
1174
+ type: 'remove behavior'
1175
+ behaviorConfig: BehaviorConfig
1176
+ }
1188
1177
  | {
1189
1178
  type: 'blur'
1190
1179
  editor: PortableTextSlateEditor
@@ -1283,2550 +1272,7 @@ declare const editorMachine: StateMachine<
1283
1272
  AnyEventObject
1284
1273
  >
1285
1274
  }) => {
1286
- behaviors: Set<
1287
- Behavior<
1288
- | 'serialize'
1289
- | 'clipboard.copy'
1290
- | 'clipboard.cut'
1291
- | 'drag.dragstart'
1292
- | 'serialization.failure'
1293
- | 'serialization.success'
1294
- | 'deserialize'
1295
- | 'deserialization.failure'
1296
- | 'deserialization.success'
1297
- | 'split'
1298
- | 'delete'
1299
- | 'select'
1300
- | '*'
1301
- | 'annotation.add'
1302
- | 'annotation.remove'
1303
- | 'block.set'
1304
- | 'block.unset'
1305
- | 'decorator.add'
1306
- | 'decorator.remove'
1307
- | 'delete.backward'
1308
- | 'delete.block'
1309
- | 'delete.forward'
1310
- | 'history.redo'
1311
- | 'history.undo'
1312
- | 'insert.inline object'
1313
- | 'insert.block'
1314
- | 'insert.span'
1315
- | 'insert.text'
1316
- | 'move.backward'
1317
- | 'move.block'
1318
- | 'move.forward'
1319
- | 'annotation.toggle'
1320
- | 'decorator.toggle'
1321
- | 'delete.text'
1322
- | 'insert.blocks'
1323
- | 'insert.break'
1324
- | 'insert.soft break'
1325
- | 'list item.add'
1326
- | 'list item.remove'
1327
- | 'list item.toggle'
1328
- | 'move.block down'
1329
- | 'move.block up'
1330
- | 'select.previous block'
1331
- | 'select.next block'
1332
- | 'style.add'
1333
- | 'style.remove'
1334
- | 'style.toggle'
1335
- | 'clipboard.paste'
1336
- | 'drag.drag'
1337
- | 'drag.dragend'
1338
- | 'drag.dragenter'
1339
- | 'drag.dragover'
1340
- | 'drag.dragleave'
1341
- | 'drag.drop'
1342
- | 'input.*'
1343
- | 'keyboard.keydown'
1344
- | 'keyboard.keyup'
1345
- | 'mouse.click'
1346
- | 'serialize.*'
1347
- | 'deserialize.*'
1348
- | 'split.*'
1349
- | 'block.*'
1350
- | 'style.*'
1351
- | 'delete.*'
1352
- | 'move.*'
1353
- | 'select.*'
1354
- | 'history.*'
1355
- | 'serialization.*'
1356
- | 'deserialization.*'
1357
- | 'annotation.*'
1358
- | 'decorator.*'
1359
- | 'insert.*'
1360
- | 'list item.*'
1361
- | 'clipboard.*'
1362
- | 'drag.*'
1363
- | 'keyboard.*'
1364
- | 'mouse.*'
1365
- | `custom.${string}`,
1366
- true,
1367
- | {
1368
- type: StrictExtract_2<
1369
- | 'serialize'
1370
- | 'serialization.failure'
1371
- | 'serialization.success'
1372
- | 'deserialize'
1373
- | 'deserialization.failure'
1374
- | 'deserialization.success'
1375
- | 'split'
1376
- | 'delete'
1377
- | 'select'
1378
- | 'annotation.add'
1379
- | 'annotation.remove'
1380
- | 'block.set'
1381
- | 'block.unset'
1382
- | 'decorator.add'
1383
- | 'decorator.remove'
1384
- | 'delete.backward'
1385
- | 'delete.block'
1386
- | 'delete.forward'
1387
- | 'history.redo'
1388
- | 'history.undo'
1389
- | 'insert.inline object'
1390
- | 'insert.block'
1391
- | 'insert.span'
1392
- | 'insert.text'
1393
- | 'move.backward'
1394
- | 'move.block'
1395
- | 'move.forward'
1396
- | 'annotation.toggle'
1397
- | 'decorator.toggle'
1398
- | 'delete.text'
1399
- | 'insert.blocks'
1400
- | 'insert.break'
1401
- | 'insert.soft break'
1402
- | 'list item.add'
1403
- | 'list item.remove'
1404
- | 'list item.toggle'
1405
- | 'move.block down'
1406
- | 'move.block up'
1407
- | 'select.previous block'
1408
- | 'select.next block'
1409
- | 'style.add'
1410
- | 'style.remove'
1411
- | 'style.toggle',
1412
- 'annotation.add'
1413
- >
1414
- annotation: {
1415
- name: string
1416
- value: {
1417
- [prop: string]: unknown
1418
- }
1419
- }
1420
- }
1421
- | {
1422
- type: StrictExtract_2<
1423
- | 'serialize'
1424
- | 'serialization.failure'
1425
- | 'serialization.success'
1426
- | 'deserialize'
1427
- | 'deserialization.failure'
1428
- | 'deserialization.success'
1429
- | 'split'
1430
- | 'delete'
1431
- | 'select'
1432
- | 'annotation.add'
1433
- | 'annotation.remove'
1434
- | 'block.set'
1435
- | 'block.unset'
1436
- | 'decorator.add'
1437
- | 'decorator.remove'
1438
- | 'delete.backward'
1439
- | 'delete.block'
1440
- | 'delete.forward'
1441
- | 'history.redo'
1442
- | 'history.undo'
1443
- | 'insert.inline object'
1444
- | 'insert.block'
1445
- | 'insert.span'
1446
- | 'insert.text'
1447
- | 'move.backward'
1448
- | 'move.block'
1449
- | 'move.forward'
1450
- | 'annotation.toggle'
1451
- | 'decorator.toggle'
1452
- | 'delete.text'
1453
- | 'insert.blocks'
1454
- | 'insert.break'
1455
- | 'insert.soft break'
1456
- | 'list item.add'
1457
- | 'list item.remove'
1458
- | 'list item.toggle'
1459
- | 'move.block down'
1460
- | 'move.block up'
1461
- | 'select.previous block'
1462
- | 'select.next block'
1463
- | 'style.add'
1464
- | 'style.remove'
1465
- | 'style.toggle',
1466
- 'annotation.remove'
1467
- >
1468
- annotation: {
1469
- name: string
1470
- }
1471
- }
1472
- | {
1473
- type: StrictExtract_2<
1474
- | 'serialize'
1475
- | 'serialization.failure'
1476
- | 'serialization.success'
1477
- | 'deserialize'
1478
- | 'deserialization.failure'
1479
- | 'deserialization.success'
1480
- | 'split'
1481
- | 'delete'
1482
- | 'select'
1483
- | 'annotation.add'
1484
- | 'annotation.remove'
1485
- | 'block.set'
1486
- | 'block.unset'
1487
- | 'decorator.add'
1488
- | 'decorator.remove'
1489
- | 'delete.backward'
1490
- | 'delete.block'
1491
- | 'delete.forward'
1492
- | 'history.redo'
1493
- | 'history.undo'
1494
- | 'insert.inline object'
1495
- | 'insert.block'
1496
- | 'insert.span'
1497
- | 'insert.text'
1498
- | 'move.backward'
1499
- | 'move.block'
1500
- | 'move.forward'
1501
- | 'annotation.toggle'
1502
- | 'decorator.toggle'
1503
- | 'delete.text'
1504
- | 'insert.blocks'
1505
- | 'insert.break'
1506
- | 'insert.soft break'
1507
- | 'list item.add'
1508
- | 'list item.remove'
1509
- | 'list item.toggle'
1510
- | 'move.block down'
1511
- | 'move.block up'
1512
- | 'select.previous block'
1513
- | 'select.next block'
1514
- | 'style.add'
1515
- | 'style.remove'
1516
- | 'style.toggle',
1517
- 'block.set'
1518
- >
1519
- at: [KeyedSegment]
1520
- props: Record<string, unknown>
1521
- }
1522
- | {
1523
- type: StrictExtract_2<
1524
- | 'serialize'
1525
- | 'serialization.failure'
1526
- | 'serialization.success'
1527
- | 'deserialize'
1528
- | 'deserialization.failure'
1529
- | 'deserialization.success'
1530
- | 'split'
1531
- | 'delete'
1532
- | 'select'
1533
- | 'annotation.add'
1534
- | 'annotation.remove'
1535
- | 'block.set'
1536
- | 'block.unset'
1537
- | 'decorator.add'
1538
- | 'decorator.remove'
1539
- | 'delete.backward'
1540
- | 'delete.block'
1541
- | 'delete.forward'
1542
- | 'history.redo'
1543
- | 'history.undo'
1544
- | 'insert.inline object'
1545
- | 'insert.block'
1546
- | 'insert.span'
1547
- | 'insert.text'
1548
- | 'move.backward'
1549
- | 'move.block'
1550
- | 'move.forward'
1551
- | 'annotation.toggle'
1552
- | 'decorator.toggle'
1553
- | 'delete.text'
1554
- | 'insert.blocks'
1555
- | 'insert.break'
1556
- | 'insert.soft break'
1557
- | 'list item.add'
1558
- | 'list item.remove'
1559
- | 'list item.toggle'
1560
- | 'move.block down'
1561
- | 'move.block up'
1562
- | 'select.previous block'
1563
- | 'select.next block'
1564
- | 'style.add'
1565
- | 'style.remove'
1566
- | 'style.toggle',
1567
- 'block.unset'
1568
- >
1569
- at: [KeyedSegment]
1570
- props: Array<string>
1571
- }
1572
- | {
1573
- type: StrictExtract_2<
1574
- | 'serialize'
1575
- | 'serialization.failure'
1576
- | 'serialization.success'
1577
- | 'deserialize'
1578
- | 'deserialization.failure'
1579
- | 'deserialization.success'
1580
- | 'split'
1581
- | 'delete'
1582
- | 'select'
1583
- | 'annotation.add'
1584
- | 'annotation.remove'
1585
- | 'block.set'
1586
- | 'block.unset'
1587
- | 'decorator.add'
1588
- | 'decorator.remove'
1589
- | 'delete.backward'
1590
- | 'delete.block'
1591
- | 'delete.forward'
1592
- | 'history.redo'
1593
- | 'history.undo'
1594
- | 'insert.inline object'
1595
- | 'insert.block'
1596
- | 'insert.span'
1597
- | 'insert.text'
1598
- | 'move.backward'
1599
- | 'move.block'
1600
- | 'move.forward'
1601
- | 'annotation.toggle'
1602
- | 'decorator.toggle'
1603
- | 'delete.text'
1604
- | 'insert.blocks'
1605
- | 'insert.break'
1606
- | 'insert.soft break'
1607
- | 'list item.add'
1608
- | 'list item.remove'
1609
- | 'list item.toggle'
1610
- | 'move.block down'
1611
- | 'move.block up'
1612
- | 'select.previous block'
1613
- | 'select.next block'
1614
- | 'style.add'
1615
- | 'style.remove'
1616
- | 'style.toggle',
1617
- 'decorator.add'
1618
- >
1619
- decorator: string
1620
- at?: {
1621
- anchor: BlockOffset_2
1622
- focus: BlockOffset_2
1623
- }
1624
- }
1625
- | {
1626
- type: StrictExtract_2<
1627
- | 'serialize'
1628
- | 'serialization.failure'
1629
- | 'serialization.success'
1630
- | 'deserialize'
1631
- | 'deserialization.failure'
1632
- | 'deserialization.success'
1633
- | 'split'
1634
- | 'delete'
1635
- | 'select'
1636
- | 'annotation.add'
1637
- | 'annotation.remove'
1638
- | 'block.set'
1639
- | 'block.unset'
1640
- | 'decorator.add'
1641
- | 'decorator.remove'
1642
- | 'delete.backward'
1643
- | 'delete.block'
1644
- | 'delete.forward'
1645
- | 'history.redo'
1646
- | 'history.undo'
1647
- | 'insert.inline object'
1648
- | 'insert.block'
1649
- | 'insert.span'
1650
- | 'insert.text'
1651
- | 'move.backward'
1652
- | 'move.block'
1653
- | 'move.forward'
1654
- | 'annotation.toggle'
1655
- | 'decorator.toggle'
1656
- | 'delete.text'
1657
- | 'insert.blocks'
1658
- | 'insert.break'
1659
- | 'insert.soft break'
1660
- | 'list item.add'
1661
- | 'list item.remove'
1662
- | 'list item.toggle'
1663
- | 'move.block down'
1664
- | 'move.block up'
1665
- | 'select.previous block'
1666
- | 'select.next block'
1667
- | 'style.add'
1668
- | 'style.remove'
1669
- | 'style.toggle',
1670
- 'decorator.remove'
1671
- >
1672
- decorator: string
1673
- }
1674
- | {
1675
- type: StrictExtract_2<
1676
- | 'serialize'
1677
- | 'serialization.failure'
1678
- | 'serialization.success'
1679
- | 'deserialize'
1680
- | 'deserialization.failure'
1681
- | 'deserialization.success'
1682
- | 'split'
1683
- | 'delete'
1684
- | 'select'
1685
- | 'annotation.add'
1686
- | 'annotation.remove'
1687
- | 'block.set'
1688
- | 'block.unset'
1689
- | 'decorator.add'
1690
- | 'decorator.remove'
1691
- | 'delete.backward'
1692
- | 'delete.block'
1693
- | 'delete.forward'
1694
- | 'history.redo'
1695
- | 'history.undo'
1696
- | 'insert.inline object'
1697
- | 'insert.block'
1698
- | 'insert.span'
1699
- | 'insert.text'
1700
- | 'move.backward'
1701
- | 'move.block'
1702
- | 'move.forward'
1703
- | 'annotation.toggle'
1704
- | 'decorator.toggle'
1705
- | 'delete.text'
1706
- | 'insert.blocks'
1707
- | 'insert.break'
1708
- | 'insert.soft break'
1709
- | 'list item.add'
1710
- | 'list item.remove'
1711
- | 'list item.toggle'
1712
- | 'move.block down'
1713
- | 'move.block up'
1714
- | 'select.previous block'
1715
- | 'select.next block'
1716
- | 'style.add'
1717
- | 'style.remove'
1718
- | 'style.toggle',
1719
- 'delete'
1720
- >
1721
- at: NonNullable<EditorSelection>
1722
- }
1723
- | {
1724
- type: StrictExtract_2<
1725
- | 'serialize'
1726
- | 'serialization.failure'
1727
- | 'serialization.success'
1728
- | 'deserialize'
1729
- | 'deserialization.failure'
1730
- | 'deserialization.success'
1731
- | 'split'
1732
- | 'delete'
1733
- | 'select'
1734
- | 'annotation.add'
1735
- | 'annotation.remove'
1736
- | 'block.set'
1737
- | 'block.unset'
1738
- | 'decorator.add'
1739
- | 'decorator.remove'
1740
- | 'delete.backward'
1741
- | 'delete.block'
1742
- | 'delete.forward'
1743
- | 'history.redo'
1744
- | 'history.undo'
1745
- | 'insert.inline object'
1746
- | 'insert.block'
1747
- | 'insert.span'
1748
- | 'insert.text'
1749
- | 'move.backward'
1750
- | 'move.block'
1751
- | 'move.forward'
1752
- | 'annotation.toggle'
1753
- | 'decorator.toggle'
1754
- | 'delete.text'
1755
- | 'insert.blocks'
1756
- | 'insert.break'
1757
- | 'insert.soft break'
1758
- | 'list item.add'
1759
- | 'list item.remove'
1760
- | 'list item.toggle'
1761
- | 'move.block down'
1762
- | 'move.block up'
1763
- | 'select.previous block'
1764
- | 'select.next block'
1765
- | 'style.add'
1766
- | 'style.remove'
1767
- | 'style.toggle',
1768
- 'delete.backward'
1769
- >
1770
- unit: TextUnit
1771
- }
1772
- | {
1773
- type: StrictExtract_2<
1774
- | 'serialize'
1775
- | 'serialization.failure'
1776
- | 'serialization.success'
1777
- | 'deserialize'
1778
- | 'deserialization.failure'
1779
- | 'deserialization.success'
1780
- | 'split'
1781
- | 'delete'
1782
- | 'select'
1783
- | 'annotation.add'
1784
- | 'annotation.remove'
1785
- | 'block.set'
1786
- | 'block.unset'
1787
- | 'decorator.add'
1788
- | 'decorator.remove'
1789
- | 'delete.backward'
1790
- | 'delete.block'
1791
- | 'delete.forward'
1792
- | 'history.redo'
1793
- | 'history.undo'
1794
- | 'insert.inline object'
1795
- | 'insert.block'
1796
- | 'insert.span'
1797
- | 'insert.text'
1798
- | 'move.backward'
1799
- | 'move.block'
1800
- | 'move.forward'
1801
- | 'annotation.toggle'
1802
- | 'decorator.toggle'
1803
- | 'delete.text'
1804
- | 'insert.blocks'
1805
- | 'insert.break'
1806
- | 'insert.soft break'
1807
- | 'list item.add'
1808
- | 'list item.remove'
1809
- | 'list item.toggle'
1810
- | 'move.block down'
1811
- | 'move.block up'
1812
- | 'select.previous block'
1813
- | 'select.next block'
1814
- | 'style.add'
1815
- | 'style.remove'
1816
- | 'style.toggle',
1817
- 'delete.block'
1818
- >
1819
- at: [KeyedSegment]
1820
- }
1821
- | {
1822
- type: StrictExtract_2<
1823
- | 'serialize'
1824
- | 'serialization.failure'
1825
- | 'serialization.success'
1826
- | 'deserialize'
1827
- | 'deserialization.failure'
1828
- | 'deserialization.success'
1829
- | 'split'
1830
- | 'delete'
1831
- | 'select'
1832
- | 'annotation.add'
1833
- | 'annotation.remove'
1834
- | 'block.set'
1835
- | 'block.unset'
1836
- | 'decorator.add'
1837
- | 'decorator.remove'
1838
- | 'delete.backward'
1839
- | 'delete.block'
1840
- | 'delete.forward'
1841
- | 'history.redo'
1842
- | 'history.undo'
1843
- | 'insert.inline object'
1844
- | 'insert.block'
1845
- | 'insert.span'
1846
- | 'insert.text'
1847
- | 'move.backward'
1848
- | 'move.block'
1849
- | 'move.forward'
1850
- | 'annotation.toggle'
1851
- | 'decorator.toggle'
1852
- | 'delete.text'
1853
- | 'insert.blocks'
1854
- | 'insert.break'
1855
- | 'insert.soft break'
1856
- | 'list item.add'
1857
- | 'list item.remove'
1858
- | 'list item.toggle'
1859
- | 'move.block down'
1860
- | 'move.block up'
1861
- | 'select.previous block'
1862
- | 'select.next block'
1863
- | 'style.add'
1864
- | 'style.remove'
1865
- | 'style.toggle',
1866
- 'delete.forward'
1867
- >
1868
- unit: TextUnit
1869
- }
1870
- | {
1871
- type: StrictExtract_2<
1872
- | 'serialize'
1873
- | 'serialization.failure'
1874
- | 'serialization.success'
1875
- | 'deserialize'
1876
- | 'deserialization.failure'
1877
- | 'deserialization.success'
1878
- | 'split'
1879
- | 'delete'
1880
- | 'select'
1881
- | 'annotation.add'
1882
- | 'annotation.remove'
1883
- | 'block.set'
1884
- | 'block.unset'
1885
- | 'decorator.add'
1886
- | 'decorator.remove'
1887
- | 'delete.backward'
1888
- | 'delete.block'
1889
- | 'delete.forward'
1890
- | 'history.redo'
1891
- | 'history.undo'
1892
- | 'insert.inline object'
1893
- | 'insert.block'
1894
- | 'insert.span'
1895
- | 'insert.text'
1896
- | 'move.backward'
1897
- | 'move.block'
1898
- | 'move.forward'
1899
- | 'annotation.toggle'
1900
- | 'decorator.toggle'
1901
- | 'delete.text'
1902
- | 'insert.blocks'
1903
- | 'insert.break'
1904
- | 'insert.soft break'
1905
- | 'list item.add'
1906
- | 'list item.remove'
1907
- | 'list item.toggle'
1908
- | 'move.block down'
1909
- | 'move.block up'
1910
- | 'select.previous block'
1911
- | 'select.next block'
1912
- | 'style.add'
1913
- | 'style.remove'
1914
- | 'style.toggle',
1915
- 'history.redo'
1916
- >
1917
- }
1918
- | {
1919
- type: StrictExtract_2<
1920
- | 'serialize'
1921
- | 'serialization.failure'
1922
- | 'serialization.success'
1923
- | 'deserialize'
1924
- | 'deserialization.failure'
1925
- | 'deserialization.success'
1926
- | 'split'
1927
- | 'delete'
1928
- | 'select'
1929
- | 'annotation.add'
1930
- | 'annotation.remove'
1931
- | 'block.set'
1932
- | 'block.unset'
1933
- | 'decorator.add'
1934
- | 'decorator.remove'
1935
- | 'delete.backward'
1936
- | 'delete.block'
1937
- | 'delete.forward'
1938
- | 'history.redo'
1939
- | 'history.undo'
1940
- | 'insert.inline object'
1941
- | 'insert.block'
1942
- | 'insert.span'
1943
- | 'insert.text'
1944
- | 'move.backward'
1945
- | 'move.block'
1946
- | 'move.forward'
1947
- | 'annotation.toggle'
1948
- | 'decorator.toggle'
1949
- | 'delete.text'
1950
- | 'insert.blocks'
1951
- | 'insert.break'
1952
- | 'insert.soft break'
1953
- | 'list item.add'
1954
- | 'list item.remove'
1955
- | 'list item.toggle'
1956
- | 'move.block down'
1957
- | 'move.block up'
1958
- | 'select.previous block'
1959
- | 'select.next block'
1960
- | 'style.add'
1961
- | 'style.remove'
1962
- | 'style.toggle',
1963
- 'history.undo'
1964
- >
1965
- }
1966
- | {
1967
- type: StrictExtract_2<
1968
- | 'serialize'
1969
- | 'serialization.failure'
1970
- | 'serialization.success'
1971
- | 'deserialize'
1972
- | 'deserialization.failure'
1973
- | 'deserialization.success'
1974
- | 'split'
1975
- | 'delete'
1976
- | 'select'
1977
- | 'annotation.add'
1978
- | 'annotation.remove'
1979
- | 'block.set'
1980
- | 'block.unset'
1981
- | 'decorator.add'
1982
- | 'decorator.remove'
1983
- | 'delete.backward'
1984
- | 'delete.block'
1985
- | 'delete.forward'
1986
- | 'history.redo'
1987
- | 'history.undo'
1988
- | 'insert.inline object'
1989
- | 'insert.block'
1990
- | 'insert.span'
1991
- | 'insert.text'
1992
- | 'move.backward'
1993
- | 'move.block'
1994
- | 'move.forward'
1995
- | 'annotation.toggle'
1996
- | 'decorator.toggle'
1997
- | 'delete.text'
1998
- | 'insert.blocks'
1999
- | 'insert.break'
2000
- | 'insert.soft break'
2001
- | 'list item.add'
2002
- | 'list item.remove'
2003
- | 'list item.toggle'
2004
- | 'move.block down'
2005
- | 'move.block up'
2006
- | 'select.previous block'
2007
- | 'select.next block'
2008
- | 'style.add'
2009
- | 'style.remove'
2010
- | 'style.toggle',
2011
- 'insert.inline object'
2012
- >
2013
- inlineObject: {
2014
- name: string
2015
- value?: {
2016
- [prop: string]: unknown
2017
- }
2018
- }
2019
- }
2020
- | {
2021
- type: StrictExtract_2<
2022
- | 'serialize'
2023
- | 'serialization.failure'
2024
- | 'serialization.success'
2025
- | 'deserialize'
2026
- | 'deserialization.failure'
2027
- | 'deserialization.success'
2028
- | 'split'
2029
- | 'delete'
2030
- | 'select'
2031
- | 'annotation.add'
2032
- | 'annotation.remove'
2033
- | 'block.set'
2034
- | 'block.unset'
2035
- | 'decorator.add'
2036
- | 'decorator.remove'
2037
- | 'delete.backward'
2038
- | 'delete.block'
2039
- | 'delete.forward'
2040
- | 'history.redo'
2041
- | 'history.undo'
2042
- | 'insert.inline object'
2043
- | 'insert.block'
2044
- | 'insert.span'
2045
- | 'insert.text'
2046
- | 'move.backward'
2047
- | 'move.block'
2048
- | 'move.forward'
2049
- | 'annotation.toggle'
2050
- | 'decorator.toggle'
2051
- | 'delete.text'
2052
- | 'insert.blocks'
2053
- | 'insert.break'
2054
- | 'insert.soft break'
2055
- | 'list item.add'
2056
- | 'list item.remove'
2057
- | 'list item.toggle'
2058
- | 'move.block down'
2059
- | 'move.block up'
2060
- | 'select.previous block'
2061
- | 'select.next block'
2062
- | 'style.add'
2063
- | 'style.remove'
2064
- | 'style.toggle',
2065
- 'insert.block'
2066
- >
2067
- block: BlockWithOptionalKey_2
2068
- placement: InsertPlacement_2
2069
- select?: 'start' | 'end' | 'none'
2070
- }
2071
- | {
2072
- type: StrictExtract_2<
2073
- | 'serialize'
2074
- | 'serialization.failure'
2075
- | 'serialization.success'
2076
- | 'deserialize'
2077
- | 'deserialization.failure'
2078
- | 'deserialization.success'
2079
- | 'split'
2080
- | 'delete'
2081
- | 'select'
2082
- | 'annotation.add'
2083
- | 'annotation.remove'
2084
- | 'block.set'
2085
- | 'block.unset'
2086
- | 'decorator.add'
2087
- | 'decorator.remove'
2088
- | 'delete.backward'
2089
- | 'delete.block'
2090
- | 'delete.forward'
2091
- | 'history.redo'
2092
- | 'history.undo'
2093
- | 'insert.inline object'
2094
- | 'insert.block'
2095
- | 'insert.span'
2096
- | 'insert.text'
2097
- | 'move.backward'
2098
- | 'move.block'
2099
- | 'move.forward'
2100
- | 'annotation.toggle'
2101
- | 'decorator.toggle'
2102
- | 'delete.text'
2103
- | 'insert.blocks'
2104
- | 'insert.break'
2105
- | 'insert.soft break'
2106
- | 'list item.add'
2107
- | 'list item.remove'
2108
- | 'list item.toggle'
2109
- | 'move.block down'
2110
- | 'move.block up'
2111
- | 'select.previous block'
2112
- | 'select.next block'
2113
- | 'style.add'
2114
- | 'style.remove'
2115
- | 'style.toggle',
2116
- 'insert.span'
2117
- >
2118
- text: string
2119
- annotations?: Array<{
2120
- name: string
2121
- value: {
2122
- [prop: string]: unknown
2123
- }
2124
- }>
2125
- decorators?: Array<string>
2126
- }
2127
- | {
2128
- type: StrictExtract_2<
2129
- | 'serialize'
2130
- | 'serialization.failure'
2131
- | 'serialization.success'
2132
- | 'deserialize'
2133
- | 'deserialization.failure'
2134
- | 'deserialization.success'
2135
- | 'split'
2136
- | 'delete'
2137
- | 'select'
2138
- | 'annotation.add'
2139
- | 'annotation.remove'
2140
- | 'block.set'
2141
- | 'block.unset'
2142
- | 'decorator.add'
2143
- | 'decorator.remove'
2144
- | 'delete.backward'
2145
- | 'delete.block'
2146
- | 'delete.forward'
2147
- | 'history.redo'
2148
- | 'history.undo'
2149
- | 'insert.inline object'
2150
- | 'insert.block'
2151
- | 'insert.span'
2152
- | 'insert.text'
2153
- | 'move.backward'
2154
- | 'move.block'
2155
- | 'move.forward'
2156
- | 'annotation.toggle'
2157
- | 'decorator.toggle'
2158
- | 'delete.text'
2159
- | 'insert.blocks'
2160
- | 'insert.break'
2161
- | 'insert.soft break'
2162
- | 'list item.add'
2163
- | 'list item.remove'
2164
- | 'list item.toggle'
2165
- | 'move.block down'
2166
- | 'move.block up'
2167
- | 'select.previous block'
2168
- | 'select.next block'
2169
- | 'style.add'
2170
- | 'style.remove'
2171
- | 'style.toggle',
2172
- 'insert.text'
2173
- >
2174
- text: string
2175
- }
2176
- | {
2177
- type: StrictExtract_2<
2178
- | 'serialize'
2179
- | 'serialization.failure'
2180
- | 'serialization.success'
2181
- | 'deserialize'
2182
- | 'deserialization.failure'
2183
- | 'deserialization.success'
2184
- | 'split'
2185
- | 'delete'
2186
- | 'select'
2187
- | 'annotation.add'
2188
- | 'annotation.remove'
2189
- | 'block.set'
2190
- | 'block.unset'
2191
- | 'decorator.add'
2192
- | 'decorator.remove'
2193
- | 'delete.backward'
2194
- | 'delete.block'
2195
- | 'delete.forward'
2196
- | 'history.redo'
2197
- | 'history.undo'
2198
- | 'insert.inline object'
2199
- | 'insert.block'
2200
- | 'insert.span'
2201
- | 'insert.text'
2202
- | 'move.backward'
2203
- | 'move.block'
2204
- | 'move.forward'
2205
- | 'annotation.toggle'
2206
- | 'decorator.toggle'
2207
- | 'delete.text'
2208
- | 'insert.blocks'
2209
- | 'insert.break'
2210
- | 'insert.soft break'
2211
- | 'list item.add'
2212
- | 'list item.remove'
2213
- | 'list item.toggle'
2214
- | 'move.block down'
2215
- | 'move.block up'
2216
- | 'select.previous block'
2217
- | 'select.next block'
2218
- | 'style.add'
2219
- | 'style.remove'
2220
- | 'style.toggle',
2221
- 'move.backward'
2222
- >
2223
- distance: number
2224
- }
2225
- | {
2226
- type: StrictExtract_2<
2227
- | 'serialize'
2228
- | 'serialization.failure'
2229
- | 'serialization.success'
2230
- | 'deserialize'
2231
- | 'deserialization.failure'
2232
- | 'deserialization.success'
2233
- | 'split'
2234
- | 'delete'
2235
- | 'select'
2236
- | 'annotation.add'
2237
- | 'annotation.remove'
2238
- | 'block.set'
2239
- | 'block.unset'
2240
- | 'decorator.add'
2241
- | 'decorator.remove'
2242
- | 'delete.backward'
2243
- | 'delete.block'
2244
- | 'delete.forward'
2245
- | 'history.redo'
2246
- | 'history.undo'
2247
- | 'insert.inline object'
2248
- | 'insert.block'
2249
- | 'insert.span'
2250
- | 'insert.text'
2251
- | 'move.backward'
2252
- | 'move.block'
2253
- | 'move.forward'
2254
- | 'annotation.toggle'
2255
- | 'decorator.toggle'
2256
- | 'delete.text'
2257
- | 'insert.blocks'
2258
- | 'insert.break'
2259
- | 'insert.soft break'
2260
- | 'list item.add'
2261
- | 'list item.remove'
2262
- | 'list item.toggle'
2263
- | 'move.block down'
2264
- | 'move.block up'
2265
- | 'select.previous block'
2266
- | 'select.next block'
2267
- | 'style.add'
2268
- | 'style.remove'
2269
- | 'style.toggle',
2270
- 'move.block'
2271
- >
2272
- at: [KeyedSegment]
2273
- to: [KeyedSegment]
2274
- }
2275
- | {
2276
- type: StrictExtract_2<
2277
- | 'serialize'
2278
- | 'serialization.failure'
2279
- | 'serialization.success'
2280
- | 'deserialize'
2281
- | 'deserialization.failure'
2282
- | 'deserialization.success'
2283
- | 'split'
2284
- | 'delete'
2285
- | 'select'
2286
- | 'annotation.add'
2287
- | 'annotation.remove'
2288
- | 'block.set'
2289
- | 'block.unset'
2290
- | 'decorator.add'
2291
- | 'decorator.remove'
2292
- | 'delete.backward'
2293
- | 'delete.block'
2294
- | 'delete.forward'
2295
- | 'history.redo'
2296
- | 'history.undo'
2297
- | 'insert.inline object'
2298
- | 'insert.block'
2299
- | 'insert.span'
2300
- | 'insert.text'
2301
- | 'move.backward'
2302
- | 'move.block'
2303
- | 'move.forward'
2304
- | 'annotation.toggle'
2305
- | 'decorator.toggle'
2306
- | 'delete.text'
2307
- | 'insert.blocks'
2308
- | 'insert.break'
2309
- | 'insert.soft break'
2310
- | 'list item.add'
2311
- | 'list item.remove'
2312
- | 'list item.toggle'
2313
- | 'move.block down'
2314
- | 'move.block up'
2315
- | 'select.previous block'
2316
- | 'select.next block'
2317
- | 'style.add'
2318
- | 'style.remove'
2319
- | 'style.toggle',
2320
- 'move.forward'
2321
- >
2322
- distance: number
2323
- }
2324
- | {
2325
- type: StrictExtract_2<
2326
- | 'serialize'
2327
- | 'serialization.failure'
2328
- | 'serialization.success'
2329
- | 'deserialize'
2330
- | 'deserialization.failure'
2331
- | 'deserialization.success'
2332
- | 'split'
2333
- | 'delete'
2334
- | 'select'
2335
- | 'annotation.add'
2336
- | 'annotation.remove'
2337
- | 'block.set'
2338
- | 'block.unset'
2339
- | 'decorator.add'
2340
- | 'decorator.remove'
2341
- | 'delete.backward'
2342
- | 'delete.block'
2343
- | 'delete.forward'
2344
- | 'history.redo'
2345
- | 'history.undo'
2346
- | 'insert.inline object'
2347
- | 'insert.block'
2348
- | 'insert.span'
2349
- | 'insert.text'
2350
- | 'move.backward'
2351
- | 'move.block'
2352
- | 'move.forward'
2353
- | 'annotation.toggle'
2354
- | 'decorator.toggle'
2355
- | 'delete.text'
2356
- | 'insert.blocks'
2357
- | 'insert.break'
2358
- | 'insert.soft break'
2359
- | 'list item.add'
2360
- | 'list item.remove'
2361
- | 'list item.toggle'
2362
- | 'move.block down'
2363
- | 'move.block up'
2364
- | 'select.previous block'
2365
- | 'select.next block'
2366
- | 'style.add'
2367
- | 'style.remove'
2368
- | 'style.toggle',
2369
- 'select'
2370
- >
2371
- at: EditorSelection
2372
- }
2373
- | {
2374
- type: StrictExtract_2<
2375
- | 'serialize'
2376
- | 'serialization.failure'
2377
- | 'serialization.success'
2378
- | 'deserialize'
2379
- | 'deserialization.failure'
2380
- | 'deserialization.success'
2381
- | 'split'
2382
- | 'delete'
2383
- | 'select'
2384
- | 'annotation.add'
2385
- | 'annotation.remove'
2386
- | 'block.set'
2387
- | 'block.unset'
2388
- | 'decorator.add'
2389
- | 'decorator.remove'
2390
- | 'delete.backward'
2391
- | 'delete.block'
2392
- | 'delete.forward'
2393
- | 'history.redo'
2394
- | 'history.undo'
2395
- | 'insert.inline object'
2396
- | 'insert.block'
2397
- | 'insert.span'
2398
- | 'insert.text'
2399
- | 'move.backward'
2400
- | 'move.block'
2401
- | 'move.forward'
2402
- | 'annotation.toggle'
2403
- | 'decorator.toggle'
2404
- | 'delete.text'
2405
- | 'insert.blocks'
2406
- | 'insert.break'
2407
- | 'insert.soft break'
2408
- | 'list item.add'
2409
- | 'list item.remove'
2410
- | 'list item.toggle'
2411
- | 'move.block down'
2412
- | 'move.block up'
2413
- | 'select.previous block'
2414
- | 'select.next block'
2415
- | 'style.add'
2416
- | 'style.remove'
2417
- | 'style.toggle',
2418
- 'annotation.toggle'
2419
- >
2420
- annotation: {
2421
- name: string
2422
- value: {
2423
- [prop: string]: unknown
2424
- }
2425
- }
2426
- }
2427
- | {
2428
- type: StrictExtract_2<
2429
- | 'serialize'
2430
- | 'serialization.failure'
2431
- | 'serialization.success'
2432
- | 'deserialize'
2433
- | 'deserialization.failure'
2434
- | 'deserialization.success'
2435
- | 'split'
2436
- | 'delete'
2437
- | 'select'
2438
- | 'annotation.add'
2439
- | 'annotation.remove'
2440
- | 'block.set'
2441
- | 'block.unset'
2442
- | 'decorator.add'
2443
- | 'decorator.remove'
2444
- | 'delete.backward'
2445
- | 'delete.block'
2446
- | 'delete.forward'
2447
- | 'history.redo'
2448
- | 'history.undo'
2449
- | 'insert.inline object'
2450
- | 'insert.block'
2451
- | 'insert.span'
2452
- | 'insert.text'
2453
- | 'move.backward'
2454
- | 'move.block'
2455
- | 'move.forward'
2456
- | 'annotation.toggle'
2457
- | 'decorator.toggle'
2458
- | 'delete.text'
2459
- | 'insert.blocks'
2460
- | 'insert.break'
2461
- | 'insert.soft break'
2462
- | 'list item.add'
2463
- | 'list item.remove'
2464
- | 'list item.toggle'
2465
- | 'move.block down'
2466
- | 'move.block up'
2467
- | 'select.previous block'
2468
- | 'select.next block'
2469
- | 'style.add'
2470
- | 'style.remove'
2471
- | 'style.toggle',
2472
- 'decorator.toggle'
2473
- >
2474
- decorator: string
2475
- at?: {
2476
- anchor: BlockOffset_2
2477
- focus: BlockOffset_2
2478
- }
2479
- }
2480
- | {
2481
- type: StrictExtract_2<
2482
- | 'serialize'
2483
- | 'serialization.failure'
2484
- | 'serialization.success'
2485
- | 'deserialize'
2486
- | 'deserialization.failure'
2487
- | 'deserialization.success'
2488
- | 'split'
2489
- | 'delete'
2490
- | 'select'
2491
- | 'annotation.add'
2492
- | 'annotation.remove'
2493
- | 'block.set'
2494
- | 'block.unset'
2495
- | 'decorator.add'
2496
- | 'decorator.remove'
2497
- | 'delete.backward'
2498
- | 'delete.block'
2499
- | 'delete.forward'
2500
- | 'history.redo'
2501
- | 'history.undo'
2502
- | 'insert.inline object'
2503
- | 'insert.block'
2504
- | 'insert.span'
2505
- | 'insert.text'
2506
- | 'move.backward'
2507
- | 'move.block'
2508
- | 'move.forward'
2509
- | 'annotation.toggle'
2510
- | 'decorator.toggle'
2511
- | 'delete.text'
2512
- | 'insert.blocks'
2513
- | 'insert.break'
2514
- | 'insert.soft break'
2515
- | 'list item.add'
2516
- | 'list item.remove'
2517
- | 'list item.toggle'
2518
- | 'move.block down'
2519
- | 'move.block up'
2520
- | 'select.previous block'
2521
- | 'select.next block'
2522
- | 'style.add'
2523
- | 'style.remove'
2524
- | 'style.toggle',
2525
- 'delete.text'
2526
- >
2527
- at: {
2528
- anchor: BlockOffset_2
2529
- focus: BlockOffset_2
2530
- }
2531
- }
2532
- | {
2533
- type: StrictExtract_2<
2534
- | 'serialize'
2535
- | 'serialization.failure'
2536
- | 'serialization.success'
2537
- | 'deserialize'
2538
- | 'deserialization.failure'
2539
- | 'deserialization.success'
2540
- | 'split'
2541
- | 'delete'
2542
- | 'select'
2543
- | 'annotation.add'
2544
- | 'annotation.remove'
2545
- | 'block.set'
2546
- | 'block.unset'
2547
- | 'decorator.add'
2548
- | 'decorator.remove'
2549
- | 'delete.backward'
2550
- | 'delete.block'
2551
- | 'delete.forward'
2552
- | 'history.redo'
2553
- | 'history.undo'
2554
- | 'insert.inline object'
2555
- | 'insert.block'
2556
- | 'insert.span'
2557
- | 'insert.text'
2558
- | 'move.backward'
2559
- | 'move.block'
2560
- | 'move.forward'
2561
- | 'annotation.toggle'
2562
- | 'decorator.toggle'
2563
- | 'delete.text'
2564
- | 'insert.blocks'
2565
- | 'insert.break'
2566
- | 'insert.soft break'
2567
- | 'list item.add'
2568
- | 'list item.remove'
2569
- | 'list item.toggle'
2570
- | 'move.block down'
2571
- | 'move.block up'
2572
- | 'select.previous block'
2573
- | 'select.next block'
2574
- | 'style.add'
2575
- | 'style.remove'
2576
- | 'style.toggle',
2577
- 'deserialize'
2578
- >
2579
- originEvent:
2580
- | PickFromUnion_2<
2581
- NativeBehaviorEvent_2,
2582
- 'type',
2583
- 'drag.drop' | 'clipboard.paste'
2584
- >
2585
- | InputBehaviorEvent_2
2586
- }
2587
- | {
2588
- type: StrictExtract_2<
2589
- | 'serialize'
2590
- | 'serialization.failure'
2591
- | 'serialization.success'
2592
- | 'deserialize'
2593
- | 'deserialization.failure'
2594
- | 'deserialization.success'
2595
- | 'split'
2596
- | 'delete'
2597
- | 'select'
2598
- | 'annotation.add'
2599
- | 'annotation.remove'
2600
- | 'block.set'
2601
- | 'block.unset'
2602
- | 'decorator.add'
2603
- | 'decorator.remove'
2604
- | 'delete.backward'
2605
- | 'delete.block'
2606
- | 'delete.forward'
2607
- | 'history.redo'
2608
- | 'history.undo'
2609
- | 'insert.inline object'
2610
- | 'insert.block'
2611
- | 'insert.span'
2612
- | 'insert.text'
2613
- | 'move.backward'
2614
- | 'move.block'
2615
- | 'move.forward'
2616
- | 'annotation.toggle'
2617
- | 'decorator.toggle'
2618
- | 'delete.text'
2619
- | 'insert.blocks'
2620
- | 'insert.break'
2621
- | 'insert.soft break'
2622
- | 'list item.add'
2623
- | 'list item.remove'
2624
- | 'list item.toggle'
2625
- | 'move.block down'
2626
- | 'move.block up'
2627
- | 'select.previous block'
2628
- | 'select.next block'
2629
- | 'style.add'
2630
- | 'style.remove'
2631
- | 'style.toggle',
2632
- 'serialize'
2633
- >
2634
- originEvent: PickFromUnion_2<
2635
- NativeBehaviorEvent_2,
2636
- 'type',
2637
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2638
- >
2639
- }
2640
- | {
2641
- type: StrictExtract_2<
2642
- | 'serialize'
2643
- | 'serialization.failure'
2644
- | 'serialization.success'
2645
- | 'deserialize'
2646
- | 'deserialization.failure'
2647
- | 'deserialization.success'
2648
- | 'split'
2649
- | 'delete'
2650
- | 'select'
2651
- | 'annotation.add'
2652
- | 'annotation.remove'
2653
- | 'block.set'
2654
- | 'block.unset'
2655
- | 'decorator.add'
2656
- | 'decorator.remove'
2657
- | 'delete.backward'
2658
- | 'delete.block'
2659
- | 'delete.forward'
2660
- | 'history.redo'
2661
- | 'history.undo'
2662
- | 'insert.inline object'
2663
- | 'insert.block'
2664
- | 'insert.span'
2665
- | 'insert.text'
2666
- | 'move.backward'
2667
- | 'move.block'
2668
- | 'move.forward'
2669
- | 'annotation.toggle'
2670
- | 'decorator.toggle'
2671
- | 'delete.text'
2672
- | 'insert.blocks'
2673
- | 'insert.break'
2674
- | 'insert.soft break'
2675
- | 'list item.add'
2676
- | 'list item.remove'
2677
- | 'list item.toggle'
2678
- | 'move.block down'
2679
- | 'move.block up'
2680
- | 'select.previous block'
2681
- | 'select.next block'
2682
- | 'style.add'
2683
- | 'style.remove'
2684
- | 'style.toggle',
2685
- 'deserialization.success'
2686
- >
2687
- mimeType: MIMEType_2
2688
- data: Array<PortableTextBlock>
2689
- originEvent:
2690
- | PickFromUnion_2<
2691
- NativeBehaviorEvent_2,
2692
- 'type',
2693
- 'drag.drop' | 'clipboard.paste'
2694
- >
2695
- | InputBehaviorEvent_2
2696
- }
2697
- | {
2698
- type: StrictExtract_2<
2699
- | 'serialize'
2700
- | 'serialization.failure'
2701
- | 'serialization.success'
2702
- | 'deserialize'
2703
- | 'deserialization.failure'
2704
- | 'deserialization.success'
2705
- | 'split'
2706
- | 'delete'
2707
- | 'select'
2708
- | 'annotation.add'
2709
- | 'annotation.remove'
2710
- | 'block.set'
2711
- | 'block.unset'
2712
- | 'decorator.add'
2713
- | 'decorator.remove'
2714
- | 'delete.backward'
2715
- | 'delete.block'
2716
- | 'delete.forward'
2717
- | 'history.redo'
2718
- | 'history.undo'
2719
- | 'insert.inline object'
2720
- | 'insert.block'
2721
- | 'insert.span'
2722
- | 'insert.text'
2723
- | 'move.backward'
2724
- | 'move.block'
2725
- | 'move.forward'
2726
- | 'annotation.toggle'
2727
- | 'decorator.toggle'
2728
- | 'delete.text'
2729
- | 'insert.blocks'
2730
- | 'insert.break'
2731
- | 'insert.soft break'
2732
- | 'list item.add'
2733
- | 'list item.remove'
2734
- | 'list item.toggle'
2735
- | 'move.block down'
2736
- | 'move.block up'
2737
- | 'select.previous block'
2738
- | 'select.next block'
2739
- | 'style.add'
2740
- | 'style.remove'
2741
- | 'style.toggle',
2742
- 'deserialization.failure'
2743
- >
2744
- mimeType: MIMEType_2
2745
- reason: string
2746
- originEvent:
2747
- | PickFromUnion_2<
2748
- NativeBehaviorEvent_2,
2749
- 'type',
2750
- 'drag.drop' | 'clipboard.paste'
2751
- >
2752
- | InputBehaviorEvent_2
2753
- }
2754
- | {
2755
- type: StrictExtract_2<
2756
- | 'serialize'
2757
- | 'serialization.failure'
2758
- | 'serialization.success'
2759
- | 'deserialize'
2760
- | 'deserialization.failure'
2761
- | 'deserialization.success'
2762
- | 'split'
2763
- | 'delete'
2764
- | 'select'
2765
- | 'annotation.add'
2766
- | 'annotation.remove'
2767
- | 'block.set'
2768
- | 'block.unset'
2769
- | 'decorator.add'
2770
- | 'decorator.remove'
2771
- | 'delete.backward'
2772
- | 'delete.block'
2773
- | 'delete.forward'
2774
- | 'history.redo'
2775
- | 'history.undo'
2776
- | 'insert.inline object'
2777
- | 'insert.block'
2778
- | 'insert.span'
2779
- | 'insert.text'
2780
- | 'move.backward'
2781
- | 'move.block'
2782
- | 'move.forward'
2783
- | 'annotation.toggle'
2784
- | 'decorator.toggle'
2785
- | 'delete.text'
2786
- | 'insert.blocks'
2787
- | 'insert.break'
2788
- | 'insert.soft break'
2789
- | 'list item.add'
2790
- | 'list item.remove'
2791
- | 'list item.toggle'
2792
- | 'move.block down'
2793
- | 'move.block up'
2794
- | 'select.previous block'
2795
- | 'select.next block'
2796
- | 'style.add'
2797
- | 'style.remove'
2798
- | 'style.toggle',
2799
- 'serialization.success'
2800
- >
2801
- mimeType: MIMEType_2
2802
- data: string
2803
- originEvent: PickFromUnion_2<
2804
- NativeBehaviorEvent_2,
2805
- 'type',
2806
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2807
- >
2808
- }
2809
- | {
2810
- type: StrictExtract_2<
2811
- | 'serialize'
2812
- | 'serialization.failure'
2813
- | 'serialization.success'
2814
- | 'deserialize'
2815
- | 'deserialization.failure'
2816
- | 'deserialization.success'
2817
- | 'split'
2818
- | 'delete'
2819
- | 'select'
2820
- | 'annotation.add'
2821
- | 'annotation.remove'
2822
- | 'block.set'
2823
- | 'block.unset'
2824
- | 'decorator.add'
2825
- | 'decorator.remove'
2826
- | 'delete.backward'
2827
- | 'delete.block'
2828
- | 'delete.forward'
2829
- | 'history.redo'
2830
- | 'history.undo'
2831
- | 'insert.inline object'
2832
- | 'insert.block'
2833
- | 'insert.span'
2834
- | 'insert.text'
2835
- | 'move.backward'
2836
- | 'move.block'
2837
- | 'move.forward'
2838
- | 'annotation.toggle'
2839
- | 'decorator.toggle'
2840
- | 'delete.text'
2841
- | 'insert.blocks'
2842
- | 'insert.break'
2843
- | 'insert.soft break'
2844
- | 'list item.add'
2845
- | 'list item.remove'
2846
- | 'list item.toggle'
2847
- | 'move.block down'
2848
- | 'move.block up'
2849
- | 'select.previous block'
2850
- | 'select.next block'
2851
- | 'style.add'
2852
- | 'style.remove'
2853
- | 'style.toggle',
2854
- 'serialization.failure'
2855
- >
2856
- mimeType: MIMEType_2
2857
- reason: string
2858
- originEvent: PickFromUnion_2<
2859
- NativeBehaviorEvent_2,
2860
- 'type',
2861
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2862
- >
2863
- }
2864
- | {
2865
- type: StrictExtract_2<
2866
- | 'serialize'
2867
- | 'serialization.failure'
2868
- | 'serialization.success'
2869
- | 'deserialize'
2870
- | 'deserialization.failure'
2871
- | 'deserialization.success'
2872
- | 'split'
2873
- | 'delete'
2874
- | 'select'
2875
- | 'annotation.add'
2876
- | 'annotation.remove'
2877
- | 'block.set'
2878
- | 'block.unset'
2879
- | 'decorator.add'
2880
- | 'decorator.remove'
2881
- | 'delete.backward'
2882
- | 'delete.block'
2883
- | 'delete.forward'
2884
- | 'history.redo'
2885
- | 'history.undo'
2886
- | 'insert.inline object'
2887
- | 'insert.block'
2888
- | 'insert.span'
2889
- | 'insert.text'
2890
- | 'move.backward'
2891
- | 'move.block'
2892
- | 'move.forward'
2893
- | 'annotation.toggle'
2894
- | 'decorator.toggle'
2895
- | 'delete.text'
2896
- | 'insert.blocks'
2897
- | 'insert.break'
2898
- | 'insert.soft break'
2899
- | 'list item.add'
2900
- | 'list item.remove'
2901
- | 'list item.toggle'
2902
- | 'move.block down'
2903
- | 'move.block up'
2904
- | 'select.previous block'
2905
- | 'select.next block'
2906
- | 'style.add'
2907
- | 'style.remove'
2908
- | 'style.toggle',
2909
- 'insert.blocks'
2910
- >
2911
- blocks: Array<BlockWithOptionalKey_2>
2912
- placement: InsertPlacement_2
2913
- }
2914
- | {
2915
- type: StrictExtract_2<
2916
- | 'serialize'
2917
- | 'serialization.failure'
2918
- | 'serialization.success'
2919
- | 'deserialize'
2920
- | 'deserialization.failure'
2921
- | 'deserialization.success'
2922
- | 'split'
2923
- | 'delete'
2924
- | 'select'
2925
- | 'annotation.add'
2926
- | 'annotation.remove'
2927
- | 'block.set'
2928
- | 'block.unset'
2929
- | 'decorator.add'
2930
- | 'decorator.remove'
2931
- | 'delete.backward'
2932
- | 'delete.block'
2933
- | 'delete.forward'
2934
- | 'history.redo'
2935
- | 'history.undo'
2936
- | 'insert.inline object'
2937
- | 'insert.block'
2938
- | 'insert.span'
2939
- | 'insert.text'
2940
- | 'move.backward'
2941
- | 'move.block'
2942
- | 'move.forward'
2943
- | 'annotation.toggle'
2944
- | 'decorator.toggle'
2945
- | 'delete.text'
2946
- | 'insert.blocks'
2947
- | 'insert.break'
2948
- | 'insert.soft break'
2949
- | 'list item.add'
2950
- | 'list item.remove'
2951
- | 'list item.toggle'
2952
- | 'move.block down'
2953
- | 'move.block up'
2954
- | 'select.previous block'
2955
- | 'select.next block'
2956
- | 'style.add'
2957
- | 'style.remove'
2958
- | 'style.toggle',
2959
- 'insert.break'
2960
- >
2961
- }
2962
- | {
2963
- type: StrictExtract_2<
2964
- | 'serialize'
2965
- | 'serialization.failure'
2966
- | 'serialization.success'
2967
- | 'deserialize'
2968
- | 'deserialization.failure'
2969
- | 'deserialization.success'
2970
- | 'split'
2971
- | 'delete'
2972
- | 'select'
2973
- | 'annotation.add'
2974
- | 'annotation.remove'
2975
- | 'block.set'
2976
- | 'block.unset'
2977
- | 'decorator.add'
2978
- | 'decorator.remove'
2979
- | 'delete.backward'
2980
- | 'delete.block'
2981
- | 'delete.forward'
2982
- | 'history.redo'
2983
- | 'history.undo'
2984
- | 'insert.inline object'
2985
- | 'insert.block'
2986
- | 'insert.span'
2987
- | 'insert.text'
2988
- | 'move.backward'
2989
- | 'move.block'
2990
- | 'move.forward'
2991
- | 'annotation.toggle'
2992
- | 'decorator.toggle'
2993
- | 'delete.text'
2994
- | 'insert.blocks'
2995
- | 'insert.break'
2996
- | 'insert.soft break'
2997
- | 'list item.add'
2998
- | 'list item.remove'
2999
- | 'list item.toggle'
3000
- | 'move.block down'
3001
- | 'move.block up'
3002
- | 'select.previous block'
3003
- | 'select.next block'
3004
- | 'style.add'
3005
- | 'style.remove'
3006
- | 'style.toggle',
3007
- 'insert.soft break'
3008
- >
3009
- }
3010
- | {
3011
- type: StrictExtract_2<
3012
- | 'serialize'
3013
- | 'serialization.failure'
3014
- | 'serialization.success'
3015
- | 'deserialize'
3016
- | 'deserialization.failure'
3017
- | 'deserialization.success'
3018
- | 'split'
3019
- | 'delete'
3020
- | 'select'
3021
- | 'annotation.add'
3022
- | 'annotation.remove'
3023
- | 'block.set'
3024
- | 'block.unset'
3025
- | 'decorator.add'
3026
- | 'decorator.remove'
3027
- | 'delete.backward'
3028
- | 'delete.block'
3029
- | 'delete.forward'
3030
- | 'history.redo'
3031
- | 'history.undo'
3032
- | 'insert.inline object'
3033
- | 'insert.block'
3034
- | 'insert.span'
3035
- | 'insert.text'
3036
- | 'move.backward'
3037
- | 'move.block'
3038
- | 'move.forward'
3039
- | 'annotation.toggle'
3040
- | 'decorator.toggle'
3041
- | 'delete.text'
3042
- | 'insert.blocks'
3043
- | 'insert.break'
3044
- | 'insert.soft break'
3045
- | 'list item.add'
3046
- | 'list item.remove'
3047
- | 'list item.toggle'
3048
- | 'move.block down'
3049
- | 'move.block up'
3050
- | 'select.previous block'
3051
- | 'select.next block'
3052
- | 'style.add'
3053
- | 'style.remove'
3054
- | 'style.toggle',
3055
- 'list item.add'
3056
- >
3057
- listItem: string
3058
- }
3059
- | {
3060
- type: StrictExtract_2<
3061
- | 'serialize'
3062
- | 'serialization.failure'
3063
- | 'serialization.success'
3064
- | 'deserialize'
3065
- | 'deserialization.failure'
3066
- | 'deserialization.success'
3067
- | 'split'
3068
- | 'delete'
3069
- | 'select'
3070
- | 'annotation.add'
3071
- | 'annotation.remove'
3072
- | 'block.set'
3073
- | 'block.unset'
3074
- | 'decorator.add'
3075
- | 'decorator.remove'
3076
- | 'delete.backward'
3077
- | 'delete.block'
3078
- | 'delete.forward'
3079
- | 'history.redo'
3080
- | 'history.undo'
3081
- | 'insert.inline object'
3082
- | 'insert.block'
3083
- | 'insert.span'
3084
- | 'insert.text'
3085
- | 'move.backward'
3086
- | 'move.block'
3087
- | 'move.forward'
3088
- | 'annotation.toggle'
3089
- | 'decorator.toggle'
3090
- | 'delete.text'
3091
- | 'insert.blocks'
3092
- | 'insert.break'
3093
- | 'insert.soft break'
3094
- | 'list item.add'
3095
- | 'list item.remove'
3096
- | 'list item.toggle'
3097
- | 'move.block down'
3098
- | 'move.block up'
3099
- | 'select.previous block'
3100
- | 'select.next block'
3101
- | 'style.add'
3102
- | 'style.remove'
3103
- | 'style.toggle',
3104
- 'list item.remove'
3105
- >
3106
- listItem: string
3107
- }
3108
- | {
3109
- type: StrictExtract_2<
3110
- | 'serialize'
3111
- | 'serialization.failure'
3112
- | 'serialization.success'
3113
- | 'deserialize'
3114
- | 'deserialization.failure'
3115
- | 'deserialization.success'
3116
- | 'split'
3117
- | 'delete'
3118
- | 'select'
3119
- | 'annotation.add'
3120
- | 'annotation.remove'
3121
- | 'block.set'
3122
- | 'block.unset'
3123
- | 'decorator.add'
3124
- | 'decorator.remove'
3125
- | 'delete.backward'
3126
- | 'delete.block'
3127
- | 'delete.forward'
3128
- | 'history.redo'
3129
- | 'history.undo'
3130
- | 'insert.inline object'
3131
- | 'insert.block'
3132
- | 'insert.span'
3133
- | 'insert.text'
3134
- | 'move.backward'
3135
- | 'move.block'
3136
- | 'move.forward'
3137
- | 'annotation.toggle'
3138
- | 'decorator.toggle'
3139
- | 'delete.text'
3140
- | 'insert.blocks'
3141
- | 'insert.break'
3142
- | 'insert.soft break'
3143
- | 'list item.add'
3144
- | 'list item.remove'
3145
- | 'list item.toggle'
3146
- | 'move.block down'
3147
- | 'move.block up'
3148
- | 'select.previous block'
3149
- | 'select.next block'
3150
- | 'style.add'
3151
- | 'style.remove'
3152
- | 'style.toggle',
3153
- 'list item.toggle'
3154
- >
3155
- listItem: string
3156
- }
3157
- | {
3158
- type: StrictExtract_2<
3159
- | 'serialize'
3160
- | 'serialization.failure'
3161
- | 'serialization.success'
3162
- | 'deserialize'
3163
- | 'deserialization.failure'
3164
- | 'deserialization.success'
3165
- | 'split'
3166
- | 'delete'
3167
- | 'select'
3168
- | 'annotation.add'
3169
- | 'annotation.remove'
3170
- | 'block.set'
3171
- | 'block.unset'
3172
- | 'decorator.add'
3173
- | 'decorator.remove'
3174
- | 'delete.backward'
3175
- | 'delete.block'
3176
- | 'delete.forward'
3177
- | 'history.redo'
3178
- | 'history.undo'
3179
- | 'insert.inline object'
3180
- | 'insert.block'
3181
- | 'insert.span'
3182
- | 'insert.text'
3183
- | 'move.backward'
3184
- | 'move.block'
3185
- | 'move.forward'
3186
- | 'annotation.toggle'
3187
- | 'decorator.toggle'
3188
- | 'delete.text'
3189
- | 'insert.blocks'
3190
- | 'insert.break'
3191
- | 'insert.soft break'
3192
- | 'list item.add'
3193
- | 'list item.remove'
3194
- | 'list item.toggle'
3195
- | 'move.block down'
3196
- | 'move.block up'
3197
- | 'select.previous block'
3198
- | 'select.next block'
3199
- | 'style.add'
3200
- | 'style.remove'
3201
- | 'style.toggle',
3202
- 'move.block down'
3203
- >
3204
- at: [KeyedSegment]
3205
- }
3206
- | {
3207
- type: StrictExtract_2<
3208
- | 'serialize'
3209
- | 'serialization.failure'
3210
- | 'serialization.success'
3211
- | 'deserialize'
3212
- | 'deserialization.failure'
3213
- | 'deserialization.success'
3214
- | 'split'
3215
- | 'delete'
3216
- | 'select'
3217
- | 'annotation.add'
3218
- | 'annotation.remove'
3219
- | 'block.set'
3220
- | 'block.unset'
3221
- | 'decorator.add'
3222
- | 'decorator.remove'
3223
- | 'delete.backward'
3224
- | 'delete.block'
3225
- | 'delete.forward'
3226
- | 'history.redo'
3227
- | 'history.undo'
3228
- | 'insert.inline object'
3229
- | 'insert.block'
3230
- | 'insert.span'
3231
- | 'insert.text'
3232
- | 'move.backward'
3233
- | 'move.block'
3234
- | 'move.forward'
3235
- | 'annotation.toggle'
3236
- | 'decorator.toggle'
3237
- | 'delete.text'
3238
- | 'insert.blocks'
3239
- | 'insert.break'
3240
- | 'insert.soft break'
3241
- | 'list item.add'
3242
- | 'list item.remove'
3243
- | 'list item.toggle'
3244
- | 'move.block down'
3245
- | 'move.block up'
3246
- | 'select.previous block'
3247
- | 'select.next block'
3248
- | 'style.add'
3249
- | 'style.remove'
3250
- | 'style.toggle',
3251
- 'move.block up'
3252
- >
3253
- at: [KeyedSegment]
3254
- }
3255
- | {
3256
- type: StrictExtract_2<
3257
- | 'serialize'
3258
- | 'serialization.failure'
3259
- | 'serialization.success'
3260
- | 'deserialize'
3261
- | 'deserialization.failure'
3262
- | 'deserialization.success'
3263
- | 'split'
3264
- | 'delete'
3265
- | 'select'
3266
- | 'annotation.add'
3267
- | 'annotation.remove'
3268
- | 'block.set'
3269
- | 'block.unset'
3270
- | 'decorator.add'
3271
- | 'decorator.remove'
3272
- | 'delete.backward'
3273
- | 'delete.block'
3274
- | 'delete.forward'
3275
- | 'history.redo'
3276
- | 'history.undo'
3277
- | 'insert.inline object'
3278
- | 'insert.block'
3279
- | 'insert.span'
3280
- | 'insert.text'
3281
- | 'move.backward'
3282
- | 'move.block'
3283
- | 'move.forward'
3284
- | 'annotation.toggle'
3285
- | 'decorator.toggle'
3286
- | 'delete.text'
3287
- | 'insert.blocks'
3288
- | 'insert.break'
3289
- | 'insert.soft break'
3290
- | 'list item.add'
3291
- | 'list item.remove'
3292
- | 'list item.toggle'
3293
- | 'move.block down'
3294
- | 'move.block up'
3295
- | 'select.previous block'
3296
- | 'select.next block'
3297
- | 'style.add'
3298
- | 'style.remove'
3299
- | 'style.toggle',
3300
- 'select.previous block'
3301
- >
3302
- select?: 'start' | 'end'
3303
- }
3304
- | {
3305
- type: StrictExtract_2<
3306
- | 'serialize'
3307
- | 'serialization.failure'
3308
- | 'serialization.success'
3309
- | 'deserialize'
3310
- | 'deserialization.failure'
3311
- | 'deserialization.success'
3312
- | 'split'
3313
- | 'delete'
3314
- | 'select'
3315
- | 'annotation.add'
3316
- | 'annotation.remove'
3317
- | 'block.set'
3318
- | 'block.unset'
3319
- | 'decorator.add'
3320
- | 'decorator.remove'
3321
- | 'delete.backward'
3322
- | 'delete.block'
3323
- | 'delete.forward'
3324
- | 'history.redo'
3325
- | 'history.undo'
3326
- | 'insert.inline object'
3327
- | 'insert.block'
3328
- | 'insert.span'
3329
- | 'insert.text'
3330
- | 'move.backward'
3331
- | 'move.block'
3332
- | 'move.forward'
3333
- | 'annotation.toggle'
3334
- | 'decorator.toggle'
3335
- | 'delete.text'
3336
- | 'insert.blocks'
3337
- | 'insert.break'
3338
- | 'insert.soft break'
3339
- | 'list item.add'
3340
- | 'list item.remove'
3341
- | 'list item.toggle'
3342
- | 'move.block down'
3343
- | 'move.block up'
3344
- | 'select.previous block'
3345
- | 'select.next block'
3346
- | 'style.add'
3347
- | 'style.remove'
3348
- | 'style.toggle',
3349
- 'select.next block'
3350
- >
3351
- select?: 'start' | 'end'
3352
- }
3353
- | {
3354
- type: StrictExtract_2<
3355
- | 'serialize'
3356
- | 'serialization.failure'
3357
- | 'serialization.success'
3358
- | 'deserialize'
3359
- | 'deserialization.failure'
3360
- | 'deserialization.success'
3361
- | 'split'
3362
- | 'delete'
3363
- | 'select'
3364
- | 'annotation.add'
3365
- | 'annotation.remove'
3366
- | 'block.set'
3367
- | 'block.unset'
3368
- | 'decorator.add'
3369
- | 'decorator.remove'
3370
- | 'delete.backward'
3371
- | 'delete.block'
3372
- | 'delete.forward'
3373
- | 'history.redo'
3374
- | 'history.undo'
3375
- | 'insert.inline object'
3376
- | 'insert.block'
3377
- | 'insert.span'
3378
- | 'insert.text'
3379
- | 'move.backward'
3380
- | 'move.block'
3381
- | 'move.forward'
3382
- | 'annotation.toggle'
3383
- | 'decorator.toggle'
3384
- | 'delete.text'
3385
- | 'insert.blocks'
3386
- | 'insert.break'
3387
- | 'insert.soft break'
3388
- | 'list item.add'
3389
- | 'list item.remove'
3390
- | 'list item.toggle'
3391
- | 'move.block down'
3392
- | 'move.block up'
3393
- | 'select.previous block'
3394
- | 'select.next block'
3395
- | 'style.add'
3396
- | 'style.remove'
3397
- | 'style.toggle',
3398
- 'split'
3399
- >
3400
- }
3401
- | {
3402
- type: StrictExtract_2<
3403
- | 'serialize'
3404
- | 'serialization.failure'
3405
- | 'serialization.success'
3406
- | 'deserialize'
3407
- | 'deserialization.failure'
3408
- | 'deserialization.success'
3409
- | 'split'
3410
- | 'delete'
3411
- | 'select'
3412
- | 'annotation.add'
3413
- | 'annotation.remove'
3414
- | 'block.set'
3415
- | 'block.unset'
3416
- | 'decorator.add'
3417
- | 'decorator.remove'
3418
- | 'delete.backward'
3419
- | 'delete.block'
3420
- | 'delete.forward'
3421
- | 'history.redo'
3422
- | 'history.undo'
3423
- | 'insert.inline object'
3424
- | 'insert.block'
3425
- | 'insert.span'
3426
- | 'insert.text'
3427
- | 'move.backward'
3428
- | 'move.block'
3429
- | 'move.forward'
3430
- | 'annotation.toggle'
3431
- | 'decorator.toggle'
3432
- | 'delete.text'
3433
- | 'insert.blocks'
3434
- | 'insert.break'
3435
- | 'insert.soft break'
3436
- | 'list item.add'
3437
- | 'list item.remove'
3438
- | 'list item.toggle'
3439
- | 'move.block down'
3440
- | 'move.block up'
3441
- | 'select.previous block'
3442
- | 'select.next block'
3443
- | 'style.add'
3444
- | 'style.remove'
3445
- | 'style.toggle',
3446
- 'style.add'
3447
- >
3448
- style: string
3449
- }
3450
- | {
3451
- type: StrictExtract_2<
3452
- | 'serialize'
3453
- | 'serialization.failure'
3454
- | 'serialization.success'
3455
- | 'deserialize'
3456
- | 'deserialization.failure'
3457
- | 'deserialization.success'
3458
- | 'split'
3459
- | 'delete'
3460
- | 'select'
3461
- | 'annotation.add'
3462
- | 'annotation.remove'
3463
- | 'block.set'
3464
- | 'block.unset'
3465
- | 'decorator.add'
3466
- | 'decorator.remove'
3467
- | 'delete.backward'
3468
- | 'delete.block'
3469
- | 'delete.forward'
3470
- | 'history.redo'
3471
- | 'history.undo'
3472
- | 'insert.inline object'
3473
- | 'insert.block'
3474
- | 'insert.span'
3475
- | 'insert.text'
3476
- | 'move.backward'
3477
- | 'move.block'
3478
- | 'move.forward'
3479
- | 'annotation.toggle'
3480
- | 'decorator.toggle'
3481
- | 'delete.text'
3482
- | 'insert.blocks'
3483
- | 'insert.break'
3484
- | 'insert.soft break'
3485
- | 'list item.add'
3486
- | 'list item.remove'
3487
- | 'list item.toggle'
3488
- | 'move.block down'
3489
- | 'move.block up'
3490
- | 'select.previous block'
3491
- | 'select.next block'
3492
- | 'style.add'
3493
- | 'style.remove'
3494
- | 'style.toggle',
3495
- 'style.remove'
3496
- >
3497
- style: string
3498
- }
3499
- | {
3500
- type: StrictExtract_2<
3501
- | 'serialize'
3502
- | 'serialization.failure'
3503
- | 'serialization.success'
3504
- | 'deserialize'
3505
- | 'deserialization.failure'
3506
- | 'deserialization.success'
3507
- | 'split'
3508
- | 'delete'
3509
- | 'select'
3510
- | 'annotation.add'
3511
- | 'annotation.remove'
3512
- | 'block.set'
3513
- | 'block.unset'
3514
- | 'decorator.add'
3515
- | 'decorator.remove'
3516
- | 'delete.backward'
3517
- | 'delete.block'
3518
- | 'delete.forward'
3519
- | 'history.redo'
3520
- | 'history.undo'
3521
- | 'insert.inline object'
3522
- | 'insert.block'
3523
- | 'insert.span'
3524
- | 'insert.text'
3525
- | 'move.backward'
3526
- | 'move.block'
3527
- | 'move.forward'
3528
- | 'annotation.toggle'
3529
- | 'decorator.toggle'
3530
- | 'delete.text'
3531
- | 'insert.blocks'
3532
- | 'insert.break'
3533
- | 'insert.soft break'
3534
- | 'list item.add'
3535
- | 'list item.remove'
3536
- | 'list item.toggle'
3537
- | 'move.block down'
3538
- | 'move.block up'
3539
- | 'select.previous block'
3540
- | 'select.next block'
3541
- | 'style.add'
3542
- | 'style.remove'
3543
- | 'style.toggle',
3544
- 'style.toggle'
3545
- >
3546
- style: string
3547
- }
3548
- | {
3549
- type: StrictExtract_2<
3550
- | 'clipboard.copy'
3551
- | 'clipboard.cut'
3552
- | 'drag.dragstart'
3553
- | 'clipboard.paste'
3554
- | 'drag.drag'
3555
- | 'drag.dragend'
3556
- | 'drag.dragenter'
3557
- | 'drag.dragover'
3558
- | 'drag.dragleave'
3559
- | 'drag.drop'
3560
- | 'input.*'
3561
- | 'keyboard.keydown'
3562
- | 'keyboard.keyup'
3563
- | 'mouse.click',
3564
- 'clipboard.copy'
3565
- >
3566
- originEvent: {
3567
- dataTransfer: DataTransfer
3568
- }
3569
- position: Pick<EventPosition, 'selection'>
3570
- }
3571
- | {
3572
- type: StrictExtract_2<
3573
- | 'clipboard.copy'
3574
- | 'clipboard.cut'
3575
- | 'drag.dragstart'
3576
- | 'clipboard.paste'
3577
- | 'drag.drag'
3578
- | 'drag.dragend'
3579
- | 'drag.dragenter'
3580
- | 'drag.dragover'
3581
- | 'drag.dragleave'
3582
- | 'drag.drop'
3583
- | 'input.*'
3584
- | 'keyboard.keydown'
3585
- | 'keyboard.keyup'
3586
- | 'mouse.click',
3587
- 'clipboard.cut'
3588
- >
3589
- originEvent: {
3590
- dataTransfer: DataTransfer
3591
- }
3592
- position: Pick<EventPosition, 'selection'>
3593
- }
3594
- | {
3595
- type: StrictExtract_2<
3596
- | 'clipboard.copy'
3597
- | 'clipboard.cut'
3598
- | 'drag.dragstart'
3599
- | 'clipboard.paste'
3600
- | 'drag.drag'
3601
- | 'drag.dragend'
3602
- | 'drag.dragenter'
3603
- | 'drag.dragover'
3604
- | 'drag.dragleave'
3605
- | 'drag.drop'
3606
- | 'input.*'
3607
- | 'keyboard.keydown'
3608
- | 'keyboard.keyup'
3609
- | 'mouse.click',
3610
- 'clipboard.paste'
3611
- >
3612
- originEvent: {
3613
- dataTransfer: DataTransfer
3614
- }
3615
- position: Pick<EventPosition, 'selection'>
3616
- }
3617
- | {
3618
- type: StrictExtract_2<
3619
- | 'clipboard.copy'
3620
- | 'clipboard.cut'
3621
- | 'drag.dragstart'
3622
- | 'clipboard.paste'
3623
- | 'drag.drag'
3624
- | 'drag.dragend'
3625
- | 'drag.dragenter'
3626
- | 'drag.dragover'
3627
- | 'drag.dragleave'
3628
- | 'drag.drop'
3629
- | 'input.*'
3630
- | 'keyboard.keydown'
3631
- | 'keyboard.keyup'
3632
- | 'mouse.click',
3633
- 'drag.dragstart'
3634
- >
3635
- originEvent: {
3636
- dataTransfer: DataTransfer
3637
- }
3638
- position: Pick<EventPosition, 'selection'>
3639
- }
3640
- | {
3641
- type: StrictExtract_2<
3642
- | 'clipboard.copy'
3643
- | 'clipboard.cut'
3644
- | 'drag.dragstart'
3645
- | 'clipboard.paste'
3646
- | 'drag.drag'
3647
- | 'drag.dragend'
3648
- | 'drag.dragenter'
3649
- | 'drag.dragover'
3650
- | 'drag.dragleave'
3651
- | 'drag.drop'
3652
- | 'input.*'
3653
- | 'keyboard.keydown'
3654
- | 'keyboard.keyup'
3655
- | 'mouse.click',
3656
- 'drag.drag'
3657
- >
3658
- originEvent: {
3659
- dataTransfer: DataTransfer
3660
- }
3661
- }
3662
- | {
3663
- type: StrictExtract_2<
3664
- | 'clipboard.copy'
3665
- | 'clipboard.cut'
3666
- | 'drag.dragstart'
3667
- | 'clipboard.paste'
3668
- | 'drag.drag'
3669
- | 'drag.dragend'
3670
- | 'drag.dragenter'
3671
- | 'drag.dragover'
3672
- | 'drag.dragleave'
3673
- | 'drag.drop'
3674
- | 'input.*'
3675
- | 'keyboard.keydown'
3676
- | 'keyboard.keyup'
3677
- | 'mouse.click',
3678
- 'drag.dragend'
3679
- >
3680
- originEvent: {
3681
- dataTransfer: DataTransfer
3682
- }
3683
- }
3684
- | {
3685
- type: StrictExtract_2<
3686
- | 'clipboard.copy'
3687
- | 'clipboard.cut'
3688
- | 'drag.dragstart'
3689
- | 'clipboard.paste'
3690
- | 'drag.drag'
3691
- | 'drag.dragend'
3692
- | 'drag.dragenter'
3693
- | 'drag.dragover'
3694
- | 'drag.dragleave'
3695
- | 'drag.drop'
3696
- | 'input.*'
3697
- | 'keyboard.keydown'
3698
- | 'keyboard.keyup'
3699
- | 'mouse.click',
3700
- 'drag.dragenter'
3701
- >
3702
- originEvent: {
3703
- dataTransfer: DataTransfer
3704
- }
3705
- position: EventPosition
3706
- }
3707
- | {
3708
- type: StrictExtract_2<
3709
- | 'clipboard.copy'
3710
- | 'clipboard.cut'
3711
- | 'drag.dragstart'
3712
- | 'clipboard.paste'
3713
- | 'drag.drag'
3714
- | 'drag.dragend'
3715
- | 'drag.dragenter'
3716
- | 'drag.dragover'
3717
- | 'drag.dragleave'
3718
- | 'drag.drop'
3719
- | 'input.*'
3720
- | 'keyboard.keydown'
3721
- | 'keyboard.keyup'
3722
- | 'mouse.click',
3723
- 'drag.dragover'
3724
- >
3725
- originEvent: {
3726
- dataTransfer: DataTransfer
3727
- }
3728
- position: EventPosition
3729
- }
3730
- | {
3731
- type: StrictExtract_2<
3732
- | 'clipboard.copy'
3733
- | 'clipboard.cut'
3734
- | 'drag.dragstart'
3735
- | 'clipboard.paste'
3736
- | 'drag.drag'
3737
- | 'drag.dragend'
3738
- | 'drag.dragenter'
3739
- | 'drag.dragover'
3740
- | 'drag.dragleave'
3741
- | 'drag.drop'
3742
- | 'input.*'
3743
- | 'keyboard.keydown'
3744
- | 'keyboard.keyup'
3745
- | 'mouse.click',
3746
- 'drag.drop'
3747
- >
3748
- originEvent: {
3749
- dataTransfer: DataTransfer
3750
- }
3751
- position: EventPosition
3752
- }
3753
- | {
3754
- type: StrictExtract_2<
3755
- | 'clipboard.copy'
3756
- | 'clipboard.cut'
3757
- | 'drag.dragstart'
3758
- | 'clipboard.paste'
3759
- | 'drag.drag'
3760
- | 'drag.dragend'
3761
- | 'drag.dragenter'
3762
- | 'drag.dragover'
3763
- | 'drag.dragleave'
3764
- | 'drag.drop'
3765
- | 'input.*'
3766
- | 'keyboard.keydown'
3767
- | 'keyboard.keyup'
3768
- | 'mouse.click',
3769
- 'drag.dragleave'
3770
- >
3771
- originEvent: {
3772
- dataTransfer: DataTransfer
3773
- }
3774
- }
3775
- | InputBehaviorEvent_2
3776
- | {
3777
- type: StrictExtract_2<
3778
- | 'clipboard.copy'
3779
- | 'clipboard.cut'
3780
- | 'drag.dragstart'
3781
- | 'clipboard.paste'
3782
- | 'drag.drag'
3783
- | 'drag.dragend'
3784
- | 'drag.dragenter'
3785
- | 'drag.dragover'
3786
- | 'drag.dragleave'
3787
- | 'drag.drop'
3788
- | 'input.*'
3789
- | 'keyboard.keydown'
3790
- | 'keyboard.keyup'
3791
- | 'mouse.click',
3792
- 'keyboard.keydown'
3793
- >
3794
- originEvent: Pick<
3795
- KeyboardEvent,
3796
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
3797
- >
3798
- }
3799
- | {
3800
- type: StrictExtract_2<
3801
- | 'clipboard.copy'
3802
- | 'clipboard.cut'
3803
- | 'drag.dragstart'
3804
- | 'clipboard.paste'
3805
- | 'drag.drag'
3806
- | 'drag.dragend'
3807
- | 'drag.dragenter'
3808
- | 'drag.dragover'
3809
- | 'drag.dragleave'
3810
- | 'drag.drop'
3811
- | 'input.*'
3812
- | 'keyboard.keydown'
3813
- | 'keyboard.keyup'
3814
- | 'mouse.click',
3815
- 'keyboard.keyup'
3816
- >
3817
- originEvent: Pick<
3818
- KeyboardEvent,
3819
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
3820
- >
3821
- }
3822
- | MouseBehaviorEvent_2
3823
- | CustomBehaviorEvent_2<
3824
- Record<string, unknown>,
3825
- string,
3826
- `custom.${string}`
3827
- >
3828
- >
3829
- >
1275
+ behaviors: Set<never>
3830
1276
  converters: Set<Converter>
3831
1277
  getLegacySchema: () => PortableTextMemberSchemaTypes
3832
1278
  keyGenerator: () => string
@@ -3842,7 +1288,7 @@ declare const editorMachine: StateMachine<
3842
1288
  readonly 'notify.blurred': {
3843
1289
  readonly actions: ActionFunction<
3844
1290
  {
3845
- behaviors: Set<Behavior>
1291
+ behaviors: Set<BehaviorConfig>
3846
1292
  converters: Set<Converter>
3847
1293
  getLegacySchema: () => PortableTextMemberSchemaTypes
3848
1294
  keyGenerator: () => string
@@ -3866,14 +1312,6 @@ declare const editorMachine: StateMachine<
3866
1312
  | InternalPatchEvent
3867
1313
  | MutationEvent
3868
1314
  | PatchesEvent
3869
- | {
3870
- type: 'add behavior'
3871
- behavior: Behavior
3872
- }
3873
- | {
3874
- type: 'remove behavior'
3875
- behavior: Behavior
3876
- }
3877
1315
  | {
3878
1316
  type: 'update readOnly'
3879
1317
  readOnly: boolean
@@ -3894,6 +1332,14 @@ declare const editorMachine: StateMachine<
3894
1332
  type: 'update maxBlocks'
3895
1333
  maxBlocks: number | undefined
3896
1334
  }
1335
+ | {
1336
+ type: 'add behavior'
1337
+ behaviorConfig: BehaviorConfig
1338
+ }
1339
+ | {
1340
+ type: 'remove behavior'
1341
+ behaviorConfig: BehaviorConfig
1342
+ }
3897
1343
  | {
3898
1344
  type: 'blur'
3899
1345
  editor: PortableTextSlateEditor
@@ -4046,7 +1492,7 @@ declare const editorMachine: StateMachine<
4046
1492
  readonly 'notify.done loading': {
4047
1493
  readonly actions: ActionFunction<
4048
1494
  {
4049
- behaviors: Set<Behavior>
1495
+ behaviors: Set<BehaviorConfig>
4050
1496
  converters: Set<Converter>
4051
1497
  getLegacySchema: () => PortableTextMemberSchemaTypes
4052
1498
  keyGenerator: () => string
@@ -4069,14 +1515,6 @@ declare const editorMachine: StateMachine<
4069
1515
  | InternalPatchEvent
4070
1516
  | MutationEvent
4071
1517
  | PatchesEvent
4072
- | {
4073
- type: 'add behavior'
4074
- behavior: Behavior
4075
- }
4076
- | {
4077
- type: 'remove behavior'
4078
- behavior: Behavior
4079
- }
4080
1518
  | {
4081
1519
  type: 'update readOnly'
4082
1520
  readOnly: boolean
@@ -4097,6 +1535,14 @@ declare const editorMachine: StateMachine<
4097
1535
  type: 'update maxBlocks'
4098
1536
  maxBlocks: number | undefined
4099
1537
  }
1538
+ | {
1539
+ type: 'add behavior'
1540
+ behaviorConfig: BehaviorConfig
1541
+ }
1542
+ | {
1543
+ type: 'remove behavior'
1544
+ behaviorConfig: BehaviorConfig
1545
+ }
4100
1546
  | {
4101
1547
  type: 'blur'
4102
1548
  editor: PortableTextSlateEditor
@@ -4249,7 +1695,7 @@ declare const editorMachine: StateMachine<
4249
1695
  readonly 'notify.error': {
4250
1696
  readonly actions: ActionFunction<
4251
1697
  {
4252
- behaviors: Set<Behavior>
1698
+ behaviors: Set<BehaviorConfig>
4253
1699
  converters: Set<Converter>
4254
1700
  getLegacySchema: () => PortableTextMemberSchemaTypes
4255
1701
  keyGenerator: () => string
@@ -4275,14 +1721,6 @@ declare const editorMachine: StateMachine<
4275
1721
  | InternalPatchEvent
4276
1722
  | MutationEvent
4277
1723
  | PatchesEvent
4278
- | {
4279
- type: 'add behavior'
4280
- behavior: Behavior
4281
- }
4282
- | {
4283
- type: 'remove behavior'
4284
- behavior: Behavior
4285
- }
4286
1724
  | {
4287
1725
  type: 'update readOnly'
4288
1726
  readOnly: boolean
@@ -4303,6 +1741,14 @@ declare const editorMachine: StateMachine<
4303
1741
  type: 'update maxBlocks'
4304
1742
  maxBlocks: number | undefined
4305
1743
  }
1744
+ | {
1745
+ type: 'add behavior'
1746
+ behaviorConfig: BehaviorConfig
1747
+ }
1748
+ | {
1749
+ type: 'remove behavior'
1750
+ behaviorConfig: BehaviorConfig
1751
+ }
4306
1752
  | {
4307
1753
  type: 'blur'
4308
1754
  editor: PortableTextSlateEditor
@@ -4455,7 +1901,7 @@ declare const editorMachine: StateMachine<
4455
1901
  readonly 'notify.invalid value': {
4456
1902
  readonly actions: ActionFunction<
4457
1903
  {
4458
- behaviors: Set<Behavior>
1904
+ behaviors: Set<BehaviorConfig>
4459
1905
  converters: Set<Converter>
4460
1906
  getLegacySchema: () => PortableTextMemberSchemaTypes
4461
1907
  keyGenerator: () => string
@@ -4480,14 +1926,6 @@ declare const editorMachine: StateMachine<
4480
1926
  | InternalPatchEvent
4481
1927
  | MutationEvent
4482
1928
  | PatchesEvent
4483
- | {
4484
- type: 'add behavior'
4485
- behavior: Behavior
4486
- }
4487
- | {
4488
- type: 'remove behavior'
4489
- behavior: Behavior
4490
- }
4491
1929
  | {
4492
1930
  type: 'update readOnly'
4493
1931
  readOnly: boolean
@@ -4508,6 +1946,14 @@ declare const editorMachine: StateMachine<
4508
1946
  type: 'update maxBlocks'
4509
1947
  maxBlocks: number | undefined
4510
1948
  }
1949
+ | {
1950
+ type: 'add behavior'
1951
+ behaviorConfig: BehaviorConfig
1952
+ }
1953
+ | {
1954
+ type: 'remove behavior'
1955
+ behaviorConfig: BehaviorConfig
1956
+ }
4511
1957
  | {
4512
1958
  type: 'blur'
4513
1959
  editor: PortableTextSlateEditor
@@ -4660,7 +2106,7 @@ declare const editorMachine: StateMachine<
4660
2106
  readonly 'notify.focused': {
4661
2107
  readonly actions: ActionFunction<
4662
2108
  {
4663
- behaviors: Set<Behavior>
2109
+ behaviors: Set<BehaviorConfig>
4664
2110
  converters: Set<Converter>
4665
2111
  getLegacySchema: () => PortableTextMemberSchemaTypes
4666
2112
  keyGenerator: () => string
@@ -4684,14 +2130,6 @@ declare const editorMachine: StateMachine<
4684
2130
  | InternalPatchEvent
4685
2131
  | MutationEvent
4686
2132
  | PatchesEvent
4687
- | {
4688
- type: 'add behavior'
4689
- behavior: Behavior
4690
- }
4691
- | {
4692
- type: 'remove behavior'
4693
- behavior: Behavior
4694
- }
4695
2133
  | {
4696
2134
  type: 'update readOnly'
4697
2135
  readOnly: boolean
@@ -4712,6 +2150,14 @@ declare const editorMachine: StateMachine<
4712
2150
  type: 'update maxBlocks'
4713
2151
  maxBlocks: number | undefined
4714
2152
  }
2153
+ | {
2154
+ type: 'add behavior'
2155
+ behaviorConfig: BehaviorConfig
2156
+ }
2157
+ | {
2158
+ type: 'remove behavior'
2159
+ behaviorConfig: BehaviorConfig
2160
+ }
4715
2161
  | {
4716
2162
  type: 'blur'
4717
2163
  editor: PortableTextSlateEditor
@@ -4865,7 +2311,7 @@ declare const editorMachine: StateMachine<
4865
2311
  readonly actions: readonly [
4866
2312
  ActionFunction<
4867
2313
  {
4868
- behaviors: Set<Behavior>
2314
+ behaviors: Set<BehaviorConfig>
4869
2315
  converters: Set<Converter>
4870
2316
  getLegacySchema: () => PortableTextMemberSchemaTypes
4871
2317
  keyGenerator: () => string
@@ -4889,14 +2335,6 @@ declare const editorMachine: StateMachine<
4889
2335
  | InternalPatchEvent
4890
2336
  | MutationEvent
4891
2337
  | PatchesEvent
4892
- | {
4893
- type: 'add behavior'
4894
- behavior: Behavior
4895
- }
4896
- | {
4897
- type: 'remove behavior'
4898
- behavior: Behavior
4899
- }
4900
2338
  | {
4901
2339
  type: 'update readOnly'
4902
2340
  readOnly: boolean
@@ -4917,6 +2355,14 @@ declare const editorMachine: StateMachine<
4917
2355
  type: 'update maxBlocks'
4918
2356
  maxBlocks: number | undefined
4919
2357
  }
2358
+ | {
2359
+ type: 'add behavior'
2360
+ behaviorConfig: BehaviorConfig
2361
+ }
2362
+ | {
2363
+ type: 'remove behavior'
2364
+ behaviorConfig: BehaviorConfig
2365
+ }
4920
2366
  | {
4921
2367
  type: 'blur'
4922
2368
  editor: PortableTextSlateEditor
@@ -5021,7 +2467,7 @@ declare const editorMachine: StateMachine<
5021
2467
  >,
5022
2468
  ActionFunction<
5023
2469
  {
5024
- behaviors: Set<Behavior>
2470
+ behaviors: Set<BehaviorConfig>
5025
2471
  converters: Set<Converter>
5026
2472
  getLegacySchema: () => PortableTextMemberSchemaTypes
5027
2473
  keyGenerator: () => string
@@ -5045,14 +2491,6 @@ declare const editorMachine: StateMachine<
5045
2491
  | InternalPatchEvent
5046
2492
  | MutationEvent
5047
2493
  | PatchesEvent
5048
- | {
5049
- type: 'add behavior'
5050
- behavior: Behavior
5051
- }
5052
- | {
5053
- type: 'remove behavior'
5054
- behavior: Behavior
5055
- }
5056
2494
  | {
5057
2495
  type: 'update readOnly'
5058
2496
  readOnly: boolean
@@ -5073,6 +2511,14 @@ declare const editorMachine: StateMachine<
5073
2511
  type: 'update maxBlocks'
5074
2512
  maxBlocks: number | undefined
5075
2513
  }
2514
+ | {
2515
+ type: 'add behavior'
2516
+ behaviorConfig: BehaviorConfig
2517
+ }
2518
+ | {
2519
+ type: 'remove behavior'
2520
+ behaviorConfig: BehaviorConfig
2521
+ }
5076
2522
  | {
5077
2523
  type: 'blur'
5078
2524
  editor: PortableTextSlateEditor
@@ -5226,7 +2672,7 @@ declare const editorMachine: StateMachine<
5226
2672
  readonly 'notify.unset': {
5227
2673
  readonly actions: ActionFunction<
5228
2674
  {
5229
- behaviors: Set<Behavior>
2675
+ behaviors: Set<BehaviorConfig>
5230
2676
  converters: Set<Converter>
5231
2677
  getLegacySchema: () => PortableTextMemberSchemaTypes
5232
2678
  keyGenerator: () => string
@@ -5250,14 +2696,6 @@ declare const editorMachine: StateMachine<
5250
2696
  | InternalPatchEvent
5251
2697
  | MutationEvent
5252
2698
  | PatchesEvent
5253
- | {
5254
- type: 'add behavior'
5255
- behavior: Behavior
5256
- }
5257
- | {
5258
- type: 'remove behavior'
5259
- behavior: Behavior
5260
- }
5261
2699
  | {
5262
2700
  type: 'update readOnly'
5263
2701
  readOnly: boolean
@@ -5278,6 +2716,14 @@ declare const editorMachine: StateMachine<
5278
2716
  type: 'update maxBlocks'
5279
2717
  maxBlocks: number | undefined
5280
2718
  }
2719
+ | {
2720
+ type: 'add behavior'
2721
+ behaviorConfig: BehaviorConfig
2722
+ }
2723
+ | {
2724
+ type: 'remove behavior'
2725
+ behaviorConfig: BehaviorConfig
2726
+ }
5281
2727
  | {
5282
2728
  type: 'blur'
5283
2729
  editor: PortableTextSlateEditor
@@ -5430,7 +2876,7 @@ declare const editorMachine: StateMachine<
5430
2876
  readonly 'notify.loading': {
5431
2877
  readonly actions: ActionFunction<
5432
2878
  {
5433
- behaviors: Set<Behavior>
2879
+ behaviors: Set<BehaviorConfig>
5434
2880
  converters: Set<Converter>
5435
2881
  getLegacySchema: () => PortableTextMemberSchemaTypes
5436
2882
  keyGenerator: () => string
@@ -5453,14 +2899,6 @@ declare const editorMachine: StateMachine<
5453
2899
  | InternalPatchEvent
5454
2900
  | MutationEvent
5455
2901
  | PatchesEvent
5456
- | {
5457
- type: 'add behavior'
5458
- behavior: Behavior
5459
- }
5460
- | {
5461
- type: 'remove behavior'
5462
- behavior: Behavior
5463
- }
5464
2902
  | {
5465
2903
  type: 'update readOnly'
5466
2904
  readOnly: boolean
@@ -5481,6 +2919,14 @@ declare const editorMachine: StateMachine<
5481
2919
  type: 'update maxBlocks'
5482
2920
  maxBlocks: number | undefined
5483
2921
  }
2922
+ | {
2923
+ type: 'add behavior'
2924
+ behaviorConfig: BehaviorConfig
2925
+ }
2926
+ | {
2927
+ type: 'remove behavior'
2928
+ behaviorConfig: BehaviorConfig
2929
+ }
5484
2930
  | {
5485
2931
  type: 'blur'
5486
2932
  editor: PortableTextSlateEditor
@@ -5633,7 +3079,7 @@ declare const editorMachine: StateMachine<
5633
3079
  readonly 'notify.value changed': {
5634
3080
  readonly actions: ActionFunction<
5635
3081
  {
5636
- behaviors: Set<Behavior>
3082
+ behaviors: Set<BehaviorConfig>
5637
3083
  converters: Set<Converter>
5638
3084
  getLegacySchema: () => PortableTextMemberSchemaTypes
5639
3085
  keyGenerator: () => string
@@ -5657,14 +3103,6 @@ declare const editorMachine: StateMachine<
5657
3103
  | InternalPatchEvent
5658
3104
  | MutationEvent
5659
3105
  | PatchesEvent
5660
- | {
5661
- type: 'add behavior'
5662
- behavior: Behavior
5663
- }
5664
- | {
5665
- type: 'remove behavior'
5666
- behavior: Behavior
5667
- }
5668
3106
  | {
5669
3107
  type: 'update readOnly'
5670
3108
  readOnly: boolean
@@ -5685,6 +3123,14 @@ declare const editorMachine: StateMachine<
5685
3123
  type: 'update maxBlocks'
5686
3124
  maxBlocks: number | undefined
5687
3125
  }
3126
+ | {
3127
+ type: 'add behavior'
3128
+ behaviorConfig: BehaviorConfig
3129
+ }
3130
+ | {
3131
+ type: 'remove behavior'
3132
+ behaviorConfig: BehaviorConfig
3133
+ }
5688
3134
  | {
5689
3135
  type: 'blur'
5690
3136
  editor: PortableTextSlateEditor
@@ -5843,7 +3289,7 @@ declare const editorMachine: StateMachine<
5843
3289
  readonly 'update key generator': {
5844
3290
  readonly actions: ActionFunction<
5845
3291
  {
5846
- behaviors: Set<Behavior>
3292
+ behaviors: Set<BehaviorConfig>
5847
3293
  converters: Set<Converter>
5848
3294
  getLegacySchema: () => PortableTextMemberSchemaTypes
5849
3295
  keyGenerator: () => string
@@ -5867,14 +3313,6 @@ declare const editorMachine: StateMachine<
5867
3313
  | InternalPatchEvent
5868
3314
  | MutationEvent
5869
3315
  | PatchesEvent
5870
- | {
5871
- type: 'add behavior'
5872
- behavior: Behavior
5873
- }
5874
- | {
5875
- type: 'remove behavior'
5876
- behavior: Behavior
5877
- }
5878
3316
  | {
5879
3317
  type: 'update readOnly'
5880
3318
  readOnly: boolean
@@ -5895,6 +3333,14 @@ declare const editorMachine: StateMachine<
5895
3333
  type: 'update maxBlocks'
5896
3334
  maxBlocks: number | undefined
5897
3335
  }
3336
+ | {
3337
+ type: 'add behavior'
3338
+ behaviorConfig: BehaviorConfig
3339
+ }
3340
+ | {
3341
+ type: 'remove behavior'
3342
+ behaviorConfig: BehaviorConfig
3343
+ }
5898
3344
  | {
5899
3345
  type: 'blur'
5900
3346
  editor: PortableTextSlateEditor
@@ -6004,7 +3450,7 @@ declare const editorMachine: StateMachine<
6004
3450
  readonly 'update value': {
6005
3451
  readonly actions: ActionFunction<
6006
3452
  {
6007
- behaviors: Set<Behavior>
3453
+ behaviors: Set<BehaviorConfig>
6008
3454
  converters: Set<Converter>
6009
3455
  getLegacySchema: () => PortableTextMemberSchemaTypes
6010
3456
  keyGenerator: () => string
@@ -6028,14 +3474,6 @@ declare const editorMachine: StateMachine<
6028
3474
  | InternalPatchEvent
6029
3475
  | MutationEvent
6030
3476
  | PatchesEvent
6031
- | {
6032
- type: 'add behavior'
6033
- behavior: Behavior
6034
- }
6035
- | {
6036
- type: 'remove behavior'
6037
- behavior: Behavior
6038
- }
6039
3477
  | {
6040
3478
  type: 'update readOnly'
6041
3479
  readOnly: boolean
@@ -6056,6 +3494,14 @@ declare const editorMachine: StateMachine<
6056
3494
  type: 'update maxBlocks'
6057
3495
  maxBlocks: number | undefined
6058
3496
  }
3497
+ | {
3498
+ type: 'add behavior'
3499
+ behaviorConfig: BehaviorConfig
3500
+ }
3501
+ | {
3502
+ type: 'remove behavior'
3503
+ behaviorConfig: BehaviorConfig
3504
+ }
6059
3505
  | {
6060
3506
  type: 'blur'
6061
3507
  editor: PortableTextSlateEditor
@@ -6162,7 +3608,7 @@ declare const editorMachine: StateMachine<
6162
3608
  readonly 'update maxBlocks': {
6163
3609
  readonly actions: ActionFunction<
6164
3610
  {
6165
- behaviors: Set<Behavior>
3611
+ behaviors: Set<BehaviorConfig>
6166
3612
  converters: Set<Converter>
6167
3613
  getLegacySchema: () => PortableTextMemberSchemaTypes
6168
3614
  keyGenerator: () => string
@@ -6186,14 +3632,6 @@ declare const editorMachine: StateMachine<
6186
3632
  | InternalPatchEvent
6187
3633
  | MutationEvent
6188
3634
  | PatchesEvent
6189
- | {
6190
- type: 'add behavior'
6191
- behavior: Behavior
6192
- }
6193
- | {
6194
- type: 'remove behavior'
6195
- behavior: Behavior
6196
- }
6197
3635
  | {
6198
3636
  type: 'update readOnly'
6199
3637
  readOnly: boolean
@@ -6214,6 +3652,14 @@ declare const editorMachine: StateMachine<
6214
3652
  type: 'update maxBlocks'
6215
3653
  maxBlocks: number | undefined
6216
3654
  }
3655
+ | {
3656
+ type: 'add behavior'
3657
+ behaviorConfig: BehaviorConfig
3658
+ }
3659
+ | {
3660
+ type: 'remove behavior'
3661
+ behaviorConfig: BehaviorConfig
3662
+ }
6217
3663
  | {
6218
3664
  type: 'blur'
6219
3665
  editor: PortableTextSlateEditor
@@ -6332,7 +3778,7 @@ declare const editorMachine: StateMachine<
6332
3778
  event,
6333
3779
  }: GuardArgs<
6334
3780
  {
6335
- behaviors: Set<Behavior>
3781
+ behaviors: Set<BehaviorConfig>
6336
3782
  converters: Set<Converter>
6337
3783
  getLegacySchema: () => PortableTextMemberSchemaTypes
6338
3784
  keyGenerator: () => string
@@ -6370,7 +3816,7 @@ declare const editorMachine: StateMachine<
6370
3816
  context,
6371
3817
  }: GuardArgs<
6372
3818
  {
6373
- behaviors: Set<Behavior>
3819
+ behaviors: Set<BehaviorConfig>
6374
3820
  converters: Set<Converter>
6375
3821
  getLegacySchema: () => PortableTextMemberSchemaTypes
6376
3822
  keyGenerator: () => string
@@ -6407,7 +3853,7 @@ declare const editorMachine: StateMachine<
6407
3853
  event,
6408
3854
  }: GuardArgs<
6409
3855
  {
6410
- behaviors: Set<Behavior>
3856
+ behaviors: Set<BehaviorConfig>
6411
3857
  converters: Set<Converter>
6412
3858
  getLegacySchema: () => PortableTextMemberSchemaTypes
6413
3859
  keyGenerator: () => string
@@ -6443,7 +3889,7 @@ declare const editorMachine: StateMachine<
6443
3889
  event,
6444
3890
  }: GuardArgs<
6445
3891
  {
6446
- behaviors: Set<Behavior>
3892
+ behaviors: Set<BehaviorConfig>
6447
3893
  converters: Set<Converter>
6448
3894
  getLegacySchema: () => PortableTextMemberSchemaTypes
6449
3895
  keyGenerator: () => string
@@ -6479,7 +3925,7 @@ declare const editorMachine: StateMachine<
6479
3925
  readonly actions: readonly [
6480
3926
  ActionFunction<
6481
3927
  {
6482
- behaviors: Set<Behavior>
3928
+ behaviors: Set<BehaviorConfig>
6483
3929
  converters: Set<Converter>
6484
3930
  getLegacySchema: () => PortableTextMemberSchemaTypes
6485
3931
  keyGenerator: () => string
@@ -6503,14 +3949,6 @@ declare const editorMachine: StateMachine<
6503
3949
  | InternalPatchEvent
6504
3950
  | MutationEvent
6505
3951
  | PatchesEvent
6506
- | {
6507
- type: 'add behavior'
6508
- behavior: Behavior
6509
- }
6510
- | {
6511
- type: 'remove behavior'
6512
- behavior: Behavior
6513
- }
6514
3952
  | {
6515
3953
  type: 'update readOnly'
6516
3954
  readOnly: boolean
@@ -6531,6 +3969,14 @@ declare const editorMachine: StateMachine<
6531
3969
  type: 'update maxBlocks'
6532
3970
  maxBlocks: number | undefined
6533
3971
  }
3972
+ | {
3973
+ type: 'add behavior'
3974
+ behaviorConfig: BehaviorConfig
3975
+ }
3976
+ | {
3977
+ type: 'remove behavior'
3978
+ behaviorConfig: BehaviorConfig
3979
+ }
6534
3980
  | {
6535
3981
  type: 'blur'
6536
3982
  editor: PortableTextSlateEditor
@@ -6644,7 +4090,7 @@ declare const editorMachine: StateMachine<
6644
4090
  readonly actions: readonly [
6645
4091
  ActionFunction<
6646
4092
  {
6647
- behaviors: Set<Behavior>
4093
+ behaviors: Set<BehaviorConfig>
6648
4094
  converters: Set<Converter>
6649
4095
  getLegacySchema: () => PortableTextMemberSchemaTypes
6650
4096
  keyGenerator: () => string
@@ -6671,14 +4117,6 @@ declare const editorMachine: StateMachine<
6671
4117
  | InternalPatchEvent
6672
4118
  | MutationEvent
6673
4119
  | PatchesEvent
6674
- | {
6675
- type: 'add behavior'
6676
- behavior: Behavior
6677
- }
6678
- | {
6679
- type: 'remove behavior'
6680
- behavior: Behavior
6681
- }
6682
4120
  | {
6683
4121
  type: 'update readOnly'
6684
4122
  readOnly: boolean
@@ -6699,6 +4137,14 @@ declare const editorMachine: StateMachine<
6699
4137
  type: 'update maxBlocks'
6700
4138
  maxBlocks: number | undefined
6701
4139
  }
4140
+ | {
4141
+ type: 'add behavior'
4142
+ behaviorConfig: BehaviorConfig
4143
+ }
4144
+ | {
4145
+ type: 'remove behavior'
4146
+ behaviorConfig: BehaviorConfig
4147
+ }
6702
4148
  | {
6703
4149
  type: 'blur'
6704
4150
  editor: PortableTextSlateEditor
@@ -6836,7 +4282,7 @@ declare const editorMachine: StateMachine<
6836
4282
  context,
6837
4283
  }: ActionArgs<
6838
4284
  {
6839
- behaviors: Set<Behavior>
4285
+ behaviors: Set<BehaviorConfig>
6840
4286
  converters: Set<Converter>
6841
4287
  getLegacySchema: () => PortableTextMemberSchemaTypes
6842
4288
  keyGenerator: () => string
@@ -6856,14 +4302,6 @@ declare const editorMachine: StateMachine<
6856
4302
  | InternalPatchEvent
6857
4303
  | MutationEvent
6858
4304
  | PatchesEvent
6859
- | {
6860
- type: 'add behavior'
6861
- behavior: Behavior
6862
- }
6863
- | {
6864
- type: 'remove behavior'
6865
- behavior: Behavior
6866
- }
6867
4305
  | {
6868
4306
  type: 'update readOnly'
6869
4307
  readOnly: boolean
@@ -6884,6 +4322,14 @@ declare const editorMachine: StateMachine<
6884
4322
  type: 'update maxBlocks'
6885
4323
  maxBlocks: number | undefined
6886
4324
  }
4325
+ | {
4326
+ type: 'add behavior'
4327
+ behaviorConfig: BehaviorConfig
4328
+ }
4329
+ | {
4330
+ type: 'remove behavior'
4331
+ behaviorConfig: BehaviorConfig
4332
+ }
6887
4333
  | {
6888
4334
  type: 'blur'
6889
4335
  editor: PortableTextSlateEditor
@@ -6982,14 +4428,6 @@ declare const editorMachine: StateMachine<
6982
4428
  | InternalPatchEvent
6983
4429
  | MutationEvent
6984
4430
  | PatchesEvent
6985
- | {
6986
- type: 'add behavior'
6987
- behavior: Behavior
6988
- }
6989
- | {
6990
- type: 'remove behavior'
6991
- behavior: Behavior
6992
- }
6993
4431
  | {
6994
4432
  type: 'update readOnly'
6995
4433
  readOnly: boolean
@@ -7010,6 +4448,14 @@ declare const editorMachine: StateMachine<
7010
4448
  type: 'update maxBlocks'
7011
4449
  maxBlocks: number | undefined
7012
4450
  }
4451
+ | {
4452
+ type: 'add behavior'
4453
+ behaviorConfig: BehaviorConfig
4454
+ }
4455
+ | {
4456
+ type: 'remove behavior'
4457
+ behaviorConfig: BehaviorConfig
4458
+ }
7013
4459
  | {
7014
4460
  type: 'blur'
7015
4461
  editor: PortableTextSlateEditor
@@ -7108,7 +4554,7 @@ declare const editorMachine: StateMachine<
7108
4554
  >) => void,
7109
4555
  ActionFunction<
7110
4556
  {
7111
- behaviors: Set<Behavior>
4557
+ behaviors: Set<BehaviorConfig>
7112
4558
  converters: Set<Converter>
7113
4559
  getLegacySchema: () => PortableTextMemberSchemaTypes
7114
4560
  keyGenerator: () => string
@@ -7128,14 +4574,6 @@ declare const editorMachine: StateMachine<
7128
4574
  | InternalPatchEvent
7129
4575
  | MutationEvent
7130
4576
  | PatchesEvent
7131
- | {
7132
- type: 'add behavior'
7133
- behavior: Behavior
7134
- }
7135
- | {
7136
- type: 'remove behavior'
7137
- behavior: Behavior
7138
- }
7139
4577
  | {
7140
4578
  type: 'update readOnly'
7141
4579
  readOnly: boolean
@@ -7156,6 +4594,14 @@ declare const editorMachine: StateMachine<
7156
4594
  type: 'update maxBlocks'
7157
4595
  maxBlocks: number | undefined
7158
4596
  }
4597
+ | {
4598
+ type: 'add behavior'
4599
+ behaviorConfig: BehaviorConfig
4600
+ }
4601
+ | {
4602
+ type: 'remove behavior'
4603
+ behaviorConfig: BehaviorConfig
4604
+ }
7159
4605
  | {
7160
4606
  type: 'blur'
7161
4607
  editor: PortableTextSlateEditor
@@ -7254,14 +4700,6 @@ declare const editorMachine: StateMachine<
7254
4700
  | InternalPatchEvent
7255
4701
  | MutationEvent
7256
4702
  | PatchesEvent
7257
- | {
7258
- type: 'add behavior'
7259
- behavior: Behavior
7260
- }
7261
- | {
7262
- type: 'remove behavior'
7263
- behavior: Behavior
7264
- }
7265
4703
  | {
7266
4704
  type: 'update readOnly'
7267
4705
  readOnly: boolean
@@ -7282,6 +4720,14 @@ declare const editorMachine: StateMachine<
7282
4720
  type: 'update maxBlocks'
7283
4721
  maxBlocks: number | undefined
7284
4722
  }
4723
+ | {
4724
+ type: 'add behavior'
4725
+ behaviorConfig: BehaviorConfig
4726
+ }
4727
+ | {
4728
+ type: 'remove behavior'
4729
+ behaviorConfig: BehaviorConfig
4730
+ }
7285
4731
  | {
7286
4732
  type: 'blur'
7287
4733
  editor: PortableTextSlateEditor
@@ -7435,7 +4881,7 @@ declare const editorMachine: StateMachine<
7435
4881
  readonly actions: readonly [
7436
4882
  ActionFunction<
7437
4883
  {
7438
- behaviors: Set<Behavior>
4884
+ behaviors: Set<BehaviorConfig>
7439
4885
  converters: Set<Converter>
7440
4886
  getLegacySchema: () => PortableTextMemberSchemaTypes
7441
4887
  keyGenerator: () => string
@@ -7460,14 +4906,6 @@ declare const editorMachine: StateMachine<
7460
4906
  | InternalPatchEvent
7461
4907
  | MutationEvent
7462
4908
  | PatchesEvent
7463
- | {
7464
- type: 'add behavior'
7465
- behavior: Behavior
7466
- }
7467
- | {
7468
- type: 'remove behavior'
7469
- behavior: Behavior
7470
- }
7471
4909
  | {
7472
4910
  type: 'update readOnly'
7473
4911
  readOnly: boolean
@@ -7488,6 +4926,14 @@ declare const editorMachine: StateMachine<
7488
4926
  type: 'update maxBlocks'
7489
4927
  maxBlocks: number | undefined
7490
4928
  }
4929
+ | {
4930
+ type: 'add behavior'
4931
+ behaviorConfig: BehaviorConfig
4932
+ }
4933
+ | {
4934
+ type: 'remove behavior'
4935
+ behaviorConfig: BehaviorConfig
4936
+ }
7491
4937
  | {
7492
4938
  type: 'blur'
7493
4939
  editor: PortableTextSlateEditor
@@ -7719,6 +5165,15 @@ declare const editorMachine: StateMachine<
7719
5165
  }
7720
5166
  >
7721
5167
 
5168
+ declare type EditorPriority = {
5169
+ id: string
5170
+ name?: string
5171
+ reference?: {
5172
+ priority: EditorPriority
5173
+ importance: 'higher' | 'lower'
5174
+ }
5175
+ }
5176
+
7722
5177
  /**
7723
5178
  * @public
7724
5179
  */
@@ -7914,7 +5369,7 @@ declare type InputBehaviorEvent = {
7914
5369
  declare type InsertPlacement = 'auto' | 'after' | 'before'
7915
5370
 
7916
5371
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
7917
- actionId?: string
5372
+ operationId?: string
7918
5373
  value: Array<PortableTextBlock>
7919
5374
  }
7920
5375