@atlaskit/media-avatar-picker 26.4.7 → 26.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/avatar-list/index.js +1 -1
- package/dist/cjs/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
- package/dist/cjs/avatar-picker-dialog/index.js +1 -1
- package/dist/cjs/image-cropper/index.js +1 -1
- package/dist/cjs/image-navigator/dragZone.js +1 -1
- package/dist/cjs/image-navigator/index.js +1 -1
- package/dist/cjs/image-navigator/slider.js +1 -1
- package/dist/cjs/image-placer/containerWrapper.js +1 -1
- package/dist/cjs/image-placer/imagePlacerErrorWrapper.js +1 -1
- package/dist/cjs/image-placer/imageWrapper.js +6 -2
- package/dist/cjs/image-placer/index.js +1 -1
- package/dist/cjs/image-placer/margin.js +1 -1
- package/dist/cjs/predefined-avatar-list/index.js +1 -1
- package/dist/cjs/predefined-avatar-view/index.js +1 -1
- package/dist/es2019/avatar-list/index.js +1 -1
- package/dist/es2019/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
- package/dist/es2019/avatar-picker-dialog/index.js +1 -1
- package/dist/es2019/image-cropper/index.js +1 -1
- package/dist/es2019/image-navigator/dragZone.js +1 -1
- package/dist/es2019/image-navigator/index.js +1 -1
- package/dist/es2019/image-navigator/slider.js +1 -1
- package/dist/es2019/image-placer/containerWrapper.js +1 -1
- package/dist/es2019/image-placer/imagePlacerErrorWrapper.js +1 -1
- package/dist/es2019/image-placer/imageWrapper.js +18 -12
- package/dist/es2019/image-placer/index.js +1 -1
- package/dist/es2019/image-placer/margin.js +1 -1
- package/dist/es2019/predefined-avatar-list/index.js +1 -1
- package/dist/es2019/predefined-avatar-view/index.js +1 -1
- package/dist/esm/avatar-list/index.js +1 -1
- package/dist/esm/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
- package/dist/esm/avatar-picker-dialog/index.js +1 -1
- package/dist/esm/image-cropper/index.js +1 -1
- package/dist/esm/image-navigator/dragZone.js +1 -1
- package/dist/esm/image-navigator/index.js +1 -1
- package/dist/esm/image-navigator/slider.js +1 -1
- package/dist/esm/image-placer/containerWrapper.js +1 -1
- package/dist/esm/image-placer/imagePlacerErrorWrapper.js +1 -1
- package/dist/esm/image-placer/imageWrapper.js +6 -2
- package/dist/esm/image-placer/index.js +1 -1
- package/dist/esm/image-placer/margin.js +1 -1
- package/dist/esm/predefined-avatar-list/index.js +1 -1
- package/dist/esm/predefined-avatar-view/index.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -12,6 +12,8 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
var _reactIntlNext = require("react-intl-next");
|
|
16
|
+
var _mediaUi = require("@atlaskit/media-ui");
|
|
15
17
|
var _excluded = ["x", "y", "width", "height", "transform"];
|
|
16
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); }
|
|
17
19
|
var imageWrapperStyles = null;
|
|
@@ -22,6 +24,7 @@ var ImageWrapper = exports.ImageWrapper = function ImageWrapper(_ref) {
|
|
|
22
24
|
height = _ref.height,
|
|
23
25
|
transform = _ref.transform,
|
|
24
26
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
27
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
25
28
|
return /*#__PURE__*/React.createElement("img", (0, _extends2.default)({
|
|
26
29
|
style: {
|
|
27
30
|
left: "".concat(x, "px"),
|
|
@@ -29,7 +32,8 @@ var ImageWrapper = exports.ImageWrapper = function ImageWrapper(_ref) {
|
|
|
29
32
|
width: "".concat(width, "px"),
|
|
30
33
|
height: "".concat(height, "px"),
|
|
31
34
|
transform: transform
|
|
32
|
-
}
|
|
35
|
+
},
|
|
36
|
+
alt: intl.formatMessage(_mediaUi.messages.image_placer_img_alt)
|
|
33
37
|
}, props, {
|
|
34
38
|
className: (0, _runtime.ax)(["_v56416z2 _kqswstnw _uiztglyw _lcxvglyw"])
|
|
35
39
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./SubmitErrorDialog.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./containerWrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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,10 @@
|
|
|
1
|
-
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./imageWrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { useIntl } from 'react-intl-next';
|
|
7
|
+
import { messages } from '@atlaskit/media-ui';
|
|
6
8
|
const imageWrapperStyles = null;
|
|
7
9
|
export const ImageWrapper = ({
|
|
8
10
|
x,
|
|
@@ -11,14 +13,18 @@ export const ImageWrapper = ({
|
|
|
11
13
|
height,
|
|
12
14
|
transform,
|
|
13
15
|
...props
|
|
14
|
-
}) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
}) => {
|
|
17
|
+
const intl = useIntl();
|
|
18
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
19
|
+
style: {
|
|
20
|
+
left: `${x}px`,
|
|
21
|
+
top: `${y}px`,
|
|
22
|
+
width: `${width}px`,
|
|
23
|
+
height: `${height}px`,
|
|
24
|
+
transform: transform
|
|
25
|
+
},
|
|
26
|
+
alt: intl.formatMessage(messages.image_placer_img_alt)
|
|
27
|
+
}, props, {
|
|
28
|
+
className: ax(["_v56416z2 _kqswstnw _uiztglyw _lcxvglyw"])
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./SubmitErrorDialog.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* dragZone.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* dragZone.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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 v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* slider.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* slider.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./imagePlacerErrorWrapper.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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"];
|
|
5
5
|
import "./imageWrapper.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { useIntl } from 'react-intl-next';
|
|
9
|
+
import { messages } from '@atlaskit/media-ui';
|
|
8
10
|
var imageWrapperStyles = null;
|
|
9
11
|
export var ImageWrapper = function ImageWrapper(_ref) {
|
|
10
12
|
var x = _ref.x,
|
|
@@ -13,6 +15,7 @@ export var ImageWrapper = function ImageWrapper(_ref) {
|
|
|
13
15
|
height = _ref.height,
|
|
14
16
|
transform = _ref.transform,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
var intl = useIntl();
|
|
16
19
|
return /*#__PURE__*/React.createElement("img", _extends({
|
|
17
20
|
style: {
|
|
18
21
|
left: "".concat(x, "px"),
|
|
@@ -20,7 +23,8 @@ export var ImageWrapper = function ImageWrapper(_ref) {
|
|
|
20
23
|
width: "".concat(width, "px"),
|
|
21
24
|
height: "".concat(height, "px"),
|
|
22
25
|
transform: transform
|
|
23
|
-
}
|
|
26
|
+
},
|
|
27
|
+
alt: intl.formatMessage(messages.image_placer_img_alt)
|
|
24
28
|
}, props, {
|
|
25
29
|
className: ax(["_v56416z2 _kqswstnw _uiztglyw _lcxvglyw"])
|
|
26
30
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* margin.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* margin.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-avatar-picker",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.9",
|
|
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/"
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/button": "^23.
|
|
34
|
+
"@atlaskit/button": "^23.10.0",
|
|
35
35
|
"@atlaskit/css": "^0.19.0",
|
|
36
36
|
"@atlaskit/flag": "^17.8.0",
|
|
37
|
-
"@atlaskit/form": "^15.
|
|
38
|
-
"@atlaskit/icon": "^
|
|
37
|
+
"@atlaskit/form": "^15.4.0",
|
|
38
|
+
"@atlaskit/icon": "^33.0.0",
|
|
39
39
|
"@atlaskit/media-ui": "^28.7.0",
|
|
40
40
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
41
41
|
"@atlaskit/primitives": "^18.0.0",
|
|
42
|
-
"@atlaskit/range": "^
|
|
42
|
+
"@atlaskit/range": "^10.0.0",
|
|
43
43
|
"@atlaskit/spinner": "^19.0.0",
|
|
44
44
|
"@atlaskit/textfield": "^8.2.0",
|
|
45
|
-
"@atlaskit/theme": "^
|
|
46
|
-
"@atlaskit/tokens": "^11.
|
|
45
|
+
"@atlaskit/theme": "^22.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
|
-
"@compiled/react": "^0.
|
|
49
|
+
"@compiled/react": "^0.20.0",
|
|
50
50
|
"exenv": "^1.2.2",
|
|
51
51
|
"react-error-boundary": "^3.1.3"
|
|
52
52
|
},
|