@atlaskit/feedback-collector 16.8.1 → 16.9.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,22 @@
1
1
  # @atlaskit/feedback-collector
2
2
 
3
+ ## 16.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2543c8b0416d7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2543c8b0416d7) -
8
+ Cleanup feature gate `fun-2435_improve_feedback_collector_copy`. The contact opt-in checkbox
9
+ always uses the copy explaining that consent is required to receive a reply.
10
+
11
+ ## 16.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`d6496db5d242e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d6496db5d242e) -
16
+ [ux] Behind the `fun-2435_improve_feedback_collector_copy` feature gate, the contact opt-in
17
+ checkbox copy now explains that consent is required to receive a reply, and that Atlassian teams
18
+ may ask for more details about the reported experience.
19
+
3
20
  ## 16.8.1
4
21
 
5
22
  ### Patch 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.8.0" || 'Unknown, at least 11.0.0';
167
+ return "16.9.0" || 'Unknown, at least 11.0.0';
168
168
  }
169
169
  }, {
170
170
  key: "getEntitlementInformation",
@@ -155,15 +155,15 @@ var FeedbackForm = function FeedbackForm(_ref2) {
155
155
  var selectOptions = customFeedbackOptions.length > 0 ? customFeedbackOptions : getSelectOptions(feedbackGroupLabels);
156
156
  var renderContactLabelAppify = function renderContactLabelAppify() {
157
157
  if ((0, _platformFeatureFlags.fg)('jfp_a11y_team_feedback_collector_nested_elements')) {
158
- return _messages.messages.canBeContactedLabelAppifyWithoutLink;
158
+ return _messages.messages.canBeContactedLabelAppifyWithResponseWithoutLink;
159
159
  }
160
- return _messages.messages.canBeContactedLabelAppify;
160
+ return _messages.messages.canBeContactedLabelAppifyWithResponse;
161
161
  };
162
162
  var renderContactLabel = function renderContactLabel() {
163
163
  if ((0, _platformFeatureFlags.fg)('jfp_a11y_team_feedback_collector_nested_elements')) {
164
- return _messages.messages.canBeContactedLabelWithoutLink;
164
+ return _messages.messages.canBeContactedLabelWithResponseWithoutLink;
165
165
  }
166
- return _messages.messages.canBeContactedLabel;
166
+ return _messages.messages.canBeContactedLabelWithResponse;
167
167
  };
168
168
  var requiredFieldsSummary =
169
169
  /*#__PURE__*/
@@ -16,15 +16,15 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
16
16
  defaultMessage: "I'd like to participate in product research",
17
17
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
18
18
  },
19
- canBeContactedLabel: {
20
- id: 'feedback-collector.can-be-contacted.label',
21
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the <a>Atlassian Privacy Policy</a>.',
22
- description: 'The checkbox label to give consent to be contacted about their feedback'
19
+ canBeContactedLabelWithResponse: {
20
+ id: 'feedback-collector.can-be-contacted.label-with-response',
21
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian products and services. Without this, I won't get a response. I acknowledge the <a>Atlassian Privacy Policy</a>.",
22
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
23
23
  },
24
- canBeContactedLabelWithoutLink: {
25
- id: 'feedback-collector.can-be-contacted.label-without-link',
26
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the Atlassian Privacy Policy.',
27
- description: 'The checkbox label to give consent to be contacted about their feedback'
24
+ canBeContactedLabelWithResponseWithoutLink: {
25
+ id: 'feedback-collector.can-be-contacted.label-with-response-without-link',
26
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian products and services. Without this, I won't get a response. I acknowledge the Atlassian Privacy Policy.",
27
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
28
28
  },
29
29
  privacyPolicy: {
30
30
  id: 'feedback-collector.privacy-policy',
@@ -166,15 +166,15 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
166
166
  defaultMessage: "What's on your mind?",
167
167
  description: 'The textarea label where users can write their suggestion for custom feedback collector'
168
168
  },
169
- canBeContactedLabelAppify: {
170
- id: 'feedback-collector.can-be-contacted.label-appify',
171
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian apps and services. I acknowledge the <a>Atlassian Privacy Policy</a>.',
172
- description: 'The checkbox label to give consent to be contacted about their feedback'
169
+ canBeContactedLabelAppifyWithResponse: {
170
+ id: 'feedback-collector.can-be-contacted.label-appify-with-response',
171
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian apps and services. Without this, I won't get a response. I acknowledge the <a>Atlassian Privacy Policy</a>.",
172
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
173
173
  },
174
- canBeContactedLabelAppifyWithoutLink: {
175
- id: 'feedback-collector.can-be-contacted.label-appify-without-link',
176
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian apps and services. I acknowledge the Atlassian Privacy Policy.',
177
- description: 'The checkbox label to give consent to be contacted about their feedback'
174
+ canBeContactedLabelAppifyWithResponseWithoutLink: {
175
+ id: 'feedback-collector.can-be-contacted.label-appify-with-response-without-link',
176
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian apps and services. Without this, I won't get a response. I acknowledge the Atlassian Privacy Policy.",
177
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
178
178
  },
179
179
  feedbackSuccessFlagDescriptionAppify: {
180
180
  id: 'feedback-collector.success-flag.description-appify',
@@ -92,7 +92,7 @@ export default class FeedbackCollector extends Component {
92
92
  return FeedbackCollector.defaultProps.url;
93
93
  }
94
94
  getPackageVersion() {
95
- return "16.8.0" || 'Unknown, at least 11.0.0';
95
+ return "16.9.0" || 'Unknown, at least 11.0.0';
96
96
  }
97
97
  async getEntitlementInformation() {
98
98
  var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
@@ -116,15 +116,15 @@ const FeedbackForm = ({
116
116
  const selectOptions = customFeedbackOptions.length > 0 ? customFeedbackOptions : getSelectOptions(feedbackGroupLabels);
117
117
  const renderContactLabelAppify = () => {
118
118
  if (fg('jfp_a11y_team_feedback_collector_nested_elements')) {
119
- return messages.canBeContactedLabelAppifyWithoutLink;
119
+ return messages.canBeContactedLabelAppifyWithResponseWithoutLink;
120
120
  }
121
- return messages.canBeContactedLabelAppify;
121
+ return messages.canBeContactedLabelAppifyWithResponse;
122
122
  };
123
123
  const renderContactLabel = () => {
124
124
  if (fg('jfp_a11y_team_feedback_collector_nested_elements')) {
125
- return messages.canBeContactedLabelWithoutLink;
125
+ return messages.canBeContactedLabelWithResponseWithoutLink;
126
126
  }
127
- return messages.canBeContactedLabel;
127
+ return messages.canBeContactedLabelWithResponse;
128
128
  };
129
129
  const requiredFieldsSummary =
130
130
  /*#__PURE__*/
@@ -10,15 +10,15 @@ export const messages = defineMessages({
10
10
  defaultMessage: "I'd like to participate in product research",
11
11
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
12
12
  },
13
- canBeContactedLabel: {
14
- id: 'feedback-collector.can-be-contacted.label',
15
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the <a>Atlassian Privacy Policy</a>.',
16
- description: 'The checkbox label to give consent to be contacted about their feedback'
13
+ canBeContactedLabelWithResponse: {
14
+ id: 'feedback-collector.can-be-contacted.label-with-response',
15
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian products and services. Without this, I won't get a response. I acknowledge the <a>Atlassian Privacy Policy</a>.",
16
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
17
17
  },
18
- canBeContactedLabelWithoutLink: {
19
- id: 'feedback-collector.can-be-contacted.label-without-link',
20
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the Atlassian Privacy Policy.',
21
- description: 'The checkbox label to give consent to be contacted about their feedback'
18
+ canBeContactedLabelWithResponseWithoutLink: {
19
+ id: 'feedback-collector.can-be-contacted.label-with-response-without-link',
20
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian products and services. Without this, I won't get a response. I acknowledge the Atlassian Privacy Policy.",
21
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
22
22
  },
23
23
  privacyPolicy: {
24
24
  id: 'feedback-collector.privacy-policy',
@@ -160,15 +160,15 @@ export const messages = defineMessages({
160
160
  defaultMessage: "What's on your mind?",
161
161
  description: 'The textarea label where users can write their suggestion for custom feedback collector'
162
162
  },
163
- canBeContactedLabelAppify: {
164
- id: 'feedback-collector.can-be-contacted.label-appify',
165
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian apps and services. I acknowledge the <a>Atlassian Privacy Policy</a>.',
166
- description: 'The checkbox label to give consent to be contacted about their feedback'
163
+ canBeContactedLabelAppifyWithResponse: {
164
+ id: 'feedback-collector.can-be-contacted.label-appify-with-response',
165
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian apps and services. Without this, I won't get a response. I acknowledge the <a>Atlassian Privacy Policy</a>.",
166
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
167
167
  },
168
- canBeContactedLabelAppifyWithoutLink: {
169
- id: 'feedback-collector.can-be-contacted.label-appify-without-link',
170
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian apps and services. I acknowledge the Atlassian Privacy Policy.',
171
- description: 'The checkbox label to give consent to be contacted about their feedback'
168
+ canBeContactedLabelAppifyWithResponseWithoutLink: {
169
+ id: 'feedback-collector.can-be-contacted.label-appify-with-response-without-link',
170
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian apps and services. Without this, I won't get a response. I acknowledge the Atlassian Privacy Policy.",
171
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
172
172
  },
173
173
  feedbackSuccessFlagDescriptionAppify: {
174
174
  id: 'feedback-collector.success-flag.description-appify',
@@ -155,7 +155,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
155
155
  }, {
156
156
  key: "getPackageVersion",
157
157
  value: function getPackageVersion() {
158
- return "16.8.0" || 'Unknown, at least 11.0.0';
158
+ return "16.9.0" || 'Unknown, at least 11.0.0';
159
159
  }
160
160
  }, {
161
161
  key: "getEntitlementInformation",
@@ -146,15 +146,15 @@ var FeedbackForm = function FeedbackForm(_ref2) {
146
146
  var selectOptions = customFeedbackOptions.length > 0 ? customFeedbackOptions : getSelectOptions(feedbackGroupLabels);
147
147
  var renderContactLabelAppify = function renderContactLabelAppify() {
148
148
  if (fg('jfp_a11y_team_feedback_collector_nested_elements')) {
149
- return messages.canBeContactedLabelAppifyWithoutLink;
149
+ return messages.canBeContactedLabelAppifyWithResponseWithoutLink;
150
150
  }
151
- return messages.canBeContactedLabelAppify;
151
+ return messages.canBeContactedLabelAppifyWithResponse;
152
152
  };
153
153
  var renderContactLabel = function renderContactLabel() {
154
154
  if (fg('jfp_a11y_team_feedback_collector_nested_elements')) {
155
- return messages.canBeContactedLabelWithoutLink;
155
+ return messages.canBeContactedLabelWithResponseWithoutLink;
156
156
  }
157
- return messages.canBeContactedLabel;
157
+ return messages.canBeContactedLabelWithResponse;
158
158
  };
159
159
  var requiredFieldsSummary =
160
160
  /*#__PURE__*/
@@ -10,15 +10,15 @@ export var messages = defineMessages({
10
10
  defaultMessage: "I'd like to participate in product research",
11
11
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
12
12
  },
13
- canBeContactedLabel: {
14
- id: 'feedback-collector.can-be-contacted.label',
15
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the <a>Atlassian Privacy Policy</a>.',
16
- description: 'The checkbox label to give consent to be contacted about their feedback'
13
+ canBeContactedLabelWithResponse: {
14
+ id: 'feedback-collector.can-be-contacted.label-with-response',
15
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian products and services. Without this, I won't get a response. I acknowledge the <a>Atlassian Privacy Policy</a>.",
16
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
17
17
  },
18
- canBeContactedLabelWithoutLink: {
19
- id: 'feedback-collector.can-be-contacted.label-without-link',
20
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the Atlassian Privacy Policy.',
21
- description: 'The checkbox label to give consent to be contacted about their feedback'
18
+ canBeContactedLabelWithResponseWithoutLink: {
19
+ id: 'feedback-collector.can-be-contacted.label-with-response-without-link',
20
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian products and services. Without this, I won't get a response. I acknowledge the Atlassian Privacy Policy.",
21
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
22
22
  },
23
23
  privacyPolicy: {
24
24
  id: 'feedback-collector.privacy-policy',
@@ -160,15 +160,15 @@ export var messages = defineMessages({
160
160
  defaultMessage: "What's on your mind?",
161
161
  description: 'The textarea label where users can write their suggestion for custom feedback collector'
162
162
  },
163
- canBeContactedLabelAppify: {
164
- id: 'feedback-collector.can-be-contacted.label-appify',
165
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian apps and services. I acknowledge the <a>Atlassian Privacy Policy</a>.',
166
- description: 'The checkbox label to give consent to be contacted about their feedback'
163
+ canBeContactedLabelAppifyWithResponse: {
164
+ id: 'feedback-collector.can-be-contacted.label-appify-with-response',
165
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian apps and services. Without this, I won't get a response. I acknowledge the <a>Atlassian Privacy Policy</a>.",
166
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
167
167
  },
168
- canBeContactedLabelAppifyWithoutLink: {
169
- id: 'feedback-collector.can-be-contacted.label-appify-without-link',
170
- defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian apps and services. I acknowledge the Atlassian Privacy Policy.',
171
- description: 'The checkbox label to give consent to be contacted about their feedback'
168
+ canBeContactedLabelAppifyWithResponseWithoutLink: {
169
+ id: 'feedback-collector.can-be-contacted.label-appify-with-response-without-link',
170
+ defaultMessage: "Yes, Atlassian teams can reply to my feedback and ask for more details about my experience to improve Atlassian apps and services. Without this, I won't get a response. I acknowledge the Atlassian Privacy Policy.",
171
+ description: 'The checkbox label to give consent to be contacted about their feedback, explaining that consent is needed to receive a reply'
172
172
  },
173
173
  feedbackSuccessFlagDescriptionAppify: {
174
174
  id: 'feedback-collector.success-flag.description-appify',
@@ -9,12 +9,12 @@ export declare const messages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
- canBeContactedLabel: {
12
+ canBeContactedLabelWithResponse: {
13
13
  id: string;
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
- canBeContactedLabelWithoutLink: {
17
+ canBeContactedLabelWithResponseWithoutLink: {
18
18
  id: string;
19
19
  defaultMessage: string;
20
20
  description: string;
@@ -159,12 +159,12 @@ export declare const messages: {
159
159
  defaultMessage: string;
160
160
  description: string;
161
161
  };
162
- canBeContactedLabelAppify: {
162
+ canBeContactedLabelAppifyWithResponse: {
163
163
  id: string;
164
164
  defaultMessage: string;
165
165
  description: string;
166
166
  };
167
- canBeContactedLabelAppifyWithoutLink: {
167
+ canBeContactedLabelAppifyWithResponseWithoutLink: {
168
168
  id: string;
169
169
  defaultMessage: string;
170
170
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "16.8.1",
3
+ "version": "16.9.1",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,18 +25,18 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/afm-i18n-platform-web-platform-feedback-collector": "2.210.0",
28
- "@atlaskit/button": "^25.0.0",
28
+ "@atlaskit/button": "^25.1.0",
29
29
  "@atlaskit/checkbox": "^19.0.0",
30
- "@atlaskit/flag": "^18.2.0",
30
+ "@atlaskit/flag": "^18.3.0",
31
31
  "@atlaskit/form": "^17.0.0",
32
- "@atlaskit/icon": "^37.3.0",
32
+ "@atlaskit/icon": "^37.4.0",
33
33
  "@atlaskit/link": "^5.0.0",
34
- "@atlaskit/modal-dialog": "^16.3.0",
34
+ "@atlaskit/modal-dialog": "^16.4.0",
35
35
  "@atlaskit/platform-feature-flags": "^2.1.0",
36
36
  "@atlaskit/section-message": "^10.0.0",
37
- "@atlaskit/select": "^22.6.0",
37
+ "@atlaskit/select": "^22.7.0",
38
38
  "@atlaskit/textarea": "^10.0.0",
39
- "@atlaskit/tokens": "^16.6.0",
39
+ "@atlaskit/tokens": "^16.7.0",
40
40
  "@atlaskit/visually-hidden": "^4.2.0",
41
41
  "@babel/runtime": "^7.0.0"
42
42
  },
@@ -1,74 +0,0 @@
1
- /**
2
- * Structured MCP docs for `@atlaskit/feedback-collector`.
3
- */
4
-
5
- import path from 'path';
6
-
7
- import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
8
-
9
- import packageJson from './package.json';
10
-
11
- const packagePath = path.resolve(__dirname);
12
-
13
- const documentation: StructuredContentSource = {
14
- package: {
15
- package: '@atlaskit/feedback-collector',
16
- packagePath,
17
- packageJson,
18
- overview:
19
- 'A component that collects feedback across Atlassian products. It provides a consistent way for users to submit feedback, including bug reports and feature requests.',
20
- },
21
- components: [
22
- {
23
- name: 'FeedbackCollector',
24
- description: 'The main component for collecting user feedback.',
25
- status: 'general-availability',
26
- import: {
27
- name: 'default',
28
- package: '@atlaskit/feedback-collector',
29
- type: 'default',
30
- packagePath,
31
- packageJson,
32
- },
33
- usageGuidelines: [
34
- 'Use `FeedbackCollector` to trigger a feedback form from your application.',
35
- 'Provide `onClose` and `onSubmit` handlers to manage the feedback flow.',
36
- ],
37
- keywords: ['feedback', 'collector', 'atlassian'],
38
- categories: ['web-platform'],
39
- examples: [
40
- {
41
- name: 'Feedback collector',
42
- description: 'Basic usage of FeedbackCollector.',
43
- source: path.resolve(packagePath, './examples/02-feedback-collector.tsx'),
44
- },
45
- ],
46
- },
47
- {
48
- name: 'FeedbackButton',
49
- description: 'A button component used to trigger the feedback collector.',
50
- status: 'general-availability',
51
- import: {
52
- name: 'FeedbackButton',
53
- package: '@atlaskit/feedback-collector',
54
- type: 'named',
55
- packagePath,
56
- packageJson,
57
- },
58
- usageGuidelines: [
59
- 'Use `FeedbackButton` to provide a consistent trigger for the feedback collector.',
60
- ],
61
- keywords: ['feedback', 'button', 'trigger'],
62
- categories: ['web-platform'],
63
- examples: [
64
- {
65
- name: 'Feedback button',
66
- description: 'Basic usage of FeedbackButton.',
67
- source: path.resolve(packagePath, './examples/03-feedback-button.tsx'),
68
- },
69
- ],
70
- },
71
- ],
72
- };
73
-
74
- export default documentation;