fansunited-widget-poll 2.14.0 → 2.15.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 +28 -1
- package/components/Modals/ClonePollModal.d.ts +10 -0
- package/components/Polls/ActionsMenu.d.ts +1 -1
- package/models/Labels/LabelsModel.d.ts +6 -0
- package/package.json +1 -1
- package/poll-manager.es.js +14346 -14245
- package/poll-manager.umd.js +285 -285
package/README.md
CHANGED
|
@@ -330,7 +330,13 @@ const labels = {
|
|
|
330
330
|
generate: 'Generate',
|
|
331
331
|
regenerate: 'Regenerate',
|
|
332
332
|
createAndContinue: 'Create and Continue',
|
|
333
|
-
createAndGoTo: 'Create and Go To Poll'
|
|
333
|
+
createAndGoTo: 'Create and Go To Poll',
|
|
334
|
+
clonePollMessage: 'You have successfully cloned Poll',
|
|
335
|
+
clonePollErrorMessage: 'There was a problem cloning Poll. Please try again',
|
|
336
|
+
translationErrorMessage: 'An error occurred while translating.',
|
|
337
|
+
clonePollTitle: 'Clone Poll',
|
|
338
|
+
clone: 'Clone',
|
|
339
|
+
translationOptions: 'Translate to:'
|
|
334
340
|
};
|
|
335
341
|
|
|
336
342
|
const App = () => {
|
|
@@ -600,3 +606,24 @@ Here is all information about **`LabelsModel`**:
|
|
|
600
606
|
| `regenerate` | Label for regenerate button in AI generation | Regenerate |
|
|
601
607
|
| `createAndContinue` | Label for create and continue button in AI generation | Create and Continue |
|
|
602
608
|
| `createAndGoTo` | Label for create and go to poll button in AI generation | Create and Go To Poll |
|
|
609
|
+
| `translationOptions` | Label for translation options section in clone modal | Translate to: |
|
|
610
|
+
| `cloneMiniGameTitle` | Title for clone Poll modal | Clone Poll |
|
|
611
|
+
| `clone` | Label for clone button | Clone |
|
|
612
|
+
| `clonePollMessage` | Toast successful message when cloning Poll | You have successfully cloned Poll |
|
|
613
|
+
| `clonePollErrorMessage` | Toast error message when cloning Poll fails | There was a problem cloning Poll. Please try again |
|
|
614
|
+
| `translationErrorMessage` | Toast error message when translation fails during cloning | An error occurred while translating. |
|
|
615
|
+
|
|
616
|
+
## Changelog
|
|
617
|
+
|
|
618
|
+
### 2.15.0 - 2025-01-01
|
|
619
|
+
|
|
620
|
+
- **Added:**
|
|
621
|
+
- Clone functionality for polls
|
|
622
|
+
- Translation support during cloning process - users can clone games and translate them to multiple languages simultaneously
|
|
623
|
+
- New clone action in the actions menu for existing games
|
|
624
|
+
- New labels for clone functionality: `translationOptions`, `cloneMiniGameTitle`, `clone`, `clonePollMessage`, `clonePollErrorMessage`, `translationErrorMessage`
|
|
625
|
+
- Enhanced user experience with loading states and toast notifications during cloning operations
|
|
626
|
+
|
|
627
|
+
- **Changed:**
|
|
628
|
+
- Updated LabelsModel to include new clone-related labels with default values
|
|
629
|
+
- Enhanced ActionsMenu component to include clone option alongside edit and delete actions
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PollBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
type ClonePollModalProps = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
poll: PollBasicModel;
|
|
6
|
+
getPolls: () => void;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const ClonePollModal: React.FC<ClonePollModalProps>;
|
|
10
|
+
export default ClonePollModal;
|
|
@@ -3,7 +3,7 @@ import { PollBasicModel } from 'fansunited-sdk-esm';
|
|
|
3
3
|
type ActionsMenuProps = {
|
|
4
4
|
poll: PollBasicModel;
|
|
5
5
|
onClickEdit: () => void;
|
|
6
|
-
|
|
6
|
+
getPolls: () => void;
|
|
7
7
|
};
|
|
8
8
|
declare const ActionsMenu: React.FC<ActionsMenuProps>;
|
|
9
9
|
export default ActionsMenu;
|
|
@@ -248,5 +248,11 @@ export default class LabelsModel {
|
|
|
248
248
|
regenerate: string;
|
|
249
249
|
createAndContinue: string;
|
|
250
250
|
createAndGoTo: string;
|
|
251
|
+
clonePollMessage: string;
|
|
252
|
+
clonePollErrorMessage: string;
|
|
253
|
+
translationErrorMessage: string;
|
|
254
|
+
clonePollTitle: string;
|
|
255
|
+
clone: string;
|
|
256
|
+
translationOptions: string;
|
|
251
257
|
constructor(labels?: LabelsModel);
|
|
252
258
|
}
|