@atlaskit/feedback-collector 16.1.0 → 16.1.2

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,18 @@
1
1
  # @atlaskit/feedback-collector
2
2
 
3
+ ## 16.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`309a7bd882781`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/309a7bd882781) -
8
+ Add a dialogRef prop for accessing the rendered feedback dialog container.
9
+
10
+ ## 16.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 16.1.0
4
17
 
5
18
  ### Minor Changes
@@ -164,7 +164,7 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
164
164
  }, {
165
165
  key: "getPackageVersion",
166
166
  value: function getPackageVersion() {
167
- return "16.0.0" || 'Unknown, at least 11.0.0';
167
+ return "16.1.1" || 'Unknown, at least 11.0.0';
168
168
  }
169
169
  }, {
170
170
  key: "getEntitlementInformation",
@@ -493,6 +493,7 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
493
493
  customTextAreaLabel: this.props.customTextAreaLabel,
494
494
  customFeedbackOptions: this.props.customFeedbackOptions,
495
495
  shouldReturnFocusRef: this.props.shouldReturnFocusRef,
496
+ dialogRef: this.props.dialogRef,
496
497
  disableSubmitButton: this.props.disableSubmitButton
497
498
  }, (0, _platformFeatureFlags.fg)('jfp_a11y_team_feedback_collector_nested_elements') && {
498
499
  enrolInResearchLink: this.props.enrolInResearchLink,
@@ -65,6 +65,7 @@ var FeedbackForm = function FeedbackForm(_ref2) {
65
65
  _ref2$customFeedbackO = _ref2.customFeedbackOptions,
66
66
  customFeedbackOptions = _ref2$customFeedbackO === void 0 ? [] : _ref2$customFeedbackO,
67
67
  shouldReturnFocusRef = _ref2.shouldReturnFocusRef,
68
+ dialogRef = _ref2.dialogRef,
68
69
  disableSubmitButton = _ref2.disableSubmitButton,
69
70
  _ref2$showRequiredFie = _ref2.showRequiredFieldsSummary,
70
71
  showRequiredFieldsSummary = _ref2$showRequiredFie === void 0 ? true : _ref2$showRequiredFie;
@@ -180,6 +181,7 @@ var FeedbackForm = function FeedbackForm(_ref2) {
180
181
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
181
182
  _react.default.createElement("p", null, formatMessage(_messages.messages.feedbackIsAnonymous));
182
183
  return /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
184
+ ref: dialogRef,
183
185
  shouldCloseOnOverlayClick: false,
184
186
  onClose: onClose,
185
187
  testId: "feedbackCollectorModalDialog",
@@ -92,7 +92,7 @@ export default class FeedbackCollector extends Component {
92
92
  return FeedbackCollector.defaultProps.url;
93
93
  }
94
94
  getPackageVersion() {
95
- return "16.0.0" || 'Unknown, at least 11.0.0';
95
+ return "16.1.1" || 'Unknown, at least 11.0.0';
96
96
  }
97
97
  async getEntitlementInformation() {
98
98
  var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
@@ -330,6 +330,7 @@ export default class FeedbackCollector extends Component {
330
330
  customTextAreaLabel: this.props.customTextAreaLabel,
331
331
  customFeedbackOptions: this.props.customFeedbackOptions,
332
332
  shouldReturnFocusRef: this.props.shouldReturnFocusRef,
333
+ dialogRef: this.props.dialogRef,
333
334
  disableSubmitButton: this.props.disableSubmitButton
334
335
  }, fg('jfp_a11y_team_feedback_collector_nested_elements') && {
335
336
  enrolInResearchLink: this.props.enrolInResearchLink,
@@ -47,6 +47,7 @@ const FeedbackForm = ({
47
47
  customTextAreaLabel,
48
48
  customFeedbackOptions = [],
49
49
  shouldReturnFocusRef,
50
+ dialogRef,
50
51
  disableSubmitButton,
51
52
  showRequiredFieldsSummary = true
52
53
  }) => {
@@ -141,6 +142,7 @@ const FeedbackForm = ({
141
142
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
142
143
  React.createElement("p", null, formatMessage(messages.feedbackIsAnonymous));
143
144
  return /*#__PURE__*/React.createElement(Modal, {
145
+ ref: dialogRef,
144
146
  shouldCloseOnOverlayClick: false,
145
147
  onClose: onClose,
146
148
  testId: "feedbackCollectorModalDialog",
@@ -155,7 +155,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
155
155
  }, {
156
156
  key: "getPackageVersion",
157
157
  value: function getPackageVersion() {
158
- return "16.0.0" || 'Unknown, at least 11.0.0';
158
+ return "16.1.1" || 'Unknown, at least 11.0.0';
159
159
  }
160
160
  }, {
161
161
  key: "getEntitlementInformation",
@@ -484,6 +484,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
484
484
  customTextAreaLabel: this.props.customTextAreaLabel,
485
485
  customFeedbackOptions: this.props.customFeedbackOptions,
486
486
  shouldReturnFocusRef: this.props.shouldReturnFocusRef,
487
+ dialogRef: this.props.dialogRef,
487
488
  disableSubmitButton: this.props.disableSubmitButton
488
489
  }, fg('jfp_a11y_team_feedback_collector_nested_elements') && {
489
490
  enrolInResearchLink: this.props.enrolInResearchLink,
@@ -56,6 +56,7 @@ var FeedbackForm = function FeedbackForm(_ref2) {
56
56
  _ref2$customFeedbackO = _ref2.customFeedbackOptions,
57
57
  customFeedbackOptions = _ref2$customFeedbackO === void 0 ? [] : _ref2$customFeedbackO,
58
58
  shouldReturnFocusRef = _ref2.shouldReturnFocusRef,
59
+ dialogRef = _ref2.dialogRef,
59
60
  disableSubmitButton = _ref2.disableSubmitButton,
60
61
  _ref2$showRequiredFie = _ref2.showRequiredFieldsSummary,
61
62
  showRequiredFieldsSummary = _ref2$showRequiredFie === void 0 ? true : _ref2$showRequiredFie;
@@ -171,6 +172,7 @@ var FeedbackForm = function FeedbackForm(_ref2) {
171
172
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
172
173
  React.createElement("p", null, formatMessage(messages.feedbackIsAnonymous));
173
174
  return /*#__PURE__*/React.createElement(Modal, {
175
+ ref: dialogRef,
174
176
  shouldCloseOnOverlayClick: false,
175
177
  onClose: onClose,
176
178
  testId: "feedbackCollectorModalDialog",
@@ -118,6 +118,8 @@ export interface Props {
118
118
  customFeedbackOptions?: OptionType[];
119
119
  /** Optional ref to return focus to after feedback form is closed */
120
120
  shouldReturnFocusRef?: React.RefObject<HTMLElement>;
121
+ /** Ref to the rendered feedback dialog container */
122
+ dialogRef?: React.RefObject<HTMLElement>;
121
123
  /** Disable submit button to allow custom content to handle validation */
122
124
  disableSubmitButton?: boolean;
123
125
  /** Optional to show or hide the required fields summary */
@@ -53,6 +53,8 @@ interface Props {
53
53
  customFeedbackOptions?: OptionType[];
54
54
  /** React Ref to focus on close */
55
55
  shouldReturnFocusRef?: React.RefObject<HTMLElement>;
56
+ /** Ref to the rendered feedback dialog container */
57
+ dialogRef?: React.RefObject<HTMLElement>;
56
58
  /** Disable submit button to allow custom content to handle validation */
57
59
  disableSubmitButton?: boolean;
58
60
  /** Optional to show or hide the required fields summary */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "16.1.0",
3
+ "version": "16.1.2",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,10 +33,10 @@
33
33
  "@atlaskit/link": "^4.0.0",
34
34
  "@atlaskit/modal-dialog": "^16.0.0",
35
35
  "@atlaskit/platform-feature-flags": "^2.0.0",
36
- "@atlaskit/section-message": "^9.0.0",
36
+ "@atlaskit/section-message": "^9.1.0",
37
37
  "@atlaskit/select": "^22.1.0",
38
38
  "@atlaskit/textarea": "^9.0.0",
39
- "@atlaskit/tokens": "^14.0.0",
39
+ "@atlaskit/tokens": "^15.0.0",
40
40
  "@atlaskit/visually-hidden": "^4.0.0",
41
41
  "@babel/runtime": "^7.0.0"
42
42
  },
@@ -53,7 +53,7 @@
53
53
  "buffer": "^6.0.3",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
- "react-intl": "^6.6.2"
56
+ "react-intl": "^7.0.0"
57
57
  },
58
58
  "keywords": [
59
59
  "atlaskit",