fansunited-widget-poll 1.1.0 → 1.2.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/README.md +7 -1
- package/components/Buttons/ActionsButtons.d.ts +2 -1
- package/components/Spinner/ButtonSpinner.d.ts +7 -1
- package/models/Export/ExportUsersRequestBody.d.ts +28 -0
- package/models/Labels/LabelsModel.d.ts +3 -0
- package/package.json +1 -1
- package/poll-manager.es.js +10463 -10359
- package/poll-manager.umd.js +175 -175
- package/services/HttpsService.d.ts +3 -0
- package/style.css +1 -1
package/README.md
CHANGED
|
@@ -203,7 +203,10 @@ const labels = {
|
|
|
203
203
|
mobileBackgroundImage: 'Mobile Background Image',
|
|
204
204
|
additionalImage: 'Additional Image',
|
|
205
205
|
embedCode: 'Embed Code',
|
|
206
|
-
embedCodePlaceholder: 'Place your embed code here'
|
|
206
|
+
embedCodePlaceholder: 'Place your embed code here',
|
|
207
|
+
exportAllUsers: "Export all users",
|
|
208
|
+
usersExportMessage: "All users have been exported successfully",
|
|
209
|
+
usersExportErrorMessage: "There was a problem with exporting users. Please try again"
|
|
207
210
|
|
|
208
211
|
};
|
|
209
212
|
|
|
@@ -330,6 +333,9 @@ Here is all information about **`LabelsModel`**:
|
|
|
330
333
|
| `additionalImage` | Label for branding additional image | Additional Image |
|
|
331
334
|
| `embedCode` | Label for question embed code input | Embed Code |
|
|
332
335
|
| `embedCodePlaceholder` | Placeholder for question embed code input | Place your embed code here |
|
|
336
|
+
| `exportAllUsers` | Tooltip for exported users button | Export all users |
|
|
337
|
+
| `usersExportMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) successful message when exporting all users | All users have been exported successfully |
|
|
338
|
+
| `usersExportErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when exporting all users fails | There was a problem with exporting users. Please try again |
|
|
333
339
|
| `getFootballEntitiesErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when typing the name of the entity in tags and request fails. | There was a problem with fetching football's data |
|
|
334
340
|
| `createPollMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) successful message when creating poll | You have successfully created poll |
|
|
335
341
|
| `createPollErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when creating poll | There was a problem creating poll. Please try again |
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import PollBasicModel from 'fansunited-sdk-esm/Core/Namespaces/Voting/Models/Polls/PollBasicModel';
|
|
2
3
|
export declare const actionButtonStyle = "pw-rounded pw-p-1 pw-flex pw-items-center pw-mr-1";
|
|
3
4
|
type ActionsButtonsProps = {
|
|
4
|
-
|
|
5
|
+
poll: PollBasicModel;
|
|
5
6
|
onClickEdit: () => void;
|
|
6
7
|
onClickDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
8
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type ButtonSpinnerProps = {
|
|
3
|
+
height?: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
margin?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const ButtonSpinner: React.FC<ButtonSpinnerProps>;
|
|
3
9
|
export default ButtonSpinner;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface IRegisteredExport {
|
|
2
|
+
from_date: string;
|
|
3
|
+
to_date: string;
|
|
4
|
+
}
|
|
5
|
+
interface ICriteriaExport {
|
|
6
|
+
ids: string[];
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
interface IEitherOrCriteriaExport extends ICriteriaExport {
|
|
10
|
+
min_points: number;
|
|
11
|
+
}
|
|
12
|
+
interface IClassicQuizCriteriaExport extends ICriteriaExport {
|
|
13
|
+
min_success_rate: number;
|
|
14
|
+
}
|
|
15
|
+
interface IPollCriteriaExport extends ICriteriaExport {
|
|
16
|
+
option_ids: string[];
|
|
17
|
+
}
|
|
18
|
+
export default class ExportUsersRequestBody {
|
|
19
|
+
registered: IRegisteredExport;
|
|
20
|
+
interests: ICriteriaExport;
|
|
21
|
+
either_or: IEitherOrCriteriaExport;
|
|
22
|
+
classic_quiz: IClassicQuizCriteriaExport;
|
|
23
|
+
poll: IPollCriteriaExport;
|
|
24
|
+
single_predictions: ICriteriaExport;
|
|
25
|
+
top_x: ICriteriaExport;
|
|
26
|
+
match_quiz: ICriteriaExport;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -109,6 +109,9 @@ export default class LabelsModel {
|
|
|
109
109
|
previous: string;
|
|
110
110
|
next: string;
|
|
111
111
|
clear: string;
|
|
112
|
+
exportAllUsers: string;
|
|
113
|
+
usersExportMessage: string;
|
|
114
|
+
usersExportErrorMessage: string;
|
|
112
115
|
getFootballEntitiesErrorMessage: string;
|
|
113
116
|
titleRequiredFieldValidationMessage: string;
|
|
114
117
|
optionsFieldValidationMessage: string;
|