@pie-element/categorize 13.2.1 → 13.2.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,87 +3,101 @@
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.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.0...@pie-element/categorize@13.2.1) (2026-08-26)
6
+ ## [13.2.2-beta.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.9...@pie-element/categorize@13.2.2-beta.10) (2026-10-06)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/categorize
9
9
 
10
- # [13.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.11...@pie-element/categorize@13.2.0) (2026-08-21)
10
+ ## [13.2.2-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.8...@pie-element/categorize@13.2.2-beta.9) (2026-10-05)
11
11
 
12
- ### Bug Fixes
12
+ **Note:** Version bump only for package @pie-element/categorize
13
13
 
14
- - 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))
15
- - 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))
14
+ ## [13.2.2-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.7...@pie-element/categorize@13.2.2-beta.8) (2026-09-29)
16
15
 
17
- ### Features
16
+ **Note:** Version bump only for package @pie-element/categorize
18
17
 
19
- - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
18
+ ## [13.2.2-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.6...@pie-element/categorize@13.2.2-beta.7) (2026-09-24)
20
19
 
21
- ## [13.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.10...@pie-element/categorize@13.1.11) (2026-08-19)
20
+ **Note:** Version bump only for package @pie-element/categorize
22
21
 
23
- ### Bug Fixes
22
+ ## [13.2.2-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.5...@pie-element/categorize@13.2.2-beta.6) (2026-09-24)
24
23
 
25
- - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
24
+ **Note:** Version bump only for package @pie-element/categorize
26
25
 
27
- ## [13.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.8...@pie-element/categorize@13.1.10) (2026-08-13)
26
+ ## [13.2.2-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.4...@pie-element/categorize@13.2.2-beta.5) (2026-09-17)
28
27
 
29
28
  **Note:** Version bump only for package @pie-element/categorize
30
29
 
31
- ## [13.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.7...@pie-element/categorize@13.1.9) (2026-08-11)
30
+ ## [13.2.2-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.3...@pie-element/categorize@13.2.2-beta.4) (2026-09-11)
32
31
 
33
32
  **Note:** Version bump only for package @pie-element/categorize
34
33
 
35
- ## [13.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.7...@pie-element/categorize@13.1.8) (2026-07-31)
34
+ ## [13.2.2-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.2-beta.2...@pie-element/categorize@13.2.2-beta.3) (2026-09-04)
36
35
 
37
36
  **Note:** Version bump only for package @pie-element/categorize
38
37
 
39
- ## [13.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.6...@pie-element/categorize@13.1.7) (2026-07-08)
38
+ ## [13.2.2-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.7...@pie-element/categorize@13.2.2-beta.2) (2026-08-26)
40
39
 
41
- ### Bug Fixes
40
+ **Note:** Version bump only for package @pie-element/categorize
42
41
 
43
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
44
- - **categorize:** compute allowmultiple based on response when missing, get rid of defaults value PIE, add tests PIE-723 ([3217ede](https://github.com/pie-framework/pie-elements/commit/3217edebf20e3906a8c46d775dfb2e3ee0095fd6))
45
- - **categorize:** use single quotes lint warning PIE-723 ([4d2162a](https://github.com/pie-framework/pie-elements/commit/4d2162a6a618a7f5104a89e753a02dba75fb8c11))
42
+ # [13.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.6...@pie-element/categorize@13.4.0-beta.7) (2026-08-20)
46
43
 
47
- ## [13.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.5...@pie-element/categorize@13.1.6) (2026-07-02)
44
+ **Note:** Version bump only for package @pie-element/categorize
48
45
 
49
- ### Bug Fixes
46
+ # [13.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.5...@pie-element/categorize@13.4.0-beta.6) (2026-08-14)
50
47
 
51
- - 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))
52
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
48
+ **Note:** Version bump only for package @pie-element/categorize
53
49
 
54
- ## [13.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.4...@pie-element/categorize@13.1.5) (2026-06-22)
50
+ # [13.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.4...@pie-element/categorize@13.4.0-beta.5) (2026-08-11)
55
51
 
56
- ### Bug Fixes
52
+ **Note:** Version bump only for package @pie-element/categorize
57
53
 
58
- - 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))
59
- - if allowMultiplePlacements default should be false PIE-682 ([b7447f4](https://github.com/pie-framework/pie-elements/commit/b7447f4d97e9d7cc2415f54a17ffe13ed15d1ebb))
60
- - if allowMultiplePlacements is missing default should be false PIE-682 ([3f93d0d](https://github.com/pie-framework/pie-elements/commit/3f93d0de81de3a5cbd2763184d2241f31e9dbae0))
54
+ # [13.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.3...@pie-element/categorize@13.4.0-beta.4) (2026-08-11)
61
55
 
62
- ## [13.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.3...@pie-element/categorize@13.1.4) (2026-06-17)
56
+ **Note:** Version bump only for package @pie-element/categorize
63
57
 
64
- ### Bug Fixes
58
+ # [13.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.2...@pie-element/categorize@13.4.0-beta.3) (2026-08-11)
65
59
 
66
- - 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))
67
- - clear \_root reference on disconnect PIE-686 ([0a236ce](https://github.com/pie-framework/pie-elements/commit/0a236ce1decbd64b250d97484212179f62adc049))
60
+ **Note:** Version bump only for package @pie-element/categorize
68
61
 
69
- ## [13.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.2...@pie-element/categorize@13.1.3) (2026-06-12)
62
+ # [13.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.1...@pie-element/categorize@13.4.0-beta.2) (2026-08-11)
70
63
 
71
- ### Bug Fixes
64
+ **Note:** Version bump only for package @pie-element/categorize
72
65
 
73
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
74
- - **categorize:** fix lint warnings PIE-433 ([b3a61de](https://github.com/pie-framework/pie-elements/commit/b3a61de893e7aa0b3bfc119ca17a6acc769a042a))
75
- - **categorize:** normalize categoryCount based on allowMultiplePlacements PIE-433 ([60f8473](https://github.com/pie-framework/pie-elements/commit/60f847381b769fa3cc4add100cce821b2aa6338c))
66
+ # [13.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.4.0-beta.0...@pie-element/categorize@13.4.0-beta.1) (2026-08-07)
76
67
 
77
- ## [13.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.1...@pie-element/categorize@13.1.2) (2026-06-04)
68
+ **Note:** Version bump only for package @pie-element/categorize
78
69
 
79
- ### Bug Fixes
70
+ # [13.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.3.0-beta.0...@pie-element/categorize@13.4.0-beta.0) (2026-08-07)
80
71
 
81
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
72
+ **Note:** Version bump only for package @pie-element/categorize
82
73
 
83
- ## [13.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.0...@pie-element/categorize@13.1.1) (2026-05-21)
74
+ # [13.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.3.0-beta.0...@pie-element/categorize@13.3.0-beta.1) (2026-08-07)
84
75
 
85
76
  **Note:** Version bump only for package @pie-element/categorize
86
77
 
78
+ # [13.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.2.0-beta.0...@pie-element/categorize@13.3.0-beta.0) (2026-08-07)
79
+
80
+ **Note:** Version bump only for package @pie-element/categorize
81
+
82
+ # [13.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.0...@pie-element/categorize@13.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
+ - **categorize:** compute allowmultiple based on response when missing, get rid of defaults value PIE, add tests PIE-723 ([3217ede](https://github.com/pie-framework/pie-elements/commit/3217edebf20e3906a8c46d775dfb2e3ee0095fd6))
93
+ - **categorize:** fix lint warnings PIE-433 ([b3a61de](https://github.com/pie-framework/pie-elements/commit/b3a61de893e7aa0b3bfc119ca17a6acc769a042a))
94
+ - **categorize:** normalize categoryCount based on allowMultiplePlacements PIE-433 ([60f8473](https://github.com/pie-framework/pie-elements/commit/60f847381b769fa3cc4add100cce821b2aa6338c))
95
+ - **categorize:** use single quotes lint warning PIE-723 ([4d2162a](https://github.com/pie-framework/pie-elements/commit/4d2162a6a618a7f5104a89e753a02dba75fb8c11))
96
+ - clear \_root reference on disconnect PIE-686 ([0a236ce](https://github.com/pie-framework/pie-elements/commit/0a236ce1decbd64b250d97484212179f62adc049))
97
+ - if allowMultiplePlacements default should be false PIE-682 ([b7447f4](https://github.com/pie-framework/pie-elements/commit/b7447f4d97e9d7cc2415f54a17ffe13ed15d1ebb))
98
+ - if allowMultiplePlacements is missing default should be false PIE-682 ([3f93d0d](https://github.com/pie-framework/pie-elements/commit/3f93d0de81de3a5cbd2763184d2241f31e9dbae0))
99
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
100
+
87
101
  # [13.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@13.1.0-next.1...@pie-element/categorize@13.1.0) (2026-05-21)
88
102
 
89
103
  ### Bug Fixes
@@ -3,82 +3,97 @@
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
- ## [11.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.2.0...@pie-element/categorize-configure@11.2.1) (2026-08-26)
6
+ # [11.4.0-beta.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.15...@pie-element/categorize-configure@11.4.0-beta.16) (2026-10-06)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/categorize-configure
9
9
 
10
- # [11.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.11...@pie-element/categorize-configure@11.2.0) (2026-08-21)
10
+ # [11.4.0-beta.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.14...@pie-element/categorize-configure@11.4.0-beta.15) (2026-10-05)
11
11
 
12
- ### Bug Fixes
12
+ **Note:** Version bump only for package @pie-element/categorize-configure
13
13
 
14
- - 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))
14
+ # [11.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.13...@pie-element/categorize-configure@11.4.0-beta.14) (2026-09-29)
15
15
 
16
- ### Features
16
+ **Note:** Version bump only for package @pie-element/categorize-configure
17
17
 
18
- - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
18
+ # [11.4.0-beta.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.12...@pie-element/categorize-configure@11.4.0-beta.13) (2026-09-24)
19
19
 
20
- ## [11.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.10...@pie-element/categorize-configure@11.1.11) (2026-08-19)
20
+ **Note:** Version bump only for package @pie-element/categorize-configure
21
21
 
22
- ### Bug Fixes
22
+ # [11.4.0-beta.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.11...@pie-element/categorize-configure@11.4.0-beta.12) (2026-09-24)
23
23
 
24
- - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
24
+ **Note:** Version bump only for package @pie-element/categorize-configure
25
25
 
26
- ## [11.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.8...@pie-element/categorize-configure@11.1.10) (2026-08-13)
26
+ # [11.4.0-beta.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.10...@pie-element/categorize-configure@11.4.0-beta.11) (2026-09-17)
27
27
 
28
28
  **Note:** Version bump only for package @pie-element/categorize-configure
29
29
 
30
- ## [11.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.7...@pie-element/categorize-configure@11.1.9) (2026-08-11)
30
+ # [11.4.0-beta.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.9...@pie-element/categorize-configure@11.4.0-beta.10) (2026-09-11)
31
31
 
32
32
  **Note:** Version bump only for package @pie-element/categorize-configure
33
33
 
34
- ## [11.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.7...@pie-element/categorize-configure@11.1.8) (2026-07-31)
34
+ # [11.4.0-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.8...@pie-element/categorize-configure@11.4.0-beta.9) (2026-09-04)
35
35
 
36
36
  **Note:** Version bump only for package @pie-element/categorize-configure
37
37
 
38
- ## [11.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.6...@pie-element/categorize-configure@11.1.7) (2026-07-08)
38
+ # [11.4.0-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.7...@pie-element/categorize-configure@11.4.0-beta.8) (2026-08-26)
39
39
 
40
- ### Bug Fixes
40
+ **Note:** Version bump only for package @pie-element/categorize-configure
41
41
 
42
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
43
- - **categorize:** compute allowmultiple based on response when missing, get rid of defaults value PIE, add tests PIE-723 ([3217ede](https://github.com/pie-framework/pie-elements/commit/3217edebf20e3906a8c46d775dfb2e3ee0095fd6))
42
+ # [11.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.6...@pie-element/categorize-configure@11.4.0-beta.7) (2026-08-20)
44
43
 
45
- ## [11.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.5...@pie-element/categorize-configure@11.1.6) (2026-07-02)
44
+ **Note:** Version bump only for package @pie-element/categorize-configure
46
45
 
47
- ### Bug Fixes
46
+ # [11.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.5...@pie-element/categorize-configure@11.4.0-beta.6) (2026-08-14)
48
47
 
49
- - 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))
50
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
48
+ **Note:** Version bump only for package @pie-element/categorize-configure
51
49
 
52
- ## [11.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.4...@pie-element/categorize-configure@11.1.5) (2026-06-22)
50
+ # [11.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.4...@pie-element/categorize-configure@11.4.0-beta.5) (2026-08-11)
53
51
 
54
- ### Bug Fixes
52
+ **Note:** Version bump only for package @pie-element/categorize-configure
55
53
 
56
- - 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))
57
- - if allowMultiplePlacements default should be false PIE-682 ([b7447f4](https://github.com/pie-framework/pie-elements/commit/b7447f4d97e9d7cc2415f54a17ffe13ed15d1ebb))
54
+ # [11.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.3...@pie-element/categorize-configure@11.4.0-beta.4) (2026-08-11)
58
55
 
59
- ## [11.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.3...@pie-element/categorize-configure@11.1.4) (2026-06-17)
56
+ **Note:** Version bump only for package @pie-element/categorize-configure
60
57
 
61
- ### Bug Fixes
58
+ # [11.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.2...@pie-element/categorize-configure@11.4.0-beta.3) (2026-08-11)
62
59
 
63
- - 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))
64
- - clear \_root reference on disconnect PIE-686 ([0a236ce](https://github.com/pie-framework/pie-elements/commit/0a236ce1decbd64b250d97484212179f62adc049))
60
+ **Note:** Version bump only for package @pie-element/categorize-configure
65
61
 
66
- ## [11.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.2...@pie-element/categorize-configure@11.1.3) (2026-06-12)
62
+ # [11.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.1...@pie-element/categorize-configure@11.4.0-beta.2) (2026-08-11)
67
63
 
68
- ### Bug Fixes
64
+ **Note:** Version bump only for package @pie-element/categorize-configure
69
65
 
70
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
66
+ # [11.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.4.0-beta.0...@pie-element/categorize-configure@11.4.0-beta.1) (2026-08-07)
71
67
 
72
- ## [11.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.1...@pie-element/categorize-configure@11.1.2) (2026-06-04)
68
+ **Note:** Version bump only for package @pie-element/categorize-configure
73
69
 
74
- ### Bug Fixes
70
+ # [11.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.3.0-beta.0...@pie-element/categorize-configure@11.4.0-beta.0) (2026-08-07)
75
71
 
76
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
72
+ **Note:** Version bump only for package @pie-element/categorize-configure
73
+
74
+ # [11.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.3.0-beta.0...@pie-element/categorize-configure@11.3.0-beta.1) (2026-08-07)
75
+
76
+ **Note:** Version bump only for package @pie-element/categorize-configure
77
77
 
78
- ## [11.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.0...@pie-element/categorize-configure@11.1.1) (2026-05-21)
78
+ # [11.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.2.0-beta.0...@pie-element/categorize-configure@11.3.0-beta.0) (2026-08-07)
79
79
 
80
80
  **Note:** Version bump only for package @pie-element/categorize-configure
81
81
 
82
+ # [11.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.0...@pie-element/categorize-configure@11.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
+ - **categorize:** compute allowmultiple based on response when missing, get rid of defaults value PIE, add tests PIE-723 ([3217ede](https://github.com/pie-framework/pie-elements/commit/3217edebf20e3906a8c46d775dfb2e3ee0095fd6))
93
+ - clear \_root reference on disconnect PIE-686 ([0a236ce](https://github.com/pie-framework/pie-elements/commit/0a236ce1decbd64b250d97484212179f62adc049))
94
+ - if allowMultiplePlacements default should be false PIE-682 ([b7447f4](https://github.com/pie-framework/pie-elements/commit/b7447f4d97e9d7cc2415f54a17ffe13ed15d1ebb))
95
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
96
+
82
97
  # [11.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@11.1.0-next.1...@pie-element/categorize-configure@11.1.0) (2026-05-21)
83
98
 
84
99
  ### Bug Fixes
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "main": "lib/index.js",
5
5
  "module": "src/index.js",
6
- "version": "11.2.1",
6
+ "version": "11.4.0-beta.16",
7
7
  "description": "",
8
8
  "scripts": {},
9
9
  "author": "pie framework developers",
@@ -16,11 +16,11 @@
16
16
  "@mui/material": "^7.3.4",
17
17
  "@pie-framework/pie-configure-events": "^1.3.0",
18
18
  "@pie-lib/categorize": "2.0.2",
19
- "@pie-lib/config-ui": "13.0.17",
20
- "@pie-lib/drag": "4.1.2",
21
- "@pie-lib/editable-html-tip-tap": "2.1.15",
19
+ "@pie-lib/config-ui": "13.0.22-beta.4",
20
+ "@pie-lib/drag": "4.0.6",
21
+ "@pie-lib/editable-html-tip-tap": "2.1.20-beta.4",
22
22
  "@pie-lib/math-rendering": "5.1.0",
23
- "@pie-lib/render-ui": "7.0.1",
23
+ "@pie-lib/render-ui": "6.1.3",
24
24
  "@pie-lib/translator": "4.0.2",
25
25
  "debug": "^4.1.1",
26
26
  "lodash-es": "^4.17.23",
@@ -3,44 +3,93 @@
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.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.5...@pie-element/categorize-controller@10.1.7) (2026-08-13)
6
+ # [10.4.0-beta.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.15...@pie-element/categorize-controller@10.4.0-beta.16) (2026-10-06)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/categorize-controller
9
9
 
10
- ## [10.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.5...@pie-element/categorize-controller@10.1.6) (2026-08-11)
10
+ # [10.4.0-beta.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.14...@pie-element/categorize-controller@10.4.0-beta.15) (2026-10-05)
11
11
 
12
12
  **Note:** Version bump only for package @pie-element/categorize-controller
13
13
 
14
- ## [10.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.4...@pie-element/categorize-controller@10.1.5) (2026-07-08)
14
+ # [10.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.13...@pie-element/categorize-controller@10.4.0-beta.14) (2026-09-29)
15
15
 
16
- ### Bug Fixes
16
+ **Note:** Version bump only for package @pie-element/categorize-controller
17
17
 
18
- - **categorize:** compute allowmultiple based on response when missing, get rid of defaults value PIE, add tests PIE-723 ([3217ede](https://github.com/pie-framework/pie-elements/commit/3217edebf20e3906a8c46d775dfb2e3ee0095fd6))
19
- - **categorize:** use single quotes lint warning PIE-723 ([4d2162a](https://github.com/pie-framework/pie-elements/commit/4d2162a6a618a7f5104a89e753a02dba75fb8c11))
18
+ # [10.4.0-beta.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.12...@pie-element/categorize-controller@10.4.0-beta.13) (2026-09-24)
20
19
 
21
- ## [10.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.3...@pie-element/categorize-controller@10.1.4) (2026-07-02)
20
+ **Note:** Version bump only for package @pie-element/categorize-controller
22
21
 
23
- ### Bug Fixes
22
+ # [10.4.0-beta.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.11...@pie-element/categorize-controller@10.4.0-beta.12) (2026-09-24)
24
23
 
25
- - 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))
24
+ **Note:** Version bump only for package @pie-element/categorize-controller
26
25
 
27
- ## [10.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.2...@pie-element/categorize-controller@10.1.3) (2026-06-22)
26
+ # [10.4.0-beta.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.10...@pie-element/categorize-controller@10.4.0-beta.11) (2026-09-17)
28
27
 
29
- ### Bug Fixes
28
+ **Note:** Version bump only for package @pie-element/categorize-controller
30
29
 
31
- - if allowMultiplePlacements is missing default should be false PIE-682 ([3f93d0d](https://github.com/pie-framework/pie-elements/commit/3f93d0de81de3a5cbd2763184d2241f31e9dbae0))
30
+ # [10.4.0-beta.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.9...@pie-element/categorize-controller@10.4.0-beta.10) (2026-09-11)
32
31
 
33
- ## [10.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.1...@pie-element/categorize-controller@10.1.2) (2026-06-12)
32
+ **Note:** Version bump only for package @pie-element/categorize-controller
34
33
 
35
- ### Bug Fixes
34
+ # [10.4.0-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.8...@pie-element/categorize-controller@10.4.0-beta.9) (2026-09-04)
36
35
 
37
- - **categorize:** fix lint warnings PIE-433 ([b3a61de](https://github.com/pie-framework/pie-elements/commit/b3a61de893e7aa0b3bfc119ca17a6acc769a042a))
38
- - **categorize:** normalize categoryCount based on allowMultiplePlacements PIE-433 ([60f8473](https://github.com/pie-framework/pie-elements/commit/60f847381b769fa3cc4add100cce821b2aa6338c))
36
+ **Note:** Version bump only for package @pie-element/categorize-controller
37
+
38
+ # [10.4.0-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.7...@pie-element/categorize-controller@10.4.0-beta.8) (2026-08-26)
39
+
40
+ **Note:** Version bump only for package @pie-element/categorize-controller
41
+
42
+ # [10.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.6...@pie-element/categorize-controller@10.4.0-beta.7) (2026-08-20)
43
+
44
+ **Note:** Version bump only for package @pie-element/categorize-controller
45
+
46
+ # [10.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.5...@pie-element/categorize-controller@10.4.0-beta.6) (2026-08-14)
47
+
48
+ **Note:** Version bump only for package @pie-element/categorize-controller
49
+
50
+ # [10.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.4...@pie-element/categorize-controller@10.4.0-beta.5) (2026-08-11)
51
+
52
+ **Note:** Version bump only for package @pie-element/categorize-controller
39
53
 
40
- ## [10.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.0...@pie-element/categorize-controller@10.1.1) (2026-05-21)
54
+ # [10.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.3...@pie-element/categorize-controller@10.4.0-beta.4) (2026-08-11)
41
55
 
42
56
  **Note:** Version bump only for package @pie-element/categorize-controller
43
57
 
58
+ # [10.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.2...@pie-element/categorize-controller@10.4.0-beta.3) (2026-08-11)
59
+
60
+ **Note:** Version bump only for package @pie-element/categorize-controller
61
+
62
+ # [10.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.1...@pie-element/categorize-controller@10.4.0-beta.2) (2026-08-11)
63
+
64
+ **Note:** Version bump only for package @pie-element/categorize-controller
65
+
66
+ # [10.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.4.0-beta.0...@pie-element/categorize-controller@10.4.0-beta.1) (2026-08-07)
67
+
68
+ **Note:** Version bump only for package @pie-element/categorize-controller
69
+
70
+ # [10.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.3.0-beta.0...@pie-element/categorize-controller@10.4.0-beta.0) (2026-08-07)
71
+
72
+ **Note:** Version bump only for package @pie-element/categorize-controller
73
+
74
+ # [10.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.3.0-beta.0...@pie-element/categorize-controller@10.3.0-beta.1) (2026-08-07)
75
+
76
+ **Note:** Version bump only for package @pie-element/categorize-controller
77
+
78
+ # [10.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.2.0-beta.0...@pie-element/categorize-controller@10.3.0-beta.0) (2026-08-07)
79
+
80
+ **Note:** Version bump only for package @pie-element/categorize-controller
81
+
82
+ # [10.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.0...@pie-element/categorize-controller@10.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
+ - **categorize:** compute allowmultiple based on response when missing, get rid of defaults value PIE, add tests PIE-723 ([3217ede](https://github.com/pie-framework/pie-elements/commit/3217edebf20e3906a8c46d775dfb2e3ee0095fd6))
88
+ - **categorize:** fix lint warnings PIE-433 ([b3a61de](https://github.com/pie-framework/pie-elements/commit/b3a61de893e7aa0b3bfc119ca17a6acc769a042a))
89
+ - **categorize:** normalize categoryCount based on allowMultiplePlacements PIE-433 ([60f8473](https://github.com/pie-framework/pie-elements/commit/60f847381b769fa3cc4add100cce821b2aa6338c))
90
+ - **categorize:** use single quotes lint warning PIE-723 ([4d2162a](https://github.com/pie-framework/pie-elements/commit/4d2162a6a618a7f5104a89e753a02dba75fb8c11))
91
+ - if allowMultiplePlacements is missing default should be false PIE-682 ([3f93d0d](https://github.com/pie-framework/pie-elements/commit/3f93d0de81de3a5cbd2763184d2241f31e9dbae0))
92
+
44
93
  # [10.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@10.1.0-next.1...@pie-element/categorize-controller@10.1.0) (2026-05-21)
45
94
 
46
95
  ### Bug Fixes
@@ -8,7 +8,7 @@
8
8
  "@pie-lib/translator": "4.0.2",
9
9
  "lodash-es": "^4.17.23"
10
10
  },
11
- "version": "10.1.7",
11
+ "version": "10.4.0-beta.16",
12
12
  "description": "",
13
13
  "scripts": {},
14
14
  "main": "lib/index.js",
package/lib/index.js CHANGED
@@ -97,7 +97,7 @@ class Categorize extends HTMLElement {
97
97
  if (autoplayAudioEnabled && completeAudioEnabled && !this.audioComplete) {
98
98
  if (elementContext) {
99
99
  const audio = elementContext.querySelector('audio');
100
- const isInsidePrompt = audio && audio.closest('.preview-prompt');
100
+ const isInsidePrompt = audio && audio.closest('#preview-prompt');
101
101
 
102
102
  // only require audio completion if audio exists and is inside the prompt
103
103
  if (audio && isInsidePrompt) {
@@ -209,7 +209,7 @@ class Categorize extends HTMLElement {
209
209
  if (mutation.type === 'childList') {
210
210
  if (this._audioInitialized) return;
211
211
  const audio = this.querySelector('audio');
212
- const isInsidePrompt = audio && audio.closest('.preview-prompt');
212
+ const isInsidePrompt = audio && audio.closest('#preview-prompt');
213
213
  if (!this._model) return;
214
214
  if (!this._model.autoplayAudioEnabled) return;
215
215
  if (audio && !isInsidePrompt) return;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_client","_mathRendering","_renderUi","_piePlayerEvents","_categorize","Categorize","HTMLElement","constructor","_defineProperty2","default","_mathRenderPending","requestAnimationFrame","_mathObserver","_mathObserverPaused","disconnect","renderMath","setTimeout","observe","childList","subtree","characterData","_root","_initMathObserver","MutationObserver","_scheduleMathRender","_disconnectMathObserver","model","m","_model","eliminateBlindAnswersFromSession","dispatchEvent","ModelSetEvent","tagName","toLowerCase","isComplete","_audioInitialized","render","autoplayAudioEnabled","choices","completeAudioEnabled","hasUnplacedChoices","possibleResponses","responseAreasToBeFilled","elementContext","audioComplete","audio","querySelector","isInsidePrompt","closest","_session","answers","Array","isArray","filledResponseAreas","filter","answer","length","areResponseAreasFilled","duplicatesAllowed","some","choice","categoryCount","allAnswersIds","map","flat","requiredAnswersPlaced","response","every","val","includes","session","s","mappedChoices","c","id","filteredAnswers","answerChoices","changeAnswers","selector","SessionChangedEvent","onShowCorrectToggle","_createAudioInfoToast","info","document","createElement","Object","assign","style","position","top","width","height","display","justifyContent","alignItems","background","zIndex","cursor","img","src","EnableAudioAutoplayImage","alt","appendChild","connectedCallback","observer","mutationsList","forEach","mutation","type","container","enableAudio","play","removeChild","removeEventListener","paused","addEventListener","handlePlaying","audioStartTime","Date","getTime","handleEnded","audioEndTime","waitTime","_audio","_handlePlaying","_handleEnded","_enableAudio","disconnectedCallback","unmount","el","React","CategorizeComponent","onAnswersChange","bind","pauseMathObserver","resumeMathObserver","createRoot","exports"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { renderMath } from '@pie-lib/math-rendering';\nimport { EnableAudioAutoplayImage } from '@pie-lib/render-ui';\nimport { SessionChangedEvent, ModelSetEvent } from '@pie-framework/pie-player-events';\nimport CategorizeComponent from './categorize';\n\nexport default class Categorize extends HTMLElement {\n constructor() {\n super();\n this._root = null;\n this._mathObserver = null;\n this._mathRenderPending = false;\n }\n\n _scheduleMathRender = () => {\n if (this._mathRenderPending) return;\n\n this._mathRenderPending = true;\n\n requestAnimationFrame(() => {\n if (this._mathObserver && !this._mathObserverPaused) {\n this._mathObserver.disconnect();\n }\n\n renderMath(this);\n\n this._mathRenderPending = false;\n\n setTimeout(() => {\n if (this._mathObserver && !this._mathObserverPaused) {\n this._mathObserver.observe(this, {\n childList: true,\n subtree: true,\n characterData: false,\n });\n }\n }, 50);\n });\n };\n\n _initMathObserver() {\n if (this._mathObserver) return;\n\n this._mathObserver = new MutationObserver(() => {\n this._scheduleMathRender();\n });\n\n this._mathObserver.observe(this, {\n childList: true,\n subtree: true,\n characterData: false,\n });\n }\n\n _disconnectMathObserver() {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n this._mathObserver = null;\n }\n }\n\n pauseMathObserver = () => {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n this._mathObserverPaused = true;\n }\n };\n\n resumeMathObserver = () => {\n if (this._mathObserverPaused) {\n this._mathObserverPaused = false;\n\n if (this._mathObserver) {\n this._mathObserver.observe(this, {\n childList: true,\n subtree: true,\n characterData: false,\n });\n }\n }\n };\n\n set model(m) {\n this._model = m;\n\n this.eliminateBlindAnswersFromSession();\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), this.isComplete(), !!this._model));\n // reset the audioInitialized to false since the model changed, and we might need to reinitialize the audio\n this._audioInitialized = false;\n\n this.render();\n }\n\n isComplete() {\n const {\n autoplayAudioEnabled,\n choices,\n completeAudioEnabled,\n hasUnplacedChoices,\n possibleResponses,\n responseAreasToBeFilled,\n } = this._model || {};\n const elementContext = this;\n\n // check audio completion if audio settings are enabled and audio actually exists\n if (autoplayAudioEnabled && completeAudioEnabled && !this.audioComplete) {\n if (elementContext) {\n const audio = elementContext.querySelector('audio');\n const isInsidePrompt = audio && audio.closest('.preview-prompt');\n\n // only require audio completion if audio exists and is inside the prompt\n if (audio && isInsidePrompt) {\n return false;\n }\n }\n }\n\n if (!this._session || !this._session.answers) {\n return false;\n }\n\n const { answers } = this._session;\n\n if (!Array.isArray(answers)) {\n return false;\n }\n\n // filter answers by category and count the ones with content\n const filledResponseAreas = answers.filter((answer) => answer.choices.length).length;\n // check if an answer choice was added to at least as many response areas\n // as the number of populated response areas in the correct answer\n const areResponseAreasFilled = filledResponseAreas >= responseAreasToBeFilled;\n // check if multiple placements are allowed\n const duplicatesAllowed = (choices || []).some((choice) => choice.categoryCount === 0);\n\n if (duplicatesAllowed) {\n // an answer choice can be used multiple times\n return areResponseAreasFilled;\n }\n\n // any correct answer have any unplaced answer choices (by the author)\n if (hasUnplacedChoices) {\n return areResponseAreasFilled;\n }\n\n const allAnswersIds = answers.map((answer) => answer.choices).flat();\n\n // check if any correct answer have any unplaced answer choices (by the student)\n const requiredAnswersPlaced = (possibleResponses || []).some((response) =>\n response.every((val) => allAnswersIds.includes(val)),\n );\n\n // true - all choices (required for a correct response) were placed into a response area\n return requiredAnswersPlaced;\n }\n\n set session(s) {\n if (s && !s.answers) {\n s.answers = [];\n }\n\n this._session = s;\n this.render();\n }\n\n get session() {\n return this._session;\n }\n\n eliminateBlindAnswersFromSession() {\n const { answers = [] } = this._session || {};\n const { choices = [] } = this._model || {};\n\n const mappedChoices = choices.map((c) => c.id) || [];\n const filteredAnswers = answers.map((answer) => {\n const answerChoices = answer?.choices || [];\n answer.choices = answerChoices.filter((c) => mappedChoices.includes(c));\n\n return answer;\n });\n\n if (filteredAnswers.length > 0) {\n this.changeAnswers(filteredAnswers);\n }\n }\n\n changeAnswers(answers) {\n this._session.answers = answers;\n this._session.selector = 'Mouse';\n\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), this.isComplete()));\n\n this.render();\n }\n\n onShowCorrectToggle() {\n renderMath(this);\n }\n\n _createAudioInfoToast() {\n const info = document.createElement('div');\n info.id = 'play-audio-info';\n\n Object.assign(info.style, {\n position: 'absolute',\n top: 0,\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n background: 'white',\n zIndex: '1000',\n cursor: 'pointer',\n });\n\n const img = document.createElement('img');\n img.src = EnableAudioAutoplayImage;\n img.alt = 'Click anywhere to enable audio autoplay';\n img.width = 500;\n img.height = 300;\n\n info.appendChild(img);\n return info;\n }\n\n connectedCallback() {\n this._initMathObserver();\n \n // Observation: audio in Chrome will have the autoplay attribute,\n // while other browsers will not have the autoplay attribute and will need a user interaction to play the audio\n // This workaround fixes the issue of audio being cached and played on any user interaction in Safari and Firefox\n const observer = new MutationObserver((mutationsList, observer) => {\n mutationsList.forEach((mutation) => {\n if (mutation.type === 'childList') {\n if (this._audioInitialized) return;\n const audio = this.querySelector('audio');\n const isInsidePrompt = audio && audio.closest('.preview-prompt');\n\n if (!this._model) return;\n if (!this._model.autoplayAudioEnabled) return;\n if (audio && !isInsidePrompt) return;\n if (!audio) return;\n\n const info = this._createAudioInfoToast();\n const container = this.querySelector('#main-container');\n const enableAudio = () => {\n if (this.querySelector('#play-audio-info')) {\n audio.play();\n container.removeChild(info);\n }\n\n document.removeEventListener('click', enableAudio);\n };\n\n // if the audio is paused, it means the user has not interacted with the page yet and the audio will not play\n // FIX FOR SAFARI: play with a slight delay to check if autoplay was blocked\n setTimeout(() => {\n if (audio.paused && !this.querySelector('#play-audio-info')) {\n // add info message as a toast to enable audio playback\n container.appendChild(info);\n document.addEventListener('click', enableAudio);\n } else {\n document.removeEventListener('click', enableAudio);\n }\n }, 500);\n\n // we need to listen for the playing event to remove the toast in case the audio plays because of re-rendering\n const handlePlaying = () => {\n //timestamp when auto-played audio started playing\n this._session.audioStartTime = this._session.audioStartTime || new Date().getTime();\n\n const info = this.querySelector('#play-audio-info');\n if (info) {\n container.removeChild(info);\n }\n\n audio.removeEventListener('playing', handlePlaying);\n };\n\n audio.addEventListener('playing', handlePlaying);\n\n // we need to listen for the ended event to update the isComplete state\n const handleEnded = () => {\n //timestamp when auto-played audio completed playing\n this._session.audioEndTime = this._session.audioEndTime || new Date().getTime();\n\n let { audioStartTime, audioEndTime, waitTime } = this._session;\n if (!waitTime && audioStartTime && audioEndTime) {\n // waitTime is elapsed time the user waited for auto-played audio to finish\n this._session.waitTime = audioEndTime - audioStartTime;\n }\n\n this.audioComplete = true;\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), this.isComplete()));\n\n audio.removeEventListener('ended', handleEnded);\n };\n\n audio.addEventListener('ended', handleEnded);\n\n // store references to remove later\n this._audio = audio;\n this._handlePlaying = handlePlaying;\n this._handleEnded = handleEnded;\n this._enableAudio = enableAudio;\n // set to true to prevent multiple initializations\n this._audioInitialized = true;\n\n observer.disconnect();\n }\n });\n });\n\n observer.observe(this, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n this._disconnectMathObserver();\n \n document.removeEventListener('click', this._enableAudio);\n\n if (this._audio) {\n this._audio.removeEventListener('playing', this._handlePlaying);\n this._audio.removeEventListener('ended', this._handleEnded);\n this._audio = null;\n }\n\n if (this._root) {\n this._root.unmount();\n }\n }\n\n render() {\n if (this._model && this._session) {\n const el = React.createElement(CategorizeComponent, {\n model: this._model,\n session: this._session,\n onAnswersChange: this.changeAnswers.bind(this),\n onShowCorrectToggle: this.onShowCorrectToggle.bind(this),\n pauseMathObserver: this.pauseMathObserver,\n resumeMathObserver: this.resumeMathObserver,\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n }\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEe,MAAMM,UAAU,SAASC,WAAW,CAAC;EAClDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAAC,IAAAC,gBAAA,CAAAC,OAAA,+BAMY,MAAM;MAC1B,IAAI,IAAI,CAACC,kBAAkB,EAAE;MAE7B,IAAI,CAACA,kBAAkB,GAAG,IAAI;MAE9BC,qBAAqB,CAAC,MAAM;QAC1B,IAAI,IAAI,CAACC,aAAa,IAAI,CAAC,IAAI,CAACC,mBAAmB,EAAE;UACnD,IAAI,CAACD,aAAa,CAACE,UAAU,CAAC,CAAC;QACjC;QAEA,IAAAC,yBAAU,EAAC,IAAI,CAAC;QAEhB,IAAI,CAACL,kBAAkB,GAAG,KAAK;QAE/BM,UAAU,CAAC,MAAM;UACf,IAAI,IAAI,CAACJ,aAAa,IAAI,CAAC,IAAI,CAACC,mBAAmB,EAAE;YACnD,IAAI,CAACD,aAAa,CAACK,OAAO,CAAC,IAAI,EAAE;cAC/BC,SAAS,EAAE,IAAI;cACfC,OAAO,EAAE,IAAI;cACbC,aAAa,EAAE;YACjB,CAAC,CAAC;UACJ;QACF,CAAC,EAAE,EAAE,CAAC;MACR,CAAC,CAAC;IACJ,CAAC;IAAA,IAAAZ,gBAAA,CAAAC,OAAA,6BAuBmB,MAAM;MACxB,IAAI,IAAI,CAACG,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IACP,IAAI,IAAI,CAACR,MAAM,IAAI,IAAI,CAACqB,QAAQ,EAAE;MAChC,MAAMgF,EAAE,gBAAGC,cAAK,CAAC9C,aAAa,CAAC+C,mBAAmB,EAAE;QAClDzG,KAAK,EAAE,IAAI,CAACE,MAAM;QAClB0C,OAAO,EAAE,IAAI,CAACrB,QAAQ;QACtBmF,eAAe,EAAE,IAAI,CAACvD,aAAa,CAACwD,IAAI,CAAC,IAAI,CAAC;QAC9CrD,mBAAmB,EAAE,IAAI,CAACA,mBAAmB,CAACqD,IAAI,CAAC,IAAI,CAAC;QACxDC,iBAAiB,EAAE,IAAI,CAACA,iBAAiB;QACzCC,kBAAkB,EAAE,IAAI,CAACA;MAC3B,CAAC,CAAC;MAEF,IAAI,CAAC,IAAI,CAAClH,KAAK,EAAE;QACf,IAAI,CAACA,KAAK,GAAG,IAAAmH,kBAAU,EAAC,IAAI,CAAC;MAC/B;MACA,IAAI,CAACnH,KAAK,CAACe,MAAM,CAAC6F,EAAE,CAAC;IACvB;EACF;AACF;AAACQ,OAAA,CAAAhI,OAAA,GAAAJ,UAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_client","_mathRendering","_renderUi","_piePlayerEvents","_categorize","Categorize","HTMLElement","constructor","_defineProperty2","default","_mathRenderPending","requestAnimationFrame","_mathObserver","_mathObserverPaused","disconnect","renderMath","setTimeout","observe","childList","subtree","characterData","_root","_initMathObserver","MutationObserver","_scheduleMathRender","_disconnectMathObserver","model","m","_model","eliminateBlindAnswersFromSession","dispatchEvent","ModelSetEvent","tagName","toLowerCase","isComplete","_audioInitialized","render","autoplayAudioEnabled","choices","completeAudioEnabled","hasUnplacedChoices","possibleResponses","responseAreasToBeFilled","elementContext","audioComplete","audio","querySelector","isInsidePrompt","closest","_session","answers","Array","isArray","filledResponseAreas","filter","answer","length","areResponseAreasFilled","duplicatesAllowed","some","choice","categoryCount","allAnswersIds","map","flat","requiredAnswersPlaced","response","every","val","includes","session","s","mappedChoices","c","id","filteredAnswers","answerChoices","changeAnswers","selector","SessionChangedEvent","onShowCorrectToggle","_createAudioInfoToast","info","document","createElement","Object","assign","style","position","top","width","height","display","justifyContent","alignItems","background","zIndex","cursor","img","src","EnableAudioAutoplayImage","alt","appendChild","connectedCallback","observer","mutationsList","forEach","mutation","type","container","enableAudio","play","removeChild","removeEventListener","paused","addEventListener","handlePlaying","audioStartTime","Date","getTime","handleEnded","audioEndTime","waitTime","_audio","_handlePlaying","_handleEnded","_enableAudio","disconnectedCallback","unmount","el","React","CategorizeComponent","onAnswersChange","bind","pauseMathObserver","resumeMathObserver","createRoot","exports"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { renderMath } from '@pie-lib/math-rendering';\nimport { EnableAudioAutoplayImage } from '@pie-lib/render-ui';\nimport { SessionChangedEvent, ModelSetEvent } from '@pie-framework/pie-player-events';\nimport CategorizeComponent from './categorize';\n\nexport default class Categorize extends HTMLElement {\n constructor() {\n super();\n this._root = null;\n this._mathObserver = null;\n this._mathRenderPending = false;\n }\n\n _scheduleMathRender = () => {\n if (this._mathRenderPending) return;\n\n this._mathRenderPending = true;\n\n requestAnimationFrame(() => {\n if (this._mathObserver && !this._mathObserverPaused) {\n this._mathObserver.disconnect();\n }\n\n renderMath(this);\n\n this._mathRenderPending = false;\n\n setTimeout(() => {\n if (this._mathObserver && !this._mathObserverPaused) {\n this._mathObserver.observe(this, {\n childList: true,\n subtree: true,\n characterData: false,\n });\n }\n }, 50);\n });\n };\n\n _initMathObserver() {\n if (this._mathObserver) return;\n\n this._mathObserver = new MutationObserver(() => {\n this._scheduleMathRender();\n });\n\n this._mathObserver.observe(this, {\n childList: true,\n subtree: true,\n characterData: false,\n });\n }\n\n _disconnectMathObserver() {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n this._mathObserver = null;\n }\n }\n\n pauseMathObserver = () => {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n this._mathObserverPaused = true;\n }\n };\n\n resumeMathObserver = () => {\n if (this._mathObserverPaused) {\n this._mathObserverPaused = false;\n\n if (this._mathObserver) {\n this._mathObserver.observe(this, {\n childList: true,\n subtree: true,\n characterData: false,\n });\n }\n }\n };\n\n set model(m) {\n this._model = m;\n\n this.eliminateBlindAnswersFromSession();\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), this.isComplete(), !!this._model));\n // reset the audioInitialized to false since the model changed, and we might need to reinitialize the audio\n this._audioInitialized = false;\n\n this.render();\n }\n\n isComplete() {\n const {\n autoplayAudioEnabled,\n choices,\n completeAudioEnabled,\n hasUnplacedChoices,\n possibleResponses,\n responseAreasToBeFilled,\n } = this._model || {};\n const elementContext = this;\n\n // check audio completion if audio settings are enabled and audio actually exists\n if (autoplayAudioEnabled && completeAudioEnabled && !this.audioComplete) {\n if (elementContext) {\n const audio = elementContext.querySelector('audio');\n const isInsidePrompt = audio && audio.closest('#preview-prompt');\n\n // only require audio completion if audio exists and is inside the prompt\n if (audio && isInsidePrompt) {\n return false;\n }\n }\n }\n\n if (!this._session || !this._session.answers) {\n return false;\n }\n\n const { answers } = this._session;\n\n if (!Array.isArray(answers)) {\n return false;\n }\n\n // filter answers by category and count the ones with content\n const filledResponseAreas = answers.filter((answer) => answer.choices.length).length;\n // check if an answer choice was added to at least as many response areas\n // as the number of populated response areas in the correct answer\n const areResponseAreasFilled = filledResponseAreas >= responseAreasToBeFilled;\n // check if multiple placements are allowed\n const duplicatesAllowed = (choices || []).some((choice) => choice.categoryCount === 0);\n\n if (duplicatesAllowed) {\n // an answer choice can be used multiple times\n return areResponseAreasFilled;\n }\n\n // any correct answer have any unplaced answer choices (by the author)\n if (hasUnplacedChoices) {\n return areResponseAreasFilled;\n }\n\n const allAnswersIds = answers.map((answer) => answer.choices).flat();\n\n // check if any correct answer have any unplaced answer choices (by the student)\n const requiredAnswersPlaced = (possibleResponses || []).some((response) =>\n response.every((val) => allAnswersIds.includes(val)),\n );\n\n // true - all choices (required for a correct response) were placed into a response area\n return requiredAnswersPlaced;\n }\n\n set session(s) {\n if (s && !s.answers) {\n s.answers = [];\n }\n\n this._session = s;\n this.render();\n }\n\n get session() {\n return this._session;\n }\n\n eliminateBlindAnswersFromSession() {\n const { answers = [] } = this._session || {};\n const { choices = [] } = this._model || {};\n\n const mappedChoices = choices.map((c) => c.id) || [];\n const filteredAnswers = answers.map((answer) => {\n const answerChoices = answer?.choices || [];\n answer.choices = answerChoices.filter((c) => mappedChoices.includes(c));\n\n return answer;\n });\n\n if (filteredAnswers.length > 0) {\n this.changeAnswers(filteredAnswers);\n }\n }\n\n changeAnswers(answers) {\n this._session.answers = answers;\n this._session.selector = 'Mouse';\n\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), this.isComplete()));\n\n this.render();\n }\n\n onShowCorrectToggle() {\n renderMath(this);\n }\n\n _createAudioInfoToast() {\n const info = document.createElement('div');\n info.id = 'play-audio-info';\n\n Object.assign(info.style, {\n position: 'absolute',\n top: 0,\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n background: 'white',\n zIndex: '1000',\n cursor: 'pointer',\n });\n\n const img = document.createElement('img');\n img.src = EnableAudioAutoplayImage;\n img.alt = 'Click anywhere to enable audio autoplay';\n img.width = 500;\n img.height = 300;\n\n info.appendChild(img);\n return info;\n }\n\n connectedCallback() {\n this._initMathObserver();\n \n // Observation: audio in Chrome will have the autoplay attribute,\n // while other browsers will not have the autoplay attribute and will need a user interaction to play the audio\n // This workaround fixes the issue of audio being cached and played on any user interaction in Safari and Firefox\n const observer = new MutationObserver((mutationsList, observer) => {\n mutationsList.forEach((mutation) => {\n if (mutation.type === 'childList') {\n if (this._audioInitialized) return;\n const audio = this.querySelector('audio');\n const isInsidePrompt = audio && audio.closest('#preview-prompt');\n\n if (!this._model) return;\n if (!this._model.autoplayAudioEnabled) return;\n if (audio && !isInsidePrompt) return;\n if (!audio) return;\n\n const info = this._createAudioInfoToast();\n const container = this.querySelector('#main-container');\n const enableAudio = () => {\n if (this.querySelector('#play-audio-info')) {\n audio.play();\n container.removeChild(info);\n }\n\n document.removeEventListener('click', enableAudio);\n };\n\n // if the audio is paused, it means the user has not interacted with the page yet and the audio will not play\n // FIX FOR SAFARI: play with a slight delay to check if autoplay was blocked\n setTimeout(() => {\n if (audio.paused && !this.querySelector('#play-audio-info')) {\n // add info message as a toast to enable audio playback\n container.appendChild(info);\n document.addEventListener('click', enableAudio);\n } else {\n document.removeEventListener('click', enableAudio);\n }\n }, 500);\n\n // we need to listen for the playing event to remove the toast in case the audio plays because of re-rendering\n const handlePlaying = () => {\n //timestamp when auto-played audio started playing\n this._session.audioStartTime = this._session.audioStartTime || new Date().getTime();\n\n const info = this.querySelector('#play-audio-info');\n if (info) {\n container.removeChild(info);\n }\n\n audio.removeEventListener('playing', handlePlaying);\n };\n\n audio.addEventListener('playing', handlePlaying);\n\n // we need to listen for the ended event to update the isComplete state\n const handleEnded = () => {\n //timestamp when auto-played audio completed playing\n this._session.audioEndTime = this._session.audioEndTime || new Date().getTime();\n\n let { audioStartTime, audioEndTime, waitTime } = this._session;\n if (!waitTime && audioStartTime && audioEndTime) {\n // waitTime is elapsed time the user waited for auto-played audio to finish\n this._session.waitTime = audioEndTime - audioStartTime;\n }\n\n this.audioComplete = true;\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), this.isComplete()));\n\n audio.removeEventListener('ended', handleEnded);\n };\n\n audio.addEventListener('ended', handleEnded);\n\n // store references to remove later\n this._audio = audio;\n this._handlePlaying = handlePlaying;\n this._handleEnded = handleEnded;\n this._enableAudio = enableAudio;\n // set to true to prevent multiple initializations\n this._audioInitialized = true;\n\n observer.disconnect();\n }\n });\n });\n\n observer.observe(this, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n this._disconnectMathObserver();\n \n document.removeEventListener('click', this._enableAudio);\n\n if (this._audio) {\n this._audio.removeEventListener('playing', this._handlePlaying);\n this._audio.removeEventListener('ended', this._handleEnded);\n this._audio = null;\n }\n\n if (this._root) {\n this._root.unmount();\n }\n }\n\n render() {\n if (this._model && this._session) {\n const el = React.createElement(CategorizeComponent, {\n model: this._model,\n session: this._session,\n onAnswersChange: this.changeAnswers.bind(this),\n onShowCorrectToggle: this.onShowCorrectToggle.bind(this),\n pauseMathObserver: this.pauseMathObserver,\n resumeMathObserver: this.resumeMathObserver,\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n }\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEe,MAAMM,UAAU,SAASC,WAAW,CAAC;EAClDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAAC,IAAAC,gBAAA,CAAAC,OAAA,+BAMY,MAAM;MAC1B,IAAI,IAAI,CAACC,kBAAkB,EAAE;MAE7B,IAAI,CAACA,kBAAkB,GAAG,IAAI;MAE9BC,qBAAqB,CAAC,MAAM;QAC1B,IAAI,IAAI,CAACC,aAAa,IAAI,CAAC,IAAI,CAACC,mBAAmB,EAAE;UACnD,IAAI,CAACD,aAAa,CAACE,UAAU,CAAC,CAAC;QACjC;QAEA,IAAAC,yBAAU,EAAC,IAAI,CAAC;QAEhB,IAAI,CAACL,kBAAkB,GAAG,KAAK;QAE/BM,UAAU,CAAC,MAAM;UACf,IAAI,IAAI,CAACJ,aAAa,IAAI,CAAC,IAAI,CAACC,mBAAmB,EAAE;YACnD,IAAI,CAACD,aAAa,CAACK,OAAO,CAAC,IAAI,EAAE;cAC/BC,SAAS,EAAE,IAAI;cACfC,OAAO,EAAE,IAAI;cACbC,aAAa,EAAE;YACjB,CAAC,CAAC;UACJ;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;IACpB;IAEA,IAAI,IAAI,CAACtG,KAAK,EAAE;MACd,IAAI,CAACA,KAAK,CAAC2G,OAAO,CAAC,CAAC;IACtB;EACF;EAEA5F,MAAMA,CAAA,EAAG;IACP,IAAI,IAAI,CAACR,MAAM,IAAI,IAAI,CAACqB,QAAQ,EAAE;MAChC,MAAMgF,EAAE,gBAAGC,cAAK,CAAC9C,aAAa,CAAC+C,mBAAmB,EAAE;QAClDzG,KAAK,EAAE,IAAI,CAACE,MAAM;QAClB0C,OAAO,EAAE,IAAI,CAACrB,QAAQ;QACtBmF,eAAe,EAAE,IAAI,CAACvD,aAAa,CAACwD,IAAI,CAAC,IAAI,CAAC;QAC9CrD,mBAAmB,EAAE,IAAI,CAACA,mBAAmB,CAACqD,IAAI,CAAC,IAAI,CAAC;QACxDC,iBAAiB,EAAE,IAAI,CAACA,iBAAiB;QACzCC,kBAAkB,EAAE,IAAI,CAACA;MAC3B,CAAC,CAAC;MAEF,IAAI,CAAC,IAAI,CAAClH,KAAK,EAAE;QACf,IAAI,CAACA,KAAK,GAAG,IAAAmH,kBAAU,EAAC,IAAI,CAAC;MAC/B;MACA,IAAI,CAACnH,KAAK,CAACe,MAAM,CAAC6F,EAAE,CAAC;IACvB;EACF;AACF;AAACQ,OAAA,CAAAhI,OAAA,GAAAJ,UAAA","ignoreList":[]}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "13.2.1",
7
+ "version": "13.2.2-beta.10",
8
8
  "description": "",
9
9
  "author": "pie framework developers",
10
10
  "license": "ISC",
@@ -16,11 +16,11 @@
16
16
  "@mui/material": "^7.3.4",
17
17
  "@pie-framework/pie-player-events": "^0.1.0",
18
18
  "@pie-lib/categorize": "2.0.2",
19
- "@pie-lib/config-ui": "13.0.17",
20
- "@pie-lib/correct-answer-toggle": "4.0.7",
21
- "@pie-lib/drag": "4.1.2",
19
+ "@pie-lib/config-ui": "13.0.22-beta.4",
20
+ "@pie-lib/correct-answer-toggle": "4.0.5",
21
+ "@pie-lib/drag": "4.0.6",
22
22
  "@pie-lib/math-rendering": "5.1.0",
23
- "@pie-lib/render-ui": "7.0.1",
23
+ "@pie-lib/render-ui": "6.1.3",
24
24
  "@pie-lib/translator": "4.0.2",
25
25
  "debug": "^4.1.1",
26
26
  "lodash-es": "^4.17.23",
@@ -28,7 +28,7 @@
28
28
  "react": "18.3.1",
29
29
  "react-dom": "18.3.1"
30
30
  },
31
- "gitHead": "5635523a84dd61f007275dcb853627b1ff0c6792",
31
+ "gitHead": "fd5f60835c5b7014018b70e2eebdbd6ae52900f8",
32
32
  "scripts": {
33
33
  "postpublish": "../../scripts/postpublish"
34
34
  },