fansunited-widget-poll 1.3.0 → 2.1.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.
Files changed (107) hide show
  1. package/README.md +154 -85
  2. package/components/Cards/PollsCard.d.ts +5 -2
  3. package/components/Cards/WidgetCard.d.ts +5 -2
  4. package/components/Filters/Filters.d.ts +3 -3
  5. package/components/Main.d.ts +2 -2
  6. package/components/MainLayout.d.ts +1 -1
  7. package/components/Management/Header.d.ts +6 -0
  8. package/components/Management/MainColumn.d.ts +5 -6
  9. package/components/Management/ManagePoll.d.ts +5 -5
  10. package/components/Management/Options/AdditionalOptionField.d.ts +9 -0
  11. package/components/Management/Options/Checkboxes.d.ts +13 -0
  12. package/components/Management/Options/Option.d.ts +14 -0
  13. package/components/Management/Options/Options.d.ts +5 -4
  14. package/components/Management/SideBar/Configuration/Configuration.d.ts +8 -0
  15. package/components/Management/SideBar/Configuration/PollStatus.d.ts +7 -0
  16. package/components/Management/{Type → SideBar/Configuration}/Type.d.ts +2 -2
  17. package/components/Management/SideBar/SideBar.d.ts +8 -0
  18. package/components/Modals/DeletePollModal.d.ts +10 -0
  19. package/components/Modals/PreviewModal.d.ts +3 -4
  20. package/components/Polls/ActionsMenu.d.ts +9 -0
  21. package/components/Polls/ParticipationChart.d.ts +9 -0
  22. package/components/Polls/PollExports.d.ts +7 -0
  23. package/components/Polls/PollRow.d.ts +9 -0
  24. package/components/Polls/PollStandings.d.ts +7 -0
  25. package/components/Polls/PollStats.d.ts +8 -0
  26. package/components/Polls/Polls.d.ts +1 -1
  27. package/components/Polls/PollsTable.d.ts +13 -0
  28. package/components/Polls/TableInfoTabs.d.ts +7 -0
  29. package/components/Polls/TablePagination.d.ts +10 -0
  30. package/constants/constants.d.ts +249 -4
  31. package/context/ConfigurationContext.d.ts +9 -0
  32. package/context/LabelsContext.d.ts +3 -2
  33. package/factories/PollFactory.d.ts +6 -8
  34. package/models/Features/Features.d.ts +11 -0
  35. package/models/Filters/PollFiltersModel.d.ts +3 -2
  36. package/models/Labels/LabelsModel.d.ts +74 -35
  37. package/models/RequestBody/RequestBody.d.ts +12 -3
  38. package/models/Select/SelectOption.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/poll-manager.es.d.ts +1 -0
  41. package/poll-manager.es.js +82498 -38896
  42. package/poll-manager.umd.js +536 -221
  43. package/style.css +2 -2
  44. package/validators/PollValidator.d.ts +2 -2
  45. package/components/Accordion/Accordion.d.ts +0 -6
  46. package/components/Buttons/ActionsButtons.d.ts +0 -10
  47. package/components/Buttons/AddButton.d.ts +0 -7
  48. package/components/Buttons/ClearButton.d.ts +0 -6
  49. package/components/Buttons/CopyToClipboard.d.ts +0 -8
  50. package/components/Buttons/HomeButtons.d.ts +0 -8
  51. package/components/Buttons/ManageButtons.d.ts +0 -8
  52. package/components/Buttons/RemoveButton.d.ts +0 -7
  53. package/components/Buttons/SignOutButton.d.ts +0 -6
  54. package/components/Buttons/Sportal365/Sportal365Button.d.ts +0 -8
  55. package/components/Cards/ImagesCard.d.ts +0 -6
  56. package/components/Login/Login.d.ts +0 -6
  57. package/components/Management/Branding/Branding.d.ts +0 -8
  58. package/components/Management/Branding/BrandingImages.d.ts +0 -8
  59. package/components/Management/Branding/BrandingTabs.d.ts +0 -7
  60. package/components/Management/Context/Context.d.ts +0 -9
  61. package/components/Management/Context/ContextTabs.d.ts +0 -7
  62. package/components/Management/DynamicFields/DynamicFields.d.ts +0 -8
  63. package/components/Management/Flags/Flags.d.ts +0 -16
  64. package/components/Management/IDInput/IDInput.d.ts +0 -6
  65. package/components/Management/Images/FileUploader.d.ts +0 -9
  66. package/components/Management/Images/Image.d.ts +0 -11
  67. package/components/Management/Images/Images.d.ts +0 -11
  68. package/components/Management/Images/Sportal365/Filters/Sportal365ImagesFromToFilter.d.ts +0 -7
  69. package/components/Management/Images/Sportal365/Sportal365Images.d.ts +0 -9
  70. package/components/Management/Images/Sportal365/Sportal365ImagesPagination.d.ts +0 -10
  71. package/components/Management/Images/Sportal365/Sportal365ImagesSearch.d.ts +0 -8
  72. package/components/Management/InformationInput/InformationInput.d.ts +0 -9
  73. package/components/Management/ManagementScreenHeader.d.ts +0 -8
  74. package/components/Management/NumberInput/NumberInput.d.ts +0 -8
  75. package/components/Management/Options/OptionImages.d.ts +0 -9
  76. package/components/Management/Options/OptionInput.d.ts +0 -9
  77. package/components/Management/RichText/RichText.d.ts +0 -8
  78. package/components/Management/SideBar.d.ts +0 -12
  79. package/components/Management/StatusSelect/StatusSelect.d.ts +0 -7
  80. package/components/Modals/ConfirmationModal.d.ts +0 -11
  81. package/components/Modals/ImageModal.d.ts +0 -8
  82. package/components/Pagination/Pagination.d.ts +0 -10
  83. package/components/Portals/Portal.d.ts +0 -6
  84. package/components/Select/ContextSelectFilter.d.ts +0 -14
  85. package/components/Select/ContextTagSelect.d.ts +0 -9
  86. package/components/Select/PollSelectFilter.d.ts +0 -12
  87. package/components/Spinner/ButtonSpinner.d.ts +0 -9
  88. package/components/Spinner/Spinner.d.ts +0 -3
  89. package/components/Table/TableBody.d.ts +0 -10
  90. package/components/Table/TableHeader.d.ts +0 -3
  91. package/constants/placeholders.d.ts +0 -1
  92. package/context/ApiContext.d.ts +0 -15
  93. package/context/AuthContext.d.ts +0 -8
  94. package/firebase/firebase.d.ts +0 -2
  95. package/firebase/getToken.d.ts +0 -1
  96. package/helpers/helpers.d.ts +0 -36
  97. package/models/PollById/PollById.d.ts +0 -28
  98. package/models/RequestBody/SignedInUrlRequestBody.d.ts +0 -6
  99. package/models/Select/GroupSelectOption.d.ts +0 -5
  100. package/models/Sportal365/Sportal365Config.d.ts +0 -4
  101. package/models/Sportal365/Sportal365ImagesContainer.d.ts +0 -5
  102. package/models/Sportal365/Sportal365SearchImages.d.ts +0 -21
  103. package/models/Sportal365/Sportal365SearchImagesFilters.d.ts +0 -4
  104. package/portals/ModalPortal.d.ts +0 -6
  105. package/services/HashService.d.ts +0 -4
  106. package/services/HttpsService.d.ts +0 -33
  107. package/types/types.d.ts +0 -6
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type ParticipationChartProps = {
3
+ chartData: {
4
+ date: string;
5
+ participations: number;
6
+ }[];
7
+ };
8
+ declare const ParticipationChart: React.FC<ParticipationChartProps>;
9
+ export default ParticipationChart;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ type PollExportsProps = {
4
+ poll: PollBasicModel;
5
+ };
6
+ declare const PollExports: React.FC<PollExportsProps>;
7
+ export default PollExports;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ type PollRowProps = {
4
+ row: PollBasicModel;
5
+ onClickEdit: () => void;
6
+ onDelete: () => void;
7
+ };
8
+ declare const PollRow: React.FC<PollRowProps>;
9
+ export default PollRow;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ type PollStandingsProps = {
4
+ poll: PollBasicModel;
5
+ };
6
+ declare const PollStandings: React.FC<PollStandingsProps>;
7
+ export default PollStandings;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ export declare const formatDateByPeriod: (date: Date, period: string) => string;
4
+ type PollStatsProps = {
5
+ poll: PollBasicModel;
6
+ };
7
+ declare const PollStats: React.FC<PollStatsProps>;
8
+ export default PollStats;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  type PollsProps = {
3
3
  hideSignOutButton: boolean;
4
4
  fansUnitedEnvironment: string;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ type PollsTableProps = {
4
+ pagePolls: Map<number, PollBasicModel[]>;
5
+ pageCount: number;
6
+ pollsPerPage: number;
7
+ getPreviousPage: () => void;
8
+ getNextPage: () => void;
9
+ onClickEdit: (id: string) => void;
10
+ onDelete: () => void;
11
+ };
12
+ declare const PollsTable: React.FC<PollsTableProps>;
13
+ export default PollsTable;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ type TableInfoTabsProps = {
4
+ poll: PollBasicModel;
5
+ };
6
+ declare const TableInfoTabs: React.FC<TableInfoTabsProps>;
7
+ export default TableInfoTabs;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ type TablePaginationProps = {
3
+ pageCount: number;
4
+ disablePreviousPage: boolean;
5
+ disableNextPage: boolean;
6
+ goToPreviousPage: () => void;
7
+ goToNextPage: () => void;
8
+ };
9
+ declare const TablePagination: React.FC<TablePaginationProps>;
10
+ export default TablePagination;
@@ -1,4 +1,249 @@
1
- export declare const inputLabelStyle = "pw-text-xs pw-font-medium pw-block pw-mb-1 pw-uppercase pw-font-extrabold";
2
- export declare const inputStyle = "pw-rounded pw-border pw-border-gray-200 pw-w-full focus:pw-outline-none pw-px-3 pw-py-2";
3
- export declare const imagesMap: Map<string, string>;
4
- export declare const optionImagesMap: Map<string, string>;
1
+ export declare const initialBranding: {
2
+ colors: {
3
+ primary_color: string;
4
+ secondary_color: string;
5
+ content_color: string;
6
+ background_color: string;
7
+ border_color: string;
8
+ additional_color: string;
9
+ };
10
+ urls: {
11
+ primary_url: string;
12
+ secondary_url: string;
13
+ privacy_policy_url: string;
14
+ terms_and_conditions_url: string;
15
+ additional_url: string;
16
+ };
17
+ images: {
18
+ main_logo: string;
19
+ mobile_logo: string;
20
+ background_image: string;
21
+ mobile_background_image: string;
22
+ additional_image: string;
23
+ };
24
+ };
25
+ export declare const supportedLanguages: {
26
+ ar: {
27
+ key: string;
28
+ name: string;
29
+ };
30
+ bg: {
31
+ key: string;
32
+ name: string;
33
+ };
34
+ da: {
35
+ key: string;
36
+ name: string;
37
+ };
38
+ de: {
39
+ key: string;
40
+ name: string;
41
+ };
42
+ en: {
43
+ key: string;
44
+ name: string;
45
+ };
46
+ el: {
47
+ key: string;
48
+ name: string;
49
+ };
50
+ es: {
51
+ key: string;
52
+ name: string;
53
+ };
54
+ fr: {
55
+ key: string;
56
+ name: string;
57
+ };
58
+ hu: {
59
+ key: string;
60
+ name: string;
61
+ };
62
+ it: {
63
+ key: string;
64
+ name: string;
65
+ };
66
+ nl: {
67
+ key: string;
68
+ name: string;
69
+ };
70
+ pt: {
71
+ key: string;
72
+ name: string;
73
+ };
74
+ 'pt-br': {
75
+ key: string;
76
+ name: string;
77
+ };
78
+ ro: {
79
+ key: string;
80
+ name: string;
81
+ };
82
+ sk: {
83
+ key: string;
84
+ name: string;
85
+ };
86
+ sr: {
87
+ key: string;
88
+ name: string;
89
+ };
90
+ sv: {
91
+ key: string;
92
+ name: string;
93
+ };
94
+ sw: {
95
+ key: string;
96
+ name: string;
97
+ };
98
+ };
99
+ export declare const languagesMap: {
100
+ ar: {
101
+ key: string;
102
+ name: string;
103
+ };
104
+ 'ar-dz': {
105
+ key: string;
106
+ name: string;
107
+ };
108
+ 'ar-bh': {
109
+ key: string;
110
+ name: string;
111
+ };
112
+ 'ar-eg': {
113
+ key: string;
114
+ name: string;
115
+ };
116
+ 'ar-iq': {
117
+ key: string;
118
+ name: string;
119
+ };
120
+ 'ar-jo': {
121
+ key: string;
122
+ name: string;
123
+ };
124
+ 'ar-kw': {
125
+ key: string;
126
+ name: string;
127
+ };
128
+ 'ar-lb': {
129
+ key: string;
130
+ name: string;
131
+ };
132
+ 'ar-ly': {
133
+ key: string;
134
+ name: string;
135
+ };
136
+ 'ar-ma': {
137
+ key: string;
138
+ name: string;
139
+ };
140
+ 'ar-om': {
141
+ key: string;
142
+ name: string;
143
+ };
144
+ 'ar-qa': {
145
+ key: string;
146
+ name: string;
147
+ };
148
+ 'ar-sa': {
149
+ key: string;
150
+ name: string;
151
+ };
152
+ 'ar-sy': {
153
+ key: string;
154
+ name: string;
155
+ };
156
+ 'ar-tn': {
157
+ key: string;
158
+ name: string;
159
+ };
160
+ 'ar-ae': {
161
+ key: string;
162
+ name: string;
163
+ };
164
+ 'ar-ye': {
165
+ key: string;
166
+ name: string;
167
+ };
168
+ bg: {
169
+ key: string;
170
+ name: string;
171
+ };
172
+ da: {
173
+ key: string;
174
+ name: string;
175
+ };
176
+ de: {
177
+ key: string;
178
+ name: string;
179
+ };
180
+ en: {
181
+ key: string;
182
+ name: string;
183
+ };
184
+ 'en-gb': {
185
+ key: string;
186
+ name: string;
187
+ };
188
+ 'en-us': {
189
+ key: string;
190
+ name: string;
191
+ };
192
+ el: {
193
+ key: string;
194
+ name: string;
195
+ };
196
+ es: {
197
+ key: string;
198
+ name: string;
199
+ };
200
+ fr: {
201
+ key: string;
202
+ name: string;
203
+ };
204
+ hu: {
205
+ key: string;
206
+ name: string;
207
+ };
208
+ it: {
209
+ key: string;
210
+ name: string;
211
+ };
212
+ nl: {
213
+ key: string;
214
+ name: string;
215
+ };
216
+ pt: {
217
+ key: string;
218
+ name: string;
219
+ };
220
+ 'pt-br': {
221
+ key: string;
222
+ name: string;
223
+ };
224
+ ro: {
225
+ key: string;
226
+ name: string;
227
+ };
228
+ sk: {
229
+ key: string;
230
+ name: string;
231
+ };
232
+ sr: {
233
+ key: string;
234
+ name: string;
235
+ };
236
+ sv: {
237
+ key: string;
238
+ name: string;
239
+ };
240
+ sw: {
241
+ key: string;
242
+ name: string;
243
+ };
244
+ };
245
+ export declare enum AdditionalFields {
246
+ SHOW_DESCRIPTION = "show_description",
247
+ SHOW_IMAGES = "show_images"
248
+ }
249
+ export declare const defaultItemsPerPageOptions: number[];
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { default as Features } from '../models/Features/Features';
3
+ declare const ConfigurationContext: React.Context<Features>;
4
+ type ConfigurationContextProviderProps = {
5
+ features: Features;
6
+ children: React.ReactNode;
7
+ };
8
+ declare const ConfigurationProvider: React.FC<ConfigurationContextProviderProps>;
9
+ export { ConfigurationContext, ConfigurationProvider };
@@ -1,8 +1,9 @@
1
- import React from 'react';
2
- import LabelsModel from '../models/Labels/LabelsModel';
1
+ import { default as React } from 'react';
2
+ import { default as LabelsModel } from '../models/Labels/LabelsModel';
3
3
  declare const LabelsContext: React.Context<LabelsModel>;
4
4
  type LabelsContextProviderProps = {
5
5
  labels: LabelsModel;
6
+ children?: React.ReactNode;
6
7
  };
7
8
  declare const LabelsProvider: React.FC<LabelsContextProviderProps>;
8
9
  export { LabelsContext, LabelsProvider };
@@ -1,10 +1,9 @@
1
- import PollById, { IPollOption } from '../models/PollById/PollById';
2
- import RequestBody, { IBrandingRequestById } from '../models/RequestBody/RequestBody';
3
- import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
4
- import TagsModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/TagsModel';
1
+ import { default as RequestBody, IPollOption } from '../models/RequestBody/RequestBody';
2
+ import { default as ContextModel } from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
3
+ import { default as Features } from '../models/Features/Features';
5
4
  export default class PollFactory {
6
- createNewRequestBody: (requestBody: PollById | null) => RequestBody;
7
- finalizeNewRequestBody: (requestBody: PollById) => PollById;
5
+ createNewRequestBody: (requestBody: RequestBody | null) => RequestBody;
6
+ finalizeNewRequestBody: (requestBody: RequestBody, config: Features) => RequestBody;
8
7
  private reconstructImages;
9
8
  private reconstructBranding;
10
9
  private reconstructContext;
@@ -14,7 +13,6 @@ export default class PollFactory {
14
13
  mobile: string;
15
14
  };
16
15
  createContext: (context: ContextModel) => ContextModel;
17
- constructEmptyTag: () => TagsModel;
18
16
  private isObjectValuesEmpty;
19
17
  constructOptions: (options: IPollOption[]) => IPollOption[];
20
18
  private constructEmptyCreateOptions;
@@ -27,6 +25,6 @@ export default class PollFactory {
27
25
  cover: string;
28
26
  mobile: string;
29
27
  };
28
+ votes: number;
30
29
  };
31
- createBranding: (branding: IBrandingRequestById) => IBrandingRequestById;
32
30
  }
@@ -2,6 +2,17 @@ export interface IType {
2
2
  id: string;
3
3
  label: string;
4
4
  }
5
+ export interface ILanguageConfig {
6
+ available_languages: string[];
7
+ default_language: string;
8
+ translation_rules: {
9
+ [k: string]: {
10
+ game_status: string;
11
+ };
12
+ };
13
+ }
5
14
  export default class Features {
6
15
  types: IType[];
16
+ languageConfig: ILanguageConfig;
17
+ authRequirement: string;
7
18
  }
@@ -3,10 +3,11 @@ export declare enum PollSortEnum {
3
3
  CREATED_AT_DESC = "DESC"
4
4
  }
5
5
  export default class PollFiltersModel {
6
- sort: PollSortEnum;
6
+ sortOrder: PollSortEnum;
7
7
  status: string;
8
+ language: string;
8
9
  flags: string[];
9
10
  entityIds: string[];
10
11
  minVotes: number;
11
- refetchPolls: boolean;
12
+ limit: number;
12
13
  }
@@ -1,37 +1,41 @@
1
1
  export default class LabelsModel {
2
2
  userNotFound: string;
3
+ clientFeaturesNotFoundMessage: string;
4
+ featureDisabled: string;
5
+ noPermissionMessage: string;
6
+ tryAgainButton: string;
3
7
  signOut: string;
4
8
  timeFormat: string;
5
9
  getPollsErrorMessage: string;
6
10
  title: string;
7
- titlePlaceholder: string;
8
11
  noPollsFound: string;
9
12
  status: string;
10
13
  votes: string;
11
14
  creationDate: string;
12
15
  actions: string;
16
+ pageNo: string;
17
+ back: string;
13
18
  create: string;
14
19
  edit: string;
15
20
  save: string;
16
21
  preview: string;
17
22
  close: string;
18
- filterBy: string;
19
23
  sortBy: string;
20
- clearStatus: string;
24
+ sortByAscending: string;
25
+ sortByDescending: string;
26
+ language: string;
21
27
  contextEntityTag: string;
22
28
  typeContextTagNamePlaceholder: string;
29
+ itemsPerPage: string;
23
30
  showMoreImages: string;
24
31
  hideMoreImages: string;
25
32
  uploadImage: string;
26
- groupByStatus: string;
27
33
  copyUrl: string;
28
- copied: string;
29
34
  add: string;
30
35
  configuration: string;
31
36
  minimumVotes: string;
32
- minimumVotesPlaceholder: string;
37
+ alternativeTitle: string;
33
38
  description: string;
34
- descriptionPlaceholder: string;
35
39
  images: string;
36
40
  branding: string;
37
41
  urls: string;
@@ -55,24 +59,30 @@ export default class LabelsModel {
55
59
  embedCode: string;
56
60
  embedCodePlaceholder: string;
57
61
  rules: string;
58
- rulesPlaceholder: string;
59
62
  adContent: string;
60
63
  adContentPlaceholder: string;
61
- optionImages: string;
62
- main: string;
63
- cover: string;
64
- mobile: string;
64
+ mainImage: string;
65
+ coverImage: string;
66
+ mobileImage: string;
67
+ clearImage: string;
68
+ viewImage: string;
69
+ cropImage: string;
70
+ aspectRatio: string;
71
+ crop: string;
72
+ reset: string;
73
+ sportal365Images: string;
74
+ search: string;
75
+ delete: string;
76
+ fromDate: string;
77
+ toDate: string;
65
78
  active: string;
66
79
  inactive: string;
67
- statusDescription: string;
68
- optionTitlePlaceholder: string;
69
- optionDescriptionPlaceholder: string;
80
+ expired: string;
70
81
  repeatedValueMessage: string;
71
82
  flags: string;
72
83
  flagsPlaceholder: string;
73
84
  labels: string;
74
85
  customFields: string;
75
- dynamicFieldsDescription: string;
76
86
  keyDynamicFields: string;
77
87
  valueDynamicFields: string;
78
88
  options: string;
@@ -81,37 +91,20 @@ export default class LabelsModel {
81
91
  context: string;
82
92
  content: string;
83
93
  tags: string;
84
- entity: string;
85
94
  campaign: string;
86
95
  id: string;
87
- idOptionPlaceholder: string;
88
- labelOptionPlaceholder: string;
89
- idContentPlaceholder: string;
90
- idCampaignPlaceholder: string;
91
96
  label: string;
92
- labelContentPlaceholder: string;
93
- labelCampaignPlaceholder: string;
94
97
  type: string;
95
98
  typeDescription: string;
96
- noType: string;
97
99
  deleteLabel: string;
98
- cancelLabel: string;
99
- confirmationQuestionLabel: string;
100
- typeContentPlaceholder: string;
100
+ deletePollTitle: string;
101
+ deletePollDescription: string;
101
102
  previewPoll: string;
102
- searchImages: string;
103
- clearFromToFilterSportal365ImagesMessage: string;
104
103
  hideFilters: string;
105
104
  showFilters: string;
106
- dateFromTo: string;
107
- dateFromToPlaceholder: string;
108
- noImagesFound: string;
109
105
  previous: string;
110
106
  next: string;
111
107
  clear: string;
112
- exportAllUsers: string;
113
- usersExportMessage: string;
114
- usersExportErrorMessage: string;
115
108
  getFootballEntitiesErrorMessage: string;
116
109
  titleRequiredFieldValidationMessage: string;
117
110
  optionsFieldValidationMessage: string;
@@ -128,5 +121,51 @@ export default class LabelsModel {
128
121
  uploadingImageErrorMessage: string;
129
122
  encryptingImageErrorMessage: string;
130
123
  searchSportal365ImagesErrorMessage: string;
124
+ managePollTitle: string;
125
+ managePollDescription: string;
126
+ addOption: string;
127
+ removeOption: string;
128
+ urlCopiedToClipboardMessage: string;
129
+ imageDeletedMessage: string;
130
+ imageResetMessage: string;
131
+ authRequirement: string;
132
+ authRequirementDescription: string;
133
+ free: string;
134
+ lead: string;
135
+ registered: string;
136
+ optionDescriptionExplanation: string;
137
+ additionalFields: string;
138
+ addDescription: string;
139
+ addImages: string;
140
+ schedule: string;
141
+ scheduledTaskNotAvailable: string;
142
+ createScheduledTaskMessage: string;
143
+ createScheduledTaskErrorMessage: string;
144
+ updateScheduledTaskMessage: string;
145
+ updateScheduledTaskErrorMessage: string;
146
+ deleteScheduledTaskMessage: string;
147
+ deleteScheduledTaskErrorMessage: string;
148
+ name: string;
149
+ changeStatusTo: string;
150
+ at: string;
151
+ deleteScheduledTaskModalTitle: string;
152
+ deleteScheduledTaskModalParagraph: string;
153
+ additionalInformation: string;
154
+ voting: string;
155
+ reports: string;
156
+ option: string;
157
+ exports: string;
158
+ exportUsersData: string;
159
+ category: string;
160
+ action: string;
161
+ exportAllUsers: string;
162
+ exportAllUsersDescription: string;
163
+ usersExportMessage: string;
164
+ usersExportErrorMessage: string;
165
+ participations: string;
166
+ performanceByDay: string;
167
+ exportUsersForOption: string;
168
+ exportAllUsersForOption: string;
169
+ exportForOption: string;
131
170
  constructor(labels?: LabelsModel);
132
171
  }
@@ -1,6 +1,5 @@
1
- import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
2
- import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
3
- import { IPollOption } from '../PollById/PollById';
1
+ import { default as ImagesModel } from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
2
+ import { default as ContextModel } from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
4
3
  export interface IBrandingRequestById {
5
4
  colors: IBrandingColors;
6
5
  urls: IBrandingUrls;
@@ -28,9 +27,19 @@ export interface IBrandingImages {
28
27
  mobile_background_image: string;
29
28
  additional_image: string;
30
29
  }
30
+ export interface IPollOption {
31
+ id: string;
32
+ title: string;
33
+ description: string;
34
+ images: ImagesModel;
35
+ votes: number;
36
+ }
31
37
  export default class RequestBody {
38
+ id: string;
32
39
  title: string;
40
+ alternative_title: string;
33
41
  description: string;
42
+ auth_requirement: string;
34
43
  type: string;
35
44
  total_votes: number;
36
45
  rules: string;
@@ -1,4 +1,4 @@
1
- import ReactSelectBaseOption from './ReactSelectBaseOption';
1
+ import { default as ReactSelectBaseOption } from './ReactSelectBaseOption';
2
2
  /**
3
3
  * Option model for Competition/Team/Player async react-select
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-widget-poll",
3
- "version": "1.3.0",
3
+ "version": "2.1.0",
4
4
  "main": "poll-manager.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",
@@ -1 +1,2 @@
1
1
  export * from './index'
2
+ export {}