@atlaskit/smart-card 30.1.6 → 30.1.8

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,19 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 30.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#158485](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/158485)
8
+ [`f6d0a7ac31c3e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f6d0a7ac31c3e) -
9
+ Add generic aria-label to lazy-render-placeholder
10
+
11
+ ## 30.1.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 30.1.6
4
18
 
5
19
  ### Patch Changes
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "30.1.6"
25
+ packageVersion: "30.1.8"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -39,15 +39,17 @@ var Frame = exports.Frame = /*#__PURE__*/(0, _react.forwardRef)(function (props,
39
39
  }, [onClick]);
40
40
  var handleMouseDown = (0, _useLinkClicked.useMouseDownEvent)();
41
41
  var isInteractive = Boolean(onClick);
42
+ var isAnchor = Boolean(link || onClick);
42
43
 
43
44
  // Depending on whenever Frame was given onClick or link itself we display span or anchor elements
44
- var Wrapper = link || onClick ? _styled.WrapperAnchor : _styled.WrapperSpan;
45
+ var Wrapper = isAnchor ? _styled.WrapperAnchor : _styled.WrapperSpan;
45
46
  return /*#__PURE__*/_react.default.createElement(Wrapper, {
46
47
  href: link,
47
48
  withoutBackground: withoutBackground,
48
49
  isSelected: isSelected,
49
50
  isInteractive: isInteractive,
50
51
  tabIndex: isInteractive ? 0 : undefined,
52
+ "aria-label": isAnchor && !children ? link !== null && link !== void 0 ? link : 'Link' : undefined,
51
53
  role: isInteractive ? 'button' : undefined,
52
54
  onClick: handleClick,
53
55
  onMouseDown: handleMouseDown,
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "30.1.6",
20
+ packageVersion: "30.1.8",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "30.1.6"
7
+ packageVersion: "30.1.8"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -32,15 +32,17 @@ export const Frame = /*#__PURE__*/forwardRef((props, ref) => {
32
32
  }, [onClick]);
33
33
  const handleMouseDown = useMouseDownEvent();
34
34
  const isInteractive = Boolean(onClick);
35
+ const isAnchor = Boolean(link || onClick);
35
36
 
36
37
  // Depending on whenever Frame was given onClick or link itself we display span or anchor elements
37
- const Wrapper = link || onClick ? WrapperAnchor : WrapperSpan;
38
+ const Wrapper = isAnchor ? WrapperAnchor : WrapperSpan;
38
39
  return /*#__PURE__*/React.createElement(Wrapper, {
39
40
  href: link,
40
41
  withoutBackground: withoutBackground,
41
42
  isSelected: isSelected,
42
43
  isInteractive: isInteractive,
43
44
  tabIndex: isInteractive ? 0 : undefined,
45
+ "aria-label": isAnchor && !children ? link !== null && link !== void 0 ? link : 'Link' : undefined,
44
46
  role: isInteractive ? 'button' : undefined,
45
47
  onClick: handleClick,
46
48
  onMouseDown: handleMouseDown,
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
7
7
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "30.1.6",
10
+ packageVersion: "30.1.8",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "30.1.6"
18
+ packageVersion: "30.1.8"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -30,15 +30,17 @@ export var Frame = /*#__PURE__*/forwardRef(function (props, ref) {
30
30
  }, [onClick]);
31
31
  var handleMouseDown = useMouseDownEvent();
32
32
  var isInteractive = Boolean(onClick);
33
+ var isAnchor = Boolean(link || onClick);
33
34
 
34
35
  // Depending on whenever Frame was given onClick or link itself we display span or anchor elements
35
- var Wrapper = link || onClick ? WrapperAnchor : WrapperSpan;
36
+ var Wrapper = isAnchor ? WrapperAnchor : WrapperSpan;
36
37
  return /*#__PURE__*/React.createElement(Wrapper, {
37
38
  href: link,
38
39
  withoutBackground: withoutBackground,
39
40
  isSelected: isSelected,
40
41
  isInteractive: isInteractive,
41
42
  tabIndex: isInteractive ? 0 : undefined,
43
+ "aria-label": isAnchor && !children ? link !== null && link !== void 0 ? link : 'Link' : undefined,
42
44
  role: isInteractive ? 'button' : undefined,
43
45
  onClick: handleClick,
44
46
  onMouseDown: handleMouseDown,
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "30.1.6",
13
+ packageVersion: "30.1.8",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "30.1.6",
3
+ "version": "30.1.8",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,12 +27,12 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/analytics-gas-types": "^5.1.0",
29
29
  "@atlaskit/analytics-next": "^10.1.0",
30
- "@atlaskit/avatar": "^21.16.0",
30
+ "@atlaskit/avatar": "^21.17.0",
31
31
  "@atlaskit/avatar-group": "^10.0.0",
32
32
  "@atlaskit/badge": "^16.4.0",
33
33
  "@atlaskit/button": "^20.3.0",
34
34
  "@atlaskit/checkbox": "^15.1.0",
35
- "@atlaskit/dropdown-menu": "^12.21.0",
35
+ "@atlaskit/dropdown-menu": "^12.22.0",
36
36
  "@atlaskit/form": "^10.5.0",
37
37
  "@atlaskit/frontend-utilities": "^2.7.0",
38
38
  "@atlaskit/heading": "^2.4.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
53
53
  "@atlaskit/platform-feature-flags": "^0.3.0",
54
54
  "@atlaskit/popup": "^1.29.0",
55
- "@atlaskit/primitives": "^12.2.0",
55
+ "@atlaskit/primitives": "^13.0.0",
56
56
  "@atlaskit/section-message": "^6.6.0",
57
57
  "@atlaskit/select": "^18.4.0",
58
58
  "@atlaskit/spinner": "^16.3.0",