@atlaskit/feedback-collector 13.2.2 → 13.2.4
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 +12 -0
- package/dist/cjs/components/FeedbackCollector.js +3 -2
- package/dist/cjs/components/FeedbackForm.js +6 -4
- package/dist/cjs/messages.js +5 -0
- package/dist/es2019/components/FeedbackCollector.js +3 -2
- package/dist/es2019/components/FeedbackForm.js +6 -4
- package/dist/es2019/messages.js +5 -0
- package/dist/esm/components/FeedbackCollector.js +3 -2
- package/dist/esm/components/FeedbackForm.js +6 -4
- package/dist/esm/messages.js +5 -0
- package/dist/types/components/FeedbackCollector.d.ts +2 -0
- package/dist/types/components/FeedbackForm.d.ts +2 -0
- package/dist/types/messages.d.ts +5 -0
- package/dist/types-ts4.5/components/FeedbackCollector.d.ts +2 -0
- package/dist/types-ts4.5/components/FeedbackForm.d.ts +2 -0
- package/dist/types-ts4.5/messages.d.ts +5 -0
- package/package.json +7 -4
- package/tmp/api-report-tmp.d.ts +0 -245
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/feedback-collector
|
|
2
2
|
|
|
3
|
+
## 13.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#56606](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56606) [`9a14ce6e5fe6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a14ce6e5fe6) - [ux] Add \* on the label of select field, and remove placeholder of textarea
|
|
8
|
+
|
|
9
|
+
## 13.2.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43918](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43918) [`d100ca42f46`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d100ca42f46) - Push model consumption configuration done for these packages
|
|
14
|
+
|
|
3
15
|
## 13.2.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -166,7 +166,7 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
166
166
|
}, {
|
|
167
167
|
key: "getPackageVersion",
|
|
168
168
|
value: function getPackageVersion() {
|
|
169
|
-
return "13.2.
|
|
169
|
+
return "13.2.4" || 'Unknown, at least 11.0.0';
|
|
170
170
|
}
|
|
171
171
|
}, {
|
|
172
172
|
key: "getEntitlementInformation",
|
|
@@ -476,7 +476,8 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
476
476
|
onClose: this.props.onClose,
|
|
477
477
|
locale: this.props.locale,
|
|
478
478
|
anonymousFeedback: (0, _platformFeatureFlags.getBooleanFF)('platform.proforma-form-builder-feedback_hupaz') ? this.state.anonymousFeedback : anonymousFeedback,
|
|
479
|
-
selectLabel: this.props.selectLabel
|
|
479
|
+
selectLabel: this.props.selectLabel,
|
|
480
|
+
customTextAreaLabel: this.props.customTextAreaLabel
|
|
480
481
|
});
|
|
481
482
|
}
|
|
482
483
|
}]);
|
|
@@ -49,7 +49,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
49
49
|
cancelButtonLabel = _ref.cancelButtonLabel,
|
|
50
50
|
anonymousFeedback = _ref.anonymousFeedback,
|
|
51
51
|
hasDescriptionDefaultValue = _ref.hasDescriptionDefaultValue,
|
|
52
|
-
selectLabel = _ref.selectLabel
|
|
52
|
+
selectLabel = _ref.selectLabel,
|
|
53
|
+
customTextAreaLabel = _ref.customTextAreaLabel;
|
|
53
54
|
var _useState = (0, _react.useState)(false),
|
|
54
55
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
55
56
|
canBeContacted = _useState2[0],
|
|
@@ -152,7 +153,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
152
153
|
}
|
|
153
154
|
}, formatMessage(_messages.messages.requiredFieldsSummary), /*#__PURE__*/_react.default.createElement(_form.RequiredAsterisk, null)), feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
154
155
|
name: "topic",
|
|
155
|
-
label: selectLabel || formatMessage(_messages.messages.selectionOptionDefaultLabel)
|
|
156
|
+
label: selectLabel || formatMessage(_messages.messages.selectionOptionDefaultLabel),
|
|
157
|
+
isRequired: true
|
|
156
158
|
}, function (_ref4) {
|
|
157
159
|
var _ref4$fieldProps = _ref4.fieldProps,
|
|
158
160
|
id = _ref4$fieldProps.id,
|
|
@@ -180,7 +182,7 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
180
182
|
inputId: id
|
|
181
183
|
}));
|
|
182
184
|
}) : null, showDefaultTextFields && canShowTextField && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
183
|
-
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] :
|
|
185
|
+
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] : customTextAreaLabel || formatMessage(_messages.messages.defaultCustomTextAreaLabel),
|
|
184
186
|
isRequired: true,
|
|
185
187
|
name: "description"
|
|
186
188
|
}, function (_ref5) {
|
|
@@ -188,7 +190,7 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
188
190
|
return /*#__PURE__*/_react.default.createElement(_textarea.default, (0, _extends2.default)({}, fieldProps, {
|
|
189
191
|
name: "foo",
|
|
190
192
|
minimumRows: 6,
|
|
191
|
-
placeholder: summaryPlaceholder ||
|
|
193
|
+
placeholder: summaryPlaceholder || undefined,
|
|
192
194
|
onChange: function onChange(e) {
|
|
193
195
|
return setDescription(e.target.value);
|
|
194
196
|
},
|
package/dist/cjs/messages.js
CHANGED
|
@@ -125,5 +125,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
125
125
|
id: 'feedback-collector.required.fields.summary',
|
|
126
126
|
defaultMessage: 'Required fields are marked with an asterisk',
|
|
127
127
|
description: 'Summary info of required fields asterisk.'
|
|
128
|
+
},
|
|
129
|
+
defaultCustomTextAreaLabel: {
|
|
130
|
+
id: 'feedback-collector.default.custom.textarea.label',
|
|
131
|
+
defaultMessage: "What's on your mind?",
|
|
132
|
+
description: 'The textarea label where users can write their suggestion for custom feedback collector'
|
|
128
133
|
}
|
|
129
134
|
});
|
|
@@ -91,7 +91,7 @@ export default class FeedbackCollector extends Component {
|
|
|
91
91
|
return FeedbackCollector.defaultProps.url;
|
|
92
92
|
}
|
|
93
93
|
getPackageVersion() {
|
|
94
|
-
return "13.2.
|
|
94
|
+
return "13.2.4" || 'Unknown, at least 11.0.0';
|
|
95
95
|
}
|
|
96
96
|
async getEntitlementInformation() {
|
|
97
97
|
var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
|
|
@@ -311,7 +311,8 @@ export default class FeedbackCollector extends Component {
|
|
|
311
311
|
onClose: this.props.onClose,
|
|
312
312
|
locale: this.props.locale,
|
|
313
313
|
anonymousFeedback: getBooleanFF('platform.proforma-form-builder-feedback_hupaz') ? this.state.anonymousFeedback : anonymousFeedback,
|
|
314
|
-
selectLabel: this.props.selectLabel
|
|
314
|
+
selectLabel: this.props.selectLabel,
|
|
315
|
+
customTextAreaLabel: this.props.customTextAreaLabel
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
318
|
}
|
|
@@ -28,7 +28,8 @@ const FeedbackForm = ({
|
|
|
28
28
|
cancelButtonLabel,
|
|
29
29
|
anonymousFeedback,
|
|
30
30
|
hasDescriptionDefaultValue,
|
|
31
|
-
selectLabel
|
|
31
|
+
selectLabel,
|
|
32
|
+
customTextAreaLabel
|
|
32
33
|
}) => {
|
|
33
34
|
const [canBeContacted, setCanBeContacted] = useState(false);
|
|
34
35
|
const [description, setDescription] = useState('');
|
|
@@ -100,7 +101,8 @@ const FeedbackForm = ({
|
|
|
100
101
|
}
|
|
101
102
|
}, formatMessage(messages.requiredFieldsSummary), /*#__PURE__*/React.createElement(RequiredAsterisk, null)), feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/React.createElement(Field, {
|
|
102
103
|
name: "topic",
|
|
103
|
-
label: selectLabel || formatMessage(messages.selectionOptionDefaultLabel)
|
|
104
|
+
label: selectLabel || formatMessage(messages.selectionOptionDefaultLabel),
|
|
105
|
+
isRequired: true
|
|
104
106
|
}, ({
|
|
105
107
|
fieldProps: {
|
|
106
108
|
id,
|
|
@@ -127,7 +129,7 @@ const FeedbackForm = ({
|
|
|
127
129
|
placeholder: getDefaultPlaceholder(feedbackGroupLabels),
|
|
128
130
|
inputId: id
|
|
129
131
|
}))) : null, showDefaultTextFields && canShowTextField && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Field, {
|
|
130
|
-
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] :
|
|
132
|
+
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] : customTextAreaLabel || formatMessage(messages.defaultCustomTextAreaLabel),
|
|
131
133
|
isRequired: true,
|
|
132
134
|
name: "description"
|
|
133
135
|
}, ({
|
|
@@ -135,7 +137,7 @@ const FeedbackForm = ({
|
|
|
135
137
|
}) => /*#__PURE__*/React.createElement(TextArea, _extends({}, fieldProps, {
|
|
136
138
|
name: "foo",
|
|
137
139
|
minimumRows: 6,
|
|
138
|
-
placeholder: summaryPlaceholder ||
|
|
140
|
+
placeholder: summaryPlaceholder || undefined,
|
|
139
141
|
onChange: e => setDescription(e.target.value),
|
|
140
142
|
value: description
|
|
141
143
|
}))), !anonymousFeedback && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Field, {
|
package/dist/es2019/messages.js
CHANGED
|
@@ -119,5 +119,10 @@ export const messages = defineMessages({
|
|
|
119
119
|
id: 'feedback-collector.required.fields.summary',
|
|
120
120
|
defaultMessage: 'Required fields are marked with an asterisk',
|
|
121
121
|
description: 'Summary info of required fields asterisk.'
|
|
122
|
+
},
|
|
123
|
+
defaultCustomTextAreaLabel: {
|
|
124
|
+
id: 'feedback-collector.default.custom.textarea.label',
|
|
125
|
+
defaultMessage: "What's on your mind?",
|
|
126
|
+
description: 'The textarea label where users can write their suggestion for custom feedback collector'
|
|
122
127
|
}
|
|
123
128
|
});
|
|
@@ -156,7 +156,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
156
156
|
}, {
|
|
157
157
|
key: "getPackageVersion",
|
|
158
158
|
value: function getPackageVersion() {
|
|
159
|
-
return "13.2.
|
|
159
|
+
return "13.2.4" || 'Unknown, at least 11.0.0';
|
|
160
160
|
}
|
|
161
161
|
}, {
|
|
162
162
|
key: "getEntitlementInformation",
|
|
@@ -466,7 +466,8 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
466
466
|
onClose: this.props.onClose,
|
|
467
467
|
locale: this.props.locale,
|
|
468
468
|
anonymousFeedback: getBooleanFF('platform.proforma-form-builder-feedback_hupaz') ? this.state.anonymousFeedback : anonymousFeedback,
|
|
469
|
-
selectLabel: this.props.selectLabel
|
|
469
|
+
selectLabel: this.props.selectLabel,
|
|
470
|
+
customTextAreaLabel: this.props.customTextAreaLabel
|
|
470
471
|
});
|
|
471
472
|
}
|
|
472
473
|
}]);
|
|
@@ -39,7 +39,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
39
39
|
cancelButtonLabel = _ref.cancelButtonLabel,
|
|
40
40
|
anonymousFeedback = _ref.anonymousFeedback,
|
|
41
41
|
hasDescriptionDefaultValue = _ref.hasDescriptionDefaultValue,
|
|
42
|
-
selectLabel = _ref.selectLabel
|
|
42
|
+
selectLabel = _ref.selectLabel,
|
|
43
|
+
customTextAreaLabel = _ref.customTextAreaLabel;
|
|
43
44
|
var _useState = useState(false),
|
|
44
45
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45
46
|
canBeContacted = _useState2[0],
|
|
@@ -142,7 +143,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
142
143
|
}
|
|
143
144
|
}, formatMessage(messages.requiredFieldsSummary), /*#__PURE__*/React.createElement(RequiredAsterisk, null)), feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/React.createElement(Field, {
|
|
144
145
|
name: "topic",
|
|
145
|
-
label: selectLabel || formatMessage(messages.selectionOptionDefaultLabel)
|
|
146
|
+
label: selectLabel || formatMessage(messages.selectionOptionDefaultLabel),
|
|
147
|
+
isRequired: true
|
|
146
148
|
}, function (_ref4) {
|
|
147
149
|
var _ref4$fieldProps = _ref4.fieldProps,
|
|
148
150
|
id = _ref4$fieldProps.id,
|
|
@@ -170,7 +172,7 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
170
172
|
inputId: id
|
|
171
173
|
}));
|
|
172
174
|
}) : null, showDefaultTextFields && canShowTextField && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Field, {
|
|
173
|
-
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] :
|
|
175
|
+
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] : customTextAreaLabel || formatMessage(messages.defaultCustomTextAreaLabel),
|
|
174
176
|
isRequired: true,
|
|
175
177
|
name: "description"
|
|
176
178
|
}, function (_ref5) {
|
|
@@ -178,7 +180,7 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
178
180
|
return /*#__PURE__*/React.createElement(TextArea, _extends({}, fieldProps, {
|
|
179
181
|
name: "foo",
|
|
180
182
|
minimumRows: 6,
|
|
181
|
-
placeholder: summaryPlaceholder ||
|
|
183
|
+
placeholder: summaryPlaceholder || undefined,
|
|
182
184
|
onChange: function onChange(e) {
|
|
183
185
|
return setDescription(e.target.value);
|
|
184
186
|
},
|
package/dist/esm/messages.js
CHANGED
|
@@ -119,5 +119,10 @@ export var messages = defineMessages({
|
|
|
119
119
|
id: 'feedback-collector.required.fields.summary',
|
|
120
120
|
defaultMessage: 'Required fields are marked with an asterisk',
|
|
121
121
|
description: 'Summary info of required fields asterisk.'
|
|
122
|
+
},
|
|
123
|
+
defaultCustomTextAreaLabel: {
|
|
124
|
+
id: 'feedback-collector.default.custom.textarea.label',
|
|
125
|
+
defaultMessage: "What's on your mind?",
|
|
126
|
+
description: 'The textarea label where users can write their suggestion for custom feedback collector'
|
|
122
127
|
}
|
|
123
128
|
});
|
|
@@ -99,6 +99,8 @@ export interface Props {
|
|
|
99
99
|
anonymousFeedback?: boolean;
|
|
100
100
|
/** Optional custom label for select field */
|
|
101
101
|
selectLabel?: string;
|
|
102
|
+
/** Optional custom label for TextArea when showTypeField is false*/
|
|
103
|
+
customTextAreaLabel?: string;
|
|
102
104
|
}
|
|
103
105
|
export default class FeedbackCollector extends Component<Props> {
|
|
104
106
|
state: {
|
|
@@ -35,6 +35,8 @@ interface Props {
|
|
|
35
35
|
anonymousFeedback?: boolean;
|
|
36
36
|
/** Optional custom label for select field */
|
|
37
37
|
selectLabel?: string;
|
|
38
|
+
/** Optional custom label for TextArea when showTypeField is false*/
|
|
39
|
+
customTextAreaLabel?: string;
|
|
38
40
|
}
|
|
39
41
|
export interface OptionType {
|
|
40
42
|
label: React.ReactText;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -99,6 +99,8 @@ export interface Props {
|
|
|
99
99
|
anonymousFeedback?: boolean;
|
|
100
100
|
/** Optional custom label for select field */
|
|
101
101
|
selectLabel?: string;
|
|
102
|
+
/** Optional custom label for TextArea when showTypeField is false*/
|
|
103
|
+
customTextAreaLabel?: string;
|
|
102
104
|
}
|
|
103
105
|
export default class FeedbackCollector extends Component<Props> {
|
|
104
106
|
state: {
|
|
@@ -35,6 +35,8 @@ interface Props {
|
|
|
35
35
|
anonymousFeedback?: boolean;
|
|
36
36
|
/** Optional custom label for select field */
|
|
37
37
|
selectLabel?: string;
|
|
38
|
+
/** Optional custom label for TextArea when showTypeField is false*/
|
|
39
|
+
customTextAreaLabel?: string;
|
|
38
40
|
}
|
|
39
41
|
export interface OptionType {
|
|
40
42
|
label: React.ReactText;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/feedback-collector",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.4",
|
|
4
4
|
"description": "A component that collects feedback across Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
"team": "Self-Help Experiences",
|
|
27
27
|
"deprecatedAutoEntryPoints": true,
|
|
28
28
|
"releaseModel": "continuous",
|
|
29
|
+
"productPushConsumption": [
|
|
30
|
+
"jira"
|
|
31
|
+
],
|
|
29
32
|
"website": {
|
|
30
33
|
"name": "Feedback Collector"
|
|
31
34
|
}
|
|
@@ -34,18 +37,18 @@
|
|
|
34
37
|
"access": "public"
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
37
|
-
"@atlaskit/button": "^16.
|
|
40
|
+
"@atlaskit/button": "^16.17.0",
|
|
38
41
|
"@atlaskit/checkbox": "^13.0.0",
|
|
39
42
|
"@atlaskit/flag": "^15.2.0",
|
|
40
43
|
"@atlaskit/form": "^9.0.0",
|
|
41
44
|
"@atlaskit/icon": "^22.0.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
45
|
+
"@atlaskit/modal-dialog": "^12.9.0",
|
|
43
46
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
44
47
|
"@atlaskit/section-message": "^6.4.0",
|
|
45
48
|
"@atlaskit/select": "^17.0.0",
|
|
46
49
|
"@atlaskit/textarea": "^5.0.0",
|
|
47
50
|
"@atlaskit/theme": "^12.6.0",
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^1.29.0",
|
|
49
52
|
"@babel/runtime": "^7.0.0",
|
|
50
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
51
54
|
},
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/feedback-collector"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { Component } from 'react';
|
|
8
|
-
import { FunctionComponent } from 'react';
|
|
9
|
-
import { default as React_2 } from 'react';
|
|
10
|
-
|
|
11
|
-
// @public (undocumented)
|
|
12
|
-
interface AkProps {
|
|
13
|
-
// (undocumented)
|
|
14
|
-
description?: React_2.ReactText;
|
|
15
|
-
// (undocumented)
|
|
16
|
-
isDismissAllowed?: boolean;
|
|
17
|
-
// (undocumented)
|
|
18
|
-
onDismissed?: (...args: Array<any>) => void;
|
|
19
|
-
// (undocumented)
|
|
20
|
-
title?: React_2.ReactText;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// @public (undocumented)
|
|
24
|
-
export const FeedbackButton: React_2.FunctionComponent<Props_3>;
|
|
25
|
-
|
|
26
|
-
// @public (undocumented)
|
|
27
|
-
class FeedbackCollector extends Component<Props> {
|
|
28
|
-
// (undocumented)
|
|
29
|
-
addEmailToContext(): void;
|
|
30
|
-
// (undocumented)
|
|
31
|
-
componentDidMount(): Promise<void>;
|
|
32
|
-
// (undocumented)
|
|
33
|
-
static defaultProps: {
|
|
34
|
-
url: string;
|
|
35
|
-
shouldGetEntitlementDetails: boolean;
|
|
36
|
-
canBeContactedFieldId: string;
|
|
37
|
-
canBeContactedAgreeValue: {
|
|
38
|
-
id: string;
|
|
39
|
-
}[];
|
|
40
|
-
canBeContactedDeclineValue: {
|
|
41
|
-
id: string;
|
|
42
|
-
}[];
|
|
43
|
-
additionalFields: never[];
|
|
44
|
-
customerNameFieldId: string;
|
|
45
|
-
customerNameDefaultValue: string;
|
|
46
|
-
descriptionFieldId: string;
|
|
47
|
-
descriptionDefaultValue: string;
|
|
48
|
-
enrollInResearchFieldId: string;
|
|
49
|
-
enrollInResearchAgreeValue: {
|
|
50
|
-
id: string;
|
|
51
|
-
}[];
|
|
52
|
-
enrollInResearchDeclineValue: {
|
|
53
|
-
id: string;
|
|
54
|
-
}[];
|
|
55
|
-
summaryFieldId: string;
|
|
56
|
-
summaryDefaultValue: string;
|
|
57
|
-
summaryTruncateLength: number;
|
|
58
|
-
timeoutOnSubmit: number;
|
|
59
|
-
typeFieldId: string;
|
|
60
|
-
typeBugDefaultValue: {
|
|
61
|
-
id: string;
|
|
62
|
-
};
|
|
63
|
-
typeCommentDefaultValue: {
|
|
64
|
-
id: string;
|
|
65
|
-
};
|
|
66
|
-
typeSuggestionDefaultValue: {
|
|
67
|
-
id: string;
|
|
68
|
-
};
|
|
69
|
-
typeQuestionDefaultValue: {
|
|
70
|
-
id: string;
|
|
71
|
-
};
|
|
72
|
-
typeEmptyDefaultValue: {
|
|
73
|
-
id: string;
|
|
74
|
-
};
|
|
75
|
-
showTypeField: boolean;
|
|
76
|
-
showDefaultTextFields: boolean;
|
|
77
|
-
anonymousFeedback: boolean;
|
|
78
|
-
onClose: () => void;
|
|
79
|
-
onSubmit: () => void;
|
|
80
|
-
};
|
|
81
|
-
// (undocumented)
|
|
82
|
-
getAtlassianID(): Promise<string | undefined>;
|
|
83
|
-
// (undocumented)
|
|
84
|
-
getCustomerName(): FieldValueType;
|
|
85
|
-
// (undocumented)
|
|
86
|
-
getDescription(formValues: FormFields): FieldValueType;
|
|
87
|
-
// (undocumented)
|
|
88
|
-
getEntitlementInformation(): Promise<FieldType[] | []>;
|
|
89
|
-
// (undocumented)
|
|
90
|
-
getFeedbackUrl(): string;
|
|
91
|
-
// (undocumented)
|
|
92
|
-
getGatewayUrl(): string;
|
|
93
|
-
// (undocumented)
|
|
94
|
-
getPackageVersion(): string;
|
|
95
|
-
// (undocumented)
|
|
96
|
-
getSummary(formValues: FormFields): FieldValueType;
|
|
97
|
-
// (undocumented)
|
|
98
|
-
getTypeFieldValue(dtype: SelectValue): FieldValueType;
|
|
99
|
-
// (undocumented)
|
|
100
|
-
mapFormToJSD(formValues: FormFields): Promise<FeedbackType>;
|
|
101
|
-
// (undocumented)
|
|
102
|
-
postFeedback: (formValues: FormFields) => Promise<void>;
|
|
103
|
-
// (undocumented)
|
|
104
|
-
render(): JSX.Element;
|
|
105
|
-
// (undocumented)
|
|
106
|
-
shouldShowOptInCheckboxes(): boolean;
|
|
107
|
-
// (undocumented)
|
|
108
|
-
shouldShowOptInCheckboxesNew(): Promise<boolean>;
|
|
109
|
-
// (undocumented)
|
|
110
|
-
state: {
|
|
111
|
-
anonymousFeedback: boolean;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
export default FeedbackCollector;
|
|
115
|
-
|
|
116
|
-
// @public (undocumented)
|
|
117
|
-
export const FeedbackFlag: FunctionComponent<AkProps & {
|
|
118
|
-
locale?: string;
|
|
119
|
-
}>;
|
|
120
|
-
|
|
121
|
-
// @public (undocumented)
|
|
122
|
-
export const FeedbackForm: FunctionComponent<Props_2 & {
|
|
123
|
-
locale?: string;
|
|
124
|
-
}>;
|
|
125
|
-
|
|
126
|
-
// @public (undocumented)
|
|
127
|
-
type FeedbackType = {
|
|
128
|
-
fields: FieldType[];
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// @public (undocumented)
|
|
132
|
-
type FieldType = {
|
|
133
|
-
id: string;
|
|
134
|
-
value: FieldValueType;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
// @public (undocumented)
|
|
138
|
-
type FieldValueType = Object | Object[] | string;
|
|
139
|
-
|
|
140
|
-
// @public (undocumented)
|
|
141
|
-
export interface FormFields {
|
|
142
|
-
// (undocumented)
|
|
143
|
-
canBeContacted: boolean;
|
|
144
|
-
// (undocumented)
|
|
145
|
-
description: string;
|
|
146
|
-
// (undocumented)
|
|
147
|
-
enrollInResearchGroup: boolean;
|
|
148
|
-
// (undocumented)
|
|
149
|
-
type: SelectValue;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// @public (undocumented)
|
|
153
|
-
interface Props {
|
|
154
|
-
additionalFields: FieldType[];
|
|
155
|
-
anonymousFeedback?: boolean;
|
|
156
|
-
atlassianAccountId?: string;
|
|
157
|
-
canBeContactedAgreeValue: FieldValueType;
|
|
158
|
-
canBeContactedDeclineValue: FieldValueType;
|
|
159
|
-
canBeContactedFieldId: string;
|
|
160
|
-
canBeContactedLabel?: React_2.ReactChild;
|
|
161
|
-
cancelButtonLabel?: string;
|
|
162
|
-
customContent?: React_2.ReactChild;
|
|
163
|
-
customerNameDefaultValue: FieldValueType;
|
|
164
|
-
customerNameFieldId: string;
|
|
165
|
-
customFeedbackUrl?: string;
|
|
166
|
-
customGatewayUrl?: string;
|
|
167
|
-
descriptionDefaultValue: FieldValueType;
|
|
168
|
-
descriptionFieldId: string;
|
|
169
|
-
email?: string;
|
|
170
|
-
enrolInResearchLabel?: React_2.ReactChild;
|
|
171
|
-
enrollInResearchAgreeValue: FieldValueType;
|
|
172
|
-
enrollInResearchDeclineValue: FieldValueType;
|
|
173
|
-
enrollInResearchFieldId: string;
|
|
174
|
-
entrypointId: string;
|
|
175
|
-
feedbackGroupLabels?: Record<SelectValue, SelectOptionDetails>;
|
|
176
|
-
feedbackTitle?: React_2.ReactText;
|
|
177
|
-
feedbackTitleDetails?: React_2.ReactChild;
|
|
178
|
-
locale?: string;
|
|
179
|
-
name?: string;
|
|
180
|
-
onClose: () => void;
|
|
181
|
-
onSubmit: (formFields: FormFields) => void;
|
|
182
|
-
selectLabel?: string;
|
|
183
|
-
shouldGetEntitlementDetails?: boolean;
|
|
184
|
-
showDefaultTextFields?: boolean;
|
|
185
|
-
showTypeField: boolean;
|
|
186
|
-
submitButtonLabel?: string;
|
|
187
|
-
summaryDefaultValue: FieldValueType;
|
|
188
|
-
summaryFieldId: string;
|
|
189
|
-
summaryPlaceholder?: string;
|
|
190
|
-
summaryTruncateLength: number;
|
|
191
|
-
timeoutOnSubmit: number;
|
|
192
|
-
typeBugDefaultValue: FieldValueType;
|
|
193
|
-
typeCommentDefaultValue: FieldValueType;
|
|
194
|
-
typeEmptyDefaultValue: FieldValueType;
|
|
195
|
-
typeFieldId: string;
|
|
196
|
-
typeQuestionDefaultValue: FieldValueType;
|
|
197
|
-
typeSuggestionDefaultValue: FieldValueType;
|
|
198
|
-
url?: string;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// @public (undocumented)
|
|
202
|
-
interface Props_2 {
|
|
203
|
-
anonymousFeedback?: boolean;
|
|
204
|
-
canBeContactedLabel?: React_2.ReactChild;
|
|
205
|
-
cancelButtonLabel?: string;
|
|
206
|
-
customContent?: React_2.ReactChild;
|
|
207
|
-
enrolInResearchLabel?: React_2.ReactChild;
|
|
208
|
-
feedbackGroupLabels?: Record<SelectValue, SelectOptionDetails>;
|
|
209
|
-
feedbackTitle?: React_2.ReactText;
|
|
210
|
-
feedbackTitleDetails?: React_2.ReactChild;
|
|
211
|
-
hasDescriptionDefaultValue?: boolean;
|
|
212
|
-
locale?: string;
|
|
213
|
-
onClose: () => void;
|
|
214
|
-
onSubmit: (formValues: FormFields) => Promise<void>;
|
|
215
|
-
selectLabel?: string;
|
|
216
|
-
showDefaultTextFields?: boolean;
|
|
217
|
-
showTypeField?: boolean;
|
|
218
|
-
submitButtonLabel?: string;
|
|
219
|
-
summaryPlaceholder?: string;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// @public (undocumented)
|
|
223
|
-
interface Props_3 {
|
|
224
|
-
// (undocumented)
|
|
225
|
-
atlassianAccountId?: string;
|
|
226
|
-
// (undocumented)
|
|
227
|
-
entrypointId: string;
|
|
228
|
-
// (undocumented)
|
|
229
|
-
shouldGetEntitlementDetails?: boolean;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// @public (undocumented)
|
|
233
|
-
interface SelectOptionDetails {
|
|
234
|
-
// (undocumented)
|
|
235
|
-
fieldLabel: string;
|
|
236
|
-
// (undocumented)
|
|
237
|
-
selectOptionLabel: string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// @public (undocumented)
|
|
241
|
-
type SelectValue = 'bug' | 'comment' | 'empty' | 'question' | 'suggestion';
|
|
242
|
-
|
|
243
|
-
// (No @packageDocumentation comment for this package)
|
|
244
|
-
|
|
245
|
-
```
|