@atlaskit/smart-card 43.7.2 → 43.8.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 +11 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +11 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +10 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +11 -2
- 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 +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a117d28802895`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a117d28802895) -
|
|
8
|
+
[ux] If icon prop is provided it will be used while the card is resolving and hideIcon is false
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 43.7.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,9 +70,9 @@
|
|
|
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.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^13.39.0",
|
|
74
74
|
"@atlaskit/tokens": "^8.0.0",
|
|
75
|
-
"@atlaskit/tooltip": "^20.
|
|
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
|
},
|