fansunited-widget-poll 2.12.1 → 2.12.3

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
@@ -173,11 +173,12 @@ const labels = {
173
173
  createPollMessage: 'You have successfully created poll',
174
174
  createPollErrorMessage: 'There was a problem creating poll. Please try again',
175
175
  titleRequiredFieldValidationMessage: 'Title field is required!',
176
+ externalActivityRequiredFieldValidationMessage: 'External activity field in Configuration is required!',
176
177
  optionsFieldValidationMessage: "Options must have titles",
177
178
  tagsInvalidFieldValidationMessage: 'Tag entity is required!',
178
179
  getPollErrorMessage: 'There was a problem with fetching poll data. Please try again',
179
180
  deletePollMessage: 'You have successfully deleted poll',
180
- deletePollErrorMessage: 'There was a problem with deleting poll. Please try again', //here
181
+ deletePollErrorMessage: 'There was a problem with deleting poll. Please try again',
181
182
  updatePollMessage: 'You have successfully updated the poll',
182
183
  updatePollErrorMessage: 'There was a problem updating the poll. Please try again',
183
184
  uploadingImageMessage: 'You have successfully uploaded image',
@@ -287,7 +288,9 @@ const labels = {
287
288
  preferenceMapping: 'Preference mapping',
288
289
  uncategorized: 'Uncategorized',
289
290
  maxAttempts: 'Maximum attempts',
290
- maxAttemptsDescription: `Set the maximum number of attempts a user can make in the poll. When set to -1, there is no limit. When it's different from 1, the poll CAN'T be set with multiple choice`
291
+ maxAttemptsDescription: `Set the maximum number of attempts a user can make in the poll. When set to -1, there is no limit. When it's different from 1, the poll CAN'T be set with multiple choice`,
292
+ externalActivity: "External activity",
293
+ externalActivityDescription: "SKU identifier required for users to vote in paid poll. Must not contain special characters. Cannot be changed once poll has votes."
291
294
  };
292
295
 
293
296
  const App = () => {
@@ -425,6 +428,7 @@ Here is all information about **`LabelsModel`**:
425
428
  | `createPollMessage` | Toast successful message when creating poll | You have successfully created poll |
426
429
  | `createPollErrorMessage` | Toast error message when creating poll | There was a problem creating poll. Please try again |
427
430
  | `titleRequiredFieldValidationMessage` | Toast error message when validating title for poll | Title field is required! |
431
+ | `externalActivityRequiredFieldValidationMessage` | Toast error message when validating external activity for poll | External activity field in Configuration is required! |
428
432
  | `optionsFieldValidationMessage` | Toast error message when validating options for poll | Options must have titles |
429
433
  | `tagsInvalidFieldValidationMessage` | Toast error message when validating tags for poll | Tag entity is required! |
430
434
  | `getPollErrorMessage` | Toast error message when fetching poll data. | There was a problem with fetching poll data|
@@ -514,3 +518,5 @@ Here is all information about **`LabelsModel`**:
514
518
  | `uncategorized` | Label for category preference option when preference doesn't have any category specified | Uncategorized |
515
519
  | `maxAttempts` | Label for max attempts number input | Max attempts |
516
520
  | `maxAttemptsDescription` | Description for max attempts number input | Set the maximum number of attempts a user can make in the poll. When set to -1, there is no limit. When it's different from 1, the poll CAN'T be set with multiple choice |
521
+ | `maxAttempts` | Label for external activity input | External activity |
522
+ | `maxAttemptsDescription` | Description for external activity input | SKU identifier required for users to vote in paid poll. Must not contain special characters. Cannot be changed once poll has votes. |
@@ -114,6 +114,7 @@ export default class LabelsModel {
114
114
  clear: string;
115
115
  getFootballEntitiesErrorMessage: string;
116
116
  titleRequiredFieldValidationMessage: string;
117
+ externalActivityRequiredFieldValidationMessage: string;
117
118
  optionsFieldValidationMessage: string;
118
119
  tagsInvalidFieldValidationMessage: string;
119
120
  getPollErrorMessage: string;
@@ -215,5 +216,7 @@ export default class LabelsModel {
215
216
  uncategorized: string;
216
217
  maxAttempts: string;
217
218
  maxAttemptsDescription: string;
219
+ externalActivity: string;
220
+ externalActivityDescription: string;
218
221
  constructor(labels?: LabelsModel);
219
222
  }
@@ -69,5 +69,6 @@ export default class RequestBody {
69
69
  max_multiple_choice_options: number | null;
70
70
  participation_count: number;
71
71
  preferences_enabled: boolean;
72
- max_attempts: number;
72
+ max_attempts: number | null;
73
+ external_activity: string;
73
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-widget-poll",
3
- "version": "2.12.1",
3
+ "version": "2.12.3",
4
4
  "main": "poll-manager.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",