@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/plugins/index.d.cts
CHANGED
|
@@ -399,7 +399,7 @@ declare const editorMachine: StateMachine<
|
|
|
399
399
|
behaviors: Set<Behavior>
|
|
400
400
|
converters: Set<Converter>
|
|
401
401
|
keyGenerator: () => string
|
|
402
|
-
pendingEvents: Array<
|
|
402
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
403
403
|
schema: EditorSchema
|
|
404
404
|
initialReadOnly: boolean
|
|
405
405
|
maxBlocks: number | undefined
|
|
@@ -629,7 +629,7 @@ declare const editorMachine: StateMachine<
|
|
|
629
629
|
} & {
|
|
630
630
|
dataTransfer: DataTransfer
|
|
631
631
|
})
|
|
632
|
-
|
|
|
632
|
+
| InternalPatchEvent
|
|
633
633
|
| MutationEvent
|
|
634
634
|
| {
|
|
635
635
|
type: 'normalizing'
|
|
@@ -1064,6 +1064,7 @@ declare const editorMachine: StateMachine<
|
|
|
1064
1064
|
dataTransfer: DataTransfer
|
|
1065
1065
|
})
|
|
1066
1066
|
| PatchEvent
|
|
1067
|
+
| InternalPatchEvent
|
|
1067
1068
|
| MutationEvent
|
|
1068
1069
|
| PatchesEvent
|
|
1069
1070
|
| {
|
|
@@ -1156,7 +1157,7 @@ declare const editorMachine: StateMachine<
|
|
|
1156
1157
|
behaviors: Set<Behavior>
|
|
1157
1158
|
converters: Set<Converter>
|
|
1158
1159
|
keyGenerator: () => string
|
|
1159
|
-
pendingEvents: Array<
|
|
1160
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1160
1161
|
schema: EditorSchema
|
|
1161
1162
|
initialReadOnly: boolean
|
|
1162
1163
|
maxBlocks: number | undefined
|
|
@@ -1386,7 +1387,7 @@ declare const editorMachine: StateMachine<
|
|
|
1386
1387
|
} & {
|
|
1387
1388
|
dataTransfer: DataTransfer
|
|
1388
1389
|
})
|
|
1389
|
-
|
|
|
1390
|
+
| InternalPatchEvent
|
|
1390
1391
|
| MutationEvent
|
|
1391
1392
|
| {
|
|
1392
1393
|
type: 'normalizing'
|
|
@@ -1743,7 +1744,7 @@ declare const editorMachine: StateMachine<
|
|
|
1743
1744
|
} & {
|
|
1744
1745
|
dataTransfer: DataTransfer
|
|
1745
1746
|
})
|
|
1746
|
-
|
|
|
1747
|
+
| InternalPatchEvent
|
|
1747
1748
|
| MutationEvent
|
|
1748
1749
|
| {
|
|
1749
1750
|
type: 'normalizing'
|
|
@@ -1890,7 +1891,7 @@ declare const editorMachine: StateMachine<
|
|
|
1890
1891
|
behaviors: Set<Behavior>
|
|
1891
1892
|
converters: Set<Converter>
|
|
1892
1893
|
keyGenerator: () => string
|
|
1893
|
-
pendingEvents: Array<
|
|
1894
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1894
1895
|
schema: EditorSchema
|
|
1895
1896
|
initialReadOnly: boolean
|
|
1896
1897
|
maxBlocks: number | undefined
|
|
@@ -2124,7 +2125,7 @@ declare const editorMachine: StateMachine<
|
|
|
2124
2125
|
} & {
|
|
2125
2126
|
dataTransfer: DataTransfer
|
|
2126
2127
|
})
|
|
2127
|
-
|
|
|
2128
|
+
| InternalPatchEvent
|
|
2128
2129
|
| MutationEvent
|
|
2129
2130
|
| {
|
|
2130
2131
|
type: 'normalizing'
|
|
@@ -2480,6 +2481,7 @@ declare const editorMachine: StateMachine<
|
|
|
2480
2481
|
dataTransfer: DataTransfer
|
|
2481
2482
|
})
|
|
2482
2483
|
| PatchEvent
|
|
2484
|
+
| InternalPatchEvent
|
|
2483
2485
|
| MutationEvent
|
|
2484
2486
|
| PatchesEvent
|
|
2485
2487
|
| {
|
|
@@ -2537,7 +2539,7 @@ declare const editorMachine: StateMachine<
|
|
|
2537
2539
|
behaviors: Set<Behavior>
|
|
2538
2540
|
converters: Set<Converter>
|
|
2539
2541
|
keyGenerator: () => string
|
|
2540
|
-
pendingEvents: Array<
|
|
2542
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2541
2543
|
schema: EditorSchema
|
|
2542
2544
|
initialReadOnly: boolean
|
|
2543
2545
|
maxBlocks: number | undefined
|
|
@@ -2770,7 +2772,7 @@ declare const editorMachine: StateMachine<
|
|
|
2770
2772
|
} & {
|
|
2771
2773
|
dataTransfer: DataTransfer
|
|
2772
2774
|
})
|
|
2773
|
-
|
|
|
2775
|
+
| InternalPatchEvent
|
|
2774
2776
|
| MutationEvent
|
|
2775
2777
|
| {
|
|
2776
2778
|
type: 'normalizing'
|
|
@@ -3126,6 +3128,7 @@ declare const editorMachine: StateMachine<
|
|
|
3126
3128
|
dataTransfer: DataTransfer
|
|
3127
3129
|
})
|
|
3128
3130
|
| PatchEvent
|
|
3131
|
+
| InternalPatchEvent
|
|
3129
3132
|
| MutationEvent
|
|
3130
3133
|
| PatchesEvent
|
|
3131
3134
|
| {
|
|
@@ -3183,7 +3186,7 @@ declare const editorMachine: StateMachine<
|
|
|
3183
3186
|
behaviors: Set<Behavior>
|
|
3184
3187
|
converters: Set<Converter>
|
|
3185
3188
|
keyGenerator: () => string
|
|
3186
|
-
pendingEvents: Array<
|
|
3189
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3187
3190
|
schema: EditorSchema
|
|
3188
3191
|
initialReadOnly: boolean
|
|
3189
3192
|
maxBlocks: number | undefined
|
|
@@ -3419,7 +3422,7 @@ declare const editorMachine: StateMachine<
|
|
|
3419
3422
|
} & {
|
|
3420
3423
|
dataTransfer: DataTransfer
|
|
3421
3424
|
})
|
|
3422
|
-
|
|
|
3425
|
+
| InternalPatchEvent
|
|
3423
3426
|
| MutationEvent
|
|
3424
3427
|
| {
|
|
3425
3428
|
type: 'normalizing'
|
|
@@ -3775,6 +3778,7 @@ declare const editorMachine: StateMachine<
|
|
|
3775
3778
|
dataTransfer: DataTransfer
|
|
3776
3779
|
})
|
|
3777
3780
|
| PatchEvent
|
|
3781
|
+
| InternalPatchEvent
|
|
3778
3782
|
| MutationEvent
|
|
3779
3783
|
| PatchesEvent
|
|
3780
3784
|
| {
|
|
@@ -3832,7 +3836,7 @@ declare const editorMachine: StateMachine<
|
|
|
3832
3836
|
behaviors: Set<Behavior>
|
|
3833
3837
|
converters: Set<Converter>
|
|
3834
3838
|
keyGenerator: () => string
|
|
3835
|
-
pendingEvents: Array<
|
|
3839
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3836
3840
|
schema: EditorSchema
|
|
3837
3841
|
initialReadOnly: boolean
|
|
3838
3842
|
maxBlocks: number | undefined
|
|
@@ -4067,7 +4071,7 @@ declare const editorMachine: StateMachine<
|
|
|
4067
4071
|
} & {
|
|
4068
4072
|
dataTransfer: DataTransfer
|
|
4069
4073
|
})
|
|
4070
|
-
|
|
|
4074
|
+
| InternalPatchEvent
|
|
4071
4075
|
| MutationEvent
|
|
4072
4076
|
| {
|
|
4073
4077
|
type: 'normalizing'
|
|
@@ -4423,6 +4427,7 @@ declare const editorMachine: StateMachine<
|
|
|
4423
4427
|
dataTransfer: DataTransfer
|
|
4424
4428
|
})
|
|
4425
4429
|
| PatchEvent
|
|
4430
|
+
| InternalPatchEvent
|
|
4426
4431
|
| MutationEvent
|
|
4427
4432
|
| PatchesEvent
|
|
4428
4433
|
| {
|
|
@@ -4480,7 +4485,7 @@ declare const editorMachine: StateMachine<
|
|
|
4480
4485
|
behaviors: Set<Behavior>
|
|
4481
4486
|
converters: Set<Converter>
|
|
4482
4487
|
keyGenerator: () => string
|
|
4483
|
-
pendingEvents: Array<
|
|
4488
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4484
4489
|
schema: EditorSchema
|
|
4485
4490
|
initialReadOnly: boolean
|
|
4486
4491
|
maxBlocks: number | undefined
|
|
@@ -4714,7 +4719,7 @@ declare const editorMachine: StateMachine<
|
|
|
4714
4719
|
} & {
|
|
4715
4720
|
dataTransfer: DataTransfer
|
|
4716
4721
|
})
|
|
4717
|
-
|
|
|
4722
|
+
| InternalPatchEvent
|
|
4718
4723
|
| MutationEvent
|
|
4719
4724
|
| {
|
|
4720
4725
|
type: 'normalizing'
|
|
@@ -5070,6 +5075,7 @@ declare const editorMachine: StateMachine<
|
|
|
5070
5075
|
dataTransfer: DataTransfer
|
|
5071
5076
|
})
|
|
5072
5077
|
| PatchEvent
|
|
5078
|
+
| InternalPatchEvent
|
|
5073
5079
|
| MutationEvent
|
|
5074
5080
|
| PatchesEvent
|
|
5075
5081
|
| {
|
|
@@ -5128,7 +5134,7 @@ declare const editorMachine: StateMachine<
|
|
|
5128
5134
|
behaviors: Set<Behavior>
|
|
5129
5135
|
converters: Set<Converter>
|
|
5130
5136
|
keyGenerator: () => string
|
|
5131
|
-
pendingEvents: Array<
|
|
5137
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5132
5138
|
schema: EditorSchema
|
|
5133
5139
|
initialReadOnly: boolean
|
|
5134
5140
|
maxBlocks: number | undefined
|
|
@@ -5362,7 +5368,7 @@ declare const editorMachine: StateMachine<
|
|
|
5362
5368
|
} & {
|
|
5363
5369
|
dataTransfer: DataTransfer
|
|
5364
5370
|
})
|
|
5365
|
-
|
|
|
5371
|
+
| InternalPatchEvent
|
|
5366
5372
|
| MutationEvent
|
|
5367
5373
|
| {
|
|
5368
5374
|
type: 'normalizing'
|
|
@@ -5501,7 +5507,7 @@ declare const editorMachine: StateMachine<
|
|
|
5501
5507
|
behaviors: Set<Behavior>
|
|
5502
5508
|
converters: Set<Converter>
|
|
5503
5509
|
keyGenerator: () => string
|
|
5504
|
-
pendingEvents: Array<
|
|
5510
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5505
5511
|
schema: EditorSchema
|
|
5506
5512
|
initialReadOnly: boolean
|
|
5507
5513
|
maxBlocks: number | undefined
|
|
@@ -5735,7 +5741,7 @@ declare const editorMachine: StateMachine<
|
|
|
5735
5741
|
} & {
|
|
5736
5742
|
dataTransfer: DataTransfer
|
|
5737
5743
|
})
|
|
5738
|
-
|
|
|
5744
|
+
| InternalPatchEvent
|
|
5739
5745
|
| MutationEvent
|
|
5740
5746
|
| {
|
|
5741
5747
|
type: 'normalizing'
|
|
@@ -6091,6 +6097,7 @@ declare const editorMachine: StateMachine<
|
|
|
6091
6097
|
dataTransfer: DataTransfer
|
|
6092
6098
|
})
|
|
6093
6099
|
| PatchEvent
|
|
6100
|
+
| InternalPatchEvent
|
|
6094
6101
|
| MutationEvent
|
|
6095
6102
|
| PatchesEvent
|
|
6096
6103
|
| {
|
|
@@ -6149,7 +6156,7 @@ declare const editorMachine: StateMachine<
|
|
|
6149
6156
|
behaviors: Set<Behavior>
|
|
6150
6157
|
converters: Set<Converter>
|
|
6151
6158
|
keyGenerator: () => string
|
|
6152
|
-
pendingEvents: Array<
|
|
6159
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6153
6160
|
schema: EditorSchema
|
|
6154
6161
|
initialReadOnly: boolean
|
|
6155
6162
|
maxBlocks: number | undefined
|
|
@@ -6383,7 +6390,7 @@ declare const editorMachine: StateMachine<
|
|
|
6383
6390
|
} & {
|
|
6384
6391
|
dataTransfer: DataTransfer
|
|
6385
6392
|
})
|
|
6386
|
-
|
|
|
6393
|
+
| InternalPatchEvent
|
|
6387
6394
|
| MutationEvent
|
|
6388
6395
|
| {
|
|
6389
6396
|
type: 'normalizing'
|
|
@@ -6739,6 +6746,7 @@ declare const editorMachine: StateMachine<
|
|
|
6739
6746
|
dataTransfer: DataTransfer
|
|
6740
6747
|
})
|
|
6741
6748
|
| PatchEvent
|
|
6749
|
+
| InternalPatchEvent
|
|
6742
6750
|
| MutationEvent
|
|
6743
6751
|
| PatchesEvent
|
|
6744
6752
|
| {
|
|
@@ -6796,7 +6804,7 @@ declare const editorMachine: StateMachine<
|
|
|
6796
6804
|
behaviors: Set<Behavior>
|
|
6797
6805
|
converters: Set<Converter>
|
|
6798
6806
|
keyGenerator: () => string
|
|
6799
|
-
pendingEvents: Array<
|
|
6807
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6800
6808
|
schema: EditorSchema
|
|
6801
6809
|
initialReadOnly: boolean
|
|
6802
6810
|
maxBlocks: number | undefined
|
|
@@ -7029,7 +7037,7 @@ declare const editorMachine: StateMachine<
|
|
|
7029
7037
|
} & {
|
|
7030
7038
|
dataTransfer: DataTransfer
|
|
7031
7039
|
})
|
|
7032
|
-
|
|
|
7040
|
+
| InternalPatchEvent
|
|
7033
7041
|
| MutationEvent
|
|
7034
7042
|
| {
|
|
7035
7043
|
type: 'normalizing'
|
|
@@ -7385,6 +7393,7 @@ declare const editorMachine: StateMachine<
|
|
|
7385
7393
|
dataTransfer: DataTransfer
|
|
7386
7394
|
})
|
|
7387
7395
|
| PatchEvent
|
|
7396
|
+
| InternalPatchEvent
|
|
7388
7397
|
| MutationEvent
|
|
7389
7398
|
| PatchesEvent
|
|
7390
7399
|
| {
|
|
@@ -7442,7 +7451,7 @@ declare const editorMachine: StateMachine<
|
|
|
7442
7451
|
behaviors: Set<Behavior>
|
|
7443
7452
|
converters: Set<Converter>
|
|
7444
7453
|
keyGenerator: () => string
|
|
7445
|
-
pendingEvents: Array<
|
|
7454
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7446
7455
|
schema: EditorSchema
|
|
7447
7456
|
initialReadOnly: boolean
|
|
7448
7457
|
maxBlocks: number | undefined
|
|
@@ -7676,7 +7685,7 @@ declare const editorMachine: StateMachine<
|
|
|
7676
7685
|
} & {
|
|
7677
7686
|
dataTransfer: DataTransfer
|
|
7678
7687
|
})
|
|
7679
|
-
|
|
|
7688
|
+
| InternalPatchEvent
|
|
7680
7689
|
| MutationEvent
|
|
7681
7690
|
| {
|
|
7682
7691
|
type: 'normalizing'
|
|
@@ -8032,6 +8041,7 @@ declare const editorMachine: StateMachine<
|
|
|
8032
8041
|
dataTransfer: DataTransfer
|
|
8033
8042
|
})
|
|
8034
8043
|
| PatchEvent
|
|
8044
|
+
| InternalPatchEvent
|
|
8035
8045
|
| MutationEvent
|
|
8036
8046
|
| PatchesEvent
|
|
8037
8047
|
| {
|
|
@@ -8095,7 +8105,7 @@ declare const editorMachine: StateMachine<
|
|
|
8095
8105
|
behaviors: Set<Behavior>
|
|
8096
8106
|
converters: Set<Converter>
|
|
8097
8107
|
keyGenerator: () => string
|
|
8098
|
-
pendingEvents: Array<
|
|
8108
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8099
8109
|
schema: EditorSchema
|
|
8100
8110
|
initialReadOnly: boolean
|
|
8101
8111
|
maxBlocks: number | undefined
|
|
@@ -8326,7 +8336,7 @@ declare const editorMachine: StateMachine<
|
|
|
8326
8336
|
} & {
|
|
8327
8337
|
dataTransfer: DataTransfer
|
|
8328
8338
|
})
|
|
8329
|
-
|
|
|
8339
|
+
| InternalPatchEvent
|
|
8330
8340
|
| MutationEvent
|
|
8331
8341
|
| {
|
|
8332
8342
|
type: 'normalizing'
|
|
@@ -8682,6 +8692,7 @@ declare const editorMachine: StateMachine<
|
|
|
8682
8692
|
dataTransfer: DataTransfer
|
|
8683
8693
|
})
|
|
8684
8694
|
| PatchEvent
|
|
8695
|
+
| InternalPatchEvent
|
|
8685
8696
|
| MutationEvent
|
|
8686
8697
|
| PatchesEvent
|
|
8687
8698
|
| {
|
|
@@ -8742,7 +8753,7 @@ declare const editorMachine: StateMachine<
|
|
|
8742
8753
|
behaviors: Set<Behavior>
|
|
8743
8754
|
converters: Set<Converter>
|
|
8744
8755
|
keyGenerator: () => string
|
|
8745
|
-
pendingEvents: Array<
|
|
8756
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8746
8757
|
schema: EditorSchema
|
|
8747
8758
|
initialReadOnly: boolean
|
|
8748
8759
|
maxBlocks: number | undefined
|
|
@@ -8976,7 +8987,7 @@ declare const editorMachine: StateMachine<
|
|
|
8976
8987
|
} & {
|
|
8977
8988
|
dataTransfer: DataTransfer
|
|
8978
8989
|
})
|
|
8979
|
-
|
|
|
8990
|
+
| InternalPatchEvent
|
|
8980
8991
|
| MutationEvent
|
|
8981
8992
|
| {
|
|
8982
8993
|
type: 'normalizing'
|
|
@@ -9120,7 +9131,7 @@ declare const editorMachine: StateMachine<
|
|
|
9120
9131
|
behaviors: Set<Behavior>
|
|
9121
9132
|
converters: Set<Converter>
|
|
9122
9133
|
keyGenerator: () => string
|
|
9123
|
-
pendingEvents: Array<
|
|
9134
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9124
9135
|
schema: EditorSchema
|
|
9125
9136
|
initialReadOnly: boolean
|
|
9126
9137
|
maxBlocks: number | undefined
|
|
@@ -9354,7 +9365,7 @@ declare const editorMachine: StateMachine<
|
|
|
9354
9365
|
} & {
|
|
9355
9366
|
dataTransfer: DataTransfer
|
|
9356
9367
|
})
|
|
9357
|
-
|
|
|
9368
|
+
| InternalPatchEvent
|
|
9358
9369
|
| MutationEvent
|
|
9359
9370
|
| {
|
|
9360
9371
|
type: 'normalizing'
|
|
@@ -9495,7 +9506,7 @@ declare const editorMachine: StateMachine<
|
|
|
9495
9506
|
behaviors: Set<Behavior>
|
|
9496
9507
|
converters: Set<Converter>
|
|
9497
9508
|
keyGenerator: () => string
|
|
9498
|
-
pendingEvents: Array<
|
|
9509
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9499
9510
|
schema: EditorSchema
|
|
9500
9511
|
initialReadOnly: boolean
|
|
9501
9512
|
maxBlocks: number | undefined
|
|
@@ -9729,7 +9740,7 @@ declare const editorMachine: StateMachine<
|
|
|
9729
9740
|
} & {
|
|
9730
9741
|
dataTransfer: DataTransfer
|
|
9731
9742
|
})
|
|
9732
|
-
|
|
|
9743
|
+
| InternalPatchEvent
|
|
9733
9744
|
| MutationEvent
|
|
9734
9745
|
| {
|
|
9735
9746
|
type: 'normalizing'
|
|
@@ -9882,7 +9893,7 @@ declare const editorMachine: StateMachine<
|
|
|
9882
9893
|
behaviors: Set<Behavior>
|
|
9883
9894
|
converters: Set<Converter>
|
|
9884
9895
|
keyGenerator: () => string
|
|
9885
|
-
pendingEvents: Array<
|
|
9896
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9886
9897
|
schema: EditorSchema
|
|
9887
9898
|
initialReadOnly: boolean
|
|
9888
9899
|
maxBlocks: number | undefined
|
|
@@ -9914,7 +9925,9 @@ declare const editorMachine: StateMachine<
|
|
|
9914
9925
|
behaviors: Set<Behavior>
|
|
9915
9926
|
converters: Set<Converter>
|
|
9916
9927
|
keyGenerator: () => string
|
|
9917
|
-
pendingEvents: Array<
|
|
9928
|
+
pendingEvents: Array<
|
|
9929
|
+
InternalPatchEvent | MutationEvent
|
|
9930
|
+
>
|
|
9918
9931
|
schema: EditorSchema
|
|
9919
9932
|
initialReadOnly: boolean
|
|
9920
9933
|
maxBlocks: number | undefined
|
|
@@ -9942,7 +9955,7 @@ declare const editorMachine: StateMachine<
|
|
|
9942
9955
|
behaviors: Set<Behavior>
|
|
9943
9956
|
converters: Set<Converter>
|
|
9944
9957
|
keyGenerator: () => string
|
|
9945
|
-
pendingEvents: Array<
|
|
9958
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9946
9959
|
schema: EditorSchema
|
|
9947
9960
|
initialReadOnly: boolean
|
|
9948
9961
|
maxBlocks: number | undefined
|
|
@@ -9971,7 +9984,7 @@ declare const editorMachine: StateMachine<
|
|
|
9971
9984
|
behaviors: Set<Behavior>
|
|
9972
9985
|
converters: Set<Converter>
|
|
9973
9986
|
keyGenerator: () => string
|
|
9974
|
-
pendingEvents: Array<
|
|
9987
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9975
9988
|
schema: EditorSchema
|
|
9976
9989
|
initialReadOnly: boolean
|
|
9977
9990
|
maxBlocks: number | undefined
|
|
@@ -9998,7 +10011,7 @@ declare const editorMachine: StateMachine<
|
|
|
9998
10011
|
behaviors: Set<Behavior>
|
|
9999
10012
|
converters: Set<Converter>
|
|
10000
10013
|
keyGenerator: () => string
|
|
10001
|
-
pendingEvents: Array<
|
|
10014
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10002
10015
|
schema: EditorSchema
|
|
10003
10016
|
initialReadOnly: boolean
|
|
10004
10017
|
maxBlocks: number | undefined
|
|
@@ -10252,7 +10265,7 @@ declare const editorMachine: StateMachine<
|
|
|
10252
10265
|
} & {
|
|
10253
10266
|
dataTransfer: DataTransfer
|
|
10254
10267
|
})
|
|
10255
|
-
|
|
|
10268
|
+
| InternalPatchEvent
|
|
10256
10269
|
| MutationEvent
|
|
10257
10270
|
| {
|
|
10258
10271
|
type: 'normalizing'
|
|
@@ -10610,6 +10623,7 @@ declare const editorMachine: StateMachine<
|
|
|
10610
10623
|
dataTransfer: DataTransfer
|
|
10611
10624
|
})
|
|
10612
10625
|
| PatchEvent
|
|
10626
|
+
| InternalPatchEvent
|
|
10613
10627
|
| MutationEvent
|
|
10614
10628
|
| PatchesEvent
|
|
10615
10629
|
| {
|
|
@@ -10667,7 +10681,7 @@ declare const editorMachine: StateMachine<
|
|
|
10667
10681
|
behaviors: Set<Behavior>
|
|
10668
10682
|
converters: Set<Converter>
|
|
10669
10683
|
keyGenerator: () => string
|
|
10670
|
-
pendingEvents: Array<
|
|
10684
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10671
10685
|
schema: EditorSchema
|
|
10672
10686
|
initialReadOnly: boolean
|
|
10673
10687
|
maxBlocks: number | undefined
|
|
@@ -10907,7 +10921,7 @@ declare const editorMachine: StateMachine<
|
|
|
10907
10921
|
} & {
|
|
10908
10922
|
dataTransfer: DataTransfer
|
|
10909
10923
|
})
|
|
10910
|
-
|
|
|
10924
|
+
| InternalPatchEvent
|
|
10911
10925
|
| MutationEvent
|
|
10912
10926
|
| {
|
|
10913
10927
|
type: 'normalizing'
|
|
@@ -11265,6 +11279,7 @@ declare const editorMachine: StateMachine<
|
|
|
11265
11279
|
dataTransfer: DataTransfer
|
|
11266
11280
|
})
|
|
11267
11281
|
| PatchEvent
|
|
11282
|
+
| InternalPatchEvent
|
|
11268
11283
|
| MutationEvent
|
|
11269
11284
|
| PatchesEvent
|
|
11270
11285
|
| {
|
|
@@ -11322,7 +11337,7 @@ declare const editorMachine: StateMachine<
|
|
|
11322
11337
|
behaviors: Set<Behavior>
|
|
11323
11338
|
converters: Set<Converter>
|
|
11324
11339
|
keyGenerator: () => string
|
|
11325
|
-
pendingEvents: Array<
|
|
11340
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11326
11341
|
schema: EditorSchema
|
|
11327
11342
|
initialReadOnly: boolean
|
|
11328
11343
|
maxBlocks: number | undefined
|
|
@@ -11555,7 +11570,7 @@ declare const editorMachine: StateMachine<
|
|
|
11555
11570
|
} & {
|
|
11556
11571
|
dataTransfer: DataTransfer
|
|
11557
11572
|
})
|
|
11558
|
-
|
|
|
11573
|
+
| InternalPatchEvent
|
|
11559
11574
|
| MutationEvent
|
|
11560
11575
|
| {
|
|
11561
11576
|
type: 'normalizing'
|
|
@@ -11913,6 +11928,7 @@ declare const editorMachine: StateMachine<
|
|
|
11913
11928
|
dataTransfer: DataTransfer
|
|
11914
11929
|
})
|
|
11915
11930
|
| PatchEvent
|
|
11931
|
+
| InternalPatchEvent
|
|
11916
11932
|
| MutationEvent
|
|
11917
11933
|
| PatchesEvent
|
|
11918
11934
|
| {
|
|
@@ -11970,7 +11986,7 @@ declare const editorMachine: StateMachine<
|
|
|
11970
11986
|
behaviors: Set<Behavior>
|
|
11971
11987
|
converters: Set<Converter>
|
|
11972
11988
|
keyGenerator: () => string
|
|
11973
|
-
pendingEvents: Array<
|
|
11989
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11974
11990
|
schema: EditorSchema
|
|
11975
11991
|
initialReadOnly: boolean
|
|
11976
11992
|
maxBlocks: number | undefined
|
|
@@ -12203,7 +12219,7 @@ declare const editorMachine: StateMachine<
|
|
|
12203
12219
|
} & {
|
|
12204
12220
|
dataTransfer: DataTransfer
|
|
12205
12221
|
})
|
|
12206
|
-
|
|
|
12222
|
+
| InternalPatchEvent
|
|
12207
12223
|
| MutationEvent
|
|
12208
12224
|
| {
|
|
12209
12225
|
type: 'normalizing'
|
|
@@ -12561,6 +12577,7 @@ declare const editorMachine: StateMachine<
|
|
|
12561
12577
|
dataTransfer: DataTransfer
|
|
12562
12578
|
})
|
|
12563
12579
|
| PatchEvent
|
|
12580
|
+
| InternalPatchEvent
|
|
12564
12581
|
| MutationEvent
|
|
12565
12582
|
| PatchesEvent
|
|
12566
12583
|
| {
|
|
@@ -12618,7 +12635,7 @@ declare const editorMachine: StateMachine<
|
|
|
12618
12635
|
behaviors: Set<Behavior>
|
|
12619
12636
|
converters: Set<Converter>
|
|
12620
12637
|
keyGenerator: () => string
|
|
12621
|
-
pendingEvents: Array<
|
|
12638
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12622
12639
|
schema: EditorSchema
|
|
12623
12640
|
initialReadOnly: boolean
|
|
12624
12641
|
maxBlocks: number | undefined
|
|
@@ -12864,7 +12881,7 @@ declare const editorMachine: StateMachine<
|
|
|
12864
12881
|
} & {
|
|
12865
12882
|
dataTransfer: DataTransfer
|
|
12866
12883
|
})
|
|
12867
|
-
|
|
|
12884
|
+
| InternalPatchEvent
|
|
12868
12885
|
| MutationEvent
|
|
12869
12886
|
| {
|
|
12870
12887
|
type: 'normalizing'
|
|
@@ -13222,6 +13239,7 @@ declare const editorMachine: StateMachine<
|
|
|
13222
13239
|
dataTransfer: DataTransfer
|
|
13223
13240
|
})
|
|
13224
13241
|
| PatchEvent
|
|
13242
|
+
| InternalPatchEvent
|
|
13225
13243
|
| MutationEvent
|
|
13226
13244
|
| PatchesEvent
|
|
13227
13245
|
| {
|
|
@@ -13279,7 +13297,7 @@ declare const editorMachine: StateMachine<
|
|
|
13279
13297
|
behaviors: Set<Behavior>
|
|
13280
13298
|
converters: Set<Converter>
|
|
13281
13299
|
keyGenerator: () => string
|
|
13282
|
-
pendingEvents: Array<
|
|
13300
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13283
13301
|
schema: EditorSchema
|
|
13284
13302
|
initialReadOnly: boolean
|
|
13285
13303
|
maxBlocks: number | undefined
|
|
@@ -13526,7 +13544,7 @@ declare const editorMachine: StateMachine<
|
|
|
13526
13544
|
} & {
|
|
13527
13545
|
dataTransfer: DataTransfer
|
|
13528
13546
|
})
|
|
13529
|
-
|
|
|
13547
|
+
| InternalPatchEvent
|
|
13530
13548
|
| MutationEvent
|
|
13531
13549
|
| {
|
|
13532
13550
|
type: 'normalizing'
|
|
@@ -13884,6 +13902,7 @@ declare const editorMachine: StateMachine<
|
|
|
13884
13902
|
dataTransfer: DataTransfer
|
|
13885
13903
|
})
|
|
13886
13904
|
| PatchEvent
|
|
13905
|
+
| InternalPatchEvent
|
|
13887
13906
|
| MutationEvent
|
|
13888
13907
|
| PatchesEvent
|
|
13889
13908
|
| {
|
|
@@ -13941,7 +13960,7 @@ declare const editorMachine: StateMachine<
|
|
|
13941
13960
|
behaviors: Set<Behavior>
|
|
13942
13961
|
converters: Set<Converter>
|
|
13943
13962
|
keyGenerator: () => string
|
|
13944
|
-
pendingEvents: Array<
|
|
13963
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13945
13964
|
schema: EditorSchema
|
|
13946
13965
|
initialReadOnly: boolean
|
|
13947
13966
|
maxBlocks: number | undefined
|
|
@@ -14174,7 +14193,7 @@ declare const editorMachine: StateMachine<
|
|
|
14174
14193
|
} & {
|
|
14175
14194
|
dataTransfer: DataTransfer
|
|
14176
14195
|
})
|
|
14177
|
-
|
|
|
14196
|
+
| InternalPatchEvent
|
|
14178
14197
|
| MutationEvent
|
|
14179
14198
|
| {
|
|
14180
14199
|
type: 'normalizing'
|
|
@@ -14532,6 +14551,7 @@ declare const editorMachine: StateMachine<
|
|
|
14532
14551
|
dataTransfer: DataTransfer
|
|
14533
14552
|
})
|
|
14534
14553
|
| PatchEvent
|
|
14554
|
+
| InternalPatchEvent
|
|
14535
14555
|
| MutationEvent
|
|
14536
14556
|
| PatchesEvent
|
|
14537
14557
|
| {
|
|
@@ -14589,7 +14609,7 @@ declare const editorMachine: StateMachine<
|
|
|
14589
14609
|
behaviors: Set<Behavior>
|
|
14590
14610
|
converters: Set<Converter>
|
|
14591
14611
|
keyGenerator: () => string
|
|
14592
|
-
pendingEvents: Array<
|
|
14612
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14593
14613
|
schema: EditorSchema
|
|
14594
14614
|
initialReadOnly: boolean
|
|
14595
14615
|
maxBlocks: number | undefined
|
|
@@ -14825,7 +14845,7 @@ declare const editorMachine: StateMachine<
|
|
|
14825
14845
|
} & {
|
|
14826
14846
|
dataTransfer: DataTransfer
|
|
14827
14847
|
})
|
|
14828
|
-
|
|
|
14848
|
+
| InternalPatchEvent
|
|
14829
14849
|
| MutationEvent
|
|
14830
14850
|
| {
|
|
14831
14851
|
type: 'normalizing'
|
|
@@ -15183,6 +15203,7 @@ declare const editorMachine: StateMachine<
|
|
|
15183
15203
|
dataTransfer: DataTransfer
|
|
15184
15204
|
})
|
|
15185
15205
|
| PatchEvent
|
|
15206
|
+
| InternalPatchEvent
|
|
15186
15207
|
| MutationEvent
|
|
15187
15208
|
| PatchesEvent
|
|
15188
15209
|
| {
|
|
@@ -15240,7 +15261,7 @@ declare const editorMachine: StateMachine<
|
|
|
15240
15261
|
behaviors: Set<Behavior>
|
|
15241
15262
|
converters: Set<Converter>
|
|
15242
15263
|
keyGenerator: () => string
|
|
15243
|
-
pendingEvents: Array<
|
|
15264
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15244
15265
|
schema: EditorSchema
|
|
15245
15266
|
initialReadOnly: boolean
|
|
15246
15267
|
maxBlocks: number | undefined
|
|
@@ -15527,7 +15548,7 @@ declare const editorMachine: StateMachine<
|
|
|
15527
15548
|
} & {
|
|
15528
15549
|
dataTransfer: DataTransfer
|
|
15529
15550
|
})
|
|
15530
|
-
|
|
|
15551
|
+
| InternalPatchEvent
|
|
15531
15552
|
| MutationEvent
|
|
15532
15553
|
| {
|
|
15533
15554
|
type: 'normalizing'
|
|
@@ -15885,6 +15906,7 @@ declare const editorMachine: StateMachine<
|
|
|
15885
15906
|
dataTransfer: DataTransfer
|
|
15886
15907
|
})
|
|
15887
15908
|
| PatchEvent
|
|
15909
|
+
| InternalPatchEvent
|
|
15888
15910
|
| MutationEvent
|
|
15889
15911
|
| PatchesEvent
|
|
15890
15912
|
| {
|
|
@@ -15942,7 +15964,7 @@ declare const editorMachine: StateMachine<
|
|
|
15942
15964
|
behaviors: Set<Behavior>
|
|
15943
15965
|
converters: Set<Converter>
|
|
15944
15966
|
keyGenerator: () => string
|
|
15945
|
-
pendingEvents: Array<
|
|
15967
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15946
15968
|
schema: EditorSchema
|
|
15947
15969
|
initialReadOnly: boolean
|
|
15948
15970
|
maxBlocks: number | undefined
|
|
@@ -16184,7 +16206,7 @@ declare const editorMachine: StateMachine<
|
|
|
16184
16206
|
} & {
|
|
16185
16207
|
dataTransfer: DataTransfer
|
|
16186
16208
|
})
|
|
16187
|
-
|
|
|
16209
|
+
| InternalPatchEvent
|
|
16188
16210
|
| MutationEvent
|
|
16189
16211
|
| {
|
|
16190
16212
|
type: 'normalizing'
|
|
@@ -16542,6 +16564,7 @@ declare const editorMachine: StateMachine<
|
|
|
16542
16564
|
dataTransfer: DataTransfer
|
|
16543
16565
|
})
|
|
16544
16566
|
| PatchEvent
|
|
16567
|
+
| InternalPatchEvent
|
|
16545
16568
|
| MutationEvent
|
|
16546
16569
|
| PatchesEvent
|
|
16547
16570
|
| {
|
|
@@ -16599,7 +16622,7 @@ declare const editorMachine: StateMachine<
|
|
|
16599
16622
|
behaviors: Set<Behavior>
|
|
16600
16623
|
converters: Set<Converter>
|
|
16601
16624
|
keyGenerator: () => string
|
|
16602
|
-
pendingEvents: Array<
|
|
16625
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16603
16626
|
schema: EditorSchema
|
|
16604
16627
|
initialReadOnly: boolean
|
|
16605
16628
|
maxBlocks: number | undefined
|
|
@@ -16842,7 +16865,7 @@ declare const editorMachine: StateMachine<
|
|
|
16842
16865
|
} & {
|
|
16843
16866
|
dataTransfer: DataTransfer
|
|
16844
16867
|
})
|
|
16845
|
-
|
|
|
16868
|
+
| InternalPatchEvent
|
|
16846
16869
|
| MutationEvent
|
|
16847
16870
|
| {
|
|
16848
16871
|
type: 'normalizing'
|
|
@@ -17200,6 +17223,7 @@ declare const editorMachine: StateMachine<
|
|
|
17200
17223
|
dataTransfer: DataTransfer
|
|
17201
17224
|
})
|
|
17202
17225
|
| PatchEvent
|
|
17226
|
+
| InternalPatchEvent
|
|
17203
17227
|
| MutationEvent
|
|
17204
17228
|
| PatchesEvent
|
|
17205
17229
|
| {
|
|
@@ -17257,7 +17281,7 @@ declare const editorMachine: StateMachine<
|
|
|
17257
17281
|
behaviors: Set<Behavior>
|
|
17258
17282
|
converters: Set<Converter>
|
|
17259
17283
|
keyGenerator: () => string
|
|
17260
|
-
pendingEvents: Array<
|
|
17284
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17261
17285
|
schema: EditorSchema
|
|
17262
17286
|
initialReadOnly: boolean
|
|
17263
17287
|
maxBlocks: number | undefined
|
|
@@ -17491,7 +17515,7 @@ declare const editorMachine: StateMachine<
|
|
|
17491
17515
|
} & {
|
|
17492
17516
|
dataTransfer: DataTransfer
|
|
17493
17517
|
})
|
|
17494
|
-
|
|
|
17518
|
+
| InternalPatchEvent
|
|
17495
17519
|
| MutationEvent
|
|
17496
17520
|
| {
|
|
17497
17521
|
type: 'normalizing'
|
|
@@ -17849,6 +17873,7 @@ declare const editorMachine: StateMachine<
|
|
|
17849
17873
|
dataTransfer: DataTransfer
|
|
17850
17874
|
})
|
|
17851
17875
|
| PatchEvent
|
|
17876
|
+
| InternalPatchEvent
|
|
17852
17877
|
| MutationEvent
|
|
17853
17878
|
| PatchesEvent
|
|
17854
17879
|
| {
|
|
@@ -17906,7 +17931,7 @@ declare const editorMachine: StateMachine<
|
|
|
17906
17931
|
behaviors: Set<Behavior>
|
|
17907
17932
|
converters: Set<Converter>
|
|
17908
17933
|
keyGenerator: () => string
|
|
17909
|
-
pendingEvents: Array<
|
|
17934
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17910
17935
|
schema: EditorSchema
|
|
17911
17936
|
initialReadOnly: boolean
|
|
17912
17937
|
maxBlocks: number | undefined
|
|
@@ -18142,7 +18167,7 @@ declare const editorMachine: StateMachine<
|
|
|
18142
18167
|
} & {
|
|
18143
18168
|
dataTransfer: DataTransfer
|
|
18144
18169
|
})
|
|
18145
|
-
|
|
|
18170
|
+
| InternalPatchEvent
|
|
18146
18171
|
| MutationEvent
|
|
18147
18172
|
| {
|
|
18148
18173
|
type: 'normalizing'
|
|
@@ -18500,6 +18525,7 @@ declare const editorMachine: StateMachine<
|
|
|
18500
18525
|
dataTransfer: DataTransfer
|
|
18501
18526
|
})
|
|
18502
18527
|
| PatchEvent
|
|
18528
|
+
| InternalPatchEvent
|
|
18503
18529
|
| MutationEvent
|
|
18504
18530
|
| PatchesEvent
|
|
18505
18531
|
| {
|
|
@@ -18557,7 +18583,7 @@ declare const editorMachine: StateMachine<
|
|
|
18557
18583
|
behaviors: Set<Behavior>
|
|
18558
18584
|
converters: Set<Converter>
|
|
18559
18585
|
keyGenerator: () => string
|
|
18560
|
-
pendingEvents: Array<
|
|
18586
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18561
18587
|
schema: EditorSchema
|
|
18562
18588
|
initialReadOnly: boolean
|
|
18563
18589
|
maxBlocks: number | undefined
|
|
@@ -18799,7 +18825,7 @@ declare const editorMachine: StateMachine<
|
|
|
18799
18825
|
} & {
|
|
18800
18826
|
dataTransfer: DataTransfer
|
|
18801
18827
|
})
|
|
18802
|
-
|
|
|
18828
|
+
| InternalPatchEvent
|
|
18803
18829
|
| MutationEvent
|
|
18804
18830
|
| {
|
|
18805
18831
|
type: 'normalizing'
|
|
@@ -19157,6 +19183,7 @@ declare const editorMachine: StateMachine<
|
|
|
19157
19183
|
dataTransfer: DataTransfer
|
|
19158
19184
|
})
|
|
19159
19185
|
| PatchEvent
|
|
19186
|
+
| InternalPatchEvent
|
|
19160
19187
|
| MutationEvent
|
|
19161
19188
|
| PatchesEvent
|
|
19162
19189
|
| {
|
|
@@ -19252,7 +19279,7 @@ declare const editorMachine: StateMachine<
|
|
|
19252
19279
|
readonly 'setting up': {
|
|
19253
19280
|
readonly exit: readonly ['emit ready']
|
|
19254
19281
|
readonly on: {
|
|
19255
|
-
readonly 'patch': {
|
|
19282
|
+
readonly 'internal.patch': {
|
|
19256
19283
|
readonly actions: 'defer event'
|
|
19257
19284
|
}
|
|
19258
19285
|
readonly 'mutation': {
|
|
@@ -19268,14 +19295,14 @@ declare const editorMachine: StateMachine<
|
|
|
19268
19295
|
readonly states: {
|
|
19269
19296
|
readonly idle: {
|
|
19270
19297
|
readonly on: {
|
|
19271
|
-
readonly normalizing: {
|
|
19298
|
+
readonly 'normalizing': {
|
|
19272
19299
|
readonly target: 'normalizing'
|
|
19273
19300
|
}
|
|
19274
|
-
readonly patch: {
|
|
19301
|
+
readonly 'internal.patch': {
|
|
19275
19302
|
readonly actions: 'defer event'
|
|
19276
19303
|
readonly target: '#editor.setup.dirty'
|
|
19277
19304
|
}
|
|
19278
|
-
readonly mutation: {
|
|
19305
|
+
readonly 'mutation': {
|
|
19279
19306
|
readonly actions: 'defer event'
|
|
19280
19307
|
readonly target: '#editor.setup.dirty'
|
|
19281
19308
|
}
|
|
@@ -19286,7 +19313,7 @@ declare const editorMachine: StateMachine<
|
|
|
19286
19313
|
readonly 'done normalizing': {
|
|
19287
19314
|
readonly target: 'idle'
|
|
19288
19315
|
}
|
|
19289
|
-
readonly 'patch': {
|
|
19316
|
+
readonly 'internal.patch': {
|
|
19290
19317
|
readonly actions: 'defer event'
|
|
19291
19318
|
}
|
|
19292
19319
|
readonly 'mutation': {
|
|
@@ -19302,10 +19329,10 @@ declare const editorMachine: StateMachine<
|
|
|
19302
19329
|
'clear pending events',
|
|
19303
19330
|
]
|
|
19304
19331
|
readonly on: {
|
|
19305
|
-
readonly patch: {
|
|
19332
|
+
readonly 'internal.patch': {
|
|
19306
19333
|
readonly actions: 'emit patch event'
|
|
19307
19334
|
}
|
|
19308
|
-
readonly mutation: {
|
|
19335
|
+
readonly 'mutation': {
|
|
19309
19336
|
readonly actions: 'emit mutation event'
|
|
19310
19337
|
}
|
|
19311
19338
|
}
|
|
@@ -19460,6 +19487,11 @@ declare type HistoryItem = {
|
|
|
19460
19487
|
timestamp: Date
|
|
19461
19488
|
}
|
|
19462
19489
|
|
|
19490
|
+
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
19491
|
+
actionId?: string
|
|
19492
|
+
value: Array<PortableTextBlock>
|
|
19493
|
+
}
|
|
19494
|
+
|
|
19463
19495
|
/**
|
|
19464
19496
|
* The editor has invalid data in the value that can be resolved by the user
|
|
19465
19497
|
* @beta */
|
|
@@ -19585,6 +19617,19 @@ declare type MutationEvent = {
|
|
|
19585
19617
|
value: Array<PortableTextBlock> | undefined
|
|
19586
19618
|
}
|
|
19587
19619
|
|
|
19620
|
+
declare type NamespaceEvent<
|
|
19621
|
+
TEvent,
|
|
19622
|
+
TNamespace extends string,
|
|
19623
|
+
> = TEvent extends {
|
|
19624
|
+
type: infer TEventType
|
|
19625
|
+
}
|
|
19626
|
+
? {
|
|
19627
|
+
[K in keyof TEvent]: K extends 'type'
|
|
19628
|
+
? `${TNamespace}.${TEventType & string}`
|
|
19629
|
+
: TEvent[K]
|
|
19630
|
+
}
|
|
19631
|
+
: never
|
|
19632
|
+
|
|
19588
19633
|
/**
|
|
19589
19634
|
* @beta
|
|
19590
19635
|
*/
|