fansunited-widget-poll 2.4.0 → 2.6.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 +23 -3
- package/models/Labels/LabelsModel.d.ts +10 -0
- package/package.json +1 -1
- package/poll-manager.es.js +36372 -35479
- package/poll-manager.umd.js +319 -304
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,17 @@ 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
|
+
configureLeadsDisabledMessage: 'Configure leads is enabled only when the authentication requirement is set to “Lead”.',
|
|
264
|
+
leadPosition: 'Lead position',
|
|
265
|
+
addCampaignInfo: 'Add campaign info',
|
|
266
|
+
campaignIdInfoMessage: 'Group multiple content items by a campaign ID. This field will be used for filtering later on, so make sure you have excatly the same ID across your multiple quizzes, polls and other games in general. We recommend using lowercase and -. Example: "adidas-december-2025"',
|
|
267
|
+
campaignNameInfoMessage: 'A label for your campaign that will appear in the reports. You can use anything here. Example: "Adidas (December 2025)"',
|
|
268
|
+
copyToClipboard: 'Copy to clipboard',
|
|
269
|
+
divElementTextInfo: "The generated embed code can be copied directly into your website's HTML. For comprehensive implementation details, visit our documentation: ",
|
|
270
|
+
widgetEmbedCodeNotAvailable: 'To configure embed code you need to first create your poll.'
|
|
261
271
|
};
|
|
262
272
|
|
|
263
273
|
const App = () => {
|
|
@@ -453,4 +463,14 @@ Here is all information about **`LabelsModel`**:
|
|
|
453
463
|
| `related` | Label for related accordion in side bar. | Related |
|
|
454
464
|
| `entity` | Label for entity select input. | Entity |
|
|
455
465
|
| `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 |
|
|
466
|
+
| `relatedEntitiesErrorMessage` | Toast error message when fetching related entities data fails. | There was a problem with fetching entities for related. Please try again |
|
|
467
|
+
| `widgetEmbedCodeTitle` | Label for widget embed code acordion in side bar | Widget embed code |
|
|
468
|
+
| `configureLeads` | Configure lead switch button label | Configure leads |
|
|
469
|
+
| `configureLeadsDisabledMessage` | Message shown when configure leads switch button is disabled | Configure leads is enabled only when the authentication requirement is set to “Lead”. |
|
|
470
|
+
| `leadPosition` | Lead position selector title in embed code acordion | Lead position |
|
|
471
|
+
| `addCampaignInfo` | Campaign info switch label in embed code acordion | Add campaign info |
|
|
472
|
+
| `campaignIdInfoMessage` | Tooltip info text for campaign id input field | Group multiple content items by a campaign ID. This field will be used for filtering later on, so make sure you have excatly the same ID across your multiple quizzes, polls and other games in general. We recommend using lowercase and -. Example: "adidas-december-2025" |
|
|
473
|
+
| `campaignNameInfoMessage` | Tooltip info text for campaign name input field | A label for your campaign that will appear in the reports. You can use anything here. Example: "Adidas (December 2025)" |
|
|
474
|
+
| `copyToClipboard` | Div text button tooltip text in embed code acordion | Copy to clipboard |
|
|
475
|
+
| `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: |
|
|
476
|
+
| `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,15 @@ export default class LabelsModel {
|
|
|
184
184
|
relationship: string;
|
|
185
185
|
entity: string;
|
|
186
186
|
relatedEntitiesErrorMessage: string;
|
|
187
|
+
widgetEmbedCodeTitle: string;
|
|
188
|
+
configureLeads: string;
|
|
189
|
+
configureLeadsDisabledMessage: string;
|
|
190
|
+
leadPosition: string;
|
|
191
|
+
addCampaignInfo: string;
|
|
192
|
+
campaignIdInfoMessage: string;
|
|
193
|
+
campaignNameInfoMessage: string;
|
|
194
|
+
copyToClipboard: string;
|
|
195
|
+
divElementTextInfo: string;
|
|
196
|
+
widgetEmbedCodeNotAvailable: string;
|
|
187
197
|
constructor(labels?: LabelsModel);
|
|
188
198
|
}
|