@atlaskit/avatar 21.1.2 → 21.1.4

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,17 @@
1
1
  # @atlaskit/avatar
2
2
 
3
+ ## 21.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 21.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 21.1.2
4
16
 
5
17
  ### Patch Changes
@@ -38,7 +38,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
38
38
  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; }
39
39
 
40
40
  var packageName = "@atlaskit/avatar";
41
- var packageVersion = "21.1.2";
41
+ var packageVersion = "21.1.4";
42
42
 
43
43
  var getStyles = function getStyles(css, _ref) {
44
44
  var size = _ref.size,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.1.2",
3
+ "version": "21.1.4",
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.1.2";
13
+ const packageVersion = "21.1.4";
14
14
 
15
15
  const getStyles = (css, {
16
16
  size,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.1.2",
3
+ "version": "21.1.4",
4
4
  "sideEffects": false
5
5
  }
@@ -20,7 +20,7 @@ import { PresenceWrapper } from './Presence';
20
20
  import { StatusWrapper } from './Status';
21
21
  import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
22
22
  var packageName = "@atlaskit/avatar";
23
- var packageVersion = "21.1.2";
23
+ var packageVersion = "21.1.4";
24
24
 
25
25
  var getStyles = function getStyles(css, _ref) {
26
26
  var size = _ref.size,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.1.2",
3
+ "version": "21.1.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.1.2",
3
+ "version": "21.1.4",
4
4
  "description": "An avatar is a visual representation of a user or entity.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/analytics-next": "^8.0.0",
37
37
  "@atlaskit/icon": "^21.11.0",
38
38
  "@atlaskit/theme": "^12.2.0",
39
- "@atlaskit/tokens": "^0.10.0",
39
+ "@atlaskit/tokens": "^0.12.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1",
42
42
  "@emotion/serialize": "^1.1.0"
@@ -45,7 +45,7 @@
45
45
  "react": "^16.8.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@atlaskit/button": "^16.4.0",
48
+ "@atlaskit/button": "^16.5.0",
49
49
  "@atlaskit/docs": "*",
50
50
  "@atlaskit/ds-lib": "^2.1.1",
51
51
  "@atlaskit/field-base": "^15.0.0",
package/report.api.md CHANGED
@@ -1,12 +1,17 @@
1
+ <!-- API Report Version: 2.2 -->
2
+
1
3
  ## API Report File for "@atlaskit/avatar"
2
4
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
4
11
 
5
- <!--
6
- Generated API Report version: 2.0
7
- -->
12
+ ### Main Entry Types
8
13
 
9
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
14
+ <!--SECTION START: Main Entry Types-->
10
15
 
11
16
  ```ts
12
17
  /// <reference types="react" />
@@ -60,7 +65,7 @@ export interface AvatarItemProps {
60
65
  onClick?: AvatarClickEventHandler;
61
66
  primaryText?: ReactNode;
62
67
  secondaryText?: ReactNode;
63
- target?: '_blank' | '_self' | '_top' | '_parent';
68
+ target?: '_blank' | '_parent' | '_self' | '_top';
64
69
  testId?: string;
65
70
  }
66
71
 
@@ -75,13 +80,13 @@ export interface AvatarPropTypes {
75
80
  label?: string;
76
81
  name?: string;
77
82
  onClick?: AvatarClickEventHandler;
78
- presence?: ('online' | 'busy' | 'focus' | 'offline') | ReactNode;
83
+ presence?: ('busy' | 'focus' | 'offline' | 'online') | ReactNode;
79
84
  size?: SizeType;
80
85
  src?: string;
81
86
  stackIndex?: number;
82
87
  status?: ('approved' | 'declined' | 'locked') | ReactNode;
83
88
  tabIndex?: number;
84
- target?: '_blank' | '_self' | '_top' | '_parent';
89
+ target?: '_blank' | '_parent' | '_self' | '_top';
85
90
  testId?: string;
86
91
  }
87
92
 
@@ -94,7 +99,7 @@ export const BORDER_WIDTH = 2;
94
99
  // @public (undocumented)
95
100
  export interface CustomAvatarItemProps {
96
101
  // (undocumented)
97
- 'aria-disabled'?: boolean | 'false' | 'true' | undefined;
102
+ 'aria-disabled'?: 'false' | 'true' | boolean | undefined;
98
103
  'aria-label'?: string;
99
104
  // (undocumented)
100
105
  children: ReactNode;
@@ -130,7 +135,7 @@ export interface CustomAvatarProps {
130
135
  }
131
136
 
132
137
  // @public (undocumented)
133
- export type IndicatorSizeType = 'small' | 'medium' | 'large' | 'xlarge';
138
+ export type IndicatorSizeType = 'large' | 'medium' | 'small' | 'xlarge';
134
139
 
135
140
  // @public
136
141
  export const Presence: FC<PresenceProps>;
@@ -148,11 +153,11 @@ export type PresenceType = 'busy' | 'focus' | 'offline' | 'online' | ReactNode;
148
153
 
149
154
  // @public (undocumented)
150
155
  export type SizeType =
151
- | 'xsmall'
152
- | 'small'
153
- | 'medium'
154
156
  | 'large'
157
+ | 'medium'
158
+ | 'small'
155
159
  | 'xlarge'
160
+ | 'xsmall'
156
161
  | 'xxlarge';
157
162
 
158
163
  // @public
@@ -185,3 +190,5 @@ export type StatusType = ('approved' | 'declined' | 'locked') | ReactNode;
185
190
 
186
191
  // (No @packageDocumentation comment for this package)
187
192
  ```
193
+
194
+ <!--SECTION END: Main Entry Types-->