@portabletext/editor 1.41.4 → 1.42.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 +2 -26
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +21 -4
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js +2 -26
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/behavior.markdown.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +20 -3
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/behaviors/index.cjs.map +1 -1
- package/lib/behaviors/index.d.cts +16 -86
- package/lib/behaviors/index.d.ts +16 -86
- package/lib/behaviors/index.js.map +1 -1
- package/lib/index.d.cts +7 -68
- package/lib/index.d.ts +7 -68
- package/lib/plugins/index.cjs +7 -1
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +12 -68
- package/lib/plugins/index.d.ts +12 -68
- package/lib/plugins/index.js +8 -2
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.cts +7 -68
- package/lib/selectors/index.d.ts +7 -68
- package/lib/utils/index.d.cts +7 -68
- package/lib/utils/index.d.ts +7 -68
- package/package.json +4 -4
- package/src/behavior-actions/behavior.actions.ts +1 -1
- package/src/behaviors/behavior.code-editor.ts +1 -1
- package/src/behaviors/behavior.core.annotations.ts +2 -1
- package/src/behaviors/behavior.core.block-objects.ts +2 -1
- package/src/behaviors/behavior.core.decorators.ts +2 -1
- package/src/behaviors/behavior.core.dnd.ts +1 -1
- package/src/behaviors/behavior.core.insert-break.ts +2 -1
- package/src/behaviors/behavior.core.lists.ts +2 -1
- package/src/behaviors/behavior.decorator-pair.ts +1 -1
- package/src/behaviors/behavior.default.raise-soft-break.ts +2 -1
- package/src/behaviors/behavior.default.ts +2 -1
- package/src/behaviors/behavior.emoji-picker.ts +1 -1
- package/src/behaviors/behavior.links.ts +1 -1
- package/src/behaviors/behavior.markdown.ts +1 -1
- package/src/behaviors/behavior.types.action.ts +61 -0
- package/src/behaviors/behavior.types.behavior.ts +84 -0
- package/src/behaviors/{behavior.types.ts → behavior.types.event.ts} +58 -203
- package/src/behaviors/behavior.types.guard.ts +14 -0
- package/src/behaviors/index.ts +11 -9
- package/src/editor/create-editor.ts +2 -2
- package/src/editor/editor-machine.ts +3 -3
- package/src/editor/plugins/create-with-event-listeners.ts +0 -1
- package/src/plugins/index.ts +1 -0
- package/src/plugins/plugin.core.tsx +9 -0
- package/src/plugins/plugin.decorator-shortcut.ts +1 -1
package/lib/plugins/index.d.cts
CHANGED
|
@@ -23,7 +23,6 @@ import type {Descendant, Operation} from 'slate'
|
|
|
23
23
|
import {TextUnit} from 'slate'
|
|
24
24
|
import type {DOMNode} from 'slate-dom'
|
|
25
25
|
import type {ReactEditor} from 'slate-react'
|
|
26
|
-
import {TextInsertTextOptions} from 'slate/dist/interfaces/transforms/text'
|
|
27
26
|
import {
|
|
28
27
|
ActionArgs,
|
|
29
28
|
ActionFunction,
|
|
@@ -55,7 +54,7 @@ import {
|
|
|
55
54
|
import {
|
|
56
55
|
InputBehaviorEvent as InputBehaviorEvent_2,
|
|
57
56
|
InsertPlacement as InsertPlacement_2,
|
|
58
|
-
} from '../behaviors/behavior.types'
|
|
57
|
+
} from '../behaviors/behavior.types.event'
|
|
59
58
|
import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
|
|
60
59
|
import {PickFromUnion as PickFromUnion_2} from '../type-utils'
|
|
61
60
|
import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
|
|
@@ -235,6 +234,11 @@ declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
|
|
|
235
234
|
mimeType: TMIMEType
|
|
236
235
|
}
|
|
237
236
|
|
|
237
|
+
/**
|
|
238
|
+
* @beta
|
|
239
|
+
*/
|
|
240
|
+
export declare function CoreBehaviorsPlugin(): JSX.Element
|
|
241
|
+
|
|
238
242
|
/**
|
|
239
243
|
* @beta
|
|
240
244
|
*/
|
|
@@ -660,7 +664,6 @@ declare const editorMachine: StateMachine<
|
|
|
660
664
|
| {
|
|
661
665
|
type: 'insert.text'
|
|
662
666
|
text: string
|
|
663
|
-
options?: TextInsertTextOptions
|
|
664
667
|
}
|
|
665
668
|
| {
|
|
666
669
|
type: 'list item.add'
|
|
@@ -1105,7 +1108,6 @@ declare const editorMachine: StateMachine<
|
|
|
1105
1108
|
| {
|
|
1106
1109
|
type: 'insert.text'
|
|
1107
1110
|
text: string
|
|
1108
|
-
options?: TextInsertTextOptions
|
|
1109
1111
|
}
|
|
1110
1112
|
| {
|
|
1111
1113
|
type: 'list item.add'
|
|
@@ -1439,7 +1441,6 @@ declare const editorMachine: StateMachine<
|
|
|
1439
1441
|
| {
|
|
1440
1442
|
type: 'insert.text'
|
|
1441
1443
|
text: string
|
|
1442
|
-
options?: TextInsertTextOptions
|
|
1443
1444
|
}
|
|
1444
1445
|
| {
|
|
1445
1446
|
type: 'list item.add'
|
|
@@ -1807,7 +1808,6 @@ declare const editorMachine: StateMachine<
|
|
|
1807
1808
|
| {
|
|
1808
1809
|
type: 'insert.text'
|
|
1809
1810
|
text: string
|
|
1810
|
-
options?: TextInsertTextOptions
|
|
1811
1811
|
}
|
|
1812
1812
|
| {
|
|
1813
1813
|
type: 'list item.add'
|
|
@@ -2203,7 +2203,6 @@ declare const editorMachine: StateMachine<
|
|
|
2203
2203
|
| {
|
|
2204
2204
|
type: 'insert.text'
|
|
2205
2205
|
text: string
|
|
2206
|
-
options?: TextInsertTextOptions
|
|
2207
2206
|
}
|
|
2208
2207
|
| {
|
|
2209
2208
|
type: 'list item.add'
|
|
@@ -2569,7 +2568,6 @@ declare const editorMachine: StateMachine<
|
|
|
2569
2568
|
| {
|
|
2570
2569
|
type: 'insert.text'
|
|
2571
2570
|
text: string
|
|
2572
|
-
options?: TextInsertTextOptions
|
|
2573
2571
|
}
|
|
2574
2572
|
| {
|
|
2575
2573
|
type: 'list item.add'
|
|
@@ -2871,7 +2869,6 @@ declare const editorMachine: StateMachine<
|
|
|
2871
2869
|
| {
|
|
2872
2870
|
type: 'insert.text'
|
|
2873
2871
|
text: string
|
|
2874
|
-
options?: TextInsertTextOptions
|
|
2875
2872
|
}
|
|
2876
2873
|
| {
|
|
2877
2874
|
type: 'list item.add'
|
|
@@ -3237,7 +3234,6 @@ declare const editorMachine: StateMachine<
|
|
|
3237
3234
|
| {
|
|
3238
3235
|
type: 'insert.text'
|
|
3239
3236
|
text: string
|
|
3240
|
-
options?: TextInsertTextOptions
|
|
3241
3237
|
}
|
|
3242
3238
|
| {
|
|
3243
3239
|
type: 'list item.add'
|
|
@@ -3542,7 +3538,6 @@ declare const editorMachine: StateMachine<
|
|
|
3542
3538
|
| {
|
|
3543
3539
|
type: 'insert.text'
|
|
3544
3540
|
text: string
|
|
3545
|
-
options?: TextInsertTextOptions
|
|
3546
3541
|
}
|
|
3547
3542
|
| {
|
|
3548
3543
|
type: 'list item.add'
|
|
@@ -3908,7 +3903,6 @@ declare const editorMachine: StateMachine<
|
|
|
3908
3903
|
| {
|
|
3909
3904
|
type: 'insert.text'
|
|
3910
3905
|
text: string
|
|
3911
|
-
options?: TextInsertTextOptions
|
|
3912
3906
|
}
|
|
3913
3907
|
| {
|
|
3914
3908
|
type: 'list item.add'
|
|
@@ -4212,7 +4206,6 @@ declare const editorMachine: StateMachine<
|
|
|
4212
4206
|
| {
|
|
4213
4207
|
type: 'insert.text'
|
|
4214
4208
|
text: string
|
|
4215
|
-
options?: TextInsertTextOptions
|
|
4216
4209
|
}
|
|
4217
4210
|
| {
|
|
4218
4211
|
type: 'list item.add'
|
|
@@ -4578,7 +4571,6 @@ declare const editorMachine: StateMachine<
|
|
|
4578
4571
|
| {
|
|
4579
4572
|
type: 'insert.text'
|
|
4580
4573
|
text: string
|
|
4581
|
-
options?: TextInsertTextOptions
|
|
4582
4574
|
}
|
|
4583
4575
|
| {
|
|
4584
4576
|
type: 'list item.add'
|
|
@@ -4881,7 +4873,6 @@ declare const editorMachine: StateMachine<
|
|
|
4881
4873
|
| {
|
|
4882
4874
|
type: 'insert.text'
|
|
4883
4875
|
text: string
|
|
4884
|
-
options?: TextInsertTextOptions
|
|
4885
4876
|
}
|
|
4886
4877
|
| {
|
|
4887
4878
|
type: 'list item.add'
|
|
@@ -5247,7 +5238,6 @@ declare const editorMachine: StateMachine<
|
|
|
5247
5238
|
| {
|
|
5248
5239
|
type: 'insert.text'
|
|
5249
5240
|
text: string
|
|
5250
|
-
options?: TextInsertTextOptions
|
|
5251
5241
|
}
|
|
5252
5242
|
| {
|
|
5253
5243
|
type: 'list item.add'
|
|
@@ -5551,7 +5541,6 @@ declare const editorMachine: StateMachine<
|
|
|
5551
5541
|
| {
|
|
5552
5542
|
type: 'insert.text'
|
|
5553
5543
|
text: string
|
|
5554
|
-
options?: TextInsertTextOptions
|
|
5555
5544
|
}
|
|
5556
5545
|
| {
|
|
5557
5546
|
type: 'list item.add'
|
|
@@ -5939,7 +5928,6 @@ declare const editorMachine: StateMachine<
|
|
|
5939
5928
|
| {
|
|
5940
5929
|
type: 'insert.text'
|
|
5941
5930
|
text: string
|
|
5942
|
-
options?: TextInsertTextOptions
|
|
5943
5931
|
}
|
|
5944
5932
|
| {
|
|
5945
5933
|
type: 'list item.add'
|
|
@@ -6305,7 +6293,6 @@ declare const editorMachine: StateMachine<
|
|
|
6305
6293
|
| {
|
|
6306
6294
|
type: 'insert.text'
|
|
6307
6295
|
text: string
|
|
6308
|
-
options?: TextInsertTextOptions
|
|
6309
6296
|
}
|
|
6310
6297
|
| {
|
|
6311
6298
|
type: 'list item.add'
|
|
@@ -6609,7 +6596,6 @@ declare const editorMachine: StateMachine<
|
|
|
6609
6596
|
| {
|
|
6610
6597
|
type: 'insert.text'
|
|
6611
6598
|
text: string
|
|
6612
|
-
options?: TextInsertTextOptions
|
|
6613
6599
|
}
|
|
6614
6600
|
| {
|
|
6615
6601
|
type: 'list item.add'
|
|
@@ -6975,7 +6961,6 @@ declare const editorMachine: StateMachine<
|
|
|
6975
6961
|
| {
|
|
6976
6962
|
type: 'insert.text'
|
|
6977
6963
|
text: string
|
|
6978
|
-
options?: TextInsertTextOptions
|
|
6979
6964
|
}
|
|
6980
6965
|
| {
|
|
6981
6966
|
type: 'list item.add'
|
|
@@ -7277,7 +7262,6 @@ declare const editorMachine: StateMachine<
|
|
|
7277
7262
|
| {
|
|
7278
7263
|
type: 'insert.text'
|
|
7279
7264
|
text: string
|
|
7280
|
-
options?: TextInsertTextOptions
|
|
7281
7265
|
}
|
|
7282
7266
|
| {
|
|
7283
7267
|
type: 'list item.add'
|
|
@@ -7643,7 +7627,6 @@ declare const editorMachine: StateMachine<
|
|
|
7643
7627
|
| {
|
|
7644
7628
|
type: 'insert.text'
|
|
7645
7629
|
text: string
|
|
7646
|
-
options?: TextInsertTextOptions
|
|
7647
7630
|
}
|
|
7648
7631
|
| {
|
|
7649
7632
|
type: 'list item.add'
|
|
@@ -7946,7 +7929,6 @@ declare const editorMachine: StateMachine<
|
|
|
7946
7929
|
| {
|
|
7947
7930
|
type: 'insert.text'
|
|
7948
7931
|
text: string
|
|
7949
|
-
options?: TextInsertTextOptions
|
|
7950
7932
|
}
|
|
7951
7933
|
| {
|
|
7952
7934
|
type: 'list item.add'
|
|
@@ -8312,7 +8294,6 @@ declare const editorMachine: StateMachine<
|
|
|
8312
8294
|
| {
|
|
8313
8295
|
type: 'insert.text'
|
|
8314
8296
|
text: string
|
|
8315
|
-
options?: TextInsertTextOptions
|
|
8316
8297
|
}
|
|
8317
8298
|
| {
|
|
8318
8299
|
type: 'list item.add'
|
|
@@ -8618,7 +8599,6 @@ declare const editorMachine: StateMachine<
|
|
|
8618
8599
|
| {
|
|
8619
8600
|
type: 'insert.text'
|
|
8620
8601
|
text: string
|
|
8621
|
-
options?: TextInsertTextOptions
|
|
8622
8602
|
}
|
|
8623
8603
|
| {
|
|
8624
8604
|
type: 'list item.add'
|
|
@@ -8984,7 +8964,6 @@ declare const editorMachine: StateMachine<
|
|
|
8984
8964
|
| {
|
|
8985
8965
|
type: 'insert.text'
|
|
8986
8966
|
text: string
|
|
8987
|
-
options?: TextInsertTextOptions
|
|
8988
8967
|
}
|
|
8989
8968
|
| {
|
|
8990
8969
|
type: 'list item.add'
|
|
@@ -9290,7 +9269,6 @@ declare const editorMachine: StateMachine<
|
|
|
9290
9269
|
| {
|
|
9291
9270
|
type: 'insert.text'
|
|
9292
9271
|
text: string
|
|
9293
|
-
options?: TextInsertTextOptions
|
|
9294
9272
|
}
|
|
9295
9273
|
| {
|
|
9296
9274
|
type: 'list item.add'
|
|
@@ -9683,7 +9661,6 @@ declare const editorMachine: StateMachine<
|
|
|
9683
9661
|
| {
|
|
9684
9662
|
type: 'insert.text'
|
|
9685
9663
|
text: string
|
|
9686
|
-
options?: TextInsertTextOptions
|
|
9687
9664
|
}
|
|
9688
9665
|
| {
|
|
9689
9666
|
type: 'list item.add'
|
|
@@ -10073,7 +10050,6 @@ declare const editorMachine: StateMachine<
|
|
|
10073
10050
|
| {
|
|
10074
10051
|
type: 'insert.text'
|
|
10075
10052
|
text: string
|
|
10076
|
-
options?: TextInsertTextOptions
|
|
10077
10053
|
}
|
|
10078
10054
|
| {
|
|
10079
10055
|
type: 'list item.add'
|
|
@@ -10632,7 +10608,6 @@ declare const editorMachine: StateMachine<
|
|
|
10632
10608
|
| {
|
|
10633
10609
|
type: 'insert.text'
|
|
10634
10610
|
text: string
|
|
10635
|
-
options?: TextInsertTextOptions
|
|
10636
10611
|
}
|
|
10637
10612
|
| {
|
|
10638
10613
|
type: 'list item.add'
|
|
@@ -10998,7 +10973,6 @@ declare const editorMachine: StateMachine<
|
|
|
10998
10973
|
| {
|
|
10999
10974
|
type: 'insert.text'
|
|
11000
10975
|
text: string
|
|
11001
|
-
options?: TextInsertTextOptions
|
|
11002
10976
|
}
|
|
11003
10977
|
| {
|
|
11004
10978
|
type: 'list item.add'
|
|
@@ -11307,7 +11281,6 @@ declare const editorMachine: StateMachine<
|
|
|
11307
11281
|
| {
|
|
11308
11282
|
type: 'insert.text'
|
|
11309
11283
|
text: string
|
|
11310
|
-
options?: TextInsertTextOptions
|
|
11311
11284
|
}
|
|
11312
11285
|
| {
|
|
11313
11286
|
type: 'list item.add'
|
|
@@ -11673,7 +11646,6 @@ declare const editorMachine: StateMachine<
|
|
|
11673
11646
|
| {
|
|
11674
11647
|
type: 'insert.text'
|
|
11675
11648
|
text: string
|
|
11676
|
-
options?: TextInsertTextOptions
|
|
11677
11649
|
}
|
|
11678
11650
|
| {
|
|
11679
11651
|
type: 'list item.add'
|
|
@@ -11975,7 +11947,6 @@ declare const editorMachine: StateMachine<
|
|
|
11975
11947
|
| {
|
|
11976
11948
|
type: 'insert.text'
|
|
11977
11949
|
text: string
|
|
11978
|
-
options?: TextInsertTextOptions
|
|
11979
11950
|
}
|
|
11980
11951
|
| {
|
|
11981
11952
|
type: 'list item.add'
|
|
@@ -12341,7 +12312,6 @@ declare const editorMachine: StateMachine<
|
|
|
12341
12312
|
| {
|
|
12342
12313
|
type: 'insert.text'
|
|
12343
12314
|
text: string
|
|
12344
|
-
options?: TextInsertTextOptions
|
|
12345
12315
|
}
|
|
12346
12316
|
| {
|
|
12347
12317
|
type: 'list item.add'
|
|
@@ -12643,7 +12613,6 @@ declare const editorMachine: StateMachine<
|
|
|
12643
12613
|
| {
|
|
12644
12614
|
type: 'insert.text'
|
|
12645
12615
|
text: string
|
|
12646
|
-
options?: TextInsertTextOptions
|
|
12647
12616
|
}
|
|
12648
12617
|
| {
|
|
12649
12618
|
type: 'list item.add'
|
|
@@ -13009,7 +12978,6 @@ declare const editorMachine: StateMachine<
|
|
|
13009
12978
|
| {
|
|
13010
12979
|
type: 'insert.text'
|
|
13011
12980
|
text: string
|
|
13012
|
-
options?: TextInsertTextOptions
|
|
13013
12981
|
}
|
|
13014
12982
|
| {
|
|
13015
12983
|
type: 'list item.add'
|
|
@@ -13328,7 +13296,6 @@ declare const editorMachine: StateMachine<
|
|
|
13328
13296
|
| {
|
|
13329
13297
|
type: 'insert.text'
|
|
13330
13298
|
text: string
|
|
13331
|
-
options?: TextInsertTextOptions
|
|
13332
13299
|
}
|
|
13333
13300
|
| {
|
|
13334
13301
|
type: 'list item.add'
|
|
@@ -13694,7 +13661,6 @@ declare const editorMachine: StateMachine<
|
|
|
13694
13661
|
| {
|
|
13695
13662
|
type: 'insert.text'
|
|
13696
13663
|
text: string
|
|
13697
|
-
options?: TextInsertTextOptions
|
|
13698
13664
|
}
|
|
13699
13665
|
| {
|
|
13700
13666
|
type: 'list item.add'
|
|
@@ -14010,7 +13976,6 @@ declare const editorMachine: StateMachine<
|
|
|
14010
13976
|
| {
|
|
14011
13977
|
type: 'insert.text'
|
|
14012
13978
|
text: string
|
|
14013
|
-
options?: TextInsertTextOptions
|
|
14014
13979
|
}
|
|
14015
13980
|
| {
|
|
14016
13981
|
type: 'list item.add'
|
|
@@ -14376,7 +14341,6 @@ declare const editorMachine: StateMachine<
|
|
|
14376
14341
|
| {
|
|
14377
14342
|
type: 'insert.text'
|
|
14378
14343
|
text: string
|
|
14379
|
-
options?: TextInsertTextOptions
|
|
14380
14344
|
}
|
|
14381
14345
|
| {
|
|
14382
14346
|
type: 'list item.add'
|
|
@@ -14678,7 +14642,6 @@ declare const editorMachine: StateMachine<
|
|
|
14678
14642
|
| {
|
|
14679
14643
|
type: 'insert.text'
|
|
14680
14644
|
text: string
|
|
14681
|
-
options?: TextInsertTextOptions
|
|
14682
14645
|
}
|
|
14683
14646
|
| {
|
|
14684
14647
|
type: 'list item.add'
|
|
@@ -15044,7 +15007,6 @@ declare const editorMachine: StateMachine<
|
|
|
15044
15007
|
| {
|
|
15045
15008
|
type: 'insert.text'
|
|
15046
15009
|
text: string
|
|
15047
|
-
options?: TextInsertTextOptions
|
|
15048
15010
|
}
|
|
15049
15011
|
| {
|
|
15050
15012
|
type: 'list item.add'
|
|
@@ -15349,7 +15311,6 @@ declare const editorMachine: StateMachine<
|
|
|
15349
15311
|
| {
|
|
15350
15312
|
type: 'insert.text'
|
|
15351
15313
|
text: string
|
|
15352
|
-
options?: TextInsertTextOptions
|
|
15353
15314
|
}
|
|
15354
15315
|
| {
|
|
15355
15316
|
type: 'list item.add'
|
|
@@ -15715,7 +15676,6 @@ declare const editorMachine: StateMachine<
|
|
|
15715
15676
|
| {
|
|
15716
15677
|
type: 'insert.text'
|
|
15717
15678
|
text: string
|
|
15718
|
-
options?: TextInsertTextOptions
|
|
15719
15679
|
}
|
|
15720
15680
|
| {
|
|
15721
15681
|
type: 'list item.add'
|
|
@@ -15921,7 +15881,6 @@ declare const editorMachine: StateMachine<
|
|
|
15921
15881
|
| {
|
|
15922
15882
|
type: 'insert.text'
|
|
15923
15883
|
text: string
|
|
15924
|
-
options?: TextInsertTextOptions
|
|
15925
15884
|
}
|
|
15926
15885
|
| ExternalSyntheticBehaviorEvent,
|
|
15927
15886
|
| {
|
|
@@ -16057,7 +16016,6 @@ declare const editorMachine: StateMachine<
|
|
|
16057
16016
|
| {
|
|
16058
16017
|
type: 'insert.text'
|
|
16059
16018
|
text: string
|
|
16060
|
-
options?: TextInsertTextOptions
|
|
16061
16019
|
}
|
|
16062
16020
|
| {
|
|
16063
16021
|
type: 'list item.add'
|
|
@@ -16423,7 +16381,6 @@ declare const editorMachine: StateMachine<
|
|
|
16423
16381
|
| {
|
|
16424
16382
|
type: 'insert.text'
|
|
16425
16383
|
text: string
|
|
16426
|
-
options?: TextInsertTextOptions
|
|
16427
16384
|
}
|
|
16428
16385
|
| {
|
|
16429
16386
|
type: 'list item.add'
|
|
@@ -16734,7 +16691,6 @@ declare const editorMachine: StateMachine<
|
|
|
16734
16691
|
| {
|
|
16735
16692
|
type: 'insert.text'
|
|
16736
16693
|
text: string
|
|
16737
|
-
options?: TextInsertTextOptions
|
|
16738
16694
|
}
|
|
16739
16695
|
| {
|
|
16740
16696
|
type: 'list item.add'
|
|
@@ -17100,7 +17056,6 @@ declare const editorMachine: StateMachine<
|
|
|
17100
17056
|
| {
|
|
17101
17057
|
type: 'insert.text'
|
|
17102
17058
|
text: string
|
|
17103
|
-
options?: TextInsertTextOptions
|
|
17104
17059
|
}
|
|
17105
17060
|
| {
|
|
17106
17061
|
type: 'list item.add'
|
|
@@ -17412,7 +17367,6 @@ declare const editorMachine: StateMachine<
|
|
|
17412
17367
|
| {
|
|
17413
17368
|
type: 'insert.text'
|
|
17414
17369
|
text: string
|
|
17415
|
-
options?: TextInsertTextOptions
|
|
17416
17370
|
}
|
|
17417
17371
|
| {
|
|
17418
17372
|
type: 'list item.add'
|
|
@@ -17778,7 +17732,6 @@ declare const editorMachine: StateMachine<
|
|
|
17778
17732
|
| {
|
|
17779
17733
|
type: 'insert.text'
|
|
17780
17734
|
text: string
|
|
17781
|
-
options?: TextInsertTextOptions
|
|
17782
17735
|
}
|
|
17783
17736
|
| {
|
|
17784
17737
|
type: 'list item.add'
|
|
@@ -18081,7 +18034,6 @@ declare const editorMachine: StateMachine<
|
|
|
18081
18034
|
| {
|
|
18082
18035
|
type: 'insert.text'
|
|
18083
18036
|
text: string
|
|
18084
|
-
options?: TextInsertTextOptions
|
|
18085
18037
|
}
|
|
18086
18038
|
| {
|
|
18087
18039
|
type: 'list item.add'
|
|
@@ -18447,7 +18399,6 @@ declare const editorMachine: StateMachine<
|
|
|
18447
18399
|
| {
|
|
18448
18400
|
type: 'insert.text'
|
|
18449
18401
|
text: string
|
|
18450
|
-
options?: TextInsertTextOptions
|
|
18451
18402
|
}
|
|
18452
18403
|
| {
|
|
18453
18404
|
type: 'list item.add'
|
|
@@ -18754,7 +18705,6 @@ declare const editorMachine: StateMachine<
|
|
|
18754
18705
|
| {
|
|
18755
18706
|
type: 'insert.text'
|
|
18756
18707
|
text: string
|
|
18757
|
-
options?: TextInsertTextOptions
|
|
18758
18708
|
}
|
|
18759
18709
|
| {
|
|
18760
18710
|
type: 'list item.add'
|
|
@@ -19120,7 +19070,6 @@ declare const editorMachine: StateMachine<
|
|
|
19120
19070
|
| {
|
|
19121
19071
|
type: 'insert.text'
|
|
19122
19072
|
text: string
|
|
19123
|
-
options?: TextInsertTextOptions
|
|
19124
19073
|
}
|
|
19125
19074
|
| {
|
|
19126
19075
|
type: 'list item.add'
|
|
@@ -19431,7 +19380,6 @@ declare const editorMachine: StateMachine<
|
|
|
19431
19380
|
| {
|
|
19432
19381
|
type: 'insert.text'
|
|
19433
19382
|
text: string
|
|
19434
|
-
options?: TextInsertTextOptions
|
|
19435
19383
|
}
|
|
19436
19384
|
| {
|
|
19437
19385
|
type: 'list item.add'
|
|
@@ -19797,7 +19745,6 @@ declare const editorMachine: StateMachine<
|
|
|
19797
19745
|
| {
|
|
19798
19746
|
type: 'insert.text'
|
|
19799
19747
|
text: string
|
|
19800
|
-
options?: TextInsertTextOptions
|
|
19801
19748
|
}
|
|
19802
19749
|
| {
|
|
19803
19750
|
type: 'list item.add'
|
|
@@ -20122,7 +20069,6 @@ declare const editorMachine: StateMachine<
|
|
|
20122
20069
|
| {
|
|
20123
20070
|
type: 'insert.text'
|
|
20124
20071
|
text: string
|
|
20125
|
-
options?: TextInsertTextOptions
|
|
20126
20072
|
}
|
|
20127
20073
|
| {
|
|
20128
20074
|
type: 'list item.add'
|
|
@@ -20519,7 +20465,6 @@ declare const editorMachine: StateMachine<
|
|
|
20519
20465
|
| {
|
|
20520
20466
|
type: 'insert.text'
|
|
20521
20467
|
text: string
|
|
20522
|
-
options?: TextInsertTextOptions
|
|
20523
20468
|
}
|
|
20524
20469
|
| {
|
|
20525
20470
|
type: 'list item.add'
|
|
@@ -20880,7 +20825,6 @@ declare const editorMachine: StateMachine<
|
|
|
20880
20825
|
| {
|
|
20881
20826
|
type: 'insert.text'
|
|
20882
20827
|
text: string
|
|
20883
|
-
options?: TextInsertTextOptions
|
|
20884
20828
|
}
|
|
20885
20829
|
| {
|
|
20886
20830
|
type: 'list item.add'
|
|
@@ -21258,7 +21202,6 @@ declare const editorMachine: StateMachine<
|
|
|
21258
21202
|
| {
|
|
21259
21203
|
type: 'insert.text'
|
|
21260
21204
|
text: string
|
|
21261
|
-
options?: TextInsertTextOptions
|
|
21262
21205
|
}
|
|
21263
21206
|
| {
|
|
21264
21207
|
type: 'list item.add'
|
|
@@ -21619,7 +21562,6 @@ declare const editorMachine: StateMachine<
|
|
|
21619
21562
|
| {
|
|
21620
21563
|
type: 'insert.text'
|
|
21621
21564
|
text: string
|
|
21622
|
-
options?: TextInsertTextOptions
|
|
21623
21565
|
}
|
|
21624
21566
|
| {
|
|
21625
21567
|
type: 'list item.add'
|
|
@@ -22440,6 +22382,9 @@ declare interface PortableTextSlateEditor extends ReactEditor {
|
|
|
22440
22382
|
redo: () => void
|
|
22441
22383
|
}
|
|
22442
22384
|
|
|
22385
|
+
/**************************************
|
|
22386
|
+
* Resolve behavior event
|
|
22387
|
+
**************************************/
|
|
22443
22388
|
declare type ResolveBehaviorEvent<
|
|
22444
22389
|
TBehaviorEventType extends
|
|
22445
22390
|
| '*'
|
|
@@ -22611,7 +22556,6 @@ declare type SyntheticBehaviorEvent =
|
|
|
22611
22556
|
| {
|
|
22612
22557
|
type: SyntheticBehaviorEventType<'insert', 'text'>
|
|
22613
22558
|
text: string
|
|
22614
|
-
options?: TextInsertTextOptions
|
|
22615
22559
|
}
|
|
22616
22560
|
| {
|
|
22617
22561
|
type: SyntheticBehaviorEventType<'list item', 'add'>
|
|
@@ -22707,9 +22651,6 @@ declare type SyntheticBehaviorEvent =
|
|
|
22707
22651
|
>
|
|
22708
22652
|
}
|
|
22709
22653
|
|
|
22710
|
-
/**************************************
|
|
22711
|
-
* Synthetic events
|
|
22712
|
-
**************************************/
|
|
22713
22654
|
declare type SyntheticBehaviorEventNamespace =
|
|
22714
22655
|
| 'annotation'
|
|
22715
22656
|
| 'block'
|
|
@@ -22727,6 +22668,9 @@ declare type SyntheticBehaviorEventNamespace =
|
|
|
22727
22668
|
| 'serialization'
|
|
22728
22669
|
| 'style'
|
|
22729
22670
|
|
|
22671
|
+
/**************************************
|
|
22672
|
+
* Synthetic events
|
|
22673
|
+
**************************************/
|
|
22730
22674
|
declare type SyntheticBehaviorEventType<
|
|
22731
22675
|
TNamespace extends SyntheticBehaviorEventNamespace,
|
|
22732
22676
|
TType extends string = '',
|