@atlaskit/teams-avatar 1.0.1 → 1.1.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 CHANGED
@@ -1,7 +1,17 @@
1
1
  # @atlaskit/teams-avatar
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#124211](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124211)
8
+ [`6a213831a2e92`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a213831a2e92) -
9
+ [ux] Updated components to use new iconography behind a feature flag
10
+
3
11
  ## 1.0.1
4
12
 
5
13
  ### Patch Changes
6
14
 
7
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
15
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
16
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
17
+ Upgrade Typescript from `4.9.5` to `5.4.2`
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -15,7 +15,10 @@ var _people = _interopRequireDefault(require("@atlaskit/icon/glyph/people"));
15
15
  var _colors = require("@atlaskit/theme/colors");
16
16
  var _excluded = ["alt", "src", "size", "testId"];
17
17
  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; }
18
- 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; } /** @jsx jsx */
18
+ 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; } /**
19
+ * @jsxRuntime classic
20
+ * @jsx jsx
21
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
22
  var ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat(_colors.N0, ")");
20
23
  var ICON_COLOR = "var(--ds-icon-subtle, ".concat(_colors.N90, ")");
21
24
  // used in a size calculation so can't be a token. Without this the avatar looks very squished
@@ -34,11 +37,15 @@ var nestedAvatarStyles = Object.entries(_avatar.AVATAR_SIZES).reduce(function (s
34
37
  key = _ref2[0],
35
38
  size = _ref2[1];
36
39
  return _objectSpread(_objectSpread({}, styles), {}, (0, _defineProperty2.default)({}, key, (0, _react2.css)({
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
41
  width: "".concat(size, "px"),
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
38
43
  height: "".concat(size, "px"),
39
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
44
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
45
  '& svg': {
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
47
  width: "".concat(size - ICON_PADDING, "px"),
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
42
49
  height: "".concat(size - ICON_PADDING, "px")
43
50
  }
44
51
  })));
@@ -1,5 +1,10 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useEffect, useState } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { AVATAR_SIZES } from '@atlaskit/avatar';
5
10
  import TeamIcon from '@atlaskit/icon/glyph/people';
@@ -21,11 +26,15 @@ const nestedAvatarStyles = Object.entries(AVATAR_SIZES).reduce((styles, [key, si
21
26
  return {
22
27
  ...styles,
23
28
  [key]: css({
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
30
  width: `${size}px`,
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
32
  height: `${size}px`,
26
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
33
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
27
34
  '& svg': {
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
28
36
  width: `${size - ICON_PADDING}px`,
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
38
  height: `${size - ICON_PADDING}px`
30
39
  }
31
40
  })
@@ -4,8 +4,13 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  var _excluded = ["alt", "src", "size", "testId"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
- /** @jsx jsx */
7
+ /**
8
+ * @jsxRuntime classic
9
+ * @jsx jsx
10
+ */
8
11
  import { useEffect, useState } from 'react';
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
14
  import { css, jsx } from '@emotion/react';
10
15
  import { AVATAR_SIZES } from '@atlaskit/avatar';
11
16
  import TeamIcon from '@atlaskit/icon/glyph/people';
@@ -28,11 +33,15 @@ var nestedAvatarStyles = Object.entries(AVATAR_SIZES).reduce(function (styles, _
28
33
  key = _ref2[0],
29
34
  size = _ref2[1];
30
35
  return _objectSpread(_objectSpread({}, styles), {}, _defineProperty({}, key, css({
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
37
  width: "".concat(size, "px"),
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
39
  height: "".concat(size, "px"),
33
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
40
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
41
  '& svg': {
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
35
43
  width: "".concat(size - ICON_PADDING, "px"),
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
36
45
  height: "".concat(size - ICON_PADDING, "px")
37
46
  }
38
47
  })));
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { CustomAvatarProps, SizeType } from '@atlaskit/avatar';
2
+ import { type CustomAvatarProps, type SizeType } from '@atlaskit/avatar';
3
3
  type AvatarImageProps = {
4
4
  size: SizeType;
5
5
  alt?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { CustomAvatarProps, SizeType } from '@atlaskit/avatar';
2
+ import { type CustomAvatarProps, type SizeType } from '@atlaskit/avatar';
3
3
  type AvatarImageProps = {
4
4
  size: SizeType;
5
5
  alt?: string;
package/package.json CHANGED
@@ -1,100 +1,98 @@
1
1
  {
2
- "name": "@atlaskit/teams-avatar",
3
- "version": "1.0.1",
4
- "description": "A team avatar is a visual representation of a team.",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "People and Teams Collective",
12
- "inPublicMirror": false,
13
- "releaseModel": "continuous",
14
- "website": {
15
- "name": "TeamsAvatar",
16
- "category": "Components"
17
- }
18
- },
19
- "repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
20
- "main": "dist/cjs/index.js",
21
- "module": "dist/esm/index.js",
22
- "module:es2019": "dist/es2019/index.js",
23
- "types": "dist/types/index.d.ts",
24
- "typesVersions": {
25
- ">=4.5 <4.9": {
26
- "*": [
27
- "dist/types-ts4.5/*",
28
- "dist/types-ts4.5/index.d.ts"
29
- ]
30
- }
31
- },
32
- "sideEffects": [
33
- "*.compiled.css"
34
- ],
35
- "atlaskit:src": "src/index.ts",
36
- "af:exports": {
37
- ".": "./src/index.ts"
38
- },
39
- "dependencies": {
40
- "@atlaskit/avatar": "^21.5.0",
41
- "@atlaskit/icon": "^22.1.0",
42
- "@atlaskit/theme": "^12.6.0",
43
- "@atlaskit/tokens": "^1.42.0",
44
- "@babel/runtime": "^7.0.0",
45
- "@emotion/react": "^11.7.1"
46
- },
47
- "peerDependencies": {
48
- "react": "^16.8.0"
49
- },
50
- "devDependencies": {
51
- "@af/integration-testing": "*",
52
- "@af/visual-regression": "*",
53
- "@atlaskit/ssr": "*",
54
- "@atlaskit/visual-regression": "*",
55
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
56
- "@testing-library/react": "^12.1.5",
57
- "react-dom": "^16.8.0",
58
- "typescript": "~5.4.2",
59
- "wait-for-expect": "^1.2.0"
60
- },
61
- "techstack": {
62
- "@atlassian/frontend": {
63
- "code-structure": [
64
- "tangerine-next"
65
- ],
66
- "import-structure": [
67
- "atlassian-conventions"
68
- ],
69
- "circular-dependencies": [
70
- "file-and-folder-level"
71
- ]
72
- },
73
- "@repo/internal": {
74
- "dom-events": "use-bind-event-listener",
75
- "analytics": [
76
- "analytics-next"
77
- ],
78
- "design-tokens": [
79
- "color"
80
- ],
81
- "theming": [
82
- "react-context"
83
- ],
84
- "ui-components": [
85
- "lite-mode"
86
- ],
87
- "deprecation": [
88
- "no-deprecated-imports"
89
- ],
90
- "styling": [
91
- "static",
92
- "compiled"
93
- ],
94
- "imports": [
95
- "import-no-extraneous-disable-for-examples-and-docs"
96
- ]
97
- }
98
- },
99
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
100
- }
2
+ "name": "@atlaskit/teams-avatar",
3
+ "version": "1.1.0",
4
+ "description": "A team avatar is a visual representation of a team.",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "People and Teams Collective",
12
+ "inPublicMirror": false,
13
+ "releaseModel": "continuous",
14
+ "website": {
15
+ "name": "TeamsAvatar",
16
+ "category": "Components"
17
+ }
18
+ },
19
+ "repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
20
+ "main": "dist/cjs/index.js",
21
+ "module": "dist/esm/index.js",
22
+ "module:es2019": "dist/es2019/index.js",
23
+ "types": "dist/types/index.d.ts",
24
+ "typesVersions": {
25
+ ">=4.5 <4.9": {
26
+ "*": [
27
+ "dist/types-ts4.5/*",
28
+ "dist/types-ts4.5/index.d.ts"
29
+ ]
30
+ }
31
+ },
32
+ "sideEffects": [
33
+ "*.compiled.css"
34
+ ],
35
+ "atlaskit:src": "src/index.ts",
36
+ "af:exports": {
37
+ ".": "./src/index.ts"
38
+ },
39
+ "dependencies": {
40
+ "@atlaskit/avatar": "^21.11.0",
41
+ "@atlaskit/icon": "^22.8.0",
42
+ "@atlaskit/theme": "^12.11.0",
43
+ "@atlaskit/tokens": "^1.56.0",
44
+ "@babel/runtime": "^7.0.0",
45
+ "@emotion/react": "^11.7.1"
46
+ },
47
+ "peerDependencies": {
48
+ "react": "^16.8.0"
49
+ },
50
+ "devDependencies": {
51
+ "@af/integration-testing": "*",
52
+ "@af/visual-regression": "*",
53
+ "@atlaskit/ssr": "*",
54
+ "@atlaskit/visual-regression": "*",
55
+ "@testing-library/react": "^12.1.5",
56
+ "react-dom": "^16.8.0",
57
+ "typescript": "~5.4.2",
58
+ "wait-for-expect": "^1.2.0"
59
+ },
60
+ "techstack": {
61
+ "@atlassian/frontend": {
62
+ "code-structure": [
63
+ "tangerine-next"
64
+ ],
65
+ "import-structure": [
66
+ "atlassian-conventions"
67
+ ],
68
+ "circular-dependencies": [
69
+ "file-and-folder-level"
70
+ ]
71
+ },
72
+ "@repo/internal": {
73
+ "dom-events": "use-bind-event-listener",
74
+ "analytics": [
75
+ "analytics-next"
76
+ ],
77
+ "design-tokens": [
78
+ "color"
79
+ ],
80
+ "theming": [
81
+ "react-context"
82
+ ],
83
+ "ui-components": [
84
+ "lite-mode"
85
+ ],
86
+ "deprecation": [
87
+ "no-deprecated-imports"
88
+ ],
89
+ "styling": [
90
+ "static",
91
+ "compiled"
92
+ ],
93
+ "imports": [
94
+ "import-no-extraneous-disable-for-examples-and-docs"
95
+ ]
96
+ }
97
+ }
98
+ }