@atlaskit/avatar 21.6.0 → 21.7.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/CHANGELOG.md +16 -0
- package/dist/cjs/Avatar.js +1 -1
- package/dist/es2019/Avatar.js +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/types/context.d.ts +1 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/context.d.ts +1 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/avatar
|
|
2
2
|
|
|
3
|
+
## 21.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#96490](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96490)
|
|
8
|
+
[`e7e14229e1ca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e7e14229e1ca) -
|
|
9
|
+
Add support for React 18.
|
|
10
|
+
|
|
11
|
+
## 21.6.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#97453](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97453)
|
|
16
|
+
[`6d382c5e1dce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d382c5e1dce) -
|
|
17
|
+
Export types for new avatar context.
|
|
18
|
+
|
|
3
19
|
## 21.6.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/cjs/Avatar.js
CHANGED
|
@@ -24,7 +24,7 @@ var _templateObject;
|
|
|
24
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
26
|
var packageName = "@atlaskit/avatar";
|
|
27
|
-
var packageVersion = "21.
|
|
27
|
+
var packageVersion = "21.7.0";
|
|
28
28
|
|
|
29
29
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
30
30
|
|
package/dist/es2019/Avatar.js
CHANGED
|
@@ -12,7 +12,7 @@ import { PresenceWrapper } from './Presence';
|
|
|
12
12
|
import { StatusWrapper } from './Status';
|
|
13
13
|
import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
|
|
14
14
|
const packageName = "@atlaskit/avatar";
|
|
15
|
-
const packageVersion = "21.
|
|
15
|
+
const packageVersion = "21.7.0";
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
18
18
|
|
package/dist/esm/Avatar.js
CHANGED
|
@@ -17,7 +17,7 @@ import { PresenceWrapper } from './Presence';
|
|
|
17
17
|
import { StatusWrapper } from './Status';
|
|
18
18
|
import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
|
|
19
19
|
var packageName = "@atlaskit/avatar";
|
|
20
|
-
var packageVersion = "21.
|
|
20
|
+
var packageVersion = "21.7.0";
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
23
23
|
|
package/dist/types/context.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type SizeType } from './types';
|
|
3
|
-
type AvatarContextProps = {
|
|
3
|
+
export type AvatarContextProps = {
|
|
4
4
|
size: SizeType;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
@@ -18,4 +18,3 @@ type AvatarContextProps = {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const AvatarContext: import("react").Context<AvatarContextProps | undefined>;
|
|
20
20
|
export declare const useAvatarContext: () => AvatarContextProps | undefined;
|
|
21
|
-
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export { default as Status } from './Status';
|
|
|
8
8
|
export type { StatusProps } from './Status';
|
|
9
9
|
export { default as Skeleton } from './Skeleton';
|
|
10
10
|
export type { SkeletonProps } from './Skeleton';
|
|
11
|
-
export { AvatarContext, useAvatarContext } from './context';
|
|
11
|
+
export { AvatarContext, type AvatarContextProps, useAvatarContext, } from './context';
|
|
12
12
|
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR, } from './constants';
|
|
13
13
|
export type { AvatarClickEventHandler, AppearanceType, SizeType, Presence as PresenceType, Status as StatusType, IndicatorSizeType, } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type SizeType } from './types';
|
|
3
|
-
type AvatarContextProps = {
|
|
3
|
+
export type AvatarContextProps = {
|
|
4
4
|
size: SizeType;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
@@ -18,4 +18,3 @@ type AvatarContextProps = {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const AvatarContext: import("react").Context<AvatarContextProps | undefined>;
|
|
20
20
|
export declare const useAvatarContext: () => AvatarContextProps | undefined;
|
|
21
|
-
export {};
|
|
@@ -8,6 +8,6 @@ export { default as Status } from './Status';
|
|
|
8
8
|
export type { StatusProps } from './Status';
|
|
9
9
|
export { default as Skeleton } from './Skeleton';
|
|
10
10
|
export type { SkeletonProps } from './Skeleton';
|
|
11
|
-
export { AvatarContext, useAvatarContext } from './context';
|
|
11
|
+
export { AvatarContext, type AvatarContextProps, useAvatarContext, } from './context';
|
|
12
12
|
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR, } from './constants';
|
|
13
13
|
export type { AvatarClickEventHandler, AppearanceType, SizeType, Presence as PresenceType, Status as StatusType, IndicatorSizeType, } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.7.0",
|
|
4
4
|
"description": "An avatar is a visual representation of a user or entity.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
47
47
|
"@atlaskit/icon": "^22.1.0",
|
|
48
48
|
"@atlaskit/theme": "^12.7.0",
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
49
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"@emotion/serialize": "^1.1.0",
|