@atlaskit/smart-card 43.6.4 → 43.6.5

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
+ ## 43.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`831b80402e030`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/831b80402e030) -
8
+ Make SmartCard layered link keyboard interactive
9
+ - Updated dependencies
10
+
3
11
  ## 43.6.4
4
12
 
5
13
  ### 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.3"
14
+ packageVersion: "43.6.4"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -9,6 +9,7 @@ exports.default = void 0;
9
9
  require("./index.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  var _useLinkClicked = require("../../../../../state/analytics/useLinkClicked");
13
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
15
  var styles = null;
@@ -33,9 +34,9 @@ var LayeredLink = function LayeredLink(_ref) {
33
34
  onClick: onClick,
34
35
  onMouseDown: onMouseDown,
35
36
  target: target,
36
- tabIndex: -1 // Hide tab index and let the title link be the link.
37
+ tabIndex: (0, _platformFeatureFlags.fg)('platform-linking-smart-card-layered-link-a11y') ? undefined : -1 // Hide tab index and let the title link be the link.
37
38
  ,
38
- "aria-hidden": true // This is to avoid screen readers reading out the link twice.
39
+ "aria-hidden": (0, _platformFeatureFlags.fg)('platform-linking-smart-card-layered-link-a11y') ? undefined : true // This is to avoid screen readers reading out the link twice.
39
40
  }, text);
40
41
  };
41
42
  var _default = exports.default = LayeredLink;
@@ -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.3",
25
+ packageVersion: "43.6.4",
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.3"
5
+ packageVersion: "43.6.4"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -2,6 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
6
7
  const styles = null;
7
8
 
@@ -26,9 +27,9 @@ const LayeredLink = ({
26
27
  onClick: onClick,
27
28
  onMouseDown: onMouseDown,
28
29
  target: target,
29
- tabIndex: -1 // Hide tab index and let the title link be the link.
30
+ tabIndex: fg('platform-linking-smart-card-layered-link-a11y') ? undefined : -1 // Hide tab index and let the title link be the link.
30
31
  ,
31
- "aria-hidden": true // This is to avoid screen readers reading out the link twice.
32
+ "aria-hidden": fg('platform-linking-smart-card-layered-link-a11y') ? undefined : true // This is to avoid screen readers reading out the link twice.
32
33
  }, text);
33
34
  };
34
35
  export default LayeredLink;
@@ -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.3",
15
+ packageVersion: "43.6.4",
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.3"
7
+ packageVersion: "43.6.4"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -2,6 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
6
7
  var styles = null;
7
8
 
@@ -25,9 +26,9 @@ var LayeredLink = function LayeredLink(_ref) {
25
26
  onClick: onClick,
26
27
  onMouseDown: onMouseDown,
27
28
  target: target,
28
- tabIndex: -1 // Hide tab index and let the title link be the link.
29
+ tabIndex: fg('platform-linking-smart-card-layered-link-a11y') ? undefined : -1 // Hide tab index and let the title link be the link.
29
30
  ,
30
- "aria-hidden": true // This is to avoid screen readers reading out the link twice.
31
+ "aria-hidden": fg('platform-linking-smart-card-layered-link-a11y') ? undefined : true // This is to avoid screen readers reading out the link twice.
31
32
  }, text);
32
33
  };
33
34
  export default LayeredLink;
@@ -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.3",
18
+ packageVersion: "43.6.4",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
@@ -13,3 +13,4 @@ export interface LozengeProps {
13
13
  style?: AtlaskitLozengeProps['style'];
14
14
  text: string;
15
15
  }
16
+ export type { TitleBlockProps } from './view/FlexibleCard/components/blocks/title-block/types';
@@ -13,3 +13,4 @@ export interface LozengeProps {
13
13
  style?: AtlaskitLozengeProps['style'];
14
14
  text: string;
15
15
  }
16
+ export type { TitleBlockProps } from './view/FlexibleCard/components/blocks/title-block/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.6.4",
3
+ "version": "43.6.5",
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.35.0",
73
+ "@atlaskit/tmp-editor-statsig": "^13.37.0",
74
74
  "@atlaskit/tokens": "^8.0.0",
75
75
  "@atlaskit/tooltip": "^20.8.0",
76
76
  "@atlaskit/ufo": "^0.4.0",
@@ -234,6 +234,9 @@
234
234
  },
235
235
  "navx-1910-fix-hovercard-performance-metrics": {
236
236
  "type": "boolean"
237
+ },
238
+ "platform-linking-smart-card-layered-link-a11y": {
239
+ "type": "boolean"
237
240
  }
238
241
  },
239
242
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"