@schoolio/player 1.4.6 → 1.4.8
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +322 -170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +322 -170
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -84,6 +84,8 @@ interface QuizPlayerProps {
|
|
|
84
84
|
styles?: QuizPlayerStyles;
|
|
85
85
|
forceNewAttempt?: boolean;
|
|
86
86
|
hideScore?: boolean;
|
|
87
|
+
completionVideoUrl?: string;
|
|
88
|
+
perfectScoreVideoUrl?: string;
|
|
87
89
|
}
|
|
88
90
|
interface QuizResult {
|
|
89
91
|
attemptId: string;
|
|
@@ -169,7 +171,7 @@ interface QuestionContextForChat {
|
|
|
169
171
|
explanation?: string;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
|
-
declare function QuizPlayer({ quizId, lessonId, assignLessonId, courseId, childId, parentId, apiBaseUrl, authToken, onComplete, onError, onProgress, onGenerateMoreQuestions, className, forceNewAttempt, hideScore, }: QuizPlayerProps): react_jsx_runtime.JSX.Element;
|
|
174
|
+
declare function QuizPlayer({ quizId, lessonId, assignLessonId, courseId, childId, parentId, apiBaseUrl, authToken, onComplete, onError, onProgress, onGenerateMoreQuestions, className, forceNewAttempt, hideScore, completionVideoUrl, perfectScoreVideoUrl, }: QuizPlayerProps): react_jsx_runtime.JSX.Element;
|
|
173
175
|
|
|
174
176
|
declare function AttemptViewer({ attemptId, apiBaseUrl, authToken, onError, className, showExplanations, showConversation, title, }: AttemptViewerProps): react_jsx_runtime.JSX.Element;
|
|
175
177
|
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ interface QuizPlayerProps {
|
|
|
84
84
|
styles?: QuizPlayerStyles;
|
|
85
85
|
forceNewAttempt?: boolean;
|
|
86
86
|
hideScore?: boolean;
|
|
87
|
+
completionVideoUrl?: string;
|
|
88
|
+
perfectScoreVideoUrl?: string;
|
|
87
89
|
}
|
|
88
90
|
interface QuizResult {
|
|
89
91
|
attemptId: string;
|
|
@@ -169,7 +171,7 @@ interface QuestionContextForChat {
|
|
|
169
171
|
explanation?: string;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
|
-
declare function QuizPlayer({ quizId, lessonId, assignLessonId, courseId, childId, parentId, apiBaseUrl, authToken, onComplete, onError, onProgress, onGenerateMoreQuestions, className, forceNewAttempt, hideScore, }: QuizPlayerProps): react_jsx_runtime.JSX.Element;
|
|
174
|
+
declare function QuizPlayer({ quizId, lessonId, assignLessonId, courseId, childId, parentId, apiBaseUrl, authToken, onComplete, onError, onProgress, onGenerateMoreQuestions, className, forceNewAttempt, hideScore, completionVideoUrl, perfectScoreVideoUrl, }: QuizPlayerProps): react_jsx_runtime.JSX.Element;
|
|
173
175
|
|
|
174
176
|
declare function AttemptViewer({ attemptId, apiBaseUrl, authToken, onError, className, showExplanations, showConversation, title, }: AttemptViewerProps): react_jsx_runtime.JSX.Element;
|
|
175
177
|
|
package/dist/index.js
CHANGED
|
@@ -1903,7 +1903,9 @@ function QuizPlayer({
|
|
|
1903
1903
|
onGenerateMoreQuestions,
|
|
1904
1904
|
className,
|
|
1905
1905
|
forceNewAttempt = true,
|
|
1906
|
-
hideScore = false
|
|
1906
|
+
hideScore = false,
|
|
1907
|
+
completionVideoUrl,
|
|
1908
|
+
perfectScoreVideoUrl
|
|
1907
1909
|
}) {
|
|
1908
1910
|
const [quiz, setQuiz] = (0, import_react3.useState)(null);
|
|
1909
1911
|
const [attempt, setAttempt] = (0, import_react3.useState)(null);
|
|
@@ -2490,8 +2492,41 @@ function QuizPlayer({
|
|
|
2490
2492
|
}
|
|
2491
2493
|
}
|
|
2492
2494
|
` }),
|
|
2493
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style:
|
|
2494
|
-
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: {
|
|
2496
|
+
...defaultStyles.results,
|
|
2497
|
+
position: "relative",
|
|
2498
|
+
overflow: "hidden"
|
|
2499
|
+
}, children: [
|
|
2500
|
+
(() => {
|
|
2501
|
+
const videoUrl = percentage === 100 && perfectScoreVideoUrl ? perfectScoreVideoUrl : completionVideoUrl;
|
|
2502
|
+
if (videoUrl) {
|
|
2503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2504
|
+
"video",
|
|
2505
|
+
{
|
|
2506
|
+
autoPlay: true,
|
|
2507
|
+
playsInline: true,
|
|
2508
|
+
preload: "auto",
|
|
2509
|
+
onEnded: (e) => {
|
|
2510
|
+
e.currentTarget.currentTime = 0;
|
|
2511
|
+
e.currentTarget.pause();
|
|
2512
|
+
},
|
|
2513
|
+
style: {
|
|
2514
|
+
position: "absolute",
|
|
2515
|
+
top: 0,
|
|
2516
|
+
left: 0,
|
|
2517
|
+
width: "100%",
|
|
2518
|
+
height: "100%",
|
|
2519
|
+
objectFit: "cover",
|
|
2520
|
+
zIndex: 0
|
|
2521
|
+
},
|
|
2522
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("source", { src: videoUrl, type: "video/webm" })
|
|
2523
|
+
},
|
|
2524
|
+
videoUrl
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { ...defaultStyles.resultsBackground, background: theme.bgGradient } });
|
|
2528
|
+
})(),
|
|
2529
|
+
percentage >= 60 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { ...defaultStyles.confettiContainer, zIndex: 1 }, children: confettiPieces.map((piece) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2495
2530
|
"div",
|
|
2496
2531
|
{
|
|
2497
2532
|
style: {
|
|
@@ -2508,173 +2543,279 @@ function QuizPlayer({
|
|
|
2508
2543
|
},
|
|
2509
2544
|
piece.id
|
|
2510
2545
|
)) }),
|
|
2511
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
}
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2546
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2547
|
+
"div",
|
|
2548
|
+
{
|
|
2549
|
+
style: {
|
|
2550
|
+
position: "absolute",
|
|
2551
|
+
top: "16px",
|
|
2552
|
+
left: "50%",
|
|
2553
|
+
transform: "translateX(-50%)",
|
|
2554
|
+
zIndex: 2,
|
|
2555
|
+
display: "flex",
|
|
2556
|
+
justifyContent: "center"
|
|
2557
|
+
},
|
|
2558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2559
|
+
"div",
|
|
2560
|
+
{
|
|
2561
|
+
style: {
|
|
2562
|
+
background: "rgba(255, 255, 255, 0.5)",
|
|
2563
|
+
backdropFilter: "blur(8px)",
|
|
2564
|
+
borderRadius: "16px",
|
|
2565
|
+
padding: "12px 20px",
|
|
2566
|
+
display: "flex",
|
|
2567
|
+
flexDirection: "row",
|
|
2568
|
+
alignItems: "center",
|
|
2569
|
+
justifyContent: "center",
|
|
2570
|
+
gap: "16px",
|
|
2571
|
+
boxShadow: "0 8px 32px rgba(0, 0, 0, 0.2)",
|
|
2572
|
+
animation: "scoreSlideIn 0.5s ease-out forwards",
|
|
2573
|
+
whiteSpace: "nowrap"
|
|
2574
|
+
},
|
|
2575
|
+
children: hideScore ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
2576
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2577
|
+
"div",
|
|
2578
|
+
{
|
|
2579
|
+
style: {
|
|
2580
|
+
display: "flex",
|
|
2581
|
+
flexDirection: "column",
|
|
2582
|
+
alignItems: "center",
|
|
2583
|
+
gap: "8px"
|
|
2584
|
+
},
|
|
2585
|
+
children: [
|
|
2586
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2587
|
+
"div",
|
|
2588
|
+
{
|
|
2589
|
+
style: {
|
|
2590
|
+
fontSize: "24px",
|
|
2591
|
+
fontWeight: "700",
|
|
2592
|
+
color: "#22c55e"
|
|
2593
|
+
},
|
|
2594
|
+
children: "All Done!"
|
|
2595
|
+
}
|
|
2596
|
+
),
|
|
2597
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2598
|
+
"div",
|
|
2599
|
+
{
|
|
2600
|
+
style: {
|
|
2601
|
+
fontSize: "16px",
|
|
2602
|
+
color: "#6b7280"
|
|
2603
|
+
},
|
|
2604
|
+
children: "Quiz submitted successfully"
|
|
2605
|
+
}
|
|
2606
|
+
)
|
|
2607
|
+
]
|
|
2608
|
+
}
|
|
2609
|
+
),
|
|
2610
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2611
|
+
"div",
|
|
2612
|
+
{
|
|
2613
|
+
style: {
|
|
2614
|
+
width: "1px",
|
|
2615
|
+
height: "48px",
|
|
2616
|
+
background: "rgba(0, 0, 0, 0.1)"
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
),
|
|
2620
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2621
|
+
"div",
|
|
2622
|
+
{
|
|
2623
|
+
style: {
|
|
2624
|
+
display: "flex",
|
|
2625
|
+
flexDirection: "column",
|
|
2626
|
+
alignItems: "center"
|
|
2627
|
+
},
|
|
2628
|
+
children: [
|
|
2629
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2630
|
+
"div",
|
|
2631
|
+
{
|
|
2632
|
+
style: {
|
|
2633
|
+
fontSize: "14px",
|
|
2634
|
+
fontWeight: "500",
|
|
2635
|
+
color: "#6b7280",
|
|
2636
|
+
marginBottom: "4px"
|
|
2637
|
+
},
|
|
2638
|
+
children: "Time"
|
|
2639
|
+
}
|
|
2640
|
+
),
|
|
2641
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2642
|
+
"div",
|
|
2643
|
+
{
|
|
2644
|
+
style: {
|
|
2645
|
+
fontSize: "24px",
|
|
2646
|
+
fontWeight: "700",
|
|
2647
|
+
color: "#1f2937"
|
|
2648
|
+
},
|
|
2649
|
+
children: formatTime(result.timeSpentSeconds)
|
|
2650
|
+
}
|
|
2651
|
+
)
|
|
2652
|
+
]
|
|
2653
|
+
}
|
|
2654
|
+
)
|
|
2655
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
2656
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2657
|
+
"div",
|
|
2658
|
+
{
|
|
2659
|
+
style: {
|
|
2660
|
+
background: theme.badgeBg,
|
|
2661
|
+
padding: "8px 16px",
|
|
2662
|
+
borderRadius: "20px",
|
|
2663
|
+
animation: "badgePop 0.5s ease-out 0.3s forwards",
|
|
2664
|
+
opacity: 0,
|
|
2665
|
+
transform: "scale(0.8)"
|
|
2666
|
+
},
|
|
2667
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2668
|
+
"span",
|
|
2669
|
+
{
|
|
2670
|
+
style: {
|
|
2671
|
+
fontSize: "14px",
|
|
2672
|
+
fontWeight: "700",
|
|
2673
|
+
color: theme.badgeColor
|
|
2674
|
+
},
|
|
2675
|
+
children: theme.badge
|
|
2676
|
+
}
|
|
2677
|
+
)
|
|
2678
|
+
}
|
|
2679
|
+
),
|
|
2680
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2681
|
+
"div",
|
|
2682
|
+
{
|
|
2683
|
+
style: {
|
|
2684
|
+
width: "1px",
|
|
2685
|
+
height: "40px",
|
|
2686
|
+
background: "rgba(0, 0, 0, 0.1)"
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
),
|
|
2690
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2691
|
+
"div",
|
|
2692
|
+
{
|
|
2693
|
+
style: {
|
|
2694
|
+
display: "flex",
|
|
2695
|
+
flexDirection: "column",
|
|
2696
|
+
alignItems: "center"
|
|
2697
|
+
},
|
|
2698
|
+
children: [
|
|
2699
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2700
|
+
"div",
|
|
2701
|
+
{
|
|
2702
|
+
style: {
|
|
2703
|
+
fontSize: "12px",
|
|
2704
|
+
fontWeight: "500",
|
|
2705
|
+
color: "#6b7280",
|
|
2706
|
+
marginBottom: "2px"
|
|
2707
|
+
},
|
|
2708
|
+
children: "Correct Answers"
|
|
2709
|
+
}
|
|
2710
|
+
),
|
|
2711
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2712
|
+
"div",
|
|
2713
|
+
{
|
|
2714
|
+
style: {
|
|
2715
|
+
fontSize: "24px",
|
|
2716
|
+
fontWeight: "800",
|
|
2717
|
+
color: theme.color
|
|
2718
|
+
},
|
|
2719
|
+
children: [
|
|
2720
|
+
result.correctAnswers,
|
|
2721
|
+
" / ",
|
|
2722
|
+
result.totalQuestions
|
|
2723
|
+
]
|
|
2724
|
+
}
|
|
2725
|
+
)
|
|
2726
|
+
]
|
|
2727
|
+
}
|
|
2728
|
+
),
|
|
2729
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2730
|
+
"div",
|
|
2731
|
+
{
|
|
2732
|
+
style: {
|
|
2733
|
+
width: "1px",
|
|
2734
|
+
height: "40px",
|
|
2735
|
+
background: "rgba(0, 0, 0, 0.1)"
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
),
|
|
2739
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2740
|
+
"div",
|
|
2741
|
+
{
|
|
2742
|
+
style: {
|
|
2743
|
+
display: "flex",
|
|
2744
|
+
flexDirection: "column",
|
|
2745
|
+
alignItems: "center"
|
|
2746
|
+
},
|
|
2747
|
+
children: [
|
|
2748
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2749
|
+
"div",
|
|
2750
|
+
{
|
|
2751
|
+
style: {
|
|
2752
|
+
fontSize: "12px",
|
|
2753
|
+
fontWeight: "500",
|
|
2754
|
+
color: "#6b7280",
|
|
2755
|
+
marginBottom: "2px"
|
|
2756
|
+
},
|
|
2757
|
+
children: "Time"
|
|
2758
|
+
}
|
|
2759
|
+
),
|
|
2760
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2761
|
+
"div",
|
|
2762
|
+
{
|
|
2763
|
+
style: {
|
|
2764
|
+
fontSize: "20px",
|
|
2765
|
+
fontWeight: "700",
|
|
2766
|
+
color: "#1f2937"
|
|
2767
|
+
},
|
|
2768
|
+
children: formatTime(result.timeSpentSeconds)
|
|
2769
|
+
}
|
|
2770
|
+
)
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
),
|
|
2774
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2775
|
+
"div",
|
|
2776
|
+
{
|
|
2777
|
+
style: {
|
|
2778
|
+
width: "1px",
|
|
2779
|
+
height: "40px",
|
|
2780
|
+
background: "rgba(0, 0, 0, 0.1)"
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
),
|
|
2784
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2785
|
+
"button",
|
|
2786
|
+
{
|
|
2787
|
+
style: {
|
|
2788
|
+
padding: "10px 20px",
|
|
2789
|
+
fontSize: "14px",
|
|
2790
|
+
fontWeight: "600",
|
|
2791
|
+
color: "white",
|
|
2792
|
+
background: "#7c3aed",
|
|
2793
|
+
border: "none",
|
|
2794
|
+
borderRadius: "12px",
|
|
2795
|
+
cursor: "pointer",
|
|
2796
|
+
transition: "all 0.2s ease",
|
|
2797
|
+
boxShadow: "0 4px 12px rgba(124, 58, 237, 0.3)"
|
|
2798
|
+
},
|
|
2799
|
+
onClick: handleRetryQuiz,
|
|
2800
|
+
onMouseOver: (e) => {
|
|
2801
|
+
e.currentTarget.style.background = "#6d28d9";
|
|
2802
|
+
e.currentTarget.style.transform = "translateY(-2px)";
|
|
2803
|
+
e.currentTarget.style.boxShadow = "0 6px 16px rgba(124, 58, 237, 0.4)";
|
|
2804
|
+
},
|
|
2805
|
+
onMouseOut: (e) => {
|
|
2806
|
+
e.currentTarget.style.background = "#7c3aed";
|
|
2807
|
+
e.currentTarget.style.transform = "translateY(0)";
|
|
2808
|
+
e.currentTarget.style.boxShadow = "0 4px 12px rgba(124, 58, 237, 0.3)";
|
|
2809
|
+
},
|
|
2810
|
+
"data-testid": "button-retry-quiz",
|
|
2811
|
+
children: "Try Again"
|
|
2812
|
+
}
|
|
2813
|
+
)
|
|
2814
|
+
] })
|
|
2815
|
+
}
|
|
2816
|
+
)
|
|
2817
|
+
}
|
|
2818
|
+
)
|
|
2678
2819
|
] })
|
|
2679
2820
|
] });
|
|
2680
2821
|
}
|
|
@@ -2802,6 +2943,17 @@ function QuizPlayer({
|
|
|
2802
2943
|
] }),
|
|
2803
2944
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { ...defaultStyles.question, position: "relative", paddingBottom: "40px" }, children: [
|
|
2804
2945
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: defaultStyles.questionText, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TextToSpeech, { text: currentQuestion.question, inline: true, size: "md" }) }),
|
|
2946
|
+
currentQuestion.type === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: {
|
|
2947
|
+
marginTop: "8px",
|
|
2948
|
+
marginBottom: "12px",
|
|
2949
|
+
display: "inline-block",
|
|
2950
|
+
padding: "4px 10px",
|
|
2951
|
+
backgroundColor: "rgba(139, 92, 246, 0.1)",
|
|
2952
|
+
color: "#7c3aed",
|
|
2953
|
+
fontSize: "13px",
|
|
2954
|
+
fontStyle: "italic",
|
|
2955
|
+
borderRadius: "4px"
|
|
2956
|
+
}, children: "Select all that apply" }),
|
|
2805
2957
|
isExtraQuestion && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2806
2958
|
"button",
|
|
2807
2959
|
{
|