poll-test-widgets 0.0.2 → 0.0.4
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/dist/App.d.ts +2 -0
- package/dist/PollResizable.d.ts +2 -0
- package/dist/ResizableNode.d.ts +6 -0
- package/dist/TestResizable.d.ts +2 -0
- package/dist/components/Atoms.d.ts +26 -0
- package/dist/components/BaseWidgetCard.d.ts +7 -0
- package/dist/components/Poll/PollCreatorContent.d.ts +5 -0
- package/dist/components/Poll/PollDisplayContent.d.ts +4 -0
- package/dist/components/Poll/PollSettingsContent.d.ts +6 -0
- package/dist/components/Poll/PollWidget.d.ts +8 -0
- package/dist/components/Test/TestCreatorContent.d.ts +5 -0
- package/dist/components/Test/TestDisplayContent.d.ts +4 -0
- package/dist/components/Test/TestSettingsContent.d.ts +5 -0
- package/dist/components/Test/TestWidget.d.ts +8 -0
- package/dist/hooks/usePollsApi.d.ts +11 -0
- package/dist/hooks/useTestsApi.d.ts +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/poll-test-widgets.es.js +1240 -1864
- package/dist/poll-test-widgets.umd.js +1 -30
- package/package.json +8 -5
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function StyledInput({ placeholder, value, onChange, style, autoFocus, type }: {
|
|
2
|
+
placeholder: any;
|
|
3
|
+
value: any;
|
|
4
|
+
onChange: any;
|
|
5
|
+
style: any;
|
|
6
|
+
autoFocus: any;
|
|
7
|
+
type?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export function ActionButton({ onClick, children, style, disabled }: {
|
|
10
|
+
onClick: any;
|
|
11
|
+
children: any;
|
|
12
|
+
style: any;
|
|
13
|
+
disabled: any;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export function ToggleSwitch({ checked, onChange }: {
|
|
16
|
+
checked: any;
|
|
17
|
+
onChange: any;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export function CheckboxSquare({ checked, onChange }: {
|
|
20
|
+
checked: any;
|
|
21
|
+
onChange: any;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export function MenuDots({ onClick }: {
|
|
24
|
+
onClick: any;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export function RadioButton({ id, name, value, checked, onChange, children }: string): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function usePollsApi(baseUrl: any): {
|
|
2
|
+
createPoll: (pollData: any, pollSettings: any) => Promise<any>;
|
|
3
|
+
loading: boolean;
|
|
4
|
+
error: any;
|
|
5
|
+
setError: import('react').Dispatch<any>;
|
|
6
|
+
fetchAllPolls: () => Promise<any>;
|
|
7
|
+
fetchPoll: (pollId: any) => Promise<any>;
|
|
8
|
+
votePoll: (pollId: any, voteData: any) => Promise<any>;
|
|
9
|
+
unvotePoll: (pollId: any, userId: any) => Promise<any>;
|
|
10
|
+
deletePoll: (pollId: any, userId: any) => Promise<any>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function useTestsApi(baseUrl: any): {
|
|
2
|
+
loading: boolean;
|
|
3
|
+
error: any;
|
|
4
|
+
createTest: (testCreationData: any, testSettingsData: any) => Promise<any>;
|
|
5
|
+
fetchTest: (id: any) => Promise<any>;
|
|
6
|
+
submitAttempt: (payload: any) => Promise<any>;
|
|
7
|
+
deleteTest: (testId: any, userId: any) => Promise<any>;
|
|
8
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|