fansunited-widget-poll 2.12.0 → 2.12.2

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',
@@ -223,6 +224,7 @@ const labels = {
223
224
  free: "Free",
224
225
  lead: "Lead",
225
226
  registered: "Registered",
227
+ paid: "Paid",
226
228
  optionDescriptionExplanation: "This optional field allows you to provide users with more information about the option",
227
229
  additionalFields: "Additional fields",
228
230
  addDescription: "Add description",
@@ -286,7 +288,9 @@ const labels = {
286
288
  preferenceMapping: 'Preference mapping',
287
289
  uncategorized: 'Uncategorized',
288
290
  maxAttempts: 'Maximum attempts',
289
- 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."
290
294
  };
291
295
 
292
296
  const App = () => {
@@ -424,6 +428,7 @@ Here is all information about **`LabelsModel`**:
424
428
  | `createPollMessage` | Toast successful message when creating poll | You have successfully created poll |
425
429
  | `createPollErrorMessage` | Toast error message when creating poll | There was a problem creating poll. Please try again |
426
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! |
427
432
  | `optionsFieldValidationMessage` | Toast error message when validating options for poll | Options must have titles |
428
433
  | `tagsInvalidFieldValidationMessage` | Toast error message when validating tags for poll | Tag entity is required! |
429
434
  | `getPollErrorMessage` | Toast error message when fetching poll data. | There was a problem with fetching poll data|
@@ -448,6 +453,7 @@ Here is all information about **`LabelsModel`**:
448
453
  | `free` | Label for auth requirement option. | Free |
449
454
  | `lead` | Label for auth requirement option. | Lead |
450
455
  | `registered` | Label for auth requirement option. | Registered |
456
+ | `paid` | Label for auth requirement option. | Paid |
451
457
  | `optionDescriptionExplanation` | Description paragraph for explanation description | This optional field allows you to provide users with more information about the option |
452
458
  | `additionalFields` | Label for additional fields | Additional fields |
453
459
  | `addDescription` | Label for toggle description button | Add description |
@@ -512,3 +518,5 @@ Here is all information about **`LabelsModel`**:
512
518
  | `uncategorized` | Label for category preference option when preference doesn't have any category specified | Uncategorized |
513
519
  | `maxAttempts` | Label for max attempts number input | Max attempts |
514
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;
@@ -140,6 +141,7 @@ export default class LabelsModel {
140
141
  free: string;
141
142
  lead: string;
142
143
  registered: string;
144
+ paid: string;
143
145
  optionDescriptionExplanation: string;
144
146
  additionalFields: string;
145
147
  addDescription: string;
@@ -214,5 +216,7 @@ export default class LabelsModel {
214
216
  uncategorized: string;
215
217
  maxAttempts: string;
216
218
  maxAttemptsDescription: string;
219
+ externalActivity: string;
220
+ externalActivityDescription: string;
217
221
  constructor(labels?: LabelsModel);
218
222
  }
@@ -70,4 +70,5 @@ export default class RequestBody {
70
70
  participation_count: number;
71
71
  preferences_enabled: boolean;
72
72
  max_attempts: number;
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.0",
3
+ "version": "2.12.2",
4
4
  "main": "poll-manager.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",