@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/utils/index.d.ts
CHANGED
|
@@ -364,7 +364,7 @@ declare const editorMachine: StateMachine<
|
|
|
364
364
|
behaviors: Set<Behavior>
|
|
365
365
|
converters: Set<Converter>
|
|
366
366
|
keyGenerator: () => string
|
|
367
|
-
pendingEvents: Array<
|
|
367
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
368
368
|
schema: EditorSchema
|
|
369
369
|
initialReadOnly: boolean
|
|
370
370
|
maxBlocks: number | undefined
|
|
@@ -594,7 +594,7 @@ declare const editorMachine: StateMachine<
|
|
|
594
594
|
} & {
|
|
595
595
|
dataTransfer: DataTransfer
|
|
596
596
|
})
|
|
597
|
-
|
|
|
597
|
+
| InternalPatchEvent
|
|
598
598
|
| MutationEvent
|
|
599
599
|
| {
|
|
600
600
|
type: 'normalizing'
|
|
@@ -1029,6 +1029,7 @@ declare const editorMachine: StateMachine<
|
|
|
1029
1029
|
dataTransfer: DataTransfer
|
|
1030
1030
|
})
|
|
1031
1031
|
| PatchEvent
|
|
1032
|
+
| InternalPatchEvent
|
|
1032
1033
|
| MutationEvent
|
|
1033
1034
|
| PatchesEvent
|
|
1034
1035
|
| {
|
|
@@ -1121,7 +1122,7 @@ declare const editorMachine: StateMachine<
|
|
|
1121
1122
|
behaviors: Set<Behavior>
|
|
1122
1123
|
converters: Set<Converter>
|
|
1123
1124
|
keyGenerator: () => string
|
|
1124
|
-
pendingEvents: Array<
|
|
1125
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1125
1126
|
schema: EditorSchema
|
|
1126
1127
|
initialReadOnly: boolean
|
|
1127
1128
|
maxBlocks: number | undefined
|
|
@@ -1351,7 +1352,7 @@ declare const editorMachine: StateMachine<
|
|
|
1351
1352
|
} & {
|
|
1352
1353
|
dataTransfer: DataTransfer
|
|
1353
1354
|
})
|
|
1354
|
-
|
|
|
1355
|
+
| InternalPatchEvent
|
|
1355
1356
|
| MutationEvent
|
|
1356
1357
|
| {
|
|
1357
1358
|
type: 'normalizing'
|
|
@@ -1708,7 +1709,7 @@ declare const editorMachine: StateMachine<
|
|
|
1708
1709
|
} & {
|
|
1709
1710
|
dataTransfer: DataTransfer
|
|
1710
1711
|
})
|
|
1711
|
-
|
|
|
1712
|
+
| InternalPatchEvent
|
|
1712
1713
|
| MutationEvent
|
|
1713
1714
|
| {
|
|
1714
1715
|
type: 'normalizing'
|
|
@@ -1855,7 +1856,7 @@ declare const editorMachine: StateMachine<
|
|
|
1855
1856
|
behaviors: Set<Behavior>
|
|
1856
1857
|
converters: Set<Converter>
|
|
1857
1858
|
keyGenerator: () => string
|
|
1858
|
-
pendingEvents: Array<
|
|
1859
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1859
1860
|
schema: EditorSchema
|
|
1860
1861
|
initialReadOnly: boolean
|
|
1861
1862
|
maxBlocks: number | undefined
|
|
@@ -2089,7 +2090,7 @@ declare const editorMachine: StateMachine<
|
|
|
2089
2090
|
} & {
|
|
2090
2091
|
dataTransfer: DataTransfer
|
|
2091
2092
|
})
|
|
2092
|
-
|
|
|
2093
|
+
| InternalPatchEvent
|
|
2093
2094
|
| MutationEvent
|
|
2094
2095
|
| {
|
|
2095
2096
|
type: 'normalizing'
|
|
@@ -2445,6 +2446,7 @@ declare const editorMachine: StateMachine<
|
|
|
2445
2446
|
dataTransfer: DataTransfer
|
|
2446
2447
|
})
|
|
2447
2448
|
| PatchEvent
|
|
2449
|
+
| InternalPatchEvent
|
|
2448
2450
|
| MutationEvent
|
|
2449
2451
|
| PatchesEvent
|
|
2450
2452
|
| {
|
|
@@ -2502,7 +2504,7 @@ declare const editorMachine: StateMachine<
|
|
|
2502
2504
|
behaviors: Set<Behavior>
|
|
2503
2505
|
converters: Set<Converter>
|
|
2504
2506
|
keyGenerator: () => string
|
|
2505
|
-
pendingEvents: Array<
|
|
2507
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2506
2508
|
schema: EditorSchema
|
|
2507
2509
|
initialReadOnly: boolean
|
|
2508
2510
|
maxBlocks: number | undefined
|
|
@@ -2735,7 +2737,7 @@ declare const editorMachine: StateMachine<
|
|
|
2735
2737
|
} & {
|
|
2736
2738
|
dataTransfer: DataTransfer
|
|
2737
2739
|
})
|
|
2738
|
-
|
|
|
2740
|
+
| InternalPatchEvent
|
|
2739
2741
|
| MutationEvent
|
|
2740
2742
|
| {
|
|
2741
2743
|
type: 'normalizing'
|
|
@@ -3091,6 +3093,7 @@ declare const editorMachine: StateMachine<
|
|
|
3091
3093
|
dataTransfer: DataTransfer
|
|
3092
3094
|
})
|
|
3093
3095
|
| PatchEvent
|
|
3096
|
+
| InternalPatchEvent
|
|
3094
3097
|
| MutationEvent
|
|
3095
3098
|
| PatchesEvent
|
|
3096
3099
|
| {
|
|
@@ -3148,7 +3151,7 @@ declare const editorMachine: StateMachine<
|
|
|
3148
3151
|
behaviors: Set<Behavior>
|
|
3149
3152
|
converters: Set<Converter>
|
|
3150
3153
|
keyGenerator: () => string
|
|
3151
|
-
pendingEvents: Array<
|
|
3154
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3152
3155
|
schema: EditorSchema
|
|
3153
3156
|
initialReadOnly: boolean
|
|
3154
3157
|
maxBlocks: number | undefined
|
|
@@ -3384,7 +3387,7 @@ declare const editorMachine: StateMachine<
|
|
|
3384
3387
|
} & {
|
|
3385
3388
|
dataTransfer: DataTransfer
|
|
3386
3389
|
})
|
|
3387
|
-
|
|
|
3390
|
+
| InternalPatchEvent
|
|
3388
3391
|
| MutationEvent
|
|
3389
3392
|
| {
|
|
3390
3393
|
type: 'normalizing'
|
|
@@ -3740,6 +3743,7 @@ declare const editorMachine: StateMachine<
|
|
|
3740
3743
|
dataTransfer: DataTransfer
|
|
3741
3744
|
})
|
|
3742
3745
|
| PatchEvent
|
|
3746
|
+
| InternalPatchEvent
|
|
3743
3747
|
| MutationEvent
|
|
3744
3748
|
| PatchesEvent
|
|
3745
3749
|
| {
|
|
@@ -3797,7 +3801,7 @@ declare const editorMachine: StateMachine<
|
|
|
3797
3801
|
behaviors: Set<Behavior>
|
|
3798
3802
|
converters: Set<Converter>
|
|
3799
3803
|
keyGenerator: () => string
|
|
3800
|
-
pendingEvents: Array<
|
|
3804
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3801
3805
|
schema: EditorSchema
|
|
3802
3806
|
initialReadOnly: boolean
|
|
3803
3807
|
maxBlocks: number | undefined
|
|
@@ -4032,7 +4036,7 @@ declare const editorMachine: StateMachine<
|
|
|
4032
4036
|
} & {
|
|
4033
4037
|
dataTransfer: DataTransfer
|
|
4034
4038
|
})
|
|
4035
|
-
|
|
|
4039
|
+
| InternalPatchEvent
|
|
4036
4040
|
| MutationEvent
|
|
4037
4041
|
| {
|
|
4038
4042
|
type: 'normalizing'
|
|
@@ -4388,6 +4392,7 @@ declare const editorMachine: StateMachine<
|
|
|
4388
4392
|
dataTransfer: DataTransfer
|
|
4389
4393
|
})
|
|
4390
4394
|
| PatchEvent
|
|
4395
|
+
| InternalPatchEvent
|
|
4391
4396
|
| MutationEvent
|
|
4392
4397
|
| PatchesEvent
|
|
4393
4398
|
| {
|
|
@@ -4445,7 +4450,7 @@ declare const editorMachine: StateMachine<
|
|
|
4445
4450
|
behaviors: Set<Behavior>
|
|
4446
4451
|
converters: Set<Converter>
|
|
4447
4452
|
keyGenerator: () => string
|
|
4448
|
-
pendingEvents: Array<
|
|
4453
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4449
4454
|
schema: EditorSchema
|
|
4450
4455
|
initialReadOnly: boolean
|
|
4451
4456
|
maxBlocks: number | undefined
|
|
@@ -4679,7 +4684,7 @@ declare const editorMachine: StateMachine<
|
|
|
4679
4684
|
} & {
|
|
4680
4685
|
dataTransfer: DataTransfer
|
|
4681
4686
|
})
|
|
4682
|
-
|
|
|
4687
|
+
| InternalPatchEvent
|
|
4683
4688
|
| MutationEvent
|
|
4684
4689
|
| {
|
|
4685
4690
|
type: 'normalizing'
|
|
@@ -5035,6 +5040,7 @@ declare const editorMachine: StateMachine<
|
|
|
5035
5040
|
dataTransfer: DataTransfer
|
|
5036
5041
|
})
|
|
5037
5042
|
| PatchEvent
|
|
5043
|
+
| InternalPatchEvent
|
|
5038
5044
|
| MutationEvent
|
|
5039
5045
|
| PatchesEvent
|
|
5040
5046
|
| {
|
|
@@ -5093,7 +5099,7 @@ declare const editorMachine: StateMachine<
|
|
|
5093
5099
|
behaviors: Set<Behavior>
|
|
5094
5100
|
converters: Set<Converter>
|
|
5095
5101
|
keyGenerator: () => string
|
|
5096
|
-
pendingEvents: Array<
|
|
5102
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5097
5103
|
schema: EditorSchema
|
|
5098
5104
|
initialReadOnly: boolean
|
|
5099
5105
|
maxBlocks: number | undefined
|
|
@@ -5327,7 +5333,7 @@ declare const editorMachine: StateMachine<
|
|
|
5327
5333
|
} & {
|
|
5328
5334
|
dataTransfer: DataTransfer
|
|
5329
5335
|
})
|
|
5330
|
-
|
|
|
5336
|
+
| InternalPatchEvent
|
|
5331
5337
|
| MutationEvent
|
|
5332
5338
|
| {
|
|
5333
5339
|
type: 'normalizing'
|
|
@@ -5466,7 +5472,7 @@ declare const editorMachine: StateMachine<
|
|
|
5466
5472
|
behaviors: Set<Behavior>
|
|
5467
5473
|
converters: Set<Converter>
|
|
5468
5474
|
keyGenerator: () => string
|
|
5469
|
-
pendingEvents: Array<
|
|
5475
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5470
5476
|
schema: EditorSchema
|
|
5471
5477
|
initialReadOnly: boolean
|
|
5472
5478
|
maxBlocks: number | undefined
|
|
@@ -5700,7 +5706,7 @@ declare const editorMachine: StateMachine<
|
|
|
5700
5706
|
} & {
|
|
5701
5707
|
dataTransfer: DataTransfer
|
|
5702
5708
|
})
|
|
5703
|
-
|
|
|
5709
|
+
| InternalPatchEvent
|
|
5704
5710
|
| MutationEvent
|
|
5705
5711
|
| {
|
|
5706
5712
|
type: 'normalizing'
|
|
@@ -6056,6 +6062,7 @@ declare const editorMachine: StateMachine<
|
|
|
6056
6062
|
dataTransfer: DataTransfer
|
|
6057
6063
|
})
|
|
6058
6064
|
| PatchEvent
|
|
6065
|
+
| InternalPatchEvent
|
|
6059
6066
|
| MutationEvent
|
|
6060
6067
|
| PatchesEvent
|
|
6061
6068
|
| {
|
|
@@ -6114,7 +6121,7 @@ declare const editorMachine: StateMachine<
|
|
|
6114
6121
|
behaviors: Set<Behavior>
|
|
6115
6122
|
converters: Set<Converter>
|
|
6116
6123
|
keyGenerator: () => string
|
|
6117
|
-
pendingEvents: Array<
|
|
6124
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6118
6125
|
schema: EditorSchema
|
|
6119
6126
|
initialReadOnly: boolean
|
|
6120
6127
|
maxBlocks: number | undefined
|
|
@@ -6348,7 +6355,7 @@ declare const editorMachine: StateMachine<
|
|
|
6348
6355
|
} & {
|
|
6349
6356
|
dataTransfer: DataTransfer
|
|
6350
6357
|
})
|
|
6351
|
-
|
|
|
6358
|
+
| InternalPatchEvent
|
|
6352
6359
|
| MutationEvent
|
|
6353
6360
|
| {
|
|
6354
6361
|
type: 'normalizing'
|
|
@@ -6704,6 +6711,7 @@ declare const editorMachine: StateMachine<
|
|
|
6704
6711
|
dataTransfer: DataTransfer
|
|
6705
6712
|
})
|
|
6706
6713
|
| PatchEvent
|
|
6714
|
+
| InternalPatchEvent
|
|
6707
6715
|
| MutationEvent
|
|
6708
6716
|
| PatchesEvent
|
|
6709
6717
|
| {
|
|
@@ -6761,7 +6769,7 @@ declare const editorMachine: StateMachine<
|
|
|
6761
6769
|
behaviors: Set<Behavior>
|
|
6762
6770
|
converters: Set<Converter>
|
|
6763
6771
|
keyGenerator: () => string
|
|
6764
|
-
pendingEvents: Array<
|
|
6772
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6765
6773
|
schema: EditorSchema
|
|
6766
6774
|
initialReadOnly: boolean
|
|
6767
6775
|
maxBlocks: number | undefined
|
|
@@ -6994,7 +7002,7 @@ declare const editorMachine: StateMachine<
|
|
|
6994
7002
|
} & {
|
|
6995
7003
|
dataTransfer: DataTransfer
|
|
6996
7004
|
})
|
|
6997
|
-
|
|
|
7005
|
+
| InternalPatchEvent
|
|
6998
7006
|
| MutationEvent
|
|
6999
7007
|
| {
|
|
7000
7008
|
type: 'normalizing'
|
|
@@ -7350,6 +7358,7 @@ declare const editorMachine: StateMachine<
|
|
|
7350
7358
|
dataTransfer: DataTransfer
|
|
7351
7359
|
})
|
|
7352
7360
|
| PatchEvent
|
|
7361
|
+
| InternalPatchEvent
|
|
7353
7362
|
| MutationEvent
|
|
7354
7363
|
| PatchesEvent
|
|
7355
7364
|
| {
|
|
@@ -7407,7 +7416,7 @@ declare const editorMachine: StateMachine<
|
|
|
7407
7416
|
behaviors: Set<Behavior>
|
|
7408
7417
|
converters: Set<Converter>
|
|
7409
7418
|
keyGenerator: () => string
|
|
7410
|
-
pendingEvents: Array<
|
|
7419
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7411
7420
|
schema: EditorSchema
|
|
7412
7421
|
initialReadOnly: boolean
|
|
7413
7422
|
maxBlocks: number | undefined
|
|
@@ -7641,7 +7650,7 @@ declare const editorMachine: StateMachine<
|
|
|
7641
7650
|
} & {
|
|
7642
7651
|
dataTransfer: DataTransfer
|
|
7643
7652
|
})
|
|
7644
|
-
|
|
|
7653
|
+
| InternalPatchEvent
|
|
7645
7654
|
| MutationEvent
|
|
7646
7655
|
| {
|
|
7647
7656
|
type: 'normalizing'
|
|
@@ -7997,6 +8006,7 @@ declare const editorMachine: StateMachine<
|
|
|
7997
8006
|
dataTransfer: DataTransfer
|
|
7998
8007
|
})
|
|
7999
8008
|
| PatchEvent
|
|
8009
|
+
| InternalPatchEvent
|
|
8000
8010
|
| MutationEvent
|
|
8001
8011
|
| PatchesEvent
|
|
8002
8012
|
| {
|
|
@@ -8060,7 +8070,7 @@ declare const editorMachine: StateMachine<
|
|
|
8060
8070
|
behaviors: Set<Behavior>
|
|
8061
8071
|
converters: Set<Converter>
|
|
8062
8072
|
keyGenerator: () => string
|
|
8063
|
-
pendingEvents: Array<
|
|
8073
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8064
8074
|
schema: EditorSchema
|
|
8065
8075
|
initialReadOnly: boolean
|
|
8066
8076
|
maxBlocks: number | undefined
|
|
@@ -8291,7 +8301,7 @@ declare const editorMachine: StateMachine<
|
|
|
8291
8301
|
} & {
|
|
8292
8302
|
dataTransfer: DataTransfer
|
|
8293
8303
|
})
|
|
8294
|
-
|
|
|
8304
|
+
| InternalPatchEvent
|
|
8295
8305
|
| MutationEvent
|
|
8296
8306
|
| {
|
|
8297
8307
|
type: 'normalizing'
|
|
@@ -8647,6 +8657,7 @@ declare const editorMachine: StateMachine<
|
|
|
8647
8657
|
dataTransfer: DataTransfer
|
|
8648
8658
|
})
|
|
8649
8659
|
| PatchEvent
|
|
8660
|
+
| InternalPatchEvent
|
|
8650
8661
|
| MutationEvent
|
|
8651
8662
|
| PatchesEvent
|
|
8652
8663
|
| {
|
|
@@ -8707,7 +8718,7 @@ declare const editorMachine: StateMachine<
|
|
|
8707
8718
|
behaviors: Set<Behavior>
|
|
8708
8719
|
converters: Set<Converter>
|
|
8709
8720
|
keyGenerator: () => string
|
|
8710
|
-
pendingEvents: Array<
|
|
8721
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8711
8722
|
schema: EditorSchema
|
|
8712
8723
|
initialReadOnly: boolean
|
|
8713
8724
|
maxBlocks: number | undefined
|
|
@@ -8941,7 +8952,7 @@ declare const editorMachine: StateMachine<
|
|
|
8941
8952
|
} & {
|
|
8942
8953
|
dataTransfer: DataTransfer
|
|
8943
8954
|
})
|
|
8944
|
-
|
|
|
8955
|
+
| InternalPatchEvent
|
|
8945
8956
|
| MutationEvent
|
|
8946
8957
|
| {
|
|
8947
8958
|
type: 'normalizing'
|
|
@@ -9085,7 +9096,7 @@ declare const editorMachine: StateMachine<
|
|
|
9085
9096
|
behaviors: Set<Behavior>
|
|
9086
9097
|
converters: Set<Converter>
|
|
9087
9098
|
keyGenerator: () => string
|
|
9088
|
-
pendingEvents: Array<
|
|
9099
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9089
9100
|
schema: EditorSchema
|
|
9090
9101
|
initialReadOnly: boolean
|
|
9091
9102
|
maxBlocks: number | undefined
|
|
@@ -9319,7 +9330,7 @@ declare const editorMachine: StateMachine<
|
|
|
9319
9330
|
} & {
|
|
9320
9331
|
dataTransfer: DataTransfer
|
|
9321
9332
|
})
|
|
9322
|
-
|
|
|
9333
|
+
| InternalPatchEvent
|
|
9323
9334
|
| MutationEvent
|
|
9324
9335
|
| {
|
|
9325
9336
|
type: 'normalizing'
|
|
@@ -9460,7 +9471,7 @@ declare const editorMachine: StateMachine<
|
|
|
9460
9471
|
behaviors: Set<Behavior>
|
|
9461
9472
|
converters: Set<Converter>
|
|
9462
9473
|
keyGenerator: () => string
|
|
9463
|
-
pendingEvents: Array<
|
|
9474
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9464
9475
|
schema: EditorSchema
|
|
9465
9476
|
initialReadOnly: boolean
|
|
9466
9477
|
maxBlocks: number | undefined
|
|
@@ -9694,7 +9705,7 @@ declare const editorMachine: StateMachine<
|
|
|
9694
9705
|
} & {
|
|
9695
9706
|
dataTransfer: DataTransfer
|
|
9696
9707
|
})
|
|
9697
|
-
|
|
|
9708
|
+
| InternalPatchEvent
|
|
9698
9709
|
| MutationEvent
|
|
9699
9710
|
| {
|
|
9700
9711
|
type: 'normalizing'
|
|
@@ -9847,7 +9858,7 @@ declare const editorMachine: StateMachine<
|
|
|
9847
9858
|
behaviors: Set<Behavior>
|
|
9848
9859
|
converters: Set<Converter>
|
|
9849
9860
|
keyGenerator: () => string
|
|
9850
|
-
pendingEvents: Array<
|
|
9861
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9851
9862
|
schema: EditorSchema
|
|
9852
9863
|
initialReadOnly: boolean
|
|
9853
9864
|
maxBlocks: number | undefined
|
|
@@ -9879,7 +9890,9 @@ declare const editorMachine: StateMachine<
|
|
|
9879
9890
|
behaviors: Set<Behavior>
|
|
9880
9891
|
converters: Set<Converter>
|
|
9881
9892
|
keyGenerator: () => string
|
|
9882
|
-
pendingEvents: Array<
|
|
9893
|
+
pendingEvents: Array<
|
|
9894
|
+
InternalPatchEvent | MutationEvent
|
|
9895
|
+
>
|
|
9883
9896
|
schema: EditorSchema
|
|
9884
9897
|
initialReadOnly: boolean
|
|
9885
9898
|
maxBlocks: number | undefined
|
|
@@ -9907,7 +9920,7 @@ declare const editorMachine: StateMachine<
|
|
|
9907
9920
|
behaviors: Set<Behavior>
|
|
9908
9921
|
converters: Set<Converter>
|
|
9909
9922
|
keyGenerator: () => string
|
|
9910
|
-
pendingEvents: Array<
|
|
9923
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9911
9924
|
schema: EditorSchema
|
|
9912
9925
|
initialReadOnly: boolean
|
|
9913
9926
|
maxBlocks: number | undefined
|
|
@@ -9936,7 +9949,7 @@ declare const editorMachine: StateMachine<
|
|
|
9936
9949
|
behaviors: Set<Behavior>
|
|
9937
9950
|
converters: Set<Converter>
|
|
9938
9951
|
keyGenerator: () => string
|
|
9939
|
-
pendingEvents: Array<
|
|
9952
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9940
9953
|
schema: EditorSchema
|
|
9941
9954
|
initialReadOnly: boolean
|
|
9942
9955
|
maxBlocks: number | undefined
|
|
@@ -9963,7 +9976,7 @@ declare const editorMachine: StateMachine<
|
|
|
9963
9976
|
behaviors: Set<Behavior>
|
|
9964
9977
|
converters: Set<Converter>
|
|
9965
9978
|
keyGenerator: () => string
|
|
9966
|
-
pendingEvents: Array<
|
|
9979
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9967
9980
|
schema: EditorSchema
|
|
9968
9981
|
initialReadOnly: boolean
|
|
9969
9982
|
maxBlocks: number | undefined
|
|
@@ -10217,7 +10230,7 @@ declare const editorMachine: StateMachine<
|
|
|
10217
10230
|
} & {
|
|
10218
10231
|
dataTransfer: DataTransfer
|
|
10219
10232
|
})
|
|
10220
|
-
|
|
|
10233
|
+
| InternalPatchEvent
|
|
10221
10234
|
| MutationEvent
|
|
10222
10235
|
| {
|
|
10223
10236
|
type: 'normalizing'
|
|
@@ -10575,6 +10588,7 @@ declare const editorMachine: StateMachine<
|
|
|
10575
10588
|
dataTransfer: DataTransfer
|
|
10576
10589
|
})
|
|
10577
10590
|
| PatchEvent
|
|
10591
|
+
| InternalPatchEvent
|
|
10578
10592
|
| MutationEvent
|
|
10579
10593
|
| PatchesEvent
|
|
10580
10594
|
| {
|
|
@@ -10632,7 +10646,7 @@ declare const editorMachine: StateMachine<
|
|
|
10632
10646
|
behaviors: Set<Behavior>
|
|
10633
10647
|
converters: Set<Converter>
|
|
10634
10648
|
keyGenerator: () => string
|
|
10635
|
-
pendingEvents: Array<
|
|
10649
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10636
10650
|
schema: EditorSchema
|
|
10637
10651
|
initialReadOnly: boolean
|
|
10638
10652
|
maxBlocks: number | undefined
|
|
@@ -10872,7 +10886,7 @@ declare const editorMachine: StateMachine<
|
|
|
10872
10886
|
} & {
|
|
10873
10887
|
dataTransfer: DataTransfer
|
|
10874
10888
|
})
|
|
10875
|
-
|
|
|
10889
|
+
| InternalPatchEvent
|
|
10876
10890
|
| MutationEvent
|
|
10877
10891
|
| {
|
|
10878
10892
|
type: 'normalizing'
|
|
@@ -11230,6 +11244,7 @@ declare const editorMachine: StateMachine<
|
|
|
11230
11244
|
dataTransfer: DataTransfer
|
|
11231
11245
|
})
|
|
11232
11246
|
| PatchEvent
|
|
11247
|
+
| InternalPatchEvent
|
|
11233
11248
|
| MutationEvent
|
|
11234
11249
|
| PatchesEvent
|
|
11235
11250
|
| {
|
|
@@ -11287,7 +11302,7 @@ declare const editorMachine: StateMachine<
|
|
|
11287
11302
|
behaviors: Set<Behavior>
|
|
11288
11303
|
converters: Set<Converter>
|
|
11289
11304
|
keyGenerator: () => string
|
|
11290
|
-
pendingEvents: Array<
|
|
11305
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11291
11306
|
schema: EditorSchema
|
|
11292
11307
|
initialReadOnly: boolean
|
|
11293
11308
|
maxBlocks: number | undefined
|
|
@@ -11520,7 +11535,7 @@ declare const editorMachine: StateMachine<
|
|
|
11520
11535
|
} & {
|
|
11521
11536
|
dataTransfer: DataTransfer
|
|
11522
11537
|
})
|
|
11523
|
-
|
|
|
11538
|
+
| InternalPatchEvent
|
|
11524
11539
|
| MutationEvent
|
|
11525
11540
|
| {
|
|
11526
11541
|
type: 'normalizing'
|
|
@@ -11878,6 +11893,7 @@ declare const editorMachine: StateMachine<
|
|
|
11878
11893
|
dataTransfer: DataTransfer
|
|
11879
11894
|
})
|
|
11880
11895
|
| PatchEvent
|
|
11896
|
+
| InternalPatchEvent
|
|
11881
11897
|
| MutationEvent
|
|
11882
11898
|
| PatchesEvent
|
|
11883
11899
|
| {
|
|
@@ -11935,7 +11951,7 @@ declare const editorMachine: StateMachine<
|
|
|
11935
11951
|
behaviors: Set<Behavior>
|
|
11936
11952
|
converters: Set<Converter>
|
|
11937
11953
|
keyGenerator: () => string
|
|
11938
|
-
pendingEvents: Array<
|
|
11954
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11939
11955
|
schema: EditorSchema
|
|
11940
11956
|
initialReadOnly: boolean
|
|
11941
11957
|
maxBlocks: number | undefined
|
|
@@ -12168,7 +12184,7 @@ declare const editorMachine: StateMachine<
|
|
|
12168
12184
|
} & {
|
|
12169
12185
|
dataTransfer: DataTransfer
|
|
12170
12186
|
})
|
|
12171
|
-
|
|
|
12187
|
+
| InternalPatchEvent
|
|
12172
12188
|
| MutationEvent
|
|
12173
12189
|
| {
|
|
12174
12190
|
type: 'normalizing'
|
|
@@ -12526,6 +12542,7 @@ declare const editorMachine: StateMachine<
|
|
|
12526
12542
|
dataTransfer: DataTransfer
|
|
12527
12543
|
})
|
|
12528
12544
|
| PatchEvent
|
|
12545
|
+
| InternalPatchEvent
|
|
12529
12546
|
| MutationEvent
|
|
12530
12547
|
| PatchesEvent
|
|
12531
12548
|
| {
|
|
@@ -12583,7 +12600,7 @@ declare const editorMachine: StateMachine<
|
|
|
12583
12600
|
behaviors: Set<Behavior>
|
|
12584
12601
|
converters: Set<Converter>
|
|
12585
12602
|
keyGenerator: () => string
|
|
12586
|
-
pendingEvents: Array<
|
|
12603
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12587
12604
|
schema: EditorSchema
|
|
12588
12605
|
initialReadOnly: boolean
|
|
12589
12606
|
maxBlocks: number | undefined
|
|
@@ -12829,7 +12846,7 @@ declare const editorMachine: StateMachine<
|
|
|
12829
12846
|
} & {
|
|
12830
12847
|
dataTransfer: DataTransfer
|
|
12831
12848
|
})
|
|
12832
|
-
|
|
|
12849
|
+
| InternalPatchEvent
|
|
12833
12850
|
| MutationEvent
|
|
12834
12851
|
| {
|
|
12835
12852
|
type: 'normalizing'
|
|
@@ -13187,6 +13204,7 @@ declare const editorMachine: StateMachine<
|
|
|
13187
13204
|
dataTransfer: DataTransfer
|
|
13188
13205
|
})
|
|
13189
13206
|
| PatchEvent
|
|
13207
|
+
| InternalPatchEvent
|
|
13190
13208
|
| MutationEvent
|
|
13191
13209
|
| PatchesEvent
|
|
13192
13210
|
| {
|
|
@@ -13244,7 +13262,7 @@ declare const editorMachine: StateMachine<
|
|
|
13244
13262
|
behaviors: Set<Behavior>
|
|
13245
13263
|
converters: Set<Converter>
|
|
13246
13264
|
keyGenerator: () => string
|
|
13247
|
-
pendingEvents: Array<
|
|
13265
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13248
13266
|
schema: EditorSchema
|
|
13249
13267
|
initialReadOnly: boolean
|
|
13250
13268
|
maxBlocks: number | undefined
|
|
@@ -13491,7 +13509,7 @@ declare const editorMachine: StateMachine<
|
|
|
13491
13509
|
} & {
|
|
13492
13510
|
dataTransfer: DataTransfer
|
|
13493
13511
|
})
|
|
13494
|
-
|
|
|
13512
|
+
| InternalPatchEvent
|
|
13495
13513
|
| MutationEvent
|
|
13496
13514
|
| {
|
|
13497
13515
|
type: 'normalizing'
|
|
@@ -13849,6 +13867,7 @@ declare const editorMachine: StateMachine<
|
|
|
13849
13867
|
dataTransfer: DataTransfer
|
|
13850
13868
|
})
|
|
13851
13869
|
| PatchEvent
|
|
13870
|
+
| InternalPatchEvent
|
|
13852
13871
|
| MutationEvent
|
|
13853
13872
|
| PatchesEvent
|
|
13854
13873
|
| {
|
|
@@ -13906,7 +13925,7 @@ declare const editorMachine: StateMachine<
|
|
|
13906
13925
|
behaviors: Set<Behavior>
|
|
13907
13926
|
converters: Set<Converter>
|
|
13908
13927
|
keyGenerator: () => string
|
|
13909
|
-
pendingEvents: Array<
|
|
13928
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13910
13929
|
schema: EditorSchema
|
|
13911
13930
|
initialReadOnly: boolean
|
|
13912
13931
|
maxBlocks: number | undefined
|
|
@@ -14139,7 +14158,7 @@ declare const editorMachine: StateMachine<
|
|
|
14139
14158
|
} & {
|
|
14140
14159
|
dataTransfer: DataTransfer
|
|
14141
14160
|
})
|
|
14142
|
-
|
|
|
14161
|
+
| InternalPatchEvent
|
|
14143
14162
|
| MutationEvent
|
|
14144
14163
|
| {
|
|
14145
14164
|
type: 'normalizing'
|
|
@@ -14497,6 +14516,7 @@ declare const editorMachine: StateMachine<
|
|
|
14497
14516
|
dataTransfer: DataTransfer
|
|
14498
14517
|
})
|
|
14499
14518
|
| PatchEvent
|
|
14519
|
+
| InternalPatchEvent
|
|
14500
14520
|
| MutationEvent
|
|
14501
14521
|
| PatchesEvent
|
|
14502
14522
|
| {
|
|
@@ -14554,7 +14574,7 @@ declare const editorMachine: StateMachine<
|
|
|
14554
14574
|
behaviors: Set<Behavior>
|
|
14555
14575
|
converters: Set<Converter>
|
|
14556
14576
|
keyGenerator: () => string
|
|
14557
|
-
pendingEvents: Array<
|
|
14577
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14558
14578
|
schema: EditorSchema
|
|
14559
14579
|
initialReadOnly: boolean
|
|
14560
14580
|
maxBlocks: number | undefined
|
|
@@ -14790,7 +14810,7 @@ declare const editorMachine: StateMachine<
|
|
|
14790
14810
|
} & {
|
|
14791
14811
|
dataTransfer: DataTransfer
|
|
14792
14812
|
})
|
|
14793
|
-
|
|
|
14813
|
+
| InternalPatchEvent
|
|
14794
14814
|
| MutationEvent
|
|
14795
14815
|
| {
|
|
14796
14816
|
type: 'normalizing'
|
|
@@ -15148,6 +15168,7 @@ declare const editorMachine: StateMachine<
|
|
|
15148
15168
|
dataTransfer: DataTransfer
|
|
15149
15169
|
})
|
|
15150
15170
|
| PatchEvent
|
|
15171
|
+
| InternalPatchEvent
|
|
15151
15172
|
| MutationEvent
|
|
15152
15173
|
| PatchesEvent
|
|
15153
15174
|
| {
|
|
@@ -15205,7 +15226,7 @@ declare const editorMachine: StateMachine<
|
|
|
15205
15226
|
behaviors: Set<Behavior>
|
|
15206
15227
|
converters: Set<Converter>
|
|
15207
15228
|
keyGenerator: () => string
|
|
15208
|
-
pendingEvents: Array<
|
|
15229
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15209
15230
|
schema: EditorSchema
|
|
15210
15231
|
initialReadOnly: boolean
|
|
15211
15232
|
maxBlocks: number | undefined
|
|
@@ -15492,7 +15513,7 @@ declare const editorMachine: StateMachine<
|
|
|
15492
15513
|
} & {
|
|
15493
15514
|
dataTransfer: DataTransfer
|
|
15494
15515
|
})
|
|
15495
|
-
|
|
|
15516
|
+
| InternalPatchEvent
|
|
15496
15517
|
| MutationEvent
|
|
15497
15518
|
| {
|
|
15498
15519
|
type: 'normalizing'
|
|
@@ -15850,6 +15871,7 @@ declare const editorMachine: StateMachine<
|
|
|
15850
15871
|
dataTransfer: DataTransfer
|
|
15851
15872
|
})
|
|
15852
15873
|
| PatchEvent
|
|
15874
|
+
| InternalPatchEvent
|
|
15853
15875
|
| MutationEvent
|
|
15854
15876
|
| PatchesEvent
|
|
15855
15877
|
| {
|
|
@@ -15907,7 +15929,7 @@ declare const editorMachine: StateMachine<
|
|
|
15907
15929
|
behaviors: Set<Behavior>
|
|
15908
15930
|
converters: Set<Converter>
|
|
15909
15931
|
keyGenerator: () => string
|
|
15910
|
-
pendingEvents: Array<
|
|
15932
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15911
15933
|
schema: EditorSchema
|
|
15912
15934
|
initialReadOnly: boolean
|
|
15913
15935
|
maxBlocks: number | undefined
|
|
@@ -16149,7 +16171,7 @@ declare const editorMachine: StateMachine<
|
|
|
16149
16171
|
} & {
|
|
16150
16172
|
dataTransfer: DataTransfer
|
|
16151
16173
|
})
|
|
16152
|
-
|
|
|
16174
|
+
| InternalPatchEvent
|
|
16153
16175
|
| MutationEvent
|
|
16154
16176
|
| {
|
|
16155
16177
|
type: 'normalizing'
|
|
@@ -16507,6 +16529,7 @@ declare const editorMachine: StateMachine<
|
|
|
16507
16529
|
dataTransfer: DataTransfer
|
|
16508
16530
|
})
|
|
16509
16531
|
| PatchEvent
|
|
16532
|
+
| InternalPatchEvent
|
|
16510
16533
|
| MutationEvent
|
|
16511
16534
|
| PatchesEvent
|
|
16512
16535
|
| {
|
|
@@ -16564,7 +16587,7 @@ declare const editorMachine: StateMachine<
|
|
|
16564
16587
|
behaviors: Set<Behavior>
|
|
16565
16588
|
converters: Set<Converter>
|
|
16566
16589
|
keyGenerator: () => string
|
|
16567
|
-
pendingEvents: Array<
|
|
16590
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16568
16591
|
schema: EditorSchema
|
|
16569
16592
|
initialReadOnly: boolean
|
|
16570
16593
|
maxBlocks: number | undefined
|
|
@@ -16807,7 +16830,7 @@ declare const editorMachine: StateMachine<
|
|
|
16807
16830
|
} & {
|
|
16808
16831
|
dataTransfer: DataTransfer
|
|
16809
16832
|
})
|
|
16810
|
-
|
|
|
16833
|
+
| InternalPatchEvent
|
|
16811
16834
|
| MutationEvent
|
|
16812
16835
|
| {
|
|
16813
16836
|
type: 'normalizing'
|
|
@@ -17165,6 +17188,7 @@ declare const editorMachine: StateMachine<
|
|
|
17165
17188
|
dataTransfer: DataTransfer
|
|
17166
17189
|
})
|
|
17167
17190
|
| PatchEvent
|
|
17191
|
+
| InternalPatchEvent
|
|
17168
17192
|
| MutationEvent
|
|
17169
17193
|
| PatchesEvent
|
|
17170
17194
|
| {
|
|
@@ -17222,7 +17246,7 @@ declare const editorMachine: StateMachine<
|
|
|
17222
17246
|
behaviors: Set<Behavior>
|
|
17223
17247
|
converters: Set<Converter>
|
|
17224
17248
|
keyGenerator: () => string
|
|
17225
|
-
pendingEvents: Array<
|
|
17249
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17226
17250
|
schema: EditorSchema
|
|
17227
17251
|
initialReadOnly: boolean
|
|
17228
17252
|
maxBlocks: number | undefined
|
|
@@ -17456,7 +17480,7 @@ declare const editorMachine: StateMachine<
|
|
|
17456
17480
|
} & {
|
|
17457
17481
|
dataTransfer: DataTransfer
|
|
17458
17482
|
})
|
|
17459
|
-
|
|
|
17483
|
+
| InternalPatchEvent
|
|
17460
17484
|
| MutationEvent
|
|
17461
17485
|
| {
|
|
17462
17486
|
type: 'normalizing'
|
|
@@ -17814,6 +17838,7 @@ declare const editorMachine: StateMachine<
|
|
|
17814
17838
|
dataTransfer: DataTransfer
|
|
17815
17839
|
})
|
|
17816
17840
|
| PatchEvent
|
|
17841
|
+
| InternalPatchEvent
|
|
17817
17842
|
| MutationEvent
|
|
17818
17843
|
| PatchesEvent
|
|
17819
17844
|
| {
|
|
@@ -17871,7 +17896,7 @@ declare const editorMachine: StateMachine<
|
|
|
17871
17896
|
behaviors: Set<Behavior>
|
|
17872
17897
|
converters: Set<Converter>
|
|
17873
17898
|
keyGenerator: () => string
|
|
17874
|
-
pendingEvents: Array<
|
|
17899
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17875
17900
|
schema: EditorSchema
|
|
17876
17901
|
initialReadOnly: boolean
|
|
17877
17902
|
maxBlocks: number | undefined
|
|
@@ -18107,7 +18132,7 @@ declare const editorMachine: StateMachine<
|
|
|
18107
18132
|
} & {
|
|
18108
18133
|
dataTransfer: DataTransfer
|
|
18109
18134
|
})
|
|
18110
|
-
|
|
|
18135
|
+
| InternalPatchEvent
|
|
18111
18136
|
| MutationEvent
|
|
18112
18137
|
| {
|
|
18113
18138
|
type: 'normalizing'
|
|
@@ -18465,6 +18490,7 @@ declare const editorMachine: StateMachine<
|
|
|
18465
18490
|
dataTransfer: DataTransfer
|
|
18466
18491
|
})
|
|
18467
18492
|
| PatchEvent
|
|
18493
|
+
| InternalPatchEvent
|
|
18468
18494
|
| MutationEvent
|
|
18469
18495
|
| PatchesEvent
|
|
18470
18496
|
| {
|
|
@@ -18522,7 +18548,7 @@ declare const editorMachine: StateMachine<
|
|
|
18522
18548
|
behaviors: Set<Behavior>
|
|
18523
18549
|
converters: Set<Converter>
|
|
18524
18550
|
keyGenerator: () => string
|
|
18525
|
-
pendingEvents: Array<
|
|
18551
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18526
18552
|
schema: EditorSchema
|
|
18527
18553
|
initialReadOnly: boolean
|
|
18528
18554
|
maxBlocks: number | undefined
|
|
@@ -18764,7 +18790,7 @@ declare const editorMachine: StateMachine<
|
|
|
18764
18790
|
} & {
|
|
18765
18791
|
dataTransfer: DataTransfer
|
|
18766
18792
|
})
|
|
18767
|
-
|
|
|
18793
|
+
| InternalPatchEvent
|
|
18768
18794
|
| MutationEvent
|
|
18769
18795
|
| {
|
|
18770
18796
|
type: 'normalizing'
|
|
@@ -19122,6 +19148,7 @@ declare const editorMachine: StateMachine<
|
|
|
19122
19148
|
dataTransfer: DataTransfer
|
|
19123
19149
|
})
|
|
19124
19150
|
| PatchEvent
|
|
19151
|
+
| InternalPatchEvent
|
|
19125
19152
|
| MutationEvent
|
|
19126
19153
|
| PatchesEvent
|
|
19127
19154
|
| {
|
|
@@ -19217,7 +19244,7 @@ declare const editorMachine: StateMachine<
|
|
|
19217
19244
|
readonly 'setting up': {
|
|
19218
19245
|
readonly exit: readonly ['emit ready']
|
|
19219
19246
|
readonly on: {
|
|
19220
|
-
readonly 'patch': {
|
|
19247
|
+
readonly 'internal.patch': {
|
|
19221
19248
|
readonly actions: 'defer event'
|
|
19222
19249
|
}
|
|
19223
19250
|
readonly 'mutation': {
|
|
@@ -19233,14 +19260,14 @@ declare const editorMachine: StateMachine<
|
|
|
19233
19260
|
readonly states: {
|
|
19234
19261
|
readonly idle: {
|
|
19235
19262
|
readonly on: {
|
|
19236
|
-
readonly normalizing: {
|
|
19263
|
+
readonly 'normalizing': {
|
|
19237
19264
|
readonly target: 'normalizing'
|
|
19238
19265
|
}
|
|
19239
|
-
readonly patch: {
|
|
19266
|
+
readonly 'internal.patch': {
|
|
19240
19267
|
readonly actions: 'defer event'
|
|
19241
19268
|
readonly target: '#editor.setup.dirty'
|
|
19242
19269
|
}
|
|
19243
|
-
readonly mutation: {
|
|
19270
|
+
readonly 'mutation': {
|
|
19244
19271
|
readonly actions: 'defer event'
|
|
19245
19272
|
readonly target: '#editor.setup.dirty'
|
|
19246
19273
|
}
|
|
@@ -19251,7 +19278,7 @@ declare const editorMachine: StateMachine<
|
|
|
19251
19278
|
readonly 'done normalizing': {
|
|
19252
19279
|
readonly target: 'idle'
|
|
19253
19280
|
}
|
|
19254
|
-
readonly 'patch': {
|
|
19281
|
+
readonly 'internal.patch': {
|
|
19255
19282
|
readonly actions: 'defer event'
|
|
19256
19283
|
}
|
|
19257
19284
|
readonly 'mutation': {
|
|
@@ -19267,10 +19294,10 @@ declare const editorMachine: StateMachine<
|
|
|
19267
19294
|
'clear pending events',
|
|
19268
19295
|
]
|
|
19269
19296
|
readonly on: {
|
|
19270
|
-
readonly patch: {
|
|
19297
|
+
readonly 'internal.patch': {
|
|
19271
19298
|
readonly actions: 'emit patch event'
|
|
19272
19299
|
}
|
|
19273
|
-
readonly mutation: {
|
|
19300
|
+
readonly 'mutation': {
|
|
19274
19301
|
readonly actions: 'emit mutation event'
|
|
19275
19302
|
}
|
|
19276
19303
|
}
|
|
@@ -19354,6 +19381,11 @@ declare type HistoryItem = {
|
|
|
19354
19381
|
timestamp: Date
|
|
19355
19382
|
}
|
|
19356
19383
|
|
|
19384
|
+
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
19385
|
+
actionId?: string
|
|
19386
|
+
value: Array<PortableTextBlock>
|
|
19387
|
+
}
|
|
19388
|
+
|
|
19357
19389
|
/**
|
|
19358
19390
|
* The editor has invalid data in the value that can be resolved by the user
|
|
19359
19391
|
* @beta */
|
|
@@ -19441,6 +19473,19 @@ declare type MutationEvent = {
|
|
|
19441
19473
|
value: Array<PortableTextBlock> | undefined
|
|
19442
19474
|
}
|
|
19443
19475
|
|
|
19476
|
+
declare type NamespaceEvent<
|
|
19477
|
+
TEvent,
|
|
19478
|
+
TNamespace extends string,
|
|
19479
|
+
> = TEvent extends {
|
|
19480
|
+
type: infer TEventType
|
|
19481
|
+
}
|
|
19482
|
+
? {
|
|
19483
|
+
[K in keyof TEvent]: K extends 'type'
|
|
19484
|
+
? `${TNamespace}.${TEventType & string}`
|
|
19485
|
+
: TEvent[K]
|
|
19486
|
+
}
|
|
19487
|
+
: never
|
|
19488
|
+
|
|
19444
19489
|
/**
|
|
19445
19490
|
* @beta
|
|
19446
19491
|
*/
|