@atlaskit/media-avatar-picker 26.1.11 → 26.2.0

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/.agent.md CHANGED
@@ -1,22 +1,29 @@
1
1
  # Media Avatar Picker - Agent Documentation
2
2
 
3
3
  ## Overview
4
- The `@atlaskit/media-avatar-picker` package provides components for selecting, uploading, and cropping avatar images. It includes both local image upload functionality and predefined avatar selection.
4
+
5
+ The `@atlaskit/media-avatar-picker` package provides components for selecting, uploading, and
6
+ cropping avatar images. It includes both local image upload functionality and predefined avatar
7
+ selection.
5
8
 
6
9
  ## Key Components
7
10
 
8
11
  ### AvatarPickerDialog
12
+
9
13
  Main dialog component that orchestrates the avatar selection experience.
10
14
 
11
15
  ### ImageCropper
16
+
12
17
  Interactive component for cropping uploaded images with keyboard and mouse support.
13
18
 
14
19
  ### ImageNavigator
20
+
15
21
  Component that handles image upload, display, and basic navigation controls.
16
22
 
17
23
  ## Accessibility Features
18
24
 
19
25
  ### Image Cropper Accessibility
26
+
20
27
  The image cropper component has been designed with accessibility in mind:
21
28
 
22
29
  - **Keyboard Navigation**: Users can navigate and crop images using arrow keys
@@ -25,35 +32,43 @@ The image cropper component has been designed with accessibility in mind:
25
32
  - **Live Announcements**: Real-time feedback for image movements via aria-live regions
26
33
 
27
34
  #### Recent Accessibility Improvements (2025)
28
- - Fixed `aria-prohibited-attr` violation by adding `role="button"` to interactive cropping mask elements
35
+
36
+ - Fixed `aria-prohibited-attr` violation by adding `role="button"` to interactive cropping mask
37
+ elements
29
38
  - Ensured proper semantic meaning for focusable elements with ARIA labels
30
39
  - Maintains WCAG Level A compliance
31
40
 
32
41
  ### Implementation Details
42
+
33
43
  The image cropper mask elements use:
44
+
34
45
  - `role="button"` - Identifies the element as an interactive button
35
46
  - `tabIndex={0}` - Makes the element focusable via keyboard
36
47
  - `aria-label` - Provides descriptive text for screen readers
37
48
  - `onKeyDown` - Handles arrow key navigation for image positioning
38
49
 
39
50
  ## Testing
51
+
40
52
  - All accessibility tests pass with zero violations
41
53
  - Comprehensive keyboard navigation testing
42
54
  - Screen reader compatibility verified
43
55
  - Visual regression tests for different image orientations
44
56
 
45
57
  ## Known Limitations
58
+
46
59
  - Only supports image/gif, image/jpeg, and image/png formats
47
60
  - Maximum file size of 10MB
48
61
  - SVG format not currently supported
49
62
 
50
63
  ## Recent Changes
64
+
51
65
  - **2025-01**: Fixed accessibility violations in image cropper component
52
66
  - Enhanced ARIA support for better screen reader experience
53
67
  - Updated tests to reflect accessibility improvements
54
68
 
55
69
  ## Development Notes
70
+
56
71
  - Follow WCAG guidelines when making changes to interactive elements
57
72
  - Run accessibility tests before submitting changes
58
73
  - Consider keyboard-only users when adding new features
59
- - Ensure proper ARIA attributes for any new focusable elements
74
+ - Ensure proper ARIA attributes for any new focusable elements
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/media-avatar-picker
2
2
 
3
+ ## 26.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#192283](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/192283)
8
+ [`7caa838fc933e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7caa838fc933e) -
9
+ fixing some ts typecheck errors
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 26.1.11
4
16
 
5
17
  ### Patch Changes
@@ -134,7 +134,7 @@ var AvatarPickerDialog = exports.AvatarPickerDialog = /*#__PURE__*/function (_Pu
134
134
  * Initialised with no-op function. Is assigned cropped image exporting
135
135
  * function when internal ImageCropper mounts via this.onImageNavigatorLoad
136
136
  */
137
- (0, _defineProperty2.default)(_this, "exportCroppedImage", function (outputSize) {
137
+ (0, _defineProperty2.default)(_this, "exportCroppedImage", function (_outputSize) {
138
138
  return '';
139
139
  });
140
140
  (0, _defineProperty2.default)(_this, "onSave", function (event) {
@@ -96,7 +96,7 @@ export class AvatarPickerDialog extends PureComponent {
96
96
  * Initialised with no-op function. Is assigned cropped image exporting
97
97
  * function when internal ImageCropper mounts via this.onImageNavigatorLoad
98
98
  */
99
- _defineProperty(this, "exportCroppedImage", outputSize => '');
99
+ _defineProperty(this, "exportCroppedImage", _outputSize => '');
100
100
  _defineProperty(this, "onSave", event => {
101
101
  event.preventDefault();
102
102
  const {
@@ -127,7 +127,7 @@ export var AvatarPickerDialog = /*#__PURE__*/function (_PureComponent) {
127
127
  * Initialised with no-op function. Is assigned cropped image exporting
128
128
  * function when internal ImageCropper mounts via this.onImageNavigatorLoad
129
129
  */
130
- _defineProperty(_this, "exportCroppedImage", function (outputSize) {
130
+ _defineProperty(_this, "exportCroppedImage", function (_outputSize) {
131
131
  return '';
132
132
  });
133
133
  _defineProperty(_this, "onSave", function (event) {
@@ -30,7 +30,7 @@ export declare class AvatarPickerDialog extends PureComponent<AvatarPickerDialog
30
30
  * Initialised with no-op function. Is assigned cropped image exporting
31
31
  * function when internal ImageCropper mounts via this.onImageNavigatorLoad
32
32
  */
33
- exportCroppedImage: (outputSize?: number) => string;
33
+ exportCroppedImage: (_outputSize?: number) => string;
34
34
  onSave: (event: React.FormEvent<HTMLFormElement>) => void;
35
35
  onShowMore: () => void;
36
36
  onGoBack: () => void;
@@ -30,7 +30,7 @@ export declare class AvatarPickerDialog extends PureComponent<AvatarPickerDialog
30
30
  * Initialised with no-op function. Is assigned cropped image exporting
31
31
  * function when internal ImageCropper mounts via this.onImageNavigatorLoad
32
32
  */
33
- exportCroppedImage: (outputSize?: number) => string;
33
+ exportCroppedImage: (_outputSize?: number) => string;
34
34
  onSave: (event: React.FormEvent<HTMLFormElement>) => void;
35
35
  onShowMore: () => void;
36
36
  onGoBack: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-avatar-picker",
3
- "version": "26.1.11",
3
+ "version": "26.2.0",
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/"
@@ -38,11 +38,11 @@
38
38
  "@atlaskit/css": "^0.12.0",
39
39
  "@atlaskit/flag": "^17.3.0",
40
40
  "@atlaskit/form": "^12.0.0",
41
- "@atlaskit/icon": "^27.7.0",
41
+ "@atlaskit/icon": "^27.8.0",
42
42
  "@atlaskit/media-ui": "^28.6.0",
43
43
  "@atlaskit/modal-dialog": "^14.3.0",
44
- "@atlaskit/primitives": "^14.10.0",
45
- "@atlaskit/range": "^9.1.0",
44
+ "@atlaskit/primitives": "^14.11.0",
45
+ "@atlaskit/range": "^9.2.0",
46
46
  "@atlaskit/spinner": "^19.0.0",
47
47
  "@atlaskit/textfield": "^8.0.0",
48
48
  "@atlaskit/theme": "^19.0.0",