@atlaskit/media-avatar-picker 26.4.11 → 26.4.13
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/slider.js +2 -1
- package/dist/es2019/image-navigator/slider.js +2 -1
- package/dist/esm/image-navigator/slider.js +2 -1
- package/dist/types/avatar-picker-dialog/index.d.ts +4 -4
- package/dist/types/image-navigator/slider.d.ts +5 -5
- package/dist/types/predefined-avatar-list/index.d.ts +2 -1
- package/dist/types/predefined-avatar-view/index.d.ts +2 -1
- package/dist/types-ts4.5/avatar-picker-dialog/index.d.ts +4 -4
- package/dist/types-ts4.5/image-navigator/slider.d.ts +5 -5
- package/dist/types-ts4.5/predefined-avatar-list/index.d.ts +2 -1
- package/dist/types-ts4.5/predefined-avatar-view/index.d.ts +2 -1
- package/example-helpers/StatefulAvatarPickerDialog.tsx +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -79,4 +79,5 @@ var Slider = exports.Slider = /*#__PURE__*/function (_Component) {
|
|
|
79
79
|
}]);
|
|
80
80
|
}(_react.Component);
|
|
81
81
|
(0, _defineProperty2.default)(Slider, "defaultProps", defaultProps);
|
|
82
|
-
var
|
|
82
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(Slider);
|
|
83
|
+
var _default = exports.default = _default_1;
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { PureComponent } from 'react';
|
|
7
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import { type Avatar } from '../avatar-list';
|
|
9
9
|
import { type CropProperties } from '../image-navigator';
|
|
10
10
|
import { type LoadParameters } from '../image-navigator/index';
|
|
11
11
|
import { type AvatarPickerDialogProps, type AvatarPickerDialogState } from './types';
|
|
12
12
|
export declare const MAX_SIZE_MB = 10;
|
|
13
13
|
export declare const ERROR: {
|
|
14
|
-
URL:
|
|
15
|
-
FORMAT:
|
|
16
|
-
SIZE:
|
|
14
|
+
URL: MessageDescriptor;
|
|
15
|
+
FORMAT: MessageDescriptor;
|
|
16
|
+
SIZE: MessageDescriptor;
|
|
17
17
|
};
|
|
18
18
|
export declare const ACCEPT: string[];
|
|
19
19
|
export declare const fixedCrop: CropProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
1
|
+
import { Component, type ComponentType, type FC } from 'react';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export interface SliderProps {
|
|
4
4
|
value: number;
|
|
5
5
|
onChange: (value: number) => void;
|
|
@@ -13,7 +13,7 @@ export declare class Slider extends Component<SliderProps & WrappedComponentProp
|
|
|
13
13
|
};
|
|
14
14
|
render(): JSX.Element;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
17
|
-
WrappedComponent:
|
|
16
|
+
declare const _default_1: FC<WithIntlProps<SliderProps & WrappedComponentProps>> & {
|
|
17
|
+
WrappedComponent: ComponentType<SliderProps & WrappedComponentProps>;
|
|
18
18
|
};
|
|
19
|
-
export default
|
|
19
|
+
export default _default_1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Avatar } from '../avatar-list';
|
|
2
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
3
|
export interface PredefinedAvatarListProps {
|
|
3
4
|
avatars: Array<Avatar>;
|
|
4
5
|
selectedAvatar?: Avatar;
|
|
@@ -7,4 +8,4 @@ export interface PredefinedAvatarListProps {
|
|
|
7
8
|
selectAvatarLabel?: string;
|
|
8
9
|
showMoreAvatarsButtonLabel?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const PredefinedAvatarList:
|
|
11
|
+
export declare const PredefinedAvatarList: ForwardRefExoticComponent<PredefinedAvatarListProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Avatar } from '../avatar-list';
|
|
2
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
3
|
export interface PredefinedAvatarViewProps {
|
|
3
4
|
avatars: Array<Avatar>;
|
|
4
5
|
onGoBack?: () => void;
|
|
@@ -7,4 +8,4 @@ export interface PredefinedAvatarViewProps {
|
|
|
7
8
|
predefinedAvatarsText?: string;
|
|
8
9
|
selectAvatarLabel?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const PredefinedAvatarView:
|
|
11
|
+
export declare const PredefinedAvatarView: ForwardRefExoticComponent<PredefinedAvatarViewProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { PureComponent } from 'react';
|
|
7
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import { type MessageDescriptor, type WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import { type Avatar } from '../avatar-list';
|
|
9
9
|
import { type CropProperties } from '../image-navigator';
|
|
10
10
|
import { type LoadParameters } from '../image-navigator/index';
|
|
11
11
|
import { type AvatarPickerDialogProps, type AvatarPickerDialogState } from './types';
|
|
12
12
|
export declare const MAX_SIZE_MB = 10;
|
|
13
13
|
export declare const ERROR: {
|
|
14
|
-
URL:
|
|
15
|
-
FORMAT:
|
|
16
|
-
SIZE:
|
|
14
|
+
URL: MessageDescriptor;
|
|
15
|
+
FORMAT: MessageDescriptor;
|
|
16
|
+
SIZE: MessageDescriptor;
|
|
17
17
|
};
|
|
18
18
|
export declare const ACCEPT: string[];
|
|
19
19
|
export declare const fixedCrop: CropProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
1
|
+
import { Component, type ComponentType, type FC } from 'react';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export interface SliderProps {
|
|
4
4
|
value: number;
|
|
5
5
|
onChange: (value: number) => void;
|
|
@@ -13,7 +13,7 @@ export declare class Slider extends Component<SliderProps & WrappedComponentProp
|
|
|
13
13
|
};
|
|
14
14
|
render(): JSX.Element;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
17
|
-
WrappedComponent:
|
|
16
|
+
declare const _default_1: FC<WithIntlProps<SliderProps & WrappedComponentProps>> & {
|
|
17
|
+
WrappedComponent: ComponentType<SliderProps & WrappedComponentProps>;
|
|
18
18
|
};
|
|
19
|
-
export default
|
|
19
|
+
export default _default_1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Avatar } from '../avatar-list';
|
|
2
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
3
|
export interface PredefinedAvatarListProps {
|
|
3
4
|
avatars: Array<Avatar>;
|
|
4
5
|
selectedAvatar?: Avatar;
|
|
@@ -7,4 +8,4 @@ export interface PredefinedAvatarListProps {
|
|
|
7
8
|
selectAvatarLabel?: string;
|
|
8
9
|
showMoreAvatarsButtonLabel?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const PredefinedAvatarList:
|
|
11
|
+
export declare const PredefinedAvatarList: ForwardRefExoticComponent<PredefinedAvatarListProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Avatar } from '../avatar-list';
|
|
2
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
3
|
export interface PredefinedAvatarViewProps {
|
|
3
4
|
avatars: Array<Avatar>;
|
|
4
5
|
onGoBack?: () => void;
|
|
@@ -7,4 +8,4 @@ export interface PredefinedAvatarViewProps {
|
|
|
7
8
|
predefinedAvatarsText?: string;
|
|
8
9
|
selectAvatarLabel?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const PredefinedAvatarView:
|
|
11
|
+
export declare const PredefinedAvatarView: ForwardRefExoticComponent<PredefinedAvatarViewProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -109,7 +109,7 @@ export default class StatefulAvatarPickerDialog extends React.Component<
|
|
|
109
109
|
this.setState({ altText });
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
renderPicker() {
|
|
112
|
+
renderPicker(): JSX.Element {
|
|
113
113
|
const { isOpen, isLoading } = this.state;
|
|
114
114
|
const { requireAltText } = this.props;
|
|
115
115
|
|
|
@@ -166,7 +166,7 @@ export default class StatefulAvatarPickerDialog extends React.Component<
|
|
|
166
166
|
return <ModalTransition>{isOpen && avatarPickerDialog}</ModalTransition>;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
render() {
|
|
169
|
+
render(): JSX.Element {
|
|
170
170
|
const { imagePreviewSourceViaDataURIAPI, imagePreviewSourceViaFileAPI, altText } = this.state;
|
|
171
171
|
|
|
172
172
|
const { requireAltText } = this.props;
|
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.13",
|
|
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,18 +31,18 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/button": "^23.
|
|
34
|
+
"@atlaskit/button": "^23.11.0",
|
|
35
35
|
"@atlaskit/css": "^0.19.0",
|
|
36
36
|
"@atlaskit/flag": "^17.9.0",
|
|
37
37
|
"@atlaskit/form": "^15.5.0",
|
|
38
38
|
"@atlaskit/icon": "^34.0.0",
|
|
39
39
|
"@atlaskit/media-ui": "^28.7.0",
|
|
40
|
-
"@atlaskit/modal-dialog": "^14.
|
|
41
|
-
"@atlaskit/primitives": "^
|
|
40
|
+
"@atlaskit/modal-dialog": "^14.15.0",
|
|
41
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
42
42
|
"@atlaskit/range": "^10.0.0",
|
|
43
|
-
"@atlaskit/spinner": "^19.
|
|
44
|
-
"@atlaskit/textfield": "^8.
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
43
|
+
"@atlaskit/spinner": "^19.1.0",
|
|
44
|
+
"@atlaskit/textfield": "^8.3.0",
|
|
45
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
46
46
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^0.20.0",
|