cloudlab-ui 0.0.12 → 0.0.13

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +3 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -196,6 +196,7 @@ export interface QuestionAnswerProps {
196
196
 
197
197
  export interface QuestionCompletionProps {
198
198
  scenario?: Scenario;
199
+ elementCheckbox?: React.ReactNode;
199
200
  content?: string | CompletionQuestionData | BaseQuestionJson;
200
201
  index?: number;
201
202
  elements?: React.ReactNode;
@@ -206,7 +207,7 @@ export interface QuestionCompletionProps {
206
207
  requestId?: string;
207
208
  onAnswer?: (answer: string) => void;
208
209
  onScore?: (score: number, isCorrect: boolean) => void;
209
- returnContent?: (content: string) => void;
210
+ returnContent?: (content: CompletionQuestionData) => void;
210
211
  }
211
212
 
212
213
  export interface QuestionCcmProps {
@@ -252,7 +253,7 @@ export interface UseRadioQuestionReturn {
252
253
  ask: () => void;
253
254
  updateScore: (score: number | '') => void;
254
255
  value: string;
255
- onChange: (e: any) => void;
256
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
256
257
  submitted: boolean;
257
258
  analysisSentence: string;
258
259
  tipType: 'correct' | 'incorrect' | 'warning' | 'reanswerIncorrect' | '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudlab-ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"