@atlaskit/smart-card 43.14.0 → 43.14.2
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 +13 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -3
- 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 +2 -3
- 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 +2 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 43.14.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`48aac488c8663`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/48aac488c8663) -
|
|
14
|
+
Clean up feature gate for adding optional icon prop to TitleBlock
|
|
15
|
+
|
|
3
16
|
## 43.14.0
|
|
4
17
|
|
|
5
18
|
### Minor 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.14.1"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,7 +8,6 @@ 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");
|
|
12
11
|
var _constants = require("../../../../../../constants");
|
|
13
12
|
var _loadingSkeleton = require("../../../common/loading-skeleton");
|
|
14
13
|
var _elements = require("../../../elements");
|
|
@@ -35,12 +34,12 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
35
34
|
var iconWidth = (0, _utils.getIconWidth)(size);
|
|
36
35
|
return /*#__PURE__*/_react.default.createElement(_block.default, (0, _extends2.default)({}, blockProps, {
|
|
37
36
|
testId: "".concat(testId, "-resolving-view")
|
|
38
|
-
}), !hideIcon && icon &&
|
|
37
|
+
}), !hideIcon && icon && /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, {
|
|
39
38
|
overrideIcon: icon,
|
|
40
39
|
position: position,
|
|
41
40
|
size: size,
|
|
42
41
|
hideLoadingSkeleton: true
|
|
43
|
-
}), !hideIcon &&
|
|
42
|
+
}), !hideIcon && !icon && /*#__PURE__*/_react.default.createElement("span", {
|
|
44
43
|
style: {
|
|
45
44
|
width: iconWidth,
|
|
46
45
|
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.14.1",
|
|
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.14.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
6
5
|
import { LoadingSkeleton } from '../../../common/loading-skeleton';
|
|
7
6
|
import { LinkIcon } from '../../../elements';
|
|
@@ -28,12 +27,12 @@ const TitleBlockResolvingView = ({
|
|
|
28
27
|
const iconWidth = getIconWidth(size);
|
|
29
28
|
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
30
29
|
testId: `${testId}-resolving-view`
|
|
31
|
-
}), !hideIcon && icon &&
|
|
30
|
+
}), !hideIcon && icon && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
32
31
|
overrideIcon: icon,
|
|
33
32
|
position: position,
|
|
34
33
|
size: size,
|
|
35
34
|
hideLoadingSkeleton: true
|
|
36
|
-
}), !hideIcon &&
|
|
35
|
+
}), !hideIcon && !icon && /*#__PURE__*/React.createElement("span", {
|
|
37
36
|
style: {
|
|
38
37
|
width: iconWidth,
|
|
39
38
|
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.14.1",
|
|
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.14.1"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
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';
|
|
7
6
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
8
7
|
import { LoadingSkeleton } from '../../../common/loading-skeleton';
|
|
9
8
|
import { LinkIcon } from '../../../elements';
|
|
@@ -28,12 +27,12 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
28
27
|
var iconWidth = getIconWidth(size);
|
|
29
28
|
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
30
29
|
testId: "".concat(testId, "-resolving-view")
|
|
31
|
-
}), !hideIcon && icon &&
|
|
30
|
+
}), !hideIcon && icon && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
32
31
|
overrideIcon: icon,
|
|
33
32
|
position: position,
|
|
34
33
|
size: size,
|
|
35
34
|
hideLoadingSkeleton: true
|
|
36
|
-
}), !hideIcon &&
|
|
35
|
+
}), !hideIcon && !icon && /*#__PURE__*/React.createElement("span", {
|
|
37
36
|
style: {
|
|
38
37
|
width: iconWidth,
|
|
39
38
|
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.14.1",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.14.
|
|
3
|
+
"version": "43.14.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@atlaskit/textfield": "^8.1.0",
|
|
73
73
|
"@atlaskit/theme": "^21.0.0",
|
|
74
74
|
"@atlaskit/tile": "^1.0.0",
|
|
75
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
75
|
+
"@atlaskit/tmp-editor-statsig": "^15.0.0",
|
|
76
76
|
"@atlaskit/tokens": "^8.4.0",
|
|
77
|
-
"@atlaskit/tooltip": "^20.
|
|
77
|
+
"@atlaskit/tooltip": "^20.11.0",
|
|
78
78
|
"@atlaskit/ufo": "^0.4.0",
|
|
79
79
|
"@babel/runtime": "^7.0.0",
|
|
80
80
|
"@compiled/react": "^0.18.6",
|
|
@@ -223,9 +223,6 @@
|
|
|
223
223
|
"navx-1895-new-logo-design": {
|
|
224
224
|
"type": "boolean"
|
|
225
225
|
},
|
|
226
|
-
"platform_initial_icon_for_title_block": {
|
|
227
|
-
"type": "boolean"
|
|
228
|
-
},
|
|
229
226
|
"jfp-magma-platform-lozenge-jump-fix": {
|
|
230
227
|
"type": "boolean"
|
|
231
228
|
},
|