@atlaskit/media-avatar-picker 24.8.0 → 24.9.1

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/media-avatar-picker
2
2
 
3
+ ## 24.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 24.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#141754](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141754)
14
+ [`71bcccc5aa956`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/71bcccc5aa956) -
15
+ Enable new icons behind a feature flag.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 24.8.0
4
22
 
5
23
  ### Minor Changes
@@ -8,7 +8,7 @@ exports.SubmitErrorDialog = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _react2 = require("react");
10
10
  var _colors = require("@atlaskit/theme/colors");
11
- var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
11
+ var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
12
12
  var _flag = _interopRequireDefault(require("@atlaskit/flag"));
13
13
  var _mediaUi = require("@atlaskit/media-ui");
14
14
  var _reactIntlNext = require("react-intl-next");
@@ -36,7 +36,9 @@ var SubmitErrorDialog = exports.SubmitErrorDialog = function SubmitErrorDialog()
36
36
  appearance: "error",
37
37
  icon: (0, _react.jsx)(_error.default, {
38
38
  label: "Error",
39
- secondaryColor: "var(--ds-background-danger-bold, ".concat(_colors.R400, ")")
39
+ color: "currentColor",
40
+ LEGACY_secondaryColor: "var(--ds-background-danger-bold, ".concat(_colors.R400, ")"),
41
+ spacing: "spacious"
40
42
  }),
41
43
  id: "avatar-picker-error",
42
44
  key: "error",
@@ -15,7 +15,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
15
15
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _react = _interopRequireWildcard(require("react"));
18
- var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
18
+ var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
19
19
  var _reactIntlNext = require("react-intl-next");
20
20
  var _mediaUi = require("@atlaskit/media-ui");
21
21
  var _isImageRemote = require("./isImageRemote");
@@ -186,8 +186,9 @@ var ImageCropper = exports.ImageCropper = /*#__PURE__*/function (_Component) {
186
186
  }, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
187
187
  id: "remove-image-button",
188
188
  icon: function icon(iconProps) {
189
- return /*#__PURE__*/_react.default.createElement(_cross.default, (0, _extends2.default)({}, iconProps, {
190
- size: "small"
189
+ return /*#__PURE__*/_react.default.createElement(_closeCross.default, (0, _extends2.default)({}, iconProps, {
190
+ LEGACY_size: "small",
191
+ color: "currentColor"
191
192
  }));
192
193
  },
193
194
  onClick: onRemoveImage,
@@ -47,7 +47,9 @@ var Slider = exports.Slider = /*#__PURE__*/function (_Component) {
47
47
  }, (0, _react.jsx)(_standardButton.default
48
48
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
49
49
  , {
50
- className: "zoom_button zoom_button_small",
50
+ className: "zoom_button zoom_button_small"
51
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20874
52
+ ,
51
53
  iconAfter: (0, _react.jsx)(_scaleSmall.default, {
52
54
  label: "scale-small-icon"
53
55
  }),
@@ -60,7 +62,9 @@ var Slider = exports.Slider = /*#__PURE__*/function (_Component) {
60
62
  }), (0, _react.jsx)(_standardButton.default
61
63
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
62
64
  , {
63
- className: "zoom_button zoom_button_large",
65
+ className: "zoom_button zoom_button_large"
66
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20874
67
+ ,
64
68
  iconAfter: (0, _react.jsx)(_scaleLarge.default, {
65
69
  label: "scale-large-icon"
66
70
  }),
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.PredefinedAvatarList = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _avatarList = require("../avatar-list");
10
- var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/more"));
10
+ var _showMoreHorizontalEditorMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--editor-more"));
11
11
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
12
12
  var _styles = require("./styles");
13
13
  var _reactIntlNext = require("react-intl-next");
@@ -43,9 +43,10 @@ var PredefinedAvatarList = exports.PredefinedAvatarList = function PredefinedAva
43
43
  ,
44
44
  className: "show-more-button",
45
45
  appearance: "subtle",
46
- iconAfter: (0, _react.jsx)(_more.default, {
46
+ iconAfter: (0, _react.jsx)(_showMoreHorizontalEditorMore.default, {
47
47
  label: "",
48
- size: "large"
48
+ LEGACY_size: "large",
49
+ color: "currentColor"
49
50
  }),
50
51
  onClick: onShowMore
51
52
  }))
@@ -9,7 +9,7 @@ var _react = require("@emotion/react");
9
9
  var _reactIntlNext = require("react-intl-next");
10
10
  var _mediaUi = require("@atlaskit/media-ui");
11
11
  var _styles = require("./styles");
12
- var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-left"));
12
+ var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-left"));
13
13
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
14
14
  /**
15
15
  * @jsxRuntime classic
@@ -63,6 +63,7 @@ var PredefinedAvatarView = exports.PredefinedAvatarView = function PredefinedAva
63
63
  ,
64
64
  className: "back-button",
65
65
  iconAfter: (0, _react.jsx)(_arrowLeft.default, {
66
+ color: "currentColor",
66
67
  label: ""
67
68
  }),
68
69
  onClick: onGoBack
@@ -6,7 +6,7 @@
6
6
  import { jsx } from '@emotion/react';
7
7
  import { useRef, useEffect } from 'react';
8
8
  import { R400 } from '@atlaskit/theme/colors';
9
- import ErrorIcon from '@atlaskit/icon/glyph/error';
9
+ import ErrorIcon from '@atlaskit/icon/core/migration/error';
10
10
  import Flag from '@atlaskit/flag';
11
11
  import { messages } from '@atlaskit/media-ui';
12
12
  import { useIntl } from 'react-intl-next';
@@ -28,7 +28,9 @@ export const SubmitErrorDialog = () => {
28
28
  appearance: "error",
29
29
  icon: jsx(ErrorIcon, {
30
30
  label: "Error",
31
- secondaryColor: `var(--ds-background-danger-bold, ${R400})`
31
+ color: "currentColor",
32
+ LEGACY_secondaryColor: `var(--ds-background-danger-bold, ${R400})`,
33
+ spacing: "spacious"
32
34
  }),
33
35
  id: "avatar-picker-error",
34
36
  key: "error",
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React from 'react';
4
4
  import { Component } from 'react';
5
- import CrossIcon from '@atlaskit/icon/glyph/cross';
5
+ import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
6
6
  import { injectIntl } from 'react-intl-next';
7
7
  import { messages, MediaImage } from '@atlaskit/media-ui';
8
8
  import { isImageRemote } from './isImageRemote';
@@ -166,7 +166,8 @@ export class ImageCropper extends Component {
166
166
  }, /*#__PURE__*/React.createElement(IconButton, {
167
167
  id: "remove-image-button",
168
168
  icon: iconProps => /*#__PURE__*/React.createElement(CrossIcon, _extends({}, iconProps, {
169
- size: "small"
169
+ LEGACY_size: "small",
170
+ color: "currentColor"
170
171
  })),
171
172
  onClick: onRemoveImage,
172
173
  label: formatMessage(messages.remove_image),
@@ -28,7 +28,9 @@ export class Slider extends Component {
28
28
  }, jsx(Button
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
30
30
  , {
31
- className: "zoom_button zoom_button_small",
31
+ className: "zoom_button zoom_button_small"
32
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20874
33
+ ,
32
34
  iconAfter: jsx(ScaleSmallIcon, {
33
35
  label: "scale-small-icon"
34
36
  }),
@@ -39,7 +41,9 @@ export class Slider extends Component {
39
41
  }), jsx(Button
40
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
41
43
  , {
42
- className: "zoom_button zoom_button_large",
44
+ className: "zoom_button zoom_button_large"
45
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20874
46
+ ,
43
47
  iconAfter: jsx(ScaleLargeIcon, {
44
48
  label: "scale-large-icon"
45
49
  }),
@@ -5,7 +5,7 @@
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { jsx } from '@emotion/react';
7
7
  import { AvatarList } from '../avatar-list';
8
- import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
8
+ import EditorMoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
9
9
  import Button from '@atlaskit/button/standard-button';
10
10
  import { predefinedAvatarsWrapperStyles } from './styles';
11
11
  import { useIntl } from 'react-intl-next';
@@ -37,7 +37,8 @@ export const PredefinedAvatarList = ({
37
37
  appearance: "subtle",
38
38
  iconAfter: jsx(EditorMoreIcon, {
39
39
  label: "",
40
- size: "large"
40
+ LEGACY_size: "large",
41
+ color: "currentColor"
41
42
  }),
42
43
  onClick: onShowMore
43
44
  }))
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
7
7
  import { FormattedMessage, useIntl } from 'react-intl-next';
8
8
  import { messages } from '@atlaskit/media-ui';
9
9
  import { largeAvatarImageStyles, predefinedAvatarViewWrapperStyles } from './styles';
10
- import ArrowLeftIcon from '@atlaskit/icon/glyph/arrow-left';
10
+ import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left';
11
11
  import Button from '@atlaskit/button/standard-button';
12
12
  export const PredefinedAvatarView = ({
13
13
  avatars = [],
@@ -55,6 +55,7 @@ export const PredefinedAvatarView = ({
55
55
  ,
56
56
  className: "back-button",
57
57
  iconAfter: jsx(ArrowLeftIcon, {
58
+ color: "currentColor",
58
59
  label: ""
59
60
  }),
60
61
  onClick: onGoBack
@@ -6,7 +6,7 @@
6
6
  import { jsx } from '@emotion/react';
7
7
  import { useRef, useEffect } from 'react';
8
8
  import { R400 } from '@atlaskit/theme/colors';
9
- import ErrorIcon from '@atlaskit/icon/glyph/error';
9
+ import ErrorIcon from '@atlaskit/icon/core/migration/error';
10
10
  import Flag from '@atlaskit/flag';
11
11
  import { messages } from '@atlaskit/media-ui';
12
12
  import { useIntl } from 'react-intl-next';
@@ -28,7 +28,9 @@ export var SubmitErrorDialog = function SubmitErrorDialog() {
28
28
  appearance: "error",
29
29
  icon: jsx(ErrorIcon, {
30
30
  label: "Error",
31
- secondaryColor: "var(--ds-background-danger-bold, ".concat(R400, ")")
31
+ color: "currentColor",
32
+ LEGACY_secondaryColor: "var(--ds-background-danger-bold, ".concat(R400, ")"),
33
+ spacing: "spacious"
32
34
  }),
33
35
  id: "avatar-picker-error",
34
36
  key: "error",
@@ -10,7 +10,7 @@ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React from 'react';
12
12
  import { Component } from 'react';
13
- import CrossIcon from '@atlaskit/icon/glyph/cross';
13
+ import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
14
14
  import { injectIntl } from 'react-intl-next';
15
15
  import { messages, MediaImage } from '@atlaskit/media-ui';
16
16
  import { isImageRemote } from './isImageRemote';
@@ -178,7 +178,8 @@ export var ImageCropper = /*#__PURE__*/function (_Component) {
178
178
  id: "remove-image-button",
179
179
  icon: function icon(iconProps) {
180
180
  return /*#__PURE__*/React.createElement(CrossIcon, _extends({}, iconProps, {
181
- size: "small"
181
+ LEGACY_size: "small",
182
+ color: "currentColor"
182
183
  }));
183
184
  },
184
185
  onClick: onRemoveImage,
@@ -42,7 +42,9 @@ export var Slider = /*#__PURE__*/function (_Component) {
42
42
  }, jsx(Button
43
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
44
44
  , {
45
- className: "zoom_button zoom_button_small",
45
+ className: "zoom_button zoom_button_small"
46
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20874
47
+ ,
46
48
  iconAfter: jsx(ScaleSmallIcon, {
47
49
  label: "scale-small-icon"
48
50
  }),
@@ -55,7 +57,9 @@ export var Slider = /*#__PURE__*/function (_Component) {
55
57
  }), jsx(Button
56
58
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
57
59
  , {
58
- className: "zoom_button zoom_button_large",
60
+ className: "zoom_button zoom_button_large"
61
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20874
62
+ ,
59
63
  iconAfter: jsx(ScaleLargeIcon, {
60
64
  label: "scale-large-icon"
61
65
  }),
@@ -5,7 +5,7 @@
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { jsx } from '@emotion/react';
7
7
  import { AvatarList } from '../avatar-list';
8
- import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
8
+ import EditorMoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
9
9
  import Button from '@atlaskit/button/standard-button';
10
10
  import { predefinedAvatarsWrapperStyles } from './styles';
11
11
  import { useIntl } from 'react-intl-next';
@@ -37,7 +37,8 @@ export var PredefinedAvatarList = function PredefinedAvatarList(_ref) {
37
37
  appearance: "subtle",
38
38
  iconAfter: jsx(EditorMoreIcon, {
39
39
  label: "",
40
- size: "large"
40
+ LEGACY_size: "large",
41
+ color: "currentColor"
41
42
  }),
42
43
  onClick: onShowMore
43
44
  }))
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
7
7
  import { FormattedMessage, useIntl } from 'react-intl-next';
8
8
  import { messages } from '@atlaskit/media-ui';
9
9
  import { largeAvatarImageStyles, predefinedAvatarViewWrapperStyles } from './styles';
10
- import ArrowLeftIcon from '@atlaskit/icon/glyph/arrow-left';
10
+ import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left';
11
11
  import Button from '@atlaskit/button/standard-button';
12
12
  export var PredefinedAvatarView = function PredefinedAvatarView(_ref) {
13
13
  var _ref$avatars = _ref.avatars,
@@ -55,6 +55,7 @@ export var PredefinedAvatarView = function PredefinedAvatarView(_ref) {
55
55
  ,
56
56
  className: "back-button",
57
57
  iconAfter: jsx(ArrowLeftIcon, {
58
+ color: "currentColor",
58
59
  label: ""
59
60
  }),
60
61
  onClick: onGoBack
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-avatar-picker",
3
- "version": "24.8.0",
3
+ "version": "24.9.1",
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,18 +33,18 @@
33
33
  "runReact18": true
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/button": "^20.1.0",
36
+ "@atlaskit/button": "^20.2.0",
37
37
  "@atlaskit/flag": "^15.8.0",
38
38
  "@atlaskit/form": "^10.5.0",
39
39
  "@atlaskit/icon": "^22.18.0",
40
- "@atlaskit/media-ui": "^25.12.0",
41
- "@atlaskit/modal-dialog": "^12.15.0",
42
- "@atlaskit/primitives": "^12.1.0",
40
+ "@atlaskit/media-ui": "^25.15.0",
41
+ "@atlaskit/modal-dialog": "^12.17.0",
42
+ "@atlaskit/primitives": "^12.2.0",
43
43
  "@atlaskit/range": "^7.4.0",
44
44
  "@atlaskit/spinner": "^16.3.0",
45
45
  "@atlaskit/textfield": "^6.5.0",
46
46
  "@atlaskit/theme": "^13.0.0",
47
- "@atlaskit/tokens": "^1.60.0",
47
+ "@atlaskit/tokens": "^2.0.0",
48
48
  "@atlaskit/visually-hidden": "^1.5.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "exenv": "^1.2.2",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@atlaskit/media-core": "^34.3.0",
60
- "@atlaskit/media-test-helpers": "^34.3.0",
60
+ "@atlaskit/media-test-helpers": "^34.4.0",
61
61
  "@atlaskit/visual-regression": "*",
62
62
  "@testing-library/react": "^12.1.5",
63
63
  "@testing-library/user-event": "^14.4.3",