@atlaskit/editor-plugin-block-type 30.0.3 → 30.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 (99) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/blockTypePlugin.js +25 -24
  3. package/dist/cjs/pm-plugins/block-types.js +52 -43
  4. package/dist/cjs/pm-plugins/commands/block-type.js +39 -38
  5. package/dist/cjs/pm-plugins/commands/clear-formatting.js +8 -8
  6. package/dist/cjs/pm-plugins/input-rule.js +25 -23
  7. package/dist/cjs/pm-plugins/keymap.js +12 -11
  8. package/dist/cjs/pm-plugins/main.js +5 -5
  9. package/dist/cjs/pm-plugins/ui/FloatingToolbarComponent.js +6 -6
  10. package/dist/cjs/pm-plugins/ui/PrimaryToolbarComponent.js +6 -6
  11. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +18 -17
  12. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +9 -8
  13. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +16 -14
  14. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +9 -8
  15. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/index.js +12 -12
  16. package/dist/cjs/pm-plugins/ui/ToolbarBlockType/styled.js +5 -4
  17. package/dist/cjs/pm-plugins/ui/toolbar-components.js +25 -24
  18. package/dist/cjs/pm-plugins/utils.js +2 -1
  19. package/dist/cjs/ui/HeadingBlockMenuItem.js +7 -7
  20. package/dist/cjs/ui/ParagraphBlockMenuItem.js +7 -7
  21. package/dist/cjs/ui/QuoteBlockMenuItem.js +7 -7
  22. package/dist/cjs/ui/SmallTextBlockMenuItem.js +9 -8
  23. package/dist/cjs/ui/index.js +19 -20
  24. package/dist/cjs/ui/quick-insert/BlockTypeQuickInsertMenuItem.js +28 -28
  25. package/dist/cjs/ui/quick-insert/getBlockTypeQuickInsertComponents.js +3 -3
  26. package/dist/es2019/blockTypePlugin.js +4 -3
  27. package/dist/es2019/pm-plugins/block-types.js +12 -3
  28. package/dist/es2019/pm-plugins/commands/block-type.js +5 -4
  29. package/dist/es2019/pm-plugins/commands/clear-formatting.js +1 -1
  30. package/dist/es2019/pm-plugins/input-rule.js +6 -4
  31. package/dist/es2019/pm-plugins/keymap.js +4 -3
  32. package/dist/es2019/pm-plugins/main.js +1 -1
  33. package/dist/es2019/pm-plugins/ui/FloatingToolbarComponent.js +2 -2
  34. package/dist/es2019/pm-plugins/ui/PrimaryToolbarComponent.js +2 -2
  35. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +6 -5
  36. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +5 -4
  37. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +6 -4
  38. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +4 -3
  39. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/index.js +4 -4
  40. package/dist/es2019/pm-plugins/ui/ToolbarBlockType/styled.js +3 -2
  41. package/dist/es2019/pm-plugins/ui/toolbar-components.js +2 -1
  42. package/dist/es2019/pm-plugins/utils.js +2 -1
  43. package/dist/es2019/ui/HeadingBlockMenuItem.js +3 -3
  44. package/dist/es2019/ui/ParagraphBlockMenuItem.js +3 -3
  45. package/dist/es2019/ui/QuoteBlockMenuItem.js +3 -3
  46. package/dist/es2019/ui/SmallTextBlockMenuItem.js +4 -3
  47. package/dist/es2019/ui/index.js +2 -3
  48. package/dist/es2019/ui/quick-insert/BlockTypeQuickInsertMenuItem.js +2 -2
  49. package/dist/es2019/ui/quick-insert/getBlockTypeQuickInsertComponents.js +1 -1
  50. package/dist/esm/blockTypePlugin.js +4 -3
  51. package/dist/esm/pm-plugins/block-types.js +12 -3
  52. package/dist/esm/pm-plugins/commands/block-type.js +5 -4
  53. package/dist/esm/pm-plugins/commands/clear-formatting.js +1 -1
  54. package/dist/esm/pm-plugins/input-rule.js +6 -4
  55. package/dist/esm/pm-plugins/keymap.js +4 -3
  56. package/dist/esm/pm-plugins/main.js +1 -1
  57. package/dist/esm/pm-plugins/ui/FloatingToolbarComponent.js +2 -2
  58. package/dist/esm/pm-plugins/ui/PrimaryToolbarComponent.js +2 -2
  59. package/dist/esm/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +6 -5
  60. package/dist/esm/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +5 -4
  61. package/dist/esm/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +6 -4
  62. package/dist/esm/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +4 -3
  63. package/dist/esm/pm-plugins/ui/ToolbarBlockType/index.js +4 -4
  64. package/dist/esm/pm-plugins/ui/ToolbarBlockType/styled.js +3 -2
  65. package/dist/esm/pm-plugins/ui/toolbar-components.js +2 -1
  66. package/dist/esm/pm-plugins/utils.js +2 -1
  67. package/dist/esm/ui/HeadingBlockMenuItem.js +3 -3
  68. package/dist/esm/ui/ParagraphBlockMenuItem.js +3 -3
  69. package/dist/esm/ui/QuoteBlockMenuItem.js +3 -3
  70. package/dist/esm/ui/SmallTextBlockMenuItem.js +4 -3
  71. package/dist/esm/ui/index.js +2 -3
  72. package/dist/esm/ui/quick-insert/BlockTypeQuickInsertMenuItem.js +2 -2
  73. package/dist/esm/ui/quick-insert/getBlockTypeQuickInsertComponents.js +1 -1
  74. package/dist/types/blockTypePluginType.d.ts +13 -11
  75. package/dist/types/pm-plugins/commands/block-type.d.ts +5 -2
  76. package/dist/types/pm-plugins/commands/delete-and-move-cursor.d.ts +1 -1
  77. package/dist/types/pm-plugins/commands/delete-block-content.d.ts +1 -1
  78. package/dist/types/pm-plugins/commands/split-heading-with-trailing-space.d.ts +1 -1
  79. package/dist/types/pm-plugins/commands/wrapSelectionIn.d.ts +1 -1
  80. package/dist/types/pm-plugins/input-rule.d.ts +2 -2
  81. package/dist/types/pm-plugins/keymap.d.ts +2 -2
  82. package/dist/types/pm-plugins/main.d.ts +1 -1
  83. package/dist/types/pm-plugins/types.d.ts +1 -1
  84. package/dist/types/pm-plugins/ui/FloatingToolbarComponent.d.ts +1 -1
  85. package/dist/types/pm-plugins/ui/PrimaryToolbarComponent.d.ts +1 -1
  86. package/dist/types/pm-plugins/ui/ToolbarBlockType/HeadingButton.d.ts +1 -1
  87. package/dist/types/pm-plugins/ui/ToolbarBlockType/QuoteButton.d.ts +1 -1
  88. package/dist/types/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.d.ts +1 -1
  89. package/dist/types/pm-plugins/ui/ToolbarBlockType/index.d.ts +2 -2
  90. package/dist/types/pm-plugins/ui/toolbar-components.d.ts +2 -2
  91. package/dist/types/pm-plugins/utils.d.ts +1 -1
  92. package/dist/types/ui/HeadingBlockMenuItem.d.ts +1 -1
  93. package/dist/types/ui/ParagraphBlockMenuItem.d.ts +1 -1
  94. package/dist/types/ui/QuoteBlockMenuItem.d.ts +1 -1
  95. package/dist/types/ui/SmallTextBlockMenuItem.d.ts +1 -1
  96. package/dist/types/ui/index.d.ts +2 -2
  97. package/dist/types/ui/quick-insert/BlockTypeQuickInsertMenuItem.d.ts +2 -1
  98. package/dist/types/ui/quick-insert/getBlockTypeQuickInsertComponents.d.ts +1 -1
  99. package/package.json +2 -2
@@ -4,8 +4,9 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css } from '@emotion/react';
7
- import { headingsSharedStyles, blockquoteSharedStyles } from '@atlaskit/editor-common/styles';
8
- import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
7
+ import { blockquoteSharedStyles } from '@atlaskit/editor-common/styles/blockquote';
8
+ import { headingsSharedStyles } from '@atlaskit/editor-common/styles/headings';
9
+ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
9
10
  export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected, typographyTheme) {
10
11
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
11
12
  var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, #292A2E)", " !important; }") : '';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { TEXT_STYLES_GROUP, TEXT_SECTION_RANK, TEXT_SECTION, TEXT_STYLES_MENU, TEXT_STYLES_GROUP_RANK, TEXT_STYLES_MENU_SECTION, TEXT_STYLES_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar';
2
+ import { TEXT_STYLES_GROUP, TEXT_SECTION, TEXT_STYLES_MENU, TEXT_STYLES_MENU_SECTION, TEXT_COLLAPSED_MENU, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
3
+ import { TEXT_SECTION_RANK, TEXT_STYLES_GROUP_RANK, TEXT_STYLES_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
3
4
  import { toolbarBlockTypesWithRank } from '../block-types';
4
5
  import { HeadingButton } from './ToolbarBlockType/HeadingButton';
5
6
  import { QuoteButton } from './ToolbarBlockType/QuoteButton';
@@ -1,6 +1,7 @@
1
1
  import { anyMarkActive } from '@atlaskit/editor-common/mark';
2
2
  import { createBlockTaskItem } from '@atlaskit/editor-common/transforms';
3
- import { createRule, createWrappingJoinRule } from '@atlaskit/editor-common/utils';
3
+ import { createRule } from '@atlaskit/editor-common/utils';
4
+ import { createWrappingJoinRule } from '@atlaskit/editor-common/utils/input-rules';
4
5
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
6
  import { WRAPPER_BLOCK_TYPES, FORMATTING_NODE_TYPES, FORMATTING_MARK_TYPES } from './block-types';
6
7
  export var isNodeAWrappingBlockNode = function isNodeAWrappingBlockNode(node) {
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
- import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
- import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
4
+ import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
5
+ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
6
6
  import TextHeadingFiveIcon from '@atlaskit/icon-lab/core/text-heading-five';
7
7
  import TextHeadingFourIcon from '@atlaskit/icon-lab/core/text-heading-four';
8
8
  import TextHeadingOneIcon from '@atlaskit/icon-lab/core/text-heading-one';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
- import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
- import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
4
+ import { messages as blockMenuMessages } from '@atlaskit/editor-common/messages/block-menu';
5
+ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
6
6
  import TextNormalIcon from '@atlaskit/icon-lab/core/text-normal';
7
7
  import TextParagraphIcon from '@atlaskit/icon-lab/core/text-paragraph';
8
8
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
@@ -3,9 +3,9 @@ import "./QuoteBlockMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { useIntl } from 'react-intl';
6
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
- import { blockTypeMessages } from '@atlaskit/editor-common/messages';
8
- import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
7
+ import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
8
+ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
9
9
  import QuotationMarkIcon from '@atlaskit/icon/core/quotation-mark';
10
10
  var styles = {
11
11
  svgOverflow: "_1wrmewfl _172sewfl"
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
- import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
- import { TextSmallIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
4
+ import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
5
+ import { TextSmallIcon } from '@atlaskit/editor-toolbar/text-small-icon';
6
+ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
6
7
  var NODE_NAME = 'smallText';
7
8
  var SmallTextBlockMenuItem = function SmallTextBlockMenuItem(_ref) {
8
9
  var api = _ref.api,
@@ -1,7 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
3
- import { TRANSFORM_TEXTFORMATTING_MENU_SECTION, TRANSFORM_TEXT_FORMATTING_SMALL_TEXT_MENU_ITEM } from '@atlaskit/editor-common/block-menu/key';
4
- import { TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
2
+ import { TRANSFORM_TEXTFORMATTING_MENU_SECTION, TRANSFORM_TEXT_FORMATTING_SMALL_TEXT_MENU_ITEM, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION } from '@atlaskit/editor-common/block-menu/key';
3
+ import { TRANSFORM_TEXT_FORMATTING_MENU_SECTION_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
5
4
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
5
  import { createHeadingBlockMenuItem } from './HeadingBlockMenuItem';
7
6
  import { createParagraphBlockMenuItem } from './ParagraphBlockMenuItem';
@@ -1,9 +1,9 @@
1
1
  var _tooltip, _tooltip2, _tooltip3, _tooltip4, _tooltip5, _tooltip6;
2
2
  import React, { useCallback, useMemo } from 'react';
3
3
  import { useIntl } from 'react-intl';
4
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
5
5
  import { toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, tooltip } from '@atlaskit/editor-common/keymaps';
6
- import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
6
+ import { messages } from '@atlaskit/editor-common/messages/block-type';
7
7
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
8
8
  import { messages as quickInsertMessages } from '@atlaskit/editor-common/quick-insert/messages';
9
9
  import TextHeadingFiveIcon from '@atlaskit/icon-lab/core/text-heading-five';
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
- import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
3
+ import { messages } from '@atlaskit/editor-common/messages/block-type';
4
4
  import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
5
5
  import { BLOCKQUOTE_MENU_ITEM, HEADING_1_MENU_ITEM, HEADING_2_MENU_ITEM, HEADING_3_MENU_ITEM, HEADING_4_MENU_ITEM, HEADING_5_MENU_ITEM, HEADING_6_MENU_ITEM, TEXT_FORMATTING_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
6
6
  import { TEXT_FORMATTING_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
@@ -1,14 +1,16 @@
1
- import type { Command, EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
- import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
4
- import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
5
- import type { ListPlugin } from '@atlaskit/editor-plugin-list';
6
- import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
7
- import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
8
- import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
9
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
10
- import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
11
- import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
1
+ import type { Command } from '@atlaskit/editor-common/types/command';
2
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
3
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
4
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
5
+ import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
6
+ import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction/interaction-plugin-type';
7
+ import type { ListPlugin } from '@atlaskit/editor-plugin-list/list-plugin-type';
8
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar/primary-toolbar-plugin-type';
9
+ import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar/selection-toolbar-plugin-type';
10
+ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
11
+ import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
12
+ import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry/ui-control-registry-plugin-type';
13
+ import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences/user-preferences-plugin-type';
12
14
  import type { TextBlockTypes } from './pm-plugins/block-types';
13
15
  import type { ClearFormattingInputMethod, InputMethod } from './pm-plugins/commands/block-type';
14
16
  import type { BlockTypeState } from './pm-plugins/main';
@@ -1,5 +1,8 @@
1
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { Command, EditorCommand, HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
2
+ import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
3
+ import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types/block-type';
4
+ import type { Command } from '@atlaskit/editor-common/types/command';
5
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
3
6
  import type { TextBlockTypes } from '../block-types';
4
7
  export type InputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
5
8
  export type ClearFormattingInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB;
@@ -1,4 +1,4 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
1
+ import type { Command } from '@atlaskit/editor-common/types/command';
2
2
  /**
3
3
  * Fixes cursor position after delete for list/task in panel and table
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
1
+ import type { Command } from '@atlaskit/editor-common/types/command';
2
2
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  /**
4
4
  * Prevent removing the block when deleting block content
@@ -1,4 +1,4 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
1
+ import type { Command } from '@atlaskit/editor-common/types/command';
2
2
  /**
3
3
  * A plain-Enter command that fixes the "new line after a heading with a trailing
4
4
  * space becomes another heading" bug.
@@ -1,3 +1,3 @@
1
- import type { EditorCommand } from '@atlaskit/editor-common/types';
1
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
2
2
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
3
3
  export declare function wrapSelectionInBlockType(_nodeType: NodeType): EditorCommand;
@@ -1,6 +1,6 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
+ import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
4
4
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
5
  declare function inputRulePlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined, schema: Schema, featureFlags: FeatureFlags): SafePlugin | undefined;
6
6
  export default inputRulePlugin;
@@ -1,5 +1,5 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
2
2
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
+ import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
4
4
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
5
  export default function keymapPlugin(editorAnalyticsApi: EditorAnalyticsAPI | undefined, schema: Schema, _featureFlags: FeatureFlags): SafePlugin;
@@ -1,5 +1,5 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { BlockTypePlugin } from '../blockTypePluginType';
5
5
  import type { BlockType } from './types';
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { MessageDescriptor } from 'react-intl';
3
- import type { AllowedBlockTypes, HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
3
+ import type { AllowedBlockTypes, HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types/block-type';
4
4
  import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
5
5
  export type BlockTypeName = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'blockquote' | 'codeblock' | 'panel' | 'notePanel' | 'successPanel' | 'warningPanel' | 'errorPanel' | 'other';
6
6
  export interface BlockType {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockTypePlugin } from '../../blockTypePluginType';
4
4
  interface FloatingToolbarComponentProps {
5
5
  api: ExtractInjectionAPI<BlockTypePlugin> | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockTypePlugin } from '../../blockTypePluginType';
4
4
  interface PrimaryToolbarComponentProps {
5
5
  api: ExtractInjectionAPI<BlockTypePlugin> | undefined;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
7
7
  import type { BlockTypePlugin } from '../../../blockTypePluginType';
8
8
  import type { BlockTypeWithRank } from '../../types';
9
9
  type HeadingButtonProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockTypePlugin } from '../../../blockTypePluginType';
4
4
  import type { BlockTypeWithRank } from '../../types';
5
5
  type QuoteButtonProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockTypePlugin } from '../../../blockTypePluginType';
4
4
  type TextStylesMenuButtonProps = {
5
5
  allowFontSize?: boolean;
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
7
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
8
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu/DropdownMenu/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { ThemeState } from '@atlaskit/tokens/theme-config';
11
11
  import { ThemeMutationObserver } from '@atlaskit/tokens/theme-mutation-observer';
@@ -1,4 +1,4 @@
1
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
+ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model/types';
3
3
  import type { BlockTypePlugin } from '../../blockTypePluginType';
4
4
  export declare const getToolbarComponents: (api?: ExtractInjectionAPI<BlockTypePlugin>, allowFontSize?: boolean) => RegisterComponent[];
@@ -1,4 +1,4 @@
1
- import type { InputRuleWrapper } from '@atlaskit/editor-common/types';
1
+ import type { InputRuleWrapper } from '@atlaskit/editor-common/types/input-rules';
2
2
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { BlockType } from './types';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
4
4
  import type { BlockTypePlugin } from '../blockTypePluginType';
5
5
  type HeadingBlockMenuItemProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
4
4
  import type { BlockTypePlugin } from '../blockTypePluginType';
5
5
  type ParagraphBlockMenuItemProps = {
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
7
7
  import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
8
8
  import type { BlockTypePlugin } from '../blockTypePluginType';
9
9
  type QuoteBlockMenuItemProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
4
4
  import type { BlockTypePlugin } from '../blockTypePluginType';
5
5
  type SmallTextBlockMenuItemProps = {
@@ -1,5 +1,5 @@
1
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import type { RegisterBlockMenuComponent } from '@atlaskit/editor-plugin-block-menu';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
+ import type { RegisterBlockMenuComponent } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
3
3
  import type { BlockTypePlugin } from '../blockTypePluginType';
4
4
  import type { TextFormattingBlockMenuOptions } from './types';
5
5
  export declare const getBlockTypeComponents: (api: ExtractInjectionAPI<BlockTypePlugin> | undefined, { allowFontSize }?: TextFormattingBlockMenuOptions) => RegisterBlockMenuComponent[];
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MessageDescriptor } from 'react-intl';
3
- import type { ExtractInjectionAPI, HeadingLevels } from '@atlaskit/editor-common/types';
3
+ import type { HeadingLevels } from '@atlaskit/editor-common/types/block-type';
4
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
4
5
  import type { BlockTypePlugin } from '../../blockTypePluginType';
5
6
  export type BlockTypeQuickInsertItem = 'blockquote' | HeadingLevels;
6
7
  type Props = {
@@ -1,4 +1,4 @@
1
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
2
  import type { RegisterMenuItem } from '@atlaskit/editor-ui-control-model/types';
3
3
  import type { BlockTypePlugin } from '../../blockTypePluginType';
4
4
  type Params = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "30.0.3",
3
+ "version": "30.0.5",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.3.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^230.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^232.0.0",
47
47
  "@atlaskit/tokens": "^20.4.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",