@atlaskit/teams-avatar 2.7.0 → 3.0.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 +26 -0
- package/package.json +7 -14
- package/teams-avatar/package.json +1 -8
- package/utils/package.json +1 -8
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/teams-avatar/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/teams-avatar/teams-avatar-image/fallback/constants.d.ts +0 -1
- package/dist/types-ts4.5/ui/teams-avatar/teams-avatar-image/fallback/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/teams-avatar/teams-avatar-image/index.d.ts +0 -20
- package/dist/types-ts4.5/ui/teams-avatar/teams-avatar-image/utils.d.ts +0 -6
- package/dist/types-ts4.5/ui/teams-avatar/utils.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/teams-avatar
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 2.7.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-avatar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A team avatar is a visual representation of a team.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,14 +26,6 @@
|
|
|
26
26
|
"module": "dist/esm/index.js",
|
|
27
27
|
"module:es2019": "dist/es2019/index.js",
|
|
28
28
|
"types": "dist/types/index.d.ts",
|
|
29
|
-
"typesVersions": {
|
|
30
|
-
">=4.5 <4.9": {
|
|
31
|
-
"*": [
|
|
32
|
-
"dist/types-ts4.5/*",
|
|
33
|
-
"dist/types-ts4.5/index.d.ts"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
29
|
"sideEffects": [
|
|
38
30
|
"*.compiled.css"
|
|
39
31
|
],
|
|
@@ -42,11 +34,11 @@
|
|
|
42
34
|
"test:coverage": "(cd ../../.. && yarn test 'packages/people-and-teams/teams-avatar/src' --coverage --coverageProvider=v8 --collectCoverageFrom='[\"packages/people-and-teams/teams-avatar/src/**\", \"!packages/people-and-teams/teams-avatar/src/**/**/types.ts\", \"!packages/people-and-teams/teams-avatar/src/ui/**/styled.tsx\"]')"
|
|
43
35
|
},
|
|
44
36
|
"dependencies": {
|
|
45
|
-
"@atlaskit/avatar": "^
|
|
46
|
-
"@atlaskit/css": "^0.
|
|
47
|
-
"@atlaskit/platform-feature-flags": "^
|
|
48
|
-
"@atlaskit/primitives": "^
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
37
|
+
"@atlaskit/avatar": "^26.0.0",
|
|
38
|
+
"@atlaskit/css": "^1.0.0",
|
|
39
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
40
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
41
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
50
42
|
"@babel/runtime": "^7.0.0",
|
|
51
43
|
"@compiled/react": "^0.20.0"
|
|
52
44
|
},
|
|
@@ -60,6 +52,7 @@
|
|
|
60
52
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
61
53
|
"@atlassian/teams-app-internal-playground": "^2.6.0",
|
|
62
54
|
"@testing-library/react": "^16.3.0",
|
|
55
|
+
"react": "^18.2.0",
|
|
63
56
|
"react-dom": "^18.2.0",
|
|
64
57
|
"wait-for-expect": "^1.2.0"
|
|
65
58
|
},
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/ui/teams-avatar/index.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/ui/teams-avatar/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/ui/teams-avatar/index.d.ts"
|
|
17
10
|
}
|
package/utils/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/ui/teams-avatar/utils.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/ui/teams-avatar/utils.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/ui/teams-avatar/utils.d.ts"
|
|
17
10
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type AvatarPropTypes } from '@atlaskit/avatar';
|
|
3
|
-
export type TeamAvatarProps = Omit<AvatarPropTypes, 'appearance'> & {
|
|
4
|
-
teamId?: string;
|
|
5
|
-
compact?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const ICON_BACKGROUND: 'var(--ds-icon-inverse)';
|
|
8
|
-
export declare const ICON_COLOR: 'var(--ds-icon-subtle)';
|
|
9
|
-
export default function TeamAvatar({ testId, src, size, teamId, compact, ...props }: TeamAvatarProps): React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TEAM_FALLBACK_AVATAR_DATA_URI: string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type SizeType } from '@atlaskit/avatar';
|
|
6
|
-
type AvatarImageProps = {
|
|
7
|
-
size: SizeType;
|
|
8
|
-
alt?: string;
|
|
9
|
-
src?: string;
|
|
10
|
-
testId?: string;
|
|
11
|
-
teamId?: string;
|
|
12
|
-
compact?: boolean;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* __Avatar image__
|
|
16
|
-
*
|
|
17
|
-
* An avatar image is an internal component used to control the rendering phases of an image.
|
|
18
|
-
*/
|
|
19
|
-
export declare const TeamAvatarImage: ({ alt, src, size, testId, teamId, compact, }: AvatarImageProps) => JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* If a src value is given, we'll use that directly.
|
|
3
|
-
* Otherwise we'll generate a static URL from the teamId.
|
|
4
|
-
* If neither are provided, return undefined so that the fallback will be used.
|
|
5
|
-
*/
|
|
6
|
-
export declare function getTeamAvatarSrc(src?: string, teamId?: string): string | undefined;
|