@atlaskit/profilecard 16.10.1 → 16.11.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,15 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 16.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`01d80d395bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01d80d395bc) - pass event to onOpenChange consistently
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 16.10.1
4
14
 
5
15
  ### Patch Changes
@@ -173,6 +173,9 @@ var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureComponent
173
173
  _this.hideProfilecard(_config.DELAY_MS_HIDE);
174
174
  }
175
175
  });
176
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onClose", function () {
177
+ _this.hideProfilecard();
178
+ });
176
179
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openKudosDrawer", function () {
177
180
  _this.hideProfilecard(_config.DELAY_MS_HIDE);
178
181
 
@@ -419,7 +422,7 @@ var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureComponent
419
422
  onError: this.onErrorBoundary
420
423
  }, /*#__PURE__*/_react.default.createElement(_popup.default, {
421
424
  isOpen: !!this.state.visible,
422
- onClose: this.hideProfilecard,
425
+ onClose: this.onClose,
423
426
  placement: this.props.position,
424
427
  content: this.renderProfileCard,
425
428
  trigger: function trigger(triggerProps) {
@@ -56,7 +56,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
56
56
  actionSubjectId: actionSubjectId,
57
57
  attributes: _objectSpread(_objectSpread({
58
58
  packageName: "@atlaskit/profilecard",
59
- packageVersion: "16.10.1"
59
+ packageVersion: "16.11.0"
60
60
  }, attributes), {}, {
61
61
  firedAt: (0, _performance.getPageTime)()
62
62
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.10.1"
3
+ "version": "16.11.0"
4
4
  }
@@ -117,6 +117,10 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
117
117
  }
118
118
  });
119
119
 
120
+ _defineProperty(this, "onClose", () => {
121
+ this.hideProfilecard();
122
+ });
123
+
120
124
  _defineProperty(this, "openKudosDrawer", () => {
121
125
  this.hideProfilecard(DELAY_MS_HIDE);
122
126
  this.setState({
@@ -360,7 +364,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
360
364
  onError: this.onErrorBoundary
361
365
  }, /*#__PURE__*/React.createElement(Popup, {
362
366
  isOpen: !!this.state.visible,
363
- onClose: this.hideProfilecard,
367
+ onClose: this.onClose,
364
368
  placement: this.props.position,
365
369
  content: this.renderProfileCard,
366
370
  trigger: triggerProps => this.renderTrigger(triggerProps),
@@ -35,7 +35,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
35
35
  actionSubjectId,
36
36
  attributes: {
37
37
  packageName: "@atlaskit/profilecard",
38
- packageVersion: "16.10.1",
38
+ packageVersion: "16.11.0",
39
39
  ...attributes,
40
40
  firedAt: getPageTime()
41
41
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.10.1"
3
+ "version": "16.11.0"
4
4
  }
@@ -148,6 +148,10 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
148
148
  }
149
149
  });
150
150
 
151
+ _defineProperty(_assertThisInitialized(_this), "onClose", function () {
152
+ _this.hideProfilecard();
153
+ });
154
+
151
155
  _defineProperty(_assertThisInitialized(_this), "openKudosDrawer", function () {
152
156
  _this.hideProfilecard(DELAY_MS_HIDE);
153
157
 
@@ -406,7 +410,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
406
410
  onError: this.onErrorBoundary
407
411
  }, /*#__PURE__*/React.createElement(Popup, {
408
412
  isOpen: !!this.state.visible,
409
- onClose: this.hideProfilecard,
413
+ onClose: this.onClose,
410
414
  placement: this.props.position,
411
415
  content: this.renderProfileCard,
412
416
  trigger: function trigger(triggerProps) {
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
45
45
  actionSubjectId: actionSubjectId,
46
46
  attributes: _objectSpread(_objectSpread({
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "16.10.1"
48
+ packageVersion: "16.11.0"
49
49
  }, attributes), {}, {
50
50
  firedAt: getPageTime()
51
51
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.10.1"
3
+ "version": "16.11.0"
4
4
  }
@@ -18,6 +18,7 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
18
18
  onClick: (event: React.MouseEvent<HTMLElement>) => void;
19
19
  onMouseEnter: () => void;
20
20
  onMouseLeave: () => void;
21
+ onClose: () => void;
21
22
  openKudosDrawer: () => void;
22
23
  closeKudosDrawer: () => void;
23
24
  kudosUrl: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.10.1",
3
+ "version": "16.11.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,12 +42,12 @@
42
42
  "@atlaskit/avatar": "^21.0.0",
43
43
  "@atlaskit/avatar-group": "^9.0.0",
44
44
  "@atlaskit/button": "^16.3.0",
45
- "@atlaskit/dropdown-menu": "^11.2.0",
45
+ "@atlaskit/dropdown-menu": "^11.3.0",
46
46
  "@atlaskit/give-kudos": "^0.6.0",
47
47
  "@atlaskit/icon": "^21.10.0",
48
48
  "@atlaskit/lozenge": "^11.0.0",
49
49
  "@atlaskit/menu": "^1.3.0",
50
- "@atlaskit/popup": "^1.3.0",
50
+ "@atlaskit/popup": "^1.4.0",
51
51
  "@atlaskit/spinner": "^15.0.0",
52
52
  "@atlaskit/theme": "^12.1.0",
53
53
  "@atlaskit/tokens": "^0.10.0",
@@ -64,10 +64,10 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@atlaskit/docs": "*",
67
- "@atlaskit/dynamic-table": "^14.6.0",
67
+ "@atlaskit/dynamic-table": "^14.7.0",
68
68
  "@atlaskit/flag": "^14.5.0",
69
69
  "@atlaskit/inline-edit": "^12.0.0",
70
- "@atlaskit/select": "^15.4.0",
70
+ "@atlaskit/select": "^15.5.0",
71
71
  "@atlaskit/util-data-test": "^17.5.0",
72
72
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
73
73
  "@testing-library/react": "^8.0.1",
package/report.api.md CHANGED
@@ -1,6 +1,8 @@
1
- ## API Report File for "@atlaskit/profilecard"
1
+ ## API Report File for "@atlaskit/profilecard".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
4
6
 
5
7
  ```ts
6
8
  /// <reference types="react" />