@atlaskit/feedback-collector 14.3.4 → 14.4.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,20 @@
1
1
  # @atlaskit/feedback-collector
2
2
 
3
+ ## 14.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`2b6afea21ef37`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b6afea21ef37) -
14
+ Move the privacy policy link out of the label element
15
+ - [`fe108a4620163`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe108a4620163) -
16
+ Product/App term refresh
17
+
3
18
  ## 14.3.4
4
19
 
5
20
  ### Patch Changes
@@ -163,7 +163,7 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
163
163
  }, {
164
164
  key: "getPackageVersion",
165
165
  value: function getPackageVersion() {
166
- return "14.3.3" || 'Unknown, at least 11.0.0';
166
+ return "14.4.0" || 'Unknown, at least 11.0.0';
167
167
  }
168
168
  }, {
169
169
  key: "getEntitlementInformation",
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntlNext = require("react-intl-next");
10
10
  var _flag = require("@atlaskit/flag");
11
11
  var _statusSuccessCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-success--check-circle"));
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  var _colors = require("@atlaskit/theme/colors");
13
14
  var _messages = require("../messages");
14
15
  var _IntlProviderWithResolvedMessages = require("./IntlProviderWithResolvedMessages");
@@ -24,7 +25,7 @@ var FeedbackFlag = function FeedbackFlag(_ref) {
24
25
  label: "Success"
25
26
  }),
26
27
  id: "feedbackSent",
27
- description: description || formatMessage(_messages.messages.feedbackSuccessFlagDescription),
28
+ description: description || formatMessage((0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.feedbackSuccessFlagDescriptionAppify : _messages.messages.feedbackSuccessFlagDescription),
28
29
  title: title || formatMessage(_messages.messages.feedbackSuccessFlagTitle)
29
30
  });
30
31
  };
@@ -268,23 +268,24 @@ var FeedbackForm = function FeedbackForm(_ref) {
268
268
  name: "can-be-contacted"
269
269
  }, function (_ref6) {
270
270
  var fieldProps = _ref6.fieldProps;
271
- return /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, (0, _extends2.default)({}, fieldProps, {
271
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, (0, _extends2.default)({}, fieldProps, {
272
272
  "aria-describedby": undefined // JCA11Y-1988
273
273
  ,
274
- label: canBeContactedLabel || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.canBeContactedLabel, {
275
- values: {
276
- a: function a(chunks) {
277
- return /*#__PURE__*/_react.default.createElement(_link.default, {
278
- href: "https://www.atlassian.com/legal/privacy-policy",
279
- target: "_blank"
280
- }, chunks);
281
- }
282
- }
283
- })),
274
+ label: canBeContactedLabel || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.canBeContactedLabelAppify : _messages.messages.canBeContactedLabel),
284
275
  onChange: function onChange(event) {
285
276
  return setCanBeContacted(event.target.checked);
286
277
  }
287
- }));
278
+ })), /*#__PURE__*/_react.default.createElement("span", {
279
+ style: {
280
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
281
+ paddingInlineStart: "var(--ds-space-300, 24px)",
282
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
283
+ marginInlineStart: "var(--ds-space-050, 4px)"
284
+ }
285
+ }, /*#__PURE__*/_react.default.createElement(_link.default, {
286
+ href: "https://www.atlassian.com/legal/privacy-policy",
287
+ target: "_blank"
288
+ }, formatMessage(_messages.messages.privacyPolicy))));
288
289
  }), /*#__PURE__*/_react.default.createElement(_form.Field, {
289
290
  name: "enroll-in-research-group"
290
291
  }, function (_ref7) {
@@ -18,9 +18,14 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
18
18
  },
19
19
  canBeContactedLabel: {
20
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>.',
21
+ defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the Atlassian Privacy Policy.',
22
22
  description: 'The checkbox label to give consent to be contacted about their feedback'
23
23
  },
24
+ privacyPolicy: {
25
+ id: 'feedback-collector.privacy-policy',
26
+ defaultMessage: 'Atlassian Privacy Policy',
27
+ description: 'The text content for the Privacy Policy link'
28
+ },
24
29
  summaryPlaceholder: {
25
30
  id: 'feedback-collector.summary-placeholder',
26
31
  defaultMessage: "Let us know what's on your mind",
@@ -156,6 +161,16 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
156
161
  defaultMessage: "What's on your mind?",
157
162
  description: 'The textarea label where users can write their suggestion for custom feedback collector'
158
163
  },
164
+ canBeContactedLabelAppify: {
165
+ id: 'feedback-collector.can-be-contacted.label-appify',
166
+ 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>.',
167
+ description: 'The checkbox label to give consent to be contacted about their feedback'
168
+ },
169
+ feedbackSuccessFlagDescriptionAppify: {
170
+ id: 'feedback-collector.success-flag.description-appify',
171
+ defaultMessage: 'Your valuable feedback helps us continually improve our apps.',
172
+ description: 'Description shown when feedback is successfully submitted'
173
+ },
159
174
  validationErrorTypeRequired: {
160
175
  id: 'feedback-collector.validation.type.required',
161
176
  defaultMessage: 'Please select a feedback type',
@@ -91,7 +91,7 @@ export default class FeedbackCollector extends Component {
91
91
  return FeedbackCollector.defaultProps.url;
92
92
  }
93
93
  getPackageVersion() {
94
- return "14.3.3" || 'Unknown, at least 11.0.0';
94
+ return "14.4.0" || 'Unknown, at least 11.0.0';
95
95
  }
96
96
  async getEntitlementInformation() {
97
97
  var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
3
  import { AutoDismissFlag } from '@atlaskit/flag';
4
4
  import SuccessIcon from '@atlaskit/icon/core/migration/status-success--check-circle';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { G300 } from '@atlaskit/theme/colors';
6
7
  import { messages } from '../messages';
7
8
  import { IntlProviderWithResolvedMessages } from './IntlProviderWithResolvedMessages';
@@ -19,7 +20,7 @@ const FeedbackFlag = ({
19
20
  label: "Success"
20
21
  }),
21
22
  id: "feedbackSent",
22
- description: description || formatMessage(messages.feedbackSuccessFlagDescription),
23
+ description: description || formatMessage(fg('product-terminology-refresh') ? messages.feedbackSuccessFlagDescriptionAppify : messages.feedbackSuccessFlagDescription),
23
24
  title: title || formatMessage(messages.feedbackSuccessFlagTitle)
24
25
  });
25
26
  };
@@ -212,19 +212,22 @@ const FeedbackForm = ({
212
212
  name: "can-be-contacted"
213
213
  }, ({
214
214
  fieldProps
215
- }) => /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
215
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
216
216
  "aria-describedby": undefined // JCA11Y-1988
217
217
  ,
218
- label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.canBeContactedLabel, {
219
- values: {
220
- a: chunks => /*#__PURE__*/React.createElement(Link, {
221
- href: "https://www.atlassian.com/legal/privacy-policy",
222
- target: "_blank"
223
- }, chunks)
224
- }
225
- })),
218
+ label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.canBeContactedLabelAppify : messages.canBeContactedLabel),
226
219
  onChange: event => setCanBeContacted(event.target.checked)
227
- }))), /*#__PURE__*/React.createElement(Field, {
220
+ })), /*#__PURE__*/React.createElement("span", {
221
+ style: {
222
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
223
+ paddingInlineStart: "var(--ds-space-300, 24px)",
224
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
225
+ marginInlineStart: "var(--ds-space-050, 4px)"
226
+ }
227
+ }, /*#__PURE__*/React.createElement(Link, {
228
+ href: "https://www.atlassian.com/legal/privacy-policy",
229
+ target: "_blank"
230
+ }, formatMessage(messages.privacyPolicy))))), /*#__PURE__*/React.createElement(Field, {
228
231
  name: "enroll-in-research-group"
229
232
  }, ({
230
233
  fieldProps
@@ -12,9 +12,14 @@ export const messages = defineMessages({
12
12
  },
13
13
  canBeContactedLabel: {
14
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>.',
15
+ defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the Atlassian Privacy Policy.',
16
16
  description: 'The checkbox label to give consent to be contacted about their feedback'
17
17
  },
18
+ privacyPolicy: {
19
+ id: 'feedback-collector.privacy-policy',
20
+ defaultMessage: 'Atlassian Privacy Policy',
21
+ description: 'The text content for the Privacy Policy link'
22
+ },
18
23
  summaryPlaceholder: {
19
24
  id: 'feedback-collector.summary-placeholder',
20
25
  defaultMessage: "Let us know what's on your mind",
@@ -150,6 +155,16 @@ export const messages = defineMessages({
150
155
  defaultMessage: "What's on your mind?",
151
156
  description: 'The textarea label where users can write their suggestion for custom feedback collector'
152
157
  },
158
+ canBeContactedLabelAppify: {
159
+ id: 'feedback-collector.can-be-contacted.label-appify',
160
+ 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>.',
161
+ description: 'The checkbox label to give consent to be contacted about their feedback'
162
+ },
163
+ feedbackSuccessFlagDescriptionAppify: {
164
+ id: 'feedback-collector.success-flag.description-appify',
165
+ defaultMessage: 'Your valuable feedback helps us continually improve our apps.',
166
+ description: 'Description shown when feedback is successfully submitted'
167
+ },
153
168
  validationErrorTypeRequired: {
154
169
  id: 'feedback-collector.validation.type.required',
155
170
  defaultMessage: 'Please select a feedback type',
@@ -154,7 +154,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
154
154
  }, {
155
155
  key: "getPackageVersion",
156
156
  value: function getPackageVersion() {
157
- return "14.3.3" || 'Unknown, at least 11.0.0';
157
+ return "14.4.0" || 'Unknown, at least 11.0.0';
158
158
  }
159
159
  }, {
160
160
  key: "getEntitlementInformation",
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
3
  import { AutoDismissFlag } from '@atlaskit/flag';
4
4
  import SuccessIcon from '@atlaskit/icon/core/migration/status-success--check-circle';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { G300 } from '@atlaskit/theme/colors';
6
7
  import { messages } from '../messages';
7
8
  import { IntlProviderWithResolvedMessages } from './IntlProviderWithResolvedMessages';
@@ -17,7 +18,7 @@ var FeedbackFlag = function FeedbackFlag(_ref) {
17
18
  label: "Success"
18
19
  }),
19
20
  id: "feedbackSent",
20
- description: description || formatMessage(messages.feedbackSuccessFlagDescription),
21
+ description: description || formatMessage(fg('product-terminology-refresh') ? messages.feedbackSuccessFlagDescriptionAppify : messages.feedbackSuccessFlagDescription),
21
22
  title: title || formatMessage(messages.feedbackSuccessFlagTitle)
22
23
  });
23
24
  };
@@ -259,23 +259,24 @@ var FeedbackForm = function FeedbackForm(_ref) {
259
259
  name: "can-be-contacted"
260
260
  }, function (_ref6) {
261
261
  var fieldProps = _ref6.fieldProps;
262
- return /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
262
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
263
263
  "aria-describedby": undefined // JCA11Y-1988
264
264
  ,
265
- label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.canBeContactedLabel, {
266
- values: {
267
- a: function a(chunks) {
268
- return /*#__PURE__*/React.createElement(Link, {
269
- href: "https://www.atlassian.com/legal/privacy-policy",
270
- target: "_blank"
271
- }, chunks);
272
- }
273
- }
274
- })),
265
+ label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.canBeContactedLabelAppify : messages.canBeContactedLabel),
275
266
  onChange: function onChange(event) {
276
267
  return setCanBeContacted(event.target.checked);
277
268
  }
278
- }));
269
+ })), /*#__PURE__*/React.createElement("span", {
270
+ style: {
271
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
272
+ paddingInlineStart: "var(--ds-space-300, 24px)",
273
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
274
+ marginInlineStart: "var(--ds-space-050, 4px)"
275
+ }
276
+ }, /*#__PURE__*/React.createElement(Link, {
277
+ href: "https://www.atlassian.com/legal/privacy-policy",
278
+ target: "_blank"
279
+ }, formatMessage(messages.privacyPolicy))));
279
280
  }), /*#__PURE__*/React.createElement(Field, {
280
281
  name: "enroll-in-research-group"
281
282
  }, function (_ref7) {
@@ -12,9 +12,14 @@ export var messages = defineMessages({
12
12
  },
13
13
  canBeContactedLabel: {
14
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>.',
15
+ defaultMessage: 'Yes, Atlassian teams can contact me to learn about my experiences to improve Atlassian products and services. I acknowledge the Atlassian Privacy Policy.',
16
16
  description: 'The checkbox label to give consent to be contacted about their feedback'
17
17
  },
18
+ privacyPolicy: {
19
+ id: 'feedback-collector.privacy-policy',
20
+ defaultMessage: 'Atlassian Privacy Policy',
21
+ description: 'The text content for the Privacy Policy link'
22
+ },
18
23
  summaryPlaceholder: {
19
24
  id: 'feedback-collector.summary-placeholder',
20
25
  defaultMessage: "Let us know what's on your mind",
@@ -150,6 +155,16 @@ export var messages = defineMessages({
150
155
  defaultMessage: "What's on your mind?",
151
156
  description: 'The textarea label where users can write their suggestion for custom feedback collector'
152
157
  },
158
+ canBeContactedLabelAppify: {
159
+ id: 'feedback-collector.can-be-contacted.label-appify',
160
+ 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>.',
161
+ description: 'The checkbox label to give consent to be contacted about their feedback'
162
+ },
163
+ feedbackSuccessFlagDescriptionAppify: {
164
+ id: 'feedback-collector.success-flag.description-appify',
165
+ defaultMessage: 'Your valuable feedback helps us continually improve our apps.',
166
+ description: 'Description shown when feedback is successfully submitted'
167
+ },
153
168
  validationErrorTypeRequired: {
154
169
  id: 'feedback-collector.validation.type.required',
155
170
  defaultMessage: 'Please select a feedback type',
@@ -14,6 +14,11 @@ export declare const messages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ privacyPolicy: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
17
22
  summaryPlaceholder: {
18
23
  id: string;
19
24
  defaultMessage: string;
@@ -149,6 +154,16 @@ export declare const messages: {
149
154
  defaultMessage: string;
150
155
  description: string;
151
156
  };
157
+ canBeContactedLabelAppify: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ description: string;
161
+ };
162
+ feedbackSuccessFlagDescriptionAppify: {
163
+ id: string;
164
+ defaultMessage: string;
165
+ description: string;
166
+ };
152
167
  validationErrorTypeRequired: {
153
168
  id: string;
154
169
  defaultMessage: string;
@@ -14,6 +14,11 @@ export declare const messages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ privacyPolicy: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
17
22
  summaryPlaceholder: {
18
23
  id: string;
19
24
  defaultMessage: string;
@@ -149,6 +154,16 @@ export declare const messages: {
149
154
  defaultMessage: string;
150
155
  description: string;
151
156
  };
157
+ canBeContactedLabelAppify: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ description: string;
161
+ };
162
+ feedbackSuccessFlagDescriptionAppify: {
163
+ id: string;
164
+ defaultMessage: string;
165
+ description: string;
166
+ };
152
167
  validationErrorTypeRequired: {
153
168
  id: string;
154
169
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "14.3.4",
3
+ "version": "14.4.1",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,15 +41,15 @@
41
41
  "@atlaskit/checkbox": "^17.1.0",
42
42
  "@atlaskit/flag": "^17.3.0",
43
43
  "@atlaskit/form": "^12.2.0",
44
- "@atlaskit/icon": "^28.0.0",
44
+ "@atlaskit/icon": "^28.1.0",
45
45
  "@atlaskit/link": "^3.2.0",
46
46
  "@atlaskit/modal-dialog": "^14.3.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/section-message": "^8.5.0",
48
+ "@atlaskit/section-message": "^8.6.0",
49
49
  "@atlaskit/select": "^21.2.0",
50
50
  "@atlaskit/textarea": "^8.0.0",
51
- "@atlaskit/theme": "^19.0.0",
52
- "@atlaskit/tokens": "^6.0.0",
51
+ "@atlaskit/theme": "^20.0.0",
52
+ "@atlaskit/tokens": "^6.1.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "react-intl-next": "npm:react-intl@^5.18.1"
55
55
  },
@@ -91,6 +91,9 @@
91
91
  "dst-a11y__replace-anchor-with-link__belugas-feedba": {
92
92
  "type": "boolean"
93
93
  },
94
+ "product-terminology-refresh": {
95
+ "type": "boolean"
96
+ },
94
97
  "feedback-collector-custom-validation": {
95
98
  "type": "boolean"
96
99
  }