@atlaskit/avatar-group 8.5.15 → 9.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/avatar-group
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`92bb02bc46b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92bb02bc46b) - [ux] There are **no code changes required** to consume this major, but you should be aware that internal changes have been made to how `@atlaskit/avatar` loads images.
8
+
9
+ Before, the image loading behaviour was written in JS. Now, it leans on a standard HTML `img` tag if you provide a `src` prop, allowing it to rely on the browser to optimise the loading. These changes should result in faster image loading and an improved server-side rendering story.
10
+
11
+ In this version, the **breaking change is that you will no longer see a fallback icon while the image is loading**. We have intentionally removed this loading behaviour as it is no longer consistent with our native `img` behaviour-first approach, and was a source of SSR bugs. Avatar images will load either instantly from the cache, or very fast from a CDN. In the edge cases where there is an error with the image src provided, we will still fall back to a default icon.
12
+
13
+ ### Patch Changes
14
+
15
+ - [`1276a8179ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1276a8179ad) - [ux] DSP-4535: Fix wrongly used token.
16
+ - Updated dependencies
17
+
3
18
  ## 8.5.15
4
19
 
5
20
  ### Patch Changes
@@ -39,7 +39,7 @@ var buttonActiveStyles = (0, _core.css)({
39
39
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
40
40
  '&&': {
41
41
  backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
42
- boxShadow: "0 0 0 ".concat(_avatar.BORDER_WIDTH, "px ").concat("var(--ds-text-selected, ".concat(_colors.B300, ")")),
42
+ boxShadow: "0 0 0 ".concat(_avatar.BORDER_WIDTH, "px ").concat("var(--ds-border-selected, ".concat(_colors.B300, ")")),
43
43
  color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
44
44
  transform: "scale(".concat(_avatar.ACTIVE_SCALE_FACTOR, ")")
45
45
  }
@@ -73,7 +73,7 @@ var MoreIndicator = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
73
73
  var _ref$appearance = _ref.appearance,
74
74
  appearance = _ref$appearance === void 0 ? 'circle' : _ref$appearance,
75
75
  _ref$borderColor = _ref.borderColor,
76
- borderColor = _ref$borderColor === void 0 ? "var(--ds-surface-overlay, ".concat((0, _colors.background)(), ")") : _ref$borderColor,
76
+ borderColor = _ref$borderColor === void 0 ? "var(--ds-border-inverse, ".concat(_colors.N0, ")") : _ref$borderColor,
77
77
  _ref$size = _ref.size,
78
78
  size = _ref$size === void 0 ? 'medium' : _ref$size,
79
79
  _ref$count = _ref.count,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "8.5.15",
3
+ "version": "9.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  import { forwardRef, useCallback } from 'react';
5
5
  import { css, jsx } from '@emotion/core';
6
6
  import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
7
- import { B300, B400, B50, background, N20, N30, N30A, N500 } from '@atlaskit/theme/colors';
7
+ import { B300, B400, B50, N0, N20, N30, N30A, N500 } from '@atlaskit/theme/colors';
8
8
  const FONT_SIZE = {
9
9
  xsmall: '10px',
10
10
  small: '10px',
@@ -17,7 +17,7 @@ const buttonActiveStyles = css({
17
17
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
18
18
  '&&': {
19
19
  backgroundColor: `var(--ds-background-selected, ${B50})`,
20
- boxShadow: `0 0 0 ${BORDER_WIDTH}px ${`var(--ds-text-selected, ${B300})`}`,
20
+ boxShadow: `0 0 0 ${BORDER_WIDTH}px ${`var(--ds-border-selected, ${B300})`}`,
21
21
  color: `var(--ds-text-selected, ${B400})`,
22
22
  transform: `scale(${ACTIVE_SCALE_FACTOR})`
23
23
  }
@@ -49,7 +49,7 @@ const buttonStyles = css({
49
49
  const MAX_DISPLAY_COUNT = 99;
50
50
  const MoreIndicator = /*#__PURE__*/forwardRef(({
51
51
  appearance = 'circle',
52
- borderColor = `var(--ds-surface-overlay, ${background()})`,
52
+ borderColor = `var(--ds-border-inverse, ${N0})`,
53
53
  size = 'medium',
54
54
  count = 0,
55
55
  testId,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "8.5.15",
3
+ "version": "9.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -6,7 +6,7 @@ var _excluded = ["testId", "className", "ref"];
6
6
  import { forwardRef, useCallback } from 'react';
7
7
  import { css, jsx } from '@emotion/core';
8
8
  import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
9
- import { B300, B400, B50, background, N20, N30, N30A, N500 } from '@atlaskit/theme/colors';
9
+ import { B300, B400, B50, N0, N20, N30, N30A, N500 } from '@atlaskit/theme/colors';
10
10
  var FONT_SIZE = {
11
11
  xsmall: '10px',
12
12
  small: '10px',
@@ -19,7 +19,7 @@ var buttonActiveStyles = css({
19
19
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
20
20
  '&&': {
21
21
  backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
22
- boxShadow: "0 0 0 ".concat(BORDER_WIDTH, "px ").concat("var(--ds-text-selected, ".concat(B300, ")")),
22
+ boxShadow: "0 0 0 ".concat(BORDER_WIDTH, "px ").concat("var(--ds-border-selected, ".concat(B300, ")")),
23
23
  color: "var(--ds-text-selected, ".concat(B400, ")"),
24
24
  transform: "scale(".concat(ACTIVE_SCALE_FACTOR, ")")
25
25
  }
@@ -53,7 +53,7 @@ var MoreIndicator = /*#__PURE__*/forwardRef(function (_ref, ref) {
53
53
  var _ref$appearance = _ref.appearance,
54
54
  appearance = _ref$appearance === void 0 ? 'circle' : _ref$appearance,
55
55
  _ref$borderColor = _ref.borderColor,
56
- borderColor = _ref$borderColor === void 0 ? "var(--ds-surface-overlay, ".concat(background(), ")") : _ref$borderColor,
56
+ borderColor = _ref$borderColor === void 0 ? "var(--ds-border-inverse, ".concat(N0, ")") : _ref$borderColor,
57
57
  _ref$size = _ref.size,
58
58
  size = _ref$size === void 0 ? 'medium' : _ref$size,
59
59
  _ref$count = _ref.count,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "8.5.15",
3
+ "version": "9.0.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "8.5.15",
3
+ "version": "9.0.0",
4
4
  "description": "An avatar group displays a number of avatars grouped together in a stack or grid.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/avatar": "^20.5.0",
26
+ "@atlaskit/avatar": "^21.0.0",
27
27
  "@atlaskit/menu": "^1.3.0",
28
28
  "@atlaskit/popup": "^1.3.0",
29
29
  "@atlaskit/theme": "^12.1.0",