@atlaskit/avatar-group 9.2.4 → 9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/avatar-group
2
2
 
3
+ ## 9.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
+ ## 9.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
  ## 9.2.4
4
20
 
5
21
  ### Patch Changes
@@ -21,7 +21,7 @@ var _moreIndicator = _interopRequireDefault(require("./more-indicator"));
21
21
  var _stack = _interopRequireDefault(require("./stack"));
22
22
  var _utils = require("./utils");
23
23
  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; }
24
- 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
+ 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; } /** @jsx jsx */
25
25
  var MAX_COUNT = {
26
26
  grid: 11,
27
27
  stack: 5
@@ -9,6 +9,8 @@ var _react2 = require("@emotion/react");
9
9
  var _constants = require("@atlaskit/theme/constants");
10
10
  /** @jsx jsx */
11
11
 
12
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
13
+
12
14
  var gridSize = (0, _constants.gridSize)();
13
15
  var gutter = gridSize / 2;
14
16
  var listStyles = (0, _react2.css)({
@@ -13,6 +13,7 @@ var _react2 = require("@emotion/react");
13
13
  var _avatar = _interopRequireWildcard(require("@atlaskit/avatar"));
14
14
  var _colors = require("@atlaskit/theme/colors");
15
15
  var _excluded = ["testId", "className", "ref"];
16
+ /** @jsx jsx */
16
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
19
  var FONT_SIZE = {
@@ -10,6 +10,8 @@ var _avatar = require("@atlaskit/avatar");
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
  /** @jsx jsx */
12
12
 
13
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
+
13
15
  var gutter = _avatar.BORDER_WIDTH * 2 + (0, _constants.gridSize)() / 2;
14
16
  var listStyles = (0, _react2.css)({
15
17
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "9.2.4",
3
+ "version": "9.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import { Children } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
6
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
7
  const gridSize = getGridSize();
6
8
  const gutter = gridSize / 2;
@@ -2,6 +2,7 @@
2
2
  import { Children } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { BORDER_WIDTH } from '@atlaskit/avatar';
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
5
6
  import { gridSize } from '@atlaskit/theme/constants';
6
7
  const gutter = BORDER_WIDTH * 2 + gridSize() / 2;
7
8
  const listStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "9.2.4",
3
+ "version": "9.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import { Children } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
6
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
7
  var gridSize = getGridSize();
6
8
  var gutter = gridSize / 2;
@@ -2,6 +2,7 @@
2
2
  import { Children } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { BORDER_WIDTH } from '@atlaskit/avatar';
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
5
6
  import { gridSize } from '@atlaskit/theme/constants';
6
7
  var gutter = BORDER_WIDTH * 2 + gridSize() / 2;
7
8
  var listStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "9.2.4",
3
+ "version": "9.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -2,10 +2,10 @@ import type { ElementType, ReactNode } from 'react';
2
2
  import type { AnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { AvatarPropTypes } from '@atlaskit/avatar';
4
4
  import type { AvatarGroupItemProps } from './avatar-group-item';
5
- export declare type DeepRequired<T> = {
5
+ export type DeepRequired<T> = {
6
6
  [P in keyof T]-?: Required<T[P]>;
7
7
  };
8
- export declare type AvatarProps = AvatarPropTypes & {
8
+ export type AvatarProps = AvatarPropTypes & {
9
9
  name: string;
10
10
  key?: string | number;
11
11
  };
@@ -17,4 +17,4 @@ export interface AvatarGroupOverrides {
17
17
  render?: (Component: ElementType<AvatarProps>, props: AvatarProps, index: number) => ReactNode;
18
18
  };
19
19
  }
20
- export declare type onAvatarClickHandler = (event: React.MouseEvent, analyticsEvent: AnalyticsEvent | undefined, index: number) => void;
20
+ export type onAvatarClickHandler = (event: React.MouseEvent, analyticsEvent: AnalyticsEvent | undefined, index: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar-group",
3
- "version": "9.2.4",
3
+ "version": "9.3.1",
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/"
@@ -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.tsx",
17
25
  "atlassian": {
@@ -26,12 +34,12 @@
26
34
  ".": "./src/index.tsx"
27
35
  },
28
36
  "dependencies": {
29
- "@atlaskit/avatar": "^21.2.0",
30
- "@atlaskit/menu": "^1.5.0",
31
- "@atlaskit/popup": "^1.5.0",
32
- "@atlaskit/theme": "^12.2.0",
33
- "@atlaskit/tokens": "^1.2.0",
34
- "@atlaskit/tooltip": "^17.7.0",
37
+ "@atlaskit/avatar": "^21.3.0",
38
+ "@atlaskit/menu": "^1.6.0",
39
+ "@atlaskit/popup": "^1.6.0",
40
+ "@atlaskit/theme": "^12.5.0",
41
+ "@atlaskit/tokens": "^1.4.0",
42
+ "@atlaskit/tooltip": "^17.8.0",
35
43
  "@babel/runtime": "^7.0.0",
36
44
  "@emotion/react": "^11.7.1"
37
45
  },
@@ -39,17 +47,17 @@
39
47
  "react": "^16.8.0"
40
48
  },
41
49
  "devDependencies": {
42
- "@atlaskit/analytics-next": "^9.0.0",
43
- "@atlaskit/button": "^16.5.0",
44
- "@atlaskit/code": "^14.5.0",
50
+ "@atlaskit/analytics-next": "^9.1.0",
51
+ "@atlaskit/button": "^16.7.0",
52
+ "@atlaskit/code": "^14.6.0",
45
53
  "@atlaskit/docs": "*",
46
- "@atlaskit/ds-lib": "^2.1.1",
47
- "@atlaskit/form": "^8.8.0",
48
- "@atlaskit/icon": "^21.11.0",
49
- "@atlaskit/modal-dialog": "^12.4.0",
50
- "@atlaskit/section-message": "^6.3.0",
54
+ "@atlaskit/ds-lib": "^2.2.0",
55
+ "@atlaskit/form": "^8.11.0",
56
+ "@atlaskit/icon": "^21.12.0",
57
+ "@atlaskit/modal-dialog": "^12.5.0",
58
+ "@atlaskit/section-message": "^6.4.0",
51
59
  "@atlaskit/ssr": "*",
52
- "@atlaskit/toggle": "^12.5.0",
60
+ "@atlaskit/toggle": "^12.6.0",
53
61
  "@atlaskit/visual-regression": "*",
54
62
  "@atlaskit/webdriver-runner": "*",
55
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -57,7 +65,7 @@
57
65
  "@testing-library/react": "^12.1.5",
58
66
  "lodash": "^4.17.21",
59
67
  "react-dom": "^16.8.0",
60
- "typescript": "4.5.5",
68
+ "typescript": "~4.9.5",
61
69
  "wait-for-expect": "^1.2.0"
62
70
  },
63
71
  "keywords": [