@pie-element/likert 4.2.1 → 4.2.2-beta.2

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,81 +3,63 @@
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
- ## [4.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.2.0...@pie-element/likert@4.2.1) (2026-08-26)
6
+ ## [4.2.2-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.7...@pie-element/likert@4.2.2-beta.2) (2026-08-26)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/likert
9
9
 
10
- # [4.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.11...@pie-element/likert@4.2.0) (2026-08-21)
10
+ # [4.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.6...@pie-element/likert@4.4.0-beta.7) (2026-08-20)
11
11
 
12
- ### Bug Fixes
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
- - **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)
16
-
17
- ### Features
12
+ **Note:** Version bump only for package @pie-element/likert
18
13
 
19
- - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
14
+ # [4.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.5...@pie-element/likert@4.4.0-beta.6) (2026-08-14)
20
15
 
21
- ## [4.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.10...@pie-element/likert@4.1.11) (2026-08-19)
16
+ **Note:** Version bump only for package @pie-element/likert
22
17
 
23
- ### Bug Fixes
18
+ # [4.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.4...@pie-element/likert@4.4.0-beta.5) (2026-08-11)
24
19
 
25
- - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
20
+ **Note:** Version bump only for package @pie-element/likert
26
21
 
27
- ## [4.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.8...@pie-element/likert@4.1.10) (2026-08-13)
22
+ # [4.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.3...@pie-element/likert@4.4.0-beta.4) (2026-08-11)
28
23
 
29
24
  **Note:** Version bump only for package @pie-element/likert
30
25
 
31
- ## [4.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.7...@pie-element/likert@4.1.9) (2026-08-11)
26
+ # [4.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.2...@pie-element/likert@4.4.0-beta.3) (2026-08-11)
32
27
 
33
28
  **Note:** Version bump only for package @pie-element/likert
34
29
 
35
- ## [4.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.7...@pie-element/likert@4.1.8) (2026-07-31)
30
+ # [4.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.1...@pie-element/likert@4.4.0-beta.2) (2026-08-11)
36
31
 
37
32
  **Note:** Version bump only for package @pie-element/likert
38
33
 
39
- ## [4.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.6...@pie-element/likert@4.1.7) (2026-07-08)
40
-
41
- ### Bug Fixes
34
+ # [4.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.4.0-beta.0...@pie-element/likert@4.4.0-beta.1) (2026-08-07)
42
35
 
43
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
36
+ **Note:** Version bump only for package @pie-element/likert
44
37
 
45
- ## [4.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.5...@pie-element/likert@4.1.6) (2026-07-02)
38
+ # [4.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.3.0-beta.0...@pie-element/likert@4.4.0-beta.0) (2026-08-07)
46
39
 
47
- ### Bug Fixes
40
+ **Note:** Version bump only for package @pie-element/likert
48
41
 
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))
42
+ # [4.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.3.0-beta.0...@pie-element/likert@4.3.0-beta.1) (2026-08-07)
51
43
 
52
- ## [4.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.4...@pie-element/likert@4.1.5) (2026-06-22)
44
+ **Note:** Version bump only for package @pie-element/likert
53
45
 
54
- ### Bug Fixes
46
+ # [4.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.2.0-beta.0...@pie-element/likert@4.3.0-beta.0) (2026-08-07)
55
47
 
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
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
48
+ **Note:** Version bump only for package @pie-element/likert
58
49
 
59
- ## [4.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.3...@pie-element/likert@4.1.4) (2026-06-17)
50
+ # [4.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.0...@pie-element/likert@4.2.0-beta.0) (2026-08-07)
60
51
 
61
52
  ### Bug Fixes
62
53
 
54
+ - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
55
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
63
56
  - 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
-
65
- ## [4.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.2...@pie-element/likert@4.1.3) (2026-06-12)
66
-
67
- ### Bug Fixes
68
-
57
+ - 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))
58
+ - 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))
69
59
  - 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
-
71
- ## [4.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.1...@pie-element/likert@4.1.2) (2026-06-04)
72
-
73
- ### Bug Fixes
74
-
75
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
76
60
  - dedupe @tiptap/\* and react-transition-group PIE-624 ([87f07f3](https://github.com/pie-framework/pie-elements/commit/87f07f31c38b0fe876f87229c48adc566c369bb9))
77
-
78
- ## [4.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.0...@pie-element/likert@4.1.1) (2026-05-21)
79
-
80
- **Note:** Version bump only for package @pie-element/likert
61
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
62
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
81
63
 
82
64
  # [4.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@4.1.0-next.1...@pie-element/likert@4.1.0) (2026-05-21)
83
65
 
@@ -3,79 +3,62 @@
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
- ## [3.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.2.0...@pie-element/likert-configure@3.2.1) (2026-08-26)
6
+ # [3.4.0-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.7...@pie-element/likert-configure@3.4.0-beta.8) (2026-08-26)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/likert-configure
9
9
 
10
- # [3.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.11...@pie-element/likert-configure@3.2.0) (2026-08-21)
10
+ # [3.4.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.6...@pie-element/likert-configure@3.4.0-beta.7) (2026-08-20)
11
11
 
12
- ### Bug Fixes
13
-
14
- - **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)
15
-
16
- ### Features
12
+ **Note:** Version bump only for package @pie-element/likert-configure
17
13
 
18
- - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
14
+ # [3.4.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.5...@pie-element/likert-configure@3.4.0-beta.6) (2026-08-14)
19
15
 
20
- ## [3.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.10...@pie-element/likert-configure@3.1.11) (2026-08-19)
16
+ **Note:** Version bump only for package @pie-element/likert-configure
21
17
 
22
- ### Bug Fixes
18
+ # [3.4.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.4...@pie-element/likert-configure@3.4.0-beta.5) (2026-08-11)
23
19
 
24
- - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
20
+ **Note:** Version bump only for package @pie-element/likert-configure
25
21
 
26
- ## [3.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.8...@pie-element/likert-configure@3.1.10) (2026-08-13)
22
+ # [3.4.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.3...@pie-element/likert-configure@3.4.0-beta.4) (2026-08-11)
27
23
 
28
24
  **Note:** Version bump only for package @pie-element/likert-configure
29
25
 
30
- ## [3.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.7...@pie-element/likert-configure@3.1.9) (2026-08-11)
26
+ # [3.4.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.2...@pie-element/likert-configure@3.4.0-beta.3) (2026-08-11)
31
27
 
32
28
  **Note:** Version bump only for package @pie-element/likert-configure
33
29
 
34
- ## [3.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.7...@pie-element/likert-configure@3.1.8) (2026-07-31)
30
+ # [3.4.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.1...@pie-element/likert-configure@3.4.0-beta.2) (2026-08-11)
35
31
 
36
32
  **Note:** Version bump only for package @pie-element/likert-configure
37
33
 
38
- ## [3.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.6...@pie-element/likert-configure@3.1.7) (2026-07-08)
39
-
40
- ### Bug Fixes
34
+ # [3.4.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.4.0-beta.0...@pie-element/likert-configure@3.4.0-beta.1) (2026-08-07)
41
35
 
42
- - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
36
+ **Note:** Version bump only for package @pie-element/likert-configure
43
37
 
44
- ## [3.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.5...@pie-element/likert-configure@3.1.6) (2026-07-02)
38
+ # [3.4.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.3.0-beta.0...@pie-element/likert-configure@3.4.0-beta.0) (2026-08-07)
45
39
 
46
- ### Bug Fixes
40
+ **Note:** Version bump only for package @pie-element/likert-configure
47
41
 
48
- - 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))
49
- - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
42
+ # [3.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.3.0-beta.0...@pie-element/likert-configure@3.3.0-beta.1) (2026-08-07)
50
43
 
51
- ## [3.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.4...@pie-element/likert-configure@3.1.5) (2026-06-22)
44
+ **Note:** Version bump only for package @pie-element/likert-configure
52
45
 
53
- ### Bug Fixes
46
+ # [3.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.2.0-beta.0...@pie-element/likert-configure@3.3.0-beta.0) (2026-08-07)
54
47
 
55
- - 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))
56
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
48
+ **Note:** Version bump only for package @pie-element/likert-configure
57
49
 
58
- ## [3.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.3...@pie-element/likert-configure@3.1.4) (2026-06-17)
50
+ # [3.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.0...@pie-element/likert-configure@3.2.0-beta.0) (2026-08-07)
59
51
 
60
52
  ### Bug Fixes
61
53
 
54
+ - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
55
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
62
56
  - 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))
63
-
64
- ## [3.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.2...@pie-element/likert-configure@3.1.3) (2026-06-12)
65
-
66
- ### Bug Fixes
67
-
57
+ - 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))
58
+ - 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))
68
59
  - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
69
-
70
- ## [3.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.1...@pie-element/likert-configure@3.1.2) (2026-06-04)
71
-
72
- ### Bug Fixes
73
-
74
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
75
-
76
- ## [3.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.0...@pie-element/likert-configure@3.1.1) (2026-05-21)
77
-
78
- **Note:** Version bump only for package @pie-element/likert-configure
60
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
61
+ - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
79
62
 
80
63
  # [3.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@3.1.0-next.1...@pie-element/likert-configure@3.1.0) (2026-05-21)
81
64
 
@@ -35,16 +35,10 @@ const RadioButtonsWrapper = (0, _styles.styled)('div')({
35
35
  display: 'flex',
36
36
  flexDirection: 'column'
37
37
  });
38
-
39
- /*
40
- * A column header is text, so it needs 4.5:1 and no neutral token clears that in
41
- * every scheme -- `--pie-border-gray` tops out at 3.17:1. grey[400] measured 1.88:1
42
- * on white, so this was failing already; `--pie-text` is the only correct answer.
43
- */
44
38
  const RadioButtonsColumnHeader = (0, _styles.styled)('p')(({
45
39
  theme
46
40
  }) => ({
47
- color: _renderUi.color.text(),
41
+ color: theme.palette.grey[400],
48
42
  fontSize: theme.typography.fontSize - 2
49
43
  }));
50
44
  const LikertLabelHolder = (0, _styles.styled)('div')(({
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","names":["_react","_interopRequireDefault","require","_propTypes","_editableHtmlTipTap","_Radio","_RadioGroup","_FormControlLabel","_configUi","_styles","_lodashEs","_likertEntities","_choiceGenerator","_renderUi","Panel","toggle","radio","settings","PromptHolder","styled","InputContainer","theme","width","paddingTop","spacing","marginBottom","RadioButtonsWrapper","display","flexDirection","RadioButtonsColumnHeader","color","text","fontSize","typography","LikertLabelHolder","alignItems","LikertOptionsHolder","justifyContent","LikertLabelInput","marginRight","ErrorMessage","palette","error","main","StyledNumberTextField","NumberTextField","FlexRow","LikertValueHolder","paddingLeft","StyledEditableHtml","EditableHtml","InputFormGroupIndex","ErrorText","CustomColorRadio","Radio","tertiary","LikertOrientation","props","model","onChangeModel","onChangeLikertOrientation","e","likertOrientation","target","value","default","createElement","name","onChange","LIKERT_ORIENTATION","horizontal","control","label","vertical","LikertScale","onChangeLikertScale","likertScale","choices","generateChoices","likertType","LIKERT_SCALE","likert3","likert5","likert7","LikertType","onChangeLikertType","LIKERT_TYPE","agreement","frequency","yesNo","importance","likelihood","like","buildValuesMap","reduce","acc","choice","accClone","choiceValue","parseInt","Design","configuration","imageSupport","onChoiceChanged","onConfigurationChanged","onPromptChanged","onTeacherInstructionsChanged","uploadSoundSupport","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","baseInputConfiguration","likertChoice","errors","extraCSSRules","spellCheckEnabled","teacherInstructionsEnabled","promptError","teacherInstructionsError","valuesMap","panelProperties","getPluginProps","Object","assign","layout","ConfigLayout","dimensions","hideSettings","onChangeConfiguration","groups","Properties","markup","nonEmpty","pluginProps","inputConfiguration","disableUnderline","map","index","key","c","max","min","t","Main","React","Component","constructor","args","_defineProperty2","onModelChanged","merge","splice","render","_extends2","exports","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","delete","_default"],"sources":["../src/main.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport Radio from '@mui/material/Radio';\nimport RadioGroup from '@mui/material/RadioGroup';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport { InputContainer, settings, layout, NumberTextField } from '@pie-lib/config-ui';\nimport { styled } from '@mui/material/styles';\nimport { merge } from 'lodash-es';\nimport { LIKERT_TYPE, LIKERT_SCALE, LIKERT_ORIENTATION } from './likertEntities';\nimport generateChoices from './choiceGenerator';\nimport { color } from '@pie-lib/render-ui';\n\nconst { Panel, toggle, radio } = settings;\n\nconst PromptHolder = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n}));\n\nconst RadioButtonsWrapper = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\n/*\n * A column header is text, so it needs 4.5:1 and no neutral token clears that in\n * every scheme -- `--pie-border-gray` tops out at 3.17:1. grey[400] measured 1.88:1\n * on white, so this was failing already; `--pie-text` is the only correct answer.\n */\nconst RadioButtonsColumnHeader = styled('p')(({ theme }) => ({\n color: color.text(),\n fontSize: theme.typography.fontSize - 2,\n}));\n\nconst LikertLabelHolder = styled('div')(({ theme }) => ({\n display: 'flex',\n width: '100%',\n alignItems: 'flex-start',\n marginBottom: theme.spacing(2),\n}));\n\nconst LikertOptionsHolder = styled('div')(({ theme }) => ({\n display: 'flex',\n width: '100%',\n justifyContent: 'space-around',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst LikertLabelInput = styled(InputContainer)({\n width: 'calc(100% - 200px)',\n marginRight: 0,\n});\n\nconst ErrorMessage = styled('p')(({ theme }) => ({\n color: theme.palette.error.main,\n fontSize: theme.typography.fontSize - 2,\n}));\n\nconst StyledNumberTextField = styled(NumberTextField)({\n width: '100%',\n});\n\nconst FlexRow = styled('div')({\n display: 'flex',\n flexDirection: 'row',\n});\n\nconst LikertValueHolder = styled('div')(({ theme }) => ({\n paddingLeft: theme.spacing(2.5),\n width: '150px',\n}));\n\nconst StyledEditableHtml = styled(EditableHtml)(({ theme }) => ({\n paddingTop: theme.spacing(2),\n}));\n\nconst InputFormGroupIndex = styled('span')(({ theme }) => ({\n width: '30px',\n paddingTop: theme.spacing(4),\n}));\n\nconst ErrorText = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nconst CustomColorRadio = styled(Radio)({\n color: `${color.tertiary()} !important`,\n});\n\nconst LikertOrientation = (props) => {\n const { model, onChangeModel } = props;\n\n const onChangeLikertOrientation = (e) => {\n const likertOrientation = e.target.value;\n\n onChangeModel({ ...model, likertOrientation });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Likert Orientation</RadioButtonsColumnHeader>\n <RadioGroup\n aria-label=\"likertOrientation\"\n name=\"likertOrientation\"\n value={model.likertOrientation}\n onChange={onChangeLikertOrientation}\n >\n <FormControlLabel value={LIKERT_ORIENTATION.horizontal} control={<CustomColorRadio />} label=\"Horizontal\" />\n <FormControlLabel value={LIKERT_ORIENTATION.vertical} control={<CustomColorRadio />} label=\"Vertical\" />\n </RadioGroup>\n </RadioButtonsWrapper>\n );\n};\n\nconst LikertScale = (props) => {\n const { model, onChangeModel } = props;\n const onChangeLikertScale = (e) => {\n const likertScale = e.target.value;\n\n onChangeModel({\n ...model,\n likertScale,\n choices: generateChoices(likertScale, model.likertType),\n });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Likert Scale</RadioButtonsColumnHeader>\n <RadioGroup aria-label=\"likertScale\" name=\"likertScale\" value={model.likertScale} onChange={onChangeLikertScale}>\n <FormControlLabel value={LIKERT_SCALE.likert3} control={<CustomColorRadio />} label=\"Likert 3\" />\n <FormControlLabel value={LIKERT_SCALE.likert5} control={<CustomColorRadio />} label=\"Likert 5\" />\n <FormControlLabel value={LIKERT_SCALE.likert7} control={<CustomColorRadio />} label=\"Likert 7\" />\n </RadioGroup>\n </RadioButtonsWrapper>\n );\n};\n\nconst LikertType = (props) => {\n const { model, onChangeModel } = props;\n const onChangeLikertType = (e) => {\n const likertType = e.target.value;\n\n onChangeModel({\n ...model,\n likertType,\n choices: generateChoices(model.likertScale, likertType),\n });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Label Type</RadioButtonsColumnHeader>\n\n <FlexRow>\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.agreement} control={<CustomColorRadio />} label=\"Agreement\" />\n <FormControlLabel value={LIKERT_TYPE.frequency} control={<CustomColorRadio />} label=\"Frequency\" />\n <FormControlLabel value={LIKERT_TYPE.yesNo} control={<CustomColorRadio />} label=\"Yes/No\" />\n </RadioGroup>\n\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.importance} control={<CustomColorRadio />} label=\"Importance\" />\n <FormControlLabel value={LIKERT_TYPE.likelihood} control={<CustomColorRadio />} label=\"Likelihood\" />\n <FormControlLabel value={LIKERT_TYPE.like} control={<CustomColorRadio />} label=\"Like\" />\n </RadioGroup>\n </FlexRow>\n </RadioButtonsWrapper>\n );\n};\n\nconst buildValuesMap = (model) =>\n model.choices.reduce((acc, choice) => {\n const accClone = { ...acc };\n const choiceValue = parseInt(choice.value);\n\n if (!accClone[choiceValue]) {\n accClone[choiceValue] = 0;\n }\n\n return { ...accClone, [choiceValue]: accClone[choiceValue] + 1 };\n }, {});\n\nconst Design = (props) => {\n const {\n configuration,\n imageSupport,\n model,\n onChangeModel,\n onChoiceChanged,\n onConfigurationChanged,\n onPromptChanged,\n onTeacherInstructionsChanged,\n uploadSoundSupport,\n } = props;\n const {\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n baseInputConfiguration = {},\n likertChoice = {},\n } = configuration || {};\n const { errors = {}, extraCSSRules, spellCheckEnabled, teacherInstructionsEnabled } = model || {};\n const { prompt: promptError, teacherInstructions: teacherInstructionsError } = errors;\n\n const valuesMap = buildValuesMap(model);\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n };\n\n const getPluginProps = (props = {}) => {\n return Object.assign(\n {\n ...baseInputConfiguration,\n },\n props || {},\n );\n };\n\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <PromptHolder label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={teacherInstructionsError}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n />\n {teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}\n </PromptHolder>\n )}\n\n <PromptHolder label={prompt.label}>\n <EditableHtml\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n spellCheck={spellCheckEnabled}\n disableUnderline\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n />\n {promptError && <ErrorText>{promptError}</ErrorText>}\n </PromptHolder>\n\n <LikertOptionsHolder>\n <LikertScale model={model} onChangeModel={onChangeModel} />\n <LikertType model={model} onChangeModel={onChangeModel} />\n <LikertOrientation model={model} onChangeModel={onChangeModel} />\n </LikertOptionsHolder>\n\n {model.choices.map((choice, index) => (\n <LikertLabelHolder key={`choice-${index}`}>\n <InputFormGroupIndex>{index + 1}.</InputFormGroupIndex>\n <LikertLabelInput key={`likert-label-${index}`} label={'Likert Label'}>\n <StyledEditableHtml\n markup={choice.label || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, label: c })}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(likertChoice?.inputConfiguration)}\n />\n </LikertLabelInput>\n\n <LikertValueHolder>\n <StyledNumberTextField\n label={'Likert Value'}\n value={choice.value}\n max={100}\n min={-100}\n onChange={(e, t) => {\n onChoiceChanged(index, { ...choice, value: t });\n }}\n imageSupport={imageSupport}\n />\n {valuesMap[choice.value] && valuesMap[choice.value] > 1 && (\n <ErrorMessage>Value should be unique</ErrorMessage>\n )}\n </LikertValueHolder>\n </LikertLabelHolder>\n ))}\n </layout.ConfigLayout>\n );\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n model.choices = model.choices.map((choice) => merge({}, choice));\n model.choices.splice(index, 1, choice);\n\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onChoiceChanged={this.onChoiceChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nexport default Main;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,iBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;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C9BM,MAAM,EAAER,kBAAS,CAACK,IAAI,CAACH;EACzB,CAAC;AACH,CAAC;AAAA,IAAAO,QAAA,GAAAV,OAAA,CAAA5F,OAAA,GAgCYiF,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"main.js","names":["_react","_interopRequireDefault","require","_propTypes","_editableHtmlTipTap","_Radio","_RadioGroup","_FormControlLabel","_configUi","_styles","_lodashEs","_likertEntities","_choiceGenerator","_renderUi","Panel","toggle","radio","settings","PromptHolder","styled","InputContainer","theme","width","paddingTop","spacing","marginBottom","RadioButtonsWrapper","display","flexDirection","RadioButtonsColumnHeader","color","palette","grey","fontSize","typography","LikertLabelHolder","alignItems","LikertOptionsHolder","justifyContent","LikertLabelInput","marginRight","ErrorMessage","error","main","StyledNumberTextField","NumberTextField","FlexRow","LikertValueHolder","paddingLeft","StyledEditableHtml","EditableHtml","InputFormGroupIndex","ErrorText","CustomColorRadio","Radio","tertiary","LikertOrientation","props","model","onChangeModel","onChangeLikertOrientation","e","likertOrientation","target","value","default","createElement","name","onChange","LIKERT_ORIENTATION","horizontal","control","label","vertical","LikertScale","onChangeLikertScale","likertScale","choices","generateChoices","likertType","LIKERT_SCALE","likert3","likert5","likert7","LikertType","onChangeLikertType","LIKERT_TYPE","agreement","frequency","yesNo","importance","likelihood","like","buildValuesMap","reduce","acc","choice","accClone","choiceValue","parseInt","Design","configuration","imageSupport","onChoiceChanged","onConfigurationChanged","onPromptChanged","onTeacherInstructionsChanged","uploadSoundSupport","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","baseInputConfiguration","likertChoice","errors","extraCSSRules","spellCheckEnabled","teacherInstructionsEnabled","promptError","teacherInstructionsError","valuesMap","panelProperties","getPluginProps","Object","assign","layout","ConfigLayout","dimensions","hideSettings","onChangeConfiguration","groups","Properties","markup","nonEmpty","pluginProps","inputConfiguration","disableUnderline","map","index","key","c","max","min","t","Main","React","Component","constructor","args","_defineProperty2","onModelChanged","merge","splice","render","_extends2","exports","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","delete","_default"],"sources":["../src/main.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport Radio from '@mui/material/Radio';\nimport RadioGroup from '@mui/material/RadioGroup';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport { InputContainer, settings, layout, NumberTextField } from '@pie-lib/config-ui';\nimport { styled } from '@mui/material/styles';\nimport { merge } from 'lodash-es';\nimport { LIKERT_TYPE, LIKERT_SCALE, LIKERT_ORIENTATION } from './likertEntities';\nimport generateChoices from './choiceGenerator';\nimport { color } from '@pie-lib/render-ui';\n\nconst { Panel, toggle, radio } = settings;\n\nconst PromptHolder = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n}));\n\nconst RadioButtonsWrapper = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst RadioButtonsColumnHeader = styled('p')(({ theme }) => ({\n color: theme.palette.grey[400],\n fontSize: theme.typography.fontSize - 2,\n}));\n\nconst LikertLabelHolder = styled('div')(({ theme }) => ({\n display: 'flex',\n width: '100%',\n alignItems: 'flex-start',\n marginBottom: theme.spacing(2),\n}));\n\nconst LikertOptionsHolder = styled('div')(({ theme }) => ({\n display: 'flex',\n width: '100%',\n justifyContent: 'space-around',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst LikertLabelInput = styled(InputContainer)({\n width: 'calc(100% - 200px)',\n marginRight: 0,\n});\n\nconst ErrorMessage = styled('p')(({ theme }) => ({\n color: theme.palette.error.main,\n fontSize: theme.typography.fontSize - 2,\n}));\n\nconst StyledNumberTextField = styled(NumberTextField)({\n width: '100%',\n});\n\nconst FlexRow = styled('div')({\n display: 'flex',\n flexDirection: 'row',\n});\n\nconst LikertValueHolder = styled('div')(({ theme }) => ({\n paddingLeft: theme.spacing(2.5),\n width: '150px',\n}));\n\nconst StyledEditableHtml = styled(EditableHtml)(({ theme }) => ({\n paddingTop: theme.spacing(2),\n}));\n\nconst InputFormGroupIndex = styled('span')(({ theme }) => ({\n width: '30px',\n paddingTop: theme.spacing(4),\n}));\n\nconst ErrorText = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nconst CustomColorRadio = styled(Radio)({\n color: `${color.tertiary()} !important`,\n});\n\nconst LikertOrientation = (props) => {\n const { model, onChangeModel } = props;\n\n const onChangeLikertOrientation = (e) => {\n const likertOrientation = e.target.value;\n\n onChangeModel({ ...model, likertOrientation });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Likert Orientation</RadioButtonsColumnHeader>\n <RadioGroup\n aria-label=\"likertOrientation\"\n name=\"likertOrientation\"\n value={model.likertOrientation}\n onChange={onChangeLikertOrientation}\n >\n <FormControlLabel value={LIKERT_ORIENTATION.horizontal} control={<CustomColorRadio />} label=\"Horizontal\" />\n <FormControlLabel value={LIKERT_ORIENTATION.vertical} control={<CustomColorRadio />} label=\"Vertical\" />\n </RadioGroup>\n </RadioButtonsWrapper>\n );\n};\n\nconst LikertScale = (props) => {\n const { model, onChangeModel } = props;\n const onChangeLikertScale = (e) => {\n const likertScale = e.target.value;\n\n onChangeModel({\n ...model,\n likertScale,\n choices: generateChoices(likertScale, model.likertType),\n });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Likert Scale</RadioButtonsColumnHeader>\n <RadioGroup aria-label=\"likertScale\" name=\"likertScale\" value={model.likertScale} onChange={onChangeLikertScale}>\n <FormControlLabel value={LIKERT_SCALE.likert3} control={<CustomColorRadio />} label=\"Likert 3\" />\n <FormControlLabel value={LIKERT_SCALE.likert5} control={<CustomColorRadio />} label=\"Likert 5\" />\n <FormControlLabel value={LIKERT_SCALE.likert7} control={<CustomColorRadio />} label=\"Likert 7\" />\n </RadioGroup>\n </RadioButtonsWrapper>\n );\n};\n\nconst LikertType = (props) => {\n const { model, onChangeModel } = props;\n const onChangeLikertType = (e) => {\n const likertType = e.target.value;\n\n onChangeModel({\n ...model,\n likertType,\n choices: generateChoices(model.likertScale, likertType),\n });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Label Type</RadioButtonsColumnHeader>\n\n <FlexRow>\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.agreement} control={<CustomColorRadio />} label=\"Agreement\" />\n <FormControlLabel value={LIKERT_TYPE.frequency} control={<CustomColorRadio />} label=\"Frequency\" />\n <FormControlLabel value={LIKERT_TYPE.yesNo} control={<CustomColorRadio />} label=\"Yes/No\" />\n </RadioGroup>\n\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.importance} control={<CustomColorRadio />} label=\"Importance\" />\n <FormControlLabel value={LIKERT_TYPE.likelihood} control={<CustomColorRadio />} label=\"Likelihood\" />\n <FormControlLabel value={LIKERT_TYPE.like} control={<CustomColorRadio />} label=\"Like\" />\n </RadioGroup>\n </FlexRow>\n </RadioButtonsWrapper>\n );\n};\n\nconst buildValuesMap = (model) =>\n model.choices.reduce((acc, choice) => {\n const accClone = { ...acc };\n const choiceValue = parseInt(choice.value);\n\n if (!accClone[choiceValue]) {\n accClone[choiceValue] = 0;\n }\n\n return { ...accClone, [choiceValue]: accClone[choiceValue] + 1 };\n }, {});\n\nconst Design = (props) => {\n const {\n configuration,\n imageSupport,\n model,\n onChangeModel,\n onChoiceChanged,\n onConfigurationChanged,\n onPromptChanged,\n onTeacherInstructionsChanged,\n uploadSoundSupport,\n } = props;\n const {\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n baseInputConfiguration = {},\n likertChoice = {},\n } = configuration || {};\n const { errors = {}, extraCSSRules, spellCheckEnabled, teacherInstructionsEnabled } = model || {};\n const { prompt: promptError, teacherInstructions: teacherInstructionsError } = errors;\n\n const valuesMap = buildValuesMap(model);\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n };\n\n const getPluginProps = (props = {}) => {\n return Object.assign(\n {\n ...baseInputConfiguration,\n },\n props || {},\n );\n };\n\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <PromptHolder label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={teacherInstructionsError}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n />\n {teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}\n </PromptHolder>\n )}\n\n <PromptHolder label={prompt.label}>\n <EditableHtml\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n spellCheck={spellCheckEnabled}\n disableUnderline\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n />\n {promptError && <ErrorText>{promptError}</ErrorText>}\n </PromptHolder>\n\n <LikertOptionsHolder>\n <LikertScale model={model} onChangeModel={onChangeModel} />\n <LikertType model={model} onChangeModel={onChangeModel} />\n <LikertOrientation model={model} onChangeModel={onChangeModel} />\n </LikertOptionsHolder>\n\n {model.choices.map((choice, index) => (\n <LikertLabelHolder key={`choice-${index}`}>\n <InputFormGroupIndex>{index + 1}.</InputFormGroupIndex>\n <LikertLabelInput key={`likert-label-${index}`} label={'Likert Label'}>\n <StyledEditableHtml\n markup={choice.label || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, label: c })}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(likertChoice?.inputConfiguration)}\n />\n </LikertLabelInput>\n\n <LikertValueHolder>\n <StyledNumberTextField\n label={'Likert Value'}\n value={choice.value}\n max={100}\n min={-100}\n onChange={(e, t) => {\n onChoiceChanged(index, { ...choice, value: t });\n }}\n imageSupport={imageSupport}\n />\n {valuesMap[choice.value] && valuesMap[choice.value] > 1 && (\n <ErrorMessage>Value should be unique</ErrorMessage>\n )}\n </LikertValueHolder>\n </LikertLabelHolder>\n ))}\n </layout.ConfigLayout>\n );\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n model.choices = model.choices.map((choice) => merge({}, choice));\n model.choices.splice(index, 1, choice);\n\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onChoiceChanged={this.onChoiceChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nexport default Main;\n"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xCYiF,IAAI,eACI;EACjBxF,KAAK,EAAEoG,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClCC,gBAAgB,EAAEH,kBAAS,CAACI,IAAI;EAChCV,cAAc,EAAEM,kBAAS,CAACK,IAAI,CAACH,UAAU;EACzCxD,sBAAsB,EAAEsD,kBAAS,CAACK,IAAI,CAACH,UAAU;EACjD1D,YAAY,EAAEwD,kBAAS,CAACM,KAAK,CAAC;IAC5BC,GAAG,EAAEP,kBAAS,CAACK,IAAI,CAACH,UAAU;IAC9BM,MAAM,EAAER,kBAAS,CAACK,IAAI,CAACH;EACzB,CAAC;AACH,CAAC;AAAA,IAAAO,QAAA,GAAAV,OAAA,CAAA5F,OAAA,GAgCYiF,IAAI","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/likert-configure",
3
3
  "private": true,
4
- "version": "3.2.1",
4
+ "version": "3.4.0-beta.8",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -12,9 +12,9 @@
12
12
  "@mui/icons-material": "^7.3.4",
13
13
  "@mui/material": "^7.3.4",
14
14
  "@pie-framework/pie-configure-events": "^1.3.0",
15
- "@pie-lib/config-ui": "13.0.17",
16
- "@pie-lib/editable-html-tip-tap": "2.1.15",
17
- "@pie-lib/render-ui": "7.0.1",
15
+ "@pie-lib/config-ui": "13.1.0-beta.6",
16
+ "@pie-lib/editable-html-tip-tap": "2.2.0-beta.6",
17
+ "@pie-lib/render-ui": "6.1.3",
18
18
  "debug": "^4.1.1",
19
19
  "prop-types": "^15.8.1",
20
20
  "react": "18.3.1",
@@ -3,15 +3,51 @@
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
- ## [3.0.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.3...@pie-element/likert-controller@3.0.5) (2026-08-13)
6
+ # [3.3.0-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.7...@pie-element/likert-controller@3.3.0-beta.8) (2026-08-26)
7
7
 
8
8
  **Note:** Version bump only for package @pie-element/likert-controller
9
9
 
10
- ## [3.0.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.3...@pie-element/likert-controller@3.0.4) (2026-08-11)
10
+ # [3.3.0-beta.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.6...@pie-element/likert-controller@3.3.0-beta.7) (2026-08-20)
11
11
 
12
12
  **Note:** Version bump only for package @pie-element/likert-controller
13
13
 
14
- ## [3.0.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.2...@pie-element/likert-controller@3.0.3) (2026-05-21)
14
+ # [3.3.0-beta.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.5...@pie-element/likert-controller@3.3.0-beta.6) (2026-08-14)
15
+
16
+ **Note:** Version bump only for package @pie-element/likert-controller
17
+
18
+ # [3.3.0-beta.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.4...@pie-element/likert-controller@3.3.0-beta.5) (2026-08-11)
19
+
20
+ **Note:** Version bump only for package @pie-element/likert-controller
21
+
22
+ # [3.3.0-beta.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.3...@pie-element/likert-controller@3.3.0-beta.4) (2026-08-11)
23
+
24
+ **Note:** Version bump only for package @pie-element/likert-controller
25
+
26
+ # [3.3.0-beta.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.2...@pie-element/likert-controller@3.3.0-beta.3) (2026-08-11)
27
+
28
+ **Note:** Version bump only for package @pie-element/likert-controller
29
+
30
+ # [3.3.0-beta.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.1...@pie-element/likert-controller@3.3.0-beta.2) (2026-08-11)
31
+
32
+ **Note:** Version bump only for package @pie-element/likert-controller
33
+
34
+ # [3.3.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.3.0-beta.0...@pie-element/likert-controller@3.3.0-beta.1) (2026-08-07)
35
+
36
+ **Note:** Version bump only for package @pie-element/likert-controller
37
+
38
+ # [3.3.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.2.0-beta.0...@pie-element/likert-controller@3.3.0-beta.0) (2026-08-07)
39
+
40
+ **Note:** Version bump only for package @pie-element/likert-controller
41
+
42
+ # [3.2.0-beta.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.2.0-beta.0...@pie-element/likert-controller@3.2.0-beta.1) (2026-08-07)
43
+
44
+ **Note:** Version bump only for package @pie-element/likert-controller
45
+
46
+ # [3.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.1.0-beta.0...@pie-element/likert-controller@3.2.0-beta.0) (2026-08-07)
47
+
48
+ **Note:** Version bump only for package @pie-element/likert-controller
49
+
50
+ # [3.1.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.2...@pie-element/likert-controller@3.1.0-beta.0) (2026-08-07)
15
51
 
16
52
  **Note:** Version bump only for package @pie-element/likert-controller
17
53
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/likert-controller",
3
3
  "private": true,
4
- "version": "3.0.5",
4
+ "version": "3.3.0-beta.8",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "4.2.1",
7
+ "version": "4.2.2-beta.2",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -16,7 +16,7 @@
16
16
  "@mui/material": "^7.3.4",
17
17
  "@pie-framework/pie-player-events": "^0.1.0",
18
18
  "@pie-lib/math-rendering": "5.1.0",
19
- "@pie-lib/render-ui": "7.0.1",
19
+ "@pie-lib/render-ui": "6.1.3",
20
20
  "classnames": "^2.2.6",
21
21
  "debug": "^4.1.1",
22
22
  "lodash-es": "^4.17.23",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "author": "",
29
29
  "license": "ISC",
30
- "gitHead": "5635523a84dd61f007275dcb853627b1ff0c6792",
30
+ "gitHead": "fcf6139719821e97ab40cb60e9a953fe427d86a4",
31
31
  "main": "lib/index.js",
32
32
  "module": "src/index.js"
33
33
  }