@portabletext/editor 1.45.3 → 1.46.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 +20 -0
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/behavior.markdown.cjs +25 -25
- package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +93 -59
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js +20 -0
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/behavior.markdown.js +26 -26
- package/lib/_chunks-es/behavior.markdown.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +93 -59
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/selector.is-selecting-entire-blocks.js +1 -1
- package/lib/behaviors/index.cjs +37 -53
- package/lib/behaviors/index.cjs.map +1 -1
- package/lib/behaviors/index.d.cts +52 -37
- package/lib/behaviors/index.d.ts +52 -37
- package/lib/behaviors/index.js +38 -54
- package/lib/behaviors/index.js.map +1 -1
- package/lib/index.d.cts +33 -37
- package/lib/index.d.ts +33 -37
- package/lib/plugins/index.cjs +23 -29
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +33 -37
- package/lib/plugins/index.d.ts +33 -37
- package/lib/plugins/index.js +24 -30
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.cts +33 -37
- package/lib/selectors/index.d.ts +33 -37
- package/lib/utils/index.d.cts +33 -37
- package/lib/utils/index.d.ts +33 -37
- package/package.json +1 -1
- package/src/behaviors/behavior.decorator-pair.ts +16 -19
- package/src/behaviors/behavior.emoji-picker.ts +26 -45
- package/src/behaviors/behavior.links.ts +5 -4
- package/src/behaviors/behavior.markdown.ts +37 -34
- package/src/behaviors/behavior.perform-event.ts +67 -18
- package/src/behaviors/behavior.types.action.ts +39 -13
- package/src/behaviors/behavior.types.guard.ts +1 -6
- package/src/behaviors/index.ts +3 -0
- package/src/editor/components/Synchronizer.tsx +6 -3
- package/src/editor/create-editor.ts +1 -1
- package/src/editor/editor-machine.ts +8 -6
- package/src/plugins/plugin.decorator-shortcut.ts +6 -8
- package/src/plugins/plugin.one-line.tsx +4 -4
|
@@ -255,7 +255,13 @@ declare type Behavior<
|
|
|
255
255
|
* @beta
|
|
256
256
|
*/
|
|
257
257
|
declare type BehaviorAction =
|
|
258
|
-
|
|
|
258
|
+
| {
|
|
259
|
+
type: 'execute'
|
|
260
|
+
event:
|
|
261
|
+
| AbstractBehaviorEvent
|
|
262
|
+
| SyntheticBehaviorEvent
|
|
263
|
+
| CustomBehaviorEvent
|
|
264
|
+
}
|
|
259
265
|
| {
|
|
260
266
|
type: 'raise'
|
|
261
267
|
event:
|
|
@@ -276,11 +282,6 @@ declare type BehaviorAction =
|
|
|
276
282
|
*/
|
|
277
283
|
declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
278
284
|
payload: {
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated
|
|
281
|
-
* Use `snapshot` instead
|
|
282
|
-
*/
|
|
283
|
-
context: EditorContext
|
|
284
285
|
snapshot: EditorSnapshot
|
|
285
286
|
event: TBehaviorEvent
|
|
286
287
|
},
|
|
@@ -306,11 +307,6 @@ declare type BehaviorEventTypeNamespace =
|
|
|
306
307
|
* @beta
|
|
307
308
|
*/
|
|
308
309
|
declare type BehaviorGuard<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
309
|
-
/**
|
|
310
|
-
* @deprecated
|
|
311
|
-
* Use `snapshot` instead
|
|
312
|
-
*/
|
|
313
|
-
context: EditorContext
|
|
314
310
|
snapshot: EditorSnapshot
|
|
315
311
|
event: TBehaviorEvent
|
|
316
312
|
}) => TGuardResponse | false
|
|
@@ -592,7 +588,7 @@ declare const editorMachine: StateMachine<
|
|
|
592
588
|
initialReadOnly: boolean
|
|
593
589
|
maxBlocks: number | undefined
|
|
594
590
|
selection: EditorSelection
|
|
595
|
-
|
|
591
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
596
592
|
internalDrag?: {
|
|
597
593
|
ghost?: HTMLElement
|
|
598
594
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -799,7 +795,7 @@ declare const editorMachine: StateMachine<
|
|
|
799
795
|
maxBlocks?: number
|
|
800
796
|
readOnly?: boolean
|
|
801
797
|
schema: EditorSchema
|
|
802
|
-
|
|
798
|
+
initialValue?: Array<PortableTextBlock>
|
|
803
799
|
},
|
|
804
800
|
NonReducibleUnknown,
|
|
805
801
|
| PatchEvent
|
|
@@ -884,7 +880,7 @@ declare const editorMachine: StateMachine<
|
|
|
884
880
|
maxBlocks?: number
|
|
885
881
|
readOnly?: boolean
|
|
886
882
|
schema: EditorSchema
|
|
887
|
-
|
|
883
|
+
initialValue?: Array<PortableTextBlock>
|
|
888
884
|
}
|
|
889
885
|
self: ActorRef<
|
|
890
886
|
MachineSnapshot<
|
|
@@ -897,7 +893,7 @@ declare const editorMachine: StateMachine<
|
|
|
897
893
|
initialReadOnly: boolean
|
|
898
894
|
maxBlocks: number | undefined
|
|
899
895
|
selection: EditorSelection
|
|
900
|
-
|
|
896
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
901
897
|
internalDrag?: {
|
|
902
898
|
ghost?: HTMLElement
|
|
903
899
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1161,7 +1157,7 @@ declare const editorMachine: StateMachine<
|
|
|
1161
1157
|
selection: null
|
|
1162
1158
|
initialReadOnly: boolean
|
|
1163
1159
|
maxBlocks: number | undefined
|
|
1164
|
-
|
|
1160
|
+
incomingValue: PortableTextBlock[] | undefined
|
|
1165
1161
|
}
|
|
1166
1162
|
readonly on: {
|
|
1167
1163
|
readonly 'notify.blurred': {
|
|
@@ -1175,7 +1171,7 @@ declare const editorMachine: StateMachine<
|
|
|
1175
1171
|
initialReadOnly: boolean
|
|
1176
1172
|
maxBlocks: number | undefined
|
|
1177
1173
|
selection: EditorSelection
|
|
1178
|
-
|
|
1174
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1179
1175
|
internalDrag?: {
|
|
1180
1176
|
ghost?: HTMLElement
|
|
1181
1177
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1370,7 +1366,7 @@ declare const editorMachine: StateMachine<
|
|
|
1370
1366
|
initialReadOnly: boolean
|
|
1371
1367
|
maxBlocks: number | undefined
|
|
1372
1368
|
selection: EditorSelection
|
|
1373
|
-
|
|
1369
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1374
1370
|
internalDrag?: {
|
|
1375
1371
|
ghost?: HTMLElement
|
|
1376
1372
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1564,7 +1560,7 @@ declare const editorMachine: StateMachine<
|
|
|
1564
1560
|
initialReadOnly: boolean
|
|
1565
1561
|
maxBlocks: number | undefined
|
|
1566
1562
|
selection: EditorSelection
|
|
1567
|
-
|
|
1563
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1568
1564
|
internalDrag?: {
|
|
1569
1565
|
ghost?: HTMLElement
|
|
1570
1566
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1761,7 +1757,7 @@ declare const editorMachine: StateMachine<
|
|
|
1761
1757
|
initialReadOnly: boolean
|
|
1762
1758
|
maxBlocks: number | undefined
|
|
1763
1759
|
selection: EditorSelection
|
|
1764
|
-
|
|
1760
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1765
1761
|
internalDrag?: {
|
|
1766
1762
|
ghost?: HTMLElement
|
|
1767
1763
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1957,7 +1953,7 @@ declare const editorMachine: StateMachine<
|
|
|
1957
1953
|
initialReadOnly: boolean
|
|
1958
1954
|
maxBlocks: number | undefined
|
|
1959
1955
|
selection: EditorSelection
|
|
1960
|
-
|
|
1956
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1961
1957
|
internalDrag?: {
|
|
1962
1958
|
ghost?: HTMLElement
|
|
1963
1959
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2153,7 +2149,7 @@ declare const editorMachine: StateMachine<
|
|
|
2153
2149
|
initialReadOnly: boolean
|
|
2154
2150
|
maxBlocks: number | undefined
|
|
2155
2151
|
selection: EditorSelection
|
|
2156
|
-
|
|
2152
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2157
2153
|
internalDrag?: {
|
|
2158
2154
|
ghost?: HTMLElement
|
|
2159
2155
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2300,7 +2296,7 @@ declare const editorMachine: StateMachine<
|
|
|
2300
2296
|
initialReadOnly: boolean
|
|
2301
2297
|
maxBlocks: number | undefined
|
|
2302
2298
|
selection: EditorSelection
|
|
2303
|
-
|
|
2299
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2304
2300
|
internalDrag?: {
|
|
2305
2301
|
ghost?: HTMLElement
|
|
2306
2302
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2496,7 +2492,7 @@ declare const editorMachine: StateMachine<
|
|
|
2496
2492
|
initialReadOnly: boolean
|
|
2497
2493
|
maxBlocks: number | undefined
|
|
2498
2494
|
selection: EditorSelection
|
|
2499
|
-
|
|
2495
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2500
2496
|
internalDrag?: {
|
|
2501
2497
|
ghost?: HTMLElement
|
|
2502
2498
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2691,7 +2687,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2687
|
initialReadOnly: boolean
|
|
2692
2688
|
maxBlocks: number | undefined
|
|
2693
2689
|
selection: EditorSelection
|
|
2694
|
-
|
|
2690
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2695
2691
|
internalDrag?: {
|
|
2696
2692
|
ghost?: HTMLElement
|
|
2697
2693
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2885,7 +2881,7 @@ declare const editorMachine: StateMachine<
|
|
|
2885
2881
|
initialReadOnly: boolean
|
|
2886
2882
|
maxBlocks: number | undefined
|
|
2887
2883
|
selection: EditorSelection
|
|
2888
|
-
|
|
2884
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2889
2885
|
internalDrag?: {
|
|
2890
2886
|
ghost?: HTMLElement
|
|
2891
2887
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3086,7 +3082,7 @@ declare const editorMachine: StateMachine<
|
|
|
3086
3082
|
initialReadOnly: boolean
|
|
3087
3083
|
maxBlocks: number | undefined
|
|
3088
3084
|
selection: EditorSelection
|
|
3089
|
-
|
|
3085
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3090
3086
|
internalDrag?: {
|
|
3091
3087
|
ghost?: HTMLElement
|
|
3092
3088
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3281,7 +3277,7 @@ declare const editorMachine: StateMachine<
|
|
|
3281
3277
|
initialReadOnly: boolean
|
|
3282
3278
|
maxBlocks: number | undefined
|
|
3283
3279
|
selection: EditorSelection
|
|
3284
|
-
|
|
3280
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3285
3281
|
internalDrag?: {
|
|
3286
3282
|
ghost?: HTMLElement
|
|
3287
3283
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3433,7 +3429,7 @@ declare const editorMachine: StateMachine<
|
|
|
3433
3429
|
initialReadOnly: boolean
|
|
3434
3430
|
maxBlocks: number | undefined
|
|
3435
3431
|
selection: EditorSelection
|
|
3436
|
-
|
|
3432
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3437
3433
|
internalDrag?: {
|
|
3438
3434
|
ghost?: HTMLElement
|
|
3439
3435
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3582,7 +3578,7 @@ declare const editorMachine: StateMachine<
|
|
|
3582
3578
|
initialReadOnly: boolean
|
|
3583
3579
|
maxBlocks: number | undefined
|
|
3584
3580
|
selection: EditorSelection
|
|
3585
|
-
|
|
3581
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3586
3582
|
internalDrag?: {
|
|
3587
3583
|
ghost?: HTMLElement
|
|
3588
3584
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3743,7 +3739,7 @@ declare const editorMachine: StateMachine<
|
|
|
3743
3739
|
initialReadOnly: boolean
|
|
3744
3740
|
maxBlocks: number | undefined
|
|
3745
3741
|
selection: EditorSelection
|
|
3746
|
-
|
|
3742
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3747
3743
|
internalDrag?: {
|
|
3748
3744
|
ghost?: HTMLElement
|
|
3749
3745
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3781,7 +3777,7 @@ declare const editorMachine: StateMachine<
|
|
|
3781
3777
|
initialReadOnly: boolean
|
|
3782
3778
|
maxBlocks: number | undefined
|
|
3783
3779
|
selection: EditorSelection
|
|
3784
|
-
|
|
3780
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3785
3781
|
internalDrag?: {
|
|
3786
3782
|
ghost?: HTMLElement
|
|
3787
3783
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3813,7 +3809,7 @@ declare const editorMachine: StateMachine<
|
|
|
3813
3809
|
initialReadOnly: boolean
|
|
3814
3810
|
maxBlocks: number | undefined
|
|
3815
3811
|
selection: EditorSelection
|
|
3816
|
-
|
|
3812
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3817
3813
|
internalDrag?: {
|
|
3818
3814
|
ghost?: HTMLElement
|
|
3819
3815
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3846,7 +3842,7 @@ declare const editorMachine: StateMachine<
|
|
|
3846
3842
|
initialReadOnly: boolean
|
|
3847
3843
|
maxBlocks: number | undefined
|
|
3848
3844
|
selection: EditorSelection
|
|
3849
|
-
|
|
3845
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3850
3846
|
internalDrag?: {
|
|
3851
3847
|
ghost?: HTMLElement
|
|
3852
3848
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3882,7 +3878,7 @@ declare const editorMachine: StateMachine<
|
|
|
3882
3878
|
initialReadOnly: boolean
|
|
3883
3879
|
maxBlocks: number | undefined
|
|
3884
3880
|
selection: EditorSelection
|
|
3885
|
-
|
|
3881
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3886
3882
|
internalDrag?: {
|
|
3887
3883
|
ghost?: HTMLElement
|
|
3888
3884
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4039,7 +4035,7 @@ declare const editorMachine: StateMachine<
|
|
|
4039
4035
|
initialReadOnly: boolean
|
|
4040
4036
|
maxBlocks: number | undefined
|
|
4041
4037
|
selection: EditorSelection
|
|
4042
|
-
|
|
4038
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4043
4039
|
internalDrag?: {
|
|
4044
4040
|
ghost?: HTMLElement
|
|
4045
4041
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4296,7 +4292,7 @@ declare const editorMachine: StateMachine<
|
|
|
4296
4292
|
initialReadOnly: boolean
|
|
4297
4293
|
maxBlocks: number | undefined
|
|
4298
4294
|
selection: EditorSelection
|
|
4299
|
-
|
|
4295
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4300
4296
|
internalDrag?: {
|
|
4301
4297
|
ghost?: HTMLElement
|
|
4302
4298
|
origin: Pick<EventPosition, 'selection'>
|
package/lib/selectors/index.d.ts
CHANGED
|
@@ -255,7 +255,13 @@ declare type Behavior<
|
|
|
255
255
|
* @beta
|
|
256
256
|
*/
|
|
257
257
|
declare type BehaviorAction =
|
|
258
|
-
|
|
|
258
|
+
| {
|
|
259
|
+
type: 'execute'
|
|
260
|
+
event:
|
|
261
|
+
| AbstractBehaviorEvent
|
|
262
|
+
| SyntheticBehaviorEvent
|
|
263
|
+
| CustomBehaviorEvent
|
|
264
|
+
}
|
|
259
265
|
| {
|
|
260
266
|
type: 'raise'
|
|
261
267
|
event:
|
|
@@ -276,11 +282,6 @@ declare type BehaviorAction =
|
|
|
276
282
|
*/
|
|
277
283
|
declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
278
284
|
payload: {
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated
|
|
281
|
-
* Use `snapshot` instead
|
|
282
|
-
*/
|
|
283
|
-
context: EditorContext
|
|
284
285
|
snapshot: EditorSnapshot
|
|
285
286
|
event: TBehaviorEvent
|
|
286
287
|
},
|
|
@@ -306,11 +307,6 @@ declare type BehaviorEventTypeNamespace =
|
|
|
306
307
|
* @beta
|
|
307
308
|
*/
|
|
308
309
|
declare type BehaviorGuard<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
309
|
-
/**
|
|
310
|
-
* @deprecated
|
|
311
|
-
* Use `snapshot` instead
|
|
312
|
-
*/
|
|
313
|
-
context: EditorContext
|
|
314
310
|
snapshot: EditorSnapshot
|
|
315
311
|
event: TBehaviorEvent
|
|
316
312
|
}) => TGuardResponse | false
|
|
@@ -592,7 +588,7 @@ declare const editorMachine: StateMachine<
|
|
|
592
588
|
initialReadOnly: boolean
|
|
593
589
|
maxBlocks: number | undefined
|
|
594
590
|
selection: EditorSelection
|
|
595
|
-
|
|
591
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
596
592
|
internalDrag?: {
|
|
597
593
|
ghost?: HTMLElement
|
|
598
594
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -799,7 +795,7 @@ declare const editorMachine: StateMachine<
|
|
|
799
795
|
maxBlocks?: number
|
|
800
796
|
readOnly?: boolean
|
|
801
797
|
schema: EditorSchema
|
|
802
|
-
|
|
798
|
+
initialValue?: Array<PortableTextBlock>
|
|
803
799
|
},
|
|
804
800
|
NonReducibleUnknown,
|
|
805
801
|
| PatchEvent
|
|
@@ -884,7 +880,7 @@ declare const editorMachine: StateMachine<
|
|
|
884
880
|
maxBlocks?: number
|
|
885
881
|
readOnly?: boolean
|
|
886
882
|
schema: EditorSchema
|
|
887
|
-
|
|
883
|
+
initialValue?: Array<PortableTextBlock>
|
|
888
884
|
}
|
|
889
885
|
self: ActorRef<
|
|
890
886
|
MachineSnapshot<
|
|
@@ -897,7 +893,7 @@ declare const editorMachine: StateMachine<
|
|
|
897
893
|
initialReadOnly: boolean
|
|
898
894
|
maxBlocks: number | undefined
|
|
899
895
|
selection: EditorSelection
|
|
900
|
-
|
|
896
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
901
897
|
internalDrag?: {
|
|
902
898
|
ghost?: HTMLElement
|
|
903
899
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1161,7 +1157,7 @@ declare const editorMachine: StateMachine<
|
|
|
1161
1157
|
selection: null
|
|
1162
1158
|
initialReadOnly: boolean
|
|
1163
1159
|
maxBlocks: number | undefined
|
|
1164
|
-
|
|
1160
|
+
incomingValue: PortableTextBlock[] | undefined
|
|
1165
1161
|
}
|
|
1166
1162
|
readonly on: {
|
|
1167
1163
|
readonly 'notify.blurred': {
|
|
@@ -1175,7 +1171,7 @@ declare const editorMachine: StateMachine<
|
|
|
1175
1171
|
initialReadOnly: boolean
|
|
1176
1172
|
maxBlocks: number | undefined
|
|
1177
1173
|
selection: EditorSelection
|
|
1178
|
-
|
|
1174
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1179
1175
|
internalDrag?: {
|
|
1180
1176
|
ghost?: HTMLElement
|
|
1181
1177
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1370,7 +1366,7 @@ declare const editorMachine: StateMachine<
|
|
|
1370
1366
|
initialReadOnly: boolean
|
|
1371
1367
|
maxBlocks: number | undefined
|
|
1372
1368
|
selection: EditorSelection
|
|
1373
|
-
|
|
1369
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1374
1370
|
internalDrag?: {
|
|
1375
1371
|
ghost?: HTMLElement
|
|
1376
1372
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1564,7 +1560,7 @@ declare const editorMachine: StateMachine<
|
|
|
1564
1560
|
initialReadOnly: boolean
|
|
1565
1561
|
maxBlocks: number | undefined
|
|
1566
1562
|
selection: EditorSelection
|
|
1567
|
-
|
|
1563
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1568
1564
|
internalDrag?: {
|
|
1569
1565
|
ghost?: HTMLElement
|
|
1570
1566
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1761,7 +1757,7 @@ declare const editorMachine: StateMachine<
|
|
|
1761
1757
|
initialReadOnly: boolean
|
|
1762
1758
|
maxBlocks: number | undefined
|
|
1763
1759
|
selection: EditorSelection
|
|
1764
|
-
|
|
1760
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1765
1761
|
internalDrag?: {
|
|
1766
1762
|
ghost?: HTMLElement
|
|
1767
1763
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1957,7 +1953,7 @@ declare const editorMachine: StateMachine<
|
|
|
1957
1953
|
initialReadOnly: boolean
|
|
1958
1954
|
maxBlocks: number | undefined
|
|
1959
1955
|
selection: EditorSelection
|
|
1960
|
-
|
|
1956
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1961
1957
|
internalDrag?: {
|
|
1962
1958
|
ghost?: HTMLElement
|
|
1963
1959
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2153,7 +2149,7 @@ declare const editorMachine: StateMachine<
|
|
|
2153
2149
|
initialReadOnly: boolean
|
|
2154
2150
|
maxBlocks: number | undefined
|
|
2155
2151
|
selection: EditorSelection
|
|
2156
|
-
|
|
2152
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2157
2153
|
internalDrag?: {
|
|
2158
2154
|
ghost?: HTMLElement
|
|
2159
2155
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2300,7 +2296,7 @@ declare const editorMachine: StateMachine<
|
|
|
2300
2296
|
initialReadOnly: boolean
|
|
2301
2297
|
maxBlocks: number | undefined
|
|
2302
2298
|
selection: EditorSelection
|
|
2303
|
-
|
|
2299
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2304
2300
|
internalDrag?: {
|
|
2305
2301
|
ghost?: HTMLElement
|
|
2306
2302
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2496,7 +2492,7 @@ declare const editorMachine: StateMachine<
|
|
|
2496
2492
|
initialReadOnly: boolean
|
|
2497
2493
|
maxBlocks: number | undefined
|
|
2498
2494
|
selection: EditorSelection
|
|
2499
|
-
|
|
2495
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2500
2496
|
internalDrag?: {
|
|
2501
2497
|
ghost?: HTMLElement
|
|
2502
2498
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2691,7 +2687,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2687
|
initialReadOnly: boolean
|
|
2692
2688
|
maxBlocks: number | undefined
|
|
2693
2689
|
selection: EditorSelection
|
|
2694
|
-
|
|
2690
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2695
2691
|
internalDrag?: {
|
|
2696
2692
|
ghost?: HTMLElement
|
|
2697
2693
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2885,7 +2881,7 @@ declare const editorMachine: StateMachine<
|
|
|
2885
2881
|
initialReadOnly: boolean
|
|
2886
2882
|
maxBlocks: number | undefined
|
|
2887
2883
|
selection: EditorSelection
|
|
2888
|
-
|
|
2884
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2889
2885
|
internalDrag?: {
|
|
2890
2886
|
ghost?: HTMLElement
|
|
2891
2887
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3086,7 +3082,7 @@ declare const editorMachine: StateMachine<
|
|
|
3086
3082
|
initialReadOnly: boolean
|
|
3087
3083
|
maxBlocks: number | undefined
|
|
3088
3084
|
selection: EditorSelection
|
|
3089
|
-
|
|
3085
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3090
3086
|
internalDrag?: {
|
|
3091
3087
|
ghost?: HTMLElement
|
|
3092
3088
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3281,7 +3277,7 @@ declare const editorMachine: StateMachine<
|
|
|
3281
3277
|
initialReadOnly: boolean
|
|
3282
3278
|
maxBlocks: number | undefined
|
|
3283
3279
|
selection: EditorSelection
|
|
3284
|
-
|
|
3280
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3285
3281
|
internalDrag?: {
|
|
3286
3282
|
ghost?: HTMLElement
|
|
3287
3283
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3433,7 +3429,7 @@ declare const editorMachine: StateMachine<
|
|
|
3433
3429
|
initialReadOnly: boolean
|
|
3434
3430
|
maxBlocks: number | undefined
|
|
3435
3431
|
selection: EditorSelection
|
|
3436
|
-
|
|
3432
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3437
3433
|
internalDrag?: {
|
|
3438
3434
|
ghost?: HTMLElement
|
|
3439
3435
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3582,7 +3578,7 @@ declare const editorMachine: StateMachine<
|
|
|
3582
3578
|
initialReadOnly: boolean
|
|
3583
3579
|
maxBlocks: number | undefined
|
|
3584
3580
|
selection: EditorSelection
|
|
3585
|
-
|
|
3581
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3586
3582
|
internalDrag?: {
|
|
3587
3583
|
ghost?: HTMLElement
|
|
3588
3584
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3743,7 +3739,7 @@ declare const editorMachine: StateMachine<
|
|
|
3743
3739
|
initialReadOnly: boolean
|
|
3744
3740
|
maxBlocks: number | undefined
|
|
3745
3741
|
selection: EditorSelection
|
|
3746
|
-
|
|
3742
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3747
3743
|
internalDrag?: {
|
|
3748
3744
|
ghost?: HTMLElement
|
|
3749
3745
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3781,7 +3777,7 @@ declare const editorMachine: StateMachine<
|
|
|
3781
3777
|
initialReadOnly: boolean
|
|
3782
3778
|
maxBlocks: number | undefined
|
|
3783
3779
|
selection: EditorSelection
|
|
3784
|
-
|
|
3780
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3785
3781
|
internalDrag?: {
|
|
3786
3782
|
ghost?: HTMLElement
|
|
3787
3783
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3813,7 +3809,7 @@ declare const editorMachine: StateMachine<
|
|
|
3813
3809
|
initialReadOnly: boolean
|
|
3814
3810
|
maxBlocks: number | undefined
|
|
3815
3811
|
selection: EditorSelection
|
|
3816
|
-
|
|
3812
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3817
3813
|
internalDrag?: {
|
|
3818
3814
|
ghost?: HTMLElement
|
|
3819
3815
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3846,7 +3842,7 @@ declare const editorMachine: StateMachine<
|
|
|
3846
3842
|
initialReadOnly: boolean
|
|
3847
3843
|
maxBlocks: number | undefined
|
|
3848
3844
|
selection: EditorSelection
|
|
3849
|
-
|
|
3845
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3850
3846
|
internalDrag?: {
|
|
3851
3847
|
ghost?: HTMLElement
|
|
3852
3848
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3882,7 +3878,7 @@ declare const editorMachine: StateMachine<
|
|
|
3882
3878
|
initialReadOnly: boolean
|
|
3883
3879
|
maxBlocks: number | undefined
|
|
3884
3880
|
selection: EditorSelection
|
|
3885
|
-
|
|
3881
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3886
3882
|
internalDrag?: {
|
|
3887
3883
|
ghost?: HTMLElement
|
|
3888
3884
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4039,7 +4035,7 @@ declare const editorMachine: StateMachine<
|
|
|
4039
4035
|
initialReadOnly: boolean
|
|
4040
4036
|
maxBlocks: number | undefined
|
|
4041
4037
|
selection: EditorSelection
|
|
4042
|
-
|
|
4038
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4043
4039
|
internalDrag?: {
|
|
4044
4040
|
ghost?: HTMLElement
|
|
4045
4041
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4296,7 +4292,7 @@ declare const editorMachine: StateMachine<
|
|
|
4296
4292
|
initialReadOnly: boolean
|
|
4297
4293
|
maxBlocks: number | undefined
|
|
4298
4294
|
selection: EditorSelection
|
|
4299
|
-
|
|
4295
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4300
4296
|
internalDrag?: {
|
|
4301
4297
|
ghost?: HTMLElement
|
|
4302
4298
|
origin: Pick<EventPosition, 'selection'>
|