@atlaskit/media-avatar-picker 26.4.13 → 27.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 (41) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/avatar-list/index.js +2 -2
  3. package/dist/cjs/avatar-picker-dialog/SRLiveTitle.js +2 -2
  4. package/dist/cjs/avatar-picker-dialog/SubmitErrorDialog.js +2 -2
  5. package/dist/cjs/avatar-picker-dialog/index.js +8 -8
  6. package/dist/cjs/image-cropper/index.js +2 -2
  7. package/dist/cjs/image-navigator/index.js +4 -4
  8. package/dist/cjs/image-navigator/slider.js +2 -2
  9. package/dist/cjs/image-placer/imageWrapper.js +2 -2
  10. package/dist/cjs/predefined-avatar-list/index.js +2 -2
  11. package/dist/cjs/predefined-avatar-view/index.js +3 -3
  12. package/dist/es2019/avatar-list/index.js +1 -1
  13. package/dist/es2019/avatar-picker-dialog/SRLiveTitle.js +1 -1
  14. package/dist/es2019/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
  15. package/dist/es2019/avatar-picker-dialog/index.js +1 -1
  16. package/dist/es2019/image-cropper/index.js +1 -1
  17. package/dist/es2019/image-navigator/index.js +1 -1
  18. package/dist/es2019/image-navigator/slider.js +1 -1
  19. package/dist/es2019/image-placer/imageWrapper.js +1 -1
  20. package/dist/es2019/predefined-avatar-list/index.js +1 -1
  21. package/dist/es2019/predefined-avatar-view/index.js +1 -1
  22. package/dist/esm/avatar-list/index.js +1 -1
  23. package/dist/esm/avatar-picker-dialog/SRLiveTitle.js +1 -1
  24. package/dist/esm/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
  25. package/dist/esm/avatar-picker-dialog/index.js +1 -1
  26. package/dist/esm/image-cropper/index.js +1 -1
  27. package/dist/esm/image-navigator/index.js +1 -1
  28. package/dist/esm/image-navigator/slider.js +1 -1
  29. package/dist/esm/image-placer/imageWrapper.js +1 -1
  30. package/dist/esm/predefined-avatar-list/index.js +1 -1
  31. package/dist/esm/predefined-avatar-view/index.js +1 -1
  32. package/dist/types/avatar-picker-dialog/index.d.ts +1 -1
  33. package/dist/types/image-cropper/index.d.ts +1 -1
  34. package/dist/types/image-navigator/index.d.ts +1 -1
  35. package/dist/types/image-navigator/slider.d.ts +1 -1
  36. package/dist/types-ts4.5/avatar-picker-dialog/index.d.ts +1 -1
  37. package/dist/types-ts4.5/image-cropper/index.d.ts +1 -1
  38. package/dist/types-ts4.5/image-navigator/index.d.ts +1 -1
  39. package/dist/types-ts4.5/image-navigator/slider.d.ts +1 -1
  40. package/package.json +6 -6
  41. package/report.api.md +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/media-avatar-picker
2
2
 
3
+ ## 27.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
  ## 26.4.13
4
23
 
5
24
  ### Patch Changes
@@ -13,7 +13,7 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
- var _reactIntlNext = require("react-intl-next");
16
+ var _reactIntl = require("react-intl");
17
17
  var _mediaUi = require("@atlaskit/media-ui");
18
18
  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); }
19
19
  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; }
@@ -30,7 +30,7 @@ var AvatarList = exports.AvatarList = function AvatarList(_ref) {
30
30
  selectedAvatar = _ref.selectedAvatar,
31
31
  onItemClick = _ref.onItemClick,
32
32
  selectAvatarLabel = _ref.selectAvatarLabel;
33
- var intl = (0, _reactIntlNext.useIntl)();
33
+ var intl = (0, _reactIntl.useIntl)();
34
34
  var _useState = (0, _react.useState)(Object.fromEntries(avatars.map(function (avatar) {
35
35
  return [avatar.dataURI, false];
36
36
  }))),
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.SRLiveTitle = 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 _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
11
11
  var _types = require("./types");
12
12
  var _mediaUi = require("@atlaskit/media-ui");
13
13
  var SRLiveTitle = exports.SRLiveTitle = function SRLiveTitle(_ref) {
14
14
  var mode = _ref.mode;
15
- var intl = (0, _reactIntlNext.useIntl)();
15
+ var intl = (0, _reactIntl.useIntl)();
16
16
  return /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, /*#__PURE__*/_react.default.createElement("div", {
17
17
  "aria-live": "polite"
18
18
  }, mode === _types.Mode.Cropping && intl.formatMessage(_mediaUi.messages.or_select_default_avatars), mode === _types.Mode.PredefinedAvatars && intl.formatMessage(_mediaUi.messages.select_an_avatar_from_all_defaults)));
@@ -14,11 +14,11 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
15
15
  var _flag = _interopRequireDefault(require("@atlaskit/flag"));
16
16
  var _mediaUi = require("@atlaskit/media-ui");
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  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); }
19
19
  var avatarPickerErrorStyles = null;
20
20
  var SubmitErrorDialog = exports.SubmitErrorDialog = function SubmitErrorDialog() {
21
- var intl = (0, _reactIntlNext.useIntl)();
21
+ var intl = (0, _reactIntl.useIntl)();
22
22
  var flagContainerRef = (0, _react.useRef)(null);
23
23
  (0, _react.useEffect)(function () {
24
24
  if (flagContainerRef.current) {
@@ -21,7 +21,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
21
21
  var _react = _interopRequireWildcard(require("react"));
22
22
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
23
23
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
24
- var _reactIntlNext = require("react-intl-next");
24
+ var _reactIntl = require("react-intl");
25
25
  var _form = require("@atlaskit/form");
26
26
  var _mediaUi = require("@atlaskit/media-ui");
27
27
  var _compiled = require("@atlaskit/primitives/compiled");
@@ -238,11 +238,11 @@ var AvatarPickerDialog = exports.AvatarPickerDialog = /*#__PURE__*/function (_Pu
238
238
  }, /*#__PURE__*/_react.default.createElement(_buttonGroup.default, null, /*#__PURE__*/_react.default.createElement(_standardButton.default, {
239
239
  appearance: "default",
240
240
  onClick: onCancel
241
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.cancel)), /*#__PURE__*/_react.default.createElement(_loadingButton.default, {
241
+ }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.cancel)), /*#__PURE__*/_react.default.createElement(_loadingButton.default, {
242
242
  appearance: "primary",
243
243
  isLoading: isLoading,
244
244
  type: "submit"
245
- }, primaryButtonText || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.save))));
245
+ }, primaryButtonText || /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.save))));
246
246
  });
247
247
  return _this;
248
248
  }
@@ -260,14 +260,14 @@ var AvatarPickerDialog = exports.AvatarPickerDialog = /*#__PURE__*/function (_Pu
260
260
  }), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
261
261
  testId: "modal-header",
262
262
  hasCloseButton: true
263
- }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, this.props.title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.upload_an_avatar))), this.state.isSubmitted && /*#__PURE__*/_react.default.createElement(_SubmitErrorDialog.SubmitErrorDialog, null), /*#__PURE__*/_react.default.createElement("form", {
263
+ }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, this.props.title || /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.upload_an_avatar))), this.state.isSubmitted && /*#__PURE__*/_react.default.createElement(_SubmitErrorDialog.SubmitErrorDialog, null), /*#__PURE__*/_react.default.createElement("form", {
264
264
  "aria-label": "form",
265
265
  onSubmit: this.onSave,
266
266
  className: (0, _runtime.ax)(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf"])
267
267
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement("div", {
268
268
  className: (0, _runtime.ax)(["_1e0c1txw _1bah1h6o _4cvr1y6m _y3gn1h6o _1tkeqbeb"])
269
269
  }, this.renderBody())), this.footerContent()));
270
- return this.props.intl ? content : /*#__PURE__*/_react.default.createElement(_reactIntlNext.IntlProvider, {
270
+ return this.props.intl ? content : /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
271
271
  locale: "en"
272
272
  }, content);
273
273
  }
@@ -363,7 +363,7 @@ var AvatarPickerDialog = exports.AvatarPickerDialog = /*#__PURE__*/function (_Pu
363
363
  }, /*#__PURE__*/_react.default.createElement(_form.Field, {
364
364
  name: "altText",
365
365
  isRequired: true,
366
- label: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.alt_text)
366
+ label: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.alt_text)
367
367
  }, function (_ref2) {
368
368
  var fieldProps = _ref2.fieldProps;
369
369
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_textfield.default, (0, _extends2.default)({}, fieldProps, {
@@ -371,7 +371,7 @@ var AvatarPickerDialog = exports.AvatarPickerDialog = /*#__PURE__*/function (_Pu
371
371
  return _this2.updateAltText(event.currentTarget.value);
372
372
  },
373
373
  value: altText || ''
374
- })), /*#__PURE__*/_react.default.createElement(_form.HelperMessage, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.alt_text_description)));
374
+ })), /*#__PURE__*/_react.default.createElement(_form.HelperMessage, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.alt_text_description)));
375
375
  }));
376
376
  }
377
377
  }, {
@@ -419,6 +419,6 @@ var AvatarPickerDialog = exports.AvatarPickerDialog = /*#__PURE__*/function (_Pu
419
419
  (0, _defineProperty2.default)(AvatarPickerDialog, "defaultProps", {
420
420
  avatars: []
421
421
  });
422
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(AvatarPickerDialog, {
422
+ var _default = exports.default = (0, _reactIntl.injectIntl)(AvatarPickerDialog, {
423
423
  enforceContext: false
424
424
  });
@@ -18,7 +18,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
19
  var _react = _interopRequireWildcard(require("react"));
20
20
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
21
- var _reactIntlNext = require("react-intl-next");
21
+ var _reactIntl = require("react-intl");
22
22
  var _mediaUi = require("@atlaskit/media-ui");
23
23
  var _isImageRemote = require("./isImageRemote");
24
24
  var _new = require("@atlaskit/button/new");
@@ -245,4 +245,4 @@ var ImageCropper = exports.ImageCropper = /*#__PURE__*/function (_Component) {
245
245
  onDragStarted: function onDragStarted() {},
246
246
  onImageSize: function onImageSize() {}
247
247
  });
248
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(ImageCropper);
248
+ var _default = exports.default = (0, _reactIntl.injectIntl)(ImageCropper);
@@ -19,7 +19,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
19
19
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
20
20
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
21
  var _react = _interopRequireWildcard(require("react"));
22
- var _reactIntlNext = require("react-intl-next");
22
+ var _reactIntl = require("react-intl");
23
23
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
24
24
  var _imageCropper = _interopRequireDefault(require("../image-cropper"));
25
25
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
@@ -359,11 +359,11 @@ var ImageNavigator = exports.ImageNavigator = /*#__PURE__*/function (_Component)
359
359
  }, this.renderDragZone(), isLoading ? null : /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", {
360
360
  id: "padded-break",
361
361
  className: (0, _runtime.ax)(["_19pk1a66 _otyru2gc _y3gn1h6o"])
362
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, errorMessage ? _mediaUi.messages.try_again : _mediaUi.messages.or)), /*#__PURE__*/_react.default.createElement(_standardButton.default, {
362
+ }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, errorMessage ? _mediaUi.messages.try_again : _mediaUi.messages.or)), /*#__PURE__*/_react.default.createElement(_standardButton.default, {
363
363
  onClick: this.onUploadButtonClick,
364
364
  isDisabled: isLoading,
365
365
  testId: "upload-button"
366
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.upload_photo), /*#__PURE__*/_react.default.createElement("input", {
366
+ }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.upload_photo), /*#__PURE__*/_react.default.createElement("input", {
367
367
  "data-testid": "image-navigator-input-file",
368
368
  type: "file",
369
369
  id: "image-input",
@@ -438,4 +438,4 @@ var ImageNavigator = exports.ImageNavigator = /*#__PURE__*/function (_Component)
438
438
  }
439
439
  }]);
440
440
  }(_react.Component);
441
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(ImageNavigator);
441
+ var _default = exports.default = (0, _reactIntl.injectIntl)(ImageNavigator);
@@ -21,7 +21,7 @@ var _range = _interopRequireDefault(require("@atlaskit/range"));
21
21
  var _mediaUi = require("@atlaskit/media-ui");
22
22
  var _image = _interopRequireDefault(require("@atlaskit/icon/core/image"));
23
23
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
24
- var _reactIntlNext = require("react-intl-next");
24
+ var _reactIntl = require("react-intl");
25
25
  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); }
26
26
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
27
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -79,5 +79,5 @@ var Slider = exports.Slider = /*#__PURE__*/function (_Component) {
79
79
  }]);
80
80
  }(_react.Component);
81
81
  (0, _defineProperty2.default)(Slider, "defaultProps", defaultProps);
82
- var _default_1 = (0, _reactIntlNext.injectIntl)(Slider);
82
+ var _default_1 = (0, _reactIntl.injectIntl)(Slider);
83
83
  var _default = exports.default = _default_1;
@@ -12,7 +12,7 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
- var _reactIntlNext = require("react-intl-next");
15
+ var _reactIntl = require("react-intl");
16
16
  var _mediaUi = require("@atlaskit/media-ui");
17
17
  var _excluded = ["x", "y", "width", "height", "transform"];
18
18
  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); }
@@ -24,7 +24,7 @@ var ImageWrapper = exports.ImageWrapper = function ImageWrapper(_ref) {
24
24
  height = _ref.height,
25
25
  transform = _ref.transform,
26
26
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
27
- var intl = (0, _reactIntlNext.useIntl)();
27
+ var intl = (0, _reactIntl.useIntl)();
28
28
  return /*#__PURE__*/React.createElement("img", (0, _extends2.default)({
29
29
  style: {
30
30
  left: "".concat(x, "px"),
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _avatarList = require("../avatar-list");
15
15
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
16
16
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  var _mediaUi = require("@atlaskit/media-ui");
19
19
  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); }
20
20
  var predefinedAvatarsWrapperStyles = null;
@@ -27,7 +27,7 @@ var PredefinedAvatarList = exports.PredefinedAvatarList = /*#__PURE__*/(0, _reac
27
27
  onAvatarSelected = _ref.onAvatarSelected,
28
28
  selectAvatarLabel = _ref.selectAvatarLabel,
29
29
  showMoreAvatarsButtonLabel = _ref.showMoreAvatarsButtonLabel;
30
- var intl = (0, _reactIntlNext.useIntl)();
30
+ var intl = (0, _reactIntl.useIntl)();
31
31
  return /*#__PURE__*/React.createElement("div", {
32
32
  id: "predefined-avatar-wrapper",
33
33
  className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o"])
@@ -13,7 +13,7 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
- var _reactIntlNext = require("react-intl-next");
16
+ var _reactIntl = require("react-intl");
17
17
  var _mediaUi = require("@atlaskit/media-ui");
18
18
  var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/arrow-left"));
19
19
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
@@ -37,7 +37,7 @@ var PredefinedAvatarView = exports.PredefinedAvatarView = /*#__PURE__*/(0, _reac
37
37
  onGoBack = _ref.onGoBack,
38
38
  predefinedAvatarsText = _ref.predefinedAvatarsText,
39
39
  selectAvatarLabel = _ref.selectAvatarLabel;
40
- var intl = (0, _reactIntlNext.useIntl)();
40
+ var intl = (0, _reactIntl.useIntl)();
41
41
  var _useState = (0, _react.useState)(Object.fromEntries(avatars.map(function (avatar) {
42
42
  return [avatar.dataURI, false];
43
43
  }))),
@@ -91,7 +91,7 @@ var PredefinedAvatarView = exports.PredefinedAvatarView = /*#__PURE__*/(0, _reac
91
91
  className: (0, _runtime.ax)(["_2rko1i7s _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsbzwfg _4t3izwfg _4cvr1h6o _1bah1h6o"])
92
92
  }), /*#__PURE__*/React.createElement("h2", {
93
93
  className: (0, _runtime.ax)(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _11c8fhey _19bvu2gc"])
94
- }, predefinedAvatarsText || /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.default_avatars))), /*#__PURE__*/React.createElement("div", {
94
+ }, predefinedAvatarsText || /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.default_avatars))), /*#__PURE__*/React.createElement("div", {
95
95
  role: "radiogroup",
96
96
  "aria-label": selectAvatarLabel || intl.formatMessage(_mediaUi.messages.select_an_avatar),
97
97
  className: (0, _runtime.ax)(["_2lx2vrvc _1n261g80 _19pkidpf _2hwxidpf _otyridpf _18u0idpf _1e0c1txw _1bsb1665 _c71lgrxc _18m91wug _ca0qu2gc _u5f3idpf _n3tdidpf _19bvidpf"])
@@ -2,7 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { messages } from '@atlaskit/media-ui';
7
7
  import { useState } from 'react';
8
8
  const smallAvatarImageStyles = null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import VisuallyHidden from '@atlaskit/visually-hidden';
4
4
  import { Mode } from './types';
5
5
  import { messages } from '@atlaskit/media-ui';
@@ -6,7 +6,7 @@ import { useRef, useEffect } from 'react';
6
6
  import ErrorIcon from '@atlaskit/icon/core/status-error';
7
7
  import Flag from '@atlaskit/flag';
8
8
  import { messages } from '@atlaskit/media-ui';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  const avatarPickerErrorStyles = null;
11
11
  export const SubmitErrorDialog = () => {
12
12
  const intl = useIntl();
@@ -7,7 +7,7 @@ import React, { Fragment, createRef } from 'react';
7
7
  import { PureComponent } from 'react';
8
8
  import ModalDialog, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
9
9
  import Button from '@atlaskit/button/standard-button';
10
- import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl-next';
10
+ import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl';
11
11
  import { Field, HelperMessage } from '@atlaskit/form';
12
12
  import { fileToDataURI, dataURItoFile, messages } from '@atlaskit/media-ui';
13
13
  import { Box } from '@atlaskit/primitives/compiled';
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  import React from 'react';
7
7
  import { Component } from 'react';
8
8
  import CrossIcon from '@atlaskit/icon/core/cross';
9
- import { injectIntl } from 'react-intl-next';
9
+ import { injectIntl } from 'react-intl';
10
10
  import { messages, MediaImage } from '@atlaskit/media-ui';
11
11
  import { isImageRemote } from './isImageRemote';
12
12
  import { IconButton } from '@atlaskit/button/new';
@@ -4,7 +4,7 @@ import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { Component } from 'react';
7
- import { FormattedMessage, injectIntl } from 'react-intl-next';
7
+ import { FormattedMessage, injectIntl } from 'react-intl';
8
8
  import Button from '@atlaskit/button/standard-button';
9
9
  import ImageCropper from '../image-cropper';
10
10
  import Spinner from '@atlaskit/spinner';
@@ -9,7 +9,7 @@ import { messages } from '@atlaskit/media-ui';
9
9
  import ScaleLargeIcon from '@atlaskit/icon/core/image';
10
10
  import ScaleSmallIcon from '@atlaskit/icon/core/image';
11
11
  import Button from '@atlaskit/button/standard-button';
12
- import { injectIntl } from 'react-intl-next';
12
+ import { injectIntl } from 'react-intl';
13
13
  export const defaultProps = {
14
14
  value: 0
15
15
  };
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./imageWrapper.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { messages } from '@atlaskit/media-ui';
8
8
  const imageWrapperStyles = null;
9
9
  export const ImageWrapper = ({
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { AvatarList } from '../avatar-list';
6
6
  import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
7
7
  import Button from '@atlaskit/button/standard-button';
8
- import { useIntl } from 'react-intl-next';
8
+ import { useIntl } from 'react-intl';
9
9
  import { messages } from '@atlaskit/media-ui';
10
10
  import { forwardRef } from 'react';
11
11
  const predefinedAvatarsWrapperStyles = null;
@@ -2,7 +2,7 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { FormattedMessage, useIntl } from 'react-intl-next';
5
+ import { FormattedMessage, useIntl } from 'react-intl';
6
6
  import { messages } from '@atlaskit/media-ui';
7
7
  import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
8
8
  import Button from '@atlaskit/button/standard-button';
@@ -6,7 +6,7 @@ import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  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; }
8
8
  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) { _defineProperty(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; }
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { messages } from '@atlaskit/media-ui';
11
11
  import { useState } from 'react';
12
12
  var smallAvatarImageStyles = null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import VisuallyHidden from '@atlaskit/visually-hidden';
4
4
  import { Mode } from './types';
5
5
  import { messages } from '@atlaskit/media-ui';
@@ -6,7 +6,7 @@ import { useRef, useEffect } from 'react';
6
6
  import ErrorIcon from '@atlaskit/icon/core/status-error';
7
7
  import Flag from '@atlaskit/flag';
8
8
  import { messages } from '@atlaskit/media-ui';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  var avatarPickerErrorStyles = null;
11
11
  export var SubmitErrorDialog = function SubmitErrorDialog() {
12
12
  var intl = useIntl();
@@ -16,7 +16,7 @@ import React, { Fragment, createRef } from 'react';
16
16
  import { PureComponent } from 'react';
17
17
  import ModalDialog, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
18
18
  import Button from '@atlaskit/button/standard-button';
19
- import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl-next';
19
+ import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl';
20
20
  import { Field, HelperMessage } from '@atlaskit/form';
21
21
  import { fileToDataURI, dataURItoFile, messages } from '@atlaskit/media-ui';
22
22
  import { Box } from '@atlaskit/primitives/compiled';
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
15
15
  import React from 'react';
16
16
  import { Component } from 'react';
17
17
  import CrossIcon from '@atlaskit/icon/core/cross';
18
- import { injectIntl } from 'react-intl-next';
18
+ import { injectIntl } from 'react-intl';
19
19
  import { messages, MediaImage } from '@atlaskit/media-ui';
20
20
  import { isImageRemote } from './isImageRemote';
21
21
  import { IconButton } from '@atlaskit/button/new';
@@ -14,7 +14,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
14
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
15
  import React from 'react';
16
16
  import { Component } from 'react';
17
- import { FormattedMessage, injectIntl } from 'react-intl-next';
17
+ import { FormattedMessage, injectIntl } from 'react-intl';
18
18
  import Button from '@atlaskit/button/standard-button';
19
19
  import ImageCropper from '../image-cropper';
20
20
  import Spinner from '@atlaskit/spinner';
@@ -16,7 +16,7 @@ import { messages } from '@atlaskit/media-ui';
16
16
  import ScaleLargeIcon from '@atlaskit/icon/core/image';
17
17
  import ScaleSmallIcon from '@atlaskit/icon/core/image';
18
18
  import Button from '@atlaskit/button/standard-button';
19
- import { injectIntl } from 'react-intl-next';
19
+ import { injectIntl } from 'react-intl';
20
20
  export var defaultProps = {
21
21
  value: 0
22
22
  };
@@ -5,7 +5,7 @@ var _excluded = ["x", "y", "width", "height", "transform"];
5
5
  import "./imageWrapper.compiled.css";
6
6
  import * as React from 'react';
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
- import { useIntl } from 'react-intl-next';
8
+ import { useIntl } from 'react-intl';
9
9
  import { messages } from '@atlaskit/media-ui';
10
10
  var imageWrapperStyles = null;
11
11
  export var ImageWrapper = function ImageWrapper(_ref) {
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { AvatarList } from '../avatar-list';
6
6
  import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
7
7
  import Button from '@atlaskit/button/standard-button';
8
- import { useIntl } from 'react-intl-next';
8
+ import { useIntl } from 'react-intl';
9
9
  import { messages } from '@atlaskit/media-ui';
10
10
  import { forwardRef } from 'react';
11
11
  var predefinedAvatarsWrapperStyles = null;
@@ -6,7 +6,7 @@ import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  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; }
8
8
  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) { _defineProperty(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; }
9
- import { FormattedMessage, useIntl } from 'react-intl-next';
9
+ import { FormattedMessage, useIntl } from 'react-intl';
10
10
  import { messages } from '@atlaskit/media-ui';
11
11
  import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
12
12
  import Button from '@atlaskit/button/standard-button';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { PureComponent } from 'react';
7
- import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl-next';
7
+ import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl';
8
8
  import { type Avatar } from '../avatar-list';
9
9
  import { type CropProperties } from '../image-navigator';
10
10
  import { type LoadParameters } from '../image-navigator/index';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Component } from 'react';
3
- import { type WrappedComponentProps } from 'react-intl-next';
3
+ import { type WrappedComponentProps } from 'react-intl';
4
4
  export interface ImageCropperProp {
5
5
  imageSource: string;
6
6
  containerSize?: number;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { Component } from 'react';
7
- import { type WrappedComponentProps } from 'react-intl-next';
7
+ import { type WrappedComponentProps } from 'react-intl';
8
8
  import { Vector2 } from '@atlaskit/media-ui';
9
9
  import { Viewport } from '../viewport';
10
10
  export declare const AVATAR_DIALOG_WIDTH = 375;
@@ -1,5 +1,5 @@
1
1
  import { Component, type ComponentType, type FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  export interface SliderProps {
4
4
  value: number;
5
5
  onChange: (value: number) => void;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { PureComponent } from 'react';
7
- import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl-next';
7
+ import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl';
8
8
  import { type Avatar } from '../avatar-list';
9
9
  import { type CropProperties } from '../image-navigator';
10
10
  import { type LoadParameters } from '../image-navigator/index';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Component } from 'react';
3
- import { type WrappedComponentProps } from 'react-intl-next';
3
+ import { type WrappedComponentProps } from 'react-intl';
4
4
  export interface ImageCropperProp {
5
5
  imageSource: string;
6
6
  containerSize?: number;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { Component } from 'react';
7
- import { type WrappedComponentProps } from 'react-intl-next';
7
+ import { type WrappedComponentProps } from 'react-intl';
8
8
  import { Vector2 } from '@atlaskit/media-ui';
9
9
  import { Viewport } from '../viewport';
10
10
  export declare const AVATAR_DIALOG_WIDTH = 375;
@@ -1,5 +1,5 @@
1
1
  import { Component, type ComponentType, type FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  export interface SliderProps {
4
4
  value: number;
5
5
  onChange: (value: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-avatar-picker",
3
- "version": "26.4.13",
3
+ "version": "27.0.0",
4
4
  "description": "A component to select, drag and resize image avatars. It also provides a default list of predefined avatars.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,8 +35,8 @@
35
35
  "@atlaskit/css": "^0.19.0",
36
36
  "@atlaskit/flag": "^17.9.0",
37
37
  "@atlaskit/form": "^15.5.0",
38
- "@atlaskit/icon": "^34.0.0",
39
- "@atlaskit/media-ui": "^28.7.0",
38
+ "@atlaskit/icon": "^34.2.0",
39
+ "@atlaskit/media-ui": "^29.0.0",
40
40
  "@atlaskit/modal-dialog": "^14.15.0",
41
41
  "@atlaskit/primitives": "^19.0.0",
42
42
  "@atlaskit/range": "^10.0.0",
@@ -52,11 +52,11 @@
52
52
  "peerDependencies": {
53
53
  "@emotion/react": "^11.7.1",
54
54
  "react": "^18.2.0",
55
- "react-intl-next": "npm:react-intl@^5.18.1"
55
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@atlaskit/media-core": "^37.0.0",
59
- "@atlaskit/media-test-helpers": "^40.0.0",
59
+ "@atlaskit/media-test-helpers": "^41.0.0",
60
60
  "@atlassian/a11y-jest-testing": "^0.11.0",
61
61
  "@testing-library/react": "^16.3.0",
62
62
  "@testing-library/user-event": "^14.4.3",
@@ -65,7 +65,7 @@
65
65
  "enzyme": "^3.10.0",
66
66
  "react": "^18.2.0",
67
67
  "react-dom": "^18.2.0",
68
- "react-intl-next": "npm:react-intl@^5.18.1"
68
+ "react-intl": "^6.6.2"
69
69
  },
70
70
  "techstack": {
71
71
  "@repo/internal": {
package/report.api.md CHANGED
@@ -137,7 +137,7 @@ export type OnLoadHandler = (params: LoadParameters) => void;
137
137
  {
138
138
  "@emotion/react": "^11.7.1",
139
139
  "react": "^16.8.0",
140
- "react-intl-next": "npm:react-intl@^5.18.1"
140
+ "react-intl": "npm:react-intl@^5.18.1"
141
141
  }
142
142
  ```
143
143