@portabletext/editor 1.48.13 → 1.48.14

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 (67) hide show
  1. package/lib/_chunks-cjs/editor-provider.cjs +633 -628
  2. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  3. package/lib/_chunks-es/editor-provider.js +634 -629
  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 +4 -2564
  7. package/lib/behaviors/index.d.ts +4 -2564
  8. package/lib/behaviors/index.js.map +1 -1
  9. package/lib/index.d.cts +5 -2564
  10. package/lib/index.d.ts +5 -2564
  11. package/lib/plugins/index.cjs +1 -7
  12. package/lib/plugins/index.cjs.map +1 -1
  13. package/lib/plugins/index.d.cts +4 -2569
  14. package/lib/plugins/index.d.ts +4 -2569
  15. package/lib/plugins/index.js +2 -8
  16. package/lib/plugins/index.js.map +1 -1
  17. package/lib/selectors/index.d.cts +3 -2563
  18. package/lib/selectors/index.d.ts +3 -2563
  19. package/lib/utils/index.d.cts +5 -2564
  20. package/lib/utils/index.d.ts +5 -2564
  21. package/package.json +1 -1
  22. package/src/behaviors/behavior.abstract.keyboard.ts +16 -0
  23. package/src/behaviors/{behavior.default.ts → behavior.abstract.ts} +3 -3
  24. package/src/behaviors/behavior.core.ts +0 -3
  25. package/src/behaviors/behavior.perform-event.ts +27 -51
  26. package/src/behaviors/behavior.types.action.ts +1 -11
  27. package/src/editor/PortableTextEditor.tsx +1 -1
  28. package/src/editor/editor-machine.ts +7 -4
  29. package/src/editor/mutation-machine.ts +6 -6
  30. package/src/editor/plugins/create-with-event-listeners.ts +25 -25
  31. package/src/editor/plugins/createWithEditableAPI.ts +3 -3
  32. package/src/editor/plugins/createWithPatches.ts +13 -5
  33. package/src/editor/plugins/createWithPortableTextMarkModel.ts +5 -5
  34. package/src/editor/plugins/createWithUndoRedo.ts +8 -8
  35. package/src/editor/with-applying-behavior-operations.ts +18 -0
  36. package/src/editor/{with-applying-behavior-actions.ts → with-undo-step.ts} +1 -19
  37. package/src/index.ts +1 -1
  38. package/src/{behavior-actions/behavior.action.annotation.add.ts → operations/behavior.operation.annotation.add.ts} +7 -7
  39. package/src/{behavior-actions/behavior.action.annotation.remove.ts → operations/behavior.operation.annotation.remove.ts} +6 -6
  40. package/src/{behavior-actions/behavior.action.block.set.ts → operations/behavior.operation.block.set.ts} +14 -14
  41. package/src/{behavior-actions/behavior.action.block.unset.ts → operations/behavior.operation.block.unset.ts} +19 -17
  42. package/src/{behavior-actions/behavior.action.decorator.add.ts → operations/behavior.operation.decorator.add.ts} +10 -10
  43. package/src/operations/behavior.operation.delete.backward.ts +8 -0
  44. package/src/operations/behavior.operation.delete.block.ts +24 -0
  45. package/src/operations/behavior.operation.delete.forward.ts +8 -0
  46. package/src/{behavior-actions/behavior.action.delete.ts → operations/behavior.operation.delete.ts} +8 -8
  47. package/src/{behavior-actions/behavior.action.insert-inline-object.ts → operations/behavior.operation.insert-inline-object.ts} +11 -11
  48. package/src/{behavior-actions/behavior.action.insert-span.ts → operations/behavior.operation.insert-span.ts} +15 -15
  49. package/src/{behavior-actions/behavior.action.insert.block.ts → operations/behavior.operation.insert.block.ts} +8 -8
  50. package/src/operations/behavior.operation.insert.text.ts +17 -0
  51. package/src/operations/behavior.operation.move.backward.ts +12 -0
  52. package/src/operations/behavior.operation.move.block.ts +16 -0
  53. package/src/operations/behavior.operation.move.forward.ts +11 -0
  54. package/src/operations/behavior.operation.select.ts +15 -0
  55. package/src/operations/behavior.operations.ts +239 -0
  56. package/src/plugins/index.ts +0 -1
  57. package/src/behavior-actions/behavior.action.delete.backward.ts +0 -7
  58. package/src/behavior-actions/behavior.action.delete.block.ts +0 -24
  59. package/src/behavior-actions/behavior.action.delete.forward.ts +0 -7
  60. package/src/behavior-actions/behavior.action.insert.text.ts +0 -17
  61. package/src/behavior-actions/behavior.action.move.backward.ts +0 -12
  62. package/src/behavior-actions/behavior.action.move.block.ts +0 -16
  63. package/src/behavior-actions/behavior.action.move.forward.ts +0 -11
  64. package/src/behavior-actions/behavior.action.select.ts +0 -15
  65. package/src/behavior-actions/behavior.actions.ts +0 -219
  66. package/src/behaviors/behavior.default.raise-soft-break.ts +0 -14
  67. 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
  | {
@@ -406,11 +389,6 @@ declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
406
389
  mimeType: TMIMEType
407
390
  }
408
391
 
409
- /**
410
- * @beta
411
- */
412
- export declare function CoreBehaviorsPlugin(): JSX.Element
413
-
414
392
  /**
415
393
  * @beta
416
394
  */
@@ -1309,2550 +1287,7 @@ declare const editorMachine: StateMachine<
1309
1287
  AnyEventObject
1310
1288
  >
1311
1289
  }) => {
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
- >
1290
+ behaviors: Set<never>
3856
1291
  converters: Set<Converter>
3857
1292
  getLegacySchema: () => PortableTextMemberSchemaTypes
3858
1293
  keyGenerator: () => string
@@ -8009,7 +5444,7 @@ declare type InputBehaviorEvent = {
8009
5444
  declare type InsertPlacement = 'auto' | 'after' | 'before'
8010
5445
 
8011
5446
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
8012
- actionId?: string
5447
+ operationId?: string
8013
5448
  value: Array<PortableTextBlock>
8014
5449
  }
8015
5450