fansunited-widget-poll 2.16.0 → 2.17.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 +21 -2
- package/models/Labels/LabelsModel.d.ts +6 -0
- package/package.json +1 -1
- package/poll-manager.es.js +17884 -17748
- package/poll-manager.umd.js +319 -316
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ Fans United Poll Management Widget depends on [Fans United JS SDK](https://docs.
|
|
|
64
64
|
|
|
65
65
|
- `fansUnitedLanguage` - for our sports APIs FansUnited platform supports different languages. For now they are **Bulgarian** (bg), **English** (en), **Romanian** (ro), **Greek** (el), **Slovak** (sk), **Serbian** (sr) and **Hungarian** (hu). If no value given it will be set to **English** (en).
|
|
66
66
|
|
|
67
|
-
- `fansUnitedEnvironment` - You can run the widget in the following environments: **staging
|
|
67
|
+
- `fansUnitedEnvironment` - You can run the widget in the following environments: **staging** and **production**. If no value given it will be set to **production** (prod).
|
|
68
68
|
|
|
69
69
|
- `labels` - you can easily translate all labels, UI messages, descriptions, placeholders and etc. with this prop. By default, Fans United Poll Management Widget is available in **English** so if no value is given, the widget will be translated in English.
|
|
70
70
|
|
|
@@ -353,7 +353,13 @@ const labels = {
|
|
|
353
353
|
translationErrorMessage: 'An error occurred while translating.',
|
|
354
354
|
clonePollTitle: 'Clone Poll',
|
|
355
355
|
clone: 'Clone',
|
|
356
|
-
translationOptions: 'Translate to:'
|
|
356
|
+
translationOptions: 'Translate to:',
|
|
357
|
+
configureRulesDisplayOptions: 'Configure rules display options',
|
|
358
|
+
configureRulesDisplayOptionsDisabledMessage: 'Rules display options are only available when poll has rules configured',
|
|
359
|
+
rulesDisplayType: 'Display type',
|
|
360
|
+
rulesDisplayUrl: 'URL',
|
|
361
|
+
rulesDisplayUrlInfoMessage: 'URL to open when the rules UI element is clicked',
|
|
362
|
+
rulesDisplayTarget: 'Target'
|
|
357
363
|
};
|
|
358
364
|
|
|
359
365
|
const App = () => {
|
|
@@ -646,9 +652,22 @@ Here is all information about **`LabelsModel`**:
|
|
|
646
652
|
| `clonePollMessage` | Toast successful message when cloning Poll | You have successfully cloned Poll |
|
|
647
653
|
| `clonePollErrorMessage` | Toast error message when cloning Poll fails | There was a problem cloning Poll. Please try again |
|
|
648
654
|
| `translationErrorMessage` | Toast error message when translation fails during cloning | An error occurred while translating. |
|
|
655
|
+
| `configureRulesDisplayOptions` | Label for configure rules display options switch | Configure rules display options |
|
|
656
|
+
| `configureRulesDisplayOptionsDisabledMessage` | Info tooltip message when configure rules display options is disabled | Rules display options are only available when poll has rules configured |
|
|
657
|
+
| `rulesDisplayType` | Label for rules display type select | Display type |
|
|
658
|
+
| `rulesDisplayUrl` | Label for rules display URL input | URL |
|
|
659
|
+
| `rulesDisplayUrlInfoMessage` | Info tooltip message for rules display URL input | URL to open when the rules UI element is clicked |
|
|
660
|
+
| `rulesDisplayTarget` | Label for rules display target select | Target |
|
|
649
661
|
|
|
650
662
|
## Changelog
|
|
651
663
|
|
|
664
|
+
### 2.17.0 - 2025-12-22
|
|
665
|
+
- **Added**:
|
|
666
|
+
- New controls in Widget Embed code - rules display options
|
|
667
|
+
- **Fixed**:
|
|
668
|
+
- Avoid remapping keys to snake or camel case for custom_fields and labels properties
|
|
669
|
+
- Show only spinner on main view when switching between views
|
|
670
|
+
|
|
652
671
|
### 2.16.0 - 2025-11-26
|
|
653
672
|
|
|
654
673
|
- **Added**:
|
|
@@ -271,5 +271,11 @@ export default class LabelsModel {
|
|
|
271
271
|
clonePollTitle: string;
|
|
272
272
|
clone: string;
|
|
273
273
|
translationOptions: string;
|
|
274
|
+
configureRulesDisplayOptions: string;
|
|
275
|
+
configureRulesDisplayOptionsDisabledMessage: string;
|
|
276
|
+
rulesDisplayType: string;
|
|
277
|
+
rulesDisplayUrl: string;
|
|
278
|
+
rulesDisplayUrlInfoMessage: string;
|
|
279
|
+
rulesDisplayTarget: string;
|
|
274
280
|
constructor(labels?: LabelsModel);
|
|
275
281
|
}
|