@atlaskit/feedback-collector 15.5.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 +39 -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/cjs/components/FeedbackForm.js +65 -96
- package/dist/es2019/components/FeedbackCollector.js +1 -1
- package/dist/es2019/components/FeedbackForm.js +73 -88
- package/dist/esm/components/FeedbackCollector.js +1 -1
- package/dist/esm/components/FeedbackForm.js +65 -96
- package/messages/package.json +1 -8
- package/package.json +15 -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
|
@@ -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;
|