fansunited-widget-poll 2.4.0 → 2.5.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 +17 -3
- package/models/Labels/LabelsModel.d.ts +7 -0
- package/package.json +1 -1
- package/poll-manager.es.js +34208 -33579
- package/poll-manager.umd.js +306 -298
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Fans United Poll Management Widget depends on [Fans United JS SDK](https://docs.
|
|
|
66
66
|
|
|
67
67
|
- `fansUnitedEnvironment` - You can run the widget in the following environments: **staging**, **production**, **watg** and **yolo**. If no value given it will be set to **production** (prod).
|
|
68
68
|
|
|
69
|
-
- `labels` - you can easily translate all labels, UI messages, descriptions, placeholders and etc. with this prop. By default, Fans United
|
|
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
|
|
|
71
71
|
- `sportal365Project` - The Sportal365 project. Used as a request header when communicating with Sportal365 APIs.
|
|
72
72
|
|
|
@@ -257,7 +257,14 @@ const labels = {
|
|
|
257
257
|
related: 'Related',
|
|
258
258
|
entity: 'Entity',
|
|
259
259
|
relationship: 'Relationship',
|
|
260
|
-
relatedEntitiesErrorMessage: 'There was a problem with fetching entities for related. Please try again'
|
|
260
|
+
relatedEntitiesErrorMessage: 'There was a problem with fetching entities for related. Please try again',
|
|
261
|
+
widgetEmbedCodeTitle: 'Widget embed code',
|
|
262
|
+
configureLeads: 'Configure leads',
|
|
263
|
+
leadPosition: 'Lead position',
|
|
264
|
+
addCampaignInfo: 'Add campaign info',
|
|
265
|
+
copyToClipboard: 'Copy to clipboard',
|
|
266
|
+
divElementTextInfo: "The generated embed code can be copied directly into your website's HTML. For comprehensive implementation details, visit our documentation: ",
|
|
267
|
+
widgetEmbedCodeNotAvailable: 'To configure embed code you need to first create your poll.'
|
|
261
268
|
};
|
|
262
269
|
|
|
263
270
|
const App = () => {
|
|
@@ -453,4 +460,11 @@ Here is all information about **`LabelsModel`**:
|
|
|
453
460
|
| `related` | Label for related accordion in side bar. | Related |
|
|
454
461
|
| `entity` | Label for entity select input. | Entity |
|
|
455
462
|
| `relationship` | Label for relationship select input. | Relationship |
|
|
456
|
-
| `relatedEntitiesErrorMessage` | Toast error message when fetching related entities data fails. | There was a problem with fetching entities for related. Please try again |
|
|
463
|
+
| `relatedEntitiesErrorMessage` | Toast error message when fetching related entities data fails. | There was a problem with fetching entities for related. Please try again |
|
|
464
|
+
| `widgetEmbedCodeTitle` | Label for widget embed code acordion in side bar | Widget embed code |
|
|
465
|
+
| `configureLeads` | Configure lead switch button label | Configure leads |
|
|
466
|
+
| `leadPosition` | Lead position selector title in embed code acordion | Lead position |
|
|
467
|
+
| `addCampaignInfo` | Campaign info switch label in embed code acordion | Add campaign info |
|
|
468
|
+
| `copyToClipboard` | Div text button tooltip text in embed code acordion | Copy to clipboard |
|
|
469
|
+
| `divElementTextInfo` | Helper text for div content in embed code acordion | The generated embed code can be copied directly into your website's HTML. For comprehensive implementation details, visit our documentation: |
|
|
470
|
+
| `widgetEmbedCodeNotAvailable` | Paragraph when trying to configure widget embed code for not created Poll | To configure embed code you need to first create your poll. |
|
|
@@ -184,5 +184,12 @@ export default class LabelsModel {
|
|
|
184
184
|
relationship: string;
|
|
185
185
|
entity: string;
|
|
186
186
|
relatedEntitiesErrorMessage: string;
|
|
187
|
+
widgetEmbedCodeTitle: string;
|
|
188
|
+
configureLeads: string;
|
|
189
|
+
leadPosition: string;
|
|
190
|
+
addCampaignInfo: string;
|
|
191
|
+
copyToClipboard: string;
|
|
192
|
+
divElementTextInfo: string;
|
|
193
|
+
widgetEmbedCodeNotAvailable: string;
|
|
187
194
|
constructor(labels?: LabelsModel);
|
|
188
195
|
}
|