@atlaskit/media-card 76.1.0 → 76.1.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 +7 -0
- package/dist/cjs/card/card.js +2 -2
- 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/cjs/version.json +1 -1
- package/dist/es2019/card/card.js +2 -3
- 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/es2019/version.json +1 -1
- package/dist/esm/card/card.js +2 -3
- 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/dist/esm/version.json +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 76.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ed81e630547`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed81e630547) - MEX-2089 Remove timestamp feature flag on AFP
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 76.1.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -49,7 +49,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
49
49
|
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); }; }
|
|
50
50
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
51
|
var packageName = "@atlaskit/media-card";
|
|
52
|
-
var packageVersion = "76.1.
|
|
52
|
+
var packageVersion = "76.1.1";
|
|
53
53
|
var CardBase = /*#__PURE__*/function (_Component) {
|
|
54
54
|
(0, _inherits2.default)(CardBase, _Component);
|
|
55
55
|
var _super = _createSuper(CardBase);
|
|
@@ -857,7 +857,7 @@ var CardBase = /*#__PURE__*/function (_Component) {
|
|
|
857
857
|
var _getFileDetails2 = (0, _metadata.getFileDetails)(identifier, fileState),
|
|
858
858
|
mimeType = _getFileDetails2.mimeType;
|
|
859
859
|
var isVideoPlayable = (0, _videoIsPlayable.videoIsPlayable)(isBannedLocalPreview, fileState, mimeType);
|
|
860
|
-
if (isVideo && !isPlayingFile && disableOverlay && useInlinePlayer && isVideoPlayable
|
|
860
|
+
if (isVideo && !isPlayingFile && disableOverlay && useInlinePlayer && isVideoPlayable) {
|
|
861
861
|
this.setState({
|
|
862
862
|
isPlayingFile: true
|
|
863
863
|
});
|
|
@@ -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 = "76.1.
|
|
93
|
+
var packageVersion = "76.1.1";
|
|
94
94
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
95
|
packageVersion: packageVersion,
|
|
96
96
|
packageName: packageName,
|
|
@@ -119,7 +119,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
119
119
|
ErrorBoundary = _this$state.ErrorBoundary;
|
|
120
120
|
var analyticsContext = {
|
|
121
121
|
packageVersion: "@atlaskit/media-card",
|
|
122
|
-
packageName: "76.1.
|
|
122
|
+
packageName: "76.1.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(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
16
|
var packageName = "@atlaskit/media-card";
|
|
17
|
-
var packageVersion = "76.1.
|
|
17
|
+
var packageVersion = "76.1.1";
|
|
18
18
|
var concurrentExperience;
|
|
19
19
|
var getExperience = function getExperience(id) {
|
|
20
20
|
if (!concurrentExperience) {
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/card/card.js
CHANGED
|
@@ -22,13 +22,12 @@ import { fireOperationalEvent, fireCommencedEvent, fireCopiedEvent, fireScreenEv
|
|
|
22
22
|
import getDocument from '../utils/document';
|
|
23
23
|
import { StoreSSRDataScript, getSSRData } from '../utils/globalScope';
|
|
24
24
|
import { getCardStateFromFileState, createStateUpdater } from './cardState';
|
|
25
|
-
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
26
25
|
import { isBigger } from '../utils/dimensionComparer';
|
|
27
26
|
import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
28
27
|
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
29
28
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
30
29
|
const packageName = "@atlaskit/media-card";
|
|
31
|
-
const packageVersion = "76.1.
|
|
30
|
+
const packageVersion = "76.1.1";
|
|
32
31
|
export class CardBase extends Component {
|
|
33
32
|
constructor(props) {
|
|
34
33
|
super(props);
|
|
@@ -838,7 +837,7 @@ export class CardBase extends Component {
|
|
|
838
837
|
mimeType
|
|
839
838
|
} = getFileDetails(identifier, fileState);
|
|
840
839
|
const isVideoPlayable = videoIsPlayable(isBannedLocalPreview, fileState, mimeType);
|
|
841
|
-
if (isVideo && !isPlayingFile && disableOverlay && useInlinePlayer && isVideoPlayable
|
|
840
|
+
if (isVideo && !isPlayingFile && disableOverlay && useInlinePlayer && isVideoPlayable) {
|
|
842
841
|
this.setState({
|
|
843
842
|
isPlayingFile: true
|
|
844
843
|
});
|
|
@@ -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 = "76.1.
|
|
69
|
+
const packageVersion = "76.1.1";
|
|
70
70
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
71
|
packageVersion,
|
|
72
72
|
packageName,
|
|
@@ -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: "76.1.
|
|
40
|
+
packageName: "76.1.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 = "76.1.
|
|
7
|
+
const packageVersion = "76.1.1";
|
|
8
8
|
let concurrentExperience;
|
|
9
9
|
const getExperience = id => {
|
|
10
10
|
if (!concurrentExperience) {
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/card/card.js
CHANGED
|
@@ -35,13 +35,12 @@ import { fireOperationalEvent as _fireOperationalEvent, fireCommencedEvent as _f
|
|
|
35
35
|
import getDocument from '../utils/document';
|
|
36
36
|
import { StoreSSRDataScript, getSSRData } from '../utils/globalScope';
|
|
37
37
|
import { getCardStateFromFileState, createStateUpdater } from './cardState';
|
|
38
|
-
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
39
38
|
import { isBigger } from '../utils/dimensionComparer';
|
|
40
39
|
import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
41
40
|
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
42
41
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
43
42
|
var packageName = "@atlaskit/media-card";
|
|
44
|
-
var packageVersion = "76.1.
|
|
43
|
+
var packageVersion = "76.1.1";
|
|
45
44
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
46
45
|
_inherits(CardBase, _Component);
|
|
47
46
|
var _super = _createSuper(CardBase);
|
|
@@ -849,7 +848,7 @@ export var CardBase = /*#__PURE__*/function (_Component) {
|
|
|
849
848
|
var _getFileDetails2 = getFileDetails(identifier, fileState),
|
|
850
849
|
mimeType = _getFileDetails2.mimeType;
|
|
851
850
|
var isVideoPlayable = videoIsPlayable(isBannedLocalPreview, fileState, mimeType);
|
|
852
|
-
if (isVideo && !isPlayingFile && disableOverlay && useInlinePlayer && isVideoPlayable
|
|
851
|
+
if (isVideo && !isPlayingFile && disableOverlay && useInlinePlayer && isVideoPlayable) {
|
|
853
852
|
this.setState({
|
|
854
853
|
isPlayingFile: true
|
|
855
854
|
});
|
|
@@ -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 = "76.1.
|
|
86
|
+
var packageVersion = "76.1.1";
|
|
87
87
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
88
|
packageVersion: packageVersion,
|
|
89
89
|
packageName: packageName,
|
|
@@ -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: "76.1.
|
|
106
|
+
packageName: "76.1.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 = "76.1.
|
|
10
|
+
var packageVersion = "76.1.1";
|
|
11
11
|
var concurrentExperience;
|
|
12
12
|
var getExperience = function getExperience(id) {
|
|
13
13
|
if (!concurrentExperience) {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "76.1.
|
|
3
|
+
"version": "76.1.1",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
40
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
41
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
40
|
+
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
41
|
+
"@atlaskit/editor-shared-styles": "^2.5.0",
|
|
42
42
|
"@atlaskit/icon": "^21.12.0",
|
|
43
43
|
"@atlaskit/media-client": "^23.1.0",
|
|
44
|
-
"@atlaskit/media-common": "^
|
|
44
|
+
"@atlaskit/media-common": "^8.0.0",
|
|
45
45
|
"@atlaskit/media-ui": "^23.2.0",
|
|
46
46
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
47
47
|
"@atlaskit/spinner": "^15.5.0",
|
|
48
48
|
"@atlaskit/theme": "^12.5.0",
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
49
|
+
"@atlaskit/tokens": "^1.14.0",
|
|
50
50
|
"@atlaskit/tooltip": "^17.8.0",
|
|
51
51
|
"@atlaskit/ufo": "^0.2.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
99
|
-
}
|
|
99
|
+
}
|