@atlaskit/smart-card 38.12.0 → 38.13.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,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 38.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#174490](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174490)
8
+ [`b888b5c613e71`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b888b5c613e71) -
9
+ [ux] EDM-12882 fixing a11y issues with platform-linking-flexible-card-context
10
+
3
11
  ## 38.12.0
4
12
 
5
13
  ### 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.11.0"
14
+ packageVersion: "38.12.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -169,6 +169,7 @@ var getTitleBlockProps = function getTitleBlockProps(children) {
169
169
  };
170
170
  var getLayeredLink = function getLayeredLink(testId, context, children, onClick) {
171
171
  var _ref3 = context || {},
172
+ linkTitle = _ref3.linkTitle,
172
173
  title = _ref3.title,
173
174
  _ref3$url = _ref3.url,
174
175
  url = _ref3$url === void 0 ? '' : _ref3$url;
@@ -179,7 +180,7 @@ var getLayeredLink = function getLayeredLink(testId, context, children, onClick)
179
180
  onClick: onClick,
180
181
  target: target,
181
182
  testId: testId,
182
- text: text || title,
183
+ text: text || title || (linkTitle === null || linkTitle === void 0 ? void 0 : linkTitle.text),
183
184
  url: url
184
185
  });
185
186
  };
@@ -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.11.0",
23
+ packageVersion: "38.12.0",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  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: "38.11.0"
5
+ packageVersion: "38.12.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -161,6 +161,7 @@ const getTitleBlockProps = children => {
161
161
  };
162
162
  const getLayeredLink = (testId, context, children, onClick) => {
163
163
  const {
164
+ linkTitle,
164
165
  title,
165
166
  url = ''
166
167
  } = context || {};
@@ -172,7 +173,7 @@ const getLayeredLink = (testId, context, children, onClick) => {
172
173
  onClick: onClick,
173
174
  target: target,
174
175
  testId: testId,
175
- text: text || title,
176
+ text: text || title || (linkTitle === null || linkTitle === void 0 ? void 0 : linkTitle.text),
176
177
  url: url
177
178
  });
178
179
  };
@@ -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.11.0",
13
+ packageVersion: "38.12.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  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: "38.11.0"
7
+ packageVersion: "38.12.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -164,6 +164,7 @@ var getTitleBlockProps = function getTitleBlockProps(children) {
164
164
  };
165
165
  var getLayeredLink = function getLayeredLink(testId, context, children, onClick) {
166
166
  var _ref3 = context || {},
167
+ linkTitle = _ref3.linkTitle,
167
168
  title = _ref3.title,
168
169
  _ref3$url = _ref3.url,
169
170
  url = _ref3$url === void 0 ? '' : _ref3$url;
@@ -174,7 +175,7 @@ var getLayeredLink = function getLayeredLink(testId, context, children, onClick)
174
175
  onClick: onClick,
175
176
  target: target,
176
177
  testId: testId,
177
- text: text || title,
178
+ text: text || title || (linkTitle === null || linkTitle === void 0 ? void 0 : linkTitle.text),
178
179
  url: url
179
180
  });
180
181
  };
@@ -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.11.0",
16
+ packageVersion: "38.12.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "38.12.0",
3
+ "version": "38.13.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"