fansunited-widget-either-or 1.3.0 → 2.0.0-RC1

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.
Files changed (109) hide show
  1. package/README.md +148 -35
  2. package/components/Cards/EitherOrsCard.d.ts +5 -2
  3. package/components/Cards/WidgetCard.d.ts +5 -2
  4. package/components/EitherOrs/ActionsMenu.d.ts +9 -0
  5. package/components/EitherOrs/AdditionalInfo/EitherOrExports.d.ts +7 -0
  6. package/components/EitherOrs/AdditionalInfo/EitherOrStandings.d.ts +8 -0
  7. package/components/EitherOrs/AdditionalInfo/EitherOrStats.d.ts +7 -0
  8. package/components/EitherOrs/AdditionalInfo/ParticipationChart.d.ts +9 -0
  9. package/components/EitherOrs/AdditionalInfo/TableInfoTabs.d.ts +7 -0
  10. package/components/EitherOrs/EitherOrRow.d.ts +9 -0
  11. package/components/EitherOrs/EitherOrs.d.ts +1 -1
  12. package/components/EitherOrs/EitherOrsTable.d.ts +13 -0
  13. package/components/EitherOrs/TablePagination.d.ts +10 -0
  14. package/components/Filters/Filters.d.ts +3 -3
  15. package/components/Main.d.ts +2 -2
  16. package/components/MainLayout.d.ts +1 -1
  17. package/components/Management/Header.d.ts +6 -0
  18. package/components/Management/MainColumn.d.ts +5 -6
  19. package/components/Management/ManageEitherOr.d.ts +4 -7
  20. package/components/Management/Options/AdditionalOptionField.d.ts +9 -0
  21. package/components/Management/Options/Checkboxes.d.ts +13 -0
  22. package/components/Management/Options/Option.d.ts +13 -0
  23. package/components/Management/Options/Options.d.ts +5 -4
  24. package/components/Management/Points/Points.d.ts +4 -4
  25. package/components/Management/SideBar/Configuration/Configuration.d.ts +8 -0
  26. package/components/Management/SideBar/Configuration/Status.d.ts +7 -0
  27. package/components/Management/{Type → SideBar/Configuration}/Type.d.ts +2 -2
  28. package/components/Management/SideBar/Configuration/WinningCondition.d.ts +7 -0
  29. package/components/Management/SideBar/SideBar.d.ts +8 -0
  30. package/components/Modals/DeleteEitherOrModal.d.ts +10 -0
  31. package/components/Modals/PreviewModal.d.ts +3 -4
  32. package/constants/constants.d.ts +249 -4
  33. package/context/ConfigurationContext.d.ts +9 -0
  34. package/context/LabelsContext.d.ts +3 -2
  35. package/either-or-manager.es.d.ts +1 -0
  36. package/either-or-manager.es.js +83040 -37951
  37. package/either-or-manager.umd.js +537 -222
  38. package/factories/EitherOrFactory.d.ts +6 -7
  39. package/helpers/helpers.d.ts +1 -35
  40. package/models/Features/Features.d.ts +11 -0
  41. package/models/Filters/EitherOrFiltersModel.d.ts +2 -1
  42. package/models/Labels/LabelsModel.d.ts +82 -22
  43. package/models/RequestBody/RequestBody.d.ts +28 -31
  44. package/models/Select/SelectOption.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/style.css +2 -2
  47. package/validators/EitherOrValidator.d.ts +3 -5
  48. package/components/Accordion/Accordion.d.ts +0 -6
  49. package/components/Buttons/ActionsButtons.d.ts +0 -10
  50. package/components/Buttons/AddButton.d.ts +0 -7
  51. package/components/Buttons/ClearButton.d.ts +0 -6
  52. package/components/Buttons/CopyToClipboard.d.ts +0 -8
  53. package/components/Buttons/HomeButtons.d.ts +0 -8
  54. package/components/Buttons/ManageButtons.d.ts +0 -8
  55. package/components/Buttons/RemoveButton.d.ts +0 -7
  56. package/components/Buttons/SignOutButton.d.ts +0 -6
  57. package/components/Buttons/Sportal365/Sportal365Button.d.ts +0 -8
  58. package/components/Cards/ImagesCard.d.ts +0 -6
  59. package/components/Checkbox/CheckboxFilter.d.ts +0 -9
  60. package/components/Login/Login.d.ts +0 -6
  61. package/components/Management/Branding/Branding.d.ts +0 -8
  62. package/components/Management/Branding/BrandingImages.d.ts +0 -8
  63. package/components/Management/Branding/BrandingTabs.d.ts +0 -7
  64. package/components/Management/Context/Context.d.ts +0 -9
  65. package/components/Management/Context/ContextTabs.d.ts +0 -7
  66. package/components/Management/DynamicFields/DynamicFields.d.ts +0 -8
  67. package/components/Management/EitherOrSelect/EitherOrSelect.d.ts +0 -8
  68. package/components/Management/Flags/Flags.d.ts +0 -16
  69. package/components/Management/IDInput/IDInput.d.ts +0 -6
  70. package/components/Management/Images/FileUploader.d.ts +0 -9
  71. package/components/Management/Images/Image.d.ts +0 -11
  72. package/components/Management/Images/Images.d.ts +0 -11
  73. package/components/Management/Images/Sportal365/Filters/Sportal365ImagesFromToFilter.d.ts +0 -7
  74. package/components/Management/Images/Sportal365/Sportal365Images.d.ts +0 -9
  75. package/components/Management/Images/Sportal365/Sportal365ImagesPagination.d.ts +0 -10
  76. package/components/Management/Images/Sportal365/Sportal365ImagesSearch.d.ts +0 -8
  77. package/components/Management/InformationInput/InformationInput.d.ts +0 -9
  78. package/components/Management/ManagementScreenHeader.d.ts +0 -8
  79. package/components/Management/NumberInput/NumberInput.d.ts +0 -9
  80. package/components/Management/Options/OptionImages.d.ts +0 -9
  81. package/components/Management/Options/OptionInput.d.ts +0 -9
  82. package/components/Management/RichText/RichText.d.ts +0 -8
  83. package/components/Management/SideBar.d.ts +0 -12
  84. package/components/Modals/ConfirmationModal.d.ts +0 -11
  85. package/components/Modals/ImageModal.d.ts +0 -8
  86. package/components/Pagination/Pagination.d.ts +0 -9
  87. package/components/Portals/Portal.d.ts +0 -6
  88. package/components/Select/ContextSelectFilter.d.ts +0 -14
  89. package/components/Select/ContextTagSelect.d.ts +0 -9
  90. package/components/Select/EitherOrSelectFilter.d.ts +0 -12
  91. package/components/Spinner/ButtonSpinner.d.ts +0 -9
  92. package/components/Spinner/Spinner.d.ts +0 -3
  93. package/components/Table/TableBody.d.ts +0 -10
  94. package/components/Table/TableHeader.d.ts +0 -3
  95. package/constants/placeholders.d.ts +0 -1
  96. package/context/ApiContext.d.ts +0 -15
  97. package/context/AuthContext.d.ts +0 -8
  98. package/firebase/firebase.d.ts +0 -2
  99. package/firebase/getToken.d.ts +0 -1
  100. package/models/EitherOr/EitherOrById.d.ts +0 -44
  101. package/models/Select/GroupSelectOption.d.ts +0 -5
  102. package/models/Sportal365/Sportal365Config.d.ts +0 -4
  103. package/models/Sportal365/Sportal365ImagesContainer.d.ts +0 -5
  104. package/models/Sportal365/Sportal365SearchImages.d.ts +0 -21
  105. package/models/Sportal365/Sportal365SearchImagesFilters.d.ts +0 -4
  106. package/portals/ModalPortal.d.ts +0 -6
  107. package/services/HashService.d.ts +0 -4
  108. package/services/HttpsService.d.ts +0 -33
  109. package/types/types.d.ts +0 -6
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type ClearButtonProps = {
3
- onClick: () => void;
4
- };
5
- declare const ClearButton: React.FC<ClearButtonProps>;
6
- export default ClearButton;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type CopyToClipboardButtonProps = {
3
- isUrlCopied: boolean;
4
- isDisabled: boolean;
5
- onClick: () => void;
6
- };
7
- declare const CopyToClipboardButton: React.FC<CopyToClipboardButtonProps>;
8
- export default CopyToClipboardButton;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type HomeButtonsProps = {
3
- hideSignOutButton: boolean;
4
- toggleScreen: () => void;
5
- fansUnitedEnvironment: string;
6
- };
7
- declare const HomeButtons: React.FC<HomeButtonsProps>;
8
- export default HomeButtons;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type ManageButtonsProps = {
3
- isLoading: boolean;
4
- manageEitherOr: () => void;
5
- handleModal: () => void;
6
- };
7
- declare const ManageButtons: React.FC<ManageButtonsProps>;
8
- export default ManageButtons;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type RemoveButtonProps = {
3
- isDisabled: boolean;
4
- onClick: () => void;
5
- };
6
- declare const RemoveButton: React.FC<RemoveButtonProps>;
7
- export default RemoveButton;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type SignOutProps = {
3
- fansUnitedEnvironment: string;
4
- };
5
- declare const SignOutButton: React.FC<SignOutProps>;
6
- export default SignOutButton;
@@ -1,8 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import Sportal365ImagesContainerToggleModel from '../../../models/Sportal365/Sportal365ImagesContainer';
3
- type Sportal365ButtonProps = {
4
- imageNode: string;
5
- setShowImagesContainer: Dispatch<SetStateAction<Sportal365ImagesContainerToggleModel>>;
6
- };
7
- declare const Sportal365Button: React.FC<Sportal365ButtonProps>;
8
- export default Sportal365Button;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type ImagesCardProps = {
3
- images: string;
4
- };
5
- declare const ImagesCard: React.FC<ImagesCardProps>;
6
- export default ImagesCard;
@@ -1,9 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
3
- type CheckboxFilterProps = {
4
- value: boolean;
5
- setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
6
- handleResetData: () => void;
7
- };
8
- declare const CheckboxFilter: React.FC<CheckboxFilterProps>;
9
- export default CheckboxFilter;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type LoginProps = {
3
- fansUnitedEnvironment: string;
4
- };
5
- declare const Login: React.FC<LoginProps>;
6
- export default Login;
@@ -1,8 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import RequestBody, { IBrandingRequestById } from '../../../models/RequestBody/RequestBody';
3
- type BrandingProps = {
4
- defaultValue: IBrandingRequestById;
5
- setRequestBody: Dispatch<SetStateAction<RequestBody>>;
6
- };
7
- declare const Branding: React.FC<BrandingProps>;
8
- export default Branding;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { IBrandingImages } from '../../../models/RequestBody/RequestBody';
3
- type BrandingImagesProps = {
4
- loadedImages: IBrandingImages;
5
- onChange: (value: string, property: string) => void;
6
- };
7
- declare const BrandingImages: React.FC<BrandingImagesProps>;
8
- export default BrandingImages;
@@ -1,7 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- type BrandingTabsProps = {
3
- tabValue: string;
4
- setTabValue: Dispatch<SetStateAction<string>>;
5
- };
6
- declare const BrandingTabs: React.FC<BrandingTabsProps>;
7
- export default BrandingTabs;
@@ -1,9 +0,0 @@
1
- import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
2
- import React, { Dispatch, SetStateAction } from 'react';
3
- import RequestBody from '../../../models/RequestBody/RequestBody';
4
- type ContextProps = {
5
- defaultValue: ContextModel;
6
- setRequestBody: Dispatch<SetStateAction<RequestBody>>;
7
- };
8
- declare const Context: React.FC<ContextProps>;
9
- export default Context;
@@ -1,7 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- type ContextTabsProps = {
3
- tabValue: string;
4
- setTabValue: Dispatch<SetStateAction<string>>;
5
- };
6
- declare const ContextTabs: React.FC<ContextTabsProps>;
7
- export default ContextTabs;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type DynamicFieldsProps = {
3
- property: 'labels' | 'custom_fields';
4
- field: Object;
5
- onChange: (field: Object) => void;
6
- };
7
- declare const DynamicFields: React.FC<DynamicFieldsProps>;
8
- export default DynamicFields;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type EitherOrSelectProps = {
3
- type: 'status' | 'winning_condition';
4
- defaultValue: string;
5
- onChange: (arg: React.ChangeEvent<HTMLSelectElement>) => void;
6
- };
7
- declare const EitherOrSelect: React.FC<EitherOrSelectProps>;
8
- export default EitherOrSelect;
@@ -1,16 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import RequestBody from '../../../models/RequestBody/RequestBody';
3
- import EitherOrFiltersModel from '../../../models/Filters/EitherOrFiltersModel';
4
- export declare const flagsSelectStyles: {
5
- control: (provided: any) => any;
6
- clearIndicator: (provided: any) => any;
7
- input: (provided: any) => any;
8
- };
9
- type FlagsProps = {
10
- defaultValue: string[];
11
- showLabel?: boolean;
12
- setObject: Dispatch<SetStateAction<RequestBody>> | Dispatch<SetStateAction<EitherOrFiltersModel>>;
13
- handleResetData?: () => void;
14
- };
15
- declare const Flags: React.FC<FlagsProps>;
16
- export default Flags;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type IDInputProps = {
3
- value: string | null;
4
- };
5
- declare const IDInput: React.FC<IDInputProps>;
6
- export default IDInput;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type FileUploaderProps = {
3
- type: string;
4
- id: number;
5
- imageNode: string;
6
- onChangeImages: (value: string, imageNode: string) => void;
7
- };
8
- declare const FileUploader: React.FC<FileUploaderProps>;
9
- export default FileUploader;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- type ImagesProps = {
3
- id: number;
4
- type: string;
5
- label: string;
6
- imageUrl: string;
7
- imageNode: string;
8
- onChange: (value: string, imageNode: string) => void;
9
- };
10
- declare const Image: React.FC<ImagesProps>;
11
- export default Image;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
3
- import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
4
- type ImagesProps = {
5
- id: number;
6
- type: 'game' | 'option';
7
- loadedImages: ImagesModel | MiniGameImages;
8
- onChange: (value: string, imageCases: string) => void;
9
- };
10
- declare const Images: React.FC<ImagesProps>;
11
- export default Images;
@@ -1,7 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import Sportal365SearchImagesFilters from '../../../../../models/Sportal365/Sportal365SearchImagesFilters';
3
- type Sportal365ImagesFromToFilterProps = {
4
- setFilters: Dispatch<SetStateAction<Sportal365SearchImagesFilters>>;
5
- };
6
- declare const Sportal365ImagesFromToFilter: React.FC<Sportal365ImagesFromToFilterProps>;
7
- export default Sportal365ImagesFromToFilter;
@@ -1,9 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import Sportal365ImagesContainerToggleModel from '../../../../models/Sportal365/Sportal365ImagesContainer';
3
- type Sportal365ImagesProps = {
4
- onChangeImages: (url: string) => void;
5
- imageNode: string;
6
- setShowImagesContainer: Dispatch<SetStateAction<Sportal365ImagesContainerToggleModel>>;
7
- };
8
- declare const Sportal365Images: React.FC<Sportal365ImagesProps>;
9
- export default Sportal365Images;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import Sportal365SearchImage from '../../../../models/Sportal365/Sportal365SearchImages';
3
- type PaginationProps = {
4
- pageCount: number;
5
- images: Sportal365SearchImage | null;
6
- getPreviousPage: () => void;
7
- getNextPage: () => void;
8
- };
9
- declare const Sportal365ImagesPagination: React.FC<PaginationProps>;
10
- export default Sportal365ImagesPagination;
@@ -1,8 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import Sportal365SearchImagesFilters from '../../../../models/Sportal365/Sportal365SearchImagesFilters';
3
- type Sportal365ImagesSearchProps = {
4
- setQuery: Dispatch<SetStateAction<string>>;
5
- setFilters: Dispatch<SetStateAction<Sportal365SearchImagesFilters>>;
6
- };
7
- declare const Sportal365ImagesSearch: React.FC<Sportal365ImagesSearchProps>;
8
- export default Sportal365ImagesSearch;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type InformationInputProps = {
3
- title: string;
4
- placeholder: string;
5
- defaultValue: string;
6
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
7
- };
8
- declare const InformationInput: React.FC<InformationInputProps>;
9
- export default InformationInput;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type ManagementScreenHeaderProps = {
3
- managementScreen: 'create' | 'edit';
4
- toggleScreen: () => void;
5
- clearQuizById: () => void;
6
- };
7
- declare const ManagementScreenHeader: React.FC<ManagementScreenHeaderProps>;
8
- export default ManagementScreenHeader;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type NumberInputProps = {
3
- type: 'time' | 'lives' | 'points_correct_steps' | 'points_score' | 'options_value';
4
- defaultValue: number;
5
- showDescription?: boolean;
6
- onChange: (value: number) => void;
7
- };
8
- declare const NumberInput: React.FC<NumberInputProps>;
9
- export default NumberInput;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
3
- type OptionImagesProps = {
4
- id: number;
5
- loadedImages: MiniGameImages;
6
- onChange: (value: string, imageNode: string) => void;
7
- };
8
- declare const OptionImages: React.FC<OptionImagesProps>;
9
- export default OptionImages;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type OptionInputProps = {
3
- label: string;
4
- defaultValue: string;
5
- placeholder: string;
6
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
7
- };
8
- declare const OptionInput: React.FC<OptionInputProps>;
9
- export default OptionInput;
@@ -1,8 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- type RichTextProps = {
3
- defaultValue: string;
4
- property: 'description' | 'rules' | 'ad_content';
5
- setValue: Dispatch<SetStateAction<string>>;
6
- };
7
- declare const RichText: React.FC<RichTextProps>;
8
- export default RichText;
@@ -1,12 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import EitherOrById from '../../models/EitherOr/EitherOrById';
3
- type SideBarProps = {
4
- requestBody: EitherOrById;
5
- rules: string;
6
- adContent: string;
7
- setRules: Dispatch<SetStateAction<string>>;
8
- setAdContent: Dispatch<SetStateAction<string>>;
9
- setRequestBody: Dispatch<SetStateAction<EitherOrById>>;
10
- };
11
- declare const SideBar: React.FC<SideBarProps>;
12
- export default SideBar;
@@ -1,11 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import EitherOrBasicModel from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/EitherOr/EitherOrBasicModel';
3
- import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
4
- type ConfirmationModalProps = {
5
- isOpen: boolean;
6
- eitherOr: EitherOrBasicModel;
7
- setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
8
- handleClose: () => void;
9
- };
10
- declare const ConfirmationModal: React.FC<ConfirmationModalProps>;
11
- export default ConfirmationModal;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type ImageModalProps = {
3
- imageUrl: string;
4
- isOpen: boolean;
5
- closeModal: () => void;
6
- };
7
- declare const ImageModal: React.FC<ImageModalProps>;
8
- export default ImageModal;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type PaginationProps = {
3
- pageCount: number;
4
- pageGames: Map<any, any>;
5
- getPreviousPage: () => void;
6
- getNextPage: () => void;
7
- };
8
- declare const Pagination: React.FC<PaginationProps>;
9
- export default Pagination;
@@ -1,6 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- type PortalProps = {
3
- wrapperId?: string;
4
- };
5
- declare const Portal: React.FC<PropsWithChildren<PortalProps>>;
6
- export default Portal;
@@ -1,14 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
3
- import SearchModel from 'fansunited-sdk-esm/Core/Namespaces/Football/Models/Search/SearchModel';
4
- import GroupSelectOption from '../../models/Select/GroupSelectOption';
5
- import SelectOption from '../../models/Select/SelectOption';
6
- export declare const formatGroupOptions: (result: SearchModel) => GroupSelectOption[];
7
- type ContextSelectFilterProps = {
8
- options: SelectOption[];
9
- setOptions: Dispatch<SetStateAction<SelectOption[]>>;
10
- setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
11
- handleResetData: () => void;
12
- };
13
- declare const ContextSelectFilter: React.FC<ContextSelectFilterProps>;
14
- export default ContextSelectFilter;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import SelectOption from '../../models/Select/SelectOption';
3
- import TagsModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/TagsModel';
4
- type ContextTagSelectProps = {
5
- tags: TagsModel[];
6
- onChangeTags: (entities: SelectOption[]) => void;
7
- };
8
- declare const ContextTagSelect: React.FC<ContextTagSelectProps>;
9
- export default ContextTagSelect;
@@ -1,12 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
3
- type EitherOrSelectFilterProps = {
4
- filterType: 'status' | 'sort';
5
- defaultValue: string;
6
- filterValues: string[];
7
- showClearStatus?: boolean;
8
- setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
9
- handleResetData: () => void;
10
- };
11
- declare const EitherOrSelectFilter: React.FC<EitherOrSelectFilterProps>;
12
- export default EitherOrSelectFilter;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type ButtonSpinnerProps = {
3
- height?: string;
4
- width?: string;
5
- color?: string;
6
- margin?: string;
7
- };
8
- declare const ButtonSpinner: React.FC<ButtonSpinnerProps>;
9
- export default ButtonSpinner;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Spinner: React.FC;
3
- export default Spinner;
@@ -1,10 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import EitherOrBasicModel from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/EitherOr/EitherOrBasicModel';
3
- type TableBodyProps = {
4
- data: EitherOrBasicModel[];
5
- fetchEitherOrById: (eitherOrId: string) => void;
6
- handleModal: () => void;
7
- setSelectedEitherOr: Dispatch<SetStateAction<EitherOrBasicModel>>;
8
- };
9
- declare const TableBody: React.FC<TableBodyProps>;
10
- export default TableBody;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TableHeader: React.FC;
3
- export default TableHeader;
@@ -1 +0,0 @@
1
- export declare const placeholders: any;
@@ -1,15 +0,0 @@
1
- import HttpsService from '../services/HttpsService';
2
- import FansUnitedSDKModel from 'fansunited-sdk-esm/Core/Global/Models/FansUnitedSDKModel';
3
- import React from 'react';
4
- import Sportal365Config from '../models/Sportal365/Sportal365Config';
5
- type APIProviderProps = {
6
- config: any;
7
- sportal365Config: Sportal365Config;
8
- };
9
- type APIContextValueType = {
10
- sdk: FansUnitedSDKModel;
11
- https: HttpsService;
12
- };
13
- declare const APIContext: React.Context<APIContextValueType>;
14
- declare const APIProvider: React.FC<APIProviderProps>;
15
- export { APIContext, APIProvider };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import firebase from 'firebase/compat/app';
3
- type AuthProviderProps = {
4
- fansUnitedEnvironment: string;
5
- };
6
- declare const AuthContext: React.Context<firebase.User>;
7
- declare const AuthProvider: React.FC<AuthProviderProps>;
8
- export { AuthContext, AuthProvider };
@@ -1,2 +0,0 @@
1
- import firebase from 'firebase/compat/app';
2
- export declare const firebaseAuth: (fansUnitedEnvironment: string) => firebase.auth.Auth;
@@ -1 +0,0 @@
1
- export declare const getToken: () => Promise<string>;
@@ -1,44 +0,0 @@
1
- import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
2
- import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
3
- import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
4
- import { IBrandingRequestById } from '../RequestBody/RequestBody';
5
- export interface IEitherOrPoints {
6
- correct_steps: number;
7
- score: number;
8
- }
9
- export interface IEitherOrPairs {
10
- id: string;
11
- option_first: IEitherOrPairOption;
12
- option_second: IEitherOrPairOption;
13
- }
14
- export interface IEitherOrPairOption {
15
- id: string;
16
- value: number;
17
- }
18
- export interface IEitherOrOption {
19
- id: string;
20
- label: string;
21
- images: MiniGameImages;
22
- value: number;
23
- }
24
- export default class EitherOrById {
25
- id: string;
26
- title: string;
27
- description: string;
28
- type: string;
29
- winning_condition: string;
30
- lives: number;
31
- time: number;
32
- points: IEitherOrPoints[];
33
- rules: string;
34
- ad_content: string;
35
- branding: IBrandingRequestById;
36
- labels: Object;
37
- custom_fields: Object;
38
- images: ImagesModel;
39
- status: string;
40
- flags: string[];
41
- pairs: IEitherOrPairs[];
42
- options: IEitherOrOption[];
43
- context: ContextModel;
44
- }
@@ -1,5 +0,0 @@
1
- import SelectOption from './SelectOption';
2
- export default class GroupSelectOption {
3
- label: string;
4
- options: SelectOption[];
5
- }
@@ -1,4 +0,0 @@
1
- export default class Sportal365Config {
2
- project: string;
3
- authorization: string;
4
- }
@@ -1,5 +0,0 @@
1
- export default class Sportal365ImagesContainerToggleModel {
2
- mainImage: boolean;
3
- coverImage: boolean;
4
- mobileImage: boolean;
5
- }
@@ -1,21 +0,0 @@
1
- interface ISearchImagesMeta {
2
- pagination: {
3
- current_page: number;
4
- };
5
- }
6
- export interface ISearchImagesData {
7
- id: string;
8
- urls: {
9
- uploaded: {
10
- embed: string;
11
- gallery: string;
12
- original: string;
13
- thumbnail: string;
14
- };
15
- };
16
- }
17
- export default class Sportal365SearchImage {
18
- meta: ISearchImagesMeta;
19
- data: ISearchImagesData[];
20
- }
21
- export {};
@@ -1,4 +0,0 @@
1
- export default class Sportal365SearchImagesFilters {
2
- from: string;
3
- to: string;
4
- }
@@ -1,6 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- type ModalPortalProps = {
3
- wrapperId?: string;
4
- };
5
- declare const ModalPortal: React.FC<PropsWithChildren<ModalPortalProps>>;
6
- export default ModalPortal;
@@ -1,4 +0,0 @@
1
- export default class HashService {
2
- readFileAndHash: (file: File) => Promise<string>;
3
- generateHashFileName: (file: File) => Promise<string>;
4
- }
@@ -1,33 +0,0 @@
1
- import SDKConfigurationModel from 'fansunited-sdk-esm/Core/Configurator/Models/SDKConfiguraitonModel';
2
- import RequestBody from '../models/RequestBody/RequestBody';
3
- import { IType } from '../models/Features/Features';
4
- import SignedInUrlRequestBody from '../models/RequestBody/SignedInUrlRequestBody';
5
- import Sportal365Config from '../models/Sportal365/Sportal365Config';
6
- import Sportal365SearchImagesFilters from '../models/Sportal365/Sportal365SearchImagesFilters';
7
- import ExportUsersRequestBody from '../models/Export/ExportUsersRequestBody';
8
- export default class HttpsService {
9
- private miniGamesApiBaseUrl;
10
- private clientApiBaseUrl;
11
- private reportingApiBaseUrl;
12
- private headers;
13
- private mainQueryParams;
14
- private apiKey;
15
- private clientId;
16
- private environment;
17
- sportal365Config: Sportal365Config | null;
18
- private sportal365Headers;
19
- private readonly sportal365ImagesSearchURL;
20
- constructor(config: SDKConfigurationModel, sportal365Config: Sportal365Config | null);
21
- createEitherOr: (requestBody: RequestBody) => Promise<Response>;
22
- updateEitherOr: (id: string, requestBody: RequestBody) => Promise<Response>;
23
- getEitherOrById: (classicQuizId: string) => Promise<Response>;
24
- deleteEitherOr: (eitherOrId: string) => Promise<Response>;
25
- getEitherOrTypes: () => Promise<IType[]>;
26
- generateSignedInUrl: (requestBody: SignedInUrlRequestBody) => Promise<Response>;
27
- storeInBucket: (signedInUrl: string, file: File, headers: Record<string, string>) => Promise<string>;
28
- fetchImagesFromSportal365: (query: string, filters: Sportal365SearchImagesFilters, page: number) => Promise<Response>;
29
- exportUsers: (requestBody: ExportUsersRequestBody) => Promise<Response>;
30
- private getEitherOrFeatures;
31
- private constructAssetsUrl;
32
- private throwErrorFromXmlResponse;
33
- }