@atlaskit/editor-plugin-text-formatting 2.4.1 → 3.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
14
+ [`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
15
+ Make `@atlaskit/editor-common` a peer dependency
16
+
17
+ **WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
18
+ all editor plugin packages.
19
+
20
+ **WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
21
+ consuming applications, preventing issues caused by multiple versions of singleton libraries (such
22
+ as context mismatches or duplicated state). This is especially important for packages that rely on
23
+ shared context or singletons.
24
+
25
+ **HOW TO ADJUST:**
26
+
27
+ - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
28
+ any of these editor plugins.
29
+ - Ensure the version you install matches the version required by the plugins.
30
+ - You can use the
31
+ [`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
32
+ verify that all required peer dependencies are installed and compatible.
33
+ - Example install command:
34
+ ```
35
+ npm install @atlaskit/editor-common
36
+ ```
37
+ or
38
+ ```
39
+ yarn add @atlaskit/editor-common
40
+ ```
41
+
42
+ **Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
43
+ application level, you may see errors or unexpected behavior.
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+
3
49
  ## 2.4.1
4
50
 
5
51
  ### Patch Changes
@@ -155,7 +155,7 @@ var plugin = exports.plugin = function plugin(dispatch, editorAnalyticsAPI) {
155
155
  return commands.moveRight()(state, dispatch);
156
156
  } else if (event.key === _keymaps.moveLeft.common && !event.metaKey) {
157
157
  return commands.moveLeft()(state, dispatch);
158
- } else if (event.key === 'u' && event.metaKey && (_pluginKey$getState = _pluginKey.pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 && _pluginKey$getState.underlineDisabled && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9')) {
158
+ } else if (event.key === 'u' && event.metaKey && (_pluginKey$getState = _pluginKey.pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 && _pluginKey$getState.underlineDisabled && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
159
159
  // This is a workaround for browser behaviour with cmd+u (in Chrome only) where the underline mark being applied around the selection
160
160
  event.preventDefault();
161
161
  }
@@ -11,7 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
16
15
  var _dropdownToolbarButton = require("./dropdown-toolbar-button");
17
16
  var _menuState = require("./hooks/menu-state");
@@ -55,7 +54,7 @@ var FormattingTextDropdownMenu = exports.FormattingTextDropdownMenu = /*#__PURE_
55
54
  var activeItem = items[0].items.find(function (item) {
56
55
  return item.isActive;
57
56
  });
58
- var defaultIcon = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4') ? (_items$0$items$ = items[0].items[0]) === null || _items$0$items$ === void 0 ? void 0 : _items$0$items$.elemBefore : undefined;
57
+ var defaultIcon = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? (_items$0$items$ = items[0].items[0]) === null || _items$0$items$ === void 0 ? void 0 : _items$0$items$.elemBefore : undefined;
59
58
  var defaultIconName = (_items$0$items$2 = items[0].items[0]) === null || _items$0$items$2 === void 0 ? void 0 : _items$0$items$2.value.name;
60
59
  var iconBefore;
61
60
  var activeIconName = defaultIconName;
@@ -17,7 +17,7 @@ var useResponsiveIconTypeButtons = exports.useResponsiveIconTypeButtons = functi
17
17
  if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13')) {
18
18
  ResponsiveCustomButtonToolbar = _constants.ResponsiveCustomButtonToolbarMinimal;
19
19
  } else {
20
- ResponsiveCustomButtonToolbar = !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4') ? _constants.ResponsiveCustomButtonToolbarSpacious : _constants.ResponsiveCustomButtonToolbarCompact;
20
+ ResponsiveCustomButtonToolbar = _constants.ResponsiveCustomButtonToolbarCompact;
21
21
  }
22
22
  }
23
23
  var iconTypeList = (0, _react.useMemo)(function () {
@@ -30,7 +30,7 @@ var useResponsiveIconTypeButtons = exports.useResponsiveIconTypeButtons = functi
30
30
  if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13')) {
31
31
  return _constants.ToolbarButtonsStrong;
32
32
  } else {
33
- return !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4') ? _constants.ToolbarButtonsStrongItalicUnderline : _constants.ToolbarButtonsStrongItalic;
33
+ return _constants.ToolbarButtonsStrongItalic;
34
34
  }
35
35
  } else {
36
36
  return _constants.ToolbarButtonsStrongItalic;
@@ -44,7 +44,7 @@ var useResponsiveIconTypeMenu = exports.useResponsiveIconTypeMenu = function use
44
44
  if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13')) {
45
45
  ResponsiveCustomMenu = _constants.ResponsiveCustomMenuMinimal;
46
46
  } else {
47
- ResponsiveCustomMenu = !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4') ? _constants.ResponsiveCustomMenuSpacious : _constants.ResponsiveCustomMenuCompact;
47
+ ResponsiveCustomMenu = _constants.ResponsiveCustomMenuCompact;
48
48
  }
49
49
  }
50
50
  var iconTypeList = (0, _react.useMemo)(function () {
@@ -57,7 +57,7 @@ var useResponsiveIconTypeMenu = exports.useResponsiveIconTypeMenu = function use
57
57
  if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13')) {
58
58
  return _constants.ButtonsMenuMinimal;
59
59
  } else {
60
- return !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4') ? _constants.ButtonsMenuSpacious : _constants.ButtonsMenuCompact;
60
+ return _constants.ButtonsMenuCompact;
61
61
  }
62
62
  } else {
63
63
  return _constants.ToolbarButtonsStrongItalic;
@@ -184,7 +184,7 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
184
184
  isReducedSpacing: isReducedSpacing,
185
185
  moreButtonLabel: moreFormattingButtonLabel,
186
186
  hasFormattingActive: hasFormattingActive,
187
- hasMoreButton: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4') ? false : true,
187
+ hasMoreButton: !(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1'),
188
188
  items: items,
189
189
  intl: intl,
190
190
  toolbarType: toolbarType,
@@ -131,7 +131,7 @@ export const plugin = (dispatch, editorAnalyticsAPI) => new SafePlugin({
131
131
  return commands.moveRight()(state, dispatch);
132
132
  } else if (event.key === keymapMoveLeft.common && !event.metaKey) {
133
133
  return commands.moveLeft()(state, dispatch);
134
- } else if (event.key === 'u' && event.metaKey && (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 && _pluginKey$getState.underlineDisabled && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_9')) {
134
+ } else if (event.key === 'u' && event.metaKey && (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 && _pluginKey$getState.underlineDisabled && editorExperiment('platform_editor_controls', 'variant1')) {
135
135
  // This is a workaround for browser behaviour with cmd+u (in Chrome only) where the underline mark being applied around the selection
136
136
  event.preventDefault();
137
137
  }
@@ -2,7 +2,6 @@ import React, { useCallback, useState } from 'react';
2
2
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
3
3
  import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
4
4
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  import { DropdownToolbarButton } from './dropdown-toolbar-button';
8
7
  import { useMenuState } from './hooks/menu-state';
@@ -37,7 +36,7 @@ export const FormattingTextDropdownMenu = /*#__PURE__*/React.memo(({
37
36
  }
38
37
  }, [editorView.state, editorView.dispatch, closeMenu]);
39
38
  const activeItem = items[0].items.find(item => item.isActive);
40
- const defaultIcon = editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4') ? (_items$0$items$ = items[0].items[0]) === null || _items$0$items$ === void 0 ? void 0 : _items$0$items$.elemBefore : undefined;
39
+ const defaultIcon = editorExperiment('platform_editor_controls', 'variant1') ? (_items$0$items$ = items[0].items[0]) === null || _items$0$items$ === void 0 ? void 0 : _items$0$items$.elemBefore : undefined;
41
40
  const defaultIconName = (_items$0$items$2 = items[0].items[0]) === null || _items$0$items$2 === void 0 ? void 0 : _items$0$items$2.value.name;
42
41
  let iconBefore;
43
42
  let activeIconName = defaultIconName;
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
3
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
4
- import { ButtonsMenuMinimal, ButtonsMenuCompact, ButtonsMenuSpacious, ToolbarButtonsStrong, ToolbarButtonsStrongItalic, ToolbarButtonsStrongItalicUnderline, ResponsiveCustomButtonToolbarMinimal, ResponsiveCustomButtonToolbarCompact, ResponsiveCustomButtonToolbarSpacious, ResponsiveCustomMenuMinimal, ResponsiveCustomMenuCompact, ResponsiveCustomMenuSpacious } from '../constants';
4
+ import { ButtonsMenuMinimal, ButtonsMenuCompact, ToolbarButtonsStrong, ToolbarButtonsStrongItalic, ResponsiveCustomButtonToolbarMinimal, ResponsiveCustomButtonToolbarCompact, ResponsiveCustomMenuMinimal, ResponsiveCustomMenuCompact } from '../constants';
5
5
  import { useIconList } from './use-icon-list';
6
6
  export const useResponsiveIconTypeButtons = ({
7
7
  toolbarSize,
@@ -12,7 +12,7 @@ export const useResponsiveIconTypeButtons = ({
12
12
  if (fg('platform_editor_controls_patch_13')) {
13
13
  ResponsiveCustomButtonToolbar = ResponsiveCustomButtonToolbarMinimal;
14
14
  } else {
15
- ResponsiveCustomButtonToolbar = !fg('platform_editor_controls_patch_4') ? ResponsiveCustomButtonToolbarSpacious : ResponsiveCustomButtonToolbarCompact;
15
+ ResponsiveCustomButtonToolbar = ResponsiveCustomButtonToolbarCompact;
16
16
  }
17
17
  }
18
18
  const iconTypeList = useMemo(() => ResponsiveCustomButtonToolbar[toolbarSize], [toolbarSize, ResponsiveCustomButtonToolbar]);
@@ -23,7 +23,7 @@ export const useResponsiveIconTypeButtons = ({
23
23
  if (fg('platform_editor_controls_patch_13')) {
24
24
  return ToolbarButtonsStrong;
25
25
  } else {
26
- return !fg('platform_editor_controls_patch_4') ? ToolbarButtonsStrongItalicUnderline : ToolbarButtonsStrongItalic;
26
+ return ToolbarButtonsStrongItalic;
27
27
  }
28
28
  } else {
29
29
  return ToolbarButtonsStrongItalic;
@@ -38,7 +38,7 @@ export const useResponsiveIconTypeMenu = ({
38
38
  if (fg('platform_editor_controls_patch_13')) {
39
39
  ResponsiveCustomMenu = ResponsiveCustomMenuMinimal;
40
40
  } else {
41
- ResponsiveCustomMenu = !fg('platform_editor_controls_patch_4') ? ResponsiveCustomMenuSpacious : ResponsiveCustomMenuCompact;
41
+ ResponsiveCustomMenu = ResponsiveCustomMenuCompact;
42
42
  }
43
43
  }
44
44
  const iconTypeList = useMemo(() => ResponsiveCustomMenu[toolbarSize], [toolbarSize, ResponsiveCustomMenu]);
@@ -49,7 +49,7 @@ export const useResponsiveIconTypeMenu = ({
49
49
  if (fg('platform_editor_controls_patch_13')) {
50
50
  return ButtonsMenuMinimal;
51
51
  } else {
52
- return !fg('platform_editor_controls_patch_4') ? ButtonsMenuSpacious : ButtonsMenuCompact;
52
+ return ButtonsMenuCompact;
53
53
  }
54
54
  } else {
55
55
  return ToolbarButtonsStrongItalic;
@@ -173,7 +173,7 @@ const ToolbarFormatting = ({
173
173
  isReducedSpacing: isReducedSpacing,
174
174
  moreButtonLabel: moreFormattingButtonLabel,
175
175
  hasFormattingActive: hasFormattingActive,
176
- hasMoreButton: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4') ? false : true,
176
+ hasMoreButton: !editorExperiment('platform_editor_controls', 'variant1'),
177
177
  items: items,
178
178
  intl: intl,
179
179
  toolbarType: toolbarType,
@@ -148,7 +148,7 @@ export var plugin = function plugin(dispatch, editorAnalyticsAPI) {
148
148
  return commands.moveRight()(state, dispatch);
149
149
  } else if (event.key === keymapMoveLeft.common && !event.metaKey) {
150
150
  return commands.moveLeft()(state, dispatch);
151
- } else if (event.key === 'u' && event.metaKey && (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 && _pluginKey$getState.underlineDisabled && editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_9')) {
151
+ } else if (event.key === 'u' && event.metaKey && (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 && _pluginKey$getState.underlineDisabled && editorExperiment('platform_editor_controls', 'variant1')) {
152
152
  // This is a workaround for browser behaviour with cmd+u (in Chrome only) where the underline mark being applied around the selection
153
153
  event.preventDefault();
154
154
  }
@@ -3,7 +3,6 @@ import React, { useCallback, useState } from 'react';
3
3
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
4
4
  import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
5
5
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
7
  import { DropdownToolbarButton } from './dropdown-toolbar-button';
9
8
  import { useMenuState } from './hooks/menu-state';
@@ -46,7 +45,7 @@ export var FormattingTextDropdownMenu = /*#__PURE__*/React.memo(function (_ref)
46
45
  var activeItem = items[0].items.find(function (item) {
47
46
  return item.isActive;
48
47
  });
49
- var defaultIcon = editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4') ? (_items$0$items$ = items[0].items[0]) === null || _items$0$items$ === void 0 ? void 0 : _items$0$items$.elemBefore : undefined;
48
+ var defaultIcon = editorExperiment('platform_editor_controls', 'variant1') ? (_items$0$items$ = items[0].items[0]) === null || _items$0$items$ === void 0 ? void 0 : _items$0$items$.elemBefore : undefined;
50
49
  var defaultIconName = (_items$0$items$2 = items[0].items[0]) === null || _items$0$items$2 === void 0 ? void 0 : _items$0$items$2.value.name;
51
50
  var iconBefore;
52
51
  var activeIconName = defaultIconName;
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
3
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
4
- import { ButtonsMenuMinimal, ButtonsMenuCompact, ButtonsMenuSpacious, ToolbarButtonsStrong, ToolbarButtonsStrongItalic, ToolbarButtonsStrongItalicUnderline, ResponsiveCustomButtonToolbarMinimal, ResponsiveCustomButtonToolbarCompact, ResponsiveCustomButtonToolbarSpacious, ResponsiveCustomMenuMinimal, ResponsiveCustomMenuCompact, ResponsiveCustomMenuSpacious } from '../constants';
4
+ import { ButtonsMenuMinimal, ButtonsMenuCompact, ToolbarButtonsStrong, ToolbarButtonsStrongItalic, ResponsiveCustomButtonToolbarMinimal, ResponsiveCustomButtonToolbarCompact, ResponsiveCustomMenuMinimal, ResponsiveCustomMenuCompact } from '../constants';
5
5
  import { useIconList } from './use-icon-list';
6
6
  export var useResponsiveIconTypeButtons = function useResponsiveIconTypeButtons(_ref) {
7
7
  var toolbarSize = _ref.toolbarSize,
@@ -11,7 +11,7 @@ export var useResponsiveIconTypeButtons = function useResponsiveIconTypeButtons(
11
11
  if (fg('platform_editor_controls_patch_13')) {
12
12
  ResponsiveCustomButtonToolbar = ResponsiveCustomButtonToolbarMinimal;
13
13
  } else {
14
- ResponsiveCustomButtonToolbar = !fg('platform_editor_controls_patch_4') ? ResponsiveCustomButtonToolbarSpacious : ResponsiveCustomButtonToolbarCompact;
14
+ ResponsiveCustomButtonToolbar = ResponsiveCustomButtonToolbarCompact;
15
15
  }
16
16
  }
17
17
  var iconTypeList = useMemo(function () {
@@ -24,7 +24,7 @@ export var useResponsiveIconTypeButtons = function useResponsiveIconTypeButtons(
24
24
  if (fg('platform_editor_controls_patch_13')) {
25
25
  return ToolbarButtonsStrong;
26
26
  } else {
27
- return !fg('platform_editor_controls_patch_4') ? ToolbarButtonsStrongItalicUnderline : ToolbarButtonsStrongItalic;
27
+ return ToolbarButtonsStrongItalic;
28
28
  }
29
29
  } else {
30
30
  return ToolbarButtonsStrongItalic;
@@ -38,7 +38,7 @@ export var useResponsiveIconTypeMenu = function useResponsiveIconTypeMenu(_ref2)
38
38
  if (fg('platform_editor_controls_patch_13')) {
39
39
  ResponsiveCustomMenu = ResponsiveCustomMenuMinimal;
40
40
  } else {
41
- ResponsiveCustomMenu = !fg('platform_editor_controls_patch_4') ? ResponsiveCustomMenuSpacious : ResponsiveCustomMenuCompact;
41
+ ResponsiveCustomMenu = ResponsiveCustomMenuCompact;
42
42
  }
43
43
  }
44
44
  var iconTypeList = useMemo(function () {
@@ -51,7 +51,7 @@ export var useResponsiveIconTypeMenu = function useResponsiveIconTypeMenu(_ref2)
51
51
  if (fg('platform_editor_controls_patch_13')) {
52
52
  return ButtonsMenuMinimal;
53
53
  } else {
54
- return !fg('platform_editor_controls_patch_4') ? ButtonsMenuSpacious : ButtonsMenuCompact;
54
+ return ButtonsMenuCompact;
55
55
  }
56
56
  } else {
57
57
  return ToolbarButtonsStrongItalic;
@@ -178,7 +178,7 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
178
178
  isReducedSpacing: isReducedSpacing,
179
179
  moreButtonLabel: moreFormattingButtonLabel,
180
180
  hasFormattingActive: hasFormattingActive,
181
- hasMoreButton: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4') ? false : true,
181
+ hasMoreButton: !editorExperiment('platform_editor_controls', 'variant1'),
182
182
  items: items,
183
183
  intl: intl,
184
184
  toolbarType: toolbarType,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import { type MenuIconItem, ToolbarType } from './types';
4
+ import { type MenuIconItem, type ToolbarType } from './types';
5
5
  type DropdownMenuProps = {
6
6
  editorView: EditorView;
7
7
  isReducedSpacing: boolean;
@@ -1,4 +1,4 @@
1
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const hasMultiplePartsWithFormattingInSelection: ({ selectedContent, }: {
3
3
  selectedContent?: PMNode[] | undefined;
4
4
  }) => boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import { type MenuIconItem, ToolbarType } from './types';
4
+ import { type MenuIconItem, type ToolbarType } from './types';
5
5
  type DropdownMenuProps = {
6
6
  editorView: EditorView;
7
7
  isReducedSpacing: boolean;
@@ -1,4 +1,4 @@
1
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const hasMultiplePartsWithFormattingInSelection: ({ selectedContent, }: {
3
3
  selectedContent?: PMNode[] | undefined;
4
4
  }) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "2.4.1",
3
+ "version": "3.0.1",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -9,8 +9,7 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Editor: Core Experiences",
12
- "singleton": true,
13
- "runReact18": true
12
+ "singleton": true
14
13
  },
15
14
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
15
  "main": "dist/cjs/index.js",
@@ -34,30 +33,30 @@
34
33
  },
35
34
  "dependencies": {
36
35
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^107.1.0",
38
- "@atlaskit/editor-plugin-analytics": "^2.3.0",
39
- "@atlaskit/editor-plugin-base": "^3.0.0",
40
- "@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
41
- "@atlaskit/editor-plugin-selection-toolbar": "^3.7.0",
36
+ "@atlaskit/editor-plugin-analytics": "^3.0.0",
37
+ "@atlaskit/editor-plugin-base": "^4.0.0",
38
+ "@atlaskit/editor-plugin-primary-toolbar": "^4.0.0",
39
+ "@atlaskit/editor-plugin-selection-toolbar": "^4.0.0",
42
40
  "@atlaskit/editor-prosemirror": "7.0.0",
43
41
  "@atlaskit/editor-shared-styles": "^3.4.0",
44
42
  "@atlaskit/editor-tables": "^2.9.0",
45
- "@atlaskit/icon": "^27.1.0",
43
+ "@atlaskit/icon": "^27.3.0",
46
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
45
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
48
- "@atlaskit/tmp-editor-statsig": "^8.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^9.0.0",
49
47
  "@atlaskit/tokens": "^5.4.0",
50
48
  "@babel/runtime": "^7.0.0",
51
49
  "@emotion/react": "^11.7.1",
52
50
  "react-intl-next": "npm:react-intl@^5.18.1"
53
51
  },
54
52
  "peerDependencies": {
53
+ "@atlaskit/editor-common": "^107.7.0",
55
54
  "react": "^18.2.0"
56
55
  },
57
56
  "devDependencies": {
58
- "@atlaskit/editor-plugin-composition": "^1.3.0",
59
- "@atlaskit/editor-plugin-decorations": "^2.0.0",
60
- "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
57
+ "@atlaskit/editor-plugin-composition": "^2.0.0",
58
+ "@atlaskit/editor-plugin-decorations": "^3.0.0",
59
+ "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
61
60
  "@testing-library/react": "^13.4.0",
62
61
  "typescript": "~5.4.2"
63
62
  },
@@ -107,18 +106,12 @@
107
106
  "platform_editor_resolve_marks": {
108
107
  "type": "boolean"
109
108
  },
110
- "platform_editor_controls_patch_9": {
111
- "type": "boolean"
112
- },
113
109
  "platform_editor_controls_patch_13": {
114
110
  "type": "boolean"
115
111
  },
116
112
  "editor_inline_comments_on_inline_nodes": {
117
113
  "type": "boolean"
118
114
  },
119
- "platform_editor_controls_patch_4": {
120
- "type": "boolean"
121
- },
122
115
  "platform_editor_use_preferences_plugin": {
123
116
  "type": "boolean"
124
117
  },