fansunited-widget-either-or 2.8.1 → 2.9.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 +16 -2
- package/components/Filters/Filters.d.ts +3 -3
- package/components/Modals/ImportTemplateModal.d.ts +0 -1
- package/either-or-manager.es.js +18800 -18108
- package/either-or-manager.umd.js +239 -231
- package/models/Labels/LabelsModel.d.ts +7 -0
- package/models/RequestBody/RequestBody.d.ts +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -258,6 +258,7 @@ const labels = {
|
|
|
258
258
|
free: 'Free',
|
|
259
259
|
lead: 'Lead',
|
|
260
260
|
registered: 'Registered',
|
|
261
|
+
paid: 'Paid',
|
|
261
262
|
language: 'Language',
|
|
262
263
|
languageDescription: 'Select the language for your game. You can manage language selection by configuring available languages in language configuration. It cannot be changed if multilingual feature is in use.',
|
|
263
264
|
urlCopiedToClipboardMessage: 'URL copied to clipboard',
|
|
@@ -310,7 +311,13 @@ const labels = {
|
|
|
310
311
|
campaignNameInfoMessage: 'A label for your campaign that will appear in the reports. You can use anything here. Example: "Adidas (December 2025)"',
|
|
311
312
|
copyToClipboard: 'Copy to clipboard',
|
|
312
313
|
divElementTextInfo: "The generated embed code can be copied directly into your website's HTML. For comprehensive implementation details, visit our documentation: ",
|
|
313
|
-
widgetEmbedCodeNotAvailable: 'To configure embed code you need to first create your Either/Or game.'
|
|
314
|
+
widgetEmbedCodeNotAvailable: 'To configure embed code you need to first create your Either/Or game.',
|
|
315
|
+
signInLabel: 'Label',
|
|
316
|
+
signInLabelInfoMessage: `Custom text displayed on the sign-in button. If empty, defaults to "Sign in to vote".`,
|
|
317
|
+
authenticationHandler: 'Authentication handler',
|
|
318
|
+
authenticationHandlerInfoMessage: 'JavaScript function code that executes when users click the sign-in button. To evaluate the function, provide only the function name. Example: showLoginModal() or window.openAuth(). The function is required otherwise the sign-in button will just log dummy message in the console.',
|
|
319
|
+
configureSignIn: 'Configure sign-in options',
|
|
320
|
+
configureSignInDisabledMessage: `Configure sign-in options is enabled only when the authentication requirement is set to “Registered”.`
|
|
314
321
|
};
|
|
315
322
|
|
|
316
323
|
const App = () => {
|
|
@@ -508,6 +515,7 @@ Here is all information about **`LabelsModel`**:
|
|
|
508
515
|
| `free` | Label for auth requirement option. | Free |
|
|
509
516
|
| `lead` | Label for auth requirement option. | Lead |
|
|
510
517
|
| `registered` | Label for auth requirement option. | Registered |
|
|
518
|
+
| `paid` | Label for auth requirement option. | Paid |
|
|
511
519
|
| `language` | Label for language selection in configuration panel. | Language |
|
|
512
520
|
| `languageDescription` | Description paragraph for language select. | Select the language for your game. You can manage language selection by configuring available languages in language configuration. It cannot be changed if multilingual feature is in use. |
|
|
513
521
|
| `urlCopiedToClipboardMessage` | Toast info message when image URL is copied | URL copied to clipboard |
|
|
@@ -560,4 +568,10 @@ Here is all information about **`LabelsModel`**:
|
|
|
560
568
|
| `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)" |
|
|
561
569
|
| `copyToClipboard` | Div text button tooltip text in embed code acordion | Copy to clipboard |
|
|
562
570
|
| `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: |
|
|
563
|
-
| `widgetEmbedCodeNotAvailable` | Paragraph when trying to configure widget embed code for not created Either/Or | To configure embed code you need to first create your Either/Or game. |
|
|
571
|
+
| `widgetEmbedCodeNotAvailable` | Paragraph when trying to configure widget embed code for not created Either/Or | To configure embed code you need to first create your Either/Or game. |
|
|
572
|
+
| `signInLabel` | Label for sign in label input | Label |
|
|
573
|
+
| `signInLabelInfoMessage` | Info tooltip message for sign in label input | Custom text displayed on the sign-in button. If empty, defaults to "Sign in to vote". |
|
|
574
|
+
| `authenticationHandler` | Label for authentication handler | Authentication handler |
|
|
575
|
+
| `authenticationHandlerInfoMessage` | Info tooltip message for authentication handler | JavaScript function code that executes when users click the sign-in button. To evaluate the function, provide only the function name. Example: showLoginModal() or window.openAuth(). The function is required otherwise the sign-in button will just log dummy message in the console. |
|
|
576
|
+
| `configureSignIn` | Label for configure sign in switch | Configure sign-in options |
|
|
577
|
+
| `configureSignInDisabledMessage` | Info tooltiup message when configure sign in is disabled | Configure sign-in options is enabled only when the authentication requirement is set to “Registered”. |
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { default as SelectOption } from '../../models/Select/SelectOption';
|
|
3
2
|
import { default as EitherOrFiltersModel } from '../../models/Filters/EitherOrFiltersModel';
|
|
3
|
+
import { default as GroupSelectOption } from 'fansunited-management-components/src/models/select/GroupSelectOption';
|
|
4
4
|
type FiltersProps = {
|
|
5
5
|
filters: EitherOrFiltersModel;
|
|
6
|
-
options:
|
|
6
|
+
options: GroupSelectOption[];
|
|
7
7
|
showStatusFilter?: boolean;
|
|
8
|
-
setOptions: Dispatch<SetStateAction<
|
|
8
|
+
setOptions: Dispatch<SetStateAction<GroupSelectOption[]>>;
|
|
9
9
|
setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
|
|
10
10
|
handleResetData: () => void;
|
|
11
11
|
};
|