@atlaskit/media-card 79.4.5 → 79.4.7

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,20 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 79.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 79.4.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#192828](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/192828)
14
+ [`a798dd56b4aba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a798dd56b4aba) -
15
+ Fixes A11Y issues
16
+ - Updated dependencies
17
+
3
18
  ## 79.4.5
4
19
 
5
20
  ### Patch Changes
@@ -20,7 +20,7 @@ var _label = _interopRequireDefault(require("@atlaskit/react-ufo/label"));
20
20
  var _excluded = ["identifier"];
21
21
  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); }
22
22
  var packageName = "@atlaskit/media-card";
23
- var packageVersion = "79.4.4";
23
+ var packageVersion = "79.4.6";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -87,7 +87,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
87
87
  }(_react.default.Component);
88
88
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
89
89
  var packageName = "@atlaskit/media-card";
90
- var packageVersion = "79.4.4";
90
+ var packageVersion = "79.4.6";
91
91
 
92
92
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
93
93
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -18,11 +18,14 @@ var ProgressBar = exports.ProgressBar = function ProgressBar(_ref) {
18
18
  _ref$positionBottom = _ref.positionBottom,
19
19
  positionBottom = _ref$positionBottom === void 0 ? false : _ref$positionBottom,
20
20
  _ref$showOnTop = _ref.showOnTop,
21
- showOnTop = _ref$showOnTop === void 0 ? false : _ref$showOnTop;
21
+ showOnTop = _ref$showOnTop === void 0 ? false : _ref$showOnTop,
22
+ _ref$ariaLabel = _ref.ariaLabel,
23
+ ariaLabel = _ref$ariaLabel === void 0 ? 'Loading progress' : _ref$ariaLabel;
22
24
  return /*#__PURE__*/_react.default.createElement(_styledBar.StyledBar, {
23
25
  progress: getNormalizedProgress(progress),
24
26
  breakpoint: breakpoint,
25
27
  positionBottom: positionBottom,
26
- showOnTop: showOnTop
28
+ showOnTop: showOnTop,
29
+ ariaLabel: ariaLabel
27
30
  });
28
31
  };
@@ -44,11 +44,13 @@ var StyledBar = exports.StyledBar = function StyledBar(props) {
44
44
  var progress = props.progress,
45
45
  breakpoint = props.breakpoint,
46
46
  positionBottom = props.positionBottom,
47
- showOnTop = props.showOnTop;
47
+ showOnTop = props.showOnTop,
48
+ ariaLabel = props.ariaLabel;
48
49
  return /*#__PURE__*/React.createElement("div", {
49
50
  id: "styledBar",
50
51
  role: "progressbar",
51
52
  "aria-valuenow": progress,
53
+ "aria-label": ariaLabel,
52
54
  className: (0, _runtime.ax)(["_1reo15vq _18m915vq _1yt4xh0m _2rko1l7b _kqswstnw _1bsb1b7y _1ltv1ghs _bfhkrcrw _4t3i12iw _vchhusvi"]),
53
55
  style: _objectSpread(_objectSpread({}, generateResponsiveStyles(breakpoint, positionBottom, showOnTop)), {}, {
54
56
  "--_1xe2l1p": (0, _runtime.ix)("".concat(width, "%")),
@@ -16,11 +16,13 @@ var StyledBar = exports.StyledBar = function StyledBar(props) {
16
16
  var progress = props.progress,
17
17
  breakpoint = props.breakpoint,
18
18
  positionBottom = props.positionBottom,
19
- showOnTop = props.showOnTop;
19
+ showOnTop = props.showOnTop,
20
+ ariaLabel = props.ariaLabel;
20
21
  return (0, _react.jsx)("div", {
21
22
  id: "styledBar",
22
23
  role: "progressbar",
23
- "aria-valuenow": progress
24
+ "aria-valuenow": progress,
25
+ "aria-label": ariaLabel
24
26
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
25
27
  ,
26
28
  css: (0, _styles.styledBarStyles)({
@@ -116,7 +116,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
116
116
  ErrorBoundary = _this$state.ErrorBoundary;
117
117
  var analyticsContext = {
118
118
  packageVersion: "@atlaskit/media-card",
119
- packageName: "79.4.4",
119
+ packageName: "79.4.6",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -15,7 +15,7 @@ var _mediaClient = require("@atlaskit/media-client");
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var packageName = "@atlaskit/media-card";
18
- var packageVersion = "79.4.4";
18
+ var packageVersion = "79.4.6";
19
19
  var SAMPLE_RATE = 0.05;
20
20
  var concurrentExperience;
21
21
  var getExperience = function getExperience(id) {
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import UFOLabel from '@atlaskit/react-ufo/label';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "79.4.4";
12
+ const packageVersion = "79.4.6";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
66
66
  }
67
67
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
68
68
  const packageName = "@atlaskit/media-card";
69
- const packageVersion = "79.4.4";
69
+ const packageVersion = "79.4.6";
70
70
 
71
71
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
72
72
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -8,12 +8,14 @@ export const ProgressBar = ({
8
8
  progress,
9
9
  breakpoint = Breakpoint.SMALL,
10
10
  positionBottom = false,
11
- showOnTop = false
11
+ showOnTop = false,
12
+ ariaLabel = 'Loading progress'
12
13
  }) => {
13
14
  return /*#__PURE__*/React.createElement(StyledBar, {
14
15
  progress: getNormalizedProgress(progress),
15
16
  breakpoint: breakpoint,
16
17
  positionBottom: positionBottom,
17
- showOnTop: showOnTop
18
+ showOnTop: showOnTop,
19
+ ariaLabel: ariaLabel
18
20
  });
19
21
  };
@@ -31,12 +31,14 @@ export const StyledBar = props => {
31
31
  progress,
32
32
  breakpoint,
33
33
  positionBottom,
34
- showOnTop
34
+ showOnTop,
35
+ ariaLabel
35
36
  } = props;
36
37
  return /*#__PURE__*/React.createElement("div", {
37
38
  id: "styledBar",
38
39
  role: "progressbar",
39
40
  "aria-valuenow": progress,
41
+ "aria-label": ariaLabel,
40
42
  style: {
41
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
42
44
  ...generateResponsiveStyles(breakpoint, positionBottom, showOnTop)
@@ -10,12 +10,14 @@ export const StyledBar = props => {
10
10
  progress,
11
11
  breakpoint,
12
12
  positionBottom,
13
- showOnTop
13
+ showOnTop,
14
+ ariaLabel
14
15
  } = props;
15
16
  return jsx("div", {
16
17
  id: "styledBar",
17
18
  role: "progressbar",
18
- "aria-valuenow": progress
19
+ "aria-valuenow": progress,
20
+ "aria-label": ariaLabel
19
21
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
20
22
  ,
21
23
  css: styledBarStyles({
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
37
37
  } = this.state;
38
38
  const analyticsContext = {
39
39
  packageVersion: "@atlaskit/media-card",
40
- packageName: "79.4.4",
40
+ packageName: "79.4.6",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -5,7 +5,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
5
5
  import { MediaCardError } from '../errors';
6
6
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
7
7
  const packageName = "@atlaskit/media-card";
8
- const packageVersion = "79.4.4";
8
+ const packageVersion = "79.4.6";
9
9
  const SAMPLE_RATE = 0.05;
10
10
  let concurrentExperience;
11
11
  const getExperience = id => {
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import UFOLabel from '@atlaskit/react-ufo/label';
13
13
  var packageName = "@atlaskit/media-card";
14
- var packageVersion = "79.4.4";
14
+ var packageVersion = "79.4.6";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -80,7 +80,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
80
80
  }(React.Component);
81
81
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
82
82
  var packageName = "@atlaskit/media-card";
83
- var packageVersion = "79.4.4";
83
+ var packageVersion = "79.4.6";
84
84
 
85
85
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
86
86
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -11,11 +11,14 @@ export var ProgressBar = function ProgressBar(_ref) {
11
11
  _ref$positionBottom = _ref.positionBottom,
12
12
  positionBottom = _ref$positionBottom === void 0 ? false : _ref$positionBottom,
13
13
  _ref$showOnTop = _ref.showOnTop,
14
- showOnTop = _ref$showOnTop === void 0 ? false : _ref$showOnTop;
14
+ showOnTop = _ref$showOnTop === void 0 ? false : _ref$showOnTop,
15
+ _ref$ariaLabel = _ref.ariaLabel,
16
+ ariaLabel = _ref$ariaLabel === void 0 ? 'Loading progress' : _ref$ariaLabel;
15
17
  return /*#__PURE__*/React.createElement(StyledBar, {
16
18
  progress: getNormalizedProgress(progress),
17
19
  breakpoint: breakpoint,
18
20
  positionBottom: positionBottom,
19
- showOnTop: showOnTop
21
+ showOnTop: showOnTop,
22
+ ariaLabel: ariaLabel
20
23
  });
21
24
  };
@@ -34,11 +34,13 @@ export var StyledBar = function StyledBar(props) {
34
34
  var progress = props.progress,
35
35
  breakpoint = props.breakpoint,
36
36
  positionBottom = props.positionBottom,
37
- showOnTop = props.showOnTop;
37
+ showOnTop = props.showOnTop,
38
+ ariaLabel = props.ariaLabel;
38
39
  return /*#__PURE__*/React.createElement("div", {
39
40
  id: "styledBar",
40
41
  role: "progressbar",
41
42
  "aria-valuenow": progress,
43
+ "aria-label": ariaLabel,
42
44
  className: ax(["_1reo15vq _18m915vq _1yt4xh0m _2rko1l7b _kqswstnw _1bsb1b7y _1ltv1ghs _bfhkrcrw _4t3i12iw _vchhusvi"]),
43
45
  style: _objectSpread(_objectSpread({}, generateResponsiveStyles(breakpoint, positionBottom, showOnTop)), {}, {
44
46
  "--_1xe2l1p": ix("".concat(width, "%")),
@@ -9,11 +9,13 @@ export var StyledBar = function StyledBar(props) {
9
9
  var progress = props.progress,
10
10
  breakpoint = props.breakpoint,
11
11
  positionBottom = props.positionBottom,
12
- showOnTop = props.showOnTop;
12
+ showOnTop = props.showOnTop,
13
+ ariaLabel = props.ariaLabel;
13
14
  return jsx("div", {
14
15
  id: "styledBar",
15
16
  role: "progressbar",
16
- "aria-valuenow": progress
17
+ "aria-valuenow": progress,
18
+ "aria-label": ariaLabel
17
19
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
18
20
  ,
19
21
  css: styledBarStyles({
@@ -101,7 +101,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
101
101
  ErrorBoundary = _this$state.ErrorBoundary;
102
102
  var analyticsContext = {
103
103
  packageVersion: "@atlaskit/media-card",
104
- packageName: "79.4.4",
104
+ packageName: "79.4.6",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -8,7 +8,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
8
8
  import { MediaCardError } from '../errors';
9
9
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
10
10
  var packageName = "@atlaskit/media-card";
11
- var packageVersion = "79.4.4";
11
+ var packageVersion = "79.4.6";
12
12
  var SAMPLE_RATE = 0.05;
13
13
  var concurrentExperience;
14
14
  var getExperience = function getExperience(id) {
@@ -5,6 +5,7 @@ export type ProgressBarProps = {
5
5
  breakpoint?: Breakpoint;
6
6
  positionBottom?: boolean;
7
7
  showOnTop?: boolean;
8
+ ariaLabel?: string;
8
9
  };
9
10
  export declare const getNormalizedProgress: (progress?: number) => number;
10
- export declare const ProgressBar: ({ progress, breakpoint, positionBottom, showOnTop, }: ProgressBarProps) => React.JSX.Element;
11
+ export declare const ProgressBar: ({ progress, breakpoint, positionBottom, showOnTop, ariaLabel, }: ProgressBarProps) => React.JSX.Element;
@@ -4,4 +4,5 @@ export type StyledBarProps = {
4
4
  breakpoint: Breakpoint;
5
5
  positionBottom: boolean;
6
6
  showOnTop: boolean;
7
+ ariaLabel?: string;
7
8
  };
@@ -5,6 +5,7 @@ export type ProgressBarProps = {
5
5
  breakpoint?: Breakpoint;
6
6
  positionBottom?: boolean;
7
7
  showOnTop?: boolean;
8
+ ariaLabel?: string;
8
9
  };
9
10
  export declare const getNormalizedProgress: (progress?: number) => number;
10
- export declare const ProgressBar: ({ progress, breakpoint, positionBottom, showOnTop, }: ProgressBarProps) => React.JSX.Element;
11
+ export declare const ProgressBar: ({ progress, breakpoint, positionBottom, showOnTop, ariaLabel, }: ProgressBarProps) => React.JSX.Element;
@@ -4,4 +4,5 @@ export type StyledBarProps = {
4
4
  breakpoint: Breakpoint;
5
5
  positionBottom: boolean;
6
6
  showOnTop: boolean;
7
+ ariaLabel?: string;
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "79.4.5",
3
+ "version": "79.4.7",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/analytics-next": "^11.1.0",
40
40
  "@atlaskit/dropdown-menu": "^16.3.0",
41
41
  "@atlaskit/editor-shared-styles": "^3.5.0",
42
- "@atlaskit/icon": "^27.7.0",
42
+ "@atlaskit/icon": "^27.9.0",
43
43
  "@atlaskit/link": "^3.2.0",
44
44
  "@atlaskit/media-client": "^35.2.0",
45
45
  "@atlaskit/media-client-react": "^4.1.0",
@@ -49,11 +49,11 @@
49
49
  "@atlaskit/media-ui": "^28.6.0",
50
50
  "@atlaskit/media-viewer": "^52.4.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
- "@atlaskit/primitives": "^14.10.0",
52
+ "@atlaskit/primitives": "^14.11.0",
53
53
  "@atlaskit/react-ufo": "^4.1.0",
54
54
  "@atlaskit/spinner": "^19.0.0",
55
55
  "@atlaskit/theme": "^19.0.0",
56
- "@atlaskit/tokens": "^5.6.0",
56
+ "@atlaskit/tokens": "^6.0.0",
57
57
  "@atlaskit/tooltip": "^20.4.0",
58
58
  "@atlaskit/ufo": "^0.4.0",
59
59
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/media-test-data": "^3.2.0",
85
85
  "@atlaskit/media-test-helpers": "^37.0.0",
86
86
  "@atlaskit/radio": "^8.1.0",
87
- "@atlaskit/range": "^9.1.0",
87
+ "@atlaskit/range": "^9.2.0",
88
88
  "@atlaskit/ssr": "workspace:^",
89
89
  "@atlaskit/toggle": "^15.1.0",
90
90
  "@atlaskit/visual-regression": "workspace:^",