@atlaskit/avatar 21.3.0 → 21.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.
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/avatar.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/avatar.d.ts"
11
+ "../dist/types-ts4.5/entry-points/avatar.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/avatar-item.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/avatar-item.d.ts"
11
+ "../dist/types-ts4.5/entry-points/avatar-item.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/avatar
2
2
 
3
+ ## 21.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
+
3
9
  ## 21.3.0
4
10
 
5
11
  ### Minor Changes
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/presence.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/presence.d.ts"
11
+ "../dist/types-ts4.5/entry-points/presence.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/skeleton.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/skeleton.d.ts"
11
+ "../dist/types-ts4.5/entry-points/skeleton.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/status.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/status.d.ts"
11
+ "../dist/types-ts4.5/entry-points/status.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -22,7 +22,7 @@ var _templateObject;
22
22
  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; }
23
23
  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
24
  var packageName = "@atlaskit/avatar";
25
- var packageVersion = "21.3.0";
25
+ var packageVersion = "21.3.1";
26
26
 
27
27
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
28
28
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.0",
3
+ "version": "21.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,7 @@ import { PresenceWrapper } from './Presence';
10
10
  import { StatusWrapper } from './Status';
11
11
  import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
12
12
  const packageName = "@atlaskit/avatar";
13
- const packageVersion = "21.3.0";
13
+ const packageVersion = "21.3.1";
14
14
 
15
15
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
16
16
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.0",
3
+ "version": "21.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -15,7 +15,7 @@ import { PresenceWrapper } from './Presence';
15
15
  import { StatusWrapper } from './Status';
16
16
  import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
17
17
  var packageName = "@atlaskit/avatar";
18
- var packageVersion = "21.3.0";
18
+ var packageVersion = "21.3.1";
19
19
 
20
20
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
21
21
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.0",
3
+ "version": "21.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { AppearanceType, IndicatorSizeType } from './types';
3
- export declare type PresenceType = 'busy' | 'focus' | 'offline' | 'online' | ReactNode;
3
+ export type PresenceType = 'busy' | 'focus' | 'offline' | 'online' | ReactNode;
4
4
  export interface PresenceProps {
5
5
  /**
6
6
  * Used to override the default border color of the presence indicator.
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { AppearanceType, IndicatorSizeType } from './types';
3
- export declare type StatusType = ('approved' | 'declined' | 'locked') | ReactNode;
3
+ export type StatusType = ('approved' | 'declined' | 'locked') | ReactNode;
4
4
  export interface StatusProps {
5
5
  /**
6
6
  * Override the default border color of the status indicator. This accepts
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- export declare type AvatarSizeMap = Record<SizeType, number>;
4
- export declare type AppearanceType = 'circle' | 'square';
5
- export declare type SizeType = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
6
- export declare type IndicatorSizeType = 'small' | 'medium' | 'large' | 'xlarge';
7
- export declare type AvatarClickEventHandler = (event: React.MouseEvent, analyticsEvent?: UIAnalyticsEvent) => void;
3
+ export type AvatarSizeMap = Record<SizeType, number>;
4
+ export type AppearanceType = 'circle' | 'square';
5
+ export type SizeType = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
6
+ export type IndicatorSizeType = 'small' | 'medium' | 'large' | 'xlarge';
7
+ export type AvatarClickEventHandler = (event: React.MouseEvent, analyticsEvent?: UIAnalyticsEvent) => void;
@@ -1,5 +1,5 @@
1
1
  import { MouseEventHandler } from 'react';
2
- export declare const getLinkProps: (href: string, target?: string | undefined) => {
2
+ export declare const getLinkProps: (href: string, target?: string) => {
3
3
  href: string;
4
4
  rel: string | null;
5
5
  target: string | undefined;
@@ -8,4 +8,4 @@ export declare const getButtonProps: (onClick: MouseEventHandler) => {
8
8
  type: string;
9
9
  onClick: MouseEventHandler<Element>;
10
10
  };
11
- export declare const getCustomElement: (isDisabled?: boolean | undefined, href?: string | undefined, onClick?: MouseEventHandler<Element> | undefined) => "button" | "a" | "span";
11
+ export declare const getCustomElement: (isDisabled?: boolean, href?: string, onClick?: MouseEventHandler) => "button" | "a" | "span";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.0",
3
+ "version": "21.3.1",
4
4
  "description": "An avatar is a visual representation of a user or entity.",
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.ts",
17
25
  "atlassian": {
@@ -35,7 +43,7 @@
35
43
  "@atlaskit/analytics-next": "^9.1.0",
36
44
  "@atlaskit/icon": "^21.12.0",
37
45
  "@atlaskit/theme": "^12.5.0",
38
- "@atlaskit/tokens": "^1.3.0",
46
+ "@atlaskit/tokens": "^1.4.0",
39
47
  "@babel/runtime": "^7.0.0",
40
48
  "@emotion/react": "^11.7.1",
41
49
  "@emotion/serialize": "^1.1.0"
@@ -62,7 +70,7 @@
62
70
  "color-contrast-checker": "^1.5.0",
63
71
  "jscodeshift": "^0.13.0",
64
72
  "react-dom": "^16.8.0",
65
- "typescript": "4.5.5",
73
+ "typescript": "~4.9.5",
66
74
  "wait-for-expect": "^1.2.0"
67
75
  },
68
76
  "keywords": [
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/types.d.ts"
11
+ "../dist/types-ts4.5/entry-points/types.d.ts"
12
12
  ]
13
13
  }
14
14
  }