@atlaskit/editor-plugin-highlight 9.0.0 → 10.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,30 @@
1
1
  # @atlaskit/editor-plugin-highlight
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
14
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
15
+
16
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
17
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
18
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
19
+
20
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
21
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
22
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 9.0.0
4
29
 
5
30
  ### Patch Changes
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FloatingToolbarHighlightColorWithIntl = void 0;
8
8
  var _react = require("react");
9
9
  var _react2 = require("@emotion/react");
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _hooks = require("@atlaskit/editor-common/hooks");
13
13
  var _icons = require("@atlaskit/editor-common/icons");
@@ -144,4 +144,4 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
144
144
  handleEscapeKeydown: handleEscapeKeydown
145
145
  });
146
146
  };
147
- var FloatingToolbarHighlightColorWithIntl = exports.FloatingToolbarHighlightColorWithIntl = (0, _reactIntlNext.injectIntl)(FloatingToolbarHighlightColor);
147
+ var FloatingToolbarHighlightColorWithIntl = exports.FloatingToolbarHighlightColorWithIntl = (0, _reactIntl.injectIntl)(FloatingToolbarHighlightColor);
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
- var _reactIntlNext = require("react-intl-next");
15
+ var _reactIntl = require("react-intl");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _toolbar = require("@atlaskit/editor-common/toolbar");
18
18
  var _uiColor = require("@atlaskit/editor-common/ui-color");
@@ -52,7 +52,7 @@ var TextColorIconDecorator = function TextColorIconDecorator(_ref) {
52
52
  function HighlightColorMenuItem(_ref2) {
53
53
  var api = _ref2.api,
54
54
  parents = _ref2.parents;
55
- var _useIntl = (0, _reactIntlNext.useIntl)(),
55
+ var _useIntl = (0, _reactIntl.useIntl)(),
56
56
  formatMessage = _useIntl.formatMessage;
57
57
  var activeColor = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'highlight.activeColor');
58
58
  var context = (0, _editorToolbar.useToolbarDropdownMenu)();
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.PrimaryToolbarHighlightColorWithIntl = void 0;
8
8
  var _react = require("react");
9
9
  var _react2 = require("@emotion/react");
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _hooks = require("@atlaskit/editor-common/hooks");
13
13
  var _icons = require("@atlaskit/editor-common/icons");
@@ -145,4 +145,4 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
145
145
  handleEscapeKeydown: handleEscapeKeydown
146
146
  }));
147
147
  };
148
- var PrimaryToolbarHighlightColorWithIntl = exports.PrimaryToolbarHighlightColorWithIntl = (0, _reactIntlNext.injectIntl)(PrimaryToolbarHighlightColor);
148
+ var PrimaryToolbarHighlightColorWithIntl = exports.PrimaryToolbarHighlightColorWithIntl = (0, _reactIntl.injectIntl)(PrimaryToolbarHighlightColor);
@@ -5,7 +5,7 @@
5
5
  import { useRef } 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 { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
@@ -3,7 +3,7 @@ import "./HighlightColorMenuItem.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useMemo } from 'react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
9
9
  import { REMOVE_HIGHLIGHT_COLOR, highlightColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -5,7 +5,7 @@
5
5
  import { useRef } 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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
@@ -5,7 +5,7 @@
5
5
  import { useRef } 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 { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  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; }
7
7
  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; }
8
8
  import { useCallback, useMemo } from 'react';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
11
11
  import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
12
12
  import { REMOVE_HIGHLIGHT_COLOR, highlightColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -5,7 +5,7 @@
5
5
  import { useRef } 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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
@@ -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 { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -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 { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { HighlightPlugin } from '../highlightPluginType';
@@ -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 { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -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 { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { HighlightPlugin } from '../highlightPluginType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "9.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,29 +35,29 @@
35
35
  "@atlaskit/adf-schema": "^52.5.0",
36
36
  "@atlaskit/css": "^0.19.0",
37
37
  "@atlaskit/editor-palette": "^2.1.0",
38
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
39
- "@atlaskit/editor-plugin-primary-toolbar": "^10.0.0",
40
- "@atlaskit/editor-plugin-selection-toolbar": "^10.0.0",
41
- "@atlaskit/editor-plugin-text-formatting": "^9.0.0",
42
- "@atlaskit/editor-plugin-toolbar": "^6.0.0",
38
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
39
+ "@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
40
+ "@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
41
+ "@atlaskit/editor-plugin-text-formatting": "^10.0.0",
42
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
43
43
  "@atlaskit/editor-prosemirror": "^7.3.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.10.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
- "@atlaskit/editor-toolbar": "^0.20.0",
46
+ "@atlaskit/editor-toolbar": "^1.0.0",
47
47
  "@atlaskit/editor-toolbar-model": "^0.4.0",
48
48
  "@atlaskit/heading": "^5.4.0",
49
49
  "@atlaskit/icon": "^34.2.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/primitives": "^19.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
52
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^113.0.0",
58
+ "@atlaskit/editor-common": "^114.2.0",
59
59
  "react": "^18.2.0",
60
- "react-intl-next": "npm:react-intl@^5.18.1"
60
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
61
61
  },
62
62
  "techstack": {
63
63
  "@atlassian/frontend": {
@@ -111,5 +111,8 @@
111
111
  "platform_editor_use_preferences_plugin": {
112
112
  "type": "boolean"
113
113
  }
114
+ },
115
+ "devDependencies": {
116
+ "react-intl": "^6.6.2"
114
117
  }
115
118
  }