@atlaskit/smart-card 38.2.0 → 38.3.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 38.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157092](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157092)
8
+ [`87491e7b53b65`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87491e7b53b65) -
9
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
10
+ successful it will be available in a later release.
11
+
3
12
  ## 38.2.0
4
13
 
5
14
  ### 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: "38.2.0"
14
+ packageVersion: "38.3.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -76,7 +76,10 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
76
76
  hideTooltipOnMouseDown: true
77
77
  }, /*#__PURE__*/React.createElement(_styled.TextWrapperOldVisualRefresh, {
78
78
  isPlaceholder: isPlaceholder
79
- }, !isPlaceholder && /*#__PURE__*/React.createElement("a", {
79
+ }, !isPlaceholder &&
80
+ /*#__PURE__*/
81
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
82
+ React.createElement("a", {
80
83
  href: href,
81
84
  onClick: handleClick,
82
85
  onMouseDown: handleMouseDown
@@ -19,7 +19,10 @@ var AILearnMoreAnchor = function AILearnMoreAnchor(_ref) {
19
19
  href: _constants.CONTENT_URL_AI,
20
20
  target: "_blank",
21
21
  rel: "noopener noreferrer"
22
- }, props), children) : /*#__PURE__*/_react.default.createElement("a", (0, _extends2.default)({
22
+ }, props), children) :
23
+ /*#__PURE__*/
24
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
25
+ _react.default.createElement("a", (0, _extends2.default)({
23
26
  href: _constants.CONTENT_URL_AI,
24
27
  target: "_blank",
25
28
  rel: "noopener noreferrer"
@@ -42,7 +42,10 @@ var WarningModal = function WarningModal(props) {
42
42
  href: url,
43
43
  target: "_blank",
44
44
  rel: "noopener noreferrer"
45
- }, url) : /*#__PURE__*/React.createElement("a", {
45
+ }, url) :
46
+ /*#__PURE__*/
47
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
48
+ React.createElement("a", {
46
49
  href: url,
47
50
  target: "_blank",
48
51
  rel: "noopener noreferrer"
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "38.2.0",
23
+ packageVersion: "38.3.0",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -40,7 +40,10 @@ var UnauthorisedViewContent = function UnauthorisedViewContent(_ref) {
40
40
  target: "_blank",
41
41
  testId: "".concat(testId, "-learn-more"),
42
42
  onClick: handleLearnMoreClick
43
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, learnMoreMessage)) : /*#__PURE__*/_react.default.createElement("a", {
43
+ }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, learnMoreMessage)) :
44
+ /*#__PURE__*/
45
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
46
+ _react.default.createElement("a", {
44
47
  href: isProductIntegrationSupported ? _constants.CONTENT_URL_3P_ACCOUNT_AUTH : _constants.CONTENT_URL_SECURITY_AND_PERMISSIONS,
45
48
  target: "_blank",
46
49
  "data-testid": "".concat(testId, "-learn-more"),
@@ -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: "38.2.0"
5
+ packageVersion: "38.3.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -58,7 +58,10 @@ export const ExpandedFrame = ({
58
58
  hideTooltipOnMouseDown: true
59
59
  }, /*#__PURE__*/React.createElement(TextWrapperOldVisualRefresh, {
60
60
  isPlaceholder: isPlaceholder
61
- }, !isPlaceholder && /*#__PURE__*/React.createElement("a", {
61
+ }, !isPlaceholder &&
62
+ /*#__PURE__*/
63
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
64
+ React.createElement("a", {
62
65
  href: href,
63
66
  onClick: handleClick,
64
67
  onMouseDown: handleMouseDown
@@ -10,7 +10,10 @@ const AILearnMoreAnchor = ({
10
10
  href: CONTENT_URL_AI,
11
11
  target: "_blank",
12
12
  rel: "noopener noreferrer"
13
- }, props), children) : /*#__PURE__*/React.createElement("a", _extends({
13
+ }, props), children) :
14
+ /*#__PURE__*/
15
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
16
+ React.createElement("a", _extends({
14
17
  href: CONTENT_URL_AI,
15
18
  target: "_blank",
16
19
  rel: "noopener noreferrer"
@@ -33,7 +33,10 @@ const WarningModal = props => {
33
33
  href: url,
34
34
  target: "_blank",
35
35
  rel: "noopener noreferrer"
36
- }, url) : /*#__PURE__*/React.createElement("a", {
36
+ }, url) :
37
+ /*#__PURE__*/
38
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
39
+ React.createElement("a", {
37
40
  href: url,
38
41
  target: "_blank",
39
42
  rel: "noopener noreferrer"
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "38.2.0",
13
+ packageVersion: "38.3.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -31,7 +31,10 @@ const UnauthorisedViewContent = ({
31
31
  target: "_blank",
32
32
  testId: `${testId}-learn-more`,
33
33
  onClick: handleLearnMoreClick
34
- }, /*#__PURE__*/React.createElement(FormattedMessage, learnMoreMessage)) : /*#__PURE__*/React.createElement("a", {
34
+ }, /*#__PURE__*/React.createElement(FormattedMessage, learnMoreMessage)) :
35
+ /*#__PURE__*/
36
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
37
+ React.createElement("a", {
35
38
  href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
36
39
  target: "_blank",
37
40
  "data-testid": `${testId}-learn-more`,
@@ -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: "38.2.0"
7
+ packageVersion: "38.3.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -66,7 +66,10 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
66
66
  hideTooltipOnMouseDown: true
67
67
  }, /*#__PURE__*/React.createElement(TextWrapperOldVisualRefresh, {
68
68
  isPlaceholder: isPlaceholder
69
- }, !isPlaceholder && /*#__PURE__*/React.createElement("a", {
69
+ }, !isPlaceholder &&
70
+ /*#__PURE__*/
71
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
72
+ React.createElement("a", {
70
73
  href: href,
71
74
  onClick: handleClick,
72
75
  onMouseDown: handleMouseDown
@@ -12,7 +12,10 @@ var AILearnMoreAnchor = function AILearnMoreAnchor(_ref) {
12
12
  href: CONTENT_URL_AI,
13
13
  target: "_blank",
14
14
  rel: "noopener noreferrer"
15
- }, props), children) : /*#__PURE__*/React.createElement("a", _extends({
15
+ }, props), children) :
16
+ /*#__PURE__*/
17
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
18
+ React.createElement("a", _extends({
16
19
  href: CONTENT_URL_AI,
17
20
  target: "_blank",
18
21
  rel: "noopener noreferrer"
@@ -32,7 +32,10 @@ var WarningModal = function WarningModal(props) {
32
32
  href: url,
33
33
  target: "_blank",
34
34
  rel: "noopener noreferrer"
35
- }, url) : /*#__PURE__*/React.createElement("a", {
35
+ }, url) :
36
+ /*#__PURE__*/
37
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
38
+ React.createElement("a", {
36
39
  href: url,
37
40
  target: "_blank",
38
41
  rel: "noopener noreferrer"
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "38.2.0",
16
+ packageVersion: "38.3.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -30,7 +30,10 @@ var UnauthorisedViewContent = function UnauthorisedViewContent(_ref) {
30
30
  target: "_blank",
31
31
  testId: "".concat(testId, "-learn-more"),
32
32
  onClick: handleLearnMoreClick
33
- }, /*#__PURE__*/React.createElement(FormattedMessage, learnMoreMessage)) : /*#__PURE__*/React.createElement("a", {
33
+ }, /*#__PURE__*/React.createElement(FormattedMessage, learnMoreMessage)) :
34
+ /*#__PURE__*/
35
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
36
+ React.createElement("a", {
34
37
  href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
35
38
  target: "_blank",
36
39
  "data-testid": "".concat(testId, "-learn-more"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "38.2.0",
3
+ "version": "38.3.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,10 +32,10 @@
32
32
  "@atlaskit/avatar": "^25.1.0",
33
33
  "@atlaskit/avatar-group": "^12.0.0",
34
34
  "@atlaskit/badge": "^18.1.0",
35
- "@atlaskit/button": "^23.1.0",
35
+ "@atlaskit/button": "^23.2.0",
36
36
  "@atlaskit/checkbox": "^17.1.0",
37
37
  "@atlaskit/css": "^0.10.0",
38
- "@atlaskit/dropdown-menu": "^15.1.0",
38
+ "@atlaskit/dropdown-menu": "^15.2.0",
39
39
  "@atlaskit/form": "^12.0.0",
40
40
  "@atlaskit/frontend-utilities": "^3.0.0",
41
41
  "@atlaskit/heading": "^5.2.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/image": "^3.0.0",
48
48
  "@atlaskit/json-ld-types": "^1.2.0",
49
49
  "@atlaskit/legacy-custom-icons": "^0.22.0",
50
- "@atlaskit/link": "^3.1.0",
50
+ "@atlaskit/link": "^3.2.0",
51
51
  "@atlaskit/link-analytics": "^10.0.0",
52
52
  "@atlaskit/link-client-extension": "^5.0.0",
53
53
  "@atlaskit/link-extractors": "^2.3.0",
@@ -55,12 +55,12 @@
55
55
  "@atlaskit/linking-types": "^9.10.0",
56
56
  "@atlaskit/logo": "^18.0.0",
57
57
  "@atlaskit/lozenge": "^12.2.0",
58
- "@atlaskit/menu": "^7.0.0",
58
+ "@atlaskit/menu": "^7.1.0",
59
59
  "@atlaskit/modal-dialog": "^14.2.0",
60
60
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/popup": "^4.2.0",
63
- "@atlaskit/primitives": "^14.7.0",
63
+ "@atlaskit/primitives": "^14.8.0",
64
64
  "@atlaskit/section-message": "^8.2.0",
65
65
  "@atlaskit/select": "^20.6.0",
66
66
  "@atlaskit/spinner": "^18.0.0",
@@ -94,7 +94,7 @@
94
94
  "@af/integration-testing": "workspace:^",
95
95
  "@af/visual-regression": "workspace:^",
96
96
  "@atlaskit/analytics-listeners": "^9.0.0",
97
- "@atlaskit/css-reset": "^7.2.0",
97
+ "@atlaskit/css-reset": "^7.3.0",
98
98
  "@atlaskit/link-test-helpers": "^8.0.0",
99
99
  "@atlaskit/media-test-helpers": "^36.0.0",
100
100
  "@atlaskit/react-ufo": "^3.13.0",
@@ -242,6 +242,9 @@
242
242
  },
243
243
  "platform-linking-fix-a11y-in-smart-card": {
244
244
  "type": "boolean"
245
+ },
246
+ "dst-a11y__replace-anchor-with-link__linking-platfo": {
247
+ "type": "boolean"
245
248
  }
246
249
  }
247
250
  }