@atlaskit/editor-core 193.27.14 → 193.27.19

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.
@@ -481,7 +481,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
481
481
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
482
482
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
483
483
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
484
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
484
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
485
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
486
+ dependencies: [];
487
+ pluginConfiguration?: {
488
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
489
+ } | undefined;
490
+ commands: {
491
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
492
+ };
493
+ }, {
494
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
495
+ } | undefined>>];
485
496
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
486
497
  actions: {
487
498
  getAvatarColor: (str: string) => {
@@ -609,7 +620,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
609
620
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
610
621
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
611
622
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
612
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
623
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
624
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
625
+ dependencies: [];
626
+ pluginConfiguration?: {
627
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
628
+ } | undefined;
629
+ commands: {
630
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
631
+ };
632
+ }, {
633
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
634
+ } | undefined>>];
613
635
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
614
636
  actions: {
615
637
  getAvatarColor: (str: string) => {
@@ -719,7 +741,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
719
741
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
720
742
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
721
743
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
722
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
744
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
745
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
746
+ dependencies: [];
747
+ pluginConfiguration?: {
748
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
749
+ } | undefined;
750
+ commands: {
751
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
752
+ };
753
+ }, {
754
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
755
+ } | undefined>>];
723
756
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
724
757
  actions: {
725
758
  getAvatarColor: (str: string) => {
@@ -842,9 +875,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
842
875
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
843
876
  insert: (props: {
844
877
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
845
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
878
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
846
879
  query: string;
847
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
880
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
848
881
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
849
882
  }) => boolean;
850
883
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -1186,9 +1219,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1186
1219
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
1187
1220
  insert: (props: {
1188
1221
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
1189
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
1222
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
1190
1223
  query: string;
1191
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
1224
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
1192
1225
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
1193
1226
  }) => boolean;
1194
1227
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -1268,7 +1301,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1268
1301
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
1269
1302
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
1270
1303
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1271
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
1304
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
1305
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1306
+ dependencies: [];
1307
+ pluginConfiguration?: {
1308
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1309
+ } | undefined;
1310
+ commands: {
1311
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1312
+ };
1313
+ }, {
1314
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1315
+ } | undefined>>];
1272
1316
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
1273
1317
  actions: {
1274
1318
  getAvatarColor: (str: string) => {
@@ -1406,7 +1450,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1406
1450
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
1407
1451
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
1408
1452
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1409
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
1453
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
1454
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1455
+ dependencies: [];
1456
+ pluginConfiguration?: {
1457
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1458
+ } | undefined;
1459
+ commands: {
1460
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1461
+ };
1462
+ }, {
1463
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1464
+ } | undefined>>];
1410
1465
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
1411
1466
  actions: {
1412
1467
  getAvatarColor: (str: string) => {
@@ -1657,7 +1712,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1657
1712
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
1658
1713
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
1659
1714
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1660
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
1715
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
1716
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1717
+ dependencies: [];
1718
+ pluginConfiguration?: {
1719
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1720
+ } | undefined;
1721
+ commands: {
1722
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1723
+ };
1724
+ }, {
1725
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1726
+ } | undefined>>];
1661
1727
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
1662
1728
  actions: {
1663
1729
  getAvatarColor: (str: string) => {
@@ -1751,9 +1817,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1751
1817
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
1752
1818
  insert: (props: {
1753
1819
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
1754
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
1820
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
1755
1821
  query: string;
1756
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
1822
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
1757
1823
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
1758
1824
  }) => boolean;
1759
1825
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -1827,9 +1893,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1827
1893
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
1828
1894
  insert: (props: {
1829
1895
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
1830
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
1896
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
1831
1897
  query: string;
1832
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
1898
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
1833
1899
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
1834
1900
  }) => boolean;
1835
1901
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -1986,9 +2052,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1986
2052
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
1987
2053
  insert: (props: {
1988
2054
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
1989
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
2055
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
1990
2056
  query: string;
1991
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
2057
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
1992
2058
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
1993
2059
  }) => boolean;
1994
2060
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -2050,9 +2116,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2050
2116
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
2051
2117
  insert: (props: {
2052
2118
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
2053
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
2119
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
2054
2120
  query: string;
2055
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
2121
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
2056
2122
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
2057
2123
  }) => boolean;
2058
2124
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -2331,7 +2397,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2331
2397
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2332
2398
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2333
2399
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2334
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2400
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
2401
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2402
+ dependencies: [];
2403
+ pluginConfiguration?: {
2404
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2405
+ } | undefined;
2406
+ commands: {
2407
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2408
+ };
2409
+ }, {
2410
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2411
+ } | undefined>>];
2335
2412
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2336
2413
  actions: {
2337
2414
  getAvatarColor: (str: string) => {
@@ -2411,7 +2488,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2411
2488
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2412
2489
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2413
2490
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2414
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2491
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
2492
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2493
+ dependencies: [];
2494
+ pluginConfiguration?: {
2495
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2496
+ } | undefined;
2497
+ commands: {
2498
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2499
+ };
2500
+ }, {
2501
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2502
+ } | undefined>>];
2415
2503
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2416
2504
  actions: {
2417
2505
  getAvatarColor: (str: string) => {
@@ -2527,9 +2615,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2527
2615
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
2528
2616
  insert: (props: {
2529
2617
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
2530
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
2618
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
2531
2619
  query: string;
2532
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
2620
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
2533
2621
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
2534
2622
  }) => boolean;
2535
2623
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -3099,7 +3187,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3099
3187
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3100
3188
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3101
3189
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3102
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3190
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
3191
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3192
+ dependencies: [];
3193
+ pluginConfiguration?: {
3194
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3195
+ } | undefined;
3196
+ commands: {
3197
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3198
+ };
3199
+ }, {
3200
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3201
+ } | undefined>>];
3103
3202
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
3104
3203
  actions: {
3105
3204
  getAvatarColor: (str: string) => {
@@ -3178,9 +3277,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3178
3277
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
3179
3278
  insert: (props: {
3180
3279
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
3181
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
3280
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
3182
3281
  query: string;
3183
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
3282
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
3184
3283
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
3185
3284
  }) => boolean;
3186
3285
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -3223,9 +3322,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3223
3322
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
3224
3323
  insert: (props: {
3225
3324
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
3226
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
3325
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
3227
3326
  query: string;
3228
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
3327
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
3229
3328
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
3230
3329
  }) => boolean;
3231
3330
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -3562,9 +3661,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3562
3661
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
3563
3662
  insert: (props: {
3564
3663
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
3565
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
3664
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
3566
3665
  query: string;
3567
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
3666
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
3568
3667
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
3569
3668
  }) => boolean;
3570
3669
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -3625,9 +3724,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3625
3724
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
3626
3725
  insert: (props: {
3627
3726
  triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
3628
- contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
3727
+ contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
3629
3728
  query: string;
3630
- sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
3729
+ sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
3631
3730
  mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
3632
3731
  }) => boolean;
3633
3732
  findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
@@ -4139,7 +4238,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4139
4238
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
4140
4239
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
4141
4240
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
4142
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
4241
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
4242
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
4243
+ dependencies: [];
4244
+ pluginConfiguration?: {
4245
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4246
+ } | undefined;
4247
+ commands: {
4248
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
4249
+ };
4250
+ }, {
4251
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4252
+ } | undefined>>];
4143
4253
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
4144
4254
  actions: {
4145
4255
  getAvatarColor: (str: string) => {
@@ -4267,7 +4377,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4267
4377
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
4268
4378
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
4269
4379
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
4270
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
4380
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
4381
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
4382
+ dependencies: [];
4383
+ pluginConfiguration?: {
4384
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4385
+ } | undefined;
4386
+ commands: {
4387
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
4388
+ };
4389
+ }, {
4390
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4391
+ } | undefined>>];
4271
4392
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
4272
4393
  actions: {
4273
4394
  getAvatarColor: (str: string) => {
@@ -674,7 +674,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
674
674
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
675
675
  ];
676
676
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
677
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
677
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
678
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
679
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
680
+ dependencies: [
681
+ ];
682
+ pluginConfiguration?: {
683
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
684
+ } | undefined;
685
+ commands: {
686
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
687
+ };
688
+ }, {
689
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
690
+ } | undefined>>
678
691
  ];
679
692
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
680
693
  actions: {
@@ -829,7 +842,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
829
842
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
830
843
  ];
831
844
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
832
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
845
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
846
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
847
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
848
+ dependencies: [
849
+ ];
850
+ pluginConfiguration?: {
851
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
852
+ } | undefined;
853
+ commands: {
854
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
855
+ };
856
+ }, {
857
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
858
+ } | undefined>>
833
859
  ];
834
860
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
835
861
  actions: {
@@ -964,7 +990,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
964
990
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
965
991
  ];
966
992
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
967
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
993
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
994
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
995
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
996
+ dependencies: [
997
+ ];
998
+ pluginConfiguration?: {
999
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1000
+ } | undefined;
1001
+ commands: {
1002
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1003
+ };
1004
+ }, {
1005
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1006
+ } | undefined>>
968
1007
  ];
969
1008
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
970
1009
  actions: {
@@ -1633,7 +1672,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1633
1672
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
1634
1673
  ];
1635
1674
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1636
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
1675
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
1676
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
1677
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1678
+ dependencies: [
1679
+ ];
1680
+ pluginConfiguration?: {
1681
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1682
+ } | undefined;
1683
+ commands: {
1684
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1685
+ };
1686
+ }, {
1687
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1688
+ } | undefined>>
1637
1689
  ];
1638
1690
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
1639
1691
  actions: {
@@ -1800,7 +1852,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1800
1852
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
1801
1853
  ];
1802
1854
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1803
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
1855
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
1856
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
1857
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1858
+ dependencies: [
1859
+ ];
1860
+ pluginConfiguration?: {
1861
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1862
+ } | undefined;
1863
+ commands: {
1864
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1865
+ };
1866
+ }, {
1867
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1868
+ } | undefined>>
1804
1869
  ];
1805
1870
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
1806
1871
  actions: {
@@ -2111,7 +2176,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2111
2176
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
2112
2177
  ];
2113
2178
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2114
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
2179
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
2180
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
2181
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2182
+ dependencies: [
2183
+ ];
2184
+ pluginConfiguration?: {
2185
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2186
+ } | undefined;
2187
+ commands: {
2188
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2189
+ };
2190
+ }, {
2191
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2192
+ } | undefined>>
2115
2193
  ];
2116
2194
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2117
2195
  actions: {
@@ -2929,7 +3007,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2929
3007
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
2930
3008
  ];
2931
3009
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2932
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
3010
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
3011
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3012
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3013
+ dependencies: [
3014
+ ];
3015
+ pluginConfiguration?: {
3016
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3017
+ } | undefined;
3018
+ commands: {
3019
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3020
+ };
3021
+ }, {
3022
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3023
+ } | undefined>>
2933
3024
  ];
2934
3025
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2935
3026
  actions: {
@@ -3026,7 +3117,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3026
3117
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
3027
3118
  ];
3028
3119
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3029
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
3120
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
3121
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3122
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3123
+ dependencies: [
3124
+ ];
3125
+ pluginConfiguration?: {
3126
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3127
+ } | undefined;
3128
+ commands: {
3129
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3130
+ };
3131
+ }, {
3132
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3133
+ } | undefined>>
3030
3134
  ];
3031
3135
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
3032
3136
  actions: {
@@ -3881,7 +3985,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3881
3985
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
3882
3986
  ];
3883
3987
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3884
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
3988
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
3989
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3990
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3991
+ dependencies: [
3992
+ ];
3993
+ pluginConfiguration?: {
3994
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3995
+ } | undefined;
3996
+ commands: {
3997
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3998
+ };
3999
+ }, {
4000
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4001
+ } | undefined>>
3885
4002
  ];
3886
4003
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
3887
4004
  actions: {
@@ -5154,7 +5271,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
5154
5271
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
5155
5272
  ];
5156
5273
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
5157
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
5274
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
5275
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
5276
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
5277
+ dependencies: [
5278
+ ];
5279
+ pluginConfiguration?: {
5280
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
5281
+ } | undefined;
5282
+ commands: {
5283
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
5284
+ };
5285
+ }, {
5286
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
5287
+ } | undefined>>
5158
5288
  ];
5159
5289
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
5160
5290
  actions: {
@@ -5309,7 +5439,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
5309
5439
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
5310
5440
  ];
5311
5441
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
5312
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
5442
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
5443
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
5444
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
5445
+ dependencies: [
5446
+ ];
5447
+ pluginConfiguration?: {
5448
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
5449
+ } | undefined;
5450
+ commands: {
5451
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
5452
+ };
5453
+ }, {
5454
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
5455
+ } | undefined>>
5313
5456
  ];
5314
5457
  sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
5315
5458
  actions: {