@atlaskit/feedback-collector 12.1.2 → 12.2.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,17 @@
1
1
  # @atlaskit/feedback-collector
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`32649ca71ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/32649ca71ad) - [ux] Update the 'can be contacted' opt-in language
8
+
9
+ ## 12.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
14
+
3
15
  ## 12.1.2
4
16
 
5
17
  ### Patch Changes
@@ -136,7 +136,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
136
136
  }, {
137
137
  key: "getPackageVersion",
138
138
  value: function getPackageVersion() {
139
- return "12.1.2" || 'Unknown, at least 11.0.0';
139
+ return "12.2.0" || 'Unknown, at least 11.0.0';
140
140
  }
141
141
  }, {
142
142
  key: "getEntitlementInformation",
@@ -178,7 +178,14 @@ 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),
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
+ }
188
+ }),
182
189
  onChange: function onChange(event) {
183
190
  return setCanBeContacted(event.target.checked);
184
191
  }
@@ -13,7 +13,7 @@ var messages = (0, _reactIntlNext.defineMessages)({
13
13
  },
14
14
  enrolInResearchLabel: {
15
15
  id: 'feedback-collector.enrol-in-research.label',
16
- defaultMessage: "I'd like to participate in product research",
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>',
17
17
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
18
18
  },
19
19
  canBeContactedLabel: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.1.2",
3
+ "version": "12.2.0",
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.1.2" || 'Unknown, at least 11.0.0';
84
+ return "12.2.0" || 'Unknown, at least 11.0.0';
85
85
  }
86
86
  async getEntitlementInformation() {
87
87
  var _productName;
@@ -123,7 +123,9 @@ const FeedbackForm = ({
123
123
  }, ({
124
124
  fieldProps
125
125
  }) => /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
126
- label: canBeContactedLabel || formatMessage(messages.canBeContactedLabel),
126
+ label: canBeContactedLabel || formatMessage(messages.canBeContactedLabel, {
127
+ a: (...chunks) => `<a href="https://www.atlassian.com/legal/privacy-policy">${chunks}</a>`
128
+ }),
127
129
  onChange: event => setCanBeContacted(event.target.checked)
128
130
  }))), /*#__PURE__*/React.createElement(Field, {
129
131
  name: "enroll-in-research-group"
@@ -7,7 +7,7 @@ export const messages = defineMessages({
7
7
  },
8
8
  enrolInResearchLabel: {
9
9
  id: 'feedback-collector.enrol-in-research.label',
10
- defaultMessage: "I'd like to participate in product research",
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>',
11
11
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
12
12
  },
13
13
  canBeContactedLabel: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.1.2",
3
+ "version": "12.2.0",
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.1.2" || 'Unknown, at least 11.0.0';
129
+ return "12.2.0" || 'Unknown, at least 11.0.0';
130
130
  }
131
131
  }, {
132
132
  key: "getEntitlementInformation",
@@ -168,7 +168,14 @@ 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),
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
+ }
178
+ }),
172
179
  onChange: function onChange(event) {
173
180
  return setCanBeContacted(event.target.checked);
174
181
  }
@@ -7,7 +7,7 @@ export var messages = defineMessages({
7
7
  },
8
8
  enrolInResearchLabel: {
9
9
  id: 'feedback-collector.enrol-in-research.label',
10
- defaultMessage: "I'd like to participate in product research",
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>',
11
11
  description: 'The checkbox label letting users enrol themselves in future product research interviews'
12
12
  },
13
13
  canBeContactedLabel: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.1.2",
3
+ "version": "12.2.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "12.1.2",
3
+ "version": "12.2.0",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,11 +39,11 @@
39
39
  "@atlaskit/flag": "^15.2.0",
40
40
  "@atlaskit/form": "^8.11.0",
41
41
  "@atlaskit/icon": "^21.12.0",
42
- "@atlaskit/modal-dialog": "^12.5.0",
43
- "@atlaskit/select": "^16.2.0",
44
- "@atlaskit/textarea": "^4.6.0",
42
+ "@atlaskit/modal-dialog": "^12.6.0",
43
+ "@atlaskit/select": "^16.5.0",
44
+ "@atlaskit/textarea": "^4.7.0",
45
45
  "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.4.0",
46
+ "@atlaskit/tokens": "^1.5.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "react-intl-next": "npm:react-intl@^5.18.1"
49
49
  },
@@ -52,10 +52,9 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@atlaskit/docs": "*",
55
- "@atlaskit/logo": "^13.14.0",
56
55
  "@atlaskit/section-message": "^6.4.0",
57
56
  "@atlaskit/ssr": "*",
58
- "@atlaskit/textfield": "^5.4.0",
57
+ "@atlaskit/textfield": "^5.5.0",
59
58
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
60
59
  "@testing-library/react": "^12.1.5",
61
60
  "@testing-library/react-hooks": "^8.0.1",