fansunited-widget-poll 2.3.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 +24 -2
- package/models/Labels/LabelsModel.d.ts +11 -0
- package/package.json +1 -1
- package/poll-manager.es.js +35282 -34387
- package/poll-manager.umd.js +307 -299
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
|
|
|
@@ -254,6 +254,17 @@ const labels = {
|
|
|
254
254
|
exportAllUsersLeadsDescription: 'Export all users collected leads in the poll.',
|
|
255
255
|
usersLeadsExportMessage: 'All users leads have been exported successfully',
|
|
256
256
|
usersLeadsExportErrorMessage: 'There was a problem with exporting all users leads. Please try again',
|
|
257
|
+
related: 'Related',
|
|
258
|
+
entity: 'Entity',
|
|
259
|
+
relationship: 'Relationship',
|
|
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.'
|
|
257
268
|
};
|
|
258
269
|
|
|
259
270
|
const App = () => {
|
|
@@ -445,4 +456,15 @@ Here is all information about **`LabelsModel`**:
|
|
|
445
456
|
| `exportAllUsersLeads` | Category label in export users leads table | Export all users leads |
|
|
446
457
|
| `exportAllUsersLeadsDescription` | Category description label in export users leads table | Export all users collected leads in the poll. |
|
|
447
458
|
| `exportAllUsersLeadsDescription` | Success toast message when exporting users leads | All users leads have been exported successfully |
|
|
448
|
-
| `exportAllUsersLeadsDescription` | Toast error message when exporting users leads operation fails | There was a problem with exporting all users leads. Please try again |
|
|
459
|
+
| `exportAllUsersLeadsDescription` | Toast error message when exporting users leads operation fails | There was a problem with exporting all users leads. Please try again |
|
|
460
|
+
| `related` | Label for related accordion in side bar. | Related |
|
|
461
|
+
| `entity` | Label for entity select input. | Entity |
|
|
462
|
+
| `relationship` | Label for relationship select input. | Relationship |
|
|
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. |
|
|
@@ -180,5 +180,16 @@ export default class LabelsModel {
|
|
|
180
180
|
exportAllUsersLeadsDescription: string;
|
|
181
181
|
usersLeadsExportMessage: string;
|
|
182
182
|
usersLeadsExportErrorMessage: string;
|
|
183
|
+
related: string;
|
|
184
|
+
relationship: string;
|
|
185
|
+
entity: string;
|
|
186
|
+
relatedEntitiesErrorMessage: string;
|
|
187
|
+
widgetEmbedCodeTitle: string;
|
|
188
|
+
configureLeads: string;
|
|
189
|
+
leadPosition: string;
|
|
190
|
+
addCampaignInfo: string;
|
|
191
|
+
copyToClipboard: string;
|
|
192
|
+
divElementTextInfo: string;
|
|
193
|
+
widgetEmbedCodeNotAvailable: string;
|
|
183
194
|
constructor(labels?: LabelsModel);
|
|
184
195
|
}
|