@atlaskit/profilecard 16.0.0 → 16.0.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,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`82099b76445`](https://bitbucket.org/atlassian/atlassian-frontend/commits/82099b76445) - Add optional `testId` prop to `ProfileCardTrigger` to ease testing
8
+
3
9
  ## 16.0.0
4
10
 
5
11
  ### Major Changes
@@ -236,7 +236,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
236
236
  var ref = triggerProps.ref,
237
237
  innerProps = (0, _objectWithoutProperties2.default)(triggerProps, ["ref"]);
238
238
  return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, innerProps, _this2.containerListeners, {
239
- ref: ref
239
+ ref: ref,
240
+ "data-testid": _this2.props.testId
240
241
  }), _this2.props.children);
241
242
  },
242
243
  zIndex: _constants.layers.modal()
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
31
31
  actionSubjectId: actionSubjectId,
32
32
  attributes: _objectSpread(_objectSpread({
33
33
  packageName: "@atlaskit/profilecard",
34
- packageVersion: "16.0.0"
34
+ packageVersion: "16.0.1"
35
35
  }, attributes), {}, {
36
36
  firedAt: (0, _performance.getPageTime)()
37
37
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.0.0"
3
+ "version": "16.0.1"
4
4
  }
@@ -187,7 +187,8 @@ class ProfilecardTrigger extends React.PureComponent {
187
187
  ...innerProps
188
188
  } = triggerProps;
189
189
  return /*#__PURE__*/React.createElement("span", _extends({}, innerProps, this.containerListeners, {
190
- ref: ref
190
+ ref: ref,
191
+ "data-testid": this.props.testId
191
192
  }), this.props.children);
192
193
  },
193
194
  zIndex: layers.modal()
@@ -11,7 +11,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
11
11
  actionSubjectId,
12
12
  attributes: {
13
13
  packageName: "@atlaskit/profilecard",
14
- packageVersion: "16.0.0",
14
+ packageVersion: "16.0.1",
15
15
  ...attributes,
16
16
  firedAt: getPageTime()
17
17
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.0.0"
3
+ "version": "16.0.1"
4
4
  }
@@ -226,7 +226,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
226
226
  innerProps = _objectWithoutProperties(triggerProps, ["ref"]);
227
227
 
228
228
  return /*#__PURE__*/React.createElement("span", _extends({}, innerProps, _this2.containerListeners, {
229
- ref: ref
229
+ ref: ref,
230
+ "data-testid": _this2.props.testId
230
231
  }), _this2.props.children);
231
232
  },
232
233
  zIndex: layers.modal()
@@ -19,7 +19,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
19
19
  actionSubjectId: actionSubjectId,
20
20
  attributes: _objectSpread(_objectSpread({
21
21
  packageName: "@atlaskit/profilecard",
22
- packageVersion: "16.0.0"
22
+ packageVersion: "16.0.1"
23
23
  }, attributes), {}, {
24
24
  firedAt: getPageTime()
25
25
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.0.0"
3
+ "version": "16.0.1"
4
4
  }
@@ -90,6 +90,7 @@ export interface ProfileCardTriggerProps {
90
90
  position?: ProfilecardTriggerPosition;
91
91
  trigger?: TriggerType;
92
92
  children?: React.ReactNode;
93
+ testId?: string;
93
94
  }
94
95
  export interface ProfileCardTriggerState {
95
96
  visible?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"