@atlaskit/media-avatar-picker 28.3.1 → 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 (69) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/avatar-list/index.js +1 -1
  3. package/dist/cjs/avatar-picker-dialog/SRLiveTitle.js +1 -1
  4. package/dist/cjs/avatar-picker-dialog/SubmitErrorDialog.js +3 -3
  5. package/dist/cjs/avatar-picker-dialog/index.js +11 -11
  6. package/dist/cjs/image-cropper/index.js +6 -6
  7. package/dist/cjs/image-navigator/dragZone.js +1 -1
  8. package/dist/cjs/image-navigator/index.js +11 -11
  9. package/dist/cjs/image-navigator/slider.js +5 -5
  10. package/dist/cjs/image-placer/containerWrapper.js +1 -1
  11. package/dist/cjs/image-placer/image.js +1 -1
  12. package/dist/cjs/image-placer/imagePlacerErrorWrapper.js +1 -1
  13. package/dist/cjs/image-placer/imageProcessor.js +2 -2
  14. package/dist/cjs/image-placer/imageWrapper.js +1 -1
  15. package/dist/cjs/image-placer/index.js +11 -10
  16. package/dist/cjs/image-placer/margin.js +1 -1
  17. package/dist/cjs/predefined-avatar-list/index.js +4 -4
  18. package/dist/cjs/predefined-avatar-view/index.js +3 -3
  19. package/dist/cjs/viewport/viewport.js +1 -1
  20. package/dist/es2019/avatar-list/index.js +2 -2
  21. package/dist/es2019/avatar-picker-dialog/SRLiveTitle.js +1 -1
  22. package/dist/es2019/avatar-picker-dialog/SubmitErrorDialog.js +3 -3
  23. package/dist/es2019/avatar-picker-dialog/index.js +11 -11
  24. package/dist/es2019/image-cropper/index.js +6 -6
  25. package/dist/es2019/image-navigator/dragZone.js +1 -1
  26. package/dist/es2019/image-navigator/index.js +11 -11
  27. package/dist/es2019/image-navigator/slider.js +5 -5
  28. package/dist/es2019/image-placer/containerWrapper.js +1 -1
  29. package/dist/es2019/image-placer/image.js +1 -1
  30. package/dist/es2019/image-placer/imagePlacerErrorWrapper.js +1 -1
  31. package/dist/es2019/image-placer/imageProcessor.js +2 -2
  32. package/dist/es2019/image-placer/imageWrapper.js +1 -1
  33. package/dist/es2019/image-placer/index.js +11 -11
  34. package/dist/es2019/image-placer/margin.js +1 -1
  35. package/dist/es2019/predefined-avatar-list/index.js +5 -5
  36. package/dist/es2019/predefined-avatar-view/index.js +4 -4
  37. package/dist/es2019/viewport/viewport.js +1 -1
  38. package/dist/esm/avatar-list/index.js +2 -2
  39. package/dist/esm/avatar-picker-dialog/SRLiveTitle.js +1 -1
  40. package/dist/esm/avatar-picker-dialog/SubmitErrorDialog.js +3 -3
  41. package/dist/esm/avatar-picker-dialog/index.js +11 -11
  42. package/dist/esm/image-cropper/index.js +6 -6
  43. package/dist/esm/image-navigator/dragZone.js +1 -1
  44. package/dist/esm/image-navigator/index.js +11 -11
  45. package/dist/esm/image-navigator/slider.js +5 -5
  46. package/dist/esm/image-placer/containerWrapper.js +1 -1
  47. package/dist/esm/image-placer/image.js +1 -1
  48. package/dist/esm/image-placer/imagePlacerErrorWrapper.js +1 -1
  49. package/dist/esm/image-placer/imageProcessor.js +2 -2
  50. package/dist/esm/image-placer/imageWrapper.js +1 -1
  51. package/dist/esm/image-placer/index.js +11 -11
  52. package/dist/esm/image-placer/margin.js +1 -1
  53. package/dist/esm/predefined-avatar-list/index.js +5 -5
  54. package/dist/esm/predefined-avatar-view/index.js +4 -4
  55. package/dist/esm/viewport/viewport.js +1 -1
  56. package/dist/types/avatar-list/index.d.ts +4 -0
  57. package/dist/types/avatar-picker-dialog/SubmitErrorDialog.d.ts +4 -0
  58. package/dist/types/image-navigator/dragZone.d.ts +4 -0
  59. package/dist/types/image-navigator/slider.d.ts +4 -0
  60. package/dist/types/image-placer/constraints.d.ts +1 -1
  61. package/dist/types/image-placer/imageProcessor.d.ts +1 -1
  62. package/dist/types/image-placer/index.d.ts +6 -2
  63. package/dist/types/image-placer/margin.d.ts +4 -0
  64. package/dist/types/predefined-avatar-list/index.d.ts +5 -1
  65. package/dist/types/predefined-avatar-view/index.d.ts +5 -1
  66. package/dist/types/viewport/viewport.d.ts +1 -1
  67. package/example-helpers/StatefulAvatarPickerDialog.tsx +4 -1
  68. package/example-helpers/viewport-debug.ts +2 -1
  69. package/package.json +7 -3
@@ -1,22 +1,21 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  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,
@@ -1,4 +1,4 @@
1
- /* margin.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* margin.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./margin.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,13 +1,13 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
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(({
@@ -1,12 +1,12 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
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
  /**
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./index.compiled.css";
@@ -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();
@@ -1,12 +1,12 @@
1
- /* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  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();
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -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,
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -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"
@@ -1,4 +1,4 @@
1
- /* dragZone.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* dragZone.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["showBorder", "isDroppingFile", "children"];
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -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;
@@ -1,4 +1,4 @@
1
- /* slider.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* slider.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
@@ -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
  };
@@ -1,4 +1,4 @@
1
- /* containerWrapper.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* containerWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["width", "height", "margin", "children"];
@@ -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,4 +1,4 @@
1
- /* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./imagePlacerErrorWrapper.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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);
@@ -1,4 +1,4 @@
1
- /* imageWrapper.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* imageWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["x", "y", "width", "height", "transform"];
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -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,
@@ -1,4 +1,4 @@
1
- /* margin.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* margin.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
@@ -1,13 +1,13 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
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) {
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./index.compiled.css";
@@ -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.