@atlaskit/media-card 82.3.3 → 82.3.5
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 +14 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +2 -4
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +2 -4
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +2 -4
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 82.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 82.3.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ef90ef12894f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef90ef12894f2) -
|
|
14
|
+
Remove the fully launched cc-maui-phase-2 gate in Media Exif packages, retaining the enabled
|
|
15
|
+
behavior.
|
|
16
|
+
|
|
3
17
|
## 82.3.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -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.3.
|
|
11
|
+
var packageVersion = "82.3.4";
|
|
12
12
|
var Card = exports.Card = (0, _withMediaAnalyticsContext.withMediaAnalyticsContext)({
|
|
13
13
|
packageVersion: packageVersion,
|
|
14
14
|
packageName: packageName,
|
|
@@ -266,12 +266,10 @@ var CardViewBase = exports.CardViewBase = function CardViewBase(_ref) {
|
|
|
266
266
|
traceTooltipVariant = _getRenderConfigBySta.traceTooltipVariant;
|
|
267
267
|
|
|
268
268
|
// AI border shown while generating; cleared by the decoration on upload completion.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
// Last so the gates above are still evaluated, and their exposures still fire, on
|
|
269
|
+
var renderAIBorderOverride = !!isAIGenerating && (0, _expValEquals.expValEquals)('cc-maui-experiment', 'isEnabled', true) &&
|
|
270
|
+
// Last so the experiment above is still evaluated, and its exposure still fires, on
|
|
272
271
|
// surfaces that suppress the overlay.
|
|
273
272
|
!suppressLoadingUI;
|
|
274
|
-
/* eslint-enable @atlaskit/platform/no-preconditioning */
|
|
275
273
|
var shouldDisplayBackground = status === 'error' || status === 'failed-processing' || !suppressLoadingUI && (!cardPreview || !disableOverlay);
|
|
276
274
|
var isPlayButtonClickable = shouldRenderPlayButton() && !!disableOverlay;
|
|
277
275
|
var isTickBoxSelectable = !disableOverlay && !!selectable && !selected;
|
|
@@ -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.3.
|
|
90
|
+
var packageVersion = "82.3.4";
|
|
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)({
|
|
@@ -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.3.
|
|
119
|
+
packageName: "82.3.4",
|
|
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.3.
|
|
26
|
+
var packageVersion = "82.3.4";
|
|
27
27
|
var SAMPLE_RATE = 0.05;
|
|
28
28
|
|
|
29
29
|
/**
|
package/dist/es2019/card/card.js
CHANGED
|
@@ -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.3.
|
|
5
|
+
const packageVersion = "82.3.4";
|
|
6
6
|
export const Card = withMediaAnalyticsContext({
|
|
7
7
|
packageVersion,
|
|
8
8
|
packageName,
|
|
@@ -254,12 +254,10 @@ export const CardViewBase = ({
|
|
|
254
254
|
} = getRenderConfigByStatus();
|
|
255
255
|
|
|
256
256
|
// AI border shown while generating; cleared by the decoration on upload completion.
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
// Last so the gates above are still evaluated, and their exposures still fire, on
|
|
257
|
+
const renderAIBorderOverride = !!isAIGenerating && expValEquals('cc-maui-experiment', 'isEnabled', true) &&
|
|
258
|
+
// Last so the experiment above is still evaluated, and its exposure still fires, on
|
|
260
259
|
// surfaces that suppress the overlay.
|
|
261
260
|
!suppressLoadingUI;
|
|
262
|
-
/* eslint-enable @atlaskit/platform/no-preconditioning */
|
|
263
261
|
const shouldDisplayBackground = status === 'error' || status === 'failed-processing' || !suppressLoadingUI && (!cardPreview || !disableOverlay);
|
|
264
262
|
const isPlayButtonClickable = shouldRenderPlayButton() && !!disableOverlay;
|
|
265
263
|
const isTickBoxSelectable = !disableOverlay && !!selectable && !selected;
|
|
@@ -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.3.
|
|
69
|
+
const packageVersion = "82.3.4";
|
|
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: "82.3.
|
|
40
|
+
packageName: "82.3.4",
|
|
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.3.
|
|
15
|
+
const packageVersion = "82.3.4";
|
|
16
16
|
const SAMPLE_RATE = 0.05;
|
|
17
17
|
|
|
18
18
|
/**
|
package/dist/esm/card/card.js
CHANGED
|
@@ -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.3.
|
|
5
|
+
var packageVersion = "82.3.4";
|
|
6
6
|
export var Card = withMediaAnalyticsContext({
|
|
7
7
|
packageVersion: packageVersion,
|
|
8
8
|
packageName: packageName,
|
|
@@ -257,12 +257,10 @@ export var CardViewBase = function CardViewBase(_ref) {
|
|
|
257
257
|
traceTooltipVariant = _getRenderConfigBySta.traceTooltipVariant;
|
|
258
258
|
|
|
259
259
|
// AI border shown while generating; cleared by the decoration on upload completion.
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
// Last so the gates above are still evaluated, and their exposures still fire, on
|
|
260
|
+
var renderAIBorderOverride = !!isAIGenerating && expValEquals('cc-maui-experiment', 'isEnabled', true) &&
|
|
261
|
+
// Last so the experiment above is still evaluated, and its exposure still fires, on
|
|
263
262
|
// surfaces that suppress the overlay.
|
|
264
263
|
!suppressLoadingUI;
|
|
265
|
-
/* eslint-enable @atlaskit/platform/no-preconditioning */
|
|
266
264
|
var shouldDisplayBackground = status === 'error' || status === 'failed-processing' || !suppressLoadingUI && (!cardPreview || !disableOverlay);
|
|
267
265
|
var isPlayButtonClickable = shouldRenderPlayButton() && !!disableOverlay;
|
|
268
266
|
var isTickBoxSelectable = !disableOverlay && !!selectable && !selected;
|
|
@@ -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.3.
|
|
83
|
+
var packageVersion = "82.3.4";
|
|
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: "82.3.
|
|
104
|
+
packageName: "82.3.4",
|
|
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.3.
|
|
19
|
+
var packageVersion = "82.3.4";
|
|
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.3.
|
|
3
|
+
"version": "82.3.5",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/analytics-next": "^12.6.0",
|
|
37
37
|
"@atlaskit/dropdown-menu": "^21.3.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^5.1.0",
|
|
39
|
-
"@atlaskit/icon": "^38.
|
|
39
|
+
"@atlaskit/icon": "^38.1.0",
|
|
40
40
|
"@atlaskit/interaction-context": "^4.1.0",
|
|
41
41
|
"@atlaskit/link": "^5.1.0",
|
|
42
42
|
"@atlaskit/media-client": "^39.4.0",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"@atlaskit/media-file-preview": "^2.0.0",
|
|
46
46
|
"@atlaskit/media-state": "^4.0.0",
|
|
47
47
|
"@atlaskit/media-svg": "^4.0.0",
|
|
48
|
-
"@atlaskit/media-ui": "^31.
|
|
48
|
+
"@atlaskit/media-ui": "^31.10.0",
|
|
49
49
|
"@atlaskit/media-viewer": "^54.12.0",
|
|
50
50
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
52
52
|
"@atlaskit/primitives": "^22.7.0",
|
|
53
53
|
"@atlaskit/progress-bar": "^5.3.0",
|
|
54
54
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
55
|
-
"@atlaskit/react-ufo": "^8.
|
|
56
|
-
"@atlaskit/section-message": "^10.
|
|
55
|
+
"@atlaskit/react-ufo": "^8.5.0",
|
|
56
|
+
"@atlaskit/section-message": "^10.3.0",
|
|
57
57
|
"@atlaskit/theme": "^28.2.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
-
"@atlaskit/tokens": "^20.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^263.0.0",
|
|
59
|
+
"@atlaskit/tokens": "^20.12.0",
|
|
60
60
|
"@atlaskit/tooltip": "^24.4.0",
|
|
61
61
|
"@atlaskit/ufo": "^2.0.0",
|
|
62
62
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
@@ -119,9 +119,6 @@
|
|
|
119
119
|
"type": "boolean",
|
|
120
120
|
"referenceOnly": true
|
|
121
121
|
},
|
|
122
|
-
"cc-maui-phase-2": {
|
|
123
|
-
"type": "boolean"
|
|
124
|
-
},
|
|
125
122
|
"enable_sampling_mediacardrender_succeeded": {
|
|
126
123
|
"type": "boolean"
|
|
127
124
|
},
|