@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,
@@ -11,13 +12,12 @@ import type {
11
12
  PortableTextListBlock,
12
13
  PortableTextTextBlock,
13
14
  } from '@sanity/types'
14
- import {KeyedSegment, PortableTextObject, PortableTextSpan} from '@sanity/types'
15
+ import {PortableTextObject, PortableTextSpan} from '@sanity/types'
15
16
  import type {
16
17
  FocusEvent as FocusEvent_2,
17
18
  KeyboardEvent as KeyboardEvent_2,
18
19
  } from 'react'
19
- import type {Descendant, Operation} from 'slate'
20
- import {TextUnit} from 'slate'
20
+ import type {Descendant, Operation, TextUnit} from 'slate'
21
21
  import type {DOMNode} from 'slate-dom'
22
22
  import type {ReactEditor} from 'slate-react'
23
23
  import {
@@ -41,22 +41,6 @@ import {
41
41
  Values,
42
42
  } from 'xstate'
43
43
  import {GuardArgs} from 'xstate/guards'
44
- import {BlockOffset as BlockOffset_2} from '..'
45
- import {
46
- CustomBehaviorEvent as CustomBehaviorEvent_2,
47
- NativeBehaviorEvent as NativeBehaviorEvent_2,
48
- } from '../behaviors'
49
- import {
50
- InputBehaviorEvent as InputBehaviorEvent_2,
51
- InsertPlacement as InsertPlacement_2,
52
- MouseBehaviorEvent as MouseBehaviorEvent_2,
53
- } from '../behaviors/behavior.types.event'
54
- import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
55
- import {
56
- PickFromUnion as PickFromUnion_2,
57
- StrictExtract as StrictExtract_2,
58
- } from '../type-utils'
59
- import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
60
44
 
61
45
  declare type AbstractBehaviorEvent =
62
46
  | {
@@ -1283,2550 +1267,7 @@ declare const editorMachine: StateMachine<
1283
1267
  AnyEventObject
1284
1268
  >
1285
1269
  }) => {
1286
- behaviors: Set<
1287
- Behavior<
1288
- | 'serialize'
1289
- | 'clipboard.copy'
1290
- | 'clipboard.cut'
1291
- | 'drag.dragstart'
1292
- | 'serialization.failure'
1293
- | 'serialization.success'
1294
- | 'deserialize'
1295
- | 'deserialization.failure'
1296
- | 'deserialization.success'
1297
- | 'split'
1298
- | 'delete'
1299
- | 'select'
1300
- | '*'
1301
- | 'annotation.add'
1302
- | 'annotation.remove'
1303
- | 'block.set'
1304
- | 'block.unset'
1305
- | 'decorator.add'
1306
- | 'decorator.remove'
1307
- | 'delete.backward'
1308
- | 'delete.block'
1309
- | 'delete.forward'
1310
- | 'history.redo'
1311
- | 'history.undo'
1312
- | 'insert.inline object'
1313
- | 'insert.block'
1314
- | 'insert.span'
1315
- | 'insert.text'
1316
- | 'move.backward'
1317
- | 'move.block'
1318
- | 'move.forward'
1319
- | 'annotation.toggle'
1320
- | 'decorator.toggle'
1321
- | 'delete.text'
1322
- | 'insert.blocks'
1323
- | 'insert.break'
1324
- | 'insert.soft break'
1325
- | 'list item.add'
1326
- | 'list item.remove'
1327
- | 'list item.toggle'
1328
- | 'move.block down'
1329
- | 'move.block up'
1330
- | 'select.previous block'
1331
- | 'select.next block'
1332
- | 'style.add'
1333
- | 'style.remove'
1334
- | 'style.toggle'
1335
- | 'clipboard.paste'
1336
- | 'drag.drag'
1337
- | 'drag.dragend'
1338
- | 'drag.dragenter'
1339
- | 'drag.dragover'
1340
- | 'drag.dragleave'
1341
- | 'drag.drop'
1342
- | 'input.*'
1343
- | 'keyboard.keydown'
1344
- | 'keyboard.keyup'
1345
- | 'mouse.click'
1346
- | 'serialize.*'
1347
- | 'deserialize.*'
1348
- | 'split.*'
1349
- | 'block.*'
1350
- | 'style.*'
1351
- | 'delete.*'
1352
- | 'move.*'
1353
- | 'select.*'
1354
- | 'history.*'
1355
- | 'serialization.*'
1356
- | 'deserialization.*'
1357
- | 'annotation.*'
1358
- | 'decorator.*'
1359
- | 'insert.*'
1360
- | 'list item.*'
1361
- | 'clipboard.*'
1362
- | 'drag.*'
1363
- | 'keyboard.*'
1364
- | 'mouse.*'
1365
- | `custom.${string}`,
1366
- true,
1367
- | {
1368
- type: StrictExtract_2<
1369
- | 'serialize'
1370
- | 'serialization.failure'
1371
- | 'serialization.success'
1372
- | 'deserialize'
1373
- | 'deserialization.failure'
1374
- | 'deserialization.success'
1375
- | 'split'
1376
- | 'delete'
1377
- | 'select'
1378
- | 'annotation.add'
1379
- | 'annotation.remove'
1380
- | 'block.set'
1381
- | 'block.unset'
1382
- | 'decorator.add'
1383
- | 'decorator.remove'
1384
- | 'delete.backward'
1385
- | 'delete.block'
1386
- | 'delete.forward'
1387
- | 'history.redo'
1388
- | 'history.undo'
1389
- | 'insert.inline object'
1390
- | 'insert.block'
1391
- | 'insert.span'
1392
- | 'insert.text'
1393
- | 'move.backward'
1394
- | 'move.block'
1395
- | 'move.forward'
1396
- | 'annotation.toggle'
1397
- | 'decorator.toggle'
1398
- | 'delete.text'
1399
- | 'insert.blocks'
1400
- | 'insert.break'
1401
- | 'insert.soft break'
1402
- | 'list item.add'
1403
- | 'list item.remove'
1404
- | 'list item.toggle'
1405
- | 'move.block down'
1406
- | 'move.block up'
1407
- | 'select.previous block'
1408
- | 'select.next block'
1409
- | 'style.add'
1410
- | 'style.remove'
1411
- | 'style.toggle',
1412
- 'annotation.add'
1413
- >
1414
- annotation: {
1415
- name: string
1416
- value: {
1417
- [prop: string]: unknown
1418
- }
1419
- }
1420
- }
1421
- | {
1422
- type: StrictExtract_2<
1423
- | 'serialize'
1424
- | 'serialization.failure'
1425
- | 'serialization.success'
1426
- | 'deserialize'
1427
- | 'deserialization.failure'
1428
- | 'deserialization.success'
1429
- | 'split'
1430
- | 'delete'
1431
- | 'select'
1432
- | 'annotation.add'
1433
- | 'annotation.remove'
1434
- | 'block.set'
1435
- | 'block.unset'
1436
- | 'decorator.add'
1437
- | 'decorator.remove'
1438
- | 'delete.backward'
1439
- | 'delete.block'
1440
- | 'delete.forward'
1441
- | 'history.redo'
1442
- | 'history.undo'
1443
- | 'insert.inline object'
1444
- | 'insert.block'
1445
- | 'insert.span'
1446
- | 'insert.text'
1447
- | 'move.backward'
1448
- | 'move.block'
1449
- | 'move.forward'
1450
- | 'annotation.toggle'
1451
- | 'decorator.toggle'
1452
- | 'delete.text'
1453
- | 'insert.blocks'
1454
- | 'insert.break'
1455
- | 'insert.soft break'
1456
- | 'list item.add'
1457
- | 'list item.remove'
1458
- | 'list item.toggle'
1459
- | 'move.block down'
1460
- | 'move.block up'
1461
- | 'select.previous block'
1462
- | 'select.next block'
1463
- | 'style.add'
1464
- | 'style.remove'
1465
- | 'style.toggle',
1466
- 'annotation.remove'
1467
- >
1468
- annotation: {
1469
- name: string
1470
- }
1471
- }
1472
- | {
1473
- type: StrictExtract_2<
1474
- | 'serialize'
1475
- | 'serialization.failure'
1476
- | 'serialization.success'
1477
- | 'deserialize'
1478
- | 'deserialization.failure'
1479
- | 'deserialization.success'
1480
- | 'split'
1481
- | 'delete'
1482
- | 'select'
1483
- | 'annotation.add'
1484
- | 'annotation.remove'
1485
- | 'block.set'
1486
- | 'block.unset'
1487
- | 'decorator.add'
1488
- | 'decorator.remove'
1489
- | 'delete.backward'
1490
- | 'delete.block'
1491
- | 'delete.forward'
1492
- | 'history.redo'
1493
- | 'history.undo'
1494
- | 'insert.inline object'
1495
- | 'insert.block'
1496
- | 'insert.span'
1497
- | 'insert.text'
1498
- | 'move.backward'
1499
- | 'move.block'
1500
- | 'move.forward'
1501
- | 'annotation.toggle'
1502
- | 'decorator.toggle'
1503
- | 'delete.text'
1504
- | 'insert.blocks'
1505
- | 'insert.break'
1506
- | 'insert.soft break'
1507
- | 'list item.add'
1508
- | 'list item.remove'
1509
- | 'list item.toggle'
1510
- | 'move.block down'
1511
- | 'move.block up'
1512
- | 'select.previous block'
1513
- | 'select.next block'
1514
- | 'style.add'
1515
- | 'style.remove'
1516
- | 'style.toggle',
1517
- 'block.set'
1518
- >
1519
- at: [KeyedSegment]
1520
- props: Record<string, unknown>
1521
- }
1522
- | {
1523
- type: StrictExtract_2<
1524
- | 'serialize'
1525
- | 'serialization.failure'
1526
- | 'serialization.success'
1527
- | 'deserialize'
1528
- | 'deserialization.failure'
1529
- | 'deserialization.success'
1530
- | 'split'
1531
- | 'delete'
1532
- | 'select'
1533
- | 'annotation.add'
1534
- | 'annotation.remove'
1535
- | 'block.set'
1536
- | 'block.unset'
1537
- | 'decorator.add'
1538
- | 'decorator.remove'
1539
- | 'delete.backward'
1540
- | 'delete.block'
1541
- | 'delete.forward'
1542
- | 'history.redo'
1543
- | 'history.undo'
1544
- | 'insert.inline object'
1545
- | 'insert.block'
1546
- | 'insert.span'
1547
- | 'insert.text'
1548
- | 'move.backward'
1549
- | 'move.block'
1550
- | 'move.forward'
1551
- | 'annotation.toggle'
1552
- | 'decorator.toggle'
1553
- | 'delete.text'
1554
- | 'insert.blocks'
1555
- | 'insert.break'
1556
- | 'insert.soft break'
1557
- | 'list item.add'
1558
- | 'list item.remove'
1559
- | 'list item.toggle'
1560
- | 'move.block down'
1561
- | 'move.block up'
1562
- | 'select.previous block'
1563
- | 'select.next block'
1564
- | 'style.add'
1565
- | 'style.remove'
1566
- | 'style.toggle',
1567
- 'block.unset'
1568
- >
1569
- at: [KeyedSegment]
1570
- props: Array<string>
1571
- }
1572
- | {
1573
- type: StrictExtract_2<
1574
- | 'serialize'
1575
- | 'serialization.failure'
1576
- | 'serialization.success'
1577
- | 'deserialize'
1578
- | 'deserialization.failure'
1579
- | 'deserialization.success'
1580
- | 'split'
1581
- | 'delete'
1582
- | 'select'
1583
- | 'annotation.add'
1584
- | 'annotation.remove'
1585
- | 'block.set'
1586
- | 'block.unset'
1587
- | 'decorator.add'
1588
- | 'decorator.remove'
1589
- | 'delete.backward'
1590
- | 'delete.block'
1591
- | 'delete.forward'
1592
- | 'history.redo'
1593
- | 'history.undo'
1594
- | 'insert.inline object'
1595
- | 'insert.block'
1596
- | 'insert.span'
1597
- | 'insert.text'
1598
- | 'move.backward'
1599
- | 'move.block'
1600
- | 'move.forward'
1601
- | 'annotation.toggle'
1602
- | 'decorator.toggle'
1603
- | 'delete.text'
1604
- | 'insert.blocks'
1605
- | 'insert.break'
1606
- | 'insert.soft break'
1607
- | 'list item.add'
1608
- | 'list item.remove'
1609
- | 'list item.toggle'
1610
- | 'move.block down'
1611
- | 'move.block up'
1612
- | 'select.previous block'
1613
- | 'select.next block'
1614
- | 'style.add'
1615
- | 'style.remove'
1616
- | 'style.toggle',
1617
- 'decorator.add'
1618
- >
1619
- decorator: string
1620
- at?: {
1621
- anchor: BlockOffset_2
1622
- focus: BlockOffset_2
1623
- }
1624
- }
1625
- | {
1626
- type: StrictExtract_2<
1627
- | 'serialize'
1628
- | 'serialization.failure'
1629
- | 'serialization.success'
1630
- | 'deserialize'
1631
- | 'deserialization.failure'
1632
- | 'deserialization.success'
1633
- | 'split'
1634
- | 'delete'
1635
- | 'select'
1636
- | 'annotation.add'
1637
- | 'annotation.remove'
1638
- | 'block.set'
1639
- | 'block.unset'
1640
- | 'decorator.add'
1641
- | 'decorator.remove'
1642
- | 'delete.backward'
1643
- | 'delete.block'
1644
- | 'delete.forward'
1645
- | 'history.redo'
1646
- | 'history.undo'
1647
- | 'insert.inline object'
1648
- | 'insert.block'
1649
- | 'insert.span'
1650
- | 'insert.text'
1651
- | 'move.backward'
1652
- | 'move.block'
1653
- | 'move.forward'
1654
- | 'annotation.toggle'
1655
- | 'decorator.toggle'
1656
- | 'delete.text'
1657
- | 'insert.blocks'
1658
- | 'insert.break'
1659
- | 'insert.soft break'
1660
- | 'list item.add'
1661
- | 'list item.remove'
1662
- | 'list item.toggle'
1663
- | 'move.block down'
1664
- | 'move.block up'
1665
- | 'select.previous block'
1666
- | 'select.next block'
1667
- | 'style.add'
1668
- | 'style.remove'
1669
- | 'style.toggle',
1670
- 'decorator.remove'
1671
- >
1672
- decorator: string
1673
- }
1674
- | {
1675
- type: StrictExtract_2<
1676
- | 'serialize'
1677
- | 'serialization.failure'
1678
- | 'serialization.success'
1679
- | 'deserialize'
1680
- | 'deserialization.failure'
1681
- | 'deserialization.success'
1682
- | 'split'
1683
- | 'delete'
1684
- | 'select'
1685
- | 'annotation.add'
1686
- | 'annotation.remove'
1687
- | 'block.set'
1688
- | 'block.unset'
1689
- | 'decorator.add'
1690
- | 'decorator.remove'
1691
- | 'delete.backward'
1692
- | 'delete.block'
1693
- | 'delete.forward'
1694
- | 'history.redo'
1695
- | 'history.undo'
1696
- | 'insert.inline object'
1697
- | 'insert.block'
1698
- | 'insert.span'
1699
- | 'insert.text'
1700
- | 'move.backward'
1701
- | 'move.block'
1702
- | 'move.forward'
1703
- | 'annotation.toggle'
1704
- | 'decorator.toggle'
1705
- | 'delete.text'
1706
- | 'insert.blocks'
1707
- | 'insert.break'
1708
- | 'insert.soft break'
1709
- | 'list item.add'
1710
- | 'list item.remove'
1711
- | 'list item.toggle'
1712
- | 'move.block down'
1713
- | 'move.block up'
1714
- | 'select.previous block'
1715
- | 'select.next block'
1716
- | 'style.add'
1717
- | 'style.remove'
1718
- | 'style.toggle',
1719
- 'delete'
1720
- >
1721
- at: NonNullable<EditorSelection>
1722
- }
1723
- | {
1724
- type: StrictExtract_2<
1725
- | 'serialize'
1726
- | 'serialization.failure'
1727
- | 'serialization.success'
1728
- | 'deserialize'
1729
- | 'deserialization.failure'
1730
- | 'deserialization.success'
1731
- | 'split'
1732
- | 'delete'
1733
- | 'select'
1734
- | 'annotation.add'
1735
- | 'annotation.remove'
1736
- | 'block.set'
1737
- | 'block.unset'
1738
- | 'decorator.add'
1739
- | 'decorator.remove'
1740
- | 'delete.backward'
1741
- | 'delete.block'
1742
- | 'delete.forward'
1743
- | 'history.redo'
1744
- | 'history.undo'
1745
- | 'insert.inline object'
1746
- | 'insert.block'
1747
- | 'insert.span'
1748
- | 'insert.text'
1749
- | 'move.backward'
1750
- | 'move.block'
1751
- | 'move.forward'
1752
- | 'annotation.toggle'
1753
- | 'decorator.toggle'
1754
- | 'delete.text'
1755
- | 'insert.blocks'
1756
- | 'insert.break'
1757
- | 'insert.soft break'
1758
- | 'list item.add'
1759
- | 'list item.remove'
1760
- | 'list item.toggle'
1761
- | 'move.block down'
1762
- | 'move.block up'
1763
- | 'select.previous block'
1764
- | 'select.next block'
1765
- | 'style.add'
1766
- | 'style.remove'
1767
- | 'style.toggle',
1768
- 'delete.backward'
1769
- >
1770
- unit: TextUnit
1771
- }
1772
- | {
1773
- type: StrictExtract_2<
1774
- | 'serialize'
1775
- | 'serialization.failure'
1776
- | 'serialization.success'
1777
- | 'deserialize'
1778
- | 'deserialization.failure'
1779
- | 'deserialization.success'
1780
- | 'split'
1781
- | 'delete'
1782
- | 'select'
1783
- | 'annotation.add'
1784
- | 'annotation.remove'
1785
- | 'block.set'
1786
- | 'block.unset'
1787
- | 'decorator.add'
1788
- | 'decorator.remove'
1789
- | 'delete.backward'
1790
- | 'delete.block'
1791
- | 'delete.forward'
1792
- | 'history.redo'
1793
- | 'history.undo'
1794
- | 'insert.inline object'
1795
- | 'insert.block'
1796
- | 'insert.span'
1797
- | 'insert.text'
1798
- | 'move.backward'
1799
- | 'move.block'
1800
- | 'move.forward'
1801
- | 'annotation.toggle'
1802
- | 'decorator.toggle'
1803
- | 'delete.text'
1804
- | 'insert.blocks'
1805
- | 'insert.break'
1806
- | 'insert.soft break'
1807
- | 'list item.add'
1808
- | 'list item.remove'
1809
- | 'list item.toggle'
1810
- | 'move.block down'
1811
- | 'move.block up'
1812
- | 'select.previous block'
1813
- | 'select.next block'
1814
- | 'style.add'
1815
- | 'style.remove'
1816
- | 'style.toggle',
1817
- 'delete.block'
1818
- >
1819
- at: [KeyedSegment]
1820
- }
1821
- | {
1822
- type: StrictExtract_2<
1823
- | 'serialize'
1824
- | 'serialization.failure'
1825
- | 'serialization.success'
1826
- | 'deserialize'
1827
- | 'deserialization.failure'
1828
- | 'deserialization.success'
1829
- | 'split'
1830
- | 'delete'
1831
- | 'select'
1832
- | 'annotation.add'
1833
- | 'annotation.remove'
1834
- | 'block.set'
1835
- | 'block.unset'
1836
- | 'decorator.add'
1837
- | 'decorator.remove'
1838
- | 'delete.backward'
1839
- | 'delete.block'
1840
- | 'delete.forward'
1841
- | 'history.redo'
1842
- | 'history.undo'
1843
- | 'insert.inline object'
1844
- | 'insert.block'
1845
- | 'insert.span'
1846
- | 'insert.text'
1847
- | 'move.backward'
1848
- | 'move.block'
1849
- | 'move.forward'
1850
- | 'annotation.toggle'
1851
- | 'decorator.toggle'
1852
- | 'delete.text'
1853
- | 'insert.blocks'
1854
- | 'insert.break'
1855
- | 'insert.soft break'
1856
- | 'list item.add'
1857
- | 'list item.remove'
1858
- | 'list item.toggle'
1859
- | 'move.block down'
1860
- | 'move.block up'
1861
- | 'select.previous block'
1862
- | 'select.next block'
1863
- | 'style.add'
1864
- | 'style.remove'
1865
- | 'style.toggle',
1866
- 'delete.forward'
1867
- >
1868
- unit: TextUnit
1869
- }
1870
- | {
1871
- type: StrictExtract_2<
1872
- | 'serialize'
1873
- | 'serialization.failure'
1874
- | 'serialization.success'
1875
- | 'deserialize'
1876
- | 'deserialization.failure'
1877
- | 'deserialization.success'
1878
- | 'split'
1879
- | 'delete'
1880
- | 'select'
1881
- | 'annotation.add'
1882
- | 'annotation.remove'
1883
- | 'block.set'
1884
- | 'block.unset'
1885
- | 'decorator.add'
1886
- | 'decorator.remove'
1887
- | 'delete.backward'
1888
- | 'delete.block'
1889
- | 'delete.forward'
1890
- | 'history.redo'
1891
- | 'history.undo'
1892
- | 'insert.inline object'
1893
- | 'insert.block'
1894
- | 'insert.span'
1895
- | 'insert.text'
1896
- | 'move.backward'
1897
- | 'move.block'
1898
- | 'move.forward'
1899
- | 'annotation.toggle'
1900
- | 'decorator.toggle'
1901
- | 'delete.text'
1902
- | 'insert.blocks'
1903
- | 'insert.break'
1904
- | 'insert.soft break'
1905
- | 'list item.add'
1906
- | 'list item.remove'
1907
- | 'list item.toggle'
1908
- | 'move.block down'
1909
- | 'move.block up'
1910
- | 'select.previous block'
1911
- | 'select.next block'
1912
- | 'style.add'
1913
- | 'style.remove'
1914
- | 'style.toggle',
1915
- 'history.redo'
1916
- >
1917
- }
1918
- | {
1919
- type: StrictExtract_2<
1920
- | 'serialize'
1921
- | 'serialization.failure'
1922
- | 'serialization.success'
1923
- | 'deserialize'
1924
- | 'deserialization.failure'
1925
- | 'deserialization.success'
1926
- | 'split'
1927
- | 'delete'
1928
- | 'select'
1929
- | 'annotation.add'
1930
- | 'annotation.remove'
1931
- | 'block.set'
1932
- | 'block.unset'
1933
- | 'decorator.add'
1934
- | 'decorator.remove'
1935
- | 'delete.backward'
1936
- | 'delete.block'
1937
- | 'delete.forward'
1938
- | 'history.redo'
1939
- | 'history.undo'
1940
- | 'insert.inline object'
1941
- | 'insert.block'
1942
- | 'insert.span'
1943
- | 'insert.text'
1944
- | 'move.backward'
1945
- | 'move.block'
1946
- | 'move.forward'
1947
- | 'annotation.toggle'
1948
- | 'decorator.toggle'
1949
- | 'delete.text'
1950
- | 'insert.blocks'
1951
- | 'insert.break'
1952
- | 'insert.soft break'
1953
- | 'list item.add'
1954
- | 'list item.remove'
1955
- | 'list item.toggle'
1956
- | 'move.block down'
1957
- | 'move.block up'
1958
- | 'select.previous block'
1959
- | 'select.next block'
1960
- | 'style.add'
1961
- | 'style.remove'
1962
- | 'style.toggle',
1963
- 'history.undo'
1964
- >
1965
- }
1966
- | {
1967
- type: StrictExtract_2<
1968
- | 'serialize'
1969
- | 'serialization.failure'
1970
- | 'serialization.success'
1971
- | 'deserialize'
1972
- | 'deserialization.failure'
1973
- | 'deserialization.success'
1974
- | 'split'
1975
- | 'delete'
1976
- | 'select'
1977
- | 'annotation.add'
1978
- | 'annotation.remove'
1979
- | 'block.set'
1980
- | 'block.unset'
1981
- | 'decorator.add'
1982
- | 'decorator.remove'
1983
- | 'delete.backward'
1984
- | 'delete.block'
1985
- | 'delete.forward'
1986
- | 'history.redo'
1987
- | 'history.undo'
1988
- | 'insert.inline object'
1989
- | 'insert.block'
1990
- | 'insert.span'
1991
- | 'insert.text'
1992
- | 'move.backward'
1993
- | 'move.block'
1994
- | 'move.forward'
1995
- | 'annotation.toggle'
1996
- | 'decorator.toggle'
1997
- | 'delete.text'
1998
- | 'insert.blocks'
1999
- | 'insert.break'
2000
- | 'insert.soft break'
2001
- | 'list item.add'
2002
- | 'list item.remove'
2003
- | 'list item.toggle'
2004
- | 'move.block down'
2005
- | 'move.block up'
2006
- | 'select.previous block'
2007
- | 'select.next block'
2008
- | 'style.add'
2009
- | 'style.remove'
2010
- | 'style.toggle',
2011
- 'insert.inline object'
2012
- >
2013
- inlineObject: {
2014
- name: string
2015
- value?: {
2016
- [prop: string]: unknown
2017
- }
2018
- }
2019
- }
2020
- | {
2021
- type: StrictExtract_2<
2022
- | 'serialize'
2023
- | 'serialization.failure'
2024
- | 'serialization.success'
2025
- | 'deserialize'
2026
- | 'deserialization.failure'
2027
- | 'deserialization.success'
2028
- | 'split'
2029
- | 'delete'
2030
- | 'select'
2031
- | 'annotation.add'
2032
- | 'annotation.remove'
2033
- | 'block.set'
2034
- | 'block.unset'
2035
- | 'decorator.add'
2036
- | 'decorator.remove'
2037
- | 'delete.backward'
2038
- | 'delete.block'
2039
- | 'delete.forward'
2040
- | 'history.redo'
2041
- | 'history.undo'
2042
- | 'insert.inline object'
2043
- | 'insert.block'
2044
- | 'insert.span'
2045
- | 'insert.text'
2046
- | 'move.backward'
2047
- | 'move.block'
2048
- | 'move.forward'
2049
- | 'annotation.toggle'
2050
- | 'decorator.toggle'
2051
- | 'delete.text'
2052
- | 'insert.blocks'
2053
- | 'insert.break'
2054
- | 'insert.soft break'
2055
- | 'list item.add'
2056
- | 'list item.remove'
2057
- | 'list item.toggle'
2058
- | 'move.block down'
2059
- | 'move.block up'
2060
- | 'select.previous block'
2061
- | 'select.next block'
2062
- | 'style.add'
2063
- | 'style.remove'
2064
- | 'style.toggle',
2065
- 'insert.block'
2066
- >
2067
- block: BlockWithOptionalKey_2
2068
- placement: InsertPlacement_2
2069
- select?: 'start' | 'end' | 'none'
2070
- }
2071
- | {
2072
- type: StrictExtract_2<
2073
- | 'serialize'
2074
- | 'serialization.failure'
2075
- | 'serialization.success'
2076
- | 'deserialize'
2077
- | 'deserialization.failure'
2078
- | 'deserialization.success'
2079
- | 'split'
2080
- | 'delete'
2081
- | 'select'
2082
- | 'annotation.add'
2083
- | 'annotation.remove'
2084
- | 'block.set'
2085
- | 'block.unset'
2086
- | 'decorator.add'
2087
- | 'decorator.remove'
2088
- | 'delete.backward'
2089
- | 'delete.block'
2090
- | 'delete.forward'
2091
- | 'history.redo'
2092
- | 'history.undo'
2093
- | 'insert.inline object'
2094
- | 'insert.block'
2095
- | 'insert.span'
2096
- | 'insert.text'
2097
- | 'move.backward'
2098
- | 'move.block'
2099
- | 'move.forward'
2100
- | 'annotation.toggle'
2101
- | 'decorator.toggle'
2102
- | 'delete.text'
2103
- | 'insert.blocks'
2104
- | 'insert.break'
2105
- | 'insert.soft break'
2106
- | 'list item.add'
2107
- | 'list item.remove'
2108
- | 'list item.toggle'
2109
- | 'move.block down'
2110
- | 'move.block up'
2111
- | 'select.previous block'
2112
- | 'select.next block'
2113
- | 'style.add'
2114
- | 'style.remove'
2115
- | 'style.toggle',
2116
- 'insert.span'
2117
- >
2118
- text: string
2119
- annotations?: Array<{
2120
- name: string
2121
- value: {
2122
- [prop: string]: unknown
2123
- }
2124
- }>
2125
- decorators?: Array<string>
2126
- }
2127
- | {
2128
- type: StrictExtract_2<
2129
- | 'serialize'
2130
- | 'serialization.failure'
2131
- | 'serialization.success'
2132
- | 'deserialize'
2133
- | 'deserialization.failure'
2134
- | 'deserialization.success'
2135
- | 'split'
2136
- | 'delete'
2137
- | 'select'
2138
- | 'annotation.add'
2139
- | 'annotation.remove'
2140
- | 'block.set'
2141
- | 'block.unset'
2142
- | 'decorator.add'
2143
- | 'decorator.remove'
2144
- | 'delete.backward'
2145
- | 'delete.block'
2146
- | 'delete.forward'
2147
- | 'history.redo'
2148
- | 'history.undo'
2149
- | 'insert.inline object'
2150
- | 'insert.block'
2151
- | 'insert.span'
2152
- | 'insert.text'
2153
- | 'move.backward'
2154
- | 'move.block'
2155
- | 'move.forward'
2156
- | 'annotation.toggle'
2157
- | 'decorator.toggle'
2158
- | 'delete.text'
2159
- | 'insert.blocks'
2160
- | 'insert.break'
2161
- | 'insert.soft break'
2162
- | 'list item.add'
2163
- | 'list item.remove'
2164
- | 'list item.toggle'
2165
- | 'move.block down'
2166
- | 'move.block up'
2167
- | 'select.previous block'
2168
- | 'select.next block'
2169
- | 'style.add'
2170
- | 'style.remove'
2171
- | 'style.toggle',
2172
- 'insert.text'
2173
- >
2174
- text: string
2175
- }
2176
- | {
2177
- type: StrictExtract_2<
2178
- | 'serialize'
2179
- | 'serialization.failure'
2180
- | 'serialization.success'
2181
- | 'deserialize'
2182
- | 'deserialization.failure'
2183
- | 'deserialization.success'
2184
- | 'split'
2185
- | 'delete'
2186
- | 'select'
2187
- | 'annotation.add'
2188
- | 'annotation.remove'
2189
- | 'block.set'
2190
- | 'block.unset'
2191
- | 'decorator.add'
2192
- | 'decorator.remove'
2193
- | 'delete.backward'
2194
- | 'delete.block'
2195
- | 'delete.forward'
2196
- | 'history.redo'
2197
- | 'history.undo'
2198
- | 'insert.inline object'
2199
- | 'insert.block'
2200
- | 'insert.span'
2201
- | 'insert.text'
2202
- | 'move.backward'
2203
- | 'move.block'
2204
- | 'move.forward'
2205
- | 'annotation.toggle'
2206
- | 'decorator.toggle'
2207
- | 'delete.text'
2208
- | 'insert.blocks'
2209
- | 'insert.break'
2210
- | 'insert.soft break'
2211
- | 'list item.add'
2212
- | 'list item.remove'
2213
- | 'list item.toggle'
2214
- | 'move.block down'
2215
- | 'move.block up'
2216
- | 'select.previous block'
2217
- | 'select.next block'
2218
- | 'style.add'
2219
- | 'style.remove'
2220
- | 'style.toggle',
2221
- 'move.backward'
2222
- >
2223
- distance: number
2224
- }
2225
- | {
2226
- type: StrictExtract_2<
2227
- | 'serialize'
2228
- | 'serialization.failure'
2229
- | 'serialization.success'
2230
- | 'deserialize'
2231
- | 'deserialization.failure'
2232
- | 'deserialization.success'
2233
- | 'split'
2234
- | 'delete'
2235
- | 'select'
2236
- | 'annotation.add'
2237
- | 'annotation.remove'
2238
- | 'block.set'
2239
- | 'block.unset'
2240
- | 'decorator.add'
2241
- | 'decorator.remove'
2242
- | 'delete.backward'
2243
- | 'delete.block'
2244
- | 'delete.forward'
2245
- | 'history.redo'
2246
- | 'history.undo'
2247
- | 'insert.inline object'
2248
- | 'insert.block'
2249
- | 'insert.span'
2250
- | 'insert.text'
2251
- | 'move.backward'
2252
- | 'move.block'
2253
- | 'move.forward'
2254
- | 'annotation.toggle'
2255
- | 'decorator.toggle'
2256
- | 'delete.text'
2257
- | 'insert.blocks'
2258
- | 'insert.break'
2259
- | 'insert.soft break'
2260
- | 'list item.add'
2261
- | 'list item.remove'
2262
- | 'list item.toggle'
2263
- | 'move.block down'
2264
- | 'move.block up'
2265
- | 'select.previous block'
2266
- | 'select.next block'
2267
- | 'style.add'
2268
- | 'style.remove'
2269
- | 'style.toggle',
2270
- 'move.block'
2271
- >
2272
- at: [KeyedSegment]
2273
- to: [KeyedSegment]
2274
- }
2275
- | {
2276
- type: StrictExtract_2<
2277
- | 'serialize'
2278
- | 'serialization.failure'
2279
- | 'serialization.success'
2280
- | 'deserialize'
2281
- | 'deserialization.failure'
2282
- | 'deserialization.success'
2283
- | 'split'
2284
- | 'delete'
2285
- | 'select'
2286
- | 'annotation.add'
2287
- | 'annotation.remove'
2288
- | 'block.set'
2289
- | 'block.unset'
2290
- | 'decorator.add'
2291
- | 'decorator.remove'
2292
- | 'delete.backward'
2293
- | 'delete.block'
2294
- | 'delete.forward'
2295
- | 'history.redo'
2296
- | 'history.undo'
2297
- | 'insert.inline object'
2298
- | 'insert.block'
2299
- | 'insert.span'
2300
- | 'insert.text'
2301
- | 'move.backward'
2302
- | 'move.block'
2303
- | 'move.forward'
2304
- | 'annotation.toggle'
2305
- | 'decorator.toggle'
2306
- | 'delete.text'
2307
- | 'insert.blocks'
2308
- | 'insert.break'
2309
- | 'insert.soft break'
2310
- | 'list item.add'
2311
- | 'list item.remove'
2312
- | 'list item.toggle'
2313
- | 'move.block down'
2314
- | 'move.block up'
2315
- | 'select.previous block'
2316
- | 'select.next block'
2317
- | 'style.add'
2318
- | 'style.remove'
2319
- | 'style.toggle',
2320
- 'move.forward'
2321
- >
2322
- distance: number
2323
- }
2324
- | {
2325
- type: StrictExtract_2<
2326
- | 'serialize'
2327
- | 'serialization.failure'
2328
- | 'serialization.success'
2329
- | 'deserialize'
2330
- | 'deserialization.failure'
2331
- | 'deserialization.success'
2332
- | 'split'
2333
- | 'delete'
2334
- | 'select'
2335
- | 'annotation.add'
2336
- | 'annotation.remove'
2337
- | 'block.set'
2338
- | 'block.unset'
2339
- | 'decorator.add'
2340
- | 'decorator.remove'
2341
- | 'delete.backward'
2342
- | 'delete.block'
2343
- | 'delete.forward'
2344
- | 'history.redo'
2345
- | 'history.undo'
2346
- | 'insert.inline object'
2347
- | 'insert.block'
2348
- | 'insert.span'
2349
- | 'insert.text'
2350
- | 'move.backward'
2351
- | 'move.block'
2352
- | 'move.forward'
2353
- | 'annotation.toggle'
2354
- | 'decorator.toggle'
2355
- | 'delete.text'
2356
- | 'insert.blocks'
2357
- | 'insert.break'
2358
- | 'insert.soft break'
2359
- | 'list item.add'
2360
- | 'list item.remove'
2361
- | 'list item.toggle'
2362
- | 'move.block down'
2363
- | 'move.block up'
2364
- | 'select.previous block'
2365
- | 'select.next block'
2366
- | 'style.add'
2367
- | 'style.remove'
2368
- | 'style.toggle',
2369
- 'select'
2370
- >
2371
- at: EditorSelection
2372
- }
2373
- | {
2374
- type: StrictExtract_2<
2375
- | 'serialize'
2376
- | 'serialization.failure'
2377
- | 'serialization.success'
2378
- | 'deserialize'
2379
- | 'deserialization.failure'
2380
- | 'deserialization.success'
2381
- | 'split'
2382
- | 'delete'
2383
- | 'select'
2384
- | 'annotation.add'
2385
- | 'annotation.remove'
2386
- | 'block.set'
2387
- | 'block.unset'
2388
- | 'decorator.add'
2389
- | 'decorator.remove'
2390
- | 'delete.backward'
2391
- | 'delete.block'
2392
- | 'delete.forward'
2393
- | 'history.redo'
2394
- | 'history.undo'
2395
- | 'insert.inline object'
2396
- | 'insert.block'
2397
- | 'insert.span'
2398
- | 'insert.text'
2399
- | 'move.backward'
2400
- | 'move.block'
2401
- | 'move.forward'
2402
- | 'annotation.toggle'
2403
- | 'decorator.toggle'
2404
- | 'delete.text'
2405
- | 'insert.blocks'
2406
- | 'insert.break'
2407
- | 'insert.soft break'
2408
- | 'list item.add'
2409
- | 'list item.remove'
2410
- | 'list item.toggle'
2411
- | 'move.block down'
2412
- | 'move.block up'
2413
- | 'select.previous block'
2414
- | 'select.next block'
2415
- | 'style.add'
2416
- | 'style.remove'
2417
- | 'style.toggle',
2418
- 'annotation.toggle'
2419
- >
2420
- annotation: {
2421
- name: string
2422
- value: {
2423
- [prop: string]: unknown
2424
- }
2425
- }
2426
- }
2427
- | {
2428
- type: StrictExtract_2<
2429
- | 'serialize'
2430
- | 'serialization.failure'
2431
- | 'serialization.success'
2432
- | 'deserialize'
2433
- | 'deserialization.failure'
2434
- | 'deserialization.success'
2435
- | 'split'
2436
- | 'delete'
2437
- | 'select'
2438
- | 'annotation.add'
2439
- | 'annotation.remove'
2440
- | 'block.set'
2441
- | 'block.unset'
2442
- | 'decorator.add'
2443
- | 'decorator.remove'
2444
- | 'delete.backward'
2445
- | 'delete.block'
2446
- | 'delete.forward'
2447
- | 'history.redo'
2448
- | 'history.undo'
2449
- | 'insert.inline object'
2450
- | 'insert.block'
2451
- | 'insert.span'
2452
- | 'insert.text'
2453
- | 'move.backward'
2454
- | 'move.block'
2455
- | 'move.forward'
2456
- | 'annotation.toggle'
2457
- | 'decorator.toggle'
2458
- | 'delete.text'
2459
- | 'insert.blocks'
2460
- | 'insert.break'
2461
- | 'insert.soft break'
2462
- | 'list item.add'
2463
- | 'list item.remove'
2464
- | 'list item.toggle'
2465
- | 'move.block down'
2466
- | 'move.block up'
2467
- | 'select.previous block'
2468
- | 'select.next block'
2469
- | 'style.add'
2470
- | 'style.remove'
2471
- | 'style.toggle',
2472
- 'decorator.toggle'
2473
- >
2474
- decorator: string
2475
- at?: {
2476
- anchor: BlockOffset_2
2477
- focus: BlockOffset_2
2478
- }
2479
- }
2480
- | {
2481
- type: StrictExtract_2<
2482
- | 'serialize'
2483
- | 'serialization.failure'
2484
- | 'serialization.success'
2485
- | 'deserialize'
2486
- | 'deserialization.failure'
2487
- | 'deserialization.success'
2488
- | 'split'
2489
- | 'delete'
2490
- | 'select'
2491
- | 'annotation.add'
2492
- | 'annotation.remove'
2493
- | 'block.set'
2494
- | 'block.unset'
2495
- | 'decorator.add'
2496
- | 'decorator.remove'
2497
- | 'delete.backward'
2498
- | 'delete.block'
2499
- | 'delete.forward'
2500
- | 'history.redo'
2501
- | 'history.undo'
2502
- | 'insert.inline object'
2503
- | 'insert.block'
2504
- | 'insert.span'
2505
- | 'insert.text'
2506
- | 'move.backward'
2507
- | 'move.block'
2508
- | 'move.forward'
2509
- | 'annotation.toggle'
2510
- | 'decorator.toggle'
2511
- | 'delete.text'
2512
- | 'insert.blocks'
2513
- | 'insert.break'
2514
- | 'insert.soft break'
2515
- | 'list item.add'
2516
- | 'list item.remove'
2517
- | 'list item.toggle'
2518
- | 'move.block down'
2519
- | 'move.block up'
2520
- | 'select.previous block'
2521
- | 'select.next block'
2522
- | 'style.add'
2523
- | 'style.remove'
2524
- | 'style.toggle',
2525
- 'delete.text'
2526
- >
2527
- at: {
2528
- anchor: BlockOffset_2
2529
- focus: BlockOffset_2
2530
- }
2531
- }
2532
- | {
2533
- type: StrictExtract_2<
2534
- | 'serialize'
2535
- | 'serialization.failure'
2536
- | 'serialization.success'
2537
- | 'deserialize'
2538
- | 'deserialization.failure'
2539
- | 'deserialization.success'
2540
- | 'split'
2541
- | 'delete'
2542
- | 'select'
2543
- | 'annotation.add'
2544
- | 'annotation.remove'
2545
- | 'block.set'
2546
- | 'block.unset'
2547
- | 'decorator.add'
2548
- | 'decorator.remove'
2549
- | 'delete.backward'
2550
- | 'delete.block'
2551
- | 'delete.forward'
2552
- | 'history.redo'
2553
- | 'history.undo'
2554
- | 'insert.inline object'
2555
- | 'insert.block'
2556
- | 'insert.span'
2557
- | 'insert.text'
2558
- | 'move.backward'
2559
- | 'move.block'
2560
- | 'move.forward'
2561
- | 'annotation.toggle'
2562
- | 'decorator.toggle'
2563
- | 'delete.text'
2564
- | 'insert.blocks'
2565
- | 'insert.break'
2566
- | 'insert.soft break'
2567
- | 'list item.add'
2568
- | 'list item.remove'
2569
- | 'list item.toggle'
2570
- | 'move.block down'
2571
- | 'move.block up'
2572
- | 'select.previous block'
2573
- | 'select.next block'
2574
- | 'style.add'
2575
- | 'style.remove'
2576
- | 'style.toggle',
2577
- 'deserialize'
2578
- >
2579
- originEvent:
2580
- | PickFromUnion_2<
2581
- NativeBehaviorEvent_2,
2582
- 'type',
2583
- 'drag.drop' | 'clipboard.paste'
2584
- >
2585
- | InputBehaviorEvent_2
2586
- }
2587
- | {
2588
- type: StrictExtract_2<
2589
- | 'serialize'
2590
- | 'serialization.failure'
2591
- | 'serialization.success'
2592
- | 'deserialize'
2593
- | 'deserialization.failure'
2594
- | 'deserialization.success'
2595
- | 'split'
2596
- | 'delete'
2597
- | 'select'
2598
- | 'annotation.add'
2599
- | 'annotation.remove'
2600
- | 'block.set'
2601
- | 'block.unset'
2602
- | 'decorator.add'
2603
- | 'decorator.remove'
2604
- | 'delete.backward'
2605
- | 'delete.block'
2606
- | 'delete.forward'
2607
- | 'history.redo'
2608
- | 'history.undo'
2609
- | 'insert.inline object'
2610
- | 'insert.block'
2611
- | 'insert.span'
2612
- | 'insert.text'
2613
- | 'move.backward'
2614
- | 'move.block'
2615
- | 'move.forward'
2616
- | 'annotation.toggle'
2617
- | 'decorator.toggle'
2618
- | 'delete.text'
2619
- | 'insert.blocks'
2620
- | 'insert.break'
2621
- | 'insert.soft break'
2622
- | 'list item.add'
2623
- | 'list item.remove'
2624
- | 'list item.toggle'
2625
- | 'move.block down'
2626
- | 'move.block up'
2627
- | 'select.previous block'
2628
- | 'select.next block'
2629
- | 'style.add'
2630
- | 'style.remove'
2631
- | 'style.toggle',
2632
- 'serialize'
2633
- >
2634
- originEvent: PickFromUnion_2<
2635
- NativeBehaviorEvent_2,
2636
- 'type',
2637
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2638
- >
2639
- }
2640
- | {
2641
- type: StrictExtract_2<
2642
- | 'serialize'
2643
- | 'serialization.failure'
2644
- | 'serialization.success'
2645
- | 'deserialize'
2646
- | 'deserialization.failure'
2647
- | 'deserialization.success'
2648
- | 'split'
2649
- | 'delete'
2650
- | 'select'
2651
- | 'annotation.add'
2652
- | 'annotation.remove'
2653
- | 'block.set'
2654
- | 'block.unset'
2655
- | 'decorator.add'
2656
- | 'decorator.remove'
2657
- | 'delete.backward'
2658
- | 'delete.block'
2659
- | 'delete.forward'
2660
- | 'history.redo'
2661
- | 'history.undo'
2662
- | 'insert.inline object'
2663
- | 'insert.block'
2664
- | 'insert.span'
2665
- | 'insert.text'
2666
- | 'move.backward'
2667
- | 'move.block'
2668
- | 'move.forward'
2669
- | 'annotation.toggle'
2670
- | 'decorator.toggle'
2671
- | 'delete.text'
2672
- | 'insert.blocks'
2673
- | 'insert.break'
2674
- | 'insert.soft break'
2675
- | 'list item.add'
2676
- | 'list item.remove'
2677
- | 'list item.toggle'
2678
- | 'move.block down'
2679
- | 'move.block up'
2680
- | 'select.previous block'
2681
- | 'select.next block'
2682
- | 'style.add'
2683
- | 'style.remove'
2684
- | 'style.toggle',
2685
- 'deserialization.success'
2686
- >
2687
- mimeType: MIMEType_2
2688
- data: Array<PortableTextBlock>
2689
- originEvent:
2690
- | PickFromUnion_2<
2691
- NativeBehaviorEvent_2,
2692
- 'type',
2693
- 'drag.drop' | 'clipboard.paste'
2694
- >
2695
- | InputBehaviorEvent_2
2696
- }
2697
- | {
2698
- type: StrictExtract_2<
2699
- | 'serialize'
2700
- | 'serialization.failure'
2701
- | 'serialization.success'
2702
- | 'deserialize'
2703
- | 'deserialization.failure'
2704
- | 'deserialization.success'
2705
- | 'split'
2706
- | 'delete'
2707
- | 'select'
2708
- | 'annotation.add'
2709
- | 'annotation.remove'
2710
- | 'block.set'
2711
- | 'block.unset'
2712
- | 'decorator.add'
2713
- | 'decorator.remove'
2714
- | 'delete.backward'
2715
- | 'delete.block'
2716
- | 'delete.forward'
2717
- | 'history.redo'
2718
- | 'history.undo'
2719
- | 'insert.inline object'
2720
- | 'insert.block'
2721
- | 'insert.span'
2722
- | 'insert.text'
2723
- | 'move.backward'
2724
- | 'move.block'
2725
- | 'move.forward'
2726
- | 'annotation.toggle'
2727
- | 'decorator.toggle'
2728
- | 'delete.text'
2729
- | 'insert.blocks'
2730
- | 'insert.break'
2731
- | 'insert.soft break'
2732
- | 'list item.add'
2733
- | 'list item.remove'
2734
- | 'list item.toggle'
2735
- | 'move.block down'
2736
- | 'move.block up'
2737
- | 'select.previous block'
2738
- | 'select.next block'
2739
- | 'style.add'
2740
- | 'style.remove'
2741
- | 'style.toggle',
2742
- 'deserialization.failure'
2743
- >
2744
- mimeType: MIMEType_2
2745
- reason: string
2746
- originEvent:
2747
- | PickFromUnion_2<
2748
- NativeBehaviorEvent_2,
2749
- 'type',
2750
- 'drag.drop' | 'clipboard.paste'
2751
- >
2752
- | InputBehaviorEvent_2
2753
- }
2754
- | {
2755
- type: StrictExtract_2<
2756
- | 'serialize'
2757
- | 'serialization.failure'
2758
- | 'serialization.success'
2759
- | 'deserialize'
2760
- | 'deserialization.failure'
2761
- | 'deserialization.success'
2762
- | 'split'
2763
- | 'delete'
2764
- | 'select'
2765
- | 'annotation.add'
2766
- | 'annotation.remove'
2767
- | 'block.set'
2768
- | 'block.unset'
2769
- | 'decorator.add'
2770
- | 'decorator.remove'
2771
- | 'delete.backward'
2772
- | 'delete.block'
2773
- | 'delete.forward'
2774
- | 'history.redo'
2775
- | 'history.undo'
2776
- | 'insert.inline object'
2777
- | 'insert.block'
2778
- | 'insert.span'
2779
- | 'insert.text'
2780
- | 'move.backward'
2781
- | 'move.block'
2782
- | 'move.forward'
2783
- | 'annotation.toggle'
2784
- | 'decorator.toggle'
2785
- | 'delete.text'
2786
- | 'insert.blocks'
2787
- | 'insert.break'
2788
- | 'insert.soft break'
2789
- | 'list item.add'
2790
- | 'list item.remove'
2791
- | 'list item.toggle'
2792
- | 'move.block down'
2793
- | 'move.block up'
2794
- | 'select.previous block'
2795
- | 'select.next block'
2796
- | 'style.add'
2797
- | 'style.remove'
2798
- | 'style.toggle',
2799
- 'serialization.success'
2800
- >
2801
- mimeType: MIMEType_2
2802
- data: string
2803
- originEvent: PickFromUnion_2<
2804
- NativeBehaviorEvent_2,
2805
- 'type',
2806
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2807
- >
2808
- }
2809
- | {
2810
- type: StrictExtract_2<
2811
- | 'serialize'
2812
- | 'serialization.failure'
2813
- | 'serialization.success'
2814
- | 'deserialize'
2815
- | 'deserialization.failure'
2816
- | 'deserialization.success'
2817
- | 'split'
2818
- | 'delete'
2819
- | 'select'
2820
- | 'annotation.add'
2821
- | 'annotation.remove'
2822
- | 'block.set'
2823
- | 'block.unset'
2824
- | 'decorator.add'
2825
- | 'decorator.remove'
2826
- | 'delete.backward'
2827
- | 'delete.block'
2828
- | 'delete.forward'
2829
- | 'history.redo'
2830
- | 'history.undo'
2831
- | 'insert.inline object'
2832
- | 'insert.block'
2833
- | 'insert.span'
2834
- | 'insert.text'
2835
- | 'move.backward'
2836
- | 'move.block'
2837
- | 'move.forward'
2838
- | 'annotation.toggle'
2839
- | 'decorator.toggle'
2840
- | 'delete.text'
2841
- | 'insert.blocks'
2842
- | 'insert.break'
2843
- | 'insert.soft break'
2844
- | 'list item.add'
2845
- | 'list item.remove'
2846
- | 'list item.toggle'
2847
- | 'move.block down'
2848
- | 'move.block up'
2849
- | 'select.previous block'
2850
- | 'select.next block'
2851
- | 'style.add'
2852
- | 'style.remove'
2853
- | 'style.toggle',
2854
- 'serialization.failure'
2855
- >
2856
- mimeType: MIMEType_2
2857
- reason: string
2858
- originEvent: PickFromUnion_2<
2859
- NativeBehaviorEvent_2,
2860
- 'type',
2861
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2862
- >
2863
- }
2864
- | {
2865
- type: StrictExtract_2<
2866
- | 'serialize'
2867
- | 'serialization.failure'
2868
- | 'serialization.success'
2869
- | 'deserialize'
2870
- | 'deserialization.failure'
2871
- | 'deserialization.success'
2872
- | 'split'
2873
- | 'delete'
2874
- | 'select'
2875
- | 'annotation.add'
2876
- | 'annotation.remove'
2877
- | 'block.set'
2878
- | 'block.unset'
2879
- | 'decorator.add'
2880
- | 'decorator.remove'
2881
- | 'delete.backward'
2882
- | 'delete.block'
2883
- | 'delete.forward'
2884
- | 'history.redo'
2885
- | 'history.undo'
2886
- | 'insert.inline object'
2887
- | 'insert.block'
2888
- | 'insert.span'
2889
- | 'insert.text'
2890
- | 'move.backward'
2891
- | 'move.block'
2892
- | 'move.forward'
2893
- | 'annotation.toggle'
2894
- | 'decorator.toggle'
2895
- | 'delete.text'
2896
- | 'insert.blocks'
2897
- | 'insert.break'
2898
- | 'insert.soft break'
2899
- | 'list item.add'
2900
- | 'list item.remove'
2901
- | 'list item.toggle'
2902
- | 'move.block down'
2903
- | 'move.block up'
2904
- | 'select.previous block'
2905
- | 'select.next block'
2906
- | 'style.add'
2907
- | 'style.remove'
2908
- | 'style.toggle',
2909
- 'insert.blocks'
2910
- >
2911
- blocks: Array<BlockWithOptionalKey_2>
2912
- placement: InsertPlacement_2
2913
- }
2914
- | {
2915
- type: StrictExtract_2<
2916
- | 'serialize'
2917
- | 'serialization.failure'
2918
- | 'serialization.success'
2919
- | 'deserialize'
2920
- | 'deserialization.failure'
2921
- | 'deserialization.success'
2922
- | 'split'
2923
- | 'delete'
2924
- | 'select'
2925
- | 'annotation.add'
2926
- | 'annotation.remove'
2927
- | 'block.set'
2928
- | 'block.unset'
2929
- | 'decorator.add'
2930
- | 'decorator.remove'
2931
- | 'delete.backward'
2932
- | 'delete.block'
2933
- | 'delete.forward'
2934
- | 'history.redo'
2935
- | 'history.undo'
2936
- | 'insert.inline object'
2937
- | 'insert.block'
2938
- | 'insert.span'
2939
- | 'insert.text'
2940
- | 'move.backward'
2941
- | 'move.block'
2942
- | 'move.forward'
2943
- | 'annotation.toggle'
2944
- | 'decorator.toggle'
2945
- | 'delete.text'
2946
- | 'insert.blocks'
2947
- | 'insert.break'
2948
- | 'insert.soft break'
2949
- | 'list item.add'
2950
- | 'list item.remove'
2951
- | 'list item.toggle'
2952
- | 'move.block down'
2953
- | 'move.block up'
2954
- | 'select.previous block'
2955
- | 'select.next block'
2956
- | 'style.add'
2957
- | 'style.remove'
2958
- | 'style.toggle',
2959
- 'insert.break'
2960
- >
2961
- }
2962
- | {
2963
- type: StrictExtract_2<
2964
- | 'serialize'
2965
- | 'serialization.failure'
2966
- | 'serialization.success'
2967
- | 'deserialize'
2968
- | 'deserialization.failure'
2969
- | 'deserialization.success'
2970
- | 'split'
2971
- | 'delete'
2972
- | 'select'
2973
- | 'annotation.add'
2974
- | 'annotation.remove'
2975
- | 'block.set'
2976
- | 'block.unset'
2977
- | 'decorator.add'
2978
- | 'decorator.remove'
2979
- | 'delete.backward'
2980
- | 'delete.block'
2981
- | 'delete.forward'
2982
- | 'history.redo'
2983
- | 'history.undo'
2984
- | 'insert.inline object'
2985
- | 'insert.block'
2986
- | 'insert.span'
2987
- | 'insert.text'
2988
- | 'move.backward'
2989
- | 'move.block'
2990
- | 'move.forward'
2991
- | 'annotation.toggle'
2992
- | 'decorator.toggle'
2993
- | 'delete.text'
2994
- | 'insert.blocks'
2995
- | 'insert.break'
2996
- | 'insert.soft break'
2997
- | 'list item.add'
2998
- | 'list item.remove'
2999
- | 'list item.toggle'
3000
- | 'move.block down'
3001
- | 'move.block up'
3002
- | 'select.previous block'
3003
- | 'select.next block'
3004
- | 'style.add'
3005
- | 'style.remove'
3006
- | 'style.toggle',
3007
- 'insert.soft break'
3008
- >
3009
- }
3010
- | {
3011
- type: StrictExtract_2<
3012
- | 'serialize'
3013
- | 'serialization.failure'
3014
- | 'serialization.success'
3015
- | 'deserialize'
3016
- | 'deserialization.failure'
3017
- | 'deserialization.success'
3018
- | 'split'
3019
- | 'delete'
3020
- | 'select'
3021
- | 'annotation.add'
3022
- | 'annotation.remove'
3023
- | 'block.set'
3024
- | 'block.unset'
3025
- | 'decorator.add'
3026
- | 'decorator.remove'
3027
- | 'delete.backward'
3028
- | 'delete.block'
3029
- | 'delete.forward'
3030
- | 'history.redo'
3031
- | 'history.undo'
3032
- | 'insert.inline object'
3033
- | 'insert.block'
3034
- | 'insert.span'
3035
- | 'insert.text'
3036
- | 'move.backward'
3037
- | 'move.block'
3038
- | 'move.forward'
3039
- | 'annotation.toggle'
3040
- | 'decorator.toggle'
3041
- | 'delete.text'
3042
- | 'insert.blocks'
3043
- | 'insert.break'
3044
- | 'insert.soft break'
3045
- | 'list item.add'
3046
- | 'list item.remove'
3047
- | 'list item.toggle'
3048
- | 'move.block down'
3049
- | 'move.block up'
3050
- | 'select.previous block'
3051
- | 'select.next block'
3052
- | 'style.add'
3053
- | 'style.remove'
3054
- | 'style.toggle',
3055
- 'list item.add'
3056
- >
3057
- listItem: string
3058
- }
3059
- | {
3060
- type: StrictExtract_2<
3061
- | 'serialize'
3062
- | 'serialization.failure'
3063
- | 'serialization.success'
3064
- | 'deserialize'
3065
- | 'deserialization.failure'
3066
- | 'deserialization.success'
3067
- | 'split'
3068
- | 'delete'
3069
- | 'select'
3070
- | 'annotation.add'
3071
- | 'annotation.remove'
3072
- | 'block.set'
3073
- | 'block.unset'
3074
- | 'decorator.add'
3075
- | 'decorator.remove'
3076
- | 'delete.backward'
3077
- | 'delete.block'
3078
- | 'delete.forward'
3079
- | 'history.redo'
3080
- | 'history.undo'
3081
- | 'insert.inline object'
3082
- | 'insert.block'
3083
- | 'insert.span'
3084
- | 'insert.text'
3085
- | 'move.backward'
3086
- | 'move.block'
3087
- | 'move.forward'
3088
- | 'annotation.toggle'
3089
- | 'decorator.toggle'
3090
- | 'delete.text'
3091
- | 'insert.blocks'
3092
- | 'insert.break'
3093
- | 'insert.soft break'
3094
- | 'list item.add'
3095
- | 'list item.remove'
3096
- | 'list item.toggle'
3097
- | 'move.block down'
3098
- | 'move.block up'
3099
- | 'select.previous block'
3100
- | 'select.next block'
3101
- | 'style.add'
3102
- | 'style.remove'
3103
- | 'style.toggle',
3104
- 'list item.remove'
3105
- >
3106
- listItem: string
3107
- }
3108
- | {
3109
- type: StrictExtract_2<
3110
- | 'serialize'
3111
- | 'serialization.failure'
3112
- | 'serialization.success'
3113
- | 'deserialize'
3114
- | 'deserialization.failure'
3115
- | 'deserialization.success'
3116
- | 'split'
3117
- | 'delete'
3118
- | 'select'
3119
- | 'annotation.add'
3120
- | 'annotation.remove'
3121
- | 'block.set'
3122
- | 'block.unset'
3123
- | 'decorator.add'
3124
- | 'decorator.remove'
3125
- | 'delete.backward'
3126
- | 'delete.block'
3127
- | 'delete.forward'
3128
- | 'history.redo'
3129
- | 'history.undo'
3130
- | 'insert.inline object'
3131
- | 'insert.block'
3132
- | 'insert.span'
3133
- | 'insert.text'
3134
- | 'move.backward'
3135
- | 'move.block'
3136
- | 'move.forward'
3137
- | 'annotation.toggle'
3138
- | 'decorator.toggle'
3139
- | 'delete.text'
3140
- | 'insert.blocks'
3141
- | 'insert.break'
3142
- | 'insert.soft break'
3143
- | 'list item.add'
3144
- | 'list item.remove'
3145
- | 'list item.toggle'
3146
- | 'move.block down'
3147
- | 'move.block up'
3148
- | 'select.previous block'
3149
- | 'select.next block'
3150
- | 'style.add'
3151
- | 'style.remove'
3152
- | 'style.toggle',
3153
- 'list item.toggle'
3154
- >
3155
- listItem: string
3156
- }
3157
- | {
3158
- type: StrictExtract_2<
3159
- | 'serialize'
3160
- | 'serialization.failure'
3161
- | 'serialization.success'
3162
- | 'deserialize'
3163
- | 'deserialization.failure'
3164
- | 'deserialization.success'
3165
- | 'split'
3166
- | 'delete'
3167
- | 'select'
3168
- | 'annotation.add'
3169
- | 'annotation.remove'
3170
- | 'block.set'
3171
- | 'block.unset'
3172
- | 'decorator.add'
3173
- | 'decorator.remove'
3174
- | 'delete.backward'
3175
- | 'delete.block'
3176
- | 'delete.forward'
3177
- | 'history.redo'
3178
- | 'history.undo'
3179
- | 'insert.inline object'
3180
- | 'insert.block'
3181
- | 'insert.span'
3182
- | 'insert.text'
3183
- | 'move.backward'
3184
- | 'move.block'
3185
- | 'move.forward'
3186
- | 'annotation.toggle'
3187
- | 'decorator.toggle'
3188
- | 'delete.text'
3189
- | 'insert.blocks'
3190
- | 'insert.break'
3191
- | 'insert.soft break'
3192
- | 'list item.add'
3193
- | 'list item.remove'
3194
- | 'list item.toggle'
3195
- | 'move.block down'
3196
- | 'move.block up'
3197
- | 'select.previous block'
3198
- | 'select.next block'
3199
- | 'style.add'
3200
- | 'style.remove'
3201
- | 'style.toggle',
3202
- 'move.block down'
3203
- >
3204
- at: [KeyedSegment]
3205
- }
3206
- | {
3207
- type: StrictExtract_2<
3208
- | 'serialize'
3209
- | 'serialization.failure'
3210
- | 'serialization.success'
3211
- | 'deserialize'
3212
- | 'deserialization.failure'
3213
- | 'deserialization.success'
3214
- | 'split'
3215
- | 'delete'
3216
- | 'select'
3217
- | 'annotation.add'
3218
- | 'annotation.remove'
3219
- | 'block.set'
3220
- | 'block.unset'
3221
- | 'decorator.add'
3222
- | 'decorator.remove'
3223
- | 'delete.backward'
3224
- | 'delete.block'
3225
- | 'delete.forward'
3226
- | 'history.redo'
3227
- | 'history.undo'
3228
- | 'insert.inline object'
3229
- | 'insert.block'
3230
- | 'insert.span'
3231
- | 'insert.text'
3232
- | 'move.backward'
3233
- | 'move.block'
3234
- | 'move.forward'
3235
- | 'annotation.toggle'
3236
- | 'decorator.toggle'
3237
- | 'delete.text'
3238
- | 'insert.blocks'
3239
- | 'insert.break'
3240
- | 'insert.soft break'
3241
- | 'list item.add'
3242
- | 'list item.remove'
3243
- | 'list item.toggle'
3244
- | 'move.block down'
3245
- | 'move.block up'
3246
- | 'select.previous block'
3247
- | 'select.next block'
3248
- | 'style.add'
3249
- | 'style.remove'
3250
- | 'style.toggle',
3251
- 'move.block up'
3252
- >
3253
- at: [KeyedSegment]
3254
- }
3255
- | {
3256
- type: StrictExtract_2<
3257
- | 'serialize'
3258
- | 'serialization.failure'
3259
- | 'serialization.success'
3260
- | 'deserialize'
3261
- | 'deserialization.failure'
3262
- | 'deserialization.success'
3263
- | 'split'
3264
- | 'delete'
3265
- | 'select'
3266
- | 'annotation.add'
3267
- | 'annotation.remove'
3268
- | 'block.set'
3269
- | 'block.unset'
3270
- | 'decorator.add'
3271
- | 'decorator.remove'
3272
- | 'delete.backward'
3273
- | 'delete.block'
3274
- | 'delete.forward'
3275
- | 'history.redo'
3276
- | 'history.undo'
3277
- | 'insert.inline object'
3278
- | 'insert.block'
3279
- | 'insert.span'
3280
- | 'insert.text'
3281
- | 'move.backward'
3282
- | 'move.block'
3283
- | 'move.forward'
3284
- | 'annotation.toggle'
3285
- | 'decorator.toggle'
3286
- | 'delete.text'
3287
- | 'insert.blocks'
3288
- | 'insert.break'
3289
- | 'insert.soft break'
3290
- | 'list item.add'
3291
- | 'list item.remove'
3292
- | 'list item.toggle'
3293
- | 'move.block down'
3294
- | 'move.block up'
3295
- | 'select.previous block'
3296
- | 'select.next block'
3297
- | 'style.add'
3298
- | 'style.remove'
3299
- | 'style.toggle',
3300
- 'select.previous block'
3301
- >
3302
- select?: 'start' | 'end'
3303
- }
3304
- | {
3305
- type: StrictExtract_2<
3306
- | 'serialize'
3307
- | 'serialization.failure'
3308
- | 'serialization.success'
3309
- | 'deserialize'
3310
- | 'deserialization.failure'
3311
- | 'deserialization.success'
3312
- | 'split'
3313
- | 'delete'
3314
- | 'select'
3315
- | 'annotation.add'
3316
- | 'annotation.remove'
3317
- | 'block.set'
3318
- | 'block.unset'
3319
- | 'decorator.add'
3320
- | 'decorator.remove'
3321
- | 'delete.backward'
3322
- | 'delete.block'
3323
- | 'delete.forward'
3324
- | 'history.redo'
3325
- | 'history.undo'
3326
- | 'insert.inline object'
3327
- | 'insert.block'
3328
- | 'insert.span'
3329
- | 'insert.text'
3330
- | 'move.backward'
3331
- | 'move.block'
3332
- | 'move.forward'
3333
- | 'annotation.toggle'
3334
- | 'decorator.toggle'
3335
- | 'delete.text'
3336
- | 'insert.blocks'
3337
- | 'insert.break'
3338
- | 'insert.soft break'
3339
- | 'list item.add'
3340
- | 'list item.remove'
3341
- | 'list item.toggle'
3342
- | 'move.block down'
3343
- | 'move.block up'
3344
- | 'select.previous block'
3345
- | 'select.next block'
3346
- | 'style.add'
3347
- | 'style.remove'
3348
- | 'style.toggle',
3349
- 'select.next block'
3350
- >
3351
- select?: 'start' | 'end'
3352
- }
3353
- | {
3354
- type: StrictExtract_2<
3355
- | 'serialize'
3356
- | 'serialization.failure'
3357
- | 'serialization.success'
3358
- | 'deserialize'
3359
- | 'deserialization.failure'
3360
- | 'deserialization.success'
3361
- | 'split'
3362
- | 'delete'
3363
- | 'select'
3364
- | 'annotation.add'
3365
- | 'annotation.remove'
3366
- | 'block.set'
3367
- | 'block.unset'
3368
- | 'decorator.add'
3369
- | 'decorator.remove'
3370
- | 'delete.backward'
3371
- | 'delete.block'
3372
- | 'delete.forward'
3373
- | 'history.redo'
3374
- | 'history.undo'
3375
- | 'insert.inline object'
3376
- | 'insert.block'
3377
- | 'insert.span'
3378
- | 'insert.text'
3379
- | 'move.backward'
3380
- | 'move.block'
3381
- | 'move.forward'
3382
- | 'annotation.toggle'
3383
- | 'decorator.toggle'
3384
- | 'delete.text'
3385
- | 'insert.blocks'
3386
- | 'insert.break'
3387
- | 'insert.soft break'
3388
- | 'list item.add'
3389
- | 'list item.remove'
3390
- | 'list item.toggle'
3391
- | 'move.block down'
3392
- | 'move.block up'
3393
- | 'select.previous block'
3394
- | 'select.next block'
3395
- | 'style.add'
3396
- | 'style.remove'
3397
- | 'style.toggle',
3398
- 'split'
3399
- >
3400
- }
3401
- | {
3402
- type: StrictExtract_2<
3403
- | 'serialize'
3404
- | 'serialization.failure'
3405
- | 'serialization.success'
3406
- | 'deserialize'
3407
- | 'deserialization.failure'
3408
- | 'deserialization.success'
3409
- | 'split'
3410
- | 'delete'
3411
- | 'select'
3412
- | 'annotation.add'
3413
- | 'annotation.remove'
3414
- | 'block.set'
3415
- | 'block.unset'
3416
- | 'decorator.add'
3417
- | 'decorator.remove'
3418
- | 'delete.backward'
3419
- | 'delete.block'
3420
- | 'delete.forward'
3421
- | 'history.redo'
3422
- | 'history.undo'
3423
- | 'insert.inline object'
3424
- | 'insert.block'
3425
- | 'insert.span'
3426
- | 'insert.text'
3427
- | 'move.backward'
3428
- | 'move.block'
3429
- | 'move.forward'
3430
- | 'annotation.toggle'
3431
- | 'decorator.toggle'
3432
- | 'delete.text'
3433
- | 'insert.blocks'
3434
- | 'insert.break'
3435
- | 'insert.soft break'
3436
- | 'list item.add'
3437
- | 'list item.remove'
3438
- | 'list item.toggle'
3439
- | 'move.block down'
3440
- | 'move.block up'
3441
- | 'select.previous block'
3442
- | 'select.next block'
3443
- | 'style.add'
3444
- | 'style.remove'
3445
- | 'style.toggle',
3446
- 'style.add'
3447
- >
3448
- style: string
3449
- }
3450
- | {
3451
- type: StrictExtract_2<
3452
- | 'serialize'
3453
- | 'serialization.failure'
3454
- | 'serialization.success'
3455
- | 'deserialize'
3456
- | 'deserialization.failure'
3457
- | 'deserialization.success'
3458
- | 'split'
3459
- | 'delete'
3460
- | 'select'
3461
- | 'annotation.add'
3462
- | 'annotation.remove'
3463
- | 'block.set'
3464
- | 'block.unset'
3465
- | 'decorator.add'
3466
- | 'decorator.remove'
3467
- | 'delete.backward'
3468
- | 'delete.block'
3469
- | 'delete.forward'
3470
- | 'history.redo'
3471
- | 'history.undo'
3472
- | 'insert.inline object'
3473
- | 'insert.block'
3474
- | 'insert.span'
3475
- | 'insert.text'
3476
- | 'move.backward'
3477
- | 'move.block'
3478
- | 'move.forward'
3479
- | 'annotation.toggle'
3480
- | 'decorator.toggle'
3481
- | 'delete.text'
3482
- | 'insert.blocks'
3483
- | 'insert.break'
3484
- | 'insert.soft break'
3485
- | 'list item.add'
3486
- | 'list item.remove'
3487
- | 'list item.toggle'
3488
- | 'move.block down'
3489
- | 'move.block up'
3490
- | 'select.previous block'
3491
- | 'select.next block'
3492
- | 'style.add'
3493
- | 'style.remove'
3494
- | 'style.toggle',
3495
- 'style.remove'
3496
- >
3497
- style: string
3498
- }
3499
- | {
3500
- type: StrictExtract_2<
3501
- | 'serialize'
3502
- | 'serialization.failure'
3503
- | 'serialization.success'
3504
- | 'deserialize'
3505
- | 'deserialization.failure'
3506
- | 'deserialization.success'
3507
- | 'split'
3508
- | 'delete'
3509
- | 'select'
3510
- | 'annotation.add'
3511
- | 'annotation.remove'
3512
- | 'block.set'
3513
- | 'block.unset'
3514
- | 'decorator.add'
3515
- | 'decorator.remove'
3516
- | 'delete.backward'
3517
- | 'delete.block'
3518
- | 'delete.forward'
3519
- | 'history.redo'
3520
- | 'history.undo'
3521
- | 'insert.inline object'
3522
- | 'insert.block'
3523
- | 'insert.span'
3524
- | 'insert.text'
3525
- | 'move.backward'
3526
- | 'move.block'
3527
- | 'move.forward'
3528
- | 'annotation.toggle'
3529
- | 'decorator.toggle'
3530
- | 'delete.text'
3531
- | 'insert.blocks'
3532
- | 'insert.break'
3533
- | 'insert.soft break'
3534
- | 'list item.add'
3535
- | 'list item.remove'
3536
- | 'list item.toggle'
3537
- | 'move.block down'
3538
- | 'move.block up'
3539
- | 'select.previous block'
3540
- | 'select.next block'
3541
- | 'style.add'
3542
- | 'style.remove'
3543
- | 'style.toggle',
3544
- 'style.toggle'
3545
- >
3546
- style: string
3547
- }
3548
- | {
3549
- type: StrictExtract_2<
3550
- | 'clipboard.copy'
3551
- | 'clipboard.cut'
3552
- | 'drag.dragstart'
3553
- | 'clipboard.paste'
3554
- | 'drag.drag'
3555
- | 'drag.dragend'
3556
- | 'drag.dragenter'
3557
- | 'drag.dragover'
3558
- | 'drag.dragleave'
3559
- | 'drag.drop'
3560
- | 'input.*'
3561
- | 'keyboard.keydown'
3562
- | 'keyboard.keyup'
3563
- | 'mouse.click',
3564
- 'clipboard.copy'
3565
- >
3566
- originEvent: {
3567
- dataTransfer: DataTransfer
3568
- }
3569
- position: Pick<EventPosition, 'selection'>
3570
- }
3571
- | {
3572
- type: StrictExtract_2<
3573
- | 'clipboard.copy'
3574
- | 'clipboard.cut'
3575
- | 'drag.dragstart'
3576
- | 'clipboard.paste'
3577
- | 'drag.drag'
3578
- | 'drag.dragend'
3579
- | 'drag.dragenter'
3580
- | 'drag.dragover'
3581
- | 'drag.dragleave'
3582
- | 'drag.drop'
3583
- | 'input.*'
3584
- | 'keyboard.keydown'
3585
- | 'keyboard.keyup'
3586
- | 'mouse.click',
3587
- 'clipboard.cut'
3588
- >
3589
- originEvent: {
3590
- dataTransfer: DataTransfer
3591
- }
3592
- position: Pick<EventPosition, 'selection'>
3593
- }
3594
- | {
3595
- type: StrictExtract_2<
3596
- | 'clipboard.copy'
3597
- | 'clipboard.cut'
3598
- | 'drag.dragstart'
3599
- | 'clipboard.paste'
3600
- | 'drag.drag'
3601
- | 'drag.dragend'
3602
- | 'drag.dragenter'
3603
- | 'drag.dragover'
3604
- | 'drag.dragleave'
3605
- | 'drag.drop'
3606
- | 'input.*'
3607
- | 'keyboard.keydown'
3608
- | 'keyboard.keyup'
3609
- | 'mouse.click',
3610
- 'clipboard.paste'
3611
- >
3612
- originEvent: {
3613
- dataTransfer: DataTransfer
3614
- }
3615
- position: Pick<EventPosition, 'selection'>
3616
- }
3617
- | {
3618
- type: StrictExtract_2<
3619
- | 'clipboard.copy'
3620
- | 'clipboard.cut'
3621
- | 'drag.dragstart'
3622
- | 'clipboard.paste'
3623
- | 'drag.drag'
3624
- | 'drag.dragend'
3625
- | 'drag.dragenter'
3626
- | 'drag.dragover'
3627
- | 'drag.dragleave'
3628
- | 'drag.drop'
3629
- | 'input.*'
3630
- | 'keyboard.keydown'
3631
- | 'keyboard.keyup'
3632
- | 'mouse.click',
3633
- 'drag.dragstart'
3634
- >
3635
- originEvent: {
3636
- dataTransfer: DataTransfer
3637
- }
3638
- position: Pick<EventPosition, 'selection'>
3639
- }
3640
- | {
3641
- type: StrictExtract_2<
3642
- | 'clipboard.copy'
3643
- | 'clipboard.cut'
3644
- | 'drag.dragstart'
3645
- | 'clipboard.paste'
3646
- | 'drag.drag'
3647
- | 'drag.dragend'
3648
- | 'drag.dragenter'
3649
- | 'drag.dragover'
3650
- | 'drag.dragleave'
3651
- | 'drag.drop'
3652
- | 'input.*'
3653
- | 'keyboard.keydown'
3654
- | 'keyboard.keyup'
3655
- | 'mouse.click',
3656
- 'drag.drag'
3657
- >
3658
- originEvent: {
3659
- dataTransfer: DataTransfer
3660
- }
3661
- }
3662
- | {
3663
- type: StrictExtract_2<
3664
- | 'clipboard.copy'
3665
- | 'clipboard.cut'
3666
- | 'drag.dragstart'
3667
- | 'clipboard.paste'
3668
- | 'drag.drag'
3669
- | 'drag.dragend'
3670
- | 'drag.dragenter'
3671
- | 'drag.dragover'
3672
- | 'drag.dragleave'
3673
- | 'drag.drop'
3674
- | 'input.*'
3675
- | 'keyboard.keydown'
3676
- | 'keyboard.keyup'
3677
- | 'mouse.click',
3678
- 'drag.dragend'
3679
- >
3680
- originEvent: {
3681
- dataTransfer: DataTransfer
3682
- }
3683
- }
3684
- | {
3685
- type: StrictExtract_2<
3686
- | 'clipboard.copy'
3687
- | 'clipboard.cut'
3688
- | 'drag.dragstart'
3689
- | 'clipboard.paste'
3690
- | 'drag.drag'
3691
- | 'drag.dragend'
3692
- | 'drag.dragenter'
3693
- | 'drag.dragover'
3694
- | 'drag.dragleave'
3695
- | 'drag.drop'
3696
- | 'input.*'
3697
- | 'keyboard.keydown'
3698
- | 'keyboard.keyup'
3699
- | 'mouse.click',
3700
- 'drag.dragenter'
3701
- >
3702
- originEvent: {
3703
- dataTransfer: DataTransfer
3704
- }
3705
- position: EventPosition
3706
- }
3707
- | {
3708
- type: StrictExtract_2<
3709
- | 'clipboard.copy'
3710
- | 'clipboard.cut'
3711
- | 'drag.dragstart'
3712
- | 'clipboard.paste'
3713
- | 'drag.drag'
3714
- | 'drag.dragend'
3715
- | 'drag.dragenter'
3716
- | 'drag.dragover'
3717
- | 'drag.dragleave'
3718
- | 'drag.drop'
3719
- | 'input.*'
3720
- | 'keyboard.keydown'
3721
- | 'keyboard.keyup'
3722
- | 'mouse.click',
3723
- 'drag.dragover'
3724
- >
3725
- originEvent: {
3726
- dataTransfer: DataTransfer
3727
- }
3728
- position: EventPosition
3729
- }
3730
- | {
3731
- type: StrictExtract_2<
3732
- | 'clipboard.copy'
3733
- | 'clipboard.cut'
3734
- | 'drag.dragstart'
3735
- | 'clipboard.paste'
3736
- | 'drag.drag'
3737
- | 'drag.dragend'
3738
- | 'drag.dragenter'
3739
- | 'drag.dragover'
3740
- | 'drag.dragleave'
3741
- | 'drag.drop'
3742
- | 'input.*'
3743
- | 'keyboard.keydown'
3744
- | 'keyboard.keyup'
3745
- | 'mouse.click',
3746
- 'drag.drop'
3747
- >
3748
- originEvent: {
3749
- dataTransfer: DataTransfer
3750
- }
3751
- position: EventPosition
3752
- }
3753
- | {
3754
- type: StrictExtract_2<
3755
- | 'clipboard.copy'
3756
- | 'clipboard.cut'
3757
- | 'drag.dragstart'
3758
- | 'clipboard.paste'
3759
- | 'drag.drag'
3760
- | 'drag.dragend'
3761
- | 'drag.dragenter'
3762
- | 'drag.dragover'
3763
- | 'drag.dragleave'
3764
- | 'drag.drop'
3765
- | 'input.*'
3766
- | 'keyboard.keydown'
3767
- | 'keyboard.keyup'
3768
- | 'mouse.click',
3769
- 'drag.dragleave'
3770
- >
3771
- originEvent: {
3772
- dataTransfer: DataTransfer
3773
- }
3774
- }
3775
- | InputBehaviorEvent_2
3776
- | {
3777
- type: StrictExtract_2<
3778
- | 'clipboard.copy'
3779
- | 'clipboard.cut'
3780
- | 'drag.dragstart'
3781
- | 'clipboard.paste'
3782
- | 'drag.drag'
3783
- | 'drag.dragend'
3784
- | 'drag.dragenter'
3785
- | 'drag.dragover'
3786
- | 'drag.dragleave'
3787
- | 'drag.drop'
3788
- | 'input.*'
3789
- | 'keyboard.keydown'
3790
- | 'keyboard.keyup'
3791
- | 'mouse.click',
3792
- 'keyboard.keydown'
3793
- >
3794
- originEvent: Pick<
3795
- KeyboardEvent,
3796
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
3797
- >
3798
- }
3799
- | {
3800
- type: StrictExtract_2<
3801
- | 'clipboard.copy'
3802
- | 'clipboard.cut'
3803
- | 'drag.dragstart'
3804
- | 'clipboard.paste'
3805
- | 'drag.drag'
3806
- | 'drag.dragend'
3807
- | 'drag.dragenter'
3808
- | 'drag.dragover'
3809
- | 'drag.dragleave'
3810
- | 'drag.drop'
3811
- | 'input.*'
3812
- | 'keyboard.keydown'
3813
- | 'keyboard.keyup'
3814
- | 'mouse.click',
3815
- 'keyboard.keyup'
3816
- >
3817
- originEvent: Pick<
3818
- KeyboardEvent,
3819
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
3820
- >
3821
- }
3822
- | MouseBehaviorEvent_2
3823
- | CustomBehaviorEvent_2<
3824
- Record<string, unknown>,
3825
- string,
3826
- `custom.${string}`
3827
- >
3828
- >
3829
- >
1270
+ behaviors: Set<never>
3830
1271
  converters: Set<Converter>
3831
1272
  getLegacySchema: () => PortableTextMemberSchemaTypes
3832
1273
  keyGenerator: () => string
@@ -7914,7 +5355,7 @@ declare type InputBehaviorEvent = {
7914
5355
  declare type InsertPlacement = 'auto' | 'after' | 'before'
7915
5356
 
7916
5357
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
7917
- actionId?: string
5358
+ operationId?: string
7918
5359
  value: Array<PortableTextBlock>
7919
5360
  }
7920
5361