@atlaskit/avatar 21.2.1 → 21.3.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/Avatar/package.json +2 -2
- package/AvatarItem/package.json +2 -2
- package/CHANGELOG.md +16 -0
- package/Presence/package.json +2 -2
- package/Skeleton/package.json +2 -2
- package/Status/package.json +2 -2
- 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/dist/types/Presence.d.ts +1 -1
- package/dist/types/Status.d.ts +1 -1
- package/dist/types/types.d.ts +5 -5
- package/dist/types/utilities.d.ts +2 -2
- package/package.json +21 -13
- package/types/package.json +2 -2
package/Avatar/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/avatar.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/avatar.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/AvatarItem/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/avatar-item.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/avatar-item.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/avatar
|
|
2
2
|
|
|
3
|
+
## 21.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 21.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 21.2.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/Presence/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/presence.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/presence.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/Skeleton/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/skeleton.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/skeleton.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/Status/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/status.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/status.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
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.
|
|
25
|
+
var packageVersion = "21.3.1";
|
|
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.
|
|
13
|
+
const packageVersion = "21.3.1";
|
|
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.
|
|
18
|
+
var packageVersion = "21.3.1";
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
21
21
|
|
package/dist/esm/version.json
CHANGED
package/dist/types/Presence.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceType, IndicatorSizeType } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type PresenceType = 'busy' | 'focus' | 'offline' | 'online' | ReactNode;
|
|
4
4
|
export interface PresenceProps {
|
|
5
5
|
/**
|
|
6
6
|
* Used to override the default border color of the presence indicator.
|
package/dist/types/Status.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceType, IndicatorSizeType } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type StatusType = ('approved' | 'declined' | 'locked') | ReactNode;
|
|
4
4
|
export interface StatusProps {
|
|
5
5
|
/**
|
|
6
6
|
* Override the default border color of the status indicator. This accepts
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
3
|
+
export type AvatarSizeMap = Record<SizeType, number>;
|
|
4
|
+
export type AppearanceType = 'circle' | 'square';
|
|
5
|
+
export type SizeType = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
|
|
6
|
+
export type IndicatorSizeType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
|
+
export type AvatarClickEventHandler = (event: React.MouseEvent, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
|
-
export declare const getLinkProps: (href: string, target?: string
|
|
2
|
+
export declare const getLinkProps: (href: string, target?: string) => {
|
|
3
3
|
href: string;
|
|
4
4
|
rel: string | null;
|
|
5
5
|
target: string | undefined;
|
|
@@ -8,4 +8,4 @@ export declare const getButtonProps: (onClick: MouseEventHandler) => {
|
|
|
8
8
|
type: string;
|
|
9
9
|
onClick: MouseEventHandler<Element>;
|
|
10
10
|
};
|
|
11
|
-
export declare const getCustomElement: (isDisabled?: boolean
|
|
11
|
+
export declare const getCustomElement: (isDisabled?: boolean, href?: string, onClick?: MouseEventHandler) => "button" | "a" | "span";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.1",
|
|
4
4
|
"description": "An avatar is a visual representation of a user or entity.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.ts",
|
|
17
25
|
"atlassian": {
|
|
@@ -32,10 +40,10 @@
|
|
|
32
40
|
".": "./src/index.ts"
|
|
33
41
|
},
|
|
34
42
|
"dependencies": {
|
|
35
|
-
"@atlaskit/analytics-next": "^9.
|
|
36
|
-
"@atlaskit/icon": "^21.
|
|
37
|
-
"@atlaskit/theme": "^12.
|
|
38
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
44
|
+
"@atlaskit/icon": "^21.12.0",
|
|
45
|
+
"@atlaskit/theme": "^12.5.0",
|
|
46
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
39
47
|
"@babel/runtime": "^7.0.0",
|
|
40
48
|
"@emotion/react": "^11.7.1",
|
|
41
49
|
"@emotion/serialize": "^1.1.0"
|
|
@@ -44,15 +52,15 @@
|
|
|
44
52
|
"react": "^16.8.0"
|
|
45
53
|
},
|
|
46
54
|
"devDependencies": {
|
|
47
|
-
"@atlaskit/button": "^16.
|
|
55
|
+
"@atlaskit/button": "^16.7.0",
|
|
48
56
|
"@atlaskit/docs": "*",
|
|
49
|
-
"@atlaskit/ds-lib": "^2.
|
|
50
|
-
"@atlaskit/field-base": "^15.
|
|
51
|
-
"@atlaskit/icon": "^21.
|
|
52
|
-
"@atlaskit/section-message": "^6.
|
|
57
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
58
|
+
"@atlaskit/field-base": "^15.2.0",
|
|
59
|
+
"@atlaskit/icon": "^21.12.0",
|
|
60
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
53
61
|
"@atlaskit/ssr": "*",
|
|
54
|
-
"@atlaskit/toggle": "^12.
|
|
55
|
-
"@atlaskit/tooltip": "^17.
|
|
62
|
+
"@atlaskit/toggle": "^12.6.0",
|
|
63
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
56
64
|
"@atlaskit/visual-regression": "*",
|
|
57
65
|
"@atlaskit/webdriver-runner": "*",
|
|
58
66
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -62,7 +70,7 @@
|
|
|
62
70
|
"color-contrast-checker": "^1.5.0",
|
|
63
71
|
"jscodeshift": "^0.13.0",
|
|
64
72
|
"react-dom": "^16.8.0",
|
|
65
|
-
"typescript": "4.
|
|
73
|
+
"typescript": "~4.9.5",
|
|
66
74
|
"wait-for-expect": "^1.2.0"
|
|
67
75
|
},
|
|
68
76
|
"keywords": [
|
package/types/package.json
CHANGED