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 ADDED
@@ -0,0 +1,2 @@
1
+ export default App;
2
+ declare function App(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default PollResizable;
2
+ declare function PollResizable(props: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export default ResizableNode;
2
+ declare function ResizableNode({ id, data, selected }: {
3
+ id: any;
4
+ data: any;
5
+ selected: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default TestResizable;
2
+ declare function TestResizable(props: any): import("react/jsx-runtime").JSX.Element;
@@ -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,7 @@
1
+ export function BaseWidgetCard({ title, children, style, toggleSettings, showMenuDots }: {
2
+ title: any;
3
+ children: any;
4
+ style: any;
5
+ toggleSettings: any;
6
+ showMenuDots?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export function PollCreatorContent({ onSave, onDataChange, initialData }: {
2
+ onSave: any;
3
+ onDataChange: any;
4
+ initialData: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export function PollDisplayContent({ pollData, setPollData }: {
2
+ pollData: any;
3
+ setPollData: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export function PollSettingsContent({ onDataChange, initialData, toggleSettings, onDelete }: {
2
+ onDataChange: any;
3
+ initialData: any;
4
+ toggleSettings: any;
5
+ onDelete: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export default PollWidget;
2
+ declare function PollWidget({ initialTitle, pollId, nodeId, nodeProps, onSaved }: {
3
+ initialTitle: any;
4
+ pollId: any;
5
+ nodeId: any;
6
+ nodeProps: any;
7
+ onSaved: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export function TestCreatorContent({ onSave, onDataChange, initialData }: {
2
+ onSave: any;
3
+ onDataChange: any;
4
+ initialData: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export function TestDisplayContent({ testData, setTestData }: {
2
+ testData: any;
3
+ setTestData: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export function TestSettingsContent({ onDataChange, initialData, toggleSettings }: {
2
+ onDataChange: any;
3
+ initialData: any;
4
+ toggleSettings: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export default TestWidget;
2
+ declare function TestWidget({ initialTitle, pollId: testId, nodeId, nodeProps, onSaved }: {
3
+ initialTitle: any;
4
+ pollId: any;
5
+ nodeId: any;
6
+ nodeProps: any;
7
+ onSaved: any;
8
+ }): 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
+ };
@@ -0,0 +1,2 @@
1
+ export { default as PollResizable } from './PollResizable';
2
+ export { default as TestResizable } from './TestResizable';
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};