@atlaskit/media-card 74.7.0 → 74.7.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 +1 -3
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/cjs/utils/analytics.js +1 -15
- package/dist/cjs/utils/ufoExperiences.js +3 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/card/card.js +2 -4
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/es2019/utils/analytics.js +1 -13
- package/dist/es2019/utils/ufoExperiences.js +4 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/card/card.js +2 -4
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/esm/utils/analytics.js +1 -13
- package/dist/esm/utils/ufoExperiences.js +4 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/utils/analytics.d.ts +0 -2
- package/example-helpers/index.tsx +1 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 74.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - The component now logs the full provided feature flags object
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 74.7.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -48,7 +48,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
48
48
|
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); }; }
|
|
49
49
|
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; } }
|
|
50
50
|
var packageName = "@atlaskit/media-card";
|
|
51
|
-
var packageVersion = "74.7.
|
|
51
|
+
var packageVersion = "74.7.1";
|
|
52
52
|
var CardBase = /*#__PURE__*/function (_Component) {
|
|
53
53
|
(0, _inherits2.default)(CardBase, _Component);
|
|
54
54
|
var _super = _createSuper(CardBase);
|
|
@@ -1028,8 +1028,6 @@ var Card = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
|
1028
1028
|
packageName: packageName,
|
|
1029
1029
|
componentName: 'mediaCard',
|
|
1030
1030
|
component: 'mediaCard'
|
|
1031
|
-
}, {
|
|
1032
|
-
filterFeatureFlags: _analytics.LOGGED_FEATURE_FLAGS
|
|
1033
1031
|
})((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntlNext.injectIntl)(CardBase, {
|
|
1034
1032
|
enforceContext: false
|
|
1035
1033
|
})));
|
|
@@ -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 = "74.7.
|
|
93
|
+
var packageVersion = "74.7.1";
|
|
94
94
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
95
|
packageVersion: packageVersion,
|
|
96
96
|
packageName: packageName,
|
|
@@ -77,7 +77,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
|
|
|
77
77
|
}(_react.default.Component);
|
|
78
78
|
(0, _defineProperty2.default)(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
79
79
|
var packageName = "@atlaskit/media-card";
|
|
80
|
-
var packageVersion = "74.7.
|
|
80
|
+
var packageVersion = "74.7.1";
|
|
81
81
|
var MediaInlineAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
82
82
|
packageVersion: packageVersion,
|
|
83
83
|
packageName: packageName,
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.extractErrorInfo = exports.createAndFireMediaCardEvent =
|
|
7
|
+
exports.extractErrorInfo = exports.createAndFireMediaCardEvent = void 0;
|
|
8
8
|
exports.fireMediaCardEvent = fireMediaCardEvent;
|
|
9
9
|
exports.getRenderSucceededEventPayload = exports.getRenderPreviewableCardPayload = exports.getRenderFailedFileStatusPayload = exports.getRenderFailedExternalUriPayload = exports.getRenderErrorRequestMetadata = exports.getRenderErrorFailReason = exports.getRenderErrorEventPayload = exports.getRenderErrorErrorReason = exports.getRenderErrorErrorDetail = exports.getRenderCommencedEventPayload = exports.getRemoteSuccessEventPayload = exports.getFileAttributes = exports.getErrorTraceContext = exports.getErrorEventPayload = exports.getCopiedFilePayload = exports.getCacheHitEventPayload = void 0;
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -14,20 +14,6 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
14
14
|
var _errors = require("../errors");
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
-
var relevantFlags = {
|
|
18
|
-
newCardExperience: true,
|
|
19
|
-
captions: true,
|
|
20
|
-
timestampOnVideo: true,
|
|
21
|
-
observedWidth: true,
|
|
22
|
-
mediaInline: false,
|
|
23
|
-
folderUploads: false,
|
|
24
|
-
memoryCacheLogging: true,
|
|
25
|
-
fetchFileStateAfterUpload: true
|
|
26
|
-
};
|
|
27
|
-
var LOGGED_FEATURE_FLAGS = (0, _mediaCommon.filterFeatureFlagNames)(relevantFlags);
|
|
28
|
-
exports.LOGGED_FEATURE_FLAGS = LOGGED_FEATURE_FLAGS;
|
|
29
|
-
var LOGGED_FEATURE_FLAG_KEYS = (0, _mediaCommon.filterFeatureFlagKeysAllProducts)(relevantFlags);
|
|
30
|
-
exports.LOGGED_FEATURE_FLAG_KEYS = LOGGED_FEATURE_FLAG_KEYS;
|
|
31
17
|
var getFileAttributes = function getFileAttributes(metadata, fileStatus) {
|
|
32
18
|
return {
|
|
33
19
|
fileMediatype: metadata.mediaType,
|
|
@@ -7,13 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.startUfoExperience = exports.completeUfoExperience = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _ufo = require("@atlaskit/ufo");
|
|
10
|
+
var _mediaCommon = require("@atlaskit/media-common");
|
|
10
11
|
var _analytics = require("./analytics");
|
|
11
12
|
var _errors = require("../errors");
|
|
12
13
|
var _mediaClient = require("@atlaskit/media-client");
|
|
13
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; }
|
|
14
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; }
|
|
15
16
|
var packageName = "@atlaskit/media-card";
|
|
16
|
-
var packageVersion = "74.7.
|
|
17
|
+
var packageVersion = "74.7.1";
|
|
17
18
|
var concurrentExperience;
|
|
18
19
|
var getExperience = function getExperience(id) {
|
|
19
20
|
if (!concurrentExperience) {
|
|
@@ -23,7 +24,7 @@ var getExperience = function getExperience(id) {
|
|
|
23
24
|
},
|
|
24
25
|
type: _ufo.ExperienceTypes.Experience,
|
|
25
26
|
performanceType: _ufo.ExperiencePerformanceTypes.InlineResult,
|
|
26
|
-
featureFlags:
|
|
27
|
+
featureFlags: (0, _mediaCommon.getFeatureFlagKeysAllProducts)()
|
|
27
28
|
};
|
|
28
29
|
concurrentExperience = new _ufo.ConcurrentExperience('media-card-render', inlineExperience);
|
|
29
30
|
}
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/card/card.js
CHANGED
|
@@ -15,7 +15,7 @@ import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
|
15
15
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
16
16
|
import { getFileDetails } from '../utils/metadata';
|
|
17
17
|
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
18
|
-
import { getFileAttributes, extractErrorInfo
|
|
18
|
+
import { getFileAttributes, extractErrorInfo } from '../utils/analytics';
|
|
19
19
|
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
20
20
|
import { fireOperationalEvent, fireCommencedEvent, fireCopiedEvent, fireScreenEvent, fireNonCriticalErrorEvent } from './cardAnalytics';
|
|
21
21
|
import getDocument from '../utils/document';
|
|
@@ -27,7 +27,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
|
27
27
|
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
28
28
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
29
29
|
const packageName = "@atlaskit/media-card";
|
|
30
|
-
const packageVersion = "74.7.
|
|
30
|
+
const packageVersion = "74.7.1";
|
|
31
31
|
export class CardBase extends Component {
|
|
32
32
|
// An internalOccurrenceKey is a randomly generated value to differentiate various instances
|
|
33
33
|
// of Cards regardless of whether it shares the same file (either internal or external)
|
|
@@ -997,8 +997,6 @@ export const Card = withMediaAnalyticsContext({
|
|
|
997
997
|
packageName,
|
|
998
998
|
componentName: 'mediaCard',
|
|
999
999
|
component: 'mediaCard'
|
|
1000
|
-
}, {
|
|
1001
|
-
filterFeatureFlags: LOGGED_FEATURE_FLAGS
|
|
1002
1000
|
})(withAnalyticsEvents()(injectIntl(CardBase, {
|
|
1003
1001
|
enforceContext: false
|
|
1004
1002
|
})));
|
|
@@ -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 = "74.7.
|
|
69
|
+
const packageVersion = "74.7.1";
|
|
70
70
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
71
|
packageVersion,
|
|
72
72
|
packageName,
|
|
@@ -54,7 +54,7 @@ class WrappedMediaInlineAnalyticsErrorBoundary extends React.Component {
|
|
|
54
54
|
}
|
|
55
55
|
_defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
56
56
|
const packageName = "@atlaskit/media-card";
|
|
57
|
-
const packageVersion = "74.7.
|
|
57
|
+
const packageVersion = "74.7.1";
|
|
58
58
|
const MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
59
59
|
packageVersion,
|
|
60
60
|
packageName,
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { getMediaClientErrorReason, isRequestError } from '@atlaskit/media-client';
|
|
2
|
-
import { ANALYTICS_MEDIA_CHANNEL
|
|
2
|
+
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
3
3
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
import { isMediaCardError } from '../errors';
|
|
5
|
-
const relevantFlags = {
|
|
6
|
-
newCardExperience: true,
|
|
7
|
-
captions: true,
|
|
8
|
-
timestampOnVideo: true,
|
|
9
|
-
observedWidth: true,
|
|
10
|
-
mediaInline: false,
|
|
11
|
-
folderUploads: false,
|
|
12
|
-
memoryCacheLogging: true,
|
|
13
|
-
fetchFileStateAfterUpload: true
|
|
14
|
-
};
|
|
15
|
-
export const LOGGED_FEATURE_FLAGS = filterFeatureFlagNames(relevantFlags);
|
|
16
|
-
export const LOGGED_FEATURE_FLAG_KEYS = filterFeatureFlagKeysAllProducts(relevantFlags);
|
|
17
5
|
export const getFileAttributes = (metadata, fileStatus) => ({
|
|
18
6
|
fileMediatype: metadata.mediaType,
|
|
19
7
|
fileMimetype: metadata.mimeType,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo';
|
|
2
|
-
import {
|
|
2
|
+
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
3
|
+
import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
3
4
|
import { MediaCardError } from '../errors';
|
|
4
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
5
6
|
const packageName = "@atlaskit/media-card";
|
|
6
|
-
const packageVersion = "74.7.
|
|
7
|
+
const packageVersion = "74.7.1";
|
|
7
8
|
let concurrentExperience;
|
|
8
9
|
const getExperience = id => {
|
|
9
10
|
if (!concurrentExperience) {
|
|
@@ -13,7 +14,7 @@ const getExperience = id => {
|
|
|
13
14
|
},
|
|
14
15
|
type: ExperienceTypes.Experience,
|
|
15
16
|
performanceType: ExperiencePerformanceTypes.InlineResult,
|
|
16
|
-
featureFlags:
|
|
17
|
+
featureFlags: getFeatureFlagKeysAllProducts()
|
|
17
18
|
};
|
|
18
19
|
concurrentExperience = new ConcurrentExperience('media-card-render', inlineExperience);
|
|
19
20
|
}
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/card/card.js
CHANGED
|
@@ -28,7 +28,7 @@ import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
|
28
28
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
29
29
|
import { getFileDetails } from '../utils/metadata';
|
|
30
30
|
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
31
|
-
import { getFileAttributes, extractErrorInfo
|
|
31
|
+
import { getFileAttributes, extractErrorInfo } from '../utils/analytics';
|
|
32
32
|
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
33
33
|
import { fireOperationalEvent as _fireOperationalEvent, fireCommencedEvent as _fireCommencedEvent, fireCopiedEvent, fireScreenEvent, fireNonCriticalErrorEvent } from './cardAnalytics';
|
|
34
34
|
import getDocument from '../utils/document';
|
|
@@ -40,7 +40,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
|
40
40
|
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
41
41
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
42
42
|
var packageName = "@atlaskit/media-card";
|
|
43
|
-
var packageVersion = "74.7.
|
|
43
|
+
var packageVersion = "74.7.1";
|
|
44
44
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
45
45
|
_inherits(CardBase, _Component);
|
|
46
46
|
var _super = _createSuper(CardBase);
|
|
@@ -1019,8 +1019,6 @@ export var Card = withMediaAnalyticsContext({
|
|
|
1019
1019
|
packageName: packageName,
|
|
1020
1020
|
componentName: 'mediaCard',
|
|
1021
1021
|
component: 'mediaCard'
|
|
1022
|
-
}, {
|
|
1023
|
-
filterFeatureFlags: LOGGED_FEATURE_FLAGS
|
|
1024
1022
|
})(withAnalyticsEvents()(injectIntl(CardBase, {
|
|
1025
1023
|
enforceContext: false
|
|
1026
1024
|
})));
|
|
@@ -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 = "74.7.
|
|
86
|
+
var packageVersion = "74.7.1";
|
|
87
87
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
88
|
packageVersion: packageVersion,
|
|
89
89
|
packageName: packageName,
|
|
@@ -70,7 +70,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
|
|
|
70
70
|
}(React.Component);
|
|
71
71
|
_defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
72
72
|
var packageName = "@atlaskit/media-card";
|
|
73
|
-
var packageVersion = "74.7.
|
|
73
|
+
var packageVersion = "74.7.1";
|
|
74
74
|
var MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
75
75
|
packageVersion: packageVersion,
|
|
76
76
|
packageName: packageName,
|
|
@@ -2,21 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import { getMediaClientErrorReason, isRequestError } from '@atlaskit/media-client';
|
|
5
|
-
import { ANALYTICS_MEDIA_CHANNEL
|
|
5
|
+
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
6
6
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import { isMediaCardError } from '../errors';
|
|
8
|
-
var relevantFlags = {
|
|
9
|
-
newCardExperience: true,
|
|
10
|
-
captions: true,
|
|
11
|
-
timestampOnVideo: true,
|
|
12
|
-
observedWidth: true,
|
|
13
|
-
mediaInline: false,
|
|
14
|
-
folderUploads: false,
|
|
15
|
-
memoryCacheLogging: true,
|
|
16
|
-
fetchFileStateAfterUpload: true
|
|
17
|
-
};
|
|
18
|
-
export var LOGGED_FEATURE_FLAGS = filterFeatureFlagNames(relevantFlags);
|
|
19
|
-
export var LOGGED_FEATURE_FLAG_KEYS = filterFeatureFlagKeysAllProducts(relevantFlags);
|
|
20
8
|
export var getFileAttributes = function getFileAttributes(metadata, fileStatus) {
|
|
21
9
|
return {
|
|
22
10
|
fileMediatype: metadata.mediaType,
|
|
@@ -2,11 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo';
|
|
5
|
-
import {
|
|
5
|
+
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
6
|
+
import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
6
7
|
import { MediaCardError } from '../errors';
|
|
7
8
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
8
9
|
var packageName = "@atlaskit/media-card";
|
|
9
|
-
var packageVersion = "74.7.
|
|
10
|
+
var packageVersion = "74.7.1";
|
|
10
11
|
var concurrentExperience;
|
|
11
12
|
var getExperience = function getExperience(id) {
|
|
12
13
|
if (!concurrentExperience) {
|
|
@@ -16,7 +17,7 @@ var getExperience = function getExperience(id) {
|
|
|
16
17
|
},
|
|
17
18
|
type: ExperienceTypes.Experience,
|
|
18
19
|
performanceType: ExperiencePerformanceTypes.InlineResult,
|
|
19
|
-
featureFlags:
|
|
20
|
+
featureFlags: getFeatureFlagKeysAllProducts()
|
|
20
21
|
};
|
|
21
22
|
concurrentExperience = new ConcurrentExperience('media-card-render', inlineExperience);
|
|
22
23
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -13,8 +13,6 @@ export declare type CardPreviewAttributes = {
|
|
|
13
13
|
declare type WithCardPreviewCacheAttributes = {
|
|
14
14
|
cardPreviewAttributes: CardPreviewAttributes;
|
|
15
15
|
};
|
|
16
|
-
export declare const LOGGED_FEATURE_FLAGS: (keyof import("@atlaskit/media-common").MediaFeatureFlags)[];
|
|
17
|
-
export declare const LOGGED_FEATURE_FLAG_KEYS: string[];
|
|
18
16
|
export declare type FileUriFailReason = 'local-uri' | 'remote-uri' | `unknown-uri`;
|
|
19
17
|
export declare type FailedErrorFailReason = MediaCardErrorPrimaryReason | 'nativeError';
|
|
20
18
|
export declare type MediaCardErrorInfo = {
|
|
@@ -20,7 +20,6 @@ import { SelectableCard } from './selectableCard';
|
|
|
20
20
|
import { Card, CardAppearance, CardEvent, CardAction } from '../src';
|
|
21
21
|
import { MediaCardError } from '../src/errors';
|
|
22
22
|
import DevelopmentUseMessage from './developmentUseMessage';
|
|
23
|
-
import { LOGGED_FEATURE_FLAGS } from '../src/utils/analytics';
|
|
24
23
|
|
|
25
24
|
const mediaClientConfig = createStorybookMediaClientConfig();
|
|
26
25
|
|
|
@@ -141,9 +140,7 @@ export const MainWrapper: React.FC<MainWrapperProps> = ({
|
|
|
141
140
|
<>
|
|
142
141
|
{developmentOnly && <DevelopmentUseMessage />}
|
|
143
142
|
{!disableFeatureFlagWrapper ? (
|
|
144
|
-
<FeatureFlagsWrapper
|
|
145
|
-
{children}
|
|
146
|
-
</FeatureFlagsWrapper>
|
|
143
|
+
<FeatureFlagsWrapper>{children}</FeatureFlagsWrapper>
|
|
147
144
|
) : (
|
|
148
145
|
<>{children}</>
|
|
149
146
|
)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "74.7.
|
|
3
|
+
"version": "74.7.1",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@atlaskit/dropdown-menu": "^11.7.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^2.3.0",
|
|
34
34
|
"@atlaskit/icon": "^21.11.0",
|
|
35
|
-
"@atlaskit/media-client": "^20.
|
|
36
|
-
"@atlaskit/media-common": "^
|
|
35
|
+
"@atlaskit/media-client": "^20.2.0",
|
|
36
|
+
"@atlaskit/media-common": "^4.0.0",
|
|
37
37
|
"@atlaskit/media-ui": "^22.3.0",
|
|
38
38
|
"@atlaskit/media-viewer": "^47.5.0",
|
|
39
39
|
"@atlaskit/spinner": "^15.4.0",
|
|
40
|
-
"@atlaskit/theme": "^12.
|
|
40
|
+
"@atlaskit/theme": "^12.3.0",
|
|
41
41
|
"@atlaskit/tokens": "^1.2.0",
|
|
42
42
|
"@atlaskit/tooltip": "^17.7.0",
|
|
43
43
|
"@atlaskit/ufo": "^0.1.0",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@atlaskit/analytics-listeners": "^8.5.0",
|
|
58
58
|
"@atlaskit/analytics-namespaced-context": "^6.6.0",
|
|
59
|
-
"@atlaskit/button": "^16.
|
|
59
|
+
"@atlaskit/button": "^16.6.0",
|
|
60
60
|
"@atlaskit/checkbox": "^12.4.0",
|
|
61
61
|
"@atlaskit/docs": "*",
|
|
62
62
|
"@atlaskit/inline-message": "^11.4.0",
|
|
63
63
|
"@atlaskit/media-core": "^34.0.0",
|
|
64
64
|
"@atlaskit/media-picker": "^64.2.0",
|
|
65
|
-
"@atlaskit/media-test-helpers": "^
|
|
65
|
+
"@atlaskit/media-test-helpers": "^31.0.0",
|
|
66
66
|
"@atlaskit/radio": "^5.4.0",
|
|
67
67
|
"@atlaskit/range": "^7.0.0",
|
|
68
68
|
"@atlaskit/section-message": "^6.3.0",
|