@portabletext/editor 1.19.0 → 1.20.0
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/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.is-selection-collapsed.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/selector.is-selection-collapsed.js.map +1 -1
- package/lib/behaviors/index.cjs.map +1 -1
- package/lib/behaviors/index.d.cts +2 -2
- package/lib/behaviors/index.d.ts +2 -2
- package/lib/behaviors/index.js.map +1 -1
- package/lib/index.cjs +44 -172
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +245 -27
- package/lib/index.d.ts +245 -27
- package/lib/index.js +44 -173
- package/lib/index.js.map +1 -1
- package/lib/selectors/index.cjs.map +1 -1
- package/package.json +5 -7
- package/src/behaviors/behavior.types.ts +2 -2
- package/src/editor/components/Element.tsx +17 -23
- package/src/editor/create-editor.ts +17 -0
- package/src/editor/editor-machine.ts +30 -4
- package/src/editor/nodes/DefaultObject.tsx +2 -2
- package/src/editor/nodes/index.ts +0 -189
package/lib/index.d.cts
CHANGED
|
@@ -469,6 +469,10 @@ export declare interface EditableAPIDeleteOptions {
|
|
|
469
469
|
*/
|
|
470
470
|
export declare type Editor = {
|
|
471
471
|
getSnapshot: () => EditorSnapshot
|
|
472
|
+
/**
|
|
473
|
+
* @beta
|
|
474
|
+
*/
|
|
475
|
+
registerBehavior: (config: {behavior: Behavior}) => () => void
|
|
472
476
|
send: (event: EditorEvent) => void
|
|
473
477
|
on: ActorRef<Snapshot<unknown>, EventObject, EditorEmittedEvent>['on']
|
|
474
478
|
_internal: {
|
|
@@ -599,7 +603,7 @@ export declare function EditorEventListener(props: {
|
|
|
599
603
|
*/
|
|
600
604
|
export declare const editorMachine: StateMachine<
|
|
601
605
|
{
|
|
602
|
-
behaviors:
|
|
606
|
+
behaviors: Set<Behavior>
|
|
603
607
|
keyGenerator: () => string
|
|
604
608
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
605
609
|
schema: EditorSchema
|
|
@@ -679,6 +683,14 @@ export declare const editorMachine: StateMachine<
|
|
|
679
683
|
preventDefault: () => void
|
|
680
684
|
}
|
|
681
685
|
}
|
|
686
|
+
| {
|
|
687
|
+
type: 'add behavior'
|
|
688
|
+
behavior: Behavior
|
|
689
|
+
}
|
|
690
|
+
| {
|
|
691
|
+
type: 'remove behavior'
|
|
692
|
+
behavior: Behavior
|
|
693
|
+
}
|
|
682
694
|
| {
|
|
683
695
|
type: 'update readOnly'
|
|
684
696
|
readOnly: boolean
|
|
@@ -744,6 +756,14 @@ export declare const editorMachine: StateMachine<
|
|
|
744
756
|
{},
|
|
745
757
|
never,
|
|
746
758
|
Values<{
|
|
759
|
+
'add behavior to context': {
|
|
760
|
+
type: 'add behavior to context'
|
|
761
|
+
params: NonReducibleUnknown
|
|
762
|
+
}
|
|
763
|
+
'remove behavior from context': {
|
|
764
|
+
type: 'remove behavior from context'
|
|
765
|
+
params: NonReducibleUnknown
|
|
766
|
+
}
|
|
747
767
|
'assign behaviors': {
|
|
748
768
|
type: 'assign behaviors'
|
|
749
769
|
params: NonReducibleUnknown
|
|
@@ -958,7 +978,7 @@ export declare const editorMachine: StateMachine<
|
|
|
958
978
|
self: ActorRef<
|
|
959
979
|
MachineSnapshot<
|
|
960
980
|
{
|
|
961
|
-
behaviors:
|
|
981
|
+
behaviors: Set<Behavior>
|
|
962
982
|
keyGenerator: () => string
|
|
963
983
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
964
984
|
schema: EditorSchema
|
|
@@ -1038,6 +1058,14 @@ export declare const editorMachine: StateMachine<
|
|
|
1038
1058
|
preventDefault: () => void
|
|
1039
1059
|
}
|
|
1040
1060
|
}
|
|
1061
|
+
| {
|
|
1062
|
+
type: 'add behavior'
|
|
1063
|
+
behavior: Behavior
|
|
1064
|
+
}
|
|
1065
|
+
| {
|
|
1066
|
+
type: 'remove behavior'
|
|
1067
|
+
behavior: Behavior
|
|
1068
|
+
}
|
|
1041
1069
|
| {
|
|
1042
1070
|
type: 'update readOnly'
|
|
1043
1071
|
readOnly: boolean
|
|
@@ -1178,6 +1206,14 @@ export declare const editorMachine: StateMachine<
|
|
|
1178
1206
|
preventDefault: () => void
|
|
1179
1207
|
}
|
|
1180
1208
|
}
|
|
1209
|
+
| {
|
|
1210
|
+
type: 'add behavior'
|
|
1211
|
+
behavior: Behavior
|
|
1212
|
+
}
|
|
1213
|
+
| {
|
|
1214
|
+
type: 'remove behavior'
|
|
1215
|
+
behavior: Behavior
|
|
1216
|
+
}
|
|
1181
1217
|
| {
|
|
1182
1218
|
type: 'update readOnly'
|
|
1183
1219
|
readOnly: boolean
|
|
@@ -1243,7 +1279,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1243
1279
|
AnyEventObject
|
|
1244
1280
|
>
|
|
1245
1281
|
}) => {
|
|
1246
|
-
behaviors: Behavior
|
|
1282
|
+
behaviors: Set<Behavior>
|
|
1247
1283
|
keyGenerator: () => string
|
|
1248
1284
|
pendingEvents: never[]
|
|
1249
1285
|
schema: PortableTextMemberSchemaTypes
|
|
@@ -1253,10 +1289,16 @@ export declare const editorMachine: StateMachine<
|
|
|
1253
1289
|
value: PortableTextBlock[] | undefined
|
|
1254
1290
|
}
|
|
1255
1291
|
readonly on: {
|
|
1292
|
+
readonly 'add behavior': {
|
|
1293
|
+
readonly actions: 'add behavior to context'
|
|
1294
|
+
}
|
|
1295
|
+
readonly 'remove behavior': {
|
|
1296
|
+
readonly actions: 'remove behavior from context'
|
|
1297
|
+
}
|
|
1256
1298
|
readonly 'unset': {
|
|
1257
1299
|
readonly actions: ActionFunction<
|
|
1258
1300
|
{
|
|
1259
|
-
behaviors:
|
|
1301
|
+
behaviors: Set<Behavior>
|
|
1260
1302
|
keyGenerator: () => string
|
|
1261
1303
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1262
1304
|
schema: EditorSchema
|
|
@@ -1340,6 +1382,14 @@ export declare const editorMachine: StateMachine<
|
|
|
1340
1382
|
preventDefault: () => void
|
|
1341
1383
|
}
|
|
1342
1384
|
}
|
|
1385
|
+
| {
|
|
1386
|
+
type: 'add behavior'
|
|
1387
|
+
behavior: Behavior
|
|
1388
|
+
}
|
|
1389
|
+
| {
|
|
1390
|
+
type: 'remove behavior'
|
|
1391
|
+
behavior: Behavior
|
|
1392
|
+
}
|
|
1343
1393
|
| {
|
|
1344
1394
|
type: 'update readOnly'
|
|
1345
1395
|
readOnly: boolean
|
|
@@ -1517,7 +1567,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1517
1567
|
readonly 'value changed': {
|
|
1518
1568
|
readonly actions: ActionFunction<
|
|
1519
1569
|
{
|
|
1520
|
-
behaviors:
|
|
1570
|
+
behaviors: Set<Behavior>
|
|
1521
1571
|
keyGenerator: () => string
|
|
1522
1572
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1523
1573
|
schema: EditorSchema
|
|
@@ -1601,6 +1651,14 @@ export declare const editorMachine: StateMachine<
|
|
|
1601
1651
|
preventDefault: () => void
|
|
1602
1652
|
}
|
|
1603
1653
|
}
|
|
1654
|
+
| {
|
|
1655
|
+
type: 'add behavior'
|
|
1656
|
+
behavior: Behavior
|
|
1657
|
+
}
|
|
1658
|
+
| {
|
|
1659
|
+
type: 'remove behavior'
|
|
1660
|
+
behavior: Behavior
|
|
1661
|
+
}
|
|
1604
1662
|
| {
|
|
1605
1663
|
type: 'update readOnly'
|
|
1606
1664
|
readOnly: boolean
|
|
@@ -1778,7 +1836,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1778
1836
|
readonly 'invalid value': {
|
|
1779
1837
|
readonly actions: ActionFunction<
|
|
1780
1838
|
{
|
|
1781
|
-
behaviors:
|
|
1839
|
+
behaviors: Set<Behavior>
|
|
1782
1840
|
keyGenerator: () => string
|
|
1783
1841
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1784
1842
|
schema: EditorSchema
|
|
@@ -1863,6 +1921,14 @@ export declare const editorMachine: StateMachine<
|
|
|
1863
1921
|
preventDefault: () => void
|
|
1864
1922
|
}
|
|
1865
1923
|
}
|
|
1924
|
+
| {
|
|
1925
|
+
type: 'add behavior'
|
|
1926
|
+
behavior: Behavior
|
|
1927
|
+
}
|
|
1928
|
+
| {
|
|
1929
|
+
type: 'remove behavior'
|
|
1930
|
+
behavior: Behavior
|
|
1931
|
+
}
|
|
1866
1932
|
| {
|
|
1867
1933
|
type: 'update readOnly'
|
|
1868
1934
|
readOnly: boolean
|
|
@@ -2040,7 +2106,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2040
2106
|
readonly 'error': {
|
|
2041
2107
|
readonly actions: ActionFunction<
|
|
2042
2108
|
{
|
|
2043
|
-
behaviors:
|
|
2109
|
+
behaviors: Set<Behavior>
|
|
2044
2110
|
keyGenerator: () => string
|
|
2045
2111
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2046
2112
|
schema: EditorSchema
|
|
@@ -2126,6 +2192,14 @@ export declare const editorMachine: StateMachine<
|
|
|
2126
2192
|
preventDefault: () => void
|
|
2127
2193
|
}
|
|
2128
2194
|
}
|
|
2195
|
+
| {
|
|
2196
|
+
type: 'add behavior'
|
|
2197
|
+
behavior: Behavior
|
|
2198
|
+
}
|
|
2199
|
+
| {
|
|
2200
|
+
type: 'remove behavior'
|
|
2201
|
+
behavior: Behavior
|
|
2202
|
+
}
|
|
2129
2203
|
| {
|
|
2130
2204
|
type: 'update readOnly'
|
|
2131
2205
|
readOnly: boolean
|
|
@@ -2304,7 +2378,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2304
2378
|
readonly actions: readonly [
|
|
2305
2379
|
ActionFunction<
|
|
2306
2380
|
{
|
|
2307
|
-
behaviors:
|
|
2381
|
+
behaviors: Set<Behavior>
|
|
2308
2382
|
keyGenerator: () => string
|
|
2309
2383
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2310
2384
|
schema: EditorSchema
|
|
@@ -2388,6 +2462,14 @@ export declare const editorMachine: StateMachine<
|
|
|
2388
2462
|
preventDefault: () => void
|
|
2389
2463
|
}
|
|
2390
2464
|
}
|
|
2465
|
+
| {
|
|
2466
|
+
type: 'add behavior'
|
|
2467
|
+
behavior: Behavior
|
|
2468
|
+
}
|
|
2469
|
+
| {
|
|
2470
|
+
type: 'remove behavior'
|
|
2471
|
+
behavior: Behavior
|
|
2472
|
+
}
|
|
2391
2473
|
| {
|
|
2392
2474
|
type: 'update readOnly'
|
|
2393
2475
|
readOnly: boolean
|
|
@@ -2459,7 +2541,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2459
2541
|
>,
|
|
2460
2542
|
ActionFunction<
|
|
2461
2543
|
{
|
|
2462
|
-
behaviors:
|
|
2544
|
+
behaviors: Set<Behavior>
|
|
2463
2545
|
keyGenerator: () => string
|
|
2464
2546
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2465
2547
|
schema: EditorSchema
|
|
@@ -2543,6 +2625,14 @@ export declare const editorMachine: StateMachine<
|
|
|
2543
2625
|
preventDefault: () => void
|
|
2544
2626
|
}
|
|
2545
2627
|
}
|
|
2628
|
+
| {
|
|
2629
|
+
type: 'add behavior'
|
|
2630
|
+
behavior: Behavior
|
|
2631
|
+
}
|
|
2632
|
+
| {
|
|
2633
|
+
type: 'remove behavior'
|
|
2634
|
+
behavior: Behavior
|
|
2635
|
+
}
|
|
2546
2636
|
| {
|
|
2547
2637
|
type: 'update readOnly'
|
|
2548
2638
|
readOnly: boolean
|
|
@@ -2721,7 +2811,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2721
2811
|
readonly 'blurred': {
|
|
2722
2812
|
readonly actions: ActionFunction<
|
|
2723
2813
|
{
|
|
2724
|
-
behaviors:
|
|
2814
|
+
behaviors: Set<Behavior>
|
|
2725
2815
|
keyGenerator: () => string
|
|
2726
2816
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2727
2817
|
schema: EditorSchema
|
|
@@ -2805,6 +2895,14 @@ export declare const editorMachine: StateMachine<
|
|
|
2805
2895
|
preventDefault: () => void
|
|
2806
2896
|
}
|
|
2807
2897
|
}
|
|
2898
|
+
| {
|
|
2899
|
+
type: 'add behavior'
|
|
2900
|
+
behavior: Behavior
|
|
2901
|
+
}
|
|
2902
|
+
| {
|
|
2903
|
+
type: 'remove behavior'
|
|
2904
|
+
behavior: Behavior
|
|
2905
|
+
}
|
|
2808
2906
|
| {
|
|
2809
2907
|
type: 'update readOnly'
|
|
2810
2908
|
readOnly: boolean
|
|
@@ -2982,7 +3080,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2982
3080
|
readonly 'focused': {
|
|
2983
3081
|
readonly actions: ActionFunction<
|
|
2984
3082
|
{
|
|
2985
|
-
behaviors:
|
|
3083
|
+
behaviors: Set<Behavior>
|
|
2986
3084
|
keyGenerator: () => string
|
|
2987
3085
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2988
3086
|
schema: EditorSchema
|
|
@@ -3066,6 +3164,14 @@ export declare const editorMachine: StateMachine<
|
|
|
3066
3164
|
preventDefault: () => void
|
|
3067
3165
|
}
|
|
3068
3166
|
}
|
|
3167
|
+
| {
|
|
3168
|
+
type: 'add behavior'
|
|
3169
|
+
behavior: Behavior
|
|
3170
|
+
}
|
|
3171
|
+
| {
|
|
3172
|
+
type: 'remove behavior'
|
|
3173
|
+
behavior: Behavior
|
|
3174
|
+
}
|
|
3069
3175
|
| {
|
|
3070
3176
|
type: 'update readOnly'
|
|
3071
3177
|
readOnly: boolean
|
|
@@ -3243,7 +3349,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3243
3349
|
readonly 'loading': {
|
|
3244
3350
|
readonly actions: ActionFunction<
|
|
3245
3351
|
{
|
|
3246
|
-
behaviors:
|
|
3352
|
+
behaviors: Set<Behavior>
|
|
3247
3353
|
keyGenerator: () => string
|
|
3248
3354
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3249
3355
|
schema: EditorSchema
|
|
@@ -3326,6 +3432,14 @@ export declare const editorMachine: StateMachine<
|
|
|
3326
3432
|
preventDefault: () => void
|
|
3327
3433
|
}
|
|
3328
3434
|
}
|
|
3435
|
+
| {
|
|
3436
|
+
type: 'add behavior'
|
|
3437
|
+
behavior: Behavior
|
|
3438
|
+
}
|
|
3439
|
+
| {
|
|
3440
|
+
type: 'remove behavior'
|
|
3441
|
+
behavior: Behavior
|
|
3442
|
+
}
|
|
3329
3443
|
| {
|
|
3330
3444
|
type: 'update readOnly'
|
|
3331
3445
|
readOnly: boolean
|
|
@@ -3503,7 +3617,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3503
3617
|
readonly 'patches': {
|
|
3504
3618
|
readonly actions: ActionFunction<
|
|
3505
3619
|
{
|
|
3506
|
-
behaviors:
|
|
3620
|
+
behaviors: Set<Behavior>
|
|
3507
3621
|
keyGenerator: () => string
|
|
3508
3622
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3509
3623
|
schema: EditorSchema
|
|
@@ -3584,6 +3698,14 @@ export declare const editorMachine: StateMachine<
|
|
|
3584
3698
|
preventDefault: () => void
|
|
3585
3699
|
}
|
|
3586
3700
|
}
|
|
3701
|
+
| {
|
|
3702
|
+
type: 'add behavior'
|
|
3703
|
+
behavior: Behavior
|
|
3704
|
+
}
|
|
3705
|
+
| {
|
|
3706
|
+
type: 'remove behavior'
|
|
3707
|
+
behavior: Behavior
|
|
3708
|
+
}
|
|
3587
3709
|
| {
|
|
3588
3710
|
type: 'update readOnly'
|
|
3589
3711
|
readOnly: boolean
|
|
@@ -3761,7 +3883,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3761
3883
|
readonly 'done loading': {
|
|
3762
3884
|
readonly actions: ActionFunction<
|
|
3763
3885
|
{
|
|
3764
|
-
behaviors:
|
|
3886
|
+
behaviors: Set<Behavior>
|
|
3765
3887
|
keyGenerator: () => string
|
|
3766
3888
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3767
3889
|
schema: EditorSchema
|
|
@@ -3844,6 +3966,14 @@ export declare const editorMachine: StateMachine<
|
|
|
3844
3966
|
preventDefault: () => void
|
|
3845
3967
|
}
|
|
3846
3968
|
}
|
|
3969
|
+
| {
|
|
3970
|
+
type: 'add behavior'
|
|
3971
|
+
behavior: Behavior
|
|
3972
|
+
}
|
|
3973
|
+
| {
|
|
3974
|
+
type: 'remove behavior'
|
|
3975
|
+
behavior: Behavior
|
|
3976
|
+
}
|
|
3847
3977
|
| {
|
|
3848
3978
|
type: 'update readOnly'
|
|
3849
3979
|
readOnly: boolean
|
|
@@ -4027,7 +4157,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4027
4157
|
readonly 'update value': {
|
|
4028
4158
|
readonly actions: ActionFunction<
|
|
4029
4159
|
{
|
|
4030
|
-
behaviors:
|
|
4160
|
+
behaviors: Set<Behavior>
|
|
4031
4161
|
keyGenerator: () => string
|
|
4032
4162
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4033
4163
|
schema: EditorSchema
|
|
@@ -4111,6 +4241,14 @@ export declare const editorMachine: StateMachine<
|
|
|
4111
4241
|
preventDefault: () => void
|
|
4112
4242
|
}
|
|
4113
4243
|
}
|
|
4244
|
+
| {
|
|
4245
|
+
type: 'add behavior'
|
|
4246
|
+
behavior: Behavior
|
|
4247
|
+
}
|
|
4248
|
+
| {
|
|
4249
|
+
type: 'remove behavior'
|
|
4250
|
+
behavior: Behavior
|
|
4251
|
+
}
|
|
4114
4252
|
| {
|
|
4115
4253
|
type: 'update readOnly'
|
|
4116
4254
|
readOnly: boolean
|
|
@@ -4184,7 +4322,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4184
4322
|
readonly 'update maxBlocks': {
|
|
4185
4323
|
readonly actions: ActionFunction<
|
|
4186
4324
|
{
|
|
4187
|
-
behaviors:
|
|
4325
|
+
behaviors: Set<Behavior>
|
|
4188
4326
|
keyGenerator: () => string
|
|
4189
4327
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4190
4328
|
schema: EditorSchema
|
|
@@ -4268,6 +4406,14 @@ export declare const editorMachine: StateMachine<
|
|
|
4268
4406
|
preventDefault: () => void
|
|
4269
4407
|
}
|
|
4270
4408
|
}
|
|
4409
|
+
| {
|
|
4410
|
+
type: 'add behavior'
|
|
4411
|
+
behavior: Behavior
|
|
4412
|
+
}
|
|
4413
|
+
| {
|
|
4414
|
+
type: 'remove behavior'
|
|
4415
|
+
behavior: Behavior
|
|
4416
|
+
}
|
|
4271
4417
|
| {
|
|
4272
4418
|
type: 'update readOnly'
|
|
4273
4419
|
readOnly: boolean
|
|
@@ -4356,7 +4502,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4356
4502
|
context,
|
|
4357
4503
|
}: GuardArgs<
|
|
4358
4504
|
{
|
|
4359
|
-
behaviors:
|
|
4505
|
+
behaviors: Set<Behavior>
|
|
4360
4506
|
keyGenerator: () => string
|
|
4361
4507
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4362
4508
|
schema: EditorSchema
|
|
@@ -4383,7 +4529,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4383
4529
|
event,
|
|
4384
4530
|
}: GuardArgs<
|
|
4385
4531
|
{
|
|
4386
|
-
behaviors:
|
|
4532
|
+
behaviors: Set<Behavior>
|
|
4387
4533
|
keyGenerator: () => string
|
|
4388
4534
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4389
4535
|
schema: EditorSchema
|
|
@@ -4411,7 +4557,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4411
4557
|
event,
|
|
4412
4558
|
}: GuardArgs<
|
|
4413
4559
|
{
|
|
4414
|
-
behaviors:
|
|
4560
|
+
behaviors: Set<Behavior>
|
|
4415
4561
|
keyGenerator: () => string
|
|
4416
4562
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4417
4563
|
schema: EditorSchema
|
|
@@ -4434,7 +4580,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4434
4580
|
readonly 'annotation.*': {
|
|
4435
4581
|
readonly actions: ActionFunction<
|
|
4436
4582
|
{
|
|
4437
|
-
behaviors:
|
|
4583
|
+
behaviors: Set<Behavior>
|
|
4438
4584
|
keyGenerator: () => string
|
|
4439
4585
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4440
4586
|
schema: EditorSchema
|
|
@@ -4531,6 +4677,14 @@ export declare const editorMachine: StateMachine<
|
|
|
4531
4677
|
preventDefault: () => void
|
|
4532
4678
|
}
|
|
4533
4679
|
}
|
|
4680
|
+
| {
|
|
4681
|
+
type: 'add behavior'
|
|
4682
|
+
behavior: Behavior
|
|
4683
|
+
}
|
|
4684
|
+
| {
|
|
4685
|
+
type: 'remove behavior'
|
|
4686
|
+
behavior: Behavior
|
|
4687
|
+
}
|
|
4534
4688
|
| {
|
|
4535
4689
|
type: 'update readOnly'
|
|
4536
4690
|
readOnly: boolean
|
|
@@ -4708,7 +4862,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4708
4862
|
readonly 'blur': {
|
|
4709
4863
|
readonly actions: ActionFunction<
|
|
4710
4864
|
{
|
|
4711
|
-
behaviors:
|
|
4865
|
+
behaviors: Set<Behavior>
|
|
4712
4866
|
keyGenerator: () => string
|
|
4713
4867
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4714
4868
|
schema: EditorSchema
|
|
@@ -4793,6 +4947,14 @@ export declare const editorMachine: StateMachine<
|
|
|
4793
4947
|
preventDefault: () => void
|
|
4794
4948
|
}
|
|
4795
4949
|
}
|
|
4950
|
+
| {
|
|
4951
|
+
type: 'add behavior'
|
|
4952
|
+
behavior: Behavior
|
|
4953
|
+
}
|
|
4954
|
+
| {
|
|
4955
|
+
type: 'remove behavior'
|
|
4956
|
+
behavior: Behavior
|
|
4957
|
+
}
|
|
4796
4958
|
| {
|
|
4797
4959
|
type: 'update readOnly'
|
|
4798
4960
|
readOnly: boolean
|
|
@@ -4970,7 +5132,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4970
5132
|
readonly 'decorator.*': {
|
|
4971
5133
|
readonly actions: ActionFunction<
|
|
4972
5134
|
{
|
|
4973
|
-
behaviors:
|
|
5135
|
+
behaviors: Set<Behavior>
|
|
4974
5136
|
keyGenerator: () => string
|
|
4975
5137
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4976
5138
|
schema: EditorSchema
|
|
@@ -5056,6 +5218,14 @@ export declare const editorMachine: StateMachine<
|
|
|
5056
5218
|
preventDefault: () => void
|
|
5057
5219
|
}
|
|
5058
5220
|
}
|
|
5221
|
+
| {
|
|
5222
|
+
type: 'add behavior'
|
|
5223
|
+
behavior: Behavior
|
|
5224
|
+
}
|
|
5225
|
+
| {
|
|
5226
|
+
type: 'remove behavior'
|
|
5227
|
+
behavior: Behavior
|
|
5228
|
+
}
|
|
5059
5229
|
| {
|
|
5060
5230
|
type: 'update readOnly'
|
|
5061
5231
|
readOnly: boolean
|
|
@@ -5233,7 +5403,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5233
5403
|
readonly 'focus': {
|
|
5234
5404
|
readonly actions: ActionFunction<
|
|
5235
5405
|
{
|
|
5236
|
-
behaviors:
|
|
5406
|
+
behaviors: Set<Behavior>
|
|
5237
5407
|
keyGenerator: () => string
|
|
5238
5408
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
5239
5409
|
schema: EditorSchema
|
|
@@ -5318,6 +5488,14 @@ export declare const editorMachine: StateMachine<
|
|
|
5318
5488
|
preventDefault: () => void
|
|
5319
5489
|
}
|
|
5320
5490
|
}
|
|
5491
|
+
| {
|
|
5492
|
+
type: 'add behavior'
|
|
5493
|
+
behavior: Behavior
|
|
5494
|
+
}
|
|
5495
|
+
| {
|
|
5496
|
+
type: 'remove behavior'
|
|
5497
|
+
behavior: Behavior
|
|
5498
|
+
}
|
|
5321
5499
|
| {
|
|
5322
5500
|
type: 'update readOnly'
|
|
5323
5501
|
readOnly: boolean
|
|
@@ -5495,7 +5673,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5495
5673
|
readonly 'insert.*': {
|
|
5496
5674
|
readonly actions: ActionFunction<
|
|
5497
5675
|
{
|
|
5498
|
-
behaviors:
|
|
5676
|
+
behaviors: Set<Behavior>
|
|
5499
5677
|
keyGenerator: () => string
|
|
5500
5678
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
5501
5679
|
schema: EditorSchema
|
|
@@ -5596,6 +5774,14 @@ export declare const editorMachine: StateMachine<
|
|
|
5596
5774
|
preventDefault: () => void
|
|
5597
5775
|
}
|
|
5598
5776
|
}
|
|
5777
|
+
| {
|
|
5778
|
+
type: 'add behavior'
|
|
5779
|
+
behavior: Behavior
|
|
5780
|
+
}
|
|
5781
|
+
| {
|
|
5782
|
+
type: 'remove behavior'
|
|
5783
|
+
behavior: Behavior
|
|
5784
|
+
}
|
|
5599
5785
|
| {
|
|
5600
5786
|
type: 'update readOnly'
|
|
5601
5787
|
readOnly: boolean
|
|
@@ -5773,7 +5959,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5773
5959
|
readonly 'list item.*': {
|
|
5774
5960
|
readonly actions: ActionFunction<
|
|
5775
5961
|
{
|
|
5776
|
-
behaviors:
|
|
5962
|
+
behaviors: Set<Behavior>
|
|
5777
5963
|
keyGenerator: () => string
|
|
5778
5964
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
5779
5965
|
schema: EditorSchema
|
|
@@ -5859,6 +6045,14 @@ export declare const editorMachine: StateMachine<
|
|
|
5859
6045
|
preventDefault: () => void
|
|
5860
6046
|
}
|
|
5861
6047
|
}
|
|
6048
|
+
| {
|
|
6049
|
+
type: 'add behavior'
|
|
6050
|
+
behavior: Behavior
|
|
6051
|
+
}
|
|
6052
|
+
| {
|
|
6053
|
+
type: 'remove behavior'
|
|
6054
|
+
behavior: Behavior
|
|
6055
|
+
}
|
|
5862
6056
|
| {
|
|
5863
6057
|
type: 'update readOnly'
|
|
5864
6058
|
readOnly: boolean
|
|
@@ -6036,7 +6230,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6036
6230
|
readonly 'select': {
|
|
6037
6231
|
readonly actions: ActionFunction<
|
|
6038
6232
|
{
|
|
6039
|
-
behaviors:
|
|
6233
|
+
behaviors: Set<Behavior>
|
|
6040
6234
|
keyGenerator: () => string
|
|
6041
6235
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
6042
6236
|
schema: EditorSchema
|
|
@@ -6122,6 +6316,14 @@ export declare const editorMachine: StateMachine<
|
|
|
6122
6316
|
preventDefault: () => void
|
|
6123
6317
|
}
|
|
6124
6318
|
}
|
|
6319
|
+
| {
|
|
6320
|
+
type: 'add behavior'
|
|
6321
|
+
behavior: Behavior
|
|
6322
|
+
}
|
|
6323
|
+
| {
|
|
6324
|
+
type: 'remove behavior'
|
|
6325
|
+
behavior: Behavior
|
|
6326
|
+
}
|
|
6125
6327
|
| {
|
|
6126
6328
|
type: 'update readOnly'
|
|
6127
6329
|
readOnly: boolean
|
|
@@ -6299,7 +6501,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6299
6501
|
readonly 'style.*': {
|
|
6300
6502
|
readonly actions: ActionFunction<
|
|
6301
6503
|
{
|
|
6302
|
-
behaviors:
|
|
6504
|
+
behaviors: Set<Behavior>
|
|
6303
6505
|
keyGenerator: () => string
|
|
6304
6506
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
6305
6507
|
schema: EditorSchema
|
|
@@ -6385,6 +6587,14 @@ export declare const editorMachine: StateMachine<
|
|
|
6385
6587
|
preventDefault: () => void
|
|
6386
6588
|
}
|
|
6387
6589
|
}
|
|
6590
|
+
| {
|
|
6591
|
+
type: 'add behavior'
|
|
6592
|
+
behavior: Behavior
|
|
6593
|
+
}
|
|
6594
|
+
| {
|
|
6595
|
+
type: 'remove behavior'
|
|
6596
|
+
behavior: Behavior
|
|
6597
|
+
}
|
|
6388
6598
|
| {
|
|
6389
6599
|
type: 'update readOnly'
|
|
6390
6600
|
readOnly: boolean
|
|
@@ -6821,6 +7031,14 @@ export declare type InternalEditorEvent =
|
|
|
6821
7031
|
preventDefault: () => void
|
|
6822
7032
|
}
|
|
6823
7033
|
}
|
|
7034
|
+
| {
|
|
7035
|
+
type: 'add behavior'
|
|
7036
|
+
behavior: Behavior
|
|
7037
|
+
}
|
|
7038
|
+
| {
|
|
7039
|
+
type: 'remove behavior'
|
|
7040
|
+
behavior: Behavior
|
|
7041
|
+
}
|
|
6824
7042
|
| {
|
|
6825
7043
|
type: 'update readOnly'
|
|
6826
7044
|
readOnly: boolean
|