@atlaskit/editor-plugin-text-formatting 26.0.4 → 26.0.5

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 (105) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/editor-commands/clear-formatting.js +18 -18
  3. package/dist/cjs/editor-commands/text-formatting.js +10 -10
  4. package/dist/cjs/editor-commands/toggle-mark.js +36 -36
  5. package/dist/cjs/pm-plugins/clear-formatting-keymap.js +2 -2
  6. package/dist/cjs/pm-plugins/input-rule.js +31 -29
  7. package/dist/cjs/pm-plugins/keymap.js +15 -15
  8. package/dist/cjs/pm-plugins/main.js +5 -4
  9. package/dist/cjs/pm-plugins/smart-input-rule.js +28 -26
  10. package/dist/cjs/ui/FloatingToolbarComponent.js +2 -2
  11. package/dist/cjs/ui/PrimaryToolbarComponent.js +2 -2
  12. package/dist/cjs/ui/Toolbar/components/BoldButtonGroup.js +17 -14
  13. package/dist/cjs/ui/Toolbar/components/Component.js +29 -21
  14. package/dist/cjs/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.js +14 -13
  15. package/dist/cjs/ui/Toolbar/components/TextFormattingGroups.js +32 -29
  16. package/dist/cjs/ui/Toolbar/components/TextFormattingMenuGroup.js +38 -37
  17. package/dist/cjs/ui/Toolbar/components/UnderlineButtonGroup.js +17 -14
  18. package/dist/cjs/ui/Toolbar/components/utils.js +42 -34
  19. package/dist/cjs/ui/Toolbar/dropdown-menu.js +6 -6
  20. package/dist/cjs/ui/Toolbar/dropdown-toolbar-button.js +7 -6
  21. package/dist/cjs/ui/Toolbar/hooks/clear-formatting-icon.js +4 -4
  22. package/dist/cjs/ui/Toolbar/hooks/formatting-icons.js +16 -16
  23. package/dist/cjs/ui/Toolbar/index.js +17 -17
  24. package/dist/cjs/ui/Toolbar/input-method-utils.js +2 -2
  25. package/dist/cjs/ui/Toolbar/more-button.js +2 -2
  26. package/dist/cjs/ui/Toolbar/single-toolbar-buttons.js +5 -4
  27. package/dist/es2019/editor-commands/clear-formatting.js +1 -1
  28. package/dist/es2019/editor-commands/text-formatting.js +3 -3
  29. package/dist/es2019/editor-commands/toggle-mark.js +2 -2
  30. package/dist/es2019/pm-plugins/clear-formatting-keymap.js +1 -1
  31. package/dist/es2019/pm-plugins/input-rule.js +5 -3
  32. package/dist/es2019/pm-plugins/keymap.js +1 -1
  33. package/dist/es2019/pm-plugins/main.js +2 -1
  34. package/dist/es2019/pm-plugins/smart-input-rule.js +5 -3
  35. package/dist/es2019/ui/FloatingToolbarComponent.js +1 -1
  36. package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
  37. package/dist/es2019/ui/Toolbar/components/BoldButtonGroup.js +5 -2
  38. package/dist/es2019/ui/Toolbar/components/Component.js +12 -4
  39. package/dist/es2019/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.js +3 -2
  40. package/dist/es2019/ui/Toolbar/components/TextFormattingGroups.js +5 -2
  41. package/dist/es2019/ui/Toolbar/components/TextFormattingMenuGroup.js +3 -2
  42. package/dist/es2019/ui/Toolbar/components/UnderlineButtonGroup.js +5 -2
  43. package/dist/es2019/ui/Toolbar/components/utils.js +13 -4
  44. package/dist/es2019/ui/Toolbar/dropdown-menu.js +3 -3
  45. package/dist/es2019/ui/Toolbar/dropdown-toolbar-button.js +3 -2
  46. package/dist/es2019/ui/Toolbar/hooks/clear-formatting-icon.js +2 -2
  47. package/dist/es2019/ui/Toolbar/hooks/formatting-icons.js +4 -4
  48. package/dist/es2019/ui/Toolbar/index.js +4 -4
  49. package/dist/es2019/ui/Toolbar/input-method-utils.js +1 -1
  50. package/dist/es2019/ui/Toolbar/more-button.js +1 -1
  51. package/dist/es2019/ui/Toolbar/single-toolbar-buttons.js +2 -2
  52. package/dist/esm/editor-commands/clear-formatting.js +1 -1
  53. package/dist/esm/editor-commands/text-formatting.js +3 -3
  54. package/dist/esm/editor-commands/toggle-mark.js +2 -2
  55. package/dist/esm/pm-plugins/clear-formatting-keymap.js +1 -1
  56. package/dist/esm/pm-plugins/input-rule.js +5 -3
  57. package/dist/esm/pm-plugins/keymap.js +1 -1
  58. package/dist/esm/pm-plugins/main.js +2 -1
  59. package/dist/esm/pm-plugins/smart-input-rule.js +5 -3
  60. package/dist/esm/ui/FloatingToolbarComponent.js +1 -1
  61. package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
  62. package/dist/esm/ui/Toolbar/components/BoldButtonGroup.js +5 -2
  63. package/dist/esm/ui/Toolbar/components/Component.js +12 -4
  64. package/dist/esm/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.js +3 -2
  65. package/dist/esm/ui/Toolbar/components/TextFormattingGroups.js +5 -2
  66. package/dist/esm/ui/Toolbar/components/TextFormattingMenuGroup.js +3 -2
  67. package/dist/esm/ui/Toolbar/components/UnderlineButtonGroup.js +5 -2
  68. package/dist/esm/ui/Toolbar/components/utils.js +13 -4
  69. package/dist/esm/ui/Toolbar/dropdown-menu.js +3 -3
  70. package/dist/esm/ui/Toolbar/dropdown-toolbar-button.js +3 -2
  71. package/dist/esm/ui/Toolbar/hooks/clear-formatting-icon.js +2 -2
  72. package/dist/esm/ui/Toolbar/hooks/formatting-icons.js +4 -4
  73. package/dist/esm/ui/Toolbar/index.js +4 -4
  74. package/dist/esm/ui/Toolbar/input-method-utils.js +1 -1
  75. package/dist/esm/ui/Toolbar/more-button.js +1 -1
  76. package/dist/esm/ui/Toolbar/single-toolbar-buttons.js +2 -2
  77. package/dist/types/editor-commands/clear-formatting.d.ts +3 -3
  78. package/dist/types/editor-commands/text-formatting.d.ts +2 -2
  79. package/dist/types/editor-commands/toggle-mark.d.ts +2 -1
  80. package/dist/types/editor-commands/types.d.ts +5 -2
  81. package/dist/types/editor-commands/utils/marks.d.ts +2 -1
  82. package/dist/types/pm-plugins/clear-formatting-keymap.d.ts +1 -1
  83. package/dist/types/pm-plugins/input-rule.d.ts +2 -2
  84. package/dist/types/pm-plugins/keymap.d.ts +1 -1
  85. package/dist/types/pm-plugins/main.d.ts +2 -2
  86. package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
  87. package/dist/types/pm-plugins/smart-input-rule.d.ts +1 -1
  88. package/dist/types/textFormattingPluginType.d.ts +8 -7
  89. package/dist/types/ui/FloatingToolbarComponent.d.ts +2 -2
  90. package/dist/types/ui/PrimaryToolbarComponent.d.ts +2 -1
  91. package/dist/types/ui/Toolbar/components/BoldButtonGroup.d.ts +2 -2
  92. package/dist/types/ui/Toolbar/components/Component.d.ts +1 -1
  93. package/dist/types/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.d.ts +2 -2
  94. package/dist/types/ui/Toolbar/components/TextFormattingGroups.d.ts +2 -2
  95. package/dist/types/ui/Toolbar/components/TextFormattingMenuGroup.d.ts +2 -2
  96. package/dist/types/ui/Toolbar/components/UnderlineButtonGroup.d.ts +2 -2
  97. package/dist/types/ui/Toolbar/components/utils.d.ts +3 -3
  98. package/dist/types/ui/Toolbar/hooks/clear-formatting-icon.d.ts +1 -1
  99. package/dist/types/ui/Toolbar/hooks/formatting-icons.d.ts +2 -2
  100. package/dist/types/ui/Toolbar/index.d.ts +4 -2
  101. package/dist/types/ui/Toolbar/input-method-utils.d.ts +1 -1
  102. package/dist/types/ui/Toolbar/types.d.ts +3 -3
  103. package/dist/types/ui/toolbar-components.d.ts +2 -2
  104. package/docs/0-intro.tsx +1 -1
  105. package/package.json +2 -2
@@ -2,7 +2,8 @@
2
2
  // import { toggleMark } from '@atlaskit/editor-common/mark';
3
3
 
4
4
  import { moveLeft as keymapMoveLeft, moveRight as keymapMoveRight } from '@atlaskit/editor-common/keymaps';
5
- import { anyMarkActive, wholeSelectionHasMarks } from '@atlaskit/editor-common/mark';
5
+ import { anyMarkActive } from '@atlaskit/editor-common/mark';
6
+ import { wholeSelectionHasMarks } from '@atlaskit/editor-common/mark/text-formatting';
6
7
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
8
  import { shallowEqual } from '@atlaskit/editor-common/utils';
8
9
  import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
@@ -1,8 +1,10 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, PUNC, SYMBOL } from '@atlaskit/editor-common/analytics';
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
2
+ import { PUNC, SYMBOL } from '@atlaskit/editor-common/analytics/types/substitute-events';
2
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
4
+ import { createRule } from '@atlaskit/editor-common/utils';
5
+ import { inputRuleWithAnalytics } from '@atlaskit/editor-common/utils/input-rules';
4
6
  import { Selection } from '@atlaskit/editor-prosemirror/state';
5
- import { createPlugin } from '@atlaskit/prosemirror-input-rules';
7
+ import { createPlugin } from '@atlaskit/prosemirror-input-rules/utils';
6
8
 
7
9
  // We don't agressively upgrade single quotes to smart quotes because
8
10
  // they may clash with an emoji. Only do that when we have a matching
@@ -7,8 +7,8 @@ import React, { useMemo } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { injectIntl } from 'react-intl';
10
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
10
  import { ToolbarSize } from '@atlaskit/editor-common/types';
11
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
12
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
13
13
  import { ToolbarButtonsStrong } from './Toolbar/constants';
14
14
  import { FormattingTextDropdownMenu } from './Toolbar/dropdown-menu';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
2
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
3
3
  import Toolbar from './Toolbar';
4
4
  import { ToolbarType } from './Toolbar/types';
5
5
  const selector = states => {
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- import { BOLD_BUTTON_GROUP, BOLD_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { Show, ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { BOLD_BUTTON_GROUP, BOLD_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
7
  import { FormatOptions } from '../types';
5
8
  import { FormatButton } from './Component';
6
9
  import { formatOptions } from './utils';
@@ -1,10 +1,18 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
3
  import { ToolTipContent, clearFormatting, getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
5
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
6
- import { getInputMethodFromParentKeys, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
7
- import { ToolbarButton, ToolbarDropdownItem, ClearFormattingIcon, ToolbarKeyboardShortcutHint, ToolbarDropdownMenu, MoreItemsIcon, ToolbarTooltip, ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
5
+ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
6
+ import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
7
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
8
+ import { ClearFormattingIcon } from '@atlaskit/editor-toolbar/clear-formatting-icon';
9
+ import { MoreItemsIcon } from '@atlaskit/editor-toolbar/more-items-icon';
10
+ import { ToolbarButton } from '@atlaskit/editor-toolbar/toolbar-button';
11
+ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
12
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
13
+ import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
14
+ import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
15
+ import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
8
16
  import { clearFormattingWithAnalyticsNext } from '../../../editor-commands/clear-formatting';
9
17
  import { useComponentInfo } from './utils';
10
18
  export const FormatMenuItem = ({
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_SECTION, TEXT_SECTION_RANK, TEXT_FORMATTING_GROUP, TEXT_FORMAT_GROUP_RANK } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_SECTION, TEXT_FORMATTING_GROUP } from '@atlaskit/editor-common/toolbar/keys';
3
+ import { TEXT_SECTION_RANK, TEXT_FORMAT_GROUP_RANK } from '@atlaskit/editor-common/toolbar/rank';
4
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
5
  import { FormatOptions } from '../types';
5
6
  import { FormatButton } from './Component';
6
7
  import { formatOptions } from './utils';
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- import { TEXT_FORMATTING_GROUP, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_HERO_BUTTON_COLLAPSED, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_GROUP_COLLAPSED_RANK, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { Show, ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { TEXT_FORMATTING_GROUP, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_HERO_BUTTON_COLLAPSED, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_GROUP_COLLAPSED_RANK, TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
7
  import { FormatOptions } from '../types';
5
8
  import { FormatButton } from './Component';
6
9
  import { formatOptions } from './utils';
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
2
+ import { CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
3
+ import { TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK } from '@atlaskit/editor-common/toolbar/rank';
4
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
4
5
  import { ClearFormatMenuItem, MoreFormattingMenu, MenuSection, FormatMenuItem } from './Component';
5
6
  import { formatOptions } from './utils';
6
7
  export const getFormatMenuItems = api => {
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- import { UNDERLINE_BUTTON_GROUP, UNDERLINE_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { Show, ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { UNDERLINE_BUTTON_GROUP, UNDERLINE_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
7
  import { FormatOptions } from '../types';
5
8
  import { FormatButton } from './Component';
6
9
  import { formatOptions } from './utils';
@@ -1,11 +1,20 @@
1
1
  import { useIntl } from 'react-intl';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
2
  import { toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline, tooltip } from '@atlaskit/editor-common/keymaps';
4
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
5
- import { BOLD_MENU_ITEM, CODE_MENU_ITEM, ITALIC_MENU_ITEM, STRIKE_MENU_ITEM, SUBSCRIPT_MENU_ITEM, SUPERSCRIPT_MENU_ITEM, TEXT_FORMATTING_MENU_SECTION_RANK, UNDERLINE_MENU_ITEM, getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
3
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
4
+ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
5
+ import { BOLD_MENU_ITEM, CODE_MENU_ITEM, ITALIC_MENU_ITEM, STRIKE_MENU_ITEM, SUBSCRIPT_MENU_ITEM, SUPERSCRIPT_MENU_ITEM, UNDERLINE_MENU_ITEM } from '@atlaskit/editor-common/toolbar/keys';
6
+ import { TEXT_FORMATTING_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar/rank';
7
+
6
8
  // oxlint-disable-next-line import/no-duplicates
7
9
 
8
- import { BoldIcon, ItalicIcon, UnderlineIcon, CodeIcon, StrikeThroughIcon, SubscriptIcon, SuperscriptIcon } from '@atlaskit/editor-toolbar';
10
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
11
+ import { BoldIcon } from '@atlaskit/editor-toolbar/bold-icon';
12
+ import { CodeIcon } from '@atlaskit/editor-toolbar/code-icon';
13
+ import { ItalicIcon } from '@atlaskit/editor-toolbar/italic-icon';
14
+ import { StrikeThroughIcon } from '@atlaskit/editor-toolbar/strike-through-icon';
15
+ import { SubscriptIcon } from '@atlaskit/editor-toolbar/subscript-icon';
16
+ import { SuperscriptIcon } from '@atlaskit/editor-toolbar/superscript-icon';
17
+ import { UnderlineIcon } from '@atlaskit/editor-toolbar/underline-icon';
9
18
  import { toggleStrongWithAnalytics, toggleEmWithAnalytics, toggleUnderlineWithAnalytics, toggleCodeWithAnalytics, toggleStrikeWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics } from '../../../editor-commands/toggle-mark';
10
19
  const FormatMarkSchema = {
11
20
  strong: 'strong',
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useState } from 'react';
2
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
3
- import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
4
- import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
2
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
3
+ import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu/DropdownMenu';
4
+ import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
5
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
6
6
  import { DropdownToolbarButton } from './dropdown-toolbar-button';
7
7
  import { useMenuState } from './hooks/menu-state';
@@ -6,8 +6,9 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { jsx } from '@emotion/react';
9
- import { expandIconContainerStyle, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
10
- import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
9
+ import { expandIconContainerStyle } from '@atlaskit/editor-common/styles/expand';
10
+ import { triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles/plugins';
11
+ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
11
12
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
12
13
  import ItalicIcon from '@atlaskit/icon/core/text-italic';
13
14
  import { ToolbarType } from './types';
@@ -7,8 +7,8 @@ import { useCallback, useMemo } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { clearFormatting as clearFormattingKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
10
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
11
- import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
10
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
11
+ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
12
12
  import TableCellClearIcon from '@atlaskit/icon/core/table-cell-clear';
13
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
14
  import { clearFormattingWithAnalytics } from '../../../editor-commands/clear-formatting';
@@ -6,11 +6,11 @@ import { useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
- import { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
9
+ import { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/toolbar-button';
10
10
  import { getAriaKeyshortcuts, toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
11
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
12
- import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
13
- import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
11
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
12
+ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset/editor-commands';
13
+ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
14
14
  import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
15
15
  import BoldIcon from '@atlaskit/icon/core/text-bold';
16
16
  import ItalicIcon from '@atlaskit/icon/core/text-italic';
@@ -6,10 +6,10 @@ import { useEffect, useMemo, useState } from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx } from '@emotion/react';
8
8
  import { injectIntl } from 'react-intl';
9
- import { usePreviousState } from '@atlaskit/editor-common/hooks';
10
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
11
- import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
12
- import { Announcer } from '@atlaskit/editor-common/ui';
9
+ import Announcer from '@atlaskit/editor-common/announcer';
10
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
11
+ import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles/plugins';
12
+ import usePreviousState from '@atlaskit/editor-common/usePreviousState';
13
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
14
  import { compareItemsArrays, isArrayContainsContent } from '../../editor-commands/utils';
15
15
  import { FormattingTextDropdownMenu } from './dropdown-menu';
@@ -1,4 +1,4 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
1
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
2
2
  import { ToolbarType } from './types';
3
3
  export const toolbarTypeToInputMethod = {
4
4
  [ToolbarType.PRIMARY]: INPUT_METHOD.TOOLBAR,
@@ -6,7 +6,7 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { css, jsx } from '@emotion/react';
9
- import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
9
+ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
10
10
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
11
11
  const MoreIconStyle = css({
12
12
  display: 'flex',
@@ -6,8 +6,8 @@ import React, { useCallback } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { jsx } from '@emotion/react';
9
- import { buttonGroupStyle } from '@atlaskit/editor-common/styles';
10
- import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
9
+ import { buttonGroupStyle } from '@atlaskit/editor-common/styles/plugins';
10
+ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
11
11
  export const SingleToolbarButtons = /*#__PURE__*/React.memo(({
12
12
  items,
13
13
  isReducedSpacing,
@@ -1,4 +1,4 @@
1
- import { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
1
+ import { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
2
2
  import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
4
  import { cellSelectionNodesBetween } from './utils/cell-selection';
@@ -1,6 +1,6 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
3
- import { applyMarkOnRange } from '@atlaskit/editor-common/mark';
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
2
+ import { applyMarkOnRange } from '@atlaskit/editor-common/mark/commands';
3
+ import { withAnalytics } from '@atlaskit/editor-common/withAnalytics';
4
4
  import { Selection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { hasCode, markActive } from './utils';
6
6
  export var moveRight = function moveRight() {
@@ -1,5 +1,5 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
- import { toggleMark } from '@atlaskit/editor-common/mark';
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
2
+ import { toggleMark } from '@atlaskit/editor-common/mark/commands';
3
3
  import { nextToggleMark } from './utils/marks';
4
4
  export var toggleEm = function toggleEm(_ref) {
5
5
  var tr = _ref.tr;
@@ -1,4 +1,4 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
1
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
2
2
  import { bindKeymapWithEditorCommand, clearFormatting, findShortcutByKeymap } from '@atlaskit/editor-common/keymaps';
3
3
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
4
4
  import { clearFormattingWithAnalyticsNext } from '../editor-commands/clear-formatting';
@@ -10,10 +10,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
13
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
13
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
14
14
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
15
- import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
16
- import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
15
+ import { createRule } from '@atlaskit/editor-common/utils';
16
+ import { inputRuleWithAnalytics } from '@atlaskit/editor-common/utils/input-rules';
17
+ import { leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules/constants';
18
+ import { createPlugin } from '@atlaskit/prosemirror-input-rules/utils';
17
19
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
20
  var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
19
21
  ValidAutoformatChars["STRONG"] = "__";
@@ -1,4 +1,4 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
1
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
2
2
  import { bindKeymapWithEditorCommand, findShortcutByKeymap, isCapsLockOnAndModifyKeyboardEvent, toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline } from '@atlaskit/editor-common/keymaps';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
@@ -6,7 +6,8 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
6
6
  // import { toggleMark } from '@atlaskit/editor-common/mark';
7
7
 
8
8
  import { moveLeft as keymapMoveLeft, moveRight as keymapMoveRight } from '@atlaskit/editor-common/keymaps';
9
- import { anyMarkActive, wholeSelectionHasMarks } from '@atlaskit/editor-common/mark';
9
+ import { anyMarkActive } from '@atlaskit/editor-common/mark';
10
+ import { wholeSelectionHasMarks } from '@atlaskit/editor-common/mark/text-formatting';
10
11
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
11
12
  import { shallowEqual } from '@atlaskit/editor-common/utils';
12
13
  import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
@@ -1,11 +1,13 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, PUNC, SYMBOL } from '@atlaskit/editor-common/analytics';
4
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
5
+ import { PUNC, SYMBOL } from '@atlaskit/editor-common/analytics/types/substitute-events';
5
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
- import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
7
+ import { createRule } from '@atlaskit/editor-common/utils';
8
+ import { inputRuleWithAnalytics } from '@atlaskit/editor-common/utils/input-rules';
7
9
  import { Selection } from '@atlaskit/editor-prosemirror/state';
8
- import { createPlugin } from '@atlaskit/prosemirror-input-rules';
10
+ import { createPlugin } from '@atlaskit/prosemirror-input-rules/utils';
9
11
 
10
12
  // We don't agressively upgrade single quotes to smart quotes because
11
13
  // they may clash with an emoji. Only do that when we have a matching
@@ -9,8 +9,8 @@ import React, { useMemo } from 'react';
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { jsx } from '@emotion/react';
11
11
  import { injectIntl } from 'react-intl';
12
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
13
12
  import { ToolbarSize } from '@atlaskit/editor-common/types';
13
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
14
14
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
15
  import { ToolbarButtonsStrong } from './Toolbar/constants';
16
16
  import { FormattingTextDropdownMenu } from './Toolbar/dropdown-menu';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
2
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
3
3
  import Toolbar from './Toolbar';
4
4
  import { ToolbarType } from './Toolbar/types';
5
5
  var selector = function selector(states) {
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- import { BOLD_BUTTON_GROUP, BOLD_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { Show, ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { BOLD_BUTTON_GROUP, BOLD_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
7
  import { FormatOptions } from '../types';
5
8
  import { FormatButton } from './Component';
6
9
  import { formatOptions } from './utils';
@@ -1,10 +1,18 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
3
  import { ToolTipContent, clearFormatting, getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
5
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
6
- import { getInputMethodFromParentKeys, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
7
- import { ToolbarButton, ToolbarDropdownItem, ClearFormattingIcon, ToolbarKeyboardShortcutHint, ToolbarDropdownMenu, MoreItemsIcon, ToolbarTooltip, ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
5
+ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
6
+ import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
7
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
8
+ import { ClearFormattingIcon } from '@atlaskit/editor-toolbar/clear-formatting-icon';
9
+ import { MoreItemsIcon } from '@atlaskit/editor-toolbar/more-items-icon';
10
+ import { ToolbarButton } from '@atlaskit/editor-toolbar/toolbar-button';
11
+ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
12
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
13
+ import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
14
+ import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
15
+ import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
8
16
  import { clearFormattingWithAnalyticsNext } from '../../../editor-commands/clear-formatting';
9
17
  import { useComponentInfo } from './utils';
10
18
  export var FormatMenuItem = function FormatMenuItem(_ref) {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_SECTION, TEXT_SECTION_RANK, TEXT_FORMATTING_GROUP, TEXT_FORMAT_GROUP_RANK } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_SECTION, TEXT_FORMATTING_GROUP } from '@atlaskit/editor-common/toolbar/keys';
3
+ import { TEXT_SECTION_RANK, TEXT_FORMAT_GROUP_RANK } from '@atlaskit/editor-common/toolbar/rank';
4
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
5
  import { FormatOptions } from '../types';
5
6
  import { FormatButton } from './Component';
6
7
  import { formatOptions } from './utils';
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- import { TEXT_FORMATTING_GROUP, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_HERO_BUTTON_COLLAPSED, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_GROUP_COLLAPSED_RANK, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { Show, ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { TEXT_FORMATTING_GROUP, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_HERO_BUTTON_COLLAPSED, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_GROUP_COLLAPSED_RANK, TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
7
  import { FormatOptions } from '../types';
5
8
  import { FormatButton } from './Component';
6
9
  import { formatOptions } from './utils';
@@ -1,8 +1,9 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import React from 'react';
4
- import { CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
5
- import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
+ import { CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
5
+ import { TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK } from '@atlaskit/editor-common/toolbar/rank';
6
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
6
7
  import { ClearFormatMenuItem, MoreFormattingMenu, MenuSection, FormatMenuItem } from './Component';
7
8
  import { formatOptions } from './utils';
8
9
  export var getFormatMenuItems = function getFormatMenuItems(api) {
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- import { UNDERLINE_BUTTON_GROUP, UNDERLINE_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { Show, ToolbarButtonGroup } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { UNDERLINE_BUTTON_GROUP, UNDERLINE_BUTTON, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
4
7
  import { FormatOptions } from '../types';
5
8
  import { FormatButton } from './Component';
6
9
  import { formatOptions } from './utils';
@@ -2,13 +2,22 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { useIntl } from 'react-intl';
5
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
6
5
  import { toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline, tooltip } from '@atlaskit/editor-common/keymaps';
7
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
8
- import { BOLD_MENU_ITEM, CODE_MENU_ITEM, ITALIC_MENU_ITEM, STRIKE_MENU_ITEM, SUBSCRIPT_MENU_ITEM, SUPERSCRIPT_MENU_ITEM, TEXT_FORMATTING_MENU_SECTION_RANK, UNDERLINE_MENU_ITEM, getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
6
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
7
+ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
8
+ import { BOLD_MENU_ITEM, CODE_MENU_ITEM, ITALIC_MENU_ITEM, STRIKE_MENU_ITEM, SUBSCRIPT_MENU_ITEM, SUPERSCRIPT_MENU_ITEM, UNDERLINE_MENU_ITEM } from '@atlaskit/editor-common/toolbar/keys';
9
+ import { TEXT_FORMATTING_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar/rank';
10
+
9
11
  // oxlint-disable-next-line import/no-duplicates
10
12
 
11
- import { BoldIcon, ItalicIcon, UnderlineIcon, CodeIcon, StrikeThroughIcon, SubscriptIcon, SuperscriptIcon } from '@atlaskit/editor-toolbar';
13
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
14
+ import { BoldIcon } from '@atlaskit/editor-toolbar/bold-icon';
15
+ import { CodeIcon } from '@atlaskit/editor-toolbar/code-icon';
16
+ import { ItalicIcon } from '@atlaskit/editor-toolbar/italic-icon';
17
+ import { StrikeThroughIcon } from '@atlaskit/editor-toolbar/strike-through-icon';
18
+ import { SubscriptIcon } from '@atlaskit/editor-toolbar/subscript-icon';
19
+ import { SuperscriptIcon } from '@atlaskit/editor-toolbar/superscript-icon';
20
+ import { UnderlineIcon } from '@atlaskit/editor-toolbar/underline-icon';
12
21
  import { toggleStrongWithAnalytics, toggleEmWithAnalytics, toggleUnderlineWithAnalytics, toggleCodeWithAnalytics, toggleStrikeWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics } from '../../../editor-commands/toggle-mark';
13
22
  var FormatMarkSchema = {
14
23
  strong: 'strong',
@@ -1,8 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useCallback, useState } from 'react';
3
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
4
- import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
5
- import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
3
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
4
+ import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu/DropdownMenu';
5
+ import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
6
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
7
  import { DropdownToolbarButton } from './dropdown-toolbar-button';
8
8
  import { useMenuState } from './hooks/menu-state';
@@ -6,8 +6,9 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { jsx } from '@emotion/react';
9
- import { expandIconContainerStyle, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
10
- import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
9
+ import { expandIconContainerStyle } from '@atlaskit/editor-common/styles/expand';
10
+ import { triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles/plugins';
11
+ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
11
12
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
12
13
  import ItalicIcon from '@atlaskit/icon/core/text-italic';
13
14
  import { ToolbarType } from './types';
@@ -7,8 +7,8 @@ import { useCallback, useMemo } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { clearFormatting as clearFormattingKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
10
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
11
- import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
10
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
11
+ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
12
12
  import TableCellClearIcon from '@atlaskit/icon/core/table-cell-clear';
13
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
14
  import { clearFormattingWithAnalytics } from '../../../editor-commands/clear-formatting';
@@ -7,11 +7,11 @@ import { useMemo } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx } from '@emotion/react';
10
- import { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
10
+ import { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/toolbar-button';
11
11
  import { getAriaKeyshortcuts, toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline, tooltip, ToolTipContent } from '@atlaskit/editor-common/keymaps';
12
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
13
- import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
14
- import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
12
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
13
+ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset/editor-commands';
14
+ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
15
15
  import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
16
16
  import BoldIcon from '@atlaskit/icon/core/text-bold';
17
17
  import ItalicIcon from '@atlaskit/icon/core/text-italic';
@@ -10,10 +10,10 @@ import { useEffect, useMemo, useState } from 'react';
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { jsx } from '@emotion/react';
12
12
  import { injectIntl } from 'react-intl';
13
- import { usePreviousState } from '@atlaskit/editor-common/hooks';
14
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
15
- import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
16
- import { Announcer } from '@atlaskit/editor-common/ui';
13
+ import Announcer from '@atlaskit/editor-common/announcer';
14
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
15
+ import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles/plugins';
16
+ import usePreviousState from '@atlaskit/editor-common/usePreviousState';
17
17
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
18
18
  import { compareItemsArrays, isArrayContainsContent } from '../../editor-commands/utils';
19
19
  import { FormattingTextDropdownMenu } from './dropdown-menu';
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
3
3
  import { ToolbarType } from './types';
4
4
  export var toolbarTypeToInputMethod = _defineProperty(_defineProperty({}, ToolbarType.PRIMARY, INPUT_METHOD.TOOLBAR), ToolbarType.FLOATING, INPUT_METHOD.FLOATING_TB);
5
5
  export var getInputMethod = function getInputMethod(toolbarType) {