@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.
@@ -1,6 +1,10 @@
1
1
  import type {Patch} from '@portabletext/patches'
2
- import {KeyedSegment, PortableTextBlock} from '@sanity/types'
3
2
  import type {
3
+ ArraySchemaType,
4
+ BlockDecoratorDefinition,
5
+ BlockListDefinition,
6
+ BlockStyleDefinition,
7
+ ObjectSchemaType,
4
8
  Path,
5
9
  PortableTextChild,
6
10
  PortableTextListBlock,
@@ -8,6 +12,7 @@ import type {
8
12
  PortableTextSpan,
9
13
  PortableTextTextBlock,
10
14
  } from '@sanity/types'
15
+ import {KeyedSegment, PortableTextBlock} from '@sanity/types'
11
16
  import type {
12
17
  FocusEvent as FocusEvent_2,
13
18
  KeyboardEvent as KeyboardEvent_2,
@@ -8778,6 +8783,7 @@ declare const editorMachine: StateMachine<
8778
8783
  {
8779
8784
  behaviors: Set<Behavior>
8780
8785
  converters: Set<Converter>
8786
+ getLegacySchema: () => PortableTextMemberSchemaTypes
8781
8787
  keyGenerator: () => string
8782
8788
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
8783
8789
  schema: EditorSchema
@@ -9011,6 +9017,7 @@ declare const editorMachine: StateMachine<
9011
9017
  {
9012
9018
  behaviors?: Array<Behavior>
9013
9019
  converters?: Array<Converter>
9020
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9014
9021
  keyGenerator: () => string
9015
9022
  maxBlocks?: number
9016
9023
  readOnly?: boolean
@@ -9096,6 +9103,7 @@ declare const editorMachine: StateMachine<
9096
9103
  input: {
9097
9104
  behaviors?: Array<Behavior>
9098
9105
  converters?: Array<Converter>
9106
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9099
9107
  keyGenerator: () => string
9100
9108
  maxBlocks?: number
9101
9109
  readOnly?: boolean
@@ -9107,6 +9115,7 @@ declare const editorMachine: StateMachine<
9107
9115
  {
9108
9116
  behaviors: Set<Behavior>
9109
9117
  converters: Set<Converter>
9118
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9110
9119
  keyGenerator: () => string
9111
9120
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9112
9121
  schema: EditorSchema
@@ -9386,6 +9395,7 @@ declare const editorMachine: StateMachine<
9386
9395
  }) => {
9387
9396
  behaviors: Set<Behavior>
9388
9397
  converters: Set<Converter>
9398
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9389
9399
  keyGenerator: () => string
9390
9400
  pendingEvents: never[]
9391
9401
  schema: EditorSchema
@@ -9400,6 +9410,7 @@ declare const editorMachine: StateMachine<
9400
9410
  {
9401
9411
  behaviors: Set<Behavior>
9402
9412
  converters: Set<Converter>
9413
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9403
9414
  keyGenerator: () => string
9404
9415
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9405
9416
  schema: EditorSchema
@@ -9603,6 +9614,7 @@ declare const editorMachine: StateMachine<
9603
9614
  {
9604
9615
  behaviors: Set<Behavior>
9605
9616
  converters: Set<Converter>
9617
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9606
9618
  keyGenerator: () => string
9607
9619
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9608
9620
  schema: EditorSchema
@@ -9805,6 +9817,7 @@ declare const editorMachine: StateMachine<
9805
9817
  {
9806
9818
  behaviors: Set<Behavior>
9807
9819
  converters: Set<Converter>
9820
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9808
9821
  keyGenerator: () => string
9809
9822
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9810
9823
  schema: EditorSchema
@@ -10010,6 +10023,7 @@ declare const editorMachine: StateMachine<
10010
10023
  {
10011
10024
  behaviors: Set<Behavior>
10012
10025
  converters: Set<Converter>
10026
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10013
10027
  keyGenerator: () => string
10014
10028
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10015
10029
  schema: EditorSchema
@@ -10214,6 +10228,7 @@ declare const editorMachine: StateMachine<
10214
10228
  {
10215
10229
  behaviors: Set<Behavior>
10216
10230
  converters: Set<Converter>
10231
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10217
10232
  keyGenerator: () => string
10218
10233
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10219
10234
  schema: EditorSchema
@@ -10418,6 +10433,7 @@ declare const editorMachine: StateMachine<
10418
10433
  {
10419
10434
  behaviors: Set<Behavior>
10420
10435
  converters: Set<Converter>
10436
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10421
10437
  keyGenerator: () => string
10422
10438
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10423
10439
  schema: EditorSchema
@@ -10573,6 +10589,7 @@ declare const editorMachine: StateMachine<
10573
10589
  {
10574
10590
  behaviors: Set<Behavior>
10575
10591
  converters: Set<Converter>
10592
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10576
10593
  keyGenerator: () => string
10577
10594
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10578
10595
  schema: EditorSchema
@@ -10777,6 +10794,7 @@ declare const editorMachine: StateMachine<
10777
10794
  {
10778
10795
  behaviors: Set<Behavior>
10779
10796
  converters: Set<Converter>
10797
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10780
10798
  keyGenerator: () => string
10781
10799
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10782
10800
  schema: EditorSchema
@@ -10980,6 +10998,7 @@ declare const editorMachine: StateMachine<
10980
10998
  {
10981
10999
  behaviors: Set<Behavior>
10982
11000
  converters: Set<Converter>
11001
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10983
11002
  keyGenerator: () => string
10984
11003
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10985
11004
  schema: EditorSchema
@@ -11182,6 +11201,7 @@ declare const editorMachine: StateMachine<
11182
11201
  {
11183
11202
  behaviors: Set<Behavior>
11184
11203
  converters: Set<Converter>
11204
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11185
11205
  keyGenerator: () => string
11186
11206
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11187
11207
  schema: EditorSchema
@@ -11391,6 +11411,7 @@ declare const editorMachine: StateMachine<
11391
11411
  {
11392
11412
  behaviors: Set<Behavior>
11393
11413
  converters: Set<Converter>
11414
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11394
11415
  keyGenerator: () => string
11395
11416
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11396
11417
  schema: EditorSchema
@@ -11594,6 +11615,7 @@ declare const editorMachine: StateMachine<
11594
11615
  {
11595
11616
  behaviors: Set<Behavior>
11596
11617
  converters: Set<Converter>
11618
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11597
11619
  keyGenerator: () => string
11598
11620
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11599
11621
  schema: EditorSchema
@@ -11754,6 +11776,7 @@ declare const editorMachine: StateMachine<
11754
11776
  {
11755
11777
  behaviors: Set<Behavior>
11756
11778
  converters: Set<Converter>
11779
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11757
11780
  keyGenerator: () => string
11758
11781
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11759
11782
  schema: EditorSchema
@@ -11911,6 +11934,7 @@ declare const editorMachine: StateMachine<
11911
11934
  {
11912
11935
  behaviors: Set<Behavior>
11913
11936
  converters: Set<Converter>
11937
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11914
11938
  keyGenerator: () => string
11915
11939
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11916
11940
  schema: EditorSchema
@@ -12080,6 +12104,7 @@ declare const editorMachine: StateMachine<
12080
12104
  {
12081
12105
  behaviors: Set<Behavior>
12082
12106
  converters: Set<Converter>
12107
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12083
12108
  keyGenerator: () => string
12084
12109
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12085
12110
  schema: EditorSchema
@@ -12116,6 +12141,7 @@ declare const editorMachine: StateMachine<
12116
12141
  {
12117
12142
  behaviors: Set<Behavior>
12118
12143
  converters: Set<Converter>
12144
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12119
12145
  keyGenerator: () => string
12120
12146
  pendingEvents: Array<
12121
12147
  InternalPatchEvent | MutationEvent
@@ -12151,6 +12177,7 @@ declare const editorMachine: StateMachine<
12151
12177
  {
12152
12178
  behaviors: Set<Behavior>
12153
12179
  converters: Set<Converter>
12180
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12154
12181
  keyGenerator: () => string
12155
12182
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12156
12183
  schema: EditorSchema
@@ -12185,6 +12212,7 @@ declare const editorMachine: StateMachine<
12185
12212
  {
12186
12213
  behaviors: Set<Behavior>
12187
12214
  converters: Set<Converter>
12215
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12188
12216
  keyGenerator: () => string
12189
12217
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12190
12218
  schema: EditorSchema
@@ -12219,6 +12247,7 @@ declare const editorMachine: StateMachine<
12219
12247
  {
12220
12248
  behaviors: Set<Behavior>
12221
12249
  converters: Set<Converter>
12250
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12222
12251
  keyGenerator: () => string
12223
12252
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12224
12253
  schema: EditorSchema
@@ -12383,6 +12412,7 @@ declare const editorMachine: StateMachine<
12383
12412
  {
12384
12413
  behaviors: Set<Behavior>
12385
12414
  converters: Set<Converter>
12415
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12386
12416
  keyGenerator: () => string
12387
12417
  pendingEvents: Array<
12388
12418
  InternalPatchEvent | MutationEvent
@@ -12574,6 +12604,7 @@ declare const editorMachine: StateMachine<
12574
12604
  {
12575
12605
  behaviors: Set<Behavior>
12576
12606
  converters: Set<Converter>
12607
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12577
12608
  keyGenerator: () => string
12578
12609
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12579
12610
  schema: EditorSchema
@@ -12846,6 +12877,7 @@ declare const editorMachine: StateMachine<
12846
12877
  {
12847
12878
  behaviors: Set<Behavior>
12848
12879
  converters: Set<Converter>
12880
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12849
12881
  keyGenerator: () => string
12850
12882
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12851
12883
  schema: EditorSchema
@@ -13560,6 +13592,21 @@ declare type PickFromUnion_2<
13560
13592
  TPickedTags extends TUnion[TTagKey],
13561
13593
  > = TUnion extends Record<TTagKey, TPickedTags> ? TUnion : never
13562
13594
 
13595
+ /** @beta */
13596
+ declare type PortableTextMemberSchemaTypes = {
13597
+ annotations: (ObjectSchemaType & {
13598
+ i18nTitleKey?: string
13599
+ })[]
13600
+ block: ObjectSchemaType
13601
+ blockObjects: ObjectSchemaType[]
13602
+ decorators: BlockDecoratorDefinition[]
13603
+ inlineObjects: ObjectSchemaType[]
13604
+ portableText: ArraySchemaType<PortableTextBlock>
13605
+ span: ObjectSchemaType
13606
+ styles: BlockStyleDefinition[]
13607
+ lists: BlockListDefinition[]
13608
+ }
13609
+
13563
13610
  declare interface PortableTextSlateEditor extends ReactEditor {
13564
13611
  _key: 'editor'
13565
13612
  _type: 'editor'
@@ -1,6 +1,10 @@
1
1
  import type {Patch} from '@portabletext/patches'
2
- import {KeyedSegment, PortableTextBlock} from '@sanity/types'
3
2
  import type {
3
+ ArraySchemaType,
4
+ BlockDecoratorDefinition,
5
+ BlockListDefinition,
6
+ BlockStyleDefinition,
7
+ ObjectSchemaType,
4
8
  Path,
5
9
  PortableTextChild,
6
10
  PortableTextListBlock,
@@ -8,6 +12,7 @@ import type {
8
12
  PortableTextSpan,
9
13
  PortableTextTextBlock,
10
14
  } from '@sanity/types'
15
+ import {KeyedSegment, PortableTextBlock} from '@sanity/types'
11
16
  import type {
12
17
  FocusEvent as FocusEvent_2,
13
18
  KeyboardEvent as KeyboardEvent_2,
@@ -8778,6 +8783,7 @@ declare const editorMachine: StateMachine<
8778
8783
  {
8779
8784
  behaviors: Set<Behavior>
8780
8785
  converters: Set<Converter>
8786
+ getLegacySchema: () => PortableTextMemberSchemaTypes
8781
8787
  keyGenerator: () => string
8782
8788
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
8783
8789
  schema: EditorSchema
@@ -9011,6 +9017,7 @@ declare const editorMachine: StateMachine<
9011
9017
  {
9012
9018
  behaviors?: Array<Behavior>
9013
9019
  converters?: Array<Converter>
9020
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9014
9021
  keyGenerator: () => string
9015
9022
  maxBlocks?: number
9016
9023
  readOnly?: boolean
@@ -9096,6 +9103,7 @@ declare const editorMachine: StateMachine<
9096
9103
  input: {
9097
9104
  behaviors?: Array<Behavior>
9098
9105
  converters?: Array<Converter>
9106
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9099
9107
  keyGenerator: () => string
9100
9108
  maxBlocks?: number
9101
9109
  readOnly?: boolean
@@ -9107,6 +9115,7 @@ declare const editorMachine: StateMachine<
9107
9115
  {
9108
9116
  behaviors: Set<Behavior>
9109
9117
  converters: Set<Converter>
9118
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9110
9119
  keyGenerator: () => string
9111
9120
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9112
9121
  schema: EditorSchema
@@ -9386,6 +9395,7 @@ declare const editorMachine: StateMachine<
9386
9395
  }) => {
9387
9396
  behaviors: Set<Behavior>
9388
9397
  converters: Set<Converter>
9398
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9389
9399
  keyGenerator: () => string
9390
9400
  pendingEvents: never[]
9391
9401
  schema: EditorSchema
@@ -9400,6 +9410,7 @@ declare const editorMachine: StateMachine<
9400
9410
  {
9401
9411
  behaviors: Set<Behavior>
9402
9412
  converters: Set<Converter>
9413
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9403
9414
  keyGenerator: () => string
9404
9415
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9405
9416
  schema: EditorSchema
@@ -9603,6 +9614,7 @@ declare const editorMachine: StateMachine<
9603
9614
  {
9604
9615
  behaviors: Set<Behavior>
9605
9616
  converters: Set<Converter>
9617
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9606
9618
  keyGenerator: () => string
9607
9619
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9608
9620
  schema: EditorSchema
@@ -9805,6 +9817,7 @@ declare const editorMachine: StateMachine<
9805
9817
  {
9806
9818
  behaviors: Set<Behavior>
9807
9819
  converters: Set<Converter>
9820
+ getLegacySchema: () => PortableTextMemberSchemaTypes
9808
9821
  keyGenerator: () => string
9809
9822
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
9810
9823
  schema: EditorSchema
@@ -10010,6 +10023,7 @@ declare const editorMachine: StateMachine<
10010
10023
  {
10011
10024
  behaviors: Set<Behavior>
10012
10025
  converters: Set<Converter>
10026
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10013
10027
  keyGenerator: () => string
10014
10028
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10015
10029
  schema: EditorSchema
@@ -10214,6 +10228,7 @@ declare const editorMachine: StateMachine<
10214
10228
  {
10215
10229
  behaviors: Set<Behavior>
10216
10230
  converters: Set<Converter>
10231
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10217
10232
  keyGenerator: () => string
10218
10233
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10219
10234
  schema: EditorSchema
@@ -10418,6 +10433,7 @@ declare const editorMachine: StateMachine<
10418
10433
  {
10419
10434
  behaviors: Set<Behavior>
10420
10435
  converters: Set<Converter>
10436
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10421
10437
  keyGenerator: () => string
10422
10438
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10423
10439
  schema: EditorSchema
@@ -10573,6 +10589,7 @@ declare const editorMachine: StateMachine<
10573
10589
  {
10574
10590
  behaviors: Set<Behavior>
10575
10591
  converters: Set<Converter>
10592
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10576
10593
  keyGenerator: () => string
10577
10594
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10578
10595
  schema: EditorSchema
@@ -10777,6 +10794,7 @@ declare const editorMachine: StateMachine<
10777
10794
  {
10778
10795
  behaviors: Set<Behavior>
10779
10796
  converters: Set<Converter>
10797
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10780
10798
  keyGenerator: () => string
10781
10799
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10782
10800
  schema: EditorSchema
@@ -10980,6 +10998,7 @@ declare const editorMachine: StateMachine<
10980
10998
  {
10981
10999
  behaviors: Set<Behavior>
10982
11000
  converters: Set<Converter>
11001
+ getLegacySchema: () => PortableTextMemberSchemaTypes
10983
11002
  keyGenerator: () => string
10984
11003
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
10985
11004
  schema: EditorSchema
@@ -11182,6 +11201,7 @@ declare const editorMachine: StateMachine<
11182
11201
  {
11183
11202
  behaviors: Set<Behavior>
11184
11203
  converters: Set<Converter>
11204
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11185
11205
  keyGenerator: () => string
11186
11206
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11187
11207
  schema: EditorSchema
@@ -11391,6 +11411,7 @@ declare const editorMachine: StateMachine<
11391
11411
  {
11392
11412
  behaviors: Set<Behavior>
11393
11413
  converters: Set<Converter>
11414
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11394
11415
  keyGenerator: () => string
11395
11416
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11396
11417
  schema: EditorSchema
@@ -11594,6 +11615,7 @@ declare const editorMachine: StateMachine<
11594
11615
  {
11595
11616
  behaviors: Set<Behavior>
11596
11617
  converters: Set<Converter>
11618
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11597
11619
  keyGenerator: () => string
11598
11620
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11599
11621
  schema: EditorSchema
@@ -11754,6 +11776,7 @@ declare const editorMachine: StateMachine<
11754
11776
  {
11755
11777
  behaviors: Set<Behavior>
11756
11778
  converters: Set<Converter>
11779
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11757
11780
  keyGenerator: () => string
11758
11781
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11759
11782
  schema: EditorSchema
@@ -11911,6 +11934,7 @@ declare const editorMachine: StateMachine<
11911
11934
  {
11912
11935
  behaviors: Set<Behavior>
11913
11936
  converters: Set<Converter>
11937
+ getLegacySchema: () => PortableTextMemberSchemaTypes
11914
11938
  keyGenerator: () => string
11915
11939
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
11916
11940
  schema: EditorSchema
@@ -12080,6 +12104,7 @@ declare const editorMachine: StateMachine<
12080
12104
  {
12081
12105
  behaviors: Set<Behavior>
12082
12106
  converters: Set<Converter>
12107
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12083
12108
  keyGenerator: () => string
12084
12109
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12085
12110
  schema: EditorSchema
@@ -12116,6 +12141,7 @@ declare const editorMachine: StateMachine<
12116
12141
  {
12117
12142
  behaviors: Set<Behavior>
12118
12143
  converters: Set<Converter>
12144
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12119
12145
  keyGenerator: () => string
12120
12146
  pendingEvents: Array<
12121
12147
  InternalPatchEvent | MutationEvent
@@ -12151,6 +12177,7 @@ declare const editorMachine: StateMachine<
12151
12177
  {
12152
12178
  behaviors: Set<Behavior>
12153
12179
  converters: Set<Converter>
12180
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12154
12181
  keyGenerator: () => string
12155
12182
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12156
12183
  schema: EditorSchema
@@ -12185,6 +12212,7 @@ declare const editorMachine: StateMachine<
12185
12212
  {
12186
12213
  behaviors: Set<Behavior>
12187
12214
  converters: Set<Converter>
12215
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12188
12216
  keyGenerator: () => string
12189
12217
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12190
12218
  schema: EditorSchema
@@ -12219,6 +12247,7 @@ declare const editorMachine: StateMachine<
12219
12247
  {
12220
12248
  behaviors: Set<Behavior>
12221
12249
  converters: Set<Converter>
12250
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12222
12251
  keyGenerator: () => string
12223
12252
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12224
12253
  schema: EditorSchema
@@ -12383,6 +12412,7 @@ declare const editorMachine: StateMachine<
12383
12412
  {
12384
12413
  behaviors: Set<Behavior>
12385
12414
  converters: Set<Converter>
12415
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12386
12416
  keyGenerator: () => string
12387
12417
  pendingEvents: Array<
12388
12418
  InternalPatchEvent | MutationEvent
@@ -12574,6 +12604,7 @@ declare const editorMachine: StateMachine<
12574
12604
  {
12575
12605
  behaviors: Set<Behavior>
12576
12606
  converters: Set<Converter>
12607
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12577
12608
  keyGenerator: () => string
12578
12609
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12579
12610
  schema: EditorSchema
@@ -12846,6 +12877,7 @@ declare const editorMachine: StateMachine<
12846
12877
  {
12847
12878
  behaviors: Set<Behavior>
12848
12879
  converters: Set<Converter>
12880
+ getLegacySchema: () => PortableTextMemberSchemaTypes
12849
12881
  keyGenerator: () => string
12850
12882
  pendingEvents: Array<InternalPatchEvent | MutationEvent>
12851
12883
  schema: EditorSchema
@@ -13560,6 +13592,21 @@ declare type PickFromUnion_2<
13560
13592
  TPickedTags extends TUnion[TTagKey],
13561
13593
  > = TUnion extends Record<TTagKey, TPickedTags> ? TUnion : never
13562
13594
 
13595
+ /** @beta */
13596
+ declare type PortableTextMemberSchemaTypes = {
13597
+ annotations: (ObjectSchemaType & {
13598
+ i18nTitleKey?: string
13599
+ })[]
13600
+ block: ObjectSchemaType
13601
+ blockObjects: ObjectSchemaType[]
13602
+ decorators: BlockDecoratorDefinition[]
13603
+ inlineObjects: ObjectSchemaType[]
13604
+ portableText: ArraySchemaType<PortableTextBlock>
13605
+ span: ObjectSchemaType
13606
+ styles: BlockStyleDefinition[]
13607
+ lists: BlockListDefinition[]
13608
+ }
13609
+
13563
13610
  declare interface PortableTextSlateEditor extends ReactEditor {
13564
13611
  _key: 'editor'
13565
13612
  _type: 'editor'