@atlaskit/avatar 21.3.6 → 21.3.7
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 +6 -0
- package/dist/cjs/Avatar.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/Avatar.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -5
- package/tmp/api-report-tmp.d.ts +0 -170
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/avatar
|
|
2
2
|
|
|
3
|
+
## 21.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
8
|
+
|
|
3
9
|
## 21.3.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/Avatar.js
CHANGED
|
@@ -22,7 +22,7 @@ var _templateObject;
|
|
|
22
22
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
23
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
24
|
var packageName = "@atlaskit/avatar";
|
|
25
|
-
var packageVersion = "21.3.
|
|
25
|
+
var packageVersion = "21.3.7";
|
|
26
26
|
|
|
27
27
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
28
28
|
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/Avatar.js
CHANGED
|
@@ -10,7 +10,7 @@ import { PresenceWrapper } from './Presence';
|
|
|
10
10
|
import { StatusWrapper } from './Status';
|
|
11
11
|
import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
|
|
12
12
|
const packageName = "@atlaskit/avatar";
|
|
13
|
-
const packageVersion = "21.3.
|
|
13
|
+
const packageVersion = "21.3.7";
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
16
16
|
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/Avatar.js
CHANGED
|
@@ -15,7 +15,7 @@ import { PresenceWrapper } from './Presence';
|
|
|
15
15
|
import { StatusWrapper } from './Status';
|
|
16
16
|
import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
|
|
17
17
|
var packageName = "@atlaskit/avatar";
|
|
18
|
-
var packageVersion = "21.3.
|
|
18
|
+
var packageVersion = "21.3.7";
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
21
21
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.7",
|
|
4
4
|
"description": "An avatar is a visual representation of a user or entity.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,11 +52,9 @@
|
|
|
52
52
|
"react": "^16.8.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"@atlaskit/docs": "*",
|
|
55
|
+
"@af/accessibility-testing": "*",
|
|
57
56
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
58
57
|
"@atlaskit/icon": "^21.12.0",
|
|
59
|
-
"@atlaskit/section-message": "^6.4.0",
|
|
60
58
|
"@atlaskit/ssr": "*",
|
|
61
59
|
"@atlaskit/tooltip": "^17.8.0",
|
|
62
60
|
"@atlaskit/visual-regression": "*",
|
|
@@ -65,7 +63,6 @@
|
|
|
65
63
|
"@testing-library/react": "^12.1.5",
|
|
66
64
|
"@types/jscodeshift": "^0.11.0",
|
|
67
65
|
"color-contrast-checker": "^1.5.0",
|
|
68
|
-
"jest-axe": "^4.0.0",
|
|
69
66
|
"jscodeshift": "^0.13.0",
|
|
70
67
|
"react-dom": "^16.8.0",
|
|
71
68
|
"typescript": "~4.9.5",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/avatar"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { FC } from 'react';
|
|
10
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
11
|
-
import { MouseEventHandler } from 'react';
|
|
12
|
-
import { ReactNode } from 'react';
|
|
13
|
-
import { Ref } from 'react';
|
|
14
|
-
import { RefAttributes } from 'react';
|
|
15
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
16
|
-
|
|
17
|
-
// @public (undocumented)
|
|
18
|
-
export const ACTIVE_SCALE_FACTOR = 0.9;
|
|
19
|
-
|
|
20
|
-
// @public (undocumented)
|
|
21
|
-
export type AppearanceType = 'circle' | 'square';
|
|
22
|
-
|
|
23
|
-
// @public
|
|
24
|
-
const Avatar: ForwardRefExoticComponent<AvatarPropTypes & RefAttributes<HTMLElement>>;
|
|
25
|
-
export default Avatar;
|
|
26
|
-
|
|
27
|
-
// @public (undocumented)
|
|
28
|
-
export const AVATAR_RADIUS: AvatarSizeMap;
|
|
29
|
-
|
|
30
|
-
// @public (undocumented)
|
|
31
|
-
export const AVATAR_SIZES: AvatarSizeMap;
|
|
32
|
-
|
|
33
|
-
// @public (undocumented)
|
|
34
|
-
export type AvatarClickEventHandler = (event: React.MouseEvent, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
35
|
-
|
|
36
|
-
// @public
|
|
37
|
-
export const AvatarItem: ForwardRefExoticComponent<AvatarItemProps & RefAttributes<HTMLElement>>;
|
|
38
|
-
|
|
39
|
-
// @public (undocumented)
|
|
40
|
-
export interface AvatarItemProps {
|
|
41
|
-
avatar: ReactNode;
|
|
42
|
-
backgroundColor?: string;
|
|
43
|
-
children?: (props: CustomAvatarItemProps) => ReactNode;
|
|
44
|
-
href?: string;
|
|
45
|
-
isDisabled?: boolean;
|
|
46
|
-
isTruncationDisabled?: boolean;
|
|
47
|
-
label?: string;
|
|
48
|
-
onClick?: AvatarClickEventHandler;
|
|
49
|
-
primaryText?: ReactNode;
|
|
50
|
-
secondaryText?: ReactNode;
|
|
51
|
-
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
52
|
-
testId?: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// @public (undocumented)
|
|
56
|
-
export interface AvatarPropTypes {
|
|
57
|
-
analyticsContext?: Record<string, any>;
|
|
58
|
-
appearance?: AppearanceType;
|
|
59
|
-
borderColor?: string;
|
|
60
|
-
children?: (props: CustomAvatarProps) => ReactNode;
|
|
61
|
-
href?: string;
|
|
62
|
-
isDisabled?: boolean;
|
|
63
|
-
label?: string;
|
|
64
|
-
name?: string;
|
|
65
|
-
onClick?: AvatarClickEventHandler;
|
|
66
|
-
presence?: (string & {}) | Omit<ReactNode, string> | PresenceType | null;
|
|
67
|
-
size?: SizeType;
|
|
68
|
-
src?: string;
|
|
69
|
-
stackIndex?: number;
|
|
70
|
-
status?: (string & {}) | Omit<ReactNode, string> | StatusType | null;
|
|
71
|
-
tabIndex?: number;
|
|
72
|
-
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
73
|
-
testId?: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// @public (undocumented)
|
|
77
|
-
type AvatarSizeMap = Record<SizeType, number>;
|
|
78
|
-
|
|
79
|
-
// @public (undocumented)
|
|
80
|
-
export const BORDER_WIDTH = 2;
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
export interface CustomAvatarItemProps {
|
|
84
|
-
// (undocumented)
|
|
85
|
-
'aria-disabled'?: 'false' | 'true' | boolean | undefined;
|
|
86
|
-
'aria-label'?: string;
|
|
87
|
-
// (undocumented)
|
|
88
|
-
children: ReactNode;
|
|
89
|
-
// (undocumented)
|
|
90
|
-
className?: string;
|
|
91
|
-
// (undocumented)
|
|
92
|
-
href?: string;
|
|
93
|
-
// (undocumented)
|
|
94
|
-
onClick?: MouseEventHandler;
|
|
95
|
-
// (undocumented)
|
|
96
|
-
ref: Ref<HTMLElement>;
|
|
97
|
-
// (undocumented)
|
|
98
|
-
testId?: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// @public (undocumented)
|
|
102
|
-
export interface CustomAvatarProps {
|
|
103
|
-
'aria-label'?: string;
|
|
104
|
-
// (undocumented)
|
|
105
|
-
children: ReactNode;
|
|
106
|
-
// (undocumented)
|
|
107
|
-
className?: string;
|
|
108
|
-
// (undocumented)
|
|
109
|
-
href?: string;
|
|
110
|
-
// (undocumented)
|
|
111
|
-
onClick?: MouseEventHandler;
|
|
112
|
-
// (undocumented)
|
|
113
|
-
ref: Ref<HTMLElement>;
|
|
114
|
-
// (undocumented)
|
|
115
|
-
tabIndex?: number;
|
|
116
|
-
// (undocumented)
|
|
117
|
-
testId?: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// @public (undocumented)
|
|
121
|
-
export type IndicatorSizeType = 'large' | 'medium' | 'small' | 'xlarge';
|
|
122
|
-
|
|
123
|
-
// @public
|
|
124
|
-
export const Presence: FC<PresenceProps>;
|
|
125
|
-
|
|
126
|
-
// @public (undocumented)
|
|
127
|
-
export interface PresenceProps {
|
|
128
|
-
borderColor?: string;
|
|
129
|
-
children?: ReactNode;
|
|
130
|
-
presence?: PresenceType;
|
|
131
|
-
testId?: string;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// @public (undocumented)
|
|
135
|
-
export type PresenceType = 'busy' | 'focus' | 'offline' | 'online';
|
|
136
|
-
|
|
137
|
-
// @public (undocumented)
|
|
138
|
-
export type SizeType = 'large' | 'medium' | 'small' | 'xlarge' | 'xsmall' | 'xxlarge';
|
|
139
|
-
|
|
140
|
-
// @public
|
|
141
|
-
export const Skeleton: FC<SkeletonProps>;
|
|
142
|
-
|
|
143
|
-
// @public (undocumented)
|
|
144
|
-
export interface SkeletonProps {
|
|
145
|
-
// (undocumented)
|
|
146
|
-
appearance?: AppearanceType;
|
|
147
|
-
// (undocumented)
|
|
148
|
-
color?: string;
|
|
149
|
-
// (undocumented)
|
|
150
|
-
size?: SizeType;
|
|
151
|
-
// (undocumented)
|
|
152
|
-
weight?: 'normal' | 'strong';
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// @public
|
|
156
|
-
export const Status: FC<StatusProps>;
|
|
157
|
-
|
|
158
|
-
// @public (undocumented)
|
|
159
|
-
export interface StatusProps {
|
|
160
|
-
borderColor?: string;
|
|
161
|
-
children?: ReactNode;
|
|
162
|
-
status?: StatusType;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// @public (undocumented)
|
|
166
|
-
export type StatusType = 'approved' | 'declined' | 'locked';
|
|
167
|
-
|
|
168
|
-
// (No @packageDocumentation comment for this package)
|
|
169
|
-
|
|
170
|
-
```
|