@atlaskit/avatar-group 10.0.0 → 10.0.2
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 +14 -0
- package/dist/cjs/components/avatar-group.js +1 -1
- package/dist/cjs/components/grid.js +0 -2
- package/dist/cjs/components/internal/components/popup-avatar-group.js +0 -1
- package/dist/cjs/components/more-indicator.js +0 -1
- package/dist/cjs/components/stack.js +0 -2
- package/dist/es2019/components/avatar-group.js +0 -2
- package/dist/es2019/components/grid.js +0 -2
- package/dist/es2019/components/internal/components/popup-avatar-group.js +0 -2
- package/dist/es2019/components/more-indicator.js +1 -2
- package/dist/es2019/components/stack.js +0 -2
- package/dist/esm/components/avatar-group.js +0 -2
- package/dist/esm/components/grid.js +0 -2
- package/dist/esm/components/internal/components/popup-avatar-group.js +0 -2
- package/dist/esm/components/more-indicator.js +0 -2
- package/dist/esm/components/stack.js +0 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/avatar-group
|
|
2
2
|
|
|
3
|
+
## 10.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161368](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161368)
|
|
8
|
+
[`870668ea63139`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/870668ea63139) -
|
|
9
|
+
Refactoring internals to make spread props more explicit and resolve ESLint disables.
|
|
10
|
+
|
|
11
|
+
## 10.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -30,7 +30,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
30
30
|
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; } /**
|
|
31
31
|
* @jsxRuntime classic
|
|
32
32
|
* @jsx jsx
|
|
33
|
-
*/
|
|
33
|
+
*/
|
|
34
34
|
var MAX_COUNT = {
|
|
35
35
|
grid: 11,
|
|
36
36
|
stack: 5
|
|
@@ -11,8 +11,6 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
* @jsx jsx
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
14
|
var gutter = "var(--ds-space-negative-050, -4px)";
|
|
17
15
|
var listStyles = (0, _react2.css)({
|
|
18
16
|
display: 'flex',
|
|
@@ -16,7 +16,6 @@ var _excluded = ["maxWidth", "minWidth", "setInitialFocusRef"];
|
|
|
16
16
|
* @jsxRuntime classic
|
|
17
17
|
* @jsx jsx
|
|
18
18
|
*/
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
19
|
/**
|
|
21
20
|
* It sets focus to the first avatar when popup is open.
|
|
22
21
|
*/
|
|
@@ -18,7 +18,6 @@ var _excluded = ["testId", "className", "ref"];
|
|
|
18
18
|
* @jsxRuntime classic
|
|
19
19
|
* @jsx jsx
|
|
20
20
|
*/
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
23
|
var buttonSizes = {
|
|
@@ -13,8 +13,6 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
13
13
|
* @jsx jsx
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
-
|
|
18
16
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
19
17
|
|
|
20
18
|
var gutter = _avatar.BORDER_WIDTH * 2 + (0, _constants.gridSize)() / 2;
|
|
@@ -4,8 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import { useCallback, useEffect, useState } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
7
|
import { jsx } from '@emotion/react';
|
|
10
8
|
import { bind } from 'bind-event-listener';
|
|
11
9
|
import Avatar from '@atlaskit/avatar';
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
const gutter = "var(--ds-space-negative-050, -4px)";
|
|
10
8
|
const listStyles = css({
|
|
@@ -4,8 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import { useContext, useEffect } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
7
|
import { jsx } from '@emotion/react';
|
|
10
8
|
import { MenuGroup } from '@atlaskit/menu';
|
|
11
9
|
import { FocusManagerContext } from './focus-manager';
|
|
@@ -4,8 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import { forwardRef, useCallback } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
7
|
import { css, jsx } from '@emotion/react';
|
|
10
8
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
11
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -58,6 +56,7 @@ const buttonStyles = css({
|
|
|
58
56
|
const MAX_DISPLAY_COUNT = 99;
|
|
59
57
|
const MoreIndicator = /*#__PURE__*/forwardRef(({
|
|
60
58
|
appearance = 'circle',
|
|
59
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
61
60
|
borderColor = fg('platform-component-visual-refresh') ? "var(--ds-surface, #FFFFFF)" : `var(--ds-border-inverse, ${N0})`,
|
|
62
61
|
size = 'medium',
|
|
63
62
|
count = 0,
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
import { BORDER_WIDTH } from '@atlaskit/avatar';
|
|
10
8
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -8,8 +8,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
* @jsx jsx
|
|
9
9
|
*/
|
|
10
10
|
import { useCallback, useEffect, useState } from 'react';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
11
|
import { jsx } from '@emotion/react';
|
|
14
12
|
import { bind } from 'bind-event-listener';
|
|
15
13
|
import Avatar from '@atlaskit/avatar';
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
var gutter = "var(--ds-space-negative-050, -4px)";
|
|
10
8
|
var listStyles = css({
|
|
@@ -6,8 +6,6 @@ var _excluded = ["maxWidth", "minWidth", "setInitialFocusRef"];
|
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
8
|
import { useContext, useEffect } from 'react';
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
9
|
import { jsx } from '@emotion/react';
|
|
12
10
|
import { MenuGroup } from '@atlaskit/menu';
|
|
13
11
|
import { FocusManagerContext } from './focus-manager';
|
|
@@ -6,8 +6,6 @@ var _excluded = ["testId", "className", "ref"];
|
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
8
|
import { forwardRef, useCallback } from 'react';
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
9
|
import { css, jsx } from '@emotion/react';
|
|
12
10
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
13
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
import { BORDER_WIDTH } from '@atlaskit/avatar';
|
|
10
8
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar-group",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.2",
|
|
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/"
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"runReact18": true
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/avatar": "^21.
|
|
26
|
+
"@atlaskit/avatar": "^21.17.0",
|
|
27
27
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
28
|
-
"@atlaskit/menu": "^2.
|
|
28
|
+
"@atlaskit/menu": "^2.13.0",
|
|
29
29
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
30
|
-
"@atlaskit/popup": "^1.
|
|
31
|
-
"@atlaskit/theme": "^
|
|
32
|
-
"@atlaskit/tokens": "^2.
|
|
30
|
+
"@atlaskit/popup": "^1.29.0",
|
|
31
|
+
"@atlaskit/theme": "^14.0.0",
|
|
32
|
+
"@atlaskit/tokens": "^2.2.0",
|
|
33
33
|
"@atlaskit/tooltip": "^18.8.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"@emotion/react": "^11.7.1",
|