@atlaskit/editor-plugin-alignment 9.0.5 → 9.1.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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 9.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`5a8d797e50210`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a8d797e50210) -
|
|
14
|
+
[FFCLEANUP-91669] clean up platform_editor_hide_toolbar_tooltips_fix experiment to hide dropdown
|
|
15
|
+
menu item tooltips on hover of the dropdown menu button
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 9.0.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
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");
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
13
|
var _options = require("./options");
|
|
15
14
|
var AlignmentMenu = exports.AlignmentMenu = function AlignmentMenu(_ref) {
|
|
16
15
|
var children = _ref.children,
|
|
@@ -29,29 +28,16 @@ var AlignmentMenu = exports.AlignmentMenu = function AlignmentMenu(_ref) {
|
|
|
29
28
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
30
29
|
formatMessage = _useIntl.formatMessage;
|
|
31
30
|
var title = formatMessage(_messages.alignmentMessages.alignment);
|
|
32
|
-
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
34
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(Icon, {
|
|
35
|
-
label: "",
|
|
36
|
-
size: "small"
|
|
37
|
-
}),
|
|
38
|
-
isDisabled: !isEnabled,
|
|
39
|
-
testId: "text-alignment-menu",
|
|
40
|
-
label: title,
|
|
41
|
-
tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
42
|
-
content: title
|
|
43
|
-
})
|
|
44
|
-
}, children);
|
|
45
|
-
}
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
47
|
-
content: title
|
|
48
|
-
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
49
32
|
iconBefore: /*#__PURE__*/_react.default.createElement(Icon, {
|
|
50
33
|
label: "",
|
|
51
34
|
size: "small"
|
|
52
35
|
}),
|
|
53
36
|
isDisabled: !isEnabled,
|
|
54
37
|
testId: "text-alignment-menu",
|
|
55
|
-
label: title
|
|
56
|
-
|
|
38
|
+
label: title,
|
|
39
|
+
tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
40
|
+
content: title
|
|
41
|
+
})
|
|
42
|
+
}, children);
|
|
57
43
|
};
|
|
@@ -3,7 +3,6 @@ import { useIntl } from 'react-intl-next';
|
|
|
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';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { alignmentOptions } from './options';
|
|
8
7
|
export const AlignmentMenu = ({
|
|
9
8
|
children,
|
|
@@ -26,29 +25,16 @@ export const AlignmentMenu = ({
|
|
|
26
25
|
formatMessage
|
|
27
26
|
} = useIntl();
|
|
28
27
|
const title = formatMessage(messages.alignment);
|
|
29
|
-
|
|
30
|
-
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
31
|
-
iconBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
32
|
-
label: "",
|
|
33
|
-
size: "small"
|
|
34
|
-
}),
|
|
35
|
-
isDisabled: !isEnabled,
|
|
36
|
-
testId: "text-alignment-menu",
|
|
37
|
-
label: title,
|
|
38
|
-
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
39
|
-
content: title
|
|
40
|
-
})
|
|
41
|
-
}, children);
|
|
42
|
-
}
|
|
43
|
-
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
44
|
-
content: title
|
|
45
|
-
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
28
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
46
29
|
iconBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
47
30
|
label: "",
|
|
48
31
|
size: "small"
|
|
49
32
|
}),
|
|
50
33
|
isDisabled: !isEnabled,
|
|
51
34
|
testId: "text-alignment-menu",
|
|
52
|
-
label: title
|
|
53
|
-
|
|
35
|
+
label: title,
|
|
36
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
37
|
+
content: title
|
|
38
|
+
})
|
|
39
|
+
}, children);
|
|
54
40
|
};
|
|
@@ -3,7 +3,6 @@ import { useIntl } from 'react-intl-next';
|
|
|
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';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { alignmentOptions } from './options';
|
|
8
7
|
export var AlignmentMenu = function AlignmentMenu(_ref) {
|
|
9
8
|
var children = _ref.children,
|
|
@@ -22,29 +21,16 @@ export var AlignmentMenu = function AlignmentMenu(_ref) {
|
|
|
22
21
|
var _useIntl = useIntl(),
|
|
23
22
|
formatMessage = _useIntl.formatMessage;
|
|
24
23
|
var title = formatMessage(messages.alignment);
|
|
25
|
-
|
|
26
|
-
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
27
|
-
iconBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
28
|
-
label: "",
|
|
29
|
-
size: "small"
|
|
30
|
-
}),
|
|
31
|
-
isDisabled: !isEnabled,
|
|
32
|
-
testId: "text-alignment-menu",
|
|
33
|
-
label: title,
|
|
34
|
-
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
35
|
-
content: title
|
|
36
|
-
})
|
|
37
|
-
}, children);
|
|
38
|
-
}
|
|
39
|
-
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
40
|
-
content: title
|
|
41
|
-
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
24
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
42
25
|
iconBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
43
26
|
label: "",
|
|
44
27
|
size: "small"
|
|
45
28
|
}),
|
|
46
29
|
isDisabled: !isEnabled,
|
|
47
30
|
testId: "text-alignment-menu",
|
|
48
|
-
label: title
|
|
49
|
-
|
|
31
|
+
label: title,
|
|
32
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
33
|
+
content: title
|
|
34
|
+
})
|
|
35
|
+
}, children);
|
|
50
36
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-selection-toolbar": "^9.0.0",
|
|
34
|
-
"@atlaskit/editor-plugin-toolbar": "^5.
|
|
34
|
+
"@atlaskit/editor-plugin-toolbar": "^5.1.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": "^
|
|
37
|
+
"@atlaskit/editor-toolbar": "^0.20.0",
|
|
38
|
+
"@atlaskit/icon": "^33.0.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^40.2.0",
|
|
41
41
|
"@atlaskit/tokens": "^11.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@compiled/react": "^0.20.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^112.
|
|
46
|
+
"@atlaskit/editor-common": "^112.4.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1"
|