@atlaskit/editor-plugin-highlight 9.0.0 → 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 +19 -0
- package/dist/cjs/ui/FloatingToolbarHighlightColor.js +2 -2
- package/dist/cjs/ui/HighlightColorMenuItem.js +2 -2
- package/dist/cjs/ui/PrimaryToolbarHighlightColor.js +2 -2
- package/dist/es2019/ui/FloatingToolbarHighlightColor.js +1 -1
- package/dist/es2019/ui/HighlightColorMenuItem.js +1 -1
- package/dist/es2019/ui/PrimaryToolbarHighlightColor.js +1 -1
- package/dist/esm/ui/FloatingToolbarHighlightColor.js +1 -1
- package/dist/esm/ui/HighlightColorMenuItem.js +1 -1
- package/dist/esm/ui/PrimaryToolbarHighlightColor.js +1 -1
- package/dist/types/ui/FloatingToolbarHighlightColor.d.ts +1 -1
- package/dist/types/ui/PrimaryToolbarHighlightColor.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingToolbarHighlightColor.d.ts +1 -1
- package/dist/types-ts4.5/ui/PrimaryToolbarHighlightColor.d.ts +1 -1
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
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
|
+
|
|
3
22
|
## 9.0.0
|
|
4
23
|
|
|
5
24
|
### 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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,15 +35,15 @@
|
|
|
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": "^
|
|
39
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
40
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
41
|
-
"@atlaskit/editor-plugin-text-formatting": "^
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
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.
|
|
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",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"@emotion/react": "^11.7.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^
|
|
58
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
|
-
"react-intl
|
|
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
|
}
|