@atlaskit/media-avatar-picker 24.3.15 → 24.3.17
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/image-navigator/index.js +2 -2
- package/dist/cjs/image-navigator/slider.js +3 -3
- package/dist/cjs/predefined-avatar-list/index.js +2 -2
- package/dist/es2019/image-navigator/index.js +1 -1
- package/dist/es2019/image-navigator/slider.js +1 -1
- package/dist/es2019/predefined-avatar-list/index.js +1 -1
- package/dist/esm/image-navigator/index.js +1 -1
- package/dist/esm/image-navigator/slider.js +1 -1
- package/dist/esm/predefined-avatar-list/index.js +1 -1
- package/example-helpers/StatefulAvatarPickerDialog.tsx +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/media-avatar-picker
|
|
2
2
|
|
|
3
|
+
## 24.3.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43370](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43370) [`27164a3be23`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27164a3be23) - Fix imports for atlaskit buttons
|
|
8
|
+
|
|
9
|
+
## 24.3.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 24.3.15
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
19
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
21
|
var _reactIntlNext = require("react-intl-next");
|
|
22
|
-
var
|
|
22
|
+
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
23
23
|
var _imageCropper = _interopRequireDefault(require("../image-cropper"));
|
|
24
24
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
25
25
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
@@ -326,7 +326,7 @@ var ImageNavigator = exports.ImageNavigator = /*#__PURE__*/function (_Component)
|
|
|
326
326
|
}, this.renderDragZone(), isLoading ? null : (0, _react2.jsx)("div", null, (0, _react2.jsx)("p", {
|
|
327
327
|
id: "padded-break",
|
|
328
328
|
css: _styles.paddedBreakStyles
|
|
329
|
-
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, errorMessage ? _mediaUi.messages.try_again : _mediaUi.messages.or)), (0, _react2.jsx)(
|
|
329
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, errorMessage ? _mediaUi.messages.try_again : _mediaUi.messages.or)), (0, _react2.jsx)(_standardButton.default, {
|
|
330
330
|
onClick: this.onUploadButtonClick,
|
|
331
331
|
isDisabled: isLoading,
|
|
332
332
|
testId: "upload-button"
|
|
@@ -16,7 +16,7 @@ var _react2 = require("react");
|
|
|
16
16
|
var _range = _interopRequireDefault(require("@atlaskit/range"));
|
|
17
17
|
var _scaleLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/media-services/scale-large"));
|
|
18
18
|
var _scaleSmall = _interopRequireDefault(require("@atlaskit/icon/glyph/media-services/scale-small"));
|
|
19
|
-
var
|
|
19
|
+
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
20
20
|
var _styles = require("./styles");
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
@@ -38,7 +38,7 @@ var Slider = exports.Slider = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
onChange = _this$props.onChange;
|
|
39
39
|
return (0, _react.jsx)("div", {
|
|
40
40
|
css: _styles.sliderWrapperStyles
|
|
41
|
-
}, (0, _react.jsx)(
|
|
41
|
+
}, (0, _react.jsx)(_standardButton.default, {
|
|
42
42
|
className: "zoom_button zoom_button_small",
|
|
43
43
|
iconAfter: (0, _react.jsx)(_scaleSmall.default, {
|
|
44
44
|
label: "scale-small-icon"
|
|
@@ -49,7 +49,7 @@ var Slider = exports.Slider = /*#__PURE__*/function (_Component) {
|
|
|
49
49
|
}), (0, _react.jsx)(_range.default, {
|
|
50
50
|
value: value,
|
|
51
51
|
onChange: onChange
|
|
52
|
-
}), (0, _react.jsx)(
|
|
52
|
+
}), (0, _react.jsx)(_standardButton.default, {
|
|
53
53
|
className: "zoom_button zoom_button_large",
|
|
54
54
|
iconAfter: (0, _react.jsx)(_scaleLarge.default, {
|
|
55
55
|
label: "scale-large-icon"
|
|
@@ -8,7 +8,7 @@ exports.PredefinedAvatarList = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _avatarList = require("../avatar-list");
|
|
10
10
|
var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/more"));
|
|
11
|
-
var
|
|
11
|
+
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
12
12
|
var _styles = require("./styles");
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
@@ -30,7 +30,7 @@ var PredefinedAvatarList = exports.PredefinedAvatarList = function PredefinedAva
|
|
|
30
30
|
selectedAvatar: selectedAvatar,
|
|
31
31
|
onItemClick: onAvatarSelected,
|
|
32
32
|
selectAvatarLabel: selectAvatarLabel
|
|
33
|
-
}), (0, _react.jsx)(
|
|
33
|
+
}), (0, _react.jsx)(_standardButton.default, {
|
|
34
34
|
"aria-label": intl.formatMessage(_mediaUi.messages.show_more_avatars_btn_label),
|
|
35
35
|
className: "show-more-button",
|
|
36
36
|
appearance: "subtle",
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import { Component } from 'react';
|
|
6
6
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
|
-
import Button from '@atlaskit/button/
|
|
7
|
+
import Button from '@atlaskit/button/standard-button';
|
|
8
8
|
import ImageCropper from '../image-cropper';
|
|
9
9
|
import Spinner from '@atlaskit/spinner';
|
|
10
10
|
import { fileToDataURI, dataURItoFile, getOrientation, isRotated, Ellipsify, Vector2, messages } from '@atlaskit/media-ui';
|
|
@@ -5,7 +5,7 @@ import { Component } from 'react';
|
|
|
5
5
|
import FieldRange from '@atlaskit/range';
|
|
6
6
|
import ScaleLargeIcon from '@atlaskit/icon/glyph/media-services/scale-large';
|
|
7
7
|
import ScaleSmallIcon from '@atlaskit/icon/glyph/media-services/scale-small';
|
|
8
|
-
import Button from '@atlaskit/button/
|
|
8
|
+
import Button from '@atlaskit/button/standard-button';
|
|
9
9
|
import { sliderWrapperStyles } from './styles';
|
|
10
10
|
export const defaultProps = {
|
|
11
11
|
value: 0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { AvatarList } from '../avatar-list';
|
|
4
4
|
import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
5
|
-
import Button from '@atlaskit/button';
|
|
5
|
+
import Button from '@atlaskit/button/standard-button';
|
|
6
6
|
import { predefinedAvatarsWrapperStyles } from './styles';
|
|
7
7
|
import { useIntl } from 'react-intl-next';
|
|
8
8
|
import { messages } from '@atlaskit/media-ui';
|
|
@@ -15,7 +15,7 @@ import React from 'react';
|
|
|
15
15
|
import { jsx } from '@emotion/react';
|
|
16
16
|
import { Component } from 'react';
|
|
17
17
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
18
|
-
import Button from '@atlaskit/button/
|
|
18
|
+
import Button from '@atlaskit/button/standard-button';
|
|
19
19
|
import ImageCropper from '../image-cropper';
|
|
20
20
|
import Spinner from '@atlaskit/spinner';
|
|
21
21
|
import { fileToDataURI, dataURItoFile, getOrientation, isRotated, Ellipsify, Vector2, messages } from '@atlaskit/media-ui';
|
|
@@ -12,7 +12,7 @@ import { Component } from 'react';
|
|
|
12
12
|
import FieldRange from '@atlaskit/range';
|
|
13
13
|
import ScaleLargeIcon from '@atlaskit/icon/glyph/media-services/scale-large';
|
|
14
14
|
import ScaleSmallIcon from '@atlaskit/icon/glyph/media-services/scale-small';
|
|
15
|
-
import Button from '@atlaskit/button/
|
|
15
|
+
import Button from '@atlaskit/button/standard-button';
|
|
16
16
|
import { sliderWrapperStyles } from './styles';
|
|
17
17
|
export var defaultProps = {
|
|
18
18
|
value: 0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { AvatarList } from '../avatar-list';
|
|
4
4
|
import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
5
|
-
import Button from '@atlaskit/button';
|
|
5
|
+
import Button from '@atlaskit/button/standard-button';
|
|
6
6
|
import { predefinedAvatarsWrapperStyles } from './styles';
|
|
7
7
|
import { useIntl } from 'react-intl-next';
|
|
8
8
|
import { messages } from '@atlaskit/media-ui';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import Button from '@atlaskit/button/
|
|
5
|
+
import Button from '@atlaskit/button/standard-button';
|
|
6
6
|
import { ModalTransition } from '@atlaskit/modal-dialog';
|
|
7
7
|
import {
|
|
8
8
|
Avatar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-avatar-picker",
|
|
3
|
-
"version": "24.3.
|
|
3
|
+
"version": "24.3.17",
|
|
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/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/button": "^16.16.0",
|
|
38
38
|
"@atlaskit/flag": "^15.2.0",
|
|
39
|
-
"@atlaskit/icon": "^
|
|
39
|
+
"@atlaskit/icon": "^22.0.0",
|
|
40
40
|
"@atlaskit/media-ui": "^25.0.0",
|
|
41
41
|
"@atlaskit/modal-dialog": "^12.8.0",
|
|
42
42
|
"@atlaskit/range": "^7.1.0",
|