fansunited-widget-either-or 1.2.1 → 1.4.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/either-or-manager.es.js +28772 -27454
- package/either-or-manager.umd.js +190 -190
- package/models/Export/ExportUsersRequestBody.d.ts +28 -0
- package/models/Labels/LabelsModel.d.ts +3 -0
- package/package.json +1 -1
- package/services/HttpsService.d.ts +3 -0
- package/style.css +1 -1
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ Fans United Either/Or Management Widget depends on [Fans United JS SDK](https://
|
|
|
64
64
|
|
|
65
65
|
- `fansUnitedLanguage` - for our sports APIs FansUnited platform supports different languages. For now they are **Bulgarian** (bg), **English** (en), **Romanian** (ro), **Greek** (el), **Slovak** (sk), **Serbian** (sr) and **Hungarian** (hu). If no value given it will be set to **English** (en).
|
|
66
66
|
|
|
67
|
-
- `fansUnitedEnvironment` - You can run the widget in the following environments: **staging**, **production** and **
|
|
67
|
+
- `fansUnitedEnvironment` - You can run the widget in the following environments: **staging**, **production**, **watg** and **yolo**. If no value given it will be set to **production** (prod).
|
|
68
68
|
|
|
69
69
|
- `labels` - you can easily translate all labels, UI messages, descriptions, placeholders and etc. with this prop. By default, Fans United Match Quiz Management Widget is available in **English** so if no value is given, the widget will be translated in English.
|
|
70
70
|
|
|
@@ -218,6 +218,9 @@ const labels = {
|
|
|
218
218
|
backgroundImage: 'Background Image',
|
|
219
219
|
mobileBackgroundImage: 'Mobile Background Image',
|
|
220
220
|
additionalImage: 'Additional Image',
|
|
221
|
+
exportAllUsers: "Export all users",
|
|
222
|
+
usersExportMessage: "All users have been exported successfully",
|
|
223
|
+
usersExportErrorMessage: "There was a problem with exporting users. Please try again"
|
|
221
224
|
|
|
222
225
|
};
|
|
223
226
|
|
|
@@ -354,6 +357,9 @@ Here is all information about **`LabelsModel`**:
|
|
|
354
357
|
| `backgroundImage` | Label for branding background image | Background Image |
|
|
355
358
|
| `mobileBackgroundImage` | Label for branding mobile background image | Mobile Background Image |
|
|
356
359
|
| `additionalImage` | Label for branding additional image | Additional Image |
|
|
360
|
+
| `exportAllUsers` | Tooltip for exported users button | Export all users |
|
|
361
|
+
| `usersExportMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) successful message when exporting all users | All users have been exported successfully |
|
|
362
|
+
| `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 |
|
|
357
363
|
| `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 |
|
|
358
364
|
| `createEitherOrMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) successful message when creating Either/Or | You have successfully created Either/Or |
|
|
359
365
|
| `createEitherOrErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when creating Either/Or | There was a problem creating Either/Or. Please try again |
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import EitherOrBasicModel from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/EitherOr/EitherOrBasicModel';
|
|
2
3
|
export declare const actionButtonStyle = "eow-rounded eow-p-1 eow-flex eow-items-center eow-mr-1";
|
|
3
4
|
type ActionsButtonsProps = {
|
|
4
|
-
|
|
5
|
+
eitherOr: EitherOrBasicModel;
|
|
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;
|