@atlaskit/media-card 79.0.1 → 79.0.2

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,17 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 79.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
8
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
9
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
10
+ future to avoid an accidental regression.
11
+
12
+ This is related to
13
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
14
+
3
15
  ## 79.0.1
4
16
 
5
17
  ### Patch Changes
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/classnames.js",
4
4
  "module": "../dist/esm/classnames.js",
5
5
  "module:es2019": "../dist/es2019/classnames.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/classnames.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -21,7 +21,7 @@ var _excluded = ["identifier"];
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
23
  var packageName = "@atlaskit/media-card";
24
- var packageVersion = "79.0.1";
24
+ var packageVersion = "79.0.2";
25
25
  var CardBase = exports.CardBase = function CardBase(_ref) {
26
26
  var identifier = _ref.identifier,
27
27
  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.0.1";
90
+ var packageVersion = "79.0.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)({
@@ -50,7 +50,7 @@ var selectableTickboxStyle = null;
50
50
  var tooltipStyle = null;
51
51
  var getResponsiveStyles = function getResponsiveStyles(breakpoint) {
52
52
  // dynamically setting the properties to avoid ratcheting build errors. These need to be removed however for the compiled transformation.
53
- return breakpoint === "small" ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '11x'), 'lineHeight', '14px') : (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '14px'), 'lineHeight', '22px');
53
+ return breakpoint === 'small' ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '11x'), 'lineHeight', '14px') : (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '14px'), 'lineHeight', '22px');
54
54
  };
55
55
  var Wrapper = exports.Wrapper = function Wrapper(props) {
56
56
  var testId = props.testId,
@@ -117,7 +117,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
117
117
  ErrorBoundary = _this$state.ErrorBoundary;
118
118
  var analyticsContext = {
119
119
  packageVersion: "@atlaskit/media-card",
120
- packageName: "79.0.1",
120
+ packageName: "79.0.2",
121
121
  componentName: 'mediaInlineCard',
122
122
  component: 'mediaInlineCard'
123
123
  };
@@ -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.0.1";
18
+ var packageVersion = "79.0.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.0.1";
12
+ const packageVersion = "79.0.2";
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.0.1";
69
+ const packageVersion = "79.0.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 @@ const selectableTickboxStyle = null;
37
37
  const tooltipStyle = null;
38
38
  const getResponsiveStyles = breakpoint => {
39
39
  // dynamically setting the properties to avoid ratcheting build errors. These need to be removed however for the compiled transformation.
40
- return breakpoint === "small" ? {
40
+ return breakpoint === 'small' ? {
41
41
  ['fontSize']: '11x',
42
42
  ['lineHeight']: '14px'
43
43
  } : {
@@ -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.0.1",
40
+ packageName: "79.0.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.0.1";
8
+ const packageVersion = "79.0.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.0.1";
14
+ var packageVersion = "79.0.2";
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.0.1";
83
+ var packageVersion = "79.0.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({
@@ -40,7 +40,7 @@ var selectableTickboxStyle = null;
40
40
  var tooltipStyle = null;
41
41
  var getResponsiveStyles = function getResponsiveStyles(breakpoint) {
42
42
  // dynamically setting the properties to avoid ratcheting build errors. These need to be removed however for the compiled transformation.
43
- return breakpoint === "small" ? _defineProperty(_defineProperty({}, 'fontSize', '11x'), 'lineHeight', '14px') : _defineProperty(_defineProperty({}, 'fontSize', '14px'), 'lineHeight', '22px');
43
+ return breakpoint === 'small' ? _defineProperty(_defineProperty({}, 'fontSize', '11x'), 'lineHeight', '14px') : _defineProperty(_defineProperty({}, 'fontSize', '14px'), 'lineHeight', '22px');
44
44
  };
45
45
  export var Wrapper = function Wrapper(props) {
46
46
  var testId = props.testId,
@@ -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.0.1",
104
+ packageName: "79.0.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.0.1";
11
+ var packageVersion = "79.0.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.0.1",
3
+ "version": "79.0.2",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,7 +20,9 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "*.compiled.css"
25
+ ],
24
26
  "atlaskit:src": "src/index.ts",
25
27
  "af:exports": {
26
28
  "./types": "./src/types.ts",
@@ -37,8 +39,8 @@
37
39
  "dependencies": {
38
40
  "@atlaskit/analytics-next": "^11.0.0",
39
41
  "@atlaskit/dropdown-menu": "^13.0.0",
40
- "@atlaskit/editor-shared-styles": "^3.3.0",
41
- "@atlaskit/icon": "^24.0.0",
42
+ "@atlaskit/editor-shared-styles": "^3.4.0",
43
+ "@atlaskit/icon": "^24.1.0",
42
44
  "@atlaskit/media-client": "^32.0.0",
43
45
  "@atlaskit/media-client-react": "^4.0.0",
44
46
  "@atlaskit/media-common": "^12.0.0",
@@ -47,11 +49,11 @@
47
49
  "@atlaskit/media-ui": "^28.0.0",
48
50
  "@atlaskit/media-viewer": "^51.0.0",
49
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/primitives": "^14.0.0",
51
- "@atlaskit/react-ufo": "^3.0.0",
52
+ "@atlaskit/primitives": "^14.1.0",
53
+ "@atlaskit/react-ufo": "^3.1.0",
52
54
  "@atlaskit/spinner": "^18.0.0",
53
55
  "@atlaskit/theme": "^17.0.0",
54
- "@atlaskit/tokens": "^4.1.0",
56
+ "@atlaskit/tokens": "^4.2.0",
55
57
  "@atlaskit/tooltip": "^20.0.0",
56
58
  "@atlaskit/ufo": "^0.4.0",
57
59
  "@atlaskit/visually-hidden": "^2.0.0",
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/types.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {