@pie-element/multiple-choice 13.4.2-beta.4 → 13.4.3

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,79 +3,107 @@
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.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)
6
+ ## [13.4.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.2...@pie-element/multiple-choice@13.4.3) (2026-09-17)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/multiple-choice
9
9
 
10
- ## [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)
10
+ ## [13.4.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.1...@pie-element/multiple-choice@13.4.2) (2026-09-04)
11
11
 
12
- **Note:** Version bump only for package @pie-element/multiple-choice
12
+ ### Bug Fixes
13
13
 
14
- ## [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)
14
+ - bump libs PIE-978, PIE-980 ([96489ba](https://github.com/pie-framework/pie-elements/commit/96489ba3c220604f21c3ce4500d79f4389266e9e))
15
+
16
+ ## [13.4.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice@13.4.0...@pie-element/multiple-choice@13.4.1) (2026-08-26)
15
17
 
16
18
  **Note:** Version bump only for package @pie-element/multiple-choice
17
19
 
18
- # [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)
20
+ # [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)
19
21
 
20
- **Note:** Version bump only for package @pie-element/multiple-choice
22
+ ### Bug Fixes
21
23
 
22
- # [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)
24
+ - 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))
25
+ - 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))
26
+ - **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)
23
27
 
24
- **Note:** Version bump only for package @pie-element/multiple-choice
28
+ ### Features
25
29
 
26
- # [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)
30
+ - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
27
31
 
28
- **Note:** Version bump only for package @pie-element/multiple-choice
32
+ ## [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)
29
33
 
30
- # [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)
34
+ ### Bug Fixes
31
35
 
32
- **Note:** Version bump only for package @pie-element/multiple-choice
36
+ - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
33
37
 
34
- # [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)
38
+ ## [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)
35
39
 
36
- **Note:** Version bump only for package @pie-element/multiple-choice
40
+ ### Bug Fixes
37
41
 
38
- # [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)
42
+ - **multiple-choice, number-line:** add render math in configure PIE-763 ([b7dfd29](https://github.com/pie-framework/pie-elements/commit/b7dfd29e6d5f1981799f8cef96f6f73ae829951c))
43
+ - **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))
39
44
 
40
- **Note:** Version bump only for package @pie-element/multiple-choice
45
+ ## [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)
41
46
 
42
- # [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)
47
+ ### Bug Fixes
43
48
 
44
- **Note:** Version bump only for package @pie-element/multiple-choice
49
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([feba612](https://github.com/pie-framework/pie-elements/commit/feba61239db62626c05fa8099d8adc373f968061))
50
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
45
51
 
46
- # [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)
52
+ ## [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)
47
53
 
48
- **Note:** Version bump only for package @pie-element/multiple-choice
54
+ ### Bug Fixes
49
55
 
50
- # [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)
56
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([feba612](https://github.com/pie-framework/pie-elements/commit/feba61239db62626c05fa8099d8adc373f968061))
57
+ - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
51
58
 
52
- **Note:** Version bump only for package @pie-element/multiple-choice
59
+ ## [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)
53
60
 
54
- # [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)
61
+ ### Bug Fixes
55
62
 
56
- **Note:** Version bump only for package @pie-element/multiple-choice
63
+ - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
57
64
 
58
- # [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)
65
+ ## [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)
59
66
 
60
67
  ### Bug Fixes
61
68
 
62
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
63
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
64
- - 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))
65
- - 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))
66
69
  - 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))
67
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
70
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
71
+
72
+ ## [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)
73
+
74
+ ### Bug Fixes
75
+
76
+ - 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))
68
77
  - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
69
- - **multiple-choice:** change keyboard focus indicator PIE-104 ([cbb6308](https://github.com/pie-framework/pie-elements/commit/cbb6308c41137e1054a0bcb3179fe1c8fbdd4188))
70
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([feba612](https://github.com/pie-framework/pie-elements/commit/feba61239db62626c05fa8099d8adc373f968061))
71
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
78
+
79
+ ## [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)
80
+
81
+ ### Bug Fixes
82
+
83
+ - 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))
84
+
85
+ # [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)
86
+
87
+ ### Bug Fixes
88
+
89
+ - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
72
90
  - surpress ripple anim that generated visible background PIE-104 ([5c653ca](https://github.com/pie-framework/pie-elements/commit/5c653ca9a2967b1283b59e7b8fdb387ac76b6fa2))
73
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
74
91
 
75
92
  ### Features
76
93
 
77
94
  - **multiple-choice:** hover styles for checkboxes and radios PIE-558 ([c5c38e8](https://github.com/pie-framework/pie-elements/commit/c5c38e8377e6ec919d100c5457531233ca119fbd))
78
95
 
96
+ ## [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)
97
+
98
+ ### Bug Fixes
99
+
100
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
101
+ - **multiple-choice:** change keyboard focus indicator PIE-104 ([cbb6308](https://github.com/pie-framework/pie-elements/commit/cbb6308c41137e1054a0bcb3179fe1c8fbdd4188))
102
+
103
+ ## [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)
104
+
105
+ **Note:** Version bump only for package @pie-element/multiple-choice
106
+
79
107
  # [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)
80
108
 
81
109
  ### Bug Fixes
@@ -3,70 +3,88 @@
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.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)
6
+ ## [10.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.2.2...@pie-element/multiple-choice-configure@10.2.3) (2026-09-17)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
9
9
 
10
- # [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)
10
+ ## [10.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.2.1...@pie-element/multiple-choice-configure@10.2.2) (2026-09-04)
11
11
 
12
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
12
+ ### Bug Fixes
13
+
14
+ - bump libs PIE-978, PIE-980 ([96489ba](https://github.com/pie-framework/pie-elements/commit/96489ba3c220604f21c3ce4500d79f4389266e9e))
13
15
 
14
- # [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)
16
+ ## [10.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/multiple-choice-configure@10.2.0...@pie-element/multiple-choice-configure@10.2.1) (2026-08-26)
15
17
 
16
18
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
17
19
 
18
- # [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)
20
+ # [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)
19
21
 
20
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
22
+ ### Features
21
23
 
22
- # [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)
24
+ - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
23
25
 
24
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
26
+ ## [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)
25
27
 
26
- # [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)
28
+ ### Bug Fixes
27
29
 
28
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
30
+ - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
29
31
 
30
- # [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)
32
+ ## [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)
31
33
 
32
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
34
+ ### Bug Fixes
35
+
36
+ - **multiple-choice, number-line:** add render math in configure PIE-763 ([b7dfd29](https://github.com/pie-framework/pie-elements/commit/b7dfd29e6d5f1981799f8cef96f6f73ae829951c))
37
+ - **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))
33
38
 
34
- # [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)
39
+ ## [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)
35
40
 
36
41
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
37
42
 
38
- # [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)
43
+ ## [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)
39
44
 
40
45
  **Note:** Version bump only for package @pie-element/multiple-choice-configure
41
46
 
42
- # [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)
47
+ ## [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)
43
48
 
44
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
49
+ ### Bug Fixes
45
50
 
46
- # [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)
51
+ - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
47
52
 
48
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
53
+ ## [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)
49
54
 
50
- # [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)
55
+ ### Bug Fixes
51
56
 
52
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
57
+ - 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))
58
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
53
59
 
54
- # [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)
60
+ ## [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)
55
61
 
56
- **Note:** Version bump only for package @pie-element/multiple-choice-configure
62
+ ### Bug Fixes
57
63
 
58
- # [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)
64
+ - 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))
65
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
66
+
67
+ ## [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)
59
68
 
60
69
  ### Bug Fixes
61
70
 
62
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
63
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
64
71
  - 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))
65
- - 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))
66
- - 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))
72
+
73
+ ## [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)
74
+
75
+ ### Bug Fixes
76
+
67
77
  - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
68
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
69
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
78
+
79
+ ## [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)
80
+
81
+ ### Bug Fixes
82
+
83
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
84
+
85
+ ## [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)
86
+
87
+ **Note:** Version bump only for package @pie-element/multiple-choice-configure
70
88
 
71
89
  # [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)
72
90
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice-configure",
3
- "version": "10.4.0-beta.10",
3
+ "version": "10.2.3",
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.1.0-beta.8",
14
- "@pie-lib/editable-html-tip-tap": "2.2.0-beta.8",
15
- "@pie-lib/render-ui": "6.1.3",
13
+ "@pie-lib/config-ui": "13.0.20",
14
+ "@pie-lib/editable-html-tip-tap": "2.1.18",
15
+ "@pie-lib/render-ui": "7.0.2",
16
16
  "debug": "^4.1.1",
17
17
  "lodash-es": "^4.17.23",
18
18
  "prop-types": "^15.8.1",
@@ -3,65 +3,32 @@
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.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)
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)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/multiple-choice-controller
9
9
 
10
- # [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)
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)
11
11
 
12
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
13
-
14
- # [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)
15
-
16
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
17
-
18
- # [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)
19
-
20
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
21
-
22
- # [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)
23
-
24
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
25
-
26
- # [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)
27
-
28
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
29
-
30
- # [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)
31
-
32
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
33
-
34
- # [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)
35
-
36
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
37
-
38
- # [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)
12
+ ### Bug Fixes
39
13
 
40
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
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))
41
15
 
42
- # [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)
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)
43
17
 
44
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
18
+ ### Bug Fixes
45
19
 
46
- # [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)
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))
47
21
 
48
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
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)
49
23
 
50
- # [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)
24
+ ### Bug Fixes
51
25
 
52
- **Note:** Version bump only for package @pie-element/multiple-choice-controller
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))
53
27
 
54
- # [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)
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)
55
29
 
56
30
  **Note:** Version bump only for package @pie-element/multiple-choice-controller
57
31
 
58
- # [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)
59
-
60
- ### Bug Fixes
61
-
62
- - 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))
63
- - **multiple-choice:** maxSelections should not affect single choices, repair tests in src PIE-432 ([6010172](https://github.com/pie-framework/pie-elements/commit/6010172f083a9670b5c0f48375e690c483bdedaf))
64
-
65
32
  # [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)
66
33
 
67
34
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice-controller",
3
3
  "private": true,
4
- "version": "8.4.0-beta.10",
4
+ "version": "8.1.5",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
package/lib/choice.js CHANGED
@@ -10,6 +10,7 @@ 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");
13
14
  var _choiceInput = _interopRequireDefault(require("./choice-input"));
14
15
  const ChoiceContainer = (0, _styles.styled)(_Box.default, {
15
16
  shouldForwardProp: prop => prop !== 'noBorder' && prop !== 'horizontalLayout'
@@ -22,7 +23,13 @@ const ChoiceContainer = (0, _styles.styled)(_Box.default, {
22
23
  paddingBottom: `calc(${theme.spacing(1)} + 2px)`,
23
24
  paddingLeft: `calc(${theme.spacing(1)} + 2px)`,
24
25
  paddingRight: `calc(${theme.spacing(1)} + 2px)`,
25
- borderBottom: noBorder ? 'none' : `1px solid ${theme.palette.grey[300]}`,
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()}`,
26
33
  ...(horizontalLayout && {
27
34
  paddingRight: theme.spacing(2.5),
28
35
  '& label': {
package/lib/choice.js.map CHANGED
@@ -1 +1 @@
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,YAAG,EAAE;EAClCC,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK,UAAU,IAAIA,IAAI,KAAK;AAC/D,CAAC,CAAC,CAAC,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAEC;AAAiB,CAAC,MAAM;EAC7CC,UAAU,EAAEH,KAAK,CAACI,OAAO,CAAC,GAAG,CAAC;EAC9BC,aAAa,EAAE,QAAQL,KAAK,CAACI,OAAO,CAAC,CAAC,CAAC,SAA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;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":[]}
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,GAAG,IAAAC,cAAM,EAACC,YAAG,EAAE;EAClCC,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK,UAAU,IAAIA,IAAI,KAAK;AAC/D,CAAC,CAAC,CAAC,CAAC;EAAEC,KAAK;EAA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;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":[]}
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;