@portabletext/editor 1.36.5 → 1.37.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.map +1 -1
- package/lib/_chunks-cjs/behavior.markdown.cjs +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +104 -7
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/util.block-offsets-to-selection.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/behavior.markdown.js +1 -1
- package/lib/_chunks-es/editor-provider.js +108 -11
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/util.block-offsets-to-selection.js.map +1 -1
- package/lib/behaviors/index.d.cts +59 -0
- package/lib/behaviors/index.d.ts +59 -0
- package/lib/index.d.cts +59 -0
- package/lib/index.d.ts +59 -0
- package/lib/plugins/index.cjs +1 -1
- package/lib/plugins/index.d.cts +59 -0
- package/lib/plugins/index.d.ts +59 -0
- package/lib/plugins/index.js +1 -1
- package/lib/selectors/index.cjs +69 -14
- package/lib/selectors/index.cjs.map +1 -1
- package/lib/selectors/index.d.cts +75 -0
- package/lib/selectors/index.d.ts +75 -0
- package/lib/selectors/index.js +63 -8
- package/lib/selectors/index.js.map +1 -1
- package/lib/utils/index.d.cts +59 -0
- package/lib/utils/index.d.ts +59 -0
- package/package.json +7 -7
- package/src/behavior-actions/behavior.action.decorator.add.ts +1 -0
- package/src/behavior-actions/behavior.action.delete.text.ts +1 -0
- package/src/behavior-actions/behavior.action.delete.ts +1 -3
- package/src/behavior-actions/behavior.action.insert-blocks.ts +98 -2
- package/src/behavior-actions/behavior.actions.ts +1 -0
- package/src/behaviors/behavior.default.ts +1 -0
- package/src/behaviors/behavior.types.ts +1 -0
- package/src/editor/editor-machine.ts +16 -3
- package/src/editor/editor-selector.ts +1 -0
- package/src/editor/editor-snapshot.ts +4 -0
- package/src/internal-utils/create-test-snapshot.ts +1 -0
- package/src/internal-utils/parse-blocks.ts +22 -0
- package/src/selectors/index.ts +2 -0
- package/src/selectors/selector.get-focus-inline-object.ts +21 -0
- package/src/selectors/selector.is-overlapping-selection.test.ts +171 -0
- package/src/selectors/selector.is-overlapping-selection.ts +108 -4
- package/src/selectors/selector.is-point-after-selection.ts +3 -1
- package/src/selectors/selector.is-point-before-selection.ts +3 -1
- package/src/selectors/selector.is-selecting-entire-blocks.ts +34 -0
package/lib/index.d.cts
CHANGED
|
@@ -544,6 +544,7 @@ export declare type EditorContext = {
|
|
|
544
544
|
activeDecorators: Array<string>
|
|
545
545
|
converters: Array<Converter>
|
|
546
546
|
keyGenerator: () => string
|
|
547
|
+
readOnly: boolean
|
|
547
548
|
schema: EditorSchema
|
|
548
549
|
selection: EditorSelection
|
|
549
550
|
value: Array<PortableTextBlock>
|
|
@@ -726,6 +727,7 @@ declare const editorMachine: StateMachine<
|
|
|
726
727
|
| {
|
|
727
728
|
type: 'insert.blocks'
|
|
728
729
|
blocks: Array<PortableTextBlock>
|
|
730
|
+
placement: 'auto' | 'after' | 'before'
|
|
729
731
|
}
|
|
730
732
|
| {
|
|
731
733
|
type: 'insert.block object'
|
|
@@ -1160,6 +1162,7 @@ declare const editorMachine: StateMachine<
|
|
|
1160
1162
|
| {
|
|
1161
1163
|
type: 'insert.blocks'
|
|
1162
1164
|
blocks: Array<PortableTextBlock>
|
|
1165
|
+
placement: 'auto' | 'after' | 'before'
|
|
1163
1166
|
}
|
|
1164
1167
|
| {
|
|
1165
1168
|
type: 'insert.block object'
|
|
@@ -1484,6 +1487,7 @@ declare const editorMachine: StateMachine<
|
|
|
1484
1487
|
| {
|
|
1485
1488
|
type: 'insert.blocks'
|
|
1486
1489
|
blocks: Array<PortableTextBlock>
|
|
1490
|
+
placement: 'auto' | 'after' | 'before'
|
|
1487
1491
|
}
|
|
1488
1492
|
| {
|
|
1489
1493
|
type: 'insert.block object'
|
|
@@ -1841,6 +1845,7 @@ declare const editorMachine: StateMachine<
|
|
|
1841
1845
|
| {
|
|
1842
1846
|
type: 'insert.blocks'
|
|
1843
1847
|
blocks: Array<PortableTextBlock>
|
|
1848
|
+
placement: 'auto' | 'after' | 'before'
|
|
1844
1849
|
}
|
|
1845
1850
|
| {
|
|
1846
1851
|
type: 'insert.block object'
|
|
@@ -2222,6 +2227,7 @@ declare const editorMachine: StateMachine<
|
|
|
2222
2227
|
| {
|
|
2223
2228
|
type: 'insert.blocks'
|
|
2224
2229
|
blocks: Array<PortableTextBlock>
|
|
2230
|
+
placement: 'auto' | 'after' | 'before'
|
|
2225
2231
|
}
|
|
2226
2232
|
| {
|
|
2227
2233
|
type: 'insert.block object'
|
|
@@ -2577,6 +2583,7 @@ declare const editorMachine: StateMachine<
|
|
|
2577
2583
|
| {
|
|
2578
2584
|
type: 'insert.blocks'
|
|
2579
2585
|
blocks: Array<PortableTextBlock>
|
|
2586
|
+
placement: 'auto' | 'after' | 'before'
|
|
2580
2587
|
}
|
|
2581
2588
|
| {
|
|
2582
2589
|
type: 'insert.block object'
|
|
@@ -2869,6 +2876,7 @@ declare const editorMachine: StateMachine<
|
|
|
2869
2876
|
| {
|
|
2870
2877
|
type: 'insert.blocks'
|
|
2871
2878
|
blocks: Array<PortableTextBlock>
|
|
2879
|
+
placement: 'auto' | 'after' | 'before'
|
|
2872
2880
|
}
|
|
2873
2881
|
| {
|
|
2874
2882
|
type: 'insert.block object'
|
|
@@ -3224,6 +3232,7 @@ declare const editorMachine: StateMachine<
|
|
|
3224
3232
|
| {
|
|
3225
3233
|
type: 'insert.blocks'
|
|
3226
3234
|
blocks: Array<PortableTextBlock>
|
|
3235
|
+
placement: 'auto' | 'after' | 'before'
|
|
3227
3236
|
}
|
|
3228
3237
|
| {
|
|
3229
3238
|
type: 'insert.block object'
|
|
@@ -3519,6 +3528,7 @@ declare const editorMachine: StateMachine<
|
|
|
3519
3528
|
| {
|
|
3520
3529
|
type: 'insert.blocks'
|
|
3521
3530
|
blocks: Array<PortableTextBlock>
|
|
3531
|
+
placement: 'auto' | 'after' | 'before'
|
|
3522
3532
|
}
|
|
3523
3533
|
| {
|
|
3524
3534
|
type: 'insert.block object'
|
|
@@ -3874,6 +3884,7 @@ declare const editorMachine: StateMachine<
|
|
|
3874
3884
|
| {
|
|
3875
3885
|
type: 'insert.blocks'
|
|
3876
3886
|
blocks: Array<PortableTextBlock>
|
|
3887
|
+
placement: 'auto' | 'after' | 'before'
|
|
3877
3888
|
}
|
|
3878
3889
|
| {
|
|
3879
3890
|
type: 'insert.block object'
|
|
@@ -4168,6 +4179,7 @@ declare const editorMachine: StateMachine<
|
|
|
4168
4179
|
| {
|
|
4169
4180
|
type: 'insert.blocks'
|
|
4170
4181
|
blocks: Array<PortableTextBlock>
|
|
4182
|
+
placement: 'auto' | 'after' | 'before'
|
|
4171
4183
|
}
|
|
4172
4184
|
| {
|
|
4173
4185
|
type: 'insert.block object'
|
|
@@ -4523,6 +4535,7 @@ declare const editorMachine: StateMachine<
|
|
|
4523
4535
|
| {
|
|
4524
4536
|
type: 'insert.blocks'
|
|
4525
4537
|
blocks: Array<PortableTextBlock>
|
|
4538
|
+
placement: 'auto' | 'after' | 'before'
|
|
4526
4539
|
}
|
|
4527
4540
|
| {
|
|
4528
4541
|
type: 'insert.block object'
|
|
@@ -4816,6 +4829,7 @@ declare const editorMachine: StateMachine<
|
|
|
4816
4829
|
| {
|
|
4817
4830
|
type: 'insert.blocks'
|
|
4818
4831
|
blocks: Array<PortableTextBlock>
|
|
4832
|
+
placement: 'auto' | 'after' | 'before'
|
|
4819
4833
|
}
|
|
4820
4834
|
| {
|
|
4821
4835
|
type: 'insert.block object'
|
|
@@ -5171,6 +5185,7 @@ declare const editorMachine: StateMachine<
|
|
|
5171
5185
|
| {
|
|
5172
5186
|
type: 'insert.blocks'
|
|
5173
5187
|
blocks: Array<PortableTextBlock>
|
|
5188
|
+
placement: 'auto' | 'after' | 'before'
|
|
5174
5189
|
}
|
|
5175
5190
|
| {
|
|
5176
5191
|
type: 'insert.block object'
|
|
@@ -5465,6 +5480,7 @@ declare const editorMachine: StateMachine<
|
|
|
5465
5480
|
| {
|
|
5466
5481
|
type: 'insert.blocks'
|
|
5467
5482
|
blocks: Array<PortableTextBlock>
|
|
5483
|
+
placement: 'auto' | 'after' | 'before'
|
|
5468
5484
|
}
|
|
5469
5485
|
| {
|
|
5470
5486
|
type: 'insert.block object'
|
|
@@ -5838,6 +5854,7 @@ declare const editorMachine: StateMachine<
|
|
|
5838
5854
|
| {
|
|
5839
5855
|
type: 'insert.blocks'
|
|
5840
5856
|
blocks: Array<PortableTextBlock>
|
|
5857
|
+
placement: 'auto' | 'after' | 'before'
|
|
5841
5858
|
}
|
|
5842
5859
|
| {
|
|
5843
5860
|
type: 'insert.block object'
|
|
@@ -6193,6 +6210,7 @@ declare const editorMachine: StateMachine<
|
|
|
6193
6210
|
| {
|
|
6194
6211
|
type: 'insert.blocks'
|
|
6195
6212
|
blocks: Array<PortableTextBlock>
|
|
6213
|
+
placement: 'auto' | 'after' | 'before'
|
|
6196
6214
|
}
|
|
6197
6215
|
| {
|
|
6198
6216
|
type: 'insert.block object'
|
|
@@ -6487,6 +6505,7 @@ declare const editorMachine: StateMachine<
|
|
|
6487
6505
|
| {
|
|
6488
6506
|
type: 'insert.blocks'
|
|
6489
6507
|
blocks: Array<PortableTextBlock>
|
|
6508
|
+
placement: 'auto' | 'after' | 'before'
|
|
6490
6509
|
}
|
|
6491
6510
|
| {
|
|
6492
6511
|
type: 'insert.block object'
|
|
@@ -6842,6 +6861,7 @@ declare const editorMachine: StateMachine<
|
|
|
6842
6861
|
| {
|
|
6843
6862
|
type: 'insert.blocks'
|
|
6844
6863
|
blocks: Array<PortableTextBlock>
|
|
6864
|
+
placement: 'auto' | 'after' | 'before'
|
|
6845
6865
|
}
|
|
6846
6866
|
| {
|
|
6847
6867
|
type: 'insert.block object'
|
|
@@ -7134,6 +7154,7 @@ declare const editorMachine: StateMachine<
|
|
|
7134
7154
|
| {
|
|
7135
7155
|
type: 'insert.blocks'
|
|
7136
7156
|
blocks: Array<PortableTextBlock>
|
|
7157
|
+
placement: 'auto' | 'after' | 'before'
|
|
7137
7158
|
}
|
|
7138
7159
|
| {
|
|
7139
7160
|
type: 'insert.block object'
|
|
@@ -7489,6 +7510,7 @@ declare const editorMachine: StateMachine<
|
|
|
7489
7510
|
| {
|
|
7490
7511
|
type: 'insert.blocks'
|
|
7491
7512
|
blocks: Array<PortableTextBlock>
|
|
7513
|
+
placement: 'auto' | 'after' | 'before'
|
|
7492
7514
|
}
|
|
7493
7515
|
| {
|
|
7494
7516
|
type: 'insert.block object'
|
|
@@ -7782,6 +7804,7 @@ declare const editorMachine: StateMachine<
|
|
|
7782
7804
|
| {
|
|
7783
7805
|
type: 'insert.blocks'
|
|
7784
7806
|
blocks: Array<PortableTextBlock>
|
|
7807
|
+
placement: 'auto' | 'after' | 'before'
|
|
7785
7808
|
}
|
|
7786
7809
|
| {
|
|
7787
7810
|
type: 'insert.block object'
|
|
@@ -8137,6 +8160,7 @@ declare const editorMachine: StateMachine<
|
|
|
8137
8160
|
| {
|
|
8138
8161
|
type: 'insert.blocks'
|
|
8139
8162
|
blocks: Array<PortableTextBlock>
|
|
8163
|
+
placement: 'auto' | 'after' | 'before'
|
|
8140
8164
|
}
|
|
8141
8165
|
| {
|
|
8142
8166
|
type: 'insert.block object'
|
|
@@ -8433,6 +8457,7 @@ declare const editorMachine: StateMachine<
|
|
|
8433
8457
|
| {
|
|
8434
8458
|
type: 'insert.blocks'
|
|
8435
8459
|
blocks: Array<PortableTextBlock>
|
|
8460
|
+
placement: 'auto' | 'after' | 'before'
|
|
8436
8461
|
}
|
|
8437
8462
|
| {
|
|
8438
8463
|
type: 'insert.block object'
|
|
@@ -8788,6 +8813,7 @@ declare const editorMachine: StateMachine<
|
|
|
8788
8813
|
| {
|
|
8789
8814
|
type: 'insert.blocks'
|
|
8790
8815
|
blocks: Array<PortableTextBlock>
|
|
8816
|
+
placement: 'auto' | 'after' | 'before'
|
|
8791
8817
|
}
|
|
8792
8818
|
| {
|
|
8793
8819
|
type: 'insert.block object'
|
|
@@ -9084,6 +9110,7 @@ declare const editorMachine: StateMachine<
|
|
|
9084
9110
|
| {
|
|
9085
9111
|
type: 'insert.blocks'
|
|
9086
9112
|
blocks: Array<PortableTextBlock>
|
|
9113
|
+
placement: 'auto' | 'after' | 'before'
|
|
9087
9114
|
}
|
|
9088
9115
|
| {
|
|
9089
9116
|
type: 'insert.block object'
|
|
@@ -9462,6 +9489,7 @@ declare const editorMachine: StateMachine<
|
|
|
9462
9489
|
| {
|
|
9463
9490
|
type: 'insert.blocks'
|
|
9464
9491
|
blocks: Array<PortableTextBlock>
|
|
9492
|
+
placement: 'auto' | 'after' | 'before'
|
|
9465
9493
|
}
|
|
9466
9494
|
| {
|
|
9467
9495
|
type: 'insert.block object'
|
|
@@ -9837,6 +9865,7 @@ declare const editorMachine: StateMachine<
|
|
|
9837
9865
|
| {
|
|
9838
9866
|
type: 'insert.blocks'
|
|
9839
9867
|
blocks: Array<PortableTextBlock>
|
|
9868
|
+
placement: 'auto' | 'after' | 'before'
|
|
9840
9869
|
}
|
|
9841
9870
|
| {
|
|
9842
9871
|
type: 'insert.block object'
|
|
@@ -10362,6 +10391,7 @@ declare const editorMachine: StateMachine<
|
|
|
10362
10391
|
| {
|
|
10363
10392
|
type: 'insert.blocks'
|
|
10364
10393
|
blocks: Array<PortableTextBlock>
|
|
10394
|
+
placement: 'auto' | 'after' | 'before'
|
|
10365
10395
|
}
|
|
10366
10396
|
| {
|
|
10367
10397
|
type: 'insert.block object'
|
|
@@ -10719,6 +10749,7 @@ declare const editorMachine: StateMachine<
|
|
|
10719
10749
|
| {
|
|
10720
10750
|
type: 'insert.blocks'
|
|
10721
10751
|
blocks: Array<PortableTextBlock>
|
|
10752
|
+
placement: 'auto' | 'after' | 'before'
|
|
10722
10753
|
}
|
|
10723
10754
|
| {
|
|
10724
10755
|
type: 'insert.block object'
|
|
@@ -11018,6 +11049,7 @@ declare const editorMachine: StateMachine<
|
|
|
11018
11049
|
| {
|
|
11019
11050
|
type: 'insert.blocks'
|
|
11020
11051
|
blocks: Array<PortableTextBlock>
|
|
11052
|
+
placement: 'auto' | 'after' | 'before'
|
|
11021
11053
|
}
|
|
11022
11054
|
| {
|
|
11023
11055
|
type: 'insert.block object'
|
|
@@ -11375,6 +11407,7 @@ declare const editorMachine: StateMachine<
|
|
|
11375
11407
|
| {
|
|
11376
11408
|
type: 'insert.blocks'
|
|
11377
11409
|
blocks: Array<PortableTextBlock>
|
|
11410
|
+
placement: 'auto' | 'after' | 'before'
|
|
11378
11411
|
}
|
|
11379
11412
|
| {
|
|
11380
11413
|
type: 'insert.block object'
|
|
@@ -11667,6 +11700,7 @@ declare const editorMachine: StateMachine<
|
|
|
11667
11700
|
| {
|
|
11668
11701
|
type: 'insert.blocks'
|
|
11669
11702
|
blocks: Array<PortableTextBlock>
|
|
11703
|
+
placement: 'auto' | 'after' | 'before'
|
|
11670
11704
|
}
|
|
11671
11705
|
| {
|
|
11672
11706
|
type: 'insert.block object'
|
|
@@ -12024,6 +12058,7 @@ declare const editorMachine: StateMachine<
|
|
|
12024
12058
|
| {
|
|
12025
12059
|
type: 'insert.blocks'
|
|
12026
12060
|
blocks: Array<PortableTextBlock>
|
|
12061
|
+
placement: 'auto' | 'after' | 'before'
|
|
12027
12062
|
}
|
|
12028
12063
|
| {
|
|
12029
12064
|
type: 'insert.block object'
|
|
@@ -12316,6 +12351,7 @@ declare const editorMachine: StateMachine<
|
|
|
12316
12351
|
| {
|
|
12317
12352
|
type: 'insert.blocks'
|
|
12318
12353
|
blocks: Array<PortableTextBlock>
|
|
12354
|
+
placement: 'auto' | 'after' | 'before'
|
|
12319
12355
|
}
|
|
12320
12356
|
| {
|
|
12321
12357
|
type: 'insert.block object'
|
|
@@ -12673,6 +12709,7 @@ declare const editorMachine: StateMachine<
|
|
|
12673
12709
|
| {
|
|
12674
12710
|
type: 'insert.blocks'
|
|
12675
12711
|
blocks: Array<PortableTextBlock>
|
|
12712
|
+
placement: 'auto' | 'after' | 'before'
|
|
12676
12713
|
}
|
|
12677
12714
|
| {
|
|
12678
12715
|
type: 'insert.block object'
|
|
@@ -12978,6 +13015,7 @@ declare const editorMachine: StateMachine<
|
|
|
12978
13015
|
| {
|
|
12979
13016
|
type: 'insert.blocks'
|
|
12980
13017
|
blocks: Array<PortableTextBlock>
|
|
13018
|
+
placement: 'auto' | 'after' | 'before'
|
|
12981
13019
|
}
|
|
12982
13020
|
| {
|
|
12983
13021
|
type: 'insert.block object'
|
|
@@ -13335,6 +13373,7 @@ declare const editorMachine: StateMachine<
|
|
|
13335
13373
|
| {
|
|
13336
13374
|
type: 'insert.blocks'
|
|
13337
13375
|
blocks: Array<PortableTextBlock>
|
|
13376
|
+
placement: 'auto' | 'after' | 'before'
|
|
13338
13377
|
}
|
|
13339
13378
|
| {
|
|
13340
13379
|
type: 'insert.block object'
|
|
@@ -13641,6 +13680,7 @@ declare const editorMachine: StateMachine<
|
|
|
13641
13680
|
| {
|
|
13642
13681
|
type: 'insert.blocks'
|
|
13643
13682
|
blocks: Array<PortableTextBlock>
|
|
13683
|
+
placement: 'auto' | 'after' | 'before'
|
|
13644
13684
|
}
|
|
13645
13685
|
| {
|
|
13646
13686
|
type: 'insert.block object'
|
|
@@ -13998,6 +14038,7 @@ declare const editorMachine: StateMachine<
|
|
|
13998
14038
|
| {
|
|
13999
14039
|
type: 'insert.blocks'
|
|
14000
14040
|
blocks: Array<PortableTextBlock>
|
|
14041
|
+
placement: 'auto' | 'after' | 'before'
|
|
14001
14042
|
}
|
|
14002
14043
|
| {
|
|
14003
14044
|
type: 'insert.block object'
|
|
@@ -14290,6 +14331,7 @@ declare const editorMachine: StateMachine<
|
|
|
14290
14331
|
| {
|
|
14291
14332
|
type: 'insert.blocks'
|
|
14292
14333
|
blocks: Array<PortableTextBlock>
|
|
14334
|
+
placement: 'auto' | 'after' | 'before'
|
|
14293
14335
|
}
|
|
14294
14336
|
| {
|
|
14295
14337
|
type: 'insert.block object'
|
|
@@ -14647,6 +14689,7 @@ declare const editorMachine: StateMachine<
|
|
|
14647
14689
|
| {
|
|
14648
14690
|
type: 'insert.blocks'
|
|
14649
14691
|
blocks: Array<PortableTextBlock>
|
|
14692
|
+
placement: 'auto' | 'after' | 'before'
|
|
14650
14693
|
}
|
|
14651
14694
|
| {
|
|
14652
14695
|
type: 'insert.block object'
|
|
@@ -14942,6 +14985,7 @@ declare const editorMachine: StateMachine<
|
|
|
14942
14985
|
| {
|
|
14943
14986
|
type: 'insert.blocks'
|
|
14944
14987
|
blocks: Array<PortableTextBlock>
|
|
14988
|
+
placement: 'auto' | 'after' | 'before'
|
|
14945
14989
|
}
|
|
14946
14990
|
| {
|
|
14947
14991
|
type: 'insert.block object'
|
|
@@ -15299,6 +15343,7 @@ declare const editorMachine: StateMachine<
|
|
|
15299
15343
|
| {
|
|
15300
15344
|
type: 'insert.blocks'
|
|
15301
15345
|
blocks: Array<PortableTextBlock>
|
|
15346
|
+
placement: 'auto' | 'after' | 'before'
|
|
15302
15347
|
}
|
|
15303
15348
|
| {
|
|
15304
15349
|
type: 'insert.block object'
|
|
@@ -15499,6 +15544,7 @@ declare const editorMachine: StateMachine<
|
|
|
15499
15544
|
| {
|
|
15500
15545
|
type: 'insert.blocks'
|
|
15501
15546
|
blocks: Array<PortableTextBlock>
|
|
15547
|
+
placement: 'auto' | 'after' | 'before'
|
|
15502
15548
|
}
|
|
15503
15549
|
| {
|
|
15504
15550
|
type: 'insert.block object'
|
|
@@ -15645,6 +15691,7 @@ declare const editorMachine: StateMachine<
|
|
|
15645
15691
|
| {
|
|
15646
15692
|
type: 'insert.blocks'
|
|
15647
15693
|
blocks: Array<PortableTextBlock>
|
|
15694
|
+
placement: 'auto' | 'after' | 'before'
|
|
15648
15695
|
}
|
|
15649
15696
|
| {
|
|
15650
15697
|
type: 'insert.block object'
|
|
@@ -16002,6 +16049,7 @@ declare const editorMachine: StateMachine<
|
|
|
16002
16049
|
| {
|
|
16003
16050
|
type: 'insert.blocks'
|
|
16004
16051
|
blocks: Array<PortableTextBlock>
|
|
16052
|
+
placement: 'auto' | 'after' | 'before'
|
|
16005
16053
|
}
|
|
16006
16054
|
| {
|
|
16007
16055
|
type: 'insert.block object'
|
|
@@ -16303,6 +16351,7 @@ declare const editorMachine: StateMachine<
|
|
|
16303
16351
|
| {
|
|
16304
16352
|
type: 'insert.blocks'
|
|
16305
16353
|
blocks: Array<PortableTextBlock>
|
|
16354
|
+
placement: 'auto' | 'after' | 'before'
|
|
16306
16355
|
}
|
|
16307
16356
|
| {
|
|
16308
16357
|
type: 'insert.block object'
|
|
@@ -16660,6 +16709,7 @@ declare const editorMachine: StateMachine<
|
|
|
16660
16709
|
| {
|
|
16661
16710
|
type: 'insert.blocks'
|
|
16662
16711
|
blocks: Array<PortableTextBlock>
|
|
16712
|
+
placement: 'auto' | 'after' | 'before'
|
|
16663
16713
|
}
|
|
16664
16714
|
| {
|
|
16665
16715
|
type: 'insert.block object'
|
|
@@ -16962,6 +17012,7 @@ declare const editorMachine: StateMachine<
|
|
|
16962
17012
|
| {
|
|
16963
17013
|
type: 'insert.blocks'
|
|
16964
17014
|
blocks: Array<PortableTextBlock>
|
|
17015
|
+
placement: 'auto' | 'after' | 'before'
|
|
16965
17016
|
}
|
|
16966
17017
|
| {
|
|
16967
17018
|
type: 'insert.block object'
|
|
@@ -17319,6 +17370,7 @@ declare const editorMachine: StateMachine<
|
|
|
17319
17370
|
| {
|
|
17320
17371
|
type: 'insert.blocks'
|
|
17321
17372
|
blocks: Array<PortableTextBlock>
|
|
17373
|
+
placement: 'auto' | 'after' | 'before'
|
|
17322
17374
|
}
|
|
17323
17375
|
| {
|
|
17324
17376
|
type: 'insert.block object'
|
|
@@ -17612,6 +17664,7 @@ declare const editorMachine: StateMachine<
|
|
|
17612
17664
|
| {
|
|
17613
17665
|
type: 'insert.blocks'
|
|
17614
17666
|
blocks: Array<PortableTextBlock>
|
|
17667
|
+
placement: 'auto' | 'after' | 'before'
|
|
17615
17668
|
}
|
|
17616
17669
|
| {
|
|
17617
17670
|
type: 'insert.block object'
|
|
@@ -17969,6 +18022,7 @@ declare const editorMachine: StateMachine<
|
|
|
17969
18022
|
| {
|
|
17970
18023
|
type: 'insert.blocks'
|
|
17971
18024
|
blocks: Array<PortableTextBlock>
|
|
18025
|
+
placement: 'auto' | 'after' | 'before'
|
|
17972
18026
|
}
|
|
17973
18027
|
| {
|
|
17974
18028
|
type: 'insert.block object'
|
|
@@ -18264,6 +18318,7 @@ declare const editorMachine: StateMachine<
|
|
|
18264
18318
|
| {
|
|
18265
18319
|
type: 'insert.blocks'
|
|
18266
18320
|
blocks: Array<PortableTextBlock>
|
|
18321
|
+
placement: 'auto' | 'after' | 'before'
|
|
18267
18322
|
}
|
|
18268
18323
|
| {
|
|
18269
18324
|
type: 'insert.block object'
|
|
@@ -18621,6 +18676,7 @@ declare const editorMachine: StateMachine<
|
|
|
18621
18676
|
| {
|
|
18622
18677
|
type: 'insert.blocks'
|
|
18623
18678
|
blocks: Array<PortableTextBlock>
|
|
18679
|
+
placement: 'auto' | 'after' | 'before'
|
|
18624
18680
|
}
|
|
18625
18681
|
| {
|
|
18626
18682
|
type: 'insert.block object'
|
|
@@ -18922,6 +18978,7 @@ declare const editorMachine: StateMachine<
|
|
|
18922
18978
|
| {
|
|
18923
18979
|
type: 'insert.blocks'
|
|
18924
18980
|
blocks: Array<PortableTextBlock>
|
|
18981
|
+
placement: 'auto' | 'after' | 'before'
|
|
18925
18982
|
}
|
|
18926
18983
|
| {
|
|
18927
18984
|
type: 'insert.block object'
|
|
@@ -19279,6 +19336,7 @@ declare const editorMachine: StateMachine<
|
|
|
19279
19336
|
| {
|
|
19280
19337
|
type: 'insert.blocks'
|
|
19281
19338
|
blocks: Array<PortableTextBlock>
|
|
19339
|
+
placement: 'auto' | 'after' | 'before'
|
|
19282
19340
|
}
|
|
19283
19341
|
| {
|
|
19284
19342
|
type: 'insert.block object'
|
|
@@ -20765,6 +20823,7 @@ declare type SyntheticBehaviorEvent =
|
|
|
20765
20823
|
| {
|
|
20766
20824
|
type: 'insert.blocks'
|
|
20767
20825
|
blocks: Array<PortableTextBlock>
|
|
20826
|
+
placement: 'auto' | 'after' | 'before'
|
|
20768
20827
|
}
|
|
20769
20828
|
| {
|
|
20770
20829
|
type: 'insert.block object'
|