@portabletext/editor 1.35.2 → 1.35.4
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/editor-provider.cjs +186 -71
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/editor-provider.js +187 -72
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/behaviors/index.d.cts +117 -72
- package/lib/behaviors/index.d.ts +117 -72
- package/lib/index.d.cts +117 -72
- package/lib/index.d.ts +117 -72
- package/lib/plugins/index.cjs +42 -31
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +117 -72
- package/lib/plugins/index.d.ts +117 -72
- package/lib/plugins/index.js +42 -31
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.cts +117 -72
- package/lib/selectors/index.d.ts +117 -72
- package/lib/utils/index.d.cts +117 -72
- package/lib/utils/index.d.ts +117 -72
- package/package.json +4 -4
- package/src/editor/__tests__/self-solving.test.tsx +33 -1
- package/src/editor/components/Synchronizer.tsx +17 -3
- package/src/editor/editor-machine.ts +27 -14
- package/src/editor/mutation-machine.ts +160 -46
- package/src/editor/plugins/create-with-event-listeners.ts +1 -0
- package/src/editor/plugins/createWithPatches.ts +10 -3
- package/src/editor/with-applying-behavior-actions.ts +8 -6
package/lib/selectors/index.d.ts
CHANGED
|
@@ -318,7 +318,7 @@ declare const editorMachine: StateMachine<
|
|
|
318
318
|
behaviors: Set<Behavior>
|
|
319
319
|
converters: Set<Converter>
|
|
320
320
|
keyGenerator: () => string
|
|
321
|
-
pendingEvents: Array<
|
|
321
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
322
322
|
schema: EditorSchema
|
|
323
323
|
initialReadOnly: boolean
|
|
324
324
|
maxBlocks: number | undefined
|
|
@@ -548,7 +548,7 @@ declare const editorMachine: StateMachine<
|
|
|
548
548
|
} & {
|
|
549
549
|
dataTransfer: DataTransfer
|
|
550
550
|
})
|
|
551
|
-
|
|
|
551
|
+
| InternalPatchEvent
|
|
552
552
|
| MutationEvent
|
|
553
553
|
| {
|
|
554
554
|
type: 'normalizing'
|
|
@@ -983,6 +983,7 @@ declare const editorMachine: StateMachine<
|
|
|
983
983
|
dataTransfer: DataTransfer
|
|
984
984
|
})
|
|
985
985
|
| PatchEvent
|
|
986
|
+
| InternalPatchEvent
|
|
986
987
|
| MutationEvent
|
|
987
988
|
| PatchesEvent
|
|
988
989
|
| {
|
|
@@ -1075,7 +1076,7 @@ declare const editorMachine: StateMachine<
|
|
|
1075
1076
|
behaviors: Set<Behavior>
|
|
1076
1077
|
converters: Set<Converter>
|
|
1077
1078
|
keyGenerator: () => string
|
|
1078
|
-
pendingEvents: Array<
|
|
1079
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1079
1080
|
schema: EditorSchema
|
|
1080
1081
|
initialReadOnly: boolean
|
|
1081
1082
|
maxBlocks: number | undefined
|
|
@@ -1305,7 +1306,7 @@ declare const editorMachine: StateMachine<
|
|
|
1305
1306
|
} & {
|
|
1306
1307
|
dataTransfer: DataTransfer
|
|
1307
1308
|
})
|
|
1308
|
-
|
|
|
1309
|
+
| InternalPatchEvent
|
|
1309
1310
|
| MutationEvent
|
|
1310
1311
|
| {
|
|
1311
1312
|
type: 'normalizing'
|
|
@@ -1662,7 +1663,7 @@ declare const editorMachine: StateMachine<
|
|
|
1662
1663
|
} & {
|
|
1663
1664
|
dataTransfer: DataTransfer
|
|
1664
1665
|
})
|
|
1665
|
-
|
|
|
1666
|
+
| InternalPatchEvent
|
|
1666
1667
|
| MutationEvent
|
|
1667
1668
|
| {
|
|
1668
1669
|
type: 'normalizing'
|
|
@@ -1809,7 +1810,7 @@ declare const editorMachine: StateMachine<
|
|
|
1809
1810
|
behaviors: Set<Behavior>
|
|
1810
1811
|
converters: Set<Converter>
|
|
1811
1812
|
keyGenerator: () => string
|
|
1812
|
-
pendingEvents: Array<
|
|
1813
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1813
1814
|
schema: EditorSchema
|
|
1814
1815
|
initialReadOnly: boolean
|
|
1815
1816
|
maxBlocks: number | undefined
|
|
@@ -2043,7 +2044,7 @@ declare const editorMachine: StateMachine<
|
|
|
2043
2044
|
} & {
|
|
2044
2045
|
dataTransfer: DataTransfer
|
|
2045
2046
|
})
|
|
2046
|
-
|
|
|
2047
|
+
| InternalPatchEvent
|
|
2047
2048
|
| MutationEvent
|
|
2048
2049
|
| {
|
|
2049
2050
|
type: 'normalizing'
|
|
@@ -2399,6 +2400,7 @@ declare const editorMachine: StateMachine<
|
|
|
2399
2400
|
dataTransfer: DataTransfer
|
|
2400
2401
|
})
|
|
2401
2402
|
| PatchEvent
|
|
2403
|
+
| InternalPatchEvent
|
|
2402
2404
|
| MutationEvent
|
|
2403
2405
|
| PatchesEvent
|
|
2404
2406
|
| {
|
|
@@ -2456,7 +2458,7 @@ declare const editorMachine: StateMachine<
|
|
|
2456
2458
|
behaviors: Set<Behavior>
|
|
2457
2459
|
converters: Set<Converter>
|
|
2458
2460
|
keyGenerator: () => string
|
|
2459
|
-
pendingEvents: Array<
|
|
2461
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2460
2462
|
schema: EditorSchema
|
|
2461
2463
|
initialReadOnly: boolean
|
|
2462
2464
|
maxBlocks: number | undefined
|
|
@@ -2689,7 +2691,7 @@ declare const editorMachine: StateMachine<
|
|
|
2689
2691
|
} & {
|
|
2690
2692
|
dataTransfer: DataTransfer
|
|
2691
2693
|
})
|
|
2692
|
-
|
|
|
2694
|
+
| InternalPatchEvent
|
|
2693
2695
|
| MutationEvent
|
|
2694
2696
|
| {
|
|
2695
2697
|
type: 'normalizing'
|
|
@@ -3045,6 +3047,7 @@ declare const editorMachine: StateMachine<
|
|
|
3045
3047
|
dataTransfer: DataTransfer
|
|
3046
3048
|
})
|
|
3047
3049
|
| PatchEvent
|
|
3050
|
+
| InternalPatchEvent
|
|
3048
3051
|
| MutationEvent
|
|
3049
3052
|
| PatchesEvent
|
|
3050
3053
|
| {
|
|
@@ -3102,7 +3105,7 @@ declare const editorMachine: StateMachine<
|
|
|
3102
3105
|
behaviors: Set<Behavior>
|
|
3103
3106
|
converters: Set<Converter>
|
|
3104
3107
|
keyGenerator: () => string
|
|
3105
|
-
pendingEvents: Array<
|
|
3108
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3106
3109
|
schema: EditorSchema
|
|
3107
3110
|
initialReadOnly: boolean
|
|
3108
3111
|
maxBlocks: number | undefined
|
|
@@ -3338,7 +3341,7 @@ declare const editorMachine: StateMachine<
|
|
|
3338
3341
|
} & {
|
|
3339
3342
|
dataTransfer: DataTransfer
|
|
3340
3343
|
})
|
|
3341
|
-
|
|
|
3344
|
+
| InternalPatchEvent
|
|
3342
3345
|
| MutationEvent
|
|
3343
3346
|
| {
|
|
3344
3347
|
type: 'normalizing'
|
|
@@ -3694,6 +3697,7 @@ declare const editorMachine: StateMachine<
|
|
|
3694
3697
|
dataTransfer: DataTransfer
|
|
3695
3698
|
})
|
|
3696
3699
|
| PatchEvent
|
|
3700
|
+
| InternalPatchEvent
|
|
3697
3701
|
| MutationEvent
|
|
3698
3702
|
| PatchesEvent
|
|
3699
3703
|
| {
|
|
@@ -3751,7 +3755,7 @@ declare const editorMachine: StateMachine<
|
|
|
3751
3755
|
behaviors: Set<Behavior>
|
|
3752
3756
|
converters: Set<Converter>
|
|
3753
3757
|
keyGenerator: () => string
|
|
3754
|
-
pendingEvents: Array<
|
|
3758
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3755
3759
|
schema: EditorSchema
|
|
3756
3760
|
initialReadOnly: boolean
|
|
3757
3761
|
maxBlocks: number | undefined
|
|
@@ -3986,7 +3990,7 @@ declare const editorMachine: StateMachine<
|
|
|
3986
3990
|
} & {
|
|
3987
3991
|
dataTransfer: DataTransfer
|
|
3988
3992
|
})
|
|
3989
|
-
|
|
|
3993
|
+
| InternalPatchEvent
|
|
3990
3994
|
| MutationEvent
|
|
3991
3995
|
| {
|
|
3992
3996
|
type: 'normalizing'
|
|
@@ -4342,6 +4346,7 @@ declare const editorMachine: StateMachine<
|
|
|
4342
4346
|
dataTransfer: DataTransfer
|
|
4343
4347
|
})
|
|
4344
4348
|
| PatchEvent
|
|
4349
|
+
| InternalPatchEvent
|
|
4345
4350
|
| MutationEvent
|
|
4346
4351
|
| PatchesEvent
|
|
4347
4352
|
| {
|
|
@@ -4399,7 +4404,7 @@ declare const editorMachine: StateMachine<
|
|
|
4399
4404
|
behaviors: Set<Behavior>
|
|
4400
4405
|
converters: Set<Converter>
|
|
4401
4406
|
keyGenerator: () => string
|
|
4402
|
-
pendingEvents: Array<
|
|
4407
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4403
4408
|
schema: EditorSchema
|
|
4404
4409
|
initialReadOnly: boolean
|
|
4405
4410
|
maxBlocks: number | undefined
|
|
@@ -4633,7 +4638,7 @@ declare const editorMachine: StateMachine<
|
|
|
4633
4638
|
} & {
|
|
4634
4639
|
dataTransfer: DataTransfer
|
|
4635
4640
|
})
|
|
4636
|
-
|
|
|
4641
|
+
| InternalPatchEvent
|
|
4637
4642
|
| MutationEvent
|
|
4638
4643
|
| {
|
|
4639
4644
|
type: 'normalizing'
|
|
@@ -4989,6 +4994,7 @@ declare const editorMachine: StateMachine<
|
|
|
4989
4994
|
dataTransfer: DataTransfer
|
|
4990
4995
|
})
|
|
4991
4996
|
| PatchEvent
|
|
4997
|
+
| InternalPatchEvent
|
|
4992
4998
|
| MutationEvent
|
|
4993
4999
|
| PatchesEvent
|
|
4994
5000
|
| {
|
|
@@ -5047,7 +5053,7 @@ declare const editorMachine: StateMachine<
|
|
|
5047
5053
|
behaviors: Set<Behavior>
|
|
5048
5054
|
converters: Set<Converter>
|
|
5049
5055
|
keyGenerator: () => string
|
|
5050
|
-
pendingEvents: Array<
|
|
5056
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5051
5057
|
schema: EditorSchema
|
|
5052
5058
|
initialReadOnly: boolean
|
|
5053
5059
|
maxBlocks: number | undefined
|
|
@@ -5281,7 +5287,7 @@ declare const editorMachine: StateMachine<
|
|
|
5281
5287
|
} & {
|
|
5282
5288
|
dataTransfer: DataTransfer
|
|
5283
5289
|
})
|
|
5284
|
-
|
|
|
5290
|
+
| InternalPatchEvent
|
|
5285
5291
|
| MutationEvent
|
|
5286
5292
|
| {
|
|
5287
5293
|
type: 'normalizing'
|
|
@@ -5420,7 +5426,7 @@ declare const editorMachine: StateMachine<
|
|
|
5420
5426
|
behaviors: Set<Behavior>
|
|
5421
5427
|
converters: Set<Converter>
|
|
5422
5428
|
keyGenerator: () => string
|
|
5423
|
-
pendingEvents: Array<
|
|
5429
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5424
5430
|
schema: EditorSchema
|
|
5425
5431
|
initialReadOnly: boolean
|
|
5426
5432
|
maxBlocks: number | undefined
|
|
@@ -5654,7 +5660,7 @@ declare const editorMachine: StateMachine<
|
|
|
5654
5660
|
} & {
|
|
5655
5661
|
dataTransfer: DataTransfer
|
|
5656
5662
|
})
|
|
5657
|
-
|
|
|
5663
|
+
| InternalPatchEvent
|
|
5658
5664
|
| MutationEvent
|
|
5659
5665
|
| {
|
|
5660
5666
|
type: 'normalizing'
|
|
@@ -6010,6 +6016,7 @@ declare const editorMachine: StateMachine<
|
|
|
6010
6016
|
dataTransfer: DataTransfer
|
|
6011
6017
|
})
|
|
6012
6018
|
| PatchEvent
|
|
6019
|
+
| InternalPatchEvent
|
|
6013
6020
|
| MutationEvent
|
|
6014
6021
|
| PatchesEvent
|
|
6015
6022
|
| {
|
|
@@ -6068,7 +6075,7 @@ declare const editorMachine: StateMachine<
|
|
|
6068
6075
|
behaviors: Set<Behavior>
|
|
6069
6076
|
converters: Set<Converter>
|
|
6070
6077
|
keyGenerator: () => string
|
|
6071
|
-
pendingEvents: Array<
|
|
6078
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6072
6079
|
schema: EditorSchema
|
|
6073
6080
|
initialReadOnly: boolean
|
|
6074
6081
|
maxBlocks: number | undefined
|
|
@@ -6302,7 +6309,7 @@ declare const editorMachine: StateMachine<
|
|
|
6302
6309
|
} & {
|
|
6303
6310
|
dataTransfer: DataTransfer
|
|
6304
6311
|
})
|
|
6305
|
-
|
|
|
6312
|
+
| InternalPatchEvent
|
|
6306
6313
|
| MutationEvent
|
|
6307
6314
|
| {
|
|
6308
6315
|
type: 'normalizing'
|
|
@@ -6658,6 +6665,7 @@ declare const editorMachine: StateMachine<
|
|
|
6658
6665
|
dataTransfer: DataTransfer
|
|
6659
6666
|
})
|
|
6660
6667
|
| PatchEvent
|
|
6668
|
+
| InternalPatchEvent
|
|
6661
6669
|
| MutationEvent
|
|
6662
6670
|
| PatchesEvent
|
|
6663
6671
|
| {
|
|
@@ -6715,7 +6723,7 @@ declare const editorMachine: StateMachine<
|
|
|
6715
6723
|
behaviors: Set<Behavior>
|
|
6716
6724
|
converters: Set<Converter>
|
|
6717
6725
|
keyGenerator: () => string
|
|
6718
|
-
pendingEvents: Array<
|
|
6726
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6719
6727
|
schema: EditorSchema
|
|
6720
6728
|
initialReadOnly: boolean
|
|
6721
6729
|
maxBlocks: number | undefined
|
|
@@ -6948,7 +6956,7 @@ declare const editorMachine: StateMachine<
|
|
|
6948
6956
|
} & {
|
|
6949
6957
|
dataTransfer: DataTransfer
|
|
6950
6958
|
})
|
|
6951
|
-
|
|
|
6959
|
+
| InternalPatchEvent
|
|
6952
6960
|
| MutationEvent
|
|
6953
6961
|
| {
|
|
6954
6962
|
type: 'normalizing'
|
|
@@ -7304,6 +7312,7 @@ declare const editorMachine: StateMachine<
|
|
|
7304
7312
|
dataTransfer: DataTransfer
|
|
7305
7313
|
})
|
|
7306
7314
|
| PatchEvent
|
|
7315
|
+
| InternalPatchEvent
|
|
7307
7316
|
| MutationEvent
|
|
7308
7317
|
| PatchesEvent
|
|
7309
7318
|
| {
|
|
@@ -7361,7 +7370,7 @@ declare const editorMachine: StateMachine<
|
|
|
7361
7370
|
behaviors: Set<Behavior>
|
|
7362
7371
|
converters: Set<Converter>
|
|
7363
7372
|
keyGenerator: () => string
|
|
7364
|
-
pendingEvents: Array<
|
|
7373
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7365
7374
|
schema: EditorSchema
|
|
7366
7375
|
initialReadOnly: boolean
|
|
7367
7376
|
maxBlocks: number | undefined
|
|
@@ -7595,7 +7604,7 @@ declare const editorMachine: StateMachine<
|
|
|
7595
7604
|
} & {
|
|
7596
7605
|
dataTransfer: DataTransfer
|
|
7597
7606
|
})
|
|
7598
|
-
|
|
|
7607
|
+
| InternalPatchEvent
|
|
7599
7608
|
| MutationEvent
|
|
7600
7609
|
| {
|
|
7601
7610
|
type: 'normalizing'
|
|
@@ -7951,6 +7960,7 @@ declare const editorMachine: StateMachine<
|
|
|
7951
7960
|
dataTransfer: DataTransfer
|
|
7952
7961
|
})
|
|
7953
7962
|
| PatchEvent
|
|
7963
|
+
| InternalPatchEvent
|
|
7954
7964
|
| MutationEvent
|
|
7955
7965
|
| PatchesEvent
|
|
7956
7966
|
| {
|
|
@@ -8014,7 +8024,7 @@ declare const editorMachine: StateMachine<
|
|
|
8014
8024
|
behaviors: Set<Behavior>
|
|
8015
8025
|
converters: Set<Converter>
|
|
8016
8026
|
keyGenerator: () => string
|
|
8017
|
-
pendingEvents: Array<
|
|
8027
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8018
8028
|
schema: EditorSchema
|
|
8019
8029
|
initialReadOnly: boolean
|
|
8020
8030
|
maxBlocks: number | undefined
|
|
@@ -8245,7 +8255,7 @@ declare const editorMachine: StateMachine<
|
|
|
8245
8255
|
} & {
|
|
8246
8256
|
dataTransfer: DataTransfer
|
|
8247
8257
|
})
|
|
8248
|
-
|
|
|
8258
|
+
| InternalPatchEvent
|
|
8249
8259
|
| MutationEvent
|
|
8250
8260
|
| {
|
|
8251
8261
|
type: 'normalizing'
|
|
@@ -8601,6 +8611,7 @@ declare const editorMachine: StateMachine<
|
|
|
8601
8611
|
dataTransfer: DataTransfer
|
|
8602
8612
|
})
|
|
8603
8613
|
| PatchEvent
|
|
8614
|
+
| InternalPatchEvent
|
|
8604
8615
|
| MutationEvent
|
|
8605
8616
|
| PatchesEvent
|
|
8606
8617
|
| {
|
|
@@ -8661,7 +8672,7 @@ declare const editorMachine: StateMachine<
|
|
|
8661
8672
|
behaviors: Set<Behavior>
|
|
8662
8673
|
converters: Set<Converter>
|
|
8663
8674
|
keyGenerator: () => string
|
|
8664
|
-
pendingEvents: Array<
|
|
8675
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8665
8676
|
schema: EditorSchema
|
|
8666
8677
|
initialReadOnly: boolean
|
|
8667
8678
|
maxBlocks: number | undefined
|
|
@@ -8895,7 +8906,7 @@ declare const editorMachine: StateMachine<
|
|
|
8895
8906
|
} & {
|
|
8896
8907
|
dataTransfer: DataTransfer
|
|
8897
8908
|
})
|
|
8898
|
-
|
|
|
8909
|
+
| InternalPatchEvent
|
|
8899
8910
|
| MutationEvent
|
|
8900
8911
|
| {
|
|
8901
8912
|
type: 'normalizing'
|
|
@@ -9039,7 +9050,7 @@ declare const editorMachine: StateMachine<
|
|
|
9039
9050
|
behaviors: Set<Behavior>
|
|
9040
9051
|
converters: Set<Converter>
|
|
9041
9052
|
keyGenerator: () => string
|
|
9042
|
-
pendingEvents: Array<
|
|
9053
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9043
9054
|
schema: EditorSchema
|
|
9044
9055
|
initialReadOnly: boolean
|
|
9045
9056
|
maxBlocks: number | undefined
|
|
@@ -9273,7 +9284,7 @@ declare const editorMachine: StateMachine<
|
|
|
9273
9284
|
} & {
|
|
9274
9285
|
dataTransfer: DataTransfer
|
|
9275
9286
|
})
|
|
9276
|
-
|
|
|
9287
|
+
| InternalPatchEvent
|
|
9277
9288
|
| MutationEvent
|
|
9278
9289
|
| {
|
|
9279
9290
|
type: 'normalizing'
|
|
@@ -9414,7 +9425,7 @@ declare const editorMachine: StateMachine<
|
|
|
9414
9425
|
behaviors: Set<Behavior>
|
|
9415
9426
|
converters: Set<Converter>
|
|
9416
9427
|
keyGenerator: () => string
|
|
9417
|
-
pendingEvents: Array<
|
|
9428
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9418
9429
|
schema: EditorSchema
|
|
9419
9430
|
initialReadOnly: boolean
|
|
9420
9431
|
maxBlocks: number | undefined
|
|
@@ -9648,7 +9659,7 @@ declare const editorMachine: StateMachine<
|
|
|
9648
9659
|
} & {
|
|
9649
9660
|
dataTransfer: DataTransfer
|
|
9650
9661
|
})
|
|
9651
|
-
|
|
|
9662
|
+
| InternalPatchEvent
|
|
9652
9663
|
| MutationEvent
|
|
9653
9664
|
| {
|
|
9654
9665
|
type: 'normalizing'
|
|
@@ -9801,7 +9812,7 @@ declare const editorMachine: StateMachine<
|
|
|
9801
9812
|
behaviors: Set<Behavior>
|
|
9802
9813
|
converters: Set<Converter>
|
|
9803
9814
|
keyGenerator: () => string
|
|
9804
|
-
pendingEvents: Array<
|
|
9815
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9805
9816
|
schema: EditorSchema
|
|
9806
9817
|
initialReadOnly: boolean
|
|
9807
9818
|
maxBlocks: number | undefined
|
|
@@ -9833,7 +9844,9 @@ declare const editorMachine: StateMachine<
|
|
|
9833
9844
|
behaviors: Set<Behavior>
|
|
9834
9845
|
converters: Set<Converter>
|
|
9835
9846
|
keyGenerator: () => string
|
|
9836
|
-
pendingEvents: Array<
|
|
9847
|
+
pendingEvents: Array<
|
|
9848
|
+
InternalPatchEvent | MutationEvent
|
|
9849
|
+
>
|
|
9837
9850
|
schema: EditorSchema
|
|
9838
9851
|
initialReadOnly: boolean
|
|
9839
9852
|
maxBlocks: number | undefined
|
|
@@ -9861,7 +9874,7 @@ declare const editorMachine: StateMachine<
|
|
|
9861
9874
|
behaviors: Set<Behavior>
|
|
9862
9875
|
converters: Set<Converter>
|
|
9863
9876
|
keyGenerator: () => string
|
|
9864
|
-
pendingEvents: Array<
|
|
9877
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9865
9878
|
schema: EditorSchema
|
|
9866
9879
|
initialReadOnly: boolean
|
|
9867
9880
|
maxBlocks: number | undefined
|
|
@@ -9890,7 +9903,7 @@ declare const editorMachine: StateMachine<
|
|
|
9890
9903
|
behaviors: Set<Behavior>
|
|
9891
9904
|
converters: Set<Converter>
|
|
9892
9905
|
keyGenerator: () => string
|
|
9893
|
-
pendingEvents: Array<
|
|
9906
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9894
9907
|
schema: EditorSchema
|
|
9895
9908
|
initialReadOnly: boolean
|
|
9896
9909
|
maxBlocks: number | undefined
|
|
@@ -9917,7 +9930,7 @@ declare const editorMachine: StateMachine<
|
|
|
9917
9930
|
behaviors: Set<Behavior>
|
|
9918
9931
|
converters: Set<Converter>
|
|
9919
9932
|
keyGenerator: () => string
|
|
9920
|
-
pendingEvents: Array<
|
|
9933
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9921
9934
|
schema: EditorSchema
|
|
9922
9935
|
initialReadOnly: boolean
|
|
9923
9936
|
maxBlocks: number | undefined
|
|
@@ -10171,7 +10184,7 @@ declare const editorMachine: StateMachine<
|
|
|
10171
10184
|
} & {
|
|
10172
10185
|
dataTransfer: DataTransfer
|
|
10173
10186
|
})
|
|
10174
|
-
|
|
|
10187
|
+
| InternalPatchEvent
|
|
10175
10188
|
| MutationEvent
|
|
10176
10189
|
| {
|
|
10177
10190
|
type: 'normalizing'
|
|
@@ -10529,6 +10542,7 @@ declare const editorMachine: StateMachine<
|
|
|
10529
10542
|
dataTransfer: DataTransfer
|
|
10530
10543
|
})
|
|
10531
10544
|
| PatchEvent
|
|
10545
|
+
| InternalPatchEvent
|
|
10532
10546
|
| MutationEvent
|
|
10533
10547
|
| PatchesEvent
|
|
10534
10548
|
| {
|
|
@@ -10586,7 +10600,7 @@ declare const editorMachine: StateMachine<
|
|
|
10586
10600
|
behaviors: Set<Behavior>
|
|
10587
10601
|
converters: Set<Converter>
|
|
10588
10602
|
keyGenerator: () => string
|
|
10589
|
-
pendingEvents: Array<
|
|
10603
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10590
10604
|
schema: EditorSchema
|
|
10591
10605
|
initialReadOnly: boolean
|
|
10592
10606
|
maxBlocks: number | undefined
|
|
@@ -10826,7 +10840,7 @@ declare const editorMachine: StateMachine<
|
|
|
10826
10840
|
} & {
|
|
10827
10841
|
dataTransfer: DataTransfer
|
|
10828
10842
|
})
|
|
10829
|
-
|
|
|
10843
|
+
| InternalPatchEvent
|
|
10830
10844
|
| MutationEvent
|
|
10831
10845
|
| {
|
|
10832
10846
|
type: 'normalizing'
|
|
@@ -11184,6 +11198,7 @@ declare const editorMachine: StateMachine<
|
|
|
11184
11198
|
dataTransfer: DataTransfer
|
|
11185
11199
|
})
|
|
11186
11200
|
| PatchEvent
|
|
11201
|
+
| InternalPatchEvent
|
|
11187
11202
|
| MutationEvent
|
|
11188
11203
|
| PatchesEvent
|
|
11189
11204
|
| {
|
|
@@ -11241,7 +11256,7 @@ declare const editorMachine: StateMachine<
|
|
|
11241
11256
|
behaviors: Set<Behavior>
|
|
11242
11257
|
converters: Set<Converter>
|
|
11243
11258
|
keyGenerator: () => string
|
|
11244
|
-
pendingEvents: Array<
|
|
11259
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11245
11260
|
schema: EditorSchema
|
|
11246
11261
|
initialReadOnly: boolean
|
|
11247
11262
|
maxBlocks: number | undefined
|
|
@@ -11474,7 +11489,7 @@ declare const editorMachine: StateMachine<
|
|
|
11474
11489
|
} & {
|
|
11475
11490
|
dataTransfer: DataTransfer
|
|
11476
11491
|
})
|
|
11477
|
-
|
|
|
11492
|
+
| InternalPatchEvent
|
|
11478
11493
|
| MutationEvent
|
|
11479
11494
|
| {
|
|
11480
11495
|
type: 'normalizing'
|
|
@@ -11832,6 +11847,7 @@ declare const editorMachine: StateMachine<
|
|
|
11832
11847
|
dataTransfer: DataTransfer
|
|
11833
11848
|
})
|
|
11834
11849
|
| PatchEvent
|
|
11850
|
+
| InternalPatchEvent
|
|
11835
11851
|
| MutationEvent
|
|
11836
11852
|
| PatchesEvent
|
|
11837
11853
|
| {
|
|
@@ -11889,7 +11905,7 @@ declare const editorMachine: StateMachine<
|
|
|
11889
11905
|
behaviors: Set<Behavior>
|
|
11890
11906
|
converters: Set<Converter>
|
|
11891
11907
|
keyGenerator: () => string
|
|
11892
|
-
pendingEvents: Array<
|
|
11908
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11893
11909
|
schema: EditorSchema
|
|
11894
11910
|
initialReadOnly: boolean
|
|
11895
11911
|
maxBlocks: number | undefined
|
|
@@ -12122,7 +12138,7 @@ declare const editorMachine: StateMachine<
|
|
|
12122
12138
|
} & {
|
|
12123
12139
|
dataTransfer: DataTransfer
|
|
12124
12140
|
})
|
|
12125
|
-
|
|
|
12141
|
+
| InternalPatchEvent
|
|
12126
12142
|
| MutationEvent
|
|
12127
12143
|
| {
|
|
12128
12144
|
type: 'normalizing'
|
|
@@ -12480,6 +12496,7 @@ declare const editorMachine: StateMachine<
|
|
|
12480
12496
|
dataTransfer: DataTransfer
|
|
12481
12497
|
})
|
|
12482
12498
|
| PatchEvent
|
|
12499
|
+
| InternalPatchEvent
|
|
12483
12500
|
| MutationEvent
|
|
12484
12501
|
| PatchesEvent
|
|
12485
12502
|
| {
|
|
@@ -12537,7 +12554,7 @@ declare const editorMachine: StateMachine<
|
|
|
12537
12554
|
behaviors: Set<Behavior>
|
|
12538
12555
|
converters: Set<Converter>
|
|
12539
12556
|
keyGenerator: () => string
|
|
12540
|
-
pendingEvents: Array<
|
|
12557
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12541
12558
|
schema: EditorSchema
|
|
12542
12559
|
initialReadOnly: boolean
|
|
12543
12560
|
maxBlocks: number | undefined
|
|
@@ -12783,7 +12800,7 @@ declare const editorMachine: StateMachine<
|
|
|
12783
12800
|
} & {
|
|
12784
12801
|
dataTransfer: DataTransfer
|
|
12785
12802
|
})
|
|
12786
|
-
|
|
|
12803
|
+
| InternalPatchEvent
|
|
12787
12804
|
| MutationEvent
|
|
12788
12805
|
| {
|
|
12789
12806
|
type: 'normalizing'
|
|
@@ -13141,6 +13158,7 @@ declare const editorMachine: StateMachine<
|
|
|
13141
13158
|
dataTransfer: DataTransfer
|
|
13142
13159
|
})
|
|
13143
13160
|
| PatchEvent
|
|
13161
|
+
| InternalPatchEvent
|
|
13144
13162
|
| MutationEvent
|
|
13145
13163
|
| PatchesEvent
|
|
13146
13164
|
| {
|
|
@@ -13198,7 +13216,7 @@ declare const editorMachine: StateMachine<
|
|
|
13198
13216
|
behaviors: Set<Behavior>
|
|
13199
13217
|
converters: Set<Converter>
|
|
13200
13218
|
keyGenerator: () => string
|
|
13201
|
-
pendingEvents: Array<
|
|
13219
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13202
13220
|
schema: EditorSchema
|
|
13203
13221
|
initialReadOnly: boolean
|
|
13204
13222
|
maxBlocks: number | undefined
|
|
@@ -13445,7 +13463,7 @@ declare const editorMachine: StateMachine<
|
|
|
13445
13463
|
} & {
|
|
13446
13464
|
dataTransfer: DataTransfer
|
|
13447
13465
|
})
|
|
13448
|
-
|
|
|
13466
|
+
| InternalPatchEvent
|
|
13449
13467
|
| MutationEvent
|
|
13450
13468
|
| {
|
|
13451
13469
|
type: 'normalizing'
|
|
@@ -13803,6 +13821,7 @@ declare const editorMachine: StateMachine<
|
|
|
13803
13821
|
dataTransfer: DataTransfer
|
|
13804
13822
|
})
|
|
13805
13823
|
| PatchEvent
|
|
13824
|
+
| InternalPatchEvent
|
|
13806
13825
|
| MutationEvent
|
|
13807
13826
|
| PatchesEvent
|
|
13808
13827
|
| {
|
|
@@ -13860,7 +13879,7 @@ declare const editorMachine: StateMachine<
|
|
|
13860
13879
|
behaviors: Set<Behavior>
|
|
13861
13880
|
converters: Set<Converter>
|
|
13862
13881
|
keyGenerator: () => string
|
|
13863
|
-
pendingEvents: Array<
|
|
13882
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13864
13883
|
schema: EditorSchema
|
|
13865
13884
|
initialReadOnly: boolean
|
|
13866
13885
|
maxBlocks: number | undefined
|
|
@@ -14093,7 +14112,7 @@ declare const editorMachine: StateMachine<
|
|
|
14093
14112
|
} & {
|
|
14094
14113
|
dataTransfer: DataTransfer
|
|
14095
14114
|
})
|
|
14096
|
-
|
|
|
14115
|
+
| InternalPatchEvent
|
|
14097
14116
|
| MutationEvent
|
|
14098
14117
|
| {
|
|
14099
14118
|
type: 'normalizing'
|
|
@@ -14451,6 +14470,7 @@ declare const editorMachine: StateMachine<
|
|
|
14451
14470
|
dataTransfer: DataTransfer
|
|
14452
14471
|
})
|
|
14453
14472
|
| PatchEvent
|
|
14473
|
+
| InternalPatchEvent
|
|
14454
14474
|
| MutationEvent
|
|
14455
14475
|
| PatchesEvent
|
|
14456
14476
|
| {
|
|
@@ -14508,7 +14528,7 @@ declare const editorMachine: StateMachine<
|
|
|
14508
14528
|
behaviors: Set<Behavior>
|
|
14509
14529
|
converters: Set<Converter>
|
|
14510
14530
|
keyGenerator: () => string
|
|
14511
|
-
pendingEvents: Array<
|
|
14531
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14512
14532
|
schema: EditorSchema
|
|
14513
14533
|
initialReadOnly: boolean
|
|
14514
14534
|
maxBlocks: number | undefined
|
|
@@ -14744,7 +14764,7 @@ declare const editorMachine: StateMachine<
|
|
|
14744
14764
|
} & {
|
|
14745
14765
|
dataTransfer: DataTransfer
|
|
14746
14766
|
})
|
|
14747
|
-
|
|
|
14767
|
+
| InternalPatchEvent
|
|
14748
14768
|
| MutationEvent
|
|
14749
14769
|
| {
|
|
14750
14770
|
type: 'normalizing'
|
|
@@ -15102,6 +15122,7 @@ declare const editorMachine: StateMachine<
|
|
|
15102
15122
|
dataTransfer: DataTransfer
|
|
15103
15123
|
})
|
|
15104
15124
|
| PatchEvent
|
|
15125
|
+
| InternalPatchEvent
|
|
15105
15126
|
| MutationEvent
|
|
15106
15127
|
| PatchesEvent
|
|
15107
15128
|
| {
|
|
@@ -15159,7 +15180,7 @@ declare const editorMachine: StateMachine<
|
|
|
15159
15180
|
behaviors: Set<Behavior>
|
|
15160
15181
|
converters: Set<Converter>
|
|
15161
15182
|
keyGenerator: () => string
|
|
15162
|
-
pendingEvents: Array<
|
|
15183
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15163
15184
|
schema: EditorSchema
|
|
15164
15185
|
initialReadOnly: boolean
|
|
15165
15186
|
maxBlocks: number | undefined
|
|
@@ -15446,7 +15467,7 @@ declare const editorMachine: StateMachine<
|
|
|
15446
15467
|
} & {
|
|
15447
15468
|
dataTransfer: DataTransfer
|
|
15448
15469
|
})
|
|
15449
|
-
|
|
|
15470
|
+
| InternalPatchEvent
|
|
15450
15471
|
| MutationEvent
|
|
15451
15472
|
| {
|
|
15452
15473
|
type: 'normalizing'
|
|
@@ -15804,6 +15825,7 @@ declare const editorMachine: StateMachine<
|
|
|
15804
15825
|
dataTransfer: DataTransfer
|
|
15805
15826
|
})
|
|
15806
15827
|
| PatchEvent
|
|
15828
|
+
| InternalPatchEvent
|
|
15807
15829
|
| MutationEvent
|
|
15808
15830
|
| PatchesEvent
|
|
15809
15831
|
| {
|
|
@@ -15861,7 +15883,7 @@ declare const editorMachine: StateMachine<
|
|
|
15861
15883
|
behaviors: Set<Behavior>
|
|
15862
15884
|
converters: Set<Converter>
|
|
15863
15885
|
keyGenerator: () => string
|
|
15864
|
-
pendingEvents: Array<
|
|
15886
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15865
15887
|
schema: EditorSchema
|
|
15866
15888
|
initialReadOnly: boolean
|
|
15867
15889
|
maxBlocks: number | undefined
|
|
@@ -16103,7 +16125,7 @@ declare const editorMachine: StateMachine<
|
|
|
16103
16125
|
} & {
|
|
16104
16126
|
dataTransfer: DataTransfer
|
|
16105
16127
|
})
|
|
16106
|
-
|
|
|
16128
|
+
| InternalPatchEvent
|
|
16107
16129
|
| MutationEvent
|
|
16108
16130
|
| {
|
|
16109
16131
|
type: 'normalizing'
|
|
@@ -16461,6 +16483,7 @@ declare const editorMachine: StateMachine<
|
|
|
16461
16483
|
dataTransfer: DataTransfer
|
|
16462
16484
|
})
|
|
16463
16485
|
| PatchEvent
|
|
16486
|
+
| InternalPatchEvent
|
|
16464
16487
|
| MutationEvent
|
|
16465
16488
|
| PatchesEvent
|
|
16466
16489
|
| {
|
|
@@ -16518,7 +16541,7 @@ declare const editorMachine: StateMachine<
|
|
|
16518
16541
|
behaviors: Set<Behavior>
|
|
16519
16542
|
converters: Set<Converter>
|
|
16520
16543
|
keyGenerator: () => string
|
|
16521
|
-
pendingEvents: Array<
|
|
16544
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16522
16545
|
schema: EditorSchema
|
|
16523
16546
|
initialReadOnly: boolean
|
|
16524
16547
|
maxBlocks: number | undefined
|
|
@@ -16761,7 +16784,7 @@ declare const editorMachine: StateMachine<
|
|
|
16761
16784
|
} & {
|
|
16762
16785
|
dataTransfer: DataTransfer
|
|
16763
16786
|
})
|
|
16764
|
-
|
|
|
16787
|
+
| InternalPatchEvent
|
|
16765
16788
|
| MutationEvent
|
|
16766
16789
|
| {
|
|
16767
16790
|
type: 'normalizing'
|
|
@@ -17119,6 +17142,7 @@ declare const editorMachine: StateMachine<
|
|
|
17119
17142
|
dataTransfer: DataTransfer
|
|
17120
17143
|
})
|
|
17121
17144
|
| PatchEvent
|
|
17145
|
+
| InternalPatchEvent
|
|
17122
17146
|
| MutationEvent
|
|
17123
17147
|
| PatchesEvent
|
|
17124
17148
|
| {
|
|
@@ -17176,7 +17200,7 @@ declare const editorMachine: StateMachine<
|
|
|
17176
17200
|
behaviors: Set<Behavior>
|
|
17177
17201
|
converters: Set<Converter>
|
|
17178
17202
|
keyGenerator: () => string
|
|
17179
|
-
pendingEvents: Array<
|
|
17203
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17180
17204
|
schema: EditorSchema
|
|
17181
17205
|
initialReadOnly: boolean
|
|
17182
17206
|
maxBlocks: number | undefined
|
|
@@ -17410,7 +17434,7 @@ declare const editorMachine: StateMachine<
|
|
|
17410
17434
|
} & {
|
|
17411
17435
|
dataTransfer: DataTransfer
|
|
17412
17436
|
})
|
|
17413
|
-
|
|
|
17437
|
+
| InternalPatchEvent
|
|
17414
17438
|
| MutationEvent
|
|
17415
17439
|
| {
|
|
17416
17440
|
type: 'normalizing'
|
|
@@ -17768,6 +17792,7 @@ declare const editorMachine: StateMachine<
|
|
|
17768
17792
|
dataTransfer: DataTransfer
|
|
17769
17793
|
})
|
|
17770
17794
|
| PatchEvent
|
|
17795
|
+
| InternalPatchEvent
|
|
17771
17796
|
| MutationEvent
|
|
17772
17797
|
| PatchesEvent
|
|
17773
17798
|
| {
|
|
@@ -17825,7 +17850,7 @@ declare const editorMachine: StateMachine<
|
|
|
17825
17850
|
behaviors: Set<Behavior>
|
|
17826
17851
|
converters: Set<Converter>
|
|
17827
17852
|
keyGenerator: () => string
|
|
17828
|
-
pendingEvents: Array<
|
|
17853
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17829
17854
|
schema: EditorSchema
|
|
17830
17855
|
initialReadOnly: boolean
|
|
17831
17856
|
maxBlocks: number | undefined
|
|
@@ -18061,7 +18086,7 @@ declare const editorMachine: StateMachine<
|
|
|
18061
18086
|
} & {
|
|
18062
18087
|
dataTransfer: DataTransfer
|
|
18063
18088
|
})
|
|
18064
|
-
|
|
|
18089
|
+
| InternalPatchEvent
|
|
18065
18090
|
| MutationEvent
|
|
18066
18091
|
| {
|
|
18067
18092
|
type: 'normalizing'
|
|
@@ -18419,6 +18444,7 @@ declare const editorMachine: StateMachine<
|
|
|
18419
18444
|
dataTransfer: DataTransfer
|
|
18420
18445
|
})
|
|
18421
18446
|
| PatchEvent
|
|
18447
|
+
| InternalPatchEvent
|
|
18422
18448
|
| MutationEvent
|
|
18423
18449
|
| PatchesEvent
|
|
18424
18450
|
| {
|
|
@@ -18476,7 +18502,7 @@ declare const editorMachine: StateMachine<
|
|
|
18476
18502
|
behaviors: Set<Behavior>
|
|
18477
18503
|
converters: Set<Converter>
|
|
18478
18504
|
keyGenerator: () => string
|
|
18479
|
-
pendingEvents: Array<
|
|
18505
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18480
18506
|
schema: EditorSchema
|
|
18481
18507
|
initialReadOnly: boolean
|
|
18482
18508
|
maxBlocks: number | undefined
|
|
@@ -18718,7 +18744,7 @@ declare const editorMachine: StateMachine<
|
|
|
18718
18744
|
} & {
|
|
18719
18745
|
dataTransfer: DataTransfer
|
|
18720
18746
|
})
|
|
18721
|
-
|
|
|
18747
|
+
| InternalPatchEvent
|
|
18722
18748
|
| MutationEvent
|
|
18723
18749
|
| {
|
|
18724
18750
|
type: 'normalizing'
|
|
@@ -19076,6 +19102,7 @@ declare const editorMachine: StateMachine<
|
|
|
19076
19102
|
dataTransfer: DataTransfer
|
|
19077
19103
|
})
|
|
19078
19104
|
| PatchEvent
|
|
19105
|
+
| InternalPatchEvent
|
|
19079
19106
|
| MutationEvent
|
|
19080
19107
|
| PatchesEvent
|
|
19081
19108
|
| {
|
|
@@ -19171,7 +19198,7 @@ declare const editorMachine: StateMachine<
|
|
|
19171
19198
|
readonly 'setting up': {
|
|
19172
19199
|
readonly exit: readonly ['emit ready']
|
|
19173
19200
|
readonly on: {
|
|
19174
|
-
readonly 'patch': {
|
|
19201
|
+
readonly 'internal.patch': {
|
|
19175
19202
|
readonly actions: 'defer event'
|
|
19176
19203
|
}
|
|
19177
19204
|
readonly 'mutation': {
|
|
@@ -19187,14 +19214,14 @@ declare const editorMachine: StateMachine<
|
|
|
19187
19214
|
readonly states: {
|
|
19188
19215
|
readonly idle: {
|
|
19189
19216
|
readonly on: {
|
|
19190
|
-
readonly normalizing: {
|
|
19217
|
+
readonly 'normalizing': {
|
|
19191
19218
|
readonly target: 'normalizing'
|
|
19192
19219
|
}
|
|
19193
|
-
readonly patch: {
|
|
19220
|
+
readonly 'internal.patch': {
|
|
19194
19221
|
readonly actions: 'defer event'
|
|
19195
19222
|
readonly target: '#editor.setup.dirty'
|
|
19196
19223
|
}
|
|
19197
|
-
readonly mutation: {
|
|
19224
|
+
readonly 'mutation': {
|
|
19198
19225
|
readonly actions: 'defer event'
|
|
19199
19226
|
readonly target: '#editor.setup.dirty'
|
|
19200
19227
|
}
|
|
@@ -19205,7 +19232,7 @@ declare const editorMachine: StateMachine<
|
|
|
19205
19232
|
readonly 'done normalizing': {
|
|
19206
19233
|
readonly target: 'idle'
|
|
19207
19234
|
}
|
|
19208
|
-
readonly 'patch': {
|
|
19235
|
+
readonly 'internal.patch': {
|
|
19209
19236
|
readonly actions: 'defer event'
|
|
19210
19237
|
}
|
|
19211
19238
|
readonly 'mutation': {
|
|
@@ -19221,10 +19248,10 @@ declare const editorMachine: StateMachine<
|
|
|
19221
19248
|
'clear pending events',
|
|
19222
19249
|
]
|
|
19223
19250
|
readonly on: {
|
|
19224
|
-
readonly patch: {
|
|
19251
|
+
readonly 'internal.patch': {
|
|
19225
19252
|
readonly actions: 'emit patch event'
|
|
19226
19253
|
}
|
|
19227
|
-
readonly mutation: {
|
|
19254
|
+
readonly 'mutation': {
|
|
19228
19255
|
readonly actions: 'emit mutation event'
|
|
19229
19256
|
}
|
|
19230
19257
|
}
|
|
@@ -19590,6 +19617,11 @@ declare type HistoryItem = {
|
|
|
19590
19617
|
timestamp: Date
|
|
19591
19618
|
}
|
|
19592
19619
|
|
|
19620
|
+
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
19621
|
+
actionId?: string
|
|
19622
|
+
value: Array<PortableTextBlock>
|
|
19623
|
+
}
|
|
19624
|
+
|
|
19593
19625
|
/**
|
|
19594
19626
|
* The editor has invalid data in the value that can be resolved by the user
|
|
19595
19627
|
* @beta */
|
|
@@ -19701,6 +19733,19 @@ declare type MutationEvent = {
|
|
|
19701
19733
|
value: Array<PortableTextBlock> | undefined
|
|
19702
19734
|
}
|
|
19703
19735
|
|
|
19736
|
+
declare type NamespaceEvent<
|
|
19737
|
+
TEvent,
|
|
19738
|
+
TNamespace extends string,
|
|
19739
|
+
> = TEvent extends {
|
|
19740
|
+
type: infer TEventType
|
|
19741
|
+
}
|
|
19742
|
+
? {
|
|
19743
|
+
[K in keyof TEvent]: K extends 'type'
|
|
19744
|
+
? `${TNamespace}.${TEventType & string}`
|
|
19745
|
+
: TEvent[K]
|
|
19746
|
+
}
|
|
19747
|
+
: never
|
|
19748
|
+
|
|
19704
19749
|
/**
|
|
19705
19750
|
* @beta
|
|
19706
19751
|
*/
|