@atlaskit/smart-card 43.7.2 → 43.8.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 +17 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +11 -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/blocks/title-block/resolving/index.js +10 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +11 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 43.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`a117d28802895`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a117d28802895) -
|
|
14
|
+
[ux] If icon prop is provided it will be used while the card is resolving and hideIcon is false
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 43.7.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "43.
|
|
14
|
+
packageVersion: "43.8.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,11 +8,13 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _constants = require("../../../../../../constants");
|
|
12
13
|
var _loadingSkeleton = require("../../../common/loading-skeleton");
|
|
14
|
+
var _elements = require("../../../elements");
|
|
13
15
|
var _utils = require("../../../utils");
|
|
14
16
|
var _block = _interopRequireDefault(require("../../block"));
|
|
15
|
-
var _excluded = ["actionGroup", "testId", "title", "hideIcon"];
|
|
17
|
+
var _excluded = ["actionGroup", "icon", "position", "testId", "title", "hideIcon"];
|
|
16
18
|
/* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-values */
|
|
17
19
|
/**
|
|
18
20
|
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
@@ -22,6 +24,8 @@ var _excluded = ["actionGroup", "testId", "title", "hideIcon"];
|
|
|
22
24
|
*/
|
|
23
25
|
var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
24
26
|
var actionGroup = _ref.actionGroup,
|
|
27
|
+
icon = _ref.icon,
|
|
28
|
+
position = _ref.position,
|
|
25
29
|
testId = _ref.testId,
|
|
26
30
|
title = _ref.title,
|
|
27
31
|
hideIcon = _ref.hideIcon,
|
|
@@ -31,7 +35,12 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
31
35
|
var iconWidth = (0, _utils.getIconWidth)(size);
|
|
32
36
|
return /*#__PURE__*/_react.default.createElement(_block.default, (0, _extends2.default)({}, blockProps, {
|
|
33
37
|
testId: "".concat(testId, "-resolving-view")
|
|
34
|
-
}), !hideIcon && /*#__PURE__*/_react.default.createElement(
|
|
38
|
+
}), !hideIcon && icon && (0, _platformFeatureFlags.fg)('platform_initial_icon_for_title_block') && /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, {
|
|
39
|
+
overrideIcon: icon,
|
|
40
|
+
position: position,
|
|
41
|
+
size: size,
|
|
42
|
+
hideLoadingSkeleton: true
|
|
43
|
+
}), !hideIcon && (!icon || !(0, _platformFeatureFlags.fg)('platform_initial_icon_for_title_block')) && /*#__PURE__*/_react.default.createElement("span", {
|
|
35
44
|
style: {
|
|
36
45
|
width: iconWidth,
|
|
37
46
|
height: iconWidth
|
|
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
22
22
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
23
23
|
var PACKAGE_DATA = {
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "43.
|
|
25
|
+
packageVersion: "43.8.0",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "43.
|
|
5
|
+
packageVersion: "43.8.0"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-values */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
5
6
|
import { LoadingSkeleton } from '../../../common/loading-skeleton';
|
|
7
|
+
import { LinkIcon } from '../../../elements';
|
|
6
8
|
import { getIconWidth } from '../../../utils';
|
|
7
9
|
import Block from '../../block';
|
|
8
10
|
/**
|
|
@@ -13,6 +15,8 @@ import Block from '../../block';
|
|
|
13
15
|
*/
|
|
14
16
|
const TitleBlockResolvingView = ({
|
|
15
17
|
actionGroup,
|
|
18
|
+
icon,
|
|
19
|
+
position,
|
|
16
20
|
testId,
|
|
17
21
|
title,
|
|
18
22
|
hideIcon,
|
|
@@ -24,7 +28,12 @@ const TitleBlockResolvingView = ({
|
|
|
24
28
|
const iconWidth = getIconWidth(size);
|
|
25
29
|
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
26
30
|
testId: `${testId}-resolving-view`
|
|
27
|
-
}), !hideIcon && /*#__PURE__*/React.createElement(
|
|
31
|
+
}), !hideIcon && icon && fg('platform_initial_icon_for_title_block') && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
32
|
+
overrideIcon: icon,
|
|
33
|
+
position: position,
|
|
34
|
+
size: size,
|
|
35
|
+
hideLoadingSkeleton: true
|
|
36
|
+
}), !hideIcon && (!icon || !fg('platform_initial_icon_for_title_block')) && /*#__PURE__*/React.createElement("span", {
|
|
28
37
|
style: {
|
|
29
38
|
width: iconWidth,
|
|
30
39
|
height: iconWidth
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "43.
|
|
15
|
+
packageVersion: "43.8.0",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -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: "43.
|
|
7
|
+
packageVersion: "43.8.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["actionGroup", "testId", "title", "hideIcon"];
|
|
3
|
+
var _excluded = ["actionGroup", "icon", "position", "testId", "title", "hideIcon"];
|
|
4
4
|
/* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-values */
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
7
8
|
import { LoadingSkeleton } from '../../../common/loading-skeleton';
|
|
9
|
+
import { LinkIcon } from '../../../elements';
|
|
8
10
|
import { getIconWidth } from '../../../utils';
|
|
9
11
|
import Block from '../../block';
|
|
10
12
|
/**
|
|
@@ -15,6 +17,8 @@ import Block from '../../block';
|
|
|
15
17
|
*/
|
|
16
18
|
var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
17
19
|
var actionGroup = _ref.actionGroup,
|
|
20
|
+
icon = _ref.icon,
|
|
21
|
+
position = _ref.position,
|
|
18
22
|
testId = _ref.testId,
|
|
19
23
|
title = _ref.title,
|
|
20
24
|
hideIcon = _ref.hideIcon,
|
|
@@ -24,7 +28,12 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
24
28
|
var iconWidth = getIconWidth(size);
|
|
25
29
|
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
26
30
|
testId: "".concat(testId, "-resolving-view")
|
|
27
|
-
}), !hideIcon && /*#__PURE__*/React.createElement(
|
|
31
|
+
}), !hideIcon && icon && fg('platform_initial_icon_for_title_block') && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
32
|
+
overrideIcon: icon,
|
|
33
|
+
position: position,
|
|
34
|
+
size: size,
|
|
35
|
+
hideLoadingSkeleton: true
|
|
36
|
+
}), !hideIcon && (!icon || !fg('platform_initial_icon_for_title_block')) && /*#__PURE__*/React.createElement("span", {
|
|
28
37
|
style: {
|
|
29
38
|
width: iconWidth,
|
|
30
39
|
height: iconWidth
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "43.
|
|
18
|
+
packageVersion: "43.8.0",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -6,5 +6,5 @@ import { type TitleBlockViewProps } from '../types';
|
|
|
6
6
|
* This should render when a Smart Link has sent a request.
|
|
7
7
|
* @see TitleBlock
|
|
8
8
|
*/
|
|
9
|
-
declare const TitleBlockResolvingView: ({ actionGroup, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => React.JSX.Element;
|
|
9
|
+
declare const TitleBlockResolvingView: ({ actionGroup, icon, position, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => React.JSX.Element;
|
|
10
10
|
export default TitleBlockResolvingView;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import { type TitleBlockViewProps } from '../types';
|
|
|
6
6
|
* This should render when a Smart Link has sent a request.
|
|
7
7
|
* @see TitleBlock
|
|
8
8
|
*/
|
|
9
|
-
declare const TitleBlockResolvingView: ({ actionGroup, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => React.JSX.Element;
|
|
9
|
+
declare const TitleBlockResolvingView: ({ actionGroup, icon, position, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => React.JSX.Element;
|
|
10
10
|
export default TitleBlockResolvingView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.8.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/badge": "^18.2.0",
|
|
35
35
|
"@atlaskit/button": "^23.6.0",
|
|
36
36
|
"@atlaskit/checkbox": "^17.1.0",
|
|
37
|
-
"@atlaskit/css": "^0.
|
|
37
|
+
"@atlaskit/css": "^0.16.0",
|
|
38
38
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
39
39
|
"@atlaskit/embedded-confluence": "^4.3.0",
|
|
40
40
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
64
64
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
65
65
|
"@atlaskit/popup": "^4.6.0",
|
|
66
|
-
"@atlaskit/primitives": "^16.
|
|
66
|
+
"@atlaskit/primitives": "^16.2.0",
|
|
67
67
|
"@atlaskit/section-message": "^8.9.0",
|
|
68
68
|
"@atlaskit/select": "^21.4.0",
|
|
69
69
|
"@atlaskit/spinner": "^19.0.0",
|
|
70
70
|
"@atlaskit/textarea": "^8.1.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.1.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
74
|
-
"@atlaskit/tokens": "^8.
|
|
75
|
-
"@atlaskit/tooltip": "^20.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^13.39.0",
|
|
74
|
+
"@atlaskit/tokens": "^8.1.0",
|
|
75
|
+
"@atlaskit/tooltip": "^20.10.0",
|
|
76
76
|
"@atlaskit/ufo": "^0.4.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|
|
78
78
|
"@compiled/react": "^0.18.6",
|
|
@@ -220,6 +220,9 @@
|
|
|
220
220
|
"platform_initial_data_for_smart_cards": {
|
|
221
221
|
"type": "boolean"
|
|
222
222
|
},
|
|
223
|
+
"platform_initial_icon_for_title_block": {
|
|
224
|
+
"type": "boolean"
|
|
225
|
+
},
|
|
223
226
|
"jfp-magma-platform-lozenge-jump-fix": {
|
|
224
227
|
"type": "boolean"
|
|
225
228
|
},
|