@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.
Files changed (45) hide show
  1. package/lib/_chunks-cjs/behavior.core.cjs +20 -0
  2. package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
  3. package/lib/_chunks-cjs/behavior.markdown.cjs +25 -25
  4. package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
  5. package/lib/_chunks-cjs/editor-provider.cjs +93 -59
  6. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  7. package/lib/_chunks-es/behavior.core.js +20 -0
  8. package/lib/_chunks-es/behavior.core.js.map +1 -1
  9. package/lib/_chunks-es/behavior.markdown.js +26 -26
  10. package/lib/_chunks-es/behavior.markdown.js.map +1 -1
  11. package/lib/_chunks-es/editor-provider.js +93 -59
  12. package/lib/_chunks-es/editor-provider.js.map +1 -1
  13. package/lib/_chunks-es/selector.is-selecting-entire-blocks.js +1 -1
  14. package/lib/behaviors/index.cjs +37 -53
  15. package/lib/behaviors/index.cjs.map +1 -1
  16. package/lib/behaviors/index.d.cts +52 -37
  17. package/lib/behaviors/index.d.ts +52 -37
  18. package/lib/behaviors/index.js +38 -54
  19. package/lib/behaviors/index.js.map +1 -1
  20. package/lib/index.d.cts +33 -37
  21. package/lib/index.d.ts +33 -37
  22. package/lib/plugins/index.cjs +23 -29
  23. package/lib/plugins/index.cjs.map +1 -1
  24. package/lib/plugins/index.d.cts +33 -37
  25. package/lib/plugins/index.d.ts +33 -37
  26. package/lib/plugins/index.js +24 -30
  27. package/lib/plugins/index.js.map +1 -1
  28. package/lib/selectors/index.d.cts +33 -37
  29. package/lib/selectors/index.d.ts +33 -37
  30. package/lib/utils/index.d.cts +33 -37
  31. package/lib/utils/index.d.ts +33 -37
  32. package/package.json +1 -1
  33. package/src/behaviors/behavior.decorator-pair.ts +16 -19
  34. package/src/behaviors/behavior.emoji-picker.ts +26 -45
  35. package/src/behaviors/behavior.links.ts +5 -4
  36. package/src/behaviors/behavior.markdown.ts +37 -34
  37. package/src/behaviors/behavior.perform-event.ts +67 -18
  38. package/src/behaviors/behavior.types.action.ts +39 -13
  39. package/src/behaviors/behavior.types.guard.ts +1 -6
  40. package/src/behaviors/index.ts +3 -0
  41. package/src/editor/components/Synchronizer.tsx +6 -3
  42. package/src/editor/create-editor.ts +1 -1
  43. package/src/editor/editor-machine.ts +8 -6
  44. package/src/plugins/plugin.decorator-shortcut.ts +6 -8
  45. 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
- | SyntheticBehaviorEvent
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
- value: Array<PortableTextBlock> | undefined
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
- value?: Array<PortableTextBlock>
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
- value?: Array<PortableTextBlock>
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
- value: Array<PortableTextBlock> | undefined
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
- value: PortableTextBlock[] | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
4295
+ incomingValue: Array<PortableTextBlock> | undefined
4300
4296
  internalDrag?: {
4301
4297
  ghost?: HTMLElement
4302
4298
  origin: Pick<EventPosition, 'selection'>
@@ -255,7 +255,13 @@ declare type Behavior<
255
255
  * @beta
256
256
  */
257
257
  declare type BehaviorAction =
258
- | SyntheticBehaviorEvent
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
- value: Array<PortableTextBlock> | undefined
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
- value?: Array<PortableTextBlock>
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
- value?: Array<PortableTextBlock>
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
- value: Array<PortableTextBlock> | undefined
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
- value: PortableTextBlock[] | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
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
- value: Array<PortableTextBlock> | undefined
4295
+ incomingValue: Array<PortableTextBlock> | undefined
4300
4296
  internalDrag?: {
4301
4297
  ghost?: HTMLElement
4302
4298
  origin: Pick<EventPosition, 'selection'>