@atlaskit/feedback-collector 14.4.0 → 14.5.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,18 @@
1
1
  # @atlaskit/feedback-collector
2
2
 
3
+ ## 14.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`69d2f5eec10d0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/69d2f5eec10d0) -
8
+ Revert the changes on moving the link outside label
9
+
10
+ ## 14.4.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 14.4.0
4
17
 
5
18
  ### Minor 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.4" || 'Unknown, at least 11.0.0';
166
+ return "0.0.0-development" || 'Unknown, at least 11.0.0';
167
167
  }
168
168
  }, {
169
169
  key: "getEntitlementInformation",
@@ -268,24 +268,23 @@ 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(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, (0, _extends2.default)({}, fieldProps, {
271
+ return /*#__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, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.canBeContactedLabelAppify : _messages.messages.canBeContactedLabel),
274
+ label: canBeContactedLabel || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.canBeContactedLabelAppify : _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
+ })),
275
284
  onChange: function onChange(event) {
276
285
  return setCanBeContacted(event.target.checked);
277
286
  }
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))));
287
+ }));
289
288
  }), /*#__PURE__*/_react.default.createElement(_form.Field, {
290
289
  name: "enroll-in-research-group"
291
290
  }, function (_ref7) {
@@ -18,14 +18,9 @@ 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 Atlassian Privacy Policy.',
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
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
- },
29
24
  summaryPlaceholder: {
30
25
  id: 'feedback-collector.summary-placeholder',
31
26
  defaultMessage: "Let us know what's on your mind",
@@ -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.4" || 'Unknown, at least 11.0.0';
94
+ return "0.0.0-development" || 'Unknown, at least 11.0.0';
95
95
  }
96
96
  async getEntitlementInformation() {
97
97
  var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
@@ -212,22 +212,19 @@ const FeedbackForm = ({
212
212
  name: "can-be-contacted"
213
213
  }, ({
214
214
  fieldProps
215
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
215
+ }) => /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
216
216
  "aria-describedby": undefined // JCA11Y-1988
217
217
  ,
218
- label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.canBeContactedLabelAppify : messages.canBeContactedLabel),
218
+ label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, fg('product-terminology-refresh') ? messages.canBeContactedLabelAppify : 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
+ })),
219
226
  onChange: event => setCanBeContacted(event.target.checked)
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, {
227
+ }))), /*#__PURE__*/React.createElement(Field, {
231
228
  name: "enroll-in-research-group"
232
229
  }, ({
233
230
  fieldProps
@@ -12,14 +12,9 @@ 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 Atlassian Privacy Policy.',
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
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
- },
23
18
  summaryPlaceholder: {
24
19
  id: 'feedback-collector.summary-placeholder',
25
20
  defaultMessage: "Let us know what's on your mind",
@@ -154,7 +154,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
154
154
  }, {
155
155
  key: "getPackageVersion",
156
156
  value: function getPackageVersion() {
157
- return "14.3.4" || 'Unknown, at least 11.0.0';
157
+ return "0.0.0-development" || 'Unknown, at least 11.0.0';
158
158
  }
159
159
  }, {
160
160
  key: "getEntitlementInformation",
@@ -259,24 +259,23 @@ 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(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
262
+ return /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
263
263
  "aria-describedby": undefined // JCA11Y-1988
264
264
  ,
265
- label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.canBeContactedLabelAppify : messages.canBeContactedLabel),
265
+ label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, fg('product-terminology-refresh') ? messages.canBeContactedLabelAppify : 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
+ })),
266
275
  onChange: function onChange(event) {
267
276
  return setCanBeContacted(event.target.checked);
268
277
  }
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))));
278
+ }));
280
279
  }), /*#__PURE__*/React.createElement(Field, {
281
280
  name: "enroll-in-research-group"
282
281
  }, function (_ref7) {
@@ -12,14 +12,9 @@ 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 Atlassian Privacy Policy.',
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
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
- },
23
18
  summaryPlaceholder: {
24
19
  id: 'feedback-collector.summary-placeholder',
25
20
  defaultMessage: "Let us know what's on your mind",
@@ -14,11 +14,6 @@ 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
- };
22
17
  summaryPlaceholder: {
23
18
  id: string;
24
19
  defaultMessage: string;
@@ -14,11 +14,6 @@ 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
- };
22
17
  summaryPlaceholder: {
23
18
  id: string;
24
19
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "14.4.0",
3
+ "version": "14.5.0",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,11 +45,11 @@
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
  },