@thanh01.pmt/interactive-quiz-kit 1.0.24 → 1.0.25

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.
@@ -0,0 +1,133 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import { r as QuizConfig, f as QuizQuestion } from './quiz-config-1gNNhljP.js';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { QuestionInBank, QuestionFilters as QuestionFilters$1 } from './index.js';
6
+ import * as class_variance_authority_types from 'class-variance-authority/types';
7
+ import * as ToastPrimitives from '@radix-ui/react-toast';
8
+ import { VariantProps } from 'class-variance-authority';
9
+
10
+ interface QuizAuthoringToolProps {
11
+ initialQuizConfig?: QuizConfig | null;
12
+ onSaveQuiz: (quiz: QuizConfig) => void;
13
+ onExitAuthoring?: () => void;
14
+ }
15
+ declare const QuizAuthoringTool: React__default.FC<QuizAuthoringToolProps>;
16
+
17
+ interface AIQuestionGeneratorModalProps {
18
+ isOpen: boolean;
19
+ onClose: () => void;
20
+ onQuestionGenerated: (question: QuizQuestion) => void;
21
+ language: string;
22
+ }
23
+ declare const AIQuestionGeneratorModal: React__default.FC<AIQuestionGeneratorModalProps>;
24
+
25
+ interface AIFullQuizGeneratorModalProps {
26
+ isOpen: boolean;
27
+ onClose: () => void;
28
+ onQuizGenerated: (questions: QuizQuestion[]) => void;
29
+ language: string;
30
+ }
31
+ declare const AIFullQuizGeneratorModal: React__default.FC<AIFullQuizGeneratorModalProps>;
32
+
33
+ interface EditQuestionModalProps {
34
+ isOpen: boolean;
35
+ onClose: () => void;
36
+ questionData: QuizQuestion | null;
37
+ onSave: (question: QuizQuestion) => void;
38
+ }
39
+ declare const EditQuestionModal: React__default.FC<EditQuestionModalProps>;
40
+
41
+ interface SCORMExportModalProps {
42
+ isOpen: boolean;
43
+ onClose: () => void;
44
+ quizConfig: QuizConfig;
45
+ onConfirmExport: (exportOptions: {
46
+ scormVersion: "1.2" | "2004";
47
+ }) => void;
48
+ }
49
+ declare const SCORMExportModal: React__default.FC<SCORMExportModalProps>;
50
+
51
+ interface ImportQuestionsModalProps {
52
+ isOpen: boolean;
53
+ onClose: () => void;
54
+ onImportConfirm: (questions: QuizQuestion[]) => void;
55
+ }
56
+ declare const ImportQuestionsModal: React__default.FC<ImportQuestionsModalProps>;
57
+
58
+ interface QuestionListProps {
59
+ questions: QuestionInBank[];
60
+ onEdit: (question: QuestionInBank) => void;
61
+ onDelete: (question: QuestionInBank) => void;
62
+ onView?: (question: QuestionInBank) => void;
63
+ }
64
+ declare function QuestionList({ questions, onEdit, onDelete, onView }: QuestionListProps): react_jsx_runtime.JSX.Element;
65
+
66
+ interface QuestionFiltersProps {
67
+ onFilterChange: (filters: QuestionFilters$1) => void;
68
+ initialFilters?: QuestionFilters$1;
69
+ }
70
+ declare function QuestionFilters({ onFilterChange, initialFilters, }: QuestionFiltersProps): react_jsx_runtime.JSX.Element;
71
+
72
+ interface QuestionFormDialogProps {
73
+ isOpen: boolean;
74
+ onOpenChange: (isOpen: boolean) => void;
75
+ onSave: () => void;
76
+ questionToEdit?: QuestionInBank | null;
77
+ }
78
+ declare function QuestionFormDialog({ isOpen, onOpenChange, onSave, questionToEdit, }: QuestionFormDialogProps): react_jsx_runtime.JSX.Element;
79
+
80
+ interface APIKeyManagerModalProps {
81
+ isOpen: boolean;
82
+ onClose: () => void;
83
+ }
84
+ declare const APIKeyManagerModal: React__default.FC<APIKeyManagerModalProps>;
85
+
86
+ declare function MetadataTabs(): react_jsx_runtime.JSX.Element;
87
+
88
+ declare function SubjectManager(): react_jsx_runtime.JSX.Element;
89
+
90
+ declare function TopicManager(): react_jsx_runtime.JSX.Element;
91
+
92
+ declare function CategoryManager(): react_jsx_runtime.JSX.Element;
93
+
94
+ declare function GradeLevelManager(): react_jsx_runtime.JSX.Element;
95
+
96
+ declare function BloomLevelManager(): react_jsx_runtime.JSX.Element;
97
+
98
+ declare function QuestionTypeManager(): react_jsx_runtime.JSX.Element;
99
+
100
+ declare function LearningObjectiveManager(): react_jsx_runtime.JSX.Element;
101
+
102
+ declare function ContextManager(): react_jsx_runtime.JSX.Element;
103
+
104
+ declare function ApproachManager(): react_jsx_runtime.JSX.Element;
105
+
106
+ declare const Toast$1: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
107
+ variant?: "default" | "destructive" | null | undefined;
108
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
109
+ declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
110
+ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast$1>;
111
+ type ToastActionElement = React.ReactElement<typeof ToastAction>;
112
+
113
+ type ToasterToast = ToastProps & {
114
+ id: string;
115
+ title?: React.ReactNode;
116
+ description?: React.ReactNode;
117
+ action?: ToastActionElement;
118
+ };
119
+ type Toast = Omit<ToasterToast, "id">;
120
+ declare function toast({ ...props }: Toast): {
121
+ id: string;
122
+ dismiss: () => void;
123
+ update: (props: ToasterToast) => void;
124
+ };
125
+ declare function useToast(): {
126
+ toast: typeof toast;
127
+ dismiss: (toastId?: string) => void;
128
+ toasts: ToasterToast[];
129
+ };
130
+
131
+ declare function Toaster(): react_jsx_runtime.JSX.Element;
132
+
133
+ export { AIQuestionGeneratorModal as A, BloomLevelManager as B, CategoryManager as C, EditQuestionModal as E, GradeLevelManager as G, ImportQuestionsModal as I, LearningObjectiveManager as L, MetadataTabs as M, QuizAuthoringTool as Q, SCORMExportModal as S, TopicManager as T, AIFullQuizGeneratorModal as a, APIKeyManagerModal as b, QuestionList as c, QuestionFilters as d, QuestionFormDialog as e, SubjectManager as f, QuestionTypeManager as g, ContextManager as h, ApproachManager as i, Toaster as j, toast as t, useToast as u };
@@ -0,0 +1,133 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import { r as QuizConfig, f as QuizQuestion } from './quiz-config-1gNNhljP.cjs';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { QuestionInBank, QuestionFilters as QuestionFilters$1 } from './index.cjs';
6
+ import * as class_variance_authority_types from 'class-variance-authority/types';
7
+ import * as ToastPrimitives from '@radix-ui/react-toast';
8
+ import { VariantProps } from 'class-variance-authority';
9
+
10
+ interface QuizAuthoringToolProps {
11
+ initialQuizConfig?: QuizConfig | null;
12
+ onSaveQuiz: (quiz: QuizConfig) => void;
13
+ onExitAuthoring?: () => void;
14
+ }
15
+ declare const QuizAuthoringTool: React__default.FC<QuizAuthoringToolProps>;
16
+
17
+ interface AIQuestionGeneratorModalProps {
18
+ isOpen: boolean;
19
+ onClose: () => void;
20
+ onQuestionGenerated: (question: QuizQuestion) => void;
21
+ language: string;
22
+ }
23
+ declare const AIQuestionGeneratorModal: React__default.FC<AIQuestionGeneratorModalProps>;
24
+
25
+ interface AIFullQuizGeneratorModalProps {
26
+ isOpen: boolean;
27
+ onClose: () => void;
28
+ onQuizGenerated: (questions: QuizQuestion[]) => void;
29
+ language: string;
30
+ }
31
+ declare const AIFullQuizGeneratorModal: React__default.FC<AIFullQuizGeneratorModalProps>;
32
+
33
+ interface EditQuestionModalProps {
34
+ isOpen: boolean;
35
+ onClose: () => void;
36
+ questionData: QuizQuestion | null;
37
+ onSave: (question: QuizQuestion) => void;
38
+ }
39
+ declare const EditQuestionModal: React__default.FC<EditQuestionModalProps>;
40
+
41
+ interface SCORMExportModalProps {
42
+ isOpen: boolean;
43
+ onClose: () => void;
44
+ quizConfig: QuizConfig;
45
+ onConfirmExport: (exportOptions: {
46
+ scormVersion: "1.2" | "2004";
47
+ }) => void;
48
+ }
49
+ declare const SCORMExportModal: React__default.FC<SCORMExportModalProps>;
50
+
51
+ interface ImportQuestionsModalProps {
52
+ isOpen: boolean;
53
+ onClose: () => void;
54
+ onImportConfirm: (questions: QuizQuestion[]) => void;
55
+ }
56
+ declare const ImportQuestionsModal: React__default.FC<ImportQuestionsModalProps>;
57
+
58
+ interface QuestionListProps {
59
+ questions: QuestionInBank[];
60
+ onEdit: (question: QuestionInBank) => void;
61
+ onDelete: (question: QuestionInBank) => void;
62
+ onView?: (question: QuestionInBank) => void;
63
+ }
64
+ declare function QuestionList({ questions, onEdit, onDelete, onView }: QuestionListProps): react_jsx_runtime.JSX.Element;
65
+
66
+ interface QuestionFiltersProps {
67
+ onFilterChange: (filters: QuestionFilters$1) => void;
68
+ initialFilters?: QuestionFilters$1;
69
+ }
70
+ declare function QuestionFilters({ onFilterChange, initialFilters, }: QuestionFiltersProps): react_jsx_runtime.JSX.Element;
71
+
72
+ interface QuestionFormDialogProps {
73
+ isOpen: boolean;
74
+ onOpenChange: (isOpen: boolean) => void;
75
+ onSave: () => void;
76
+ questionToEdit?: QuestionInBank | null;
77
+ }
78
+ declare function QuestionFormDialog({ isOpen, onOpenChange, onSave, questionToEdit, }: QuestionFormDialogProps): react_jsx_runtime.JSX.Element;
79
+
80
+ interface APIKeyManagerModalProps {
81
+ isOpen: boolean;
82
+ onClose: () => void;
83
+ }
84
+ declare const APIKeyManagerModal: React__default.FC<APIKeyManagerModalProps>;
85
+
86
+ declare function MetadataTabs(): react_jsx_runtime.JSX.Element;
87
+
88
+ declare function SubjectManager(): react_jsx_runtime.JSX.Element;
89
+
90
+ declare function TopicManager(): react_jsx_runtime.JSX.Element;
91
+
92
+ declare function CategoryManager(): react_jsx_runtime.JSX.Element;
93
+
94
+ declare function GradeLevelManager(): react_jsx_runtime.JSX.Element;
95
+
96
+ declare function BloomLevelManager(): react_jsx_runtime.JSX.Element;
97
+
98
+ declare function QuestionTypeManager(): react_jsx_runtime.JSX.Element;
99
+
100
+ declare function LearningObjectiveManager(): react_jsx_runtime.JSX.Element;
101
+
102
+ declare function ContextManager(): react_jsx_runtime.JSX.Element;
103
+
104
+ declare function ApproachManager(): react_jsx_runtime.JSX.Element;
105
+
106
+ declare const Toast$1: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
107
+ variant?: "default" | "destructive" | null | undefined;
108
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
109
+ declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
110
+ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast$1>;
111
+ type ToastActionElement = React.ReactElement<typeof ToastAction>;
112
+
113
+ type ToasterToast = ToastProps & {
114
+ id: string;
115
+ title?: React.ReactNode;
116
+ description?: React.ReactNode;
117
+ action?: ToastActionElement;
118
+ };
119
+ type Toast = Omit<ToasterToast, "id">;
120
+ declare function toast({ ...props }: Toast): {
121
+ id: string;
122
+ dismiss: () => void;
123
+ update: (props: ToasterToast) => void;
124
+ };
125
+ declare function useToast(): {
126
+ toast: typeof toast;
127
+ dismiss: (toastId?: string) => void;
128
+ toasts: ToasterToast[];
129
+ };
130
+
131
+ declare function Toaster(): react_jsx_runtime.JSX.Element;
132
+
133
+ export { AIQuestionGeneratorModal as A, BloomLevelManager as B, CategoryManager as C, EditQuestionModal as E, GradeLevelManager as G, ImportQuestionsModal as I, LearningObjectiveManager as L, MetadataTabs as M, QuizAuthoringTool as Q, SCORMExportModal as S, TopicManager as T, AIFullQuizGeneratorModal as a, APIKeyManagerModal as b, QuestionList as c, QuestionFilters as d, QuestionFormDialog as e, SubjectManager as f, QuestionTypeManager as g, ContextManager as h, ApproachManager as i, Toaster as j, toast as t, useToast as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thanh01.pmt/interactive-quiz-kit",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "A comprehensive library for creating, managing, and playing interactive quizzes, with AI generation and SCORM support.",
5
5
  "keywords": [
6
6
  "react",
@@ -72,10 +72,10 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@genkit-ai/googleai": "^1.0.0",
75
- "genkit": "^1.0.0",
76
75
  "@google/genai": "^0.14.0",
77
76
  "class-variance-authority": "^0.7.0",
78
77
  "clsx": "^2.1.1",
78
+ "genkit": "^1.0.0",
79
79
  "jszip": "^3.10.1",
80
80
  "path-browserify": "^1.0.1",
81
81
  "tailwind-merge": "^2.3.0",
@@ -90,15 +90,24 @@
90
90
  "@dnd-kit/utilities": ">=3.2.0",
91
91
  "@radix-ui/react-accordion": ">=1.1.0",
92
92
  "@radix-ui/react-alert-dialog": ">=1.0.0",
93
+ "@radix-ui/react-avatar": ">=1.1.0",
93
94
  "@radix-ui/react-checkbox": ">=1.0.0",
94
95
  "@radix-ui/react-dialog": ">=1.0.0",
96
+ "@radix-ui/react-dropdown-menu": ">=2.1.0",
95
97
  "@radix-ui/react-label": ">=2.0.0",
98
+ "@radix-ui/react-menubar": ">=1.1.0",
99
+ "@radix-ui/react-popover": ">=1.1.0",
96
100
  "@radix-ui/react-progress": ">=1.0.0",
97
101
  "@radix-ui/react-radio-group": ">=1.1.0",
98
102
  "@radix-ui/react-scroll-area": ">=1.0.0",
99
103
  "@radix-ui/react-select": ">=2.0.0",
104
+ "@radix-ui/react-separator": ">=1.1.0",
105
+ "@radix-ui/react-slider": ">=1.2.0",
100
106
  "@radix-ui/react-slot": ">=1.0.0",
107
+ "@radix-ui/react-switch": ">=1.1.0",
108
+ "@radix-ui/react-tabs": ">=1.1.0",
101
109
  "@radix-ui/react-toast": ">=1.1.0",
110
+ "@radix-ui/react-tooltip": ">=1.2.7",
102
111
  "@uiw/react-codemirror": ">=4.21.0",
103
112
  "date-fns": ">=3.0.0",
104
113
  "html-to-image": ">=1.11.0",
@@ -113,15 +122,6 @@
113
122
  "react-i18next": ">=14.0.0",
114
123
  "react-markdown": ">=9.0.0",
115
124
  "react-tooltip": ">=5.26.0",
116
- "@radix-ui/react-tooltip": ">=1.2.7",
117
- "@radix-ui/react-tabs": ">=1.1.0",
118
- "@radix-ui/react-switch": ">=1.1.0",
119
- "@radix-ui/react-popover": ">=1.1.0",
120
- "@radix-ui/react-menubar": ">=1.1.0",
121
- "@radix-ui/react-separator": ">=1.1.0",
122
- "@radix-ui/react-dropdown-menu": ">=2.1.0",
123
- "@radix-ui/react-avatar": ">=1.1.0",
124
- "@radix-ui/react-slider": ">=1.2.0",
125
125
  "recharts": ">=2.12.0",
126
126
  "rehype-highlight": ">=7.0.0",
127
127
  "rehype-katex": ">=7.0.0",
@@ -139,8 +139,10 @@
139
139
  "devDependencies": {
140
140
  "@types/node": "^20",
141
141
  "@types/react": "^18",
142
+ "@types/react-calendar-heatmap": "^1.9.0",
142
143
  "@types/react-dom": "^18",
143
144
  "autoprefixer": "^10.4.21",
145
+ "dts-bundle-generator": "^9.5.1",
144
146
  "eslint": "^8.57.0",
145
147
  "eslint-config-next": "14.2.3",
146
148
  "genkit-cli": "^1.8.0",