@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/behaviors/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import type {Descendant, Operation} from 'slate'
|
|
|
21
21
|
import {TextUnit} from 'slate'
|
|
22
22
|
import type {DOMNode} from 'slate-dom'
|
|
23
23
|
import type {ReactEditor} from 'slate-react'
|
|
24
|
-
import {TextInsertTextOptions} from 'slate/dist/interfaces/transforms/text'
|
|
25
24
|
import {
|
|
26
25
|
ActionArgs,
|
|
27
26
|
ActionFunction,
|
|
@@ -53,19 +52,19 @@ import {
|
|
|
53
52
|
import {
|
|
54
53
|
InputBehaviorEvent as InputBehaviorEvent_3,
|
|
55
54
|
InsertPlacement as InsertPlacement_3,
|
|
56
|
-
} from '../behaviors/behavior.types'
|
|
55
|
+
} from '../behaviors/behavior.types.event'
|
|
57
56
|
import {EventPosition} from '../internal-utils/event-position'
|
|
58
57
|
import {MIMEType} from '../internal-utils/mime-type'
|
|
59
58
|
import {PickFromUnion} from '../type-utils'
|
|
60
59
|
import {BlockWithOptionalKey} from '../types/block-with-optional-key'
|
|
60
|
+
import {Behavior as Behavior_2} from './behavior.types.behavior'
|
|
61
61
|
import {
|
|
62
|
-
Behavior as Behavior_2,
|
|
63
62
|
CustomBehaviorEvent as CustomBehaviorEvent_2,
|
|
64
63
|
InputBehaviorEvent,
|
|
65
64
|
InsertPlacement,
|
|
66
65
|
MouseBehaviorEvent,
|
|
67
66
|
NativeBehaviorEvent as NativeBehaviorEvent_2,
|
|
68
|
-
} from './behavior.types'
|
|
67
|
+
} from './behavior.types.event'
|
|
69
68
|
|
|
70
69
|
/**
|
|
71
70
|
* @beta
|
|
@@ -262,12 +261,12 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
262
261
|
| 'blur'
|
|
263
262
|
| 'focus'
|
|
264
263
|
| 'style.*'
|
|
264
|
+
| 'block.*'
|
|
265
265
|
| 'delete.*'
|
|
266
266
|
| 'move.*'
|
|
267
267
|
| 'select.*'
|
|
268
268
|
| 'history.*'
|
|
269
269
|
| 'annotation.*'
|
|
270
|
-
| 'block.*'
|
|
271
270
|
| 'blur.*'
|
|
272
271
|
| 'data transfer.*'
|
|
273
272
|
| 'decorator.*'
|
|
@@ -461,7 +460,6 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
461
460
|
| {
|
|
462
461
|
type: 'insert.text'
|
|
463
462
|
text: string
|
|
464
|
-
options?: TextInsertTextOptions
|
|
465
463
|
}
|
|
466
464
|
| {
|
|
467
465
|
type: 'list item.add'
|
|
@@ -681,12 +679,12 @@ export declare function createCodeEditorBehaviors(
|
|
|
681
679
|
| 'blur'
|
|
682
680
|
| 'focus'
|
|
683
681
|
| 'style.*'
|
|
682
|
+
| 'block.*'
|
|
684
683
|
| 'delete.*'
|
|
685
684
|
| 'move.*'
|
|
686
685
|
| 'select.*'
|
|
687
686
|
| 'history.*'
|
|
688
687
|
| 'annotation.*'
|
|
689
|
-
| 'block.*'
|
|
690
688
|
| 'blur.*'
|
|
691
689
|
| 'data transfer.*'
|
|
692
690
|
| 'decorator.*'
|
|
@@ -880,7 +878,6 @@ export declare function createCodeEditorBehaviors(
|
|
|
880
878
|
| {
|
|
881
879
|
type: 'insert.text'
|
|
882
880
|
text: string
|
|
883
|
-
options?: TextInsertTextOptions
|
|
884
881
|
}
|
|
885
882
|
| {
|
|
886
883
|
type: 'list item.add'
|
|
@@ -1100,12 +1097,12 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1100
1097
|
| 'blur'
|
|
1101
1098
|
| 'focus'
|
|
1102
1099
|
| 'style.*'
|
|
1100
|
+
| 'block.*'
|
|
1103
1101
|
| 'delete.*'
|
|
1104
1102
|
| 'move.*'
|
|
1105
1103
|
| 'select.*'
|
|
1106
1104
|
| 'history.*'
|
|
1107
1105
|
| 'annotation.*'
|
|
1108
|
-
| 'block.*'
|
|
1109
1106
|
| 'blur.*'
|
|
1110
1107
|
| 'data transfer.*'
|
|
1111
1108
|
| 'decorator.*'
|
|
@@ -1299,7 +1296,6 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
1299
1296
|
| {
|
|
1300
1297
|
type: 'insert.text'
|
|
1301
1298
|
text: string
|
|
1302
|
-
options?: TextInsertTextOptions
|
|
1303
1299
|
}
|
|
1304
1300
|
| {
|
|
1305
1301
|
type: 'list item.add'
|
|
@@ -1519,12 +1515,12 @@ export declare function createLinkBehaviors(
|
|
|
1519
1515
|
| 'blur'
|
|
1520
1516
|
| 'focus'
|
|
1521
1517
|
| 'style.*'
|
|
1518
|
+
| 'block.*'
|
|
1522
1519
|
| 'delete.*'
|
|
1523
1520
|
| 'move.*'
|
|
1524
1521
|
| 'select.*'
|
|
1525
1522
|
| 'history.*'
|
|
1526
1523
|
| 'annotation.*'
|
|
1527
|
-
| 'block.*'
|
|
1528
1524
|
| 'blur.*'
|
|
1529
1525
|
| 'data transfer.*'
|
|
1530
1526
|
| 'decorator.*'
|
|
@@ -1718,7 +1714,6 @@ export declare function createLinkBehaviors(
|
|
|
1718
1714
|
| {
|
|
1719
1715
|
type: 'insert.text'
|
|
1720
1716
|
text: string
|
|
1721
|
-
options?: TextInsertTextOptions
|
|
1722
1717
|
}
|
|
1723
1718
|
| {
|
|
1724
1719
|
type: 'list item.add'
|
|
@@ -1980,12 +1975,12 @@ export declare function createMarkdownBehaviors(
|
|
|
1980
1975
|
| 'blur'
|
|
1981
1976
|
| 'focus'
|
|
1982
1977
|
| 'style.*'
|
|
1978
|
+
| 'block.*'
|
|
1983
1979
|
| 'delete.*'
|
|
1984
1980
|
| 'move.*'
|
|
1985
1981
|
| 'select.*'
|
|
1986
1982
|
| 'history.*'
|
|
1987
1983
|
| 'annotation.*'
|
|
1988
|
-
| 'block.*'
|
|
1989
1984
|
| 'blur.*'
|
|
1990
1985
|
| 'data transfer.*'
|
|
1991
1986
|
| 'decorator.*'
|
|
@@ -2179,7 +2174,6 @@ export declare function createMarkdownBehaviors(
|
|
|
2179
2174
|
| {
|
|
2180
2175
|
type: 'insert.text'
|
|
2181
2176
|
text: string
|
|
2182
|
-
options?: TextInsertTextOptions
|
|
2183
2177
|
}
|
|
2184
2178
|
| {
|
|
2185
2179
|
type: 'list item.add'
|
|
@@ -2410,15 +2404,11 @@ declare type CustomBehaviorEventType<
|
|
|
2410
2404
|
* ```tsx
|
|
2411
2405
|
* const noLowerCaseA = defineBehavior({
|
|
2412
2406
|
* on: 'insert.text',
|
|
2413
|
-
* guard: ({event,
|
|
2414
|
-
* actions: [({event,
|
|
2407
|
+
* guard: ({event, snapshot}) => event.text === 'a',
|
|
2408
|
+
* actions: [({event, snapshot}) => [{type: 'insert.text', text: 'A'}]],
|
|
2415
2409
|
* })
|
|
2416
2410
|
* ```
|
|
2417
2411
|
*
|
|
2418
|
-
*
|
|
2419
|
-
*
|
|
2420
|
-
*
|
|
2421
|
-
*
|
|
2422
2412
|
*/
|
|
2423
2413
|
export declare function defineBehavior<
|
|
2424
2414
|
TPayload extends Record<string, unknown>,
|
|
@@ -2754,7 +2744,6 @@ declare const editorMachine: StateMachine<
|
|
|
2754
2744
|
| {
|
|
2755
2745
|
type: 'insert.text'
|
|
2756
2746
|
text: string
|
|
2757
|
-
options?: TextInsertTextOptions
|
|
2758
2747
|
}
|
|
2759
2748
|
| {
|
|
2760
2749
|
type: 'list item.add'
|
|
@@ -3199,7 +3188,6 @@ declare const editorMachine: StateMachine<
|
|
|
3199
3188
|
| {
|
|
3200
3189
|
type: 'insert.text'
|
|
3201
3190
|
text: string
|
|
3202
|
-
options?: TextInsertTextOptions
|
|
3203
3191
|
}
|
|
3204
3192
|
| {
|
|
3205
3193
|
type: 'list item.add'
|
|
@@ -3533,7 +3521,6 @@ declare const editorMachine: StateMachine<
|
|
|
3533
3521
|
| {
|
|
3534
3522
|
type: 'insert.text'
|
|
3535
3523
|
text: string
|
|
3536
|
-
options?: TextInsertTextOptions
|
|
3537
3524
|
}
|
|
3538
3525
|
| {
|
|
3539
3526
|
type: 'list item.add'
|
|
@@ -3901,7 +3888,6 @@ declare const editorMachine: StateMachine<
|
|
|
3901
3888
|
| {
|
|
3902
3889
|
type: 'insert.text'
|
|
3903
3890
|
text: string
|
|
3904
|
-
options?: TextInsertTextOptions
|
|
3905
3891
|
}
|
|
3906
3892
|
| {
|
|
3907
3893
|
type: 'list item.add'
|
|
@@ -4297,7 +4283,6 @@ declare const editorMachine: StateMachine<
|
|
|
4297
4283
|
| {
|
|
4298
4284
|
type: 'insert.text'
|
|
4299
4285
|
text: string
|
|
4300
|
-
options?: TextInsertTextOptions
|
|
4301
4286
|
}
|
|
4302
4287
|
| {
|
|
4303
4288
|
type: 'list item.add'
|
|
@@ -4663,7 +4648,6 @@ declare const editorMachine: StateMachine<
|
|
|
4663
4648
|
| {
|
|
4664
4649
|
type: 'insert.text'
|
|
4665
4650
|
text: string
|
|
4666
|
-
options?: TextInsertTextOptions
|
|
4667
4651
|
}
|
|
4668
4652
|
| {
|
|
4669
4653
|
type: 'list item.add'
|
|
@@ -4965,7 +4949,6 @@ declare const editorMachine: StateMachine<
|
|
|
4965
4949
|
| {
|
|
4966
4950
|
type: 'insert.text'
|
|
4967
4951
|
text: string
|
|
4968
|
-
options?: TextInsertTextOptions
|
|
4969
4952
|
}
|
|
4970
4953
|
| {
|
|
4971
4954
|
type: 'list item.add'
|
|
@@ -5331,7 +5314,6 @@ declare const editorMachine: StateMachine<
|
|
|
5331
5314
|
| {
|
|
5332
5315
|
type: 'insert.text'
|
|
5333
5316
|
text: string
|
|
5334
|
-
options?: TextInsertTextOptions
|
|
5335
5317
|
}
|
|
5336
5318
|
| {
|
|
5337
5319
|
type: 'list item.add'
|
|
@@ -5636,7 +5618,6 @@ declare const editorMachine: StateMachine<
|
|
|
5636
5618
|
| {
|
|
5637
5619
|
type: 'insert.text'
|
|
5638
5620
|
text: string
|
|
5639
|
-
options?: TextInsertTextOptions
|
|
5640
5621
|
}
|
|
5641
5622
|
| {
|
|
5642
5623
|
type: 'list item.add'
|
|
@@ -6002,7 +5983,6 @@ declare const editorMachine: StateMachine<
|
|
|
6002
5983
|
| {
|
|
6003
5984
|
type: 'insert.text'
|
|
6004
5985
|
text: string
|
|
6005
|
-
options?: TextInsertTextOptions
|
|
6006
5986
|
}
|
|
6007
5987
|
| {
|
|
6008
5988
|
type: 'list item.add'
|
|
@@ -6306,7 +6286,6 @@ declare const editorMachine: StateMachine<
|
|
|
6306
6286
|
| {
|
|
6307
6287
|
type: 'insert.text'
|
|
6308
6288
|
text: string
|
|
6309
|
-
options?: TextInsertTextOptions
|
|
6310
6289
|
}
|
|
6311
6290
|
| {
|
|
6312
6291
|
type: 'list item.add'
|
|
@@ -6672,7 +6651,6 @@ declare const editorMachine: StateMachine<
|
|
|
6672
6651
|
| {
|
|
6673
6652
|
type: 'insert.text'
|
|
6674
6653
|
text: string
|
|
6675
|
-
options?: TextInsertTextOptions
|
|
6676
6654
|
}
|
|
6677
6655
|
| {
|
|
6678
6656
|
type: 'list item.add'
|
|
@@ -6975,7 +6953,6 @@ declare const editorMachine: StateMachine<
|
|
|
6975
6953
|
| {
|
|
6976
6954
|
type: 'insert.text'
|
|
6977
6955
|
text: string
|
|
6978
|
-
options?: TextInsertTextOptions
|
|
6979
6956
|
}
|
|
6980
6957
|
| {
|
|
6981
6958
|
type: 'list item.add'
|
|
@@ -7341,7 +7318,6 @@ declare const editorMachine: StateMachine<
|
|
|
7341
7318
|
| {
|
|
7342
7319
|
type: 'insert.text'
|
|
7343
7320
|
text: string
|
|
7344
|
-
options?: TextInsertTextOptions
|
|
7345
7321
|
}
|
|
7346
7322
|
| {
|
|
7347
7323
|
type: 'list item.add'
|
|
@@ -7645,7 +7621,6 @@ declare const editorMachine: StateMachine<
|
|
|
7645
7621
|
| {
|
|
7646
7622
|
type: 'insert.text'
|
|
7647
7623
|
text: string
|
|
7648
|
-
options?: TextInsertTextOptions
|
|
7649
7624
|
}
|
|
7650
7625
|
| {
|
|
7651
7626
|
type: 'list item.add'
|
|
@@ -8033,7 +8008,6 @@ declare const editorMachine: StateMachine<
|
|
|
8033
8008
|
| {
|
|
8034
8009
|
type: 'insert.text'
|
|
8035
8010
|
text: string
|
|
8036
|
-
options?: TextInsertTextOptions
|
|
8037
8011
|
}
|
|
8038
8012
|
| {
|
|
8039
8013
|
type: 'list item.add'
|
|
@@ -8399,7 +8373,6 @@ declare const editorMachine: StateMachine<
|
|
|
8399
8373
|
| {
|
|
8400
8374
|
type: 'insert.text'
|
|
8401
8375
|
text: string
|
|
8402
|
-
options?: TextInsertTextOptions
|
|
8403
8376
|
}
|
|
8404
8377
|
| {
|
|
8405
8378
|
type: 'list item.add'
|
|
@@ -8703,7 +8676,6 @@ declare const editorMachine: StateMachine<
|
|
|
8703
8676
|
| {
|
|
8704
8677
|
type: 'insert.text'
|
|
8705
8678
|
text: string
|
|
8706
|
-
options?: TextInsertTextOptions
|
|
8707
8679
|
}
|
|
8708
8680
|
| {
|
|
8709
8681
|
type: 'list item.add'
|
|
@@ -9069,7 +9041,6 @@ declare const editorMachine: StateMachine<
|
|
|
9069
9041
|
| {
|
|
9070
9042
|
type: 'insert.text'
|
|
9071
9043
|
text: string
|
|
9072
|
-
options?: TextInsertTextOptions
|
|
9073
9044
|
}
|
|
9074
9045
|
| {
|
|
9075
9046
|
type: 'list item.add'
|
|
@@ -9371,7 +9342,6 @@ declare const editorMachine: StateMachine<
|
|
|
9371
9342
|
| {
|
|
9372
9343
|
type: 'insert.text'
|
|
9373
9344
|
text: string
|
|
9374
|
-
options?: TextInsertTextOptions
|
|
9375
9345
|
}
|
|
9376
9346
|
| {
|
|
9377
9347
|
type: 'list item.add'
|
|
@@ -9737,7 +9707,6 @@ declare const editorMachine: StateMachine<
|
|
|
9737
9707
|
| {
|
|
9738
9708
|
type: 'insert.text'
|
|
9739
9709
|
text: string
|
|
9740
|
-
options?: TextInsertTextOptions
|
|
9741
9710
|
}
|
|
9742
9711
|
| {
|
|
9743
9712
|
type: 'list item.add'
|
|
@@ -10040,7 +10009,6 @@ declare const editorMachine: StateMachine<
|
|
|
10040
10009
|
| {
|
|
10041
10010
|
type: 'insert.text'
|
|
10042
10011
|
text: string
|
|
10043
|
-
options?: TextInsertTextOptions
|
|
10044
10012
|
}
|
|
10045
10013
|
| {
|
|
10046
10014
|
type: 'list item.add'
|
|
@@ -10406,7 +10374,6 @@ declare const editorMachine: StateMachine<
|
|
|
10406
10374
|
| {
|
|
10407
10375
|
type: 'insert.text'
|
|
10408
10376
|
text: string
|
|
10409
|
-
options?: TextInsertTextOptions
|
|
10410
10377
|
}
|
|
10411
10378
|
| {
|
|
10412
10379
|
type: 'list item.add'
|
|
@@ -10712,7 +10679,6 @@ declare const editorMachine: StateMachine<
|
|
|
10712
10679
|
| {
|
|
10713
10680
|
type: 'insert.text'
|
|
10714
10681
|
text: string
|
|
10715
|
-
options?: TextInsertTextOptions
|
|
10716
10682
|
}
|
|
10717
10683
|
| {
|
|
10718
10684
|
type: 'list item.add'
|
|
@@ -11078,7 +11044,6 @@ declare const editorMachine: StateMachine<
|
|
|
11078
11044
|
| {
|
|
11079
11045
|
type: 'insert.text'
|
|
11080
11046
|
text: string
|
|
11081
|
-
options?: TextInsertTextOptions
|
|
11082
11047
|
}
|
|
11083
11048
|
| {
|
|
11084
11049
|
type: 'list item.add'
|
|
@@ -11384,7 +11349,6 @@ declare const editorMachine: StateMachine<
|
|
|
11384
11349
|
| {
|
|
11385
11350
|
type: 'insert.text'
|
|
11386
11351
|
text: string
|
|
11387
|
-
options?: TextInsertTextOptions
|
|
11388
11352
|
}
|
|
11389
11353
|
| {
|
|
11390
11354
|
type: 'list item.add'
|
|
@@ -11777,7 +11741,6 @@ declare const editorMachine: StateMachine<
|
|
|
11777
11741
|
| {
|
|
11778
11742
|
type: 'insert.text'
|
|
11779
11743
|
text: string
|
|
11780
|
-
options?: TextInsertTextOptions
|
|
11781
11744
|
}
|
|
11782
11745
|
| {
|
|
11783
11746
|
type: 'list item.add'
|
|
@@ -12167,7 +12130,6 @@ declare const editorMachine: StateMachine<
|
|
|
12167
12130
|
| {
|
|
12168
12131
|
type: 'insert.text'
|
|
12169
12132
|
text: string
|
|
12170
|
-
options?: TextInsertTextOptions
|
|
12171
12133
|
}
|
|
12172
12134
|
| {
|
|
12173
12135
|
type: 'list item.add'
|
|
@@ -12726,7 +12688,6 @@ declare const editorMachine: StateMachine<
|
|
|
12726
12688
|
| {
|
|
12727
12689
|
type: 'insert.text'
|
|
12728
12690
|
text: string
|
|
12729
|
-
options?: TextInsertTextOptions
|
|
12730
12691
|
}
|
|
12731
12692
|
| {
|
|
12732
12693
|
type: 'list item.add'
|
|
@@ -13092,7 +13053,6 @@ declare const editorMachine: StateMachine<
|
|
|
13092
13053
|
| {
|
|
13093
13054
|
type: 'insert.text'
|
|
13094
13055
|
text: string
|
|
13095
|
-
options?: TextInsertTextOptions
|
|
13096
13056
|
}
|
|
13097
13057
|
| {
|
|
13098
13058
|
type: 'list item.add'
|
|
@@ -13401,7 +13361,6 @@ declare const editorMachine: StateMachine<
|
|
|
13401
13361
|
| {
|
|
13402
13362
|
type: 'insert.text'
|
|
13403
13363
|
text: string
|
|
13404
|
-
options?: TextInsertTextOptions
|
|
13405
13364
|
}
|
|
13406
13365
|
| {
|
|
13407
13366
|
type: 'list item.add'
|
|
@@ -13767,7 +13726,6 @@ declare const editorMachine: StateMachine<
|
|
|
13767
13726
|
| {
|
|
13768
13727
|
type: 'insert.text'
|
|
13769
13728
|
text: string
|
|
13770
|
-
options?: TextInsertTextOptions
|
|
13771
13729
|
}
|
|
13772
13730
|
| {
|
|
13773
13731
|
type: 'list item.add'
|
|
@@ -14069,7 +14027,6 @@ declare const editorMachine: StateMachine<
|
|
|
14069
14027
|
| {
|
|
14070
14028
|
type: 'insert.text'
|
|
14071
14029
|
text: string
|
|
14072
|
-
options?: TextInsertTextOptions
|
|
14073
14030
|
}
|
|
14074
14031
|
| {
|
|
14075
14032
|
type: 'list item.add'
|
|
@@ -14435,7 +14392,6 @@ declare const editorMachine: StateMachine<
|
|
|
14435
14392
|
| {
|
|
14436
14393
|
type: 'insert.text'
|
|
14437
14394
|
text: string
|
|
14438
|
-
options?: TextInsertTextOptions
|
|
14439
14395
|
}
|
|
14440
14396
|
| {
|
|
14441
14397
|
type: 'list item.add'
|
|
@@ -14737,7 +14693,6 @@ declare const editorMachine: StateMachine<
|
|
|
14737
14693
|
| {
|
|
14738
14694
|
type: 'insert.text'
|
|
14739
14695
|
text: string
|
|
14740
|
-
options?: TextInsertTextOptions
|
|
14741
14696
|
}
|
|
14742
14697
|
| {
|
|
14743
14698
|
type: 'list item.add'
|
|
@@ -15103,7 +15058,6 @@ declare const editorMachine: StateMachine<
|
|
|
15103
15058
|
| {
|
|
15104
15059
|
type: 'insert.text'
|
|
15105
15060
|
text: string
|
|
15106
|
-
options?: TextInsertTextOptions
|
|
15107
15061
|
}
|
|
15108
15062
|
| {
|
|
15109
15063
|
type: 'list item.add'
|
|
@@ -15422,7 +15376,6 @@ declare const editorMachine: StateMachine<
|
|
|
15422
15376
|
| {
|
|
15423
15377
|
type: 'insert.text'
|
|
15424
15378
|
text: string
|
|
15425
|
-
options?: TextInsertTextOptions
|
|
15426
15379
|
}
|
|
15427
15380
|
| {
|
|
15428
15381
|
type: 'list item.add'
|
|
@@ -15788,7 +15741,6 @@ declare const editorMachine: StateMachine<
|
|
|
15788
15741
|
| {
|
|
15789
15742
|
type: 'insert.text'
|
|
15790
15743
|
text: string
|
|
15791
|
-
options?: TextInsertTextOptions
|
|
15792
15744
|
}
|
|
15793
15745
|
| {
|
|
15794
15746
|
type: 'list item.add'
|
|
@@ -16104,7 +16056,6 @@ declare const editorMachine: StateMachine<
|
|
|
16104
16056
|
| {
|
|
16105
16057
|
type: 'insert.text'
|
|
16106
16058
|
text: string
|
|
16107
|
-
options?: TextInsertTextOptions
|
|
16108
16059
|
}
|
|
16109
16060
|
| {
|
|
16110
16061
|
type: 'list item.add'
|
|
@@ -16470,7 +16421,6 @@ declare const editorMachine: StateMachine<
|
|
|
16470
16421
|
| {
|
|
16471
16422
|
type: 'insert.text'
|
|
16472
16423
|
text: string
|
|
16473
|
-
options?: TextInsertTextOptions
|
|
16474
16424
|
}
|
|
16475
16425
|
| {
|
|
16476
16426
|
type: 'list item.add'
|
|
@@ -16772,7 +16722,6 @@ declare const editorMachine: StateMachine<
|
|
|
16772
16722
|
| {
|
|
16773
16723
|
type: 'insert.text'
|
|
16774
16724
|
text: string
|
|
16775
|
-
options?: TextInsertTextOptions
|
|
16776
16725
|
}
|
|
16777
16726
|
| {
|
|
16778
16727
|
type: 'list item.add'
|
|
@@ -17138,7 +17087,6 @@ declare const editorMachine: StateMachine<
|
|
|
17138
17087
|
| {
|
|
17139
17088
|
type: 'insert.text'
|
|
17140
17089
|
text: string
|
|
17141
|
-
options?: TextInsertTextOptions
|
|
17142
17090
|
}
|
|
17143
17091
|
| {
|
|
17144
17092
|
type: 'list item.add'
|
|
@@ -17443,7 +17391,6 @@ declare const editorMachine: StateMachine<
|
|
|
17443
17391
|
| {
|
|
17444
17392
|
type: 'insert.text'
|
|
17445
17393
|
text: string
|
|
17446
|
-
options?: TextInsertTextOptions
|
|
17447
17394
|
}
|
|
17448
17395
|
| {
|
|
17449
17396
|
type: 'list item.add'
|
|
@@ -17809,7 +17756,6 @@ declare const editorMachine: StateMachine<
|
|
|
17809
17756
|
| {
|
|
17810
17757
|
type: 'insert.text'
|
|
17811
17758
|
text: string
|
|
17812
|
-
options?: TextInsertTextOptions
|
|
17813
17759
|
}
|
|
17814
17760
|
| {
|
|
17815
17761
|
type: 'list item.add'
|
|
@@ -18015,7 +17961,6 @@ declare const editorMachine: StateMachine<
|
|
|
18015
17961
|
| {
|
|
18016
17962
|
type: 'insert.text'
|
|
18017
17963
|
text: string
|
|
18018
|
-
options?: TextInsertTextOptions
|
|
18019
17964
|
}
|
|
18020
17965
|
| ExternalSyntheticBehaviorEvent,
|
|
18021
17966
|
| {
|
|
@@ -18151,7 +18096,6 @@ declare const editorMachine: StateMachine<
|
|
|
18151
18096
|
| {
|
|
18152
18097
|
type: 'insert.text'
|
|
18153
18098
|
text: string
|
|
18154
|
-
options?: TextInsertTextOptions
|
|
18155
18099
|
}
|
|
18156
18100
|
| {
|
|
18157
18101
|
type: 'list item.add'
|
|
@@ -18517,7 +18461,6 @@ declare const editorMachine: StateMachine<
|
|
|
18517
18461
|
| {
|
|
18518
18462
|
type: 'insert.text'
|
|
18519
18463
|
text: string
|
|
18520
|
-
options?: TextInsertTextOptions
|
|
18521
18464
|
}
|
|
18522
18465
|
| {
|
|
18523
18466
|
type: 'list item.add'
|
|
@@ -18828,7 +18771,6 @@ declare const editorMachine: StateMachine<
|
|
|
18828
18771
|
| {
|
|
18829
18772
|
type: 'insert.text'
|
|
18830
18773
|
text: string
|
|
18831
|
-
options?: TextInsertTextOptions
|
|
18832
18774
|
}
|
|
18833
18775
|
| {
|
|
18834
18776
|
type: 'list item.add'
|
|
@@ -19194,7 +19136,6 @@ declare const editorMachine: StateMachine<
|
|
|
19194
19136
|
| {
|
|
19195
19137
|
type: 'insert.text'
|
|
19196
19138
|
text: string
|
|
19197
|
-
options?: TextInsertTextOptions
|
|
19198
19139
|
}
|
|
19199
19140
|
| {
|
|
19200
19141
|
type: 'list item.add'
|
|
@@ -19506,7 +19447,6 @@ declare const editorMachine: StateMachine<
|
|
|
19506
19447
|
| {
|
|
19507
19448
|
type: 'insert.text'
|
|
19508
19449
|
text: string
|
|
19509
|
-
options?: TextInsertTextOptions
|
|
19510
19450
|
}
|
|
19511
19451
|
| {
|
|
19512
19452
|
type: 'list item.add'
|
|
@@ -19872,7 +19812,6 @@ declare const editorMachine: StateMachine<
|
|
|
19872
19812
|
| {
|
|
19873
19813
|
type: 'insert.text'
|
|
19874
19814
|
text: string
|
|
19875
|
-
options?: TextInsertTextOptions
|
|
19876
19815
|
}
|
|
19877
19816
|
| {
|
|
19878
19817
|
type: 'list item.add'
|
|
@@ -20175,7 +20114,6 @@ declare const editorMachine: StateMachine<
|
|
|
20175
20114
|
| {
|
|
20176
20115
|
type: 'insert.text'
|
|
20177
20116
|
text: string
|
|
20178
|
-
options?: TextInsertTextOptions
|
|
20179
20117
|
}
|
|
20180
20118
|
| {
|
|
20181
20119
|
type: 'list item.add'
|
|
@@ -20541,7 +20479,6 @@ declare const editorMachine: StateMachine<
|
|
|
20541
20479
|
| {
|
|
20542
20480
|
type: 'insert.text'
|
|
20543
20481
|
text: string
|
|
20544
|
-
options?: TextInsertTextOptions
|
|
20545
20482
|
}
|
|
20546
20483
|
| {
|
|
20547
20484
|
type: 'list item.add'
|
|
@@ -20848,7 +20785,6 @@ declare const editorMachine: StateMachine<
|
|
|
20848
20785
|
| {
|
|
20849
20786
|
type: 'insert.text'
|
|
20850
20787
|
text: string
|
|
20851
|
-
options?: TextInsertTextOptions
|
|
20852
20788
|
}
|
|
20853
20789
|
| {
|
|
20854
20790
|
type: 'list item.add'
|
|
@@ -21214,7 +21150,6 @@ declare const editorMachine: StateMachine<
|
|
|
21214
21150
|
| {
|
|
21215
21151
|
type: 'insert.text'
|
|
21216
21152
|
text: string
|
|
21217
|
-
options?: TextInsertTextOptions
|
|
21218
21153
|
}
|
|
21219
21154
|
| {
|
|
21220
21155
|
type: 'list item.add'
|
|
@@ -21525,7 +21460,6 @@ declare const editorMachine: StateMachine<
|
|
|
21525
21460
|
| {
|
|
21526
21461
|
type: 'insert.text'
|
|
21527
21462
|
text: string
|
|
21528
|
-
options?: TextInsertTextOptions
|
|
21529
21463
|
}
|
|
21530
21464
|
| {
|
|
21531
21465
|
type: 'list item.add'
|
|
@@ -21891,7 +21825,6 @@ declare const editorMachine: StateMachine<
|
|
|
21891
21825
|
| {
|
|
21892
21826
|
type: 'insert.text'
|
|
21893
21827
|
text: string
|
|
21894
|
-
options?: TextInsertTextOptions
|
|
21895
21828
|
}
|
|
21896
21829
|
| {
|
|
21897
21830
|
type: 'list item.add'
|
|
@@ -22216,7 +22149,6 @@ declare const editorMachine: StateMachine<
|
|
|
22216
22149
|
| {
|
|
22217
22150
|
type: 'insert.text'
|
|
22218
22151
|
text: string
|
|
22219
|
-
options?: TextInsertTextOptions
|
|
22220
22152
|
}
|
|
22221
22153
|
| {
|
|
22222
22154
|
type: 'list item.add'
|
|
@@ -22613,7 +22545,6 @@ declare const editorMachine: StateMachine<
|
|
|
22613
22545
|
| {
|
|
22614
22546
|
type: 'insert.text'
|
|
22615
22547
|
text: string
|
|
22616
|
-
options?: TextInsertTextOptions
|
|
22617
22548
|
}
|
|
22618
22549
|
| {
|
|
22619
22550
|
type: 'list item.add'
|
|
@@ -22974,7 +22905,6 @@ declare const editorMachine: StateMachine<
|
|
|
22974
22905
|
| {
|
|
22975
22906
|
type: 'insert.text'
|
|
22976
22907
|
text: string
|
|
22977
|
-
options?: TextInsertTextOptions
|
|
22978
22908
|
}
|
|
22979
22909
|
| {
|
|
22980
22910
|
type: 'list item.add'
|
|
@@ -23352,7 +23282,6 @@ declare const editorMachine: StateMachine<
|
|
|
23352
23282
|
| {
|
|
23353
23283
|
type: 'insert.text'
|
|
23354
23284
|
text: string
|
|
23355
|
-
options?: TextInsertTextOptions
|
|
23356
23285
|
}
|
|
23357
23286
|
| {
|
|
23358
23287
|
type: 'list item.add'
|
|
@@ -23713,7 +23642,6 @@ declare const editorMachine: StateMachine<
|
|
|
23713
23642
|
| {
|
|
23714
23643
|
type: 'insert.text'
|
|
23715
23644
|
text: string
|
|
23716
|
-
options?: TextInsertTextOptions
|
|
23717
23645
|
}
|
|
23718
23646
|
| {
|
|
23719
23647
|
type: 'list item.add'
|
|
@@ -24397,6 +24325,9 @@ export declare function raise(
|
|
|
24397
24325
|
event: InternalBehaviorEvent | SyntheticBehaviorEvent | CustomBehaviorEvent,
|
|
24398
24326
|
): PickFromUnion_2<BehaviorAction, 'type', 'raise'>
|
|
24399
24327
|
|
|
24328
|
+
/**************************************
|
|
24329
|
+
* Resolve behavior event
|
|
24330
|
+
**************************************/
|
|
24400
24331
|
declare type ResolveBehaviorEvent<
|
|
24401
24332
|
TBehaviorEventType extends
|
|
24402
24333
|
| '*'
|
|
@@ -24568,7 +24499,6 @@ export declare type SyntheticBehaviorEvent =
|
|
|
24568
24499
|
| {
|
|
24569
24500
|
type: SyntheticBehaviorEventType<'insert', 'text'>
|
|
24570
24501
|
text: string
|
|
24571
|
-
options?: TextInsertTextOptions
|
|
24572
24502
|
}
|
|
24573
24503
|
| {
|
|
24574
24504
|
type: SyntheticBehaviorEventType<'list item', 'add'>
|
|
@@ -24664,9 +24594,6 @@ export declare type SyntheticBehaviorEvent =
|
|
|
24664
24594
|
>
|
|
24665
24595
|
}
|
|
24666
24596
|
|
|
24667
|
-
/**************************************
|
|
24668
|
-
* Synthetic events
|
|
24669
|
-
**************************************/
|
|
24670
24597
|
declare type SyntheticBehaviorEventNamespace =
|
|
24671
24598
|
| 'annotation'
|
|
24672
24599
|
| 'block'
|
|
@@ -24684,6 +24611,9 @@ declare type SyntheticBehaviorEventNamespace =
|
|
|
24684
24611
|
| 'serialization'
|
|
24685
24612
|
| 'style'
|
|
24686
24613
|
|
|
24614
|
+
/**************************************
|
|
24615
|
+
* Synthetic events
|
|
24616
|
+
**************************************/
|
|
24687
24617
|
declare type SyntheticBehaviorEventType<
|
|
24688
24618
|
TNamespace extends SyntheticBehaviorEventNamespace,
|
|
24689
24619
|
TType extends string = '',
|