@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,
@@ -13,14 +14,12 @@ import type {
13
14
  PortableTextSpan,
14
15
  PortableTextTextBlock,
15
16
  } from '@sanity/types'
16
- import {KeyedSegment} from '@sanity/types'
17
17
  import type {
18
18
  FocusEvent as FocusEvent_2,
19
19
  KeyboardEvent as KeyboardEvent_2,
20
20
  } from 'react'
21
21
  import {JSX, default as React_2} from 'react'
22
- import type {Descendant, Operation} from 'slate'
23
- import {TextUnit} from 'slate'
22
+ import type {Descendant, Operation, TextUnit} from 'slate'
24
23
  import type {DOMNode} from 'slate-dom'
25
24
  import type {ReactEditor} from 'slate-react'
26
25
  import {
@@ -45,22 +44,6 @@ import {
45
44
  } from 'xstate'
46
45
  import type {EventObject, Snapshot} from 'xstate'
47
46
  import {GuardArgs} from 'xstate/guards'
48
- import {BlockOffset as BlockOffset_2} from '..'
49
- import {
50
- CustomBehaviorEvent as CustomBehaviorEvent_2,
51
- NativeBehaviorEvent as NativeBehaviorEvent_2,
52
- } from '../behaviors'
53
- import {
54
- InputBehaviorEvent as InputBehaviorEvent_2,
55
- InsertPlacement as InsertPlacement_2,
56
- MouseBehaviorEvent as MouseBehaviorEvent_2,
57
- } from '../behaviors/behavior.types.event'
58
- import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
59
- import {
60
- PickFromUnion as PickFromUnion_2,
61
- StrictExtract as StrictExtract_2,
62
- } from '../type-utils'
63
- import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
64
47
 
65
48
  declare type AbstractBehaviorEvent =
66
49
  | {
@@ -305,6 +288,11 @@ declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
305
288
  guardResponse: TGuardResponse,
306
289
  ) => Array<BehaviorAction>
307
290
 
291
+ declare type BehaviorConfig = {
292
+ behavior: Behavior
293
+ priority: EditorPriority
294
+ }
295
+
308
296
  /**
309
297
  * @beta
310
298
  */
@@ -406,11 +394,6 @@ declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
406
394
  mimeType: TMIMEType
407
395
  }
408
396
 
409
- /**
410
- * @beta
411
- */
412
- export declare function CoreBehaviorsPlugin(): JSX.Element
413
-
414
397
  /**
415
398
  * @beta
416
399
  */
@@ -686,7 +669,7 @@ declare type EditorEvent = ExternalEditorEvent | ExternalBehaviorEvent
686
669
  */
687
670
  declare const editorMachine: StateMachine<
688
671
  {
689
- behaviors: Set<Behavior>
672
+ behaviors: Set<BehaviorConfig>
690
673
  converters: Set<Converter>
691
674
  getLegacySchema: () => PortableTextMemberSchemaTypes
692
675
  keyGenerator: () => string
@@ -706,14 +689,6 @@ declare const editorMachine: StateMachine<
706
689
  | InternalPatchEvent
707
690
  | MutationEvent
708
691
  | PatchesEvent
709
- | {
710
- type: 'add behavior'
711
- behavior: Behavior
712
- }
713
- | {
714
- type: 'remove behavior'
715
- behavior: Behavior
716
- }
717
692
  | {
718
693
  type: 'update readOnly'
719
694
  readOnly: boolean
@@ -734,6 +709,14 @@ declare const editorMachine: StateMachine<
734
709
  type: 'update maxBlocks'
735
710
  maxBlocks: number | undefined
736
711
  }
712
+ | {
713
+ type: 'add behavior'
714
+ behaviorConfig: BehaviorConfig
715
+ }
716
+ | {
717
+ type: 'remove behavior'
718
+ behaviorConfig: BehaviorConfig
719
+ }
737
720
  | {
738
721
  type: 'blur'
739
722
  editor: PortableTextSlateEditor
@@ -1030,7 +1013,7 @@ declare const editorMachine: StateMachine<
1030
1013
  self: ActorRef<
1031
1014
  MachineSnapshot<
1032
1015
  {
1033
- behaviors: Set<Behavior>
1016
+ behaviors: Set<BehaviorConfig>
1034
1017
  converters: Set<Converter>
1035
1018
  getLegacySchema: () => PortableTextMemberSchemaTypes
1036
1019
  keyGenerator: () => string
@@ -1050,14 +1033,6 @@ declare const editorMachine: StateMachine<
1050
1033
  | InternalPatchEvent
1051
1034
  | MutationEvent
1052
1035
  | PatchesEvent
1053
- | {
1054
- type: 'add behavior'
1055
- behavior: Behavior
1056
- }
1057
- | {
1058
- type: 'remove behavior'
1059
- behavior: Behavior
1060
- }
1061
1036
  | {
1062
1037
  type: 'update readOnly'
1063
1038
  readOnly: boolean
@@ -1078,6 +1053,14 @@ declare const editorMachine: StateMachine<
1078
1053
  type: 'update maxBlocks'
1079
1054
  maxBlocks: number | undefined
1080
1055
  }
1056
+ | {
1057
+ type: 'add behavior'
1058
+ behaviorConfig: BehaviorConfig
1059
+ }
1060
+ | {
1061
+ type: 'remove behavior'
1062
+ behaviorConfig: BehaviorConfig
1063
+ }
1081
1064
  | {
1082
1065
  type: 'blur'
1083
1066
  editor: PortableTextSlateEditor
@@ -1183,14 +1166,6 @@ declare const editorMachine: StateMachine<
1183
1166
  | InternalPatchEvent
1184
1167
  | MutationEvent
1185
1168
  | PatchesEvent
1186
- | {
1187
- type: 'add behavior'
1188
- behavior: Behavior
1189
- }
1190
- | {
1191
- type: 'remove behavior'
1192
- behavior: Behavior
1193
- }
1194
1169
  | {
1195
1170
  type: 'update readOnly'
1196
1171
  readOnly: boolean
@@ -1211,6 +1186,14 @@ declare const editorMachine: StateMachine<
1211
1186
  type: 'update maxBlocks'
1212
1187
  maxBlocks: number | undefined
1213
1188
  }
1189
+ | {
1190
+ type: 'add behavior'
1191
+ behaviorConfig: BehaviorConfig
1192
+ }
1193
+ | {
1194
+ type: 'remove behavior'
1195
+ behaviorConfig: BehaviorConfig
1196
+ }
1214
1197
  | {
1215
1198
  type: 'blur'
1216
1199
  editor: PortableTextSlateEditor
@@ -1309,2550 +1292,7 @@ declare const editorMachine: StateMachine<
1309
1292
  AnyEventObject
1310
1293
  >
1311
1294
  }) => {
1312
- behaviors: Set<
1313
- Behavior<
1314
- | 'serialize'
1315
- | 'clipboard.copy'
1316
- | 'clipboard.cut'
1317
- | 'drag.dragstart'
1318
- | 'serialization.failure'
1319
- | 'serialization.success'
1320
- | 'deserialize'
1321
- | 'deserialization.failure'
1322
- | 'deserialization.success'
1323
- | 'split'
1324
- | 'delete'
1325
- | 'select'
1326
- | '*'
1327
- | 'annotation.add'
1328
- | 'annotation.remove'
1329
- | 'block.set'
1330
- | 'block.unset'
1331
- | 'decorator.add'
1332
- | 'decorator.remove'
1333
- | 'delete.backward'
1334
- | 'delete.block'
1335
- | 'delete.forward'
1336
- | 'history.redo'
1337
- | 'history.undo'
1338
- | 'insert.inline object'
1339
- | 'insert.block'
1340
- | 'insert.span'
1341
- | 'insert.text'
1342
- | 'move.backward'
1343
- | 'move.block'
1344
- | 'move.forward'
1345
- | 'annotation.toggle'
1346
- | 'decorator.toggle'
1347
- | 'delete.text'
1348
- | 'insert.blocks'
1349
- | 'insert.break'
1350
- | 'insert.soft break'
1351
- | 'list item.add'
1352
- | 'list item.remove'
1353
- | 'list item.toggle'
1354
- | 'move.block down'
1355
- | 'move.block up'
1356
- | 'select.previous block'
1357
- | 'select.next block'
1358
- | 'style.add'
1359
- | 'style.remove'
1360
- | 'style.toggle'
1361
- | 'clipboard.paste'
1362
- | 'drag.drag'
1363
- | 'drag.dragend'
1364
- | 'drag.dragenter'
1365
- | 'drag.dragover'
1366
- | 'drag.dragleave'
1367
- | 'drag.drop'
1368
- | 'input.*'
1369
- | 'keyboard.keydown'
1370
- | 'keyboard.keyup'
1371
- | 'mouse.click'
1372
- | 'serialize.*'
1373
- | 'deserialize.*'
1374
- | 'split.*'
1375
- | 'block.*'
1376
- | 'style.*'
1377
- | 'delete.*'
1378
- | 'move.*'
1379
- | 'select.*'
1380
- | 'history.*'
1381
- | 'serialization.*'
1382
- | 'deserialization.*'
1383
- | 'annotation.*'
1384
- | 'decorator.*'
1385
- | 'insert.*'
1386
- | 'list item.*'
1387
- | 'clipboard.*'
1388
- | 'drag.*'
1389
- | 'keyboard.*'
1390
- | 'mouse.*'
1391
- | `custom.${string}`,
1392
- true,
1393
- | {
1394
- type: StrictExtract_2<
1395
- | 'serialize'
1396
- | 'serialization.failure'
1397
- | 'serialization.success'
1398
- | 'deserialize'
1399
- | 'deserialization.failure'
1400
- | 'deserialization.success'
1401
- | 'split'
1402
- | 'delete'
1403
- | 'select'
1404
- | 'annotation.add'
1405
- | 'annotation.remove'
1406
- | 'block.set'
1407
- | 'block.unset'
1408
- | 'decorator.add'
1409
- | 'decorator.remove'
1410
- | 'delete.backward'
1411
- | 'delete.block'
1412
- | 'delete.forward'
1413
- | 'history.redo'
1414
- | 'history.undo'
1415
- | 'insert.inline object'
1416
- | 'insert.block'
1417
- | 'insert.span'
1418
- | 'insert.text'
1419
- | 'move.backward'
1420
- | 'move.block'
1421
- | 'move.forward'
1422
- | 'annotation.toggle'
1423
- | 'decorator.toggle'
1424
- | 'delete.text'
1425
- | 'insert.blocks'
1426
- | 'insert.break'
1427
- | 'insert.soft break'
1428
- | 'list item.add'
1429
- | 'list item.remove'
1430
- | 'list item.toggle'
1431
- | 'move.block down'
1432
- | 'move.block up'
1433
- | 'select.previous block'
1434
- | 'select.next block'
1435
- | 'style.add'
1436
- | 'style.remove'
1437
- | 'style.toggle',
1438
- 'annotation.add'
1439
- >
1440
- annotation: {
1441
- name: string
1442
- value: {
1443
- [prop: string]: unknown
1444
- }
1445
- }
1446
- }
1447
- | {
1448
- type: StrictExtract_2<
1449
- | 'serialize'
1450
- | 'serialization.failure'
1451
- | 'serialization.success'
1452
- | 'deserialize'
1453
- | 'deserialization.failure'
1454
- | 'deserialization.success'
1455
- | 'split'
1456
- | 'delete'
1457
- | 'select'
1458
- | 'annotation.add'
1459
- | 'annotation.remove'
1460
- | 'block.set'
1461
- | 'block.unset'
1462
- | 'decorator.add'
1463
- | 'decorator.remove'
1464
- | 'delete.backward'
1465
- | 'delete.block'
1466
- | 'delete.forward'
1467
- | 'history.redo'
1468
- | 'history.undo'
1469
- | 'insert.inline object'
1470
- | 'insert.block'
1471
- | 'insert.span'
1472
- | 'insert.text'
1473
- | 'move.backward'
1474
- | 'move.block'
1475
- | 'move.forward'
1476
- | 'annotation.toggle'
1477
- | 'decorator.toggle'
1478
- | 'delete.text'
1479
- | 'insert.blocks'
1480
- | 'insert.break'
1481
- | 'insert.soft break'
1482
- | 'list item.add'
1483
- | 'list item.remove'
1484
- | 'list item.toggle'
1485
- | 'move.block down'
1486
- | 'move.block up'
1487
- | 'select.previous block'
1488
- | 'select.next block'
1489
- | 'style.add'
1490
- | 'style.remove'
1491
- | 'style.toggle',
1492
- 'annotation.remove'
1493
- >
1494
- annotation: {
1495
- name: string
1496
- }
1497
- }
1498
- | {
1499
- type: StrictExtract_2<
1500
- | 'serialize'
1501
- | 'serialization.failure'
1502
- | 'serialization.success'
1503
- | 'deserialize'
1504
- | 'deserialization.failure'
1505
- | 'deserialization.success'
1506
- | 'split'
1507
- | 'delete'
1508
- | 'select'
1509
- | 'annotation.add'
1510
- | 'annotation.remove'
1511
- | 'block.set'
1512
- | 'block.unset'
1513
- | 'decorator.add'
1514
- | 'decorator.remove'
1515
- | 'delete.backward'
1516
- | 'delete.block'
1517
- | 'delete.forward'
1518
- | 'history.redo'
1519
- | 'history.undo'
1520
- | 'insert.inline object'
1521
- | 'insert.block'
1522
- | 'insert.span'
1523
- | 'insert.text'
1524
- | 'move.backward'
1525
- | 'move.block'
1526
- | 'move.forward'
1527
- | 'annotation.toggle'
1528
- | 'decorator.toggle'
1529
- | 'delete.text'
1530
- | 'insert.blocks'
1531
- | 'insert.break'
1532
- | 'insert.soft break'
1533
- | 'list item.add'
1534
- | 'list item.remove'
1535
- | 'list item.toggle'
1536
- | 'move.block down'
1537
- | 'move.block up'
1538
- | 'select.previous block'
1539
- | 'select.next block'
1540
- | 'style.add'
1541
- | 'style.remove'
1542
- | 'style.toggle',
1543
- 'block.set'
1544
- >
1545
- at: [KeyedSegment]
1546
- props: Record<string, unknown>
1547
- }
1548
- | {
1549
- type: StrictExtract_2<
1550
- | 'serialize'
1551
- | 'serialization.failure'
1552
- | 'serialization.success'
1553
- | 'deserialize'
1554
- | 'deserialization.failure'
1555
- | 'deserialization.success'
1556
- | 'split'
1557
- | 'delete'
1558
- | 'select'
1559
- | 'annotation.add'
1560
- | 'annotation.remove'
1561
- | 'block.set'
1562
- | 'block.unset'
1563
- | 'decorator.add'
1564
- | 'decorator.remove'
1565
- | 'delete.backward'
1566
- | 'delete.block'
1567
- | 'delete.forward'
1568
- | 'history.redo'
1569
- | 'history.undo'
1570
- | 'insert.inline object'
1571
- | 'insert.block'
1572
- | 'insert.span'
1573
- | 'insert.text'
1574
- | 'move.backward'
1575
- | 'move.block'
1576
- | 'move.forward'
1577
- | 'annotation.toggle'
1578
- | 'decorator.toggle'
1579
- | 'delete.text'
1580
- | 'insert.blocks'
1581
- | 'insert.break'
1582
- | 'insert.soft break'
1583
- | 'list item.add'
1584
- | 'list item.remove'
1585
- | 'list item.toggle'
1586
- | 'move.block down'
1587
- | 'move.block up'
1588
- | 'select.previous block'
1589
- | 'select.next block'
1590
- | 'style.add'
1591
- | 'style.remove'
1592
- | 'style.toggle',
1593
- 'block.unset'
1594
- >
1595
- at: [KeyedSegment]
1596
- props: Array<string>
1597
- }
1598
- | {
1599
- type: StrictExtract_2<
1600
- | 'serialize'
1601
- | 'serialization.failure'
1602
- | 'serialization.success'
1603
- | 'deserialize'
1604
- | 'deserialization.failure'
1605
- | 'deserialization.success'
1606
- | 'split'
1607
- | 'delete'
1608
- | 'select'
1609
- | 'annotation.add'
1610
- | 'annotation.remove'
1611
- | 'block.set'
1612
- | 'block.unset'
1613
- | 'decorator.add'
1614
- | 'decorator.remove'
1615
- | 'delete.backward'
1616
- | 'delete.block'
1617
- | 'delete.forward'
1618
- | 'history.redo'
1619
- | 'history.undo'
1620
- | 'insert.inline object'
1621
- | 'insert.block'
1622
- | 'insert.span'
1623
- | 'insert.text'
1624
- | 'move.backward'
1625
- | 'move.block'
1626
- | 'move.forward'
1627
- | 'annotation.toggle'
1628
- | 'decorator.toggle'
1629
- | 'delete.text'
1630
- | 'insert.blocks'
1631
- | 'insert.break'
1632
- | 'insert.soft break'
1633
- | 'list item.add'
1634
- | 'list item.remove'
1635
- | 'list item.toggle'
1636
- | 'move.block down'
1637
- | 'move.block up'
1638
- | 'select.previous block'
1639
- | 'select.next block'
1640
- | 'style.add'
1641
- | 'style.remove'
1642
- | 'style.toggle',
1643
- 'decorator.add'
1644
- >
1645
- decorator: string
1646
- at?: {
1647
- anchor: BlockOffset_2
1648
- focus: BlockOffset_2
1649
- }
1650
- }
1651
- | {
1652
- type: StrictExtract_2<
1653
- | 'serialize'
1654
- | 'serialization.failure'
1655
- | 'serialization.success'
1656
- | 'deserialize'
1657
- | 'deserialization.failure'
1658
- | 'deserialization.success'
1659
- | 'split'
1660
- | 'delete'
1661
- | 'select'
1662
- | 'annotation.add'
1663
- | 'annotation.remove'
1664
- | 'block.set'
1665
- | 'block.unset'
1666
- | 'decorator.add'
1667
- | 'decorator.remove'
1668
- | 'delete.backward'
1669
- | 'delete.block'
1670
- | 'delete.forward'
1671
- | 'history.redo'
1672
- | 'history.undo'
1673
- | 'insert.inline object'
1674
- | 'insert.block'
1675
- | 'insert.span'
1676
- | 'insert.text'
1677
- | 'move.backward'
1678
- | 'move.block'
1679
- | 'move.forward'
1680
- | 'annotation.toggle'
1681
- | 'decorator.toggle'
1682
- | 'delete.text'
1683
- | 'insert.blocks'
1684
- | 'insert.break'
1685
- | 'insert.soft break'
1686
- | 'list item.add'
1687
- | 'list item.remove'
1688
- | 'list item.toggle'
1689
- | 'move.block down'
1690
- | 'move.block up'
1691
- | 'select.previous block'
1692
- | 'select.next block'
1693
- | 'style.add'
1694
- | 'style.remove'
1695
- | 'style.toggle',
1696
- 'decorator.remove'
1697
- >
1698
- decorator: string
1699
- }
1700
- | {
1701
- type: StrictExtract_2<
1702
- | 'serialize'
1703
- | 'serialization.failure'
1704
- | 'serialization.success'
1705
- | 'deserialize'
1706
- | 'deserialization.failure'
1707
- | 'deserialization.success'
1708
- | 'split'
1709
- | 'delete'
1710
- | 'select'
1711
- | 'annotation.add'
1712
- | 'annotation.remove'
1713
- | 'block.set'
1714
- | 'block.unset'
1715
- | 'decorator.add'
1716
- | 'decorator.remove'
1717
- | 'delete.backward'
1718
- | 'delete.block'
1719
- | 'delete.forward'
1720
- | 'history.redo'
1721
- | 'history.undo'
1722
- | 'insert.inline object'
1723
- | 'insert.block'
1724
- | 'insert.span'
1725
- | 'insert.text'
1726
- | 'move.backward'
1727
- | 'move.block'
1728
- | 'move.forward'
1729
- | 'annotation.toggle'
1730
- | 'decorator.toggle'
1731
- | 'delete.text'
1732
- | 'insert.blocks'
1733
- | 'insert.break'
1734
- | 'insert.soft break'
1735
- | 'list item.add'
1736
- | 'list item.remove'
1737
- | 'list item.toggle'
1738
- | 'move.block down'
1739
- | 'move.block up'
1740
- | 'select.previous block'
1741
- | 'select.next block'
1742
- | 'style.add'
1743
- | 'style.remove'
1744
- | 'style.toggle',
1745
- 'delete'
1746
- >
1747
- at: NonNullable<EditorSelection>
1748
- }
1749
- | {
1750
- type: StrictExtract_2<
1751
- | 'serialize'
1752
- | 'serialization.failure'
1753
- | 'serialization.success'
1754
- | 'deserialize'
1755
- | 'deserialization.failure'
1756
- | 'deserialization.success'
1757
- | 'split'
1758
- | 'delete'
1759
- | 'select'
1760
- | 'annotation.add'
1761
- | 'annotation.remove'
1762
- | 'block.set'
1763
- | 'block.unset'
1764
- | 'decorator.add'
1765
- | 'decorator.remove'
1766
- | 'delete.backward'
1767
- | 'delete.block'
1768
- | 'delete.forward'
1769
- | 'history.redo'
1770
- | 'history.undo'
1771
- | 'insert.inline object'
1772
- | 'insert.block'
1773
- | 'insert.span'
1774
- | 'insert.text'
1775
- | 'move.backward'
1776
- | 'move.block'
1777
- | 'move.forward'
1778
- | 'annotation.toggle'
1779
- | 'decorator.toggle'
1780
- | 'delete.text'
1781
- | 'insert.blocks'
1782
- | 'insert.break'
1783
- | 'insert.soft break'
1784
- | 'list item.add'
1785
- | 'list item.remove'
1786
- | 'list item.toggle'
1787
- | 'move.block down'
1788
- | 'move.block up'
1789
- | 'select.previous block'
1790
- | 'select.next block'
1791
- | 'style.add'
1792
- | 'style.remove'
1793
- | 'style.toggle',
1794
- 'delete.backward'
1795
- >
1796
- unit: TextUnit
1797
- }
1798
- | {
1799
- type: StrictExtract_2<
1800
- | 'serialize'
1801
- | 'serialization.failure'
1802
- | 'serialization.success'
1803
- | 'deserialize'
1804
- | 'deserialization.failure'
1805
- | 'deserialization.success'
1806
- | 'split'
1807
- | 'delete'
1808
- | 'select'
1809
- | 'annotation.add'
1810
- | 'annotation.remove'
1811
- | 'block.set'
1812
- | 'block.unset'
1813
- | 'decorator.add'
1814
- | 'decorator.remove'
1815
- | 'delete.backward'
1816
- | 'delete.block'
1817
- | 'delete.forward'
1818
- | 'history.redo'
1819
- | 'history.undo'
1820
- | 'insert.inline object'
1821
- | 'insert.block'
1822
- | 'insert.span'
1823
- | 'insert.text'
1824
- | 'move.backward'
1825
- | 'move.block'
1826
- | 'move.forward'
1827
- | 'annotation.toggle'
1828
- | 'decorator.toggle'
1829
- | 'delete.text'
1830
- | 'insert.blocks'
1831
- | 'insert.break'
1832
- | 'insert.soft break'
1833
- | 'list item.add'
1834
- | 'list item.remove'
1835
- | 'list item.toggle'
1836
- | 'move.block down'
1837
- | 'move.block up'
1838
- | 'select.previous block'
1839
- | 'select.next block'
1840
- | 'style.add'
1841
- | 'style.remove'
1842
- | 'style.toggle',
1843
- 'delete.block'
1844
- >
1845
- at: [KeyedSegment]
1846
- }
1847
- | {
1848
- type: StrictExtract_2<
1849
- | 'serialize'
1850
- | 'serialization.failure'
1851
- | 'serialization.success'
1852
- | 'deserialize'
1853
- | 'deserialization.failure'
1854
- | 'deserialization.success'
1855
- | 'split'
1856
- | 'delete'
1857
- | 'select'
1858
- | 'annotation.add'
1859
- | 'annotation.remove'
1860
- | 'block.set'
1861
- | 'block.unset'
1862
- | 'decorator.add'
1863
- | 'decorator.remove'
1864
- | 'delete.backward'
1865
- | 'delete.block'
1866
- | 'delete.forward'
1867
- | 'history.redo'
1868
- | 'history.undo'
1869
- | 'insert.inline object'
1870
- | 'insert.block'
1871
- | 'insert.span'
1872
- | 'insert.text'
1873
- | 'move.backward'
1874
- | 'move.block'
1875
- | 'move.forward'
1876
- | 'annotation.toggle'
1877
- | 'decorator.toggle'
1878
- | 'delete.text'
1879
- | 'insert.blocks'
1880
- | 'insert.break'
1881
- | 'insert.soft break'
1882
- | 'list item.add'
1883
- | 'list item.remove'
1884
- | 'list item.toggle'
1885
- | 'move.block down'
1886
- | 'move.block up'
1887
- | 'select.previous block'
1888
- | 'select.next block'
1889
- | 'style.add'
1890
- | 'style.remove'
1891
- | 'style.toggle',
1892
- 'delete.forward'
1893
- >
1894
- unit: TextUnit
1895
- }
1896
- | {
1897
- type: StrictExtract_2<
1898
- | 'serialize'
1899
- | 'serialization.failure'
1900
- | 'serialization.success'
1901
- | 'deserialize'
1902
- | 'deserialization.failure'
1903
- | 'deserialization.success'
1904
- | 'split'
1905
- | 'delete'
1906
- | 'select'
1907
- | 'annotation.add'
1908
- | 'annotation.remove'
1909
- | 'block.set'
1910
- | 'block.unset'
1911
- | 'decorator.add'
1912
- | 'decorator.remove'
1913
- | 'delete.backward'
1914
- | 'delete.block'
1915
- | 'delete.forward'
1916
- | 'history.redo'
1917
- | 'history.undo'
1918
- | 'insert.inline object'
1919
- | 'insert.block'
1920
- | 'insert.span'
1921
- | 'insert.text'
1922
- | 'move.backward'
1923
- | 'move.block'
1924
- | 'move.forward'
1925
- | 'annotation.toggle'
1926
- | 'decorator.toggle'
1927
- | 'delete.text'
1928
- | 'insert.blocks'
1929
- | 'insert.break'
1930
- | 'insert.soft break'
1931
- | 'list item.add'
1932
- | 'list item.remove'
1933
- | 'list item.toggle'
1934
- | 'move.block down'
1935
- | 'move.block up'
1936
- | 'select.previous block'
1937
- | 'select.next block'
1938
- | 'style.add'
1939
- | 'style.remove'
1940
- | 'style.toggle',
1941
- 'history.redo'
1942
- >
1943
- }
1944
- | {
1945
- type: StrictExtract_2<
1946
- | 'serialize'
1947
- | 'serialization.failure'
1948
- | 'serialization.success'
1949
- | 'deserialize'
1950
- | 'deserialization.failure'
1951
- | 'deserialization.success'
1952
- | 'split'
1953
- | 'delete'
1954
- | 'select'
1955
- | 'annotation.add'
1956
- | 'annotation.remove'
1957
- | 'block.set'
1958
- | 'block.unset'
1959
- | 'decorator.add'
1960
- | 'decorator.remove'
1961
- | 'delete.backward'
1962
- | 'delete.block'
1963
- | 'delete.forward'
1964
- | 'history.redo'
1965
- | 'history.undo'
1966
- | 'insert.inline object'
1967
- | 'insert.block'
1968
- | 'insert.span'
1969
- | 'insert.text'
1970
- | 'move.backward'
1971
- | 'move.block'
1972
- | 'move.forward'
1973
- | 'annotation.toggle'
1974
- | 'decorator.toggle'
1975
- | 'delete.text'
1976
- | 'insert.blocks'
1977
- | 'insert.break'
1978
- | 'insert.soft break'
1979
- | 'list item.add'
1980
- | 'list item.remove'
1981
- | 'list item.toggle'
1982
- | 'move.block down'
1983
- | 'move.block up'
1984
- | 'select.previous block'
1985
- | 'select.next block'
1986
- | 'style.add'
1987
- | 'style.remove'
1988
- | 'style.toggle',
1989
- 'history.undo'
1990
- >
1991
- }
1992
- | {
1993
- type: StrictExtract_2<
1994
- | 'serialize'
1995
- | 'serialization.failure'
1996
- | 'serialization.success'
1997
- | 'deserialize'
1998
- | 'deserialization.failure'
1999
- | 'deserialization.success'
2000
- | 'split'
2001
- | 'delete'
2002
- | 'select'
2003
- | 'annotation.add'
2004
- | 'annotation.remove'
2005
- | 'block.set'
2006
- | 'block.unset'
2007
- | 'decorator.add'
2008
- | 'decorator.remove'
2009
- | 'delete.backward'
2010
- | 'delete.block'
2011
- | 'delete.forward'
2012
- | 'history.redo'
2013
- | 'history.undo'
2014
- | 'insert.inline object'
2015
- | 'insert.block'
2016
- | 'insert.span'
2017
- | 'insert.text'
2018
- | 'move.backward'
2019
- | 'move.block'
2020
- | 'move.forward'
2021
- | 'annotation.toggle'
2022
- | 'decorator.toggle'
2023
- | 'delete.text'
2024
- | 'insert.blocks'
2025
- | 'insert.break'
2026
- | 'insert.soft break'
2027
- | 'list item.add'
2028
- | 'list item.remove'
2029
- | 'list item.toggle'
2030
- | 'move.block down'
2031
- | 'move.block up'
2032
- | 'select.previous block'
2033
- | 'select.next block'
2034
- | 'style.add'
2035
- | 'style.remove'
2036
- | 'style.toggle',
2037
- 'insert.inline object'
2038
- >
2039
- inlineObject: {
2040
- name: string
2041
- value?: {
2042
- [prop: string]: unknown
2043
- }
2044
- }
2045
- }
2046
- | {
2047
- type: StrictExtract_2<
2048
- | 'serialize'
2049
- | 'serialization.failure'
2050
- | 'serialization.success'
2051
- | 'deserialize'
2052
- | 'deserialization.failure'
2053
- | 'deserialization.success'
2054
- | 'split'
2055
- | 'delete'
2056
- | 'select'
2057
- | 'annotation.add'
2058
- | 'annotation.remove'
2059
- | 'block.set'
2060
- | 'block.unset'
2061
- | 'decorator.add'
2062
- | 'decorator.remove'
2063
- | 'delete.backward'
2064
- | 'delete.block'
2065
- | 'delete.forward'
2066
- | 'history.redo'
2067
- | 'history.undo'
2068
- | 'insert.inline object'
2069
- | 'insert.block'
2070
- | 'insert.span'
2071
- | 'insert.text'
2072
- | 'move.backward'
2073
- | 'move.block'
2074
- | 'move.forward'
2075
- | 'annotation.toggle'
2076
- | 'decorator.toggle'
2077
- | 'delete.text'
2078
- | 'insert.blocks'
2079
- | 'insert.break'
2080
- | 'insert.soft break'
2081
- | 'list item.add'
2082
- | 'list item.remove'
2083
- | 'list item.toggle'
2084
- | 'move.block down'
2085
- | 'move.block up'
2086
- | 'select.previous block'
2087
- | 'select.next block'
2088
- | 'style.add'
2089
- | 'style.remove'
2090
- | 'style.toggle',
2091
- 'insert.block'
2092
- >
2093
- block: BlockWithOptionalKey_2
2094
- placement: InsertPlacement_2
2095
- select?: 'start' | 'end' | 'none'
2096
- }
2097
- | {
2098
- type: StrictExtract_2<
2099
- | 'serialize'
2100
- | 'serialization.failure'
2101
- | 'serialization.success'
2102
- | 'deserialize'
2103
- | 'deserialization.failure'
2104
- | 'deserialization.success'
2105
- | 'split'
2106
- | 'delete'
2107
- | 'select'
2108
- | 'annotation.add'
2109
- | 'annotation.remove'
2110
- | 'block.set'
2111
- | 'block.unset'
2112
- | 'decorator.add'
2113
- | 'decorator.remove'
2114
- | 'delete.backward'
2115
- | 'delete.block'
2116
- | 'delete.forward'
2117
- | 'history.redo'
2118
- | 'history.undo'
2119
- | 'insert.inline object'
2120
- | 'insert.block'
2121
- | 'insert.span'
2122
- | 'insert.text'
2123
- | 'move.backward'
2124
- | 'move.block'
2125
- | 'move.forward'
2126
- | 'annotation.toggle'
2127
- | 'decorator.toggle'
2128
- | 'delete.text'
2129
- | 'insert.blocks'
2130
- | 'insert.break'
2131
- | 'insert.soft break'
2132
- | 'list item.add'
2133
- | 'list item.remove'
2134
- | 'list item.toggle'
2135
- | 'move.block down'
2136
- | 'move.block up'
2137
- | 'select.previous block'
2138
- | 'select.next block'
2139
- | 'style.add'
2140
- | 'style.remove'
2141
- | 'style.toggle',
2142
- 'insert.span'
2143
- >
2144
- text: string
2145
- annotations?: Array<{
2146
- name: string
2147
- value: {
2148
- [prop: string]: unknown
2149
- }
2150
- }>
2151
- decorators?: Array<string>
2152
- }
2153
- | {
2154
- type: StrictExtract_2<
2155
- | 'serialize'
2156
- | 'serialization.failure'
2157
- | 'serialization.success'
2158
- | 'deserialize'
2159
- | 'deserialization.failure'
2160
- | 'deserialization.success'
2161
- | 'split'
2162
- | 'delete'
2163
- | 'select'
2164
- | 'annotation.add'
2165
- | 'annotation.remove'
2166
- | 'block.set'
2167
- | 'block.unset'
2168
- | 'decorator.add'
2169
- | 'decorator.remove'
2170
- | 'delete.backward'
2171
- | 'delete.block'
2172
- | 'delete.forward'
2173
- | 'history.redo'
2174
- | 'history.undo'
2175
- | 'insert.inline object'
2176
- | 'insert.block'
2177
- | 'insert.span'
2178
- | 'insert.text'
2179
- | 'move.backward'
2180
- | 'move.block'
2181
- | 'move.forward'
2182
- | 'annotation.toggle'
2183
- | 'decorator.toggle'
2184
- | 'delete.text'
2185
- | 'insert.blocks'
2186
- | 'insert.break'
2187
- | 'insert.soft break'
2188
- | 'list item.add'
2189
- | 'list item.remove'
2190
- | 'list item.toggle'
2191
- | 'move.block down'
2192
- | 'move.block up'
2193
- | 'select.previous block'
2194
- | 'select.next block'
2195
- | 'style.add'
2196
- | 'style.remove'
2197
- | 'style.toggle',
2198
- 'insert.text'
2199
- >
2200
- text: string
2201
- }
2202
- | {
2203
- type: StrictExtract_2<
2204
- | 'serialize'
2205
- | 'serialization.failure'
2206
- | 'serialization.success'
2207
- | 'deserialize'
2208
- | 'deserialization.failure'
2209
- | 'deserialization.success'
2210
- | 'split'
2211
- | 'delete'
2212
- | 'select'
2213
- | 'annotation.add'
2214
- | 'annotation.remove'
2215
- | 'block.set'
2216
- | 'block.unset'
2217
- | 'decorator.add'
2218
- | 'decorator.remove'
2219
- | 'delete.backward'
2220
- | 'delete.block'
2221
- | 'delete.forward'
2222
- | 'history.redo'
2223
- | 'history.undo'
2224
- | 'insert.inline object'
2225
- | 'insert.block'
2226
- | 'insert.span'
2227
- | 'insert.text'
2228
- | 'move.backward'
2229
- | 'move.block'
2230
- | 'move.forward'
2231
- | 'annotation.toggle'
2232
- | 'decorator.toggle'
2233
- | 'delete.text'
2234
- | 'insert.blocks'
2235
- | 'insert.break'
2236
- | 'insert.soft break'
2237
- | 'list item.add'
2238
- | 'list item.remove'
2239
- | 'list item.toggle'
2240
- | 'move.block down'
2241
- | 'move.block up'
2242
- | 'select.previous block'
2243
- | 'select.next block'
2244
- | 'style.add'
2245
- | 'style.remove'
2246
- | 'style.toggle',
2247
- 'move.backward'
2248
- >
2249
- distance: number
2250
- }
2251
- | {
2252
- type: StrictExtract_2<
2253
- | 'serialize'
2254
- | 'serialization.failure'
2255
- | 'serialization.success'
2256
- | 'deserialize'
2257
- | 'deserialization.failure'
2258
- | 'deserialization.success'
2259
- | 'split'
2260
- | 'delete'
2261
- | 'select'
2262
- | 'annotation.add'
2263
- | 'annotation.remove'
2264
- | 'block.set'
2265
- | 'block.unset'
2266
- | 'decorator.add'
2267
- | 'decorator.remove'
2268
- | 'delete.backward'
2269
- | 'delete.block'
2270
- | 'delete.forward'
2271
- | 'history.redo'
2272
- | 'history.undo'
2273
- | 'insert.inline object'
2274
- | 'insert.block'
2275
- | 'insert.span'
2276
- | 'insert.text'
2277
- | 'move.backward'
2278
- | 'move.block'
2279
- | 'move.forward'
2280
- | 'annotation.toggle'
2281
- | 'decorator.toggle'
2282
- | 'delete.text'
2283
- | 'insert.blocks'
2284
- | 'insert.break'
2285
- | 'insert.soft break'
2286
- | 'list item.add'
2287
- | 'list item.remove'
2288
- | 'list item.toggle'
2289
- | 'move.block down'
2290
- | 'move.block up'
2291
- | 'select.previous block'
2292
- | 'select.next block'
2293
- | 'style.add'
2294
- | 'style.remove'
2295
- | 'style.toggle',
2296
- 'move.block'
2297
- >
2298
- at: [KeyedSegment]
2299
- to: [KeyedSegment]
2300
- }
2301
- | {
2302
- type: StrictExtract_2<
2303
- | 'serialize'
2304
- | 'serialization.failure'
2305
- | 'serialization.success'
2306
- | 'deserialize'
2307
- | 'deserialization.failure'
2308
- | 'deserialization.success'
2309
- | 'split'
2310
- | 'delete'
2311
- | 'select'
2312
- | 'annotation.add'
2313
- | 'annotation.remove'
2314
- | 'block.set'
2315
- | 'block.unset'
2316
- | 'decorator.add'
2317
- | 'decorator.remove'
2318
- | 'delete.backward'
2319
- | 'delete.block'
2320
- | 'delete.forward'
2321
- | 'history.redo'
2322
- | 'history.undo'
2323
- | 'insert.inline object'
2324
- | 'insert.block'
2325
- | 'insert.span'
2326
- | 'insert.text'
2327
- | 'move.backward'
2328
- | 'move.block'
2329
- | 'move.forward'
2330
- | 'annotation.toggle'
2331
- | 'decorator.toggle'
2332
- | 'delete.text'
2333
- | 'insert.blocks'
2334
- | 'insert.break'
2335
- | 'insert.soft break'
2336
- | 'list item.add'
2337
- | 'list item.remove'
2338
- | 'list item.toggle'
2339
- | 'move.block down'
2340
- | 'move.block up'
2341
- | 'select.previous block'
2342
- | 'select.next block'
2343
- | 'style.add'
2344
- | 'style.remove'
2345
- | 'style.toggle',
2346
- 'move.forward'
2347
- >
2348
- distance: number
2349
- }
2350
- | {
2351
- type: StrictExtract_2<
2352
- | 'serialize'
2353
- | 'serialization.failure'
2354
- | 'serialization.success'
2355
- | 'deserialize'
2356
- | 'deserialization.failure'
2357
- | 'deserialization.success'
2358
- | 'split'
2359
- | 'delete'
2360
- | 'select'
2361
- | 'annotation.add'
2362
- | 'annotation.remove'
2363
- | 'block.set'
2364
- | 'block.unset'
2365
- | 'decorator.add'
2366
- | 'decorator.remove'
2367
- | 'delete.backward'
2368
- | 'delete.block'
2369
- | 'delete.forward'
2370
- | 'history.redo'
2371
- | 'history.undo'
2372
- | 'insert.inline object'
2373
- | 'insert.block'
2374
- | 'insert.span'
2375
- | 'insert.text'
2376
- | 'move.backward'
2377
- | 'move.block'
2378
- | 'move.forward'
2379
- | 'annotation.toggle'
2380
- | 'decorator.toggle'
2381
- | 'delete.text'
2382
- | 'insert.blocks'
2383
- | 'insert.break'
2384
- | 'insert.soft break'
2385
- | 'list item.add'
2386
- | 'list item.remove'
2387
- | 'list item.toggle'
2388
- | 'move.block down'
2389
- | 'move.block up'
2390
- | 'select.previous block'
2391
- | 'select.next block'
2392
- | 'style.add'
2393
- | 'style.remove'
2394
- | 'style.toggle',
2395
- 'select'
2396
- >
2397
- at: EditorSelection
2398
- }
2399
- | {
2400
- type: StrictExtract_2<
2401
- | 'serialize'
2402
- | 'serialization.failure'
2403
- | 'serialization.success'
2404
- | 'deserialize'
2405
- | 'deserialization.failure'
2406
- | 'deserialization.success'
2407
- | 'split'
2408
- | 'delete'
2409
- | 'select'
2410
- | 'annotation.add'
2411
- | 'annotation.remove'
2412
- | 'block.set'
2413
- | 'block.unset'
2414
- | 'decorator.add'
2415
- | 'decorator.remove'
2416
- | 'delete.backward'
2417
- | 'delete.block'
2418
- | 'delete.forward'
2419
- | 'history.redo'
2420
- | 'history.undo'
2421
- | 'insert.inline object'
2422
- | 'insert.block'
2423
- | 'insert.span'
2424
- | 'insert.text'
2425
- | 'move.backward'
2426
- | 'move.block'
2427
- | 'move.forward'
2428
- | 'annotation.toggle'
2429
- | 'decorator.toggle'
2430
- | 'delete.text'
2431
- | 'insert.blocks'
2432
- | 'insert.break'
2433
- | 'insert.soft break'
2434
- | 'list item.add'
2435
- | 'list item.remove'
2436
- | 'list item.toggle'
2437
- | 'move.block down'
2438
- | 'move.block up'
2439
- | 'select.previous block'
2440
- | 'select.next block'
2441
- | 'style.add'
2442
- | 'style.remove'
2443
- | 'style.toggle',
2444
- 'annotation.toggle'
2445
- >
2446
- annotation: {
2447
- name: string
2448
- value: {
2449
- [prop: string]: unknown
2450
- }
2451
- }
2452
- }
2453
- | {
2454
- type: StrictExtract_2<
2455
- | 'serialize'
2456
- | 'serialization.failure'
2457
- | 'serialization.success'
2458
- | 'deserialize'
2459
- | 'deserialization.failure'
2460
- | 'deserialization.success'
2461
- | 'split'
2462
- | 'delete'
2463
- | 'select'
2464
- | 'annotation.add'
2465
- | 'annotation.remove'
2466
- | 'block.set'
2467
- | 'block.unset'
2468
- | 'decorator.add'
2469
- | 'decorator.remove'
2470
- | 'delete.backward'
2471
- | 'delete.block'
2472
- | 'delete.forward'
2473
- | 'history.redo'
2474
- | 'history.undo'
2475
- | 'insert.inline object'
2476
- | 'insert.block'
2477
- | 'insert.span'
2478
- | 'insert.text'
2479
- | 'move.backward'
2480
- | 'move.block'
2481
- | 'move.forward'
2482
- | 'annotation.toggle'
2483
- | 'decorator.toggle'
2484
- | 'delete.text'
2485
- | 'insert.blocks'
2486
- | 'insert.break'
2487
- | 'insert.soft break'
2488
- | 'list item.add'
2489
- | 'list item.remove'
2490
- | 'list item.toggle'
2491
- | 'move.block down'
2492
- | 'move.block up'
2493
- | 'select.previous block'
2494
- | 'select.next block'
2495
- | 'style.add'
2496
- | 'style.remove'
2497
- | 'style.toggle',
2498
- 'decorator.toggle'
2499
- >
2500
- decorator: string
2501
- at?: {
2502
- anchor: BlockOffset_2
2503
- focus: BlockOffset_2
2504
- }
2505
- }
2506
- | {
2507
- type: StrictExtract_2<
2508
- | 'serialize'
2509
- | 'serialization.failure'
2510
- | 'serialization.success'
2511
- | 'deserialize'
2512
- | 'deserialization.failure'
2513
- | 'deserialization.success'
2514
- | 'split'
2515
- | 'delete'
2516
- | 'select'
2517
- | 'annotation.add'
2518
- | 'annotation.remove'
2519
- | 'block.set'
2520
- | 'block.unset'
2521
- | 'decorator.add'
2522
- | 'decorator.remove'
2523
- | 'delete.backward'
2524
- | 'delete.block'
2525
- | 'delete.forward'
2526
- | 'history.redo'
2527
- | 'history.undo'
2528
- | 'insert.inline object'
2529
- | 'insert.block'
2530
- | 'insert.span'
2531
- | 'insert.text'
2532
- | 'move.backward'
2533
- | 'move.block'
2534
- | 'move.forward'
2535
- | 'annotation.toggle'
2536
- | 'decorator.toggle'
2537
- | 'delete.text'
2538
- | 'insert.blocks'
2539
- | 'insert.break'
2540
- | 'insert.soft break'
2541
- | 'list item.add'
2542
- | 'list item.remove'
2543
- | 'list item.toggle'
2544
- | 'move.block down'
2545
- | 'move.block up'
2546
- | 'select.previous block'
2547
- | 'select.next block'
2548
- | 'style.add'
2549
- | 'style.remove'
2550
- | 'style.toggle',
2551
- 'delete.text'
2552
- >
2553
- at: {
2554
- anchor: BlockOffset_2
2555
- focus: BlockOffset_2
2556
- }
2557
- }
2558
- | {
2559
- type: StrictExtract_2<
2560
- | 'serialize'
2561
- | 'serialization.failure'
2562
- | 'serialization.success'
2563
- | 'deserialize'
2564
- | 'deserialization.failure'
2565
- | 'deserialization.success'
2566
- | 'split'
2567
- | 'delete'
2568
- | 'select'
2569
- | 'annotation.add'
2570
- | 'annotation.remove'
2571
- | 'block.set'
2572
- | 'block.unset'
2573
- | 'decorator.add'
2574
- | 'decorator.remove'
2575
- | 'delete.backward'
2576
- | 'delete.block'
2577
- | 'delete.forward'
2578
- | 'history.redo'
2579
- | 'history.undo'
2580
- | 'insert.inline object'
2581
- | 'insert.block'
2582
- | 'insert.span'
2583
- | 'insert.text'
2584
- | 'move.backward'
2585
- | 'move.block'
2586
- | 'move.forward'
2587
- | 'annotation.toggle'
2588
- | 'decorator.toggle'
2589
- | 'delete.text'
2590
- | 'insert.blocks'
2591
- | 'insert.break'
2592
- | 'insert.soft break'
2593
- | 'list item.add'
2594
- | 'list item.remove'
2595
- | 'list item.toggle'
2596
- | 'move.block down'
2597
- | 'move.block up'
2598
- | 'select.previous block'
2599
- | 'select.next block'
2600
- | 'style.add'
2601
- | 'style.remove'
2602
- | 'style.toggle',
2603
- 'deserialize'
2604
- >
2605
- originEvent:
2606
- | PickFromUnion_2<
2607
- NativeBehaviorEvent_2,
2608
- 'type',
2609
- 'drag.drop' | 'clipboard.paste'
2610
- >
2611
- | InputBehaviorEvent_2
2612
- }
2613
- | {
2614
- type: StrictExtract_2<
2615
- | 'serialize'
2616
- | 'serialization.failure'
2617
- | 'serialization.success'
2618
- | 'deserialize'
2619
- | 'deserialization.failure'
2620
- | 'deserialization.success'
2621
- | 'split'
2622
- | 'delete'
2623
- | 'select'
2624
- | 'annotation.add'
2625
- | 'annotation.remove'
2626
- | 'block.set'
2627
- | 'block.unset'
2628
- | 'decorator.add'
2629
- | 'decorator.remove'
2630
- | 'delete.backward'
2631
- | 'delete.block'
2632
- | 'delete.forward'
2633
- | 'history.redo'
2634
- | 'history.undo'
2635
- | 'insert.inline object'
2636
- | 'insert.block'
2637
- | 'insert.span'
2638
- | 'insert.text'
2639
- | 'move.backward'
2640
- | 'move.block'
2641
- | 'move.forward'
2642
- | 'annotation.toggle'
2643
- | 'decorator.toggle'
2644
- | 'delete.text'
2645
- | 'insert.blocks'
2646
- | 'insert.break'
2647
- | 'insert.soft break'
2648
- | 'list item.add'
2649
- | 'list item.remove'
2650
- | 'list item.toggle'
2651
- | 'move.block down'
2652
- | 'move.block up'
2653
- | 'select.previous block'
2654
- | 'select.next block'
2655
- | 'style.add'
2656
- | 'style.remove'
2657
- | 'style.toggle',
2658
- 'serialize'
2659
- >
2660
- originEvent: PickFromUnion_2<
2661
- NativeBehaviorEvent_2,
2662
- 'type',
2663
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2664
- >
2665
- }
2666
- | {
2667
- type: StrictExtract_2<
2668
- | 'serialize'
2669
- | 'serialization.failure'
2670
- | 'serialization.success'
2671
- | 'deserialize'
2672
- | 'deserialization.failure'
2673
- | 'deserialization.success'
2674
- | 'split'
2675
- | 'delete'
2676
- | 'select'
2677
- | 'annotation.add'
2678
- | 'annotation.remove'
2679
- | 'block.set'
2680
- | 'block.unset'
2681
- | 'decorator.add'
2682
- | 'decorator.remove'
2683
- | 'delete.backward'
2684
- | 'delete.block'
2685
- | 'delete.forward'
2686
- | 'history.redo'
2687
- | 'history.undo'
2688
- | 'insert.inline object'
2689
- | 'insert.block'
2690
- | 'insert.span'
2691
- | 'insert.text'
2692
- | 'move.backward'
2693
- | 'move.block'
2694
- | 'move.forward'
2695
- | 'annotation.toggle'
2696
- | 'decorator.toggle'
2697
- | 'delete.text'
2698
- | 'insert.blocks'
2699
- | 'insert.break'
2700
- | 'insert.soft break'
2701
- | 'list item.add'
2702
- | 'list item.remove'
2703
- | 'list item.toggle'
2704
- | 'move.block down'
2705
- | 'move.block up'
2706
- | 'select.previous block'
2707
- | 'select.next block'
2708
- | 'style.add'
2709
- | 'style.remove'
2710
- | 'style.toggle',
2711
- 'deserialization.success'
2712
- >
2713
- mimeType: MIMEType_2
2714
- data: Array<PortableTextBlock>
2715
- originEvent:
2716
- | PickFromUnion_2<
2717
- NativeBehaviorEvent_2,
2718
- 'type',
2719
- 'drag.drop' | 'clipboard.paste'
2720
- >
2721
- | InputBehaviorEvent_2
2722
- }
2723
- | {
2724
- type: StrictExtract_2<
2725
- | 'serialize'
2726
- | 'serialization.failure'
2727
- | 'serialization.success'
2728
- | 'deserialize'
2729
- | 'deserialization.failure'
2730
- | 'deserialization.success'
2731
- | 'split'
2732
- | 'delete'
2733
- | 'select'
2734
- | 'annotation.add'
2735
- | 'annotation.remove'
2736
- | 'block.set'
2737
- | 'block.unset'
2738
- | 'decorator.add'
2739
- | 'decorator.remove'
2740
- | 'delete.backward'
2741
- | 'delete.block'
2742
- | 'delete.forward'
2743
- | 'history.redo'
2744
- | 'history.undo'
2745
- | 'insert.inline object'
2746
- | 'insert.block'
2747
- | 'insert.span'
2748
- | 'insert.text'
2749
- | 'move.backward'
2750
- | 'move.block'
2751
- | 'move.forward'
2752
- | 'annotation.toggle'
2753
- | 'decorator.toggle'
2754
- | 'delete.text'
2755
- | 'insert.blocks'
2756
- | 'insert.break'
2757
- | 'insert.soft break'
2758
- | 'list item.add'
2759
- | 'list item.remove'
2760
- | 'list item.toggle'
2761
- | 'move.block down'
2762
- | 'move.block up'
2763
- | 'select.previous block'
2764
- | 'select.next block'
2765
- | 'style.add'
2766
- | 'style.remove'
2767
- | 'style.toggle',
2768
- 'deserialization.failure'
2769
- >
2770
- mimeType: MIMEType_2
2771
- reason: string
2772
- originEvent:
2773
- | PickFromUnion_2<
2774
- NativeBehaviorEvent_2,
2775
- 'type',
2776
- 'drag.drop' | 'clipboard.paste'
2777
- >
2778
- | InputBehaviorEvent_2
2779
- }
2780
- | {
2781
- type: StrictExtract_2<
2782
- | 'serialize'
2783
- | 'serialization.failure'
2784
- | 'serialization.success'
2785
- | 'deserialize'
2786
- | 'deserialization.failure'
2787
- | 'deserialization.success'
2788
- | 'split'
2789
- | 'delete'
2790
- | 'select'
2791
- | 'annotation.add'
2792
- | 'annotation.remove'
2793
- | 'block.set'
2794
- | 'block.unset'
2795
- | 'decorator.add'
2796
- | 'decorator.remove'
2797
- | 'delete.backward'
2798
- | 'delete.block'
2799
- | 'delete.forward'
2800
- | 'history.redo'
2801
- | 'history.undo'
2802
- | 'insert.inline object'
2803
- | 'insert.block'
2804
- | 'insert.span'
2805
- | 'insert.text'
2806
- | 'move.backward'
2807
- | 'move.block'
2808
- | 'move.forward'
2809
- | 'annotation.toggle'
2810
- | 'decorator.toggle'
2811
- | 'delete.text'
2812
- | 'insert.blocks'
2813
- | 'insert.break'
2814
- | 'insert.soft break'
2815
- | 'list item.add'
2816
- | 'list item.remove'
2817
- | 'list item.toggle'
2818
- | 'move.block down'
2819
- | 'move.block up'
2820
- | 'select.previous block'
2821
- | 'select.next block'
2822
- | 'style.add'
2823
- | 'style.remove'
2824
- | 'style.toggle',
2825
- 'serialization.success'
2826
- >
2827
- mimeType: MIMEType_2
2828
- data: string
2829
- originEvent: PickFromUnion_2<
2830
- NativeBehaviorEvent_2,
2831
- 'type',
2832
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2833
- >
2834
- }
2835
- | {
2836
- type: StrictExtract_2<
2837
- | 'serialize'
2838
- | 'serialization.failure'
2839
- | 'serialization.success'
2840
- | 'deserialize'
2841
- | 'deserialization.failure'
2842
- | 'deserialization.success'
2843
- | 'split'
2844
- | 'delete'
2845
- | 'select'
2846
- | 'annotation.add'
2847
- | 'annotation.remove'
2848
- | 'block.set'
2849
- | 'block.unset'
2850
- | 'decorator.add'
2851
- | 'decorator.remove'
2852
- | 'delete.backward'
2853
- | 'delete.block'
2854
- | 'delete.forward'
2855
- | 'history.redo'
2856
- | 'history.undo'
2857
- | 'insert.inline object'
2858
- | 'insert.block'
2859
- | 'insert.span'
2860
- | 'insert.text'
2861
- | 'move.backward'
2862
- | 'move.block'
2863
- | 'move.forward'
2864
- | 'annotation.toggle'
2865
- | 'decorator.toggle'
2866
- | 'delete.text'
2867
- | 'insert.blocks'
2868
- | 'insert.break'
2869
- | 'insert.soft break'
2870
- | 'list item.add'
2871
- | 'list item.remove'
2872
- | 'list item.toggle'
2873
- | 'move.block down'
2874
- | 'move.block up'
2875
- | 'select.previous block'
2876
- | 'select.next block'
2877
- | 'style.add'
2878
- | 'style.remove'
2879
- | 'style.toggle',
2880
- 'serialization.failure'
2881
- >
2882
- mimeType: MIMEType_2
2883
- reason: string
2884
- originEvent: PickFromUnion_2<
2885
- NativeBehaviorEvent_2,
2886
- 'type',
2887
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2888
- >
2889
- }
2890
- | {
2891
- type: StrictExtract_2<
2892
- | 'serialize'
2893
- | 'serialization.failure'
2894
- | 'serialization.success'
2895
- | 'deserialize'
2896
- | 'deserialization.failure'
2897
- | 'deserialization.success'
2898
- | 'split'
2899
- | 'delete'
2900
- | 'select'
2901
- | 'annotation.add'
2902
- | 'annotation.remove'
2903
- | 'block.set'
2904
- | 'block.unset'
2905
- | 'decorator.add'
2906
- | 'decorator.remove'
2907
- | 'delete.backward'
2908
- | 'delete.block'
2909
- | 'delete.forward'
2910
- | 'history.redo'
2911
- | 'history.undo'
2912
- | 'insert.inline object'
2913
- | 'insert.block'
2914
- | 'insert.span'
2915
- | 'insert.text'
2916
- | 'move.backward'
2917
- | 'move.block'
2918
- | 'move.forward'
2919
- | 'annotation.toggle'
2920
- | 'decorator.toggle'
2921
- | 'delete.text'
2922
- | 'insert.blocks'
2923
- | 'insert.break'
2924
- | 'insert.soft break'
2925
- | 'list item.add'
2926
- | 'list item.remove'
2927
- | 'list item.toggle'
2928
- | 'move.block down'
2929
- | 'move.block up'
2930
- | 'select.previous block'
2931
- | 'select.next block'
2932
- | 'style.add'
2933
- | 'style.remove'
2934
- | 'style.toggle',
2935
- 'insert.blocks'
2936
- >
2937
- blocks: Array<BlockWithOptionalKey_2>
2938
- placement: InsertPlacement_2
2939
- }
2940
- | {
2941
- type: StrictExtract_2<
2942
- | 'serialize'
2943
- | 'serialization.failure'
2944
- | 'serialization.success'
2945
- | 'deserialize'
2946
- | 'deserialization.failure'
2947
- | 'deserialization.success'
2948
- | 'split'
2949
- | 'delete'
2950
- | 'select'
2951
- | 'annotation.add'
2952
- | 'annotation.remove'
2953
- | 'block.set'
2954
- | 'block.unset'
2955
- | 'decorator.add'
2956
- | 'decorator.remove'
2957
- | 'delete.backward'
2958
- | 'delete.block'
2959
- | 'delete.forward'
2960
- | 'history.redo'
2961
- | 'history.undo'
2962
- | 'insert.inline object'
2963
- | 'insert.block'
2964
- | 'insert.span'
2965
- | 'insert.text'
2966
- | 'move.backward'
2967
- | 'move.block'
2968
- | 'move.forward'
2969
- | 'annotation.toggle'
2970
- | 'decorator.toggle'
2971
- | 'delete.text'
2972
- | 'insert.blocks'
2973
- | 'insert.break'
2974
- | 'insert.soft break'
2975
- | 'list item.add'
2976
- | 'list item.remove'
2977
- | 'list item.toggle'
2978
- | 'move.block down'
2979
- | 'move.block up'
2980
- | 'select.previous block'
2981
- | 'select.next block'
2982
- | 'style.add'
2983
- | 'style.remove'
2984
- | 'style.toggle',
2985
- 'insert.break'
2986
- >
2987
- }
2988
- | {
2989
- type: StrictExtract_2<
2990
- | 'serialize'
2991
- | 'serialization.failure'
2992
- | 'serialization.success'
2993
- | 'deserialize'
2994
- | 'deserialization.failure'
2995
- | 'deserialization.success'
2996
- | 'split'
2997
- | 'delete'
2998
- | 'select'
2999
- | 'annotation.add'
3000
- | 'annotation.remove'
3001
- | 'block.set'
3002
- | 'block.unset'
3003
- | 'decorator.add'
3004
- | 'decorator.remove'
3005
- | 'delete.backward'
3006
- | 'delete.block'
3007
- | 'delete.forward'
3008
- | 'history.redo'
3009
- | 'history.undo'
3010
- | 'insert.inline object'
3011
- | 'insert.block'
3012
- | 'insert.span'
3013
- | 'insert.text'
3014
- | 'move.backward'
3015
- | 'move.block'
3016
- | 'move.forward'
3017
- | 'annotation.toggle'
3018
- | 'decorator.toggle'
3019
- | 'delete.text'
3020
- | 'insert.blocks'
3021
- | 'insert.break'
3022
- | 'insert.soft break'
3023
- | 'list item.add'
3024
- | 'list item.remove'
3025
- | 'list item.toggle'
3026
- | 'move.block down'
3027
- | 'move.block up'
3028
- | 'select.previous block'
3029
- | 'select.next block'
3030
- | 'style.add'
3031
- | 'style.remove'
3032
- | 'style.toggle',
3033
- 'insert.soft break'
3034
- >
3035
- }
3036
- | {
3037
- type: StrictExtract_2<
3038
- | 'serialize'
3039
- | 'serialization.failure'
3040
- | 'serialization.success'
3041
- | 'deserialize'
3042
- | 'deserialization.failure'
3043
- | 'deserialization.success'
3044
- | 'split'
3045
- | 'delete'
3046
- | 'select'
3047
- | 'annotation.add'
3048
- | 'annotation.remove'
3049
- | 'block.set'
3050
- | 'block.unset'
3051
- | 'decorator.add'
3052
- | 'decorator.remove'
3053
- | 'delete.backward'
3054
- | 'delete.block'
3055
- | 'delete.forward'
3056
- | 'history.redo'
3057
- | 'history.undo'
3058
- | 'insert.inline object'
3059
- | 'insert.block'
3060
- | 'insert.span'
3061
- | 'insert.text'
3062
- | 'move.backward'
3063
- | 'move.block'
3064
- | 'move.forward'
3065
- | 'annotation.toggle'
3066
- | 'decorator.toggle'
3067
- | 'delete.text'
3068
- | 'insert.blocks'
3069
- | 'insert.break'
3070
- | 'insert.soft break'
3071
- | 'list item.add'
3072
- | 'list item.remove'
3073
- | 'list item.toggle'
3074
- | 'move.block down'
3075
- | 'move.block up'
3076
- | 'select.previous block'
3077
- | 'select.next block'
3078
- | 'style.add'
3079
- | 'style.remove'
3080
- | 'style.toggle',
3081
- 'list item.add'
3082
- >
3083
- listItem: string
3084
- }
3085
- | {
3086
- type: StrictExtract_2<
3087
- | 'serialize'
3088
- | 'serialization.failure'
3089
- | 'serialization.success'
3090
- | 'deserialize'
3091
- | 'deserialization.failure'
3092
- | 'deserialization.success'
3093
- | 'split'
3094
- | 'delete'
3095
- | 'select'
3096
- | 'annotation.add'
3097
- | 'annotation.remove'
3098
- | 'block.set'
3099
- | 'block.unset'
3100
- | 'decorator.add'
3101
- | 'decorator.remove'
3102
- | 'delete.backward'
3103
- | 'delete.block'
3104
- | 'delete.forward'
3105
- | 'history.redo'
3106
- | 'history.undo'
3107
- | 'insert.inline object'
3108
- | 'insert.block'
3109
- | 'insert.span'
3110
- | 'insert.text'
3111
- | 'move.backward'
3112
- | 'move.block'
3113
- | 'move.forward'
3114
- | 'annotation.toggle'
3115
- | 'decorator.toggle'
3116
- | 'delete.text'
3117
- | 'insert.blocks'
3118
- | 'insert.break'
3119
- | 'insert.soft break'
3120
- | 'list item.add'
3121
- | 'list item.remove'
3122
- | 'list item.toggle'
3123
- | 'move.block down'
3124
- | 'move.block up'
3125
- | 'select.previous block'
3126
- | 'select.next block'
3127
- | 'style.add'
3128
- | 'style.remove'
3129
- | 'style.toggle',
3130
- 'list item.remove'
3131
- >
3132
- listItem: string
3133
- }
3134
- | {
3135
- type: StrictExtract_2<
3136
- | 'serialize'
3137
- | 'serialization.failure'
3138
- | 'serialization.success'
3139
- | 'deserialize'
3140
- | 'deserialization.failure'
3141
- | 'deserialization.success'
3142
- | 'split'
3143
- | 'delete'
3144
- | 'select'
3145
- | 'annotation.add'
3146
- | 'annotation.remove'
3147
- | 'block.set'
3148
- | 'block.unset'
3149
- | 'decorator.add'
3150
- | 'decorator.remove'
3151
- | 'delete.backward'
3152
- | 'delete.block'
3153
- | 'delete.forward'
3154
- | 'history.redo'
3155
- | 'history.undo'
3156
- | 'insert.inline object'
3157
- | 'insert.block'
3158
- | 'insert.span'
3159
- | 'insert.text'
3160
- | 'move.backward'
3161
- | 'move.block'
3162
- | 'move.forward'
3163
- | 'annotation.toggle'
3164
- | 'decorator.toggle'
3165
- | 'delete.text'
3166
- | 'insert.blocks'
3167
- | 'insert.break'
3168
- | 'insert.soft break'
3169
- | 'list item.add'
3170
- | 'list item.remove'
3171
- | 'list item.toggle'
3172
- | 'move.block down'
3173
- | 'move.block up'
3174
- | 'select.previous block'
3175
- | 'select.next block'
3176
- | 'style.add'
3177
- | 'style.remove'
3178
- | 'style.toggle',
3179
- 'list item.toggle'
3180
- >
3181
- listItem: string
3182
- }
3183
- | {
3184
- type: StrictExtract_2<
3185
- | 'serialize'
3186
- | 'serialization.failure'
3187
- | 'serialization.success'
3188
- | 'deserialize'
3189
- | 'deserialization.failure'
3190
- | 'deserialization.success'
3191
- | 'split'
3192
- | 'delete'
3193
- | 'select'
3194
- | 'annotation.add'
3195
- | 'annotation.remove'
3196
- | 'block.set'
3197
- | 'block.unset'
3198
- | 'decorator.add'
3199
- | 'decorator.remove'
3200
- | 'delete.backward'
3201
- | 'delete.block'
3202
- | 'delete.forward'
3203
- | 'history.redo'
3204
- | 'history.undo'
3205
- | 'insert.inline object'
3206
- | 'insert.block'
3207
- | 'insert.span'
3208
- | 'insert.text'
3209
- | 'move.backward'
3210
- | 'move.block'
3211
- | 'move.forward'
3212
- | 'annotation.toggle'
3213
- | 'decorator.toggle'
3214
- | 'delete.text'
3215
- | 'insert.blocks'
3216
- | 'insert.break'
3217
- | 'insert.soft break'
3218
- | 'list item.add'
3219
- | 'list item.remove'
3220
- | 'list item.toggle'
3221
- | 'move.block down'
3222
- | 'move.block up'
3223
- | 'select.previous block'
3224
- | 'select.next block'
3225
- | 'style.add'
3226
- | 'style.remove'
3227
- | 'style.toggle',
3228
- 'move.block down'
3229
- >
3230
- at: [KeyedSegment]
3231
- }
3232
- | {
3233
- type: StrictExtract_2<
3234
- | 'serialize'
3235
- | 'serialization.failure'
3236
- | 'serialization.success'
3237
- | 'deserialize'
3238
- | 'deserialization.failure'
3239
- | 'deserialization.success'
3240
- | 'split'
3241
- | 'delete'
3242
- | 'select'
3243
- | 'annotation.add'
3244
- | 'annotation.remove'
3245
- | 'block.set'
3246
- | 'block.unset'
3247
- | 'decorator.add'
3248
- | 'decorator.remove'
3249
- | 'delete.backward'
3250
- | 'delete.block'
3251
- | 'delete.forward'
3252
- | 'history.redo'
3253
- | 'history.undo'
3254
- | 'insert.inline object'
3255
- | 'insert.block'
3256
- | 'insert.span'
3257
- | 'insert.text'
3258
- | 'move.backward'
3259
- | 'move.block'
3260
- | 'move.forward'
3261
- | 'annotation.toggle'
3262
- | 'decorator.toggle'
3263
- | 'delete.text'
3264
- | 'insert.blocks'
3265
- | 'insert.break'
3266
- | 'insert.soft break'
3267
- | 'list item.add'
3268
- | 'list item.remove'
3269
- | 'list item.toggle'
3270
- | 'move.block down'
3271
- | 'move.block up'
3272
- | 'select.previous block'
3273
- | 'select.next block'
3274
- | 'style.add'
3275
- | 'style.remove'
3276
- | 'style.toggle',
3277
- 'move.block up'
3278
- >
3279
- at: [KeyedSegment]
3280
- }
3281
- | {
3282
- type: StrictExtract_2<
3283
- | 'serialize'
3284
- | 'serialization.failure'
3285
- | 'serialization.success'
3286
- | 'deserialize'
3287
- | 'deserialization.failure'
3288
- | 'deserialization.success'
3289
- | 'split'
3290
- | 'delete'
3291
- | 'select'
3292
- | 'annotation.add'
3293
- | 'annotation.remove'
3294
- | 'block.set'
3295
- | 'block.unset'
3296
- | 'decorator.add'
3297
- | 'decorator.remove'
3298
- | 'delete.backward'
3299
- | 'delete.block'
3300
- | 'delete.forward'
3301
- | 'history.redo'
3302
- | 'history.undo'
3303
- | 'insert.inline object'
3304
- | 'insert.block'
3305
- | 'insert.span'
3306
- | 'insert.text'
3307
- | 'move.backward'
3308
- | 'move.block'
3309
- | 'move.forward'
3310
- | 'annotation.toggle'
3311
- | 'decorator.toggle'
3312
- | 'delete.text'
3313
- | 'insert.blocks'
3314
- | 'insert.break'
3315
- | 'insert.soft break'
3316
- | 'list item.add'
3317
- | 'list item.remove'
3318
- | 'list item.toggle'
3319
- | 'move.block down'
3320
- | 'move.block up'
3321
- | 'select.previous block'
3322
- | 'select.next block'
3323
- | 'style.add'
3324
- | 'style.remove'
3325
- | 'style.toggle',
3326
- 'select.previous block'
3327
- >
3328
- select?: 'start' | 'end'
3329
- }
3330
- | {
3331
- type: StrictExtract_2<
3332
- | 'serialize'
3333
- | 'serialization.failure'
3334
- | 'serialization.success'
3335
- | 'deserialize'
3336
- | 'deserialization.failure'
3337
- | 'deserialization.success'
3338
- | 'split'
3339
- | 'delete'
3340
- | 'select'
3341
- | 'annotation.add'
3342
- | 'annotation.remove'
3343
- | 'block.set'
3344
- | 'block.unset'
3345
- | 'decorator.add'
3346
- | 'decorator.remove'
3347
- | 'delete.backward'
3348
- | 'delete.block'
3349
- | 'delete.forward'
3350
- | 'history.redo'
3351
- | 'history.undo'
3352
- | 'insert.inline object'
3353
- | 'insert.block'
3354
- | 'insert.span'
3355
- | 'insert.text'
3356
- | 'move.backward'
3357
- | 'move.block'
3358
- | 'move.forward'
3359
- | 'annotation.toggle'
3360
- | 'decorator.toggle'
3361
- | 'delete.text'
3362
- | 'insert.blocks'
3363
- | 'insert.break'
3364
- | 'insert.soft break'
3365
- | 'list item.add'
3366
- | 'list item.remove'
3367
- | 'list item.toggle'
3368
- | 'move.block down'
3369
- | 'move.block up'
3370
- | 'select.previous block'
3371
- | 'select.next block'
3372
- | 'style.add'
3373
- | 'style.remove'
3374
- | 'style.toggle',
3375
- 'select.next block'
3376
- >
3377
- select?: 'start' | 'end'
3378
- }
3379
- | {
3380
- type: StrictExtract_2<
3381
- | 'serialize'
3382
- | 'serialization.failure'
3383
- | 'serialization.success'
3384
- | 'deserialize'
3385
- | 'deserialization.failure'
3386
- | 'deserialization.success'
3387
- | 'split'
3388
- | 'delete'
3389
- | 'select'
3390
- | 'annotation.add'
3391
- | 'annotation.remove'
3392
- | 'block.set'
3393
- | 'block.unset'
3394
- | 'decorator.add'
3395
- | 'decorator.remove'
3396
- | 'delete.backward'
3397
- | 'delete.block'
3398
- | 'delete.forward'
3399
- | 'history.redo'
3400
- | 'history.undo'
3401
- | 'insert.inline object'
3402
- | 'insert.block'
3403
- | 'insert.span'
3404
- | 'insert.text'
3405
- | 'move.backward'
3406
- | 'move.block'
3407
- | 'move.forward'
3408
- | 'annotation.toggle'
3409
- | 'decorator.toggle'
3410
- | 'delete.text'
3411
- | 'insert.blocks'
3412
- | 'insert.break'
3413
- | 'insert.soft break'
3414
- | 'list item.add'
3415
- | 'list item.remove'
3416
- | 'list item.toggle'
3417
- | 'move.block down'
3418
- | 'move.block up'
3419
- | 'select.previous block'
3420
- | 'select.next block'
3421
- | 'style.add'
3422
- | 'style.remove'
3423
- | 'style.toggle',
3424
- 'split'
3425
- >
3426
- }
3427
- | {
3428
- type: StrictExtract_2<
3429
- | 'serialize'
3430
- | 'serialization.failure'
3431
- | 'serialization.success'
3432
- | 'deserialize'
3433
- | 'deserialization.failure'
3434
- | 'deserialization.success'
3435
- | 'split'
3436
- | 'delete'
3437
- | 'select'
3438
- | 'annotation.add'
3439
- | 'annotation.remove'
3440
- | 'block.set'
3441
- | 'block.unset'
3442
- | 'decorator.add'
3443
- | 'decorator.remove'
3444
- | 'delete.backward'
3445
- | 'delete.block'
3446
- | 'delete.forward'
3447
- | 'history.redo'
3448
- | 'history.undo'
3449
- | 'insert.inline object'
3450
- | 'insert.block'
3451
- | 'insert.span'
3452
- | 'insert.text'
3453
- | 'move.backward'
3454
- | 'move.block'
3455
- | 'move.forward'
3456
- | 'annotation.toggle'
3457
- | 'decorator.toggle'
3458
- | 'delete.text'
3459
- | 'insert.blocks'
3460
- | 'insert.break'
3461
- | 'insert.soft break'
3462
- | 'list item.add'
3463
- | 'list item.remove'
3464
- | 'list item.toggle'
3465
- | 'move.block down'
3466
- | 'move.block up'
3467
- | 'select.previous block'
3468
- | 'select.next block'
3469
- | 'style.add'
3470
- | 'style.remove'
3471
- | 'style.toggle',
3472
- 'style.add'
3473
- >
3474
- style: string
3475
- }
3476
- | {
3477
- type: StrictExtract_2<
3478
- | 'serialize'
3479
- | 'serialization.failure'
3480
- | 'serialization.success'
3481
- | 'deserialize'
3482
- | 'deserialization.failure'
3483
- | 'deserialization.success'
3484
- | 'split'
3485
- | 'delete'
3486
- | 'select'
3487
- | 'annotation.add'
3488
- | 'annotation.remove'
3489
- | 'block.set'
3490
- | 'block.unset'
3491
- | 'decorator.add'
3492
- | 'decorator.remove'
3493
- | 'delete.backward'
3494
- | 'delete.block'
3495
- | 'delete.forward'
3496
- | 'history.redo'
3497
- | 'history.undo'
3498
- | 'insert.inline object'
3499
- | 'insert.block'
3500
- | 'insert.span'
3501
- | 'insert.text'
3502
- | 'move.backward'
3503
- | 'move.block'
3504
- | 'move.forward'
3505
- | 'annotation.toggle'
3506
- | 'decorator.toggle'
3507
- | 'delete.text'
3508
- | 'insert.blocks'
3509
- | 'insert.break'
3510
- | 'insert.soft break'
3511
- | 'list item.add'
3512
- | 'list item.remove'
3513
- | 'list item.toggle'
3514
- | 'move.block down'
3515
- | 'move.block up'
3516
- | 'select.previous block'
3517
- | 'select.next block'
3518
- | 'style.add'
3519
- | 'style.remove'
3520
- | 'style.toggle',
3521
- 'style.remove'
3522
- >
3523
- style: string
3524
- }
3525
- | {
3526
- type: StrictExtract_2<
3527
- | 'serialize'
3528
- | 'serialization.failure'
3529
- | 'serialization.success'
3530
- | 'deserialize'
3531
- | 'deserialization.failure'
3532
- | 'deserialization.success'
3533
- | 'split'
3534
- | 'delete'
3535
- | 'select'
3536
- | 'annotation.add'
3537
- | 'annotation.remove'
3538
- | 'block.set'
3539
- | 'block.unset'
3540
- | 'decorator.add'
3541
- | 'decorator.remove'
3542
- | 'delete.backward'
3543
- | 'delete.block'
3544
- | 'delete.forward'
3545
- | 'history.redo'
3546
- | 'history.undo'
3547
- | 'insert.inline object'
3548
- | 'insert.block'
3549
- | 'insert.span'
3550
- | 'insert.text'
3551
- | 'move.backward'
3552
- | 'move.block'
3553
- | 'move.forward'
3554
- | 'annotation.toggle'
3555
- | 'decorator.toggle'
3556
- | 'delete.text'
3557
- | 'insert.blocks'
3558
- | 'insert.break'
3559
- | 'insert.soft break'
3560
- | 'list item.add'
3561
- | 'list item.remove'
3562
- | 'list item.toggle'
3563
- | 'move.block down'
3564
- | 'move.block up'
3565
- | 'select.previous block'
3566
- | 'select.next block'
3567
- | 'style.add'
3568
- | 'style.remove'
3569
- | 'style.toggle',
3570
- 'style.toggle'
3571
- >
3572
- style: string
3573
- }
3574
- | {
3575
- type: StrictExtract_2<
3576
- | 'clipboard.copy'
3577
- | 'clipboard.cut'
3578
- | 'drag.dragstart'
3579
- | 'clipboard.paste'
3580
- | 'drag.drag'
3581
- | 'drag.dragend'
3582
- | 'drag.dragenter'
3583
- | 'drag.dragover'
3584
- | 'drag.dragleave'
3585
- | 'drag.drop'
3586
- | 'input.*'
3587
- | 'keyboard.keydown'
3588
- | 'keyboard.keyup'
3589
- | 'mouse.click',
3590
- 'clipboard.copy'
3591
- >
3592
- originEvent: {
3593
- dataTransfer: DataTransfer
3594
- }
3595
- position: Pick<EventPosition, 'selection'>
3596
- }
3597
- | {
3598
- type: StrictExtract_2<
3599
- | 'clipboard.copy'
3600
- | 'clipboard.cut'
3601
- | 'drag.dragstart'
3602
- | 'clipboard.paste'
3603
- | 'drag.drag'
3604
- | 'drag.dragend'
3605
- | 'drag.dragenter'
3606
- | 'drag.dragover'
3607
- | 'drag.dragleave'
3608
- | 'drag.drop'
3609
- | 'input.*'
3610
- | 'keyboard.keydown'
3611
- | 'keyboard.keyup'
3612
- | 'mouse.click',
3613
- 'clipboard.cut'
3614
- >
3615
- originEvent: {
3616
- dataTransfer: DataTransfer
3617
- }
3618
- position: Pick<EventPosition, 'selection'>
3619
- }
3620
- | {
3621
- type: StrictExtract_2<
3622
- | 'clipboard.copy'
3623
- | 'clipboard.cut'
3624
- | 'drag.dragstart'
3625
- | 'clipboard.paste'
3626
- | 'drag.drag'
3627
- | 'drag.dragend'
3628
- | 'drag.dragenter'
3629
- | 'drag.dragover'
3630
- | 'drag.dragleave'
3631
- | 'drag.drop'
3632
- | 'input.*'
3633
- | 'keyboard.keydown'
3634
- | 'keyboard.keyup'
3635
- | 'mouse.click',
3636
- 'clipboard.paste'
3637
- >
3638
- originEvent: {
3639
- dataTransfer: DataTransfer
3640
- }
3641
- position: Pick<EventPosition, 'selection'>
3642
- }
3643
- | {
3644
- type: StrictExtract_2<
3645
- | 'clipboard.copy'
3646
- | 'clipboard.cut'
3647
- | 'drag.dragstart'
3648
- | 'clipboard.paste'
3649
- | 'drag.drag'
3650
- | 'drag.dragend'
3651
- | 'drag.dragenter'
3652
- | 'drag.dragover'
3653
- | 'drag.dragleave'
3654
- | 'drag.drop'
3655
- | 'input.*'
3656
- | 'keyboard.keydown'
3657
- | 'keyboard.keyup'
3658
- | 'mouse.click',
3659
- 'drag.dragstart'
3660
- >
3661
- originEvent: {
3662
- dataTransfer: DataTransfer
3663
- }
3664
- position: Pick<EventPosition, 'selection'>
3665
- }
3666
- | {
3667
- type: StrictExtract_2<
3668
- | 'clipboard.copy'
3669
- | 'clipboard.cut'
3670
- | 'drag.dragstart'
3671
- | 'clipboard.paste'
3672
- | 'drag.drag'
3673
- | 'drag.dragend'
3674
- | 'drag.dragenter'
3675
- | 'drag.dragover'
3676
- | 'drag.dragleave'
3677
- | 'drag.drop'
3678
- | 'input.*'
3679
- | 'keyboard.keydown'
3680
- | 'keyboard.keyup'
3681
- | 'mouse.click',
3682
- 'drag.drag'
3683
- >
3684
- originEvent: {
3685
- dataTransfer: DataTransfer
3686
- }
3687
- }
3688
- | {
3689
- type: StrictExtract_2<
3690
- | 'clipboard.copy'
3691
- | 'clipboard.cut'
3692
- | 'drag.dragstart'
3693
- | 'clipboard.paste'
3694
- | 'drag.drag'
3695
- | 'drag.dragend'
3696
- | 'drag.dragenter'
3697
- | 'drag.dragover'
3698
- | 'drag.dragleave'
3699
- | 'drag.drop'
3700
- | 'input.*'
3701
- | 'keyboard.keydown'
3702
- | 'keyboard.keyup'
3703
- | 'mouse.click',
3704
- 'drag.dragend'
3705
- >
3706
- originEvent: {
3707
- dataTransfer: DataTransfer
3708
- }
3709
- }
3710
- | {
3711
- type: StrictExtract_2<
3712
- | 'clipboard.copy'
3713
- | 'clipboard.cut'
3714
- | 'drag.dragstart'
3715
- | 'clipboard.paste'
3716
- | 'drag.drag'
3717
- | 'drag.dragend'
3718
- | 'drag.dragenter'
3719
- | 'drag.dragover'
3720
- | 'drag.dragleave'
3721
- | 'drag.drop'
3722
- | 'input.*'
3723
- | 'keyboard.keydown'
3724
- | 'keyboard.keyup'
3725
- | 'mouse.click',
3726
- 'drag.dragenter'
3727
- >
3728
- originEvent: {
3729
- dataTransfer: DataTransfer
3730
- }
3731
- position: EventPosition
3732
- }
3733
- | {
3734
- type: StrictExtract_2<
3735
- | 'clipboard.copy'
3736
- | 'clipboard.cut'
3737
- | 'drag.dragstart'
3738
- | 'clipboard.paste'
3739
- | 'drag.drag'
3740
- | 'drag.dragend'
3741
- | 'drag.dragenter'
3742
- | 'drag.dragover'
3743
- | 'drag.dragleave'
3744
- | 'drag.drop'
3745
- | 'input.*'
3746
- | 'keyboard.keydown'
3747
- | 'keyboard.keyup'
3748
- | 'mouse.click',
3749
- 'drag.dragover'
3750
- >
3751
- originEvent: {
3752
- dataTransfer: DataTransfer
3753
- }
3754
- position: EventPosition
3755
- }
3756
- | {
3757
- type: StrictExtract_2<
3758
- | 'clipboard.copy'
3759
- | 'clipboard.cut'
3760
- | 'drag.dragstart'
3761
- | 'clipboard.paste'
3762
- | 'drag.drag'
3763
- | 'drag.dragend'
3764
- | 'drag.dragenter'
3765
- | 'drag.dragover'
3766
- | 'drag.dragleave'
3767
- | 'drag.drop'
3768
- | 'input.*'
3769
- | 'keyboard.keydown'
3770
- | 'keyboard.keyup'
3771
- | 'mouse.click',
3772
- 'drag.drop'
3773
- >
3774
- originEvent: {
3775
- dataTransfer: DataTransfer
3776
- }
3777
- position: EventPosition
3778
- }
3779
- | {
3780
- type: StrictExtract_2<
3781
- | 'clipboard.copy'
3782
- | 'clipboard.cut'
3783
- | 'drag.dragstart'
3784
- | 'clipboard.paste'
3785
- | 'drag.drag'
3786
- | 'drag.dragend'
3787
- | 'drag.dragenter'
3788
- | 'drag.dragover'
3789
- | 'drag.dragleave'
3790
- | 'drag.drop'
3791
- | 'input.*'
3792
- | 'keyboard.keydown'
3793
- | 'keyboard.keyup'
3794
- | 'mouse.click',
3795
- 'drag.dragleave'
3796
- >
3797
- originEvent: {
3798
- dataTransfer: DataTransfer
3799
- }
3800
- }
3801
- | InputBehaviorEvent_2
3802
- | {
3803
- type: StrictExtract_2<
3804
- | 'clipboard.copy'
3805
- | 'clipboard.cut'
3806
- | 'drag.dragstart'
3807
- | 'clipboard.paste'
3808
- | 'drag.drag'
3809
- | 'drag.dragend'
3810
- | 'drag.dragenter'
3811
- | 'drag.dragover'
3812
- | 'drag.dragleave'
3813
- | 'drag.drop'
3814
- | 'input.*'
3815
- | 'keyboard.keydown'
3816
- | 'keyboard.keyup'
3817
- | 'mouse.click',
3818
- 'keyboard.keydown'
3819
- >
3820
- originEvent: Pick<
3821
- KeyboardEvent,
3822
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
3823
- >
3824
- }
3825
- | {
3826
- type: StrictExtract_2<
3827
- | 'clipboard.copy'
3828
- | 'clipboard.cut'
3829
- | 'drag.dragstart'
3830
- | 'clipboard.paste'
3831
- | 'drag.drag'
3832
- | 'drag.dragend'
3833
- | 'drag.dragenter'
3834
- | 'drag.dragover'
3835
- | 'drag.dragleave'
3836
- | 'drag.drop'
3837
- | 'input.*'
3838
- | 'keyboard.keydown'
3839
- | 'keyboard.keyup'
3840
- | 'mouse.click',
3841
- 'keyboard.keyup'
3842
- >
3843
- originEvent: Pick<
3844
- KeyboardEvent,
3845
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
3846
- >
3847
- }
3848
- | MouseBehaviorEvent_2
3849
- | CustomBehaviorEvent_2<
3850
- Record<string, unknown>,
3851
- string,
3852
- `custom.${string}`
3853
- >
3854
- >
3855
- >
1295
+ behaviors: Set<never>
3856
1296
  converters: Set<Converter>
3857
1297
  getLegacySchema: () => PortableTextMemberSchemaTypes
3858
1298
  keyGenerator: () => string
@@ -3868,7 +1308,7 @@ declare const editorMachine: StateMachine<
3868
1308
  readonly 'notify.blurred': {
3869
1309
  readonly actions: ActionFunction<
3870
1310
  {
3871
- behaviors: Set<Behavior>
1311
+ behaviors: Set<BehaviorConfig>
3872
1312
  converters: Set<Converter>
3873
1313
  getLegacySchema: () => PortableTextMemberSchemaTypes
3874
1314
  keyGenerator: () => string
@@ -3892,14 +1332,6 @@ declare const editorMachine: StateMachine<
3892
1332
  | InternalPatchEvent
3893
1333
  | MutationEvent
3894
1334
  | PatchesEvent
3895
- | {
3896
- type: 'add behavior'
3897
- behavior: Behavior
3898
- }
3899
- | {
3900
- type: 'remove behavior'
3901
- behavior: Behavior
3902
- }
3903
1335
  | {
3904
1336
  type: 'update readOnly'
3905
1337
  readOnly: boolean
@@ -3920,6 +1352,14 @@ declare const editorMachine: StateMachine<
3920
1352
  type: 'update maxBlocks'
3921
1353
  maxBlocks: number | undefined
3922
1354
  }
1355
+ | {
1356
+ type: 'add behavior'
1357
+ behaviorConfig: BehaviorConfig
1358
+ }
1359
+ | {
1360
+ type: 'remove behavior'
1361
+ behaviorConfig: BehaviorConfig
1362
+ }
3923
1363
  | {
3924
1364
  type: 'blur'
3925
1365
  editor: PortableTextSlateEditor
@@ -4072,7 +1512,7 @@ declare const editorMachine: StateMachine<
4072
1512
  readonly 'notify.done loading': {
4073
1513
  readonly actions: ActionFunction<
4074
1514
  {
4075
- behaviors: Set<Behavior>
1515
+ behaviors: Set<BehaviorConfig>
4076
1516
  converters: Set<Converter>
4077
1517
  getLegacySchema: () => PortableTextMemberSchemaTypes
4078
1518
  keyGenerator: () => string
@@ -4095,14 +1535,6 @@ declare const editorMachine: StateMachine<
4095
1535
  | InternalPatchEvent
4096
1536
  | MutationEvent
4097
1537
  | PatchesEvent
4098
- | {
4099
- type: 'add behavior'
4100
- behavior: Behavior
4101
- }
4102
- | {
4103
- type: 'remove behavior'
4104
- behavior: Behavior
4105
- }
4106
1538
  | {
4107
1539
  type: 'update readOnly'
4108
1540
  readOnly: boolean
@@ -4123,6 +1555,14 @@ declare const editorMachine: StateMachine<
4123
1555
  type: 'update maxBlocks'
4124
1556
  maxBlocks: number | undefined
4125
1557
  }
1558
+ | {
1559
+ type: 'add behavior'
1560
+ behaviorConfig: BehaviorConfig
1561
+ }
1562
+ | {
1563
+ type: 'remove behavior'
1564
+ behaviorConfig: BehaviorConfig
1565
+ }
4126
1566
  | {
4127
1567
  type: 'blur'
4128
1568
  editor: PortableTextSlateEditor
@@ -4275,7 +1715,7 @@ declare const editorMachine: StateMachine<
4275
1715
  readonly 'notify.error': {
4276
1716
  readonly actions: ActionFunction<
4277
1717
  {
4278
- behaviors: Set<Behavior>
1718
+ behaviors: Set<BehaviorConfig>
4279
1719
  converters: Set<Converter>
4280
1720
  getLegacySchema: () => PortableTextMemberSchemaTypes
4281
1721
  keyGenerator: () => string
@@ -4301,14 +1741,6 @@ declare const editorMachine: StateMachine<
4301
1741
  | InternalPatchEvent
4302
1742
  | MutationEvent
4303
1743
  | PatchesEvent
4304
- | {
4305
- type: 'add behavior'
4306
- behavior: Behavior
4307
- }
4308
- | {
4309
- type: 'remove behavior'
4310
- behavior: Behavior
4311
- }
4312
1744
  | {
4313
1745
  type: 'update readOnly'
4314
1746
  readOnly: boolean
@@ -4329,6 +1761,14 @@ declare const editorMachine: StateMachine<
4329
1761
  type: 'update maxBlocks'
4330
1762
  maxBlocks: number | undefined
4331
1763
  }
1764
+ | {
1765
+ type: 'add behavior'
1766
+ behaviorConfig: BehaviorConfig
1767
+ }
1768
+ | {
1769
+ type: 'remove behavior'
1770
+ behaviorConfig: BehaviorConfig
1771
+ }
4332
1772
  | {
4333
1773
  type: 'blur'
4334
1774
  editor: PortableTextSlateEditor
@@ -4481,7 +1921,7 @@ declare const editorMachine: StateMachine<
4481
1921
  readonly 'notify.invalid value': {
4482
1922
  readonly actions: ActionFunction<
4483
1923
  {
4484
- behaviors: Set<Behavior>
1924
+ behaviors: Set<BehaviorConfig>
4485
1925
  converters: Set<Converter>
4486
1926
  getLegacySchema: () => PortableTextMemberSchemaTypes
4487
1927
  keyGenerator: () => string
@@ -4506,14 +1946,6 @@ declare const editorMachine: StateMachine<
4506
1946
  | InternalPatchEvent
4507
1947
  | MutationEvent
4508
1948
  | PatchesEvent
4509
- | {
4510
- type: 'add behavior'
4511
- behavior: Behavior
4512
- }
4513
- | {
4514
- type: 'remove behavior'
4515
- behavior: Behavior
4516
- }
4517
1949
  | {
4518
1950
  type: 'update readOnly'
4519
1951
  readOnly: boolean
@@ -4534,6 +1966,14 @@ declare const editorMachine: StateMachine<
4534
1966
  type: 'update maxBlocks'
4535
1967
  maxBlocks: number | undefined
4536
1968
  }
1969
+ | {
1970
+ type: 'add behavior'
1971
+ behaviorConfig: BehaviorConfig
1972
+ }
1973
+ | {
1974
+ type: 'remove behavior'
1975
+ behaviorConfig: BehaviorConfig
1976
+ }
4537
1977
  | {
4538
1978
  type: 'blur'
4539
1979
  editor: PortableTextSlateEditor
@@ -4686,7 +2126,7 @@ declare const editorMachine: StateMachine<
4686
2126
  readonly 'notify.focused': {
4687
2127
  readonly actions: ActionFunction<
4688
2128
  {
4689
- behaviors: Set<Behavior>
2129
+ behaviors: Set<BehaviorConfig>
4690
2130
  converters: Set<Converter>
4691
2131
  getLegacySchema: () => PortableTextMemberSchemaTypes
4692
2132
  keyGenerator: () => string
@@ -4710,14 +2150,6 @@ declare const editorMachine: StateMachine<
4710
2150
  | InternalPatchEvent
4711
2151
  | MutationEvent
4712
2152
  | PatchesEvent
4713
- | {
4714
- type: 'add behavior'
4715
- behavior: Behavior
4716
- }
4717
- | {
4718
- type: 'remove behavior'
4719
- behavior: Behavior
4720
- }
4721
2153
  | {
4722
2154
  type: 'update readOnly'
4723
2155
  readOnly: boolean
@@ -4738,6 +2170,14 @@ declare const editorMachine: StateMachine<
4738
2170
  type: 'update maxBlocks'
4739
2171
  maxBlocks: number | undefined
4740
2172
  }
2173
+ | {
2174
+ type: 'add behavior'
2175
+ behaviorConfig: BehaviorConfig
2176
+ }
2177
+ | {
2178
+ type: 'remove behavior'
2179
+ behaviorConfig: BehaviorConfig
2180
+ }
4741
2181
  | {
4742
2182
  type: 'blur'
4743
2183
  editor: PortableTextSlateEditor
@@ -4891,7 +2331,7 @@ declare const editorMachine: StateMachine<
4891
2331
  readonly actions: readonly [
4892
2332
  ActionFunction<
4893
2333
  {
4894
- behaviors: Set<Behavior>
2334
+ behaviors: Set<BehaviorConfig>
4895
2335
  converters: Set<Converter>
4896
2336
  getLegacySchema: () => PortableTextMemberSchemaTypes
4897
2337
  keyGenerator: () => string
@@ -4915,14 +2355,6 @@ declare const editorMachine: StateMachine<
4915
2355
  | InternalPatchEvent
4916
2356
  | MutationEvent
4917
2357
  | PatchesEvent
4918
- | {
4919
- type: 'add behavior'
4920
- behavior: Behavior
4921
- }
4922
- | {
4923
- type: 'remove behavior'
4924
- behavior: Behavior
4925
- }
4926
2358
  | {
4927
2359
  type: 'update readOnly'
4928
2360
  readOnly: boolean
@@ -4943,6 +2375,14 @@ declare const editorMachine: StateMachine<
4943
2375
  type: 'update maxBlocks'
4944
2376
  maxBlocks: number | undefined
4945
2377
  }
2378
+ | {
2379
+ type: 'add behavior'
2380
+ behaviorConfig: BehaviorConfig
2381
+ }
2382
+ | {
2383
+ type: 'remove behavior'
2384
+ behaviorConfig: BehaviorConfig
2385
+ }
4946
2386
  | {
4947
2387
  type: 'blur'
4948
2388
  editor: PortableTextSlateEditor
@@ -5047,7 +2487,7 @@ declare const editorMachine: StateMachine<
5047
2487
  >,
5048
2488
  ActionFunction<
5049
2489
  {
5050
- behaviors: Set<Behavior>
2490
+ behaviors: Set<BehaviorConfig>
5051
2491
  converters: Set<Converter>
5052
2492
  getLegacySchema: () => PortableTextMemberSchemaTypes
5053
2493
  keyGenerator: () => string
@@ -5071,14 +2511,6 @@ declare const editorMachine: StateMachine<
5071
2511
  | InternalPatchEvent
5072
2512
  | MutationEvent
5073
2513
  | PatchesEvent
5074
- | {
5075
- type: 'add behavior'
5076
- behavior: Behavior
5077
- }
5078
- | {
5079
- type: 'remove behavior'
5080
- behavior: Behavior
5081
- }
5082
2514
  | {
5083
2515
  type: 'update readOnly'
5084
2516
  readOnly: boolean
@@ -5099,6 +2531,14 @@ declare const editorMachine: StateMachine<
5099
2531
  type: 'update maxBlocks'
5100
2532
  maxBlocks: number | undefined
5101
2533
  }
2534
+ | {
2535
+ type: 'add behavior'
2536
+ behaviorConfig: BehaviorConfig
2537
+ }
2538
+ | {
2539
+ type: 'remove behavior'
2540
+ behaviorConfig: BehaviorConfig
2541
+ }
5102
2542
  | {
5103
2543
  type: 'blur'
5104
2544
  editor: PortableTextSlateEditor
@@ -5252,7 +2692,7 @@ declare const editorMachine: StateMachine<
5252
2692
  readonly 'notify.unset': {
5253
2693
  readonly actions: ActionFunction<
5254
2694
  {
5255
- behaviors: Set<Behavior>
2695
+ behaviors: Set<BehaviorConfig>
5256
2696
  converters: Set<Converter>
5257
2697
  getLegacySchema: () => PortableTextMemberSchemaTypes
5258
2698
  keyGenerator: () => string
@@ -5276,14 +2716,6 @@ declare const editorMachine: StateMachine<
5276
2716
  | InternalPatchEvent
5277
2717
  | MutationEvent
5278
2718
  | PatchesEvent
5279
- | {
5280
- type: 'add behavior'
5281
- behavior: Behavior
5282
- }
5283
- | {
5284
- type: 'remove behavior'
5285
- behavior: Behavior
5286
- }
5287
2719
  | {
5288
2720
  type: 'update readOnly'
5289
2721
  readOnly: boolean
@@ -5304,6 +2736,14 @@ declare const editorMachine: StateMachine<
5304
2736
  type: 'update maxBlocks'
5305
2737
  maxBlocks: number | undefined
5306
2738
  }
2739
+ | {
2740
+ type: 'add behavior'
2741
+ behaviorConfig: BehaviorConfig
2742
+ }
2743
+ | {
2744
+ type: 'remove behavior'
2745
+ behaviorConfig: BehaviorConfig
2746
+ }
5307
2747
  | {
5308
2748
  type: 'blur'
5309
2749
  editor: PortableTextSlateEditor
@@ -5456,7 +2896,7 @@ declare const editorMachine: StateMachine<
5456
2896
  readonly 'notify.loading': {
5457
2897
  readonly actions: ActionFunction<
5458
2898
  {
5459
- behaviors: Set<Behavior>
2899
+ behaviors: Set<BehaviorConfig>
5460
2900
  converters: Set<Converter>
5461
2901
  getLegacySchema: () => PortableTextMemberSchemaTypes
5462
2902
  keyGenerator: () => string
@@ -5479,14 +2919,6 @@ declare const editorMachine: StateMachine<
5479
2919
  | InternalPatchEvent
5480
2920
  | MutationEvent
5481
2921
  | PatchesEvent
5482
- | {
5483
- type: 'add behavior'
5484
- behavior: Behavior
5485
- }
5486
- | {
5487
- type: 'remove behavior'
5488
- behavior: Behavior
5489
- }
5490
2922
  | {
5491
2923
  type: 'update readOnly'
5492
2924
  readOnly: boolean
@@ -5507,6 +2939,14 @@ declare const editorMachine: StateMachine<
5507
2939
  type: 'update maxBlocks'
5508
2940
  maxBlocks: number | undefined
5509
2941
  }
2942
+ | {
2943
+ type: 'add behavior'
2944
+ behaviorConfig: BehaviorConfig
2945
+ }
2946
+ | {
2947
+ type: 'remove behavior'
2948
+ behaviorConfig: BehaviorConfig
2949
+ }
5510
2950
  | {
5511
2951
  type: 'blur'
5512
2952
  editor: PortableTextSlateEditor
@@ -5659,7 +3099,7 @@ declare const editorMachine: StateMachine<
5659
3099
  readonly 'notify.value changed': {
5660
3100
  readonly actions: ActionFunction<
5661
3101
  {
5662
- behaviors: Set<Behavior>
3102
+ behaviors: Set<BehaviorConfig>
5663
3103
  converters: Set<Converter>
5664
3104
  getLegacySchema: () => PortableTextMemberSchemaTypes
5665
3105
  keyGenerator: () => string
@@ -5683,14 +3123,6 @@ declare const editorMachine: StateMachine<
5683
3123
  | InternalPatchEvent
5684
3124
  | MutationEvent
5685
3125
  | PatchesEvent
5686
- | {
5687
- type: 'add behavior'
5688
- behavior: Behavior
5689
- }
5690
- | {
5691
- type: 'remove behavior'
5692
- behavior: Behavior
5693
- }
5694
3126
  | {
5695
3127
  type: 'update readOnly'
5696
3128
  readOnly: boolean
@@ -5711,6 +3143,14 @@ declare const editorMachine: StateMachine<
5711
3143
  type: 'update maxBlocks'
5712
3144
  maxBlocks: number | undefined
5713
3145
  }
3146
+ | {
3147
+ type: 'add behavior'
3148
+ behaviorConfig: BehaviorConfig
3149
+ }
3150
+ | {
3151
+ type: 'remove behavior'
3152
+ behaviorConfig: BehaviorConfig
3153
+ }
5714
3154
  | {
5715
3155
  type: 'blur'
5716
3156
  editor: PortableTextSlateEditor
@@ -5869,7 +3309,7 @@ declare const editorMachine: StateMachine<
5869
3309
  readonly 'update key generator': {
5870
3310
  readonly actions: ActionFunction<
5871
3311
  {
5872
- behaviors: Set<Behavior>
3312
+ behaviors: Set<BehaviorConfig>
5873
3313
  converters: Set<Converter>
5874
3314
  getLegacySchema: () => PortableTextMemberSchemaTypes
5875
3315
  keyGenerator: () => string
@@ -5893,14 +3333,6 @@ declare const editorMachine: StateMachine<
5893
3333
  | InternalPatchEvent
5894
3334
  | MutationEvent
5895
3335
  | PatchesEvent
5896
- | {
5897
- type: 'add behavior'
5898
- behavior: Behavior
5899
- }
5900
- | {
5901
- type: 'remove behavior'
5902
- behavior: Behavior
5903
- }
5904
3336
  | {
5905
3337
  type: 'update readOnly'
5906
3338
  readOnly: boolean
@@ -5921,6 +3353,14 @@ declare const editorMachine: StateMachine<
5921
3353
  type: 'update maxBlocks'
5922
3354
  maxBlocks: number | undefined
5923
3355
  }
3356
+ | {
3357
+ type: 'add behavior'
3358
+ behaviorConfig: BehaviorConfig
3359
+ }
3360
+ | {
3361
+ type: 'remove behavior'
3362
+ behaviorConfig: BehaviorConfig
3363
+ }
5924
3364
  | {
5925
3365
  type: 'blur'
5926
3366
  editor: PortableTextSlateEditor
@@ -6030,7 +3470,7 @@ declare const editorMachine: StateMachine<
6030
3470
  readonly 'update value': {
6031
3471
  readonly actions: ActionFunction<
6032
3472
  {
6033
- behaviors: Set<Behavior>
3473
+ behaviors: Set<BehaviorConfig>
6034
3474
  converters: Set<Converter>
6035
3475
  getLegacySchema: () => PortableTextMemberSchemaTypes
6036
3476
  keyGenerator: () => string
@@ -6054,14 +3494,6 @@ declare const editorMachine: StateMachine<
6054
3494
  | InternalPatchEvent
6055
3495
  | MutationEvent
6056
3496
  | PatchesEvent
6057
- | {
6058
- type: 'add behavior'
6059
- behavior: Behavior
6060
- }
6061
- | {
6062
- type: 'remove behavior'
6063
- behavior: Behavior
6064
- }
6065
3497
  | {
6066
3498
  type: 'update readOnly'
6067
3499
  readOnly: boolean
@@ -6082,6 +3514,14 @@ declare const editorMachine: StateMachine<
6082
3514
  type: 'update maxBlocks'
6083
3515
  maxBlocks: number | undefined
6084
3516
  }
3517
+ | {
3518
+ type: 'add behavior'
3519
+ behaviorConfig: BehaviorConfig
3520
+ }
3521
+ | {
3522
+ type: 'remove behavior'
3523
+ behaviorConfig: BehaviorConfig
3524
+ }
6085
3525
  | {
6086
3526
  type: 'blur'
6087
3527
  editor: PortableTextSlateEditor
@@ -6188,7 +3628,7 @@ declare const editorMachine: StateMachine<
6188
3628
  readonly 'update maxBlocks': {
6189
3629
  readonly actions: ActionFunction<
6190
3630
  {
6191
- behaviors: Set<Behavior>
3631
+ behaviors: Set<BehaviorConfig>
6192
3632
  converters: Set<Converter>
6193
3633
  getLegacySchema: () => PortableTextMemberSchemaTypes
6194
3634
  keyGenerator: () => string
@@ -6212,14 +3652,6 @@ declare const editorMachine: StateMachine<
6212
3652
  | InternalPatchEvent
6213
3653
  | MutationEvent
6214
3654
  | PatchesEvent
6215
- | {
6216
- type: 'add behavior'
6217
- behavior: Behavior
6218
- }
6219
- | {
6220
- type: 'remove behavior'
6221
- behavior: Behavior
6222
- }
6223
3655
  | {
6224
3656
  type: 'update readOnly'
6225
3657
  readOnly: boolean
@@ -6240,6 +3672,14 @@ declare const editorMachine: StateMachine<
6240
3672
  type: 'update maxBlocks'
6241
3673
  maxBlocks: number | undefined
6242
3674
  }
3675
+ | {
3676
+ type: 'add behavior'
3677
+ behaviorConfig: BehaviorConfig
3678
+ }
3679
+ | {
3680
+ type: 'remove behavior'
3681
+ behaviorConfig: BehaviorConfig
3682
+ }
6243
3683
  | {
6244
3684
  type: 'blur'
6245
3685
  editor: PortableTextSlateEditor
@@ -6358,7 +3798,7 @@ declare const editorMachine: StateMachine<
6358
3798
  event,
6359
3799
  }: GuardArgs<
6360
3800
  {
6361
- behaviors: Set<Behavior>
3801
+ behaviors: Set<BehaviorConfig>
6362
3802
  converters: Set<Converter>
6363
3803
  getLegacySchema: () => PortableTextMemberSchemaTypes
6364
3804
  keyGenerator: () => string
@@ -6396,7 +3836,7 @@ declare const editorMachine: StateMachine<
6396
3836
  context,
6397
3837
  }: GuardArgs<
6398
3838
  {
6399
- behaviors: Set<Behavior>
3839
+ behaviors: Set<BehaviorConfig>
6400
3840
  converters: Set<Converter>
6401
3841
  getLegacySchema: () => PortableTextMemberSchemaTypes
6402
3842
  keyGenerator: () => string
@@ -6433,7 +3873,7 @@ declare const editorMachine: StateMachine<
6433
3873
  event,
6434
3874
  }: GuardArgs<
6435
3875
  {
6436
- behaviors: Set<Behavior>
3876
+ behaviors: Set<BehaviorConfig>
6437
3877
  converters: Set<Converter>
6438
3878
  getLegacySchema: () => PortableTextMemberSchemaTypes
6439
3879
  keyGenerator: () => string
@@ -6469,7 +3909,7 @@ declare const editorMachine: StateMachine<
6469
3909
  event,
6470
3910
  }: GuardArgs<
6471
3911
  {
6472
- behaviors: Set<Behavior>
3912
+ behaviors: Set<BehaviorConfig>
6473
3913
  converters: Set<Converter>
6474
3914
  getLegacySchema: () => PortableTextMemberSchemaTypes
6475
3915
  keyGenerator: () => string
@@ -6505,7 +3945,7 @@ declare const editorMachine: StateMachine<
6505
3945
  readonly actions: readonly [
6506
3946
  ActionFunction<
6507
3947
  {
6508
- behaviors: Set<Behavior>
3948
+ behaviors: Set<BehaviorConfig>
6509
3949
  converters: Set<Converter>
6510
3950
  getLegacySchema: () => PortableTextMemberSchemaTypes
6511
3951
  keyGenerator: () => string
@@ -6529,14 +3969,6 @@ declare const editorMachine: StateMachine<
6529
3969
  | InternalPatchEvent
6530
3970
  | MutationEvent
6531
3971
  | PatchesEvent
6532
- | {
6533
- type: 'add behavior'
6534
- behavior: Behavior
6535
- }
6536
- | {
6537
- type: 'remove behavior'
6538
- behavior: Behavior
6539
- }
6540
3972
  | {
6541
3973
  type: 'update readOnly'
6542
3974
  readOnly: boolean
@@ -6557,6 +3989,14 @@ declare const editorMachine: StateMachine<
6557
3989
  type: 'update maxBlocks'
6558
3990
  maxBlocks: number | undefined
6559
3991
  }
3992
+ | {
3993
+ type: 'add behavior'
3994
+ behaviorConfig: BehaviorConfig
3995
+ }
3996
+ | {
3997
+ type: 'remove behavior'
3998
+ behaviorConfig: BehaviorConfig
3999
+ }
6560
4000
  | {
6561
4001
  type: 'blur'
6562
4002
  editor: PortableTextSlateEditor
@@ -6670,7 +4110,7 @@ declare const editorMachine: StateMachine<
6670
4110
  readonly actions: readonly [
6671
4111
  ActionFunction<
6672
4112
  {
6673
- behaviors: Set<Behavior>
4113
+ behaviors: Set<BehaviorConfig>
6674
4114
  converters: Set<Converter>
6675
4115
  getLegacySchema: () => PortableTextMemberSchemaTypes
6676
4116
  keyGenerator: () => string
@@ -6697,14 +4137,6 @@ declare const editorMachine: StateMachine<
6697
4137
  | InternalPatchEvent
6698
4138
  | MutationEvent
6699
4139
  | PatchesEvent
6700
- | {
6701
- type: 'add behavior'
6702
- behavior: Behavior
6703
- }
6704
- | {
6705
- type: 'remove behavior'
6706
- behavior: Behavior
6707
- }
6708
4140
  | {
6709
4141
  type: 'update readOnly'
6710
4142
  readOnly: boolean
@@ -6725,6 +4157,14 @@ declare const editorMachine: StateMachine<
6725
4157
  type: 'update maxBlocks'
6726
4158
  maxBlocks: number | undefined
6727
4159
  }
4160
+ | {
4161
+ type: 'add behavior'
4162
+ behaviorConfig: BehaviorConfig
4163
+ }
4164
+ | {
4165
+ type: 'remove behavior'
4166
+ behaviorConfig: BehaviorConfig
4167
+ }
6728
4168
  | {
6729
4169
  type: 'blur'
6730
4170
  editor: PortableTextSlateEditor
@@ -6862,7 +4302,7 @@ declare const editorMachine: StateMachine<
6862
4302
  context,
6863
4303
  }: ActionArgs<
6864
4304
  {
6865
- behaviors: Set<Behavior>
4305
+ behaviors: Set<BehaviorConfig>
6866
4306
  converters: Set<Converter>
6867
4307
  getLegacySchema: () => PortableTextMemberSchemaTypes
6868
4308
  keyGenerator: () => string
@@ -6882,14 +4322,6 @@ declare const editorMachine: StateMachine<
6882
4322
  | InternalPatchEvent
6883
4323
  | MutationEvent
6884
4324
  | PatchesEvent
6885
- | {
6886
- type: 'add behavior'
6887
- behavior: Behavior
6888
- }
6889
- | {
6890
- type: 'remove behavior'
6891
- behavior: Behavior
6892
- }
6893
4325
  | {
6894
4326
  type: 'update readOnly'
6895
4327
  readOnly: boolean
@@ -6910,6 +4342,14 @@ declare const editorMachine: StateMachine<
6910
4342
  type: 'update maxBlocks'
6911
4343
  maxBlocks: number | undefined
6912
4344
  }
4345
+ | {
4346
+ type: 'add behavior'
4347
+ behaviorConfig: BehaviorConfig
4348
+ }
4349
+ | {
4350
+ type: 'remove behavior'
4351
+ behaviorConfig: BehaviorConfig
4352
+ }
6913
4353
  | {
6914
4354
  type: 'blur'
6915
4355
  editor: PortableTextSlateEditor
@@ -7008,14 +4448,6 @@ declare const editorMachine: StateMachine<
7008
4448
  | InternalPatchEvent
7009
4449
  | MutationEvent
7010
4450
  | PatchesEvent
7011
- | {
7012
- type: 'add behavior'
7013
- behavior: Behavior
7014
- }
7015
- | {
7016
- type: 'remove behavior'
7017
- behavior: Behavior
7018
- }
7019
4451
  | {
7020
4452
  type: 'update readOnly'
7021
4453
  readOnly: boolean
@@ -7036,6 +4468,14 @@ declare const editorMachine: StateMachine<
7036
4468
  type: 'update maxBlocks'
7037
4469
  maxBlocks: number | undefined
7038
4470
  }
4471
+ | {
4472
+ type: 'add behavior'
4473
+ behaviorConfig: BehaviorConfig
4474
+ }
4475
+ | {
4476
+ type: 'remove behavior'
4477
+ behaviorConfig: BehaviorConfig
4478
+ }
7039
4479
  | {
7040
4480
  type: 'blur'
7041
4481
  editor: PortableTextSlateEditor
@@ -7134,7 +4574,7 @@ declare const editorMachine: StateMachine<
7134
4574
  >) => void,
7135
4575
  ActionFunction<
7136
4576
  {
7137
- behaviors: Set<Behavior>
4577
+ behaviors: Set<BehaviorConfig>
7138
4578
  converters: Set<Converter>
7139
4579
  getLegacySchema: () => PortableTextMemberSchemaTypes
7140
4580
  keyGenerator: () => string
@@ -7154,14 +4594,6 @@ declare const editorMachine: StateMachine<
7154
4594
  | InternalPatchEvent
7155
4595
  | MutationEvent
7156
4596
  | PatchesEvent
7157
- | {
7158
- type: 'add behavior'
7159
- behavior: Behavior
7160
- }
7161
- | {
7162
- type: 'remove behavior'
7163
- behavior: Behavior
7164
- }
7165
4597
  | {
7166
4598
  type: 'update readOnly'
7167
4599
  readOnly: boolean
@@ -7182,6 +4614,14 @@ declare const editorMachine: StateMachine<
7182
4614
  type: 'update maxBlocks'
7183
4615
  maxBlocks: number | undefined
7184
4616
  }
4617
+ | {
4618
+ type: 'add behavior'
4619
+ behaviorConfig: BehaviorConfig
4620
+ }
4621
+ | {
4622
+ type: 'remove behavior'
4623
+ behaviorConfig: BehaviorConfig
4624
+ }
7185
4625
  | {
7186
4626
  type: 'blur'
7187
4627
  editor: PortableTextSlateEditor
@@ -7280,14 +4720,6 @@ declare const editorMachine: StateMachine<
7280
4720
  | InternalPatchEvent
7281
4721
  | MutationEvent
7282
4722
  | PatchesEvent
7283
- | {
7284
- type: 'add behavior'
7285
- behavior: Behavior
7286
- }
7287
- | {
7288
- type: 'remove behavior'
7289
- behavior: Behavior
7290
- }
7291
4723
  | {
7292
4724
  type: 'update readOnly'
7293
4725
  readOnly: boolean
@@ -7308,6 +4740,14 @@ declare const editorMachine: StateMachine<
7308
4740
  type: 'update maxBlocks'
7309
4741
  maxBlocks: number | undefined
7310
4742
  }
4743
+ | {
4744
+ type: 'add behavior'
4745
+ behaviorConfig: BehaviorConfig
4746
+ }
4747
+ | {
4748
+ type: 'remove behavior'
4749
+ behaviorConfig: BehaviorConfig
4750
+ }
7311
4751
  | {
7312
4752
  type: 'blur'
7313
4753
  editor: PortableTextSlateEditor
@@ -7461,7 +4901,7 @@ declare const editorMachine: StateMachine<
7461
4901
  readonly actions: readonly [
7462
4902
  ActionFunction<
7463
4903
  {
7464
- behaviors: Set<Behavior>
4904
+ behaviors: Set<BehaviorConfig>
7465
4905
  converters: Set<Converter>
7466
4906
  getLegacySchema: () => PortableTextMemberSchemaTypes
7467
4907
  keyGenerator: () => string
@@ -7486,14 +4926,6 @@ declare const editorMachine: StateMachine<
7486
4926
  | InternalPatchEvent
7487
4927
  | MutationEvent
7488
4928
  | PatchesEvent
7489
- | {
7490
- type: 'add behavior'
7491
- behavior: Behavior
7492
- }
7493
- | {
7494
- type: 'remove behavior'
7495
- behavior: Behavior
7496
- }
7497
4929
  | {
7498
4930
  type: 'update readOnly'
7499
4931
  readOnly: boolean
@@ -7514,6 +4946,14 @@ declare const editorMachine: StateMachine<
7514
4946
  type: 'update maxBlocks'
7515
4947
  maxBlocks: number | undefined
7516
4948
  }
4949
+ | {
4950
+ type: 'add behavior'
4951
+ behaviorConfig: BehaviorConfig
4952
+ }
4953
+ | {
4954
+ type: 'remove behavior'
4955
+ behaviorConfig: BehaviorConfig
4956
+ }
7517
4957
  | {
7518
4958
  type: 'blur'
7519
4959
  editor: PortableTextSlateEditor
@@ -7745,6 +5185,15 @@ declare const editorMachine: StateMachine<
7745
5185
  }
7746
5186
  >
7747
5187
 
5188
+ declare type EditorPriority = {
5189
+ id: string
5190
+ name?: string
5191
+ reference?: {
5192
+ priority: EditorPriority
5193
+ importance: 'higher' | 'lower'
5194
+ }
5195
+ }
5196
+
7748
5197
  /**
7749
5198
  * @beta
7750
5199
  */
@@ -7943,14 +5392,6 @@ declare type ExternalBehaviorEventType<
7943
5392
  * @public
7944
5393
  */
7945
5394
  declare type ExternalEditorEvent =
7946
- | {
7947
- type: 'add behavior'
7948
- behavior: Behavior
7949
- }
7950
- | {
7951
- type: 'remove behavior'
7952
- behavior: Behavior
7953
- }
7954
5395
  | {
7955
5396
  type: 'update readOnly'
7956
5397
  readOnly: boolean
@@ -8009,7 +5450,7 @@ declare type InputBehaviorEvent = {
8009
5450
  declare type InsertPlacement = 'auto' | 'after' | 'before'
8010
5451
 
8011
5452
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
8012
- actionId?: string
5453
+ operationId?: string
8013
5454
  value: Array<PortableTextBlock>
8014
5455
  }
8015
5456