@portabletext/editor 1.47.6 → 1.47.7
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 +2104 -2119
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/editor-provider.js +2106 -2121
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/behaviors/index.d.cts +48 -1
- package/lib/behaviors/index.d.ts +48 -1
- package/lib/index.d.cts +28 -3
- package/lib/index.d.ts +28 -3
- package/lib/plugins/index.d.cts +48 -2
- package/lib/plugins/index.d.ts +48 -2
- package/lib/selectors/index.d.cts +51 -1
- package/lib/selectors/index.d.ts +51 -1
- package/lib/utils/index.d.cts +53 -6
- package/lib/utils/index.d.ts +53 -6
- package/package.json +6 -6
- package/src/editor/PortableTextEditor.tsx +29 -11
- package/src/editor/create-editor.ts +18 -64
- package/src/editor/editor-machine.ts +4 -0
- package/src/editor/editor-provider.tsx +14 -7
- package/src/internal-utils/__tests__/operationToPatches.test.ts +3 -1
- package/src/internal-utils/__tests__/patchToOperations.test.ts +3 -1
package/lib/index.d.cts
CHANGED
|
@@ -51,18 +51,17 @@ import {
|
|
|
51
51
|
AnyActorRef,
|
|
52
52
|
AnyEventObject,
|
|
53
53
|
ConditionalRequired,
|
|
54
|
-
EventObject,
|
|
55
54
|
InputFrom,
|
|
56
55
|
IsNotNever,
|
|
57
56
|
MachineSnapshot,
|
|
58
57
|
MetaObject,
|
|
59
58
|
NonReducibleUnknown,
|
|
60
59
|
RequiredLogicInput,
|
|
61
|
-
Snapshot,
|
|
62
60
|
StateMachine,
|
|
63
61
|
StateValue,
|
|
64
62
|
Values,
|
|
65
63
|
} from 'xstate'
|
|
64
|
+
import type {EventObject, Snapshot} from 'xstate'
|
|
66
65
|
import {GuardArgs} from 'xstate/guards'
|
|
67
66
|
|
|
68
67
|
declare type AbstractBehaviorEvent =
|
|
@@ -883,6 +882,7 @@ declare const editorMachine: StateMachine<
|
|
|
883
882
|
{
|
|
884
883
|
behaviors: Set<Behavior>
|
|
885
884
|
converters: Set<Converter>
|
|
885
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
886
886
|
keyGenerator: () => string
|
|
887
887
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
888
888
|
schema: EditorSchema
|
|
@@ -1116,6 +1116,7 @@ declare const editorMachine: StateMachine<
|
|
|
1116
1116
|
{
|
|
1117
1117
|
behaviors?: Array<Behavior>
|
|
1118
1118
|
converters?: Array<Converter>
|
|
1119
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1119
1120
|
keyGenerator: () => string
|
|
1120
1121
|
maxBlocks?: number
|
|
1121
1122
|
readOnly?: boolean
|
|
@@ -1201,6 +1202,7 @@ declare const editorMachine: StateMachine<
|
|
|
1201
1202
|
input: {
|
|
1202
1203
|
behaviors?: Array<Behavior>
|
|
1203
1204
|
converters?: Array<Converter>
|
|
1205
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1204
1206
|
keyGenerator: () => string
|
|
1205
1207
|
maxBlocks?: number
|
|
1206
1208
|
readOnly?: boolean
|
|
@@ -1212,6 +1214,7 @@ declare const editorMachine: StateMachine<
|
|
|
1212
1214
|
{
|
|
1213
1215
|
behaviors: Set<Behavior>
|
|
1214
1216
|
converters: Set<Converter>
|
|
1217
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1215
1218
|
keyGenerator: () => string
|
|
1216
1219
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1217
1220
|
schema: EditorSchema
|
|
@@ -1491,6 +1494,7 @@ declare const editorMachine: StateMachine<
|
|
|
1491
1494
|
}) => {
|
|
1492
1495
|
behaviors: Set<Behavior>
|
|
1493
1496
|
converters: Set<Converter>
|
|
1497
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1494
1498
|
keyGenerator: () => string
|
|
1495
1499
|
pendingEvents: never[]
|
|
1496
1500
|
schema: EditorSchema
|
|
@@ -1505,6 +1509,7 @@ declare const editorMachine: StateMachine<
|
|
|
1505
1509
|
{
|
|
1506
1510
|
behaviors: Set<Behavior>
|
|
1507
1511
|
converters: Set<Converter>
|
|
1512
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1508
1513
|
keyGenerator: () => string
|
|
1509
1514
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1510
1515
|
schema: EditorSchema
|
|
@@ -1708,6 +1713,7 @@ declare const editorMachine: StateMachine<
|
|
|
1708
1713
|
{
|
|
1709
1714
|
behaviors: Set<Behavior>
|
|
1710
1715
|
converters: Set<Converter>
|
|
1716
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1711
1717
|
keyGenerator: () => string
|
|
1712
1718
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1713
1719
|
schema: EditorSchema
|
|
@@ -1910,6 +1916,7 @@ declare const editorMachine: StateMachine<
|
|
|
1910
1916
|
{
|
|
1911
1917
|
behaviors: Set<Behavior>
|
|
1912
1918
|
converters: Set<Converter>
|
|
1919
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1913
1920
|
keyGenerator: () => string
|
|
1914
1921
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1915
1922
|
schema: EditorSchema
|
|
@@ -2115,6 +2122,7 @@ declare const editorMachine: StateMachine<
|
|
|
2115
2122
|
{
|
|
2116
2123
|
behaviors: Set<Behavior>
|
|
2117
2124
|
converters: Set<Converter>
|
|
2125
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2118
2126
|
keyGenerator: () => string
|
|
2119
2127
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2120
2128
|
schema: EditorSchema
|
|
@@ -2319,6 +2327,7 @@ declare const editorMachine: StateMachine<
|
|
|
2319
2327
|
{
|
|
2320
2328
|
behaviors: Set<Behavior>
|
|
2321
2329
|
converters: Set<Converter>
|
|
2330
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2322
2331
|
keyGenerator: () => string
|
|
2323
2332
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2324
2333
|
schema: EditorSchema
|
|
@@ -2523,6 +2532,7 @@ declare const editorMachine: StateMachine<
|
|
|
2523
2532
|
{
|
|
2524
2533
|
behaviors: Set<Behavior>
|
|
2525
2534
|
converters: Set<Converter>
|
|
2535
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2526
2536
|
keyGenerator: () => string
|
|
2527
2537
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2528
2538
|
schema: EditorSchema
|
|
@@ -2678,6 +2688,7 @@ declare const editorMachine: StateMachine<
|
|
|
2678
2688
|
{
|
|
2679
2689
|
behaviors: Set<Behavior>
|
|
2680
2690
|
converters: Set<Converter>
|
|
2691
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2681
2692
|
keyGenerator: () => string
|
|
2682
2693
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2683
2694
|
schema: EditorSchema
|
|
@@ -2882,6 +2893,7 @@ declare const editorMachine: StateMachine<
|
|
|
2882
2893
|
{
|
|
2883
2894
|
behaviors: Set<Behavior>
|
|
2884
2895
|
converters: Set<Converter>
|
|
2896
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2885
2897
|
keyGenerator: () => string
|
|
2886
2898
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2887
2899
|
schema: EditorSchema
|
|
@@ -3085,6 +3097,7 @@ declare const editorMachine: StateMachine<
|
|
|
3085
3097
|
{
|
|
3086
3098
|
behaviors: Set<Behavior>
|
|
3087
3099
|
converters: Set<Converter>
|
|
3100
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3088
3101
|
keyGenerator: () => string
|
|
3089
3102
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3090
3103
|
schema: EditorSchema
|
|
@@ -3287,6 +3300,7 @@ declare const editorMachine: StateMachine<
|
|
|
3287
3300
|
{
|
|
3288
3301
|
behaviors: Set<Behavior>
|
|
3289
3302
|
converters: Set<Converter>
|
|
3303
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3290
3304
|
keyGenerator: () => string
|
|
3291
3305
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3292
3306
|
schema: EditorSchema
|
|
@@ -3496,6 +3510,7 @@ declare const editorMachine: StateMachine<
|
|
|
3496
3510
|
{
|
|
3497
3511
|
behaviors: Set<Behavior>
|
|
3498
3512
|
converters: Set<Converter>
|
|
3513
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3499
3514
|
keyGenerator: () => string
|
|
3500
3515
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3501
3516
|
schema: EditorSchema
|
|
@@ -3699,6 +3714,7 @@ declare const editorMachine: StateMachine<
|
|
|
3699
3714
|
{
|
|
3700
3715
|
behaviors: Set<Behavior>
|
|
3701
3716
|
converters: Set<Converter>
|
|
3717
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3702
3718
|
keyGenerator: () => string
|
|
3703
3719
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3704
3720
|
schema: EditorSchema
|
|
@@ -3859,6 +3875,7 @@ declare const editorMachine: StateMachine<
|
|
|
3859
3875
|
{
|
|
3860
3876
|
behaviors: Set<Behavior>
|
|
3861
3877
|
converters: Set<Converter>
|
|
3878
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3862
3879
|
keyGenerator: () => string
|
|
3863
3880
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3864
3881
|
schema: EditorSchema
|
|
@@ -4016,6 +4033,7 @@ declare const editorMachine: StateMachine<
|
|
|
4016
4033
|
{
|
|
4017
4034
|
behaviors: Set<Behavior>
|
|
4018
4035
|
converters: Set<Converter>
|
|
4036
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4019
4037
|
keyGenerator: () => string
|
|
4020
4038
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4021
4039
|
schema: EditorSchema
|
|
@@ -4185,6 +4203,7 @@ declare const editorMachine: StateMachine<
|
|
|
4185
4203
|
{
|
|
4186
4204
|
behaviors: Set<Behavior>
|
|
4187
4205
|
converters: Set<Converter>
|
|
4206
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4188
4207
|
keyGenerator: () => string
|
|
4189
4208
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4190
4209
|
schema: EditorSchema
|
|
@@ -4221,6 +4240,7 @@ declare const editorMachine: StateMachine<
|
|
|
4221
4240
|
{
|
|
4222
4241
|
behaviors: Set<Behavior>
|
|
4223
4242
|
converters: Set<Converter>
|
|
4243
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4224
4244
|
keyGenerator: () => string
|
|
4225
4245
|
pendingEvents: Array<
|
|
4226
4246
|
InternalPatchEvent | MutationEvent
|
|
@@ -4256,6 +4276,7 @@ declare const editorMachine: StateMachine<
|
|
|
4256
4276
|
{
|
|
4257
4277
|
behaviors: Set<Behavior>
|
|
4258
4278
|
converters: Set<Converter>
|
|
4279
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4259
4280
|
keyGenerator: () => string
|
|
4260
4281
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4261
4282
|
schema: EditorSchema
|
|
@@ -4290,6 +4311,7 @@ declare const editorMachine: StateMachine<
|
|
|
4290
4311
|
{
|
|
4291
4312
|
behaviors: Set<Behavior>
|
|
4292
4313
|
converters: Set<Converter>
|
|
4314
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4293
4315
|
keyGenerator: () => string
|
|
4294
4316
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4295
4317
|
schema: EditorSchema
|
|
@@ -4324,6 +4346,7 @@ declare const editorMachine: StateMachine<
|
|
|
4324
4346
|
{
|
|
4325
4347
|
behaviors: Set<Behavior>
|
|
4326
4348
|
converters: Set<Converter>
|
|
4349
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4327
4350
|
keyGenerator: () => string
|
|
4328
4351
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4329
4352
|
schema: EditorSchema
|
|
@@ -4488,6 +4511,7 @@ declare const editorMachine: StateMachine<
|
|
|
4488
4511
|
{
|
|
4489
4512
|
behaviors: Set<Behavior>
|
|
4490
4513
|
converters: Set<Converter>
|
|
4514
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4491
4515
|
keyGenerator: () => string
|
|
4492
4516
|
pendingEvents: Array<
|
|
4493
4517
|
InternalPatchEvent | MutationEvent
|
|
@@ -4679,6 +4703,7 @@ declare const editorMachine: StateMachine<
|
|
|
4679
4703
|
{
|
|
4680
4704
|
behaviors: Set<Behavior>
|
|
4681
4705
|
converters: Set<Converter>
|
|
4706
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4682
4707
|
keyGenerator: () => string
|
|
4683
4708
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4684
4709
|
schema: EditorSchema
|
|
@@ -4951,6 +4976,7 @@ declare const editorMachine: StateMachine<
|
|
|
4951
4976
|
{
|
|
4952
4977
|
behaviors: Set<Behavior>
|
|
4953
4978
|
converters: Set<Converter>
|
|
4979
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4954
4980
|
keyGenerator: () => string
|
|
4955
4981
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4956
4982
|
schema: EditorSchema
|
|
@@ -5595,7 +5621,6 @@ declare type InternalEditor = Editor & {
|
|
|
5595
5621
|
editable: EditableAPI
|
|
5596
5622
|
editorActor: EditorActor
|
|
5597
5623
|
slateEditor: SlateEditor
|
|
5598
|
-
legacySchema: PortableTextMemberSchemaTypes
|
|
5599
5624
|
}
|
|
5600
5625
|
}
|
|
5601
5626
|
|
package/lib/index.d.ts
CHANGED
|
@@ -51,18 +51,17 @@ import {
|
|
|
51
51
|
AnyActorRef,
|
|
52
52
|
AnyEventObject,
|
|
53
53
|
ConditionalRequired,
|
|
54
|
-
EventObject,
|
|
55
54
|
InputFrom,
|
|
56
55
|
IsNotNever,
|
|
57
56
|
MachineSnapshot,
|
|
58
57
|
MetaObject,
|
|
59
58
|
NonReducibleUnknown,
|
|
60
59
|
RequiredLogicInput,
|
|
61
|
-
Snapshot,
|
|
62
60
|
StateMachine,
|
|
63
61
|
StateValue,
|
|
64
62
|
Values,
|
|
65
63
|
} from 'xstate'
|
|
64
|
+
import type {EventObject, Snapshot} from 'xstate'
|
|
66
65
|
import {GuardArgs} from 'xstate/guards'
|
|
67
66
|
|
|
68
67
|
declare type AbstractBehaviorEvent =
|
|
@@ -883,6 +882,7 @@ declare const editorMachine: StateMachine<
|
|
|
883
882
|
{
|
|
884
883
|
behaviors: Set<Behavior>
|
|
885
884
|
converters: Set<Converter>
|
|
885
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
886
886
|
keyGenerator: () => string
|
|
887
887
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
888
888
|
schema: EditorSchema
|
|
@@ -1116,6 +1116,7 @@ declare const editorMachine: StateMachine<
|
|
|
1116
1116
|
{
|
|
1117
1117
|
behaviors?: Array<Behavior>
|
|
1118
1118
|
converters?: Array<Converter>
|
|
1119
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1119
1120
|
keyGenerator: () => string
|
|
1120
1121
|
maxBlocks?: number
|
|
1121
1122
|
readOnly?: boolean
|
|
@@ -1201,6 +1202,7 @@ declare const editorMachine: StateMachine<
|
|
|
1201
1202
|
input: {
|
|
1202
1203
|
behaviors?: Array<Behavior>
|
|
1203
1204
|
converters?: Array<Converter>
|
|
1205
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1204
1206
|
keyGenerator: () => string
|
|
1205
1207
|
maxBlocks?: number
|
|
1206
1208
|
readOnly?: boolean
|
|
@@ -1212,6 +1214,7 @@ declare const editorMachine: StateMachine<
|
|
|
1212
1214
|
{
|
|
1213
1215
|
behaviors: Set<Behavior>
|
|
1214
1216
|
converters: Set<Converter>
|
|
1217
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1215
1218
|
keyGenerator: () => string
|
|
1216
1219
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1217
1220
|
schema: EditorSchema
|
|
@@ -1491,6 +1494,7 @@ declare const editorMachine: StateMachine<
|
|
|
1491
1494
|
}) => {
|
|
1492
1495
|
behaviors: Set<Behavior>
|
|
1493
1496
|
converters: Set<Converter>
|
|
1497
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1494
1498
|
keyGenerator: () => string
|
|
1495
1499
|
pendingEvents: never[]
|
|
1496
1500
|
schema: EditorSchema
|
|
@@ -1505,6 +1509,7 @@ declare const editorMachine: StateMachine<
|
|
|
1505
1509
|
{
|
|
1506
1510
|
behaviors: Set<Behavior>
|
|
1507
1511
|
converters: Set<Converter>
|
|
1512
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1508
1513
|
keyGenerator: () => string
|
|
1509
1514
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1510
1515
|
schema: EditorSchema
|
|
@@ -1708,6 +1713,7 @@ declare const editorMachine: StateMachine<
|
|
|
1708
1713
|
{
|
|
1709
1714
|
behaviors: Set<Behavior>
|
|
1710
1715
|
converters: Set<Converter>
|
|
1716
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1711
1717
|
keyGenerator: () => string
|
|
1712
1718
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1713
1719
|
schema: EditorSchema
|
|
@@ -1910,6 +1916,7 @@ declare const editorMachine: StateMachine<
|
|
|
1910
1916
|
{
|
|
1911
1917
|
behaviors: Set<Behavior>
|
|
1912
1918
|
converters: Set<Converter>
|
|
1919
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1913
1920
|
keyGenerator: () => string
|
|
1914
1921
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1915
1922
|
schema: EditorSchema
|
|
@@ -2115,6 +2122,7 @@ declare const editorMachine: StateMachine<
|
|
|
2115
2122
|
{
|
|
2116
2123
|
behaviors: Set<Behavior>
|
|
2117
2124
|
converters: Set<Converter>
|
|
2125
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2118
2126
|
keyGenerator: () => string
|
|
2119
2127
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2120
2128
|
schema: EditorSchema
|
|
@@ -2319,6 +2327,7 @@ declare const editorMachine: StateMachine<
|
|
|
2319
2327
|
{
|
|
2320
2328
|
behaviors: Set<Behavior>
|
|
2321
2329
|
converters: Set<Converter>
|
|
2330
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2322
2331
|
keyGenerator: () => string
|
|
2323
2332
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2324
2333
|
schema: EditorSchema
|
|
@@ -2523,6 +2532,7 @@ declare const editorMachine: StateMachine<
|
|
|
2523
2532
|
{
|
|
2524
2533
|
behaviors: Set<Behavior>
|
|
2525
2534
|
converters: Set<Converter>
|
|
2535
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2526
2536
|
keyGenerator: () => string
|
|
2527
2537
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2528
2538
|
schema: EditorSchema
|
|
@@ -2678,6 +2688,7 @@ declare const editorMachine: StateMachine<
|
|
|
2678
2688
|
{
|
|
2679
2689
|
behaviors: Set<Behavior>
|
|
2680
2690
|
converters: Set<Converter>
|
|
2691
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2681
2692
|
keyGenerator: () => string
|
|
2682
2693
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2683
2694
|
schema: EditorSchema
|
|
@@ -2882,6 +2893,7 @@ declare const editorMachine: StateMachine<
|
|
|
2882
2893
|
{
|
|
2883
2894
|
behaviors: Set<Behavior>
|
|
2884
2895
|
converters: Set<Converter>
|
|
2896
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2885
2897
|
keyGenerator: () => string
|
|
2886
2898
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2887
2899
|
schema: EditorSchema
|
|
@@ -3085,6 +3097,7 @@ declare const editorMachine: StateMachine<
|
|
|
3085
3097
|
{
|
|
3086
3098
|
behaviors: Set<Behavior>
|
|
3087
3099
|
converters: Set<Converter>
|
|
3100
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3088
3101
|
keyGenerator: () => string
|
|
3089
3102
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3090
3103
|
schema: EditorSchema
|
|
@@ -3287,6 +3300,7 @@ declare const editorMachine: StateMachine<
|
|
|
3287
3300
|
{
|
|
3288
3301
|
behaviors: Set<Behavior>
|
|
3289
3302
|
converters: Set<Converter>
|
|
3303
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3290
3304
|
keyGenerator: () => string
|
|
3291
3305
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3292
3306
|
schema: EditorSchema
|
|
@@ -3496,6 +3510,7 @@ declare const editorMachine: StateMachine<
|
|
|
3496
3510
|
{
|
|
3497
3511
|
behaviors: Set<Behavior>
|
|
3498
3512
|
converters: Set<Converter>
|
|
3513
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3499
3514
|
keyGenerator: () => string
|
|
3500
3515
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3501
3516
|
schema: EditorSchema
|
|
@@ -3699,6 +3714,7 @@ declare const editorMachine: StateMachine<
|
|
|
3699
3714
|
{
|
|
3700
3715
|
behaviors: Set<Behavior>
|
|
3701
3716
|
converters: Set<Converter>
|
|
3717
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3702
3718
|
keyGenerator: () => string
|
|
3703
3719
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3704
3720
|
schema: EditorSchema
|
|
@@ -3859,6 +3875,7 @@ declare const editorMachine: StateMachine<
|
|
|
3859
3875
|
{
|
|
3860
3876
|
behaviors: Set<Behavior>
|
|
3861
3877
|
converters: Set<Converter>
|
|
3878
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3862
3879
|
keyGenerator: () => string
|
|
3863
3880
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3864
3881
|
schema: EditorSchema
|
|
@@ -4016,6 +4033,7 @@ declare const editorMachine: StateMachine<
|
|
|
4016
4033
|
{
|
|
4017
4034
|
behaviors: Set<Behavior>
|
|
4018
4035
|
converters: Set<Converter>
|
|
4036
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4019
4037
|
keyGenerator: () => string
|
|
4020
4038
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4021
4039
|
schema: EditorSchema
|
|
@@ -4185,6 +4203,7 @@ declare const editorMachine: StateMachine<
|
|
|
4185
4203
|
{
|
|
4186
4204
|
behaviors: Set<Behavior>
|
|
4187
4205
|
converters: Set<Converter>
|
|
4206
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4188
4207
|
keyGenerator: () => string
|
|
4189
4208
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4190
4209
|
schema: EditorSchema
|
|
@@ -4221,6 +4240,7 @@ declare const editorMachine: StateMachine<
|
|
|
4221
4240
|
{
|
|
4222
4241
|
behaviors: Set<Behavior>
|
|
4223
4242
|
converters: Set<Converter>
|
|
4243
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4224
4244
|
keyGenerator: () => string
|
|
4225
4245
|
pendingEvents: Array<
|
|
4226
4246
|
InternalPatchEvent | MutationEvent
|
|
@@ -4256,6 +4276,7 @@ declare const editorMachine: StateMachine<
|
|
|
4256
4276
|
{
|
|
4257
4277
|
behaviors: Set<Behavior>
|
|
4258
4278
|
converters: Set<Converter>
|
|
4279
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4259
4280
|
keyGenerator: () => string
|
|
4260
4281
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4261
4282
|
schema: EditorSchema
|
|
@@ -4290,6 +4311,7 @@ declare const editorMachine: StateMachine<
|
|
|
4290
4311
|
{
|
|
4291
4312
|
behaviors: Set<Behavior>
|
|
4292
4313
|
converters: Set<Converter>
|
|
4314
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4293
4315
|
keyGenerator: () => string
|
|
4294
4316
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4295
4317
|
schema: EditorSchema
|
|
@@ -4324,6 +4346,7 @@ declare const editorMachine: StateMachine<
|
|
|
4324
4346
|
{
|
|
4325
4347
|
behaviors: Set<Behavior>
|
|
4326
4348
|
converters: Set<Converter>
|
|
4349
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4327
4350
|
keyGenerator: () => string
|
|
4328
4351
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4329
4352
|
schema: EditorSchema
|
|
@@ -4488,6 +4511,7 @@ declare const editorMachine: StateMachine<
|
|
|
4488
4511
|
{
|
|
4489
4512
|
behaviors: Set<Behavior>
|
|
4490
4513
|
converters: Set<Converter>
|
|
4514
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4491
4515
|
keyGenerator: () => string
|
|
4492
4516
|
pendingEvents: Array<
|
|
4493
4517
|
InternalPatchEvent | MutationEvent
|
|
@@ -4679,6 +4703,7 @@ declare const editorMachine: StateMachine<
|
|
|
4679
4703
|
{
|
|
4680
4704
|
behaviors: Set<Behavior>
|
|
4681
4705
|
converters: Set<Converter>
|
|
4706
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4682
4707
|
keyGenerator: () => string
|
|
4683
4708
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4684
4709
|
schema: EditorSchema
|
|
@@ -4951,6 +4976,7 @@ declare const editorMachine: StateMachine<
|
|
|
4951
4976
|
{
|
|
4952
4977
|
behaviors: Set<Behavior>
|
|
4953
4978
|
converters: Set<Converter>
|
|
4979
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4954
4980
|
keyGenerator: () => string
|
|
4955
4981
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4956
4982
|
schema: EditorSchema
|
|
@@ -5595,7 +5621,6 @@ declare type InternalEditor = Editor & {
|
|
|
5595
5621
|
editable: EditableAPI
|
|
5596
5622
|
editorActor: EditorActor
|
|
5597
5623
|
slateEditor: SlateEditor
|
|
5598
|
-
legacySchema: PortableTextMemberSchemaTypes
|
|
5599
5624
|
}
|
|
5600
5625
|
}
|
|
5601
5626
|
|