@lessonkit/react 1.4.0 → 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.
@@ -88,12 +88,16 @@ type AssessmentSequenceProps = AssessmentBehaviour & {
88
88
  children: React__default.ReactNode;
89
89
  /** Show one child assessment at a time (Question Set). */
90
90
  sequential?: boolean;
91
+ /** When sequential, require an answer on the active step before Next. Default true. */
92
+ requireAnswerBeforeNext?: boolean;
91
93
  blockId?: BlockId;
92
94
  };
93
95
  declare const AssessmentSequence: React__default.ForwardRefExoticComponent<AssessmentBehaviour & {
94
96
  children: React__default.ReactNode;
95
97
  /** Show one child assessment at a time (Question Set). */
96
98
  sequential?: boolean;
99
+ /** When sequential, require an answer on the active step before Next. Default true. */
100
+ requireAnswerBeforeNext?: boolean;
97
101
  blockId?: BlockId;
98
102
  } & React__default.RefAttributes<CompoundHandle>>;
99
103
 
@@ -408,4 +412,60 @@ declare const FindMultipleHotspots: React__default.ForwardRefExoticComponent<_le
408
412
  correctTargetIds: string[];
409
413
  } & React__default.RefAttributes<AssessmentHandle>>;
410
414
 
411
- export { Accordion, type AccordionProps, type AccordionSection, type ArithmeticProblem, ArithmeticQuiz, type ArithmeticQuizProps, AssessmentSequence, type AssessmentSequenceProps, type DialogCard, DialogCards, type DialogCardsProps, DragAndDrop, type DragAndDropProps, type DragItem, DragTheWords, type DragTheWordsProps, type DropTarget, 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 };
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 };
@@ -88,12 +88,16 @@ type AssessmentSequenceProps = AssessmentBehaviour & {
88
88
  children: React__default.ReactNode;
89
89
  /** Show one child assessment at a time (Question Set). */
90
90
  sequential?: boolean;
91
+ /** When sequential, require an answer on the active step before Next. Default true. */
92
+ requireAnswerBeforeNext?: boolean;
91
93
  blockId?: BlockId;
92
94
  };
93
95
  declare const AssessmentSequence: React__default.ForwardRefExoticComponent<AssessmentBehaviour & {
94
96
  children: React__default.ReactNode;
95
97
  /** Show one child assessment at a time (Question Set). */
96
98
  sequential?: boolean;
99
+ /** When sequential, require an answer on the active step before Next. Default true. */
100
+ requireAnswerBeforeNext?: boolean;
97
101
  blockId?: BlockId;
98
102
  } & React__default.RefAttributes<CompoundHandle>>;
99
103
 
@@ -408,4 +412,60 @@ declare const FindMultipleHotspots: React__default.ForwardRefExoticComponent<_le
408
412
  correctTargetIds: string[];
409
413
  } & React__default.RefAttributes<AssessmentHandle>>;
410
414
 
411
- export { Accordion, type AccordionProps, type AccordionSection, type ArithmeticProblem, ArithmeticQuiz, type ArithmeticQuizProps, AssessmentSequence, type AssessmentSequenceProps, type DialogCard, DialogCards, type DialogCardsProps, DragAndDrop, type DragAndDropProps, type DragItem, DragTheWords, type DragTheWordsProps, type DropTarget, 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 };
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 };
@@ -2,9 +2,14 @@ import {
2
2
  Accordion,
3
3
  ArithmeticQuiz,
4
4
  AssessmentSequence,
5
+ BranchChoice,
6
+ BranchNode,
7
+ BranchingScenario,
8
+ Chart,
5
9
  DialogCards,
6
10
  DragAndDrop,
7
11
  DragTheWords,
12
+ Embed,
8
13
  Essay,
9
14
  FillInTheBlanks,
10
15
  FindHotspot,
@@ -31,15 +36,20 @@ import {
31
36
  TimedCue,
32
37
  TrueFalse,
33
38
  Video
34
- } from "./chunk-4LQ4TTEE.js";
35
- import "./chunk-TDM3ARE7.js";
39
+ } from "./chunk-5P23C2W3.js";
40
+ import "./chunk-7TJQJFYR.js";
36
41
  export {
37
42
  Accordion,
38
43
  ArithmeticQuiz,
39
44
  AssessmentSequence,
45
+ BranchChoice,
46
+ BranchNode,
47
+ BranchingScenario,
48
+ Chart,
40
49
  DialogCards,
41
50
  DragAndDrop,
42
51
  DragTheWords,
52
+ Embed,
43
53
  Essay,
44
54
  FillInTheBlanks,
45
55
  FindHotspot,