@atlaskit/editor-core 187.15.1 → 187.16.1

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 (79) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/create-editor/feature-flags-from-props.js +23 -25
  3. package/dist/cjs/index.js +0 -7
  4. package/dist/cjs/plugins/media/toolbar/alt-text.js +5 -2
  5. package/dist/cjs/plugins/media/toolbar/index.js +7 -5
  6. package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +3 -4
  7. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  8. package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +13 -4
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/cjs/version.json +1 -1
  11. package/dist/es2019/create-editor/feature-flags-from-props.js +23 -25
  12. package/dist/es2019/index.js +0 -1
  13. package/dist/es2019/plugins/media/toolbar/alt-text.js +6 -4
  14. package/dist/es2019/plugins/media/toolbar/index.js +7 -5
  15. package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +1 -1
  16. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  17. package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +13 -4
  18. package/dist/es2019/version-wrapper.js +1 -1
  19. package/dist/es2019/version.json +1 -1
  20. package/dist/esm/create-editor/feature-flags-from-props.js +23 -25
  21. package/dist/esm/index.js +0 -1
  22. package/dist/esm/plugins/media/toolbar/alt-text.js +6 -4
  23. package/dist/esm/plugins/media/toolbar/index.js +7 -5
  24. package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +1 -1
  25. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  26. package/dist/esm/plugins/panel/pm-plugins/keymaps.js +13 -4
  27. package/dist/esm/version-wrapper.js +1 -1
  28. package/dist/esm/version.json +1 -1
  29. package/dist/types/index.d.ts +0 -5
  30. package/dist/types/plugins/annotation/toolbar.d.ts +1 -1
  31. package/dist/types/plugins/code-block/toolbar.d.ts +1 -2
  32. package/dist/types/plugins/copy-button/toolbar.d.ts +1 -1
  33. package/dist/types/plugins/expand/toolbar.d.ts +1 -1
  34. package/dist/types/plugins/extension/toolbar.d.ts +1 -1
  35. package/dist/types/plugins/floating-toolbar/index.d.ts +3 -6
  36. package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +2 -2
  37. package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +2 -2
  38. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +1 -1
  39. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -1
  40. package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +2 -2
  41. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
  42. package/dist/types/plugins/layout/index.d.ts +1 -1
  43. package/dist/types/plugins/layout/toolbar.d.ts +1 -1
  44. package/dist/types/plugins/media/toolbar/alt-text.d.ts +3 -1
  45. package/dist/types/plugins/media/toolbar/index.d.ts +1 -1
  46. package/dist/types/plugins/media/toolbar/linking.d.ts +1 -1
  47. package/dist/types/plugins/panel/toolbar.d.ts +1 -1
  48. package/dist/types-ts4.5/index.d.ts +0 -5
  49. package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +1 -1
  50. package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +1 -2
  51. package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +1 -1
  52. package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +1 -1
  53. package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +1 -1
  54. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +3 -6
  55. package/dist/types-ts4.5/plugins/floating-toolbar/ui/CheckboxModal.d.ts +2 -2
  56. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +2 -2
  57. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Dropdown.d.ts +1 -1
  58. package/dist/types-ts4.5/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -1
  59. package/dist/types-ts4.5/plugins/floating-toolbar/ui/SimpleModal.d.ts +2 -2
  60. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
  61. package/dist/types-ts4.5/plugins/layout/index.d.ts +1 -1
  62. package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +1 -1
  63. package/dist/types-ts4.5/plugins/media/toolbar/alt-text.d.ts +3 -1
  64. package/dist/types-ts4.5/plugins/media/toolbar/index.d.ts +1 -1
  65. package/dist/types-ts4.5/plugins/media/toolbar/linking.d.ts +1 -1
  66. package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +1 -1
  67. package/package.json +2 -2
  68. package/report.api.md +0 -46
  69. package/tmp/api-report-tmp.d.ts +0 -44
  70. package/dist/cjs/plugins/floating-toolbar/types.js +0 -5
  71. package/dist/cjs/plugins/floating-toolbar/ui/types.js +0 -5
  72. package/dist/es2019/plugins/floating-toolbar/types.js +0 -1
  73. package/dist/es2019/plugins/floating-toolbar/ui/types.js +0 -1
  74. package/dist/esm/plugins/floating-toolbar/types.js +0 -1
  75. package/dist/esm/plugins/floating-toolbar/ui/types.js +0 -1
  76. package/dist/types/plugins/floating-toolbar/types.d.ts +0 -1
  77. package/dist/types/plugins/floating-toolbar/ui/types.d.ts +0 -1
  78. package/dist/types-ts4.5/plugins/floating-toolbar/types.d.ts +0 -1
  79. package/dist/types-ts4.5/plugins/floating-toolbar/ui/types.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.15.1";
2
+ export const version = "187.16.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.15.1",
3
+ "version": "187.16.1",
4
4
  "sideEffects": false
5
5
  }
@@ -25,9 +25,8 @@ function getSpellCheck(featureFlags) {
25
25
  * which is used by both current and archv3 editors.
26
26
  */
27
27
  export function createFeatureFlagsFromProps(props) {
28
- var _props$featureFlags, _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$featureFlags2, _props$featureFlags3, _props$allowTables, _props$featureFlags4, _props$featureFlags5, _props$allowTables2, _props$featureFlags6, _props$featureFlags7, _props$allowTables3, _props$featureFlags8, _props$featureFlags9, _props$allowTables4, _props$allowTables5, _props$featureFlags10, _props$featureFlags11, _props$allowTables6, _props$allowExtension, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27, _props$featureFlags28, _props$featureFlags29, _props$collabEdit, _props$collabEdit2, _props$featureFlags30, _props$featureFlags31, _props$featureFlags32, _props$featureFlags33, _props$featureFlags34, _props$featureFlags35, _props$featureFlags36, _props$featureFlags37, _props$featureFlags38, _props$featureFlags39, _props$featureFlags40, _props$featureFlags41, _props$featureFlags42;
28
+ var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$featureFlags, _props$featureFlags2, _props$allowTables, _props$featureFlags3, _props$featureFlags4, _props$allowTables2, _props$featureFlags5, _props$featureFlags6, _props$allowTables3, _props$featureFlags7, _props$featureFlags8, _props$allowTables4, _props$allowTables5, _props$featureFlags9, _props$featureFlags10, _props$allowTables6, _props$allowExtension, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27, _props$featureFlags28, _props$collabEdit, _props$collabEdit2, _props$featureFlags29, _props$featureFlags30, _props$featureFlags31, _props$featureFlags32, _props$featureFlags33, _props$featureFlags34, _props$featureFlags35, _props$featureFlags36, _props$featureFlags37, _props$featureFlags38, _props$featureFlags39, _props$featureFlags40, _props$featureFlags41;
29
29
  var normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
30
- var tableCellOptionsInFloatingToolbar = normalizedFeatureFlags.tableCellOptionsInFloatingToolbar || ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.tableCellOptionsInFloatingToolbar) || undefined;
31
30
  return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
32
31
  newInsertionBehaviour: props.allowNewInsertionBehaviour,
33
32
  interactiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
@@ -38,34 +37,33 @@ export function createFeatureFlagsFromProps(props) {
38
37
  singleLayout: _typeof(props.allowLayouts) === 'object' && !!((_props$allowLayouts = props.allowLayouts) !== null && _props$allowLayouts !== void 0 && _props$allowLayouts.UNSAFE_allowSingleColumnLayout),
39
38
  undoRedoButtons: props.allowUndoRedoButtons,
40
39
  catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.catchAllTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled,
41
- stickyHeadersOptimization: typeof ((_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.stickyHeadersOptimization) === 'boolean' ? !!((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.stickyHeadersOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables = props.allowTables) !== null && _props$allowTables !== void 0 && _props$allowTables.stickyHeadersOptimization),
42
- initialRenderOptimization: typeof ((_props$featureFlags4 = props.featureFlags) === null || _props$featureFlags4 === void 0 ? void 0 : _props$featureFlags4.initialRenderOptimization) === 'boolean' ? !!((_props$featureFlags5 = props.featureFlags) !== null && _props$featureFlags5 !== void 0 && _props$featureFlags5.initialRenderOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables2 = props.allowTables) !== null && _props$allowTables2 !== void 0 && _props$allowTables2.initialRenderOptimization),
43
- mouseMoveOptimization: typeof ((_props$featureFlags6 = props.featureFlags) === null || _props$featureFlags6 === void 0 ? void 0 : _props$featureFlags6.mouseMoveOptimization) === 'boolean' ? !!((_props$featureFlags7 = props.featureFlags) !== null && _props$featureFlags7 !== void 0 && _props$featureFlags7.mouseMoveOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables3 = props.allowTables) !== null && _props$allowTables3 !== void 0 && _props$allowTables3.mouseMoveOptimization),
44
- tableRenderOptimization: typeof ((_props$featureFlags8 = props.featureFlags) === null || _props$featureFlags8 === void 0 ? void 0 : _props$featureFlags8.tableRenderOptimization) === 'boolean' ? !!((_props$featureFlags9 = props.featureFlags) !== null && _props$featureFlags9 !== void 0 && _props$featureFlags9.tableRenderOptimization) : _typeof(props.allowTables) === 'object' && typeof ((_props$allowTables4 = props.allowTables) === null || _props$allowTables4 === void 0 ? void 0 : _props$allowTables4.tableRenderOptimization) === 'boolean' ? (_props$allowTables5 = props.allowTables) === null || _props$allowTables5 === void 0 ? void 0 : _props$allowTables5.tableRenderOptimization : true,
45
- tableOverflowShadowsOptimization: typeof ((_props$featureFlags10 = props.featureFlags) === null || _props$featureFlags10 === void 0 ? void 0 : _props$featureFlags10.tableOverflowShadowsOptimization) === 'boolean' ? !!((_props$featureFlags11 = props.featureFlags) !== null && _props$featureFlags11 !== void 0 && _props$featureFlags11.tableOverflowShadowsOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables6 = props.allowTables) !== null && _props$allowTables6 !== void 0 && _props$allowTables6.tableOverflowShadowsOptimization),
40
+ stickyHeadersOptimization: typeof ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.stickyHeadersOptimization) === 'boolean' ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.stickyHeadersOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables = props.allowTables) !== null && _props$allowTables !== void 0 && _props$allowTables.stickyHeadersOptimization),
41
+ initialRenderOptimization: typeof ((_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.initialRenderOptimization) === 'boolean' ? !!((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.initialRenderOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables2 = props.allowTables) !== null && _props$allowTables2 !== void 0 && _props$allowTables2.initialRenderOptimization),
42
+ mouseMoveOptimization: typeof ((_props$featureFlags5 = props.featureFlags) === null || _props$featureFlags5 === void 0 ? void 0 : _props$featureFlags5.mouseMoveOptimization) === 'boolean' ? !!((_props$featureFlags6 = props.featureFlags) !== null && _props$featureFlags6 !== void 0 && _props$featureFlags6.mouseMoveOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables3 = props.allowTables) !== null && _props$allowTables3 !== void 0 && _props$allowTables3.mouseMoveOptimization),
43
+ tableRenderOptimization: typeof ((_props$featureFlags7 = props.featureFlags) === null || _props$featureFlags7 === void 0 ? void 0 : _props$featureFlags7.tableRenderOptimization) === 'boolean' ? !!((_props$featureFlags8 = props.featureFlags) !== null && _props$featureFlags8 !== void 0 && _props$featureFlags8.tableRenderOptimization) : _typeof(props.allowTables) === 'object' && typeof ((_props$allowTables4 = props.allowTables) === null || _props$allowTables4 === void 0 ? void 0 : _props$allowTables4.tableRenderOptimization) === 'boolean' ? (_props$allowTables5 = props.allowTables) === null || _props$allowTables5 === void 0 ? void 0 : _props$allowTables5.tableRenderOptimization : true,
44
+ tableOverflowShadowsOptimization: typeof ((_props$featureFlags9 = props.featureFlags) === null || _props$featureFlags9 === void 0 ? void 0 : _props$featureFlags9.tableOverflowShadowsOptimization) === 'boolean' ? !!((_props$featureFlags10 = props.featureFlags) !== null && _props$featureFlags10 !== void 0 && _props$featureFlags10.tableOverflowShadowsOptimization) : _typeof(props.allowTables) === 'object' && !!((_props$allowTables6 = props.allowTables) !== null && _props$allowTables6 !== void 0 && _props$allowTables6.tableOverflowShadowsOptimization),
46
45
  extendFloatingToolbar: Boolean(_typeof(props.allowExtension) === 'object' && ((_props$allowExtension = props.allowExtension) === null || _props$allowExtension === void 0 ? void 0 : _props$allowExtension.allowExtendFloatingToolbars)),
47
- showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags12 = props.featureFlags) === null || _props$featureFlags12 === void 0 ? void 0 : _props$featureFlags12.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags13 = props.featureFlags) !== null && _props$featureFlags13 !== void 0 && _props$featureFlags13.showAvatarGroupAsPlugin) : false),
48
- errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags14 = props.featureFlags) === null || _props$featureFlags14 === void 0 ? void 0 : _props$featureFlags14.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags15 = props.featureFlags) !== null && _props$featureFlags15 !== void 0 && _props$featureFlags15.useErrorBoundaryDocStructure) : false),
49
- synchronyErrorDocStructure: Boolean(typeof ((_props$featureFlags16 = props.featureFlags) === null || _props$featureFlags16 === void 0 ? void 0 : _props$featureFlags16.synchronyErrorDocStructure) === 'boolean' ? !!((_props$featureFlags17 = props.featureFlags) !== null && _props$featureFlags17 !== void 0 && _props$featureFlags17.synchronyErrorDocStructure) : false),
50
- enableViewUpdateSubscription: Boolean(typeof ((_props$featureFlags18 = props.featureFlags) === null || _props$featureFlags18 === void 0 ? void 0 : _props$featureFlags18.enableViewUpdateSubscription) === 'boolean' ? !!((_props$featureFlags19 = props.featureFlags) !== null && _props$featureFlags19 !== void 0 && _props$featureFlags19.enableViewUpdateSubscription) : false),
51
- collabAvatarScroll: Boolean(typeof ((_props$featureFlags20 = props.featureFlags) === null || _props$featureFlags20 === void 0 ? void 0 : _props$featureFlags20.collabAvatarScroll) === 'boolean' ? !!((_props$featureFlags21 = props.featureFlags) !== null && _props$featureFlags21 !== void 0 && _props$featureFlags21.collabAvatarScroll) : false),
52
- ufo: Boolean(typeof ((_props$featureFlags22 = props.featureFlags) === null || _props$featureFlags22 === void 0 ? void 0 : _props$featureFlags22.ufo) === 'boolean' ? !!((_props$featureFlags23 = props.featureFlags) !== null && _props$featureFlags23 !== void 0 && _props$featureFlags23.ufo) : false),
53
- twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags24 = props.featureFlags) === null || _props$featureFlags24 === void 0 ? void 0 : _props$featureFlags24.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags25 = props.featureFlags) !== null && _props$featureFlags25 !== void 0 && _props$featureFlags25.twoLineEditorToolbar) : false),
54
- saferDispatchedTransactions: Boolean(typeof normalizedFeatureFlags.saferDispatchedTransactions === 'boolean' && !!normalizedFeatureFlags.saferDispatchedTransactions || (typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26.saferDispatchedTransactions) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27.saferDispatchedTransactions) : false)),
55
- saferDispatchedTransactionsAnalyticsOnly: Boolean(typeof normalizedFeatureFlags.saferDispatchedTransactionsAnalyticsOnly === 'boolean' && !!normalizedFeatureFlags.saferDispatchedTransactionsAnalyticsOnly || (typeof ((_props$featureFlags28 = props.featureFlags) === null || _props$featureFlags28 === void 0 ? void 0 : _props$featureFlags28.saferDispatchedTransactionsAnalyticsOnly) === 'boolean' ? !!((_props$featureFlags29 = props.featureFlags) !== null && _props$featureFlags29 !== void 0 && _props$featureFlags29.saferDispatchedTransactionsAnalyticsOnly) : false)),
46
+ showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags11 = props.featureFlags) === null || _props$featureFlags11 === void 0 ? void 0 : _props$featureFlags11.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags12 = props.featureFlags) !== null && _props$featureFlags12 !== void 0 && _props$featureFlags12.showAvatarGroupAsPlugin) : false),
47
+ errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags13 = props.featureFlags) === null || _props$featureFlags13 === void 0 ? void 0 : _props$featureFlags13.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags14 = props.featureFlags) !== null && _props$featureFlags14 !== void 0 && _props$featureFlags14.useErrorBoundaryDocStructure) : false),
48
+ synchronyErrorDocStructure: Boolean(typeof ((_props$featureFlags15 = props.featureFlags) === null || _props$featureFlags15 === void 0 ? void 0 : _props$featureFlags15.synchronyErrorDocStructure) === 'boolean' ? !!((_props$featureFlags16 = props.featureFlags) !== null && _props$featureFlags16 !== void 0 && _props$featureFlags16.synchronyErrorDocStructure) : false),
49
+ enableViewUpdateSubscription: Boolean(typeof ((_props$featureFlags17 = props.featureFlags) === null || _props$featureFlags17 === void 0 ? void 0 : _props$featureFlags17.enableViewUpdateSubscription) === 'boolean' ? !!((_props$featureFlags18 = props.featureFlags) !== null && _props$featureFlags18 !== void 0 && _props$featureFlags18.enableViewUpdateSubscription) : false),
50
+ collabAvatarScroll: Boolean(typeof ((_props$featureFlags19 = props.featureFlags) === null || _props$featureFlags19 === void 0 ? void 0 : _props$featureFlags19.collabAvatarScroll) === 'boolean' ? !!((_props$featureFlags20 = props.featureFlags) !== null && _props$featureFlags20 !== void 0 && _props$featureFlags20.collabAvatarScroll) : false),
51
+ ufo: Boolean(typeof ((_props$featureFlags21 = props.featureFlags) === null || _props$featureFlags21 === void 0 ? void 0 : _props$featureFlags21.ufo) === 'boolean' ? !!((_props$featureFlags22 = props.featureFlags) !== null && _props$featureFlags22 !== void 0 && _props$featureFlags22.ufo) : false),
52
+ twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags23 = props.featureFlags) === null || _props$featureFlags23 === void 0 ? void 0 : _props$featureFlags23.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags24 = props.featureFlags) !== null && _props$featureFlags24 !== void 0 && _props$featureFlags24.twoLineEditorToolbar) : false),
53
+ saferDispatchedTransactions: Boolean(typeof normalizedFeatureFlags.saferDispatchedTransactions === 'boolean' && !!normalizedFeatureFlags.saferDispatchedTransactions || (typeof ((_props$featureFlags25 = props.featureFlags) === null || _props$featureFlags25 === void 0 ? void 0 : _props$featureFlags25.saferDispatchedTransactions) === 'boolean' ? !!((_props$featureFlags26 = props.featureFlags) !== null && _props$featureFlags26 !== void 0 && _props$featureFlags26.saferDispatchedTransactions) : false)),
54
+ saferDispatchedTransactionsAnalyticsOnly: Boolean(typeof normalizedFeatureFlags.saferDispatchedTransactionsAnalyticsOnly === 'boolean' && !!normalizedFeatureFlags.saferDispatchedTransactionsAnalyticsOnly || (typeof ((_props$featureFlags27 = props.featureFlags) === null || _props$featureFlags27 === void 0 ? void 0 : _props$featureFlags27.saferDispatchedTransactionsAnalyticsOnly) === 'boolean' ? !!((_props$featureFlags28 = props.featureFlags) !== null && _props$featureFlags28 !== void 0 && _props$featureFlags28.saferDispatchedTransactionsAnalyticsOnly) : false)),
56
55
  useNativeCollabPlugin: Boolean(typeof ((_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.useNativePlugin) === 'boolean' ? !!((_props$collabEdit2 = props.collabEdit) !== null && _props$collabEdit2 !== void 0 && _props$collabEdit2.useNativePlugin) : false),
57
- chromeCursorHandlerFixedVersion: typeof ((_props$featureFlags30 = props.featureFlags) === null || _props$featureFlags30 === void 0 ? void 0 : _props$featureFlags30.chromeCursorHandlerFixedVersion) === 'string' ? Number(props.featureFlags.chromeCursorHandlerFixedVersion) || undefined : undefined,
58
- tableCellOptionsInFloatingToolbar: typeof tableCellOptionsInFloatingToolbar === 'boolean' ? tableCellOptionsInFloatingToolbar : false,
59
- showHoverPreview: Boolean(typeof ((_props$featureFlags31 = props.featureFlags) === null || _props$featureFlags31 === void 0 ? void 0 : _props$featureFlags31.showHoverPreview) === 'boolean' ? !!((_props$featureFlags32 = props.featureFlags) !== null && _props$featureFlags32 !== void 0 && _props$featureFlags32.showHoverPreview) : false),
60
- indentationButtonsInTheToolbar: Boolean(typeof normalizedFeatureFlags.indentationButtonsInTheToolbar === 'boolean' && !!normalizedFeatureFlags.indentationButtonsInTheToolbar || (typeof ((_props$featureFlags33 = props.featureFlags) === null || _props$featureFlags33 === void 0 ? void 0 : _props$featureFlags33.indentationButtonsInTheToolbar) === 'boolean' ? !!((_props$featureFlags34 = props.featureFlags) !== null && _props$featureFlags34 !== void 0 && _props$featureFlags34.indentationButtonsInTheToolbar) : false)),
61
- floatingToolbarCopyButton: Boolean(typeof normalizedFeatureFlags.floatingToolbarCopyButton === 'boolean' && !!normalizedFeatureFlags.floatingToolbarCopyButton || (typeof ((_props$featureFlags35 = props.featureFlags) === null || _props$featureFlags35 === void 0 ? void 0 : _props$featureFlags35.floatingToolbarCopyButton) === 'boolean' ? !!((_props$featureFlags36 = props.featureFlags) !== null && _props$featureFlags36 !== void 0 && _props$featureFlags36.floatingToolbarCopyButton) : false)),
62
- floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags37 = props.featureFlags) === null || _props$featureFlags37 === void 0 ? void 0 : _props$featureFlags37['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
56
+ chromeCursorHandlerFixedVersion: typeof ((_props$featureFlags29 = props.featureFlags) === null || _props$featureFlags29 === void 0 ? void 0 : _props$featureFlags29.chromeCursorHandlerFixedVersion) === 'string' ? Number(props.featureFlags.chromeCursorHandlerFixedVersion) || undefined : undefined,
57
+ showHoverPreview: Boolean(typeof ((_props$featureFlags30 = props.featureFlags) === null || _props$featureFlags30 === void 0 ? void 0 : _props$featureFlags30.showHoverPreview) === 'boolean' ? !!((_props$featureFlags31 = props.featureFlags) !== null && _props$featureFlags31 !== void 0 && _props$featureFlags31.showHoverPreview) : false),
58
+ indentationButtonsInTheToolbar: Boolean(typeof normalizedFeatureFlags.indentationButtonsInTheToolbar === 'boolean' && !!normalizedFeatureFlags.indentationButtonsInTheToolbar || (typeof ((_props$featureFlags32 = props.featureFlags) === null || _props$featureFlags32 === void 0 ? void 0 : _props$featureFlags32.indentationButtonsInTheToolbar) === 'boolean' ? !!((_props$featureFlags33 = props.featureFlags) !== null && _props$featureFlags33 !== void 0 && _props$featureFlags33.indentationButtonsInTheToolbar) : false)),
59
+ floatingToolbarCopyButton: Boolean(typeof normalizedFeatureFlags.floatingToolbarCopyButton === 'boolean' && !!normalizedFeatureFlags.floatingToolbarCopyButton || (typeof ((_props$featureFlags34 = props.featureFlags) === null || _props$featureFlags34 === void 0 ? void 0 : _props$featureFlags34.floatingToolbarCopyButton) === 'boolean' ? !!((_props$featureFlags35 = props.featureFlags) !== null && _props$featureFlags35 !== void 0 && _props$featureFlags35.floatingToolbarCopyButton) : false)),
60
+ floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags36 = props.featureFlags) === null || _props$featureFlags36 === void 0 ? void 0 : _props$featureFlags36['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
63
61
  disableSpellcheckByBrowser: getSpellCheck(props.featureFlags),
64
62
  // Including fallback to props.featureFlags so that mobile feature flags
65
63
  // are included (they are not kebab cased)
66
- restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags38 = props.featureFlags) === null || _props$featureFlags38 === void 0 ? void 0 : _props$featureFlags38.restartNumberedLists) === true,
67
- useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags39 = props.featureFlags) === null || _props$featureFlags39 === void 0 ? void 0 : _props$featureFlags39.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags40 = props.featureFlags) !== null && _props$featureFlags40 !== void 0 && _props$featureFlags40.useSomewhatSemanticTextColorNames) : false)),
64
+ restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags37 = props.featureFlags) === null || _props$featureFlags37 === void 0 ? void 0 : _props$featureFlags37.restartNumberedLists) === true,
65
+ useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags38 = props.featureFlags) === null || _props$featureFlags38 === void 0 ? void 0 : _props$featureFlags38.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags39 = props.featureFlags) !== null && _props$featureFlags39 !== void 0 && _props$featureFlags39.useSomewhatSemanticTextColorNames) : false)),
68
66
  lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
69
- preventPopupOverflow: Boolean(typeof ((_props$featureFlags41 = props.featureFlags) === null || _props$featureFlags41 === void 0 ? void 0 : _props$featureFlags41['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags42 = props.featureFlags) !== null && _props$featureFlags42 !== void 0 && _props$featureFlags42['prevent-popup-overflow']) : false)
67
+ preventPopupOverflow: Boolean(typeof ((_props$featureFlags40 = props.featureFlags) === null || _props$featureFlags40 === void 0 ? void 0 : _props$featureFlags40['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags41 = props.featureFlags) !== null && _props$featureFlags41 !== void 0 && _props$featureFlags41['prevent-popup-overflow']) : false)
70
68
  });
71
69
  }
package/dist/esm/index.js CHANGED
@@ -52,7 +52,6 @@ export { GapCursorSelection, Side as GapCursorSide } from './plugins/selection/g
52
52
  export { selectionPluginKey } from './plugins/mobile-selection';
53
53
  export { insertExpand } from './plugins/expand/commands';
54
54
  export { default as WithPluginState } from './ui/WithPluginState';
55
- export { pluginKey as floatingToolbarPluginKey } from './plugins/floating-toolbar';
56
55
  export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ui/ColorPalette/Palettes/statusColorPalette';
57
56
  export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
58
57
  export { default as messages, statusMessages, dateMessages } from './messages';
@@ -5,11 +5,9 @@ import React from 'react';
5
5
  import { openMediaAltTextMenu } from '../pm-plugins/alt-text/commands';
6
6
  import { ToolTipContent, addAltText } from '../../../keymaps';
7
7
  import { messages } from '../pm-plugins/alt-text/messages';
8
- import AltTextEdit from '../pm-plugins/alt-text/ui/AltTextEdit';
9
- import { CONTAINER_WIDTH_IN_PX } from '../pm-plugins/alt-text/ui/AltTextEdit';
8
+ import AltTextEdit, { CONTAINER_WIDTH_IN_PX } from '../pm-plugins/alt-text/ui/AltTextEdit';
10
9
  import { getMediaNodeFromSelection } from '../utils/media-common';
11
10
  import { ClassNames } from '../pm-plugins/alt-text/style';
12
- import { forceFocusSelector } from '../../floating-toolbar/pm-plugins/force-focus';
13
11
  var testId = 'alt-text-edit-button';
14
12
  export var altTextButton = function altTextButton(intl, state) {
15
13
  var mediaNode = getMediaNodeFromSelection(state);
@@ -45,9 +43,13 @@ export var altTextEditComponent = function altTextEditComponent(options) {
45
43
  * and not close the floating toolbar.
46
44
  */
47
45
  var handleEsc = function handleEsc() {
46
+ var _options$forceFocusSe;
48
47
  var tr = view.state.tr,
49
48
  dispatch = view.dispatch;
50
- dispatch(forceFocusSelector("[data-testid=\"".concat(testId, "\"]"))(tr));
49
+ var newTr = options === null || options === void 0 ? void 0 : (_options$forceFocusSe = options.forceFocusSelector) === null || _options$forceFocusSe === void 0 ? void 0 : _options$forceFocusSe.call(options, "[data-testid=\"".concat(testId, "\"]"))(tr);
50
+ if (newTr) {
51
+ dispatch(newTr);
52
+ }
51
53
  };
52
54
  return /*#__PURE__*/React.createElement(AltTextEdit, {
53
55
  view: view,
@@ -418,8 +418,10 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
418
418
  if (allowAltTextOnImages) {
419
419
  var mediaAltTextPluginState = getMediaAltTextPluginState(state);
420
420
  if (mediaAltTextPluginState.isAltTextEditorOpen) {
421
+ var _pluginInjectionApi$d9;
421
422
  return getAltTextToolbar(baseToolbar, {
422
- altTextValidator: altTextValidator
423
+ altTextValidator: altTextValidator,
424
+ forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d9 = pluginInjectionApi.dependencies.floatingToolbar.actions) === null || _pluginInjectionApi$d9 === void 0 ? void 0 : _pluginInjectionApi$d9.forceFocusSelector
423
425
  });
424
426
  }
425
427
  }
@@ -430,22 +432,22 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
430
432
  selectedNodeType = state.selection.node.type;
431
433
  }
432
434
  if (allowMediaInline && (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup) {
433
- var _pluginInjectionApi$d9, _pluginInjectionApi$d10;
435
+ var _pluginInjectionApi$d10, _pluginInjectionApi$d11;
434
436
  var mediaOffset = state.selection.$from.parentOffset + 1;
435
437
  baseToolbar.getDomRef = function () {
436
438
  var _mediaPluginState$ele;
437
439
  var selector = mediaFilmstripItemDOMSelector(mediaOffset);
438
440
  return (_mediaPluginState$ele = mediaPluginState.element) === null || _mediaPluginState$ele === void 0 ? void 0 : _mediaPluginState$ele.querySelector(selector);
439
441
  };
440
- items = generateMediaCardFloatingToolbar(state, intl, mediaPluginState, hoverDecoration, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d9 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d9 === void 0 ? void 0 : (_pluginInjectionApi$d10 = _pluginInjectionApi$d9.analytics) === null || _pluginInjectionApi$d10 === void 0 ? void 0 : _pluginInjectionApi$d10.actions);
442
+ items = generateMediaCardFloatingToolbar(state, intl, mediaPluginState, hoverDecoration, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d10 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d10 === void 0 ? void 0 : (_pluginInjectionApi$d11 = _pluginInjectionApi$d10.analytics) === null || _pluginInjectionApi$d11 === void 0 ? void 0 : _pluginInjectionApi$d11.actions);
441
443
  } else if (allowMediaInline && selectedNodeType && selectedNodeType === mediaInline) {
442
- var _pluginInjectionApi$d11, _pluginInjectionApi$d12;
444
+ var _pluginInjectionApi$d12, _pluginInjectionApi$d13;
443
445
  baseToolbar.getDomRef = function () {
444
446
  var _mediaPluginState$ele2;
445
447
  var element = (_mediaPluginState$ele2 = mediaPluginState.element) === null || _mediaPluginState$ele2 === void 0 ? void 0 : _mediaPluginState$ele2.querySelector(".".concat(MediaInlineNodeSelector));
446
448
  return element || mediaPluginState.element;
447
449
  };
448
- items = generateMediaInlineFloatingToolbar(state, intl, mediaPluginState, hoverDecoration, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d11 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d11 === void 0 ? void 0 : (_pluginInjectionApi$d12 = _pluginInjectionApi$d11.analytics) === null || _pluginInjectionApi$d12 === void 0 ? void 0 : _pluginInjectionApi$d12.actions);
450
+ items = generateMediaInlineFloatingToolbar(state, intl, mediaPluginState, hoverDecoration, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d12 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d12 === void 0 ? void 0 : (_pluginInjectionApi$d13 = _pluginInjectionApi$d12.analytics) === null || _pluginInjectionApi$d13 === void 0 ? void 0 : _pluginInjectionApi$d13.actions);
449
451
  } else {
450
452
  baseToolbar.getDomRef = function () {
451
453
  var _mediaPluginState$ele3;
@@ -10,7 +10,7 @@ import OpenIcon from '@atlaskit/icon/glyph/shortcut';
10
10
  import { isSafeUrl } from '@atlaskit/adf-schema';
11
11
  import { checkMediaType } from '../utils/check-media-type';
12
12
  import { FloatingToolbarButton as ToolbarButton } from '@atlaskit/editor-common/ui';
13
- import Separator from '../../floating-toolbar/ui/Separator';
13
+ import { FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
14
14
  import { linkMessages } from '../../../messages';
15
15
  import { linkToolbarMessages } from '@atlaskit/editor-common/messages';
16
16
  import { ToolTipContent, addLink } from '../../../keymaps';
@@ -18,8 +18,7 @@ import EditorUnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
18
18
  // Common Translations will live here
19
19
 
20
20
  import { PanelTextInput } from '@atlaskit/editor-common/ui';
21
- import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
22
- import Separator from '../../floating-toolbar/ui/Separator';
21
+ import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
23
22
  import { container, containerWithProvider, inputWrapper, RecentSearch } from '@atlaskit/editor-common/link';
24
23
  import { linkToolbarMessages } from '@atlaskit/editor-common/messages';
25
24
  import { normalizeUrl } from '@atlaskit/editor-common/utils';
@@ -20,6 +20,7 @@ export function keymapPlugin() {
20
20
  };
21
21
  var keymaps = {
22
22
  Backspace: function Backspace(state, dispatch) {
23
+ var _nodeBeforePanel$type, _nodeBeforePanel$type2;
23
24
  var selection = state.selection,
24
25
  nodes = state.schema.nodes,
25
26
  tr = state.tr;
@@ -36,17 +37,25 @@ export function keymapPlugin() {
36
37
  if ($from.parentOffset !== 0) {
37
38
  return false;
38
39
  }
39
- var previousPos = tr.doc.resolve(Math.max(0, $from.before($from.depth) - 1));
40
- var previousNodeType = previousPos.pos > 0 && previousPos.parent && previousPos.parent.type;
40
+ var $previousPos = tr.doc.resolve(Math.max(0, $from.before($from.depth) - 1));
41
+ var previousNodeType = $previousPos.pos > 0 && $previousPos.parent && $previousPos.parent.type;
41
42
  var parentNodeType = $from.parent.type;
42
43
  var isPreviousNodeAPanel = previousNodeType === panel;
43
44
  var isParentNodeAPanel = parentNodeType === panel;
45
+ var nodeBeforePanel = $previousPos === null || $previousPos === void 0 ? void 0 : $previousPos.nodeBefore;
44
46
 
45
47
  // Stops merging panels when deleting empty paragraph in between
46
48
  // Stops merging blockquotes with panels when deleting from start of blockquote
47
- if (isPreviousNodeAPanel && !isParentNodeAPanel || isInsideAnEmptyNode(selection, panel, state.schema) || hasParentNodeOfType(blockquote)(selection)) {
49
+
50
+ if (isPreviousNodeAPanel && !isParentNodeAPanel || isInsideAnEmptyNode(selection, panel, state.schema) || hasParentNodeOfType(blockquote)(selection) ||
51
+ // Lift line of panel content up and out of the panel, when backspacing
52
+ // at the start of a panel, if the node before the panel is an 'isolating' node
53
+ // (for e.g. a table, or an expand), otherwise the default prosemirror backspace
54
+ // behaviour will fallback to 'select node backward' logic because the node
55
+ // before is an isolating node.
56
+ nodeBeforePanel !== null && nodeBeforePanel !== void 0 && (_nodeBeforePanel$type = nodeBeforePanel.type) !== null && _nodeBeforePanel$type !== void 0 && (_nodeBeforePanel$type2 = _nodeBeforePanel$type.spec) !== null && _nodeBeforePanel$type2 !== void 0 && _nodeBeforePanel$type2.isolating && hasParentNodeOfType(panel)(selection)) {
48
57
  var content = $from.node($from.depth).content;
49
- var insertPos = previousPos.pos;
58
+ var insertPos = $previousPos.pos;
50
59
  deleteCurrentItem($from, tr).insert(insertPos, content);
51
60
  if (dispatch) {
52
61
  dispatch(setTextSelection(insertPos)(tr).scrollIntoView());
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.15.1";
2
+ export var version = "187.16.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.15.1",
3
+ "version": "187.16.1",
4
4
  "sideEffects": false
5
5
  }
@@ -71,11 +71,6 @@ export { selectionPluginKey } from './plugins/mobile-selection';
71
71
  export type { SelectionData, SelectionDataState, } from './plugins/mobile-selection';
72
72
  export { insertExpand } from './plugins/expand/commands';
73
73
  export { default as WithPluginState } from './ui/WithPluginState';
74
- export { pluginKey as floatingToolbarPluginKey } from './plugins/floating-toolbar';
75
- export type { FloatingToolbarPluginState } from './plugins/floating-toolbar';
76
- export type { FloatingToolbarConfig, FloatingToolbarItem, FloatingToolbarButton, FloatingToolbarDropdown, FloatingToolbarListPicker, FloatingToolbarSelect, FloatingToolbarColorPicker, FloatingToolbarDatePicker, FloatingToolbarInput, FloatingToolbarEmojiPicker, } from './plugins/floating-toolbar/types';
77
- export type { DropdownOptionT } from './plugins/floating-toolbar/ui/types';
78
- export type { SelectOption } from './plugins/floating-toolbar/ui/Select';
79
74
  export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ui/ColorPalette/Palettes/statusColorPalette';
80
75
  export type { PaletteColor } from './ui/ColorPalette/Palettes/type';
81
76
  export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
@@ -1,6 +1,6 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from '../../plugins/floating-toolbar/types';
3
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
4
  export declare const annotationMessages: {
5
5
  createComment: {
6
6
  id: string;
@@ -1,6 +1,5 @@
1
- import type { FloatingToolbarHandler } from '../floating-toolbar/types';
1
+ import type { FloatingToolbarHandler, SelectOption } from '@atlaskit/editor-common/types';
2
2
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
- import type { SelectOption } from '../floating-toolbar/ui/Select';
4
3
  export declare const messages: {
5
4
  selectLanguage: {
6
5
  id: string;
@@ -2,7 +2,7 @@
2
2
  /// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { Command } from '../../../src/types';
5
- import type { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '../floating-toolbar/types';
5
+ import type { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '@atlaskit/editor-common/types';
6
6
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
7
7
  export declare function getCopyButtonConfig(options: MarkOptions | NodeOptions, hoverDecoration: HoverDecorationHandler | undefined): FloatingToolbarButton<Command>;
8
8
  export declare const showCopyButton: (state?: EditorState) => import("prosemirror-state").Plugin<any> | undefined;
@@ -1,3 +1,3 @@
1
- import { FloatingToolbarHandler } from '../floating-toolbar/types';
1
+ import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
2
2
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
3
  export declare const getToolbarConfig: (hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarHandler;
@@ -1,4 +1,4 @@
1
- import type { FloatingToolbarHandler } from '../floating-toolbar/types';
1
+ import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
2
2
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
3
  import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
4
4
  export declare const messages: {
@@ -1,10 +1,7 @@
1
- import type { Selection, EditorState } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from './types';
4
- import type { FloatingToolbarPlugin, ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
5
- export type FloatingToolbarPluginState = {
6
- getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
7
- };
3
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
+ import type { FloatingToolbarPlugin, ConfigWithNodeInfo, FloatingToolbarPluginState } from '@atlaskit/editor-plugin-floating-toolbar';
8
5
  export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
9
6
  declare const floatingToolbarPlugin: FloatingToolbarPlugin;
10
7
  export default floatingToolbarPlugin;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { ConfirmationDialogProps } from './types';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { ConfirmationDialogProps } from './types';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps<"intl">>> & {
5
5
  WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps<"intl">>;
6
6
  };
@@ -2,7 +2,7 @@
2
2
  import type { ReactElement } from 'react';
3
3
  import React, { Component } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
- import type { DropdownOptions } from './types';
5
+ import type { DropdownOptions } from '@atlaskit/editor-common/types';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  export interface Props {
8
8
  title: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ButtonItemProps } from '@atlaskit/menu';
3
- import type { DropdownOptionT } from './types';
3
+ import type { DropdownOptionT } from '@atlaskit/editor-common/types';
4
4
  import type { WrappedComponentProps } from 'react-intl-next';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  export declare const menuItemDimensions: {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { ConfirmationDialogProps } from './types';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
@@ -5,7 +5,7 @@ import type { Node } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
6
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
- import type { FloatingToolbarItem } from '../types';
8
+ import type { FloatingToolbarItem } from '@atlaskit/editor-common/types';
9
9
  import type { WrappedComponentProps } from 'react-intl-next';
10
10
  import type { FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
11
11
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import { pluginKey } from './pm-plugins/plugin-key';
3
- import { LayoutPluginOptions } from './types';
3
+ import type { LayoutPluginOptions } from './types';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
6
6
  export { pluginKey };
@@ -1,6 +1,6 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from '../../plugins/floating-toolbar/types';
3
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
4
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
5
5
  export declare const layoutToolbarTitle = "Layout floating controls";
6
6
  export declare const buildToolbar: (state: EditorState, intl: IntlShape, pos: number, _allowBreakout: boolean, addSidebarLayouts: boolean, allowSingleColumnLayout: boolean, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
@@ -1,11 +1,13 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
- import type { FloatingToolbarButton, FloatingToolbarCustom, FloatingToolbarConfig } from '../../floating-toolbar/types';
2
+ import type { FloatingToolbarButton, FloatingToolbarCustom, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
3
3
  import type { Command } from '../../../types';
4
4
  import type { MediaToolbarBaseConfig } from '../types';
5
5
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
6
+ import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
6
7
  export declare const altTextButton: (intl: IntlShape, state: EditorState) => FloatingToolbarButton<Command>;
7
8
  export declare const altTextEditComponent: (options?: AltTextToolbarOptions) => FloatingToolbarCustom<Command>;
8
9
  export interface AltTextToolbarOptions {
9
10
  altTextValidator?: (value: string) => string[];
11
+ forceFocusSelector?: ForceFocusSelector;
10
12
  }
11
13
  export declare const getAltTextToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, options?: AltTextToolbarOptions) => FloatingToolbarConfig;
@@ -1,7 +1,7 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { IntlShape } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import type { FloatingToolbarConfig } from '../../../plugins/floating-toolbar/types';
4
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
5
5
  import type { MediaFloatingToolbarOptions } from '../types';
6
6
  import type mediaPlugin from '../index';
7
7
  export declare const floatingToolbar: (state: EditorState, intl: IntlShape, options: MediaFloatingToolbarOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => FloatingToolbarConfig | undefined;
@@ -1,7 +1,7 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
3
  import type { IntlShape } from 'react-intl-next';
4
- import type { FloatingToolbarConfig } from '../../floating-toolbar/types';
4
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
5
5
  import type { MediaLinkingState } from '../pm-plugins/linking';
6
6
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
7
7
  import type { MediaToolbarBaseConfig } from '../types';
@@ -1,4 +1,4 @@
1
- import type { FloatingToolbarConfig, FloatingToolbarItem } from './../floating-toolbar/types';
1
+ import type { FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
2
2
  import type { EmojiInfo, PanelPluginOptions } from './types';
3
3
  import type { IntlShape } from 'react-intl-next';
4
4
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
@@ -71,11 +71,6 @@ export { selectionPluginKey } from './plugins/mobile-selection';
71
71
  export type { SelectionData, SelectionDataState, } from './plugins/mobile-selection';
72
72
  export { insertExpand } from './plugins/expand/commands';
73
73
  export { default as WithPluginState } from './ui/WithPluginState';
74
- export { pluginKey as floatingToolbarPluginKey } from './plugins/floating-toolbar';
75
- export type { FloatingToolbarPluginState } from './plugins/floating-toolbar';
76
- export type { FloatingToolbarConfig, FloatingToolbarItem, FloatingToolbarButton, FloatingToolbarDropdown, FloatingToolbarListPicker, FloatingToolbarSelect, FloatingToolbarColorPicker, FloatingToolbarDatePicker, FloatingToolbarInput, FloatingToolbarEmojiPicker, } from './plugins/floating-toolbar/types';
77
- export type { DropdownOptionT } from './plugins/floating-toolbar/ui/types';
78
- export type { SelectOption } from './plugins/floating-toolbar/ui/Select';
79
74
  export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ui/ColorPalette/Palettes/statusColorPalette';
80
75
  export type { PaletteColor } from './ui/ColorPalette/Palettes/type';
81
76
  export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
@@ -1,6 +1,6 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from '../../plugins/floating-toolbar/types';
3
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
4
  export declare const annotationMessages: {
5
5
  createComment: {
6
6
  id: string;
@@ -1,6 +1,5 @@
1
- import type { FloatingToolbarHandler } from '../floating-toolbar/types';
1
+ import type { FloatingToolbarHandler, SelectOption } from '@atlaskit/editor-common/types';
2
2
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
- import type { SelectOption } from '../floating-toolbar/ui/Select';
4
3
  export declare const messages: {
5
4
  selectLanguage: {
6
5
  id: string;
@@ -2,7 +2,7 @@
2
2
  /// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { Command } from '../../../src/types';
5
- import type { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '../floating-toolbar/types';
5
+ import type { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '@atlaskit/editor-common/types';
6
6
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
7
7
  export declare function getCopyButtonConfig(options: MarkOptions | NodeOptions, hoverDecoration: HoverDecorationHandler | undefined): FloatingToolbarButton<Command>;
8
8
  export declare const showCopyButton: (state?: EditorState) => import("prosemirror-state").Plugin<any> | undefined;
@@ -1,3 +1,3 @@
1
- import { FloatingToolbarHandler } from '../floating-toolbar/types';
1
+ import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
2
2
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
3
  export declare const getToolbarConfig: (hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarHandler;
@@ -1,4 +1,4 @@
1
- import type { FloatingToolbarHandler } from '../floating-toolbar/types';
1
+ import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
2
2
  import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
3
  import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
4
4
  export declare const messages: {
@@ -1,10 +1,7 @@
1
- import type { Selection, EditorState } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from './types';
4
- import type { FloatingToolbarPlugin, ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
5
- export type FloatingToolbarPluginState = {
6
- getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
7
- };
3
+ import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
+ import type { FloatingToolbarPlugin, ConfigWithNodeInfo, FloatingToolbarPluginState } from '@atlaskit/editor-plugin-floating-toolbar';
8
5
  export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
9
6
  declare const floatingToolbarPlugin: FloatingToolbarPlugin;
10
7
  export default floatingToolbarPlugin;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { ConfirmationDialogProps } from './types';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { ConfirmationDialogProps } from './types';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
4
  export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps<"intl">>> & {
5
5
  WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps<"intl">>;
6
6
  };
@@ -2,7 +2,7 @@
2
2
  import type { ReactElement } from 'react';
3
3
  import React, { Component } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
- import type { DropdownOptions } from './types';
5
+ import type { DropdownOptions } from '@atlaskit/editor-common/types';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  export interface Props {
8
8
  title: string;