@lessonkit/react 1.3.1 → 1.5.0
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/README.md +17 -9
- package/block-catalog.v3.json +1530 -219
- package/dist/AssessmentLessonGuard-BzNPbjaV.d.cts +21 -0
- package/dist/AssessmentLessonGuard-BzNPbjaV.d.ts +21 -0
- package/dist/blocks-entry.cjs +6085 -0
- package/dist/blocks-entry.d.cts +471 -0
- package/dist/blocks-entry.d.ts +471 -0
- package/dist/blocks-entry.js +79 -0
- package/dist/chunk-5P23C2W3.js +5535 -0
- package/dist/chunk-7TJQJFYR.js +1982 -0
- package/dist/chunk-ELGQ4XI3.js +271 -0
- package/dist/index.cjs +4597 -740
- package/dist/index.d.cts +118 -282
- package/dist/index.d.ts +118 -282
- package/dist/index.js +550 -4292
- package/dist/testing.cjs +576 -0
- package/dist/testing.d.cts +16 -0
- package/dist/testing.d.ts +16 -0
- package/dist/testing.js +18 -0
- package/package.json +41 -27
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import * as _lessonkit_core from '@lessonkit/core';
|
|
2
|
+
import { AssessmentHandle, AssessmentBaseProps, AssessmentBehaviour, BlockId, CompoundHandle } from '@lessonkit/core';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
|
|
6
|
+
type TrueFalseProps = AssessmentBaseProps & {
|
|
7
|
+
question: string;
|
|
8
|
+
answer: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const TrueFalse: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
11
|
+
checkId: _lessonkit_core.CheckId;
|
|
12
|
+
passingScore?: number;
|
|
13
|
+
} & {
|
|
14
|
+
question: string;
|
|
15
|
+
answer: boolean;
|
|
16
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
17
|
+
|
|
18
|
+
type MarkTheWordsProps = AssessmentBaseProps & {
|
|
19
|
+
/** Plain text; words listed in `correctWords` are selectable targets. */
|
|
20
|
+
text: string;
|
|
21
|
+
correctWords: string[];
|
|
22
|
+
};
|
|
23
|
+
declare const MarkTheWords: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
24
|
+
checkId: _lessonkit_core.CheckId;
|
|
25
|
+
passingScore?: number;
|
|
26
|
+
} & {
|
|
27
|
+
/** Plain text; words listed in `correctWords` are selectable targets. */
|
|
28
|
+
text: string;
|
|
29
|
+
correctWords: string[];
|
|
30
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
31
|
+
|
|
32
|
+
type FillInBlankSpec = {
|
|
33
|
+
id: string;
|
|
34
|
+
answer: string;
|
|
35
|
+
};
|
|
36
|
+
type FillInTheBlanksProps = AssessmentBaseProps & {
|
|
37
|
+
/** Text with `*` wrapping each blank answer, e.g. "The *capital* of France is *Paris*." */
|
|
38
|
+
template: string;
|
|
39
|
+
/** Optional explicit blanks (overrides parsing from template). */
|
|
40
|
+
blanks?: FillInBlankSpec[];
|
|
41
|
+
};
|
|
42
|
+
declare const FillInTheBlanks: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
43
|
+
checkId: _lessonkit_core.CheckId;
|
|
44
|
+
passingScore?: number;
|
|
45
|
+
} & {
|
|
46
|
+
/** Text with `*` wrapping each blank answer, e.g. "The *capital* of France is *Paris*." */
|
|
47
|
+
template: string;
|
|
48
|
+
/** Optional explicit blanks (overrides parsing from template). */
|
|
49
|
+
blanks?: FillInBlankSpec[];
|
|
50
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
51
|
+
|
|
52
|
+
type DragTheWordsProps = AssessmentBaseProps & {
|
|
53
|
+
/** Sentence with `*` around drop zones; `words` are draggable options. */
|
|
54
|
+
template: string;
|
|
55
|
+
words: string[];
|
|
56
|
+
};
|
|
57
|
+
declare const DragTheWords: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
58
|
+
checkId: _lessonkit_core.CheckId;
|
|
59
|
+
passingScore?: number;
|
|
60
|
+
} & {
|
|
61
|
+
/** Sentence with `*` around drop zones; `words` are draggable options. */
|
|
62
|
+
template: string;
|
|
63
|
+
words: string[];
|
|
64
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
65
|
+
|
|
66
|
+
type DragItem = {
|
|
67
|
+
id: string;
|
|
68
|
+
label: string;
|
|
69
|
+
};
|
|
70
|
+
type DropTarget = {
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
accepts: string;
|
|
74
|
+
};
|
|
75
|
+
type DragAndDropProps = AssessmentBaseProps & {
|
|
76
|
+
items: DragItem[];
|
|
77
|
+
targets: DropTarget[];
|
|
78
|
+
};
|
|
79
|
+
declare const DragAndDrop: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
80
|
+
checkId: _lessonkit_core.CheckId;
|
|
81
|
+
passingScore?: number;
|
|
82
|
+
} & {
|
|
83
|
+
items: DragItem[];
|
|
84
|
+
targets: DropTarget[];
|
|
85
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
86
|
+
|
|
87
|
+
type AssessmentSequenceProps = AssessmentBehaviour & {
|
|
88
|
+
children: React__default.ReactNode;
|
|
89
|
+
/** Show one child assessment at a time (Question Set). */
|
|
90
|
+
sequential?: boolean;
|
|
91
|
+
/** When sequential, require an answer on the active step before Next. Default true. */
|
|
92
|
+
requireAnswerBeforeNext?: boolean;
|
|
93
|
+
blockId?: BlockId;
|
|
94
|
+
};
|
|
95
|
+
declare const AssessmentSequence: React__default.ForwardRefExoticComponent<AssessmentBehaviour & {
|
|
96
|
+
children: React__default.ReactNode;
|
|
97
|
+
/** Show one child assessment at a time (Question Set). */
|
|
98
|
+
sequential?: boolean;
|
|
99
|
+
/** When sequential, require an answer on the active step before Next. Default true. */
|
|
100
|
+
requireAnswerBeforeNext?: boolean;
|
|
101
|
+
blockId?: BlockId;
|
|
102
|
+
} & React__default.RefAttributes<CompoundHandle>>;
|
|
103
|
+
|
|
104
|
+
type TextProps = {
|
|
105
|
+
blockId?: BlockId;
|
|
106
|
+
children: React__default.ReactNode;
|
|
107
|
+
};
|
|
108
|
+
declare function Text(props: TextProps): React__default.JSX.Element;
|
|
109
|
+
|
|
110
|
+
type HeadingProps = {
|
|
111
|
+
blockId?: BlockId;
|
|
112
|
+
level: 1 | 2 | 3;
|
|
113
|
+
children: React.ReactNode;
|
|
114
|
+
};
|
|
115
|
+
declare function Heading(props: HeadingProps): React$1.JSX.Element;
|
|
116
|
+
|
|
117
|
+
type ImageProps = {
|
|
118
|
+
blockId?: BlockId;
|
|
119
|
+
src: string;
|
|
120
|
+
alt: string;
|
|
121
|
+
};
|
|
122
|
+
declare function Image(props: ImageProps): React$1.JSX.Element;
|
|
123
|
+
|
|
124
|
+
type VideoProps = {
|
|
125
|
+
blockId: BlockId;
|
|
126
|
+
src: string;
|
|
127
|
+
poster?: string;
|
|
128
|
+
/** WebVTT captions track URL. */
|
|
129
|
+
captions?: string;
|
|
130
|
+
title?: string;
|
|
131
|
+
};
|
|
132
|
+
declare function Video(props: VideoProps): React__default.JSX.Element;
|
|
133
|
+
|
|
134
|
+
type PageProps = {
|
|
135
|
+
blockId: BlockId;
|
|
136
|
+
title?: string;
|
|
137
|
+
/** When true, page is used as a book chapter but hidden until navigated (InteractiveBook). */
|
|
138
|
+
hidden?: boolean;
|
|
139
|
+
/** Index within a compound parent (set by InteractiveBook). */
|
|
140
|
+
pageIndex?: number;
|
|
141
|
+
/** Compound parent type for telemetry (e.g. InteractiveBook). */
|
|
142
|
+
parentType?: string;
|
|
143
|
+
children: React__default.ReactNode;
|
|
144
|
+
};
|
|
145
|
+
declare function Page(props: PageProps): React__default.JSX.Element;
|
|
146
|
+
|
|
147
|
+
type InteractiveBookProps = {
|
|
148
|
+
blockId: BlockId;
|
|
149
|
+
title: string;
|
|
150
|
+
showBookScore?: boolean;
|
|
151
|
+
children: React__default.ReactElement<PageProps> | React__default.ReactElement<PageProps>[];
|
|
152
|
+
};
|
|
153
|
+
declare const InteractiveBook: React__default.ForwardRefExoticComponent<InteractiveBookProps & React__default.RefAttributes<CompoundHandle>>;
|
|
154
|
+
|
|
155
|
+
type SlideProps = {
|
|
156
|
+
blockId: BlockId;
|
|
157
|
+
title?: string;
|
|
158
|
+
/** When true, slide is used in a deck but hidden until navigated (SlideDeck). */
|
|
159
|
+
hidden?: boolean;
|
|
160
|
+
/** Index within a compound parent (set by SlideDeck). */
|
|
161
|
+
slideIndex?: number;
|
|
162
|
+
/** Compound parent type for telemetry (e.g. SlideDeck). */
|
|
163
|
+
parentType?: string;
|
|
164
|
+
children: React__default.ReactNode;
|
|
165
|
+
};
|
|
166
|
+
declare function Slide(props: SlideProps): React__default.JSX.Element;
|
|
167
|
+
|
|
168
|
+
type SlideDeckProps = {
|
|
169
|
+
blockId: BlockId;
|
|
170
|
+
title: string;
|
|
171
|
+
showDeckScore?: boolean;
|
|
172
|
+
children: React__default.ReactElement<SlideProps> | React__default.ReactElement<SlideProps>[];
|
|
173
|
+
};
|
|
174
|
+
declare const SlideDeck: React__default.ForwardRefExoticComponent<SlideDeckProps & React__default.RefAttributes<CompoundHandle>>;
|
|
175
|
+
|
|
176
|
+
type TimedCueProps = {
|
|
177
|
+
atSeconds: number;
|
|
178
|
+
label?: string;
|
|
179
|
+
mustComplete?: boolean;
|
|
180
|
+
/** Set by InteractiveVideo when cue is not active. */
|
|
181
|
+
hidden?: boolean;
|
|
182
|
+
cueIndex?: number;
|
|
183
|
+
parentType?: string;
|
|
184
|
+
children: React__default.ReactElement;
|
|
185
|
+
};
|
|
186
|
+
declare function TimedCue(props: TimedCueProps): React__default.JSX.Element;
|
|
187
|
+
|
|
188
|
+
type InteractiveVideoProps = {
|
|
189
|
+
blockId: BlockId;
|
|
190
|
+
title: string;
|
|
191
|
+
src: string;
|
|
192
|
+
poster?: string;
|
|
193
|
+
captions?: string;
|
|
194
|
+
showVideoScore?: boolean;
|
|
195
|
+
children: React__default.ReactElement<TimedCueProps> | React__default.ReactElement<TimedCueProps>[];
|
|
196
|
+
};
|
|
197
|
+
declare const InteractiveVideo: React__default.ForwardRefExoticComponent<InteractiveVideoProps & React__default.RefAttributes<CompoundHandle>>;
|
|
198
|
+
|
|
199
|
+
type SummaryProps = AssessmentBaseProps & {
|
|
200
|
+
statements: string[];
|
|
201
|
+
/** Ordered correct summary statements. */
|
|
202
|
+
correct: string[];
|
|
203
|
+
};
|
|
204
|
+
declare const Summary: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
205
|
+
checkId: _lessonkit_core.CheckId;
|
|
206
|
+
passingScore?: number;
|
|
207
|
+
} & {
|
|
208
|
+
statements: string[];
|
|
209
|
+
/** Ordered correct summary statements. */
|
|
210
|
+
correct: string[];
|
|
211
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
212
|
+
|
|
213
|
+
type ImagePair = {
|
|
214
|
+
id: string;
|
|
215
|
+
label: string;
|
|
216
|
+
imageSrc: string;
|
|
217
|
+
};
|
|
218
|
+
type ImagePairingProps = AssessmentBaseProps & {
|
|
219
|
+
pairs: ImagePair[];
|
|
220
|
+
};
|
|
221
|
+
declare const ImagePairing: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
222
|
+
checkId: _lessonkit_core.CheckId;
|
|
223
|
+
passingScore?: number;
|
|
224
|
+
} & {
|
|
225
|
+
pairs: ImagePair[];
|
|
226
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
227
|
+
|
|
228
|
+
type SequencingImage = {
|
|
229
|
+
id: string;
|
|
230
|
+
src: string;
|
|
231
|
+
alt: string;
|
|
232
|
+
};
|
|
233
|
+
type ImageSequencingProps = AssessmentBaseProps & {
|
|
234
|
+
images: SequencingImage[];
|
|
235
|
+
correctOrder: string[];
|
|
236
|
+
};
|
|
237
|
+
declare const ImageSequencing: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
238
|
+
checkId: _lessonkit_core.CheckId;
|
|
239
|
+
passingScore?: number;
|
|
240
|
+
} & {
|
|
241
|
+
images: SequencingImage[];
|
|
242
|
+
correctOrder: string[];
|
|
243
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
244
|
+
|
|
245
|
+
type ArithmeticProblem = {
|
|
246
|
+
question: string;
|
|
247
|
+
answer: string;
|
|
248
|
+
};
|
|
249
|
+
type ArithmeticQuizProps = AssessmentBaseProps & {
|
|
250
|
+
problems: ArithmeticProblem[];
|
|
251
|
+
timeLimitSeconds?: number;
|
|
252
|
+
};
|
|
253
|
+
declare const ArithmeticQuiz: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
254
|
+
checkId: _lessonkit_core.CheckId;
|
|
255
|
+
passingScore?: number;
|
|
256
|
+
} & {
|
|
257
|
+
problems: ArithmeticProblem[];
|
|
258
|
+
timeLimitSeconds?: number;
|
|
259
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
260
|
+
|
|
261
|
+
type EssayProps = AssessmentBaseProps & {
|
|
262
|
+
question: string;
|
|
263
|
+
minLength?: number;
|
|
264
|
+
};
|
|
265
|
+
declare const Essay: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
266
|
+
checkId: _lessonkit_core.CheckId;
|
|
267
|
+
passingScore?: number;
|
|
268
|
+
} & {
|
|
269
|
+
question: string;
|
|
270
|
+
minLength?: number;
|
|
271
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
272
|
+
|
|
273
|
+
type QuestionnaireField = {
|
|
274
|
+
id: string;
|
|
275
|
+
label: string;
|
|
276
|
+
type: "text" | "textarea";
|
|
277
|
+
};
|
|
278
|
+
type QuestionnaireProps = {
|
|
279
|
+
blockId: BlockId;
|
|
280
|
+
fields: QuestionnaireField[];
|
|
281
|
+
};
|
|
282
|
+
declare function Questionnaire(props: QuestionnaireProps): React__default.JSX.Element;
|
|
283
|
+
|
|
284
|
+
type MemoryPair = {
|
|
285
|
+
id: string;
|
|
286
|
+
label: string;
|
|
287
|
+
};
|
|
288
|
+
type MemoryGameProps = {
|
|
289
|
+
blockId: BlockId;
|
|
290
|
+
pairs: MemoryPair[];
|
|
291
|
+
/** Optional self-score mode (not LMS-scored). */
|
|
292
|
+
selfScore?: boolean;
|
|
293
|
+
};
|
|
294
|
+
declare function MemoryGame(props: MemoryGameProps): React__default.JSX.Element;
|
|
295
|
+
|
|
296
|
+
type InformationPanel = {
|
|
297
|
+
id: string;
|
|
298
|
+
title: string;
|
|
299
|
+
body: string;
|
|
300
|
+
};
|
|
301
|
+
type InformationWallProps = {
|
|
302
|
+
blockId: BlockId;
|
|
303
|
+
panels: InformationPanel[];
|
|
304
|
+
};
|
|
305
|
+
declare function InformationWall(props: InformationWallProps): React__default.JSX.Element;
|
|
306
|
+
|
|
307
|
+
type ParallaxSlide = {
|
|
308
|
+
title: string;
|
|
309
|
+
body: string;
|
|
310
|
+
imageSrc?: string;
|
|
311
|
+
};
|
|
312
|
+
type ParallaxSlideshowProps = {
|
|
313
|
+
blockId: BlockId;
|
|
314
|
+
slides: ParallaxSlide[];
|
|
315
|
+
};
|
|
316
|
+
declare function ParallaxSlideshow(props: ParallaxSlideshowProps): React__default.JSX.Element | null;
|
|
317
|
+
|
|
318
|
+
type AccordionSection = {
|
|
319
|
+
id: string;
|
|
320
|
+
title: string;
|
|
321
|
+
content: React__default.ReactNode;
|
|
322
|
+
};
|
|
323
|
+
type AccordionProps = {
|
|
324
|
+
blockId: BlockId;
|
|
325
|
+
sections: AccordionSection[];
|
|
326
|
+
};
|
|
327
|
+
declare function Accordion(props: AccordionProps): React__default.JSX.Element;
|
|
328
|
+
|
|
329
|
+
type DialogCard = {
|
|
330
|
+
front: string;
|
|
331
|
+
back: string;
|
|
332
|
+
};
|
|
333
|
+
type DialogCardsProps = {
|
|
334
|
+
blockId: BlockId;
|
|
335
|
+
cards: DialogCard[];
|
|
336
|
+
};
|
|
337
|
+
declare function DialogCards(props: DialogCardsProps): React__default.JSX.Element | null;
|
|
338
|
+
|
|
339
|
+
type Flashcard = {
|
|
340
|
+
front: string;
|
|
341
|
+
back: string;
|
|
342
|
+
};
|
|
343
|
+
type FlashcardsProps = {
|
|
344
|
+
blockId: BlockId;
|
|
345
|
+
cards: Flashcard[];
|
|
346
|
+
/** Optional self-score mode (not LMS-scored). */
|
|
347
|
+
selfScore?: boolean;
|
|
348
|
+
};
|
|
349
|
+
declare function Flashcards(props: FlashcardsProps): React__default.JSX.Element | null;
|
|
350
|
+
|
|
351
|
+
type HotspotSpec = {
|
|
352
|
+
id: string;
|
|
353
|
+
label: string;
|
|
354
|
+
x: number;
|
|
355
|
+
y: number;
|
|
356
|
+
content: React__default.ReactNode;
|
|
357
|
+
};
|
|
358
|
+
type ImageHotspotsProps = {
|
|
359
|
+
blockId: BlockId;
|
|
360
|
+
src: string;
|
|
361
|
+
alt: string;
|
|
362
|
+
hotspots: HotspotSpec[];
|
|
363
|
+
};
|
|
364
|
+
declare function ImageHotspots(props: ImageHotspotsProps): React__default.JSX.Element;
|
|
365
|
+
|
|
366
|
+
type ImageSlide = {
|
|
367
|
+
src: string;
|
|
368
|
+
alt: string;
|
|
369
|
+
caption?: string;
|
|
370
|
+
};
|
|
371
|
+
type ImageSliderProps = {
|
|
372
|
+
blockId: BlockId;
|
|
373
|
+
slides: ImageSlide[];
|
|
374
|
+
};
|
|
375
|
+
declare function ImageSlider(props: ImageSliderProps): React__default.JSX.Element | null;
|
|
376
|
+
|
|
377
|
+
type HotspotTarget = {
|
|
378
|
+
id: string;
|
|
379
|
+
label: string;
|
|
380
|
+
x: number;
|
|
381
|
+
y: number;
|
|
382
|
+
};
|
|
383
|
+
type FindHotspotProps = AssessmentBaseProps & {
|
|
384
|
+
src: string;
|
|
385
|
+
alt: string;
|
|
386
|
+
targets: HotspotTarget[];
|
|
387
|
+
correctTargetId: string;
|
|
388
|
+
};
|
|
389
|
+
declare const FindHotspot: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
390
|
+
checkId: _lessonkit_core.CheckId;
|
|
391
|
+
passingScore?: number;
|
|
392
|
+
} & {
|
|
393
|
+
src: string;
|
|
394
|
+
alt: string;
|
|
395
|
+
targets: HotspotTarget[];
|
|
396
|
+
correctTargetId: string;
|
|
397
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
398
|
+
|
|
399
|
+
type FindMultipleHotspotsProps = AssessmentBaseProps & {
|
|
400
|
+
src: string;
|
|
401
|
+
alt: string;
|
|
402
|
+
targets: HotspotTarget[];
|
|
403
|
+
correctTargetIds: string[];
|
|
404
|
+
};
|
|
405
|
+
declare const FindMultipleHotspots: React__default.ForwardRefExoticComponent<_lessonkit_core.AssessmentBehaviour & {
|
|
406
|
+
checkId: _lessonkit_core.CheckId;
|
|
407
|
+
passingScore?: number;
|
|
408
|
+
} & {
|
|
409
|
+
src: string;
|
|
410
|
+
alt: string;
|
|
411
|
+
targets: HotspotTarget[];
|
|
412
|
+
correctTargetIds: string[];
|
|
413
|
+
} & React__default.RefAttributes<AssessmentHandle>>;
|
|
414
|
+
|
|
415
|
+
type BranchNodeProps = {
|
|
416
|
+
nodeId: string;
|
|
417
|
+
title?: string;
|
|
418
|
+
/** When true, node is treated as an end state (no outgoing choices expected). */
|
|
419
|
+
terminal?: boolean;
|
|
420
|
+
/** When true, node is hidden until navigated (set by BranchingScenario). */
|
|
421
|
+
hidden?: boolean;
|
|
422
|
+
/** Index within BranchingScenario (set by parent). */
|
|
423
|
+
nodeIndex?: number;
|
|
424
|
+
children: React__default.ReactNode;
|
|
425
|
+
};
|
|
426
|
+
declare function BranchNode(props: BranchNodeProps): React__default.JSX.Element;
|
|
427
|
+
|
|
428
|
+
type BranchingScenarioProps = {
|
|
429
|
+
blockId: BlockId;
|
|
430
|
+
title: string;
|
|
431
|
+
startNodeId: string;
|
|
432
|
+
showPathScore?: boolean;
|
|
433
|
+
showPathRecap?: boolean;
|
|
434
|
+
enableSolutionsButton?: boolean;
|
|
435
|
+
children: React__default.ReactElement<BranchNodeProps> | React__default.ReactElement<BranchNodeProps>[];
|
|
436
|
+
};
|
|
437
|
+
declare const BranchingScenario: React__default.ForwardRefExoticComponent<BranchingScenarioProps & React__default.RefAttributes<CompoundHandle>>;
|
|
438
|
+
|
|
439
|
+
type BranchChoiceProps = {
|
|
440
|
+
label: string;
|
|
441
|
+
targetNodeId: string;
|
|
442
|
+
scoreWeight?: number;
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
/** Source node id (set by BranchNode). */
|
|
445
|
+
fromNodeId?: string;
|
|
446
|
+
};
|
|
447
|
+
declare function BranchChoice(props: BranchChoiceProps): React__default.JSX.Element;
|
|
448
|
+
|
|
449
|
+
type EmbedProps = {
|
|
450
|
+
blockId: BlockId;
|
|
451
|
+
src: string;
|
|
452
|
+
title: string;
|
|
453
|
+
/** Space-separated sandbox tokens beyond the default restrictive set. */
|
|
454
|
+
allow?: string;
|
|
455
|
+
aspectRatio?: string;
|
|
456
|
+
};
|
|
457
|
+
declare function Embed(props: EmbedProps): React__default.JSX.Element;
|
|
458
|
+
|
|
459
|
+
type ChartDatum = {
|
|
460
|
+
label: string;
|
|
461
|
+
value: number;
|
|
462
|
+
};
|
|
463
|
+
type ChartProps = {
|
|
464
|
+
blockId: BlockId;
|
|
465
|
+
type: "bar" | "pie";
|
|
466
|
+
data: ChartDatum[];
|
|
467
|
+
title?: string;
|
|
468
|
+
};
|
|
469
|
+
declare function Chart(props: ChartProps): React__default.JSX.Element;
|
|
470
|
+
|
|
471
|
+
export { Accordion, type AccordionProps, type AccordionSection, type ArithmeticProblem, ArithmeticQuiz, type ArithmeticQuizProps, AssessmentSequence, type AssessmentSequenceProps, BranchChoice, type BranchChoiceProps, BranchNode, type BranchNodeProps, BranchingScenario, type BranchingScenarioProps, Chart, type ChartDatum, type ChartProps, type DialogCard, DialogCards, type DialogCardsProps, DragAndDrop, type DragAndDropProps, type DragItem, DragTheWords, type DragTheWordsProps, type DropTarget, Embed, type EmbedProps, Essay, type EssayProps, type FillInBlankSpec, FillInTheBlanks, type FillInTheBlanksProps, FindHotspot, type FindHotspotProps, FindMultipleHotspots, type FindMultipleHotspotsProps, type Flashcard, Flashcards, type FlashcardsProps, Heading, type HeadingProps, type HotspotSpec, type HotspotTarget, Image, ImageHotspots, type ImageHotspotsProps, type ImagePair, ImagePairing, type ImagePairingProps, type ImageProps, ImageSequencing, type ImageSequencingProps, type ImageSlide, ImageSlider, type ImageSliderProps, type InformationPanel, InformationWall, type InformationWallProps, InteractiveBook, type InteractiveBookProps, InteractiveVideo, type InteractiveVideoProps, MarkTheWords, type MarkTheWordsProps, MemoryGame, type MemoryGameProps, type MemoryPair, Page, type PageProps, type ParallaxSlide, ParallaxSlideshow, type ParallaxSlideshowProps, Questionnaire, type QuestionnaireField, type QuestionnaireProps, type SequencingImage, Slide, SlideDeck, type SlideDeckProps, type SlideProps, Summary, type SummaryProps, Text, type TextProps, TimedCue, type TimedCueProps, TrueFalse, type TrueFalseProps, Video, type VideoProps };
|