@atlaskit/smart-card 28.1.3 → 28.1.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 +15 -0
- package/dist/cjs/utils/actions/combine-action-options.js +16 -4
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +6 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +9 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/actions/combine-action-options.js +17 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +6 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +9 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/actions/combine-action-options.js +16 -4
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +6 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +9 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/utils/actions/combine-action-options.d.ts +10 -2
- package/dist/types/view/FlexibleCard/types.d.ts +3 -1
- package/dist/types/view/HoverCard/types.d.ts +3 -1
- package/dist/types-ts4.5/utils/actions/combine-action-options.d.ts +10 -2
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +3 -1
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +3 -1
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 28.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#141715](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141715)
|
|
8
|
+
[`d2037bfc8439b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2037bfc8439b) -
|
|
9
|
+
aria allowed attr
|
|
10
|
+
|
|
11
|
+
## 28.1.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`d716377afe79d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d716377afe79d) -
|
|
16
|
+
deprecating hidePreviewButton and hideHoverCardPreviewButton in hover card
|
|
17
|
+
|
|
3
18
|
## 28.1.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -7,7 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.combineActionOptions = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _types = require("../../view/Card/types");
|
|
10
|
-
var combineActionOptions = exports.combineActionOptions = function combineActionOptions(
|
|
10
|
+
var combineActionOptions = exports.combineActionOptions = function combineActionOptions(_ref) {
|
|
11
|
+
var actionOptions = _ref.actionOptions,
|
|
12
|
+
showServerActions = _ref.showServerActions,
|
|
13
|
+
showActions = _ref.showActions,
|
|
14
|
+
platform = _ref.platform,
|
|
15
|
+
hidePreviewButton = _ref.hidePreviewButton;
|
|
11
16
|
if (typeof actionOptions !== 'undefined') {
|
|
12
17
|
return actionOptions;
|
|
13
18
|
}
|
|
@@ -16,17 +21,24 @@ var combineActionOptions = exports.combineActionOptions = function combineAction
|
|
|
16
21
|
hide: true
|
|
17
22
|
};
|
|
18
23
|
}
|
|
24
|
+
var exclude = [];
|
|
25
|
+
if (hidePreviewButton) {
|
|
26
|
+
exclude = [].concat((0, _toConsumableArray2.default)(exclude), [_types.CardAction.PreviewAction]);
|
|
27
|
+
}
|
|
19
28
|
if (showServerActions && showActions) {
|
|
20
29
|
return {
|
|
21
|
-
hide: false
|
|
30
|
+
hide: false,
|
|
31
|
+
exclude: exclude
|
|
22
32
|
};
|
|
23
33
|
}
|
|
24
|
-
var exclude = [];
|
|
25
34
|
if (showServerActions === false) {
|
|
26
35
|
exclude = [].concat((0, _toConsumableArray2.default)(exclude), [_types.CardAction.FollowAction, _types.CardAction.ChangeStatusAction]);
|
|
27
36
|
}
|
|
28
37
|
if (showActions === false) {
|
|
29
|
-
exclude = [].concat((0, _toConsumableArray2.default)(exclude), [_types.CardAction.DownloadAction, _types.CardAction.
|
|
38
|
+
exclude = [].concat((0, _toConsumableArray2.default)(exclude), [_types.CardAction.DownloadAction, _types.CardAction.ViewAction]);
|
|
39
|
+
if (!exclude.includes(_types.CardAction.PreviewAction)) {
|
|
40
|
+
exclude.push(_types.CardAction.PreviewAction);
|
|
41
|
+
}
|
|
30
42
|
}
|
|
31
43
|
return {
|
|
32
44
|
hide: false,
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "28.1.
|
|
25
|
+
packageVersion: "28.1.5"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -76,7 +76,12 @@ function Component(_ref) {
|
|
|
76
76
|
var isFlexibleUi = (0, _react.useMemo)(function () {
|
|
77
77
|
return (0, _flexible.isFlexibleUiCard)(children);
|
|
78
78
|
}, [children]);
|
|
79
|
-
var actionOptions = (0, _combineActionOptions.combineActionOptions)(
|
|
79
|
+
var actionOptions = (0, _combineActionOptions.combineActionOptions)({
|
|
80
|
+
actionOptions: actionOptionsProp,
|
|
81
|
+
showServerActions: showServerActions,
|
|
82
|
+
showActions: showActions,
|
|
83
|
+
platform: platform
|
|
84
|
+
});
|
|
80
85
|
var frameStyle = (0, _utils.combineFrameStyle)(frameStyleProp, isFrameVisible);
|
|
81
86
|
|
|
82
87
|
// Setup UI handlers.
|
|
@@ -21,6 +21,7 @@ var _SmartLinkAnalyticsContext = require("../../../utils/analytics/SmartLinkAnal
|
|
|
21
21
|
var _combineActionOptions = require("../../../utils/actions/combine-action-options");
|
|
22
22
|
var _actions = require("../../../state/actions");
|
|
23
23
|
var _analytics = require("../../../state/analytics");
|
|
24
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
27
|
/**
|
|
@@ -72,7 +73,11 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
72
73
|
var analytics = (0, _analytics.useSmartLinkAnalytics)(url, undefined, id);
|
|
73
74
|
var _useSmartCardActions = (0, _actions.useSmartCardActions)(id, url, analytics),
|
|
74
75
|
loadMetadata = _useSmartCardActions.loadMetadata;
|
|
75
|
-
var actionOptions = (0, _combineActionOptions.combineActionOptions)(
|
|
76
|
+
var actionOptions = (0, _combineActionOptions.combineActionOptions)({
|
|
77
|
+
actionOptions: actionOptionsProp,
|
|
78
|
+
showServerActions: showServerActions,
|
|
79
|
+
hidePreviewButton: hidePreviewButton
|
|
80
|
+
});
|
|
76
81
|
var setMousePosition = (0, _react2.useCallback)(function (event) {
|
|
77
82
|
if (isOpen && canOpen) {
|
|
78
83
|
return;
|
|
@@ -214,7 +219,9 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
214
219
|
var trigger = (0, _react2.useCallback)(function (triggerProps) {
|
|
215
220
|
return (0, _react.jsx)("span", {
|
|
216
221
|
ref: parentSpan
|
|
217
|
-
}, (0, _react.jsx)("span", (0, _extends2.default)({}, triggerProps, {
|
|
222
|
+
}, (0, _react.jsx)("span", (0, _extends2.default)({}, triggerProps, (0, _platformFeatureFlags.fg)('platform-hover-card-aria-expanded-a11y-fix') && {
|
|
223
|
+
role: 'button'
|
|
224
|
+
}, {
|
|
218
225
|
onMouseOver: initShowCard,
|
|
219
226
|
onMouseLeave: initHideCard,
|
|
220
227
|
onMouseMove: setMousePosition,
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "28.1.
|
|
20
|
+
packageVersion: "28.1.5",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { CardAction } from '../../view/Card/types';
|
|
2
|
-
export const combineActionOptions = (
|
|
2
|
+
export const combineActionOptions = ({
|
|
3
|
+
actionOptions,
|
|
4
|
+
showServerActions,
|
|
5
|
+
showActions,
|
|
6
|
+
platform,
|
|
7
|
+
hidePreviewButton
|
|
8
|
+
}) => {
|
|
3
9
|
if (typeof actionOptions !== 'undefined') {
|
|
4
10
|
return actionOptions;
|
|
5
11
|
}
|
|
@@ -8,17 +14,24 @@ export const combineActionOptions = (actionOptions, showServerActions, showActio
|
|
|
8
14
|
hide: true
|
|
9
15
|
};
|
|
10
16
|
}
|
|
17
|
+
let exclude = [];
|
|
18
|
+
if (hidePreviewButton) {
|
|
19
|
+
exclude = [...exclude, CardAction.PreviewAction];
|
|
20
|
+
}
|
|
11
21
|
if (showServerActions && showActions) {
|
|
12
22
|
return {
|
|
13
|
-
hide: false
|
|
23
|
+
hide: false,
|
|
24
|
+
exclude
|
|
14
25
|
};
|
|
15
26
|
}
|
|
16
|
-
let exclude = [];
|
|
17
27
|
if (showServerActions === false) {
|
|
18
28
|
exclude = [...exclude, CardAction.FollowAction, CardAction.ChangeStatusAction];
|
|
19
29
|
}
|
|
20
30
|
if (showActions === false) {
|
|
21
|
-
exclude = [...exclude, CardAction.DownloadAction, CardAction.
|
|
31
|
+
exclude = [...exclude, CardAction.DownloadAction, CardAction.ViewAction];
|
|
32
|
+
if (!exclude.includes(CardAction.PreviewAction)) {
|
|
33
|
+
exclude.push(CardAction.PreviewAction);
|
|
34
|
+
}
|
|
22
35
|
}
|
|
23
36
|
return {
|
|
24
37
|
hide: false,
|
|
@@ -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: "28.1.
|
|
7
|
+
packageVersion: "28.1.5"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -67,7 +67,12 @@ function Component({
|
|
|
67
67
|
const services = getServices(state.details);
|
|
68
68
|
const canBeDatasource = getCanBeDatasource(state.details);
|
|
69
69
|
let isFlexibleUi = useMemo(() => isFlexibleUiCard(children), [children]);
|
|
70
|
-
const actionOptions = combineActionOptions(
|
|
70
|
+
const actionOptions = combineActionOptions({
|
|
71
|
+
actionOptions: actionOptionsProp,
|
|
72
|
+
showServerActions,
|
|
73
|
+
showActions,
|
|
74
|
+
platform
|
|
75
|
+
});
|
|
71
76
|
const frameStyle = combineFrameStyle(frameStyleProp, isFrameVisible);
|
|
72
77
|
|
|
73
78
|
// Setup UI handlers.
|
|
@@ -17,6 +17,7 @@ import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAna
|
|
|
17
17
|
import { combineActionOptions } from '../../../utils/actions/combine-action-options';
|
|
18
18
|
import { useSmartCardActions } from '../../../state/actions';
|
|
19
19
|
import { useSmartLinkAnalytics } from '../../../state/analytics';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
21
|
const HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
|
|
21
22
|
const FADE_IN_DELAY = 500;
|
|
22
23
|
const FADE_OUT_DELAY = 300;
|
|
@@ -51,7 +52,11 @@ export const HoverCardComponent = ({
|
|
|
51
52
|
const {
|
|
52
53
|
loadMetadata
|
|
53
54
|
} = useSmartCardActions(id, url, analytics);
|
|
54
|
-
const actionOptions = combineActionOptions(
|
|
55
|
+
const actionOptions = combineActionOptions({
|
|
56
|
+
actionOptions: actionOptionsProp,
|
|
57
|
+
showServerActions,
|
|
58
|
+
hidePreviewButton
|
|
59
|
+
});
|
|
55
60
|
const setMousePosition = useCallback(event => {
|
|
56
61
|
if (isOpen && canOpen) {
|
|
57
62
|
return;
|
|
@@ -188,7 +193,9 @@ export const HoverCardComponent = ({
|
|
|
188
193
|
}, [initShowCard, initHideCard, linkState, onActionClick, renderers, actionOptions, url, id]);
|
|
189
194
|
const trigger = useCallback(triggerProps => jsx("span", {
|
|
190
195
|
ref: parentSpan
|
|
191
|
-
}, jsx("span", _extends({}, triggerProps, {
|
|
196
|
+
}, jsx("span", _extends({}, triggerProps, fg('platform-hover-card-aria-expanded-a11y-fix') && {
|
|
197
|
+
role: 'button'
|
|
198
|
+
}, {
|
|
192
199
|
onMouseOver: initShowCard,
|
|
193
200
|
onMouseLeave: initHideCard,
|
|
194
201
|
onMouseMove: setMousePosition,
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "28.1.
|
|
10
|
+
packageVersion: "28.1.5",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { CardAction } from '../../view/Card/types';
|
|
3
|
-
export var combineActionOptions = function combineActionOptions(
|
|
3
|
+
export var combineActionOptions = function combineActionOptions(_ref) {
|
|
4
|
+
var actionOptions = _ref.actionOptions,
|
|
5
|
+
showServerActions = _ref.showServerActions,
|
|
6
|
+
showActions = _ref.showActions,
|
|
7
|
+
platform = _ref.platform,
|
|
8
|
+
hidePreviewButton = _ref.hidePreviewButton;
|
|
4
9
|
if (typeof actionOptions !== 'undefined') {
|
|
5
10
|
return actionOptions;
|
|
6
11
|
}
|
|
@@ -9,17 +14,24 @@ export var combineActionOptions = function combineActionOptions(actionOptions, s
|
|
|
9
14
|
hide: true
|
|
10
15
|
};
|
|
11
16
|
}
|
|
17
|
+
var exclude = [];
|
|
18
|
+
if (hidePreviewButton) {
|
|
19
|
+
exclude = [].concat(_toConsumableArray(exclude), [CardAction.PreviewAction]);
|
|
20
|
+
}
|
|
12
21
|
if (showServerActions && showActions) {
|
|
13
22
|
return {
|
|
14
|
-
hide: false
|
|
23
|
+
hide: false,
|
|
24
|
+
exclude: exclude
|
|
15
25
|
};
|
|
16
26
|
}
|
|
17
|
-
var exclude = [];
|
|
18
27
|
if (showServerActions === false) {
|
|
19
28
|
exclude = [].concat(_toConsumableArray(exclude), [CardAction.FollowAction, CardAction.ChangeStatusAction]);
|
|
20
29
|
}
|
|
21
30
|
if (showActions === false) {
|
|
22
|
-
exclude = [].concat(_toConsumableArray(exclude), [CardAction.DownloadAction, CardAction.
|
|
31
|
+
exclude = [].concat(_toConsumableArray(exclude), [CardAction.DownloadAction, CardAction.ViewAction]);
|
|
32
|
+
if (!exclude.includes(CardAction.PreviewAction)) {
|
|
33
|
+
exclude.push(CardAction.PreviewAction);
|
|
34
|
+
}
|
|
23
35
|
}
|
|
24
36
|
return {
|
|
25
37
|
hide: false,
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "28.1.
|
|
18
|
+
packageVersion: "28.1.5"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -66,7 +66,12 @@ function Component(_ref) {
|
|
|
66
66
|
var isFlexibleUi = useMemo(function () {
|
|
67
67
|
return isFlexibleUiCard(children);
|
|
68
68
|
}, [children]);
|
|
69
|
-
var actionOptions = combineActionOptions(
|
|
69
|
+
var actionOptions = combineActionOptions({
|
|
70
|
+
actionOptions: actionOptionsProp,
|
|
71
|
+
showServerActions: showServerActions,
|
|
72
|
+
showActions: showActions,
|
|
73
|
+
platform: platform
|
|
74
|
+
});
|
|
70
75
|
var frameStyle = combineFrameStyle(frameStyleProp, isFrameVisible);
|
|
71
76
|
|
|
72
77
|
// Setup UI handlers.
|
|
@@ -18,6 +18,7 @@ import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAna
|
|
|
18
18
|
import { combineActionOptions } from '../../../utils/actions/combine-action-options';
|
|
19
19
|
import { useSmartCardActions } from '../../../state/actions';
|
|
20
20
|
import { useSmartLinkAnalytics } from '../../../state/analytics';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
22
|
var HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
|
|
22
23
|
var FADE_IN_DELAY = 500;
|
|
23
24
|
var FADE_OUT_DELAY = 300;
|
|
@@ -60,7 +61,11 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
60
61
|
var analytics = useSmartLinkAnalytics(url, undefined, id);
|
|
61
62
|
var _useSmartCardActions = useSmartCardActions(id, url, analytics),
|
|
62
63
|
loadMetadata = _useSmartCardActions.loadMetadata;
|
|
63
|
-
var actionOptions = combineActionOptions(
|
|
64
|
+
var actionOptions = combineActionOptions({
|
|
65
|
+
actionOptions: actionOptionsProp,
|
|
66
|
+
showServerActions: showServerActions,
|
|
67
|
+
hidePreviewButton: hidePreviewButton
|
|
68
|
+
});
|
|
64
69
|
var setMousePosition = useCallback(function (event) {
|
|
65
70
|
if (isOpen && canOpen) {
|
|
66
71
|
return;
|
|
@@ -202,7 +207,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
202
207
|
var trigger = useCallback(function (triggerProps) {
|
|
203
208
|
return jsx("span", {
|
|
204
209
|
ref: parentSpan
|
|
205
|
-
}, jsx("span", _extends({}, triggerProps, {
|
|
210
|
+
}, jsx("span", _extends({}, triggerProps, fg('platform-hover-card-aria-expanded-a11y-fix') && {
|
|
211
|
+
role: 'button'
|
|
212
|
+
}, {
|
|
206
213
|
onMouseOver: initShowCard,
|
|
207
214
|
onMouseLeave: initHideCard,
|
|
208
215
|
onMouseMove: setMousePosition,
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "28.1.
|
|
13
|
+
packageVersion: "28.1.5",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type CardActionOptions, type CardPlatform } from '../../view/Card/types';
|
|
2
|
+
type CombineActionsOptions = {
|
|
3
|
+
actionOptions?: CardActionOptions;
|
|
4
|
+
showServerActions?: boolean;
|
|
5
|
+
showActions?: boolean;
|
|
6
|
+
platform?: CardPlatform;
|
|
7
|
+
hidePreviewButton?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const combineActionOptions: ({ actionOptions, showServerActions, showActions, platform, hidePreviewButton, }: CombineActionsOptions) => CardActionOptions;
|
|
10
|
+
export {};
|
|
@@ -102,7 +102,9 @@ export type FlexibleUiOptions = {
|
|
|
102
102
|
*/
|
|
103
103
|
hideElevation?: boolean;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-14817 Internal documentation for deprecation (no external access)}
|
|
106
|
+
*
|
|
107
|
+
* Prefer 'actionOptions' prop. Determines whether to hide hover preview's full screen view.
|
|
106
108
|
* Only applies if showHoverPreview from FlexibleCardProps is true
|
|
107
109
|
*/
|
|
108
110
|
hideHoverCardPreviewButton?: boolean;
|
|
@@ -36,7 +36,9 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
|
|
|
36
36
|
*/
|
|
37
37
|
closeOnChildClick?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-14817 Internal documentation for deprecation (no external access)}
|
|
40
|
+
*
|
|
41
|
+
* Prefer 'actionOptions' prop. Determines if the hover card should display the "Open preview" button.
|
|
40
42
|
*/
|
|
41
43
|
hidePreviewButton?: boolean;
|
|
42
44
|
/**
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type CardActionOptions, type CardPlatform } from '../../view/Card/types';
|
|
2
|
+
type CombineActionsOptions = {
|
|
3
|
+
actionOptions?: CardActionOptions;
|
|
4
|
+
showServerActions?: boolean;
|
|
5
|
+
showActions?: boolean;
|
|
6
|
+
platform?: CardPlatform;
|
|
7
|
+
hidePreviewButton?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const combineActionOptions: ({ actionOptions, showServerActions, showActions, platform, hidePreviewButton, }: CombineActionsOptions) => CardActionOptions;
|
|
10
|
+
export {};
|
|
@@ -102,7 +102,9 @@ export type FlexibleUiOptions = {
|
|
|
102
102
|
*/
|
|
103
103
|
hideElevation?: boolean;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-14817 Internal documentation for deprecation (no external access)}
|
|
106
|
+
*
|
|
107
|
+
* Prefer 'actionOptions' prop. Determines whether to hide hover preview's full screen view.
|
|
106
108
|
* Only applies if showHoverPreview from FlexibleCardProps is true
|
|
107
109
|
*/
|
|
108
110
|
hideHoverCardPreviewButton?: boolean;
|
|
@@ -36,7 +36,9 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
|
|
|
36
36
|
*/
|
|
37
37
|
closeOnChildClick?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-14817 Internal documentation for deprecation (no external access)}
|
|
40
|
+
*
|
|
41
|
+
* Prefer 'actionOptions' prop. Determines if the hover card should display the "Open preview" button.
|
|
40
42
|
*/
|
|
41
43
|
hidePreviewButton?: boolean;
|
|
42
44
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.5",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/icon-object": "^6.5.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
43
43
|
"@atlaskit/link-analytics": "^8.5.0",
|
|
44
|
-
"@atlaskit/link-client-extension": "^2.
|
|
44
|
+
"@atlaskit/link-client-extension": "^2.4.0",
|
|
45
45
|
"@atlaskit/link-extractors": "^1.9.0",
|
|
46
46
|
"@atlaskit/linking-common": "^5.11.0",
|
|
47
47
|
"@atlaskit/linking-types": "^9.0.0",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"@atlaskit/popup": "^1.25.0",
|
|
55
55
|
"@atlaskit/primitives": "^12.1.0",
|
|
56
56
|
"@atlaskit/section-message": "^6.6.0",
|
|
57
|
-
"@atlaskit/select": "^17.
|
|
57
|
+
"@atlaskit/select": "^17.19.0",
|
|
58
58
|
"@atlaskit/spinner": "^16.3.0",
|
|
59
59
|
"@atlaskit/textarea": "^5.6.0",
|
|
60
60
|
"@atlaskit/textfield": "^6.5.0",
|
|
61
61
|
"@atlaskit/theme": "^13.0.0",
|
|
62
|
-
"@atlaskit/tokens": "^1.
|
|
62
|
+
"@atlaskit/tokens": "^1.60.0",
|
|
63
63
|
"@atlaskit/tooltip": "^18.7.0",
|
|
64
64
|
"@atlaskit/ufo": "^0.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"uuid": "^3.1.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@atlaskit/link-provider": "^1.
|
|
82
|
+
"@atlaskit/link-provider": "^1.16.0",
|
|
83
83
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
84
84
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
85
85
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"@af/integration-testing": "*",
|
|
89
89
|
"@af/visual-regression": "*",
|
|
90
90
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
91
|
-
"@atlaskit/css-reset": "^6.
|
|
91
|
+
"@atlaskit/css-reset": "^6.11.0",
|
|
92
92
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
93
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
93
|
+
"@atlaskit/media-test-helpers": "^34.3.0",
|
|
94
94
|
"@atlaskit/ssr": "*",
|
|
95
95
|
"@atlaskit/visual-regression": "*",
|
|
96
96
|
"@atlassian/analytics-tooling": "*",
|
|
@@ -155,6 +155,9 @@
|
|
|
155
155
|
},
|
|
156
156
|
"linking-platform-increase-inline-card-icon-size": {
|
|
157
157
|
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"platform-hover-card-aria-expanded-a11y-fix": {
|
|
160
|
+
"type": "boolean"
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
163
|
}
|