@atlaskit/media-ui 28.7.42 → 29.0.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 +19 -0
- package/dist/cjs/abuseModal/abuseModal.js +2 -2
- package/dist/cjs/customMediaPlayer/index.js +3 -3
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/apiFeedback.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captionsAdminControls.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/captionsSelectControls.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +2 -2
- package/dist/cjs/customMediaPlayer/mediaPlayer/useTextTracks.js +2 -2
- package/dist/cjs/customMediaPlayer/playbackSpeedControls.js +3 -3
- package/dist/cjs/customMediaPlayer/timeRange.js +2 -2
- package/dist/cjs/messages.js +38 -38
- package/dist/cjs/test-helpers/mountWithIntlContext.js +4 -4
- package/dist/cjs/test-helpers/renderWithIntl.js +2 -2
- package/dist/es2019/abuseModal/abuseModal.js +1 -1
- package/dist/es2019/customMediaPlayer/index.js +2 -2
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/apiFeedback.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captionsAdminControls.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/captionsSelectControls.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +1 -1
- package/dist/es2019/customMediaPlayer/mediaPlayer/useTextTracks.js +1 -1
- package/dist/es2019/customMediaPlayer/playbackSpeedControls.js +1 -1
- package/dist/es2019/customMediaPlayer/timeRange.js +1 -1
- package/dist/es2019/messages.js +37 -37
- package/dist/es2019/test-helpers/mountWithIntlContext.js +1 -1
- package/dist/es2019/test-helpers/renderWithIntl.js +1 -1
- package/dist/esm/abuseModal/abuseModal.js +1 -1
- package/dist/esm/customMediaPlayer/index.js +2 -2
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/apiFeedback.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captionsAdminControls.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/captionsSelectControls.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayer.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +1 -1
- package/dist/esm/customMediaPlayer/mediaPlayer/useTextTracks.js +1 -1
- package/dist/esm/customMediaPlayer/playbackSpeedControls.js +1 -1
- package/dist/esm/customMediaPlayer/timeRange.js +1 -1
- package/dist/esm/messages.js +37 -37
- package/dist/esm/test-helpers/mountWithIntlContext.js +1 -1
- package/dist/esm/test-helpers/renderWithIntl.js +1 -1
- package/dist/types/abuseModal/abuseModal.d.ts +1 -1
- package/dist/types/customMediaPlayer/index-compiled.d.ts +1 -1
- package/dist/types/customMediaPlayer/index.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +1 -1
- package/dist/types/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +2 -2
- package/dist/types/customMediaPlayer/playbackSpeedControls.d.ts +1 -1
- package/dist/types/customMediaPlayer/timeRange.d.ts +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/test-helpers/mountWithIntlContext.d.ts +1 -1
- package/dist/types-ts4.5/abuseModal/abuseModal.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/index-compiled.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/index.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +2 -2
- package/dist/types-ts4.5/customMediaPlayer/playbackSpeedControls.d.ts +1 -1
- package/dist/types-ts4.5/customMediaPlayer/timeRange.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/test-helpers/mountWithIntlContext.d.ts +1 -1
- package/package.json +8 -8
- package/report.api.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 29.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`770f036c93884`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/770f036c93884) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 28.7.42
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.AbuseModal = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
12
12
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
13
13
|
var _messages = require("../messages");
|
|
14
14
|
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); }
|
|
15
|
-
var AbuseModal = exports.AbuseModal = (0,
|
|
15
|
+
var AbuseModal = exports.AbuseModal = (0, _reactIntl.injectIntl)(function (_ref) {
|
|
16
16
|
var isOpen = _ref.isOpen,
|
|
17
17
|
onConfirm = _ref.onConfirm,
|
|
18
18
|
onClose = _ref.onClose,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.CustomMediaPlayerBase = exports.CustomMediaPlayer = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
11
|
var _indexCompiled = require("./index-compiled");
|
|
12
12
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
@@ -14,7 +14,7 @@ var CustomMediaPlayerBase = exports.CustomMediaPlayerBase = function CustomMedia
|
|
|
14
14
|
return /*#__PURE__*/_react.default.createElement(_indexCompiled.CustomMediaPlayerBase, props);
|
|
15
15
|
};
|
|
16
16
|
var packageName = "@atlaskit/media-ui";
|
|
17
|
-
var packageVersion = "
|
|
17
|
+
var packageVersion = "0.0.0-development";
|
|
18
18
|
|
|
19
19
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
20
20
|
var CustomMediaPlayer = exports.CustomMediaPlayer = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
@@ -22,4 +22,4 @@ var CustomMediaPlayer = exports.CustomMediaPlayer = (0, _mediaCommon.withMediaAn
|
|
|
22
22
|
packageName: packageName,
|
|
23
23
|
componentName: 'customMediaPlayer',
|
|
24
24
|
component: 'customMediaPlayer'
|
|
25
|
-
})((0, _analyticsNext.withAnalyticsEvents)()((0,
|
|
25
|
+
})((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntl.injectIntl)(CustomMediaPlayerBase)));
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _flag = require("@atlaskit/flag");
|
|
10
10
|
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
11
11
|
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _messages = require("../../../messages");
|
|
14
14
|
function ApiFeedback(_ref) {
|
|
15
15
|
var notificationType = _ref.notificationType,
|
|
@@ -47,5 +47,5 @@ function ApiFeedback(_ref) {
|
|
|
47
47
|
onDismissed: onDismissed
|
|
48
48
|
}, flag);
|
|
49
49
|
}
|
|
50
|
-
var _default_1 = (0,
|
|
50
|
+
var _default_1 = (0, _reactIntl.injectIntl)(ApiFeedback);
|
|
51
51
|
var _default = exports.default = _default_1;
|
package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js
CHANGED
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
16
16
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
17
17
|
var _LocaleSelect = _interopRequireDefault(require("@atlaskit/locale/LocaleSelect"));
|
|
@@ -175,5 +175,5 @@ function UploadCaptionsForm(_ref2) {
|
|
|
175
175
|
onClick: submit
|
|
176
176
|
}, intl.formatMessage(_messages.messages.upload)))));
|
|
177
177
|
}
|
|
178
|
-
var _default_1 = (0,
|
|
178
|
+
var _default_1 = (0, _reactIntl.injectIntl)(UploadCaptionsForm);
|
|
179
179
|
var _default = exports.default = _default_1;
|
package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js
CHANGED
|
@@ -13,7 +13,7 @@ var _browser = require("./filePickers/browser");
|
|
|
13
13
|
var _captions = require("./captions");
|
|
14
14
|
var _apiFeedback = _interopRequireDefault(require("../apiFeedback"));
|
|
15
15
|
var _messages = require("../../../../messages");
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
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
18
|
var CaptionsUploaderBrowser = function CaptionsUploaderBrowser(_ref) {
|
|
19
19
|
var identifier = _ref.identifier,
|
|
@@ -76,5 +76,5 @@ var CaptionsUploaderBrowser = function CaptionsUploaderBrowser(_ref) {
|
|
|
76
76
|
errorDescription: intl.formatMessage(_messages.messages.video_captions_upload_error_description)
|
|
77
77
|
}));
|
|
78
78
|
};
|
|
79
|
-
var _default_1 = (0,
|
|
79
|
+
var _default_1 = (0, _reactIntl.injectIntl)(CaptionsUploaderBrowser);
|
|
80
80
|
var _default = exports.default = _default_1;
|
|
@@ -15,7 +15,7 @@ var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
|
15
15
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
16
16
|
var _util = require("./artifactUploader/captions/util");
|
|
17
17
|
var _apiFeedback = _interopRequireDefault(require("./apiFeedback"));
|
|
18
|
-
var
|
|
18
|
+
var _reactIntl = require("react-intl");
|
|
19
19
|
var _messages = require("../../../messages");
|
|
20
20
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
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); }
|
|
@@ -64,7 +64,7 @@ var CaptionDeleteConfirmationModal = function CaptionDeleteConfirmationModal(_re
|
|
|
64
64
|
errorDescription: intl.formatMessage(_messages.messages.video_captions_delete_error_description)
|
|
65
65
|
}));
|
|
66
66
|
};
|
|
67
|
-
var _default_1 = (0,
|
|
67
|
+
var _default_1 = (0, _reactIntl.injectIntl)(CaptionDeleteConfirmationModal);
|
|
68
68
|
var _default = exports.default = _default_1;
|
|
69
69
|
var deleteCaption = /*#__PURE__*/function () {
|
|
70
70
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(mediaClient, identifier, artifactName, onStart, onEnd, onError) {
|
|
@@ -13,7 +13,7 @@ var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
|
13
13
|
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
14
14
|
var _messages = require("../../messages");
|
|
15
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _captions = require("./captions");
|
|
18
18
|
var _MediaButton = _interopRequireDefault(require("../../MediaButton"));
|
|
19
19
|
var _dropdownControlCommon = require("../dropdownControlCommon");
|
|
@@ -97,4 +97,4 @@ var _CaptionsAdminControls = exports._CaptionsAdminControls = function _Captions
|
|
|
97
97
|
popperProps: _dropdownControlCommon.popperProps
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
var CaptionsAdminControls = exports.CaptionsAdminControls = (0,
|
|
100
|
+
var CaptionsAdminControls = exports.CaptionsAdminControls = (0, _reactIntl.injectIntl)(_CaptionsAdminControls);
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.CaptionsSelectControls = void 0;
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
13
|
var _new = require("@atlaskit/button/new");
|
|
14
14
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
@@ -95,4 +95,4 @@ var CaptionsSelectControlsWithIntl = /*#__PURE__*/(0, _react.memo)(function (_re
|
|
|
95
95
|
popperProps: _dropdownControlCommon.popperProps
|
|
96
96
|
}));
|
|
97
97
|
});
|
|
98
|
-
var CaptionsSelectControls = exports.CaptionsSelectControls = (0,
|
|
98
|
+
var CaptionsSelectControls = exports.CaptionsSelectControls = (0, _reactIntl.injectIntl)(CaptionsSelectControlsWithIntl);
|
|
@@ -15,7 +15,7 @@ var _useTextTracks2 = require("./useTextTracks");
|
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
16
|
var _excluded = ["onPlay"];
|
|
17
17
|
var packageName = "@atlaskit/media-ui";
|
|
18
|
-
var packageVersion = "
|
|
18
|
+
var packageVersion = "0.0.0-development";
|
|
19
19
|
var MediaPlayerWihtoutContext = exports.MediaPlayerWihtoutContext = function MediaPlayerWihtoutContext(_ref) {
|
|
20
20
|
var _onPlay = _ref.onPlay,
|
|
21
21
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -22,7 +22,7 @@ var _fullscreenEnter = _interopRequireDefault(require("@atlaskit/icon/core/fulls
|
|
|
22
22
|
var _shrinkDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/shrink-diagonal"));
|
|
23
23
|
var _volumeHigh = _interopRequireDefault(require("@atlaskit/icon/core/volume-high"));
|
|
24
24
|
var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
|
|
25
|
-
var
|
|
25
|
+
var _reactIntl = require("react-intl");
|
|
26
26
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
27
27
|
var _MediaButton = _interopRequireDefault(require("../../MediaButton"));
|
|
28
28
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
@@ -901,4 +901,4 @@ var _MediaPlayerBase = /*#__PURE__*/function (_Component) {
|
|
|
901
901
|
}
|
|
902
902
|
}]);
|
|
903
903
|
}(_react.Component);
|
|
904
|
-
var MediaPlayerBase = exports.MediaPlayerBase = (0,
|
|
904
|
+
var MediaPlayerBase = exports.MediaPlayerBase = (0, _reactIntl.injectIntl)(_MediaPlayerBase);
|
|
@@ -12,7 +12,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
14
14
|
var _captions = require("./captions");
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
17
17
|
var _analytics = require("../analytics");
|
|
18
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
@@ -41,7 +41,7 @@ var useTextTracks = exports.useTextTracks = function useTextTracks(_ref) {
|
|
|
41
41
|
var mediaClient = (0, _mediaClientReact.useMediaClient)();
|
|
42
42
|
var captionsObjectURLsStatus = (0, _react.useRef)(new Map());
|
|
43
43
|
var captionsObjectURLs = (0, _react.useRef)(new Map());
|
|
44
|
-
var intl = (0,
|
|
44
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
45
45
|
var _ref2 = (0, _mediaClientReact.useMediaSettings)() || {},
|
|
46
46
|
mediaUserPreferences = _ref2.mediaUserPreferences;
|
|
47
47
|
var _useState = (0, _react.useState)([]),
|
|
@@ -14,7 +14,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _select = require("@atlaskit/select");
|
|
17
|
-
var
|
|
17
|
+
var _reactIntl = require("react-intl");
|
|
18
18
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
19
19
|
var _MediaButton = _interopRequireDefault(require("../MediaButton"));
|
|
20
20
|
var _messages = require("../messages");
|
|
@@ -45,7 +45,7 @@ var PlaybackSpeedControls = exports.PlaybackSpeedControls = /*#__PURE__*/functio
|
|
|
45
45
|
(0, _defineProperty2.default)(_this, "speedOptions", function () {
|
|
46
46
|
return [{
|
|
47
47
|
// @ts-ignore: FormattedMessage is returning an Element which is a type mismatch with what OptionType wants. This can be fix by using 'intl' object once this packages gets refactor later.
|
|
48
|
-
label: /*#__PURE__*/_react.default.createElement(
|
|
48
|
+
label: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.playbackSpeed),
|
|
49
49
|
options: [{
|
|
50
50
|
label: '0.75x',
|
|
51
51
|
value: 0.75
|
|
@@ -127,4 +127,4 @@ var PlaybackSpeedControls = exports.PlaybackSpeedControls = /*#__PURE__*/functio
|
|
|
127
127
|
}
|
|
128
128
|
}]);
|
|
129
129
|
}(_react.Component);
|
|
130
|
-
var _default = exports.default = (0,
|
|
130
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(PlaybackSpeedControls);
|
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _styledCompiled = require("./styled-compiled");
|
|
17
17
|
var _formatDuration = require("../formatDuration");
|
|
18
|
-
var
|
|
18
|
+
var _reactIntl = require("react-intl");
|
|
19
19
|
var _messages = require("../messages");
|
|
20
20
|
var _styled = require("./styled");
|
|
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); }
|
|
@@ -272,4 +272,4 @@ var TimeRangeBase = exports.TimeRangeBase = /*#__PURE__*/function (_Component) {
|
|
|
272
272
|
disableThumbTooltip: false,
|
|
273
273
|
isAlwaysActive: false
|
|
274
274
|
});
|
|
275
|
-
var TimeRange = exports.TimeRange = (0,
|
|
275
|
+
var TimeRange = exports.TimeRange = (0, _reactIntl.injectIntl)(TimeRangeBase);
|
package/dist/cjs/messages.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
click_to_join: {
|
|
10
10
|
id: 'fabric.media.click_to_join',
|
|
11
11
|
defaultMessage: 'Join {context}',
|
|
@@ -49,7 +49,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
49
49
|
retry: {
|
|
50
50
|
id: 'fabric.media.retry',
|
|
51
51
|
defaultMessage: 'Retry',
|
|
52
|
-
description: '
|
|
52
|
+
description: 'The text is shown on a button in the media UI when an action has failed and the user can attempt it again, such as retrying a failed upload or file load.'
|
|
53
53
|
},
|
|
54
54
|
failed_to_load: {
|
|
55
55
|
id: 'fabric.media.failed_to_load',
|
|
@@ -94,27 +94,27 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
94
94
|
upload: {
|
|
95
95
|
id: 'fabric.media.upload',
|
|
96
96
|
defaultMessage: 'Upload',
|
|
97
|
-
description: 'upload'
|
|
97
|
+
description: 'The text is shown on a button in the media UI that initiates the upload of a selected file to the server.'
|
|
98
98
|
},
|
|
99
99
|
cancel: {
|
|
100
100
|
id: 'fabric.media.cancel',
|
|
101
101
|
defaultMessage: 'Cancel',
|
|
102
|
-
description: '
|
|
102
|
+
description: 'The text is shown on a button in the media UI that cancels the current operation, such as an in-progress upload or file selection.'
|
|
103
103
|
},
|
|
104
104
|
delete: {
|
|
105
105
|
id: 'fabric.media.delete',
|
|
106
106
|
defaultMessage: 'Delete',
|
|
107
|
-
description: '
|
|
107
|
+
description: 'The text is shown on a button in the media UI that permanently deletes the selected media file.'
|
|
108
108
|
},
|
|
109
109
|
success: {
|
|
110
110
|
id: 'fabric.media.success',
|
|
111
111
|
defaultMessage: 'Success',
|
|
112
|
-
description: '
|
|
112
|
+
description: 'The text is shown as a status indicator in the media UI when an operation, such as uploading or saving a file, has completed successfully.'
|
|
113
113
|
},
|
|
114
114
|
error: {
|
|
115
115
|
id: 'fabric.media.error',
|
|
116
116
|
defaultMessage: 'Error',
|
|
117
|
-
description: 'error'
|
|
117
|
+
description: 'The text is shown as a status indicator in the media UI when an operation has encountered an error, such as a failed upload or file load.'
|
|
118
118
|
},
|
|
119
119
|
search_all_gifs: {
|
|
120
120
|
id: 'fabric.media.search_all_gifs',
|
|
@@ -139,7 +139,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
139
139
|
try_again: {
|
|
140
140
|
id: 'fabric.media.try_again',
|
|
141
141
|
defaultMessage: 'Try again',
|
|
142
|
-
description: '
|
|
142
|
+
description: 'The text is shown on a button in the media UI when a previous action has failed and the user is prompted to attempt it again, such as retrying a failed file preview or upload.'
|
|
143
143
|
},
|
|
144
144
|
try_another_account: {
|
|
145
145
|
id: 'fabric.media.try_another_account',
|
|
@@ -159,12 +159,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
159
159
|
load_more_gifs: {
|
|
160
160
|
id: 'fabric.media.load_more_gifs',
|
|
161
161
|
defaultMessage: 'Load more GIFs',
|
|
162
|
-
description: '
|
|
162
|
+
description: 'The text is shown on a button in the media GIF picker that loads the next page of GIF search results when clicked.'
|
|
163
163
|
},
|
|
164
164
|
add_account: {
|
|
165
165
|
id: 'fabric.media.add_account',
|
|
166
166
|
defaultMessage: 'Add account',
|
|
167
|
-
description: '
|
|
167
|
+
description: 'The text is shown on a button in the media file picker that allows the user to connect an additional cloud storage account (e.g. Google Drive, Dropbox) as a media source.'
|
|
168
168
|
},
|
|
169
169
|
unlink_account: {
|
|
170
170
|
id: 'fabric.media.unlink_account',
|
|
@@ -249,17 +249,17 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
249
249
|
loading_file: {
|
|
250
250
|
id: 'fabric.media.loading_file',
|
|
251
251
|
defaultMessage: 'Loading file...',
|
|
252
|
-
description: '
|
|
252
|
+
description: 'The text is shown as a loading indicator on a media card while the file is being fetched from the server and is not yet ready to display.'
|
|
253
253
|
},
|
|
254
254
|
save: {
|
|
255
255
|
id: 'fabric.media.save',
|
|
256
256
|
defaultMessage: 'Save',
|
|
257
|
-
description: '
|
|
257
|
+
description: 'The text is shown on a primary action button in the media editor or settings panel that saves the current changes made by the user.'
|
|
258
258
|
},
|
|
259
259
|
or: {
|
|
260
260
|
id: 'fabric.media.or',
|
|
261
261
|
defaultMessage: 'or',
|
|
262
|
-
description: '
|
|
262
|
+
description: 'The text is shown as a conjunction between two alternative upload options in the media picker, separating options such as drag-and-drop and file browsing.'
|
|
263
263
|
},
|
|
264
264
|
upload_photo: {
|
|
265
265
|
id: 'fabric.media.upload_photo',
|
|
@@ -269,7 +269,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
269
269
|
default_avatars: {
|
|
270
270
|
id: 'fabric.media.default_avatars',
|
|
271
271
|
defaultMessage: 'Default avatars',
|
|
272
|
-
description: '
|
|
272
|
+
description: 'The text is shown as a section heading above the list of pre-built default avatars that users can choose from in the avatar selection UI.'
|
|
273
273
|
},
|
|
274
274
|
avatar_picker_back_btn_label: {
|
|
275
275
|
id: 'fabric.media.avatar_picker_back_btn_label',
|
|
@@ -284,12 +284,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
284
284
|
alt_text: {
|
|
285
285
|
id: 'fabric.media.alt_text_label',
|
|
286
286
|
defaultMessage: 'Alt text',
|
|
287
|
-
description: '
|
|
287
|
+
description: 'The text is shown as the label above the alt text input field in the media editor, prompting the user to enter a text description for the selected image for accessibility purposes.'
|
|
288
288
|
},
|
|
289
289
|
alt_text_description: {
|
|
290
290
|
id: 'fabric.media.alt_text_helper_message',
|
|
291
291
|
defaultMessage: 'How would you describe the selected image to someone with low vision?',
|
|
292
|
-
description: '
|
|
292
|
+
description: 'The text is shown as helper text below the alt text input field in the media editor, guiding users to write a description of the image for people with visual impairments.'
|
|
293
293
|
},
|
|
294
294
|
image_url_invalid_error: {
|
|
295
295
|
id: 'fabric.media.image_url_invalid_error',
|
|
@@ -299,12 +299,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
299
299
|
image_format_invalid_error: {
|
|
300
300
|
id: 'fabric.media.image_format_invalid_error',
|
|
301
301
|
defaultMessage: 'Could not load image, the format is invalid.',
|
|
302
|
-
description: 'The
|
|
302
|
+
description: 'The text is shown as an error message in the media image editor when the uploaded image file has an unsupported or invalid format and cannot be loaded.'
|
|
303
303
|
},
|
|
304
304
|
image_size_too_large_error: {
|
|
305
305
|
id: 'fabric.media.image_size_too_large_error',
|
|
306
306
|
defaultMessage: 'Image is too large, must be no larger than {MAX_SIZE_MB}Mb',
|
|
307
|
-
description: 'The
|
|
307
|
+
description: 'The text is shown as an error message in the media image editor when the uploaded image exceeds the maximum allowed file size. The placeholder {MAX_SIZE_MB} will be substituted with the maximum allowed size in megabytes.'
|
|
308
308
|
},
|
|
309
309
|
something_went_wrong: {
|
|
310
310
|
id: 'fabric.media.something_went_wrong',
|
|
@@ -359,12 +359,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
359
359
|
password: {
|
|
360
360
|
id: 'fabric.media.password',
|
|
361
361
|
defaultMessage: 'Password',
|
|
362
|
-
description: '
|
|
362
|
+
description: 'The text is shown as the label for the password input field in the media file access form, indicating that the user must enter a password to access the protected file.'
|
|
363
363
|
},
|
|
364
364
|
enter_password: {
|
|
365
365
|
id: 'fabric.media.enter_password',
|
|
366
366
|
defaultMessage: 'Enter password',
|
|
367
|
-
description: '
|
|
367
|
+
description: 'The text is shown as the placeholder hint inside the password input field in the media file access form, prompting the user to type in the password required to open the file.'
|
|
368
368
|
},
|
|
369
369
|
incorrect_password: {
|
|
370
370
|
id: 'fabric.media.incorrect_password',
|
|
@@ -514,17 +514,17 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
514
514
|
zoom_out: {
|
|
515
515
|
id: 'fabric.media.zoom_out',
|
|
516
516
|
defaultMessage: 'zoom out',
|
|
517
|
-
description: '
|
|
517
|
+
description: 'The text is shown as the accessible label for the zoom-out button in the media viewer toolbar, allowing the user to decrease the zoom level of the currently displayed file.'
|
|
518
518
|
},
|
|
519
519
|
zoom_in: {
|
|
520
520
|
id: 'fabric.media.zoom_in',
|
|
521
521
|
defaultMessage: 'zoom in',
|
|
522
|
-
description: '
|
|
522
|
+
description: 'The text is shown as the accessible label for the zoom-in button in the media viewer toolbar, allowing the user to increase the zoom level of the currently displayed file.'
|
|
523
523
|
},
|
|
524
524
|
remove_image: {
|
|
525
525
|
id: 'fabric.media.remove_image',
|
|
526
526
|
defaultMessage: 'Remove image',
|
|
527
|
-
description: '
|
|
527
|
+
description: 'The text is shown on a button in the media image editor or avatar picker that removes the currently selected or uploaded image, clearing the selection.'
|
|
528
528
|
},
|
|
529
529
|
play: {
|
|
530
530
|
id: 'fabric.media.play',
|
|
@@ -609,7 +609,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
609
609
|
displayThumbnail: {
|
|
610
610
|
id: 'fabric.media.display_thumbnail',
|
|
611
611
|
defaultMessage: 'Display thumbnail',
|
|
612
|
-
description: '
|
|
612
|
+
description: 'The text is shown as a label for the thumbnail display option in the media viewer settings, allowing the user to switch the file view to a thumbnail representation.'
|
|
613
613
|
},
|
|
614
614
|
search: {
|
|
615
615
|
id: 'fabric.media.search',
|
|
@@ -749,32 +749,32 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
749
749
|
preview_unavailable: {
|
|
750
750
|
id: 'fabric.media.preview_unavailable',
|
|
751
751
|
defaultMessage: 'Preview unavailable',
|
|
752
|
-
description: '
|
|
752
|
+
description: 'The text is shown on a media card when a preview of the file cannot be generated or displayed, indicating to the user that no visual preview is available for this file.'
|
|
753
753
|
},
|
|
754
754
|
couldnt_load_file: {
|
|
755
755
|
id: 'fabric.media.couldnt_load_file',
|
|
756
756
|
defaultMessage: "We couldn't load the file.",
|
|
757
|
-
description: '
|
|
757
|
+
description: 'The text is shown on a media card as an error message when the file cannot be loaded because the request has been rate limited and no file metadata is available.'
|
|
758
758
|
},
|
|
759
759
|
error_429: {
|
|
760
760
|
id: 'fabric.media.error_429',
|
|
761
761
|
defaultMessage: 'Error 429',
|
|
762
|
-
description: '
|
|
762
|
+
description: 'The text is shown as the error code label on a media card or viewer when an HTTP 429 Too Many Requests error occurs, indicating the user has been rate limited.'
|
|
763
763
|
},
|
|
764
764
|
close_and_reopen: {
|
|
765
765
|
id: 'fabric.media.close_and_reopen',
|
|
766
766
|
defaultMessage: 'Try closing this file and reopening.',
|
|
767
|
-
description: 'The preview is rate limited'
|
|
767
|
+
description: 'The text is shown as an instructional message on a media card or viewer when the file preview is rate limited, guiding the user to close and reopen the file to try again.'
|
|
768
768
|
},
|
|
769
769
|
viewer_rateLimited: {
|
|
770
770
|
id: 'fabric.media.viewer_rateLimited',
|
|
771
771
|
defaultMessage: "We're having difficulties loading your file.",
|
|
772
|
-
description: '
|
|
772
|
+
description: 'The text is shown in the media viewer when the viewer has been rate limited and cannot display the file. This message is composed from other sibling messages (error code, instructional text).'
|
|
773
773
|
},
|
|
774
774
|
zip_entry_load_fail: {
|
|
775
775
|
id: 'fabric.media.zip_entry_load_failed',
|
|
776
776
|
defaultMessage: "We couldn't load that zip file item to preview",
|
|
777
|
-
description: '
|
|
777
|
+
description: 'The text is shown in the media viewer when a specific entry (file) inside a ZIP archive fails to load or cannot be displayed.'
|
|
778
778
|
},
|
|
779
779
|
file_image_is_selected: {
|
|
780
780
|
id: 'fabric.media.file_is_selected',
|
|
@@ -819,22 +819,22 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
819
819
|
video_seeker_label_assistive_text: {
|
|
820
820
|
id: 'fabric.media.video_seeker_label_assistive_text',
|
|
821
821
|
defaultMessage: 'Seek slider',
|
|
822
|
-
description: '
|
|
822
|
+
description: 'The text is shown as the accessible aria-label for the seek slider control in the media video player, allowing users relying on assistive technology to understand this control adjusts the video playback position.'
|
|
823
823
|
},
|
|
824
824
|
abuse_modal_body: {
|
|
825
825
|
id: 'fabric.media.abuse_modal_body',
|
|
826
826
|
defaultMessage: 'For your security, our system automatically scans all uploaded files. The file you are about to download potentially contains malicious content',
|
|
827
|
-
description: '
|
|
827
|
+
description: 'The text is shown as the body content of a warning modal that appears before a user downloads a file flagged as potentially malicious by an automated security scan.'
|
|
828
828
|
},
|
|
829
829
|
abuse_modal_title: {
|
|
830
830
|
id: 'fabric.media.abuse_modal_title',
|
|
831
831
|
defaultMessage: 'Warning',
|
|
832
|
-
description: '
|
|
832
|
+
description: 'The text is shown as the heading of the warning modal that appears before a user downloads a file flagged as potentially malicious by the automated security system.'
|
|
833
833
|
},
|
|
834
834
|
abuse_modal_submit: {
|
|
835
835
|
id: 'fabric.media.abuse_modal_submit',
|
|
836
836
|
defaultMessage: 'Proceed with download',
|
|
837
|
-
description: '
|
|
837
|
+
description: 'The text is shown on the confirm button in the security warning modal, allowing the user to proceed with downloading a file that has been flagged as potentially malicious.'
|
|
838
838
|
},
|
|
839
839
|
image_cropper_arrow_keys_label: {
|
|
840
840
|
id: 'media.media-avatar-picker.image-cropper.arrow-keys.label',
|
|
@@ -869,12 +869,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
869
869
|
svg_base_alt: {
|
|
870
870
|
id: 'media.media-viewer.base-svg.alt',
|
|
871
871
|
defaultMessage: 'Svg Image',
|
|
872
|
-
description: '
|
|
872
|
+
description: 'The text is shown as the alt attribute for the SVG image element in the media viewer, providing an accessible text description for screen reader users.'
|
|
873
873
|
},
|
|
874
874
|
svg_image_preview_label_assistive_text: {
|
|
875
875
|
id: 'media.media-viewer.svg-wrapper.label_assistive_text',
|
|
876
876
|
defaultMessage: 'Close Image Preview',
|
|
877
|
-
description: '
|
|
877
|
+
description: 'The text is shown as the aria-label for the interactive SVG image wrapper in the media viewer, indicating to assistive technology users that clicking it closes the image preview.'
|
|
878
878
|
},
|
|
879
879
|
archive_download_label_assistive_text: {
|
|
880
880
|
id: 'media.media-viewer.archive-sidebar.wrapper.label_assistive_text',
|
|
@@ -884,6 +884,6 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
884
884
|
media_card_wrapper_label_assistive_text: {
|
|
885
885
|
id: 'media.media-card.wrapper.label_assistive_text',
|
|
886
886
|
defaultMessage: 'Media file card',
|
|
887
|
-
description: '
|
|
887
|
+
description: 'The text is shown as the aria-label for the media file card wrapper element, providing an accessible name that identifies this component as a media file card to screen reader users.'
|
|
888
888
|
}
|
|
889
889
|
});
|
|
@@ -8,13 +8,13 @@ exports.shallowWithIntlContext = exports.mountWithIntlWrapper = exports.mountWit
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
12
|
var _enzyme = require("enzyme");
|
|
13
13
|
var _excluded = ["context", "childContextTypes"],
|
|
14
14
|
_excluded2 = ["context"]; // eslint-disable-next-line import/no-extraneous-dependencies
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
-
var mockIntl = (0,
|
|
17
|
+
var mockIntl = (0, _reactIntl.createIntl)({
|
|
18
18
|
locale: 'en'
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ var mockIntl = (0, _reactIntlNext.createIntl)({
|
|
|
23
23
|
*/
|
|
24
24
|
function nodeWithIntlProp(node) {
|
|
25
25
|
var intl = !!node.props.intl ? node.props.intl : mockIntl;
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.RawIntlProvider, {
|
|
27
27
|
value: intl
|
|
28
28
|
}, /*#__PURE__*/_react.default.cloneElement(node, {
|
|
29
29
|
intl: intl
|
|
@@ -63,7 +63,7 @@ var shallowWithIntlContext = exports.shallowWithIntlContext = function shallowWi
|
|
|
63
63
|
};
|
|
64
64
|
var mountWithIntlWrapper = exports.mountWithIntlWrapper = function mountWithIntlWrapper(node) {
|
|
65
65
|
return (0, _enzyme.mount)( /*#__PURE__*/_react.default.createElement(function (props) {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
67
67
|
locale: "en"
|
|
68
68
|
}, /*#__PURE__*/_react.default.cloneElement(node, _objectSpread({}, props)));
|
|
69
69
|
}));
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.renderWithIntl = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _react2 = require("@testing-library/react");
|
|
11
11
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
12
12
|
|
|
13
13
|
var renderWithIntl = exports.renderWithIntl = function renderWithIntl(component) {
|
|
14
|
-
return (0, _react2.render)( /*#__PURE__*/_react.default.createElement(
|
|
14
|
+
return (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
15
15
|
locale: "en"
|
|
16
16
|
}, component));
|
|
17
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
5
|
import { messages } from '../messages';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { CustomMediaPlayerBase as CompiledCustomMediaPlayerBase } from './index-compiled';
|
|
5
5
|
import { withMediaAnalyticsContext } from '@atlaskit/media-common';
|
|
6
6
|
export const CustomMediaPlayerBase = props => /*#__PURE__*/React.createElement(CompiledCustomMediaPlayerBase, props);
|
|
7
7
|
const packageName = "@atlaskit/media-ui";
|
|
8
|
-
const packageVersion = "
|
|
8
|
+
const packageVersion = "0.0.0-development";
|
|
9
9
|
|
|
10
10
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
11
11
|
export const CustomMediaPlayer = withMediaAnalyticsContext({
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { AutoDismissFlag, FlagGroup } from '@atlaskit/flag';
|
|
3
3
|
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
4
4
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
5
|
-
import { injectIntl } from 'react-intl
|
|
5
|
+
import { injectIntl } from 'react-intl';
|
|
6
6
|
import { messages } from '../../../messages';
|
|
7
7
|
function ApiFeedback({
|
|
8
8
|
notificationType,
|
package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import Modal, { ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
5
|
import LocaleSelect from '@atlaskit/locale/LocaleSelect';
|