@atlaskit/media-card 82.2.5 → 82.2.6

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
+ ## 82.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c3ab15bb8f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3ab15bb8f96a) -
8
+ Cleanup `feature_gate` `create_modernization_ga_fixes_drop_3`. Remove the unused
9
+ `platform-feature-flags` registration; the gate has no runtime usage in these packages.
10
+ - [`86fbccd7b4e63`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86fbccd7b4e63) -
11
+ Cleanup `feature_gate` `platform_media_card_action_button_type_fix`. The card action button now
12
+ always renders with `type="button"`, so clicking it no longer submits an enclosing form.
13
+ - Updated dependencies
14
+
3
15
  ## 82.2.5
4
16
 
5
17
  ### Patch Changes
@@ -8,7 +8,7 @@ var _reactIntl = require("react-intl");
8
8
  var _withMediaAnalyticsContext = require("@atlaskit/media-common/withMediaAnalyticsContext");
9
9
  var _CardWithPerformanceObserver = require("./CardWithPerformanceObserver");
10
10
  var packageName = "@atlaskit/media-card";
11
- var packageVersion = "82.2.4";
11
+ var packageVersion = "82.2.5";
12
12
  var Card = exports.Card = (0, _withMediaAnalyticsContext.withMediaAnalyticsContext)({
13
13
  packageVersion: packageVersion,
14
14
  packageName: packageName,
@@ -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 = "82.2.4";
90
+ var packageVersion = "82.2.5";
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, _withMediaAnalyticsContext.withMediaAnalyticsContext)({
@@ -13,10 +13,11 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  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); }
18
17
  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; }
19
- 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; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
+ 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; }
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+
20
21
  var variantStyleMap = {
21
22
  filled: "_bfhk1bhr _irr36o2t",
22
23
  default: "_irr31dpa"
@@ -24,9 +25,8 @@ var variantStyleMap = {
24
25
  var cardActionButtonStyles = null;
25
26
  var CardActionButton = exports.CardActionButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
26
27
  var _props$variant;
27
- return /*#__PURE__*/React.createElement("button", (0, _extends2.default)({}, props, (0, _fg.fg)('platform_media_card_action_button_type_fix') ? {
28
- type: 'button'
29
- } : {}, {
28
+ return /*#__PURE__*/React.createElement("button", (0, _extends2.default)({}, props, {
29
+ type: "button",
30
30
  id: "cardActionButton",
31
31
  "data-testid": "media-card-primary-action",
32
32
  "aria-label": props.label,
@@ -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: "82.2.4",
119
+ packageName: "82.2.5",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -23,7 +23,7 @@ var _getMediaGlobalScope = require("./globalScope/getMediaGlobalScope");
23
23
  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; }
24
24
  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; }
25
25
  var packageName = "@atlaskit/media-card";
26
- var packageVersion = "82.2.4";
26
+ var packageVersion = "82.2.5";
27
27
  var SAMPLE_RATE = 0.05;
28
28
 
29
29
  /**
@@ -2,7 +2,7 @@ import { injectIntl } from 'react-intl';
2
2
  import { withMediaAnalyticsContext } from '@atlaskit/media-common/withMediaAnalyticsContext';
3
3
  import { CardWithPerformanceObserver } from './CardWithPerformanceObserver';
4
4
  const packageName = "@atlaskit/media-card";
5
- const packageVersion = "82.2.4";
5
+ const packageVersion = "82.2.5";
6
6
  export const Card = withMediaAnalyticsContext({
7
7
  packageVersion,
8
8
  packageName,
@@ -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 = "82.2.4";
69
+ const packageVersion = "82.2.5";
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({
@@ -7,7 +7,6 @@ import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
 
10
- import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  const variantStyleMap = {
12
11
  filled: "_bfhk1bhr _irr36o2t",
13
12
  default: "_irr31dpa"
@@ -15,9 +14,8 @@ const variantStyleMap = {
15
14
  const cardActionButtonStyles = null;
16
15
  export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
17
16
  var _props$variant;
18
- return /*#__PURE__*/React.createElement("button", _extends({}, props, fg('platform_media_card_action_button_type_fix') ? {
19
- type: 'button'
20
- } : {}, {
17
+ return /*#__PURE__*/React.createElement("button", _extends({}, props, {
18
+ type: "button",
21
19
  id: "cardActionButton",
22
20
  "data-testid": "media-card-primary-action",
23
21
  "aria-label": props.label,
@@ -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: "82.2.4",
40
+ packageName: "82.2.5",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -12,7 +12,7 @@ import { extractErrorInfo } from './analytics/extractErrorInfo';
12
12
  import { getRenderErrorRequestMetadata } from './analytics/getRenderErrorRequestMetadata';
13
13
  import { getMediaGlobalScope } from './globalScope/getMediaGlobalScope';
14
14
  const packageName = "@atlaskit/media-card";
15
- const packageVersion = "82.2.4";
15
+ const packageVersion = "82.2.5";
16
16
  const SAMPLE_RATE = 0.05;
17
17
 
18
18
  /**
@@ -2,7 +2,7 @@ import { injectIntl } from 'react-intl';
2
2
  import { withMediaAnalyticsContext } from '@atlaskit/media-common/withMediaAnalyticsContext';
3
3
  import { CardWithPerformanceObserver } from './CardWithPerformanceObserver';
4
4
  var packageName = "@atlaskit/media-card";
5
- var packageVersion = "82.2.4";
5
+ var packageVersion = "82.2.5";
6
6
  export var Card = withMediaAnalyticsContext({
7
7
  packageVersion: packageVersion,
8
8
  packageName: packageName,
@@ -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 = "82.2.4";
83
+ var packageVersion = "82.2.5";
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({
@@ -10,7 +10,6 @@ import { forwardRef } from 'react';
10
10
 
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
 
13
- import { fg } from '@atlaskit/platform-feature-flags/fg';
14
13
  var variantStyleMap = {
15
14
  filled: "_bfhk1bhr _irr36o2t",
16
15
  default: "_irr31dpa"
@@ -18,9 +17,8 @@ var variantStyleMap = {
18
17
  var cardActionButtonStyles = null;
19
18
  export var CardActionButton = /*#__PURE__*/forwardRef(function (props, ref) {
20
19
  var _props$variant;
21
- return /*#__PURE__*/React.createElement("button", _extends({}, props, fg('platform_media_card_action_button_type_fix') ? {
22
- type: 'button'
23
- } : {}, {
20
+ return /*#__PURE__*/React.createElement("button", _extends({}, props, {
21
+ type: "button",
24
22
  id: "cardActionButton",
25
23
  "data-testid": "media-card-primary-action",
26
24
  "aria-label": props.label,
@@ -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: "82.2.4",
104
+ packageName: "82.2.5",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -16,7 +16,7 @@ import { extractErrorInfo } from './analytics/extractErrorInfo';
16
16
  import { getRenderErrorRequestMetadata } from './analytics/getRenderErrorRequestMetadata';
17
17
  import { getMediaGlobalScope } from './globalScope/getMediaGlobalScope';
18
18
  var packageName = "@atlaskit/media-card";
19
- var packageVersion = "82.2.4";
19
+ var packageVersion = "82.2.5";
20
20
  var SAMPLE_RATE = 0.05;
21
21
 
22
22
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "82.2.5",
3
+ "version": "82.2.6",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/primitives": "^22.6.0",
53
53
  "@atlaskit/progress-bar": "^5.3.0",
54
54
  "@atlaskit/react-compiler-gating": "^0.2.0",
55
- "@atlaskit/react-ufo": "^8.3.0",
55
+ "@atlaskit/react-ufo": "^8.4.0",
56
56
  "@atlaskit/section-message": "^10.2.0",
57
57
  "@atlaskit/theme": "^28.2.0",
58
58
  "@atlaskit/tmp-editor-statsig": "^252.0.0",
@@ -161,9 +161,6 @@
161
161
  "dfo_attachments_late_render_fix": {
162
162
  "type": "boolean"
163
163
  },
164
- "platform_media_card_action_button_type_fix": {
165
- "type": "boolean"
166
- },
167
164
  "platform_media_card_focus_indicator_fix": {
168
165
  "type": "boolean"
169
166
  },
@@ -173,10 +170,6 @@
173
170
  "platform_media_ssr_data_seed": {
174
171
  "type": "boolean"
175
172
  },
176
- "create_modernization_ga_fixes_drop_3": {
177
- "type": "boolean",
178
- "referenceOnly": true
179
- },
180
173
  "create_modernization_ga_fixes_drop_2": {
181
174
  "referenceOnly": true,
182
175
  "type": "boolean"