@atlaskit/media-card 81.2.6 → 81.3.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,18 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 81.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c2d43ab375005`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2d43ab375005) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
10
+ ### Patch Changes
11
+
12
+ - [`ca7a91886092f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ca7a91886092f) -
13
+ Clean up feature gate `platform_editor_maui_edit`
14
+ - Updated dependencies
15
+
3
16
  ## 81.2.6
4
17
 
5
18
  ### 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.2.5";
23
+ var packageVersion = "81.2.6";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -241,8 +241,8 @@ var CardViewBase = exports.CardViewBase = function CardViewBase(_ref) {
241
241
  traceTooltipVariant = _getRenderConfigBySta.traceTooltipVariant;
242
242
 
243
243
  // AI border shown while generating; cleared by the decoration on upload completion.
244
- /* eslint-disable @atlaskit/platform/no-preconditioning -- loading-specific gate (cc-maui-phase-2) layered on the existing platform_editor_maui_edit gate + MAUI experiment cohort during phased rollout; preconditioning is intentional and will be removed when the existing gates are cleaned up */
245
- var renderAIBorderOverride = !!isAIGenerating && (0, _platformFeatureFlags.fg)('platform_editor_maui_edit') && (0, _platformFeatureFlags.fg)('cc-maui-phase-2') && (0, _expValEquals.expValEquals)('cc-maui-experiment', 'isEnabled', true);
244
+ /* eslint-disable @atlaskit/platform/no-preconditioning -- loading-specific gate (cc-maui-phase-2) layered on the MAUI experiment cohort during phased rollout; preconditioning is intentional and will be removed when the existing gates are cleaned up */
245
+ var renderAIBorderOverride = !!isAIGenerating && (0, _platformFeatureFlags.fg)('cc-maui-phase-2') && (0, _expValEquals.expValEquals)('cc-maui-experiment', 'isEnabled', true);
246
246
  /* eslint-enable @atlaskit/platform/no-preconditioning */
247
247
  var shouldDisplayBackground = !cardPreview || !disableOverlay || status === 'error' || status === 'failed-processing';
248
248
  var isPlayButtonClickable = shouldRenderPlayButton() && !!disableOverlay;
@@ -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.2.5";
90
+ var packageVersion = "81.2.6";
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: "81.2.5",
119
+ packageName: "81.2.6",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -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.2.5";
22
+ var packageVersion = "81.2.6";
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.2.5";
12
+ const packageVersion = "81.2.6";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -230,8 +230,8 @@ export const CardViewBase = ({
230
230
  } = getRenderConfigByStatus();
231
231
 
232
232
  // AI border shown while generating; cleared by the decoration on upload completion.
233
- /* eslint-disable @atlaskit/platform/no-preconditioning -- loading-specific gate (cc-maui-phase-2) layered on the existing platform_editor_maui_edit gate + MAUI experiment cohort during phased rollout; preconditioning is intentional and will be removed when the existing gates are cleaned up */
234
- const renderAIBorderOverride = !!isAIGenerating && fg('platform_editor_maui_edit') && fg('cc-maui-phase-2') && expValEquals('cc-maui-experiment', 'isEnabled', true);
233
+ /* eslint-disable @atlaskit/platform/no-preconditioning -- loading-specific gate (cc-maui-phase-2) layered on the MAUI experiment cohort during phased rollout; preconditioning is intentional and will be removed when the existing gates are cleaned up */
234
+ const renderAIBorderOverride = !!isAIGenerating && fg('cc-maui-phase-2') && expValEquals('cc-maui-experiment', 'isEnabled', true);
235
235
  /* eslint-enable @atlaskit/platform/no-preconditioning */
236
236
  const shouldDisplayBackground = !cardPreview || !disableOverlay || status === 'error' || status === 'failed-processing';
237
237
  const isPlayButtonClickable = shouldRenderPlayButton() && !!disableOverlay;
@@ -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.2.5";
69
+ const packageVersion = "81.2.6";
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: "81.2.5",
40
+ packageName: "81.2.6",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
File without changes
@@ -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.2.5";
12
+ const packageVersion = "81.2.6";
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.2.5";
14
+ var packageVersion = "81.2.6";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -232,8 +232,8 @@ export var CardViewBase = function CardViewBase(_ref) {
232
232
  traceTooltipVariant = _getRenderConfigBySta.traceTooltipVariant;
233
233
 
234
234
  // AI border shown while generating; cleared by the decoration on upload completion.
235
- /* eslint-disable @atlaskit/platform/no-preconditioning -- loading-specific gate (cc-maui-phase-2) layered on the existing platform_editor_maui_edit gate + MAUI experiment cohort during phased rollout; preconditioning is intentional and will be removed when the existing gates are cleaned up */
236
- var renderAIBorderOverride = !!isAIGenerating && fg('platform_editor_maui_edit') && fg('cc-maui-phase-2') && expValEquals('cc-maui-experiment', 'isEnabled', true);
235
+ /* eslint-disable @atlaskit/platform/no-preconditioning -- loading-specific gate (cc-maui-phase-2) layered on the MAUI experiment cohort during phased rollout; preconditioning is intentional and will be removed when the existing gates are cleaned up */
236
+ var renderAIBorderOverride = !!isAIGenerating && fg('cc-maui-phase-2') && expValEquals('cc-maui-experiment', 'isEnabled', true);
237
237
  /* eslint-enable @atlaskit/platform/no-preconditioning */
238
238
  var shouldDisplayBackground = !cardPreview || !disableOverlay || status === 'error' || status === 'failed-processing';
239
239
  var isPlayButtonClickable = shouldRenderPlayButton() && !!disableOverlay;
@@ -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.2.5";
83
+ var packageVersion = "81.2.6";
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: "81.2.5",
104
+ packageName: "81.2.6",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
File without changes
@@ -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.2.5";
16
+ var packageVersion = "81.2.6";
17
17
  var SAMPLE_RATE = 0.05;
18
18
 
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Entry Point: @atlaskit/media-card
3
3
  */
4
- export type { NumericalCardDimensions } from '@atlaskit/media-common';
4
+ export type { NumericalCardDimensions } from './mediaCommon';
5
5
  export type { CardAction, CardEventHandler } from './card/actions';
6
6
  export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, InlineCardEvent, SharedCardProps, CardOnClickCallback, InlineCardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
7
7
  export { Card, CardSync } from './card';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Entry Point: @atlaskit/media-card
3
+ */
4
+ export type { NumericalCardDimensions } from '@atlaskit/media-common';
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/media-card/mediaCommon",
3
+ "main": "../dist/cjs/mediaCommon.js",
4
+ "module": "../dist/esm/mediaCommon.js",
5
+ "module:es2019": "../dist/es2019/mediaCommon.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/mediaCommon.d.ts"
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "81.2.6",
3
+ "version": "81.3.0",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,13 +30,13 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/analytics-next": "^12.1.0",
33
+ "@atlaskit/analytics-next": "^12.2.0",
34
34
  "@atlaskit/dropdown-menu": "^17.1.0",
35
35
  "@atlaskit/editor-shared-styles": "^4.0.0",
36
36
  "@atlaskit/icon": "^36.1.0",
37
37
  "@atlaskit/interaction-context": "^4.0.0",
38
38
  "@atlaskit/link": "^4.1.0",
39
- "@atlaskit/media-client": "^37.1.0",
39
+ "@atlaskit/media-client": "^37.2.0",
40
40
  "@atlaskit/media-client-react": "^6.1.0",
41
41
  "@atlaskit/media-common": "^14.2.0",
42
42
  "@atlaskit/media-file-preview": "^1.1.0",
@@ -51,8 +51,8 @@
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": "^120.0.0",
55
- "@atlaskit/tokens": "^15.3.0",
54
+ "@atlaskit/tmp-editor-statsig": "^120.2.0",
55
+ "@atlaskit/tokens": "^15.4.0",
56
56
  "@atlaskit/tooltip": "^23.1.0",
57
57
  "@atlaskit/ufo": "^1.0.0",
58
58
  "@atlaskit/visually-hidden": "^4.1.0",
@@ -86,7 +86,7 @@
86
86
  "@atlaskit/toggle": "^17.1.0",
87
87
  "@atlassian/a11y-jest-testing": "^0.13.0",
88
88
  "@atlassian/feature-flags-test-utils": "^1.1.0",
89
- "@atlassian/testing-library": "^0.7.0",
89
+ "@atlassian/testing-library": "^0.8.0",
90
90
  "@atlassian/ufo": "^0.8.0",
91
91
  "@testing-library/dom": "^10.1.0",
92
92
  "@testing-library/react": "^16.3.0",
@@ -104,9 +104,6 @@
104
104
  "cc-maui-phase-2": {
105
105
  "type": "boolean"
106
106
  },
107
- "platform_editor_maui_edit": {
108
- "type": "boolean"
109
- },
110
107
  "enable_sampling_mediacardrender_succeeded": {
111
108
  "type": "boolean"
112
109
  },