@atlaskit/feedback-collector 15.6.0 → 16.0.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 +26 -0
- package/FeedbackButton/package.json +1 -8
- package/FeedbackFlag/package.json +1 -8
- package/FeedbackForm/package.json +1 -8
- package/dist/cjs/components/FeedbackCollector.js +1 -1
- package/dist/es2019/components/FeedbackCollector.js +1 -1
- package/dist/esm/components/FeedbackCollector.js +1 -1
- package/messages/package.json +1 -8
- package/package.json +14 -22
- package/types/package.json +1 -8
- package/dist/types-ts4.5/components/FeedbackButton.d.ts +0 -9
- package/dist/types-ts4.5/components/FeedbackCollector.d.ts +0 -198
- package/dist/types-ts4.5/components/FeedbackFlag.d.ts +0 -11
- package/dist/types-ts4.5/components/FeedbackForm.d.ts +0 -68
- package/dist/types-ts4.5/components/IntlProviderWithResolvedMessages.d.ts +0 -4
- package/dist/types-ts4.5/entry-points/FeedbackButton.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/FeedbackFlag.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/FeedbackForm.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/index.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/index.d.ts +0 -7
- package/dist/types-ts4.5/messages.d.ts +0 -192
- package/dist/types-ts4.5/types.d.ts +0 -16
- package/dist/types-ts4.5/utils/Truncate.d.ts +0 -1
- package/dist/types-ts4.5/utils/i18n-get-messages-for-locale.d.ts +0 -11
- package/dist/types-ts4.5/utils/is-api-gateway-url.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/feedback-collector
|
|
2
2
|
|
|
3
|
+
## 16.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 15.6.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/FeedbackButton.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/FeedbackButton.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/FeedbackButton.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/FeedbackButton.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/FeedbackButton.d.ts"
|
|
15
8
|
}
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/FeedbackFlag.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/FeedbackFlag.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/FeedbackFlag.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/FeedbackFlag.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/FeedbackFlag.d.ts"
|
|
15
8
|
}
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/FeedbackForm.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/FeedbackForm.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/FeedbackForm.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/FeedbackForm.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/FeedbackForm.d.ts"
|
|
15
8
|
}
|
|
@@ -164,7 +164,7 @@ var FeedbackCollector = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
164
164
|
}, {
|
|
165
165
|
key: "getPackageVersion",
|
|
166
166
|
value: function getPackageVersion() {
|
|
167
|
-
return "15.
|
|
167
|
+
return "15.6.0" || 'Unknown, at least 11.0.0';
|
|
168
168
|
}
|
|
169
169
|
}, {
|
|
170
170
|
key: "getEntitlementInformation",
|
|
@@ -92,7 +92,7 @@ export default class FeedbackCollector extends Component {
|
|
|
92
92
|
return FeedbackCollector.defaultProps.url;
|
|
93
93
|
}
|
|
94
94
|
getPackageVersion() {
|
|
95
|
-
return "15.
|
|
95
|
+
return "15.6.0" || 'Unknown, at least 11.0.0';
|
|
96
96
|
}
|
|
97
97
|
async getEntitlementInformation() {
|
|
98
98
|
var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
|
|
@@ -155,7 +155,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
155
155
|
}, {
|
|
156
156
|
key: "getPackageVersion",
|
|
157
157
|
value: function getPackageVersion() {
|
|
158
|
-
return "15.
|
|
158
|
+
return "15.6.0" || 'Unknown, at least 11.0.0';
|
|
159
159
|
}
|
|
160
160
|
}, {
|
|
161
161
|
key: "getEntitlementInformation",
|
package/messages/package.json
CHANGED
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/messages.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/messages.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/messages.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/messages.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/messages.d.ts"
|
|
15
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/feedback-collector",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "A component that collects feedback across Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.5 <4.9": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.5/*",
|
|
19
|
-
"dist/types-ts4.5/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"sideEffects": false,
|
|
24
16
|
"atlaskit:src": "src/index.ts",
|
|
25
17
|
"atlassian": {
|
|
@@ -33,19 +25,19 @@
|
|
|
33
25
|
},
|
|
34
26
|
"dependencies": {
|
|
35
27
|
"@atlaskit/afm-i18n-platform-web-platform-feedback-collector": "2.96.0",
|
|
36
|
-
"@atlaskit/button": "^
|
|
37
|
-
"@atlaskit/checkbox": "^
|
|
38
|
-
"@atlaskit/flag": "^
|
|
39
|
-
"@atlaskit/form": "^
|
|
40
|
-
"@atlaskit/icon": "^
|
|
41
|
-
"@atlaskit/link": "^
|
|
42
|
-
"@atlaskit/modal-dialog": "^
|
|
43
|
-
"@atlaskit/platform-feature-flags": "^
|
|
44
|
-
"@atlaskit/section-message": "^
|
|
45
|
-
"@atlaskit/select": "^
|
|
46
|
-
"@atlaskit/textarea": "^
|
|
47
|
-
"@atlaskit/tokens": "^
|
|
48
|
-
"@atlaskit/visually-hidden": "^
|
|
28
|
+
"@atlaskit/button": "^24.0.0",
|
|
29
|
+
"@atlaskit/checkbox": "^18.0.0",
|
|
30
|
+
"@atlaskit/flag": "^18.0.0",
|
|
31
|
+
"@atlaskit/form": "^16.0.0",
|
|
32
|
+
"@atlaskit/icon": "^36.0.0",
|
|
33
|
+
"@atlaskit/link": "^4.0.0",
|
|
34
|
+
"@atlaskit/modal-dialog": "^16.0.0",
|
|
35
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
36
|
+
"@atlaskit/section-message": "^9.0.0",
|
|
37
|
+
"@atlaskit/select": "^22.0.0",
|
|
38
|
+
"@atlaskit/textarea": "^9.0.0",
|
|
39
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
40
|
+
"@atlaskit/visually-hidden": "^4.0.0",
|
|
49
41
|
"@babel/runtime": "^7.0.0"
|
|
50
42
|
},
|
|
51
43
|
"peerDependencies": {
|
package/types/package.json
CHANGED
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/types.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/types.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/types.d.ts"
|
|
15
8
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
type Props = PropsWithChildren<{
|
|
3
|
-
entrypointId: string;
|
|
4
|
-
atlassianAccountId?: string;
|
|
5
|
-
shouldGetEntitlementDetails?: boolean;
|
|
6
|
-
locale: string;
|
|
7
|
-
}>;
|
|
8
|
-
declare const FeedbackButtonWithIntl: (props: Props) => React.JSX.Element;
|
|
9
|
-
export default FeedbackButtonWithIntl;
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import { type FormFields, type SelectOptionDetails, type SelectValue } from '../types';
|
|
3
|
-
import { type OptionType } from './FeedbackForm';
|
|
4
|
-
type FieldValueType = string | Object | Object[];
|
|
5
|
-
export type FieldType = {
|
|
6
|
-
id: string;
|
|
7
|
-
value: FieldValueType;
|
|
8
|
-
};
|
|
9
|
-
type FeedbackType = {
|
|
10
|
-
fields: FieldType[];
|
|
11
|
-
};
|
|
12
|
-
export interface Props {
|
|
13
|
-
/** Override the URL for all HTTPS calls, only needed if service is not behind stargate (like the Atlaskit frontend itself) */
|
|
14
|
-
url?: string;
|
|
15
|
-
/** A custom URL for the Stargate gateway, this field takes priority over `url` */
|
|
16
|
-
customGatewayUrl?: string;
|
|
17
|
-
/** A custom URL for the Feedback Collector API, this field takes priority over `url` */
|
|
18
|
-
customFeedbackUrl?: string;
|
|
19
|
-
/** Whether to request email details and product entitlements */
|
|
20
|
-
shouldGetEntitlementDetails?: boolean;
|
|
21
|
-
/** The customer name */
|
|
22
|
-
name?: string;
|
|
23
|
-
/** The id of the entrypoint in the feedback service; to acquire your entrypointId, visit the #feedback-collectors channel */
|
|
24
|
-
entrypointId: string;
|
|
25
|
-
/** Additional fields to send to the widget service **/
|
|
26
|
-
additionalFields: FieldType[];
|
|
27
|
-
/** Override the default id for the "can be contacted" custom field in your widget service **/
|
|
28
|
-
canBeContactedFieldId: string;
|
|
29
|
-
/** Override the agree value for the "can be contacted" custom field in your widget service */
|
|
30
|
-
canBeContactedAgreeValue: FieldValueType;
|
|
31
|
-
/** Override the decline value for the "can be contacted" custom field in your widget service */
|
|
32
|
-
canBeContactedDeclineValue: FieldValueType;
|
|
33
|
-
/** Override the default id for the "customer name" custom field in your widget service */
|
|
34
|
-
customerNameFieldId: string;
|
|
35
|
-
/** Override the default value for the "customer name" custom field in your widget service */
|
|
36
|
-
customerNameDefaultValue: FieldValueType;
|
|
37
|
-
/** Override the default id for the "description" custom field in your widget service */
|
|
38
|
-
descriptionFieldId: string;
|
|
39
|
-
/** Override the default value for the "description" custom field in your widget service */
|
|
40
|
-
descriptionDefaultValue: FieldValueType;
|
|
41
|
-
/** Override the default id for the "enroll in research" custom field in your widget service */
|
|
42
|
-
enrollInResearchFieldId: string;
|
|
43
|
-
/** Override the agree value for the "enroll in research" custom field in your widget service */
|
|
44
|
-
enrollInResearchAgreeValue: FieldValueType;
|
|
45
|
-
/** Override the decline value for the "enroll in research" custom field in your widget service */
|
|
46
|
-
enrollInResearchDeclineValue: FieldValueType;
|
|
47
|
-
/** Override the default id for the "summary" custom field in your widget service */
|
|
48
|
-
summaryFieldId: string;
|
|
49
|
-
/** Override the default value for the "summary" custom field in your widget service */
|
|
50
|
-
summaryDefaultValue: FieldValueType;
|
|
51
|
-
/** Number of characters that the "summary" field accepts, the rest will be truncated */
|
|
52
|
-
summaryTruncateLength: number;
|
|
53
|
-
/** After this delay the onSubmit callback will be triggered optimistically */
|
|
54
|
-
timeoutOnSubmit: number;
|
|
55
|
-
/** Override the default id for the "type" custom field in your widget service */
|
|
56
|
-
typeFieldId: string;
|
|
57
|
-
/** Override the default value for the "Bug" type of response in your widget service */
|
|
58
|
-
typeBugDefaultValue: FieldValueType;
|
|
59
|
-
/** Override the default value for the "Comment" type of response in your widget service */
|
|
60
|
-
typeCommentDefaultValue: FieldValueType;
|
|
61
|
-
/** Override the default value for the "Suggestion" type of response in your widget service */
|
|
62
|
-
typeSuggestionDefaultValue: FieldValueType;
|
|
63
|
-
/** Override the default value for the "Question" type of response in your widget service */
|
|
64
|
-
typeQuestionDefaultValue: FieldValueType;
|
|
65
|
-
/** Override the default value for the "Empty" type of response in your widget service */
|
|
66
|
-
typeEmptyDefaultValue: FieldValueType;
|
|
67
|
-
/** Override to hide the feedback type select drop down for the feedback */
|
|
68
|
-
showTypeField: boolean;
|
|
69
|
-
/** Message which will be shown as the title of the feedback dialog */
|
|
70
|
-
feedbackTitle?: React.ReactText;
|
|
71
|
-
/** Message which will be shown below the title of the feedback dialog */
|
|
72
|
-
feedbackTitleDetails?: React.ReactChild;
|
|
73
|
-
/** Message which will be shown next to the enrol in research checkbox */
|
|
74
|
-
enrolInResearchLabel?: React.ReactChild;
|
|
75
|
-
/** Message which will be shown below the enrol in research checkbox */
|
|
76
|
-
enrolInResearchLink?: React.ReactChild;
|
|
77
|
-
/** Message which will be shown next to the can be contacted checkbox */
|
|
78
|
-
canBeContactedLabel?: React.ReactChild;
|
|
79
|
-
/** Link which will be shown below the can be contacted checkbox */
|
|
80
|
-
canBeContactedLink?: React.ReactNode;
|
|
81
|
-
/** Message which will be shown inside the summary text field */
|
|
82
|
-
summaryPlaceholder?: string;
|
|
83
|
-
/** Message for submit button label */
|
|
84
|
-
submitButtonLabel?: string;
|
|
85
|
-
/** Message for cancel button label */
|
|
86
|
-
cancelButtonLabel?: string;
|
|
87
|
-
/** Message for select option labels and field labels */
|
|
88
|
-
feedbackGroupLabels?: Partial<Record<SelectValue, SelectOptionDetails>>;
|
|
89
|
-
/**
|
|
90
|
-
* Function that will be called to initiate the exit transition.
|
|
91
|
-
* When triggered by the cancel button the originating event and Atlaskit UI analytics
|
|
92
|
-
* event are forwarded; programmatic close paths (e.g. after submit) invoke it with no
|
|
93
|
-
* arguments. Typed as a variadic `any[]` to maximise backward compatibility with
|
|
94
|
-
* consumers that declared any conceivable signature for this callback.
|
|
95
|
-
*/
|
|
96
|
-
onClose: (...args: any[]) => void;
|
|
97
|
-
/** Optional function that will be called when the cancel button is clicked, in addition to onClose. */
|
|
98
|
-
onCancel?: (...args: any[]) => void;
|
|
99
|
-
/** Function that will be called optimistically after a delay when the feedback is submitted. */
|
|
100
|
-
onSubmit: (formFields: FormFields) => void;
|
|
101
|
-
/** Locale for i18n */
|
|
102
|
-
locale: string;
|
|
103
|
-
/** Optional custom modal content */
|
|
104
|
-
customContent?: React.ReactChild;
|
|
105
|
-
/** Override to hide the default text fields for feedback */
|
|
106
|
-
showDefaultTextFields?: boolean;
|
|
107
|
-
/** Optional parameter for feedback submitter's Atlassian Account ID */
|
|
108
|
-
atlassianAccountId?: string;
|
|
109
|
-
/** Optional parameter for feedback submitter's email address */
|
|
110
|
-
email?: string;
|
|
111
|
-
/** Override to mark feedback as anonymous */
|
|
112
|
-
anonymousFeedback?: boolean;
|
|
113
|
-
/** Optional custom label for select field */
|
|
114
|
-
selectLabel?: string;
|
|
115
|
-
/** Optional custom label for TextArea when showTypeField is false*/
|
|
116
|
-
customTextAreaLabel?: string;
|
|
117
|
-
/** Custom Select feedback options */
|
|
118
|
-
customFeedbackOptions?: OptionType[];
|
|
119
|
-
/** Optional ref to return focus to after feedback form is closed */
|
|
120
|
-
shouldReturnFocusRef?: React.RefObject<HTMLElement>;
|
|
121
|
-
/** Disable submit button to allow custom content to handle validation */
|
|
122
|
-
disableSubmitButton?: boolean;
|
|
123
|
-
/** Optional to show or hide the required fields summary */
|
|
124
|
-
showRequiredFieldsSummary?: boolean;
|
|
125
|
-
}
|
|
126
|
-
export default class FeedbackCollector extends Component<Props> {
|
|
127
|
-
state: {
|
|
128
|
-
anonymousFeedback: boolean;
|
|
129
|
-
};
|
|
130
|
-
componentDidMount(): Promise<void>;
|
|
131
|
-
static defaultProps: {
|
|
132
|
-
locale: string;
|
|
133
|
-
url: string;
|
|
134
|
-
shouldGetEntitlementDetails: boolean;
|
|
135
|
-
canBeContactedFieldId: string;
|
|
136
|
-
canBeContactedAgreeValue: {
|
|
137
|
-
id: string;
|
|
138
|
-
}[];
|
|
139
|
-
canBeContactedDeclineValue: {
|
|
140
|
-
id: string;
|
|
141
|
-
}[];
|
|
142
|
-
additionalFields: never[];
|
|
143
|
-
customerNameFieldId: string;
|
|
144
|
-
customerNameDefaultValue: string;
|
|
145
|
-
descriptionFieldId: string;
|
|
146
|
-
descriptionDefaultValue: string;
|
|
147
|
-
enrollInResearchFieldId: string;
|
|
148
|
-
enrollInResearchAgreeValue: {
|
|
149
|
-
id: string;
|
|
150
|
-
}[];
|
|
151
|
-
enrollInResearchDeclineValue: {
|
|
152
|
-
id: string;
|
|
153
|
-
}[];
|
|
154
|
-
summaryFieldId: string;
|
|
155
|
-
summaryDefaultValue: string;
|
|
156
|
-
summaryTruncateLength: number;
|
|
157
|
-
timeoutOnSubmit: number;
|
|
158
|
-
typeFieldId: string;
|
|
159
|
-
typeBugDefaultValue: {
|
|
160
|
-
id: string;
|
|
161
|
-
};
|
|
162
|
-
typeCommentDefaultValue: {
|
|
163
|
-
id: string;
|
|
164
|
-
};
|
|
165
|
-
typeSuggestionDefaultValue: {
|
|
166
|
-
id: string;
|
|
167
|
-
};
|
|
168
|
-
typeQuestionDefaultValue: {
|
|
169
|
-
id: string;
|
|
170
|
-
};
|
|
171
|
-
typeEmptyDefaultValue: {
|
|
172
|
-
id: string;
|
|
173
|
-
};
|
|
174
|
-
showTypeField: boolean;
|
|
175
|
-
showDefaultTextFields: boolean;
|
|
176
|
-
anonymousFeedback: boolean;
|
|
177
|
-
onClose: (...args: any[]) => void;
|
|
178
|
-
onSubmit: () => void;
|
|
179
|
-
};
|
|
180
|
-
getGatewayUrl(): string;
|
|
181
|
-
getFeedbackUrl(): string;
|
|
182
|
-
getPackageVersion(): string;
|
|
183
|
-
getEntitlementInformation(): Promise<FieldType[] | [
|
|
184
|
-
]>;
|
|
185
|
-
getTypeFieldValue(dtype: SelectValue): FieldValueType;
|
|
186
|
-
getAtlassianID(): Promise<string | undefined>;
|
|
187
|
-
shouldShowOptInCheckboxes(): boolean;
|
|
188
|
-
shouldShowOptInCheckboxesNew(): Promise<boolean>;
|
|
189
|
-
getDescription(formValues: FormFields): FieldValueType;
|
|
190
|
-
getSummary(formValues: FormFields): FieldValueType;
|
|
191
|
-
getCustomerName(): FieldValueType;
|
|
192
|
-
addEmailToContext(): void;
|
|
193
|
-
addAccountIdToContext(atlassianID: string | undefined): void;
|
|
194
|
-
mapFormToJSD(formValues: FormFields): Promise<FeedbackType>;
|
|
195
|
-
postFeedback: (formValues: FormFields) => Promise<void>;
|
|
196
|
-
render(): React.JSX.Element;
|
|
197
|
-
}
|
|
198
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { type FunctionComponent } from 'react';
|
|
2
|
-
interface AkProps {
|
|
3
|
-
isDismissAllowed?: boolean;
|
|
4
|
-
description?: React.ReactText;
|
|
5
|
-
title?: React.ReactText;
|
|
6
|
-
onDismissed?: (...args: Array<any>) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const FeedbackFlagWithIntl: FunctionComponent<AkProps & {
|
|
9
|
-
locale?: string;
|
|
10
|
-
}>;
|
|
11
|
-
export default FeedbackFlagWithIntl;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type FormFields, type SelectOptionDetails, type SelectValue } from '../types';
|
|
3
|
-
interface Props {
|
|
4
|
-
/** Message which will be shown as the title of the feedback dialog **/
|
|
5
|
-
feedbackTitle?: React.ReactText;
|
|
6
|
-
/** Override to hide the feedback type select drop down for the feedback **/
|
|
7
|
-
showTypeField?: boolean;
|
|
8
|
-
/** Override to hide the default text fields for feedback **/
|
|
9
|
-
showDefaultTextFields?: boolean;
|
|
10
|
-
/** Indicates if the description field has a default value to unlock the form submission */
|
|
11
|
-
hasDescriptionDefaultValue?: boolean;
|
|
12
|
-
/** Message which will be shown below the title of the feedback dialog **/
|
|
13
|
-
feedbackTitleDetails?: React.ReactChild;
|
|
14
|
-
/** Message which will be shown next to the enrol in research checkbox **/
|
|
15
|
-
enrolInResearchLabel?: React.ReactChild;
|
|
16
|
-
/** Message which will be shown below the enrol in research checkbox **/
|
|
17
|
-
enrolInResearchLink?: React.ReactNode;
|
|
18
|
-
/** Message which will be shown next to the can be contacted checkbox **/
|
|
19
|
-
canBeContactedLabel?: React.ReactChild;
|
|
20
|
-
/** Link which will be shown below the can be contacted checkbox **/
|
|
21
|
-
canBeContactedLink?: React.ReactNode;
|
|
22
|
-
/** Message which will be shown inside the summary text field **/
|
|
23
|
-
summaryPlaceholder?: string;
|
|
24
|
-
/** Message for submit button label **/
|
|
25
|
-
submitButtonLabel?: string;
|
|
26
|
-
/** Message for cancel button label **/
|
|
27
|
-
cancelButtonLabel?: string;
|
|
28
|
-
/** Message for select option labels and field labels **/
|
|
29
|
-
feedbackGroupLabels?: Partial<Record<SelectValue, SelectOptionDetails>>;
|
|
30
|
-
/**
|
|
31
|
-
* Function that will be called to initiate the exit transition.
|
|
32
|
-
* When triggered by the cancel button the originating event and Atlaskit UI analytics
|
|
33
|
-
* event are forwarded; programmatic close paths (e.g. after submit) invoke it with no
|
|
34
|
-
* arguments. Typed as a variadic `any[]` to maximise backward compatibility with
|
|
35
|
-
* consumers that declared any conceivable signature for this callback.
|
|
36
|
-
*/
|
|
37
|
-
onClose: (...args: any[]) => void;
|
|
38
|
-
/** Optional function that will be called when the cancel button is clicked, in addition to onClose. */
|
|
39
|
-
onCancel?: (...args: any[]) => void;
|
|
40
|
-
/** Function that will be called immediately after the submit action */
|
|
41
|
-
onSubmit: (formValues: FormFields) => Promise<void>;
|
|
42
|
-
/** Optional locale for i18n **/
|
|
43
|
-
locale?: string;
|
|
44
|
-
/** Optional custom content */
|
|
45
|
-
customContent?: React.ReactChild;
|
|
46
|
-
/** Optional parameter for showing contact opt-in checkboxes */
|
|
47
|
-
anonymousFeedback?: boolean;
|
|
48
|
-
/** Optional custom label for select field */
|
|
49
|
-
selectLabel?: string;
|
|
50
|
-
/** Optional custom label for TextArea when showTypeField is false*/
|
|
51
|
-
customTextAreaLabel?: string;
|
|
52
|
-
/** Custom Select feedback options */
|
|
53
|
-
customFeedbackOptions?: OptionType[];
|
|
54
|
-
/** React Ref to focus on close */
|
|
55
|
-
shouldReturnFocusRef?: React.RefObject<HTMLElement>;
|
|
56
|
-
/** Disable submit button to allow custom content to handle validation */
|
|
57
|
-
disableSubmitButton?: boolean;
|
|
58
|
-
/** Optional to show or hide the required fields summary */
|
|
59
|
-
showRequiredFieldsSummary?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface OptionType {
|
|
62
|
-
label: React.ReactText;
|
|
63
|
-
value: SelectValue;
|
|
64
|
-
}
|
|
65
|
-
declare const FeedbackFormWithIntl: ({ locale, ...props }: Props & {
|
|
66
|
-
locale: string;
|
|
67
|
-
}) => React.ReactElement;
|
|
68
|
-
export default FeedbackFormWithIntl;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FeedbackButton } from '../components/FeedbackButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FeedbackFlag } from '../components/FeedbackFlag';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FeedbackForm } from '../components/FeedbackForm';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/cs';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/da';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/de';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/en';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/en_GB';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/en_ZZ';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/es';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/fi';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/fr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/hr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/hu';
|
|
8
|
-
export default translations;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as fr } from './fr';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/it';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/ja';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/ko';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/nb';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/nl';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/pl';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/pt_BR';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/ru';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/sl';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/sr_RS';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/sr_YR';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/sv';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/th';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/tr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/uk';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/vi';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/zh';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-web-platform-feedback-collector/i18n/zh_TW';
|
|
8
|
-
export default translations;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import FeedbackButton from './components/FeedbackButton';
|
|
2
|
-
import FeedbackCollector from './components/FeedbackCollector';
|
|
3
|
-
import FeedbackFlag from './components/FeedbackFlag';
|
|
4
|
-
import FeedbackForm from './components/FeedbackForm';
|
|
5
|
-
export type { FormFields } from './types';
|
|
6
|
-
export default FeedbackCollector;
|
|
7
|
-
export { FeedbackFlag, FeedbackForm, FeedbackButton };
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
feedbackTitle: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
enrolInResearchLabel: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
canBeContactedLabel: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
canBeContactedLabelWithoutLink: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
privacyPolicy: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
summaryPlaceholder: {
|
|
28
|
-
id: string;
|
|
29
|
-
defaultMessage: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
formCommentLabel: {
|
|
33
|
-
id: string;
|
|
34
|
-
defaultMessage: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
submitButtonLabel: {
|
|
38
|
-
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
cancelButtonLabel: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
giveFeedback: {
|
|
48
|
-
id: string;
|
|
49
|
-
defaultMessage: string;
|
|
50
|
-
description: string;
|
|
51
|
-
};
|
|
52
|
-
formBugLabel: {
|
|
53
|
-
id: string;
|
|
54
|
-
defaultMessage: string;
|
|
55
|
-
description: string;
|
|
56
|
-
};
|
|
57
|
-
formSuggestionLabel: {
|
|
58
|
-
id: string;
|
|
59
|
-
defaultMessage: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
formQuestionLabel: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
formEmptyLabel: {
|
|
68
|
-
id: string;
|
|
69
|
-
defaultMessage: string;
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
|
-
formNotRelevantLabel: {
|
|
73
|
-
id: string;
|
|
74
|
-
defaultMessage: string;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
formNotAccurateLabel: {
|
|
78
|
-
id: string;
|
|
79
|
-
defaultMessage: string;
|
|
80
|
-
description: string;
|
|
81
|
-
};
|
|
82
|
-
formTooSlowLabel: {
|
|
83
|
-
id: string;
|
|
84
|
-
defaultMessage: string;
|
|
85
|
-
description: string;
|
|
86
|
-
};
|
|
87
|
-
formUnhelpfulLinksLabel: {
|
|
88
|
-
id: string;
|
|
89
|
-
defaultMessage: string;
|
|
90
|
-
description: string;
|
|
91
|
-
};
|
|
92
|
-
formOtherLabel: {
|
|
93
|
-
id: string;
|
|
94
|
-
defaultMessage: string;
|
|
95
|
-
description: string;
|
|
96
|
-
};
|
|
97
|
-
selectionOptionQuestionLabel: {
|
|
98
|
-
id: string;
|
|
99
|
-
defaultMessage: string;
|
|
100
|
-
description: string;
|
|
101
|
-
};
|
|
102
|
-
selectionOptionCommentLabel: {
|
|
103
|
-
id: string;
|
|
104
|
-
defaultMessage: string;
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
selectionOptionBugLabel: {
|
|
108
|
-
id: string;
|
|
109
|
-
defaultMessage: string;
|
|
110
|
-
description: string;
|
|
111
|
-
};
|
|
112
|
-
selectionOptionSuggestionLabel: {
|
|
113
|
-
id: string;
|
|
114
|
-
defaultMessage: string;
|
|
115
|
-
description: string;
|
|
116
|
-
};
|
|
117
|
-
selectionOptionDefaultLabel: {
|
|
118
|
-
id: string;
|
|
119
|
-
defaultMessage: string;
|
|
120
|
-
description: string;
|
|
121
|
-
};
|
|
122
|
-
selectionOptionDefaultPlaceholder: {
|
|
123
|
-
id: string;
|
|
124
|
-
defaultMessage: string;
|
|
125
|
-
description: string;
|
|
126
|
-
};
|
|
127
|
-
feedbackIconLabel: {
|
|
128
|
-
id: string;
|
|
129
|
-
defaultMessage: string;
|
|
130
|
-
description: string;
|
|
131
|
-
};
|
|
132
|
-
feedbackSuccessFlagDescription: {
|
|
133
|
-
id: string;
|
|
134
|
-
defaultMessage: string;
|
|
135
|
-
description: string;
|
|
136
|
-
};
|
|
137
|
-
feedbackSuccessFlagTitle: {
|
|
138
|
-
id: string;
|
|
139
|
-
defaultMessage: string;
|
|
140
|
-
description: string;
|
|
141
|
-
};
|
|
142
|
-
feedbackIsAnonymousTitle: {
|
|
143
|
-
id: string;
|
|
144
|
-
defaultMessage: string;
|
|
145
|
-
description: string;
|
|
146
|
-
};
|
|
147
|
-
feedbackIsAnonymous: {
|
|
148
|
-
id: string;
|
|
149
|
-
defaultMessage: string;
|
|
150
|
-
description: string;
|
|
151
|
-
};
|
|
152
|
-
requiredFieldsSummary: {
|
|
153
|
-
id: string;
|
|
154
|
-
defaultMessage: string;
|
|
155
|
-
description: string;
|
|
156
|
-
};
|
|
157
|
-
defaultCustomTextAreaLabel: {
|
|
158
|
-
id: string;
|
|
159
|
-
defaultMessage: string;
|
|
160
|
-
description: string;
|
|
161
|
-
};
|
|
162
|
-
canBeContactedLabelAppify: {
|
|
163
|
-
id: string;
|
|
164
|
-
defaultMessage: string;
|
|
165
|
-
description: string;
|
|
166
|
-
};
|
|
167
|
-
canBeContactedLabelAppifyWithoutLink: {
|
|
168
|
-
id: string;
|
|
169
|
-
defaultMessage: string;
|
|
170
|
-
description: string;
|
|
171
|
-
};
|
|
172
|
-
feedbackSuccessFlagDescriptionAppify: {
|
|
173
|
-
id: string;
|
|
174
|
-
defaultMessage: string;
|
|
175
|
-
description: string;
|
|
176
|
-
};
|
|
177
|
-
validationErrorTypeRequired: {
|
|
178
|
-
id: string;
|
|
179
|
-
defaultMessage: string;
|
|
180
|
-
description: string;
|
|
181
|
-
};
|
|
182
|
-
validationErrorDescriptionRequired: {
|
|
183
|
-
id: string;
|
|
184
|
-
defaultMessage: string;
|
|
185
|
-
description: string;
|
|
186
|
-
};
|
|
187
|
-
optInOptionsLegend: {
|
|
188
|
-
id: string;
|
|
189
|
-
defaultMessage: string;
|
|
190
|
-
description: string;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactText } from 'react';
|
|
2
|
-
export type SelectValue = 'bug' | 'comment' | 'suggestion' | 'question' | 'empty' | 'not_relevant' | 'not_accurate' | 'too_slow' | 'unhelpful_links' | 'other';
|
|
3
|
-
export interface FormFields {
|
|
4
|
-
type: SelectValue;
|
|
5
|
-
description: string;
|
|
6
|
-
canBeContacted: boolean;
|
|
7
|
-
enrollInResearchGroup: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface SelectOptionDetails {
|
|
10
|
-
fieldLabel: string;
|
|
11
|
-
selectOptionLabel: string;
|
|
12
|
-
}
|
|
13
|
-
export interface OptionType {
|
|
14
|
-
label: ReactText;
|
|
15
|
-
value: SelectValue;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function truncate(text: string, maxLength: number): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tries to get the most specific messages bundle for a given locale.
|
|
3
|
-
*
|
|
4
|
-
* Strategy:
|
|
5
|
-
* 1. Try to find messages with the exact string (i.e. 'fr_FR')
|
|
6
|
-
* 2. If that doesn't work, try to find messages for the country locale (i.e. 'fr')
|
|
7
|
-
* 3. If that doesn't work, return english messages as a fallback.
|
|
8
|
-
*
|
|
9
|
-
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
10
|
-
*/
|
|
11
|
-
export declare const getMessagesForLocale: (locale: string) => Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isApiGatewayUrl: (url: string) => boolean;
|