@atlaskit/media-avatar-picker 28.3.2 → 28.3.3

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 (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/avatar-picker-dialog/SRLiveTitle.js +1 -1
  3. package/dist/cjs/avatar-picker-dialog/SubmitErrorDialog.js +2 -2
  4. package/dist/cjs/avatar-picker-dialog/index.js +10 -10
  5. package/dist/cjs/image-cropper/index.js +5 -5
  6. package/dist/cjs/image-navigator/index.js +10 -10
  7. package/dist/cjs/image-navigator/slider.js +4 -4
  8. package/dist/cjs/image-placer/image.js +1 -1
  9. package/dist/cjs/image-placer/imageProcessor.js +2 -2
  10. package/dist/cjs/image-placer/index.js +10 -9
  11. package/dist/cjs/predefined-avatar-list/index.js +3 -3
  12. package/dist/cjs/predefined-avatar-view/index.js +2 -2
  13. package/dist/cjs/viewport/viewport.js +1 -1
  14. package/dist/es2019/avatar-list/index.js +1 -1
  15. package/dist/es2019/avatar-picker-dialog/SRLiveTitle.js +1 -1
  16. package/dist/es2019/avatar-picker-dialog/SubmitErrorDialog.js +2 -2
  17. package/dist/es2019/avatar-picker-dialog/index.js +10 -10
  18. package/dist/es2019/image-cropper/index.js +5 -5
  19. package/dist/es2019/image-navigator/index.js +10 -10
  20. package/dist/es2019/image-navigator/slider.js +4 -4
  21. package/dist/es2019/image-placer/image.js +1 -1
  22. package/dist/es2019/image-placer/imageProcessor.js +2 -2
  23. package/dist/es2019/image-placer/index.js +10 -10
  24. package/dist/es2019/predefined-avatar-list/index.js +4 -4
  25. package/dist/es2019/predefined-avatar-view/index.js +3 -3
  26. package/dist/es2019/viewport/viewport.js +1 -1
  27. package/dist/esm/avatar-list/index.js +1 -1
  28. package/dist/esm/avatar-picker-dialog/SRLiveTitle.js +1 -1
  29. package/dist/esm/avatar-picker-dialog/SubmitErrorDialog.js +2 -2
  30. package/dist/esm/avatar-picker-dialog/index.js +10 -10
  31. package/dist/esm/image-cropper/index.js +5 -5
  32. package/dist/esm/image-navigator/index.js +10 -10
  33. package/dist/esm/image-navigator/slider.js +4 -4
  34. package/dist/esm/image-placer/image.js +1 -1
  35. package/dist/esm/image-placer/imageProcessor.js +2 -2
  36. package/dist/esm/image-placer/index.js +10 -10
  37. package/dist/esm/predefined-avatar-list/index.js +4 -4
  38. package/dist/esm/predefined-avatar-view/index.js +3 -3
  39. package/dist/esm/viewport/viewport.js +1 -1
  40. package/dist/types/avatar-list/index.d.ts +4 -0
  41. package/dist/types/avatar-picker-dialog/SubmitErrorDialog.d.ts +4 -0
  42. package/dist/types/image-navigator/dragZone.d.ts +4 -0
  43. package/dist/types/image-navigator/slider.d.ts +4 -0
  44. package/dist/types/image-placer/constraints.d.ts +1 -1
  45. package/dist/types/image-placer/imageProcessor.d.ts +1 -1
  46. package/dist/types/image-placer/index.d.ts +6 -2
  47. package/dist/types/image-placer/margin.d.ts +4 -0
  48. package/dist/types/predefined-avatar-list/index.d.ts +5 -1
  49. package/dist/types/predefined-avatar-view/index.d.ts +5 -1
  50. package/dist/types/viewport/viewport.d.ts +1 -1
  51. package/example-helpers/StatefulAvatarPickerDialog.tsx +4 -1
  52. package/example-helpers/viewport-debug.ts +2 -1
  53. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/media-avatar-picker
2
2
 
3
+ ## 28.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 28.3.2
4
10
 
5
11
  ### Patch Changes
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.SRLiveTitle = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
+ var _messages = require("@atlaskit/media-ui/messages");
10
11
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
11
12
  var _types = require("./types");
12
- var _messages = require("@atlaskit/media-ui/messages");
13
13
  var SRLiveTitle = exports.SRLiveTitle = function SRLiveTitle(_ref) {
14
14
  var mode = _ref.mode;
15
15
  var intl = (0, _reactIntl.useIntl)();
@@ -11,10 +11,10 @@ require("./SubmitErrorDialog.compiled.css");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
- var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
14
+ var _reactIntl = require("react-intl");
15
15
  var _flag = _interopRequireDefault(require("@atlaskit/flag/flag"));
16
+ var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
16
17
  var _messages = require("@atlaskit/media-ui/messages");
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() {
@@ -19,29 +19,29 @@ 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 _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-dialog"));
23
- var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-body"));
24
- var _modalFooter = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-footer"));
25
- var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
26
- var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
27
- var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
28
22
  var _reactIntl = require("react-intl");
23
+ var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
24
+ var _loadingButton = _interopRequireDefault(require("@atlaskit/button/loading-button"));
25
+ var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
29
26
  var _field = _interopRequireDefault(require("@atlaskit/form/field"));
30
27
  var _helperMessage = require("@atlaskit/form/helper-message");
31
- var _fileToDataURI = require("@atlaskit/media-ui/fileToDataURI");
32
28
  var _dataURItoFile = require("@atlaskit/media-ui/dataURItoFile");
29
+ var _fileToDataURI = require("@atlaskit/media-ui/fileToDataURI");
33
30
  var _messages = require("@atlaskit/media-ui/messages");
31
+ var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-body"));
32
+ var _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-dialog"));
33
+ var _modalFooter = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-footer"));
34
+ var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
35
+ var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
34
36
  var _compiled = require("@atlaskit/primitives/compiled");
35
37
  var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
36
38
  var _imageNavigator = _interopRequireDefault(require("../image-navigator"));
37
39
  var _predefinedAvatarList = require("../predefined-avatar-list");
38
40
  var _predefinedAvatarView = require("../predefined-avatar-view");
39
- var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
40
41
  var _layoutConst = require("./layout-const");
41
- var _types = require("./types");
42
42
  var _SRLiveTitle = require("./SRLiveTitle");
43
- var _loadingButton = _interopRequireDefault(require("@atlaskit/button/loading-button"));
44
43
  var _SubmitErrorDialog = require("./SubmitErrorDialog");
44
+ var _types = require("./types");
45
45
  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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
46
46
  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)); }
47
47
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -17,16 +17,16 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
17
17
  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
- var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
21
20
  var _reactIntl = require("react-intl");
22
- var _messages = require("@atlaskit/media-ui/messages");
23
- var _mediaImage = require("@atlaskit/media-ui/mediaImage");
24
- var _isImageRemote = require("./isImageRemote");
25
21
  var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
26
- var _compiled = require("@atlaskit/primitives/compiled");
27
22
  var _css = require("@atlaskit/css");
23
+ var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
24
+ var _mediaImage = require("@atlaskit/media-ui/mediaImage");
25
+ var _messages = require("@atlaskit/media-ui/messages");
26
+ var _compiled = require("@atlaskit/primitives/compiled");
28
27
  var _avatarPickerDialog = require("../avatar-picker-dialog");
29
28
  var _layoutConst = require("../avatar-picker-dialog/layout-const");
29
+ var _isImageRemote = require("./isImageRemote");
30
30
  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); }
31
31
  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; }
32
32
  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; }
@@ -19,26 +19,26 @@ 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 exenv = _interopRequireWildcard(require("exenv"));
22
23
  var _reactIntl = require("react-intl");
23
24
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
24
- var _imageCropper = _interopRequireDefault(require("../image-cropper"));
25
- var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
26
- var _fileToDataURI = require("@atlaskit/media-ui/fileToDataURI");
27
25
  var _dataURItoFile = require("@atlaskit/media-ui/dataURItoFile");
26
+ var _ellipsify = require("@atlaskit/media-ui/ellipsify/ellipsify");
27
+ var _fileToDataURI = require("@atlaskit/media-ui/fileToDataURI");
28
28
  var _getOrientation = require("@atlaskit/media-ui/imageMetaData/getOrientation");
29
29
  var _isRotated = require("@atlaskit/media-ui/imageMetaData/isRotated");
30
- var _ellipsify = require("@atlaskit/media-ui/ellipsify/ellipsify");
31
- var _vector = require("@atlaskit/media-ui/vector2");
32
30
  var _messages = require("@atlaskit/media-ui/messages");
33
- var exenv = _interopRequireWildcard(require("exenv"));
34
- var _images = require("./images");
35
- var _util = require("../util");
31
+ var _vector = require("@atlaskit/media-ui/vector2");
32
+ var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
36
33
  var _avatarPickerDialog = require("../avatar-picker-dialog");
37
- var _viewport2 = require("../viewport");
38
- var _slider = _interopRequireDefault(require("./slider"));
39
34
  var _layoutConst = require("../avatar-picker-dialog/layout-const");
35
+ var _imageCropper = _interopRequireDefault(require("../image-cropper"));
36
+ var _util = require("../util");
37
+ var _viewport2 = require("../viewport");
40
38
  var _dragZone = require("./dragZone");
41
39
  var _exportCroppedImage = require("./exportCroppedImage");
40
+ var _images = require("./images");
41
+ var _slider = _interopRequireDefault(require("./slider"));
42
42
  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); }
43
43
  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)); }
44
44
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -17,11 +17,11 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
17
17
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
18
18
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
- var _range = _interopRequireDefault(require("@atlaskit/range/range"));
21
- var _messages = require("@atlaskit/media-ui/messages");
22
- var _image = _interopRequireDefault(require("@atlaskit/icon/core/image"));
23
- var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
24
20
  var _reactIntl = require("react-intl");
21
+ var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
22
+ var _image = _interopRequireDefault(require("@atlaskit/icon/core/image"));
23
+ var _messages = require("@atlaskit/media-ui/messages");
24
+ var _range = _interopRequireDefault(require("@atlaskit/range/range"));
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; })(); }
@@ -13,8 +13,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _isImageRemote = require("../image-cropper/isImageRemote");
16
- var _imageWrapper = require("./imageWrapper");
17
16
  var _util = require("../util");
17
+ var _imageWrapper = require("./imageWrapper");
18
18
  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)); }
19
19
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
20
  // TODO: i18n https://product-fabric.atlassian.net/browse/MS-1261
@@ -10,9 +10,9 @@ exports.radians = radians;
10
10
  exports.renderImageAtCurrentView = renderImageAtCurrentView;
11
11
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
12
12
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
- var _rectangle = require("@atlaskit/media-ui/rectangle");
14
- var _loadImage = require("@atlaskit/media-ui/loadImage");
15
13
  var _getOrientation = require("@atlaskit/media-ui/imageMetaData/getOrientation");
14
+ var _loadImage = require("@atlaskit/media-ui/loadImage");
15
+ var _rectangle = require("@atlaskit/media-ui/rectangle");
16
16
  var _util = require("../util");
17
17
  function radians(deg) {
18
18
  return deg * (Math.PI / 180);
@@ -17,19 +17,19 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
17
17
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
19
  var _react = _interopRequireDefault(require("react"));
20
- var _rectangle = require("@atlaskit/media-ui/rectangle");
21
- var _vector = require("@atlaskit/media-ui/vector2");
22
20
  var _bounds = require("@atlaskit/media-ui/bounds");
23
21
  var _dataURItoFile = require("@atlaskit/media-ui/dataURItoFile");
24
22
  var _getFileInfo = require("@atlaskit/media-ui/getFileInfo");
25
23
  var _getFileInfoFromSrc = require("@atlaskit/media-ui/getFileInfoFromSrc");
24
+ var _rectangle = require("@atlaskit/media-ui/rectangle");
25
+ var _vector = require("@atlaskit/media-ui/vector2");
26
+ var _util = require("../util");
27
+ var _constraints = require("./constraints");
26
28
  var _container = require("./container");
27
29
  var _image = require("./image");
28
- var _margin = require("./margin");
29
- var _imageProcessor = require("./imageProcessor");
30
- var _constraints = require("./constraints");
31
30
  var _imagePlacerErrorWrapper = require("./imagePlacerErrorWrapper");
32
- var _util = require("../util");
31
+ var _imageProcessor = require("./imageProcessor");
32
+ var _margin = require("./margin");
33
33
  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)); }
34
34
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
35
  /*
@@ -49,7 +49,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
49
49
  | +------------------+ |
50
50
  +------------------------+
51
51
  */
52
-
53
52
  /* pass onImageActions prop function to receive an object with this API to access image at current view */
54
53
 
55
54
  /* immutable prop defaults */
@@ -60,8 +59,10 @@ var DEFAULT_ZOOM = exports.DEFAULT_ZOOM = 0;
60
59
  var DEFAULT_ORIGIN_X = exports.DEFAULT_ORIGIN_X = 0;
61
60
  var DEFAULT_ORIGIN_Y = exports.DEFAULT_ORIGIN_Y = 0;
62
61
  var DEFAULT_USE_CONSTRAINTS = exports.DEFAULT_USE_CONSTRAINTS = true;
63
- var DEFAULT_USE_CIRCULAR = exports.DEFAULT_USE_CIRCULAR = false; /* whether or not to apply a circular margin to image while positioning */
64
- var DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = exports.DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = false; /* whether or not to apply a circular clip when rendering via actions */
62
+ var DEFAULT_USE_CIRCULAR = exports.DEFAULT_USE_CIRCULAR = false;
63
+ /* whether or not to apply a circular margin to image while positioning */
64
+ var DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = exports.DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = false;
65
+ /* whether or not to apply a circular clip when rendering via actions */
65
66
  var DEFAULT_BACKGROUND_COLOR = exports.DEFAULT_BACKGROUND_COLOR = 'transparent';
66
67
  var defaultProps = exports.defaultProps = {
67
68
  containerWidth: DEFAULT_CONTAINER_SIZE,
@@ -11,11 +11,11 @@ require("./index.compiled.css");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
- var _avatarList = require("../avatar-list");
15
- var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
16
- var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
17
14
  var _reactIntl = require("react-intl");
15
+ var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
16
+ var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
18
17
  var _messages = require("@atlaskit/media-ui/messages");
18
+ var _avatarList = require("../avatar-list");
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;
21
21
  var showMoreButtonStyles = null;
@@ -14,9 +14,9 @@ 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
16
  var _reactIntl = require("react-intl");
17
- var _messages = require("@atlaskit/media-ui/messages");
18
- var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/arrow-left"));
19
17
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
18
+ var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/arrow-left"));
19
+ var _messages = require("@atlaskit/media-ui/messages");
20
20
  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); }
21
21
  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; }
22
22
  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; }
@@ -8,8 +8,8 @@ exports.Viewport = exports.MAX_SCALE = exports.DEFAULT_WIDTH = exports.DEFAULT_M
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _rectangle = require("@atlaskit/media-ui/rectangle");
12
11
  var _bounds = require("@atlaskit/media-ui/bounds");
12
+ var _rectangle = require("@atlaskit/media-ui/rectangle");
13
13
  var _vector = require("@atlaskit/media-ui/vector2");
14
14
  /**
15
15
  * maximum amount to allow scaling up from "100%"
@@ -2,9 +2,9 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import { useState } from 'react';
5
6
  import { useIntl } from 'react-intl';
6
7
  import { messages } from '@atlaskit/media-ui/messages';
7
- import { useState } from 'react';
8
8
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
9
  const smallAvatarImageStyles = null;
10
10
  const avatarListWrapperStyles = null;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
+ import { messages } from '@atlaskit/media-ui/messages';
3
4
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
4
5
  import { Mode } from './types';
5
- import { messages } from '@atlaskit/media-ui/messages';
6
6
  export const SRLiveTitle = ({
7
7
  mode
8
8
  }) => {
@@ -3,10 +3,10 @@ import "./SubmitErrorDialog.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useRef, useEffect } from 'react';
6
- import ErrorIcon from '@atlaskit/icon/core/status-error';
6
+ import { useIntl } from 'react-intl';
7
7
  import Flag from '@atlaskit/flag/flag';
8
+ import ErrorIcon from '@atlaskit/icon/core/status-error';
8
9
  import { messages } from '@atlaskit/media-ui/messages';
9
- import { useIntl } from 'react-intl';
10
10
  const avatarPickerErrorStyles = null;
11
11
  export const SubmitErrorDialog = () => {
12
12
  const intl = useIntl();
@@ -5,30 +5,30 @@ import "./index.compiled.css";
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import React, { Fragment, createRef } from 'react';
7
7
  import { PureComponent } from 'react';
8
- import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
9
- import ModalBody from '@atlaskit/modal-dialog/modal-body';
10
- import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
11
- import ModalHeader from '@atlaskit/modal-dialog/modal-header';
12
- import ModalTitle from '@atlaskit/modal-dialog/modal-title';
13
- import Button from '@atlaskit/button/standard-button';
14
8
  import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl';
9
+ import ButtonGroup from '@atlaskit/button/button-group';
10
+ import LoadingButton from '@atlaskit/button/loading-button';
11
+ import Button from '@atlaskit/button/standard-button';
15
12
  import Field from '@atlaskit/form/field';
16
13
  import { HelperMessage } from '@atlaskit/form/helper-message';
17
- import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
18
14
  import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
15
+ import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
19
16
  import { messages } from '@atlaskit/media-ui/messages';
17
+ import ModalBody from '@atlaskit/modal-dialog/modal-body';
18
+ import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
19
+ import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
20
+ import ModalHeader from '@atlaskit/modal-dialog/modal-header';
21
+ import ModalTitle from '@atlaskit/modal-dialog/modal-title';
20
22
  import { Box } from '@atlaskit/primitives/compiled';
21
23
  import Textfield from '@atlaskit/textfield/text-field';
22
24
  import ImageNavigator from '../image-navigator';
23
25
  import { PredefinedAvatarList } from '../predefined-avatar-list';
24
26
  import { PredefinedAvatarView } from '../predefined-avatar-view';
25
- import ButtonGroup from '@atlaskit/button/button-group';
26
27
  import { DEFAULT_VISIBLE_PREDEFINED_AVATARS } from './layout-const';
27
28
  import { AVATAR_DIALOG_WIDTH, AVATAR_DIALOG_HEIGHT, CONTAINER_INNER_SIZE } from './layout-const';
28
- import { Mode } from './types';
29
29
  import { SRLiveTitle } from './SRLiveTitle';
30
- import LoadingButton from '@atlaskit/button/loading-button';
31
30
  import { SubmitErrorDialog } from './SubmitErrorDialog';
31
+ import { Mode } from './types';
32
32
  export const MAX_SIZE_MB = 10;
33
33
  export const ERROR = {
34
34
  URL: messages.image_url_invalid_error,
@@ -5,16 +5,16 @@ import "./index.compiled.css";
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import React from 'react';
7
7
  import { Component } from 'react';
8
- import CrossIcon from '@atlaskit/icon/core/cross';
9
8
  import { injectIntl } from 'react-intl';
10
- import { messages } from '@atlaskit/media-ui/messages';
11
- import { MediaImage } from '@atlaskit/media-ui/mediaImage';
12
- import { isImageRemote } from './isImageRemote';
13
9
  import IconButton from '@atlaskit/button/icon/button';
14
- import { Box } from '@atlaskit/primitives/compiled';
15
10
  import { cx } from '@atlaskit/css';
11
+ import CrossIcon from '@atlaskit/icon/core/cross';
12
+ import { MediaImage } from '@atlaskit/media-ui/mediaImage';
13
+ import { messages } from '@atlaskit/media-ui/messages';
14
+ import { Box } from '@atlaskit/primitives/compiled';
16
15
  import { ERROR } from '../avatar-picker-dialog';
17
16
  import { CONTAINER_INNER_SIZE } from '../avatar-picker-dialog/layout-const';
17
+ import { isImageRemote } from './isImageRemote';
18
18
  const CONTAINER_PADDING = 28;
19
19
  const removeImageContainerStyles = {
20
20
  root: "_kqswstnw _1xi21b66 _154i1b66"
@@ -4,26 +4,26 @@ 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 * as exenv from 'exenv';
7
8
  import { FormattedMessage, injectIntl } from 'react-intl';
8
9
  import Button from '@atlaskit/button/standard-button';
9
- import ImageCropper from '../image-cropper';
10
- import Spinner from '@atlaskit/spinner/spinner';
11
- import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
12
10
  import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
11
+ import { Ellipsify } from '@atlaskit/media-ui/ellipsify/ellipsify';
12
+ import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
13
13
  import { getOrientation } from '@atlaskit/media-ui/imageMetaData/getOrientation';
14
14
  import { isRotated } from '@atlaskit/media-ui/imageMetaData/isRotated';
15
- import { Ellipsify } from '@atlaskit/media-ui/ellipsify/ellipsify';
16
- import { Vector2 } from '@atlaskit/media-ui/vector2';
17
15
  import { messages } from '@atlaskit/media-ui/messages';
18
- import * as exenv from 'exenv';
19
- import { uploadPlaceholder, errorIcon } from './images';
20
- import { fileSizeMb } from '../util';
16
+ import { Vector2 } from '@atlaskit/media-ui/vector2';
17
+ import Spinner from '@atlaskit/spinner/spinner';
21
18
  import { ERROR, MAX_SIZE_MB, ACCEPT } from '../avatar-picker-dialog';
22
- import { Viewport } from '../viewport';
23
- import Slider from './slider';
24
19
  import { CONTAINER_SIZE, CONTAINER_PADDING, IMAGE_MOVE_UNIT } from '../avatar-picker-dialog/layout-const';
20
+ import ImageCropper from '../image-cropper';
21
+ import { fileSizeMb } from '../util';
22
+ import { Viewport } from '../viewport';
25
23
  import { DragZone } from './dragZone';
26
24
  import { exportCroppedImage } from './exportCroppedImage';
25
+ import { uploadPlaceholder, errorIcon } from './images';
26
+ import Slider from './slider';
27
27
  const checkeredBg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjg8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjg8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZGM6c3ViamVjdD4KICAgICAgICAgICAgPHJkZjpTZXEvPgogICAgICAgICA8L2RjOnN1YmplY3Q+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4OjA3OjE4IDEwOjA3OjUwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5QaXhlbG1hdG9yIDMuNy4zPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsp//0AAAAKUlEQVQIHWP8//8/Aww8ffoUxmRggrPQGKRLsCCbKy0tDTeQdKNw6gAAbSMIvvnXfF4AAAAASUVORK5CYII=';
28
28
  export const AVATAR_DIALOG_WIDTH = 375;
29
29
  const containerStyles = null;
@@ -4,12 +4,12 @@ import "./slider.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { Component } from 'react';
7
- import FieldRange from '@atlaskit/range/range';
8
- import { messages } from '@atlaskit/media-ui/messages';
7
+ import { injectIntl } from 'react-intl';
8
+ import Button from '@atlaskit/button/standard-button';
9
9
  import ScaleLargeIcon from '@atlaskit/icon/core/image';
10
10
  import ScaleSmallIcon from '@atlaskit/icon/core/image';
11
- import Button from '@atlaskit/button/standard-button';
12
- import { injectIntl } from 'react-intl';
11
+ import { messages } from '@atlaskit/media-ui/messages';
12
+ import FieldRange from '@atlaskit/range/range';
13
13
  export const defaultProps = {
14
14
  value: 0
15
15
  };
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { isImageRemote } from '../image-cropper/isImageRemote';
4
- import { ImageWrapper } from './imageWrapper';
5
4
  import { isSSR } from '../util';
5
+ import { ImageWrapper } from './imageWrapper';
6
6
  // TODO: i18n https://product-fabric.atlassian.net/browse/MS-1261
7
7
  export const IMAGE_ERRORS = {
8
8
  BAD_URL: 'Invalid image url',
@@ -1,6 +1,6 @@
1
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
2
- import { loadImage } from '@atlaskit/media-ui/loadImage';
3
1
  import { getOrientation } from '@atlaskit/media-ui/imageMetaData/getOrientation';
2
+ import { loadImage } from '@atlaskit/media-ui/loadImage';
3
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
4
4
  import { getCanvas } from '../util';
5
5
  export function radians(deg) {
6
6
  return deg * (Math.PI / 180);
@@ -3,20 +3,19 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
7
- import { Vector2 } from '@atlaskit/media-ui/vector2';
8
6
  import { Bounds } from '@atlaskit/media-ui/bounds';
9
7
  import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
10
8
  import { getFileInfo } from '@atlaskit/media-ui/getFileInfo';
11
9
  import { getFileInfoFromSrc } from '@atlaskit/media-ui/getFileInfoFromSrc';
10
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
11
+ import { Vector2 } from '@atlaskit/media-ui/vector2';
12
+ import { isSSR } from '../util';
13
+ import { zoomToFit, applyConstraints, transformVisibleBoundsToImageCoords } from './constraints';
12
14
  import { ImagePlacerContainer } from './container';
13
15
  import { ImagePlacerImage } from './image';
14
- import { Margin } from './margin';
15
- import { initialiseImagePreview, renderImageAtCurrentView } from './imageProcessor';
16
- import { zoomToFit, applyConstraints, transformVisibleBoundsToImageCoords } from './constraints';
17
16
  import { ImagePlacerErrorWrapper } from './imagePlacerErrorWrapper';
18
- import { isSSR } from '../util';
19
-
17
+ import { initialiseImagePreview, renderImageAtCurrentView } from './imageProcessor';
18
+ import { Margin } from './margin';
20
19
  /*
21
20
  "container(Width|Height)" is the outputed size of the final image plus "margin"s.
22
21
  "visibleBounds" is the exact output size of the final image
@@ -34,7 +33,6 @@ import { isSSR } from '../util';
34
33
  | +------------------+ |
35
34
  +------------------------+
36
35
  */
37
-
38
36
  /* pass onImageActions prop function to receive an object with this API to access image at current view */
39
37
 
40
38
  /* immutable prop defaults */
@@ -45,8 +43,10 @@ export const DEFAULT_ZOOM = 0;
45
43
  export const DEFAULT_ORIGIN_X = 0;
46
44
  export const DEFAULT_ORIGIN_Y = 0;
47
45
  export const DEFAULT_USE_CONSTRAINTS = true;
48
- export const DEFAULT_USE_CIRCULAR = false; /* whether or not to apply a circular margin to image while positioning */
49
- export const DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = false; /* whether or not to apply a circular clip when rendering via actions */
46
+ export const DEFAULT_USE_CIRCULAR = false;
47
+ /* whether or not to apply a circular margin to image while positioning */
48
+ export const DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = false;
49
+ /* whether or not to apply a circular clip when rendering via actions */
50
50
  export const DEFAULT_BACKGROUND_COLOR = 'transparent';
51
51
  export const defaultProps = {
52
52
  containerWidth: DEFAULT_CONTAINER_SIZE,
@@ -2,12 +2,12 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { AvatarList } from '../avatar-list';
6
- import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
7
- import Button from '@atlaskit/button/standard-button';
5
+ import { forwardRef } from 'react';
8
6
  import { useIntl } from 'react-intl';
7
+ import Button from '@atlaskit/button/standard-button';
8
+ import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
9
9
  import { messages } from '@atlaskit/media-ui/messages';
10
- import { forwardRef } from 'react';
10
+ import { AvatarList } from '../avatar-list';
11
11
  const predefinedAvatarsWrapperStyles = null;
12
12
  const showMoreButtonStyles = null;
13
13
  export const PredefinedAvatarList = /*#__PURE__*/forwardRef(({
@@ -2,11 +2,11 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import { forwardRef, useState } from 'react';
5
6
  import { FormattedMessage, useIntl } from 'react-intl';
6
- import { messages } from '@atlaskit/media-ui/messages';
7
- import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
8
7
  import Button from '@atlaskit/button/standard-button';
9
- import { forwardRef, useState } from 'react';
8
+ import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
9
+ import { messages } from '@atlaskit/media-ui/messages';
10
10
  const largeAvatarImageStyles = null;
11
11
  const largeAvatarImageCheckedStyles = null;
12
12
  const largeAvatarImageFocusedStyles = null;
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
3
2
  import { Bounds } from '@atlaskit/media-ui/bounds';
3
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
4
4
  import { Vector2 } from '@atlaskit/media-ui/vector2';
5
5
 
6
6
  /**
@@ -6,9 +6,9 @@ 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 { useState } from 'react';
9
10
  import { useIntl } from 'react-intl';
10
11
  import { messages } from '@atlaskit/media-ui/messages';
11
- import { useState } from 'react';
12
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
13
13
  var smallAvatarImageStyles = null;
14
14
  var avatarListWrapperStyles = null;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
+ import { messages } from '@atlaskit/media-ui/messages';
3
4
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
4
5
  import { Mode } from './types';
5
- import { messages } from '@atlaskit/media-ui/messages';
6
6
  export var SRLiveTitle = function SRLiveTitle(_ref) {
7
7
  var mode = _ref.mode;
8
8
  var intl = useIntl();
@@ -3,10 +3,10 @@ import "./SubmitErrorDialog.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useRef, useEffect } from 'react';
6
- import ErrorIcon from '@atlaskit/icon/core/status-error';
6
+ import { useIntl } from 'react-intl';
7
7
  import Flag from '@atlaskit/flag/flag';
8
+ import ErrorIcon from '@atlaskit/icon/core/status-error';
8
9
  import { messages } from '@atlaskit/media-ui/messages';
9
- import { useIntl } from 'react-intl';
10
10
  var avatarPickerErrorStyles = null;
11
11
  export var SubmitErrorDialog = function SubmitErrorDialog() {
12
12
  var intl = useIntl();
@@ -14,30 +14,30 @@ 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, { Fragment, createRef } from 'react';
16
16
  import { PureComponent } from 'react';
17
- import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
18
- import ModalBody from '@atlaskit/modal-dialog/modal-body';
19
- import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
20
- import ModalHeader from '@atlaskit/modal-dialog/modal-header';
21
- import ModalTitle from '@atlaskit/modal-dialog/modal-title';
22
- import Button from '@atlaskit/button/standard-button';
23
17
  import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl';
18
+ import ButtonGroup from '@atlaskit/button/button-group';
19
+ import LoadingButton from '@atlaskit/button/loading-button';
20
+ import Button from '@atlaskit/button/standard-button';
24
21
  import Field from '@atlaskit/form/field';
25
22
  import { HelperMessage } from '@atlaskit/form/helper-message';
26
- import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
27
23
  import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
24
+ import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
28
25
  import { messages } from '@atlaskit/media-ui/messages';
26
+ import ModalBody from '@atlaskit/modal-dialog/modal-body';
27
+ import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
28
+ import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
29
+ import ModalHeader from '@atlaskit/modal-dialog/modal-header';
30
+ import ModalTitle from '@atlaskit/modal-dialog/modal-title';
29
31
  import { Box } from '@atlaskit/primitives/compiled';
30
32
  import Textfield from '@atlaskit/textfield/text-field';
31
33
  import ImageNavigator from '../image-navigator';
32
34
  import { PredefinedAvatarList } from '../predefined-avatar-list';
33
35
  import { PredefinedAvatarView } from '../predefined-avatar-view';
34
- import ButtonGroup from '@atlaskit/button/button-group';
35
36
  import { DEFAULT_VISIBLE_PREDEFINED_AVATARS } from './layout-const';
36
37
  import { AVATAR_DIALOG_WIDTH, AVATAR_DIALOG_HEIGHT, CONTAINER_INNER_SIZE } from './layout-const';
37
- import { Mode } from './types';
38
38
  import { SRLiveTitle } from './SRLiveTitle';
39
- import LoadingButton from '@atlaskit/button/loading-button';
40
39
  import { SubmitErrorDialog } from './SubmitErrorDialog';
40
+ import { Mode } from './types';
41
41
  export var MAX_SIZE_MB = 10;
42
42
  export var ERROR = {
43
43
  URL: messages.image_url_invalid_error,
@@ -14,16 +14,16 @@ 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 CrossIcon from '@atlaskit/icon/core/cross';
18
17
  import { injectIntl } from 'react-intl';
19
- import { messages } from '@atlaskit/media-ui/messages';
20
- import { MediaImage } from '@atlaskit/media-ui/mediaImage';
21
- import { isImageRemote } from './isImageRemote';
22
18
  import IconButton from '@atlaskit/button/icon/button';
23
- import { Box } from '@atlaskit/primitives/compiled';
24
19
  import { cx } from '@atlaskit/css';
20
+ import CrossIcon from '@atlaskit/icon/core/cross';
21
+ import { MediaImage } from '@atlaskit/media-ui/mediaImage';
22
+ import { messages } from '@atlaskit/media-ui/messages';
23
+ import { Box } from '@atlaskit/primitives/compiled';
25
24
  import { ERROR } from '../avatar-picker-dialog';
26
25
  import { CONTAINER_INNER_SIZE } from '../avatar-picker-dialog/layout-const';
26
+ import { isImageRemote } from './isImageRemote';
27
27
  var CONTAINER_PADDING = 28;
28
28
  var removeImageContainerStyles = {
29
29
  root: "_kqswstnw _1xi21b66 _154i1b66"
@@ -14,26 +14,26 @@ 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 * as exenv from 'exenv';
17
18
  import { FormattedMessage, injectIntl } from 'react-intl';
18
19
  import Button from '@atlaskit/button/standard-button';
19
- import ImageCropper from '../image-cropper';
20
- import Spinner from '@atlaskit/spinner/spinner';
21
- import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
22
20
  import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
21
+ import { Ellipsify } from '@atlaskit/media-ui/ellipsify/ellipsify';
22
+ import { fileToDataURI } from '@atlaskit/media-ui/fileToDataURI';
23
23
  import { getOrientation } from '@atlaskit/media-ui/imageMetaData/getOrientation';
24
24
  import { isRotated } from '@atlaskit/media-ui/imageMetaData/isRotated';
25
- import { Ellipsify } from '@atlaskit/media-ui/ellipsify/ellipsify';
26
- import { Vector2 } from '@atlaskit/media-ui/vector2';
27
25
  import { messages } from '@atlaskit/media-ui/messages';
28
- import * as exenv from 'exenv';
29
- import { uploadPlaceholder, errorIcon } from './images';
30
- import { fileSizeMb } from '../util';
26
+ import { Vector2 } from '@atlaskit/media-ui/vector2';
27
+ import Spinner from '@atlaskit/spinner/spinner';
31
28
  import { ERROR, MAX_SIZE_MB, ACCEPT } from '../avatar-picker-dialog';
32
- import { Viewport } from '../viewport';
33
- import Slider from './slider';
34
29
  import { CONTAINER_SIZE, CONTAINER_PADDING, IMAGE_MOVE_UNIT } from '../avatar-picker-dialog/layout-const';
30
+ import ImageCropper from '../image-cropper';
31
+ import { fileSizeMb } from '../util';
32
+ import { Viewport } from '../viewport';
35
33
  import { DragZone } from './dragZone';
36
34
  import { exportCroppedImage } from './exportCroppedImage';
35
+ import { uploadPlaceholder, errorIcon } from './images';
36
+ import Slider from './slider';
37
37
  var checkeredBg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjg8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjg8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZGM6c3ViamVjdD4KICAgICAgICAgICAgPHJkZjpTZXEvPgogICAgICAgICA8L2RjOnN1YmplY3Q+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4OjA3OjE4IDEwOjA3OjUwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5QaXhlbG1hdG9yIDMuNy4zPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsp//0AAAAKUlEQVQIHWP8//8/Aww8ffoUxmRggrPQGKRLsCCbKy0tDTeQdKNw6gAAbSMIvvnXfF4AAAAASUVORK5CYII=';
38
38
  export var AVATAR_DIALOG_WIDTH = 375;
39
39
  var containerStyles = null;
@@ -11,12 +11,12 @@ import { ax, ix } from "@compiled/react/runtime";
11
11
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import { Component } from 'react';
14
- import FieldRange from '@atlaskit/range/range';
15
- import { messages } from '@atlaskit/media-ui/messages';
14
+ import { injectIntl } from 'react-intl';
15
+ import Button from '@atlaskit/button/standard-button';
16
16
  import ScaleLargeIcon from '@atlaskit/icon/core/image';
17
17
  import ScaleSmallIcon from '@atlaskit/icon/core/image';
18
- import Button from '@atlaskit/button/standard-button';
19
- import { injectIntl } from 'react-intl';
18
+ import { messages } from '@atlaskit/media-ui/messages';
19
+ import FieldRange from '@atlaskit/range/range';
20
20
  export var defaultProps = {
21
21
  value: 0
22
22
  };
@@ -8,8 +8,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React from 'react';
10
10
  import { isImageRemote } from '../image-cropper/isImageRemote';
11
- import { ImageWrapper } from './imageWrapper';
12
11
  import { isSSR } from '../util';
12
+ import { ImageWrapper } from './imageWrapper';
13
13
  // TODO: i18n https://product-fabric.atlassian.net/browse/MS-1261
14
14
  export var IMAGE_ERRORS = {
15
15
  BAD_URL: 'Invalid image url',
@@ -1,8 +1,8 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
4
- import { loadImage } from '@atlaskit/media-ui/loadImage';
5
3
  import { getOrientation } from '@atlaskit/media-ui/imageMetaData/getOrientation';
4
+ import { loadImage } from '@atlaskit/media-ui/loadImage';
5
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
6
6
  import { getCanvas } from '../util';
7
7
  export function radians(deg) {
8
8
  return deg * (Math.PI / 180);
@@ -12,20 +12,19 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
12
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
14
  import React from 'react';
15
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
16
- import { Vector2 } from '@atlaskit/media-ui/vector2';
17
15
  import { Bounds } from '@atlaskit/media-ui/bounds';
18
16
  import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
19
17
  import { getFileInfo } from '@atlaskit/media-ui/getFileInfo';
20
18
  import { getFileInfoFromSrc } from '@atlaskit/media-ui/getFileInfoFromSrc';
19
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
20
+ import { Vector2 } from '@atlaskit/media-ui/vector2';
21
+ import { isSSR } from '../util';
22
+ import { zoomToFit as _zoomToFit, applyConstraints as _applyConstraints, transformVisibleBoundsToImageCoords as _transformVisibleBoundsToImageCoords } from './constraints';
21
23
  import { ImagePlacerContainer } from './container';
22
24
  import { ImagePlacerImage } from './image';
23
- import { Margin } from './margin';
24
- import { initialiseImagePreview, renderImageAtCurrentView } from './imageProcessor';
25
- import { zoomToFit as _zoomToFit, applyConstraints as _applyConstraints, transformVisibleBoundsToImageCoords as _transformVisibleBoundsToImageCoords } from './constraints';
26
25
  import { ImagePlacerErrorWrapper } from './imagePlacerErrorWrapper';
27
- import { isSSR } from '../util';
28
-
26
+ import { initialiseImagePreview, renderImageAtCurrentView } from './imageProcessor';
27
+ import { Margin } from './margin';
29
28
  /*
30
29
  "container(Width|Height)" is the outputed size of the final image plus "margin"s.
31
30
  "visibleBounds" is the exact output size of the final image
@@ -43,7 +42,6 @@ import { isSSR } from '../util';
43
42
  | +------------------+ |
44
43
  +------------------------+
45
44
  */
46
-
47
45
  /* pass onImageActions prop function to receive an object with this API to access image at current view */
48
46
 
49
47
  /* immutable prop defaults */
@@ -54,8 +52,10 @@ export var DEFAULT_ZOOM = 0;
54
52
  export var DEFAULT_ORIGIN_X = 0;
55
53
  export var DEFAULT_ORIGIN_Y = 0;
56
54
  export var DEFAULT_USE_CONSTRAINTS = true;
57
- export var DEFAULT_USE_CIRCULAR = false; /* whether or not to apply a circular margin to image while positioning */
58
- export var DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = false; /* whether or not to apply a circular clip when rendering via actions */
55
+ export var DEFAULT_USE_CIRCULAR = false;
56
+ /* whether or not to apply a circular margin to image while positioning */
57
+ export var DEFAULT_USE_CIRCULAR_CLIP_WITH_ACTIONS = false;
58
+ /* whether or not to apply a circular clip when rendering via actions */
59
59
  export var DEFAULT_BACKGROUND_COLOR = 'transparent';
60
60
  export var defaultProps = {
61
61
  containerWidth: DEFAULT_CONTAINER_SIZE,
@@ -2,12 +2,12 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { AvatarList } from '../avatar-list';
6
- import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
7
- import Button from '@atlaskit/button/standard-button';
5
+ import { forwardRef } from 'react';
8
6
  import { useIntl } from 'react-intl';
7
+ import Button from '@atlaskit/button/standard-button';
8
+ import EditorMoreIcon from '@atlaskit/icon/core/show-more-horizontal';
9
9
  import { messages } from '@atlaskit/media-ui/messages';
10
- import { forwardRef } from 'react';
10
+ import { AvatarList } from '../avatar-list';
11
11
  var predefinedAvatarsWrapperStyles = null;
12
12
  var showMoreButtonStyles = null;
13
13
  export var PredefinedAvatarList = /*#__PURE__*/forwardRef(function (_ref, moreRef) {
@@ -6,11 +6,11 @@ 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 { forwardRef, useState } from 'react';
9
10
  import { FormattedMessage, useIntl } from 'react-intl';
10
- import { messages } from '@atlaskit/media-ui/messages';
11
- import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
12
11
  import Button from '@atlaskit/button/standard-button';
13
- import { forwardRef, useState } from 'react';
12
+ import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
13
+ import { messages } from '@atlaskit/media-ui/messages';
14
14
  var largeAvatarImageStyles = null;
15
15
  var largeAvatarImageCheckedStyles = null;
16
16
  var largeAvatarImageFocusedStyles = null;
@@ -1,8 +1,8 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
5
4
  import { Bounds } from '@atlaskit/media-ui/bounds';
5
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
6
6
  import { Vector2 } from '@atlaskit/media-ui/vector2';
7
7
 
8
8
  /**
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  export interface Avatar {
2
6
  dataURI: string;
3
7
  name?: string;
@@ -1 +1,5 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  export declare const SubmitErrorDialog: () => JSX.Element;
@@ -1 +1,5 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  export declare const DragZone: ({ showBorder, isDroppingFile, children, ...props }: any) => JSX.Element;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  import { Component, type ComponentType, type FC } from 'react';
2
6
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
7
  export interface SliderProps {
@@ -1,5 +1,5 @@
1
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
2
1
  import type { Bounds } from '@atlaskit/media-ui/bounds';
2
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
3
3
  import { Vector2 } from '@atlaskit/media-ui/vector2';
4
4
  export declare function zoomToFit(imageWidth: number, imageHeight: number, visibleBounds: Bounds): Rectangle;
5
5
  export declare function applyConstraints(useConstraints: boolean, imageBounds: Bounds, visibleBounds: Bounds): Vector2;
@@ -1,6 +1,6 @@
1
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
2
1
  import type { Bounds } from '@atlaskit/media-ui/bounds';
3
2
  import type { FileInfo } from '@atlaskit/media-ui/imageMetaData/types';
3
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
4
4
  export declare function radians(deg: number): number;
5
5
  export interface ViewInfo {
6
6
  containerRect: Rectangle;
@@ -1,8 +1,12 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  import React from 'react';
2
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
3
- import { Vector2 } from '@atlaskit/media-ui/vector2';
4
6
  import { Bounds } from '@atlaskit/media-ui/bounds';
5
7
  import type { FileInfo } from '@atlaskit/media-ui/imageMetaData/types';
8
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
9
+ import { Vector2 } from '@atlaskit/media-ui/vector2';
6
10
  export interface ImageActions {
7
11
  toCanvas: () => HTMLCanvasElement;
8
12
  toDataURL: () => string;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  import React from 'react';
2
6
  export interface MarginProps {
3
7
  width: number;
@@ -1,5 +1,9 @@
1
- import { type Avatar } from '../avatar-list';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
6
+ import { type Avatar } from '../avatar-list';
3
7
  export interface PredefinedAvatarListProps {
4
8
  avatars: Array<Avatar>;
5
9
  selectedAvatar?: Avatar;
@@ -1,5 +1,9 @@
1
- import { type Avatar } from '../avatar-list';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
6
+ import { type Avatar } from '../avatar-list';
3
7
  export interface PredefinedAvatarViewProps {
4
8
  avatars: Array<Avatar>;
5
9
  onGoBack?: () => void;
@@ -1,5 +1,5 @@
1
- import { Rectangle } from '@atlaskit/media-ui/rectangle';
2
1
  import { Bounds } from '@atlaskit/media-ui/bounds';
2
+ import { Rectangle } from '@atlaskit/media-ui/rectangle';
3
3
  import { Vector2 } from '@atlaskit/media-ui/vector2';
4
4
  /**
5
5
  * maximum amount to allow scaling up from "100%"
@@ -4,11 +4,14 @@
4
4
  */
5
5
  /* eslint-disable no-console */
6
6
  import React, { type ReactNode } from 'react';
7
+
7
8
  import { jsx, css } from '@compiled/react';
9
+
8
10
  import Button from '@atlaskit/button/standard-button';
9
11
  import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
10
- import { type Avatar, AvatarPickerDialog } from '../src';
12
+
11
13
  import { generateAvatars } from '../example-helpers';
14
+ import { type Avatar, AvatarPickerDialog } from '../src';
12
15
  import {
13
16
  type AvatarPickerDialogPropsAlt,
14
17
  type AvatarPickerDialogPropsNoAlt,
@@ -1,7 +1,8 @@
1
1
  import { Bounds } from '@atlaskit/media-ui/bounds';
2
+
3
+ import { viewport as instance } from '../src/image-navigator';
2
4
  import { type Viewport } from '../src/viewport/viewport';
3
5
  import { renderViewport } from '../src/viewport/viewport-render';
4
- import { viewport as instance } from '../src/image-navigator';
5
6
 
6
7
  /**
7
8
  * This is a helper class to render debug info for a viewport.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-avatar-picker",
3
- "version": "28.3.2",
3
+ "version": "28.3.3",
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/"
@@ -33,7 +33,7 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/button": "^25.3.0",
36
+ "@atlaskit/button": "^25.4.0",
37
37
  "@atlaskit/css": "^1.1.0",
38
38
  "@atlaskit/flag": "^18.5.0",
39
39
  "@atlaskit/form": "^17.2.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/react-compiler-gating": "^0.2.0",
47
47
  "@atlaskit/spinner": "^20.4.0",
48
48
  "@atlaskit/textfield": "^10.2.0",
49
- "@atlaskit/tokens": "^18.0.0",
49
+ "@atlaskit/tokens": "^19.0.0",
50
50
  "@atlaskit/visually-hidden": "^4.4.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@compiled/react": "^1.0.2",
@@ -65,6 +65,7 @@
65
65
  "@atlassian/a11y-jest-testing": "^0.17.0",
66
66
  "@atlassian/feature-flags-test-utils": "^1.3.0",
67
67
  "@atlassian/testing-library": "^0.11.0",
68
+ "@atlassian/workbench": "workspace:^",
68
69
  "@testing-library/react": "^16.3.0",
69
70
  "@testing-library/user-event": "^14.4.3",
70
71
  "@types/exenv": "^1.2.0",