@atlaskit/smart-card 46.19.4 → 46.19.5
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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +5 -12
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +1 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +5 -10
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +1 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +5 -12
- package/dist/esm/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +1 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 46.19.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`90e0787d8eeb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90e0787d8eeb7) -
|
|
8
|
+
Removed the `platform_smart_link_preview_a11y_label` feature gate. Smart Link preview controls
|
|
9
|
+
include the resource title in their accessible names when a title is available.
|
|
10
|
+
|
|
3
11
|
## 46.19.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
25
25
|
var context = exports.context = {
|
|
26
26
|
componentName: 'smart-cards',
|
|
27
27
|
packageName: "@atlaskit/smart-card" || '',
|
|
28
|
-
packageVersion: "46.19.
|
|
28
|
+
packageVersion: "46.19.4" || ''
|
|
29
29
|
};
|
|
30
30
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
31
31
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.default = void 0;
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
13
|
var _react2 = require("@compiled/react");
|
|
15
14
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
@@ -17,7 +16,6 @@ var _button2 = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
|
17
16
|
var _link = _interopRequireDefault(require("@atlaskit/button/icon/link"));
|
|
18
17
|
var _link2 = _interopRequireDefault(require("@atlaskit/button/link"));
|
|
19
18
|
var _loadingButton = _interopRequireDefault(require("@atlaskit/button/loading-button"));
|
|
20
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
19
|
var _box = require("@atlaskit/primitives/compiled/box");
|
|
22
20
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
23
21
|
var _constants = require("../../../../../../constants");
|
|
@@ -27,8 +25,6 @@ var _useRovoConfig2 = _interopRequireDefault(require("../../../../../../state/ho
|
|
|
27
25
|
var _withOverrideCss = require("../../../common/with-override-css");
|
|
28
26
|
var _utils = require("../../../utils");
|
|
29
27
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
30
|
-
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; }
|
|
31
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
32
28
|
var IconOnlyLarge = null;
|
|
33
29
|
var SizeSmall = null;
|
|
34
30
|
var styles = {
|
|
@@ -54,9 +50,6 @@ var ButtonAppearanceMap = {
|
|
|
54
50
|
'subtle-link': 'subtle',
|
|
55
51
|
warning: 'warning'
|
|
56
52
|
};
|
|
57
|
-
var tooltipOptions = {
|
|
58
|
-
hideTooltipOnClick: true
|
|
59
|
-
};
|
|
60
53
|
var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
61
54
|
var _context$actions;
|
|
62
55
|
var _ref$appearance = _ref.appearance,
|
|
@@ -73,7 +66,6 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
73
66
|
href = _ref.href,
|
|
74
67
|
ariaLabel = _ref.ariaLabel;
|
|
75
68
|
var iconOnly = !content;
|
|
76
|
-
var isPreviewA11yLabelEnabled = (0, _fg.fg)('platform_smart_link_preview_a11y_label');
|
|
77
69
|
var context = (0, _useFlexibleUiContext.useFlexibleUiContext)();
|
|
78
70
|
var _useRovoConfig = (0, _useRovoConfig2.default)(),
|
|
79
71
|
product = _useRovoConfig.product;
|
|
@@ -92,10 +84,11 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
92
84
|
return icon;
|
|
93
85
|
} : undefined;
|
|
94
86
|
if (iconOnly && iconFn) {
|
|
95
|
-
var label =
|
|
96
|
-
var tooltip =
|
|
87
|
+
var label = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tooltipMessage;
|
|
88
|
+
var tooltip = {
|
|
89
|
+
hideTooltipOnClick: true,
|
|
97
90
|
content: tooltipMessage
|
|
98
|
-
}
|
|
91
|
+
};
|
|
99
92
|
if (isLinkButton && iconFn) {
|
|
100
93
|
return /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
101
94
|
appearance: IconButtonAppearanceMap[appearance],
|
|
@@ -161,7 +154,7 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
161
154
|
spacing: spacing,
|
|
162
155
|
testId: testId
|
|
163
156
|
}, content));
|
|
164
|
-
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading,
|
|
157
|
+
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
|
|
165
158
|
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
166
159
|
testId: "".concat(testId, "-button-wrapper"),
|
|
167
160
|
ref: ref,
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _dropdownItem = require("@atlaskit/dropdown-menu/dropdown-item");
|
|
10
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
11
10
|
var _handleOnClick = require("../../../../../../utils/handle-on-click");
|
|
12
11
|
var ActionDropdownItem = function ActionDropdownItem(_ref) {
|
|
13
12
|
var ariaLabel = _ref.ariaLabel,
|
|
@@ -18,7 +17,7 @@ var ActionDropdownItem = function ActionDropdownItem(_ref) {
|
|
|
18
17
|
onClick = _ref.onClick,
|
|
19
18
|
testId = _ref.testId;
|
|
20
19
|
return /*#__PURE__*/_react.default.createElement(_dropdownItem.DropdownItem, {
|
|
21
|
-
"aria-label":
|
|
20
|
+
"aria-label": ariaLabel,
|
|
22
21
|
elemAfter: iconAfter,
|
|
23
22
|
elemBefore: iconBefore,
|
|
24
23
|
isDisabled: isLoading,
|
|
@@ -12,7 +12,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-diagonal"));
|
|
14
14
|
var _panelRight = _interopRequireDefault(require("@atlaskit/icon/core/panel-right"));
|
|
15
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _constants = require("../../../../../constants");
|
|
18
17
|
var _messages = require("../../../../../messages");
|
|
@@ -74,7 +73,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
74
73
|
} else if (actionLabel === _messages.messages.preview_modal) {
|
|
75
74
|
actionLabelWithTitle = _messages.messages.preview_modal_with_title;
|
|
76
75
|
}
|
|
77
|
-
var ariaLabel =
|
|
76
|
+
var ariaLabel = title ? intl.formatMessage(actionLabelWithTitle, {
|
|
78
77
|
title: title
|
|
79
78
|
}) : actionMessage;
|
|
80
79
|
return data ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "46.19.
|
|
22
|
+
packageVersion: "46.19.4",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "46.19.
|
|
7
|
+
packageVersion: "46.19.4" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,7 +8,6 @@ import IconButton from '@atlaskit/button/icon/button';
|
|
|
8
8
|
import LinkIconButton from '@atlaskit/button/icon/link';
|
|
9
9
|
import LinkButton from '@atlaskit/button/link';
|
|
10
10
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
11
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
13
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
13
|
import { ActionName, SmartLinkSize } from '../../../../../../constants';
|
|
@@ -42,9 +41,6 @@ const ButtonAppearanceMap = {
|
|
|
42
41
|
'subtle-link': 'subtle',
|
|
43
42
|
warning: 'warning'
|
|
44
43
|
};
|
|
45
|
-
const tooltipOptions = {
|
|
46
|
-
hideTooltipOnClick: true
|
|
47
|
-
};
|
|
48
44
|
const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
|
|
49
45
|
appearance = 'default',
|
|
50
46
|
content,
|
|
@@ -61,7 +57,6 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
|
|
|
61
57
|
}, ref) => {
|
|
62
58
|
var _context$actions;
|
|
63
59
|
const iconOnly = !content;
|
|
64
|
-
const isPreviewA11yLabelEnabled = fg('platform_smart_link_preview_a11y_label');
|
|
65
60
|
const context = useFlexibleUiContext();
|
|
66
61
|
const {
|
|
67
62
|
product
|
|
@@ -77,11 +72,11 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
|
|
|
77
72
|
const icon = iconBefore || iconAfter;
|
|
78
73
|
const iconFn = icon ? () => icon : undefined;
|
|
79
74
|
if (iconOnly && iconFn) {
|
|
80
|
-
const label =
|
|
81
|
-
const tooltip =
|
|
82
|
-
|
|
75
|
+
const label = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tooltipMessage;
|
|
76
|
+
const tooltip = {
|
|
77
|
+
hideTooltipOnClick: true,
|
|
83
78
|
content: tooltipMessage
|
|
84
|
-
}
|
|
79
|
+
};
|
|
85
80
|
if (isLinkButton && iconFn) {
|
|
86
81
|
return /*#__PURE__*/React.createElement(LinkIconButton, {
|
|
87
82
|
appearance: IconButtonAppearanceMap[appearance],
|
|
@@ -143,7 +138,7 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
|
|
|
143
138
|
spacing: spacing,
|
|
144
139
|
testId: testId
|
|
145
140
|
}, content));
|
|
146
|
-
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading,
|
|
141
|
+
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
|
|
147
142
|
return /*#__PURE__*/React.createElement(Box, {
|
|
148
143
|
testId: `${testId}-button-wrapper`,
|
|
149
144
|
ref: ref,
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { handleOnClick } from '../../../../../../utils/handle-on-click';
|
|
5
4
|
const ActionDropdownItem = ({
|
|
6
5
|
ariaLabel,
|
|
@@ -11,7 +10,7 @@ const ActionDropdownItem = ({
|
|
|
11
10
|
onClick,
|
|
12
11
|
testId
|
|
13
12
|
}) => /*#__PURE__*/React.createElement(DropdownItem, {
|
|
14
|
-
"aria-label":
|
|
13
|
+
"aria-label": ariaLabel,
|
|
15
14
|
elemAfter: iconAfter,
|
|
16
15
|
elemBefore: iconBefore,
|
|
17
16
|
isDisabled: isLoading,
|
|
@@ -3,7 +3,6 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import MediaServicesActualSizeIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
5
5
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { ActionName } from '../../../../../constants';
|
|
9
8
|
import { messages } from '../../../../../messages';
|
|
@@ -64,7 +63,7 @@ const PreviewAction = ({
|
|
|
64
63
|
} else if (actionLabel === messages.preview_modal) {
|
|
65
64
|
actionLabelWithTitle = messages.preview_modal_with_title;
|
|
66
65
|
}
|
|
67
|
-
const ariaLabel =
|
|
66
|
+
const ariaLabel = title ? intl.formatMessage(actionLabelWithTitle, {
|
|
68
67
|
title
|
|
69
68
|
}) : actionMessage;
|
|
70
69
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "46.19.
|
|
12
|
+
packageVersion: "46.19.4",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "46.19.
|
|
7
|
+
packageVersion: "46.19.4" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import "./index.compiled.css";
|
|
4
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
4
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
8
5
|
import { cx } from '@compiled/react';
|
|
9
6
|
import Button from '@atlaskit/button/default/button';
|
|
@@ -11,7 +8,6 @@ import IconButton from '@atlaskit/button/icon/button';
|
|
|
11
8
|
import LinkIconButton from '@atlaskit/button/icon/link';
|
|
12
9
|
import LinkButton from '@atlaskit/button/link';
|
|
13
10
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
11
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
16
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
13
|
import { ActionName, SmartLinkSize } from '../../../../../../constants';
|
|
@@ -45,9 +41,6 @@ var ButtonAppearanceMap = {
|
|
|
45
41
|
'subtle-link': 'subtle',
|
|
46
42
|
warning: 'warning'
|
|
47
43
|
};
|
|
48
|
-
var tooltipOptions = {
|
|
49
|
-
hideTooltipOnClick: true
|
|
50
|
-
};
|
|
51
44
|
var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
52
45
|
var _context$actions;
|
|
53
46
|
var _ref$appearance = _ref.appearance,
|
|
@@ -64,7 +57,6 @@ var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
64
57
|
href = _ref.href,
|
|
65
58
|
ariaLabel = _ref.ariaLabel;
|
|
66
59
|
var iconOnly = !content;
|
|
67
|
-
var isPreviewA11yLabelEnabled = fg('platform_smart_link_preview_a11y_label');
|
|
68
60
|
var context = useFlexibleUiContext();
|
|
69
61
|
var _useRovoConfig = useRovoConfig(),
|
|
70
62
|
product = _useRovoConfig.product;
|
|
@@ -83,10 +75,11 @@ var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
83
75
|
return icon;
|
|
84
76
|
} : undefined;
|
|
85
77
|
if (iconOnly && iconFn) {
|
|
86
|
-
var label =
|
|
87
|
-
var tooltip =
|
|
78
|
+
var label = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tooltipMessage;
|
|
79
|
+
var tooltip = {
|
|
80
|
+
hideTooltipOnClick: true,
|
|
88
81
|
content: tooltipMessage
|
|
89
|
-
}
|
|
82
|
+
};
|
|
90
83
|
if (isLinkButton && iconFn) {
|
|
91
84
|
return /*#__PURE__*/React.createElement(LinkIconButton, {
|
|
92
85
|
appearance: IconButtonAppearanceMap[appearance],
|
|
@@ -152,7 +145,7 @@ var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
152
145
|
spacing: spacing,
|
|
153
146
|
testId: testId
|
|
154
147
|
}, content));
|
|
155
|
-
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading,
|
|
148
|
+
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
|
|
156
149
|
return /*#__PURE__*/React.createElement(Box, {
|
|
157
150
|
testId: "".concat(testId, "-button-wrapper"),
|
|
158
151
|
ref: ref,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { handleOnClick } from '../../../../../../utils/handle-on-click';
|
|
5
4
|
var ActionDropdownItem = function ActionDropdownItem(_ref) {
|
|
6
5
|
var ariaLabel = _ref.ariaLabel,
|
|
@@ -11,7 +10,7 @@ var ActionDropdownItem = function ActionDropdownItem(_ref) {
|
|
|
11
10
|
onClick = _ref.onClick,
|
|
12
11
|
testId = _ref.testId;
|
|
13
12
|
return /*#__PURE__*/React.createElement(DropdownItem, {
|
|
14
|
-
"aria-label":
|
|
13
|
+
"aria-label": ariaLabel,
|
|
15
14
|
elemAfter: iconAfter,
|
|
16
15
|
elemBefore: iconBefore,
|
|
17
16
|
isDisabled: isLoading,
|
|
@@ -5,7 +5,6 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import MediaServicesActualSizeIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
7
7
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
9
|
import { ActionName } from '../../../../../constants';
|
|
11
10
|
import { messages } from '../../../../../messages';
|
|
@@ -65,7 +64,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
65
64
|
} else if (actionLabel === messages.preview_modal) {
|
|
66
65
|
actionLabelWithTitle = messages.preview_modal_with_title;
|
|
67
66
|
}
|
|
68
|
-
var ariaLabel =
|
|
67
|
+
var ariaLabel = title ? intl.formatMessage(actionLabelWithTitle, {
|
|
69
68
|
title: title
|
|
70
69
|
}) : actionMessage;
|
|
71
70
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "46.19.
|
|
15
|
+
packageVersion: "46.19.4",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|