@edpire/sdk 0.9.2 → 0.9.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/CHANGELOG.md +27 -0
- package/README.md +2 -2
- package/dist/client.d.mts +6 -1
- package/dist/core.d.mts +8 -1
- package/dist/core.mjs +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.mjs +7 -7
- package/dist/react.d.mts +8 -1
- package/dist/react.mjs +8 -8
- package/dist/umd/index.global.js +148 -148
- package/package.json +2 -2
package/dist/react.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { RuntimeAnswer, AssessmentAnswers, QuestionRuntimeProps, AssessmentContent } from '@youssefalmia/edpire-runtime';
|
|
3
3
|
export { RuntimeAnswer } from '@youssefalmia/edpire-runtime';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { RichContent } from '@youssefalmia/edpire-schema/authoring';
|
|
5
|
+
import { RichContent, ContentAST } from '@youssefalmia/edpire-schema/authoring';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* EdpireQuestion — public React component for rendering a single question.
|
|
@@ -135,6 +135,8 @@ interface NodeFeedback {
|
|
|
135
135
|
interface QuestionFeedback {
|
|
136
136
|
questionId: string;
|
|
137
137
|
nodeResults: NodeFeedback[];
|
|
138
|
+
/** The teacher's explanation of the question, drawn under it once submitted. */
|
|
139
|
+
explanation?: ContentAST;
|
|
138
140
|
}
|
|
139
141
|
interface ExerciseFeedbackData {
|
|
140
142
|
exerciseId: string;
|
|
@@ -234,6 +236,11 @@ interface EmbedResult {
|
|
|
234
236
|
exercise_id: string;
|
|
235
237
|
questions: Array<{
|
|
236
238
|
question_id: string;
|
|
239
|
+
/**
|
|
240
|
+
* The teacher's explanation of the question, as content. Absent when
|
|
241
|
+
* there is none, or when the teacher chose not to show the answers.
|
|
242
|
+
*/
|
|
243
|
+
explanation?: ContentAST;
|
|
237
244
|
node_results: Array<{
|
|
238
245
|
node_id: string;
|
|
239
246
|
status: NodeFeedbackStatus;
|