@portabletext/editor 1.35.3 → 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.d.cts +117 -72
- package/lib/plugins/index.d.ts +117 -72
- 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 +1 -1
- 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
|
@@ -966,7 +966,7 @@ declare const editorMachine: StateMachine<
|
|
|
966
966
|
behaviors: Set<Behavior>
|
|
967
967
|
converters: Set<Converter>
|
|
968
968
|
keyGenerator: () => string
|
|
969
|
-
pendingEvents: Array<
|
|
969
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
970
970
|
schema: EditorSchema
|
|
971
971
|
initialReadOnly: boolean
|
|
972
972
|
maxBlocks: number | undefined
|
|
@@ -1196,7 +1196,7 @@ declare const editorMachine: StateMachine<
|
|
|
1196
1196
|
} & {
|
|
1197
1197
|
dataTransfer: DataTransfer
|
|
1198
1198
|
})
|
|
1199
|
-
|
|
|
1199
|
+
| InternalPatchEvent
|
|
1200
1200
|
| MutationEvent
|
|
1201
1201
|
| {
|
|
1202
1202
|
type: 'normalizing'
|
|
@@ -1631,6 +1631,7 @@ declare const editorMachine: StateMachine<
|
|
|
1631
1631
|
dataTransfer: DataTransfer
|
|
1632
1632
|
})
|
|
1633
1633
|
| PatchEvent
|
|
1634
|
+
| InternalPatchEvent
|
|
1634
1635
|
| MutationEvent
|
|
1635
1636
|
| PatchesEvent
|
|
1636
1637
|
| {
|
|
@@ -1723,7 +1724,7 @@ declare const editorMachine: StateMachine<
|
|
|
1723
1724
|
behaviors: Set<Behavior>
|
|
1724
1725
|
converters: Set<Converter>
|
|
1725
1726
|
keyGenerator: () => string
|
|
1726
|
-
pendingEvents: Array<
|
|
1727
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1727
1728
|
schema: EditorSchema
|
|
1728
1729
|
initialReadOnly: boolean
|
|
1729
1730
|
maxBlocks: number | undefined
|
|
@@ -1953,7 +1954,7 @@ declare const editorMachine: StateMachine<
|
|
|
1953
1954
|
} & {
|
|
1954
1955
|
dataTransfer: DataTransfer
|
|
1955
1956
|
})
|
|
1956
|
-
|
|
|
1957
|
+
| InternalPatchEvent
|
|
1957
1958
|
| MutationEvent
|
|
1958
1959
|
| {
|
|
1959
1960
|
type: 'normalizing'
|
|
@@ -2310,7 +2311,7 @@ declare const editorMachine: StateMachine<
|
|
|
2310
2311
|
} & {
|
|
2311
2312
|
dataTransfer: DataTransfer
|
|
2312
2313
|
})
|
|
2313
|
-
|
|
|
2314
|
+
| InternalPatchEvent
|
|
2314
2315
|
| MutationEvent
|
|
2315
2316
|
| {
|
|
2316
2317
|
type: 'normalizing'
|
|
@@ -2457,7 +2458,7 @@ declare const editorMachine: StateMachine<
|
|
|
2457
2458
|
behaviors: Set<Behavior>
|
|
2458
2459
|
converters: Set<Converter>
|
|
2459
2460
|
keyGenerator: () => string
|
|
2460
|
-
pendingEvents: Array<
|
|
2461
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2461
2462
|
schema: EditorSchema
|
|
2462
2463
|
initialReadOnly: boolean
|
|
2463
2464
|
maxBlocks: number | undefined
|
|
@@ -2691,7 +2692,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2692
|
} & {
|
|
2692
2693
|
dataTransfer: DataTransfer
|
|
2693
2694
|
})
|
|
2694
|
-
|
|
|
2695
|
+
| InternalPatchEvent
|
|
2695
2696
|
| MutationEvent
|
|
2696
2697
|
| {
|
|
2697
2698
|
type: 'normalizing'
|
|
@@ -3047,6 +3048,7 @@ declare const editorMachine: StateMachine<
|
|
|
3047
3048
|
dataTransfer: DataTransfer
|
|
3048
3049
|
})
|
|
3049
3050
|
| PatchEvent
|
|
3051
|
+
| InternalPatchEvent
|
|
3050
3052
|
| MutationEvent
|
|
3051
3053
|
| PatchesEvent
|
|
3052
3054
|
| {
|
|
@@ -3104,7 +3106,7 @@ declare const editorMachine: StateMachine<
|
|
|
3104
3106
|
behaviors: Set<Behavior>
|
|
3105
3107
|
converters: Set<Converter>
|
|
3106
3108
|
keyGenerator: () => string
|
|
3107
|
-
pendingEvents: Array<
|
|
3109
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3108
3110
|
schema: EditorSchema
|
|
3109
3111
|
initialReadOnly: boolean
|
|
3110
3112
|
maxBlocks: number | undefined
|
|
@@ -3337,7 +3339,7 @@ declare const editorMachine: StateMachine<
|
|
|
3337
3339
|
} & {
|
|
3338
3340
|
dataTransfer: DataTransfer
|
|
3339
3341
|
})
|
|
3340
|
-
|
|
|
3342
|
+
| InternalPatchEvent
|
|
3341
3343
|
| MutationEvent
|
|
3342
3344
|
| {
|
|
3343
3345
|
type: 'normalizing'
|
|
@@ -3693,6 +3695,7 @@ declare const editorMachine: StateMachine<
|
|
|
3693
3695
|
dataTransfer: DataTransfer
|
|
3694
3696
|
})
|
|
3695
3697
|
| PatchEvent
|
|
3698
|
+
| InternalPatchEvent
|
|
3696
3699
|
| MutationEvent
|
|
3697
3700
|
| PatchesEvent
|
|
3698
3701
|
| {
|
|
@@ -3750,7 +3753,7 @@ declare const editorMachine: StateMachine<
|
|
|
3750
3753
|
behaviors: Set<Behavior>
|
|
3751
3754
|
converters: Set<Converter>
|
|
3752
3755
|
keyGenerator: () => string
|
|
3753
|
-
pendingEvents: Array<
|
|
3756
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3754
3757
|
schema: EditorSchema
|
|
3755
3758
|
initialReadOnly: boolean
|
|
3756
3759
|
maxBlocks: number | undefined
|
|
@@ -3986,7 +3989,7 @@ declare const editorMachine: StateMachine<
|
|
|
3986
3989
|
} & {
|
|
3987
3990
|
dataTransfer: DataTransfer
|
|
3988
3991
|
})
|
|
3989
|
-
|
|
|
3992
|
+
| InternalPatchEvent
|
|
3990
3993
|
| MutationEvent
|
|
3991
3994
|
| {
|
|
3992
3995
|
type: 'normalizing'
|
|
@@ -4342,6 +4345,7 @@ declare const editorMachine: StateMachine<
|
|
|
4342
4345
|
dataTransfer: DataTransfer
|
|
4343
4346
|
})
|
|
4344
4347
|
| PatchEvent
|
|
4348
|
+
| InternalPatchEvent
|
|
4345
4349
|
| MutationEvent
|
|
4346
4350
|
| PatchesEvent
|
|
4347
4351
|
| {
|
|
@@ -4399,7 +4403,7 @@ declare const editorMachine: StateMachine<
|
|
|
4399
4403
|
behaviors: Set<Behavior>
|
|
4400
4404
|
converters: Set<Converter>
|
|
4401
4405
|
keyGenerator: () => string
|
|
4402
|
-
pendingEvents: Array<
|
|
4406
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4403
4407
|
schema: EditorSchema
|
|
4404
4408
|
initialReadOnly: boolean
|
|
4405
4409
|
maxBlocks: number | undefined
|
|
@@ -4634,7 +4638,7 @@ declare const editorMachine: StateMachine<
|
|
|
4634
4638
|
} & {
|
|
4635
4639
|
dataTransfer: DataTransfer
|
|
4636
4640
|
})
|
|
4637
|
-
|
|
|
4641
|
+
| InternalPatchEvent
|
|
4638
4642
|
| MutationEvent
|
|
4639
4643
|
| {
|
|
4640
4644
|
type: 'normalizing'
|
|
@@ -4990,6 +4994,7 @@ declare const editorMachine: StateMachine<
|
|
|
4990
4994
|
dataTransfer: DataTransfer
|
|
4991
4995
|
})
|
|
4992
4996
|
| PatchEvent
|
|
4997
|
+
| InternalPatchEvent
|
|
4993
4998
|
| MutationEvent
|
|
4994
4999
|
| PatchesEvent
|
|
4995
5000
|
| {
|
|
@@ -5047,7 +5052,7 @@ declare const editorMachine: StateMachine<
|
|
|
5047
5052
|
behaviors: Set<Behavior>
|
|
5048
5053
|
converters: Set<Converter>
|
|
5049
5054
|
keyGenerator: () => string
|
|
5050
|
-
pendingEvents: Array<
|
|
5055
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5051
5056
|
schema: EditorSchema
|
|
5052
5057
|
initialReadOnly: boolean
|
|
5053
5058
|
maxBlocks: number | undefined
|
|
@@ -5281,7 +5286,7 @@ declare const editorMachine: StateMachine<
|
|
|
5281
5286
|
} & {
|
|
5282
5287
|
dataTransfer: DataTransfer
|
|
5283
5288
|
})
|
|
5284
|
-
|
|
|
5289
|
+
| InternalPatchEvent
|
|
5285
5290
|
| MutationEvent
|
|
5286
5291
|
| {
|
|
5287
5292
|
type: 'normalizing'
|
|
@@ -5637,6 +5642,7 @@ declare const editorMachine: StateMachine<
|
|
|
5637
5642
|
dataTransfer: DataTransfer
|
|
5638
5643
|
})
|
|
5639
5644
|
| PatchEvent
|
|
5645
|
+
| InternalPatchEvent
|
|
5640
5646
|
| MutationEvent
|
|
5641
5647
|
| PatchesEvent
|
|
5642
5648
|
| {
|
|
@@ -5695,7 +5701,7 @@ declare const editorMachine: StateMachine<
|
|
|
5695
5701
|
behaviors: Set<Behavior>
|
|
5696
5702
|
converters: Set<Converter>
|
|
5697
5703
|
keyGenerator: () => string
|
|
5698
|
-
pendingEvents: Array<
|
|
5704
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5699
5705
|
schema: EditorSchema
|
|
5700
5706
|
initialReadOnly: boolean
|
|
5701
5707
|
maxBlocks: number | undefined
|
|
@@ -5929,7 +5935,7 @@ declare const editorMachine: StateMachine<
|
|
|
5929
5935
|
} & {
|
|
5930
5936
|
dataTransfer: DataTransfer
|
|
5931
5937
|
})
|
|
5932
|
-
|
|
|
5938
|
+
| InternalPatchEvent
|
|
5933
5939
|
| MutationEvent
|
|
5934
5940
|
| {
|
|
5935
5941
|
type: 'normalizing'
|
|
@@ -6068,7 +6074,7 @@ declare const editorMachine: StateMachine<
|
|
|
6068
6074
|
behaviors: Set<Behavior>
|
|
6069
6075
|
converters: Set<Converter>
|
|
6070
6076
|
keyGenerator: () => string
|
|
6071
|
-
pendingEvents: Array<
|
|
6077
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6072
6078
|
schema: EditorSchema
|
|
6073
6079
|
initialReadOnly: boolean
|
|
6074
6080
|
maxBlocks: number | undefined
|
|
@@ -6302,7 +6308,7 @@ declare const editorMachine: StateMachine<
|
|
|
6302
6308
|
} & {
|
|
6303
6309
|
dataTransfer: DataTransfer
|
|
6304
6310
|
})
|
|
6305
|
-
|
|
|
6311
|
+
| InternalPatchEvent
|
|
6306
6312
|
| MutationEvent
|
|
6307
6313
|
| {
|
|
6308
6314
|
type: 'normalizing'
|
|
@@ -6658,6 +6664,7 @@ declare const editorMachine: StateMachine<
|
|
|
6658
6664
|
dataTransfer: DataTransfer
|
|
6659
6665
|
})
|
|
6660
6666
|
| PatchEvent
|
|
6667
|
+
| InternalPatchEvent
|
|
6661
6668
|
| MutationEvent
|
|
6662
6669
|
| PatchesEvent
|
|
6663
6670
|
| {
|
|
@@ -6716,7 +6723,7 @@ declare const editorMachine: StateMachine<
|
|
|
6716
6723
|
behaviors: Set<Behavior>
|
|
6717
6724
|
converters: Set<Converter>
|
|
6718
6725
|
keyGenerator: () => string
|
|
6719
|
-
pendingEvents: Array<
|
|
6726
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6720
6727
|
schema: EditorSchema
|
|
6721
6728
|
initialReadOnly: boolean
|
|
6722
6729
|
maxBlocks: number | undefined
|
|
@@ -6950,7 +6957,7 @@ declare const editorMachine: StateMachine<
|
|
|
6950
6957
|
} & {
|
|
6951
6958
|
dataTransfer: DataTransfer
|
|
6952
6959
|
})
|
|
6953
|
-
|
|
|
6960
|
+
| InternalPatchEvent
|
|
6954
6961
|
| MutationEvent
|
|
6955
6962
|
| {
|
|
6956
6963
|
type: 'normalizing'
|
|
@@ -7306,6 +7313,7 @@ declare const editorMachine: StateMachine<
|
|
|
7306
7313
|
dataTransfer: DataTransfer
|
|
7307
7314
|
})
|
|
7308
7315
|
| PatchEvent
|
|
7316
|
+
| InternalPatchEvent
|
|
7309
7317
|
| MutationEvent
|
|
7310
7318
|
| PatchesEvent
|
|
7311
7319
|
| {
|
|
@@ -7363,7 +7371,7 @@ declare const editorMachine: StateMachine<
|
|
|
7363
7371
|
behaviors: Set<Behavior>
|
|
7364
7372
|
converters: Set<Converter>
|
|
7365
7373
|
keyGenerator: () => string
|
|
7366
|
-
pendingEvents: Array<
|
|
7374
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7367
7375
|
schema: EditorSchema
|
|
7368
7376
|
initialReadOnly: boolean
|
|
7369
7377
|
maxBlocks: number | undefined
|
|
@@ -7596,7 +7604,7 @@ declare const editorMachine: StateMachine<
|
|
|
7596
7604
|
} & {
|
|
7597
7605
|
dataTransfer: DataTransfer
|
|
7598
7606
|
})
|
|
7599
|
-
|
|
|
7607
|
+
| InternalPatchEvent
|
|
7600
7608
|
| MutationEvent
|
|
7601
7609
|
| {
|
|
7602
7610
|
type: 'normalizing'
|
|
@@ -7952,6 +7960,7 @@ declare const editorMachine: StateMachine<
|
|
|
7952
7960
|
dataTransfer: DataTransfer
|
|
7953
7961
|
})
|
|
7954
7962
|
| PatchEvent
|
|
7963
|
+
| InternalPatchEvent
|
|
7955
7964
|
| MutationEvent
|
|
7956
7965
|
| PatchesEvent
|
|
7957
7966
|
| {
|
|
@@ -8009,7 +8018,7 @@ declare const editorMachine: StateMachine<
|
|
|
8009
8018
|
behaviors: Set<Behavior>
|
|
8010
8019
|
converters: Set<Converter>
|
|
8011
8020
|
keyGenerator: () => string
|
|
8012
|
-
pendingEvents: Array<
|
|
8021
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8013
8022
|
schema: EditorSchema
|
|
8014
8023
|
initialReadOnly: boolean
|
|
8015
8024
|
maxBlocks: number | undefined
|
|
@@ -8243,7 +8252,7 @@ declare const editorMachine: StateMachine<
|
|
|
8243
8252
|
} & {
|
|
8244
8253
|
dataTransfer: DataTransfer
|
|
8245
8254
|
})
|
|
8246
|
-
|
|
|
8255
|
+
| InternalPatchEvent
|
|
8247
8256
|
| MutationEvent
|
|
8248
8257
|
| {
|
|
8249
8258
|
type: 'normalizing'
|
|
@@ -8599,6 +8608,7 @@ declare const editorMachine: StateMachine<
|
|
|
8599
8608
|
dataTransfer: DataTransfer
|
|
8600
8609
|
})
|
|
8601
8610
|
| PatchEvent
|
|
8611
|
+
| InternalPatchEvent
|
|
8602
8612
|
| MutationEvent
|
|
8603
8613
|
| PatchesEvent
|
|
8604
8614
|
| {
|
|
@@ -8662,7 +8672,7 @@ declare const editorMachine: StateMachine<
|
|
|
8662
8672
|
behaviors: Set<Behavior>
|
|
8663
8673
|
converters: Set<Converter>
|
|
8664
8674
|
keyGenerator: () => string
|
|
8665
|
-
pendingEvents: Array<
|
|
8675
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8666
8676
|
schema: EditorSchema
|
|
8667
8677
|
initialReadOnly: boolean
|
|
8668
8678
|
maxBlocks: number | undefined
|
|
@@ -8893,7 +8903,7 @@ declare const editorMachine: StateMachine<
|
|
|
8893
8903
|
} & {
|
|
8894
8904
|
dataTransfer: DataTransfer
|
|
8895
8905
|
})
|
|
8896
|
-
|
|
|
8906
|
+
| InternalPatchEvent
|
|
8897
8907
|
| MutationEvent
|
|
8898
8908
|
| {
|
|
8899
8909
|
type: 'normalizing'
|
|
@@ -9249,6 +9259,7 @@ declare const editorMachine: StateMachine<
|
|
|
9249
9259
|
dataTransfer: DataTransfer
|
|
9250
9260
|
})
|
|
9251
9261
|
| PatchEvent
|
|
9262
|
+
| InternalPatchEvent
|
|
9252
9263
|
| MutationEvent
|
|
9253
9264
|
| PatchesEvent
|
|
9254
9265
|
| {
|
|
@@ -9309,7 +9320,7 @@ declare const editorMachine: StateMachine<
|
|
|
9309
9320
|
behaviors: Set<Behavior>
|
|
9310
9321
|
converters: Set<Converter>
|
|
9311
9322
|
keyGenerator: () => string
|
|
9312
|
-
pendingEvents: Array<
|
|
9323
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9313
9324
|
schema: EditorSchema
|
|
9314
9325
|
initialReadOnly: boolean
|
|
9315
9326
|
maxBlocks: number | undefined
|
|
@@ -9543,7 +9554,7 @@ declare const editorMachine: StateMachine<
|
|
|
9543
9554
|
} & {
|
|
9544
9555
|
dataTransfer: DataTransfer
|
|
9545
9556
|
})
|
|
9546
|
-
|
|
|
9557
|
+
| InternalPatchEvent
|
|
9547
9558
|
| MutationEvent
|
|
9548
9559
|
| {
|
|
9549
9560
|
type: 'normalizing'
|
|
@@ -9687,7 +9698,7 @@ declare const editorMachine: StateMachine<
|
|
|
9687
9698
|
behaviors: Set<Behavior>
|
|
9688
9699
|
converters: Set<Converter>
|
|
9689
9700
|
keyGenerator: () => string
|
|
9690
|
-
pendingEvents: Array<
|
|
9701
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9691
9702
|
schema: EditorSchema
|
|
9692
9703
|
initialReadOnly: boolean
|
|
9693
9704
|
maxBlocks: number | undefined
|
|
@@ -9921,7 +9932,7 @@ declare const editorMachine: StateMachine<
|
|
|
9921
9932
|
} & {
|
|
9922
9933
|
dataTransfer: DataTransfer
|
|
9923
9934
|
})
|
|
9924
|
-
|
|
|
9935
|
+
| InternalPatchEvent
|
|
9925
9936
|
| MutationEvent
|
|
9926
9937
|
| {
|
|
9927
9938
|
type: 'normalizing'
|
|
@@ -10062,7 +10073,7 @@ declare const editorMachine: StateMachine<
|
|
|
10062
10073
|
behaviors: Set<Behavior>
|
|
10063
10074
|
converters: Set<Converter>
|
|
10064
10075
|
keyGenerator: () => string
|
|
10065
|
-
pendingEvents: Array<
|
|
10076
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10066
10077
|
schema: EditorSchema
|
|
10067
10078
|
initialReadOnly: boolean
|
|
10068
10079
|
maxBlocks: number | undefined
|
|
@@ -10296,7 +10307,7 @@ declare const editorMachine: StateMachine<
|
|
|
10296
10307
|
} & {
|
|
10297
10308
|
dataTransfer: DataTransfer
|
|
10298
10309
|
})
|
|
10299
|
-
|
|
|
10310
|
+
| InternalPatchEvent
|
|
10300
10311
|
| MutationEvent
|
|
10301
10312
|
| {
|
|
10302
10313
|
type: 'normalizing'
|
|
@@ -10449,7 +10460,7 @@ declare const editorMachine: StateMachine<
|
|
|
10449
10460
|
behaviors: Set<Behavior>
|
|
10450
10461
|
converters: Set<Converter>
|
|
10451
10462
|
keyGenerator: () => string
|
|
10452
|
-
pendingEvents: Array<
|
|
10463
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10453
10464
|
schema: EditorSchema
|
|
10454
10465
|
initialReadOnly: boolean
|
|
10455
10466
|
maxBlocks: number | undefined
|
|
@@ -10481,7 +10492,9 @@ declare const editorMachine: StateMachine<
|
|
|
10481
10492
|
behaviors: Set<Behavior>
|
|
10482
10493
|
converters: Set<Converter>
|
|
10483
10494
|
keyGenerator: () => string
|
|
10484
|
-
pendingEvents: Array<
|
|
10495
|
+
pendingEvents: Array<
|
|
10496
|
+
InternalPatchEvent | MutationEvent
|
|
10497
|
+
>
|
|
10485
10498
|
schema: EditorSchema
|
|
10486
10499
|
initialReadOnly: boolean
|
|
10487
10500
|
maxBlocks: number | undefined
|
|
@@ -10509,7 +10522,7 @@ declare const editorMachine: StateMachine<
|
|
|
10509
10522
|
behaviors: Set<Behavior>
|
|
10510
10523
|
converters: Set<Converter>
|
|
10511
10524
|
keyGenerator: () => string
|
|
10512
|
-
pendingEvents: Array<
|
|
10525
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10513
10526
|
schema: EditorSchema
|
|
10514
10527
|
initialReadOnly: boolean
|
|
10515
10528
|
maxBlocks: number | undefined
|
|
@@ -10538,7 +10551,7 @@ declare const editorMachine: StateMachine<
|
|
|
10538
10551
|
behaviors: Set<Behavior>
|
|
10539
10552
|
converters: Set<Converter>
|
|
10540
10553
|
keyGenerator: () => string
|
|
10541
|
-
pendingEvents: Array<
|
|
10554
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10542
10555
|
schema: EditorSchema
|
|
10543
10556
|
initialReadOnly: boolean
|
|
10544
10557
|
maxBlocks: number | undefined
|
|
@@ -10565,7 +10578,7 @@ declare const editorMachine: StateMachine<
|
|
|
10565
10578
|
behaviors: Set<Behavior>
|
|
10566
10579
|
converters: Set<Converter>
|
|
10567
10580
|
keyGenerator: () => string
|
|
10568
|
-
pendingEvents: Array<
|
|
10581
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10569
10582
|
schema: EditorSchema
|
|
10570
10583
|
initialReadOnly: boolean
|
|
10571
10584
|
maxBlocks: number | undefined
|
|
@@ -10819,7 +10832,7 @@ declare const editorMachine: StateMachine<
|
|
|
10819
10832
|
} & {
|
|
10820
10833
|
dataTransfer: DataTransfer
|
|
10821
10834
|
})
|
|
10822
|
-
|
|
|
10835
|
+
| InternalPatchEvent
|
|
10823
10836
|
| MutationEvent
|
|
10824
10837
|
| {
|
|
10825
10838
|
type: 'normalizing'
|
|
@@ -11177,6 +11190,7 @@ declare const editorMachine: StateMachine<
|
|
|
11177
11190
|
dataTransfer: DataTransfer
|
|
11178
11191
|
})
|
|
11179
11192
|
| PatchEvent
|
|
11193
|
+
| InternalPatchEvent
|
|
11180
11194
|
| MutationEvent
|
|
11181
11195
|
| PatchesEvent
|
|
11182
11196
|
| {
|
|
@@ -11234,7 +11248,7 @@ declare const editorMachine: StateMachine<
|
|
|
11234
11248
|
behaviors: Set<Behavior>
|
|
11235
11249
|
converters: Set<Converter>
|
|
11236
11250
|
keyGenerator: () => string
|
|
11237
|
-
pendingEvents: Array<
|
|
11251
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11238
11252
|
schema: EditorSchema
|
|
11239
11253
|
initialReadOnly: boolean
|
|
11240
11254
|
maxBlocks: number | undefined
|
|
@@ -11474,7 +11488,7 @@ declare const editorMachine: StateMachine<
|
|
|
11474
11488
|
} & {
|
|
11475
11489
|
dataTransfer: DataTransfer
|
|
11476
11490
|
})
|
|
11477
|
-
|
|
|
11491
|
+
| InternalPatchEvent
|
|
11478
11492
|
| MutationEvent
|
|
11479
11493
|
| {
|
|
11480
11494
|
type: 'normalizing'
|
|
@@ -11832,6 +11846,7 @@ declare const editorMachine: StateMachine<
|
|
|
11832
11846
|
dataTransfer: DataTransfer
|
|
11833
11847
|
})
|
|
11834
11848
|
| PatchEvent
|
|
11849
|
+
| InternalPatchEvent
|
|
11835
11850
|
| MutationEvent
|
|
11836
11851
|
| PatchesEvent
|
|
11837
11852
|
| {
|
|
@@ -11889,7 +11904,7 @@ declare const editorMachine: StateMachine<
|
|
|
11889
11904
|
behaviors: Set<Behavior>
|
|
11890
11905
|
converters: Set<Converter>
|
|
11891
11906
|
keyGenerator: () => string
|
|
11892
|
-
pendingEvents: Array<
|
|
11907
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11893
11908
|
schema: EditorSchema
|
|
11894
11909
|
initialReadOnly: boolean
|
|
11895
11910
|
maxBlocks: number | undefined
|
|
@@ -12122,7 +12137,7 @@ declare const editorMachine: StateMachine<
|
|
|
12122
12137
|
} & {
|
|
12123
12138
|
dataTransfer: DataTransfer
|
|
12124
12139
|
})
|
|
12125
|
-
|
|
|
12140
|
+
| InternalPatchEvent
|
|
12126
12141
|
| MutationEvent
|
|
12127
12142
|
| {
|
|
12128
12143
|
type: 'normalizing'
|
|
@@ -12480,6 +12495,7 @@ declare const editorMachine: StateMachine<
|
|
|
12480
12495
|
dataTransfer: DataTransfer
|
|
12481
12496
|
})
|
|
12482
12497
|
| PatchEvent
|
|
12498
|
+
| InternalPatchEvent
|
|
12483
12499
|
| MutationEvent
|
|
12484
12500
|
| PatchesEvent
|
|
12485
12501
|
| {
|
|
@@ -12537,7 +12553,7 @@ declare const editorMachine: StateMachine<
|
|
|
12537
12553
|
behaviors: Set<Behavior>
|
|
12538
12554
|
converters: Set<Converter>
|
|
12539
12555
|
keyGenerator: () => string
|
|
12540
|
-
pendingEvents: Array<
|
|
12556
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12541
12557
|
schema: EditorSchema
|
|
12542
12558
|
initialReadOnly: boolean
|
|
12543
12559
|
maxBlocks: number | undefined
|
|
@@ -12770,7 +12786,7 @@ declare const editorMachine: StateMachine<
|
|
|
12770
12786
|
} & {
|
|
12771
12787
|
dataTransfer: DataTransfer
|
|
12772
12788
|
})
|
|
12773
|
-
|
|
|
12789
|
+
| InternalPatchEvent
|
|
12774
12790
|
| MutationEvent
|
|
12775
12791
|
| {
|
|
12776
12792
|
type: 'normalizing'
|
|
@@ -13128,6 +13144,7 @@ declare const editorMachine: StateMachine<
|
|
|
13128
13144
|
dataTransfer: DataTransfer
|
|
13129
13145
|
})
|
|
13130
13146
|
| PatchEvent
|
|
13147
|
+
| InternalPatchEvent
|
|
13131
13148
|
| MutationEvent
|
|
13132
13149
|
| PatchesEvent
|
|
13133
13150
|
| {
|
|
@@ -13185,7 +13202,7 @@ declare const editorMachine: StateMachine<
|
|
|
13185
13202
|
behaviors: Set<Behavior>
|
|
13186
13203
|
converters: Set<Converter>
|
|
13187
13204
|
keyGenerator: () => string
|
|
13188
|
-
pendingEvents: Array<
|
|
13205
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13189
13206
|
schema: EditorSchema
|
|
13190
13207
|
initialReadOnly: boolean
|
|
13191
13208
|
maxBlocks: number | undefined
|
|
@@ -13431,7 +13448,7 @@ declare const editorMachine: StateMachine<
|
|
|
13431
13448
|
} & {
|
|
13432
13449
|
dataTransfer: DataTransfer
|
|
13433
13450
|
})
|
|
13434
|
-
|
|
|
13451
|
+
| InternalPatchEvent
|
|
13435
13452
|
| MutationEvent
|
|
13436
13453
|
| {
|
|
13437
13454
|
type: 'normalizing'
|
|
@@ -13789,6 +13806,7 @@ declare const editorMachine: StateMachine<
|
|
|
13789
13806
|
dataTransfer: DataTransfer
|
|
13790
13807
|
})
|
|
13791
13808
|
| PatchEvent
|
|
13809
|
+
| InternalPatchEvent
|
|
13792
13810
|
| MutationEvent
|
|
13793
13811
|
| PatchesEvent
|
|
13794
13812
|
| {
|
|
@@ -13846,7 +13864,7 @@ declare const editorMachine: StateMachine<
|
|
|
13846
13864
|
behaviors: Set<Behavior>
|
|
13847
13865
|
converters: Set<Converter>
|
|
13848
13866
|
keyGenerator: () => string
|
|
13849
|
-
pendingEvents: Array<
|
|
13867
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13850
13868
|
schema: EditorSchema
|
|
13851
13869
|
initialReadOnly: boolean
|
|
13852
13870
|
maxBlocks: number | undefined
|
|
@@ -14093,7 +14111,7 @@ declare const editorMachine: StateMachine<
|
|
|
14093
14111
|
} & {
|
|
14094
14112
|
dataTransfer: DataTransfer
|
|
14095
14113
|
})
|
|
14096
|
-
|
|
|
14114
|
+
| InternalPatchEvent
|
|
14097
14115
|
| MutationEvent
|
|
14098
14116
|
| {
|
|
14099
14117
|
type: 'normalizing'
|
|
@@ -14451,6 +14469,7 @@ declare const editorMachine: StateMachine<
|
|
|
14451
14469
|
dataTransfer: DataTransfer
|
|
14452
14470
|
})
|
|
14453
14471
|
| PatchEvent
|
|
14472
|
+
| InternalPatchEvent
|
|
14454
14473
|
| MutationEvent
|
|
14455
14474
|
| PatchesEvent
|
|
14456
14475
|
| {
|
|
@@ -14508,7 +14527,7 @@ declare const editorMachine: StateMachine<
|
|
|
14508
14527
|
behaviors: Set<Behavior>
|
|
14509
14528
|
converters: Set<Converter>
|
|
14510
14529
|
keyGenerator: () => string
|
|
14511
|
-
pendingEvents: Array<
|
|
14530
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14512
14531
|
schema: EditorSchema
|
|
14513
14532
|
initialReadOnly: boolean
|
|
14514
14533
|
maxBlocks: number | undefined
|
|
@@ -14741,7 +14760,7 @@ declare const editorMachine: StateMachine<
|
|
|
14741
14760
|
} & {
|
|
14742
14761
|
dataTransfer: DataTransfer
|
|
14743
14762
|
})
|
|
14744
|
-
|
|
|
14763
|
+
| InternalPatchEvent
|
|
14745
14764
|
| MutationEvent
|
|
14746
14765
|
| {
|
|
14747
14766
|
type: 'normalizing'
|
|
@@ -15099,6 +15118,7 @@ declare const editorMachine: StateMachine<
|
|
|
15099
15118
|
dataTransfer: DataTransfer
|
|
15100
15119
|
})
|
|
15101
15120
|
| PatchEvent
|
|
15121
|
+
| InternalPatchEvent
|
|
15102
15122
|
| MutationEvent
|
|
15103
15123
|
| PatchesEvent
|
|
15104
15124
|
| {
|
|
@@ -15156,7 +15176,7 @@ declare const editorMachine: StateMachine<
|
|
|
15156
15176
|
behaviors: Set<Behavior>
|
|
15157
15177
|
converters: Set<Converter>
|
|
15158
15178
|
keyGenerator: () => string
|
|
15159
|
-
pendingEvents: Array<
|
|
15179
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15160
15180
|
schema: EditorSchema
|
|
15161
15181
|
initialReadOnly: boolean
|
|
15162
15182
|
maxBlocks: number | undefined
|
|
@@ -15392,7 +15412,7 @@ declare const editorMachine: StateMachine<
|
|
|
15392
15412
|
} & {
|
|
15393
15413
|
dataTransfer: DataTransfer
|
|
15394
15414
|
})
|
|
15395
|
-
|
|
|
15415
|
+
| InternalPatchEvent
|
|
15396
15416
|
| MutationEvent
|
|
15397
15417
|
| {
|
|
15398
15418
|
type: 'normalizing'
|
|
@@ -15750,6 +15770,7 @@ declare const editorMachine: StateMachine<
|
|
|
15750
15770
|
dataTransfer: DataTransfer
|
|
15751
15771
|
})
|
|
15752
15772
|
| PatchEvent
|
|
15773
|
+
| InternalPatchEvent
|
|
15753
15774
|
| MutationEvent
|
|
15754
15775
|
| PatchesEvent
|
|
15755
15776
|
| {
|
|
@@ -15807,7 +15828,7 @@ declare const editorMachine: StateMachine<
|
|
|
15807
15828
|
behaviors: Set<Behavior>
|
|
15808
15829
|
converters: Set<Converter>
|
|
15809
15830
|
keyGenerator: () => string
|
|
15810
|
-
pendingEvents: Array<
|
|
15831
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15811
15832
|
schema: EditorSchema
|
|
15812
15833
|
initialReadOnly: boolean
|
|
15813
15834
|
maxBlocks: number | undefined
|
|
@@ -16094,7 +16115,7 @@ declare const editorMachine: StateMachine<
|
|
|
16094
16115
|
} & {
|
|
16095
16116
|
dataTransfer: DataTransfer
|
|
16096
16117
|
})
|
|
16097
|
-
|
|
|
16118
|
+
| InternalPatchEvent
|
|
16098
16119
|
| MutationEvent
|
|
16099
16120
|
| {
|
|
16100
16121
|
type: 'normalizing'
|
|
@@ -16452,6 +16473,7 @@ declare const editorMachine: StateMachine<
|
|
|
16452
16473
|
dataTransfer: DataTransfer
|
|
16453
16474
|
})
|
|
16454
16475
|
| PatchEvent
|
|
16476
|
+
| InternalPatchEvent
|
|
16455
16477
|
| MutationEvent
|
|
16456
16478
|
| PatchesEvent
|
|
16457
16479
|
| {
|
|
@@ -16509,7 +16531,7 @@ declare const editorMachine: StateMachine<
|
|
|
16509
16531
|
behaviors: Set<Behavior>
|
|
16510
16532
|
converters: Set<Converter>
|
|
16511
16533
|
keyGenerator: () => string
|
|
16512
|
-
pendingEvents: Array<
|
|
16534
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16513
16535
|
schema: EditorSchema
|
|
16514
16536
|
initialReadOnly: boolean
|
|
16515
16537
|
maxBlocks: number | undefined
|
|
@@ -16751,7 +16773,7 @@ declare const editorMachine: StateMachine<
|
|
|
16751
16773
|
} & {
|
|
16752
16774
|
dataTransfer: DataTransfer
|
|
16753
16775
|
})
|
|
16754
|
-
|
|
|
16776
|
+
| InternalPatchEvent
|
|
16755
16777
|
| MutationEvent
|
|
16756
16778
|
| {
|
|
16757
16779
|
type: 'normalizing'
|
|
@@ -17109,6 +17131,7 @@ declare const editorMachine: StateMachine<
|
|
|
17109
17131
|
dataTransfer: DataTransfer
|
|
17110
17132
|
})
|
|
17111
17133
|
| PatchEvent
|
|
17134
|
+
| InternalPatchEvent
|
|
17112
17135
|
| MutationEvent
|
|
17113
17136
|
| PatchesEvent
|
|
17114
17137
|
| {
|
|
@@ -17166,7 +17189,7 @@ declare const editorMachine: StateMachine<
|
|
|
17166
17189
|
behaviors: Set<Behavior>
|
|
17167
17190
|
converters: Set<Converter>
|
|
17168
17191
|
keyGenerator: () => string
|
|
17169
|
-
pendingEvents: Array<
|
|
17192
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17170
17193
|
schema: EditorSchema
|
|
17171
17194
|
initialReadOnly: boolean
|
|
17172
17195
|
maxBlocks: number | undefined
|
|
@@ -17409,7 +17432,7 @@ declare const editorMachine: StateMachine<
|
|
|
17409
17432
|
} & {
|
|
17410
17433
|
dataTransfer: DataTransfer
|
|
17411
17434
|
})
|
|
17412
|
-
|
|
|
17435
|
+
| InternalPatchEvent
|
|
17413
17436
|
| MutationEvent
|
|
17414
17437
|
| {
|
|
17415
17438
|
type: 'normalizing'
|
|
@@ -17767,6 +17790,7 @@ declare const editorMachine: StateMachine<
|
|
|
17767
17790
|
dataTransfer: DataTransfer
|
|
17768
17791
|
})
|
|
17769
17792
|
| PatchEvent
|
|
17793
|
+
| InternalPatchEvent
|
|
17770
17794
|
| MutationEvent
|
|
17771
17795
|
| PatchesEvent
|
|
17772
17796
|
| {
|
|
@@ -17824,7 +17848,7 @@ declare const editorMachine: StateMachine<
|
|
|
17824
17848
|
behaviors: Set<Behavior>
|
|
17825
17849
|
converters: Set<Converter>
|
|
17826
17850
|
keyGenerator: () => string
|
|
17827
|
-
pendingEvents: Array<
|
|
17851
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17828
17852
|
schema: EditorSchema
|
|
17829
17853
|
initialReadOnly: boolean
|
|
17830
17854
|
maxBlocks: number | undefined
|
|
@@ -18058,7 +18082,7 @@ declare const editorMachine: StateMachine<
|
|
|
18058
18082
|
} & {
|
|
18059
18083
|
dataTransfer: DataTransfer
|
|
18060
18084
|
})
|
|
18061
|
-
|
|
|
18085
|
+
| InternalPatchEvent
|
|
18062
18086
|
| MutationEvent
|
|
18063
18087
|
| {
|
|
18064
18088
|
type: 'normalizing'
|
|
@@ -18416,6 +18440,7 @@ declare const editorMachine: StateMachine<
|
|
|
18416
18440
|
dataTransfer: DataTransfer
|
|
18417
18441
|
})
|
|
18418
18442
|
| PatchEvent
|
|
18443
|
+
| InternalPatchEvent
|
|
18419
18444
|
| MutationEvent
|
|
18420
18445
|
| PatchesEvent
|
|
18421
18446
|
| {
|
|
@@ -18473,7 +18498,7 @@ declare const editorMachine: StateMachine<
|
|
|
18473
18498
|
behaviors: Set<Behavior>
|
|
18474
18499
|
converters: Set<Converter>
|
|
18475
18500
|
keyGenerator: () => string
|
|
18476
|
-
pendingEvents: Array<
|
|
18501
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18477
18502
|
schema: EditorSchema
|
|
18478
18503
|
initialReadOnly: boolean
|
|
18479
18504
|
maxBlocks: number | undefined
|
|
@@ -18709,7 +18734,7 @@ declare const editorMachine: StateMachine<
|
|
|
18709
18734
|
} & {
|
|
18710
18735
|
dataTransfer: DataTransfer
|
|
18711
18736
|
})
|
|
18712
|
-
|
|
|
18737
|
+
| InternalPatchEvent
|
|
18713
18738
|
| MutationEvent
|
|
18714
18739
|
| {
|
|
18715
18740
|
type: 'normalizing'
|
|
@@ -19067,6 +19092,7 @@ declare const editorMachine: StateMachine<
|
|
|
19067
19092
|
dataTransfer: DataTransfer
|
|
19068
19093
|
})
|
|
19069
19094
|
| PatchEvent
|
|
19095
|
+
| InternalPatchEvent
|
|
19070
19096
|
| MutationEvent
|
|
19071
19097
|
| PatchesEvent
|
|
19072
19098
|
| {
|
|
@@ -19124,7 +19150,7 @@ declare const editorMachine: StateMachine<
|
|
|
19124
19150
|
behaviors: Set<Behavior>
|
|
19125
19151
|
converters: Set<Converter>
|
|
19126
19152
|
keyGenerator: () => string
|
|
19127
|
-
pendingEvents: Array<
|
|
19153
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
19128
19154
|
schema: EditorSchema
|
|
19129
19155
|
initialReadOnly: boolean
|
|
19130
19156
|
maxBlocks: number | undefined
|
|
@@ -19366,7 +19392,7 @@ declare const editorMachine: StateMachine<
|
|
|
19366
19392
|
} & {
|
|
19367
19393
|
dataTransfer: DataTransfer
|
|
19368
19394
|
})
|
|
19369
|
-
|
|
|
19395
|
+
| InternalPatchEvent
|
|
19370
19396
|
| MutationEvent
|
|
19371
19397
|
| {
|
|
19372
19398
|
type: 'normalizing'
|
|
@@ -19724,6 +19750,7 @@ declare const editorMachine: StateMachine<
|
|
|
19724
19750
|
dataTransfer: DataTransfer
|
|
19725
19751
|
})
|
|
19726
19752
|
| PatchEvent
|
|
19753
|
+
| InternalPatchEvent
|
|
19727
19754
|
| MutationEvent
|
|
19728
19755
|
| PatchesEvent
|
|
19729
19756
|
| {
|
|
@@ -19819,7 +19846,7 @@ declare const editorMachine: StateMachine<
|
|
|
19819
19846
|
readonly 'setting up': {
|
|
19820
19847
|
readonly exit: readonly ['emit ready']
|
|
19821
19848
|
readonly on: {
|
|
19822
|
-
readonly 'patch': {
|
|
19849
|
+
readonly 'internal.patch': {
|
|
19823
19850
|
readonly actions: 'defer event'
|
|
19824
19851
|
}
|
|
19825
19852
|
readonly 'mutation': {
|
|
@@ -19835,14 +19862,14 @@ declare const editorMachine: StateMachine<
|
|
|
19835
19862
|
readonly states: {
|
|
19836
19863
|
readonly idle: {
|
|
19837
19864
|
readonly on: {
|
|
19838
|
-
readonly normalizing: {
|
|
19865
|
+
readonly 'normalizing': {
|
|
19839
19866
|
readonly target: 'normalizing'
|
|
19840
19867
|
}
|
|
19841
|
-
readonly patch: {
|
|
19868
|
+
readonly 'internal.patch': {
|
|
19842
19869
|
readonly actions: 'defer event'
|
|
19843
19870
|
readonly target: '#editor.setup.dirty'
|
|
19844
19871
|
}
|
|
19845
|
-
readonly mutation: {
|
|
19872
|
+
readonly 'mutation': {
|
|
19846
19873
|
readonly actions: 'defer event'
|
|
19847
19874
|
readonly target: '#editor.setup.dirty'
|
|
19848
19875
|
}
|
|
@@ -19853,7 +19880,7 @@ declare const editorMachine: StateMachine<
|
|
|
19853
19880
|
readonly 'done normalizing': {
|
|
19854
19881
|
readonly target: 'idle'
|
|
19855
19882
|
}
|
|
19856
|
-
readonly 'patch': {
|
|
19883
|
+
readonly 'internal.patch': {
|
|
19857
19884
|
readonly actions: 'defer event'
|
|
19858
19885
|
}
|
|
19859
19886
|
readonly 'mutation': {
|
|
@@ -19869,10 +19896,10 @@ declare const editorMachine: StateMachine<
|
|
|
19869
19896
|
'clear pending events',
|
|
19870
19897
|
]
|
|
19871
19898
|
readonly on: {
|
|
19872
|
-
readonly patch: {
|
|
19899
|
+
readonly 'internal.patch': {
|
|
19873
19900
|
readonly actions: 'emit patch event'
|
|
19874
19901
|
}
|
|
19875
|
-
readonly mutation: {
|
|
19902
|
+
readonly 'mutation': {
|
|
19876
19903
|
readonly actions: 'emit mutation event'
|
|
19877
19904
|
}
|
|
19878
19905
|
}
|
|
@@ -19945,6 +19972,11 @@ declare type HistoryItem = {
|
|
|
19945
19972
|
timestamp: Date
|
|
19946
19973
|
}
|
|
19947
19974
|
|
|
19975
|
+
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
19976
|
+
actionId?: string
|
|
19977
|
+
value: Array<PortableTextBlock>
|
|
19978
|
+
}
|
|
19979
|
+
|
|
19948
19980
|
/**
|
|
19949
19981
|
* The editor has invalid data in the value that can be resolved by the user
|
|
19950
19982
|
* @beta */
|
|
@@ -20019,6 +20051,19 @@ declare type MutationEvent = {
|
|
|
20019
20051
|
value: Array<PortableTextBlock> | undefined
|
|
20020
20052
|
}
|
|
20021
20053
|
|
|
20054
|
+
declare type NamespaceEvent<
|
|
20055
|
+
TEvent,
|
|
20056
|
+
TNamespace extends string,
|
|
20057
|
+
> = TEvent extends {
|
|
20058
|
+
type: infer TEventType
|
|
20059
|
+
}
|
|
20060
|
+
? {
|
|
20061
|
+
[K in keyof TEvent]: K extends 'type'
|
|
20062
|
+
? `${TNamespace}.${TEventType & string}`
|
|
20063
|
+
: TEvent[K]
|
|
20064
|
+
}
|
|
20065
|
+
: never
|
|
20066
|
+
|
|
20022
20067
|
/**
|
|
20023
20068
|
* @beta
|
|
20024
20069
|
*/
|