@thanh01.pmt/interactive-quiz-kit 1.0.51 → 1.0.52
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/authoring.cjs +388 -451
- package/dist/authoring.d.cts +1 -1
- package/dist/authoring.d.ts +1 -1
- package/dist/authoring.mjs +388 -451
- package/dist/react-ui.cjs +388 -451
- package/dist/react-ui.d.cts +1 -1
- package/dist/react-ui.d.ts +1 -1
- package/dist/react-ui.mjs +388 -451
- package/dist/{toaster-UW4hDEhn.d.cts → toaster-DjJYlnue.d.cts} +132 -9
- package/dist/{toaster-ehLC4yr7.d.ts → toaster-DrfjPdmG.d.ts} +132 -9
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { s as QuizConfig, g as QuizQuestion } from './quiz-config-o4j2dfsu.cjs';
|
|
4
|
-
import { QuestionInBank, QuestionFilters as QuestionFilters$1, Subject } from './index.cjs';
|
|
4
|
+
import { QuestionInBank, QuestionFilters as QuestionFilters$1, Subject, Topic, Category, GradeLevel, BloomLevelType, QuestionTypeType, LearningObjectiveMetadata, Context, Approach } from './index.cjs';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -116,21 +116,144 @@ interface SubjectManagerProps {
|
|
|
116
116
|
}
|
|
117
117
|
declare function SubjectManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: SubjectManagerProps): React__default.JSX.Element;
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
interface TopicManagerProps {
|
|
120
|
+
initialData?: Topic[];
|
|
121
|
+
subjects?: Subject[];
|
|
122
|
+
isLoading?: boolean;
|
|
123
|
+
onAdd?: (item: {
|
|
124
|
+
name: string;
|
|
125
|
+
code: string;
|
|
126
|
+
subjectCode: string;
|
|
127
|
+
}) => Promise<void>;
|
|
128
|
+
onUpdate?: (item: {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
code: string;
|
|
132
|
+
subjectCode: string;
|
|
133
|
+
}) => Promise<void>;
|
|
134
|
+
onDelete?: (item: Topic) => Promise<void>;
|
|
135
|
+
}
|
|
136
|
+
declare function TopicManager({ initialData, subjects: subjectsProp, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: TopicManagerProps): React__default.JSX.Element;
|
|
120
137
|
|
|
121
|
-
|
|
138
|
+
interface CategoryManagerProps {
|
|
139
|
+
initialData?: Category[];
|
|
140
|
+
isLoading?: boolean;
|
|
141
|
+
onAdd?: (item: {
|
|
142
|
+
name: string;
|
|
143
|
+
code: string;
|
|
144
|
+
description?: string;
|
|
145
|
+
}) => Promise<void>;
|
|
146
|
+
onUpdate?: (item: {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
code: string;
|
|
150
|
+
description?: string;
|
|
151
|
+
}) => Promise<void>;
|
|
152
|
+
onDelete?: (item: Category) => Promise<void>;
|
|
153
|
+
}
|
|
154
|
+
declare function CategoryManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: CategoryManagerProps): React__default.JSX.Element;
|
|
122
155
|
|
|
123
|
-
|
|
156
|
+
interface GradeLevelManagerProps {
|
|
157
|
+
initialData?: GradeLevel[];
|
|
158
|
+
isLoading?: boolean;
|
|
159
|
+
onAdd?: (item: {
|
|
160
|
+
name: string;
|
|
161
|
+
code: string;
|
|
162
|
+
}) => Promise<void>;
|
|
163
|
+
onUpdate?: (item: {
|
|
164
|
+
id: string;
|
|
165
|
+
name: string;
|
|
166
|
+
code: string;
|
|
167
|
+
}) => Promise<void>;
|
|
168
|
+
onDelete?: (item: GradeLevel) => Promise<void>;
|
|
169
|
+
}
|
|
170
|
+
declare function GradeLevelManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: GradeLevelManagerProps): React__default.JSX.Element;
|
|
124
171
|
|
|
125
|
-
|
|
172
|
+
interface BloomLevelManagerProps {
|
|
173
|
+
initialData?: BloomLevelType[];
|
|
174
|
+
isLoading?: boolean;
|
|
175
|
+
onAdd?: (item: {
|
|
176
|
+
name: string;
|
|
177
|
+
code: string;
|
|
178
|
+
description?: string;
|
|
179
|
+
}) => Promise<void>;
|
|
180
|
+
onUpdate?: (item: {
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
code: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
}) => Promise<void>;
|
|
186
|
+
onDelete?: (item: BloomLevelType) => Promise<void>;
|
|
187
|
+
}
|
|
188
|
+
declare function BloomLevelManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: BloomLevelManagerProps): React__default.JSX.Element;
|
|
126
189
|
|
|
127
|
-
|
|
190
|
+
interface QuestionTypeManagerProps {
|
|
191
|
+
initialData?: QuestionTypeType[];
|
|
192
|
+
isLoading?: boolean;
|
|
193
|
+
onAdd?: (item: {
|
|
194
|
+
name: string;
|
|
195
|
+
code: string;
|
|
196
|
+
description?: string;
|
|
197
|
+
}) => Promise<void>;
|
|
198
|
+
onUpdate?: (item: {
|
|
199
|
+
id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
code: string;
|
|
202
|
+
description?: string;
|
|
203
|
+
}) => Promise<void>;
|
|
204
|
+
onDelete?: (item: QuestionTypeType) => Promise<void>;
|
|
205
|
+
}
|
|
206
|
+
declare function QuestionTypeManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: QuestionTypeManagerProps): React__default.JSX.Element;
|
|
128
207
|
|
|
129
|
-
|
|
208
|
+
interface LearningObjectiveManagerProps {
|
|
209
|
+
initialData?: LearningObjectiveMetadata[];
|
|
210
|
+
subjects?: Subject[];
|
|
211
|
+
isLoading?: boolean;
|
|
212
|
+
onAdd?: (item: {
|
|
213
|
+
name: string;
|
|
214
|
+
code: string;
|
|
215
|
+
subjectCode?: string;
|
|
216
|
+
description?: string;
|
|
217
|
+
}) => Promise<void>;
|
|
218
|
+
onUpdate?: (item: {
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
code: string;
|
|
222
|
+
subjectCode?: string;
|
|
223
|
+
description?: string;
|
|
224
|
+
}) => Promise<void>;
|
|
225
|
+
onDelete?: (item: LearningObjectiveMetadata) => Promise<void>;
|
|
226
|
+
}
|
|
227
|
+
declare function LearningObjectiveManager({ initialData, subjects: subjectsProp, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: LearningObjectiveManagerProps): React__default.JSX.Element;
|
|
130
228
|
|
|
131
|
-
|
|
229
|
+
interface ContextManagerProps {
|
|
230
|
+
initialData?: Context[];
|
|
231
|
+
isLoading?: boolean;
|
|
232
|
+
onAdd?: (item: {
|
|
233
|
+
name: string;
|
|
234
|
+
code: string;
|
|
235
|
+
description?: string;
|
|
236
|
+
}) => Promise<void>;
|
|
237
|
+
onUpdate?: (item: {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
code: string;
|
|
241
|
+
description?: string;
|
|
242
|
+
}) => Promise<void>;
|
|
243
|
+
onDelete?: (item: Context) => Promise<void>;
|
|
244
|
+
}
|
|
245
|
+
declare function ContextManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: ContextManagerProps): React__default.JSX.Element;
|
|
132
246
|
|
|
133
|
-
|
|
247
|
+
interface ApproachManagerProps {
|
|
248
|
+
initialData?: Approach[];
|
|
249
|
+
bloomLevels?: BloomLevelType[];
|
|
250
|
+
questionTypes?: QuestionTypeType[];
|
|
251
|
+
isLoading?: boolean;
|
|
252
|
+
onAdd?: (item: Omit<Approach, 'id' | 'difficulty'>) => Promise<void>;
|
|
253
|
+
onUpdate?: (item: Approach) => Promise<void>;
|
|
254
|
+
onDelete?: (item: Approach) => Promise<void>;
|
|
255
|
+
}
|
|
256
|
+
declare function ApproachManager({ initialData, bloomLevels: bloomLevelsProp, questionTypes: questionTypesProp, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: ApproachManagerProps): React__default.JSX.Element;
|
|
134
257
|
|
|
135
258
|
declare const Toast$1: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
136
259
|
variant?: "default" | "destructive" | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { s as QuizConfig, g as QuizQuestion } from './quiz-config-o4j2dfsu.js';
|
|
4
|
-
import { QuestionInBank, QuestionFilters as QuestionFilters$1, Subject } from './index.js';
|
|
4
|
+
import { QuestionInBank, QuestionFilters as QuestionFilters$1, Subject, Topic, Category, GradeLevel, BloomLevelType, QuestionTypeType, LearningObjectiveMetadata, Context, Approach } from './index.js';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -116,21 +116,144 @@ interface SubjectManagerProps {
|
|
|
116
116
|
}
|
|
117
117
|
declare function SubjectManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: SubjectManagerProps): React__default.JSX.Element;
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
interface TopicManagerProps {
|
|
120
|
+
initialData?: Topic[];
|
|
121
|
+
subjects?: Subject[];
|
|
122
|
+
isLoading?: boolean;
|
|
123
|
+
onAdd?: (item: {
|
|
124
|
+
name: string;
|
|
125
|
+
code: string;
|
|
126
|
+
subjectCode: string;
|
|
127
|
+
}) => Promise<void>;
|
|
128
|
+
onUpdate?: (item: {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
code: string;
|
|
132
|
+
subjectCode: string;
|
|
133
|
+
}) => Promise<void>;
|
|
134
|
+
onDelete?: (item: Topic) => Promise<void>;
|
|
135
|
+
}
|
|
136
|
+
declare function TopicManager({ initialData, subjects: subjectsProp, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: TopicManagerProps): React__default.JSX.Element;
|
|
120
137
|
|
|
121
|
-
|
|
138
|
+
interface CategoryManagerProps {
|
|
139
|
+
initialData?: Category[];
|
|
140
|
+
isLoading?: boolean;
|
|
141
|
+
onAdd?: (item: {
|
|
142
|
+
name: string;
|
|
143
|
+
code: string;
|
|
144
|
+
description?: string;
|
|
145
|
+
}) => Promise<void>;
|
|
146
|
+
onUpdate?: (item: {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
code: string;
|
|
150
|
+
description?: string;
|
|
151
|
+
}) => Promise<void>;
|
|
152
|
+
onDelete?: (item: Category) => Promise<void>;
|
|
153
|
+
}
|
|
154
|
+
declare function CategoryManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: CategoryManagerProps): React__default.JSX.Element;
|
|
122
155
|
|
|
123
|
-
|
|
156
|
+
interface GradeLevelManagerProps {
|
|
157
|
+
initialData?: GradeLevel[];
|
|
158
|
+
isLoading?: boolean;
|
|
159
|
+
onAdd?: (item: {
|
|
160
|
+
name: string;
|
|
161
|
+
code: string;
|
|
162
|
+
}) => Promise<void>;
|
|
163
|
+
onUpdate?: (item: {
|
|
164
|
+
id: string;
|
|
165
|
+
name: string;
|
|
166
|
+
code: string;
|
|
167
|
+
}) => Promise<void>;
|
|
168
|
+
onDelete?: (item: GradeLevel) => Promise<void>;
|
|
169
|
+
}
|
|
170
|
+
declare function GradeLevelManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: GradeLevelManagerProps): React__default.JSX.Element;
|
|
124
171
|
|
|
125
|
-
|
|
172
|
+
interface BloomLevelManagerProps {
|
|
173
|
+
initialData?: BloomLevelType[];
|
|
174
|
+
isLoading?: boolean;
|
|
175
|
+
onAdd?: (item: {
|
|
176
|
+
name: string;
|
|
177
|
+
code: string;
|
|
178
|
+
description?: string;
|
|
179
|
+
}) => Promise<void>;
|
|
180
|
+
onUpdate?: (item: {
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
code: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
}) => Promise<void>;
|
|
186
|
+
onDelete?: (item: BloomLevelType) => Promise<void>;
|
|
187
|
+
}
|
|
188
|
+
declare function BloomLevelManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: BloomLevelManagerProps): React__default.JSX.Element;
|
|
126
189
|
|
|
127
|
-
|
|
190
|
+
interface QuestionTypeManagerProps {
|
|
191
|
+
initialData?: QuestionTypeType[];
|
|
192
|
+
isLoading?: boolean;
|
|
193
|
+
onAdd?: (item: {
|
|
194
|
+
name: string;
|
|
195
|
+
code: string;
|
|
196
|
+
description?: string;
|
|
197
|
+
}) => Promise<void>;
|
|
198
|
+
onUpdate?: (item: {
|
|
199
|
+
id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
code: string;
|
|
202
|
+
description?: string;
|
|
203
|
+
}) => Promise<void>;
|
|
204
|
+
onDelete?: (item: QuestionTypeType) => Promise<void>;
|
|
205
|
+
}
|
|
206
|
+
declare function QuestionTypeManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: QuestionTypeManagerProps): React__default.JSX.Element;
|
|
128
207
|
|
|
129
|
-
|
|
208
|
+
interface LearningObjectiveManagerProps {
|
|
209
|
+
initialData?: LearningObjectiveMetadata[];
|
|
210
|
+
subjects?: Subject[];
|
|
211
|
+
isLoading?: boolean;
|
|
212
|
+
onAdd?: (item: {
|
|
213
|
+
name: string;
|
|
214
|
+
code: string;
|
|
215
|
+
subjectCode?: string;
|
|
216
|
+
description?: string;
|
|
217
|
+
}) => Promise<void>;
|
|
218
|
+
onUpdate?: (item: {
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
code: string;
|
|
222
|
+
subjectCode?: string;
|
|
223
|
+
description?: string;
|
|
224
|
+
}) => Promise<void>;
|
|
225
|
+
onDelete?: (item: LearningObjectiveMetadata) => Promise<void>;
|
|
226
|
+
}
|
|
227
|
+
declare function LearningObjectiveManager({ initialData, subjects: subjectsProp, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: LearningObjectiveManagerProps): React__default.JSX.Element;
|
|
130
228
|
|
|
131
|
-
|
|
229
|
+
interface ContextManagerProps {
|
|
230
|
+
initialData?: Context[];
|
|
231
|
+
isLoading?: boolean;
|
|
232
|
+
onAdd?: (item: {
|
|
233
|
+
name: string;
|
|
234
|
+
code: string;
|
|
235
|
+
description?: string;
|
|
236
|
+
}) => Promise<void>;
|
|
237
|
+
onUpdate?: (item: {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
code: string;
|
|
241
|
+
description?: string;
|
|
242
|
+
}) => Promise<void>;
|
|
243
|
+
onDelete?: (item: Context) => Promise<void>;
|
|
244
|
+
}
|
|
245
|
+
declare function ContextManager({ initialData, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: ContextManagerProps): React__default.JSX.Element;
|
|
132
246
|
|
|
133
|
-
|
|
247
|
+
interface ApproachManagerProps {
|
|
248
|
+
initialData?: Approach[];
|
|
249
|
+
bloomLevels?: BloomLevelType[];
|
|
250
|
+
questionTypes?: QuestionTypeType[];
|
|
251
|
+
isLoading?: boolean;
|
|
252
|
+
onAdd?: (item: Omit<Approach, 'id' | 'difficulty'>) => Promise<void>;
|
|
253
|
+
onUpdate?: (item: Approach) => Promise<void>;
|
|
254
|
+
onDelete?: (item: Approach) => Promise<void>;
|
|
255
|
+
}
|
|
256
|
+
declare function ApproachManager({ initialData, bloomLevels: bloomLevelsProp, questionTypes: questionTypesProp, isLoading: isLoadingProp, onAdd, onUpdate, onDelete }: ApproachManagerProps): React__default.JSX.Element;
|
|
134
257
|
|
|
135
258
|
declare const Toast$1: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
136
259
|
variant?: "default" | "destructive" | null | undefined;
|
package/package.json
CHANGED