@atlaskit/smart-card 43.6.2 → 43.6.3
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 +9 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +2 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +2 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0dbba3ef76ee9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0dbba3ef76ee9) -
|
|
8
|
+
[ux] Fix InlineCard showing Connect button when there is no action available (behind fg
|
|
9
|
+
navx-2479-sl-fix-inilne-card-show-connect-button)
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 43.6.2
|
|
4
13
|
|
|
5
14
|
### 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.6.
|
|
14
|
+
packageVersion: "43.6.2"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -12,6 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
14
14
|
var _lockFilled = _interopRequireDefault(require("@atlaskit/icon/glyph/lock-filled"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
17
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
17
18
|
var _messages = require("../../../messages");
|
|
@@ -73,7 +74,7 @@ var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function I
|
|
|
73
74
|
link: url,
|
|
74
75
|
onClick: onClick,
|
|
75
76
|
titleColor: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
76
|
-
}), renderActionButton());
|
|
77
|
+
}), (0, _platformFeatureFlags.fg)('navx-2479-sl-fix-inilne-card-show-connect-button') ? onAuthorise && renderActionButton() : renderActionButton());
|
|
77
78
|
if (onAuthorise && showHoverPreview) {
|
|
78
79
|
return /*#__PURE__*/_react.default.createElement(_HoverCard.HoverCard, {
|
|
79
80
|
url: url,
|
|
@@ -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.6.
|
|
25
|
+
packageVersion: "43.6.2",
|
|
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.6.
|
|
5
|
+
packageVersion: "43.6.2"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,6 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
7
7
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { N500 } from '@atlaskit/theme/colors';
|
|
9
10
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
10
11
|
import { messages } from '../../../messages';
|
|
@@ -66,7 +67,7 @@ export const InlineCardUnauthorizedView = ({
|
|
|
66
67
|
link: url,
|
|
67
68
|
onClick: onClick,
|
|
68
69
|
titleColor: `var(--ds-text-subtle, ${N500})`
|
|
69
|
-
}), renderActionButton());
|
|
70
|
+
}), fg('navx-2479-sl-fix-inilne-card-show-connect-button') ? onAuthorise && renderActionButton() : renderActionButton());
|
|
70
71
|
if (onAuthorise && showHoverPreview) {
|
|
71
72
|
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
72
73
|
url: url,
|
|
@@ -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.6.
|
|
15
|
+
packageVersion: "43.6.2",
|
|
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.6.
|
|
7
|
+
packageVersion: "43.6.2"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,6 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
7
7
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { N500 } from '@atlaskit/theme/colors';
|
|
9
10
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
10
11
|
import { messages } from '../../../messages';
|
|
@@ -66,7 +67,7 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
66
67
|
link: url,
|
|
67
68
|
onClick: onClick,
|
|
68
69
|
titleColor: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
69
|
-
}), renderActionButton());
|
|
70
|
+
}), fg('navx-2479-sl-fix-inilne-card-show-connect-button') ? onAuthorise && renderActionButton() : renderActionButton());
|
|
70
71
|
if (onAuthorise && showHoverPreview) {
|
|
71
72
|
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
72
73
|
url: url,
|
|
@@ -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.6.
|
|
18
|
+
packageVersion: "43.6.2",
|
|
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.6.
|
|
3
|
+
"version": "43.6.3",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/textarea": "^8.0.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^13.35.0",
|
|
74
74
|
"@atlaskit/tokens": "^8.0.0",
|
|
75
75
|
"@atlaskit/tooltip": "^20.8.0",
|
|
76
76
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -229,6 +229,9 @@
|
|
|
229
229
|
"navx-1959-remove-custom-ai-icon": {
|
|
230
230
|
"type": "boolean"
|
|
231
231
|
},
|
|
232
|
+
"navx-2479-sl-fix-inilne-card-show-connect-button": {
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
},
|
|
232
235
|
"navx-1910-fix-hovercard-performance-metrics": {
|
|
233
236
|
"type": "boolean"
|
|
234
237
|
}
|