@atlaskit/media-card 77.11.0 → 77.11.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,11 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 77.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#90872](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90872) [`ac8e7b44549a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ac8e7b44549a) - The internal composition of this package has changed. There is no expected change in behavior.
8
+
3
9
  ## 77.11.0
4
10
 
5
11
  ### Minor Changes
@@ -50,7 +50,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
50
50
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
51
51
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
52
52
  var packageName = "@atlaskit/media-card";
53
- var packageVersion = "77.11.0";
53
+ var packageVersion = "77.11.1";
54
54
  var CardBase = exports.CardBase = /*#__PURE__*/function (_Component) {
55
55
  (0, _inherits2.default)(CardBase, _Component);
56
56
  var _super = _createSuper(CardBase);
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
90
90
  }(_react.default.Component);
91
91
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
92
92
  var packageName = "@atlaskit/media-card";
93
- var packageVersion = "77.11.0";
93
+ var packageVersion = "77.11.1";
94
94
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
95
95
  packageVersion: packageVersion,
96
96
  packageName: packageName,
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.IconMessageWrapper = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _primitives = require("@atlaskit/primitives");
9
8
  /**@jsx jsx */
10
9
 
11
10
  var breatheAnimation = (0, _react.keyframes)({
@@ -19,32 +18,32 @@ var breatheAnimation = (0, _react.keyframes)({
19
18
  opacity: 1
20
19
  }
21
20
  });
22
- var animatedStyles = (0, _primitives.xcss)({
21
+ var animatedStyles = (0, _react.css)({
23
22
  animationName: breatheAnimation,
24
23
  animationDuration: '3.5s',
25
24
  animationTimingFunction: 'ease-in-out',
26
25
  animationIterationCount: 'infinite'
27
26
  });
28
- var reducedFontStyle = (0, _primitives.xcss)({
27
+ var reducedFontStyle = (0, _react.css)({
29
28
  fontSize: '0.7em'
30
29
  });
31
- var baseStyles = (0, _primitives.xcss)({
30
+ var baseStyles = (0, _react.css)({
32
31
  overflow: 'hidden',
33
32
  opacity: 1,
34
33
  fontWeight: 450,
35
- color: 'color.text.subtlest',
34
+ color: "var(--ds-text-subtlest, #7A869A)",
36
35
  textAlign: 'center',
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
36
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
38
37
  marginBottom: '-1em',
39
38
  // Needs pixel precision to align the icon at the center of the box
40
- paddingBlock: 'space.050',
41
- paddingInline: 'space.100'
39
+ paddingBlock: "var(--ds-space-050, 4px)",
40
+ paddingInline: "var(--ds-space-100, 8px)"
42
41
  });
43
42
  var IconMessageWrapper = exports.IconMessageWrapper = function IconMessageWrapper(props) {
44
43
  var animated = props.animated,
45
44
  reducedFont = props.reducedFont;
46
- return (0, _react.jsx)(_primitives.Box, {
45
+ return (0, _react.jsx)("div", {
47
46
  id: "iconMessageWrapper",
48
- xcss: [baseStyles, reducedFont && reducedFontStyle, animated && animatedStyles]
47
+ css: [baseStyles, reducedFont && reducedFontStyle, animated && animatedStyles]
49
48
  }, props.children);
50
49
  };
@@ -16,7 +16,7 @@ var _externalImageCard = require("./externalImageCard");
16
16
  var _fileCard = require("./fileCard");
17
17
  var _excluded = ["identifier"];
18
18
  var packageName = "@atlaskit/media-card";
19
- var packageVersion = "77.11.0";
19
+ var packageVersion = "77.11.1";
20
20
  var CardV2Base = exports.CardV2Base = function CardV2Base(_ref) {
21
21
  var identifier = _ref.identifier,
22
22
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -119,7 +119,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
119
119
  ErrorBoundary = _this$state.ErrorBoundary;
120
120
  var analyticsContext = {
121
121
  packageVersion: "@atlaskit/media-card",
122
- packageName: "77.11.0",
122
+ packageName: "77.11.1",
123
123
  componentName: 'mediaInlineCard',
124
124
  component: 'mediaInlineCard'
125
125
  };
@@ -14,7 +14,7 @@ var _mediaClient = require("@atlaskit/media-client");
14
14
  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; }
15
15
  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; }
16
16
  var packageName = "@atlaskit/media-card";
17
- var packageVersion = "77.11.0";
17
+ var packageVersion = "77.11.1";
18
18
  var concurrentExperience;
19
19
  var getExperience = function getExperience(id) {
20
20
  if (!concurrentExperience) {
@@ -28,7 +28,7 @@ import { completeUfoExperience, startUfoExperience, abortUfoExperience } from '.
28
28
  import { generateUniqueId } from '../utils/generateUniqueId';
29
29
  import { DateOverrideContext } from '../dateOverrideContext';
30
30
  const packageName = "@atlaskit/media-card";
31
- const packageVersion = "77.11.0";
31
+ const packageVersion = "77.11.1";
32
32
  export class CardBase extends Component {
33
33
  constructor(props) {
34
34
  super(props);
@@ -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 = "77.11.0";
69
+ const packageVersion = "77.11.1";
70
70
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
71
71
  packageVersion,
72
72
  packageName,
@@ -1,7 +1,6 @@
1
1
  /**@jsx jsx */
2
- import { jsx } from '@emotion/react';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { keyframes } from '@emotion/react';
4
- import { Box, xcss } from '@atlaskit/primitives';
5
4
  const breatheAnimation = keyframes({
6
5
  '0%': {
7
6
  opacity: 1
@@ -13,34 +12,34 @@ const breatheAnimation = keyframes({
13
12
  opacity: 1
14
13
  }
15
14
  });
16
- const animatedStyles = xcss({
15
+ const animatedStyles = css({
17
16
  animationName: breatheAnimation,
18
17
  animationDuration: '3.5s',
19
18
  animationTimingFunction: 'ease-in-out',
20
19
  animationIterationCount: 'infinite'
21
20
  });
22
- const reducedFontStyle = xcss({
21
+ const reducedFontStyle = css({
23
22
  fontSize: '0.7em'
24
23
  });
25
- const baseStyles = xcss({
24
+ const baseStyles = css({
26
25
  overflow: 'hidden',
27
26
  opacity: 1,
28
27
  fontWeight: 450,
29
- color: 'color.text.subtlest',
28
+ color: "var(--ds-text-subtlest, #7A869A)",
30
29
  textAlign: 'center',
31
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
30
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
32
31
  marginBottom: '-1em',
33
32
  // Needs pixel precision to align the icon at the center of the box
34
- paddingBlock: 'space.050',
35
- paddingInline: 'space.100'
33
+ paddingBlock: "var(--ds-space-050, 4px)",
34
+ paddingInline: "var(--ds-space-100, 8px)"
36
35
  });
37
36
  export const IconMessageWrapper = props => {
38
37
  const {
39
38
  animated,
40
39
  reducedFont
41
40
  } = props;
42
- return jsx(Box, {
41
+ return jsx("div", {
43
42
  id: "iconMessageWrapper",
44
- xcss: [baseStyles, reducedFont && reducedFontStyle, animated && animatedStyles]
43
+ css: [baseStyles, reducedFont && reducedFontStyle, animated && animatedStyles]
45
44
  }, props.children);
46
45
  };
@@ -7,7 +7,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
7
7
  import { ExternalImageCard } from './externalImageCard';
8
8
  import { FileCard } from './fileCard';
9
9
  const packageName = "@atlaskit/media-card";
10
- const packageVersion = "77.11.0";
10
+ const packageVersion = "77.11.1";
11
11
  export const CardV2Base = ({
12
12
  identifier,
13
13
  ...otherProps
@@ -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: "77.11.0",
40
+ packageName: "77.11.1",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -4,7 +4,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
4
4
  import { MediaCardError } from '../errors';
5
5
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
6
6
  const packageName = "@atlaskit/media-card";
7
- const packageVersion = "77.11.0";
7
+ const packageVersion = "77.11.1";
8
8
  let concurrentExperience;
9
9
  const getExperience = id => {
10
10
  if (!concurrentExperience) {
@@ -41,7 +41,7 @@ import { completeUfoExperience, startUfoExperience, abortUfoExperience } from '.
41
41
  import { generateUniqueId } from '../utils/generateUniqueId';
42
42
  import { DateOverrideContext } from '../dateOverrideContext';
43
43
  var packageName = "@atlaskit/media-card";
44
- var packageVersion = "77.11.0";
44
+ var packageVersion = "77.11.1";
45
45
  export var CardBase = /*#__PURE__*/function (_Component) {
46
46
  _inherits(CardBase, _Component);
47
47
  var _super = _createSuper(CardBase);
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
83
83
  }(React.Component);
84
84
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
85
85
  var packageName = "@atlaskit/media-card";
86
- var packageVersion = "77.11.0";
86
+ var packageVersion = "77.11.1";
87
87
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
88
88
  packageVersion: packageVersion,
89
89
  packageName: packageName,
@@ -1,7 +1,6 @@
1
1
  /**@jsx jsx */
2
- import { jsx } from '@emotion/react';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { keyframes } from '@emotion/react';
4
- import { Box, xcss } from '@atlaskit/primitives';
5
4
  var breatheAnimation = keyframes({
6
5
  '0%': {
7
6
  opacity: 1
@@ -13,32 +12,32 @@ var breatheAnimation = keyframes({
13
12
  opacity: 1
14
13
  }
15
14
  });
16
- var animatedStyles = xcss({
15
+ var animatedStyles = css({
17
16
  animationName: breatheAnimation,
18
17
  animationDuration: '3.5s',
19
18
  animationTimingFunction: 'ease-in-out',
20
19
  animationIterationCount: 'infinite'
21
20
  });
22
- var reducedFontStyle = xcss({
21
+ var reducedFontStyle = css({
23
22
  fontSize: '0.7em'
24
23
  });
25
- var baseStyles = xcss({
24
+ var baseStyles = css({
26
25
  overflow: 'hidden',
27
26
  opacity: 1,
28
27
  fontWeight: 450,
29
- color: 'color.text.subtlest',
28
+ color: "var(--ds-text-subtlest, #7A869A)",
30
29
  textAlign: 'center',
31
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
30
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
32
31
  marginBottom: '-1em',
33
32
  // Needs pixel precision to align the icon at the center of the box
34
- paddingBlock: 'space.050',
35
- paddingInline: 'space.100'
33
+ paddingBlock: "var(--ds-space-050, 4px)",
34
+ paddingInline: "var(--ds-space-100, 8px)"
36
35
  });
37
36
  export var IconMessageWrapper = function IconMessageWrapper(props) {
38
37
  var animated = props.animated,
39
38
  reducedFont = props.reducedFont;
40
- return jsx(Box, {
39
+ return jsx("div", {
41
40
  id: "iconMessageWrapper",
42
- xcss: [baseStyles, reducedFont && reducedFontStyle, animated && animatedStyles]
41
+ css: [baseStyles, reducedFont && reducedFontStyle, animated && animatedStyles]
43
42
  }, props.children);
44
43
  };
@@ -9,7 +9,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
9
9
  import { ExternalImageCard } from './externalImageCard';
10
10
  import { FileCard } from './fileCard';
11
11
  var packageName = "@atlaskit/media-card";
12
- var packageVersion = "77.11.0";
12
+ var packageVersion = "77.11.1";
13
13
  export var CardV2Base = function CardV2Base(_ref) {
14
14
  var identifier = _ref.identifier,
15
15
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -103,7 +103,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
103
103
  ErrorBoundary = _this$state.ErrorBoundary;
104
104
  var analyticsContext = {
105
105
  packageVersion: "@atlaskit/media-card",
106
- packageName: "77.11.0",
106
+ packageName: "77.11.1",
107
107
  componentName: 'mediaInlineCard',
108
108
  component: 'mediaInlineCard'
109
109
  };
@@ -7,7 +7,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
7
7
  import { MediaCardError } from '../errors';
8
8
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  var packageName = "@atlaskit/media-card";
10
- var packageVersion = "77.11.0";
10
+ var packageVersion = "77.11.1";
11
11
  var concurrentExperience;
12
12
  var getExperience = function getExperience(id) {
13
13
  if (!concurrentExperience) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "77.11.0",
3
+ "version": "77.11.1",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,10 +44,9 @@
44
44
  "@atlaskit/media-client-react": "^2.0.0",
45
45
  "@atlaskit/media-common": "^11.1.0",
46
46
  "@atlaskit/media-file-preview": "^0.5.0",
47
- "@atlaskit/media-ui": "^25.6.0",
47
+ "@atlaskit/media-ui": "^25.7.0",
48
48
  "@atlaskit/media-viewer": "^48.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.2",
50
- "@atlaskit/primitives": "^5.5.0",
51
50
  "@atlaskit/spinner": "^16.0.0",
52
51
  "@atlaskit/theme": "^12.7.0",
53
52
  "@atlaskit/tokens": "^1.43.0",
@@ -74,8 +73,9 @@
74
73
  "@atlaskit/media-core": "^34.2.0",
75
74
  "@atlaskit/media-picker": "^66.4.0",
76
75
  "@atlaskit/media-state": "^1.0.0",
77
- "@atlaskit/media-test-data": "^1.3.0",
76
+ "@atlaskit/media-test-data": "^2.0.0",
78
77
  "@atlaskit/media-test-helpers": "^33.0.0",
78
+ "@atlaskit/primitives": "^5.5.0",
79
79
  "@atlaskit/ssr": "*",
80
80
  "@atlaskit/visual-regression": "*",
81
81
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",