@atlaskit/media-card 79.4.1 → 79.4.3

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,21 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 79.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 79.4.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#184386](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/184386)
14
+ [`1b5a757305861`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b5a757305861) -
15
+ Fixed a bug in safari where height for inline video wrapper when inline was not correct in
16
+ compiled, this
17
+ - Updated dependencies
18
+
3
19
  ## 79.4.1
4
20
 
5
21
  ### 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.0";
23
+ var packageVersion = "79.4.2";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -6,10 +6,12 @@
6
6
  ._15l2idpf:after{top:0}
7
7
  ._18m915vq{overflow-y:hidden}
8
8
  ._18postnw:after{position:absolute}
9
+ ._1bsb1ez3{width:var(--_og9e1j)}
9
10
  ._1p1y1j28::selection, ._1rk81j28 ::selection{background-color:transparent}
10
11
  ._1qdg1osq:after{height:100%}
11
12
  ._1reo15vq{overflow-x:hidden}
12
13
  ._1y2k1osq video{width:100%}
14
+ ._4t3i1amq{height:var(--_1wtike8)}
13
15
  ._631ousvi:after{box-sizing:border-box}
14
16
  ._aetrb3bt:after{content:""}
15
17
  ._c71l1osq{max-height:100%}
@@ -11,6 +11,7 @@ require("./inlinePlayerWrapper-compiled.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
15
  var _getDimensionsWithDefault = require("../utils/lightCards/getDimensionsWithDefault");
15
16
  var _vcMedia = require("@atlaskit/react-ufo/vc-media");
16
17
  var _customData = _interopRequireDefault(require("@atlaskit/react-ufo/custom-data"));
@@ -25,6 +26,8 @@ var selectedBorderStyle = null;
25
26
  */
26
27
  var borderStyle = null;
27
28
  var inlinePlayerClassName = exports.inlinePlayerClassName = 'media-card-inline-player';
29
+ var LOCAL_WIDTH_VARIABLE = '--media-inline-player-wrapper-width';
30
+ var LOCAL_HEIGHT_VARIABLE = '--media-inline-player-wrapper-height';
28
31
  var inlinePlayerWrapperStyles = null;
29
32
 
30
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -40,15 +43,11 @@ var InlinePlayerWrapper = exports.InlinePlayerWrapper = function InlinePlayerWra
40
43
  "data-testid": testId
41
44
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
42
45
  ,
43
- className: (0, _runtime.ax)(["_1reo15vq _18m915vq _2rko1sit _kqswh2mm _p12f1osq _c71l1osq _1y2k1osq _z18o1osq", selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", "_14mj1sit _aetrb3bt _z0ai1osq _1qdg1osq _18postnw _15l2idpf _631ousvi _11fnglyw", selected && "_eq4314x9", inlinePlayerClassName]),
46
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _2rko1sit _kqswh2mm _p12f1osq _c71l1osq _1bsb1ez3 _4t3i1amq _1y2k1osq _z18o1osq", selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", "_14mj1sit _aetrb3bt _z0ai1osq _1qdg1osq _18postnw _15l2idpf _631ousvi _11fnglyw", selected && "_eq4314x9", inlinePlayerClassName]),
44
47
  onClick: onClick,
45
48
  ref: innerRef
46
49
  }, _vcMedia.VcMediaWrapperProps, {
47
- style: {
48
- width: (0, _getDimensionsWithDefault.getDimensionsWithDefault)(dimensions).width || '100%',
49
- height: (0, _getDimensionsWithDefault.getDimensionsWithDefault)(dimensions).height || 'auto',
50
- "--_f9up2s": (0, _runtime.ix)("1px solid ".concat("var(--ds-border-selected, #0C66E4)"))
51
- }
50
+ style: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, LOCAL_WIDTH_VARIABLE, (0, _getDimensionsWithDefault.getDimensionsWithDefault)(dimensions).width || '100%'), LOCAL_HEIGHT_VARIABLE, (0, _getDimensionsWithDefault.getDimensionsWithDefault)(dimensions).height || 'auto'), "--_og9e1j", (0, _runtime.ix)("var(".concat(LOCAL_WIDTH_VARIABLE, ")"))), "--_1wtike8", (0, _runtime.ix)("var(".concat(LOCAL_HEIGHT_VARIABLE, ")"))), "--_f9up2s", (0, _runtime.ix)("1px solid ".concat("var(--ds-border-selected, #0C66E4)")))
52
51
  }), (0, _platformFeatureFlags.fg)('platform_media_add_ufo_custom_data') ? /*#__PURE__*/React.createElement(_customData.default, {
53
52
  data: {
54
53
  hasMediaComponent: true
@@ -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.0";
90
+ var packageVersion = "79.4.2";
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)({
@@ -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.0",
119
+ packageName: "79.4.2",
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.0";
18
+ var packageVersion = "79.4.2";
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.0";
12
+ const packageVersion = "79.4.2";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -6,10 +6,12 @@
6
6
  ._15l2idpf:after{top:0}
7
7
  ._18m915vq{overflow-y:hidden}
8
8
  ._18postnw:after{position:absolute}
9
+ ._1bsbbj0z{width:var(--media-inline-player-wrapper-width)}
9
10
  ._1p1y1j28::selection, ._1rk81j28 ::selection{background-color:transparent}
10
11
  ._1qdg1osq:after{height:100%}
11
12
  ._1reo15vq{overflow-x:hidden}
12
13
  ._1y2k1osq video{width:100%}
14
+ ._4t3io1dg{height:var(--media-inline-player-wrapper-height)}
13
15
  ._631ousvi:after{box-sizing:border-box}
14
16
  ._aetrb3bt:after{content:""}
15
17
  ._c71l1osq{max-height:100%}
@@ -16,6 +16,8 @@ const selectedBorderStyle = null;
16
16
  */
17
17
  const borderStyle = null;
18
18
  export const inlinePlayerClassName = 'media-card-inline-player';
19
+ const LOCAL_WIDTH_VARIABLE = '--media-inline-player-wrapper-width';
20
+ const LOCAL_HEIGHT_VARIABLE = '--media-inline-player-wrapper-height';
19
21
  const inlinePlayerWrapperStyles = null;
20
22
 
21
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -33,10 +35,10 @@ export const InlinePlayerWrapper = props => {
33
35
  "data-testid": testId
34
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
35
37
  ,
36
- className: ax(["_1reo15vq _18m915vq _2rko1sit _kqswh2mm _p12f1osq _c71l1osq _1y2k1osq _z18o1osq", selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", "_14mj1sit _aetrb3bt _z0ai1osq _1qdg1osq _18postnw _15l2idpf _631ousvi _11fnglyw", selected && "_eq43qm0p", inlinePlayerClassName]),
38
+ className: ax(["_1reo15vq _18m915vq _2rko1sit _kqswh2mm _p12f1osq _c71l1osq _1bsbbj0z _4t3io1dg _1y2k1osq _z18o1osq", selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", "_14mj1sit _aetrb3bt _z0ai1osq _1qdg1osq _18postnw _15l2idpf _631ousvi _11fnglyw", selected && "_eq43qm0p", inlinePlayerClassName]),
37
39
  style: {
38
- width: getDimensionsWithDefault(dimensions).width || '100%',
39
- height: getDimensionsWithDefault(dimensions).height || 'auto'
40
+ [LOCAL_WIDTH_VARIABLE]: getDimensionsWithDefault(dimensions).width || '100%',
41
+ [LOCAL_HEIGHT_VARIABLE]: getDimensionsWithDefault(dimensions).height || 'auto'
40
42
  },
41
43
  onClick: onClick,
42
44
  ref: innerRef
@@ -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.0";
69
+ const packageVersion = "79.4.2";
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({
@@ -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.0",
40
+ packageName: "79.4.2",
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.0";
8
+ const packageVersion = "79.4.2";
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.0";
14
+ var packageVersion = "79.4.2";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -6,10 +6,12 @@
6
6
  ._15l2idpf:after{top:0}
7
7
  ._18m915vq{overflow-y:hidden}
8
8
  ._18postnw:after{position:absolute}
9
+ ._1bsb1ez3{width:var(--_og9e1j)}
9
10
  ._1p1y1j28::selection, ._1rk81j28 ::selection{background-color:transparent}
10
11
  ._1qdg1osq:after{height:100%}
11
12
  ._1reo15vq{overflow-x:hidden}
12
13
  ._1y2k1osq video{width:100%}
14
+ ._4t3i1amq{height:var(--_1wtike8)}
13
15
  ._631ousvi:after{box-sizing:border-box}
14
16
  ._aetrb3bt:after{content:""}
15
17
  ._c71l1osq{max-height:100%}
@@ -1,5 +1,6 @@
1
1
  /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
4
  import "./inlinePlayerWrapper-compiled.compiled.css";
4
5
  import * as React from 'react';
5
6
  import { ax, ix } from "@compiled/react/runtime";
@@ -16,6 +17,8 @@ var selectedBorderStyle = null;
16
17
  */
17
18
  var borderStyle = null;
18
19
  export var inlinePlayerClassName = 'media-card-inline-player';
20
+ var LOCAL_WIDTH_VARIABLE = '--media-inline-player-wrapper-width';
21
+ var LOCAL_HEIGHT_VARIABLE = '--media-inline-player-wrapper-height';
19
22
  var inlinePlayerWrapperStyles = null;
20
23
 
21
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -31,15 +34,11 @@ export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
31
34
  "data-testid": testId
32
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
33
36
  ,
34
- className: ax(["_1reo15vq _18m915vq _2rko1sit _kqswh2mm _p12f1osq _c71l1osq _1y2k1osq _z18o1osq", selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", "_14mj1sit _aetrb3bt _z0ai1osq _1qdg1osq _18postnw _15l2idpf _631ousvi _11fnglyw", selected && "_eq4314x9", inlinePlayerClassName]),
37
+ className: ax(["_1reo15vq _18m915vq _2rko1sit _kqswh2mm _p12f1osq _c71l1osq _1bsb1ez3 _4t3i1amq _1y2k1osq _z18o1osq", selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", "_14mj1sit _aetrb3bt _z0ai1osq _1qdg1osq _18postnw _15l2idpf _631ousvi _11fnglyw", selected && "_eq4314x9", inlinePlayerClassName]),
35
38
  onClick: onClick,
36
39
  ref: innerRef
37
40
  }, VcMediaWrapperProps, {
38
- style: {
39
- width: getDimensionsWithDefault(dimensions).width || '100%',
40
- height: getDimensionsWithDefault(dimensions).height || 'auto',
41
- "--_f9up2s": ix("1px solid ".concat("var(--ds-border-selected, #0C66E4)"))
42
- }
41
+ style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, LOCAL_WIDTH_VARIABLE, getDimensionsWithDefault(dimensions).width || '100%'), LOCAL_HEIGHT_VARIABLE, getDimensionsWithDefault(dimensions).height || 'auto'), "--_og9e1j", ix("var(".concat(LOCAL_WIDTH_VARIABLE, ")"))), "--_1wtike8", ix("var(".concat(LOCAL_HEIGHT_VARIABLE, ")"))), "--_f9up2s", ix("1px solid ".concat("var(--ds-border-selected, #0C66E4)")))
43
42
  }), fg('platform_media_add_ufo_custom_data') ? /*#__PURE__*/React.createElement(UFOCustomData, {
44
43
  data: {
45
44
  hasMediaComponent: true
@@ -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.0";
83
+ var packageVersion = "79.4.2";
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({
@@ -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.0",
104
+ packageName: "79.4.2",
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.0";
11
+ var packageVersion = "79.4.2";
12
12
  var SAMPLE_RATE = 0.05;
13
13
  var concurrentExperience;
14
14
  var getExperience = function getExperience(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "79.4.1",
3
+ "version": "79.4.3",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/editor-shared-styles": "^3.4.0",
42
42
  "@atlaskit/icon": "^27.3.0",
43
43
  "@atlaskit/link": "^3.2.0",
44
- "@atlaskit/media-client": "^35.0.0",
44
+ "@atlaskit/media-client": "^35.1.0",
45
45
  "@atlaskit/media-client-react": "^4.1.0",
46
46
  "@atlaskit/media-common": "^12.3.0",
47
47
  "@atlaskit/media-file-preview": "^0.11.0",
@@ -50,10 +50,10 @@
50
50
  "@atlaskit/media-viewer": "^52.4.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/primitives": "^14.10.0",
53
- "@atlaskit/react-ufo": "^3.14.0",
53
+ "@atlaskit/react-ufo": "^4.0.0",
54
54
  "@atlaskit/spinner": "^18.0.0",
55
55
  "@atlaskit/theme": "^19.0.0",
56
- "@atlaskit/tokens": "^5.4.0",
56
+ "@atlaskit/tokens": "^5.5.0",
57
57
  "@atlaskit/tooltip": "^20.3.0",
58
58
  "@atlaskit/ufo": "^0.4.0",
59
59
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/inline-message": "^15.3.0",
81
81
  "@atlaskit/media-core": "^37.0.0",
82
82
  "@atlaskit/media-picker": "^70.0.0",
83
- "@atlaskit/media-state": "^1.7.0",
83
+ "@atlaskit/media-state": "^1.8.0",
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",