@pie-element/math-inline 12.2.2-beta.4 → 12.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -28
- package/configure/CHANGELOG.md +48 -28
- package/configure/lib/general-config-block.js +3 -3
- package/configure/lib/general-config-block.js.map +1 -1
- package/configure/lib/response.js +7 -7
- package/configure/lib/response.js.map +1 -1
- package/configure/package.json +7 -7
- package/controller/CHANGELOG.md +3 -47
- package/controller/package.json +1 -1
- package/lib/main.js +7 -7
- package/lib/main.js.map +1 -1
- package/lib/simple-question-block.js +2 -2
- package/lib/simple-question-block.js.map +1 -1
- package/package.json +6 -6
- package/configure/lib/__tests__/configure.test.js +0 -237
- package/controller/lib/__tests__/index.test.js +0 -1416
- package/docs/demo/pie.manifest.json +0 -11
- package/lib/__tests__/main.test.js +0 -516
- package/lib/__tests__/simple-question-block.test.js +0 -129
package/CHANGELOG.md
CHANGED
|
@@ -3,70 +3,90 @@
|
|
|
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
|
-
## [12.2.
|
|
6
|
+
## [12.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.2.2...@pie-element/math-inline@12.2.3) (2026-09-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-element/math-inline
|
|
9
9
|
|
|
10
|
-
## [12.2.2
|
|
10
|
+
## [12.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.2.1...@pie-element/math-inline@12.2.2) (2026-09-04)
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- bump libs PIE-978, PIE-980 ([96489ba](https://github.com/pie-framework/pie-elements/commit/96489ba3c220604f21c3ce4500d79f4389266e9e))
|
|
13
15
|
|
|
14
|
-
## [12.2.
|
|
16
|
+
## [12.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.2.0...@pie-element/math-inline@12.2.1) (2026-08-26)
|
|
15
17
|
|
|
16
18
|
**Note:** Version bump only for package @pie-element/math-inline
|
|
17
19
|
|
|
18
|
-
# [12.
|
|
20
|
+
# [12.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.11...@pie-element/math-inline@12.2.0) (2026-08-21)
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
### Bug Fixes
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
- move [@pie-lib](https://github.com/pie-lib) deps back to latest, off next prereleases PIE-927 ([a53e012](https://github.com/pie-framework/pie-elements/commit/a53e0127eb4ac95ece54e1e2bd669ae4974f4251))
|
|
25
|
+
- **theming:** move the grey palette reads onto --pie-\* tokens PIE-856 ([d7d005b](https://github.com/pie-framework/pie-elements/commit/d7d005bf081843335b4b0377852f2ecd075cb62d)), closes [#000000](https://github.com/pie-framework/pie-elements/issues/000000) [#E0E1E6](https://github.com/pie-framework/pie-elements/issues/E0E1E6) [#646464](https://github.com/pie-framework/pie-elements/issues/646464) [#616161](https://github.com/pie-framework/pie-elements/issues/616161) [#E0E1E6](https://github.com/pie-framework/pie-elements/issues/E0E1E6) [#C0C3](https://github.com/pie-framework/pie-elements/issues/C0C3)
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
### Features
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
- bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
## [12.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.10...@pie-element/math-inline@12.1.11) (2026-08-19)
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
### Bug Fixes
|
|
31
34
|
|
|
32
|
-
|
|
35
|
+
- bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
|
|
33
36
|
|
|
34
|
-
|
|
37
|
+
## [12.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.8...@pie-element/math-inline@12.1.10) (2026-08-13)
|
|
35
38
|
|
|
36
39
|
**Note:** Version bump only for package @pie-element/math-inline
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
## [12.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.7...@pie-element/math-inline@12.1.9) (2026-08-11)
|
|
39
42
|
|
|
40
43
|
**Note:** Version bump only for package @pie-element/math-inline
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
## [12.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.7...@pie-element/math-inline@12.1.8) (2026-07-31)
|
|
43
46
|
|
|
44
47
|
**Note:** Version bump only for package @pie-element/math-inline
|
|
45
48
|
|
|
46
|
-
|
|
49
|
+
## [12.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.6...@pie-element/math-inline@12.1.7) (2026-07-08)
|
|
47
50
|
|
|
48
|
-
|
|
51
|
+
### Bug Fixes
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
- bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
|
|
51
54
|
|
|
52
|
-
|
|
55
|
+
## [12.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.5...@pie-element/math-inline@12.1.6) (2026-07-02)
|
|
53
56
|
|
|
54
|
-
|
|
57
|
+
### Bug Fixes
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
- 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))
|
|
60
|
+
- sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
|
|
57
61
|
|
|
58
|
-
|
|
62
|
+
## [12.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.4...@pie-element/math-inline@12.1.5) (2026-06-22)
|
|
59
63
|
|
|
60
64
|
### Bug Fixes
|
|
61
65
|
|
|
62
|
-
- bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
|
|
63
|
-
- bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
|
|
64
|
-
- bump shared modules and libs PIE-661 PIE-664 PIE-683 PIE-666 PIE-656 PIE-657 PIE-658 PIE-659 PIE-670 ([ebd6be4](https://github.com/pie-framework/pie-elements/commit/ebd6be4fd48fca41ad4c4908f606b25334731aed))
|
|
65
66
|
- bump shared modules and libs PIE-674, PIE-662, PIE-705, PIE-674, PIE-963 ([78a3f64](https://github.com/pie-framework/pie-elements/commit/78a3f64652c9581c61bd4159f3210fc1e32d8bcf))
|
|
66
|
-
- bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
|
|
67
|
-
- bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
|
|
68
67
|
- handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
|
|
69
|
-
|
|
68
|
+
|
|
69
|
+
## [12.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.3...@pie-element/math-inline@12.1.4) (2026-06-17)
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
- 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))
|
|
74
|
+
|
|
75
|
+
## [12.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.2...@pie-element/math-inline@12.1.3) (2026-06-12)
|
|
76
|
+
|
|
77
|
+
### Bug Fixes
|
|
78
|
+
|
|
79
|
+
- bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
|
|
80
|
+
|
|
81
|
+
## [12.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.1...@pie-element/math-inline@12.1.2) (2026-06-04)
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
- bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
|
|
86
|
+
|
|
87
|
+
## [12.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.0...@pie-element/math-inline@12.1.1) (2026-05-21)
|
|
88
|
+
|
|
89
|
+
**Note:** Version bump only for package @pie-element/math-inline
|
|
70
90
|
|
|
71
91
|
# [12.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline@12.1.0-next.1...@pie-element/math-inline@12.1.0) (2026-05-21)
|
|
72
92
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,70 +3,90 @@
|
|
|
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
|
-
|
|
6
|
+
## [11.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.2.2...@pie-element/math-inline-configure@11.2.3) (2026-09-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## [11.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.2.1...@pie-element/math-inline-configure@11.2.2) (2026-09-04)
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- bump libs PIE-978, PIE-980 ([96489ba](https://github.com/pie-framework/pie-elements/commit/96489ba3c220604f21c3ce4500d79f4389266e9e))
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
## [11.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.2.0...@pie-element/math-inline-configure@11.2.1) (2026-08-26)
|
|
15
17
|
|
|
16
18
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
17
19
|
|
|
18
|
-
# [11.
|
|
20
|
+
# [11.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.11...@pie-element/math-inline-configure@11.2.0) (2026-08-21)
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
### Bug Fixes
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
- move [@pie-lib](https://github.com/pie-lib) deps back to latest, off next prereleases PIE-927 ([a53e012](https://github.com/pie-framework/pie-elements/commit/a53e0127eb4ac95ece54e1e2bd669ae4974f4251))
|
|
25
|
+
- **theming:** move the grey palette reads onto --pie-\* tokens PIE-856 ([d7d005b](https://github.com/pie-framework/pie-elements/commit/d7d005bf081843335b4b0377852f2ecd075cb62d)), closes [#000000](https://github.com/pie-framework/pie-elements/issues/000000) [#E0E1E6](https://github.com/pie-framework/pie-elements/issues/E0E1E6) [#646464](https://github.com/pie-framework/pie-elements/issues/646464) [#616161](https://github.com/pie-framework/pie-elements/issues/616161) [#E0E1E6](https://github.com/pie-framework/pie-elements/issues/E0E1E6) [#C0C3](https://github.com/pie-framework/pie-elements/issues/C0C3)
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
### Features
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
- bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
## [11.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.10...@pie-element/math-inline-configure@11.1.11) (2026-08-19)
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
### Bug Fixes
|
|
31
34
|
|
|
32
|
-
|
|
35
|
+
- bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
|
|
33
36
|
|
|
34
|
-
|
|
37
|
+
## [11.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.8...@pie-element/math-inline-configure@11.1.10) (2026-08-13)
|
|
35
38
|
|
|
36
39
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
## [11.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.7...@pie-element/math-inline-configure@11.1.9) (2026-08-11)
|
|
39
42
|
|
|
40
43
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
## [11.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.7...@pie-element/math-inline-configure@11.1.8) (2026-07-31)
|
|
43
46
|
|
|
44
47
|
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
45
48
|
|
|
46
|
-
|
|
49
|
+
## [11.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.6...@pie-element/math-inline-configure@11.1.7) (2026-07-08)
|
|
47
50
|
|
|
48
|
-
|
|
51
|
+
### Bug Fixes
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
- bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
|
|
51
54
|
|
|
52
|
-
|
|
55
|
+
## [11.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.5...@pie-element/math-inline-configure@11.1.6) (2026-07-02)
|
|
53
56
|
|
|
54
|
-
|
|
57
|
+
### Bug Fixes
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
- 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))
|
|
60
|
+
- sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
|
|
57
61
|
|
|
58
|
-
|
|
62
|
+
## [11.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.4...@pie-element/math-inline-configure@11.1.5) (2026-06-22)
|
|
59
63
|
|
|
60
64
|
### Bug Fixes
|
|
61
65
|
|
|
62
|
-
- bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
|
|
63
|
-
- bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
|
|
64
|
-
- bump shared modules and libs PIE-661 PIE-664 PIE-683 PIE-666 PIE-656 PIE-657 PIE-658 PIE-659 PIE-670 ([ebd6be4](https://github.com/pie-framework/pie-elements/commit/ebd6be4fd48fca41ad4c4908f606b25334731aed))
|
|
65
66
|
- bump shared modules and libs PIE-674, PIE-662, PIE-705, PIE-674, PIE-963 ([78a3f64](https://github.com/pie-framework/pie-elements/commit/78a3f64652c9581c61bd4159f3210fc1e32d8bcf))
|
|
66
|
-
- bump shared modules and libs PIE-695, PIE-697, PIE-699, PIE-680, PIE-714, PIE-665, PIE-656 ([4b76ae7](https://github.com/pie-framework/pie-elements/commit/4b76ae75d1c5ea6d55f7c6fb53f299dfcbda2b1f))
|
|
67
|
-
- bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
|
|
68
67
|
- handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
|
|
69
|
-
|
|
68
|
+
|
|
69
|
+
## [11.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.3...@pie-element/math-inline-configure@11.1.4) (2026-06-17)
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
- 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))
|
|
74
|
+
|
|
75
|
+
## [11.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.2...@pie-element/math-inline-configure@11.1.3) (2026-06-12)
|
|
76
|
+
|
|
77
|
+
### Bug Fixes
|
|
78
|
+
|
|
79
|
+
- bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
|
|
80
|
+
|
|
81
|
+
## [11.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.1...@pie-element/math-inline-configure@11.1.2) (2026-06-04)
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
- bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
|
|
86
|
+
|
|
87
|
+
## [11.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.0...@pie-element/math-inline-configure@11.1.1) (2026-05-21)
|
|
88
|
+
|
|
89
|
+
**Note:** Version bump only for package @pie-element/math-inline-configure
|
|
70
90
|
|
|
71
91
|
# [11.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-inline-configure@11.1.0-next.1...@pie-element/math-inline-configure@11.1.0) (2026-05-21)
|
|
72
92
|
|
|
@@ -19,7 +19,7 @@ var _response = _interopRequireDefault(require("./response"));
|
|
|
19
19
|
var _mathToolbar = require("@pie-lib/math-toolbar");
|
|
20
20
|
var _lodashEs = require("lodash-es");
|
|
21
21
|
var _utils = require("./utils");
|
|
22
|
-
var
|
|
22
|
+
var _mathInput = require("@pie-lib/math-input");
|
|
23
23
|
var _Info = _interopRequireDefault(require("@mui/icons-material/Info"));
|
|
24
24
|
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
25
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -209,7 +209,7 @@ class GeneralConfigBlock extends React.Component {
|
|
|
209
209
|
const el = this.root.querySelector(`#${responseId}`);
|
|
210
210
|
const indexEl = this.root.querySelector(`#${responseId}Index`);
|
|
211
211
|
if (el) {
|
|
212
|
-
(0,
|
|
212
|
+
(0, _mathInput.applyStaticMath)(el);
|
|
213
213
|
indexEl.textContent = `R${idx + 1}`;
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -275,7 +275,7 @@ class GeneralConfigBlock extends React.Component {
|
|
|
275
275
|
UNSAFE_componentWillMount() {
|
|
276
276
|
if (typeof window !== 'undefined') {
|
|
277
277
|
if (!registered) {
|
|
278
|
-
(0,
|
|
278
|
+
(0, _mathInput.registerEmbed)('answerBlock', data => {
|
|
279
279
|
const genericAnswerBlock = `
|
|
280
280
|
<div class="block-container block-container-generic">
|
|
281
281
|
<div class="block-response block-response-generic" id="${data}Index">Response</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general-config-block.js","names":["React","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_editableHtmlTipTap","_configUi","_styles","_InputLabel","_Select","_MenuItem","_response","_mathToolbar","_lodashEs","_utils","_mathInputMathlive","_Info","_Tooltip","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","registered","getBlockClassNames","blockContainer","blockContainerGeneric","blockResponse","blockResponseGeneric","Container","styled","display","flexDirection","TemplateTitle","InputLabel","fontSize","Title","FlexContainer","alignItems","justifyContent","SelectContainer","InputContainer","theme","flex","width","marginTop","spacing","marginBottom","ResponseTemplate","margin","border","visibility","color","background","padding","borderRight","maxWidth","height","minHeight","textAlign","StyledTooltip","Tooltip","typography","whiteSpace","ErrorText","palette","error","main","paddingTop","PromptHolder","AdvancedResponse","REGEX","TEMPORARY_RESPONSE_FIELD","ANSWER_BLOCK_REGEX","NEWLINE_BLOCK","NEWLINE_LATEX","prepareForStatic","expression","answerBlocks","replace","prepareForModel","GeneralConfigBlock","Component","constructor","props","_defineProperty2","name","evtOrValue","model","onChange","newModel","target","value","setState","showKeypad","responseAreas","isEqual","state","root","keys","length","forEach","responseId","idx","el","querySelector","indexEl","applyStaticMath","textContent","responseIdCounter","newCounter","responses","find","response","id","validation","answer","alternates","concat","index","UNSAFE_componentWillMount","window","registerEmbed","data","genericAnswerBlock","htmlString","text","latex","componentDidMount","handleAnswerBlockDomUpdate","componentDidUpdate","render","imageSupport","uploadSoundSupport","configuration","promptEnabled","rationaleEnabled","toolbarOpts","prompt","equationEditor","promptEquationEditor","responseType","rationale","spellCheckEnabled","errors","baseInputConfiguration","cRationale","cPrompt","ignoreOrder","cIgnoreOrder","allowTrailingZeros","cAllowTrailingZeros","maxResponseAreas","maxImageWidth","maxImageHeight","mathMlOptions","validationMessage","generateValidationMessage","promptError","rationaleError","responsesErrors","responseAreasError","defaultImageMaxWidth","defaultImageMaxHeight","classNames","editor","mathToolbar","responsesToUse","ResponseTypes","advanced","slice","validationTooltip","createElement","disableFocusListener","disableTouchListener","placement","title","style","marginLeft","ref","label","onFocus","onPromptFocus","markup","nonEmpty","pluginProps","getPluginProps","inputConfiguration","spellCheck","languageCharactersProps","language","key","MenuProps","transitionDuration","enter","exit","MathToolbar","allowAnswerBlock","keypadMode","controlledKeypad","onDone","simple","map","mode","defaultResponse","onResponseChange","math","controlledKeypadMode","PropTypes","object","isRequired","func","bool","_default","exports"],"sources":["../src/general-config-block.jsx"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport { InputContainer } from '@pie-lib/config-ui';\nimport { styled } from '@mui/material/styles';\nimport InputLabel from '@mui/material/InputLabel';\nimport Select from '@mui/material/Select';\nimport MenuItem from '@mui/material/MenuItem';\nimport Response from './response';\nimport { MathToolbar } from '@pie-lib/math-toolbar';\nimport { isEqual } from 'lodash-es';\nimport { ResponseTypes, generateValidationMessage, getPluginProps } from './utils';\nimport { registerEmbed, applyStaticMath } from '@pie-lib/math-input-mathlive';\nimport Info from '@mui/icons-material/Info';\nimport Tooltip from '@mui/material/Tooltip';\n\nlet registered = false;\n\n// Helper function to get class names for HTML string generation\nconst getBlockClassNames = () => {\n // These will be generated by styled components, but we need them as strings for HTML\n // We'll use a simple approach: generate unique class names\n return {\n blockContainer: 'block-container',\n blockContainerGeneric: 'block-container-generic',\n blockResponse: 'block-response',\n blockResponseGeneric: 'block-response-generic',\n };\n};\n\nconst Container = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst TemplateTitle = styled(InputLabel)({\n fontSize: '0.85rem',\n});\n\nconst Title = styled('div')({\n fontSize: '1.1rem',\n});\n\nconst FlexContainer = styled('div')({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n});\n\nconst SelectContainer = styled(InputContainer)(({ theme }) => ({\n flex: 'initial',\n width: '40%',\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n '& > *:not(label)': {\n marginTop: theme.spacing(1),\n },\n}));\n\nconst ResponseTemplate = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n\n '.block-container': {\n margin: '8px',\n display: 'inline-flex',\n border: '2px solid grey',\n\n '.mq-cursor': {\n visibility: 'hidden',\n },\n },\n '.block-container-generic': {\n margin: '4px',\n },\n\n '.block-response': {\n flex: 2,\n color: 'grey',\n background: '#f5f5f5',\n fontSize: '0.8rem',\n padding: '4px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRight: '2px solid grey',\n },\n '.block-response-generic': {\n borderRight: 0,\n },\n\n '.response-editor ': {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n maxWidth: '900px',\n height: 'auto',\n minHeight: '130px',\n textAlign: 'left',\n padding: '8px',\n },\n\n '.math-toolbar': {\n maxWidth: '900px',\n },\n});\n\nconst StyledTooltip = styled(Tooltip)(({ theme }) => ({\n '& .MuiTooltip-tooltip': {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre-wrap',\n },\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 PromptHolder = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n}));\n\nconst AdvancedResponse = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n}));\n\nconst REGEX = /{{response}}/gm;\nconst TEMPORARY_RESPONSE_FIELD = /\\\\%response\\\\%/gm;\nconst ANSWER_BLOCK_REGEX = /\\\\embed\\{answerBlock\\}\\[r\\d*\\]/g;\nconst NEWLINE_BLOCK = /\\\\embed\\{newLine\\}\\[\\]/g;\nconst NEWLINE_LATEX = /\\\\newline/g;\n\nfunction prepareForStatic(expression) {\n if (expression) {\n let answerBlocks = 1; // assume one at least\n\n return expression\n .replace(REGEX, () => `\\\\embed{answerBlock}[r${answerBlocks++}]`)\n .replace(NEWLINE_LATEX, '\\\\embed{newLine}[]');\n }\n}\n\nfunction prepareForModel(expression) {\n if (expression) {\n return expression\n .replace(ANSWER_BLOCK_REGEX, () => '{{response}}')\n .replace(TEMPORARY_RESPONSE_FIELD, () => '{{response}}')\n .replace(NEWLINE_BLOCK, () => '\\\\newline');\n }\n}\n\nclass GeneralConfigBlock extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n configuration: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n promptEnabled: PropTypes.bool,\n rationaleEnabled: PropTypes.bool,\n toolbarOpts: PropTypes.object,\n };\n\n constructor(props) {\n super(props);\n\n const responseAreas = {};\n\n if (props.model && props.model.expression) {\n let answerBlocks = 1; // assume one at least\n // build out local state model using responses declared in expression\n\n props.model.expression.replace(REGEX, () => {\n responseAreas[`r${answerBlocks++}`] = {\n value: '',\n };\n });\n }\n\n this.state = {\n showKeypad: false,\n responseAreas,\n responseIdCounter: Object.keys(responseAreas).length,\n };\n }\n\n onChange = (name) => (evtOrValue) => {\n const { model, onChange } = this.props;\n const newModel = { ...model };\n\n if (typeof evtOrValue === 'object') {\n newModel[name] = evtOrValue.target.value;\n } else {\n newModel[name] = evtOrValue;\n }\n\n if (name === 'expression') {\n newModel[name] = prepareForModel(evtOrValue);\n }\n\n onChange(newModel);\n };\n\n onDone = () => {\n this.setState({ showKeypad: false });\n };\n\n onFocus = () => {\n this.setState({ showKeypad: true });\n };\n\n onPromptFocus = () => {\n this.setState({ showKeypad: false });\n };\n\n UNSAFE_componentWillMount() {\n if (typeof window !== 'undefined') {\n if (!registered) {\n registerEmbed('answerBlock', (data) => {\n const genericAnswerBlock = `\n <div class=\"block-container block-container-generic\">\n <div class=\"block-response block-response-generic\" id=\"${data}Index\">Response</div>\n </div>`;\n\n return {\n htmlString: genericAnswerBlock,\n text: () => 'text',\n latex: () => `\\\\embed{answerBlock}[${data}]`,\n };\n });\n\n registered = true;\n }\n }\n }\n\n componentDidMount() {\n this.handleAnswerBlockDomUpdate();\n }\n\n componentDidUpdate() {\n this.handleAnswerBlockDomUpdate();\n }\n\n handleAnswerBlockDomUpdate = () => {\n const { model } = this.props;\n\n const responseAreas = {};\n\n if (model && model.expression) {\n let answerBlocks = 1; // assume one at least\n // build out local state model using responses declared in expression\n\n model.expression.replace(REGEX, () => {\n responseAreas[`r${answerBlocks++}`] = {\n value: '',\n };\n });\n }\n\n if (!isEqual(responseAreas, this.state.responseAreas)) {\n this.setState(\n {\n responseAreas,\n },\n () => {\n if (this.root && Object.keys(responseAreas).length) {\n Object.keys(responseAreas).forEach((responseId, idx) => {\n const el = this.root.querySelector(`#${responseId}`);\n const indexEl = this.root.querySelector(`#${responseId}Index`);\n\n if (el) {\n applyStaticMath(el);\n indexEl.textContent = `R${idx + 1}`;\n }\n });\n }\n },\n );\n }\n };\n\n onAddResponse = () => {\n const { model, onChange } = this.props;\n const { responseIdCounter } = this.state;\n const newModel = { ...model };\n\n let newCounter = responseIdCounter;\n\n while (model.responses.find((response) => response.id === newCounter)) {\n newCounter++;\n }\n\n const response = {\n id: newCounter,\n validation: 'literal',\n answer: '',\n alternates: {},\n };\n\n newModel.responses = newModel.responses.concat(response);\n onChange(newModel);\n\n this.setState({\n responseIdCounter: response.id,\n });\n };\n\n onResponseChange = (response, index) => {\n const { model, onChange } = this.props;\n const newModel = { ...model };\n\n newModel.responses[index] = response;\n onChange(newModel);\n };\n\n render() {\n const { model, imageSupport, uploadSoundSupport, configuration, promptEnabled, rationaleEnabled, toolbarOpts } =\n this.props;\n const { showKeypad } = this.state;\n const {\n prompt,\n expression,\n equationEditor,\n promptEquationEditor = '8',\n responses,\n responseType,\n rationale,\n spellCheckEnabled,\n errors = {},\n } = model;\n const {\n baseInputConfiguration = {},\n rationale: cRationale = {},\n prompt: cPrompt = {},\n ignoreOrder: cIgnoreOrder = {},\n allowTrailingZeros: cAllowTrailingZeros = {},\n maxResponseAreas,\n maxImageWidth = {},\n maxImageHeight = {},\n mathMlOptions = {},\n } = configuration || {};\n const validationMessage = generateValidationMessage(configuration, model);\n const { prompt: promptError, rationale: rationaleError, responsesErrors, responseAreasError } = errors;\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const classNames = {\n editor: 'response-editor',\n mathToolbar: 'math-toolbar',\n };\n\n const responsesToUse = responseType === ResponseTypes.advanced ? responses : responses.slice(0, 1);\n\n const validationTooltip = (\n <StyledTooltip disableFocusListener disableTouchListener placement={'right'} title={validationMessage}>\n <Info fontSize={'small'} color={'primary'} style={{ marginLeft: '5px' }} />\n </StyledTooltip>\n );\n\n return (\n <Container ref={(r) => (this.root = r || this.root)}>\n {promptEnabled && (\n <PromptHolder label={cPrompt.label}>\n <EditableHtml\n onFocus={this.onPromptFocus}\n markup={prompt || ''}\n onChange={this.onChange('prompt')}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(cPrompt?.inputConfiguration, baseInputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {promptError && <ErrorText>{promptError}</ErrorText>}\n </PromptHolder>\n )}\n\n {responseType === ResponseTypes.advanced && (\n <AdvancedResponse>\n <FlexContainer style={{ justifyContent: 'flex-start' }}>\n <Title>Define Response</Title>\n {validationTooltip}\n </FlexContainer>\n\n <SelectContainer key=\"templateEditorType\" label=\"Response Template Equation Editor\">\n <Select\n onChange={this.onChange('promptEquationEditor')}\n value={promptEquationEditor}\n MenuProps={{ transitionDuration: { enter: 225, exit: 195 } }}\n >\n <MenuItem value=\"non-negative-integers\">Numeric - Non-Negative Integers</MenuItem>\n <MenuItem value=\"integers\">Numeric - Integers</MenuItem>\n <MenuItem value=\"decimals\">Numeric - Decimals</MenuItem>\n <MenuItem value=\"fractions\">Numeric - Fractions</MenuItem>\n <MenuItem value={1}>Grade 1 - 2</MenuItem>\n <MenuItem value={3}>Grade 3 - 5</MenuItem>\n <MenuItem value={6}>Grade 6 - 7</MenuItem>\n <MenuItem value={8}>Grade 8 - HS</MenuItem>\n <MenuItem value={'geometry'}>Geometry</MenuItem>\n <MenuItem value={'advanced-algebra'}>Advanced Algebra</MenuItem>\n <MenuItem value={'statistics'}>Statistics</MenuItem>\n <MenuItem value={'item-authoring'}>Item Authoring</MenuItem>\n </Select>\n </SelectContainer>\n\n <ResponseTemplate key=\"templateHolder\">\n <TemplateTitle>RESPONSE TEMPLATE</TemplateTitle>\n <MathToolbar\n classNames={classNames}\n allowAnswerBlock\n keypadMode={promptEquationEditor}\n controlledKeypad\n showKeypad={showKeypad}\n latex={prepareForStatic(expression) || ''}\n onChange={this.onChange('expression')}\n onFocus={this.onFocus}\n onDone={this.onDone}\n maxResponseAreas={maxResponseAreas}\n error={responseAreasError}\n />\n </ResponseTemplate>\n\n {responseAreasError && <ErrorText>{responseAreasError}</ErrorText>}\n </AdvancedResponse>\n )}\n\n <FlexContainer style={{ justifyContent: 'flex-start' }}>\n <Title>Define Correct Response</Title>\n {responseType === ResponseTypes.simple ? validationTooltip : null}\n </FlexContainer>\n\n <SelectContainer label=\"Equation Editor\">\n <Select\n onChange={this.onChange('equationEditor')}\n value={equationEditor}\n MenuProps={{ transitionDuration: { enter: 225, exit: 195 } }}\n >\n <MenuItem value=\"non-negative-integers\">Numeric - Non-Negative Integers</MenuItem>\n <MenuItem value=\"integers\">Numeric - Integers</MenuItem>\n <MenuItem value=\"decimals\">Numeric - Decimals</MenuItem>\n <MenuItem value=\"fractions\">Numeric - Fractions</MenuItem>\n <MenuItem value={1}>Grade 1 - 2</MenuItem>\n <MenuItem value={3}>Grade 3 - 5</MenuItem>\n <MenuItem value={6}>Grade 6 - 7</MenuItem>\n <MenuItem value={8}>Grade 8 - HS</MenuItem>\n <MenuItem value={'geometry'}>Geometry</MenuItem>\n <MenuItem value={'advanced-algebra'}>Advanced Algebra</MenuItem>\n <MenuItem value={'statistics'}>Statistics</MenuItem>\n <MenuItem value={'item-authoring'}>Item Authoring</MenuItem>\n </Select>\n </SelectContainer>\n\n {responsesToUse.map((response, idx) => (\n <Response\n key={response.id}\n mode={equationEditor}\n response={response}\n defaultResponse={responseType === ResponseTypes.simple}\n onResponseChange={this.onResponseChange}\n index={idx}\n cIgnoreOrder={cIgnoreOrder}\n cAllowTrailingZeros={cAllowTrailingZeros}\n error={responsesErrors && responsesErrors[idx]}\n />\n ))}\n\n {rationaleEnabled && (\n <PromptHolder label={cRationale.label}>\n <EditableHtml\n markup={rationale || ''}\n onChange={this.onChange('rationale')}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={rationaleError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(cRationale?.inputConfiguration, {\n ...baseInputConfiguration,\n math: {\n controlledKeypadMode: false,\n },\n })}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {rationaleError && <ErrorText>{rationaleError}</ErrorText>}\n </PromptHolder>\n )}\n </Container>\n );\n }\n}\n\nexport default GeneralConfigBlock;\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,mBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,OAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,SAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,SAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,kBAAA,GAAAd,OAAA;AACA,IAAAe,KAAA,GAAAb,sBAAA,CAAAF,OAAA;AACA,IAAAgB,QAAA,GAAAd,sBAAA,CAAAF,OAAA;AAA4C,SAAAD,wBAAAkB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAApB,uBAAA,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,EACDI,cAAc,iBAAI9K,KAAA,CAAA2L,aAAA,CAAC5G,SAAS,QAAE+F,cAA0B,CAC7C,CAEP,CAAC;EAEhB;AACF;AAAC,IAAA1E,gBAAA,CAAAvE,OAAA,EA/VKmE,kBAAkB,eACH;EACjBO,KAAK,EAAEwH,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClC9E,YAAY,EAAE4E,kBAAS,CAACC,MAAM;EAC9B5E,kBAAkB,EAAE2E,kBAAS,CAACC,MAAM;EACpC3E,aAAa,EAAE0E,kBAAS,CAACC,MAAM;EAC/BxH,QAAQ,EAAEuH,kBAAS,CAACG,IAAI,CAACD,UAAU;EACnC3E,aAAa,EAAEyE,kBAAS,CAACI,IAAI;EAC7B5E,gBAAgB,EAAEwE,kBAAS,CAACI,IAAI;EAChC3E,WAAW,EAAEuE,kBAAS,CAACC;AACzB,CAAC;AAAA,IAAAI,QAAA,GAAAC,OAAA,CAAAxM,OAAA,GAuVYmE,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"general-config-block.js","names":["React","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_editableHtmlTipTap","_configUi","_styles","_InputLabel","_Select","_MenuItem","_response","_mathToolbar","_lodashEs","_utils","_mathInput","_Info","_Tooltip","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","registered","getBlockClassNames","blockContainer","blockContainerGeneric","blockResponse","blockResponseGeneric","Container","styled","display","flexDirection","TemplateTitle","InputLabel","fontSize","Title","FlexContainer","alignItems","justifyContent","SelectContainer","InputContainer","theme","flex","width","marginTop","spacing","marginBottom","ResponseTemplate","margin","border","visibility","color","background","padding","borderRight","maxWidth","height","minHeight","textAlign","StyledTooltip","Tooltip","typography","whiteSpace","ErrorText","palette","error","main","paddingTop","PromptHolder","AdvancedResponse","REGEX","TEMPORARY_RESPONSE_FIELD","ANSWER_BLOCK_REGEX","NEWLINE_BLOCK","NEWLINE_LATEX","prepareForStatic","expression","answerBlocks","replace","prepareForModel","GeneralConfigBlock","Component","constructor","props","_defineProperty2","name","evtOrValue","model","onChange","newModel","target","value","setState","showKeypad","responseAreas","isEqual","state","root","keys","length","forEach","responseId","idx","el","querySelector","indexEl","applyStaticMath","textContent","responseIdCounter","newCounter","responses","find","response","id","validation","answer","alternates","concat","index","UNSAFE_componentWillMount","window","registerEmbed","data","genericAnswerBlock","htmlString","text","latex","componentDidMount","handleAnswerBlockDomUpdate","componentDidUpdate","render","imageSupport","uploadSoundSupport","configuration","promptEnabled","rationaleEnabled","toolbarOpts","prompt","equationEditor","promptEquationEditor","responseType","rationale","spellCheckEnabled","errors","baseInputConfiguration","cRationale","cPrompt","ignoreOrder","cIgnoreOrder","allowTrailingZeros","cAllowTrailingZeros","maxResponseAreas","maxImageWidth","maxImageHeight","mathMlOptions","validationMessage","generateValidationMessage","promptError","rationaleError","responsesErrors","responseAreasError","defaultImageMaxWidth","defaultImageMaxHeight","classNames","editor","mathToolbar","responsesToUse","ResponseTypes","advanced","slice","validationTooltip","createElement","disableFocusListener","disableTouchListener","placement","title","style","marginLeft","ref","label","onFocus","onPromptFocus","markup","nonEmpty","pluginProps","getPluginProps","inputConfiguration","spellCheck","languageCharactersProps","language","key","MenuProps","transitionDuration","enter","exit","MathToolbar","allowAnswerBlock","keypadMode","controlledKeypad","onDone","simple","map","mode","defaultResponse","onResponseChange","math","controlledKeypadMode","PropTypes","object","isRequired","func","bool","_default","exports"],"sources":["../src/general-config-block.jsx"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport { InputContainer } from '@pie-lib/config-ui';\nimport { styled } from '@mui/material/styles';\nimport InputLabel from '@mui/material/InputLabel';\nimport Select from '@mui/material/Select';\nimport MenuItem from '@mui/material/MenuItem';\nimport Response from './response';\nimport { MathToolbar } from '@pie-lib/math-toolbar';\nimport { isEqual } from 'lodash-es';\nimport { ResponseTypes, generateValidationMessage, getPluginProps } from './utils';\nimport { registerEmbed, applyStaticMath } from '@pie-lib/math-input';\nimport Info from '@mui/icons-material/Info';\nimport Tooltip from '@mui/material/Tooltip';\n\nlet registered = false;\n\n// Helper function to get class names for HTML string generation\nconst getBlockClassNames = () => {\n // These will be generated by styled components, but we need them as strings for HTML\n // We'll use a simple approach: generate unique class names\n return {\n blockContainer: 'block-container',\n blockContainerGeneric: 'block-container-generic',\n blockResponse: 'block-response',\n blockResponseGeneric: 'block-response-generic',\n };\n};\n\nconst Container = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst TemplateTitle = styled(InputLabel)({\n fontSize: '0.85rem',\n});\n\nconst Title = styled('div')({\n fontSize: '1.1rem',\n});\n\nconst FlexContainer = styled('div')({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n});\n\nconst SelectContainer = styled(InputContainer)(({ theme }) => ({\n flex: 'initial',\n width: '40%',\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n '& > *:not(label)': {\n marginTop: theme.spacing(1),\n },\n}));\n\nconst ResponseTemplate = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n\n '.block-container': {\n margin: '8px',\n display: 'inline-flex',\n border: '2px solid grey',\n\n '.mq-cursor': {\n visibility: 'hidden',\n },\n },\n '.block-container-generic': {\n margin: '4px',\n },\n\n '.block-response': {\n flex: 2,\n color: 'grey',\n background: '#f5f5f5',\n fontSize: '0.8rem',\n padding: '4px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRight: '2px solid grey',\n },\n '.block-response-generic': {\n borderRight: 0,\n },\n\n '.response-editor ': {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n maxWidth: '900px',\n height: 'auto',\n minHeight: '130px',\n textAlign: 'left',\n padding: '8px',\n },\n\n '.math-toolbar': {\n maxWidth: '900px',\n },\n});\n\nconst StyledTooltip = styled(Tooltip)(({ theme }) => ({\n '& .MuiTooltip-tooltip': {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre-wrap',\n },\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 PromptHolder = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n}));\n\nconst AdvancedResponse = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n}));\n\nconst REGEX = /{{response}}/gm;\nconst TEMPORARY_RESPONSE_FIELD = /\\\\%response\\\\%/gm;\nconst ANSWER_BLOCK_REGEX = /\\\\embed\\{answerBlock\\}\\[r\\d*\\]/g;\nconst NEWLINE_BLOCK = /\\\\embed\\{newLine\\}\\[\\]/g;\nconst NEWLINE_LATEX = /\\\\newline/g;\n\nfunction prepareForStatic(expression) {\n if (expression) {\n let answerBlocks = 1; // assume one at least\n\n return expression\n .replace(REGEX, () => `\\\\embed{answerBlock}[r${answerBlocks++}]`)\n .replace(NEWLINE_LATEX, '\\\\embed{newLine}[]');\n }\n}\n\nfunction prepareForModel(expression) {\n if (expression) {\n return expression\n .replace(ANSWER_BLOCK_REGEX, () => '{{response}}')\n .replace(TEMPORARY_RESPONSE_FIELD, () => '{{response}}')\n .replace(NEWLINE_BLOCK, () => '\\\\newline');\n }\n}\n\nclass GeneralConfigBlock extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n configuration: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n promptEnabled: PropTypes.bool,\n rationaleEnabled: PropTypes.bool,\n toolbarOpts: PropTypes.object,\n };\n\n constructor(props) {\n super(props);\n\n const responseAreas = {};\n\n if (props.model && props.model.expression) {\n let answerBlocks = 1; // assume one at least\n // build out local state model using responses declared in expression\n\n props.model.expression.replace(REGEX, () => {\n responseAreas[`r${answerBlocks++}`] = {\n value: '',\n };\n });\n }\n\n this.state = {\n showKeypad: false,\n responseAreas,\n responseIdCounter: Object.keys(responseAreas).length,\n };\n }\n\n onChange = (name) => (evtOrValue) => {\n const { model, onChange } = this.props;\n const newModel = { ...model };\n\n if (typeof evtOrValue === 'object') {\n newModel[name] = evtOrValue.target.value;\n } else {\n newModel[name] = evtOrValue;\n }\n\n if (name === 'expression') {\n newModel[name] = prepareForModel(evtOrValue);\n }\n\n onChange(newModel);\n };\n\n onDone = () => {\n this.setState({ showKeypad: false });\n };\n\n onFocus = () => {\n this.setState({ showKeypad: true });\n };\n\n onPromptFocus = () => {\n this.setState({ showKeypad: false });\n };\n\n UNSAFE_componentWillMount() {\n if (typeof window !== 'undefined') {\n if (!registered) {\n registerEmbed('answerBlock', (data) => {\n const genericAnswerBlock = `\n <div class=\"block-container block-container-generic\">\n <div class=\"block-response block-response-generic\" id=\"${data}Index\">Response</div>\n </div>`;\n\n return {\n htmlString: genericAnswerBlock,\n text: () => 'text',\n latex: () => `\\\\embed{answerBlock}[${data}]`,\n };\n });\n\n registered = true;\n }\n }\n }\n\n componentDidMount() {\n this.handleAnswerBlockDomUpdate();\n }\n\n componentDidUpdate() {\n this.handleAnswerBlockDomUpdate();\n }\n\n handleAnswerBlockDomUpdate = () => {\n const { model } = this.props;\n\n const responseAreas = {};\n\n if (model && model.expression) {\n let answerBlocks = 1; // assume one at least\n // build out local state model using responses declared in expression\n\n model.expression.replace(REGEX, () => {\n responseAreas[`r${answerBlocks++}`] = {\n value: '',\n };\n });\n }\n\n if (!isEqual(responseAreas, this.state.responseAreas)) {\n this.setState(\n {\n responseAreas,\n },\n () => {\n if (this.root && Object.keys(responseAreas).length) {\n Object.keys(responseAreas).forEach((responseId, idx) => {\n const el = this.root.querySelector(`#${responseId}`);\n const indexEl = this.root.querySelector(`#${responseId}Index`);\n\n if (el) {\n applyStaticMath(el);\n indexEl.textContent = `R${idx + 1}`;\n }\n });\n }\n },\n );\n }\n };\n\n onAddResponse = () => {\n const { model, onChange } = this.props;\n const { responseIdCounter } = this.state;\n const newModel = { ...model };\n\n let newCounter = responseIdCounter;\n\n while (model.responses.find((response) => response.id === newCounter)) {\n newCounter++;\n }\n\n const response = {\n id: newCounter,\n validation: 'literal',\n answer: '',\n alternates: {},\n };\n\n newModel.responses = newModel.responses.concat(response);\n onChange(newModel);\n\n this.setState({\n responseIdCounter: response.id,\n });\n };\n\n onResponseChange = (response, index) => {\n const { model, onChange } = this.props;\n const newModel = { ...model };\n\n newModel.responses[index] = response;\n onChange(newModel);\n };\n\n render() {\n const { model, imageSupport, uploadSoundSupport, configuration, promptEnabled, rationaleEnabled, toolbarOpts } =\n this.props;\n const { showKeypad } = this.state;\n const {\n prompt,\n expression,\n equationEditor,\n promptEquationEditor = '8',\n responses,\n responseType,\n rationale,\n spellCheckEnabled,\n errors = {},\n } = model;\n const {\n baseInputConfiguration = {},\n rationale: cRationale = {},\n prompt: cPrompt = {},\n ignoreOrder: cIgnoreOrder = {},\n allowTrailingZeros: cAllowTrailingZeros = {},\n maxResponseAreas,\n maxImageWidth = {},\n maxImageHeight = {},\n mathMlOptions = {},\n } = configuration || {};\n const validationMessage = generateValidationMessage(configuration, model);\n const { prompt: promptError, rationale: rationaleError, responsesErrors, responseAreasError } = errors;\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const classNames = {\n editor: 'response-editor',\n mathToolbar: 'math-toolbar',\n };\n\n const responsesToUse = responseType === ResponseTypes.advanced ? responses : responses.slice(0, 1);\n\n const validationTooltip = (\n <StyledTooltip disableFocusListener disableTouchListener placement={'right'} title={validationMessage}>\n <Info fontSize={'small'} color={'primary'} style={{ marginLeft: '5px' }} />\n </StyledTooltip>\n );\n\n return (\n <Container ref={(r) => (this.root = r || this.root)}>\n {promptEnabled && (\n <PromptHolder label={cPrompt.label}>\n <EditableHtml\n onFocus={this.onPromptFocus}\n markup={prompt || ''}\n onChange={this.onChange('prompt')}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(cPrompt?.inputConfiguration, baseInputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {promptError && <ErrorText>{promptError}</ErrorText>}\n </PromptHolder>\n )}\n\n {responseType === ResponseTypes.advanced && (\n <AdvancedResponse>\n <FlexContainer style={{ justifyContent: 'flex-start' }}>\n <Title>Define Response</Title>\n {validationTooltip}\n </FlexContainer>\n\n <SelectContainer key=\"templateEditorType\" label=\"Response Template Equation Editor\">\n <Select\n onChange={this.onChange('promptEquationEditor')}\n value={promptEquationEditor}\n MenuProps={{ transitionDuration: { enter: 225, exit: 195 } }}\n >\n <MenuItem value=\"non-negative-integers\">Numeric - Non-Negative Integers</MenuItem>\n <MenuItem value=\"integers\">Numeric - Integers</MenuItem>\n <MenuItem value=\"decimals\">Numeric - Decimals</MenuItem>\n <MenuItem value=\"fractions\">Numeric - Fractions</MenuItem>\n <MenuItem value={1}>Grade 1 - 2</MenuItem>\n <MenuItem value={3}>Grade 3 - 5</MenuItem>\n <MenuItem value={6}>Grade 6 - 7</MenuItem>\n <MenuItem value={8}>Grade 8 - HS</MenuItem>\n <MenuItem value={'geometry'}>Geometry</MenuItem>\n <MenuItem value={'advanced-algebra'}>Advanced Algebra</MenuItem>\n <MenuItem value={'statistics'}>Statistics</MenuItem>\n <MenuItem value={'item-authoring'}>Item Authoring</MenuItem>\n </Select>\n </SelectContainer>\n\n <ResponseTemplate key=\"templateHolder\">\n <TemplateTitle>RESPONSE TEMPLATE</TemplateTitle>\n <MathToolbar\n classNames={classNames}\n allowAnswerBlock\n keypadMode={promptEquationEditor}\n controlledKeypad\n showKeypad={showKeypad}\n latex={prepareForStatic(expression) || ''}\n onChange={this.onChange('expression')}\n onFocus={this.onFocus}\n onDone={this.onDone}\n maxResponseAreas={maxResponseAreas}\n error={responseAreasError}\n />\n </ResponseTemplate>\n\n {responseAreasError && <ErrorText>{responseAreasError}</ErrorText>}\n </AdvancedResponse>\n )}\n\n <FlexContainer style={{ justifyContent: 'flex-start' }}>\n <Title>Define Correct Response</Title>\n {responseType === ResponseTypes.simple ? validationTooltip : null}\n </FlexContainer>\n\n <SelectContainer label=\"Equation Editor\">\n <Select\n onChange={this.onChange('equationEditor')}\n value={equationEditor}\n MenuProps={{ transitionDuration: { enter: 225, exit: 195 } }}\n >\n <MenuItem value=\"non-negative-integers\">Numeric - Non-Negative Integers</MenuItem>\n <MenuItem value=\"integers\">Numeric - Integers</MenuItem>\n <MenuItem value=\"decimals\">Numeric - Decimals</MenuItem>\n <MenuItem value=\"fractions\">Numeric - Fractions</MenuItem>\n <MenuItem value={1}>Grade 1 - 2</MenuItem>\n <MenuItem value={3}>Grade 3 - 5</MenuItem>\n <MenuItem value={6}>Grade 6 - 7</MenuItem>\n <MenuItem value={8}>Grade 8 - HS</MenuItem>\n <MenuItem value={'geometry'}>Geometry</MenuItem>\n <MenuItem value={'advanced-algebra'}>Advanced Algebra</MenuItem>\n <MenuItem value={'statistics'}>Statistics</MenuItem>\n <MenuItem value={'item-authoring'}>Item Authoring</MenuItem>\n </Select>\n </SelectContainer>\n\n {responsesToUse.map((response, idx) => (\n <Response\n key={response.id}\n mode={equationEditor}\n response={response}\n defaultResponse={responseType === ResponseTypes.simple}\n onResponseChange={this.onResponseChange}\n index={idx}\n cIgnoreOrder={cIgnoreOrder}\n cAllowTrailingZeros={cAllowTrailingZeros}\n error={responsesErrors && responsesErrors[idx]}\n />\n ))}\n\n {rationaleEnabled && (\n <PromptHolder label={cRationale.label}>\n <EditableHtml\n markup={rationale || ''}\n onChange={this.onChange('rationale')}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={rationaleError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(cRationale?.inputConfiguration, {\n ...baseInputConfiguration,\n math: {\n controlledKeypadMode: false,\n },\n })}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {rationaleError && <ErrorText>{rationaleError}</ErrorText>}\n </PromptHolder>\n )}\n </Container>\n );\n }\n}\n\nexport default GeneralConfigBlock;\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,mBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,OAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,SAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,SAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,UAAA,GAAAd,OAAA;AACA,IAAAe,KAAA,GAAAb,sBAAA,CAAAF,OAAA;AACA,IAAAgB,QAAA,GAAAd,sBAAA,CAAAF,OAAA;AAA4C,SAAAD,wBAAAkB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAApB,uBAAA,YAAAA,CAAAkB,CAAA,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,KAAA,CAAA2L,aAAA,CAAC5G,SAAS,QAAE+F,cAA0B,CAC7C,CAEP,CAAC;EAEhB;AACF;AAAC,IAAA1E,gBAAA,CAAAvE,OAAA,EA/VKmE,kBAAkB,eACH;EACjBO,KAAK,EAAEwH,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClC9E,YAAY,EAAE4E,kBAAS,CAACC,MAAM;EAC9B5E,kBAAkB,EAAE2E,kBAAS,CAACC,MAAM;EACpC3E,aAAa,EAAE0E,kBAAS,CAACC,MAAM;EAC/BxH,QAAQ,EAAEuH,kBAAS,CAACG,IAAI,CAACD,UAAU;EACnC3E,aAAa,EAAEyE,kBAAS,CAACI,IAAI;EAC7B5E,gBAAgB,EAAEwE,kBAAS,CAACI,IAAI;EAChC3E,WAAW,EAAEuE,kBAAS,CAACC;AACzB,CAAC;AAAA,IAAAI,QAAA,GAAAC,OAAA,CAAAxM,OAAA,GAuVYmE,kBAAkB","ignoreList":[]}
|
|
@@ -30,7 +30,7 @@ const ResponseContainer = (0, _styles.styled)(_Card.default)(({
|
|
|
30
30
|
marginBottom: theme.spacing(2.5),
|
|
31
31
|
width: '100%',
|
|
32
32
|
minWidth: '548px',
|
|
33
|
-
border: `1px solid ${
|
|
33
|
+
border: `1px solid ${_renderUi.color.borderDark()}`,
|
|
34
34
|
display: 'flex',
|
|
35
35
|
flexDirection: 'column',
|
|
36
36
|
justifyContent: 'space-between',
|
|
@@ -95,18 +95,18 @@ const ErrorText = (0, _styles.styled)('div')(({
|
|
|
95
95
|
const CustomColorCheckbox = (0, _styles.styled)(_Checkbox.default)({
|
|
96
96
|
color: `${_renderUi.color.tertiary()} !important`
|
|
97
97
|
});
|
|
98
|
-
const AlternateButton = (0, _styles.styled)(_Button.default)(({
|
|
99
|
-
|
|
100
|
-
}) => ({
|
|
101
|
-
border: `1px solid ${theme.palette.grey['A400']}`,
|
|
98
|
+
const AlternateButton = (0, _styles.styled)(_Button.default)(() => ({
|
|
99
|
+
border: `1px solid ${_renderUi.color.border()}`,
|
|
102
100
|
color: _renderUi.color.text()
|
|
103
101
|
}));
|
|
104
102
|
const RemoveAlternateButton = (0, _styles.styled)(_Button.default)(({
|
|
105
103
|
theme
|
|
106
104
|
}) => ({
|
|
107
105
|
marginLeft: theme.spacing(2),
|
|
108
|
-
border: `1px solid ${
|
|
109
|
-
|
|
106
|
+
border: `1px solid ${_renderUi.color.border()}`,
|
|
107
|
+
// `--pie-disabled` defaults to the same `gray` this replaces, so the resting
|
|
108
|
+
// appearance is unchanged and it now steps with the scheme.
|
|
109
|
+
color: _renderUi.color.disabled(),
|
|
110
110
|
fontSize: '0.8rem'
|
|
111
111
|
}));
|
|
112
112
|
class Response extends React.Component {
|