fansunited-widget-either-or 2.9.0 → 2.10.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 +30 -3
- package/components/EitherOrs/ActionsMenu.d.ts +1 -1
- package/components/Modals/CloneMiniGameModal.d.ts +10 -0
- package/either-or-manager.es.js +13627 -13518
- package/either-or-manager.umd.js +223 -223
- package/models/Labels/LabelsModel.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -194,7 +194,7 @@ const labels = {
|
|
|
194
194
|
generateSignedInUrlErrorMessage: 'There was a problem generating signed in URL to store the image in bucket. Please try again',
|
|
195
195
|
uploadingImageErrorMessage: 'There was a problem with uploading image to bucket. Please try again',
|
|
196
196
|
encryptingImageErrorMessage: 'There was a problem with encrypting image before uploading it to bucket. Please try again',
|
|
197
|
-
searchSportal365ImagesErrorMessage: 'There was a problem with searching images from Sportal 365 API. Please try again'
|
|
197
|
+
searchSportal365ImagesErrorMessage: 'There was a problem with searching images from Sportal 365 API. Please try again',
|
|
198
198
|
hideFilters: 'Hide filters',
|
|
199
199
|
showFilters: 'Show filters',
|
|
200
200
|
branding: 'Branding',
|
|
@@ -317,7 +317,13 @@ const labels = {
|
|
|
317
317
|
authenticationHandler: 'Authentication handler',
|
|
318
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
319
|
configureSignIn: 'Configure sign-in options',
|
|
320
|
-
configureSignInDisabledMessage: `Configure sign-in options is enabled only when the authentication requirement is set to “Registered
|
|
320
|
+
configureSignInDisabledMessage: `Configure sign-in options is enabled only when the authentication requirement is set to “Registered”.`,
|
|
321
|
+
translationOptions: 'Translate to:',
|
|
322
|
+
cloneMiniGameTitle: 'Clone Either/Or',
|
|
323
|
+
clone: 'Clone',
|
|
324
|
+
cloneEitherOrMessage: 'You have successfully cloned Either/Or',
|
|
325
|
+
cloneEitherOrErrorMessage: 'There was a problem cloning Either/Or. Please try again',
|
|
326
|
+
translationErrorMessage: 'An error occurred while translating.'
|
|
321
327
|
};
|
|
322
328
|
|
|
323
329
|
const App = () => {
|
|
@@ -574,4 +580,25 @@ Here is all information about **`LabelsModel`**:
|
|
|
574
580
|
| `authenticationHandler` | Label for authentication handler | Authentication handler |
|
|
575
581
|
| `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
582
|
| `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”. |
|
|
583
|
+
| `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”. |
|
|
584
|
+
| `translationOptions` | Label for translation options section in clone modal | Translate to: |
|
|
585
|
+
| `cloneMiniGameTitle` | Title for clone Either/Or modal | Clone Either/Or |
|
|
586
|
+
| `clone` | Label for clone button | Clone |
|
|
587
|
+
| `cloneEitherOrMessage` | Toast successful message when cloning Either/Or | You have successfully cloned Either/Or |
|
|
588
|
+
| `cloneEitherOrErrorMessage` | Toast error message when cloning Either/Or fails | There was a problem cloning Either/Or. Please try again |
|
|
589
|
+
| `translationErrorMessage` | Toast error message when translation fails during cloning | An error occurred while translating. |
|
|
590
|
+
|
|
591
|
+
## Changelog
|
|
592
|
+
|
|
593
|
+
### 2.10.0 - 2025-01-01
|
|
594
|
+
|
|
595
|
+
- **Added:**
|
|
596
|
+
- Clone functionality for Either/Or games
|
|
597
|
+
- Translation support during cloning process - users can clone games and translate them to multiple languages simultaneously
|
|
598
|
+
- New clone action in the actions menu for existing games
|
|
599
|
+
- New labels for clone functionality: `translationOptions`, `cloneMiniGameTitle`, `clone`, `cloneEitherOrMessage`, `cloneEitherOrErrorMessage`, `translationErrorMessage`
|
|
600
|
+
- Enhanced user experience with loading states and toast notifications during cloning operations
|
|
601
|
+
|
|
602
|
+
- **Changed:**
|
|
603
|
+
- Updated LabelsModel to include new clone-related labels with default values
|
|
604
|
+
- Enhanced ActionsMenu component to include clone option alongside edit and delete actions
|
|
@@ -3,7 +3,7 @@ import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
|
3
3
|
type ActionsMenuProps = {
|
|
4
4
|
eitherOr: EitherOrBasicModel;
|
|
5
5
|
onClickEdit: () => void;
|
|
6
|
-
|
|
6
|
+
reloadGames: () => void;
|
|
7
7
|
};
|
|
8
8
|
declare const ActionsMenu: React.FC<ActionsMenuProps>;
|
|
9
9
|
export default ActionsMenu;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
type CloneMiniGameModalProps = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
eitherOr: EitherOrBasicModel;
|
|
6
|
+
getMiniGames: () => void;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const CloneMiniGameModal: React.FC<CloneMiniGameModalProps>;
|
|
10
|
+
export default CloneMiniGameModal;
|