@mathscan/math-exercise-engine 1.1.11 → 1.1.12
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.ts +2 -0
- package/dist/index.js +93 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -16
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +22 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -509,6 +509,28 @@ mark {
|
|
|
509
509
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
+
/* ========================================
|
|
513
|
+
REVEAL ANIMATION
|
|
514
|
+
Played once when revealAnswers() adds `.revealed` to the root.
|
|
515
|
+
Scoped so a normal correct-submit does NOT animate.
|
|
516
|
+
======================================== */
|
|
517
|
+
|
|
518
|
+
@keyframes reveal-pop {
|
|
519
|
+
0% { transform: scale(1); }
|
|
520
|
+
40% { transform: scale(1.18); }
|
|
521
|
+
100% { transform: scale(1); }
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.math-exercise-renderer.revealed .widget--correct {
|
|
525
|
+
animation: reveal-pop 0.4s ease-out;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
@media (prefers-reduced-motion: reduce) {
|
|
529
|
+
.math-exercise-renderer.revealed .widget--correct {
|
|
530
|
+
animation: none;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
512
534
|
/**
|
|
513
535
|
* Widget Styles
|
|
514
536
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathscan/math-exercise-engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "A DSL parser and validator for math exercises - transforms text-based exercise definitions into structured AST and JSON",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|