@atlaskit/feedback-collector 12.2.0 → 12.2.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,17 @@
1
1
  # @atlaskit/feedback-collector
2
2
 
3
+ ## 12.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a6e64a7df16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6e64a7df16) - [ux] fix opt-in messages
8
+
9
+ ## 12.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`44d70ecadb6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/44d70ecadb6) - [ux] Fix enroll message
14
+
3
15
  ## 12.2.0
4
16
 
5
17
  ### Minor Changes
@@ -136,7 +136,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
136
136
  }, {
137
137
  key: "getPackageVersion",
138
138
  value: function getPackageVersion() {
139
- return "12.2.0" || 'Unknown, at least 11.0.0';
139
+ return "12.2.2" || 'Unknown, at least 11.0.0';
140
140
  }
141
141
  }, {
142
142
  key: "getEntitlementInformation",
@@ -178,13 +178,10 @@ var FeedbackForm = function FeedbackForm(_ref) {
178
178
  }, function (_ref5) {
179
179
  var fieldProps = _ref5.fieldProps;
180
180
  return /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, (0, _extends2.default)({}, fieldProps, {
181
- label: canBeContactedLabel || formatMessage(_messages.messages.canBeContactedLabel, {
182
- a: function a() {
183
- for (var _len = arguments.length, chunks = new Array(_len), _key = 0; _key < _len; _key++) {
184
- chunks[_key] = arguments[_key];
185
- }
186
- return "<a href=\"https://www.atlassian.com/legal/privacy-policy\">".concat(chunks, "</a>");
187
- }
181
+ label: canBeContactedLabel || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.canBeContactedLabel, function (chunks) {
182
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, chunks, /*#__PURE__*/_react.default.createElement("a", {
183
+ href: "https://www.atlassian.com/legal/privacy-policy"
184
+ }, formatMessage(_messages.messages.privacyPolicy)), ".");
188
185
  }),
189
186
  onChange: function onChange(event) {
190
187
  return setCanBeContacted(event.target.checked);
@@ -11,14 +11,19 @@ var messages = (0, _reactIntlNext.defineMessages)({
11
11
  defaultMessage: 'Share your thoughts',
12
12
  description: 'The title shown at the top of the feedback form encouraging users to leave feedback'
13
13
  },
14
+ privacyPolicy: {
15
+ id: 'feedback-collector.atlassian-privacy-policy',
16
+ defaultMessage: 'Atlassian Privacy Policy',
17
+ description: 'Link text for the Atlassian Privacy Policy'
18
+ },
14
19
  enrolInResearchLabel: {
15
20
  id: 'feedback-collector.enrol-in-research.label',
16
- 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>',
21
+ defaultMessage: "I'd like to participate in product research",
17
22
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
18
23
  },
19
24
  canBeContactedLabel: {
20
25
  id: 'feedback-collector.can-be-contacted.label',
21
- defaultMessage: 'Atlassian can contact me about this feedback',
26
+ defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the ',
22
27
  description: 'The checkbox label to give consent to be contacted about their feedback'
23
28
  },
24
29
  summaryPlaceholder: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.2.0",
3
+ "version": "12.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -81,7 +81,7 @@ export default class FeedbackCollector extends Component {
81
81
  return FeedbackCollector.defaultProps.url;
82
82
  }
83
83
  getPackageVersion() {
84
- return "12.2.0" || 'Unknown, at least 11.0.0';
84
+ return "12.2.2" || 'Unknown, at least 11.0.0';
85
85
  }
86
86
  async getEntitlementInformation() {
87
87
  var _productName;
@@ -123,9 +123,9 @@ const FeedbackForm = ({
123
123
  }, ({
124
124
  fieldProps
125
125
  }) => /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
126
- label: canBeContactedLabel || formatMessage(messages.canBeContactedLabel, {
127
- a: (...chunks) => `<a href="https://www.atlassian.com/legal/privacy-policy">${chunks}</a>`
128
- }),
126
+ label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, messages.canBeContactedLabel, chunks => /*#__PURE__*/React.createElement(React.Fragment, null, chunks, /*#__PURE__*/React.createElement("a", {
127
+ href: "https://www.atlassian.com/legal/privacy-policy"
128
+ }, formatMessage(messages.privacyPolicy)), ".")),
129
129
  onChange: event => setCanBeContacted(event.target.checked)
130
130
  }))), /*#__PURE__*/React.createElement(Field, {
131
131
  name: "enroll-in-research-group"
@@ -5,14 +5,19 @@ export const messages = defineMessages({
5
5
  defaultMessage: 'Share your thoughts',
6
6
  description: 'The title shown at the top of the feedback form encouraging users to leave feedback'
7
7
  },
8
+ privacyPolicy: {
9
+ id: 'feedback-collector.atlassian-privacy-policy',
10
+ defaultMessage: 'Atlassian Privacy Policy',
11
+ description: 'Link text for the Atlassian Privacy Policy'
12
+ },
8
13
  enrolInResearchLabel: {
9
14
  id: 'feedback-collector.enrol-in-research.label',
10
- 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>',
15
+ defaultMessage: "I'd like to participate in product research",
11
16
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
12
17
  },
13
18
  canBeContactedLabel: {
14
19
  id: 'feedback-collector.can-be-contacted.label',
15
- defaultMessage: 'Atlassian can contact me about this feedback',
20
+ defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the ',
16
21
  description: 'The checkbox label to give consent to be contacted about their feedback'
17
22
  },
18
23
  summaryPlaceholder: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.2.0",
3
+ "version": "12.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -126,7 +126,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
126
126
  }, {
127
127
  key: "getPackageVersion",
128
128
  value: function getPackageVersion() {
129
- return "12.2.0" || 'Unknown, at least 11.0.0';
129
+ return "12.2.2" || 'Unknown, at least 11.0.0';
130
130
  }
131
131
  }, {
132
132
  key: "getEntitlementInformation",
@@ -168,13 +168,10 @@ var FeedbackForm = function FeedbackForm(_ref) {
168
168
  }, function (_ref5) {
169
169
  var fieldProps = _ref5.fieldProps;
170
170
  return /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
171
- label: canBeContactedLabel || formatMessage(messages.canBeContactedLabel, {
172
- a: function a() {
173
- for (var _len = arguments.length, chunks = new Array(_len), _key = 0; _key < _len; _key++) {
174
- chunks[_key] = arguments[_key];
175
- }
176
- return "<a href=\"https://www.atlassian.com/legal/privacy-policy\">".concat(chunks, "</a>");
177
- }
171
+ label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, messages.canBeContactedLabel, function (chunks) {
172
+ return /*#__PURE__*/React.createElement(React.Fragment, null, chunks, /*#__PURE__*/React.createElement("a", {
173
+ href: "https://www.atlassian.com/legal/privacy-policy"
174
+ }, formatMessage(messages.privacyPolicy)), ".");
178
175
  }),
179
176
  onChange: function onChange(event) {
180
177
  return setCanBeContacted(event.target.checked);
@@ -5,14 +5,19 @@ export var messages = defineMessages({
5
5
  defaultMessage: 'Share your thoughts',
6
6
  description: 'The title shown at the top of the feedback form encouraging users to leave feedback'
7
7
  },
8
+ privacyPolicy: {
9
+ id: 'feedback-collector.atlassian-privacy-policy',
10
+ defaultMessage: 'Atlassian Privacy Policy',
11
+ description: 'Link text for the Atlassian Privacy Policy'
12
+ },
8
13
  enrolInResearchLabel: {
9
14
  id: 'feedback-collector.enrol-in-research.label',
10
- 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>',
15
+ defaultMessage: "I'd like to participate in product research",
11
16
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
12
17
  },
13
18
  canBeContactedLabel: {
14
19
  id: 'feedback-collector.can-be-contacted.label',
15
- defaultMessage: 'Atlassian can contact me about this feedback',
20
+ defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the ',
16
21
  description: 'The checkbox label to give consent to be contacted about their feedback'
17
22
  },
18
23
  summaryPlaceholder: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.2.0",
3
+ "version": "12.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -4,6 +4,11 @@ export declare const messages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ privacyPolicy: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  enrolInResearchLabel: {
8
13
  id: string;
9
14
  defaultMessage: string;
@@ -4,6 +4,11 @@ export declare const messages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ privacyPolicy: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  enrolInResearchLabel: {
8
13
  id: string;
9
14
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.2.0",
3
+ "version": "12.2.2",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"