fansunited-widget-poll 2.1.0 → 2.2.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/components/Management/LanguagesTabBar.d.ts +8 -0
- package/components/Management/MainColumn.d.ts +2 -0
- package/components/Management/ManagePoll.d.ts +3 -2
- package/components/Management/SideBar/Configuration/Configuration.d.ts +2 -0
- package/components/Management/SideBar/Configuration/Language.d.ts +9 -0
- package/components/Management/SideBar/SideBar.d.ts +2 -0
- package/components/Modals/LanguagesModal.d.ts +11 -0
- package/helpers/helpers.d.ts +1 -0
- package/models/Labels/LabelsModel.d.ts +7 -0
- package/models/RequestBody/RequestBody.d.ts +7 -0
- package/package.json +1 -1
- package/poll-manager.es.js +24100 -23105
- package/poll-manager.umd.js +230 -230
- package/services/TranslationService.d.ts +3 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type LanguagesTabBarProps = {
|
|
3
|
+
languages: string[];
|
|
4
|
+
onTabChange: (tab: number) => void;
|
|
5
|
+
onLanguageButtonClick: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const LanguagesTabBar: React.FC<LanguagesTabBarProps>;
|
|
8
|
+
export default LanguagesTabBar;
|
|
@@ -4,6 +4,8 @@ type MainColumnProps = {
|
|
|
4
4
|
isEditMode: boolean;
|
|
5
5
|
requestBody: RequestBody;
|
|
6
6
|
onRequestBodyUpdate: (body: RequestBody) => void;
|
|
7
|
+
parentTitle: string;
|
|
8
|
+
onParentSelect: () => void;
|
|
7
9
|
};
|
|
8
10
|
declare const MainColumn: React.FC<MainColumnProps>;
|
|
9
11
|
export default MainColumn;
|
|
@@ -2,10 +2,11 @@ import { default as React, Dispatch, SetStateAction } from 'react';
|
|
|
2
2
|
import { default as RequestBody } from '../../models/RequestBody/RequestBody';
|
|
3
3
|
type ManagePollProps = {
|
|
4
4
|
pollById: RequestBody | null;
|
|
5
|
+
relatedPolls: RequestBody[] | null;
|
|
6
|
+
relatedParentTitle: string;
|
|
5
7
|
setPollById: Dispatch<SetStateAction<RequestBody>>;
|
|
6
|
-
toggleScreen: () => void;
|
|
7
|
-
clearPollById: () => void;
|
|
8
8
|
onClickBack: () => void;
|
|
9
|
+
loadParent: () => void;
|
|
9
10
|
};
|
|
10
11
|
declare const ManagePoll: React.FC<ManagePollProps>;
|
|
11
12
|
export default ManagePoll;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { default as RequestBody } from '../../../../models/RequestBody/RequestBody';
|
|
3
3
|
type ConfigurationProps = {
|
|
4
|
+
isMultilingual: boolean;
|
|
5
|
+
isPollVoted: boolean;
|
|
4
6
|
requestBody: RequestBody;
|
|
5
7
|
onRequestBodyUpdate: (body: RequestBody) => void;
|
|
6
8
|
};
|
|
@@ -2,6 +2,8 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { default as RequestBody } from '../../../models/RequestBody/RequestBody';
|
|
3
3
|
type SideBarProps = {
|
|
4
4
|
requestBody: RequestBody;
|
|
5
|
+
isMultilingual: boolean;
|
|
6
|
+
isPollVoted: boolean;
|
|
5
7
|
onRequestBodyUpdate: (body: RequestBody) => void;
|
|
6
8
|
};
|
|
7
9
|
declare const SideBar: React.FC<SideBarProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type LanguagesModalProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
mainLanguage: string;
|
|
5
|
+
languages: string[];
|
|
6
|
+
isLoadingTranslations: boolean;
|
|
7
|
+
onSubmit: (languages: string[]) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const LanguagesModal: React.FC<LanguagesModalProps>;
|
|
11
|
+
export default LanguagesModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const remapKeysToSpecificCase: (obj: any, type: "camel" | "snake") => any;
|
|
@@ -24,6 +24,7 @@ export default class LabelsModel {
|
|
|
24
24
|
sortByAscending: string;
|
|
25
25
|
sortByDescending: string;
|
|
26
26
|
language: string;
|
|
27
|
+
languageDescription: string;
|
|
27
28
|
contextEntityTag: string;
|
|
28
29
|
typeContextTagNamePlaceholder: string;
|
|
29
30
|
itemsPerPage: string;
|
|
@@ -150,6 +151,12 @@ export default class LabelsModel {
|
|
|
150
151
|
at: string;
|
|
151
152
|
deleteScheduledTaskModalTitle: string;
|
|
152
153
|
deleteScheduledTaskModalParagraph: string;
|
|
154
|
+
languagesModalTitle: string;
|
|
155
|
+
languagesModalDescription: string;
|
|
156
|
+
languagesModalSave: string;
|
|
157
|
+
languageParentText: string;
|
|
158
|
+
pollTranslationErrorMessage: string;
|
|
159
|
+
translateTo: string;
|
|
153
160
|
additionalInformation: string;
|
|
154
161
|
voting: string;
|
|
155
162
|
reports: string;
|
|
@@ -34,6 +34,11 @@ export interface IPollOption {
|
|
|
34
34
|
images: ImagesModel;
|
|
35
35
|
votes: number;
|
|
36
36
|
}
|
|
37
|
+
export interface IRelation {
|
|
38
|
+
entity_id: string;
|
|
39
|
+
entity_type: string;
|
|
40
|
+
entity_relationship: string;
|
|
41
|
+
}
|
|
37
42
|
export default class RequestBody {
|
|
38
43
|
id: string;
|
|
39
44
|
title: string;
|
|
@@ -41,6 +46,7 @@ export default class RequestBody {
|
|
|
41
46
|
description: string;
|
|
42
47
|
auth_requirement: string;
|
|
43
48
|
type: string;
|
|
49
|
+
language: string;
|
|
44
50
|
total_votes: number;
|
|
45
51
|
rules: string;
|
|
46
52
|
ad_content: string;
|
|
@@ -53,4 +59,5 @@ export default class RequestBody {
|
|
|
53
59
|
flags: string[];
|
|
54
60
|
context: ContextModel;
|
|
55
61
|
options: IPollOption[];
|
|
62
|
+
related: IRelation[];
|
|
56
63
|
}
|