@atlaskit/media-ui 28.7.41 → 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.
Files changed (79) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/abuseModal/abuseModal.js +2 -2
  3. package/dist/cjs/customMediaPlayer/index.js +2 -2
  4. package/dist/cjs/customMediaPlayer/mediaPlayer/captions/apiFeedback.js +2 -2
  5. package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +5 -5
  6. package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +9 -8
  7. package/dist/cjs/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +2 -2
  8. package/dist/cjs/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +2 -2
  9. package/dist/cjs/customMediaPlayer/mediaPlayer/captionsAdminControls.js +2 -2
  10. package/dist/cjs/customMediaPlayer/mediaPlayer/captionsSelectControls.js +2 -2
  11. package/dist/cjs/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +2 -2
  12. package/dist/cjs/customMediaPlayer/mediaPlayer/useTextTracks.js +2 -2
  13. package/dist/cjs/customMediaPlayer/playbackSpeedControls.js +3 -3
  14. package/dist/cjs/customMediaPlayer/timeRange.js +2 -2
  15. package/dist/cjs/messages.js +38 -38
  16. package/dist/cjs/test-helpers/mountWithIntlContext.js +4 -4
  17. package/dist/cjs/test-helpers/renderWithIntl.js +2 -2
  18. package/dist/es2019/abuseModal/abuseModal.js +1 -1
  19. package/dist/es2019/customMediaPlayer/index.js +1 -1
  20. package/dist/es2019/customMediaPlayer/mediaPlayer/captions/apiFeedback.js +1 -1
  21. package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +3 -3
  22. package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +3 -2
  23. package/dist/es2019/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +1 -1
  24. package/dist/es2019/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +1 -1
  25. package/dist/es2019/customMediaPlayer/mediaPlayer/captionsAdminControls.js +1 -1
  26. package/dist/es2019/customMediaPlayer/mediaPlayer/captionsSelectControls.js +1 -1
  27. package/dist/es2019/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +1 -1
  28. package/dist/es2019/customMediaPlayer/mediaPlayer/useTextTracks.js +1 -1
  29. package/dist/es2019/customMediaPlayer/playbackSpeedControls.js +1 -1
  30. package/dist/es2019/customMediaPlayer/timeRange.js +1 -1
  31. package/dist/es2019/messages.js +37 -37
  32. package/dist/es2019/test-helpers/mountWithIntlContext.js +1 -1
  33. package/dist/es2019/test-helpers/renderWithIntl.js +1 -1
  34. package/dist/esm/abuseModal/abuseModal.js +1 -1
  35. package/dist/esm/customMediaPlayer/index.js +1 -1
  36. package/dist/esm/customMediaPlayer/mediaPlayer/captions/apiFeedback.js +1 -1
  37. package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/languageDetector.js +3 -3
  38. package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.js +3 -2
  39. package/dist/esm/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.js +1 -1
  40. package/dist/esm/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.js +1 -1
  41. package/dist/esm/customMediaPlayer/mediaPlayer/captionsAdminControls.js +1 -1
  42. package/dist/esm/customMediaPlayer/mediaPlayer/captionsSelectControls.js +1 -1
  43. package/dist/esm/customMediaPlayer/mediaPlayer/mediaPlayerBase.js +1 -1
  44. package/dist/esm/customMediaPlayer/mediaPlayer/useTextTracks.js +1 -1
  45. package/dist/esm/customMediaPlayer/playbackSpeedControls.js +1 -1
  46. package/dist/esm/customMediaPlayer/timeRange.js +1 -1
  47. package/dist/esm/messages.js +37 -37
  48. package/dist/esm/test-helpers/mountWithIntlContext.js +1 -1
  49. package/dist/esm/test-helpers/renderWithIntl.js +1 -1
  50. package/dist/types/abuseModal/abuseModal.d.ts +1 -1
  51. package/dist/types/customMediaPlayer/index-compiled.d.ts +1 -1
  52. package/dist/types/customMediaPlayer/index.d.ts +1 -1
  53. package/dist/types/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +1 -1
  54. package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +1 -1
  55. package/dist/types/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +1 -1
  56. package/dist/types/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +1 -1
  57. package/dist/types/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +1 -1
  58. package/dist/types/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +1 -1
  59. package/dist/types/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +2 -2
  60. package/dist/types/customMediaPlayer/playbackSpeedControls.d.ts +1 -1
  61. package/dist/types/customMediaPlayer/timeRange.d.ts +1 -1
  62. package/dist/types/messages.d.ts +1 -1
  63. package/dist/types/test-helpers/mountWithIntlContext.d.ts +1 -1
  64. package/dist/types-ts4.5/abuseModal/abuseModal.d.ts +1 -1
  65. package/dist/types-ts4.5/customMediaPlayer/index-compiled.d.ts +1 -1
  66. package/dist/types-ts4.5/customMediaPlayer/index.d.ts +1 -1
  67. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/apiFeedback.d.ts +1 -1
  68. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captions/uploadForm.d.ts +1 -1
  69. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/artifactUploader/captionsUploaderBrowser.d.ts +1 -1
  70. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captions/captionDeleteConfirmationModal.d.ts +1 -1
  71. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsAdminControls.d.ts +1 -1
  72. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/captionsSelectControls.d.ts +1 -1
  73. package/dist/types-ts4.5/customMediaPlayer/mediaPlayer/mediaPlayerBase.d.ts +2 -2
  74. package/dist/types-ts4.5/customMediaPlayer/playbackSpeedControls.d.ts +1 -1
  75. package/dist/types-ts4.5/customMediaPlayer/timeRange.d.ts +1 -1
  76. package/dist/types-ts4.5/messages.d.ts +1 -1
  77. package/dist/types-ts4.5/test-helpers/mountWithIntlContext.d.ts +1 -1
  78. package/package.json +10 -10
  79. package/report.api.md +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
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
+
22
+ ## 28.7.42
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 28.7.41
4
29
 
5
30
  ### 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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(function (_ref) {
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 _reactIntlNext = require("react-intl-next");
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");
@@ -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, _reactIntlNext.injectIntl)(CustomMediaPlayerBase)));
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(ApiFeedback);
50
+ var _default_1 = (0, _reactIntl.injectIntl)(ApiFeedback);
51
51
  var _default = exports.default = _default_1;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.detectLanguage = void 0;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _LocaleSelect = require("@atlaskit/locale/LocaleSelect");
10
+ var _defaultLocales = _interopRequireDefault(require("@atlaskit/locale/default-locales"));
11
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
12
12
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -29,7 +29,7 @@ var detectVtt = function detectVtt(file, _content) {
29
29
  try {
30
30
  var _loop = function _loop() {
31
31
  var section = _step.value;
32
- var detected = _LocaleSelect.defaultLocales.find(function (locale) {
32
+ var detected = _defaultLocales.default.find(function (locale) {
33
33
  return normalize(section) === normalize(locale.value);
34
34
  });
35
35
  if (detected) {
@@ -54,7 +54,7 @@ var detectVtt = function detectVtt(file, _content) {
54
54
  try {
55
55
  var _loop2 = function _loop2() {
56
56
  var section = _step2.value;
57
- var detected = _LocaleSelect.defaultLocales.find(function (locale) {
57
+ var detected = _defaultLocales.default.find(function (locale) {
58
58
  return normalizeNoRegion(section) === normalizeNoRegion(locale.value);
59
59
  });
60
60
  if (detected) {
@@ -70,9 +70,9 @@ var detectVtt = function detectVtt(file, _content) {
70
70
  }
71
71
 
72
72
  // Section results in a valid Intl.Locale
73
- /*
73
+ /*
74
74
  new Intl.Locale is quite permisive with its input.
75
- It allows several text that do not really represent a locale. This is why we prioritize the previous checks
75
+ It allows several text that do not really represent a locale. This is why we prioritize the previous checks
76
76
  */
77
77
  } catch (err) {
78
78
  _iterator2.e(err);
@@ -11,10 +11,11 @@ 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 _reactIntlNext = require("react-intl-next");
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
- var _LocaleSelect = _interopRequireWildcard(require("@atlaskit/locale/LocaleSelect"));
17
+ var _LocaleSelect = _interopRequireDefault(require("@atlaskit/locale/LocaleSelect"));
18
+ var _defaultLocales = _interopRequireDefault(require("@atlaskit/locale/default-locales"));
18
19
  var _compiled = require("@atlaskit/primitives/compiled");
19
20
  var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
20
21
  var _form = require("@atlaskit/form");
@@ -39,7 +40,7 @@ var detectLocale = /*#__PURE__*/function () {
39
40
  _context.next = 9;
40
41
  break;
41
42
  }
42
- defaultLocale = _LocaleSelect.defaultLocales.find(function (l) {
43
+ defaultLocale = _defaultLocales.default.find(function (l) {
43
44
  return l.value === detectedLocale;
44
45
  });
45
46
  if (!defaultLocale) {
@@ -48,18 +49,18 @@ var detectLocale = /*#__PURE__*/function () {
48
49
  }
49
50
  return _context.abrupt("return", {
50
51
  selectedLocale: defaultLocale,
51
- locales: _LocaleSelect.defaultLocales
52
+ locales: _defaultLocales.default
52
53
  });
53
54
  case 7:
54
55
  customLocale = customLocaleOption(intl, detectedLocale);
55
56
  return _context.abrupt("return", {
56
57
  selectedLocale: customLocale,
57
- locales: [].concat((0, _toConsumableArray2.default)(_LocaleSelect.defaultLocales), [customLocale])
58
+ locales: [].concat((0, _toConsumableArray2.default)(_defaultLocales.default), [customLocale])
58
59
  });
59
60
  case 9:
60
61
  return _context.abrupt("return", {
61
- selectedLocale: _LocaleSelect.defaultLocales[0],
62
- locales: _LocaleSelect.defaultLocales
62
+ selectedLocale: _defaultLocales.default[0],
63
+ locales: _defaultLocales.default
63
64
  });
64
65
  case 10:
65
66
  case "end":
@@ -174,5 +175,5 @@ function UploadCaptionsForm(_ref2) {
174
175
  onClick: submit
175
176
  }, intl.formatMessage(_messages.messages.upload)))));
176
177
  }
177
- var _default_1 = (0, _reactIntlNext.injectIntl)(UploadCaptionsForm);
178
+ var _default_1 = (0, _reactIntl.injectIntl)(UploadCaptionsForm);
178
179
  var _default = exports.default = _default_1;
@@ -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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(CaptionsUploaderBrowser);
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(CaptionDeleteConfirmationModal);
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(_CaptionsAdminControls);
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(CaptionsSelectControlsWithIntl);
98
+ var CaptionsSelectControls = exports.CaptionsSelectControls = (0, _reactIntl.injectIntl)(CaptionsSelectControlsWithIntl);
@@ -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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(_MediaPlayerBase);
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.useIntl)();
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 _reactIntlNext = require("react-intl-next");
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(_reactIntlNext.FormattedMessage, _messages.messages.playbackSpeed),
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, _reactIntlNext.injectIntl)(PlaybackSpeedControls);
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.injectIntl)(TimeRangeBase);
275
+ var TimeRange = exports.TimeRange = (0, _reactIntl.injectIntl)(TimeRangeBase);
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
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: 'Allows user to perform an action again'
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: 'cancel'
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: 'delete'
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: 'success'
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: 'Allow the user to try an action again'
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: 'Used to load next page of GIF images'
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: 'Allows to add a new account'
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: 'Shown when a file is being fetched'
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: 'Just the "save" word'
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: 'Just the "or" word'
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: 'Showed above the default avatar list'
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: 'Shown above the alt text field'
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: 'Shown below the alt text field'
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 provided image format is not valid'
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 provided image size is too big'
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: 'Description of Password text field.'
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: 'Prompting user to enter the password.'
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: 'Indicates the user can zoom out a file'
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: 'Indicates the user can zoom in a file'
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: 'Allows the user to remove a file'
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: 'Display file with as a thumbnail.'
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: 'Preview is unavailable for a media card'
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: 'File is rate limited without metadata'
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: 'Error 429 is thrown'
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: 'Mediaviewer has been rate limited'
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: 'Zip entry failed to load'
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: 'Video time seek slider aria-label'
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: 'Abuse Modal Body Message'
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: 'Abuse Modal Title'
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: 'Abuse Modal Submit button caption'
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: 'Alt text for the Svg image placer'
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: 'Aria-label for SVG image wrapper'
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: 'Aria-label for media card wrapper'
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 _reactIntlNext = require("react-intl-next");
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, _reactIntlNext.createIntl)({
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(_reactIntlNext.RawIntlProvider, {
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(_reactIntlNext.IntlProvider, {
66
+ return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
67
67
  locale: "en"
68
68
  }, /*#__PURE__*/_react.default.cloneElement(node, _objectSpread({}, props)));
69
69
  }));