@atlaskit/media-card 81.4.22 → 81.5.0

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
+ ## 81.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8a3600f3f196b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8a3600f3f196b) -
8
+ [ux] Fixed unsafe styles that distorted the inline (top-layer) tooltip popover by excluding
9
+ top-layer elements from the offending selectors via `:not(:where([popover], dialog, ...))`. The
10
+ `:where()` wrapper keeps the guard at zero specificity, so matching is otherwise unchanged, and
11
+ the guards are no-ops for the legacy portalled tooltip.
12
+
13
+ ## 81.4.23
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 81.4.22
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 = "81.4.21";
23
+ var packageVersion = "81.4.23";
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 = "81.4.21";
90
+ var packageVersion = "81.4.23";
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)({
@@ -24,6 +24,6 @@ var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
24
24
  isTickBoxSelectable = _ref.isTickBoxSelectable,
25
25
  shouldDisplayTooltip = _ref.shouldDisplayTooltip,
26
26
  mediaCardCursor = _ref.mediaCardCursor;
27
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\tbox-sizing: border-box;\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tposition: relative;\n\tfont-family: ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\n\t/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ", "\n ", "\n &:hover .", " {\n\t\t", "\n\t}\n\t&:hover .", ", &:focus-within .", " {\n\t\t", "\n\t}\n\n\t/* Tooltip does not support percentage dimensions. We enforce them here */\n\t", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), (0, _styles.transition)(), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", (0, _styles.getWrapperDimensions)(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, #0515240F)", ";"), _mediaUi.borderRadius, (0, _styles.getCursorStyle)(mediaCardCursor), (0, _styles.getWrapperShadow)(disableOverlay, selected), (0, _styles.generateResponsiveStyles)(breakpoint), selected ? _selection.hideNativeBrowserTextSelectionStyles : '', (0, _styles.getClickablePlayButtonStyles)(isPlayButtonClickable), (0, _styles.getSelectableTickBoxStyles)(isTickBoxSelectable), _styles2.blanketClassName, _styles2.fixedBlanketStyles, _styles3.actionsBarClassName, _styles3.actionsBarClassName, _styles3.fixedActionBarStyles, shouldDisplayTooltip && "> div { width: 100%; height: 100%; }", "var(--ds-border-focused, #4688EC)");
27
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\tbox-sizing: border-box;\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tposition: relative;\n\tfont-family: ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\n\t/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ", "\n ", "\n &:hover .", " {\n\t\t", "\n\t}\n\t&:hover .", ", &:focus-within .", " {\n\t\t", "\n\t}\n\n\t/* Tooltip does not support percentage dimensions. We enforce them here.\n\t Guard skips top-layer elements (eg tooltip, modal); ':where()' keeps specificity unchanged. */\n\t", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), (0, _styles.transition)(), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", (0, _styles.getWrapperDimensions)(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, #0515240F)", ";"), _mediaUi.borderRadius, (0, _styles.getCursorStyle)(mediaCardCursor), (0, _styles.getWrapperShadow)(disableOverlay, selected), (0, _styles.generateResponsiveStyles)(breakpoint), selected ? _selection.hideNativeBrowserTextSelectionStyles : '', (0, _styles.getClickablePlayButtonStyles)(isPlayButtonClickable), (0, _styles.getSelectableTickBoxStyles)(isTickBoxSelectable), _styles2.blanketClassName, _styles2.fixedBlanketStyles, _styles3.actionsBarClassName, _styles3.actionsBarClassName, _styles3.fixedActionBarStyles, shouldDisplayTooltip && "> div:not(:where([popover], dialog)) { width: 100%; height: 100%; }", "var(--ds-border-focused, #4688EC)");
28
28
  };
29
29
  wrapperStyles.displayName = 'NewFileExperienceWrapper';
@@ -1,6 +1,5 @@
1
1
  ._2rko18qm{border-radius:var(--ds-radius-large,3px)}
2
- button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._10pb1osq>div{height:100%}
3
- ._14r11j28::-moz-selection{background-color:transparent}
2
+ button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._14r11j28::-moz-selection{background-color:transparent}
4
3
  ._16qsio5t{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db),var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
5
4
  ._16qsr4us{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db)}
6
5
  ._16qst7xp{box-shadow:var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
@@ -11,17 +10,18 @@ button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--d
11
10
  ._1p1y1j28::selection{background-color:transparent}
12
11
  ._1rk81j28 ::selection{background-color:transparent}
13
12
  ._1rquusvi *{box-sizing:border-box}
13
+ ._1vgy1osq>div:not(:where([popover],dialog)){height:100%}
14
14
  ._1xp5dgkc:hover .media-card-tickbox{color:var(--ds-icon-subtle,#505258)}
15
15
  ._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
16
16
  ._1yf91j9a:hover .media-card-tickbox{background-color:var(--ds-background-input,#fff)}
17
17
  ._4t3ine4n{height:var(--media-wrapper-height)}
18
18
  ._5sb1v00u [data-cursor=wait]{cursor:wait}
19
- ._9m3z1osq>div{width:100%}
20
19
  ._bfhkhfxm{background-color:var(--ds-surface-sunken,#f8f8f8)}
21
20
  ._c71l1osq{max-height:100%}
22
21
  ._ect4ttxp{font-family:var(--ds-font-family-body,"Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
23
22
  ._eg541i5c:hover .media-card-blanket{background-color:var(--ds-blanket,#050c1f75)}
24
23
  ._kqswh2mm{position:relative}
24
+ ._lgei1osq>div:not(:where([popover],dialog)){width:100%}
25
25
  ._mts3kb7n:focus-within .media-card-actions-bar{opacity:1}
26
26
  ._p12f1osq{max-width:100%}
27
27
  ._vchhusvi{box-sizing:border-box}
@@ -80,7 +80,7 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
80
80
  id: "newFileExperienceWrapper"
81
81
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
82
82
  ,
83
- className: (0, _runtime.ax)([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhkhfxm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", _cardConstants.newFileExperienceClassName]),
83
+ className: (0, _runtime.ax)([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhkhfxm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_lgei1osq _1vgy1osq", _cardConstants.newFileExperienceClassName]),
84
84
  "data-testid": testId,
85
85
  style: _objectSpread((0, _defineProperty2.default)((0, _defineProperty2.default)({}, LOCAL_WIDTH_VARIABLE, width), LOCAL_HEIGHT_VARIABLE, height), getResponsiveStyles(breakpoint)),
86
86
  ref: innerRef,
@@ -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: "81.4.21",
119
+ packageName: "81.4.23",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -19,7 +19,7 @@ var _globalScope = require("./globalScope/globalScope");
19
19
  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; }
20
20
  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; }
21
21
  var packageName = "@atlaskit/media-card";
22
- var packageVersion = "81.4.21";
22
+ var packageVersion = "81.4.23";
23
23
  var SAMPLE_RATE = 0.05;
24
24
 
25
25
  /**
@@ -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 = "81.4.21";
12
+ const packageVersion = "81.4.23";
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 = "81.4.21";
69
+ const packageVersion = "81.4.23";
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({
@@ -43,8 +43,9 @@ export const wrapperStyles = ({
43
43
  ${fixedActionBarStyles}
44
44
  }
45
45
 
46
- /* Tooltip does not support percentage dimensions. We enforce them here */
47
- ${shouldDisplayTooltip && `> div { width: 100%; height: 100%; }`}
46
+ /* Tooltip does not support percentage dimensions. We enforce them here.
47
+ Guard skips top-layer elements (eg tooltip, modal); ':where()' keeps specificity unchanged. */
48
+ ${shouldDisplayTooltip && `> div:not(:where([popover], dialog)) { width: 100%; height: 100%; }`}
48
49
 
49
50
  button:focus + & {
50
51
  outline: solid 2px ${"var(--ds-border-focused, #4688EC)"};
@@ -1,6 +1,5 @@
1
1
  ._2rko18qm{border-radius:var(--ds-radius-large,3px)}
2
- button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._10pb1osq>div{height:100%}
3
- ._14r11j28::-moz-selection{background-color:transparent}
2
+ button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._14r11j28::-moz-selection{background-color:transparent}
4
3
  ._16qsio5t{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db),var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
5
4
  ._16qsr4us{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db)}
6
5
  ._16qst7xp{box-shadow:var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
@@ -11,17 +10,18 @@ button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--d
11
10
  ._1p1y1j28::selection{background-color:transparent}
12
11
  ._1rk81j28 ::selection{background-color:transparent}
13
12
  ._1rquusvi *{box-sizing:border-box}
13
+ ._1vgy1osq>div:not(:where([popover],dialog)){height:100%}
14
14
  ._1xp5dgkc:hover .media-card-tickbox{color:var(--ds-icon-subtle,#505258)}
15
15
  ._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
16
16
  ._1yf91j9a:hover .media-card-tickbox{background-color:var(--ds-background-input,#fff)}
17
17
  ._4t3ine4n{height:var(--media-wrapper-height)}
18
18
  ._5sb1v00u [data-cursor=wait]{cursor:wait}
19
- ._9m3z1osq>div{width:100%}
20
19
  ._bfhkhfxm{background-color:var(--ds-surface-sunken,#f8f8f8)}
21
20
  ._c71l1osq{max-height:100%}
22
21
  ._ect4ttxp{font-family:var(--ds-font-family-body,"Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
23
22
  ._eg541i5c:hover .media-card-blanket{background-color:var(--ds-blanket,#050c1f75)}
24
23
  ._kqswh2mm{position:relative}
24
+ ._lgei1osq>div:not(:where([popover],dialog)){width:100%}
25
25
  ._mts3kb7n:focus-within .media-card-actions-bar{opacity:1}
26
26
  ._p12f1osq{max-width:100%}
27
27
  ._vchhusvi{box-sizing:border-box}
@@ -76,7 +76,7 @@ export const Wrapper = props => {
76
76
  id: "newFileExperienceWrapper"
77
77
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
78
78
  ,
79
- className: ax([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhkhfxm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
79
+ className: ax([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhkhfxm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_lgei1osq _1vgy1osq", newFileExperienceClassName]),
80
80
  "data-testid": testId,
81
81
  style: {
82
82
  [LOCAL_WIDTH_VARIABLE]: width,
@@ -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: "81.4.21",
40
+ packageName: "81.4.23",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -9,7 +9,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
10
10
  import { getMediaGlobalScope } from './globalScope/globalScope';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "81.4.21";
12
+ const packageVersion = "81.4.23";
13
13
  const SAMPLE_RATE = 0.05;
14
14
 
15
15
  /**
@@ -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 = "81.4.21";
14
+ var packageVersion = "81.4.23";
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 = "81.4.21";
83
+ var packageVersion = "81.4.23";
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({
@@ -19,6 +19,6 @@ export var wrapperStyles = function wrapperStyles(_ref) {
19
19
  isTickBoxSelectable = _ref.isTickBoxSelectable,
20
20
  shouldDisplayTooltip = _ref.shouldDisplayTooltip,
21
21
  mediaCardCursor = _ref.mediaCardCursor;
22
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", "\n\tbox-sizing: border-box;\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tposition: relative;\n\tfont-family: ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\n\t/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ", "\n ", "\n &:hover .", " {\n\t\t", "\n\t}\n\t&:hover .", ", &:focus-within .", " {\n\t\t", "\n\t}\n\n\t/* Tooltip does not support percentage dimensions. We enforce them here */\n\t", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), transition(), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", getWrapperDimensions(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, #0515240F)", ";"), borderRadius, getCursorStyle(mediaCardCursor), getWrapperShadow(disableOverlay, selected), generateResponsiveStyles(breakpoint), selected ? hideNativeBrowserTextSelectionStyles : '', getClickablePlayButtonStyles(isPlayButtonClickable), getSelectableTickBoxStyles(isTickBoxSelectable), blanketClassName, fixedBlanketStyles, actionsBarClassName, actionsBarClassName, fixedActionBarStyles, shouldDisplayTooltip && "> div { width: 100%; height: 100%; }", "var(--ds-border-focused, #4688EC)");
22
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", "\n\tbox-sizing: border-box;\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tposition: relative;\n\tfont-family: ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\n\t/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ", "\n ", "\n &:hover .", " {\n\t\t", "\n\t}\n\t&:hover .", ", &:focus-within .", " {\n\t\t", "\n\t}\n\n\t/* Tooltip does not support percentage dimensions. We enforce them here.\n\t Guard skips top-layer elements (eg tooltip, modal); ':where()' keeps specificity unchanged. */\n\t", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), transition(), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", getWrapperDimensions(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, #0515240F)", ";"), borderRadius, getCursorStyle(mediaCardCursor), getWrapperShadow(disableOverlay, selected), generateResponsiveStyles(breakpoint), selected ? hideNativeBrowserTextSelectionStyles : '', getClickablePlayButtonStyles(isPlayButtonClickable), getSelectableTickBoxStyles(isTickBoxSelectable), blanketClassName, fixedBlanketStyles, actionsBarClassName, actionsBarClassName, fixedActionBarStyles, shouldDisplayTooltip && "> div:not(:where([popover], dialog)) { width: 100%; height: 100%; }", "var(--ds-border-focused, #4688EC)");
23
23
  };
24
24
  wrapperStyles.displayName = 'NewFileExperienceWrapper';
@@ -1,6 +1,5 @@
1
1
  ._2rko18qm{border-radius:var(--ds-radius-large,3px)}
2
- button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._10pb1osq>div{height:100%}
3
- ._14r11j28::-moz-selection{background-color:transparent}
2
+ button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._14r11j28::-moz-selection{background-color:transparent}
4
3
  ._16qsio5t{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db),var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
5
4
  ._16qsr4us{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db)}
6
5
  ._16qst7xp{box-shadow:var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
@@ -11,17 +10,18 @@ button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--d
11
10
  ._1p1y1j28::selection{background-color:transparent}
12
11
  ._1rk81j28 ::selection{background-color:transparent}
13
12
  ._1rquusvi *{box-sizing:border-box}
13
+ ._1vgy1osq>div:not(:where([popover],dialog)){height:100%}
14
14
  ._1xp5dgkc:hover .media-card-tickbox{color:var(--ds-icon-subtle,#505258)}
15
15
  ._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
16
16
  ._1yf91j9a:hover .media-card-tickbox{background-color:var(--ds-background-input,#fff)}
17
17
  ._4t3ine4n{height:var(--media-wrapper-height)}
18
18
  ._5sb1v00u [data-cursor=wait]{cursor:wait}
19
- ._9m3z1osq>div{width:100%}
20
19
  ._bfhkhfxm{background-color:var(--ds-surface-sunken,#f8f8f8)}
21
20
  ._c71l1osq{max-height:100%}
22
21
  ._ect4ttxp{font-family:var(--ds-font-family-body,"Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
23
22
  ._eg541i5c:hover .media-card-blanket{background-color:var(--ds-blanket,#050c1f75)}
24
23
  ._kqswh2mm{position:relative}
24
+ ._lgei1osq>div:not(:where([popover],dialog)){width:100%}
25
25
  ._mts3kb7n:focus-within .media-card-actions-bar{opacity:1}
26
26
  ._p12f1osq{max-width:100%}
27
27
  ._vchhusvi{box-sizing:border-box}
@@ -71,7 +71,7 @@ export var Wrapper = function Wrapper(props) {
71
71
  id: "newFileExperienceWrapper"
72
72
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
73
73
  ,
74
- className: ax([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhkhfxm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
74
+ className: ax([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhkhfxm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_lgei1osq _1vgy1osq", newFileExperienceClassName]),
75
75
  "data-testid": testId,
76
76
  style: _objectSpread(_defineProperty(_defineProperty({}, LOCAL_WIDTH_VARIABLE, width), LOCAL_HEIGHT_VARIABLE, height), getResponsiveStyles(breakpoint)),
77
77
  ref: innerRef,
@@ -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: "81.4.21",
104
+ packageName: "81.4.23",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -13,7 +13,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
13
13
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
14
14
  import { getMediaGlobalScope } from './globalScope/globalScope';
15
15
  var packageName = "@atlaskit/media-card";
16
- var packageVersion = "81.4.21";
16
+ var packageVersion = "81.4.23";
17
17
  var SAMPLE_RATE = 0.05;
18
18
 
19
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "81.4.22",
3
+ "version": "81.5.0",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/link": "^5.0.0",
39
39
  "@atlaskit/media-client": "^37.2.0",
40
40
  "@atlaskit/media-client-react": "^6.1.0",
41
- "@atlaskit/media-common": "^14.3.0",
41
+ "@atlaskit/media-common": "^14.4.0",
42
42
  "@atlaskit/media-file-preview": "^1.1.0",
43
43
  "@atlaskit/media-state": "^3.1.0",
44
44
  "@atlaskit/media-svg": "^3.1.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/react-ufo": "^7.3.0",
52
52
  "@atlaskit/spinner": "^20.1.0",
53
53
  "@atlaskit/theme": "^26.1.0",
54
- "@atlaskit/tmp-editor-statsig": "^140.0.0",
54
+ "@atlaskit/tmp-editor-statsig": "^141.1.0",
55
55
  "@atlaskit/tokens": "^16.3.0",
56
56
  "@atlaskit/tooltip": "^24.0.0",
57
57
  "@atlaskit/ufo": "^1.0.0",