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