@atlaskit/editor-plugin-text-formatting 8.2.13 → 10.0.0

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,30 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
8
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
9
+
10
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
11
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
12
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
13
+
14
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
15
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
16
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
22
+ ## 9.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 8.2.13
4
29
 
5
30
  ### Patch Changes
@@ -9,7 +9,7 @@ exports.FloatingToolbarTextFormalWithIntl = void 0;
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
- var _reactIntlNext = require("react-intl-next");
12
+ var _reactIntl = require("react-intl");
13
13
  var _hooks = require("@atlaskit/editor-common/hooks");
14
14
  var _types = require("@atlaskit/editor-common/types");
15
15
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -122,4 +122,4 @@ var FloatingToolbarTextFormat = function FloatingToolbarTextFormat(_ref) {
122
122
  };
123
123
 
124
124
  // eslint-disable-next-line @typescript-eslint/ban-types
125
- var FloatingToolbarTextFormalWithIntl = exports.FloatingToolbarTextFormalWithIntl = (0, _reactIntlNext.injectIntl)(FloatingToolbarTextFormat);
125
+ var FloatingToolbarTextFormalWithIntl = exports.FloatingToolbarTextFormalWithIntl = (0, _reactIntl.injectIntl)(FloatingToolbarTextFormat);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.MoreFormattingMenu = exports.MenuSection = exports.FormatMenuItem = exports.FormatButton = exports.ClearFormatMenuItem = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
@@ -107,7 +107,7 @@ var ClearFormatMenuItem = exports.ClearFormatMenuItem = function ClearFormatMenu
107
107
  }),
108
108
  isInitialised = _useSharedPluginState.isInitialised,
109
109
  isFormattingPresent = _useSharedPluginState.isFormattingPresent;
110
- var _useIntl = (0, _reactIntlNext.useIntl)(),
110
+ var _useIntl = (0, _reactIntl.useIntl)(),
111
111
  formatMessage = _useIntl.formatMessage;
112
112
  if (!isInitialised) {
113
113
  return null;
@@ -133,7 +133,7 @@ var ClearFormatMenuItem = exports.ClearFormatMenuItem = function ClearFormatMenu
133
133
  };
134
134
  var MoreFormattingMenu = exports.MoreFormattingMenu = function MoreFormattingMenu(_ref4) {
135
135
  var children = _ref4.children;
136
- var _useIntl2 = (0, _reactIntlNext.useIntl)(),
136
+ var _useIntl2 = (0, _reactIntl.useIntl)(),
137
137
  formatMessage = _useIntl2.formatMessage;
138
138
  var content = formatMessage(_messages.toolbarMessages.moreFormatting);
139
139
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.useComponentInfo = exports.formatOptions = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
@@ -60,7 +60,7 @@ var useComponentInfo = exports.useComponentInfo = function useComponentInfo(_ref
60
60
  isHidden: Boolean(!hasMarkSchema || isHidden)
61
61
  };
62
62
  }
63
- var _useIntl = (0, _reactIntlNext.useIntl)(),
63
+ var _useIntl = (0, _reactIntl.useIntl)(),
64
64
  formatMessage = _useIntl.formatMessage;
65
65
  var formatTitle = formatMessage(title);
66
66
  var shortcutContent = (0, _keymaps.tooltip)(shortcut);
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
- var _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _hooks = require("@atlaskit/editor-common/hooks");
15
15
  var _messages = require("@atlaskit/editor-common/messages");
16
16
  var _styles = require("@atlaskit/editor-common/styles");
@@ -221,5 +221,5 @@ var Toolbar = function Toolbar(_ref2) {
221
221
  toolbarType: toolbarType
222
222
  });
223
223
  };
224
- var _default_1 = (0, _reactIntlNext.injectIntl)(Toolbar);
224
+ var _default_1 = (0, _reactIntl.injectIntl)(Toolbar);
225
225
  var _default = exports.default = _default_1;
@@ -6,7 +6,7 @@ import React, { 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 { injectIntl } from 'react-intl-next';
9
+ import { injectIntl } from 'react-intl';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { ToolbarSize } from '@atlaskit/editor-common/types';
12
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { ToolTipContent, clearFormatting, getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
@@ -1,4 +1,4 @@
1
- import { useIntl } from 'react-intl-next';
1
+ import { useIntl } from 'react-intl';
2
2
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
3
  import { toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline, tooltip } from '@atlaskit/editor-common/keymaps';
4
4
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
@@ -5,7 +5,7 @@
5
5
  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
- import { injectIntl } from 'react-intl-next';
8
+ import { injectIntl } from 'react-intl';
9
9
  import { usePreviousState } from '@atlaskit/editor-common/hooks';
10
10
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
11
11
  import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
@@ -8,7 +8,7 @@ import React, { useMemo } from 'react';
8
8
 
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
- import { injectIntl } from 'react-intl-next';
11
+ import { injectIntl } from 'react-intl';
12
12
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
13
13
  import { ToolbarSize } from '@atlaskit/editor-common/types';
14
14
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { ToolTipContent, clearFormatting, getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
@@ -1,7 +1,7 @@
1
1
  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
- import { useIntl } from 'react-intl-next';
4
+ import { useIntl } from 'react-intl';
5
5
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
6
6
  import { toggleBold, toggleCode, toggleItalic, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleUnderline, tooltip } from '@atlaskit/editor-common/keymaps';
7
7
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
@@ -9,7 +9,7 @@ var _excluded = ["formattingIsPresent"];
9
9
  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
- import { injectIntl } from 'react-intl-next';
12
+ import { injectIntl } from 'react-intl';
13
13
  import { usePreviousState } from '@atlaskit/editor-common/hooks';
14
14
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
15
15
  import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
8
8
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import type { MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl';
2
2
  import type { Keymap } from '@atlaskit/editor-common/keymaps';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { IconComponent } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { MenuIconItem, ToolbarType } from './types';
5
5
  type DropdownMenuProps = {
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType, FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { ExtractInjectionAPI, TextFormattingState, ToolbarSize } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import type { WrappedComponentProps } from 'react-intl-next';
1
+ import type { WrappedComponentProps } from 'react-intl';
2
2
  import type { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command } from '@atlaskit/editor-common/types';
4
4
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
8
8
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import type { MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl';
2
2
  import type { Keymap } from '@atlaskit/editor-common/keymaps';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { IconComponent } from '@atlaskit/editor-toolbar';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { MenuIconItem, ToolbarType } from './types';
5
5
  type DropdownMenuProps = {
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType, FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { ExtractInjectionAPI, TextFormattingState, ToolbarSize } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import type { WrappedComponentProps } from 'react-intl-next';
1
+ import type { WrappedComponentProps } from 'react-intl';
2
2
  import type { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command } from '@atlaskit/editor-common/types';
4
4
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "8.2.13",
3
+ "version": "10.0.0",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,32 +32,33 @@
32
32
  ],
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^52.4.0",
36
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
37
- "@atlaskit/editor-plugin-base": "^9.0.0",
38
- "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
39
- "@atlaskit/editor-plugin-selection-toolbar": "^9.1.0",
40
- "@atlaskit/editor-plugin-toolbar": "^5.1.0",
35
+ "@atlaskit/adf-schema": "^52.5.0",
36
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
37
+ "@atlaskit/editor-plugin-base": "^11.0.0",
38
+ "@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
39
+ "@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.10.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
- "@atlaskit/editor-toolbar": "^0.20.0",
44
+ "@atlaskit/editor-toolbar": "^1.0.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.4.0",
46
- "@atlaskit/icon": "^34.1.0",
46
+ "@atlaskit/icon": "^34.2.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
49
- "@atlaskit/tmp-editor-statsig": "^62.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
50
50
  "@atlaskit/tokens": "^13.0.0",
51
51
  "@babel/runtime": "^7.0.0",
52
- "@emotion/react": "^11.7.1",
53
- "react-intl-next": "npm:react-intl@^5.18.1"
52
+ "@emotion/react": "^11.7.1"
54
53
  },
55
54
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^112.21.0",
57
- "react": "^18.2.0"
55
+ "@atlaskit/editor-common": "^114.0.0",
56
+ "react": "^18.2.0",
57
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@testing-library/react": "^16.3.0"
60
+ "@testing-library/react": "^16.3.0",
61
+ "react-intl": "^6.6.2"
61
62
  },
62
63
  "techstack": {
63
64
  "@atlassian/frontend": {