@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
|
@@ -24,7 +24,6 @@ import type {Descendant, Operation} from 'slate'
|
|
|
24
24
|
import {TextUnit} from 'slate'
|
|
25
25
|
import type {DOMNode} from 'slate-dom'
|
|
26
26
|
import type {ReactEditor} from 'slate-react'
|
|
27
|
-
import {TextInsertTextOptions} from 'slate/dist/interfaces/transforms/text'
|
|
28
27
|
import {
|
|
29
28
|
ActionArgs,
|
|
30
29
|
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'
|
|
@@ -571,7 +570,6 @@ declare const editorMachine: StateMachine<
|
|
|
571
570
|
| {
|
|
572
571
|
type: 'insert.text'
|
|
573
572
|
text: string
|
|
574
|
-
options?: TextInsertTextOptions
|
|
575
573
|
}
|
|
576
574
|
| {
|
|
577
575
|
type: 'list item.add'
|
|
@@ -1016,7 +1014,6 @@ declare const editorMachine: StateMachine<
|
|
|
1016
1014
|
| {
|
|
1017
1015
|
type: 'insert.text'
|
|
1018
1016
|
text: string
|
|
1019
|
-
options?: TextInsertTextOptions
|
|
1020
1017
|
}
|
|
1021
1018
|
| {
|
|
1022
1019
|
type: 'list item.add'
|
|
@@ -1350,7 +1347,6 @@ declare const editorMachine: StateMachine<
|
|
|
1350
1347
|
| {
|
|
1351
1348
|
type: 'insert.text'
|
|
1352
1349
|
text: string
|
|
1353
|
-
options?: TextInsertTextOptions
|
|
1354
1350
|
}
|
|
1355
1351
|
| {
|
|
1356
1352
|
type: 'list item.add'
|
|
@@ -1718,7 +1714,6 @@ declare const editorMachine: StateMachine<
|
|
|
1718
1714
|
| {
|
|
1719
1715
|
type: 'insert.text'
|
|
1720
1716
|
text: string
|
|
1721
|
-
options?: TextInsertTextOptions
|
|
1722
1717
|
}
|
|
1723
1718
|
| {
|
|
1724
1719
|
type: 'list item.add'
|
|
@@ -2114,7 +2109,6 @@ declare const editorMachine: StateMachine<
|
|
|
2114
2109
|
| {
|
|
2115
2110
|
type: 'insert.text'
|
|
2116
2111
|
text: string
|
|
2117
|
-
options?: TextInsertTextOptions
|
|
2118
2112
|
}
|
|
2119
2113
|
| {
|
|
2120
2114
|
type: 'list item.add'
|
|
@@ -2480,7 +2474,6 @@ declare const editorMachine: StateMachine<
|
|
|
2480
2474
|
| {
|
|
2481
2475
|
type: 'insert.text'
|
|
2482
2476
|
text: string
|
|
2483
|
-
options?: TextInsertTextOptions
|
|
2484
2477
|
}
|
|
2485
2478
|
| {
|
|
2486
2479
|
type: 'list item.add'
|
|
@@ -2782,7 +2775,6 @@ declare const editorMachine: StateMachine<
|
|
|
2782
2775
|
| {
|
|
2783
2776
|
type: 'insert.text'
|
|
2784
2777
|
text: string
|
|
2785
|
-
options?: TextInsertTextOptions
|
|
2786
2778
|
}
|
|
2787
2779
|
| {
|
|
2788
2780
|
type: 'list item.add'
|
|
@@ -3148,7 +3140,6 @@ declare const editorMachine: StateMachine<
|
|
|
3148
3140
|
| {
|
|
3149
3141
|
type: 'insert.text'
|
|
3150
3142
|
text: string
|
|
3151
|
-
options?: TextInsertTextOptions
|
|
3152
3143
|
}
|
|
3153
3144
|
| {
|
|
3154
3145
|
type: 'list item.add'
|
|
@@ -3453,7 +3444,6 @@ declare const editorMachine: StateMachine<
|
|
|
3453
3444
|
| {
|
|
3454
3445
|
type: 'insert.text'
|
|
3455
3446
|
text: string
|
|
3456
|
-
options?: TextInsertTextOptions
|
|
3457
3447
|
}
|
|
3458
3448
|
| {
|
|
3459
3449
|
type: 'list item.add'
|
|
@@ -3819,7 +3809,6 @@ declare const editorMachine: StateMachine<
|
|
|
3819
3809
|
| {
|
|
3820
3810
|
type: 'insert.text'
|
|
3821
3811
|
text: string
|
|
3822
|
-
options?: TextInsertTextOptions
|
|
3823
3812
|
}
|
|
3824
3813
|
| {
|
|
3825
3814
|
type: 'list item.add'
|
|
@@ -4123,7 +4112,6 @@ declare const editorMachine: StateMachine<
|
|
|
4123
4112
|
| {
|
|
4124
4113
|
type: 'insert.text'
|
|
4125
4114
|
text: string
|
|
4126
|
-
options?: TextInsertTextOptions
|
|
4127
4115
|
}
|
|
4128
4116
|
| {
|
|
4129
4117
|
type: 'list item.add'
|
|
@@ -4489,7 +4477,6 @@ declare const editorMachine: StateMachine<
|
|
|
4489
4477
|
| {
|
|
4490
4478
|
type: 'insert.text'
|
|
4491
4479
|
text: string
|
|
4492
|
-
options?: TextInsertTextOptions
|
|
4493
4480
|
}
|
|
4494
4481
|
| {
|
|
4495
4482
|
type: 'list item.add'
|
|
@@ -4792,7 +4779,6 @@ declare const editorMachine: StateMachine<
|
|
|
4792
4779
|
| {
|
|
4793
4780
|
type: 'insert.text'
|
|
4794
4781
|
text: string
|
|
4795
|
-
options?: TextInsertTextOptions
|
|
4796
4782
|
}
|
|
4797
4783
|
| {
|
|
4798
4784
|
type: 'list item.add'
|
|
@@ -5158,7 +5144,6 @@ declare const editorMachine: StateMachine<
|
|
|
5158
5144
|
| {
|
|
5159
5145
|
type: 'insert.text'
|
|
5160
5146
|
text: string
|
|
5161
|
-
options?: TextInsertTextOptions
|
|
5162
5147
|
}
|
|
5163
5148
|
| {
|
|
5164
5149
|
type: 'list item.add'
|
|
@@ -5462,7 +5447,6 @@ declare const editorMachine: StateMachine<
|
|
|
5462
5447
|
| {
|
|
5463
5448
|
type: 'insert.text'
|
|
5464
5449
|
text: string
|
|
5465
|
-
options?: TextInsertTextOptions
|
|
5466
5450
|
}
|
|
5467
5451
|
| {
|
|
5468
5452
|
type: 'list item.add'
|
|
@@ -5850,7 +5834,6 @@ declare const editorMachine: StateMachine<
|
|
|
5850
5834
|
| {
|
|
5851
5835
|
type: 'insert.text'
|
|
5852
5836
|
text: string
|
|
5853
|
-
options?: TextInsertTextOptions
|
|
5854
5837
|
}
|
|
5855
5838
|
| {
|
|
5856
5839
|
type: 'list item.add'
|
|
@@ -6216,7 +6199,6 @@ declare const editorMachine: StateMachine<
|
|
|
6216
6199
|
| {
|
|
6217
6200
|
type: 'insert.text'
|
|
6218
6201
|
text: string
|
|
6219
|
-
options?: TextInsertTextOptions
|
|
6220
6202
|
}
|
|
6221
6203
|
| {
|
|
6222
6204
|
type: 'list item.add'
|
|
@@ -6520,7 +6502,6 @@ declare const editorMachine: StateMachine<
|
|
|
6520
6502
|
| {
|
|
6521
6503
|
type: 'insert.text'
|
|
6522
6504
|
text: string
|
|
6523
|
-
options?: TextInsertTextOptions
|
|
6524
6505
|
}
|
|
6525
6506
|
| {
|
|
6526
6507
|
type: 'list item.add'
|
|
@@ -6886,7 +6867,6 @@ declare const editorMachine: StateMachine<
|
|
|
6886
6867
|
| {
|
|
6887
6868
|
type: 'insert.text'
|
|
6888
6869
|
text: string
|
|
6889
|
-
options?: TextInsertTextOptions
|
|
6890
6870
|
}
|
|
6891
6871
|
| {
|
|
6892
6872
|
type: 'list item.add'
|
|
@@ -7188,7 +7168,6 @@ declare const editorMachine: StateMachine<
|
|
|
7188
7168
|
| {
|
|
7189
7169
|
type: 'insert.text'
|
|
7190
7170
|
text: string
|
|
7191
|
-
options?: TextInsertTextOptions
|
|
7192
7171
|
}
|
|
7193
7172
|
| {
|
|
7194
7173
|
type: 'list item.add'
|
|
@@ -7554,7 +7533,6 @@ declare const editorMachine: StateMachine<
|
|
|
7554
7533
|
| {
|
|
7555
7534
|
type: 'insert.text'
|
|
7556
7535
|
text: string
|
|
7557
|
-
options?: TextInsertTextOptions
|
|
7558
7536
|
}
|
|
7559
7537
|
| {
|
|
7560
7538
|
type: 'list item.add'
|
|
@@ -7857,7 +7835,6 @@ declare const editorMachine: StateMachine<
|
|
|
7857
7835
|
| {
|
|
7858
7836
|
type: 'insert.text'
|
|
7859
7837
|
text: string
|
|
7860
|
-
options?: TextInsertTextOptions
|
|
7861
7838
|
}
|
|
7862
7839
|
| {
|
|
7863
7840
|
type: 'list item.add'
|
|
@@ -8223,7 +8200,6 @@ declare const editorMachine: StateMachine<
|
|
|
8223
8200
|
| {
|
|
8224
8201
|
type: 'insert.text'
|
|
8225
8202
|
text: string
|
|
8226
|
-
options?: TextInsertTextOptions
|
|
8227
8203
|
}
|
|
8228
8204
|
| {
|
|
8229
8205
|
type: 'list item.add'
|
|
@@ -8529,7 +8505,6 @@ declare const editorMachine: StateMachine<
|
|
|
8529
8505
|
| {
|
|
8530
8506
|
type: 'insert.text'
|
|
8531
8507
|
text: string
|
|
8532
|
-
options?: TextInsertTextOptions
|
|
8533
8508
|
}
|
|
8534
8509
|
| {
|
|
8535
8510
|
type: 'list item.add'
|
|
@@ -8895,7 +8870,6 @@ declare const editorMachine: StateMachine<
|
|
|
8895
8870
|
| {
|
|
8896
8871
|
type: 'insert.text'
|
|
8897
8872
|
text: string
|
|
8898
|
-
options?: TextInsertTextOptions
|
|
8899
8873
|
}
|
|
8900
8874
|
| {
|
|
8901
8875
|
type: 'list item.add'
|
|
@@ -9201,7 +9175,6 @@ declare const editorMachine: StateMachine<
|
|
|
9201
9175
|
| {
|
|
9202
9176
|
type: 'insert.text'
|
|
9203
9177
|
text: string
|
|
9204
|
-
options?: TextInsertTextOptions
|
|
9205
9178
|
}
|
|
9206
9179
|
| {
|
|
9207
9180
|
type: 'list item.add'
|
|
@@ -9594,7 +9567,6 @@ declare const editorMachine: StateMachine<
|
|
|
9594
9567
|
| {
|
|
9595
9568
|
type: 'insert.text'
|
|
9596
9569
|
text: string
|
|
9597
|
-
options?: TextInsertTextOptions
|
|
9598
9570
|
}
|
|
9599
9571
|
| {
|
|
9600
9572
|
type: 'list item.add'
|
|
@@ -9984,7 +9956,6 @@ declare const editorMachine: StateMachine<
|
|
|
9984
9956
|
| {
|
|
9985
9957
|
type: 'insert.text'
|
|
9986
9958
|
text: string
|
|
9987
|
-
options?: TextInsertTextOptions
|
|
9988
9959
|
}
|
|
9989
9960
|
| {
|
|
9990
9961
|
type: 'list item.add'
|
|
@@ -10543,7 +10514,6 @@ declare const editorMachine: StateMachine<
|
|
|
10543
10514
|
| {
|
|
10544
10515
|
type: 'insert.text'
|
|
10545
10516
|
text: string
|
|
10546
|
-
options?: TextInsertTextOptions
|
|
10547
10517
|
}
|
|
10548
10518
|
| {
|
|
10549
10519
|
type: 'list item.add'
|
|
@@ -10909,7 +10879,6 @@ declare const editorMachine: StateMachine<
|
|
|
10909
10879
|
| {
|
|
10910
10880
|
type: 'insert.text'
|
|
10911
10881
|
text: string
|
|
10912
|
-
options?: TextInsertTextOptions
|
|
10913
10882
|
}
|
|
10914
10883
|
| {
|
|
10915
10884
|
type: 'list item.add'
|
|
@@ -11218,7 +11187,6 @@ declare const editorMachine: StateMachine<
|
|
|
11218
11187
|
| {
|
|
11219
11188
|
type: 'insert.text'
|
|
11220
11189
|
text: string
|
|
11221
|
-
options?: TextInsertTextOptions
|
|
11222
11190
|
}
|
|
11223
11191
|
| {
|
|
11224
11192
|
type: 'list item.add'
|
|
@@ -11584,7 +11552,6 @@ declare const editorMachine: StateMachine<
|
|
|
11584
11552
|
| {
|
|
11585
11553
|
type: 'insert.text'
|
|
11586
11554
|
text: string
|
|
11587
|
-
options?: TextInsertTextOptions
|
|
11588
11555
|
}
|
|
11589
11556
|
| {
|
|
11590
11557
|
type: 'list item.add'
|
|
@@ -11886,7 +11853,6 @@ declare const editorMachine: StateMachine<
|
|
|
11886
11853
|
| {
|
|
11887
11854
|
type: 'insert.text'
|
|
11888
11855
|
text: string
|
|
11889
|
-
options?: TextInsertTextOptions
|
|
11890
11856
|
}
|
|
11891
11857
|
| {
|
|
11892
11858
|
type: 'list item.add'
|
|
@@ -12252,7 +12218,6 @@ declare const editorMachine: StateMachine<
|
|
|
12252
12218
|
| {
|
|
12253
12219
|
type: 'insert.text'
|
|
12254
12220
|
text: string
|
|
12255
|
-
options?: TextInsertTextOptions
|
|
12256
12221
|
}
|
|
12257
12222
|
| {
|
|
12258
12223
|
type: 'list item.add'
|
|
@@ -12554,7 +12519,6 @@ declare const editorMachine: StateMachine<
|
|
|
12554
12519
|
| {
|
|
12555
12520
|
type: 'insert.text'
|
|
12556
12521
|
text: string
|
|
12557
|
-
options?: TextInsertTextOptions
|
|
12558
12522
|
}
|
|
12559
12523
|
| {
|
|
12560
12524
|
type: 'list item.add'
|
|
@@ -12920,7 +12884,6 @@ declare const editorMachine: StateMachine<
|
|
|
12920
12884
|
| {
|
|
12921
12885
|
type: 'insert.text'
|
|
12922
12886
|
text: string
|
|
12923
|
-
options?: TextInsertTextOptions
|
|
12924
12887
|
}
|
|
12925
12888
|
| {
|
|
12926
12889
|
type: 'list item.add'
|
|
@@ -13239,7 +13202,6 @@ declare const editorMachine: StateMachine<
|
|
|
13239
13202
|
| {
|
|
13240
13203
|
type: 'insert.text'
|
|
13241
13204
|
text: string
|
|
13242
|
-
options?: TextInsertTextOptions
|
|
13243
13205
|
}
|
|
13244
13206
|
| {
|
|
13245
13207
|
type: 'list item.add'
|
|
@@ -13605,7 +13567,6 @@ declare const editorMachine: StateMachine<
|
|
|
13605
13567
|
| {
|
|
13606
13568
|
type: 'insert.text'
|
|
13607
13569
|
text: string
|
|
13608
|
-
options?: TextInsertTextOptions
|
|
13609
13570
|
}
|
|
13610
13571
|
| {
|
|
13611
13572
|
type: 'list item.add'
|
|
@@ -13921,7 +13882,6 @@ declare const editorMachine: StateMachine<
|
|
|
13921
13882
|
| {
|
|
13922
13883
|
type: 'insert.text'
|
|
13923
13884
|
text: string
|
|
13924
|
-
options?: TextInsertTextOptions
|
|
13925
13885
|
}
|
|
13926
13886
|
| {
|
|
13927
13887
|
type: 'list item.add'
|
|
@@ -14287,7 +14247,6 @@ declare const editorMachine: StateMachine<
|
|
|
14287
14247
|
| {
|
|
14288
14248
|
type: 'insert.text'
|
|
14289
14249
|
text: string
|
|
14290
|
-
options?: TextInsertTextOptions
|
|
14291
14250
|
}
|
|
14292
14251
|
| {
|
|
14293
14252
|
type: 'list item.add'
|
|
@@ -14589,7 +14548,6 @@ declare const editorMachine: StateMachine<
|
|
|
14589
14548
|
| {
|
|
14590
14549
|
type: 'insert.text'
|
|
14591
14550
|
text: string
|
|
14592
|
-
options?: TextInsertTextOptions
|
|
14593
14551
|
}
|
|
14594
14552
|
| {
|
|
14595
14553
|
type: 'list item.add'
|
|
@@ -14955,7 +14913,6 @@ declare const editorMachine: StateMachine<
|
|
|
14955
14913
|
| {
|
|
14956
14914
|
type: 'insert.text'
|
|
14957
14915
|
text: string
|
|
14958
|
-
options?: TextInsertTextOptions
|
|
14959
14916
|
}
|
|
14960
14917
|
| {
|
|
14961
14918
|
type: 'list item.add'
|
|
@@ -15260,7 +15217,6 @@ declare const editorMachine: StateMachine<
|
|
|
15260
15217
|
| {
|
|
15261
15218
|
type: 'insert.text'
|
|
15262
15219
|
text: string
|
|
15263
|
-
options?: TextInsertTextOptions
|
|
15264
15220
|
}
|
|
15265
15221
|
| {
|
|
15266
15222
|
type: 'list item.add'
|
|
@@ -15626,7 +15582,6 @@ declare const editorMachine: StateMachine<
|
|
|
15626
15582
|
| {
|
|
15627
15583
|
type: 'insert.text'
|
|
15628
15584
|
text: string
|
|
15629
|
-
options?: TextInsertTextOptions
|
|
15630
15585
|
}
|
|
15631
15586
|
| {
|
|
15632
15587
|
type: 'list item.add'
|
|
@@ -15832,7 +15787,6 @@ declare const editorMachine: StateMachine<
|
|
|
15832
15787
|
| {
|
|
15833
15788
|
type: 'insert.text'
|
|
15834
15789
|
text: string
|
|
15835
|
-
options?: TextInsertTextOptions
|
|
15836
15790
|
}
|
|
15837
15791
|
| ExternalSyntheticBehaviorEvent,
|
|
15838
15792
|
| {
|
|
@@ -15968,7 +15922,6 @@ declare const editorMachine: StateMachine<
|
|
|
15968
15922
|
| {
|
|
15969
15923
|
type: 'insert.text'
|
|
15970
15924
|
text: string
|
|
15971
|
-
options?: TextInsertTextOptions
|
|
15972
15925
|
}
|
|
15973
15926
|
| {
|
|
15974
15927
|
type: 'list item.add'
|
|
@@ -16334,7 +16287,6 @@ declare const editorMachine: StateMachine<
|
|
|
16334
16287
|
| {
|
|
16335
16288
|
type: 'insert.text'
|
|
16336
16289
|
text: string
|
|
16337
|
-
options?: TextInsertTextOptions
|
|
16338
16290
|
}
|
|
16339
16291
|
| {
|
|
16340
16292
|
type: 'list item.add'
|
|
@@ -16645,7 +16597,6 @@ declare const editorMachine: StateMachine<
|
|
|
16645
16597
|
| {
|
|
16646
16598
|
type: 'insert.text'
|
|
16647
16599
|
text: string
|
|
16648
|
-
options?: TextInsertTextOptions
|
|
16649
16600
|
}
|
|
16650
16601
|
| {
|
|
16651
16602
|
type: 'list item.add'
|
|
@@ -17011,7 +16962,6 @@ declare const editorMachine: StateMachine<
|
|
|
17011
16962
|
| {
|
|
17012
16963
|
type: 'insert.text'
|
|
17013
16964
|
text: string
|
|
17014
|
-
options?: TextInsertTextOptions
|
|
17015
16965
|
}
|
|
17016
16966
|
| {
|
|
17017
16967
|
type: 'list item.add'
|
|
@@ -17323,7 +17273,6 @@ declare const editorMachine: StateMachine<
|
|
|
17323
17273
|
| {
|
|
17324
17274
|
type: 'insert.text'
|
|
17325
17275
|
text: string
|
|
17326
|
-
options?: TextInsertTextOptions
|
|
17327
17276
|
}
|
|
17328
17277
|
| {
|
|
17329
17278
|
type: 'list item.add'
|
|
@@ -17689,7 +17638,6 @@ declare const editorMachine: StateMachine<
|
|
|
17689
17638
|
| {
|
|
17690
17639
|
type: 'insert.text'
|
|
17691
17640
|
text: string
|
|
17692
|
-
options?: TextInsertTextOptions
|
|
17693
17641
|
}
|
|
17694
17642
|
| {
|
|
17695
17643
|
type: 'list item.add'
|
|
@@ -17992,7 +17940,6 @@ declare const editorMachine: StateMachine<
|
|
|
17992
17940
|
| {
|
|
17993
17941
|
type: 'insert.text'
|
|
17994
17942
|
text: string
|
|
17995
|
-
options?: TextInsertTextOptions
|
|
17996
17943
|
}
|
|
17997
17944
|
| {
|
|
17998
17945
|
type: 'list item.add'
|
|
@@ -18358,7 +18305,6 @@ declare const editorMachine: StateMachine<
|
|
|
18358
18305
|
| {
|
|
18359
18306
|
type: 'insert.text'
|
|
18360
18307
|
text: string
|
|
18361
|
-
options?: TextInsertTextOptions
|
|
18362
18308
|
}
|
|
18363
18309
|
| {
|
|
18364
18310
|
type: 'list item.add'
|
|
@@ -18665,7 +18611,6 @@ declare const editorMachine: StateMachine<
|
|
|
18665
18611
|
| {
|
|
18666
18612
|
type: 'insert.text'
|
|
18667
18613
|
text: string
|
|
18668
|
-
options?: TextInsertTextOptions
|
|
18669
18614
|
}
|
|
18670
18615
|
| {
|
|
18671
18616
|
type: 'list item.add'
|
|
@@ -19031,7 +18976,6 @@ declare const editorMachine: StateMachine<
|
|
|
19031
18976
|
| {
|
|
19032
18977
|
type: 'insert.text'
|
|
19033
18978
|
text: string
|
|
19034
|
-
options?: TextInsertTextOptions
|
|
19035
18979
|
}
|
|
19036
18980
|
| {
|
|
19037
18981
|
type: 'list item.add'
|
|
@@ -19342,7 +19286,6 @@ declare const editorMachine: StateMachine<
|
|
|
19342
19286
|
| {
|
|
19343
19287
|
type: 'insert.text'
|
|
19344
19288
|
text: string
|
|
19345
|
-
options?: TextInsertTextOptions
|
|
19346
19289
|
}
|
|
19347
19290
|
| {
|
|
19348
19291
|
type: 'list item.add'
|
|
@@ -19708,7 +19651,6 @@ declare const editorMachine: StateMachine<
|
|
|
19708
19651
|
| {
|
|
19709
19652
|
type: 'insert.text'
|
|
19710
19653
|
text: string
|
|
19711
|
-
options?: TextInsertTextOptions
|
|
19712
19654
|
}
|
|
19713
19655
|
| {
|
|
19714
19656
|
type: 'list item.add'
|
|
@@ -20033,7 +19975,6 @@ declare const editorMachine: StateMachine<
|
|
|
20033
19975
|
| {
|
|
20034
19976
|
type: 'insert.text'
|
|
20035
19977
|
text: string
|
|
20036
|
-
options?: TextInsertTextOptions
|
|
20037
19978
|
}
|
|
20038
19979
|
| {
|
|
20039
19980
|
type: 'list item.add'
|
|
@@ -20430,7 +20371,6 @@ declare const editorMachine: StateMachine<
|
|
|
20430
20371
|
| {
|
|
20431
20372
|
type: 'insert.text'
|
|
20432
20373
|
text: string
|
|
20433
|
-
options?: TextInsertTextOptions
|
|
20434
20374
|
}
|
|
20435
20375
|
| {
|
|
20436
20376
|
type: 'list item.add'
|
|
@@ -20791,7 +20731,6 @@ declare const editorMachine: StateMachine<
|
|
|
20791
20731
|
| {
|
|
20792
20732
|
type: 'insert.text'
|
|
20793
20733
|
text: string
|
|
20794
|
-
options?: TextInsertTextOptions
|
|
20795
20734
|
}
|
|
20796
20735
|
| {
|
|
20797
20736
|
type: 'list item.add'
|
|
@@ -21169,7 +21108,6 @@ declare const editorMachine: StateMachine<
|
|
|
21169
21108
|
| {
|
|
21170
21109
|
type: 'insert.text'
|
|
21171
21110
|
text: string
|
|
21172
|
-
options?: TextInsertTextOptions
|
|
21173
21111
|
}
|
|
21174
21112
|
| {
|
|
21175
21113
|
type: 'list item.add'
|
|
@@ -21530,7 +21468,6 @@ declare const editorMachine: StateMachine<
|
|
|
21530
21468
|
| {
|
|
21531
21469
|
type: 'insert.text'
|
|
21532
21470
|
text: string
|
|
21533
|
-
options?: TextInsertTextOptions
|
|
21534
21471
|
}
|
|
21535
21472
|
| {
|
|
21536
21473
|
type: 'list item.add'
|
|
@@ -22551,6 +22488,9 @@ declare interface PortableTextSlateEditor extends ReactEditor {
|
|
|
22551
22488
|
redo: () => void
|
|
22552
22489
|
}
|
|
22553
22490
|
|
|
22491
|
+
/**************************************
|
|
22492
|
+
* Resolve behavior event
|
|
22493
|
+
**************************************/
|
|
22554
22494
|
declare type ResolveBehaviorEvent<
|
|
22555
22495
|
TBehaviorEventType extends
|
|
22556
22496
|
| '*'
|
|
@@ -22722,7 +22662,6 @@ declare type SyntheticBehaviorEvent =
|
|
|
22722
22662
|
| {
|
|
22723
22663
|
type: SyntheticBehaviorEventType<'insert', 'text'>
|
|
22724
22664
|
text: string
|
|
22725
|
-
options?: TextInsertTextOptions
|
|
22726
22665
|
}
|
|
22727
22666
|
| {
|
|
22728
22667
|
type: SyntheticBehaviorEventType<'list item', 'add'>
|
|
@@ -22818,9 +22757,6 @@ declare type SyntheticBehaviorEvent =
|
|
|
22818
22757
|
>
|
|
22819
22758
|
}
|
|
22820
22759
|
|
|
22821
|
-
/**************************************
|
|
22822
|
-
* Synthetic events
|
|
22823
|
-
**************************************/
|
|
22824
22760
|
declare type SyntheticBehaviorEventNamespace =
|
|
22825
22761
|
| 'annotation'
|
|
22826
22762
|
| 'block'
|
|
@@ -22838,6 +22774,9 @@ declare type SyntheticBehaviorEventNamespace =
|
|
|
22838
22774
|
| 'serialization'
|
|
22839
22775
|
| 'style'
|
|
22840
22776
|
|
|
22777
|
+
/**************************************
|
|
22778
|
+
* Synthetic events
|
|
22779
|
+
**************************************/
|
|
22841
22780
|
declare type SyntheticBehaviorEventType<
|
|
22842
22781
|
TNamespace extends SyntheticBehaviorEventNamespace,
|
|
22843
22782
|
TType extends string = '',
|