@atlaskit/smart-card 40.22.0 → 40.22.1

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
+ ## 40.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dea73b984ba7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dea73b984ba7b) -
8
+ NAVX-1842 Adding aria-hidden attribute to dropdown chevron in smart-card lozenge
9
+ - Updated dependencies
10
+
3
11
  ## 40.22.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: "40.21.1"
14
+ packageVersion: "0.0.0-development"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -98,13 +98,15 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
98
98
  }, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement(_compiled.Box, {
99
99
  as: "span",
100
100
  xcss: styles.chevronDown
101
- }, /*#__PURE__*/React.createElement(_chevronDown.default, {
101
+ }, /*#__PURE__*/React.createElement(_chevronDown.default, (0, _extends2.default)({
102
102
  color: "currentColor",
103
103
  label: "options",
104
104
  LEGACY_size: "medium",
105
105
  LEGACY_margin: "-4px -8px -4px -7px",
106
106
  size: "small"
107
- })))));
107
+ }, (0, _platformFeatureFlags.fg)('navx-1842-hiding-unnecessary-image-descriptions') ? {
108
+ "aria-hidden": true
109
+ } : {}))))));
108
110
  }, [appearance, isHovering, isPressing, text, isOpen, lozengeBackgroundColor, lozengeForegroundColor]);
109
111
  return /*#__PURE__*/React.createElement("button", (0, _extends2.default)({
110
112
  type: "button"
@@ -21,7 +21,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
21
21
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
22
22
  var PACKAGE_DATA = {
23
23
  packageName: "@atlaskit/smart-card",
24
- packageVersion: "40.21.1",
24
+ packageVersion: "0.0.0-development",
25
25
  componentName: 'linkUrl'
26
26
  };
27
27
  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: "40.21.1"
5
+ packageVersion: "0.0.0-development"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -68,13 +68,15 @@ const LozengeActionTrigger = ({
68
68
  }, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement(Box, {
69
69
  as: "span",
70
70
  xcss: styles.chevronDown
71
- }, /*#__PURE__*/React.createElement(ChevronDownIcon, {
71
+ }, /*#__PURE__*/React.createElement(ChevronDownIcon, _extends({
72
72
  color: "currentColor",
73
73
  label: "options",
74
74
  LEGACY_size: "medium",
75
75
  LEGACY_margin: "-4px -8px -4px -7px",
76
76
  size: "small"
77
- })))));
77
+ }, fg('navx-1842-hiding-unnecessary-image-descriptions') ? {
78
+ "aria-hidden": true
79
+ } : {}))))));
78
80
  }, [appearance, isHovering, isPressing, text, isOpen, lozengeBackgroundColor, lozengeForegroundColor]);
79
81
  return /*#__PURE__*/React.createElement("button", _extends({
80
82
  type: "button"
@@ -11,7 +11,7 @@ import LinkWarningModal from './LinkWarningModal';
11
11
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
12
12
  const PACKAGE_DATA = {
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "40.21.1",
14
+ packageVersion: "0.0.0-development",
15
15
  componentName: 'linkUrl'
16
16
  };
17
17
  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: "40.21.1"
7
+ packageVersion: "0.0.0-development"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -90,13 +90,15 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
90
90
  }, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement(Box, {
91
91
  as: "span",
92
92
  xcss: styles.chevronDown
93
- }, /*#__PURE__*/React.createElement(ChevronDownIcon, {
93
+ }, /*#__PURE__*/React.createElement(ChevronDownIcon, _extends({
94
94
  color: "currentColor",
95
95
  label: "options",
96
96
  LEGACY_size: "medium",
97
97
  LEGACY_margin: "-4px -8px -4px -7px",
98
98
  size: "small"
99
- })))));
99
+ }, fg('navx-1842-hiding-unnecessary-image-descriptions') ? {
100
+ "aria-hidden": true
101
+ } : {}))))));
100
102
  }, [appearance, isHovering, isPressing, text, isOpen, lozengeBackgroundColor, lozengeForegroundColor]);
101
103
  return /*#__PURE__*/React.createElement("button", _extends({
102
104
  type: "button"
@@ -14,7 +14,7 @@ import LinkWarningModal from './LinkWarningModal';
14
14
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
15
15
  var PACKAGE_DATA = {
16
16
  packageName: "@atlaskit/smart-card",
17
- packageVersion: "40.21.1",
17
+ packageVersion: "0.0.0-development",
18
18
  componentName: 'linkUrl'
19
19
  };
20
20
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "40.22.0",
3
+ "version": "40.22.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -68,7 +68,7 @@
68
68
  "@atlaskit/textarea": "^8.0.0",
69
69
  "@atlaskit/textfield": "^8.0.0",
70
70
  "@atlaskit/theme": "^21.0.0",
71
- "@atlaskit/tmp-editor-statsig": "^12.10.0",
71
+ "@atlaskit/tmp-editor-statsig": "^12.16.0",
72
72
  "@atlaskit/tokens": "^6.3.0",
73
73
  "@atlaskit/tooltip": "^20.4.0",
74
74
  "@atlaskit/ufo": "^0.4.0",
@@ -231,6 +231,9 @@
231
231
  },
232
232
  "navx-1706-smart-link-layered-link-a11y-update": {
233
233
  "type": "boolean"
234
+ },
235
+ "navx-1842-hiding-unnecessary-image-descriptions": {
236
+ "type": "boolean"
234
237
  }
235
238
  },
236
239
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"