@pie-element/multiple-choice 13.4.0 → 13.4.2-beta.10

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/CHANGELOG.md CHANGED
@@ -3,92 +3,102 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [13.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.8...@pie-element/multiple-choice@13.4.0) (2026-08-21)
6
+ ## [13.4.2-beta.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.9...@pie-element/multiple-choice@13.4.2-beta.10) (2026-10-06)
7
7
 
8
- ### Bug Fixes
8
+ **Note:** Version bump only for package @pie-element/multiple-choice
9
9
 
10
- - move [@pie-lib](https://github.com/pie-lib) deps back to latest, off next prereleases PIE-927 ([a53e012](https://github.com/pie-framework/pie-elements/commit/a53e0127eb4ac95ece54e1e2bd669ae4974f4251))
11
- - read the prompt container by class, not by the id pie-lib removed PIE-927 ([aaaf6c2](https://github.com/pie-framework/pie-elements/commit/aaaf6c2f189de3b39f9de85969aeb2e50376c548))
12
- - **theming:** move the grey palette reads onto --pie-\* tokens PIE-856 ([d7d005b](https://github.com/pie-framework/pie-elements/commit/d7d005bf081843335b4b0377852f2ecd075cb62d)), closes [#000000](https://github.com/pie-framework/pie-elements/issues/000000) [#E0E1E6](https://github.com/pie-framework/pie-elements/issues/E0E1E6) [#646464](https://github.com/pie-framework/pie-elements/issues/646464) [#616161](https://github.com/pie-framework/pie-elements/issues/616161) [#E0E1E6](https://github.com/pie-framework/pie-elements/issues/E0E1E6) [#C0C3](https://github.com/pie-framework/pie-elements/issues/C0C3)
10
+ ## [13.4.2-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.8...@pie-element/multiple-choice@13.4.2-beta.9) (2026-10-05)
13
11
 
14
- ### Features
12
+ **Note:** Version bump only for package @pie-element/multiple-choice
15
13
 
16
- - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
14
+ ## [13.4.2-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.7...@pie-element/multiple-choice@13.4.2-beta.8) (2026-09-29)
17
15
 
18
- ## [13.3.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.7...@pie-element/multiple-choice@13.3.8) (2026-08-19)
16
+ **Note:** Version bump only for package @pie-element/multiple-choice
19
17
 
20
- ### Bug Fixes
18
+ ## [13.4.2-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.6...@pie-element/multiple-choice@13.4.2-beta.7) (2026-09-24)
21
19
 
22
- - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
20
+ **Note:** Version bump only for package @pie-element/multiple-choice
23
21
 
24
- ## [13.3.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.5...@pie-element/multiple-choice@13.3.7) (2026-08-13)
22
+ ## [13.4.2-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.5...@pie-element/multiple-choice@13.4.2-beta.6) (2026-09-24)
25
23
 
26
- ### Bug Fixes
24
+ **Note:** Version bump only for package @pie-element/multiple-choice
27
25
 
28
- - **multiple-choice, number-line:** add render math in configure PIE-763 ([b7dfd29](https://github.com/pie-framework/pie-elements/commit/b7dfd29e6d5f1981799f8cef96f6f73ae829951c))
29
- - **multiple-choice, number-line:** revert initial fix, avoid calling renderMath is not necessary PIE-763 ([d8f7078](https://github.com/pie-framework/pie-elements/commit/d8f70789a8ab88e65c8ee1f0235e3603065b2090))
26
+ ## [13.4.2-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.4...@pie-element/multiple-choice@13.4.2-beta.5) (2026-09-17)
30
27
 
31
- ## [13.3.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.4...@pie-element/multiple-choice@13.3.6) (2026-08-11)
28
+ **Note:** Version bump only for package @pie-element/multiple-choice
32
29
 
33
- ### Bug Fixes
30
+ ## [13.4.2-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.3...@pie-element/multiple-choice@13.4.2-beta.4) (2026-09-11)
34
31
 
35
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([feba612](https://github.com/pie-framework/pie-elements/commit/feba61239db62626c05fa8099d8adc373f968061))
36
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
32
+ **Note:** Version bump only for package @pie-element/multiple-choice
37
33
 
38
- ## [13.3.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.4...@pie-element/multiple-choice@13.3.5) (2026-07-31)
34
+ ## [13.4.2-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2-beta.2...@pie-element/multiple-choice@13.4.2-beta.3) (2026-09-04)
39
35
 
40
- ### Bug Fixes
36
+ **Note:** Version bump only for package @pie-element/multiple-choice
41
37
 
42
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([feba612](https://github.com/pie-framework/pie-elements/commit/feba61239db62626c05fa8099d8adc373f968061))
43
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
38
+ ## [13.4.2-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.7...@pie-element/multiple-choice@13.4.2-beta.2) (2026-08-26)
44
39
 
45
- ## [13.3.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.3...@pie-element/multiple-choice@13.3.4) (2026-07-08)
40
+ **Note:** Version bump only for package @pie-element/multiple-choice
46
41
 
47
- ### Bug Fixes
42
+ # [13.5.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.6...@pie-element/multiple-choice@13.5.0-beta.7) (2026-08-20)
48
43
 
49
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
44
+ **Note:** Version bump only for package @pie-element/multiple-choice
50
45
 
51
- ## [13.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.2...@pie-element/multiple-choice@13.3.3) (2026-07-02)
46
+ # [13.5.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.5...@pie-element/multiple-choice@13.5.0-beta.6) (2026-08-14)
52
47
 
53
- ### Bug Fixes
48
+ **Note:** Version bump only for package @pie-element/multiple-choice
54
49
 
55
- - bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
56
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
50
+ # [13.5.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.4...@pie-element/multiple-choice@13.5.0-beta.5) (2026-08-11)
57
51
 
58
- ## [13.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.1...@pie-element/multiple-choice@13.3.2) (2026-06-22)
52
+ **Note:** Version bump only for package @pie-element/multiple-choice
59
53
 
60
- ### Bug Fixes
54
+ # [13.5.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.3...@pie-element/multiple-choice@13.5.0-beta.4) (2026-08-11)
61
55
 
62
- - bump shared modules and libs PIE-674, PIE-662, PIE-705, PIE-674, PIE-963 ([78a3f64](https://github.com/pie-framework/pie-elements/commit/78a3f64652c9581c61bd4159f3210fc1e32d8bcf))
63
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
56
+ **Note:** Version bump only for package @pie-element/multiple-choice
64
57
 
65
- ## [13.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.0...@pie-element/multiple-choice@13.3.1) (2026-06-17)
58
+ # [13.5.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.2...@pie-element/multiple-choice@13.5.0-beta.3) (2026-08-11)
66
59
 
67
- ### Bug Fixes
60
+ **Note:** Version bump only for package @pie-element/multiple-choice
68
61
 
69
- - bump shared modules and libs PIE-661 PIE-664 PIE-683 PIE-666 PIE-656 PIE-657 PIE-658 PIE-659 PIE-670 ([ebd6be4](https://github.com/pie-framework/pie-elements/commit/ebd6be4fd48fca41ad4c4908f606b25334731aed))
62
+ # [13.5.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.1...@pie-element/multiple-choice@13.5.0-beta.2) (2026-08-11)
70
63
 
71
- # [13.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.2.2...@pie-element/multiple-choice@13.3.0) (2026-06-12)
64
+ **Note:** Version bump only for package @pie-element/multiple-choice
72
65
 
73
- ### Bug Fixes
66
+ # [13.5.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.5.0-beta.0...@pie-element/multiple-choice@13.5.0-beta.1) (2026-08-07)
74
67
 
75
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
76
- - surpress ripple anim that generated visible background PIE-104 ([5c653ca](https://github.com/pie-framework/pie-elements/commit/5c653ca9a2967b1283b59e7b8fdb387ac76b6fa2))
68
+ **Note:** Version bump only for package @pie-element/multiple-choice
77
69
 
78
- ### Features
70
+ # [13.5.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.0-beta.0...@pie-element/multiple-choice@13.5.0-beta.0) (2026-08-07)
79
71
 
80
- - **multiple-choice:** hover styles for checkboxes and radios PIE-558 ([c5c38e8](https://github.com/pie-framework/pie-elements/commit/c5c38e8377e6ec919d100c5457531233ca119fbd))
72
+ **Note:** Version bump only for package @pie-element/multiple-choice
73
+
74
+ # [13.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.0-beta.0...@pie-element/multiple-choice@13.4.0-beta.1) (2026-08-07)
75
+
76
+ **Note:** Version bump only for package @pie-element/multiple-choice
77
+
78
+ # [13.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.3.0-beta.0...@pie-element/multiple-choice@13.4.0-beta.0) (2026-08-07)
81
79
 
82
- ## [13.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.2.1...@pie-element/multiple-choice@13.2.2) (2026-06-04)
80
+ **Note:** Version bump only for package @pie-element/multiple-choice
81
+
82
+ # [13.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.2.0...@pie-element/multiple-choice@13.3.0-beta.0) (2026-08-07)
83
83
 
84
84
  ### Bug Fixes
85
85
 
86
+ - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
86
87
  - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
88
+ - bump shared modules and libs PIE-661 PIE-664 PIE-683 PIE-666 PIE-656 PIE-657 PIE-658 PIE-659 PIE-670 ([ebd6be4](https://github.com/pie-framework/pie-elements/commit/ebd6be4fd48fca41ad4c4908f606b25334731aed))
89
+ - bump shared modules and libs PIE-674, PIE-662, PIE-705, PIE-674, PIE-963 ([78a3f64](https://github.com/pie-framework/pie-elements/commit/78a3f64652c9581c61bd4159f3210fc1e32d8bcf))
90
+ - bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
91
+ - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
92
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
87
93
  - **multiple-choice:** change keyboard focus indicator PIE-104 ([cbb6308](https://github.com/pie-framework/pie-elements/commit/cbb6308c41137e1054a0bcb3179fe1c8fbdd4188))
94
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([feba612](https://github.com/pie-framework/pie-elements/commit/feba61239db62626c05fa8099d8adc373f968061))
95
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
96
+ - surpress ripple anim that generated visible background PIE-104 ([5c653ca](https://github.com/pie-framework/pie-elements/commit/5c653ca9a2967b1283b59e7b8fdb387ac76b6fa2))
97
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
88
98
 
89
- ## [13.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.2.0...@pie-element/multiple-choice@13.2.1) (2026-05-21)
99
+ ### Features
90
100
 
91
- **Note:** Version bump only for package @pie-element/multiple-choice
101
+ - **multiple-choice:** hover styles for checkboxes and radios PIE-558 ([c5c38e8](https://github.com/pie-framework/pie-elements/commit/c5c38e8377e6ec919d100c5457531233ca119fbd))
92
102
 
93
103
  # [13.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.2.0-next.1...@pie-element/multiple-choice@13.2.0) (2026-05-21)
94
104
 
@@ -3,75 +3,95 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [10.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.11...@pie-element/multiple-choice-configure@10.2.0) (2026-08-21)
6
+ # [10.4.0-beta.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.15...@pie-element/multiple-choice-configure@10.4.0-beta.16) (2026-10-06)
7
7
 
8
- ### Features
8
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
9
9
 
10
- - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
10
+ # [10.4.0-beta.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.14...@pie-element/multiple-choice-configure@10.4.0-beta.15) (2026-10-05)
11
11
 
12
- ## [10.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.10...@pie-element/multiple-choice-configure@10.1.11) (2026-08-19)
12
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
13
13
 
14
- ### Bug Fixes
14
+ # [10.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.13...@pie-element/multiple-choice-configure@10.4.0-beta.14) (2026-09-29)
15
15
 
16
- - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
16
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
17
17
 
18
- ## [10.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.8...@pie-element/multiple-choice-configure@10.1.10) (2026-08-13)
18
+ # [10.4.0-beta.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.12...@pie-element/multiple-choice-configure@10.4.0-beta.13) (2026-09-24)
19
19
 
20
- ### Bug Fixes
20
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
21
21
 
22
- - **multiple-choice, number-line:** add render math in configure PIE-763 ([b7dfd29](https://github.com/pie-framework/pie-elements/commit/b7dfd29e6d5f1981799f8cef96f6f73ae829951c))
23
- - **multiple-choice, number-line:** revert initial fix, avoid calling renderMath is not necessary PIE-763 ([d8f7078](https://github.com/pie-framework/pie-elements/commit/d8f70789a8ab88e65c8ee1f0235e3603065b2090))
22
+ # [10.4.0-beta.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.11...@pie-element/multiple-choice-configure@10.4.0-beta.12) (2026-09-24)
24
23
 
25
- ## [10.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.7...@pie-element/multiple-choice-configure@10.1.9) (2026-08-11)
24
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
25
+
26
+ # [10.4.0-beta.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.10...@pie-element/multiple-choice-configure@10.4.0-beta.11) (2026-09-17)
26
27
 
27
28
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
28
29
 
29
- ## [10.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.7...@pie-element/multiple-choice-configure@10.1.8) (2026-07-31)
30
+ # [10.4.0-beta.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.9...@pie-element/multiple-choice-configure@10.4.0-beta.10) (2026-09-11)
30
31
 
31
32
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
32
33
 
33
- ## [10.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.6...@pie-element/multiple-choice-configure@10.1.7) (2026-07-08)
34
+ # [10.4.0-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.8...@pie-element/multiple-choice-configure@10.4.0-beta.9) (2026-09-04)
34
35
 
35
- ### Bug Fixes
36
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
36
37
 
37
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
38
+ # [10.4.0-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.7...@pie-element/multiple-choice-configure@10.4.0-beta.8) (2026-08-26)
38
39
 
39
- ## [10.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.5...@pie-element/multiple-choice-configure@10.1.6) (2026-07-02)
40
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
40
41
 
41
- ### Bug Fixes
42
+ # [10.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.6...@pie-element/multiple-choice-configure@10.4.0-beta.7) (2026-08-20)
42
43
 
43
- - bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
44
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
44
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
45
45
 
46
- ## [10.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.4...@pie-element/multiple-choice-configure@10.1.5) (2026-06-22)
46
+ # [10.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.5...@pie-element/multiple-choice-configure@10.4.0-beta.6) (2026-08-14)
47
47
 
48
- ### Bug Fixes
48
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
49
49
 
50
- - bump shared modules and libs PIE-674, PIE-662, PIE-705, PIE-674, PIE-963 ([78a3f64](https://github.com/pie-framework/pie-elements/commit/78a3f64652c9581c61bd4159f3210fc1e32d8bcf))
51
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
50
+ # [10.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.4...@pie-element/multiple-choice-configure@10.4.0-beta.5) (2026-08-11)
52
51
 
53
- ## [10.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.3...@pie-element/multiple-choice-configure@10.1.4) (2026-06-17)
52
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
54
53
 
55
- ### Bug Fixes
54
+ # [10.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.3...@pie-element/multiple-choice-configure@10.4.0-beta.4) (2026-08-11)
56
55
 
57
- - bump shared modules and libs PIE-661 PIE-664 PIE-683 PIE-666 PIE-656 PIE-657 PIE-658 PIE-659 PIE-670 ([ebd6be4](https://github.com/pie-framework/pie-elements/commit/ebd6be4fd48fca41ad4c4908f606b25334731aed))
56
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
58
57
 
59
- ## [10.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.2...@pie-element/multiple-choice-configure@10.1.3) (2026-06-12)
58
+ # [10.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.2...@pie-element/multiple-choice-configure@10.4.0-beta.3) (2026-08-11)
60
59
 
61
- ### Bug Fixes
60
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
62
61
 
63
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
62
+ # [10.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.1...@pie-element/multiple-choice-configure@10.4.0-beta.2) (2026-08-11)
64
63
 
65
- ## [10.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.1...@pie-element/multiple-choice-configure@10.1.2) (2026-06-04)
64
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
66
65
 
67
- ### Bug Fixes
66
+ # [10.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.4.0-beta.0...@pie-element/multiple-choice-configure@10.4.0-beta.1) (2026-08-07)
68
67
 
69
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
68
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
69
+
70
+ # [10.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.3.0-beta.0...@pie-element/multiple-choice-configure@10.4.0-beta.0) (2026-08-07)
71
+
72
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
73
+
74
+ # [10.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.3.0-beta.0...@pie-element/multiple-choice-configure@10.3.0-beta.1) (2026-08-07)
75
+
76
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
70
77
 
71
- ## [10.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.0...@pie-element/multiple-choice-configure@10.1.1) (2026-05-21)
78
+ # [10.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.2.0-beta.0...@pie-element/multiple-choice-configure@10.3.0-beta.0) (2026-08-07)
72
79
 
73
80
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
74
81
 
82
+ # [10.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.0...@pie-element/multiple-choice-configure@10.2.0-beta.0) (2026-08-07)
83
+
84
+ ### Bug Fixes
85
+
86
+ - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
87
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
88
+ - bump shared modules and libs PIE-661 PIE-664 PIE-683 PIE-666 PIE-656 PIE-657 PIE-658 PIE-659 PIE-670 ([ebd6be4](https://github.com/pie-framework/pie-elements/commit/ebd6be4fd48fca41ad4c4908f606b25334731aed))
89
+ - bump shared modules and libs PIE-674, PIE-662, PIE-705, PIE-674, PIE-963 ([78a3f64](https://github.com/pie-framework/pie-elements/commit/78a3f64652c9581c61bd4159f3210fc1e32d8bcf))
90
+ - bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
91
+ - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
92
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
93
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
94
+
75
95
  # [10.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.1.0-next.1...@pie-element/multiple-choice-configure@10.1.0) (2026-05-21)
76
96
 
77
97
  ### Bug Fixes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice-configure",
3
- "version": "10.2.0",
3
+ "version": "10.4.0-beta.16",
4
4
  "private": true,
5
5
  "main": "lib/index.js",
6
6
  "module": "src/index.js",
@@ -10,9 +10,9 @@
10
10
  "@mui/icons-material": "^7.3.4",
11
11
  "@mui/material": "^7.3.4",
12
12
  "@pie-framework/pie-configure-events": "^1.3.0",
13
- "@pie-lib/config-ui": "13.0.16",
14
- "@pie-lib/editable-html-tip-tap": "2.1.14",
15
- "@pie-lib/render-ui": "7.0.0",
13
+ "@pie-lib/config-ui": "13.0.22-beta.4",
14
+ "@pie-lib/editable-html-tip-tap": "2.1.20-beta.4",
15
+ "@pie-lib/render-ui": "6.1.3",
16
16
  "debug": "^4.1.1",
17
17
  "lodash-es": "^4.17.23",
18
18
  "prop-types": "^15.8.1",
@@ -3,32 +3,89 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [8.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.3...@pie-element/multiple-choice-controller@8.1.5) (2026-08-13)
6
+ # [8.4.0-beta.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.15...@pie-element/multiple-choice-controller@8.4.0-beta.16) (2026-10-06)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/multiple-choice-controller
9
9
 
10
- ## [8.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.2...@pie-element/multiple-choice-controller@8.1.4) (2026-08-11)
10
+ # [8.4.0-beta.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.14...@pie-element/multiple-choice-controller@8.4.0-beta.15) (2026-10-05)
11
11
 
12
- ### Bug Fixes
12
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
13
13
 
14
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
14
+ # [8.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.13...@pie-element/multiple-choice-controller@8.4.0-beta.14) (2026-09-29)
15
15
 
16
- ## [8.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.2...@pie-element/multiple-choice-controller@8.1.3) (2026-07-31)
16
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
17
17
 
18
- ### Bug Fixes
18
+ # [8.4.0-beta.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.12...@pie-element/multiple-choice-controller@8.4.0-beta.13) (2026-09-24)
19
19
 
20
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
20
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
21
21
 
22
- ## [8.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.1...@pie-element/multiple-choice-controller@8.1.2) (2026-07-02)
22
+ # [8.4.0-beta.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.11...@pie-element/multiple-choice-controller@8.4.0-beta.12) (2026-09-24)
23
23
 
24
- ### Bug Fixes
24
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
25
25
 
26
- - bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
26
+ # [8.4.0-beta.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.10...@pie-element/multiple-choice-controller@8.4.0-beta.11) (2026-09-17)
27
+
28
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
29
+
30
+ # [8.4.0-beta.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.9...@pie-element/multiple-choice-controller@8.4.0-beta.10) (2026-09-11)
31
+
32
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
33
+
34
+ # [8.4.0-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.8...@pie-element/multiple-choice-controller@8.4.0-beta.9) (2026-09-04)
35
+
36
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
37
+
38
+ # [8.4.0-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.7...@pie-element/multiple-choice-controller@8.4.0-beta.8) (2026-08-26)
39
+
40
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
41
+
42
+ # [8.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.6...@pie-element/multiple-choice-controller@8.4.0-beta.7) (2026-08-20)
43
+
44
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
45
+
46
+ # [8.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.5...@pie-element/multiple-choice-controller@8.4.0-beta.6) (2026-08-14)
47
+
48
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
27
49
 
28
- ## [8.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.0...@pie-element/multiple-choice-controller@8.1.1) (2026-05-21)
50
+ # [8.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.4...@pie-element/multiple-choice-controller@8.4.0-beta.5) (2026-08-11)
29
51
 
30
52
  **Note:** Version bump only for package @pie-element/multiple-choice-controller
31
53
 
54
+ # [8.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.3...@pie-element/multiple-choice-controller@8.4.0-beta.4) (2026-08-11)
55
+
56
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
57
+
58
+ # [8.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.2...@pie-element/multiple-choice-controller@8.4.0-beta.3) (2026-08-11)
59
+
60
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
61
+
62
+ # [8.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.1...@pie-element/multiple-choice-controller@8.4.0-beta.2) (2026-08-11)
63
+
64
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
65
+
66
+ # [8.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.4.0-beta.0...@pie-element/multiple-choice-controller@8.4.0-beta.1) (2026-08-07)
67
+
68
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
69
+
70
+ # [8.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.3.0-beta.0...@pie-element/multiple-choice-controller@8.4.0-beta.0) (2026-08-07)
71
+
72
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
73
+
74
+ # [8.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.3.0-beta.0...@pie-element/multiple-choice-controller@8.3.0-beta.1) (2026-08-07)
75
+
76
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
77
+
78
+ # [8.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.2.0-beta.0...@pie-element/multiple-choice-controller@8.3.0-beta.0) (2026-08-07)
79
+
80
+ **Note:** Version bump only for package @pie-element/multiple-choice-controller
81
+
82
+ # [8.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.0...@pie-element/multiple-choice-controller@8.2.0-beta.0) (2026-08-07)
83
+
84
+ ### Bug Fixes
85
+
86
+ - bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
87
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
88
+
32
89
  # [8.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-controller@8.1.0-next.1...@pie-element/multiple-choice-controller@8.1.0) (2026-05-21)
33
90
 
34
91
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice-controller",
3
3
  "private": true,
4
- "version": "8.1.5",
4
+ "version": "8.4.0-beta.16",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
package/lib/choice.js CHANGED
@@ -10,7 +10,6 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _styles = require("@mui/material/styles");
12
12
  var _Box = _interopRequireDefault(require("@mui/material/Box"));
13
- var _renderUi = require("@pie-lib/render-ui");
14
13
  var _choiceInput = _interopRequireDefault(require("./choice-input"));
15
14
  const ChoiceContainer = (0, _styles.styled)(_Box.default, {
16
15
  shouldForwardProp: prop => prop !== 'noBorder' && prop !== 'horizontalLayout'
@@ -23,13 +22,7 @@ const ChoiceContainer = (0, _styles.styled)(_Box.default, {
23
22
  paddingBottom: `calc(${theme.spacing(1)} + 2px)`,
24
23
  paddingLeft: `calc(${theme.spacing(1)} + 2px)`,
25
24
  paddingRight: `calc(${theme.spacing(1)} + 2px)`,
26
- /*
27
- * The separator between answer choices. MUI's grey[300] does not follow `--pie-*`,
28
- * so it stayed #e0e0e0 on every scheme -- about 1.1:1 against black-on-rose's own
29
- * background, which is where George reported it. `--pie-border` is stepped per
30
- * scheme and holds at least 3.23:1 everywhere.
31
- */
32
- borderBottom: noBorder ? 'none' : `1px solid ${_renderUi.color.border()}`,
25
+ borderBottom: noBorder ? 'none' : `1px solid ${theme.palette.grey[300]}`,
33
26
  ...(horizontalLayout && {
34
27
  paddingRight: theme.spacing(2.5),
35
28
  '& label': {
package/lib/choice.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"choice.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_Box","_renderUi","_choiceInput","ChoiceContainer","styled","Box","shouldForwardProp","prop","theme","noBorder","horizontalLayout","paddingTop","spacing","paddingBottom","paddingLeft","paddingRight","borderBottom","color","border","marginRight","Choice","React","Component","constructor","args","_defineProperty2","default","isHovered","disabled","checked","props","setState","choice","onChoiceChanged","render","index","choicesLength","showCorrect","isEvaluateMode","choiceMode","correctness","displayKey","choicesLayout","gridColumns","isSelectionButtonBelow","selectedAnswerBackgroundColor","selectedAnswerStrokeColor","selectedAnswerStrokeWidth","hoverAnswerBackgroundColor","hoverAnswerStrokeColor","hoverAnswerStrokeWidth","tagName","state","choiceClass","feedback","choiceProps","onChange","normalizeStrokeWidth","width","trimmed","String","trim","test","hasSelectedStroke","hasHoverStroke","currentStrokeColor","currentStrokeWidth","currentBackgroundColor","hasStroke","strokeStyle","borderRadius","choiceBackground","createElement","className","key","style","backgroundColor","onMouseEnter","handleMouseEnter","onMouseLeave","handleMouseLeave","component","exports","propTypes","PropTypes","oneOf","object","bool","isRequired","func","number","string","_default"],"sources":["../src/choice.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport Box from '@mui/material/Box';\nimport { color } from '@pie-lib/render-ui';\n\nimport ChoiceInput from './choice-input';\n\nconst ChoiceContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'noBorder' && prop !== 'horizontalLayout',\n})(({ theme, noBorder, horizontalLayout }) => ({\n paddingTop: theme.spacing(2.5),\n paddingBottom: `calc(${theme.spacing(1)} + 2px)`,\n paddingLeft: `calc(${theme.spacing(1)} + 2px)`,\n paddingRight: `calc(${theme.spacing(1)} + 2px)`,\n /*\n * The separator between answer choices. MUI's grey[300] does not follow `--pie-*`,\n * so it stayed #e0e0e0 on every scheme -- about 1.1:1 against black-on-rose's own\n * background, which is where George reported it. `--pie-border` is stepped per\n * scheme and holds at least 3.23:1 everywhere.\n */\n borderBottom: noBorder ? 'none' : `1px solid ${color.border()}`,\n ...(horizontalLayout && {\n paddingRight: theme.spacing(2.5),\n '& label': {\n marginRight: theme.spacing(1),\n },\n }),\n}));\n\nexport class Choice extends React.Component {\n static propTypes = {};\n\n state = {\n isHovered: false,\n };\n\n handleMouseEnter = () => {\n const { disabled, checked } = this.props;\n\n if (!disabled && !checked) {\n this.setState({ isHovered: true });\n }\n };\n\n handleMouseLeave = () => {\n this.setState({ isHovered: false });\n };\n\n onChange = (choice) => {\n const { disabled, onChoiceChanged } = this.props;\n\n if (!disabled) {\n onChoiceChanged(choice);\n }\n };\n\n render() {\n const {\n choice,\n index,\n choicesLength,\n showCorrect,\n isEvaluateMode,\n choiceMode,\n disabled,\n checked,\n correctness,\n displayKey,\n choicesLayout,\n gridColumns,\n isSelectionButtonBelow,\n selectedAnswerBackgroundColor,\n selectedAnswerStrokeColor,\n selectedAnswerStrokeWidth,\n hoverAnswerBackgroundColor,\n hoverAnswerStrokeColor,\n hoverAnswerStrokeWidth,\n tagName\n } = this.props;\n \n const { isHovered } = this.state;\n const choiceClass = 'choice' + (index === choicesLength - 1 ? ' last' : '');\n\n const feedback = !isEvaluateMode || showCorrect ? '' : choice.feedback;\n\n const choiceProps = {\n ...choice,\n checked,\n choiceMode,\n disabled,\n feedback,\n correctness,\n displayKey,\n index,\n choicesLayout,\n gridColumns,\n onChange: this.onChange,\n isEvaluateMode,\n isSelectionButtonBelow,\n selectedAnswerStrokeColor,\n selectedAnswerStrokeWidth,\n tagName,\n };\n\n const normalizeStrokeWidth = (width) => {\n if (!width) return '2px'; // default\n const trimmed = String(width).trim();\n \n // add 'px' if the value is a number\n if (/^\\d+(\\.\\d+)?$/.test(trimmed)) {\n return `${trimmed}px`;\n }\n\n return trimmed;\n };\n\n const hasSelectedStroke = selectedAnswerStrokeColor && selectedAnswerStrokeColor !== 'initial';\n const hasHoverStroke = hoverAnswerStrokeColor && hoverAnswerStrokeColor !== 'initial';\n \n let currentStrokeColor = 'transparent';\n let currentStrokeWidth = '2px';\n let currentBackgroundColor = 'initial';\n \n if ((hasSelectedStroke || hasHoverStroke)) {\n if (checked && hasSelectedStroke) {\n // selected state takes priority when selected stroke is configured\n currentStrokeColor = selectedAnswerStrokeColor;\n currentStrokeWidth = selectedAnswerStrokeWidth;\n } else if (isHovered && !disabled && hasHoverStroke) {\n // hover state when not selected and not disabled, and hover stroke is configured\n currentStrokeColor = hoverAnswerStrokeColor;\n currentStrokeWidth = hoverAnswerStrokeWidth;\n }\n }\n \n if (checked && selectedAnswerBackgroundColor && selectedAnswerBackgroundColor !== 'initial') {\n currentBackgroundColor = selectedAnswerBackgroundColor;\n } else if (isHovered && !disabled && hoverAnswerBackgroundColor && hoverAnswerBackgroundColor !== 'initial') {\n currentBackgroundColor = hoverAnswerBackgroundColor;\n }\n\n const hasStroke = hasSelectedStroke || hasHoverStroke;\n const strokeStyle = hasStroke ? {\n border: `${normalizeStrokeWidth(currentStrokeWidth)} solid ${currentStrokeColor}`,\n borderRadius: '8px',\n } : {};\n\n const noBorder = index === choicesLength - 1 || choicesLayout !== 'vertical' || hasStroke;\n const horizontalLayout = choicesLayout === 'horizontal';\n\n const choiceBackground = currentBackgroundColor !== 'initial' ? currentBackgroundColor : 'initial';\n\n return (\n <div \n className={choiceClass} \n key={index} \n style={{ backgroundColor: choiceBackground, ...strokeStyle }}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <ChoiceContainer \n component=\"div\"\n noBorder={noBorder}\n horizontalLayout={horizontalLayout}\n >\n <ChoiceInput {...choiceProps} />\n </ChoiceContainer>\n </div>\n );\n }\n}\n\nChoice.propTypes = {\n choiceMode: PropTypes.oneOf(['radio', 'checkbox']),\n choice: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onChoiceChanged: PropTypes.func,\n index: PropTypes.number,\n choicesLength: PropTypes.number,\n showCorrect: PropTypes.bool,\n isEvaluateMode: PropTypes.bool,\n checked: PropTypes.bool,\n correctness: PropTypes.string,\n displayKey: PropTypes.string,\n choicesLayout: PropTypes.oneOf(['vertical', 'grid', 'horizontal']),\n gridColumns: PropTypes.string,\n selectedAnswerBackgroundColor: PropTypes.string,\n selectedAnswerStrokeColor: PropTypes.string,\n selectedAnswerStrokeWidth: PropTypes.string,\n hoverAnswerBackgroundColor: PropTypes.string,\n hoverAnswerStrokeColor: PropTypes.string,\n hoverAnswerStrokeWidth: PropTypes.string,\n tagName: PropTypes.string,\n isSelectionButtonBelow: PropTypes.bool,\n};\n\nexport default Choice;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,MAAMM,eAAe,GAA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EAAE+C,kBAAS,CAACG,IAAI;EAC3BjD,cAAc,EAAE8C,kBAAS,CAACG,IAAI;EAC9B1D,OAAO,EAAEuD,kBAAS,CAACG,IAAI;EACvB/C,WAAW,EAAE4C,kBAAS,CAACO,MAAM;EAC7BlD,UAAU,EAAE2C,kBAAS,CAACO,MAAM;EAC5BjD,aAAa,EAAE0C,kBAAS,CAACC,KAAK,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;EAClE1C,WAAW,EAAEyC,kBAAS,CAACO,MAAM;EAC7B9C,6BAA6B,EAAEuC,kBAAS,CAACO,MAAM;EAC/C7C,yBAAyB,EAAEsC,kBAAS,CAACO,MAAM;EAC3C5C,yBAAyB,EAAEqC,kBAAS,CAACO,MAAM;EAC3C3C,0BAA0B,EAAEoC,kBAAS,CAACO,MAAM;EAC5C1C,sBAAsB,EAAEmC,kBAAS,CAACO,MAAM;EACxCzC,sBAAsB,EAAEkC,kBAAS,CAACO,MAAM;EACxCxC,OAAO,EAAEiC,kBAAS,CAACO,MAAM;EACzB/C,sBAAsB,EAAEwC,kBAAS,CAACG;AACpC,CAAC;AAAC,IAAAK,QAAA,GAAAV,OAAA,CAAAxD,OAAA,GAEaN,MAAM","ignoreList":[]}
1
+ {"version":3,"file":"choice.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_Box","_choiceInput","ChoiceContainer","styled","Box","shouldForwardProp","prop","theme","noBorder","horizontalLayout","paddingTop","spacing","paddingBottom","paddingLeft","paddingRight","borderBottom","palette","grey","marginRight","Choice","React","Component","constructor","args","_defineProperty2","default","isHovered","disabled","checked","props","setState","choice","onChoiceChanged","render","index","choicesLength","showCorrect","isEvaluateMode","choiceMode","correctness","displayKey","choicesLayout","gridColumns","isSelectionButtonBelow","selectedAnswerBackgroundColor","selectedAnswerStrokeColor","selectedAnswerStrokeWidth","hoverAnswerBackgroundColor","hoverAnswerStrokeColor","hoverAnswerStrokeWidth","tagName","state","choiceClass","feedback","choiceProps","onChange","normalizeStrokeWidth","width","trimmed","String","trim","test","hasSelectedStroke","hasHoverStroke","currentStrokeColor","currentStrokeWidth","currentBackgroundColor","hasStroke","strokeStyle","border","borderRadius","choiceBackground","createElement","className","key","style","backgroundColor","onMouseEnter","handleMouseEnter","onMouseLeave","handleMouseLeave","component","exports","propTypes","PropTypes","oneOf","object","bool","isRequired","func","number","string","_default"],"sources":["../src/choice.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport Box from '@mui/material/Box';\n\nimport ChoiceInput from './choice-input';\n\nconst ChoiceContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'noBorder' && prop !== 'horizontalLayout',\n})(({ theme, noBorder, horizontalLayout }) => ({\n paddingTop: theme.spacing(2.5),\n paddingBottom: `calc(${theme.spacing(1)} + 2px)`,\n paddingLeft: `calc(${theme.spacing(1)} + 2px)`,\n paddingRight: `calc(${theme.spacing(1)} + 2px)`,\n borderBottom: noBorder ? 'none' : `1px solid ${theme.palette.grey[300]}`,\n ...(horizontalLayout && {\n paddingRight: theme.spacing(2.5),\n '& label': {\n marginRight: theme.spacing(1),\n },\n }),\n}));\n\nexport class Choice extends React.Component {\n static propTypes = {};\n\n state = {\n isHovered: false,\n };\n\n handleMouseEnter = () => {\n const { disabled, checked } = this.props;\n\n if (!disabled && !checked) {\n this.setState({ isHovered: true });\n }\n };\n\n handleMouseLeave = () => {\n this.setState({ isHovered: false });\n };\n\n onChange = (choice) => {\n const { disabled, onChoiceChanged } = this.props;\n\n if (!disabled) {\n onChoiceChanged(choice);\n }\n };\n\n render() {\n const {\n choice,\n index,\n choicesLength,\n showCorrect,\n isEvaluateMode,\n choiceMode,\n disabled,\n checked,\n correctness,\n displayKey,\n choicesLayout,\n gridColumns,\n isSelectionButtonBelow,\n selectedAnswerBackgroundColor,\n selectedAnswerStrokeColor,\n selectedAnswerStrokeWidth,\n hoverAnswerBackgroundColor,\n hoverAnswerStrokeColor,\n hoverAnswerStrokeWidth,\n tagName\n } = this.props;\n \n const { isHovered } = this.state;\n const choiceClass = 'choice' + (index === choicesLength - 1 ? ' last' : '');\n\n const feedback = !isEvaluateMode || showCorrect ? '' : choice.feedback;\n\n const choiceProps = {\n ...choice,\n checked,\n choiceMode,\n disabled,\n feedback,\n correctness,\n displayKey,\n index,\n choicesLayout,\n gridColumns,\n onChange: this.onChange,\n isEvaluateMode,\n isSelectionButtonBelow,\n selectedAnswerStrokeColor,\n selectedAnswerStrokeWidth,\n tagName,\n };\n\n const normalizeStrokeWidth = (width) => {\n if (!width) return '2px'; // default\n const trimmed = String(width).trim();\n \n // add 'px' if the value is a number\n if (/^\\d+(\\.\\d+)?$/.test(trimmed)) {\n return `${trimmed}px`;\n }\n\n return trimmed;\n };\n\n const hasSelectedStroke = selectedAnswerStrokeColor && selectedAnswerStrokeColor !== 'initial';\n const hasHoverStroke = hoverAnswerStrokeColor && hoverAnswerStrokeColor !== 'initial';\n \n let currentStrokeColor = 'transparent';\n let currentStrokeWidth = '2px';\n let currentBackgroundColor = 'initial';\n \n if ((hasSelectedStroke || hasHoverStroke)) {\n if (checked && hasSelectedStroke) {\n // selected state takes priority when selected stroke is configured\n currentStrokeColor = selectedAnswerStrokeColor;\n currentStrokeWidth = selectedAnswerStrokeWidth;\n } else if (isHovered && !disabled && hasHoverStroke) {\n // hover state when not selected and not disabled, and hover stroke is configured\n currentStrokeColor = hoverAnswerStrokeColor;\n currentStrokeWidth = hoverAnswerStrokeWidth;\n }\n }\n \n if (checked && selectedAnswerBackgroundColor && selectedAnswerBackgroundColor !== 'initial') {\n currentBackgroundColor = selectedAnswerBackgroundColor;\n } else if (isHovered && !disabled && hoverAnswerBackgroundColor && hoverAnswerBackgroundColor !== 'initial') {\n currentBackgroundColor = hoverAnswerBackgroundColor;\n }\n\n const hasStroke = hasSelectedStroke || hasHoverStroke;\n const strokeStyle = hasStroke ? {\n border: `${normalizeStrokeWidth(currentStrokeWidth)} solid ${currentStrokeColor}`,\n borderRadius: '8px',\n } : {};\n\n const noBorder = index === choicesLength - 1 || choicesLayout !== 'vertical' || hasStroke;\n const horizontalLayout = choicesLayout === 'horizontal';\n\n const choiceBackground = currentBackgroundColor !== 'initial' ? currentBackgroundColor : 'initial';\n\n return (\n <div \n className={choiceClass} \n key={index} \n style={{ backgroundColor: choiceBackground, ...strokeStyle }}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <ChoiceContainer \n component=\"div\"\n noBorder={noBorder}\n horizontalLayout={horizontalLayout}\n >\n <ChoiceInput {...choiceProps} />\n </ChoiceContainer>\n </div>\n );\n }\n}\n\nChoice.propTypes = {\n choiceMode: PropTypes.oneOf(['radio', 'checkbox']),\n choice: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onChoiceChanged: PropTypes.func,\n index: PropTypes.number,\n choicesLength: PropTypes.number,\n showCorrect: PropTypes.bool,\n isEvaluateMode: PropTypes.bool,\n checked: PropTypes.bool,\n correctness: PropTypes.string,\n displayKey: PropTypes.string,\n choicesLayout: PropTypes.oneOf(['vertical', 'grid', 'horizontal']),\n gridColumns: PropTypes.string,\n selectedAnswerBackgroundColor: PropTypes.string,\n selectedAnswerStrokeColor: PropTypes.string,\n selectedAnswerStrokeWidth: PropTypes.string,\n hoverAnswerBackgroundColor: PropTypes.string,\n hoverAnswerStrokeColor: PropTypes.string,\n hoverAnswerStrokeWidth: PropTypes.string,\n tagName: PropTypes.string,\n isSelectionButtonBelow: PropTypes.bool,\n};\n\nexport default Choice;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,MAAMK,eAAe,GAAG,IAAAC,cAAM,EAACC,Y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EAAE+C,kBAAS,CAACG,IAAI;EAC9B3D,OAAO,EAAEwD,kBAAS,CAACG,IAAI;EACvBhD,WAAW,EAAE6C,kBAAS,CAACO,MAAM;EAC7BnD,UAAU,EAAE4C,kBAAS,CAACO,MAAM;EAC5BlD,aAAa,EAAE2C,kBAAS,CAACC,KAAK,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;EAClE3C,WAAW,EAAE0C,kBAAS,CAACO,MAAM;EAC7B/C,6BAA6B,EAAEwC,kBAAS,CAACO,MAAM;EAC/C9C,yBAAyB,EAAEuC,kBAAS,CAACO,MAAM;EAC3C7C,yBAAyB,EAAEsC,kBAAS,CAACO,MAAM;EAC3C5C,0BAA0B,EAAEqC,kBAAS,CAACO,MAAM;EAC5C3C,sBAAsB,EAAEoC,kBAAS,CAACO,MAAM;EACxC1C,sBAAsB,EAAEmC,kBAAS,CAACO,MAAM;EACxCzC,OAAO,EAAEkC,kBAAS,CAACO,MAAM;EACzBhD,sBAAsB,EAAEyC,kBAAS,CAACG;AACpC,CAAC;AAAC,IAAAK,QAAA,GAAAV,OAAA,CAAAzD,OAAA,GAEaN,MAAM","ignoreList":[]}
package/lib/index.js CHANGED
@@ -27,7 +27,7 @@ const isComplete = (session, model, audioComplete, elementContext) => {
27
27
  if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
28
28
  if (elementContext) {
29
29
  const audio = elementContext.querySelector('audio');
30
- const isInsidePrompt = audio && audio.closest('.preview-prompt');
30
+ const isInsidePrompt = audio && audio.closest('#preview-prompt');
31
31
 
32
32
  // only require audio completion if audio exists and is inside the prompt
33
33
  if (audio && isInsidePrompt) {
@@ -257,7 +257,7 @@ class MultipleChoice extends HTMLElement {
257
257
  if (mutation.type === 'childList') {
258
258
  if (this._audioInitialized) return;
259
259
  const audio = this.querySelector('audio');
260
- const isInsidePrompt = audio && audio.closest('.preview-prompt');
260
+ const isInsidePrompt = audio && audio.closest('#preview-prompt');
261
261
  if (!this._model) return;
262
262
  if (!this._model.autoplayAudioEnabled) return;
263
263
  if (audio && !isInsidePrompt) return;