@atlaskit/editor-core 194.3.0 → 194.3.3

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.
@@ -350,7 +350,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
350
350
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
351
351
  commands: {
352
352
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
353
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
353
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
354
354
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
355
355
  };
356
356
  }, undefined>>,
@@ -605,7 +605,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
605
605
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
606
606
  commands: {
607
607
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
608
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
608
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
609
609
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
610
610
  };
611
611
  }, undefined>>,
@@ -940,7 +940,16 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
940
940
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
941
941
  ];
942
942
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
943
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
943
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
944
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
945
+ sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
946
+ commands: {
947
+ registerComponent: ({ name, component, }: {
948
+ name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
949
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
950
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
951
+ };
952
+ }, undefined>>
944
953
  ];
945
954
  actions: {
946
955
  getToolbarButton: (params: import("@atlaskit/editor-plugin-find-replace").FindReplaceToolbarButtonActionProps) => import("react").ReactNode;
@@ -1028,7 +1037,16 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1028
1037
  }) => boolean;
1029
1038
  isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
1030
1039
  };
1031
- }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>
1040
+ }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>,
1041
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
1042
+ sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
1043
+ commands: {
1044
+ registerComponent: ({ name, component, }: {
1045
+ name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
1046
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
1047
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
1048
+ };
1049
+ }, undefined>>
1032
1050
  ];
1033
1051
  actions: {
1034
1052
  getToolbarItem: ({ editorView, inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: {
@@ -1044,6 +1062,17 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1044
1062
  pluginConfiguration: {
1045
1063
  beforePrimaryToolbarComponents?: import("@atlaskit/editor-plugin-before-primary-toolbar").ReactComponents | undefined;
1046
1064
  };
1065
+ dependencies: [
1066
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
1067
+ sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
1068
+ commands: {
1069
+ registerComponent: ({ name, component, }: {
1070
+ name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
1071
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
1072
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
1073
+ };
1074
+ }, undefined>>
1075
+ ];
1047
1076
  }, {
1048
1077
  beforePrimaryToolbarComponents?: import("@atlaskit/editor-plugin-before-primary-toolbar").ReactComponents | undefined;
1049
1078
  }> | undefined,
@@ -1220,7 +1249,16 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1220
1249
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
1221
1250
  ];
1222
1251
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1223
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
1252
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
1253
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
1254
+ sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
1255
+ commands: {
1256
+ registerComponent: ({ name, component, }: {
1257
+ name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
1258
+ component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
1259
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
1260
+ };
1261
+ }, undefined>>
1224
1262
  ];
1225
1263
  }, {
1226
1264
  showIndentationButtons: boolean;
@@ -1487,7 +1525,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
1487
1525
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
1488
1526
  commands: {
1489
1527
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
1490
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
1528
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
1491
1529
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
1492
1530
  };
1493
1531
  }, undefined>>,
@@ -2111,7 +2149,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2111
2149
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
2112
2150
  commands: {
2113
2151
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2114
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2152
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2115
2153
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2116
2154
  };
2117
2155
  }, undefined>>,
@@ -2942,7 +2980,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
2942
2980
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
2943
2981
  commands: {
2944
2982
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
2945
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2983
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2946
2984
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2947
2985
  };
2948
2986
  }, undefined>>,
@@ -3662,7 +3700,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3662
3700
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
3663
3701
  commands: {
3664
3702
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3665
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3703
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
3666
3704
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3667
3705
  };
3668
3706
  }, undefined>>,
@@ -3920,7 +3958,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3920
3958
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
3921
3959
  commands: {
3922
3960
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
3923
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3961
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
3924
3962
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3925
3963
  };
3926
3964
  }, undefined>>,
@@ -4452,7 +4490,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4452
4490
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
4453
4491
  commands: {
4454
4492
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4455
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4493
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
4456
4494
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4457
4495
  };
4458
4496
  }, undefined>>,
@@ -4957,7 +4995,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4957
4995
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
4958
4996
  commands: {
4959
4997
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
4960
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4998
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
4961
4999
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4962
5000
  };
4963
5001
  }, undefined>>,
@@ -5212,7 +5250,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
5212
5250
  sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
5213
5251
  commands: {
5214
5252
  moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
5215
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5253
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5216
5254
  setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5217
5255
  };
5218
5256
  }, undefined>>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "194.3.0",
3
+ "version": "194.3.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^18.4.0",
48
- "@atlaskit/editor-common": "^85.0.0",
48
+ "@atlaskit/editor-common": "^86.0.0",
49
49
  "@atlaskit/editor-plugins": "^3.4.0",
50
50
  "@atlaskit/editor-prosemirror": "4.0.1",
51
51
  "@atlaskit/editor-shared-styles": "^2.13.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/spinner": "^16.2.0",
58
58
  "@atlaskit/task-decision": "^17.10.0",
59
59
  "@atlaskit/theme": "^12.11.0",
60
- "@atlaskit/tokens": "^1.54.0",
60
+ "@atlaskit/tokens": "^1.55.0",
61
61
  "@atlaskit/tooltip": "^18.5.0",
62
62
  "@atlaskit/width-detector": "^4.2.0",
63
63
  "@babel/runtime": "^7.0.0",
@@ -80,14 +80,14 @@
80
80
  "react-intl-next": "npm:react-intl@^5.18.1"
81
81
  },
82
82
  "devDependencies": {
83
- "@af/editor-examples-helpers": "0.0.16",
83
+ "@af/editor-examples-helpers": "0.0.17",
84
84
  "@af/editor-libra": "*",
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.4.0",
87
87
  "@atlaskit/analytics-listeners": "^8.10.0",
88
- "@atlaskit/collab-provider": "9.33.1",
88
+ "@atlaskit/collab-provider": "9.33.2",
89
89
  "@atlaskit/editor-json-transformer": "^8.15.0",
90
- "@atlaskit/editor-plugin-annotation": "1.15.0",
90
+ "@atlaskit/editor-plugin-annotation": "1.15.1",
91
91
  "@atlaskit/editor-plugin-card": "^2.6.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
93
93
  "@atlaskit/editor-plugin-list": "^3.5.0",
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/util-data-test": "^17.9.0",
108
108
  "@atlaskit/visual-regression": "*",
109
109
  "@atlassian/adf-schema-json": "^1.16.0",
110
- "@atlassian/search-provider": "2.4.94",
110
+ "@atlassian/search-provider": "2.4.95",
111
111
  "@emotion/jest": "^11.8.0",
112
112
  "@storybook/addon-knobs": "^5.3.18",
113
113
  "@testing-library/react": "^12.1.5",
@@ -310,10 +310,6 @@
310
310
  "type": "boolean",
311
311
  "referenceOnly": "true"
312
312
  },
313
- "platform.editor.linking-preferences-url-atlassian-context": {
314
- "type": "boolean",
315
- "referenceOnly": true
316
- },
317
313
  "platform_editor_get_card_provider_from_config": {
318
314
  "type": "boolean",
319
315
  "referenceOnly": true
@@ -325,6 +321,10 @@
325
321
  "platform_editor_element_drag_and_drop_ed_23842": {
326
322
  "type": "boolean",
327
323
  "referenceOnly": true
324
+ },
325
+ "react_18_tasks_and_decisions_concurrent_mode": {
326
+ "type": "boolean",
327
+ "referenceOnly": true
328
328
  }
329
329
  },
330
330
  "stricter": {