fansunited-widget-either-or 2.5.2 → 2.6.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 CHANGED
@@ -218,7 +218,13 @@ const labels = {
218
218
  additionalImage: 'Additional Image',
219
219
  exportAllUsers: "Export all users",
220
220
  usersExportMessage: "All users have been exported successfully",
221
- usersExportErrorMessage: "There was a problem with exporting users. Please try again"
221
+ usersExportErrorMessage: "There was a problem with exporting users. Please try again",
222
+ createFromTemplate: 'Create from template',
223
+ browseEitherOrGames: 'Browse Either/Or Games',
224
+ noTemplateGamesFound: 'No Either/Or games were found.',
225
+ expand: 'Expand',
226
+ import: 'Import',
227
+ translateAndImport: 'Translate to _language_ and Import',
222
228
  sortByCreatedAtAsc: 'Sort by created at field in ascending order',
223
229
  sortByCreatedAtDesc: 'Sort by created at field in descending order',
224
230
  sortByUpdatedAtAsc: 'Sort by updated at field in ascending order',
@@ -437,6 +443,12 @@ Here is all information about **`LabelsModel`**:
437
443
  | `exportAllUsers` | Tooltip for exported users button | Export all users |
438
444
  | `usersExportMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) successful message when exporting all users | All users have been exported successfully |
439
445
  | `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 |
446
+ | `createFromTemplate` | Create from game template button title | Create from template |
447
+ | `browseEitherOrGames` | Import game from template modal header | Browse Either/Or Games |
448
+ | `noTemplateGamesFound` | Screen message when there are no template games found | No Either/Or games were found. |
449
+ | `expand` | Expand row button tooltip | Expand |
450
+ | `import` | Import game modal action button title | Import |
451
+ | `translateAndImport` | Import game modal translate action button title | Translate to _language_ and Import |
440
452
  | `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 |
441
453
  | `createEitherOrMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) successful message when creating Either/Or | You have successfully created Either/Or |
442
454
  | `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 |
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { EitherOrBasicModel } from 'fansunited-sdk-esm';
3
+ type EitherOrTemplateRowProps = {
4
+ row: EitherOrBasicModel;
5
+ isSelected: boolean;
6
+ onRowSelect: (gameId: string) => void;
7
+ };
8
+ declare const EitherOrTemplateRow: React.FC<EitherOrTemplateRowProps>;
9
+ export default EitherOrTemplateRow;
@@ -1,13 +1,20 @@
1
1
  import { default as React } from 'react';
2
2
  import { EitherOrBasicModel } from 'fansunited-sdk-esm';
3
+ import { IEitherOrPoints } from 'fansunited-management-components/src/models/minigames/eitherors/EitherOrRequestBody';
4
+ import { SxProps } from '@mui/joy/styles/types';
3
5
  type EitherOrsTableProps = {
4
6
  pageGames: Map<number, EitherOrBasicModel[]>;
5
7
  pageCount: number;
6
8
  gamesPerPage: number;
7
9
  getPreviousPage: () => void;
8
10
  getNextPage: () => void;
9
- onClickEdit: (id: string) => void;
10
- onDelete: () => void;
11
+ onClickEdit?: (id: string) => void;
12
+ onDelete?: () => void;
13
+ isGameTemplate?: boolean;
14
+ selectedGames?: string[];
15
+ gamesQuestions?: Map<string, IEitherOrPoints[]>;
16
+ onRowSelect?: (gameId: string) => void;
17
+ sx?: SxProps;
11
18
  };
12
19
  declare const EitherOrsTable: React.FC<EitherOrsTableProps>;
13
20
  export default EitherOrsTable;
@@ -4,6 +4,7 @@ import { default as EitherOrFiltersModel } from '../../models/Filters/EitherOrFi
4
4
  type FiltersProps = {
5
5
  filters: EitherOrFiltersModel;
6
6
  options: SelectOption[];
7
+ showStatusFilter?: boolean;
7
8
  setOptions: Dispatch<SetStateAction<SelectOption[]>>;
8
9
  setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
9
10
  handleResetData: () => void;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type ImportTemplateModalProps = {
3
+ fansUnitedEnvironment: string;
4
+ isOpen: boolean;
5
+ onImport: () => void;
6
+ onClose: () => void;
7
+ };
8
+ declare const ImportTemplateModal: React.FC<ImportTemplateModalProps>;
9
+ export default ImportTemplateModal;
@@ -247,3 +247,4 @@ export declare enum AdditionalFields {
247
247
  SHOW_IMAGES = "show_images"
248
248
  }
249
249
  export declare const defaultItemsPerPageOptions: number[];
250
+ export declare const contentClientId = "content";