@portabletext/editor 1.31.2 → 1.33.0
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.
- package/lib/_chunks-cjs/behavior.core.cjs +4 -4
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/behavior.markdown.cjs +19 -11
- package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
- package/lib/_chunks-cjs/plugin.event-listener.cjs +1839 -1724
- package/lib/_chunks-cjs/plugin.event-listener.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.get-trimmed-selection.cjs +97 -0
- package/lib/_chunks-cjs/selector.get-trimmed-selection.cjs.map +1 -0
- package/lib/_chunks-cjs/{parse-blocks.cjs → util.block-offsets-to-selection.cjs} +21 -2
- package/lib/_chunks-cjs/util.block-offsets-to-selection.cjs.map +1 -0
- package/lib/_chunks-cjs/util.reverse-selection.cjs +11 -0
- package/lib/_chunks-cjs/util.reverse-selection.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js +1 -1
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/behavior.markdown.js +18 -11
- package/lib/_chunks-es/behavior.markdown.js.map +1 -1
- package/lib/_chunks-es/plugin.event-listener.js +1842 -1726
- package/lib/_chunks-es/plugin.event-listener.js.map +1 -1
- package/lib/_chunks-es/selector.get-trimmed-selection.js +100 -0
- package/lib/_chunks-es/selector.get-trimmed-selection.js.map +1 -0
- package/lib/_chunks-es/{parse-blocks.js → util.block-offsets-to-selection.js} +21 -1
- package/lib/_chunks-es/util.block-offsets-to-selection.js.map +1 -0
- package/lib/_chunks-es/util.reverse-selection.js +11 -0
- package/lib/_chunks-es/util.reverse-selection.js.map +1 -1
- package/lib/behaviors/index.d.cts +27 -0
- package/lib/behaviors/index.d.ts +27 -0
- package/lib/index.d.cts +1128 -66
- package/lib/index.d.ts +1128 -66
- package/lib/plugins/index.cjs +295 -3
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +1142 -67
- package/lib/plugins/index.d.ts +1142 -67
- package/lib/plugins/index.js +300 -4
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.cjs +51 -1
- package/lib/selectors/index.cjs.map +1 -1
- package/lib/selectors/index.d.cts +67 -0
- package/lib/selectors/index.d.ts +67 -0
- package/lib/selectors/index.js +53 -2
- package/lib/selectors/index.js.map +1 -1
- package/lib/utils/index.cjs +5 -4
- package/lib/utils/index.cjs.map +1 -1
- package/lib/utils/index.d.cts +16 -0
- package/lib/utils/index.d.ts +16 -0
- package/lib/utils/index.js +4 -3
- package/package.json +2 -2
- package/src/behavior-actions/behavior.action.decorator.add.ts +161 -0
- package/src/behavior-actions/behavior.action.delete.text.ts +54 -0
- package/src/behavior-actions/behavior.actions.ts +25 -43
- package/src/behaviors/behavior.markdown-emphasis.ts +395 -0
- package/src/behaviors/behavior.markdown.ts +11 -4
- package/src/behaviors/behavior.types.ts +7 -0
- package/src/editor/editor-machine.ts +80 -85
- package/src/editor/plugins/create-with-event-listeners.ts +51 -0
- package/src/editor/plugins/createWithEditableAPI.ts +18 -2
- package/src/editor/plugins/createWithPortableTextMarkModel.ts +2 -97
- package/src/editor/plugins/createWithUndoRedo.ts +132 -107
- package/src/editor/with-applying-behavior-actions.ts +27 -3
- package/src/plugins/plugin.markdown.tsx +11 -1
- package/src/selectors/index.ts +5 -0
- package/src/selectors/selector.get-anchor-block.ts +22 -0
- package/src/selectors/selector.get-anchor-child.ts +36 -0
- package/src/selectors/selector.get-anchor-span.ts +18 -0
- package/src/selectors/selector.get-anchor-text-block.ts +20 -0
- package/src/selectors/selector.get-trimmed-selection.test.ts +658 -0
- package/src/selectors/selector.get-trimmed-selection.ts +175 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/util.block-offsets-to-selection.ts +36 -0
- package/lib/_chunks-cjs/parse-blocks.cjs.map +0 -1
- package/lib/_chunks-cjs/util.is-empty-text-block.cjs +0 -14
- package/lib/_chunks-cjs/util.is-empty-text-block.cjs.map +0 -1
- package/lib/_chunks-es/parse-blocks.js.map +0 -1
- package/lib/_chunks-es/util.is-empty-text-block.js +0 -15
- package/lib/_chunks-es/util.is-empty-text-block.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -715,6 +715,7 @@ declare const editorMachine: StateMachine<
|
|
|
715
715
|
| {
|
|
716
716
|
type: 'decorator.add'
|
|
717
717
|
decorator: string
|
|
718
|
+
selection?: NonNullable<EditorSelection>
|
|
718
719
|
}
|
|
719
720
|
| {
|
|
720
721
|
type: 'decorator.remove'
|
|
@@ -748,6 +749,12 @@ declare const editorMachine: StateMachine<
|
|
|
748
749
|
| {
|
|
749
750
|
type: 'focus'
|
|
750
751
|
}
|
|
752
|
+
| {
|
|
753
|
+
type: 'history.redo'
|
|
754
|
+
}
|
|
755
|
+
| {
|
|
756
|
+
type: 'history.undo'
|
|
757
|
+
}
|
|
751
758
|
| {
|
|
752
759
|
type: 'insert.blocks'
|
|
753
760
|
blocks: Array<PortableTextBlock>
|
|
@@ -1139,6 +1146,7 @@ declare const editorMachine: StateMachine<
|
|
|
1139
1146
|
| {
|
|
1140
1147
|
type: 'decorator.add'
|
|
1141
1148
|
decorator: string
|
|
1149
|
+
selection?: NonNullable<EditorSelection>
|
|
1142
1150
|
}
|
|
1143
1151
|
| {
|
|
1144
1152
|
type: 'decorator.remove'
|
|
@@ -1172,6 +1180,12 @@ declare const editorMachine: StateMachine<
|
|
|
1172
1180
|
| {
|
|
1173
1181
|
type: 'focus'
|
|
1174
1182
|
}
|
|
1183
|
+
| {
|
|
1184
|
+
type: 'history.redo'
|
|
1185
|
+
}
|
|
1186
|
+
| {
|
|
1187
|
+
type: 'history.undo'
|
|
1188
|
+
}
|
|
1175
1189
|
| {
|
|
1176
1190
|
type: 'insert.blocks'
|
|
1177
1191
|
blocks: Array<PortableTextBlock>
|
|
@@ -1463,6 +1477,7 @@ declare const editorMachine: StateMachine<
|
|
|
1463
1477
|
| {
|
|
1464
1478
|
type: 'decorator.add'
|
|
1465
1479
|
decorator: string
|
|
1480
|
+
selection?: NonNullable<EditorSelection>
|
|
1466
1481
|
}
|
|
1467
1482
|
| {
|
|
1468
1483
|
type: 'decorator.remove'
|
|
@@ -1496,6 +1511,12 @@ declare const editorMachine: StateMachine<
|
|
|
1496
1511
|
| {
|
|
1497
1512
|
type: 'focus'
|
|
1498
1513
|
}
|
|
1514
|
+
| {
|
|
1515
|
+
type: 'history.redo'
|
|
1516
|
+
}
|
|
1517
|
+
| {
|
|
1518
|
+
type: 'history.undo'
|
|
1519
|
+
}
|
|
1499
1520
|
| {
|
|
1500
1521
|
type: 'insert.blocks'
|
|
1501
1522
|
blocks: Array<PortableTextBlock>
|
|
@@ -1812,6 +1833,7 @@ declare const editorMachine: StateMachine<
|
|
|
1812
1833
|
| {
|
|
1813
1834
|
type: 'decorator.add'
|
|
1814
1835
|
decorator: string
|
|
1836
|
+
selection?: NonNullable<EditorSelection>
|
|
1815
1837
|
}
|
|
1816
1838
|
| {
|
|
1817
1839
|
type: 'decorator.remove'
|
|
@@ -1845,6 +1867,12 @@ declare const editorMachine: StateMachine<
|
|
|
1845
1867
|
| {
|
|
1846
1868
|
type: 'focus'
|
|
1847
1869
|
}
|
|
1870
|
+
| {
|
|
1871
|
+
type: 'history.redo'
|
|
1872
|
+
}
|
|
1873
|
+
| {
|
|
1874
|
+
type: 'history.undo'
|
|
1875
|
+
}
|
|
1848
1876
|
| {
|
|
1849
1877
|
type: 'insert.blocks'
|
|
1850
1878
|
blocks: Array<PortableTextBlock>
|
|
@@ -2137,6 +2165,8 @@ declare const editorMachine: StateMachine<
|
|
|
2137
2165
|
| 'delete.block'
|
|
2138
2166
|
| 'delete.forward'
|
|
2139
2167
|
| 'delete.text'
|
|
2168
|
+
| 'history.redo'
|
|
2169
|
+
| 'history.undo'
|
|
2140
2170
|
| 'insert.blocks'
|
|
2141
2171
|
| 'insert.block object'
|
|
2142
2172
|
| 'insert.inline object'
|
|
@@ -2191,6 +2221,8 @@ declare const editorMachine: StateMachine<
|
|
|
2191
2221
|
| 'delete.block'
|
|
2192
2222
|
| 'delete.forward'
|
|
2193
2223
|
| 'delete.text'
|
|
2224
|
+
| 'history.redo'
|
|
2225
|
+
| 'history.undo'
|
|
2194
2226
|
| 'insert.blocks'
|
|
2195
2227
|
| 'insert.block object'
|
|
2196
2228
|
| 'insert.inline object'
|
|
@@ -2293,6 +2325,7 @@ declare const editorMachine: StateMachine<
|
|
|
2293
2325
|
| {
|
|
2294
2326
|
type: 'decorator.add'
|
|
2295
2327
|
decorator: string
|
|
2328
|
+
selection?: NonNullable<EditorSelection>
|
|
2296
2329
|
}
|
|
2297
2330
|
| {
|
|
2298
2331
|
type: 'decorator.remove'
|
|
@@ -2326,6 +2359,12 @@ declare const editorMachine: StateMachine<
|
|
|
2326
2359
|
| {
|
|
2327
2360
|
type: 'focus'
|
|
2328
2361
|
}
|
|
2362
|
+
| {
|
|
2363
|
+
type: 'history.redo'
|
|
2364
|
+
}
|
|
2365
|
+
| {
|
|
2366
|
+
type: 'history.undo'
|
|
2367
|
+
}
|
|
2329
2368
|
| {
|
|
2330
2369
|
type: 'insert.blocks'
|
|
2331
2370
|
blocks: Array<PortableTextBlock>
|
|
@@ -2640,6 +2679,7 @@ declare const editorMachine: StateMachine<
|
|
|
2640
2679
|
| {
|
|
2641
2680
|
type: 'decorator.add'
|
|
2642
2681
|
decorator: string
|
|
2682
|
+
selection?: NonNullable<EditorSelection>
|
|
2643
2683
|
}
|
|
2644
2684
|
| {
|
|
2645
2685
|
type: 'decorator.remove'
|
|
@@ -2673,6 +2713,12 @@ declare const editorMachine: StateMachine<
|
|
|
2673
2713
|
| {
|
|
2674
2714
|
type: 'focus'
|
|
2675
2715
|
}
|
|
2716
|
+
| {
|
|
2717
|
+
type: 'history.redo'
|
|
2718
|
+
}
|
|
2719
|
+
| {
|
|
2720
|
+
type: 'history.undo'
|
|
2721
|
+
}
|
|
2676
2722
|
| {
|
|
2677
2723
|
type: 'insert.blocks'
|
|
2678
2724
|
blocks: Array<PortableTextBlock>
|
|
@@ -2932,6 +2978,7 @@ declare const editorMachine: StateMachine<
|
|
|
2932
2978
|
| {
|
|
2933
2979
|
type: 'decorator.add'
|
|
2934
2980
|
decorator: string
|
|
2981
|
+
selection?: NonNullable<EditorSelection>
|
|
2935
2982
|
}
|
|
2936
2983
|
| {
|
|
2937
2984
|
type: 'decorator.remove'
|
|
@@ -2965,6 +3012,12 @@ declare const editorMachine: StateMachine<
|
|
|
2965
3012
|
| {
|
|
2966
3013
|
type: 'focus'
|
|
2967
3014
|
}
|
|
3015
|
+
| {
|
|
3016
|
+
type: 'history.redo'
|
|
3017
|
+
}
|
|
3018
|
+
| {
|
|
3019
|
+
type: 'history.undo'
|
|
3020
|
+
}
|
|
2968
3021
|
| {
|
|
2969
3022
|
type: 'insert.blocks'
|
|
2970
3023
|
blocks: Array<PortableTextBlock>
|
|
@@ -3279,6 +3332,7 @@ declare const editorMachine: StateMachine<
|
|
|
3279
3332
|
| {
|
|
3280
3333
|
type: 'decorator.add'
|
|
3281
3334
|
decorator: string
|
|
3335
|
+
selection?: NonNullable<EditorSelection>
|
|
3282
3336
|
}
|
|
3283
3337
|
| {
|
|
3284
3338
|
type: 'decorator.remove'
|
|
@@ -3312,6 +3366,12 @@ declare const editorMachine: StateMachine<
|
|
|
3312
3366
|
| {
|
|
3313
3367
|
type: 'focus'
|
|
3314
3368
|
}
|
|
3369
|
+
| {
|
|
3370
|
+
type: 'history.redo'
|
|
3371
|
+
}
|
|
3372
|
+
| {
|
|
3373
|
+
type: 'history.undo'
|
|
3374
|
+
}
|
|
3315
3375
|
| {
|
|
3316
3376
|
type: 'insert.blocks'
|
|
3317
3377
|
blocks: Array<PortableTextBlock>
|
|
@@ -3574,6 +3634,7 @@ declare const editorMachine: StateMachine<
|
|
|
3574
3634
|
| {
|
|
3575
3635
|
type: 'decorator.add'
|
|
3576
3636
|
decorator: string
|
|
3637
|
+
selection?: NonNullable<EditorSelection>
|
|
3577
3638
|
}
|
|
3578
3639
|
| {
|
|
3579
3640
|
type: 'decorator.remove'
|
|
@@ -3607,6 +3668,12 @@ declare const editorMachine: StateMachine<
|
|
|
3607
3668
|
| {
|
|
3608
3669
|
type: 'focus'
|
|
3609
3670
|
}
|
|
3671
|
+
| {
|
|
3672
|
+
type: 'history.redo'
|
|
3673
|
+
}
|
|
3674
|
+
| {
|
|
3675
|
+
type: 'history.undo'
|
|
3676
|
+
}
|
|
3610
3677
|
| {
|
|
3611
3678
|
type: 'insert.blocks'
|
|
3612
3679
|
blocks: Array<PortableTextBlock>
|
|
@@ -3921,6 +3988,7 @@ declare const editorMachine: StateMachine<
|
|
|
3921
3988
|
| {
|
|
3922
3989
|
type: 'decorator.add'
|
|
3923
3990
|
decorator: string
|
|
3991
|
+
selection?: NonNullable<EditorSelection>
|
|
3924
3992
|
}
|
|
3925
3993
|
| {
|
|
3926
3994
|
type: 'decorator.remove'
|
|
@@ -3954,6 +4022,12 @@ declare const editorMachine: StateMachine<
|
|
|
3954
4022
|
| {
|
|
3955
4023
|
type: 'focus'
|
|
3956
4024
|
}
|
|
4025
|
+
| {
|
|
4026
|
+
type: 'history.redo'
|
|
4027
|
+
}
|
|
4028
|
+
| {
|
|
4029
|
+
type: 'history.undo'
|
|
4030
|
+
}
|
|
3957
4031
|
| {
|
|
3958
4032
|
type: 'insert.blocks'
|
|
3959
4033
|
blocks: Array<PortableTextBlock>
|
|
@@ -4215,6 +4289,7 @@ declare const editorMachine: StateMachine<
|
|
|
4215
4289
|
| {
|
|
4216
4290
|
type: 'decorator.add'
|
|
4217
4291
|
decorator: string
|
|
4292
|
+
selection?: NonNullable<EditorSelection>
|
|
4218
4293
|
}
|
|
4219
4294
|
| {
|
|
4220
4295
|
type: 'decorator.remove'
|
|
@@ -4248,6 +4323,12 @@ declare const editorMachine: StateMachine<
|
|
|
4248
4323
|
| {
|
|
4249
4324
|
type: 'focus'
|
|
4250
4325
|
}
|
|
4326
|
+
| {
|
|
4327
|
+
type: 'history.redo'
|
|
4328
|
+
}
|
|
4329
|
+
| {
|
|
4330
|
+
type: 'history.undo'
|
|
4331
|
+
}
|
|
4251
4332
|
| {
|
|
4252
4333
|
type: 'insert.blocks'
|
|
4253
4334
|
blocks: Array<PortableTextBlock>
|
|
@@ -4562,6 +4643,7 @@ declare const editorMachine: StateMachine<
|
|
|
4562
4643
|
| {
|
|
4563
4644
|
type: 'decorator.add'
|
|
4564
4645
|
decorator: string
|
|
4646
|
+
selection?: NonNullable<EditorSelection>
|
|
4565
4647
|
}
|
|
4566
4648
|
| {
|
|
4567
4649
|
type: 'decorator.remove'
|
|
@@ -4595,6 +4677,12 @@ declare const editorMachine: StateMachine<
|
|
|
4595
4677
|
| {
|
|
4596
4678
|
type: 'focus'
|
|
4597
4679
|
}
|
|
4680
|
+
| {
|
|
4681
|
+
type: 'history.redo'
|
|
4682
|
+
}
|
|
4683
|
+
| {
|
|
4684
|
+
type: 'history.undo'
|
|
4685
|
+
}
|
|
4598
4686
|
| {
|
|
4599
4687
|
type: 'insert.blocks'
|
|
4600
4688
|
blocks: Array<PortableTextBlock>
|
|
@@ -4855,6 +4943,7 @@ declare const editorMachine: StateMachine<
|
|
|
4855
4943
|
| {
|
|
4856
4944
|
type: 'decorator.add'
|
|
4857
4945
|
decorator: string
|
|
4946
|
+
selection?: NonNullable<EditorSelection>
|
|
4858
4947
|
}
|
|
4859
4948
|
| {
|
|
4860
4949
|
type: 'decorator.remove'
|
|
@@ -4888,6 +4977,12 @@ declare const editorMachine: StateMachine<
|
|
|
4888
4977
|
| {
|
|
4889
4978
|
type: 'focus'
|
|
4890
4979
|
}
|
|
4980
|
+
| {
|
|
4981
|
+
type: 'history.redo'
|
|
4982
|
+
}
|
|
4983
|
+
| {
|
|
4984
|
+
type: 'history.undo'
|
|
4985
|
+
}
|
|
4891
4986
|
| {
|
|
4892
4987
|
type: 'insert.blocks'
|
|
4893
4988
|
blocks: Array<PortableTextBlock>
|
|
@@ -5202,6 +5297,7 @@ declare const editorMachine: StateMachine<
|
|
|
5202
5297
|
| {
|
|
5203
5298
|
type: 'decorator.add'
|
|
5204
5299
|
decorator: string
|
|
5300
|
+
selection?: NonNullable<EditorSelection>
|
|
5205
5301
|
}
|
|
5206
5302
|
| {
|
|
5207
5303
|
type: 'decorator.remove'
|
|
@@ -5235,6 +5331,12 @@ declare const editorMachine: StateMachine<
|
|
|
5235
5331
|
| {
|
|
5236
5332
|
type: 'focus'
|
|
5237
5333
|
}
|
|
5334
|
+
| {
|
|
5335
|
+
type: 'history.redo'
|
|
5336
|
+
}
|
|
5337
|
+
| {
|
|
5338
|
+
type: 'history.undo'
|
|
5339
|
+
}
|
|
5238
5340
|
| {
|
|
5239
5341
|
type: 'insert.blocks'
|
|
5240
5342
|
blocks: Array<PortableTextBlock>
|
|
@@ -5496,6 +5598,7 @@ declare const editorMachine: StateMachine<
|
|
|
5496
5598
|
| {
|
|
5497
5599
|
type: 'decorator.add'
|
|
5498
5600
|
decorator: string
|
|
5601
|
+
selection?: NonNullable<EditorSelection>
|
|
5499
5602
|
}
|
|
5500
5603
|
| {
|
|
5501
5604
|
type: 'decorator.remove'
|
|
@@ -5529,6 +5632,12 @@ declare const editorMachine: StateMachine<
|
|
|
5529
5632
|
| {
|
|
5530
5633
|
type: 'focus'
|
|
5531
5634
|
}
|
|
5635
|
+
| {
|
|
5636
|
+
type: 'history.redo'
|
|
5637
|
+
}
|
|
5638
|
+
| {
|
|
5639
|
+
type: 'history.undo'
|
|
5640
|
+
}
|
|
5532
5641
|
| {
|
|
5533
5642
|
type: 'insert.blocks'
|
|
5534
5643
|
blocks: Array<PortableTextBlock>
|
|
@@ -5861,6 +5970,7 @@ declare const editorMachine: StateMachine<
|
|
|
5861
5970
|
| {
|
|
5862
5971
|
type: 'decorator.add'
|
|
5863
5972
|
decorator: string
|
|
5973
|
+
selection?: NonNullable<EditorSelection>
|
|
5864
5974
|
}
|
|
5865
5975
|
| {
|
|
5866
5976
|
type: 'decorator.remove'
|
|
@@ -5894,6 +6004,12 @@ declare const editorMachine: StateMachine<
|
|
|
5894
6004
|
| {
|
|
5895
6005
|
type: 'focus'
|
|
5896
6006
|
}
|
|
6007
|
+
| {
|
|
6008
|
+
type: 'history.redo'
|
|
6009
|
+
}
|
|
6010
|
+
| {
|
|
6011
|
+
type: 'history.undo'
|
|
6012
|
+
}
|
|
5897
6013
|
| {
|
|
5898
6014
|
type: 'insert.blocks'
|
|
5899
6015
|
blocks: Array<PortableTextBlock>
|
|
@@ -6208,6 +6324,7 @@ declare const editorMachine: StateMachine<
|
|
|
6208
6324
|
| {
|
|
6209
6325
|
type: 'decorator.add'
|
|
6210
6326
|
decorator: string
|
|
6327
|
+
selection?: NonNullable<EditorSelection>
|
|
6211
6328
|
}
|
|
6212
6329
|
| {
|
|
6213
6330
|
type: 'decorator.remove'
|
|
@@ -6241,6 +6358,12 @@ declare const editorMachine: StateMachine<
|
|
|
6241
6358
|
| {
|
|
6242
6359
|
type: 'focus'
|
|
6243
6360
|
}
|
|
6361
|
+
| {
|
|
6362
|
+
type: 'history.redo'
|
|
6363
|
+
}
|
|
6364
|
+
| {
|
|
6365
|
+
type: 'history.undo'
|
|
6366
|
+
}
|
|
6244
6367
|
| {
|
|
6245
6368
|
type: 'insert.blocks'
|
|
6246
6369
|
blocks: Array<PortableTextBlock>
|
|
@@ -6502,6 +6625,7 @@ declare const editorMachine: StateMachine<
|
|
|
6502
6625
|
| {
|
|
6503
6626
|
type: 'decorator.add'
|
|
6504
6627
|
decorator: string
|
|
6628
|
+
selection?: NonNullable<EditorSelection>
|
|
6505
6629
|
}
|
|
6506
6630
|
| {
|
|
6507
6631
|
type: 'decorator.remove'
|
|
@@ -6535,6 +6659,12 @@ declare const editorMachine: StateMachine<
|
|
|
6535
6659
|
| {
|
|
6536
6660
|
type: 'focus'
|
|
6537
6661
|
}
|
|
6662
|
+
| {
|
|
6663
|
+
type: 'history.redo'
|
|
6664
|
+
}
|
|
6665
|
+
| {
|
|
6666
|
+
type: 'history.undo'
|
|
6667
|
+
}
|
|
6538
6668
|
| {
|
|
6539
6669
|
type: 'insert.blocks'
|
|
6540
6670
|
blocks: Array<PortableTextBlock>
|
|
@@ -6849,6 +6979,7 @@ declare const editorMachine: StateMachine<
|
|
|
6849
6979
|
| {
|
|
6850
6980
|
type: 'decorator.add'
|
|
6851
6981
|
decorator: string
|
|
6982
|
+
selection?: NonNullable<EditorSelection>
|
|
6852
6983
|
}
|
|
6853
6984
|
| {
|
|
6854
6985
|
type: 'decorator.remove'
|
|
@@ -6882,6 +7013,12 @@ declare const editorMachine: StateMachine<
|
|
|
6882
7013
|
| {
|
|
6883
7014
|
type: 'focus'
|
|
6884
7015
|
}
|
|
7016
|
+
| {
|
|
7017
|
+
type: 'history.redo'
|
|
7018
|
+
}
|
|
7019
|
+
| {
|
|
7020
|
+
type: 'history.undo'
|
|
7021
|
+
}
|
|
6885
7022
|
| {
|
|
6886
7023
|
type: 'insert.blocks'
|
|
6887
7024
|
blocks: Array<PortableTextBlock>
|
|
@@ -7141,6 +7278,7 @@ declare const editorMachine: StateMachine<
|
|
|
7141
7278
|
| {
|
|
7142
7279
|
type: 'decorator.add'
|
|
7143
7280
|
decorator: string
|
|
7281
|
+
selection?: NonNullable<EditorSelection>
|
|
7144
7282
|
}
|
|
7145
7283
|
| {
|
|
7146
7284
|
type: 'decorator.remove'
|
|
@@ -7174,6 +7312,12 @@ declare const editorMachine: StateMachine<
|
|
|
7174
7312
|
| {
|
|
7175
7313
|
type: 'focus'
|
|
7176
7314
|
}
|
|
7315
|
+
| {
|
|
7316
|
+
type: 'history.redo'
|
|
7317
|
+
}
|
|
7318
|
+
| {
|
|
7319
|
+
type: 'history.undo'
|
|
7320
|
+
}
|
|
7177
7321
|
| {
|
|
7178
7322
|
type: 'insert.blocks'
|
|
7179
7323
|
blocks: Array<PortableTextBlock>
|
|
@@ -7488,6 +7632,7 @@ declare const editorMachine: StateMachine<
|
|
|
7488
7632
|
| {
|
|
7489
7633
|
type: 'decorator.add'
|
|
7490
7634
|
decorator: string
|
|
7635
|
+
selection?: NonNullable<EditorSelection>
|
|
7491
7636
|
}
|
|
7492
7637
|
| {
|
|
7493
7638
|
type: 'decorator.remove'
|
|
@@ -7521,6 +7666,12 @@ declare const editorMachine: StateMachine<
|
|
|
7521
7666
|
| {
|
|
7522
7667
|
type: 'focus'
|
|
7523
7668
|
}
|
|
7669
|
+
| {
|
|
7670
|
+
type: 'history.redo'
|
|
7671
|
+
}
|
|
7672
|
+
| {
|
|
7673
|
+
type: 'history.undo'
|
|
7674
|
+
}
|
|
7524
7675
|
| {
|
|
7525
7676
|
type: 'insert.blocks'
|
|
7526
7677
|
blocks: Array<PortableTextBlock>
|
|
@@ -7781,6 +7932,7 @@ declare const editorMachine: StateMachine<
|
|
|
7781
7932
|
| {
|
|
7782
7933
|
type: 'decorator.add'
|
|
7783
7934
|
decorator: string
|
|
7935
|
+
selection?: NonNullable<EditorSelection>
|
|
7784
7936
|
}
|
|
7785
7937
|
| {
|
|
7786
7938
|
type: 'decorator.remove'
|
|
@@ -7814,6 +7966,12 @@ declare const editorMachine: StateMachine<
|
|
|
7814
7966
|
| {
|
|
7815
7967
|
type: 'focus'
|
|
7816
7968
|
}
|
|
7969
|
+
| {
|
|
7970
|
+
type: 'history.redo'
|
|
7971
|
+
}
|
|
7972
|
+
| {
|
|
7973
|
+
type: 'history.undo'
|
|
7974
|
+
}
|
|
7817
7975
|
| {
|
|
7818
7976
|
type: 'insert.blocks'
|
|
7819
7977
|
blocks: Array<PortableTextBlock>
|
|
@@ -8128,6 +8286,7 @@ declare const editorMachine: StateMachine<
|
|
|
8128
8286
|
| {
|
|
8129
8287
|
type: 'decorator.add'
|
|
8130
8288
|
decorator: string
|
|
8289
|
+
selection?: NonNullable<EditorSelection>
|
|
8131
8290
|
}
|
|
8132
8291
|
| {
|
|
8133
8292
|
type: 'decorator.remove'
|
|
@@ -8161,6 +8320,12 @@ declare const editorMachine: StateMachine<
|
|
|
8161
8320
|
| {
|
|
8162
8321
|
type: 'focus'
|
|
8163
8322
|
}
|
|
8323
|
+
| {
|
|
8324
|
+
type: 'history.redo'
|
|
8325
|
+
}
|
|
8326
|
+
| {
|
|
8327
|
+
type: 'history.undo'
|
|
8328
|
+
}
|
|
8164
8329
|
| {
|
|
8165
8330
|
type: 'insert.blocks'
|
|
8166
8331
|
blocks: Array<PortableTextBlock>
|
|
@@ -8424,6 +8589,7 @@ declare const editorMachine: StateMachine<
|
|
|
8424
8589
|
| {
|
|
8425
8590
|
type: 'decorator.add'
|
|
8426
8591
|
decorator: string
|
|
8592
|
+
selection?: NonNullable<EditorSelection>
|
|
8427
8593
|
}
|
|
8428
8594
|
| {
|
|
8429
8595
|
type: 'decorator.remove'
|
|
@@ -8457,6 +8623,12 @@ declare const editorMachine: StateMachine<
|
|
|
8457
8623
|
| {
|
|
8458
8624
|
type: 'focus'
|
|
8459
8625
|
}
|
|
8626
|
+
| {
|
|
8627
|
+
type: 'history.redo'
|
|
8628
|
+
}
|
|
8629
|
+
| {
|
|
8630
|
+
type: 'history.undo'
|
|
8631
|
+
}
|
|
8460
8632
|
| {
|
|
8461
8633
|
type: 'insert.blocks'
|
|
8462
8634
|
blocks: Array<PortableTextBlock>
|
|
@@ -8771,6 +8943,7 @@ declare const editorMachine: StateMachine<
|
|
|
8771
8943
|
| {
|
|
8772
8944
|
type: 'decorator.add'
|
|
8773
8945
|
decorator: string
|
|
8946
|
+
selection?: NonNullable<EditorSelection>
|
|
8774
8947
|
}
|
|
8775
8948
|
| {
|
|
8776
8949
|
type: 'decorator.remove'
|
|
@@ -8804,6 +8977,12 @@ declare const editorMachine: StateMachine<
|
|
|
8804
8977
|
| {
|
|
8805
8978
|
type: 'focus'
|
|
8806
8979
|
}
|
|
8980
|
+
| {
|
|
8981
|
+
type: 'history.redo'
|
|
8982
|
+
}
|
|
8983
|
+
| {
|
|
8984
|
+
type: 'history.undo'
|
|
8985
|
+
}
|
|
8807
8986
|
| {
|
|
8808
8987
|
type: 'insert.blocks'
|
|
8809
8988
|
blocks: Array<PortableTextBlock>
|
|
@@ -9067,6 +9246,7 @@ declare const editorMachine: StateMachine<
|
|
|
9067
9246
|
| {
|
|
9068
9247
|
type: 'decorator.add'
|
|
9069
9248
|
decorator: string
|
|
9249
|
+
selection?: NonNullable<EditorSelection>
|
|
9070
9250
|
}
|
|
9071
9251
|
| {
|
|
9072
9252
|
type: 'decorator.remove'
|
|
@@ -9100,6 +9280,12 @@ declare const editorMachine: StateMachine<
|
|
|
9100
9280
|
| {
|
|
9101
9281
|
type: 'focus'
|
|
9102
9282
|
}
|
|
9283
|
+
| {
|
|
9284
|
+
type: 'history.redo'
|
|
9285
|
+
}
|
|
9286
|
+
| {
|
|
9287
|
+
type: 'history.undo'
|
|
9288
|
+
}
|
|
9103
9289
|
| {
|
|
9104
9290
|
type: 'insert.blocks'
|
|
9105
9291
|
blocks: Array<PortableTextBlock>
|
|
@@ -9437,6 +9623,7 @@ declare const editorMachine: StateMachine<
|
|
|
9437
9623
|
| {
|
|
9438
9624
|
type: 'decorator.add'
|
|
9439
9625
|
decorator: string
|
|
9626
|
+
selection?: NonNullable<EditorSelection>
|
|
9440
9627
|
}
|
|
9441
9628
|
| {
|
|
9442
9629
|
type: 'decorator.remove'
|
|
@@ -9470,6 +9657,12 @@ declare const editorMachine: StateMachine<
|
|
|
9470
9657
|
| {
|
|
9471
9658
|
type: 'focus'
|
|
9472
9659
|
}
|
|
9660
|
+
| {
|
|
9661
|
+
type: 'history.redo'
|
|
9662
|
+
}
|
|
9663
|
+
| {
|
|
9664
|
+
type: 'history.undo'
|
|
9665
|
+
}
|
|
9473
9666
|
| {
|
|
9474
9667
|
type: 'insert.blocks'
|
|
9475
9668
|
blocks: Array<PortableTextBlock>
|
|
@@ -9804,6 +9997,7 @@ declare const editorMachine: StateMachine<
|
|
|
9804
9997
|
| {
|
|
9805
9998
|
type: 'decorator.add'
|
|
9806
9999
|
decorator: string
|
|
10000
|
+
selection?: NonNullable<EditorSelection>
|
|
9807
10001
|
}
|
|
9808
10002
|
| {
|
|
9809
10003
|
type: 'decorator.remove'
|
|
@@ -9837,6 +10031,12 @@ declare const editorMachine: StateMachine<
|
|
|
9837
10031
|
| {
|
|
9838
10032
|
type: 'focus'
|
|
9839
10033
|
}
|
|
10034
|
+
| {
|
|
10035
|
+
type: 'history.redo'
|
|
10036
|
+
}
|
|
10037
|
+
| {
|
|
10038
|
+
type: 'history.undo'
|
|
10039
|
+
}
|
|
9840
10040
|
| {
|
|
9841
10041
|
type: 'insert.blocks'
|
|
9842
10042
|
blocks: Array<PortableTextBlock>
|
|
@@ -10319,6 +10519,7 @@ declare const editorMachine: StateMachine<
|
|
|
10319
10519
|
| {
|
|
10320
10520
|
type: 'decorator.add'
|
|
10321
10521
|
decorator: string
|
|
10522
|
+
selection?: NonNullable<EditorSelection>
|
|
10322
10523
|
}
|
|
10323
10524
|
| {
|
|
10324
10525
|
type: 'decorator.remove'
|
|
@@ -10352,6 +10553,12 @@ declare const editorMachine: StateMachine<
|
|
|
10352
10553
|
| {
|
|
10353
10554
|
type: 'focus'
|
|
10354
10555
|
}
|
|
10556
|
+
| {
|
|
10557
|
+
type: 'history.redo'
|
|
10558
|
+
}
|
|
10559
|
+
| {
|
|
10560
|
+
type: 'history.undo'
|
|
10561
|
+
}
|
|
10355
10562
|
| {
|
|
10356
10563
|
type: 'insert.blocks'
|
|
10357
10564
|
blocks: Array<PortableTextBlock>
|
|
@@ -10668,6 +10875,7 @@ declare const editorMachine: StateMachine<
|
|
|
10668
10875
|
| {
|
|
10669
10876
|
type: 'decorator.add'
|
|
10670
10877
|
decorator: string
|
|
10878
|
+
selection?: NonNullable<EditorSelection>
|
|
10671
10879
|
}
|
|
10672
10880
|
| {
|
|
10673
10881
|
type: 'decorator.remove'
|
|
@@ -10701,6 +10909,12 @@ declare const editorMachine: StateMachine<
|
|
|
10701
10909
|
| {
|
|
10702
10910
|
type: 'focus'
|
|
10703
10911
|
}
|
|
10912
|
+
| {
|
|
10913
|
+
type: 'history.redo'
|
|
10914
|
+
}
|
|
10915
|
+
| {
|
|
10916
|
+
type: 'history.undo'
|
|
10917
|
+
}
|
|
10704
10918
|
| {
|
|
10705
10919
|
type: 'insert.blocks'
|
|
10706
10920
|
blocks: Array<PortableTextBlock>
|
|
@@ -10967,6 +11181,7 @@ declare const editorMachine: StateMachine<
|
|
|
10967
11181
|
| {
|
|
10968
11182
|
type: 'decorator.add'
|
|
10969
11183
|
decorator: string
|
|
11184
|
+
selection?: NonNullable<EditorSelection>
|
|
10970
11185
|
}
|
|
10971
11186
|
| {
|
|
10972
11187
|
type: 'decorator.remove'
|
|
@@ -11000,6 +11215,12 @@ declare const editorMachine: StateMachine<
|
|
|
11000
11215
|
| {
|
|
11001
11216
|
type: 'focus'
|
|
11002
11217
|
}
|
|
11218
|
+
| {
|
|
11219
|
+
type: 'history.redo'
|
|
11220
|
+
}
|
|
11221
|
+
| {
|
|
11222
|
+
type: 'history.undo'
|
|
11223
|
+
}
|
|
11003
11224
|
| {
|
|
11004
11225
|
type: 'insert.blocks'
|
|
11005
11226
|
blocks: Array<PortableTextBlock>
|
|
@@ -11316,6 +11537,7 @@ declare const editorMachine: StateMachine<
|
|
|
11316
11537
|
| {
|
|
11317
11538
|
type: 'decorator.add'
|
|
11318
11539
|
decorator: string
|
|
11540
|
+
selection?: NonNullable<EditorSelection>
|
|
11319
11541
|
}
|
|
11320
11542
|
| {
|
|
11321
11543
|
type: 'decorator.remove'
|
|
@@ -11349,6 +11571,12 @@ declare const editorMachine: StateMachine<
|
|
|
11349
11571
|
| {
|
|
11350
11572
|
type: 'focus'
|
|
11351
11573
|
}
|
|
11574
|
+
| {
|
|
11575
|
+
type: 'history.redo'
|
|
11576
|
+
}
|
|
11577
|
+
| {
|
|
11578
|
+
type: 'history.undo'
|
|
11579
|
+
}
|
|
11352
11580
|
| {
|
|
11353
11581
|
type: 'insert.blocks'
|
|
11354
11582
|
blocks: Array<PortableTextBlock>
|
|
@@ -11608,6 +11836,7 @@ declare const editorMachine: StateMachine<
|
|
|
11608
11836
|
| {
|
|
11609
11837
|
type: 'decorator.add'
|
|
11610
11838
|
decorator: string
|
|
11839
|
+
selection?: NonNullable<EditorSelection>
|
|
11611
11840
|
}
|
|
11612
11841
|
| {
|
|
11613
11842
|
type: 'decorator.remove'
|
|
@@ -11641,6 +11870,12 @@ declare const editorMachine: StateMachine<
|
|
|
11641
11870
|
| {
|
|
11642
11871
|
type: 'focus'
|
|
11643
11872
|
}
|
|
11873
|
+
| {
|
|
11874
|
+
type: 'history.redo'
|
|
11875
|
+
}
|
|
11876
|
+
| {
|
|
11877
|
+
type: 'history.undo'
|
|
11878
|
+
}
|
|
11644
11879
|
| {
|
|
11645
11880
|
type: 'insert.blocks'
|
|
11646
11881
|
blocks: Array<PortableTextBlock>
|
|
@@ -11957,6 +12192,7 @@ declare const editorMachine: StateMachine<
|
|
|
11957
12192
|
| {
|
|
11958
12193
|
type: 'decorator.add'
|
|
11959
12194
|
decorator: string
|
|
12195
|
+
selection?: NonNullable<EditorSelection>
|
|
11960
12196
|
}
|
|
11961
12197
|
| {
|
|
11962
12198
|
type: 'decorator.remove'
|
|
@@ -11990,6 +12226,12 @@ declare const editorMachine: StateMachine<
|
|
|
11990
12226
|
| {
|
|
11991
12227
|
type: 'focus'
|
|
11992
12228
|
}
|
|
12229
|
+
| {
|
|
12230
|
+
type: 'history.redo'
|
|
12231
|
+
}
|
|
12232
|
+
| {
|
|
12233
|
+
type: 'history.undo'
|
|
12234
|
+
}
|
|
11993
12235
|
| {
|
|
11994
12236
|
type: 'insert.blocks'
|
|
11995
12237
|
blocks: Array<PortableTextBlock>
|
|
@@ -12249,6 +12491,7 @@ declare const editorMachine: StateMachine<
|
|
|
12249
12491
|
| {
|
|
12250
12492
|
type: 'decorator.add'
|
|
12251
12493
|
decorator: string
|
|
12494
|
+
selection?: NonNullable<EditorSelection>
|
|
12252
12495
|
}
|
|
12253
12496
|
| {
|
|
12254
12497
|
type: 'decorator.remove'
|
|
@@ -12282,6 +12525,12 @@ declare const editorMachine: StateMachine<
|
|
|
12282
12525
|
| {
|
|
12283
12526
|
type: 'focus'
|
|
12284
12527
|
}
|
|
12528
|
+
| {
|
|
12529
|
+
type: 'history.redo'
|
|
12530
|
+
}
|
|
12531
|
+
| {
|
|
12532
|
+
type: 'history.undo'
|
|
12533
|
+
}
|
|
12285
12534
|
| {
|
|
12286
12535
|
type: 'insert.blocks'
|
|
12287
12536
|
blocks: Array<PortableTextBlock>
|
|
@@ -12598,6 +12847,7 @@ declare const editorMachine: StateMachine<
|
|
|
12598
12847
|
| {
|
|
12599
12848
|
type: 'decorator.add'
|
|
12600
12849
|
decorator: string
|
|
12850
|
+
selection?: NonNullable<EditorSelection>
|
|
12601
12851
|
}
|
|
12602
12852
|
| {
|
|
12603
12853
|
type: 'decorator.remove'
|
|
@@ -12631,6 +12881,12 @@ declare const editorMachine: StateMachine<
|
|
|
12631
12881
|
| {
|
|
12632
12882
|
type: 'focus'
|
|
12633
12883
|
}
|
|
12884
|
+
| {
|
|
12885
|
+
type: 'history.redo'
|
|
12886
|
+
}
|
|
12887
|
+
| {
|
|
12888
|
+
type: 'history.undo'
|
|
12889
|
+
}
|
|
12634
12890
|
| {
|
|
12635
12891
|
type: 'insert.blocks'
|
|
12636
12892
|
blocks: Array<PortableTextBlock>
|
|
@@ -12844,6 +13100,7 @@ declare const editorMachine: StateMachine<
|
|
|
12844
13100
|
| {
|
|
12845
13101
|
type: 'decorator.add'
|
|
12846
13102
|
decorator: string
|
|
13103
|
+
selection?: NonNullable<EditorSelection>
|
|
12847
13104
|
}
|
|
12848
13105
|
| {
|
|
12849
13106
|
type: 'decorator.remove'
|
|
@@ -12899,6 +13156,7 @@ declare const editorMachine: StateMachine<
|
|
|
12899
13156
|
| {
|
|
12900
13157
|
type: 'decorator.add'
|
|
12901
13158
|
decorator: string
|
|
13159
|
+
selection?: NonNullable<EditorSelection>
|
|
12902
13160
|
}
|
|
12903
13161
|
| {
|
|
12904
13162
|
type: 'decorator.remove'
|
|
@@ -12932,6 +13190,12 @@ declare const editorMachine: StateMachine<
|
|
|
12932
13190
|
| {
|
|
12933
13191
|
type: 'focus'
|
|
12934
13192
|
}
|
|
13193
|
+
| {
|
|
13194
|
+
type: 'history.redo'
|
|
13195
|
+
}
|
|
13196
|
+
| {
|
|
13197
|
+
type: 'history.undo'
|
|
13198
|
+
}
|
|
12935
13199
|
| {
|
|
12936
13200
|
type: 'insert.blocks'
|
|
12937
13201
|
blocks: Array<PortableTextBlock>
|
|
@@ -13248,6 +13512,7 @@ declare const editorMachine: StateMachine<
|
|
|
13248
13512
|
| {
|
|
13249
13513
|
type: 'decorator.add'
|
|
13250
13514
|
decorator: string
|
|
13515
|
+
selection?: NonNullable<EditorSelection>
|
|
13251
13516
|
}
|
|
13252
13517
|
| {
|
|
13253
13518
|
type: 'decorator.remove'
|
|
@@ -13281,6 +13546,12 @@ declare const editorMachine: StateMachine<
|
|
|
13281
13546
|
| {
|
|
13282
13547
|
type: 'focus'
|
|
13283
13548
|
}
|
|
13549
|
+
| {
|
|
13550
|
+
type: 'history.redo'
|
|
13551
|
+
}
|
|
13552
|
+
| {
|
|
13553
|
+
type: 'history.undo'
|
|
13554
|
+
}
|
|
13284
13555
|
| {
|
|
13285
13556
|
type: 'insert.blocks'
|
|
13286
13557
|
blocks: Array<PortableTextBlock>
|
|
@@ -13554,6 +13825,7 @@ declare const editorMachine: StateMachine<
|
|
|
13554
13825
|
| {
|
|
13555
13826
|
type: 'decorator.add'
|
|
13556
13827
|
decorator: string
|
|
13828
|
+
selection?: NonNullable<EditorSelection>
|
|
13557
13829
|
}
|
|
13558
13830
|
| {
|
|
13559
13831
|
type: 'decorator.remove'
|
|
@@ -13587,6 +13859,12 @@ declare const editorMachine: StateMachine<
|
|
|
13587
13859
|
| {
|
|
13588
13860
|
type: 'focus'
|
|
13589
13861
|
}
|
|
13862
|
+
| {
|
|
13863
|
+
type: 'history.redo'
|
|
13864
|
+
}
|
|
13865
|
+
| {
|
|
13866
|
+
type: 'history.undo'
|
|
13867
|
+
}
|
|
13590
13868
|
| {
|
|
13591
13869
|
type: 'insert.blocks'
|
|
13592
13870
|
blocks: Array<PortableTextBlock>
|
|
@@ -13903,6 +14181,7 @@ declare const editorMachine: StateMachine<
|
|
|
13903
14181
|
| {
|
|
13904
14182
|
type: 'decorator.add'
|
|
13905
14183
|
decorator: string
|
|
14184
|
+
selection?: NonNullable<EditorSelection>
|
|
13906
14185
|
}
|
|
13907
14186
|
| {
|
|
13908
14187
|
type: 'decorator.remove'
|
|
@@ -13936,6 +14215,12 @@ declare const editorMachine: StateMachine<
|
|
|
13936
14215
|
| {
|
|
13937
14216
|
type: 'focus'
|
|
13938
14217
|
}
|
|
14218
|
+
| {
|
|
14219
|
+
type: 'history.redo'
|
|
14220
|
+
}
|
|
14221
|
+
| {
|
|
14222
|
+
type: 'history.undo'
|
|
14223
|
+
}
|
|
13939
14224
|
| {
|
|
13940
14225
|
type: 'insert.blocks'
|
|
13941
14226
|
blocks: Array<PortableTextBlock>
|
|
@@ -14195,6 +14480,7 @@ declare const editorMachine: StateMachine<
|
|
|
14195
14480
|
| {
|
|
14196
14481
|
type: 'decorator.add'
|
|
14197
14482
|
decorator: string
|
|
14483
|
+
selection?: NonNullable<EditorSelection>
|
|
14198
14484
|
}
|
|
14199
14485
|
| {
|
|
14200
14486
|
type: 'decorator.remove'
|
|
@@ -14228,6 +14514,12 @@ declare const editorMachine: StateMachine<
|
|
|
14228
14514
|
| {
|
|
14229
14515
|
type: 'focus'
|
|
14230
14516
|
}
|
|
14517
|
+
| {
|
|
14518
|
+
type: 'history.redo'
|
|
14519
|
+
}
|
|
14520
|
+
| {
|
|
14521
|
+
type: 'history.undo'
|
|
14522
|
+
}
|
|
14231
14523
|
| {
|
|
14232
14524
|
type: 'insert.blocks'
|
|
14233
14525
|
blocks: Array<PortableTextBlock>
|
|
@@ -14544,6 +14836,7 @@ declare const editorMachine: StateMachine<
|
|
|
14544
14836
|
| {
|
|
14545
14837
|
type: 'decorator.add'
|
|
14546
14838
|
decorator: string
|
|
14839
|
+
selection?: NonNullable<EditorSelection>
|
|
14547
14840
|
}
|
|
14548
14841
|
| {
|
|
14549
14842
|
type: 'decorator.remove'
|
|
@@ -14577,6 +14870,12 @@ declare const editorMachine: StateMachine<
|
|
|
14577
14870
|
| {
|
|
14578
14871
|
type: 'focus'
|
|
14579
14872
|
}
|
|
14873
|
+
| {
|
|
14874
|
+
type: 'history.redo'
|
|
14875
|
+
}
|
|
14876
|
+
| {
|
|
14877
|
+
type: 'history.undo'
|
|
14878
|
+
}
|
|
14580
14879
|
| {
|
|
14581
14880
|
type: 'insert.blocks'
|
|
14582
14881
|
blocks: Array<PortableTextBlock>
|
|
@@ -14774,7 +15073,7 @@ declare const editorMachine: StateMachine<
|
|
|
14774
15073
|
}
|
|
14775
15074
|
>
|
|
14776
15075
|
}
|
|
14777
|
-
readonly '
|
|
15076
|
+
readonly 'history.*': {
|
|
14778
15077
|
readonly actions: ActionFunction<
|
|
14779
15078
|
{
|
|
14780
15079
|
behaviors: Set<Behavior>
|
|
@@ -14788,61 +15087,10 @@ declare const editorMachine: StateMachine<
|
|
|
14788
15087
|
value: Array<PortableTextBlock> | undefined
|
|
14789
15088
|
},
|
|
14790
15089
|
| {
|
|
14791
|
-
type: '
|
|
14792
|
-
blocks: Array<PortableTextBlock>
|
|
14793
|
-
}
|
|
14794
|
-
| {
|
|
14795
|
-
type: 'insert.block object'
|
|
14796
|
-
placement: 'auto' | 'after' | 'before'
|
|
14797
|
-
blockObject: {
|
|
14798
|
-
name: string
|
|
14799
|
-
value?: {
|
|
14800
|
-
[prop: string]: unknown
|
|
14801
|
-
}
|
|
14802
|
-
}
|
|
14803
|
-
}
|
|
14804
|
-
| {
|
|
14805
|
-
type: 'insert.inline object'
|
|
14806
|
-
inlineObject: {
|
|
14807
|
-
name: string
|
|
14808
|
-
value?: {
|
|
14809
|
-
[prop: string]: unknown
|
|
14810
|
-
}
|
|
14811
|
-
}
|
|
14812
|
-
}
|
|
14813
|
-
| {
|
|
14814
|
-
type: 'insert.break'
|
|
14815
|
-
}
|
|
14816
|
-
| {
|
|
14817
|
-
type: 'insert.soft break'
|
|
14818
|
-
}
|
|
14819
|
-
| {
|
|
14820
|
-
type: 'insert.block'
|
|
14821
|
-
block: PortableTextBlock
|
|
14822
|
-
placement: 'auto' | 'after' | 'before'
|
|
14823
|
-
}
|
|
14824
|
-
| {
|
|
14825
|
-
type: 'insert.span'
|
|
14826
|
-
text: string
|
|
14827
|
-
annotations?: Array<{
|
|
14828
|
-
name: string
|
|
14829
|
-
value: {
|
|
14830
|
-
[prop: string]: unknown
|
|
14831
|
-
}
|
|
14832
|
-
}>
|
|
14833
|
-
decorators?: Array<string>
|
|
14834
|
-
}
|
|
14835
|
-
| {
|
|
14836
|
-
type: 'insert.text'
|
|
14837
|
-
text: string
|
|
14838
|
-
options?: TextInsertTextOptions
|
|
15090
|
+
type: 'history.redo'
|
|
14839
15091
|
}
|
|
14840
15092
|
| {
|
|
14841
|
-
type: '
|
|
14842
|
-
placement: 'auto' | 'after' | 'before'
|
|
14843
|
-
textBlock?: {
|
|
14844
|
-
children?: PortableTextTextBlock['children']
|
|
14845
|
-
}
|
|
15093
|
+
type: 'history.undo'
|
|
14846
15094
|
},
|
|
14847
15095
|
| {
|
|
14848
15096
|
type: 'annotation.add'
|
|
@@ -14890,6 +15138,7 @@ declare const editorMachine: StateMachine<
|
|
|
14890
15138
|
| {
|
|
14891
15139
|
type: 'decorator.add'
|
|
14892
15140
|
decorator: string
|
|
15141
|
+
selection?: NonNullable<EditorSelection>
|
|
14893
15142
|
}
|
|
14894
15143
|
| {
|
|
14895
15144
|
type: 'decorator.remove'
|
|
@@ -14923,6 +15172,12 @@ declare const editorMachine: StateMachine<
|
|
|
14923
15172
|
| {
|
|
14924
15173
|
type: 'focus'
|
|
14925
15174
|
}
|
|
15175
|
+
| {
|
|
15176
|
+
type: 'history.redo'
|
|
15177
|
+
}
|
|
15178
|
+
| {
|
|
15179
|
+
type: 'history.undo'
|
|
15180
|
+
}
|
|
14926
15181
|
| {
|
|
14927
15182
|
type: 'insert.blocks'
|
|
14928
15183
|
blocks: Array<PortableTextBlock>
|
|
@@ -15239,6 +15494,7 @@ declare const editorMachine: StateMachine<
|
|
|
15239
15494
|
| {
|
|
15240
15495
|
type: 'decorator.add'
|
|
15241
15496
|
decorator: string
|
|
15497
|
+
selection?: NonNullable<EditorSelection>
|
|
15242
15498
|
}
|
|
15243
15499
|
| {
|
|
15244
15500
|
type: 'decorator.remove'
|
|
@@ -15272,6 +15528,12 @@ declare const editorMachine: StateMachine<
|
|
|
15272
15528
|
| {
|
|
15273
15529
|
type: 'focus'
|
|
15274
15530
|
}
|
|
15531
|
+
| {
|
|
15532
|
+
type: 'history.redo'
|
|
15533
|
+
}
|
|
15534
|
+
| {
|
|
15535
|
+
type: 'history.undo'
|
|
15536
|
+
}
|
|
15275
15537
|
| {
|
|
15276
15538
|
type: 'insert.blocks'
|
|
15277
15539
|
blocks: Array<PortableTextBlock>
|
|
@@ -15469,7 +15731,7 @@ declare const editorMachine: StateMachine<
|
|
|
15469
15731
|
}
|
|
15470
15732
|
>
|
|
15471
15733
|
}
|
|
15472
|
-
readonly '
|
|
15734
|
+
readonly 'insert.*': {
|
|
15473
15735
|
readonly actions: ActionFunction<
|
|
15474
15736
|
{
|
|
15475
15737
|
behaviors: Set<Behavior>
|
|
@@ -15483,22 +15745,731 @@ declare const editorMachine: StateMachine<
|
|
|
15483
15745
|
value: Array<PortableTextBlock> | undefined
|
|
15484
15746
|
},
|
|
15485
15747
|
| {
|
|
15486
|
-
type: '
|
|
15487
|
-
|
|
15748
|
+
type: 'insert.blocks'
|
|
15749
|
+
blocks: Array<PortableTextBlock>
|
|
15488
15750
|
}
|
|
15489
15751
|
| {
|
|
15490
|
-
type: '
|
|
15491
|
-
|
|
15752
|
+
type: 'insert.block object'
|
|
15753
|
+
placement: 'auto' | 'after' | 'before'
|
|
15754
|
+
blockObject: {
|
|
15755
|
+
name: string
|
|
15756
|
+
value?: {
|
|
15757
|
+
[prop: string]: unknown
|
|
15758
|
+
}
|
|
15759
|
+
}
|
|
15492
15760
|
}
|
|
15493
15761
|
| {
|
|
15494
|
-
type: '
|
|
15495
|
-
|
|
15496
|
-
},
|
|
15497
|
-
| {
|
|
15498
|
-
type: 'annotation.add'
|
|
15499
|
-
annotation: {
|
|
15762
|
+
type: 'insert.inline object'
|
|
15763
|
+
inlineObject: {
|
|
15500
15764
|
name: string
|
|
15501
|
-
value
|
|
15765
|
+
value?: {
|
|
15766
|
+
[prop: string]: unknown
|
|
15767
|
+
}
|
|
15768
|
+
}
|
|
15769
|
+
}
|
|
15770
|
+
| {
|
|
15771
|
+
type: 'insert.break'
|
|
15772
|
+
}
|
|
15773
|
+
| {
|
|
15774
|
+
type: 'insert.soft break'
|
|
15775
|
+
}
|
|
15776
|
+
| {
|
|
15777
|
+
type: 'insert.block'
|
|
15778
|
+
block: PortableTextBlock
|
|
15779
|
+
placement: 'auto' | 'after' | 'before'
|
|
15780
|
+
}
|
|
15781
|
+
| {
|
|
15782
|
+
type: 'insert.span'
|
|
15783
|
+
text: string
|
|
15784
|
+
annotations?: Array<{
|
|
15785
|
+
name: string
|
|
15786
|
+
value: {
|
|
15787
|
+
[prop: string]: unknown
|
|
15788
|
+
}
|
|
15789
|
+
}>
|
|
15790
|
+
decorators?: Array<string>
|
|
15791
|
+
}
|
|
15792
|
+
| {
|
|
15793
|
+
type: 'insert.text'
|
|
15794
|
+
text: string
|
|
15795
|
+
options?: TextInsertTextOptions
|
|
15796
|
+
}
|
|
15797
|
+
| {
|
|
15798
|
+
type: 'insert.text block'
|
|
15799
|
+
placement: 'auto' | 'after' | 'before'
|
|
15800
|
+
textBlock?: {
|
|
15801
|
+
children?: PortableTextTextBlock['children']
|
|
15802
|
+
}
|
|
15803
|
+
},
|
|
15804
|
+
| {
|
|
15805
|
+
type: 'annotation.add'
|
|
15806
|
+
annotation: {
|
|
15807
|
+
name: string
|
|
15808
|
+
value: {
|
|
15809
|
+
[prop: string]: unknown
|
|
15810
|
+
}
|
|
15811
|
+
}
|
|
15812
|
+
}
|
|
15813
|
+
| {
|
|
15814
|
+
type: 'annotation.remove'
|
|
15815
|
+
annotation: {
|
|
15816
|
+
name: string
|
|
15817
|
+
}
|
|
15818
|
+
}
|
|
15819
|
+
| {
|
|
15820
|
+
type: 'annotation.toggle'
|
|
15821
|
+
annotation: {
|
|
15822
|
+
name: string
|
|
15823
|
+
value: {
|
|
15824
|
+
[prop: string]: unknown
|
|
15825
|
+
}
|
|
15826
|
+
}
|
|
15827
|
+
}
|
|
15828
|
+
| {
|
|
15829
|
+
[props: string]: unknown
|
|
15830
|
+
type: 'block.set'
|
|
15831
|
+
at: [KeyedSegment]
|
|
15832
|
+
}
|
|
15833
|
+
| {
|
|
15834
|
+
type: 'block.unset'
|
|
15835
|
+
at: [KeyedSegment]
|
|
15836
|
+
props: Array<string>
|
|
15837
|
+
}
|
|
15838
|
+
| {
|
|
15839
|
+
type: 'blur'
|
|
15840
|
+
}
|
|
15841
|
+
| {
|
|
15842
|
+
type: 'data transfer.set'
|
|
15843
|
+
data: string
|
|
15844
|
+
dataTransfer: DataTransfer
|
|
15845
|
+
mimeType: MIMEType_2
|
|
15846
|
+
}
|
|
15847
|
+
| {
|
|
15848
|
+
type: 'decorator.add'
|
|
15849
|
+
decorator: string
|
|
15850
|
+
selection?: NonNullable<EditorSelection>
|
|
15851
|
+
}
|
|
15852
|
+
| {
|
|
15853
|
+
type: 'decorator.remove'
|
|
15854
|
+
decorator: string
|
|
15855
|
+
}
|
|
15856
|
+
| {
|
|
15857
|
+
type: 'decorator.toggle'
|
|
15858
|
+
decorator: string
|
|
15859
|
+
}
|
|
15860
|
+
| {
|
|
15861
|
+
type: 'delete'
|
|
15862
|
+
selection: NonNullable<EditorSelection>
|
|
15863
|
+
}
|
|
15864
|
+
| {
|
|
15865
|
+
type: 'delete.backward'
|
|
15866
|
+
unit: TextUnit
|
|
15867
|
+
}
|
|
15868
|
+
| {
|
|
15869
|
+
type: 'delete.block'
|
|
15870
|
+
blockPath: [KeyedSegment]
|
|
15871
|
+
}
|
|
15872
|
+
| {
|
|
15873
|
+
type: 'delete.forward'
|
|
15874
|
+
unit: TextUnit
|
|
15875
|
+
}
|
|
15876
|
+
| {
|
|
15877
|
+
type: 'delete.text'
|
|
15878
|
+
anchor: BlockOffset_2
|
|
15879
|
+
focus: BlockOffset_2
|
|
15880
|
+
}
|
|
15881
|
+
| {
|
|
15882
|
+
type: 'focus'
|
|
15883
|
+
}
|
|
15884
|
+
| {
|
|
15885
|
+
type: 'history.redo'
|
|
15886
|
+
}
|
|
15887
|
+
| {
|
|
15888
|
+
type: 'history.undo'
|
|
15889
|
+
}
|
|
15890
|
+
| {
|
|
15891
|
+
type: 'insert.blocks'
|
|
15892
|
+
blocks: Array<PortableTextBlock>
|
|
15893
|
+
}
|
|
15894
|
+
| {
|
|
15895
|
+
type: 'insert.block object'
|
|
15896
|
+
placement: 'auto' | 'after' | 'before'
|
|
15897
|
+
blockObject: {
|
|
15898
|
+
name: string
|
|
15899
|
+
value?: {
|
|
15900
|
+
[prop: string]: unknown
|
|
15901
|
+
}
|
|
15902
|
+
}
|
|
15903
|
+
}
|
|
15904
|
+
| {
|
|
15905
|
+
type: 'insert.inline object'
|
|
15906
|
+
inlineObject: {
|
|
15907
|
+
name: string
|
|
15908
|
+
value?: {
|
|
15909
|
+
[prop: string]: unknown
|
|
15910
|
+
}
|
|
15911
|
+
}
|
|
15912
|
+
}
|
|
15913
|
+
| {
|
|
15914
|
+
type: 'insert.break'
|
|
15915
|
+
}
|
|
15916
|
+
| {
|
|
15917
|
+
type: 'insert.soft break'
|
|
15918
|
+
}
|
|
15919
|
+
| {
|
|
15920
|
+
type: 'insert.block'
|
|
15921
|
+
block: PortableTextBlock
|
|
15922
|
+
placement: 'auto' | 'after' | 'before'
|
|
15923
|
+
}
|
|
15924
|
+
| {
|
|
15925
|
+
type: 'insert.span'
|
|
15926
|
+
text: string
|
|
15927
|
+
annotations?: Array<{
|
|
15928
|
+
name: string
|
|
15929
|
+
value: {
|
|
15930
|
+
[prop: string]: unknown
|
|
15931
|
+
}
|
|
15932
|
+
}>
|
|
15933
|
+
decorators?: Array<string>
|
|
15934
|
+
}
|
|
15935
|
+
| {
|
|
15936
|
+
type: 'insert.text'
|
|
15937
|
+
text: string
|
|
15938
|
+
options?: TextInsertTextOptions
|
|
15939
|
+
}
|
|
15940
|
+
| {
|
|
15941
|
+
type: 'insert.text block'
|
|
15942
|
+
placement: 'auto' | 'after' | 'before'
|
|
15943
|
+
textBlock?: {
|
|
15944
|
+
children?: PortableTextTextBlock['children']
|
|
15945
|
+
}
|
|
15946
|
+
}
|
|
15947
|
+
| {
|
|
15948
|
+
type: 'list item.add'
|
|
15949
|
+
listItem: string
|
|
15950
|
+
}
|
|
15951
|
+
| {
|
|
15952
|
+
type: 'list item.remove'
|
|
15953
|
+
listItem: string
|
|
15954
|
+
}
|
|
15955
|
+
| {
|
|
15956
|
+
type: 'list item.toggle'
|
|
15957
|
+
listItem: string
|
|
15958
|
+
}
|
|
15959
|
+
| {
|
|
15960
|
+
type: 'move.block'
|
|
15961
|
+
at: [KeyedSegment]
|
|
15962
|
+
to: [KeyedSegment]
|
|
15963
|
+
}
|
|
15964
|
+
| {
|
|
15965
|
+
type: 'move.block down'
|
|
15966
|
+
at: [KeyedSegment]
|
|
15967
|
+
}
|
|
15968
|
+
| {
|
|
15969
|
+
type: 'move.block up'
|
|
15970
|
+
at: [KeyedSegment]
|
|
15971
|
+
}
|
|
15972
|
+
| {
|
|
15973
|
+
type: 'select'
|
|
15974
|
+
selection: EditorSelection
|
|
15975
|
+
}
|
|
15976
|
+
| {
|
|
15977
|
+
type: 'select.previous block'
|
|
15978
|
+
}
|
|
15979
|
+
| {
|
|
15980
|
+
type: 'select.next block'
|
|
15981
|
+
}
|
|
15982
|
+
| {
|
|
15983
|
+
type: 'style.add'
|
|
15984
|
+
style: string
|
|
15985
|
+
}
|
|
15986
|
+
| {
|
|
15987
|
+
type: 'style.remove'
|
|
15988
|
+
style: string
|
|
15989
|
+
}
|
|
15990
|
+
| {
|
|
15991
|
+
type: 'style.toggle'
|
|
15992
|
+
style: string
|
|
15993
|
+
}
|
|
15994
|
+
| {
|
|
15995
|
+
type: 'text block.set'
|
|
15996
|
+
at: [KeyedSegment]
|
|
15997
|
+
level?: number
|
|
15998
|
+
listItem?: string
|
|
15999
|
+
style?: string
|
|
16000
|
+
}
|
|
16001
|
+
| {
|
|
16002
|
+
type: 'text block.unset'
|
|
16003
|
+
at: [KeyedSegment]
|
|
16004
|
+
props: Array<'level' | 'listItem' | 'style'>
|
|
16005
|
+
}
|
|
16006
|
+
| ({
|
|
16007
|
+
type: 'serialization.failure'
|
|
16008
|
+
mimeType: `${string}/${string}`
|
|
16009
|
+
reason: string
|
|
16010
|
+
} & {
|
|
16011
|
+
dataTransfer: DataTransfer
|
|
16012
|
+
})
|
|
16013
|
+
| ({
|
|
16014
|
+
type: 'serialization.success'
|
|
16015
|
+
data: string
|
|
16016
|
+
mimeType: `${string}/${string}`
|
|
16017
|
+
originEvent: 'copy' | 'cut' | 'unknown'
|
|
16018
|
+
} & {
|
|
16019
|
+
dataTransfer: DataTransfer
|
|
16020
|
+
})
|
|
16021
|
+
| ({
|
|
16022
|
+
type: 'deserialization.failure'
|
|
16023
|
+
mimeType: `${string}/${string}`
|
|
16024
|
+
reason: string
|
|
16025
|
+
} & {
|
|
16026
|
+
dataTransfer: DataTransfer
|
|
16027
|
+
})
|
|
16028
|
+
| ({
|
|
16029
|
+
type: 'deserialization.success'
|
|
16030
|
+
data: Array<PortableTextBlock>
|
|
16031
|
+
mimeType: `${string}/${string}`
|
|
16032
|
+
} & {
|
|
16033
|
+
dataTransfer: DataTransfer
|
|
16034
|
+
})
|
|
16035
|
+
| PatchEvent
|
|
16036
|
+
| MutationEvent
|
|
16037
|
+
| {
|
|
16038
|
+
type: 'normalizing'
|
|
16039
|
+
}
|
|
16040
|
+
| {
|
|
16041
|
+
type: 'done normalizing'
|
|
16042
|
+
}
|
|
16043
|
+
| {
|
|
16044
|
+
type: 'done syncing initial value'
|
|
16045
|
+
}
|
|
16046
|
+
| {
|
|
16047
|
+
type: 'behavior event'
|
|
16048
|
+
behaviorEvent:
|
|
16049
|
+
| SyntheticBehaviorEvent
|
|
16050
|
+
| NativeBehaviorEvent
|
|
16051
|
+
editor: PortableTextSlateEditor
|
|
16052
|
+
defaultActionCallback?: () => void
|
|
16053
|
+
nativeEvent?: {
|
|
16054
|
+
preventDefault: () => void
|
|
16055
|
+
}
|
|
16056
|
+
}
|
|
16057
|
+
| {
|
|
16058
|
+
type: 'custom behavior event'
|
|
16059
|
+
behaviorEvent: CustomBehaviorEvent
|
|
16060
|
+
editor: PortableTextSlateEditor
|
|
16061
|
+
nativeEvent?: {
|
|
16062
|
+
preventDefault: () => void
|
|
16063
|
+
}
|
|
16064
|
+
}
|
|
16065
|
+
| CustomBehaviorEvent
|
|
16066
|
+
| {
|
|
16067
|
+
type: 'add behavior'
|
|
16068
|
+
behavior: Behavior
|
|
16069
|
+
}
|
|
16070
|
+
| {
|
|
16071
|
+
type: 'remove behavior'
|
|
16072
|
+
behavior: Behavior
|
|
16073
|
+
}
|
|
16074
|
+
| {
|
|
16075
|
+
type: 'update readOnly'
|
|
16076
|
+
readOnly: boolean
|
|
16077
|
+
}
|
|
16078
|
+
| {
|
|
16079
|
+
type: 'update schema'
|
|
16080
|
+
schema: EditorSchema
|
|
16081
|
+
}
|
|
16082
|
+
| {
|
|
16083
|
+
type: 'update behaviors'
|
|
16084
|
+
behaviors: Array<Behavior>
|
|
16085
|
+
}
|
|
16086
|
+
| {
|
|
16087
|
+
type: 'update key generator'
|
|
16088
|
+
keyGenerator: () => string
|
|
16089
|
+
}
|
|
16090
|
+
| {
|
|
16091
|
+
type: 'update value'
|
|
16092
|
+
value: Array<PortableTextBlock> | undefined
|
|
16093
|
+
}
|
|
16094
|
+
| {
|
|
16095
|
+
type: 'update maxBlocks'
|
|
16096
|
+
maxBlocks: number | undefined
|
|
16097
|
+
}
|
|
16098
|
+
| PatchesEvent
|
|
16099
|
+
| {
|
|
16100
|
+
type: 'notify.patch'
|
|
16101
|
+
patch: Patch
|
|
16102
|
+
}
|
|
16103
|
+
| {
|
|
16104
|
+
type: 'notify.mutation'
|
|
16105
|
+
patches: Array<Patch>
|
|
16106
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
16107
|
+
value: Array<PortableTextBlock> | undefined
|
|
16108
|
+
}
|
|
16109
|
+
| {
|
|
16110
|
+
type: 'notify.blurred'
|
|
16111
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
16112
|
+
}
|
|
16113
|
+
| {
|
|
16114
|
+
type: 'notify.done loading'
|
|
16115
|
+
}
|
|
16116
|
+
| {
|
|
16117
|
+
type: 'notify.editable'
|
|
16118
|
+
}
|
|
16119
|
+
| {
|
|
16120
|
+
type: 'notify.error'
|
|
16121
|
+
name: string
|
|
16122
|
+
description: string
|
|
16123
|
+
data: unknown
|
|
16124
|
+
}
|
|
16125
|
+
| {
|
|
16126
|
+
type: 'notify.focused'
|
|
16127
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
16128
|
+
}
|
|
16129
|
+
| {
|
|
16130
|
+
type: 'notify.invalid value'
|
|
16131
|
+
resolution: InvalidValueResolution | null
|
|
16132
|
+
value: Array<PortableTextBlock> | undefined
|
|
16133
|
+
}
|
|
16134
|
+
| {
|
|
16135
|
+
type: 'notify.loading'
|
|
16136
|
+
}
|
|
16137
|
+
| {
|
|
16138
|
+
type: 'notify.read only'
|
|
16139
|
+
}
|
|
16140
|
+
| {
|
|
16141
|
+
type: 'notify.ready'
|
|
16142
|
+
}
|
|
16143
|
+
| {
|
|
16144
|
+
type: 'notify.selection'
|
|
16145
|
+
selection: EditorSelection
|
|
16146
|
+
}
|
|
16147
|
+
| {
|
|
16148
|
+
type: 'notify.value changed'
|
|
16149
|
+
value: Array<PortableTextBlock> | undefined
|
|
16150
|
+
}
|
|
16151
|
+
| {
|
|
16152
|
+
type: 'notify.unset'
|
|
16153
|
+
previousValue: Array<PortableTextBlock>
|
|
16154
|
+
},
|
|
16155
|
+
undefined,
|
|
16156
|
+
never,
|
|
16157
|
+
never,
|
|
16158
|
+
never,
|
|
16159
|
+
never,
|
|
16160
|
+
| {
|
|
16161
|
+
type: 'annotation.add'
|
|
16162
|
+
annotation: {
|
|
16163
|
+
name: string
|
|
16164
|
+
value: {
|
|
16165
|
+
[prop: string]: unknown
|
|
16166
|
+
}
|
|
16167
|
+
}
|
|
16168
|
+
}
|
|
16169
|
+
| {
|
|
16170
|
+
type: 'annotation.remove'
|
|
16171
|
+
annotation: {
|
|
16172
|
+
name: string
|
|
16173
|
+
}
|
|
16174
|
+
}
|
|
16175
|
+
| {
|
|
16176
|
+
type: 'annotation.toggle'
|
|
16177
|
+
annotation: {
|
|
16178
|
+
name: string
|
|
16179
|
+
value: {
|
|
16180
|
+
[prop: string]: unknown
|
|
16181
|
+
}
|
|
16182
|
+
}
|
|
16183
|
+
}
|
|
16184
|
+
| {
|
|
16185
|
+
[props: string]: unknown
|
|
16186
|
+
type: 'block.set'
|
|
16187
|
+
at: [KeyedSegment]
|
|
16188
|
+
}
|
|
16189
|
+
| {
|
|
16190
|
+
type: 'block.unset'
|
|
16191
|
+
at: [KeyedSegment]
|
|
16192
|
+
props: Array<string>
|
|
16193
|
+
}
|
|
16194
|
+
| {
|
|
16195
|
+
type: 'blur'
|
|
16196
|
+
}
|
|
16197
|
+
| {
|
|
16198
|
+
type: 'data transfer.set'
|
|
16199
|
+
data: string
|
|
16200
|
+
dataTransfer: DataTransfer
|
|
16201
|
+
mimeType: MIMEType_2
|
|
16202
|
+
}
|
|
16203
|
+
| {
|
|
16204
|
+
type: 'decorator.add'
|
|
16205
|
+
decorator: string
|
|
16206
|
+
selection?: NonNullable<EditorSelection>
|
|
16207
|
+
}
|
|
16208
|
+
| {
|
|
16209
|
+
type: 'decorator.remove'
|
|
16210
|
+
decorator: string
|
|
16211
|
+
}
|
|
16212
|
+
| {
|
|
16213
|
+
type: 'decorator.toggle'
|
|
16214
|
+
decorator: string
|
|
16215
|
+
}
|
|
16216
|
+
| {
|
|
16217
|
+
type: 'delete'
|
|
16218
|
+
selection: NonNullable<EditorSelection>
|
|
16219
|
+
}
|
|
16220
|
+
| {
|
|
16221
|
+
type: 'delete.backward'
|
|
16222
|
+
unit: TextUnit
|
|
16223
|
+
}
|
|
16224
|
+
| {
|
|
16225
|
+
type: 'delete.block'
|
|
16226
|
+
blockPath: [KeyedSegment]
|
|
16227
|
+
}
|
|
16228
|
+
| {
|
|
16229
|
+
type: 'delete.forward'
|
|
16230
|
+
unit: TextUnit
|
|
16231
|
+
}
|
|
16232
|
+
| {
|
|
16233
|
+
type: 'delete.text'
|
|
16234
|
+
anchor: BlockOffset_2
|
|
16235
|
+
focus: BlockOffset_2
|
|
16236
|
+
}
|
|
16237
|
+
| {
|
|
16238
|
+
type: 'focus'
|
|
16239
|
+
}
|
|
16240
|
+
| {
|
|
16241
|
+
type: 'history.redo'
|
|
16242
|
+
}
|
|
16243
|
+
| {
|
|
16244
|
+
type: 'history.undo'
|
|
16245
|
+
}
|
|
16246
|
+
| {
|
|
16247
|
+
type: 'insert.blocks'
|
|
16248
|
+
blocks: Array<PortableTextBlock>
|
|
16249
|
+
}
|
|
16250
|
+
| {
|
|
16251
|
+
type: 'insert.block object'
|
|
16252
|
+
placement: 'auto' | 'after' | 'before'
|
|
16253
|
+
blockObject: {
|
|
16254
|
+
name: string
|
|
16255
|
+
value?: {
|
|
16256
|
+
[prop: string]: unknown
|
|
16257
|
+
}
|
|
16258
|
+
}
|
|
16259
|
+
}
|
|
16260
|
+
| {
|
|
16261
|
+
type: 'insert.inline object'
|
|
16262
|
+
inlineObject: {
|
|
16263
|
+
name: string
|
|
16264
|
+
value?: {
|
|
16265
|
+
[prop: string]: unknown
|
|
16266
|
+
}
|
|
16267
|
+
}
|
|
16268
|
+
}
|
|
16269
|
+
| {
|
|
16270
|
+
type: 'insert.break'
|
|
16271
|
+
}
|
|
16272
|
+
| {
|
|
16273
|
+
type: 'insert.soft break'
|
|
16274
|
+
}
|
|
16275
|
+
| {
|
|
16276
|
+
type: 'insert.block'
|
|
16277
|
+
block: PortableTextBlock
|
|
16278
|
+
placement: 'auto' | 'after' | 'before'
|
|
16279
|
+
}
|
|
16280
|
+
| {
|
|
16281
|
+
type: 'insert.span'
|
|
16282
|
+
text: string
|
|
16283
|
+
annotations?: Array<{
|
|
16284
|
+
name: string
|
|
16285
|
+
value: {
|
|
16286
|
+
[prop: string]: unknown
|
|
16287
|
+
}
|
|
16288
|
+
}>
|
|
16289
|
+
decorators?: Array<string>
|
|
16290
|
+
}
|
|
16291
|
+
| {
|
|
16292
|
+
type: 'insert.text'
|
|
16293
|
+
text: string
|
|
16294
|
+
options?: TextInsertTextOptions
|
|
16295
|
+
}
|
|
16296
|
+
| {
|
|
16297
|
+
type: 'insert.text block'
|
|
16298
|
+
placement: 'auto' | 'after' | 'before'
|
|
16299
|
+
textBlock?: {
|
|
16300
|
+
children?: PortableTextTextBlock['children']
|
|
16301
|
+
}
|
|
16302
|
+
}
|
|
16303
|
+
| {
|
|
16304
|
+
type: 'list item.add'
|
|
16305
|
+
listItem: string
|
|
16306
|
+
}
|
|
16307
|
+
| {
|
|
16308
|
+
type: 'list item.remove'
|
|
16309
|
+
listItem: string
|
|
16310
|
+
}
|
|
16311
|
+
| {
|
|
16312
|
+
type: 'list item.toggle'
|
|
16313
|
+
listItem: string
|
|
16314
|
+
}
|
|
16315
|
+
| {
|
|
16316
|
+
type: 'move.block'
|
|
16317
|
+
at: [KeyedSegment]
|
|
16318
|
+
to: [KeyedSegment]
|
|
16319
|
+
}
|
|
16320
|
+
| {
|
|
16321
|
+
type: 'move.block down'
|
|
16322
|
+
at: [KeyedSegment]
|
|
16323
|
+
}
|
|
16324
|
+
| {
|
|
16325
|
+
type: 'move.block up'
|
|
16326
|
+
at: [KeyedSegment]
|
|
16327
|
+
}
|
|
16328
|
+
| {
|
|
16329
|
+
type: 'select'
|
|
16330
|
+
selection: EditorSelection
|
|
16331
|
+
}
|
|
16332
|
+
| {
|
|
16333
|
+
type: 'select.previous block'
|
|
16334
|
+
}
|
|
16335
|
+
| {
|
|
16336
|
+
type: 'select.next block'
|
|
16337
|
+
}
|
|
16338
|
+
| {
|
|
16339
|
+
type: 'style.add'
|
|
16340
|
+
style: string
|
|
16341
|
+
}
|
|
16342
|
+
| {
|
|
16343
|
+
type: 'style.remove'
|
|
16344
|
+
style: string
|
|
16345
|
+
}
|
|
16346
|
+
| {
|
|
16347
|
+
type: 'style.toggle'
|
|
16348
|
+
style: string
|
|
16349
|
+
}
|
|
16350
|
+
| {
|
|
16351
|
+
type: 'text block.set'
|
|
16352
|
+
at: [KeyedSegment]
|
|
16353
|
+
level?: number
|
|
16354
|
+
listItem?: string
|
|
16355
|
+
style?: string
|
|
16356
|
+
}
|
|
16357
|
+
| {
|
|
16358
|
+
type: 'text block.unset'
|
|
16359
|
+
at: [KeyedSegment]
|
|
16360
|
+
props: Array<'level' | 'listItem' | 'style'>
|
|
16361
|
+
}
|
|
16362
|
+
| ({
|
|
16363
|
+
type: 'serialization.failure'
|
|
16364
|
+
mimeType: `${string}/${string}`
|
|
16365
|
+
reason: string
|
|
16366
|
+
} & {
|
|
16367
|
+
dataTransfer: DataTransfer
|
|
16368
|
+
})
|
|
16369
|
+
| ({
|
|
16370
|
+
type: 'serialization.success'
|
|
16371
|
+
data: string
|
|
16372
|
+
mimeType: `${string}/${string}`
|
|
16373
|
+
originEvent: 'copy' | 'cut' | 'unknown'
|
|
16374
|
+
} & {
|
|
16375
|
+
dataTransfer: DataTransfer
|
|
16376
|
+
})
|
|
16377
|
+
| ({
|
|
16378
|
+
type: 'deserialization.failure'
|
|
16379
|
+
mimeType: `${string}/${string}`
|
|
16380
|
+
reason: string
|
|
16381
|
+
} & {
|
|
16382
|
+
dataTransfer: DataTransfer
|
|
16383
|
+
})
|
|
16384
|
+
| ({
|
|
16385
|
+
type: 'deserialization.success'
|
|
16386
|
+
data: Array<PortableTextBlock>
|
|
16387
|
+
mimeType: `${string}/${string}`
|
|
16388
|
+
} & {
|
|
16389
|
+
dataTransfer: DataTransfer
|
|
16390
|
+
})
|
|
16391
|
+
| PatchEvent
|
|
16392
|
+
| MutationEvent
|
|
16393
|
+
| PatchesEvent
|
|
16394
|
+
| {
|
|
16395
|
+
type: 'blurred'
|
|
16396
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
16397
|
+
}
|
|
16398
|
+
| {
|
|
16399
|
+
type: 'done loading'
|
|
16400
|
+
}
|
|
16401
|
+
| {
|
|
16402
|
+
type: 'editable'
|
|
16403
|
+
}
|
|
16404
|
+
| {
|
|
16405
|
+
type: 'error'
|
|
16406
|
+
name: string
|
|
16407
|
+
description: string
|
|
16408
|
+
data: unknown
|
|
16409
|
+
}
|
|
16410
|
+
| {
|
|
16411
|
+
type: 'focused'
|
|
16412
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
16413
|
+
}
|
|
16414
|
+
| {
|
|
16415
|
+
type: 'invalid value'
|
|
16416
|
+
resolution: InvalidValueResolution | null
|
|
16417
|
+
value: Array<PortableTextBlock> | undefined
|
|
16418
|
+
}
|
|
16419
|
+
| {
|
|
16420
|
+
type: 'loading'
|
|
16421
|
+
}
|
|
16422
|
+
| {
|
|
16423
|
+
type: 'read only'
|
|
16424
|
+
}
|
|
16425
|
+
| {
|
|
16426
|
+
type: 'ready'
|
|
16427
|
+
}
|
|
16428
|
+
| {
|
|
16429
|
+
type: 'selection'
|
|
16430
|
+
selection: EditorSelection
|
|
16431
|
+
}
|
|
16432
|
+
| {
|
|
16433
|
+
type: 'value changed'
|
|
16434
|
+
value: Array<PortableTextBlock> | undefined
|
|
16435
|
+
}
|
|
16436
|
+
| UnsetEvent
|
|
16437
|
+
| {
|
|
16438
|
+
type: 'custom.*'
|
|
16439
|
+
event: CustomBehaviorEvent
|
|
16440
|
+
}
|
|
16441
|
+
>
|
|
16442
|
+
}
|
|
16443
|
+
readonly 'list item.*': {
|
|
16444
|
+
readonly actions: ActionFunction<
|
|
16445
|
+
{
|
|
16446
|
+
behaviors: Set<Behavior>
|
|
16447
|
+
converters: Set<Converter>
|
|
16448
|
+
keyGenerator: () => string
|
|
16449
|
+
pendingEvents: Array<PatchEvent | MutationEvent>
|
|
16450
|
+
schema: EditorSchema
|
|
16451
|
+
initialReadOnly: boolean
|
|
16452
|
+
maxBlocks: number | undefined
|
|
16453
|
+
selection: EditorSelection
|
|
16454
|
+
value: Array<PortableTextBlock> | undefined
|
|
16455
|
+
},
|
|
16456
|
+
| {
|
|
16457
|
+
type: 'list item.add'
|
|
16458
|
+
listItem: string
|
|
16459
|
+
}
|
|
16460
|
+
| {
|
|
16461
|
+
type: 'list item.remove'
|
|
16462
|
+
listItem: string
|
|
16463
|
+
}
|
|
16464
|
+
| {
|
|
16465
|
+
type: 'list item.toggle'
|
|
16466
|
+
listItem: string
|
|
16467
|
+
},
|
|
16468
|
+
| {
|
|
16469
|
+
type: 'annotation.add'
|
|
16470
|
+
annotation: {
|
|
16471
|
+
name: string
|
|
16472
|
+
value: {
|
|
15502
16473
|
[prop: string]: unknown
|
|
15503
16474
|
}
|
|
15504
16475
|
}
|
|
@@ -15540,6 +16511,7 @@ declare const editorMachine: StateMachine<
|
|
|
15540
16511
|
| {
|
|
15541
16512
|
type: 'decorator.add'
|
|
15542
16513
|
decorator: string
|
|
16514
|
+
selection?: NonNullable<EditorSelection>
|
|
15543
16515
|
}
|
|
15544
16516
|
| {
|
|
15545
16517
|
type: 'decorator.remove'
|
|
@@ -15573,6 +16545,12 @@ declare const editorMachine: StateMachine<
|
|
|
15573
16545
|
| {
|
|
15574
16546
|
type: 'focus'
|
|
15575
16547
|
}
|
|
16548
|
+
| {
|
|
16549
|
+
type: 'history.redo'
|
|
16550
|
+
}
|
|
16551
|
+
| {
|
|
16552
|
+
type: 'history.undo'
|
|
16553
|
+
}
|
|
15576
16554
|
| {
|
|
15577
16555
|
type: 'insert.blocks'
|
|
15578
16556
|
blocks: Array<PortableTextBlock>
|
|
@@ -15889,6 +16867,7 @@ declare const editorMachine: StateMachine<
|
|
|
15889
16867
|
| {
|
|
15890
16868
|
type: 'decorator.add'
|
|
15891
16869
|
decorator: string
|
|
16870
|
+
selection?: NonNullable<EditorSelection>
|
|
15892
16871
|
}
|
|
15893
16872
|
| {
|
|
15894
16873
|
type: 'decorator.remove'
|
|
@@ -15922,6 +16901,12 @@ declare const editorMachine: StateMachine<
|
|
|
15922
16901
|
| {
|
|
15923
16902
|
type: 'focus'
|
|
15924
16903
|
}
|
|
16904
|
+
| {
|
|
16905
|
+
type: 'history.redo'
|
|
16906
|
+
}
|
|
16907
|
+
| {
|
|
16908
|
+
type: 'history.undo'
|
|
16909
|
+
}
|
|
15925
16910
|
| {
|
|
15926
16911
|
type: 'insert.blocks'
|
|
15927
16912
|
blocks: Array<PortableTextBlock>
|
|
@@ -16191,6 +17176,7 @@ declare const editorMachine: StateMachine<
|
|
|
16191
17176
|
| {
|
|
16192
17177
|
type: 'decorator.add'
|
|
16193
17178
|
decorator: string
|
|
17179
|
+
selection?: NonNullable<EditorSelection>
|
|
16194
17180
|
}
|
|
16195
17181
|
| {
|
|
16196
17182
|
type: 'decorator.remove'
|
|
@@ -16224,6 +17210,12 @@ declare const editorMachine: StateMachine<
|
|
|
16224
17210
|
| {
|
|
16225
17211
|
type: 'focus'
|
|
16226
17212
|
}
|
|
17213
|
+
| {
|
|
17214
|
+
type: 'history.redo'
|
|
17215
|
+
}
|
|
17216
|
+
| {
|
|
17217
|
+
type: 'history.undo'
|
|
17218
|
+
}
|
|
16227
17219
|
| {
|
|
16228
17220
|
type: 'insert.blocks'
|
|
16229
17221
|
blocks: Array<PortableTextBlock>
|
|
@@ -16540,6 +17532,7 @@ declare const editorMachine: StateMachine<
|
|
|
16540
17532
|
| {
|
|
16541
17533
|
type: 'decorator.add'
|
|
16542
17534
|
decorator: string
|
|
17535
|
+
selection?: NonNullable<EditorSelection>
|
|
16543
17536
|
}
|
|
16544
17537
|
| {
|
|
16545
17538
|
type: 'decorator.remove'
|
|
@@ -16573,6 +17566,12 @@ declare const editorMachine: StateMachine<
|
|
|
16573
17566
|
| {
|
|
16574
17567
|
type: 'focus'
|
|
16575
17568
|
}
|
|
17569
|
+
| {
|
|
17570
|
+
type: 'history.redo'
|
|
17571
|
+
}
|
|
17572
|
+
| {
|
|
17573
|
+
type: 'history.undo'
|
|
17574
|
+
}
|
|
16576
17575
|
| {
|
|
16577
17576
|
type: 'insert.blocks'
|
|
16578
17577
|
blocks: Array<PortableTextBlock>
|
|
@@ -16833,6 +17832,7 @@ declare const editorMachine: StateMachine<
|
|
|
16833
17832
|
| {
|
|
16834
17833
|
type: 'decorator.add'
|
|
16835
17834
|
decorator: string
|
|
17835
|
+
selection?: NonNullable<EditorSelection>
|
|
16836
17836
|
}
|
|
16837
17837
|
| {
|
|
16838
17838
|
type: 'decorator.remove'
|
|
@@ -16866,6 +17866,12 @@ declare const editorMachine: StateMachine<
|
|
|
16866
17866
|
| {
|
|
16867
17867
|
type: 'focus'
|
|
16868
17868
|
}
|
|
17869
|
+
| {
|
|
17870
|
+
type: 'history.redo'
|
|
17871
|
+
}
|
|
17872
|
+
| {
|
|
17873
|
+
type: 'history.undo'
|
|
17874
|
+
}
|
|
16869
17875
|
| {
|
|
16870
17876
|
type: 'insert.blocks'
|
|
16871
17877
|
blocks: Array<PortableTextBlock>
|
|
@@ -17182,6 +18188,7 @@ declare const editorMachine: StateMachine<
|
|
|
17182
18188
|
| {
|
|
17183
18189
|
type: 'decorator.add'
|
|
17184
18190
|
decorator: string
|
|
18191
|
+
selection?: NonNullable<EditorSelection>
|
|
17185
18192
|
}
|
|
17186
18193
|
| {
|
|
17187
18194
|
type: 'decorator.remove'
|
|
@@ -17215,6 +18222,12 @@ declare const editorMachine: StateMachine<
|
|
|
17215
18222
|
| {
|
|
17216
18223
|
type: 'focus'
|
|
17217
18224
|
}
|
|
18225
|
+
| {
|
|
18226
|
+
type: 'history.redo'
|
|
18227
|
+
}
|
|
18228
|
+
| {
|
|
18229
|
+
type: 'history.undo'
|
|
18230
|
+
}
|
|
17218
18231
|
| {
|
|
17219
18232
|
type: 'insert.blocks'
|
|
17220
18233
|
blocks: Array<PortableTextBlock>
|
|
@@ -17477,6 +18490,7 @@ declare const editorMachine: StateMachine<
|
|
|
17477
18490
|
| {
|
|
17478
18491
|
type: 'decorator.add'
|
|
17479
18492
|
decorator: string
|
|
18493
|
+
selection?: NonNullable<EditorSelection>
|
|
17480
18494
|
}
|
|
17481
18495
|
| {
|
|
17482
18496
|
type: 'decorator.remove'
|
|
@@ -17510,6 +18524,12 @@ declare const editorMachine: StateMachine<
|
|
|
17510
18524
|
| {
|
|
17511
18525
|
type: 'focus'
|
|
17512
18526
|
}
|
|
18527
|
+
| {
|
|
18528
|
+
type: 'history.redo'
|
|
18529
|
+
}
|
|
18530
|
+
| {
|
|
18531
|
+
type: 'history.undo'
|
|
18532
|
+
}
|
|
17513
18533
|
| {
|
|
17514
18534
|
type: 'insert.blocks'
|
|
17515
18535
|
blocks: Array<PortableTextBlock>
|
|
@@ -17826,6 +18846,7 @@ declare const editorMachine: StateMachine<
|
|
|
17826
18846
|
| {
|
|
17827
18847
|
type: 'decorator.add'
|
|
17828
18848
|
decorator: string
|
|
18849
|
+
selection?: NonNullable<EditorSelection>
|
|
17829
18850
|
}
|
|
17830
18851
|
| {
|
|
17831
18852
|
type: 'decorator.remove'
|
|
@@ -17859,6 +18880,12 @@ declare const editorMachine: StateMachine<
|
|
|
17859
18880
|
| {
|
|
17860
18881
|
type: 'focus'
|
|
17861
18882
|
}
|
|
18883
|
+
| {
|
|
18884
|
+
type: 'history.redo'
|
|
18885
|
+
}
|
|
18886
|
+
| {
|
|
18887
|
+
type: 'history.undo'
|
|
18888
|
+
}
|
|
17862
18889
|
| {
|
|
17863
18890
|
type: 'insert.blocks'
|
|
17864
18891
|
blocks: Array<PortableTextBlock>
|
|
@@ -18127,6 +19154,7 @@ declare const editorMachine: StateMachine<
|
|
|
18127
19154
|
| {
|
|
18128
19155
|
type: 'decorator.add'
|
|
18129
19156
|
decorator: string
|
|
19157
|
+
selection?: NonNullable<EditorSelection>
|
|
18130
19158
|
}
|
|
18131
19159
|
| {
|
|
18132
19160
|
type: 'decorator.remove'
|
|
@@ -18160,6 +19188,12 @@ declare const editorMachine: StateMachine<
|
|
|
18160
19188
|
| {
|
|
18161
19189
|
type: 'focus'
|
|
18162
19190
|
}
|
|
19191
|
+
| {
|
|
19192
|
+
type: 'history.redo'
|
|
19193
|
+
}
|
|
19194
|
+
| {
|
|
19195
|
+
type: 'history.undo'
|
|
19196
|
+
}
|
|
18163
19197
|
| {
|
|
18164
19198
|
type: 'insert.blocks'
|
|
18165
19199
|
blocks: Array<PortableTextBlock>
|
|
@@ -18476,6 +19510,7 @@ declare const editorMachine: StateMachine<
|
|
|
18476
19510
|
| {
|
|
18477
19511
|
type: 'decorator.add'
|
|
18478
19512
|
decorator: string
|
|
19513
|
+
selection?: NonNullable<EditorSelection>
|
|
18479
19514
|
}
|
|
18480
19515
|
| {
|
|
18481
19516
|
type: 'decorator.remove'
|
|
@@ -18509,6 +19544,12 @@ declare const editorMachine: StateMachine<
|
|
|
18509
19544
|
| {
|
|
18510
19545
|
type: 'focus'
|
|
18511
19546
|
}
|
|
19547
|
+
| {
|
|
19548
|
+
type: 'history.redo'
|
|
19549
|
+
}
|
|
19550
|
+
| {
|
|
19551
|
+
type: 'history.undo'
|
|
19552
|
+
}
|
|
18512
19553
|
| {
|
|
18513
19554
|
type: 'insert.blocks'
|
|
18514
19555
|
blocks: Array<PortableTextBlock>
|
|
@@ -18777,6 +19818,7 @@ declare const editorMachine: StateMachine<
|
|
|
18777
19818
|
| {
|
|
18778
19819
|
type: 'decorator.add'
|
|
18779
19820
|
decorator: string
|
|
19821
|
+
selection?: NonNullable<EditorSelection>
|
|
18780
19822
|
}
|
|
18781
19823
|
| {
|
|
18782
19824
|
type: 'decorator.remove'
|
|
@@ -18810,6 +19852,12 @@ declare const editorMachine: StateMachine<
|
|
|
18810
19852
|
| {
|
|
18811
19853
|
type: 'focus'
|
|
18812
19854
|
}
|
|
19855
|
+
| {
|
|
19856
|
+
type: 'history.redo'
|
|
19857
|
+
}
|
|
19858
|
+
| {
|
|
19859
|
+
type: 'history.undo'
|
|
19860
|
+
}
|
|
18813
19861
|
| {
|
|
18814
19862
|
type: 'insert.blocks'
|
|
18815
19863
|
blocks: Array<PortableTextBlock>
|
|
@@ -19126,6 +20174,7 @@ declare const editorMachine: StateMachine<
|
|
|
19126
20174
|
| {
|
|
19127
20175
|
type: 'decorator.add'
|
|
19128
20176
|
decorator: string
|
|
20177
|
+
selection?: NonNullable<EditorSelection>
|
|
19129
20178
|
}
|
|
19130
20179
|
| {
|
|
19131
20180
|
type: 'decorator.remove'
|
|
@@ -19159,6 +20208,12 @@ declare const editorMachine: StateMachine<
|
|
|
19159
20208
|
| {
|
|
19160
20209
|
type: 'focus'
|
|
19161
20210
|
}
|
|
20211
|
+
| {
|
|
20212
|
+
type: 'history.redo'
|
|
20213
|
+
}
|
|
20214
|
+
| {
|
|
20215
|
+
type: 'history.undo'
|
|
20216
|
+
}
|
|
19162
20217
|
| {
|
|
19163
20218
|
type: 'insert.blocks'
|
|
19164
20219
|
blocks: Array<PortableTextBlock>
|
|
@@ -20542,6 +21597,7 @@ export declare type SyntheticBehaviorEvent =
|
|
|
20542
21597
|
| {
|
|
20543
21598
|
type: 'decorator.add'
|
|
20544
21599
|
decorator: string
|
|
21600
|
+
selection?: NonNullable<EditorSelection>
|
|
20545
21601
|
}
|
|
20546
21602
|
| {
|
|
20547
21603
|
type: 'decorator.remove'
|
|
@@ -20575,6 +21631,12 @@ export declare type SyntheticBehaviorEvent =
|
|
|
20575
21631
|
| {
|
|
20576
21632
|
type: 'focus'
|
|
20577
21633
|
}
|
|
21634
|
+
| {
|
|
21635
|
+
type: 'history.redo'
|
|
21636
|
+
}
|
|
21637
|
+
| {
|
|
21638
|
+
type: 'history.undo'
|
|
21639
|
+
}
|
|
20578
21640
|
| {
|
|
20579
21641
|
type: 'insert.blocks'
|
|
20580
21642
|
blocks: Array<PortableTextBlock>
|