@atlaskit/editor-plugin-alignment 9.1.26 → 11.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 +25 -0
- package/dist/cjs/ui/Alignment/index.js +2 -2
- package/dist/cjs/ui/Toolbar/AlignmentMenu.js +2 -2
- package/dist/cjs/ui/Toolbar/AlignmentMenuItem.js +2 -2
- package/dist/cjs/ui/ToolbarAlignment/icon-map.js +2 -2
- package/dist/cjs/ui/ToolbarAlignment/index.js +2 -2
- package/dist/es2019/ui/Alignment/index.js +1 -1
- package/dist/es2019/ui/Toolbar/AlignmentMenu.js +1 -1
- package/dist/es2019/ui/Toolbar/AlignmentMenuItem.js +1 -1
- package/dist/es2019/ui/ToolbarAlignment/icon-map.js +1 -1
- package/dist/es2019/ui/ToolbarAlignment/index.js +1 -1
- package/dist/esm/ui/Alignment/index.js +1 -1
- package/dist/esm/ui/Toolbar/AlignmentMenu.js +1 -1
- package/dist/esm/ui/Toolbar/AlignmentMenuItem.js +1 -1
- package/dist/esm/ui/ToolbarAlignment/icon-map.js +1 -1
- package/dist/esm/ui/ToolbarAlignment/index.js +1 -1
- package/dist/types/ui/Alignment/index.d.ts +1 -1
- package/dist/types/ui/Toolbar/types.d.ts +1 -1
- package/dist/types/ui/ToolbarAlignment/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarAlignment/index.d.ts +1 -1
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 11.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
|
+
## 10.0.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 9.1.26
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.default = void 0;
|
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
15
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
16
16
|
var _iconMap = require("../ToolbarAlignment/icon-map");
|
|
@@ -68,5 +68,5 @@ function Alignment(_ref) {
|
|
|
68
68
|
});
|
|
69
69
|
}));
|
|
70
70
|
}
|
|
71
|
-
var _default_1 = (0,
|
|
71
|
+
var _default_1 = (0, _reactIntl.injectIntl)(Alignment);
|
|
72
72
|
var _default = exports.default = _default_1;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.AlignmentMenu = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
@@ -25,7 +25,7 @@ var AlignmentMenu = exports.AlignmentMenu = function AlignmentMenu(_ref) {
|
|
|
25
25
|
align = _useSharedPluginState2 === void 0 ? 'start' : _useSharedPluginState2,
|
|
26
26
|
isEnabled = _useSharedPluginState.isEnabled;
|
|
27
27
|
var Icon = (0, _options.alignmentOptions)()[align].icon;
|
|
28
|
-
var _useIntl = (0,
|
|
28
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
29
29
|
formatMessage = _useIntl.formatMessage;
|
|
30
30
|
var title = formatMessage(_messages.alignmentMessages.alignment);
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.AlignmentMenuItem = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
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 _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
@@ -27,7 +27,7 @@ var AlignmentMenuItem = exports.AlignmentMenuItem = function AlignmentMenuItem(_
|
|
|
27
27
|
};
|
|
28
28
|
}),
|
|
29
29
|
align = _useSharedPluginState.align;
|
|
30
|
-
var _useIntl = (0,
|
|
30
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
31
31
|
formatMessage = _useIntl.formatMessage;
|
|
32
32
|
var shortcut = (0, _keymaps.tooltip)(keymap);
|
|
33
33
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.IconMap = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
11
|
var _alignTextCenter = _interopRequireDefault(require("@atlaskit/icon/core/align-text-center"));
|
|
12
12
|
var _alignTextLeft = _interopRequireDefault(require("@atlaskit/icon/core/align-text-left"));
|
|
@@ -29,7 +29,7 @@ var IconMap = exports.IconMap = function IconMap(props) {
|
|
|
29
29
|
var _iconAndMessageMap$pr = iconAndMessageMap[props.alignment],
|
|
30
30
|
Component = _iconAndMessageMap$pr.Component,
|
|
31
31
|
label = _iconAndMessageMap$pr.label;
|
|
32
|
-
var intl = (0,
|
|
32
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
33
33
|
return /*#__PURE__*/_react.default.createElement(Component, {
|
|
34
34
|
label: intl.formatMessage(label),
|
|
35
35
|
color: "currentColor",
|
|
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var
|
|
17
|
+
var _reactIntl = require("react-intl");
|
|
18
18
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
19
19
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
20
20
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -255,5 +255,5 @@ var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
255
255
|
}]);
|
|
256
256
|
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
257
257
|
(0, _defineProperty2.default)(AlignmentToolbar, "displayName", 'AlignmentToolbar');
|
|
258
|
-
var _default_1 = (0,
|
|
258
|
+
var _default_1 = (0, _reactIntl.injectIntl)(AlignmentToolbar);
|
|
259
259
|
var _default = exports.default = _default_1;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { injectIntl } from 'react-intl
|
|
5
|
+
import { injectIntl } from 'react-intl';
|
|
6
6
|
import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
|
|
7
7
|
import { alignmentMessages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import { IconMap } from '../ToolbarAlignment/icon-map';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import AlignTextCenterIcon from '@atlaskit/icon/core/align-text-center';
|
|
5
5
|
import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { injectIntl } from 'react-intl
|
|
5
|
+
import { injectIntl } from 'react-intl';
|
|
6
6
|
import { alignCenter, alignLeft, alignRight, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
7
7
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import { Shortcut, ToolbarDropdownTriggerWrapper, ToolbarDropdownWrapper, ToolbarExpandIcon, ToolbarSeparator } from '@atlaskit/editor-common/ui';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { injectIntl } from 'react-intl
|
|
5
|
+
import { injectIntl } from 'react-intl';
|
|
6
6
|
import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
|
|
7
7
|
import { alignmentMessages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import { IconMap } from '../ToolbarAlignment/icon-map';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import AlignTextCenterIcon from '@atlaskit/icon/core/align-text-center';
|
|
5
5
|
import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
|
|
@@ -9,7 +9,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { injectIntl } from 'react-intl
|
|
12
|
+
import { injectIntl } from 'react-intl';
|
|
13
13
|
import { alignCenter, alignLeft, alignRight, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
14
14
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { Shortcut, ToolbarDropdownTriggerWrapper, ToolbarDropdownWrapper, ToolbarExpandIcon, ToolbarSeparator } from '@atlaskit/editor-common/ui';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import type { FC, ComponentType } from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import type { AlignmentState } from '../../pm-plugins/types';
|
|
8
8
|
export interface Props {
|
|
9
9
|
className?: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { AlignmentPlugin } from '../../alignmentPluginType';
|
|
9
9
|
import { ToolbarType } from '../../pm-plugins/types';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import type { FC, ComponentType } from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import type { AlignmentState } from '../../pm-plugins/types';
|
|
8
8
|
export interface Props {
|
|
9
9
|
className?: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { AlignmentPlugin } from '../../alignmentPluginType';
|
|
9
9
|
import { ToolbarType } from '../../pm-plugins/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,31 +26,32 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/adf-schema": "^52.
|
|
29
|
+
"@atlaskit/adf-schema": "^52.5.0",
|
|
30
30
|
"@atlaskit/css": "^0.19.0",
|
|
31
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
32
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
33
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
34
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
31
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^11.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-toolbar": "^7.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
37
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
38
|
-
"@atlaskit/icon": "^34.
|
|
37
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
38
|
+
"@atlaskit/icon": "^34.2.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
41
41
|
"@atlaskit/tokens": "^13.0.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@compiled/react": "^0.20.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^
|
|
46
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0",
|
|
49
|
-
"react-intl
|
|
49
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@testing-library/react": "^16.3.0",
|
|
53
53
|
"@testing-library/user-event": "^14.4.3",
|
|
54
|
+
"react-intl": "^6.6.2",
|
|
54
55
|
"wait-for-expect": "^1.2.0"
|
|
55
56
|
},
|
|
56
57
|
"techstack": {
|