@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.
Files changed (52) hide show
  1. package/lib/_chunks-cjs/behavior.core.cjs +2 -26
  2. package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
  3. package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
  4. package/lib/_chunks-cjs/editor-provider.cjs +21 -4
  5. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  6. package/lib/_chunks-es/behavior.core.js +2 -26
  7. package/lib/_chunks-es/behavior.core.js.map +1 -1
  8. package/lib/_chunks-es/behavior.markdown.js.map +1 -1
  9. package/lib/_chunks-es/editor-provider.js +20 -3
  10. package/lib/_chunks-es/editor-provider.js.map +1 -1
  11. package/lib/behaviors/index.cjs.map +1 -1
  12. package/lib/behaviors/index.d.cts +16 -86
  13. package/lib/behaviors/index.d.ts +16 -86
  14. package/lib/behaviors/index.js.map +1 -1
  15. package/lib/index.d.cts +7 -68
  16. package/lib/index.d.ts +7 -68
  17. package/lib/plugins/index.cjs +7 -1
  18. package/lib/plugins/index.cjs.map +1 -1
  19. package/lib/plugins/index.d.cts +12 -68
  20. package/lib/plugins/index.d.ts +12 -68
  21. package/lib/plugins/index.js +8 -2
  22. package/lib/plugins/index.js.map +1 -1
  23. package/lib/selectors/index.d.cts +7 -68
  24. package/lib/selectors/index.d.ts +7 -68
  25. package/lib/utils/index.d.cts +7 -68
  26. package/lib/utils/index.d.ts +7 -68
  27. package/package.json +4 -4
  28. package/src/behavior-actions/behavior.actions.ts +1 -1
  29. package/src/behaviors/behavior.code-editor.ts +1 -1
  30. package/src/behaviors/behavior.core.annotations.ts +2 -1
  31. package/src/behaviors/behavior.core.block-objects.ts +2 -1
  32. package/src/behaviors/behavior.core.decorators.ts +2 -1
  33. package/src/behaviors/behavior.core.dnd.ts +1 -1
  34. package/src/behaviors/behavior.core.insert-break.ts +2 -1
  35. package/src/behaviors/behavior.core.lists.ts +2 -1
  36. package/src/behaviors/behavior.decorator-pair.ts +1 -1
  37. package/src/behaviors/behavior.default.raise-soft-break.ts +2 -1
  38. package/src/behaviors/behavior.default.ts +2 -1
  39. package/src/behaviors/behavior.emoji-picker.ts +1 -1
  40. package/src/behaviors/behavior.links.ts +1 -1
  41. package/src/behaviors/behavior.markdown.ts +1 -1
  42. package/src/behaviors/behavior.types.action.ts +61 -0
  43. package/src/behaviors/behavior.types.behavior.ts +84 -0
  44. package/src/behaviors/{behavior.types.ts → behavior.types.event.ts} +58 -203
  45. package/src/behaviors/behavior.types.guard.ts +14 -0
  46. package/src/behaviors/index.ts +11 -9
  47. package/src/editor/create-editor.ts +2 -2
  48. package/src/editor/editor-machine.ts +3 -3
  49. package/src/editor/plugins/create-with-event-listeners.ts +0 -1
  50. package/src/plugins/index.ts +1 -0
  51. package/src/plugins/plugin.core.tsx +9 -0
  52. package/src/plugins/plugin.decorator-shortcut.ts +1 -1
package/lib/index.d.ts CHANGED
@@ -41,7 +41,6 @@ import {Descendant, TextUnit} from 'slate'
41
41
  import type {Operation} from 'slate'
42
42
  import type {DOMNode} from 'slate-dom'
43
43
  import type {ReactEditor} from 'slate-react'
44
- import {TextInsertTextOptions} from 'slate/dist/interfaces/transforms/text'
45
44
  import {
46
45
  ActionArgs,
47
46
  ActionFunction,
@@ -73,7 +72,7 @@ import {
73
72
  import {
74
73
  InputBehaviorEvent as InputBehaviorEvent_2,
75
74
  InsertPlacement as InsertPlacement_2,
76
- } from '../behaviors/behavior.types'
75
+ } from '../behaviors/behavior.types.event'
77
76
  import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
78
77
  import {PickFromUnion as PickFromUnion_2} from '../type-utils'
79
78
  import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
@@ -875,7 +874,6 @@ declare const editorMachine: StateMachine<
875
874
  | {
876
875
  type: 'insert.text'
877
876
  text: string
878
- options?: TextInsertTextOptions
879
877
  }
880
878
  | {
881
879
  type: 'list item.add'
@@ -1320,7 +1318,6 @@ declare const editorMachine: StateMachine<
1320
1318
  | {
1321
1319
  type: 'insert.text'
1322
1320
  text: string
1323
- options?: TextInsertTextOptions
1324
1321
  }
1325
1322
  | {
1326
1323
  type: 'list item.add'
@@ -1654,7 +1651,6 @@ declare const editorMachine: StateMachine<
1654
1651
  | {
1655
1652
  type: 'insert.text'
1656
1653
  text: string
1657
- options?: TextInsertTextOptions
1658
1654
  }
1659
1655
  | {
1660
1656
  type: 'list item.add'
@@ -2022,7 +2018,6 @@ declare const editorMachine: StateMachine<
2022
2018
  | {
2023
2019
  type: 'insert.text'
2024
2020
  text: string
2025
- options?: TextInsertTextOptions
2026
2021
  }
2027
2022
  | {
2028
2023
  type: 'list item.add'
@@ -2418,7 +2413,6 @@ declare const editorMachine: StateMachine<
2418
2413
  | {
2419
2414
  type: 'insert.text'
2420
2415
  text: string
2421
- options?: TextInsertTextOptions
2422
2416
  }
2423
2417
  | {
2424
2418
  type: 'list item.add'
@@ -2784,7 +2778,6 @@ declare const editorMachine: StateMachine<
2784
2778
  | {
2785
2779
  type: 'insert.text'
2786
2780
  text: string
2787
- options?: TextInsertTextOptions
2788
2781
  }
2789
2782
  | {
2790
2783
  type: 'list item.add'
@@ -3086,7 +3079,6 @@ declare const editorMachine: StateMachine<
3086
3079
  | {
3087
3080
  type: 'insert.text'
3088
3081
  text: string
3089
- options?: TextInsertTextOptions
3090
3082
  }
3091
3083
  | {
3092
3084
  type: 'list item.add'
@@ -3452,7 +3444,6 @@ declare const editorMachine: StateMachine<
3452
3444
  | {
3453
3445
  type: 'insert.text'
3454
3446
  text: string
3455
- options?: TextInsertTextOptions
3456
3447
  }
3457
3448
  | {
3458
3449
  type: 'list item.add'
@@ -3757,7 +3748,6 @@ declare const editorMachine: StateMachine<
3757
3748
  | {
3758
3749
  type: 'insert.text'
3759
3750
  text: string
3760
- options?: TextInsertTextOptions
3761
3751
  }
3762
3752
  | {
3763
3753
  type: 'list item.add'
@@ -4123,7 +4113,6 @@ declare const editorMachine: StateMachine<
4123
4113
  | {
4124
4114
  type: 'insert.text'
4125
4115
  text: string
4126
- options?: TextInsertTextOptions
4127
4116
  }
4128
4117
  | {
4129
4118
  type: 'list item.add'
@@ -4427,7 +4416,6 @@ declare const editorMachine: StateMachine<
4427
4416
  | {
4428
4417
  type: 'insert.text'
4429
4418
  text: string
4430
- options?: TextInsertTextOptions
4431
4419
  }
4432
4420
  | {
4433
4421
  type: 'list item.add'
@@ -4793,7 +4781,6 @@ declare const editorMachine: StateMachine<
4793
4781
  | {
4794
4782
  type: 'insert.text'
4795
4783
  text: string
4796
- options?: TextInsertTextOptions
4797
4784
  }
4798
4785
  | {
4799
4786
  type: 'list item.add'
@@ -5096,7 +5083,6 @@ declare const editorMachine: StateMachine<
5096
5083
  | {
5097
5084
  type: 'insert.text'
5098
5085
  text: string
5099
- options?: TextInsertTextOptions
5100
5086
  }
5101
5087
  | {
5102
5088
  type: 'list item.add'
@@ -5462,7 +5448,6 @@ declare const editorMachine: StateMachine<
5462
5448
  | {
5463
5449
  type: 'insert.text'
5464
5450
  text: string
5465
- options?: TextInsertTextOptions
5466
5451
  }
5467
5452
  | {
5468
5453
  type: 'list item.add'
@@ -5766,7 +5751,6 @@ declare const editorMachine: StateMachine<
5766
5751
  | {
5767
5752
  type: 'insert.text'
5768
5753
  text: string
5769
- options?: TextInsertTextOptions
5770
5754
  }
5771
5755
  | {
5772
5756
  type: 'list item.add'
@@ -6154,7 +6138,6 @@ declare const editorMachine: StateMachine<
6154
6138
  | {
6155
6139
  type: 'insert.text'
6156
6140
  text: string
6157
- options?: TextInsertTextOptions
6158
6141
  }
6159
6142
  | {
6160
6143
  type: 'list item.add'
@@ -6520,7 +6503,6 @@ declare const editorMachine: StateMachine<
6520
6503
  | {
6521
6504
  type: 'insert.text'
6522
6505
  text: string
6523
- options?: TextInsertTextOptions
6524
6506
  }
6525
6507
  | {
6526
6508
  type: 'list item.add'
@@ -6824,7 +6806,6 @@ declare const editorMachine: StateMachine<
6824
6806
  | {
6825
6807
  type: 'insert.text'
6826
6808
  text: string
6827
- options?: TextInsertTextOptions
6828
6809
  }
6829
6810
  | {
6830
6811
  type: 'list item.add'
@@ -7190,7 +7171,6 @@ declare const editorMachine: StateMachine<
7190
7171
  | {
7191
7172
  type: 'insert.text'
7192
7173
  text: string
7193
- options?: TextInsertTextOptions
7194
7174
  }
7195
7175
  | {
7196
7176
  type: 'list item.add'
@@ -7492,7 +7472,6 @@ declare const editorMachine: StateMachine<
7492
7472
  | {
7493
7473
  type: 'insert.text'
7494
7474
  text: string
7495
- options?: TextInsertTextOptions
7496
7475
  }
7497
7476
  | {
7498
7477
  type: 'list item.add'
@@ -7858,7 +7837,6 @@ declare const editorMachine: StateMachine<
7858
7837
  | {
7859
7838
  type: 'insert.text'
7860
7839
  text: string
7861
- options?: TextInsertTextOptions
7862
7840
  }
7863
7841
  | {
7864
7842
  type: 'list item.add'
@@ -8161,7 +8139,6 @@ declare const editorMachine: StateMachine<
8161
8139
  | {
8162
8140
  type: 'insert.text'
8163
8141
  text: string
8164
- options?: TextInsertTextOptions
8165
8142
  }
8166
8143
  | {
8167
8144
  type: 'list item.add'
@@ -8527,7 +8504,6 @@ declare const editorMachine: StateMachine<
8527
8504
  | {
8528
8505
  type: 'insert.text'
8529
8506
  text: string
8530
- options?: TextInsertTextOptions
8531
8507
  }
8532
8508
  | {
8533
8509
  type: 'list item.add'
@@ -8833,7 +8809,6 @@ declare const editorMachine: StateMachine<
8833
8809
  | {
8834
8810
  type: 'insert.text'
8835
8811
  text: string
8836
- options?: TextInsertTextOptions
8837
8812
  }
8838
8813
  | {
8839
8814
  type: 'list item.add'
@@ -9199,7 +9174,6 @@ declare const editorMachine: StateMachine<
9199
9174
  | {
9200
9175
  type: 'insert.text'
9201
9176
  text: string
9202
- options?: TextInsertTextOptions
9203
9177
  }
9204
9178
  | {
9205
9179
  type: 'list item.add'
@@ -9505,7 +9479,6 @@ declare const editorMachine: StateMachine<
9505
9479
  | {
9506
9480
  type: 'insert.text'
9507
9481
  text: string
9508
- options?: TextInsertTextOptions
9509
9482
  }
9510
9483
  | {
9511
9484
  type: 'list item.add'
@@ -9898,7 +9871,6 @@ declare const editorMachine: StateMachine<
9898
9871
  | {
9899
9872
  type: 'insert.text'
9900
9873
  text: string
9901
- options?: TextInsertTextOptions
9902
9874
  }
9903
9875
  | {
9904
9876
  type: 'list item.add'
@@ -10288,7 +10260,6 @@ declare const editorMachine: StateMachine<
10288
10260
  | {
10289
10261
  type: 'insert.text'
10290
10262
  text: string
10291
- options?: TextInsertTextOptions
10292
10263
  }
10293
10264
  | {
10294
10265
  type: 'list item.add'
@@ -10847,7 +10818,6 @@ declare const editorMachine: StateMachine<
10847
10818
  | {
10848
10819
  type: 'insert.text'
10849
10820
  text: string
10850
- options?: TextInsertTextOptions
10851
10821
  }
10852
10822
  | {
10853
10823
  type: 'list item.add'
@@ -11213,7 +11183,6 @@ declare const editorMachine: StateMachine<
11213
11183
  | {
11214
11184
  type: 'insert.text'
11215
11185
  text: string
11216
- options?: TextInsertTextOptions
11217
11186
  }
11218
11187
  | {
11219
11188
  type: 'list item.add'
@@ -11522,7 +11491,6 @@ declare const editorMachine: StateMachine<
11522
11491
  | {
11523
11492
  type: 'insert.text'
11524
11493
  text: string
11525
- options?: TextInsertTextOptions
11526
11494
  }
11527
11495
  | {
11528
11496
  type: 'list item.add'
@@ -11888,7 +11856,6 @@ declare const editorMachine: StateMachine<
11888
11856
  | {
11889
11857
  type: 'insert.text'
11890
11858
  text: string
11891
- options?: TextInsertTextOptions
11892
11859
  }
11893
11860
  | {
11894
11861
  type: 'list item.add'
@@ -12190,7 +12157,6 @@ declare const editorMachine: StateMachine<
12190
12157
  | {
12191
12158
  type: 'insert.text'
12192
12159
  text: string
12193
- options?: TextInsertTextOptions
12194
12160
  }
12195
12161
  | {
12196
12162
  type: 'list item.add'
@@ -12556,7 +12522,6 @@ declare const editorMachine: StateMachine<
12556
12522
  | {
12557
12523
  type: 'insert.text'
12558
12524
  text: string
12559
- options?: TextInsertTextOptions
12560
12525
  }
12561
12526
  | {
12562
12527
  type: 'list item.add'
@@ -12858,7 +12823,6 @@ declare const editorMachine: StateMachine<
12858
12823
  | {
12859
12824
  type: 'insert.text'
12860
12825
  text: string
12861
- options?: TextInsertTextOptions
12862
12826
  }
12863
12827
  | {
12864
12828
  type: 'list item.add'
@@ -13224,7 +13188,6 @@ declare const editorMachine: StateMachine<
13224
13188
  | {
13225
13189
  type: 'insert.text'
13226
13190
  text: string
13227
- options?: TextInsertTextOptions
13228
13191
  }
13229
13192
  | {
13230
13193
  type: 'list item.add'
@@ -13543,7 +13506,6 @@ declare const editorMachine: StateMachine<
13543
13506
  | {
13544
13507
  type: 'insert.text'
13545
13508
  text: string
13546
- options?: TextInsertTextOptions
13547
13509
  }
13548
13510
  | {
13549
13511
  type: 'list item.add'
@@ -13909,7 +13871,6 @@ declare const editorMachine: StateMachine<
13909
13871
  | {
13910
13872
  type: 'insert.text'
13911
13873
  text: string
13912
- options?: TextInsertTextOptions
13913
13874
  }
13914
13875
  | {
13915
13876
  type: 'list item.add'
@@ -14225,7 +14186,6 @@ declare const editorMachine: StateMachine<
14225
14186
  | {
14226
14187
  type: 'insert.text'
14227
14188
  text: string
14228
- options?: TextInsertTextOptions
14229
14189
  }
14230
14190
  | {
14231
14191
  type: 'list item.add'
@@ -14591,7 +14551,6 @@ declare const editorMachine: StateMachine<
14591
14551
  | {
14592
14552
  type: 'insert.text'
14593
14553
  text: string
14594
- options?: TextInsertTextOptions
14595
14554
  }
14596
14555
  | {
14597
14556
  type: 'list item.add'
@@ -14893,7 +14852,6 @@ declare const editorMachine: StateMachine<
14893
14852
  | {
14894
14853
  type: 'insert.text'
14895
14854
  text: string
14896
- options?: TextInsertTextOptions
14897
14855
  }
14898
14856
  | {
14899
14857
  type: 'list item.add'
@@ -15259,7 +15217,6 @@ declare const editorMachine: StateMachine<
15259
15217
  | {
15260
15218
  type: 'insert.text'
15261
15219
  text: string
15262
- options?: TextInsertTextOptions
15263
15220
  }
15264
15221
  | {
15265
15222
  type: 'list item.add'
@@ -15564,7 +15521,6 @@ declare const editorMachine: StateMachine<
15564
15521
  | {
15565
15522
  type: 'insert.text'
15566
15523
  text: string
15567
- options?: TextInsertTextOptions
15568
15524
  }
15569
15525
  | {
15570
15526
  type: 'list item.add'
@@ -15930,7 +15886,6 @@ declare const editorMachine: StateMachine<
15930
15886
  | {
15931
15887
  type: 'insert.text'
15932
15888
  text: string
15933
- options?: TextInsertTextOptions
15934
15889
  }
15935
15890
  | {
15936
15891
  type: 'list item.add'
@@ -16136,7 +16091,6 @@ declare const editorMachine: StateMachine<
16136
16091
  | {
16137
16092
  type: 'insert.text'
16138
16093
  text: string
16139
- options?: TextInsertTextOptions
16140
16094
  }
16141
16095
  | ExternalSyntheticBehaviorEvent,
16142
16096
  | {
@@ -16272,7 +16226,6 @@ declare const editorMachine: StateMachine<
16272
16226
  | {
16273
16227
  type: 'insert.text'
16274
16228
  text: string
16275
- options?: TextInsertTextOptions
16276
16229
  }
16277
16230
  | {
16278
16231
  type: 'list item.add'
@@ -16638,7 +16591,6 @@ declare const editorMachine: StateMachine<
16638
16591
  | {
16639
16592
  type: 'insert.text'
16640
16593
  text: string
16641
- options?: TextInsertTextOptions
16642
16594
  }
16643
16595
  | {
16644
16596
  type: 'list item.add'
@@ -16949,7 +16901,6 @@ declare const editorMachine: StateMachine<
16949
16901
  | {
16950
16902
  type: 'insert.text'
16951
16903
  text: string
16952
- options?: TextInsertTextOptions
16953
16904
  }
16954
16905
  | {
16955
16906
  type: 'list item.add'
@@ -17315,7 +17266,6 @@ declare const editorMachine: StateMachine<
17315
17266
  | {
17316
17267
  type: 'insert.text'
17317
17268
  text: string
17318
- options?: TextInsertTextOptions
17319
17269
  }
17320
17270
  | {
17321
17271
  type: 'list item.add'
@@ -17627,7 +17577,6 @@ declare const editorMachine: StateMachine<
17627
17577
  | {
17628
17578
  type: 'insert.text'
17629
17579
  text: string
17630
- options?: TextInsertTextOptions
17631
17580
  }
17632
17581
  | {
17633
17582
  type: 'list item.add'
@@ -17993,7 +17942,6 @@ declare const editorMachine: StateMachine<
17993
17942
  | {
17994
17943
  type: 'insert.text'
17995
17944
  text: string
17996
- options?: TextInsertTextOptions
17997
17945
  }
17998
17946
  | {
17999
17947
  type: 'list item.add'
@@ -18296,7 +18244,6 @@ declare const editorMachine: StateMachine<
18296
18244
  | {
18297
18245
  type: 'insert.text'
18298
18246
  text: string
18299
- options?: TextInsertTextOptions
18300
18247
  }
18301
18248
  | {
18302
18249
  type: 'list item.add'
@@ -18662,7 +18609,6 @@ declare const editorMachine: StateMachine<
18662
18609
  | {
18663
18610
  type: 'insert.text'
18664
18611
  text: string
18665
- options?: TextInsertTextOptions
18666
18612
  }
18667
18613
  | {
18668
18614
  type: 'list item.add'
@@ -18969,7 +18915,6 @@ declare const editorMachine: StateMachine<
18969
18915
  | {
18970
18916
  type: 'insert.text'
18971
18917
  text: string
18972
- options?: TextInsertTextOptions
18973
18918
  }
18974
18919
  | {
18975
18920
  type: 'list item.add'
@@ -19335,7 +19280,6 @@ declare const editorMachine: StateMachine<
19335
19280
  | {
19336
19281
  type: 'insert.text'
19337
19282
  text: string
19338
- options?: TextInsertTextOptions
19339
19283
  }
19340
19284
  | {
19341
19285
  type: 'list item.add'
@@ -19646,7 +19590,6 @@ declare const editorMachine: StateMachine<
19646
19590
  | {
19647
19591
  type: 'insert.text'
19648
19592
  text: string
19649
- options?: TextInsertTextOptions
19650
19593
  }
19651
19594
  | {
19652
19595
  type: 'list item.add'
@@ -20012,7 +19955,6 @@ declare const editorMachine: StateMachine<
20012
19955
  | {
20013
19956
  type: 'insert.text'
20014
19957
  text: string
20015
- options?: TextInsertTextOptions
20016
19958
  }
20017
19959
  | {
20018
19960
  type: 'list item.add'
@@ -20337,7 +20279,6 @@ declare const editorMachine: StateMachine<
20337
20279
  | {
20338
20280
  type: 'insert.text'
20339
20281
  text: string
20340
- options?: TextInsertTextOptions
20341
20282
  }
20342
20283
  | {
20343
20284
  type: 'list item.add'
@@ -20734,7 +20675,6 @@ declare const editorMachine: StateMachine<
20734
20675
  | {
20735
20676
  type: 'insert.text'
20736
20677
  text: string
20737
- options?: TextInsertTextOptions
20738
20678
  }
20739
20679
  | {
20740
20680
  type: 'list item.add'
@@ -21095,7 +21035,6 @@ declare const editorMachine: StateMachine<
21095
21035
  | {
21096
21036
  type: 'insert.text'
21097
21037
  text: string
21098
- options?: TextInsertTextOptions
21099
21038
  }
21100
21039
  | {
21101
21040
  type: 'list item.add'
@@ -21473,7 +21412,6 @@ declare const editorMachine: StateMachine<
21473
21412
  | {
21474
21413
  type: 'insert.text'
21475
21414
  text: string
21476
- options?: TextInsertTextOptions
21477
21415
  }
21478
21416
  | {
21479
21417
  type: 'list item.add'
@@ -21834,7 +21772,6 @@ declare const editorMachine: StateMachine<
21834
21772
  | {
21835
21773
  type: 'insert.text'
21836
21774
  text: string
21837
- options?: TextInsertTextOptions
21838
21775
  }
21839
21776
  | {
21840
21777
  type: 'list item.add'
@@ -23313,6 +23250,9 @@ export declare type RenderStyleFunction = (
23313
23250
  props: BlockStyleRenderProps,
23314
23251
  ) => JSX.Element
23315
23252
 
23253
+ /**************************************
23254
+ * Resolve behavior event
23255
+ **************************************/
23316
23256
  declare type ResolveBehaviorEvent<
23317
23257
  TBehaviorEventType extends
23318
23258
  | '*'
@@ -23517,7 +23457,6 @@ declare type SyntheticBehaviorEvent =
23517
23457
  | {
23518
23458
  type: SyntheticBehaviorEventType<'insert', 'text'>
23519
23459
  text: string
23520
- options?: TextInsertTextOptions
23521
23460
  }
23522
23461
  | {
23523
23462
  type: SyntheticBehaviorEventType<'list item', 'add'>
@@ -23613,9 +23552,6 @@ declare type SyntheticBehaviorEvent =
23613
23552
  >
23614
23553
  }
23615
23554
 
23616
- /**************************************
23617
- * Synthetic events
23618
- **************************************/
23619
23555
  declare type SyntheticBehaviorEventNamespace =
23620
23556
  | 'annotation'
23621
23557
  | 'block'
@@ -23633,6 +23569,9 @@ declare type SyntheticBehaviorEventNamespace =
23633
23569
  | 'serialization'
23634
23570
  | 'style'
23635
23571
 
23572
+ /**************************************
23573
+ * Synthetic events
23574
+ **************************************/
23636
23575
  declare type SyntheticBehaviorEventType<
23637
23576
  TNamespace extends SyntheticBehaviorEventNamespace,
23638
23577
  TType extends string = '',
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var reactCompilerRuntime = require("react-compiler-runtime"), React = require("react"), editorProvider = require("../_chunks-cjs/editor-provider.cjs"), react = require("@xstate/react"), isEqual = require("lodash/isEqual.js"), xstate = require("xstate"), util_sliceBlocks = require("../_chunks-cjs/util.slice-blocks.cjs"), util_selectionPointToBlockOffset = require("../_chunks-cjs/util.selection-point-to-block-offset.cjs"), selector_isOverlappingSelection = require("../_chunks-cjs/selector.is-overlapping-selection.cjs"), selector_getTextBefore = require("../_chunks-cjs/selector.get-text-before.cjs"), behavior_core = require("../_chunks-cjs/behavior.core.cjs"), useEffectEvent = require("use-effect-event"), jsxRuntime = require("react/jsx-runtime"), behavior_markdown = require("../_chunks-cjs/behavior.markdown.cjs"), util_mergeTextBlocks = require("../_chunks-cjs/util.merge-text-blocks.cjs");
3
+ var reactCompilerRuntime = require("react-compiler-runtime"), React = require("react"), editorProvider = require("../_chunks-cjs/editor-provider.cjs"), jsxRuntime = require("react/jsx-runtime"), behavior_core = require("../_chunks-cjs/behavior.core.cjs"), react = require("@xstate/react"), isEqual = require("lodash/isEqual.js"), xstate = require("xstate"), util_sliceBlocks = require("../_chunks-cjs/util.slice-blocks.cjs"), util_selectionPointToBlockOffset = require("../_chunks-cjs/util.selection-point-to-block-offset.cjs"), selector_isOverlappingSelection = require("../_chunks-cjs/selector.is-overlapping-selection.cjs"), selector_getTextBefore = require("../_chunks-cjs/selector.get-text-before.cjs"), useEffectEvent = require("use-effect-event"), behavior_markdown = require("../_chunks-cjs/behavior.markdown.cjs"), util_mergeTextBlocks = require("../_chunks-cjs/util.merge-text-blocks.cjs");
4
4
  function _interopDefaultCompat(e) {
5
5
  return e && typeof e == "object" && "default" in e ? e : { default: e };
6
6
  }
@@ -20,6 +20,11 @@ function BehaviorPlugin(props) {
20
20
  function _temp(unregister) {
21
21
  return unregister();
22
22
  }
23
+ function CoreBehaviorsPlugin() {
24
+ const $ = reactCompilerRuntime.c(1);
25
+ let t0;
26
+ return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(BehaviorPlugin, { behaviors: behavior_core.coreBehaviors }), $[0] = t0) : t0 = $[0], t0;
27
+ }
23
28
  function createPairRegex(char, amount) {
24
29
  const prePrefix = `(?<!\\${char})`, prefix = `\\${char}`.repeat(Math.max(amount, 1)), postPrefix = "(?!\\s)", content = `([^${char}\\n]+?)`, preSuffix = "(?<!\\s)", suffix = `\\${char}`.repeat(Math.max(amount, 1)), postSuffix = `(?!\\${char})`;
25
30
  return `${prePrefix}${prefix}${postPrefix}${content}${preSuffix}${suffix}${postSuffix}`;
@@ -492,6 +497,7 @@ function OneLinePlugin() {
492
497
  return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(BehaviorPlugin, { behaviors: oneLineBehaviors }), $[0] = t0) : t0 = $[0], t0;
493
498
  }
494
499
  exports.BehaviorPlugin = BehaviorPlugin;
500
+ exports.CoreBehaviorsPlugin = CoreBehaviorsPlugin;
495
501
  exports.DecoratorShortcutPlugin = DecoratorShortcutPlugin;
496
502
  exports.EditorRefPlugin = EditorRefPlugin;
497
503
  exports.EventListenerPlugin = EventListenerPlugin;