@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/index.d.cts
CHANGED
|
@@ -626,7 +626,7 @@ declare const editorMachine: StateMachine<
|
|
|
626
626
|
behaviors: Set<Behavior>
|
|
627
627
|
converters: Set<Converter>
|
|
628
628
|
keyGenerator: () => string
|
|
629
|
-
pendingEvents: Array<
|
|
629
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
630
630
|
schema: EditorSchema
|
|
631
631
|
initialReadOnly: boolean
|
|
632
632
|
maxBlocks: number | undefined
|
|
@@ -856,7 +856,7 @@ declare const editorMachine: StateMachine<
|
|
|
856
856
|
} & {
|
|
857
857
|
dataTransfer: DataTransfer
|
|
858
858
|
})
|
|
859
|
-
|
|
|
859
|
+
| InternalPatchEvent
|
|
860
860
|
| MutationEvent
|
|
861
861
|
| {
|
|
862
862
|
type: 'normalizing'
|
|
@@ -1291,6 +1291,7 @@ declare const editorMachine: StateMachine<
|
|
|
1291
1291
|
dataTransfer: DataTransfer
|
|
1292
1292
|
})
|
|
1293
1293
|
| PatchEvent
|
|
1294
|
+
| InternalPatchEvent
|
|
1294
1295
|
| MutationEvent
|
|
1295
1296
|
| PatchesEvent
|
|
1296
1297
|
| {
|
|
@@ -1383,7 +1384,7 @@ declare const editorMachine: StateMachine<
|
|
|
1383
1384
|
behaviors: Set<Behavior>
|
|
1384
1385
|
converters: Set<Converter>
|
|
1385
1386
|
keyGenerator: () => string
|
|
1386
|
-
pendingEvents: Array<
|
|
1387
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1387
1388
|
schema: EditorSchema
|
|
1388
1389
|
initialReadOnly: boolean
|
|
1389
1390
|
maxBlocks: number | undefined
|
|
@@ -1613,7 +1614,7 @@ declare const editorMachine: StateMachine<
|
|
|
1613
1614
|
} & {
|
|
1614
1615
|
dataTransfer: DataTransfer
|
|
1615
1616
|
})
|
|
1616
|
-
|
|
|
1617
|
+
| InternalPatchEvent
|
|
1617
1618
|
| MutationEvent
|
|
1618
1619
|
| {
|
|
1619
1620
|
type: 'normalizing'
|
|
@@ -1970,7 +1971,7 @@ declare const editorMachine: StateMachine<
|
|
|
1970
1971
|
} & {
|
|
1971
1972
|
dataTransfer: DataTransfer
|
|
1972
1973
|
})
|
|
1973
|
-
|
|
|
1974
|
+
| InternalPatchEvent
|
|
1974
1975
|
| MutationEvent
|
|
1975
1976
|
| {
|
|
1976
1977
|
type: 'normalizing'
|
|
@@ -2117,7 +2118,7 @@ declare const editorMachine: StateMachine<
|
|
|
2117
2118
|
behaviors: Set<Behavior>
|
|
2118
2119
|
converters: Set<Converter>
|
|
2119
2120
|
keyGenerator: () => string
|
|
2120
|
-
pendingEvents: Array<
|
|
2121
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2121
2122
|
schema: EditorSchema
|
|
2122
2123
|
initialReadOnly: boolean
|
|
2123
2124
|
maxBlocks: number | undefined
|
|
@@ -2351,7 +2352,7 @@ declare const editorMachine: StateMachine<
|
|
|
2351
2352
|
} & {
|
|
2352
2353
|
dataTransfer: DataTransfer
|
|
2353
2354
|
})
|
|
2354
|
-
|
|
|
2355
|
+
| InternalPatchEvent
|
|
2355
2356
|
| MutationEvent
|
|
2356
2357
|
| {
|
|
2357
2358
|
type: 'normalizing'
|
|
@@ -2707,6 +2708,7 @@ declare const editorMachine: StateMachine<
|
|
|
2707
2708
|
dataTransfer: DataTransfer
|
|
2708
2709
|
})
|
|
2709
2710
|
| PatchEvent
|
|
2711
|
+
| InternalPatchEvent
|
|
2710
2712
|
| MutationEvent
|
|
2711
2713
|
| PatchesEvent
|
|
2712
2714
|
| {
|
|
@@ -2764,7 +2766,7 @@ declare const editorMachine: StateMachine<
|
|
|
2764
2766
|
behaviors: Set<Behavior>
|
|
2765
2767
|
converters: Set<Converter>
|
|
2766
2768
|
keyGenerator: () => string
|
|
2767
|
-
pendingEvents: Array<
|
|
2769
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2768
2770
|
schema: EditorSchema
|
|
2769
2771
|
initialReadOnly: boolean
|
|
2770
2772
|
maxBlocks: number | undefined
|
|
@@ -2997,7 +2999,7 @@ declare const editorMachine: StateMachine<
|
|
|
2997
2999
|
} & {
|
|
2998
3000
|
dataTransfer: DataTransfer
|
|
2999
3001
|
})
|
|
3000
|
-
|
|
|
3002
|
+
| InternalPatchEvent
|
|
3001
3003
|
| MutationEvent
|
|
3002
3004
|
| {
|
|
3003
3005
|
type: 'normalizing'
|
|
@@ -3353,6 +3355,7 @@ declare const editorMachine: StateMachine<
|
|
|
3353
3355
|
dataTransfer: DataTransfer
|
|
3354
3356
|
})
|
|
3355
3357
|
| PatchEvent
|
|
3358
|
+
| InternalPatchEvent
|
|
3356
3359
|
| MutationEvent
|
|
3357
3360
|
| PatchesEvent
|
|
3358
3361
|
| {
|
|
@@ -3410,7 +3413,7 @@ declare const editorMachine: StateMachine<
|
|
|
3410
3413
|
behaviors: Set<Behavior>
|
|
3411
3414
|
converters: Set<Converter>
|
|
3412
3415
|
keyGenerator: () => string
|
|
3413
|
-
pendingEvents: Array<
|
|
3416
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3414
3417
|
schema: EditorSchema
|
|
3415
3418
|
initialReadOnly: boolean
|
|
3416
3419
|
maxBlocks: number | undefined
|
|
@@ -3646,7 +3649,7 @@ declare const editorMachine: StateMachine<
|
|
|
3646
3649
|
} & {
|
|
3647
3650
|
dataTransfer: DataTransfer
|
|
3648
3651
|
})
|
|
3649
|
-
|
|
|
3652
|
+
| InternalPatchEvent
|
|
3650
3653
|
| MutationEvent
|
|
3651
3654
|
| {
|
|
3652
3655
|
type: 'normalizing'
|
|
@@ -4002,6 +4005,7 @@ declare const editorMachine: StateMachine<
|
|
|
4002
4005
|
dataTransfer: DataTransfer
|
|
4003
4006
|
})
|
|
4004
4007
|
| PatchEvent
|
|
4008
|
+
| InternalPatchEvent
|
|
4005
4009
|
| MutationEvent
|
|
4006
4010
|
| PatchesEvent
|
|
4007
4011
|
| {
|
|
@@ -4059,7 +4063,7 @@ declare const editorMachine: StateMachine<
|
|
|
4059
4063
|
behaviors: Set<Behavior>
|
|
4060
4064
|
converters: Set<Converter>
|
|
4061
4065
|
keyGenerator: () => string
|
|
4062
|
-
pendingEvents: Array<
|
|
4066
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4063
4067
|
schema: EditorSchema
|
|
4064
4068
|
initialReadOnly: boolean
|
|
4065
4069
|
maxBlocks: number | undefined
|
|
@@ -4294,7 +4298,7 @@ declare const editorMachine: StateMachine<
|
|
|
4294
4298
|
} & {
|
|
4295
4299
|
dataTransfer: DataTransfer
|
|
4296
4300
|
})
|
|
4297
|
-
|
|
|
4301
|
+
| InternalPatchEvent
|
|
4298
4302
|
| MutationEvent
|
|
4299
4303
|
| {
|
|
4300
4304
|
type: 'normalizing'
|
|
@@ -4650,6 +4654,7 @@ declare const editorMachine: StateMachine<
|
|
|
4650
4654
|
dataTransfer: DataTransfer
|
|
4651
4655
|
})
|
|
4652
4656
|
| PatchEvent
|
|
4657
|
+
| InternalPatchEvent
|
|
4653
4658
|
| MutationEvent
|
|
4654
4659
|
| PatchesEvent
|
|
4655
4660
|
| {
|
|
@@ -4707,7 +4712,7 @@ declare const editorMachine: StateMachine<
|
|
|
4707
4712
|
behaviors: Set<Behavior>
|
|
4708
4713
|
converters: Set<Converter>
|
|
4709
4714
|
keyGenerator: () => string
|
|
4710
|
-
pendingEvents: Array<
|
|
4715
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4711
4716
|
schema: EditorSchema
|
|
4712
4717
|
initialReadOnly: boolean
|
|
4713
4718
|
maxBlocks: number | undefined
|
|
@@ -4941,7 +4946,7 @@ declare const editorMachine: StateMachine<
|
|
|
4941
4946
|
} & {
|
|
4942
4947
|
dataTransfer: DataTransfer
|
|
4943
4948
|
})
|
|
4944
|
-
|
|
|
4949
|
+
| InternalPatchEvent
|
|
4945
4950
|
| MutationEvent
|
|
4946
4951
|
| {
|
|
4947
4952
|
type: 'normalizing'
|
|
@@ -5297,6 +5302,7 @@ declare const editorMachine: StateMachine<
|
|
|
5297
5302
|
dataTransfer: DataTransfer
|
|
5298
5303
|
})
|
|
5299
5304
|
| PatchEvent
|
|
5305
|
+
| InternalPatchEvent
|
|
5300
5306
|
| MutationEvent
|
|
5301
5307
|
| PatchesEvent
|
|
5302
5308
|
| {
|
|
@@ -5355,7 +5361,7 @@ declare const editorMachine: StateMachine<
|
|
|
5355
5361
|
behaviors: Set<Behavior>
|
|
5356
5362
|
converters: Set<Converter>
|
|
5357
5363
|
keyGenerator: () => string
|
|
5358
|
-
pendingEvents: Array<
|
|
5364
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5359
5365
|
schema: EditorSchema
|
|
5360
5366
|
initialReadOnly: boolean
|
|
5361
5367
|
maxBlocks: number | undefined
|
|
@@ -5589,7 +5595,7 @@ declare const editorMachine: StateMachine<
|
|
|
5589
5595
|
} & {
|
|
5590
5596
|
dataTransfer: DataTransfer
|
|
5591
5597
|
})
|
|
5592
|
-
|
|
|
5598
|
+
| InternalPatchEvent
|
|
5593
5599
|
| MutationEvent
|
|
5594
5600
|
| {
|
|
5595
5601
|
type: 'normalizing'
|
|
@@ -5728,7 +5734,7 @@ declare const editorMachine: StateMachine<
|
|
|
5728
5734
|
behaviors: Set<Behavior>
|
|
5729
5735
|
converters: Set<Converter>
|
|
5730
5736
|
keyGenerator: () => string
|
|
5731
|
-
pendingEvents: Array<
|
|
5737
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5732
5738
|
schema: EditorSchema
|
|
5733
5739
|
initialReadOnly: boolean
|
|
5734
5740
|
maxBlocks: number | undefined
|
|
@@ -5962,7 +5968,7 @@ declare const editorMachine: StateMachine<
|
|
|
5962
5968
|
} & {
|
|
5963
5969
|
dataTransfer: DataTransfer
|
|
5964
5970
|
})
|
|
5965
|
-
|
|
|
5971
|
+
| InternalPatchEvent
|
|
5966
5972
|
| MutationEvent
|
|
5967
5973
|
| {
|
|
5968
5974
|
type: 'normalizing'
|
|
@@ -6318,6 +6324,7 @@ declare const editorMachine: StateMachine<
|
|
|
6318
6324
|
dataTransfer: DataTransfer
|
|
6319
6325
|
})
|
|
6320
6326
|
| PatchEvent
|
|
6327
|
+
| InternalPatchEvent
|
|
6321
6328
|
| MutationEvent
|
|
6322
6329
|
| PatchesEvent
|
|
6323
6330
|
| {
|
|
@@ -6376,7 +6383,7 @@ declare const editorMachine: StateMachine<
|
|
|
6376
6383
|
behaviors: Set<Behavior>
|
|
6377
6384
|
converters: Set<Converter>
|
|
6378
6385
|
keyGenerator: () => string
|
|
6379
|
-
pendingEvents: Array<
|
|
6386
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6380
6387
|
schema: EditorSchema
|
|
6381
6388
|
initialReadOnly: boolean
|
|
6382
6389
|
maxBlocks: number | undefined
|
|
@@ -6610,7 +6617,7 @@ declare const editorMachine: StateMachine<
|
|
|
6610
6617
|
} & {
|
|
6611
6618
|
dataTransfer: DataTransfer
|
|
6612
6619
|
})
|
|
6613
|
-
|
|
|
6620
|
+
| InternalPatchEvent
|
|
6614
6621
|
| MutationEvent
|
|
6615
6622
|
| {
|
|
6616
6623
|
type: 'normalizing'
|
|
@@ -6966,6 +6973,7 @@ declare const editorMachine: StateMachine<
|
|
|
6966
6973
|
dataTransfer: DataTransfer
|
|
6967
6974
|
})
|
|
6968
6975
|
| PatchEvent
|
|
6976
|
+
| InternalPatchEvent
|
|
6969
6977
|
| MutationEvent
|
|
6970
6978
|
| PatchesEvent
|
|
6971
6979
|
| {
|
|
@@ -7023,7 +7031,7 @@ declare const editorMachine: StateMachine<
|
|
|
7023
7031
|
behaviors: Set<Behavior>
|
|
7024
7032
|
converters: Set<Converter>
|
|
7025
7033
|
keyGenerator: () => string
|
|
7026
|
-
pendingEvents: Array<
|
|
7034
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7027
7035
|
schema: EditorSchema
|
|
7028
7036
|
initialReadOnly: boolean
|
|
7029
7037
|
maxBlocks: number | undefined
|
|
@@ -7256,7 +7264,7 @@ declare const editorMachine: StateMachine<
|
|
|
7256
7264
|
} & {
|
|
7257
7265
|
dataTransfer: DataTransfer
|
|
7258
7266
|
})
|
|
7259
|
-
|
|
|
7267
|
+
| InternalPatchEvent
|
|
7260
7268
|
| MutationEvent
|
|
7261
7269
|
| {
|
|
7262
7270
|
type: 'normalizing'
|
|
@@ -7612,6 +7620,7 @@ declare const editorMachine: StateMachine<
|
|
|
7612
7620
|
dataTransfer: DataTransfer
|
|
7613
7621
|
})
|
|
7614
7622
|
| PatchEvent
|
|
7623
|
+
| InternalPatchEvent
|
|
7615
7624
|
| MutationEvent
|
|
7616
7625
|
| PatchesEvent
|
|
7617
7626
|
| {
|
|
@@ -7669,7 +7678,7 @@ declare const editorMachine: StateMachine<
|
|
|
7669
7678
|
behaviors: Set<Behavior>
|
|
7670
7679
|
converters: Set<Converter>
|
|
7671
7680
|
keyGenerator: () => string
|
|
7672
|
-
pendingEvents: Array<
|
|
7681
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7673
7682
|
schema: EditorSchema
|
|
7674
7683
|
initialReadOnly: boolean
|
|
7675
7684
|
maxBlocks: number | undefined
|
|
@@ -7903,7 +7912,7 @@ declare const editorMachine: StateMachine<
|
|
|
7903
7912
|
} & {
|
|
7904
7913
|
dataTransfer: DataTransfer
|
|
7905
7914
|
})
|
|
7906
|
-
|
|
|
7915
|
+
| InternalPatchEvent
|
|
7907
7916
|
| MutationEvent
|
|
7908
7917
|
| {
|
|
7909
7918
|
type: 'normalizing'
|
|
@@ -8259,6 +8268,7 @@ declare const editorMachine: StateMachine<
|
|
|
8259
8268
|
dataTransfer: DataTransfer
|
|
8260
8269
|
})
|
|
8261
8270
|
| PatchEvent
|
|
8271
|
+
| InternalPatchEvent
|
|
8262
8272
|
| MutationEvent
|
|
8263
8273
|
| PatchesEvent
|
|
8264
8274
|
| {
|
|
@@ -8322,7 +8332,7 @@ declare const editorMachine: StateMachine<
|
|
|
8322
8332
|
behaviors: Set<Behavior>
|
|
8323
8333
|
converters: Set<Converter>
|
|
8324
8334
|
keyGenerator: () => string
|
|
8325
|
-
pendingEvents: Array<
|
|
8335
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8326
8336
|
schema: EditorSchema
|
|
8327
8337
|
initialReadOnly: boolean
|
|
8328
8338
|
maxBlocks: number | undefined
|
|
@@ -8553,7 +8563,7 @@ declare const editorMachine: StateMachine<
|
|
|
8553
8563
|
} & {
|
|
8554
8564
|
dataTransfer: DataTransfer
|
|
8555
8565
|
})
|
|
8556
|
-
|
|
|
8566
|
+
| InternalPatchEvent
|
|
8557
8567
|
| MutationEvent
|
|
8558
8568
|
| {
|
|
8559
8569
|
type: 'normalizing'
|
|
@@ -8909,6 +8919,7 @@ declare const editorMachine: StateMachine<
|
|
|
8909
8919
|
dataTransfer: DataTransfer
|
|
8910
8920
|
})
|
|
8911
8921
|
| PatchEvent
|
|
8922
|
+
| InternalPatchEvent
|
|
8912
8923
|
| MutationEvent
|
|
8913
8924
|
| PatchesEvent
|
|
8914
8925
|
| {
|
|
@@ -8969,7 +8980,7 @@ declare const editorMachine: StateMachine<
|
|
|
8969
8980
|
behaviors: Set<Behavior>
|
|
8970
8981
|
converters: Set<Converter>
|
|
8971
8982
|
keyGenerator: () => string
|
|
8972
|
-
pendingEvents: Array<
|
|
8983
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8973
8984
|
schema: EditorSchema
|
|
8974
8985
|
initialReadOnly: boolean
|
|
8975
8986
|
maxBlocks: number | undefined
|
|
@@ -9203,7 +9214,7 @@ declare const editorMachine: StateMachine<
|
|
|
9203
9214
|
} & {
|
|
9204
9215
|
dataTransfer: DataTransfer
|
|
9205
9216
|
})
|
|
9206
|
-
|
|
|
9217
|
+
| InternalPatchEvent
|
|
9207
9218
|
| MutationEvent
|
|
9208
9219
|
| {
|
|
9209
9220
|
type: 'normalizing'
|
|
@@ -9347,7 +9358,7 @@ declare const editorMachine: StateMachine<
|
|
|
9347
9358
|
behaviors: Set<Behavior>
|
|
9348
9359
|
converters: Set<Converter>
|
|
9349
9360
|
keyGenerator: () => string
|
|
9350
|
-
pendingEvents: Array<
|
|
9361
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9351
9362
|
schema: EditorSchema
|
|
9352
9363
|
initialReadOnly: boolean
|
|
9353
9364
|
maxBlocks: number | undefined
|
|
@@ -9581,7 +9592,7 @@ declare const editorMachine: StateMachine<
|
|
|
9581
9592
|
} & {
|
|
9582
9593
|
dataTransfer: DataTransfer
|
|
9583
9594
|
})
|
|
9584
|
-
|
|
|
9595
|
+
| InternalPatchEvent
|
|
9585
9596
|
| MutationEvent
|
|
9586
9597
|
| {
|
|
9587
9598
|
type: 'normalizing'
|
|
@@ -9722,7 +9733,7 @@ declare const editorMachine: StateMachine<
|
|
|
9722
9733
|
behaviors: Set<Behavior>
|
|
9723
9734
|
converters: Set<Converter>
|
|
9724
9735
|
keyGenerator: () => string
|
|
9725
|
-
pendingEvents: Array<
|
|
9736
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9726
9737
|
schema: EditorSchema
|
|
9727
9738
|
initialReadOnly: boolean
|
|
9728
9739
|
maxBlocks: number | undefined
|
|
@@ -9956,7 +9967,7 @@ declare const editorMachine: StateMachine<
|
|
|
9956
9967
|
} & {
|
|
9957
9968
|
dataTransfer: DataTransfer
|
|
9958
9969
|
})
|
|
9959
|
-
|
|
|
9970
|
+
| InternalPatchEvent
|
|
9960
9971
|
| MutationEvent
|
|
9961
9972
|
| {
|
|
9962
9973
|
type: 'normalizing'
|
|
@@ -10109,7 +10120,7 @@ declare const editorMachine: StateMachine<
|
|
|
10109
10120
|
behaviors: Set<Behavior>
|
|
10110
10121
|
converters: Set<Converter>
|
|
10111
10122
|
keyGenerator: () => string
|
|
10112
|
-
pendingEvents: Array<
|
|
10123
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10113
10124
|
schema: EditorSchema
|
|
10114
10125
|
initialReadOnly: boolean
|
|
10115
10126
|
maxBlocks: number | undefined
|
|
@@ -10141,7 +10152,9 @@ declare const editorMachine: StateMachine<
|
|
|
10141
10152
|
behaviors: Set<Behavior>
|
|
10142
10153
|
converters: Set<Converter>
|
|
10143
10154
|
keyGenerator: () => string
|
|
10144
|
-
pendingEvents: Array<
|
|
10155
|
+
pendingEvents: Array<
|
|
10156
|
+
InternalPatchEvent | MutationEvent
|
|
10157
|
+
>
|
|
10145
10158
|
schema: EditorSchema
|
|
10146
10159
|
initialReadOnly: boolean
|
|
10147
10160
|
maxBlocks: number | undefined
|
|
@@ -10169,7 +10182,7 @@ declare const editorMachine: StateMachine<
|
|
|
10169
10182
|
behaviors: Set<Behavior>
|
|
10170
10183
|
converters: Set<Converter>
|
|
10171
10184
|
keyGenerator: () => string
|
|
10172
|
-
pendingEvents: Array<
|
|
10185
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10173
10186
|
schema: EditorSchema
|
|
10174
10187
|
initialReadOnly: boolean
|
|
10175
10188
|
maxBlocks: number | undefined
|
|
@@ -10198,7 +10211,7 @@ declare const editorMachine: StateMachine<
|
|
|
10198
10211
|
behaviors: Set<Behavior>
|
|
10199
10212
|
converters: Set<Converter>
|
|
10200
10213
|
keyGenerator: () => string
|
|
10201
|
-
pendingEvents: Array<
|
|
10214
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10202
10215
|
schema: EditorSchema
|
|
10203
10216
|
initialReadOnly: boolean
|
|
10204
10217
|
maxBlocks: number | undefined
|
|
@@ -10225,7 +10238,7 @@ declare const editorMachine: StateMachine<
|
|
|
10225
10238
|
behaviors: Set<Behavior>
|
|
10226
10239
|
converters: Set<Converter>
|
|
10227
10240
|
keyGenerator: () => string
|
|
10228
|
-
pendingEvents: Array<
|
|
10241
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10229
10242
|
schema: EditorSchema
|
|
10230
10243
|
initialReadOnly: boolean
|
|
10231
10244
|
maxBlocks: number | undefined
|
|
@@ -10479,7 +10492,7 @@ declare const editorMachine: StateMachine<
|
|
|
10479
10492
|
} & {
|
|
10480
10493
|
dataTransfer: DataTransfer
|
|
10481
10494
|
})
|
|
10482
|
-
|
|
|
10495
|
+
| InternalPatchEvent
|
|
10483
10496
|
| MutationEvent
|
|
10484
10497
|
| {
|
|
10485
10498
|
type: 'normalizing'
|
|
@@ -10837,6 +10850,7 @@ declare const editorMachine: StateMachine<
|
|
|
10837
10850
|
dataTransfer: DataTransfer
|
|
10838
10851
|
})
|
|
10839
10852
|
| PatchEvent
|
|
10853
|
+
| InternalPatchEvent
|
|
10840
10854
|
| MutationEvent
|
|
10841
10855
|
| PatchesEvent
|
|
10842
10856
|
| {
|
|
@@ -10894,7 +10908,7 @@ declare const editorMachine: StateMachine<
|
|
|
10894
10908
|
behaviors: Set<Behavior>
|
|
10895
10909
|
converters: Set<Converter>
|
|
10896
10910
|
keyGenerator: () => string
|
|
10897
|
-
pendingEvents: Array<
|
|
10911
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10898
10912
|
schema: EditorSchema
|
|
10899
10913
|
initialReadOnly: boolean
|
|
10900
10914
|
maxBlocks: number | undefined
|
|
@@ -11134,7 +11148,7 @@ declare const editorMachine: StateMachine<
|
|
|
11134
11148
|
} & {
|
|
11135
11149
|
dataTransfer: DataTransfer
|
|
11136
11150
|
})
|
|
11137
|
-
|
|
|
11151
|
+
| InternalPatchEvent
|
|
11138
11152
|
| MutationEvent
|
|
11139
11153
|
| {
|
|
11140
11154
|
type: 'normalizing'
|
|
@@ -11492,6 +11506,7 @@ declare const editorMachine: StateMachine<
|
|
|
11492
11506
|
dataTransfer: DataTransfer
|
|
11493
11507
|
})
|
|
11494
11508
|
| PatchEvent
|
|
11509
|
+
| InternalPatchEvent
|
|
11495
11510
|
| MutationEvent
|
|
11496
11511
|
| PatchesEvent
|
|
11497
11512
|
| {
|
|
@@ -11549,7 +11564,7 @@ declare const editorMachine: StateMachine<
|
|
|
11549
11564
|
behaviors: Set<Behavior>
|
|
11550
11565
|
converters: Set<Converter>
|
|
11551
11566
|
keyGenerator: () => string
|
|
11552
|
-
pendingEvents: Array<
|
|
11567
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11553
11568
|
schema: EditorSchema
|
|
11554
11569
|
initialReadOnly: boolean
|
|
11555
11570
|
maxBlocks: number | undefined
|
|
@@ -11782,7 +11797,7 @@ declare const editorMachine: StateMachine<
|
|
|
11782
11797
|
} & {
|
|
11783
11798
|
dataTransfer: DataTransfer
|
|
11784
11799
|
})
|
|
11785
|
-
|
|
|
11800
|
+
| InternalPatchEvent
|
|
11786
11801
|
| MutationEvent
|
|
11787
11802
|
| {
|
|
11788
11803
|
type: 'normalizing'
|
|
@@ -12140,6 +12155,7 @@ declare const editorMachine: StateMachine<
|
|
|
12140
12155
|
dataTransfer: DataTransfer
|
|
12141
12156
|
})
|
|
12142
12157
|
| PatchEvent
|
|
12158
|
+
| InternalPatchEvent
|
|
12143
12159
|
| MutationEvent
|
|
12144
12160
|
| PatchesEvent
|
|
12145
12161
|
| {
|
|
@@ -12197,7 +12213,7 @@ declare const editorMachine: StateMachine<
|
|
|
12197
12213
|
behaviors: Set<Behavior>
|
|
12198
12214
|
converters: Set<Converter>
|
|
12199
12215
|
keyGenerator: () => string
|
|
12200
|
-
pendingEvents: Array<
|
|
12216
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12201
12217
|
schema: EditorSchema
|
|
12202
12218
|
initialReadOnly: boolean
|
|
12203
12219
|
maxBlocks: number | undefined
|
|
@@ -12430,7 +12446,7 @@ declare const editorMachine: StateMachine<
|
|
|
12430
12446
|
} & {
|
|
12431
12447
|
dataTransfer: DataTransfer
|
|
12432
12448
|
})
|
|
12433
|
-
|
|
|
12449
|
+
| InternalPatchEvent
|
|
12434
12450
|
| MutationEvent
|
|
12435
12451
|
| {
|
|
12436
12452
|
type: 'normalizing'
|
|
@@ -12788,6 +12804,7 @@ declare const editorMachine: StateMachine<
|
|
|
12788
12804
|
dataTransfer: DataTransfer
|
|
12789
12805
|
})
|
|
12790
12806
|
| PatchEvent
|
|
12807
|
+
| InternalPatchEvent
|
|
12791
12808
|
| MutationEvent
|
|
12792
12809
|
| PatchesEvent
|
|
12793
12810
|
| {
|
|
@@ -12845,7 +12862,7 @@ declare const editorMachine: StateMachine<
|
|
|
12845
12862
|
behaviors: Set<Behavior>
|
|
12846
12863
|
converters: Set<Converter>
|
|
12847
12864
|
keyGenerator: () => string
|
|
12848
|
-
pendingEvents: Array<
|
|
12865
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12849
12866
|
schema: EditorSchema
|
|
12850
12867
|
initialReadOnly: boolean
|
|
12851
12868
|
maxBlocks: number | undefined
|
|
@@ -13091,7 +13108,7 @@ declare const editorMachine: StateMachine<
|
|
|
13091
13108
|
} & {
|
|
13092
13109
|
dataTransfer: DataTransfer
|
|
13093
13110
|
})
|
|
13094
|
-
|
|
|
13111
|
+
| InternalPatchEvent
|
|
13095
13112
|
| MutationEvent
|
|
13096
13113
|
| {
|
|
13097
13114
|
type: 'normalizing'
|
|
@@ -13449,6 +13466,7 @@ declare const editorMachine: StateMachine<
|
|
|
13449
13466
|
dataTransfer: DataTransfer
|
|
13450
13467
|
})
|
|
13451
13468
|
| PatchEvent
|
|
13469
|
+
| InternalPatchEvent
|
|
13452
13470
|
| MutationEvent
|
|
13453
13471
|
| PatchesEvent
|
|
13454
13472
|
| {
|
|
@@ -13506,7 +13524,7 @@ declare const editorMachine: StateMachine<
|
|
|
13506
13524
|
behaviors: Set<Behavior>
|
|
13507
13525
|
converters: Set<Converter>
|
|
13508
13526
|
keyGenerator: () => string
|
|
13509
|
-
pendingEvents: Array<
|
|
13527
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13510
13528
|
schema: EditorSchema
|
|
13511
13529
|
initialReadOnly: boolean
|
|
13512
13530
|
maxBlocks: number | undefined
|
|
@@ -13753,7 +13771,7 @@ declare const editorMachine: StateMachine<
|
|
|
13753
13771
|
} & {
|
|
13754
13772
|
dataTransfer: DataTransfer
|
|
13755
13773
|
})
|
|
13756
|
-
|
|
|
13774
|
+
| InternalPatchEvent
|
|
13757
13775
|
| MutationEvent
|
|
13758
13776
|
| {
|
|
13759
13777
|
type: 'normalizing'
|
|
@@ -14111,6 +14129,7 @@ declare const editorMachine: StateMachine<
|
|
|
14111
14129
|
dataTransfer: DataTransfer
|
|
14112
14130
|
})
|
|
14113
14131
|
| PatchEvent
|
|
14132
|
+
| InternalPatchEvent
|
|
14114
14133
|
| MutationEvent
|
|
14115
14134
|
| PatchesEvent
|
|
14116
14135
|
| {
|
|
@@ -14168,7 +14187,7 @@ declare const editorMachine: StateMachine<
|
|
|
14168
14187
|
behaviors: Set<Behavior>
|
|
14169
14188
|
converters: Set<Converter>
|
|
14170
14189
|
keyGenerator: () => string
|
|
14171
|
-
pendingEvents: Array<
|
|
14190
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14172
14191
|
schema: EditorSchema
|
|
14173
14192
|
initialReadOnly: boolean
|
|
14174
14193
|
maxBlocks: number | undefined
|
|
@@ -14401,7 +14420,7 @@ declare const editorMachine: StateMachine<
|
|
|
14401
14420
|
} & {
|
|
14402
14421
|
dataTransfer: DataTransfer
|
|
14403
14422
|
})
|
|
14404
|
-
|
|
|
14423
|
+
| InternalPatchEvent
|
|
14405
14424
|
| MutationEvent
|
|
14406
14425
|
| {
|
|
14407
14426
|
type: 'normalizing'
|
|
@@ -14759,6 +14778,7 @@ declare const editorMachine: StateMachine<
|
|
|
14759
14778
|
dataTransfer: DataTransfer
|
|
14760
14779
|
})
|
|
14761
14780
|
| PatchEvent
|
|
14781
|
+
| InternalPatchEvent
|
|
14762
14782
|
| MutationEvent
|
|
14763
14783
|
| PatchesEvent
|
|
14764
14784
|
| {
|
|
@@ -14816,7 +14836,7 @@ declare const editorMachine: StateMachine<
|
|
|
14816
14836
|
behaviors: Set<Behavior>
|
|
14817
14837
|
converters: Set<Converter>
|
|
14818
14838
|
keyGenerator: () => string
|
|
14819
|
-
pendingEvents: Array<
|
|
14839
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14820
14840
|
schema: EditorSchema
|
|
14821
14841
|
initialReadOnly: boolean
|
|
14822
14842
|
maxBlocks: number | undefined
|
|
@@ -15052,7 +15072,7 @@ declare const editorMachine: StateMachine<
|
|
|
15052
15072
|
} & {
|
|
15053
15073
|
dataTransfer: DataTransfer
|
|
15054
15074
|
})
|
|
15055
|
-
|
|
|
15075
|
+
| InternalPatchEvent
|
|
15056
15076
|
| MutationEvent
|
|
15057
15077
|
| {
|
|
15058
15078
|
type: 'normalizing'
|
|
@@ -15410,6 +15430,7 @@ declare const editorMachine: StateMachine<
|
|
|
15410
15430
|
dataTransfer: DataTransfer
|
|
15411
15431
|
})
|
|
15412
15432
|
| PatchEvent
|
|
15433
|
+
| InternalPatchEvent
|
|
15413
15434
|
| MutationEvent
|
|
15414
15435
|
| PatchesEvent
|
|
15415
15436
|
| {
|
|
@@ -15467,7 +15488,7 @@ declare const editorMachine: StateMachine<
|
|
|
15467
15488
|
behaviors: Set<Behavior>
|
|
15468
15489
|
converters: Set<Converter>
|
|
15469
15490
|
keyGenerator: () => string
|
|
15470
|
-
pendingEvents: Array<
|
|
15491
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15471
15492
|
schema: EditorSchema
|
|
15472
15493
|
initialReadOnly: boolean
|
|
15473
15494
|
maxBlocks: number | undefined
|
|
@@ -15754,7 +15775,7 @@ declare const editorMachine: StateMachine<
|
|
|
15754
15775
|
} & {
|
|
15755
15776
|
dataTransfer: DataTransfer
|
|
15756
15777
|
})
|
|
15757
|
-
|
|
|
15778
|
+
| InternalPatchEvent
|
|
15758
15779
|
| MutationEvent
|
|
15759
15780
|
| {
|
|
15760
15781
|
type: 'normalizing'
|
|
@@ -16112,6 +16133,7 @@ declare const editorMachine: StateMachine<
|
|
|
16112
16133
|
dataTransfer: DataTransfer
|
|
16113
16134
|
})
|
|
16114
16135
|
| PatchEvent
|
|
16136
|
+
| InternalPatchEvent
|
|
16115
16137
|
| MutationEvent
|
|
16116
16138
|
| PatchesEvent
|
|
16117
16139
|
| {
|
|
@@ -16169,7 +16191,7 @@ declare const editorMachine: StateMachine<
|
|
|
16169
16191
|
behaviors: Set<Behavior>
|
|
16170
16192
|
converters: Set<Converter>
|
|
16171
16193
|
keyGenerator: () => string
|
|
16172
|
-
pendingEvents: Array<
|
|
16194
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16173
16195
|
schema: EditorSchema
|
|
16174
16196
|
initialReadOnly: boolean
|
|
16175
16197
|
maxBlocks: number | undefined
|
|
@@ -16411,7 +16433,7 @@ declare const editorMachine: StateMachine<
|
|
|
16411
16433
|
} & {
|
|
16412
16434
|
dataTransfer: DataTransfer
|
|
16413
16435
|
})
|
|
16414
|
-
|
|
|
16436
|
+
| InternalPatchEvent
|
|
16415
16437
|
| MutationEvent
|
|
16416
16438
|
| {
|
|
16417
16439
|
type: 'normalizing'
|
|
@@ -16769,6 +16791,7 @@ declare const editorMachine: StateMachine<
|
|
|
16769
16791
|
dataTransfer: DataTransfer
|
|
16770
16792
|
})
|
|
16771
16793
|
| PatchEvent
|
|
16794
|
+
| InternalPatchEvent
|
|
16772
16795
|
| MutationEvent
|
|
16773
16796
|
| PatchesEvent
|
|
16774
16797
|
| {
|
|
@@ -16826,7 +16849,7 @@ declare const editorMachine: StateMachine<
|
|
|
16826
16849
|
behaviors: Set<Behavior>
|
|
16827
16850
|
converters: Set<Converter>
|
|
16828
16851
|
keyGenerator: () => string
|
|
16829
|
-
pendingEvents: Array<
|
|
16852
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16830
16853
|
schema: EditorSchema
|
|
16831
16854
|
initialReadOnly: boolean
|
|
16832
16855
|
maxBlocks: number | undefined
|
|
@@ -17069,7 +17092,7 @@ declare const editorMachine: StateMachine<
|
|
|
17069
17092
|
} & {
|
|
17070
17093
|
dataTransfer: DataTransfer
|
|
17071
17094
|
})
|
|
17072
|
-
|
|
|
17095
|
+
| InternalPatchEvent
|
|
17073
17096
|
| MutationEvent
|
|
17074
17097
|
| {
|
|
17075
17098
|
type: 'normalizing'
|
|
@@ -17427,6 +17450,7 @@ declare const editorMachine: StateMachine<
|
|
|
17427
17450
|
dataTransfer: DataTransfer
|
|
17428
17451
|
})
|
|
17429
17452
|
| PatchEvent
|
|
17453
|
+
| InternalPatchEvent
|
|
17430
17454
|
| MutationEvent
|
|
17431
17455
|
| PatchesEvent
|
|
17432
17456
|
| {
|
|
@@ -17484,7 +17508,7 @@ declare const editorMachine: StateMachine<
|
|
|
17484
17508
|
behaviors: Set<Behavior>
|
|
17485
17509
|
converters: Set<Converter>
|
|
17486
17510
|
keyGenerator: () => string
|
|
17487
|
-
pendingEvents: Array<
|
|
17511
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17488
17512
|
schema: EditorSchema
|
|
17489
17513
|
initialReadOnly: boolean
|
|
17490
17514
|
maxBlocks: number | undefined
|
|
@@ -17718,7 +17742,7 @@ declare const editorMachine: StateMachine<
|
|
|
17718
17742
|
} & {
|
|
17719
17743
|
dataTransfer: DataTransfer
|
|
17720
17744
|
})
|
|
17721
|
-
|
|
|
17745
|
+
| InternalPatchEvent
|
|
17722
17746
|
| MutationEvent
|
|
17723
17747
|
| {
|
|
17724
17748
|
type: 'normalizing'
|
|
@@ -18076,6 +18100,7 @@ declare const editorMachine: StateMachine<
|
|
|
18076
18100
|
dataTransfer: DataTransfer
|
|
18077
18101
|
})
|
|
18078
18102
|
| PatchEvent
|
|
18103
|
+
| InternalPatchEvent
|
|
18079
18104
|
| MutationEvent
|
|
18080
18105
|
| PatchesEvent
|
|
18081
18106
|
| {
|
|
@@ -18133,7 +18158,7 @@ declare const editorMachine: StateMachine<
|
|
|
18133
18158
|
behaviors: Set<Behavior>
|
|
18134
18159
|
converters: Set<Converter>
|
|
18135
18160
|
keyGenerator: () => string
|
|
18136
|
-
pendingEvents: Array<
|
|
18161
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18137
18162
|
schema: EditorSchema
|
|
18138
18163
|
initialReadOnly: boolean
|
|
18139
18164
|
maxBlocks: number | undefined
|
|
@@ -18369,7 +18394,7 @@ declare const editorMachine: StateMachine<
|
|
|
18369
18394
|
} & {
|
|
18370
18395
|
dataTransfer: DataTransfer
|
|
18371
18396
|
})
|
|
18372
|
-
|
|
|
18397
|
+
| InternalPatchEvent
|
|
18373
18398
|
| MutationEvent
|
|
18374
18399
|
| {
|
|
18375
18400
|
type: 'normalizing'
|
|
@@ -18727,6 +18752,7 @@ declare const editorMachine: StateMachine<
|
|
|
18727
18752
|
dataTransfer: DataTransfer
|
|
18728
18753
|
})
|
|
18729
18754
|
| PatchEvent
|
|
18755
|
+
| InternalPatchEvent
|
|
18730
18756
|
| MutationEvent
|
|
18731
18757
|
| PatchesEvent
|
|
18732
18758
|
| {
|
|
@@ -18784,7 +18810,7 @@ declare const editorMachine: StateMachine<
|
|
|
18784
18810
|
behaviors: Set<Behavior>
|
|
18785
18811
|
converters: Set<Converter>
|
|
18786
18812
|
keyGenerator: () => string
|
|
18787
|
-
pendingEvents: Array<
|
|
18813
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18788
18814
|
schema: EditorSchema
|
|
18789
18815
|
initialReadOnly: boolean
|
|
18790
18816
|
maxBlocks: number | undefined
|
|
@@ -19026,7 +19052,7 @@ declare const editorMachine: StateMachine<
|
|
|
19026
19052
|
} & {
|
|
19027
19053
|
dataTransfer: DataTransfer
|
|
19028
19054
|
})
|
|
19029
|
-
|
|
|
19055
|
+
| InternalPatchEvent
|
|
19030
19056
|
| MutationEvent
|
|
19031
19057
|
| {
|
|
19032
19058
|
type: 'normalizing'
|
|
@@ -19384,6 +19410,7 @@ declare const editorMachine: StateMachine<
|
|
|
19384
19410
|
dataTransfer: DataTransfer
|
|
19385
19411
|
})
|
|
19386
19412
|
| PatchEvent
|
|
19413
|
+
| InternalPatchEvent
|
|
19387
19414
|
| MutationEvent
|
|
19388
19415
|
| PatchesEvent
|
|
19389
19416
|
| {
|
|
@@ -19479,7 +19506,7 @@ declare const editorMachine: StateMachine<
|
|
|
19479
19506
|
readonly 'setting up': {
|
|
19480
19507
|
readonly exit: readonly ['emit ready']
|
|
19481
19508
|
readonly on: {
|
|
19482
|
-
readonly 'patch': {
|
|
19509
|
+
readonly 'internal.patch': {
|
|
19483
19510
|
readonly actions: 'defer event'
|
|
19484
19511
|
}
|
|
19485
19512
|
readonly 'mutation': {
|
|
@@ -19495,14 +19522,14 @@ declare const editorMachine: StateMachine<
|
|
|
19495
19522
|
readonly states: {
|
|
19496
19523
|
readonly idle: {
|
|
19497
19524
|
readonly on: {
|
|
19498
|
-
readonly normalizing: {
|
|
19525
|
+
readonly 'normalizing': {
|
|
19499
19526
|
readonly target: 'normalizing'
|
|
19500
19527
|
}
|
|
19501
|
-
readonly patch: {
|
|
19528
|
+
readonly 'internal.patch': {
|
|
19502
19529
|
readonly actions: 'defer event'
|
|
19503
19530
|
readonly target: '#editor.setup.dirty'
|
|
19504
19531
|
}
|
|
19505
|
-
readonly mutation: {
|
|
19532
|
+
readonly 'mutation': {
|
|
19506
19533
|
readonly actions: 'defer event'
|
|
19507
19534
|
readonly target: '#editor.setup.dirty'
|
|
19508
19535
|
}
|
|
@@ -19513,7 +19540,7 @@ declare const editorMachine: StateMachine<
|
|
|
19513
19540
|
readonly 'done normalizing': {
|
|
19514
19541
|
readonly target: 'idle'
|
|
19515
19542
|
}
|
|
19516
|
-
readonly 'patch': {
|
|
19543
|
+
readonly 'internal.patch': {
|
|
19517
19544
|
readonly actions: 'defer event'
|
|
19518
19545
|
}
|
|
19519
19546
|
readonly 'mutation': {
|
|
@@ -19529,10 +19556,10 @@ declare const editorMachine: StateMachine<
|
|
|
19529
19556
|
'clear pending events',
|
|
19530
19557
|
]
|
|
19531
19558
|
readonly on: {
|
|
19532
|
-
readonly patch: {
|
|
19559
|
+
readonly 'internal.patch': {
|
|
19533
19560
|
readonly actions: 'emit patch event'
|
|
19534
19561
|
}
|
|
19535
|
-
readonly mutation: {
|
|
19562
|
+
readonly 'mutation': {
|
|
19536
19563
|
readonly actions: 'emit mutation event'
|
|
19537
19564
|
}
|
|
19538
19565
|
}
|
|
@@ -19701,6 +19728,11 @@ export declare type HotkeyOptions = {
|
|
|
19701
19728
|
>
|
|
19702
19729
|
}
|
|
19703
19730
|
|
|
19731
|
+
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
19732
|
+
actionId?: string
|
|
19733
|
+
value: Array<PortableTextBlock>
|
|
19734
|
+
}
|
|
19735
|
+
|
|
19704
19736
|
/**
|
|
19705
19737
|
* The editor has an invalid value
|
|
19706
19738
|
* @beta */
|
|
@@ -19771,6 +19803,19 @@ export declare type MutationEvent = {
|
|
|
19771
19803
|
value: Array<PortableTextBlock> | undefined
|
|
19772
19804
|
}
|
|
19773
19805
|
|
|
19806
|
+
declare type NamespaceEvent<
|
|
19807
|
+
TEvent,
|
|
19808
|
+
TNamespace extends string,
|
|
19809
|
+
> = TEvent extends {
|
|
19810
|
+
type: infer TEventType
|
|
19811
|
+
}
|
|
19812
|
+
? {
|
|
19813
|
+
[K in keyof TEvent]: K extends 'type'
|
|
19814
|
+
? `${TNamespace}.${TEventType & string}`
|
|
19815
|
+
: TEvent[K]
|
|
19816
|
+
}
|
|
19817
|
+
: never
|
|
19818
|
+
|
|
19774
19819
|
/**
|
|
19775
19820
|
* @beta
|
|
19776
19821
|
*/
|