@portabletext/editor 1.15.2 → 1.15.3
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 +5 -3
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/selectors.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js +5 -3
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/selectors.js.map +1 -1
- package/lib/behaviors/index.cjs +12 -12
- package/lib/behaviors/index.cjs.map +1 -1
- package/lib/behaviors/index.d.cts +39 -45
- package/lib/behaviors/index.d.ts +39 -45
- package/lib/behaviors/index.js +12 -12
- package/lib/behaviors/index.js.map +1 -1
- package/lib/index.cjs +13 -27
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +129 -133
- package/lib/index.d.ts +129 -133
- package/lib/index.js +13 -27
- package/lib/index.js.map +1 -1
- package/lib/selectors/index.d.cts +8 -12
- package/lib/selectors/index.d.ts +8 -12
- package/package.json +2 -2
- package/src/behavior-actions/behavior.action-utils.insert-block.ts +3 -5
- package/src/behavior-actions/behavior.actions.ts +6 -6
- package/src/behavior-actions/behavior.guards.ts +2 -6
- package/src/behaviors/behavior.core.block-objects.ts +1 -1
- package/src/behaviors/behavior.core.lists.ts +2 -2
- package/src/behaviors/behavior.links.ts +2 -2
- package/src/behaviors/behavior.markdown.ts +11 -19
- package/src/behaviors/behavior.types.ts +7 -7
- package/src/behaviors/index.ts +1 -0
- package/src/editor/PortableTextEditor.tsx +2 -2
- package/src/{utils/getPortableTextMemberSchemaTypes.ts → editor/create-editor-schema.ts} +3 -3
- package/src/editor/create-editor.ts +2 -2
- package/src/editor/define-schema.ts +8 -3
- package/src/editor/editor-machine.ts +7 -24
- package/src/editor/editor-selector.ts +1 -13
- package/src/editor/editor-snapshot.ts +4 -6
- package/src/index.ts +3 -5
- package/src/selectors/index.ts +2 -4
- package/src/utils/__tests__/operationToPatches.test.ts +2 -2
- package/src/utils/__tests__/patchToOperations.test.ts +2 -2
- package/src/utils/__tests__/values.test.ts +2 -2
package/lib/index.d.cts
CHANGED
|
@@ -177,17 +177,17 @@ export declare type BehaviorActionIntend =
|
|
|
177
177
|
effect: () => void
|
|
178
178
|
}
|
|
179
179
|
| {
|
|
180
|
-
type: '
|
|
181
|
-
selection: EditorSelection
|
|
180
|
+
type: 'reselect'
|
|
182
181
|
}
|
|
183
182
|
| {
|
|
184
|
-
type: 'select
|
|
183
|
+
type: 'select'
|
|
184
|
+
selection: EditorSelection
|
|
185
185
|
}
|
|
186
186
|
| {
|
|
187
|
-
type: 'select
|
|
187
|
+
type: 'select.previous block'
|
|
188
188
|
}
|
|
189
189
|
| {
|
|
190
|
-
type: '
|
|
190
|
+
type: 'select.next block'
|
|
191
191
|
}
|
|
192
192
|
| {
|
|
193
193
|
type: 'style.add'
|
|
@@ -516,8 +516,8 @@ export declare type EditorConfig = {
|
|
|
516
516
|
*/
|
|
517
517
|
export declare type EditorContext = {
|
|
518
518
|
keyGenerator: () => string
|
|
519
|
-
schema:
|
|
520
|
-
selection:
|
|
519
|
+
schema: EditorSchema
|
|
520
|
+
selection: EditorSelection
|
|
521
521
|
value: Array<PortableTextBlock>
|
|
522
522
|
}
|
|
523
523
|
|
|
@@ -578,10 +578,10 @@ export declare const editorMachine: StateMachine<
|
|
|
578
578
|
behaviors: Array<Behavior>
|
|
579
579
|
keyGenerator: () => string
|
|
580
580
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
581
|
-
schema:
|
|
581
|
+
schema: EditorSchema
|
|
582
582
|
readOnly: boolean
|
|
583
583
|
maxBlocks: number | undefined
|
|
584
|
-
selection:
|
|
584
|
+
selection: EditorSelection
|
|
585
585
|
value: Array<PortableTextBlock> | undefined
|
|
586
586
|
},
|
|
587
587
|
| {
|
|
@@ -676,7 +676,7 @@ export declare const editorMachine: StateMachine<
|
|
|
676
676
|
}
|
|
677
677
|
| {
|
|
678
678
|
type: 'update schema'
|
|
679
|
-
schema:
|
|
679
|
+
schema: EditorSchema
|
|
680
680
|
}
|
|
681
681
|
| {
|
|
682
682
|
type: 'update behaviors'
|
|
@@ -782,7 +782,7 @@ export declare const editorMachine: StateMachine<
|
|
|
782
782
|
keyGenerator: () => string
|
|
783
783
|
maxBlocks?: number
|
|
784
784
|
readOnly?: boolean
|
|
785
|
-
schema:
|
|
785
|
+
schema: EditorSchema
|
|
786
786
|
value?: Array<PortableTextBlock>
|
|
787
787
|
},
|
|
788
788
|
NonReducibleUnknown,
|
|
@@ -930,7 +930,7 @@ export declare const editorMachine: StateMachine<
|
|
|
930
930
|
keyGenerator: () => string
|
|
931
931
|
maxBlocks?: number
|
|
932
932
|
readOnly?: boolean
|
|
933
|
-
schema:
|
|
933
|
+
schema: EditorSchema
|
|
934
934
|
value?: Array<PortableTextBlock>
|
|
935
935
|
}
|
|
936
936
|
self: ActorRef<
|
|
@@ -939,10 +939,10 @@ export declare const editorMachine: StateMachine<
|
|
|
939
939
|
behaviors: Array<Behavior>
|
|
940
940
|
keyGenerator: () => string
|
|
941
941
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
942
|
-
schema:
|
|
942
|
+
schema: EditorSchema
|
|
943
943
|
readOnly: boolean
|
|
944
944
|
maxBlocks: number | undefined
|
|
945
|
-
selection:
|
|
945
|
+
selection: EditorSelection
|
|
946
946
|
value: Array<PortableTextBlock> | undefined
|
|
947
947
|
},
|
|
948
948
|
| {
|
|
@@ -1037,7 +1037,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1037
1037
|
}
|
|
1038
1038
|
| {
|
|
1039
1039
|
type: 'update schema'
|
|
1040
|
-
schema:
|
|
1040
|
+
schema: EditorSchema
|
|
1041
1041
|
}
|
|
1042
1042
|
| {
|
|
1043
1043
|
type: 'update behaviors'
|
|
@@ -1194,7 +1194,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1194
1194
|
}
|
|
1195
1195
|
| {
|
|
1196
1196
|
type: 'update schema'
|
|
1197
|
-
schema:
|
|
1197
|
+
schema: EditorSchema
|
|
1198
1198
|
}
|
|
1199
1199
|
| {
|
|
1200
1200
|
type: 'update behaviors'
|
|
@@ -1259,7 +1259,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1259
1259
|
keyGenerator: () => string
|
|
1260
1260
|
pendingEvents: never[]
|
|
1261
1261
|
schema: PortableTextMemberSchemaTypes
|
|
1262
|
-
selection:
|
|
1262
|
+
selection: null
|
|
1263
1263
|
readOnly: boolean
|
|
1264
1264
|
maxBlocks: number | undefined
|
|
1265
1265
|
value: PortableTextBlock[] | undefined
|
|
@@ -1271,10 +1271,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1271
1271
|
behaviors: Array<Behavior>
|
|
1272
1272
|
keyGenerator: () => string
|
|
1273
1273
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1274
|
-
schema:
|
|
1274
|
+
schema: EditorSchema
|
|
1275
1275
|
readOnly: boolean
|
|
1276
1276
|
maxBlocks: number | undefined
|
|
1277
|
-
selection:
|
|
1277
|
+
selection: EditorSelection
|
|
1278
1278
|
value: Array<PortableTextBlock> | undefined
|
|
1279
1279
|
},
|
|
1280
1280
|
{
|
|
@@ -1378,7 +1378,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1378
1378
|
}
|
|
1379
1379
|
| {
|
|
1380
1380
|
type: 'update schema'
|
|
1381
|
-
schema:
|
|
1381
|
+
schema: EditorSchema
|
|
1382
1382
|
}
|
|
1383
1383
|
| {
|
|
1384
1384
|
type: 'update behaviors'
|
|
@@ -1565,10 +1565,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1565
1565
|
behaviors: Array<Behavior>
|
|
1566
1566
|
keyGenerator: () => string
|
|
1567
1567
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1568
|
-
schema:
|
|
1568
|
+
schema: EditorSchema
|
|
1569
1569
|
readOnly: boolean
|
|
1570
1570
|
maxBlocks: number | undefined
|
|
1571
|
-
selection:
|
|
1571
|
+
selection: EditorSelection
|
|
1572
1572
|
value: Array<PortableTextBlock> | undefined
|
|
1573
1573
|
},
|
|
1574
1574
|
{
|
|
@@ -1588,10 +1588,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1588
1588
|
behaviors: Array<Behavior>
|
|
1589
1589
|
keyGenerator: () => string
|
|
1590
1590
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1591
|
-
schema:
|
|
1591
|
+
schema: EditorSchema
|
|
1592
1592
|
readOnly: boolean
|
|
1593
1593
|
maxBlocks: number | undefined
|
|
1594
|
-
selection:
|
|
1594
|
+
selection: EditorSelection
|
|
1595
1595
|
value: Array<PortableTextBlock> | undefined
|
|
1596
1596
|
},
|
|
1597
1597
|
{
|
|
@@ -1692,7 +1692,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1692
1692
|
}
|
|
1693
1693
|
| {
|
|
1694
1694
|
type: 'update schema'
|
|
1695
|
-
schema:
|
|
1695
|
+
schema: EditorSchema
|
|
1696
1696
|
}
|
|
1697
1697
|
| {
|
|
1698
1698
|
type: 'update behaviors'
|
|
@@ -1879,10 +1879,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1879
1879
|
behaviors: Array<Behavior>
|
|
1880
1880
|
keyGenerator: () => string
|
|
1881
1881
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1882
|
-
schema:
|
|
1882
|
+
schema: EditorSchema
|
|
1883
1883
|
readOnly: boolean
|
|
1884
1884
|
maxBlocks: number | undefined
|
|
1885
|
-
selection:
|
|
1885
|
+
selection: EditorSelection
|
|
1886
1886
|
value: Array<PortableTextBlock> | undefined
|
|
1887
1887
|
},
|
|
1888
1888
|
{
|
|
@@ -1899,10 +1899,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1899
1899
|
behaviors: Array<Behavior>
|
|
1900
1900
|
keyGenerator: () => string
|
|
1901
1901
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
1902
|
-
schema:
|
|
1902
|
+
schema: EditorSchema
|
|
1903
1903
|
readOnly: boolean
|
|
1904
1904
|
maxBlocks: number | undefined
|
|
1905
|
-
selection:
|
|
1905
|
+
selection: EditorSelection
|
|
1906
1906
|
value: Array<PortableTextBlock> | undefined
|
|
1907
1907
|
},
|
|
1908
1908
|
{
|
|
@@ -2006,7 +2006,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2006
2006
|
}
|
|
2007
2007
|
| {
|
|
2008
2008
|
type: 'update schema'
|
|
2009
|
-
schema:
|
|
2009
|
+
schema: EditorSchema
|
|
2010
2010
|
}
|
|
2011
2011
|
| {
|
|
2012
2012
|
type: 'update behaviors'
|
|
@@ -2193,10 +2193,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2193
2193
|
behaviors: Array<Behavior>
|
|
2194
2194
|
keyGenerator: () => string
|
|
2195
2195
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2196
|
-
schema:
|
|
2196
|
+
schema: EditorSchema
|
|
2197
2197
|
readOnly: boolean
|
|
2198
2198
|
maxBlocks: number | undefined
|
|
2199
|
-
selection:
|
|
2199
|
+
selection: EditorSelection
|
|
2200
2200
|
value: Array<PortableTextBlock> | undefined
|
|
2201
2201
|
},
|
|
2202
2202
|
{
|
|
@@ -2216,10 +2216,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2216
2216
|
behaviors: Array<Behavior>
|
|
2217
2217
|
keyGenerator: () => string
|
|
2218
2218
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2219
|
-
schema:
|
|
2219
|
+
schema: EditorSchema
|
|
2220
2220
|
readOnly: boolean
|
|
2221
2221
|
maxBlocks: number | undefined
|
|
2222
|
-
selection:
|
|
2222
|
+
selection: EditorSelection
|
|
2223
2223
|
value: Array<PortableTextBlock> | undefined
|
|
2224
2224
|
},
|
|
2225
2225
|
{
|
|
@@ -2317,7 +2317,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2317
2317
|
}
|
|
2318
2318
|
| {
|
|
2319
2319
|
type: 'update schema'
|
|
2320
|
-
schema:
|
|
2320
|
+
schema: EditorSchema
|
|
2321
2321
|
}
|
|
2322
2322
|
| {
|
|
2323
2323
|
type: 'update behaviors'
|
|
@@ -2504,10 +2504,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2504
2504
|
behaviors: Array<Behavior>
|
|
2505
2505
|
keyGenerator: () => string
|
|
2506
2506
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2507
|
-
schema:
|
|
2507
|
+
schema: EditorSchema
|
|
2508
2508
|
readOnly: boolean
|
|
2509
2509
|
maxBlocks: number | undefined
|
|
2510
|
-
selection:
|
|
2510
|
+
selection: EditorSelection
|
|
2511
2511
|
value: Array<PortableTextBlock> | undefined
|
|
2512
2512
|
},
|
|
2513
2513
|
{
|
|
@@ -2521,10 +2521,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2521
2521
|
behaviors: Array<Behavior>
|
|
2522
2522
|
keyGenerator: () => string
|
|
2523
2523
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2524
|
-
schema:
|
|
2524
|
+
schema: EditorSchema
|
|
2525
2525
|
readOnly: boolean
|
|
2526
2526
|
maxBlocks: number | undefined
|
|
2527
|
-
selection:
|
|
2527
|
+
selection: EditorSelection
|
|
2528
2528
|
value: Array<PortableTextBlock> | undefined
|
|
2529
2529
|
},
|
|
2530
2530
|
| {
|
|
@@ -2631,7 +2631,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2631
2631
|
}
|
|
2632
2632
|
| {
|
|
2633
2633
|
type: 'update schema'
|
|
2634
|
-
schema:
|
|
2634
|
+
schema: EditorSchema
|
|
2635
2635
|
}
|
|
2636
2636
|
| {
|
|
2637
2637
|
type: 'update behaviors'
|
|
@@ -2818,10 +2818,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2818
2818
|
behaviors: Array<Behavior>
|
|
2819
2819
|
keyGenerator: () => string
|
|
2820
2820
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2821
|
-
schema:
|
|
2821
|
+
schema: EditorSchema
|
|
2822
2822
|
readOnly: boolean
|
|
2823
2823
|
maxBlocks: number | undefined
|
|
2824
|
-
selection:
|
|
2824
|
+
selection: EditorSelection
|
|
2825
2825
|
value: Array<PortableTextBlock> | undefined
|
|
2826
2826
|
},
|
|
2827
2827
|
| {
|
|
@@ -2844,10 +2844,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2844
2844
|
behaviors: Array<Behavior>
|
|
2845
2845
|
keyGenerator: () => string
|
|
2846
2846
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
2847
|
-
schema:
|
|
2847
|
+
schema: EditorSchema
|
|
2848
2848
|
readOnly: boolean
|
|
2849
2849
|
maxBlocks: number | undefined
|
|
2850
|
-
selection:
|
|
2850
|
+
selection: EditorSelection
|
|
2851
2851
|
value: Array<PortableTextBlock> | undefined
|
|
2852
2852
|
},
|
|
2853
2853
|
{
|
|
@@ -2945,7 +2945,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2945
2945
|
}
|
|
2946
2946
|
| {
|
|
2947
2947
|
type: 'update schema'
|
|
2948
|
-
schema:
|
|
2948
|
+
schema: EditorSchema
|
|
2949
2949
|
}
|
|
2950
2950
|
| {
|
|
2951
2951
|
type: 'update behaviors'
|
|
@@ -3132,10 +3132,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3132
3132
|
behaviors: Array<Behavior>
|
|
3133
3133
|
keyGenerator: () => string
|
|
3134
3134
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3135
|
-
schema:
|
|
3135
|
+
schema: EditorSchema
|
|
3136
3136
|
readOnly: boolean
|
|
3137
3137
|
maxBlocks: number | undefined
|
|
3138
|
-
selection:
|
|
3138
|
+
selection: EditorSelection
|
|
3139
3139
|
value: Array<PortableTextBlock> | undefined
|
|
3140
3140
|
},
|
|
3141
3141
|
{
|
|
@@ -3149,10 +3149,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3149
3149
|
behaviors: Array<Behavior>
|
|
3150
3150
|
keyGenerator: () => string
|
|
3151
3151
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3152
|
-
schema:
|
|
3152
|
+
schema: EditorSchema
|
|
3153
3153
|
readOnly: boolean
|
|
3154
3154
|
maxBlocks: number | undefined
|
|
3155
|
-
selection:
|
|
3155
|
+
selection: EditorSelection
|
|
3156
3156
|
value: Array<PortableTextBlock> | undefined
|
|
3157
3157
|
},
|
|
3158
3158
|
| {
|
|
@@ -3266,7 +3266,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3266
3266
|
}
|
|
3267
3267
|
| {
|
|
3268
3268
|
type: 'update schema'
|
|
3269
|
-
schema:
|
|
3269
|
+
schema: EditorSchema
|
|
3270
3270
|
}
|
|
3271
3271
|
| {
|
|
3272
3272
|
type: 'update behaviors'
|
|
@@ -3453,10 +3453,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3453
3453
|
behaviors: Array<Behavior>
|
|
3454
3454
|
keyGenerator: () => string
|
|
3455
3455
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3456
|
-
schema:
|
|
3456
|
+
schema: EditorSchema
|
|
3457
3457
|
readOnly: boolean
|
|
3458
3458
|
maxBlocks: number | undefined
|
|
3459
|
-
selection:
|
|
3459
|
+
selection: EditorSelection
|
|
3460
3460
|
value: Array<PortableTextBlock> | undefined
|
|
3461
3461
|
},
|
|
3462
3462
|
| {
|
|
@@ -3486,10 +3486,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3486
3486
|
behaviors: Array<Behavior>
|
|
3487
3487
|
keyGenerator: () => string
|
|
3488
3488
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3489
|
-
schema:
|
|
3489
|
+
schema: EditorSchema
|
|
3490
3490
|
readOnly: boolean
|
|
3491
3491
|
maxBlocks: number | undefined
|
|
3492
|
-
selection:
|
|
3492
|
+
selection: EditorSelection
|
|
3493
3493
|
value: Array<PortableTextBlock> | undefined
|
|
3494
3494
|
},
|
|
3495
3495
|
{
|
|
@@ -3588,7 +3588,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3588
3588
|
}
|
|
3589
3589
|
| {
|
|
3590
3590
|
type: 'update schema'
|
|
3591
|
-
schema:
|
|
3591
|
+
schema: EditorSchema
|
|
3592
3592
|
}
|
|
3593
3593
|
| {
|
|
3594
3594
|
type: 'update behaviors'
|
|
@@ -3775,10 +3775,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3775
3775
|
behaviors: Array<Behavior>
|
|
3776
3776
|
keyGenerator: () => string
|
|
3777
3777
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3778
|
-
schema:
|
|
3778
|
+
schema: EditorSchema
|
|
3779
3779
|
readOnly: boolean
|
|
3780
3780
|
maxBlocks: number | undefined
|
|
3781
|
-
selection:
|
|
3781
|
+
selection: EditorSelection
|
|
3782
3782
|
value: Array<PortableTextBlock> | undefined
|
|
3783
3783
|
},
|
|
3784
3784
|
{
|
|
@@ -3793,10 +3793,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3793
3793
|
behaviors: Array<Behavior>
|
|
3794
3794
|
keyGenerator: () => string
|
|
3795
3795
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
3796
|
-
schema:
|
|
3796
|
+
schema: EditorSchema
|
|
3797
3797
|
readOnly: boolean
|
|
3798
3798
|
maxBlocks: number | undefined
|
|
3799
|
-
selection:
|
|
3799
|
+
selection: EditorSelection
|
|
3800
3800
|
value: Array<PortableTextBlock> | undefined
|
|
3801
3801
|
},
|
|
3802
3802
|
{
|
|
@@ -3895,7 +3895,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3895
3895
|
}
|
|
3896
3896
|
| {
|
|
3897
3897
|
type: 'update schema'
|
|
3898
|
-
schema:
|
|
3898
|
+
schema: EditorSchema
|
|
3899
3899
|
}
|
|
3900
3900
|
| {
|
|
3901
3901
|
type: 'update behaviors'
|
|
@@ -4082,10 +4082,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4082
4082
|
behaviors: Array<Behavior>
|
|
4083
4083
|
keyGenerator: () => string
|
|
4084
4084
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4085
|
-
schema:
|
|
4085
|
+
schema: EditorSchema
|
|
4086
4086
|
readOnly: boolean
|
|
4087
4087
|
maxBlocks: number | undefined
|
|
4088
|
-
selection:
|
|
4088
|
+
selection: EditorSelection
|
|
4089
4089
|
value: Array<PortableTextBlock> | undefined
|
|
4090
4090
|
},
|
|
4091
4091
|
{
|
|
@@ -4100,10 +4100,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4100
4100
|
behaviors: Array<Behavior>
|
|
4101
4101
|
keyGenerator: () => string
|
|
4102
4102
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4103
|
-
schema:
|
|
4103
|
+
schema: EditorSchema
|
|
4104
4104
|
readOnly: boolean
|
|
4105
4105
|
maxBlocks: number | undefined
|
|
4106
|
-
selection:
|
|
4106
|
+
selection: EditorSelection
|
|
4107
4107
|
value: Array<PortableTextBlock> | undefined
|
|
4108
4108
|
},
|
|
4109
4109
|
{
|
|
@@ -4201,7 +4201,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4201
4201
|
}
|
|
4202
4202
|
| {
|
|
4203
4203
|
type: 'update schema'
|
|
4204
|
-
schema:
|
|
4204
|
+
schema: EditorSchema
|
|
4205
4205
|
}
|
|
4206
4206
|
| {
|
|
4207
4207
|
type: 'update behaviors'
|
|
@@ -4388,10 +4388,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4388
4388
|
behaviors: Array<Behavior>
|
|
4389
4389
|
keyGenerator: () => string
|
|
4390
4390
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4391
|
-
schema:
|
|
4391
|
+
schema: EditorSchema
|
|
4392
4392
|
readOnly: boolean
|
|
4393
4393
|
maxBlocks: number | undefined
|
|
4394
|
-
selection:
|
|
4394
|
+
selection: EditorSelection
|
|
4395
4395
|
value: Array<PortableTextBlock> | undefined
|
|
4396
4396
|
},
|
|
4397
4397
|
{
|
|
@@ -4490,7 +4490,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4490
4490
|
}
|
|
4491
4491
|
| {
|
|
4492
4492
|
type: 'update schema'
|
|
4493
|
-
schema:
|
|
4493
|
+
schema: EditorSchema
|
|
4494
4494
|
}
|
|
4495
4495
|
| {
|
|
4496
4496
|
type: 'update behaviors'
|
|
@@ -4677,10 +4677,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4677
4677
|
behaviors: Array<Behavior>
|
|
4678
4678
|
keyGenerator: () => string
|
|
4679
4679
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4680
|
-
schema:
|
|
4680
|
+
schema: EditorSchema
|
|
4681
4681
|
readOnly: boolean
|
|
4682
4682
|
maxBlocks: number | undefined
|
|
4683
|
-
selection:
|
|
4683
|
+
selection: EditorSelection
|
|
4684
4684
|
value: Array<PortableTextBlock> | undefined
|
|
4685
4685
|
},
|
|
4686
4686
|
{
|
|
@@ -4779,7 +4779,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4779
4779
|
}
|
|
4780
4780
|
| {
|
|
4781
4781
|
type: 'update schema'
|
|
4782
|
-
schema:
|
|
4782
|
+
schema: EditorSchema
|
|
4783
4783
|
}
|
|
4784
4784
|
| {
|
|
4785
4785
|
type: 'update behaviors'
|
|
@@ -4966,10 +4966,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4966
4966
|
behaviors: Array<Behavior>
|
|
4967
4967
|
keyGenerator: () => string
|
|
4968
4968
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4969
|
-
schema:
|
|
4969
|
+
schema: EditorSchema
|
|
4970
4970
|
readOnly: boolean
|
|
4971
4971
|
maxBlocks: number | undefined
|
|
4972
|
-
selection:
|
|
4972
|
+
selection: EditorSelection
|
|
4973
4973
|
value: Array<PortableTextBlock> | undefined
|
|
4974
4974
|
},
|
|
4975
4975
|
{
|
|
@@ -5069,7 +5069,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5069
5069
|
}
|
|
5070
5070
|
| {
|
|
5071
5071
|
type: 'update schema'
|
|
5072
|
-
schema:
|
|
5072
|
+
schema: EditorSchema
|
|
5073
5073
|
}
|
|
5074
5074
|
| {
|
|
5075
5075
|
type: 'update behaviors'
|
|
@@ -5256,10 +5256,10 @@ export declare const editorMachine: StateMachine<
|
|
|
5256
5256
|
behaviors: Array<Behavior>
|
|
5257
5257
|
keyGenerator: () => string
|
|
5258
5258
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
5259
|
-
schema:
|
|
5259
|
+
schema: EditorSchema
|
|
5260
5260
|
readOnly: boolean
|
|
5261
5261
|
maxBlocks: number | undefined
|
|
5262
|
-
selection:
|
|
5262
|
+
selection: EditorSelection
|
|
5263
5263
|
value: Array<PortableTextBlock> | undefined
|
|
5264
5264
|
},
|
|
5265
5265
|
{
|
|
@@ -5360,7 +5360,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5360
5360
|
}
|
|
5361
5361
|
| {
|
|
5362
5362
|
type: 'update schema'
|
|
5363
|
-
schema:
|
|
5363
|
+
schema: EditorSchema
|
|
5364
5364
|
}
|
|
5365
5365
|
| {
|
|
5366
5366
|
type: 'update behaviors'
|
|
@@ -5548,10 +5548,10 @@ export declare const editorMachine: StateMachine<
|
|
|
5548
5548
|
behaviors: Array<Behavior>
|
|
5549
5549
|
keyGenerator: () => string
|
|
5550
5550
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
5551
|
-
schema:
|
|
5551
|
+
schema: EditorSchema
|
|
5552
5552
|
readOnly: boolean
|
|
5553
5553
|
maxBlocks: number | undefined
|
|
5554
|
-
selection:
|
|
5554
|
+
selection: EditorSelection
|
|
5555
5555
|
value: Array<PortableTextBlock> | undefined
|
|
5556
5556
|
},
|
|
5557
5557
|
{
|
|
@@ -5650,7 +5650,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5650
5650
|
}
|
|
5651
5651
|
| {
|
|
5652
5652
|
type: 'update schema'
|
|
5653
|
-
schema:
|
|
5653
|
+
schema: EditorSchema
|
|
5654
5654
|
}
|
|
5655
5655
|
| {
|
|
5656
5656
|
type: 'update behaviors'
|
|
@@ -5720,10 +5720,10 @@ export declare const editorMachine: StateMachine<
|
|
|
5720
5720
|
behaviors: Array<Behavior>
|
|
5721
5721
|
keyGenerator: () => string
|
|
5722
5722
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
5723
|
-
schema:
|
|
5723
|
+
schema: EditorSchema
|
|
5724
5724
|
readOnly: boolean
|
|
5725
5725
|
maxBlocks: number | undefined
|
|
5726
|
-
selection:
|
|
5726
|
+
selection: EditorSelection
|
|
5727
5727
|
value: Array<PortableTextBlock> | undefined
|
|
5728
5728
|
},
|
|
5729
5729
|
{
|
|
@@ -5822,7 +5822,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5822
5822
|
}
|
|
5823
5823
|
| {
|
|
5824
5824
|
type: 'update schema'
|
|
5825
|
-
schema:
|
|
5825
|
+
schema: EditorSchema
|
|
5826
5826
|
}
|
|
5827
5827
|
| {
|
|
5828
5828
|
type: 'update behaviors'
|
|
@@ -6010,10 +6010,10 @@ export declare const editorMachine: StateMachine<
|
|
|
6010
6010
|
behaviors: Array<Behavior>
|
|
6011
6011
|
keyGenerator: () => string
|
|
6012
6012
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
6013
|
-
schema:
|
|
6013
|
+
schema: EditorSchema
|
|
6014
6014
|
readOnly: boolean
|
|
6015
6015
|
maxBlocks: number | undefined
|
|
6016
|
-
selection:
|
|
6016
|
+
selection: EditorSelection
|
|
6017
6017
|
value: Array<PortableTextBlock> | undefined
|
|
6018
6018
|
},
|
|
6019
6019
|
{
|
|
@@ -6112,7 +6112,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6112
6112
|
}
|
|
6113
6113
|
| {
|
|
6114
6114
|
type: 'update schema'
|
|
6115
|
-
schema:
|
|
6115
|
+
schema: EditorSchema
|
|
6116
6116
|
}
|
|
6117
6117
|
| {
|
|
6118
6118
|
type: 'update behaviors'
|
|
@@ -6299,10 +6299,10 @@ export declare const editorMachine: StateMachine<
|
|
|
6299
6299
|
behaviors: Array<Behavior>
|
|
6300
6300
|
keyGenerator: () => string
|
|
6301
6301
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
6302
|
-
schema:
|
|
6302
|
+
schema: EditorSchema
|
|
6303
6303
|
readOnly: boolean
|
|
6304
6304
|
maxBlocks: number | undefined
|
|
6305
|
-
selection:
|
|
6305
|
+
selection: EditorSelection
|
|
6306
6306
|
value: Array<PortableTextBlock> | undefined
|
|
6307
6307
|
},
|
|
6308
6308
|
{
|
|
@@ -6401,7 +6401,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6401
6401
|
}
|
|
6402
6402
|
| {
|
|
6403
6403
|
type: 'update schema'
|
|
6404
|
-
schema:
|
|
6404
|
+
schema: EditorSchema
|
|
6405
6405
|
}
|
|
6406
6406
|
| {
|
|
6407
6407
|
type: 'update behaviors'
|
|
@@ -6588,10 +6588,10 @@ export declare const editorMachine: StateMachine<
|
|
|
6588
6588
|
behaviors: Array<Behavior>
|
|
6589
6589
|
keyGenerator: () => string
|
|
6590
6590
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
6591
|
-
schema:
|
|
6591
|
+
schema: EditorSchema
|
|
6592
6592
|
readOnly: boolean
|
|
6593
6593
|
maxBlocks: number | undefined
|
|
6594
|
-
selection:
|
|
6594
|
+
selection: EditorSelection
|
|
6595
6595
|
value: Array<PortableTextBlock> | undefined
|
|
6596
6596
|
},
|
|
6597
6597
|
{
|
|
@@ -6689,7 +6689,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6689
6689
|
}
|
|
6690
6690
|
| {
|
|
6691
6691
|
type: 'update schema'
|
|
6692
|
-
schema:
|
|
6692
|
+
schema: EditorSchema
|
|
6693
6693
|
}
|
|
6694
6694
|
| {
|
|
6695
6695
|
type: 'update behaviors'
|
|
@@ -6876,10 +6876,10 @@ export declare const editorMachine: StateMachine<
|
|
|
6876
6876
|
behaviors: Array<Behavior>
|
|
6877
6877
|
keyGenerator: () => string
|
|
6878
6878
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
6879
|
-
schema:
|
|
6879
|
+
schema: EditorSchema
|
|
6880
6880
|
readOnly: boolean
|
|
6881
6881
|
maxBlocks: number | undefined
|
|
6882
|
-
selection:
|
|
6882
|
+
selection: EditorSelection
|
|
6883
6883
|
value: Array<PortableTextBlock> | undefined
|
|
6884
6884
|
},
|
|
6885
6885
|
PatchesEvent,
|
|
@@ -6975,7 +6975,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6975
6975
|
}
|
|
6976
6976
|
| {
|
|
6977
6977
|
type: 'update schema'
|
|
6978
|
-
schema:
|
|
6978
|
+
schema: EditorSchema
|
|
6979
6979
|
}
|
|
6980
6980
|
| {
|
|
6981
6981
|
type: 'update behaviors'
|
|
@@ -7162,10 +7162,10 @@ export declare const editorMachine: StateMachine<
|
|
|
7162
7162
|
behaviors: Array<Behavior>
|
|
7163
7163
|
keyGenerator: () => string
|
|
7164
7164
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
7165
|
-
schema:
|
|
7165
|
+
schema: EditorSchema
|
|
7166
7166
|
readOnly: boolean
|
|
7167
7167
|
maxBlocks: number | undefined
|
|
7168
|
-
selection:
|
|
7168
|
+
selection: EditorSelection
|
|
7169
7169
|
value: Array<PortableTextBlock> | undefined
|
|
7170
7170
|
},
|
|
7171
7171
|
{
|
|
@@ -7263,7 +7263,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7263
7263
|
}
|
|
7264
7264
|
| {
|
|
7265
7265
|
type: 'update schema'
|
|
7266
|
-
schema:
|
|
7266
|
+
schema: EditorSchema
|
|
7267
7267
|
}
|
|
7268
7268
|
| {
|
|
7269
7269
|
type: 'update behaviors'
|
|
@@ -7456,10 +7456,10 @@ export declare const editorMachine: StateMachine<
|
|
|
7456
7456
|
behaviors: Array<Behavior>
|
|
7457
7457
|
keyGenerator: () => string
|
|
7458
7458
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
7459
|
-
schema:
|
|
7459
|
+
schema: EditorSchema
|
|
7460
7460
|
readOnly: boolean
|
|
7461
7461
|
maxBlocks: number | undefined
|
|
7462
|
-
selection:
|
|
7462
|
+
selection: EditorSelection
|
|
7463
7463
|
value: Array<PortableTextBlock> | undefined
|
|
7464
7464
|
},
|
|
7465
7465
|
{
|
|
@@ -7558,7 +7558,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7558
7558
|
}
|
|
7559
7559
|
| {
|
|
7560
7560
|
type: 'update schema'
|
|
7561
|
-
schema:
|
|
7561
|
+
schema: EditorSchema
|
|
7562
7562
|
}
|
|
7563
7563
|
| {
|
|
7564
7564
|
type: 'update behaviors'
|
|
@@ -7631,10 +7631,10 @@ export declare const editorMachine: StateMachine<
|
|
|
7631
7631
|
behaviors: Array<Behavior>
|
|
7632
7632
|
keyGenerator: () => string
|
|
7633
7633
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
7634
|
-
schema:
|
|
7634
|
+
schema: EditorSchema
|
|
7635
7635
|
readOnly: boolean
|
|
7636
7636
|
maxBlocks: number | undefined
|
|
7637
|
-
selection:
|
|
7637
|
+
selection: EditorSelection
|
|
7638
7638
|
value: Array<PortableTextBlock> | undefined
|
|
7639
7639
|
},
|
|
7640
7640
|
{
|
|
@@ -7732,7 +7732,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7732
7732
|
}
|
|
7733
7733
|
| {
|
|
7734
7734
|
type: 'update schema'
|
|
7735
|
-
schema:
|
|
7735
|
+
schema: EditorSchema
|
|
7736
7736
|
}
|
|
7737
7737
|
| {
|
|
7738
7738
|
type: 'update behaviors'
|
|
@@ -7802,10 +7802,10 @@ export declare const editorMachine: StateMachine<
|
|
|
7802
7802
|
behaviors: Array<Behavior>
|
|
7803
7803
|
keyGenerator: () => string
|
|
7804
7804
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
7805
|
-
schema:
|
|
7805
|
+
schema: EditorSchema
|
|
7806
7806
|
readOnly: boolean
|
|
7807
7807
|
maxBlocks: number | undefined
|
|
7808
|
-
selection:
|
|
7808
|
+
selection: EditorSelection
|
|
7809
7809
|
value: Array<PortableTextBlock> | undefined
|
|
7810
7810
|
},
|
|
7811
7811
|
{
|
|
@@ -7903,7 +7903,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7903
7903
|
}
|
|
7904
7904
|
| {
|
|
7905
7905
|
type: 'update schema'
|
|
7906
|
-
schema:
|
|
7906
|
+
schema: EditorSchema
|
|
7907
7907
|
}
|
|
7908
7908
|
| {
|
|
7909
7909
|
type: 'update behaviors'
|
|
@@ -8091,10 +8091,10 @@ export declare const editorMachine: StateMachine<
|
|
|
8091
8091
|
behaviors: Array<Behavior>
|
|
8092
8092
|
keyGenerator: () => string
|
|
8093
8093
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
8094
|
-
schema:
|
|
8094
|
+
schema: EditorSchema
|
|
8095
8095
|
readOnly: boolean
|
|
8096
8096
|
maxBlocks: number | undefined
|
|
8097
|
-
selection:
|
|
8097
|
+
selection: EditorSelection
|
|
8098
8098
|
value: Array<PortableTextBlock> | undefined
|
|
8099
8099
|
},
|
|
8100
8100
|
{
|
|
@@ -8193,7 +8193,7 @@ export declare const editorMachine: StateMachine<
|
|
|
8193
8193
|
}
|
|
8194
8194
|
| {
|
|
8195
8195
|
type: 'update schema'
|
|
8196
|
-
schema:
|
|
8196
|
+
schema: EditorSchema
|
|
8197
8197
|
}
|
|
8198
8198
|
| {
|
|
8199
8199
|
type: 'update behaviors'
|
|
@@ -8268,10 +8268,10 @@ export declare const editorMachine: StateMachine<
|
|
|
8268
8268
|
behaviors: Array<Behavior>
|
|
8269
8269
|
keyGenerator: () => string
|
|
8270
8270
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
8271
|
-
schema:
|
|
8271
|
+
schema: EditorSchema
|
|
8272
8272
|
readOnly: boolean
|
|
8273
8273
|
maxBlocks: number | undefined
|
|
8274
|
-
selection:
|
|
8274
|
+
selection: EditorSelection
|
|
8275
8275
|
value: Array<PortableTextBlock> | undefined
|
|
8276
8276
|
},
|
|
8277
8277
|
{
|
|
@@ -8294,10 +8294,10 @@ export declare const editorMachine: StateMachine<
|
|
|
8294
8294
|
behaviors: Array<Behavior>
|
|
8295
8295
|
keyGenerator: () => string
|
|
8296
8296
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
8297
|
-
schema:
|
|
8297
|
+
schema: EditorSchema
|
|
8298
8298
|
readOnly: boolean
|
|
8299
8299
|
maxBlocks: number | undefined
|
|
8300
|
-
selection:
|
|
8300
|
+
selection: EditorSelection
|
|
8301
8301
|
value: Array<PortableTextBlock> | undefined
|
|
8302
8302
|
},
|
|
8303
8303
|
{
|
|
@@ -8397,7 +8397,7 @@ export declare const editorMachine: StateMachine<
|
|
|
8397
8397
|
}
|
|
8398
8398
|
| {
|
|
8399
8399
|
type: 'update schema'
|
|
8400
|
-
schema:
|
|
8400
|
+
schema: EditorSchema
|
|
8401
8401
|
}
|
|
8402
8402
|
| {
|
|
8403
8403
|
type: 'update behaviors'
|
|
@@ -8461,10 +8461,10 @@ export declare const editorMachine: StateMachine<
|
|
|
8461
8461
|
behaviors: Array<Behavior>
|
|
8462
8462
|
keyGenerator: () => string
|
|
8463
8463
|
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
8464
|
-
schema:
|
|
8464
|
+
schema: EditorSchema
|
|
8465
8465
|
readOnly: boolean
|
|
8466
8466
|
maxBlocks: number | undefined
|
|
8467
|
-
selection:
|
|
8467
|
+
selection: EditorSelection
|
|
8468
8468
|
value: Array<PortableTextBlock> | undefined
|
|
8469
8469
|
},
|
|
8470
8470
|
{
|
|
@@ -8564,7 +8564,7 @@ export declare const editorMachine: StateMachine<
|
|
|
8564
8564
|
}
|
|
8565
8565
|
| {
|
|
8566
8566
|
type: 'update schema'
|
|
8567
|
-
schema:
|
|
8567
|
+
schema: EditorSchema
|
|
8568
8568
|
}
|
|
8569
8569
|
| {
|
|
8570
8570
|
type: 'update behaviors'
|
|
@@ -8851,6 +8851,11 @@ export declare type EditorProviderProps = {
|
|
|
8851
8851
|
children?: React_2.ReactNode
|
|
8852
8852
|
}
|
|
8853
8853
|
|
|
8854
|
+
/**
|
|
8855
|
+
* @alpha
|
|
8856
|
+
*/
|
|
8857
|
+
export declare type EditorSchema = PortableTextMemberSchemaTypes
|
|
8858
|
+
|
|
8854
8859
|
/** @beta */
|
|
8855
8860
|
export declare type EditorSelection = {
|
|
8856
8861
|
anchor: EditorSelectionPoint
|
|
@@ -8868,18 +8873,9 @@ export declare type EditorSelectionPoint = {
|
|
|
8868
8873
|
* @alpha
|
|
8869
8874
|
*/
|
|
8870
8875
|
export declare type EditorSelector<TSelected> = (
|
|
8871
|
-
snapshot:
|
|
8876
|
+
snapshot: EditorSnapshot,
|
|
8872
8877
|
) => TSelected
|
|
8873
8878
|
|
|
8874
|
-
/**
|
|
8875
|
-
* @alpha
|
|
8876
|
-
*/
|
|
8877
|
-
export declare type EditorSelectorSnapshot = {
|
|
8878
|
-
context: Omit<EditorSnapshot['context'], 'selection'> & {
|
|
8879
|
-
selection?: NonNullable<EditorSelection>
|
|
8880
|
-
}
|
|
8881
|
-
}
|
|
8882
|
-
|
|
8883
8879
|
/**
|
|
8884
8880
|
* @alpha
|
|
8885
8881
|
*/
|
|
@@ -9023,7 +9019,7 @@ export declare type InternalEditorEvent =
|
|
|
9023
9019
|
}
|
|
9024
9020
|
| {
|
|
9025
9021
|
type: 'update schema'
|
|
9026
|
-
schema:
|
|
9022
|
+
schema: EditorSchema
|
|
9027
9023
|
}
|
|
9028
9024
|
| {
|
|
9029
9025
|
type: 'update behaviors'
|
|
@@ -9317,9 +9313,9 @@ export declare class PortableTextEditor extends Component<
|
|
|
9317
9313
|
path: Path,
|
|
9318
9314
|
) => [
|
|
9319
9315
|
(
|
|
9320
|
-
| PortableTextTextBlock<PortableTextObject | PortableTextSpan>
|
|
9321
|
-
| PortableTextObject
|
|
9322
9316
|
| PortableTextSpan
|
|
9317
|
+
| PortableTextObject
|
|
9318
|
+
| PortableTextTextBlock<PortableTextSpan | PortableTextObject>
|
|
9323
9319
|
| undefined
|
|
9324
9320
|
),
|
|
9325
9321
|
Path | undefined,
|
|
@@ -9721,10 +9717,10 @@ export declare type SyntheticBehaviorEvent =
|
|
|
9721
9717
|
}
|
|
9722
9718
|
}
|
|
9723
9719
|
| {
|
|
9724
|
-
type: 'insert.
|
|
9720
|
+
type: 'insert.break'
|
|
9725
9721
|
}
|
|
9726
9722
|
| {
|
|
9727
|
-
type: 'insert.break'
|
|
9723
|
+
type: 'insert.soft break'
|
|
9728
9724
|
}
|
|
9729
9725
|
| {
|
|
9730
9726
|
type: 'insert.text'
|