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