@schoolio/player 1.4.0 → 1.4.2

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/index.d.mts CHANGED
@@ -107,6 +107,7 @@ interface AttemptViewerProps {
107
107
  onError?: (error: Error) => void;
108
108
  className?: string;
109
109
  showExplanations?: boolean;
110
+ showConversation?: boolean;
110
111
  title?: string;
111
112
  }
112
113
  type SkipReason = "question_issue" | "dont_know";
@@ -165,7 +166,7 @@ interface QuestionContextForChat {
165
166
 
166
167
  declare function QuizPlayer({ quizId, lessonId, assignLessonId, courseId, childId, parentId, apiBaseUrl, authToken, onComplete, onError, onProgress, onGenerateMoreQuestions, className, forceNewAttempt, }: QuizPlayerProps): react_jsx_runtime.JSX.Element;
167
168
 
168
- declare function AttemptViewer({ attemptId, apiBaseUrl, authToken, onError, className, showExplanations, title, }: AttemptViewerProps): react_jsx_runtime.JSX.Element;
169
+ declare function AttemptViewer({ attemptId, apiBaseUrl, authToken, onError, className, showExplanations, showConversation, title, }: AttemptViewerProps): react_jsx_runtime.JSX.Element;
169
170
 
170
171
  interface TextToSpeechProps {
171
172
  text: string;
@@ -237,6 +238,11 @@ declare class QuizApiClient {
237
238
  chatId: string | null;
238
239
  messages: ChatMessage[];
239
240
  }>;
241
+ getChatsByAttempt(attemptId: string): Promise<Record<string, {
242
+ chatId: string;
243
+ messages: ChatMessage[];
244
+ }>>;
245
+ getTextToSpeech(text: string, voice?: string): Promise<Blob>;
240
246
  }
241
247
 
242
248
  declare function checkAnswer(question: QuizQuestion, selectedAnswer: unknown): {
package/dist/index.d.ts CHANGED
@@ -107,6 +107,7 @@ interface AttemptViewerProps {
107
107
  onError?: (error: Error) => void;
108
108
  className?: string;
109
109
  showExplanations?: boolean;
110
+ showConversation?: boolean;
110
111
  title?: string;
111
112
  }
112
113
  type SkipReason = "question_issue" | "dont_know";
@@ -165,7 +166,7 @@ interface QuestionContextForChat {
165
166
 
166
167
  declare function QuizPlayer({ quizId, lessonId, assignLessonId, courseId, childId, parentId, apiBaseUrl, authToken, onComplete, onError, onProgress, onGenerateMoreQuestions, className, forceNewAttempt, }: QuizPlayerProps): react_jsx_runtime.JSX.Element;
167
168
 
168
- declare function AttemptViewer({ attemptId, apiBaseUrl, authToken, onError, className, showExplanations, title, }: AttemptViewerProps): react_jsx_runtime.JSX.Element;
169
+ declare function AttemptViewer({ attemptId, apiBaseUrl, authToken, onError, className, showExplanations, showConversation, title, }: AttemptViewerProps): react_jsx_runtime.JSX.Element;
169
170
 
170
171
  interface TextToSpeechProps {
171
172
  text: string;
@@ -237,6 +238,11 @@ declare class QuizApiClient {
237
238
  chatId: string | null;
238
239
  messages: ChatMessage[];
239
240
  }>;
241
+ getChatsByAttempt(attemptId: string): Promise<Record<string, {
242
+ chatId: string;
243
+ messages: ChatMessage[];
244
+ }>>;
245
+ getTextToSpeech(text: string, voice?: string): Promise<Blob>;
240
246
  }
241
247
 
242
248
  declare function checkAnswer(question: QuizQuestion, selectedAnswer: unknown): {