@pie-element/math-templated 7.2.0-beta.0 → 7.2.0

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,19 +3,77 @@
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
- # [7.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.0...@pie-element/math-templated@7.2.0-beta.0) (2026-08-07)
6
+ # [7.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.11...@pie-element/math-templated@7.2.0) (2026-08-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ - move [@pie-lib](https://github.com/pie-lib) deps back to latest, off next prereleases PIE-927 ([a53e012](https://github.com/pie-framework/pie-elements/commit/a53e0127eb4ac95ece54e1e2bd669ae4974f4251))
11
+ - **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)
12
+
13
+ ### Features
14
+
15
+ - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
16
+
17
+ ## [7.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.10...@pie-element/math-templated@7.1.11) (2026-08-19)
18
+
19
+ ### Bug Fixes
20
+
21
+ - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
22
+
23
+ ## [7.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.8...@pie-element/math-templated@7.1.10) (2026-08-13)
24
+
25
+ **Note:** Version bump only for package @pie-element/math-templated
26
+
27
+ ## [7.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.7...@pie-element/math-templated@7.1.9) (2026-08-11)
28
+
29
+ **Note:** Version bump only for package @pie-element/math-templated
30
+
31
+ ## [7.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.7...@pie-element/math-templated@7.1.8) (2026-07-31)
32
+
33
+ **Note:** Version bump only for package @pie-element/math-templated
34
+
35
+ ## [7.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.6...@pie-element/math-templated@7.1.7) (2026-07-08)
7
36
 
8
37
  ### Bug Fixes
9
38
 
10
39
  - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
11
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
12
- - 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))
13
- - 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))
40
+
41
+ ## [7.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.5...@pie-element/math-templated@7.1.6) (2026-07-02)
42
+
43
+ ### Bug Fixes
44
+
14
45
  - 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))
15
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
16
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
17
46
  - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
18
47
 
48
+ ## [7.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.4...@pie-element/math-templated@7.1.5) (2026-06-22)
49
+
50
+ ### Bug Fixes
51
+
52
+ - 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))
53
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
54
+
55
+ ## [7.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.3...@pie-element/math-templated@7.1.4) (2026-06-17)
56
+
57
+ ### Bug Fixes
58
+
59
+ - 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))
60
+
61
+ ## [7.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.2...@pie-element/math-templated@7.1.3) (2026-06-12)
62
+
63
+ ### Bug Fixes
64
+
65
+ - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
66
+
67
+ ## [7.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.1...@pie-element/math-templated@7.1.2) (2026-06-04)
68
+
69
+ ### Bug Fixes
70
+
71
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
72
+
73
+ ## [7.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.0...@pie-element/math-templated@7.1.1) (2026-05-21)
74
+
75
+ **Note:** Version bump only for package @pie-element/math-templated
76
+
19
77
  # [7.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@7.1.0-next.2...@pie-element/math-templated@7.1.0) (2026-05-21)
20
78
 
21
79
  ### Bug Fixes
@@ -3,19 +3,76 @@
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
- # [5.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.0...@pie-element/math-templated-configure@5.2.0-beta.0) (2026-08-07)
6
+ # [5.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.11...@pie-element/math-templated-configure@5.2.0) (2026-08-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **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)
11
+
12
+ ### Features
13
+
14
+ - bump libs PIE-856, PIE-681, PIE-927 ([cb26d7a](https://github.com/pie-framework/pie-elements/commit/cb26d7afa6c99522533c321d5ff8ce3148a66e9e))
15
+
16
+ ## [5.1.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.10...@pie-element/math-templated-configure@5.1.11) (2026-08-19)
17
+
18
+ ### Bug Fixes
19
+
20
+ - bump libs and shared modules PIE-681, PIE-708 ([08af8b5](https://github.com/pie-framework/pie-elements/commit/08af8b5802aecc8ee5454a1b6d60277d7ec94204))
21
+
22
+ ## [5.1.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.8...@pie-element/math-templated-configure@5.1.10) (2026-08-13)
23
+
24
+ **Note:** Version bump only for package @pie-element/math-templated-configure
25
+
26
+ ## [5.1.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.7...@pie-element/math-templated-configure@5.1.9) (2026-08-11)
27
+
28
+ **Note:** Version bump only for package @pie-element/math-templated-configure
29
+
30
+ ## [5.1.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.7...@pie-element/math-templated-configure@5.1.8) (2026-07-31)
31
+
32
+ **Note:** Version bump only for package @pie-element/math-templated-configure
33
+
34
+ ## [5.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.6...@pie-element/math-templated-configure@5.1.7) (2026-07-08)
7
35
 
8
36
  ### Bug Fixes
9
37
 
10
38
  - bump libs & shared modules PIE-706, PIE-702, PIE-679, PIE-698 ([5b1a8c4](https://github.com/pie-framework/pie-elements/commit/5b1a8c4c3eba2126fc43d78fd0187e7cd11d5424))
11
- - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
12
- - 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))
13
- - 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))
39
+
40
+ ## [5.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.5...@pie-element/math-templated-configure@5.1.6) (2026-07-02)
41
+
42
+ ### Bug Fixes
43
+
14
44
  - 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))
15
- - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
16
- - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
17
45
  - sync libs versions ([48b5be9](https://github.com/pie-framework/pie-elements/commit/48b5be9559eb5b5235ca05f51c5f0161032a7041))
18
46
 
47
+ ## [5.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.4...@pie-element/math-templated-configure@5.1.5) (2026-06-22)
48
+
49
+ ### Bug Fixes
50
+
51
+ - 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))
52
+ - handle webcomponent lifecycle on every element that misses it PIE-703 ([9d5923f](https://github.com/pie-framework/pie-elements/commit/9d5923f973f0471e1e8f69ad4309cfc63d980d93))
53
+
54
+ ## [5.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.3...@pie-element/math-templated-configure@5.1.4) (2026-06-17)
55
+
56
+ ### Bug Fixes
57
+
58
+ - 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))
59
+
60
+ ## [5.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.2...@pie-element/math-templated-configure@5.1.3) (2026-06-12)
61
+
62
+ ### Bug Fixes
63
+
64
+ - bump shared modules and libsPIE-603, PIE-604, PIE-663, PIE-662, PIE-678 ([e61c7a7](https://github.com/pie-framework/pie-elements/commit/e61c7a7d23744586337dfbb17a18ebfc656c202f))
65
+
66
+ ## [5.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.1...@pie-element/math-templated-configure@5.1.2) (2026-06-04)
67
+
68
+ ### Bug Fixes
69
+
70
+ - bump shared modules and libs PIE-600, PIE-602 ([ce99f6a](https://github.com/pie-framework/pie-elements/commit/ce99f6af50cb855b666a6df9340f9f5445fde4c4))
71
+
72
+ ## [5.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.0...@pie-element/math-templated-configure@5.1.1) (2026-05-21)
73
+
74
+ **Note:** Version bump only for package @pie-element/math-templated-configure
75
+
19
76
  # [5.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@5.1.0-next.1...@pie-element/math-templated-configure@5.1.0) (2026-05-21)
20
77
 
21
78
  ### Bug Fixes
@@ -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 ${theme.palette.grey[700]}`,
33
+ border: `1px solid ${_renderUi.color.borderDark()}`,
34
34
  display: 'flex',
35
35
  flexDirection: 'column',
36
36
  justifyContent: 'space-between'
@@ -66,10 +66,8 @@ const TitleBar = (0, _styles.styled)('div')({
66
66
  const FlexContainer = (0, _styles.styled)('div')({
67
67
  display: 'flex'
68
68
  });
69
- const AlternateButton = (0, _styles.styled)(_Button.default)(({
70
- theme
71
- }) => ({
72
- border: `1px solid ${theme.palette.grey['A400']}`,
69
+ const AlternateButton = (0, _styles.styled)(_Button.default)(() => ({
70
+ border: `1px solid ${_renderUi.color.border()}`,
73
71
  color: _renderUi.color.text()
74
72
  }));
75
73
  const RemoveAlternateButton = (0, _styles.styled)(_IconButton.default)(({
@@ -84,15 +82,17 @@ const ErrorText = (0, _styles.styled)('div')(({
84
82
  color: theme.palette.error.main,
85
83
  paddingTop: theme.spacing(1)
86
84
  }));
87
- const ResponseBox = (0, _styles.styled)('div')(({
88
- theme
89
- }) => ({
90
- background: theme.palette.grey['A100'],
91
- color: theme.palette.grey['A700'],
85
+
86
+ // Fill and ink move together so the slot label stays legible on whatever the fill becomes.
87
+ const ResponseBox = (0, _styles.styled)('div')(() => ({
88
+ background: _renderUi.color.backgroundDark(),
89
+ color: _renderUi.color.text(),
92
90
  display: 'inline',
93
91
  minWidth: '50px',
94
92
  padding: '8px',
95
- border: '1px solid #C0C3CF'
93
+ // #C0C3CF is `--pie-blue-grey-300`'s default, but that token is a fill and measures
94
+ // 1.00:1 against some schemes' backgrounds; the slot outline needs the stroke token.
95
+ border: `1px solid ${_renderUi.color.border()}`
96
96
  }));
97
97
  const AlternateBar = (0, _styles.styled)('div')({
98
98
  display: 'flex',
@@ -1 +1 @@
1
- {"version":3,"file":"response.js","names":["React","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_configUi","_mathToolbar","_Card","_CardContent","_Button","_FormControlLabel","_Typography","_InputLabel","_Checkbox","_Select","_MenuItem","_styles","_IconButton","_Delete","_renderUi","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ResponseContainer","styled","Card","theme","marginBottom","spacing","width","minWidth","border","palette","grey","display","flexDirection","justifyContent","StyledCardContent","CardContent","paddingBottom","StyledTitle","Typography","fontWeight","fontSize","flex","StyledSelectContainer","InputContainer","marginTop","InputContainerWrapper","TitleBar","alignItems","FlexContainer","AlternateButton","Button","color","text","RemoveAlternateButton","IconButton","marginLeft","ErrorText","typography","error","main","paddingTop","ResponseBox","background","padding","AlternateBar","CustomColorCheckbox","Checkbox","tertiary","document","styleId","getElementById","style","createElement","id","textContent","head","appendChild","Response","Component","constructor","props","_defineProperty2","name","evt","response","onResponseChange","responseKey","newResponse","target","value","checked","answer","alternateId","alternates","alternateIdCounter","state","setState","showKeypad","openCount","onResponseDone","alternatesLength","keys","length","render","mode","cAllowTrailingZeros","cIgnoreOrder","validation","ignoreOrder","allowTrailingZeros","hasAlternates","classNames","editor","mathToolbar","styles","minHeight","keyToDisplay","parseInt","component","label","onChange","MenuProps","transitionDuration","enter","exit","enabled","control","onLiteralOptionsChange","MathToolbar","keypadMode","controlledKeypad","latex","onAnswerChange","onFocus","onDone","map","altIdx","key","onAlternateAnswerChange","onAlternateFocus","onAlternateDone","onClick","onRemoveAlternate","size","type","onAddAlternate","exports","defaultResponse","PropTypes","bool","object","oneOfType","string","number","func","isRequired","_default"],"sources":["../src/response.jsx"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { InputContainer } from '@pie-lib/config-ui';\nimport { MathToolbar } from '@pie-lib/math-toolbar';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport Button from '@mui/material/Button';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport Typography from '@mui/material/Typography';\nimport InputLabel from '@mui/material/InputLabel';\nimport Checkbox from '@mui/material/Checkbox';\nimport Select from '@mui/material/Select';\nimport MenuItem from '@mui/material/MenuItem';\nimport { styled } from '@mui/material/styles';\nimport IconButton from '@mui/material/IconButton';\nimport Delete from '@mui/icons-material/Delete';\nimport { color } from '@pie-lib/render-ui';\n\nconst ResponseContainer = styled(Card)(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n width: '100%',\n minWidth: '548px',\n border: `1px solid ${theme.palette.grey[700]}`,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n}));\n\nconst StyledCardContent = styled(CardContent)(({ theme }) => ({\n paddingBottom: `${theme.spacing(2)} !important`,\n}));\n\nconst StyledTitle = styled(Typography)({\n fontWeight: 700,\n fontSize: '1.2rem',\n flex: 3,\n});\n\nconst StyledSelectContainer = styled(InputContainer)(({ theme }) => ({\n flex: 2,\n '& > *:not(label)': {\n marginTop: theme.spacing(1),\n },\n}));\n\nconst InputContainerWrapper = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst TitleBar = styled('div')({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n});\n\nconst FlexContainer = styled('div')({\n display: 'flex',\n});\n\nconst AlternateButton = styled(Button)(({ theme }) => ({\n border: `1px solid ${theme.palette.grey['A400']}`,\n color: color.text(),\n}));\n\nconst RemoveAlternateButton = styled(IconButton)(({ theme }) => ({\n marginLeft: theme.spacing(1),\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 ResponseBox = styled('div')(({ theme }) => ({\n background: theme.palette.grey['A100'],\n color: theme.palette.grey['A700'],\n display: 'inline',\n minWidth: '50px',\n padding: '8px',\n border: '1px solid #C0C3CF',\n}));\n\nconst AlternateBar = styled('div')({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n});\n\nconst CustomColorCheckbox = styled(Checkbox)({\n color: `${color.tertiary()} !important`,\n});\n\n// CSS for MathToolbar classNames (used as strings)\nif (typeof document !== 'undefined') {\n const styleId = 'math-templated-response-styles';\n if (!document.getElementById(styleId)) {\n const style = document.createElement('style');\n style.id = styleId;\n style.textContent = `\n .response-editor {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-width: 500px;\n max-width: 900px;\n height: auto;\n min-height: 40px;\n }\n .math-toolbar {\n width: 100%;\n }\n `;\n document.head.appendChild(style);\n }\n}\n\nexport class Response extends React.Component {\n static propTypes = {\n defaultResponse: PropTypes.bool,\n error: PropTypes.object,\n mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n onResponseChange: PropTypes.func.isRequired,\n onResponseDone: PropTypes.func.isRequired,\n response: PropTypes.object.isRequired,\n cIgnoreOrder: PropTypes.object.isRequired,\n cAllowTrailingZeros: PropTypes.object.isRequired,\n responseKey: PropTypes.number.isRequired,\n };\n\n static defaultProps = {\n defaultResponse: false,\n mode: '8',\n };\n\n constructor(props) {\n super(props);\n\n const { response: { alternates } = {} } = props || {};\n const alternatesLength = Object.keys(alternates || {}).length;\n\n this.state = {\n alternateIdCounter: alternatesLength + 1,\n showKeypad: {\n openCount: 0,\n main: false,\n },\n };\n }\n\n onChange = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.value;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onConfigChanged = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.checked;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onLiteralOptionsChange = (name) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = !response[name];\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAnswerChange = (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.answer = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAlternateAnswerChange = (alternateId) => (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.alternates[alternateId] = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAddAlternate = () => {\n const { response, onResponseChange, responseKey } = this.props;\n const { alternateIdCounter } = this.state;\n const newResponse = { ...response };\n\n if (!newResponse.alternates) {\n newResponse.alternates = {};\n }\n\n newResponse.alternates[alternateIdCounter] = '';\n\n onResponseChange(newResponse, responseKey);\n\n this.setState({\n alternateIdCounter: alternateIdCounter + 1,\n });\n };\n\n onRemoveAlternate = (alternateId) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n delete newResponse.alternates[alternateId];\n\n onResponseChange(newResponse, responseKey);\n\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount : state.showKeypad.openCount - 1,\n },\n }));\n };\n\n onDone = () => {\n const { onResponseDone } = this.props;\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n main: false,\n },\n }));\n\n onResponseDone();\n };\n\n onFocus = () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad.main ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n main: true,\n },\n }));\n };\n\n onAlternateFocus = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n [alternateId]: true,\n },\n }));\n };\n\n onAlternateDone = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n [alternateId]: false,\n },\n }));\n };\n\n render() {\n const { mode, responseKey, response, cAllowTrailingZeros, cIgnoreOrder, error } = this.props;\n const { showKeypad } = this.state;\n const { validation, answer, alternates, ignoreOrder, allowTrailingZeros } = response;\n const hasAlternates = Object.keys(alternates || {}).length > 0;\n const classNames = {\n editor: 'response-editor',\n mathToolbar: 'math-toolbar',\n };\n const styles = {\n minHeight: `${showKeypad.openCount > 0 ? 430 : 230}px`,\n };\n // add 1 to index to display R 1 instead of R 0\n const keyToDisplay = `R ${parseInt(responseKey) + 1}`;\n\n return (\n <ResponseContainer style={styles}>\n <StyledCardContent>\n <TitleBar>\n <StyledTitle component=\"div\">\n Response for <ResponseBox>{keyToDisplay}</ResponseBox>\n </StyledTitle>\n\n <StyledSelectContainer label=\"Validation\">\n <Select onChange={this.onChange('validation')} value={validation || 'literal'} MenuProps={{transitionDuration: { enter: 225, exit: 195 } }}>\n <MenuItem value=\"literal\">Literal Validation</MenuItem>\n <MenuItem value=\"symbolic\">Symbolic Validation</MenuItem>\n </Select>\n </StyledSelectContainer>\n </TitleBar>\n\n {validation === 'literal' && (\n <FlexContainer>\n {cAllowTrailingZeros.enabled && (\n <FormControlLabel\n label={cAllowTrailingZeros.label}\n control={\n <CustomColorCheckbox\n checked={allowTrailingZeros}\n onChange={this.onLiteralOptionsChange('allowTrailingZeros')}\n />\n }\n />\n )}\n\n {cIgnoreOrder.enabled && (\n <FormControlLabel\n label={cIgnoreOrder.label}\n control={\n <CustomColorCheckbox\n checked={ignoreOrder}\n onChange={this.onLiteralOptionsChange('ignoreOrder')}\n />\n }\n />\n )}\n </FlexContainer>\n )}\n\n <InputContainerWrapper>\n <InputLabel>Correct Answer</InputLabel>\n <MathToolbar\n keypadMode={mode}\n classNames={classNames}\n controlledKeypad\n showKeypad={showKeypad.main}\n latex={answer || ''}\n onChange={this.onAnswerChange}\n onFocus={this.onFocus}\n onDone={this.onDone}\n error={error && error.answer}\n />\n {error && error.answer ? <ErrorText>{error.answer}</ErrorText> : null}\n </InputContainerWrapper>\n\n {hasAlternates &&\n Object.keys(alternates).map((alternateId, altIdx) => (\n <InputContainerWrapper key={alternateId}>\n <InputLabel>\n Alternate\n {Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''}\n </InputLabel>\n <AlternateBar>\n <MathToolbar\n classNames={classNames}\n controlledKeypad\n keypadMode={mode}\n showKeypad={showKeypad[alternateId] || false}\n latex={alternates[alternateId] || ''}\n onChange={this.onAlternateAnswerChange(alternateId)}\n onFocus={this.onAlternateFocus(alternateId)}\n onDone={this.onAlternateDone(alternateId)}\n error={error && error[alternateId]}\n />\n <RemoveAlternateButton\n onClick={this.onRemoveAlternate(alternateId)}\n size=\"large\">\n <Delete />\n </RemoveAlternateButton>\n </AlternateBar>\n {error && error[alternateId] ? <ErrorText>{error[alternateId]}</ErrorText> : null}\n </InputContainerWrapper>\n ))}\n\n <AlternateButton type=\"primary\" onClick={this.onAddAlternate}>\n ADD ALTERNATE\n </AlternateButton>\n </StyledCardContent>\n </ResponseContainer>\n );\n }\n}\n\nexport default Response;\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,OAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,iBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,WAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,WAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,SAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,OAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,SAAA,GAAAX,sBAAA,CAAAF,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,WAAA,GAAAb,sBAAA,CAAAF,OAAA;AACA,IAAAgB,OAAA,GAAAd,sBAAA,CAAAF,OAAA;AACA,IAAAiB,SAAA,GAAAjB,OAAA;AAA2C,SAAAD,wBAAAmB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAArB,uBAAA,YAAAA,CAAAmB,CAAA,EAAAC,CAAA,SAAAA,CAA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A,CAAAtE,OAAA,EAXUkE,QAAQ,kBAaG;EACpBsE,eAAe,EAAE,KAAK;EACtB3C,IAAI,EAAE;AACR,CAAC;AAAA,IAAAoD,QAAA,GAAAV,OAAA,CAAAvI,OAAA,GA4PYkE,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"response.js","names":["React","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_configUi","_mathToolbar","_Card","_CardContent","_Button","_FormControlLabel","_Typography","_InputLabel","_Checkbox","_Select","_MenuItem","_styles","_IconButton","_Delete","_renderUi","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ResponseContainer","styled","Card","theme","marginBottom","spacing","width","minWidth","border","color","borderDark","display","flexDirection","justifyContent","StyledCardContent","CardContent","paddingBottom","StyledTitle","Typography","fontWeight","fontSize","flex","StyledSelectContainer","InputContainer","marginTop","InputContainerWrapper","TitleBar","alignItems","FlexContainer","AlternateButton","Button","text","RemoveAlternateButton","IconButton","marginLeft","ErrorText","typography","palette","error","main","paddingTop","ResponseBox","background","backgroundDark","padding","AlternateBar","CustomColorCheckbox","Checkbox","tertiary","document","styleId","getElementById","style","createElement","id","textContent","head","appendChild","Response","Component","constructor","props","_defineProperty2","name","evt","response","onResponseChange","responseKey","newResponse","target","value","checked","answer","alternateId","alternates","alternateIdCounter","state","setState","showKeypad","openCount","onResponseDone","alternatesLength","keys","length","render","mode","cAllowTrailingZeros","cIgnoreOrder","validation","ignoreOrder","allowTrailingZeros","hasAlternates","classNames","editor","mathToolbar","styles","minHeight","keyToDisplay","parseInt","component","label","onChange","MenuProps","transitionDuration","enter","exit","enabled","control","onLiteralOptionsChange","MathToolbar","keypadMode","controlledKeypad","latex","onAnswerChange","onFocus","onDone","map","altIdx","key","onAlternateAnswerChange","onAlternateFocus","onAlternateDone","onClick","onRemoveAlternate","size","type","onAddAlternate","exports","defaultResponse","PropTypes","bool","object","oneOfType","string","number","func","isRequired","_default"],"sources":["../src/response.jsx"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { InputContainer } from '@pie-lib/config-ui';\nimport { MathToolbar } from '@pie-lib/math-toolbar';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport Button from '@mui/material/Button';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport Typography from '@mui/material/Typography';\nimport InputLabel from '@mui/material/InputLabel';\nimport Checkbox from '@mui/material/Checkbox';\nimport Select from '@mui/material/Select';\nimport MenuItem from '@mui/material/MenuItem';\nimport { styled } from '@mui/material/styles';\nimport IconButton from '@mui/material/IconButton';\nimport Delete from '@mui/icons-material/Delete';\nimport { color } from '@pie-lib/render-ui';\n\nconst ResponseContainer = styled(Card)(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n width: '100%',\n minWidth: '548px',\n border: `1px solid ${color.borderDark()}`,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n}));\n\nconst StyledCardContent = styled(CardContent)(({ theme }) => ({\n paddingBottom: `${theme.spacing(2)} !important`,\n}));\n\nconst StyledTitle = styled(Typography)({\n fontWeight: 700,\n fontSize: '1.2rem',\n flex: 3,\n});\n\nconst StyledSelectContainer = styled(InputContainer)(({ theme }) => ({\n flex: 2,\n '& > *:not(label)': {\n marginTop: theme.spacing(1),\n },\n}));\n\nconst InputContainerWrapper = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst TitleBar = styled('div')({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n});\n\nconst FlexContainer = styled('div')({\n display: 'flex',\n});\n\nconst AlternateButton = styled(Button)(() => ({\n border: `1px solid ${color.border()}`,\n color: color.text(),\n}));\n\nconst RemoveAlternateButton = styled(IconButton)(({ theme }) => ({\n marginLeft: theme.spacing(1),\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\n// Fill and ink move together so the slot label stays legible on whatever the fill becomes.\nconst ResponseBox = styled('div')(() => ({\n background: color.backgroundDark(),\n color: color.text(),\n display: 'inline',\n minWidth: '50px',\n padding: '8px',\n // #C0C3CF is `--pie-blue-grey-300`'s default, but that token is a fill and measures\n // 1.00:1 against some schemes' backgrounds; the slot outline needs the stroke token.\n border: `1px solid ${color.border()}`,\n}));\n\nconst AlternateBar = styled('div')({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n});\n\nconst CustomColorCheckbox = styled(Checkbox)({\n color: `${color.tertiary()} !important`,\n});\n\n// CSS for MathToolbar classNames (used as strings)\nif (typeof document !== 'undefined') {\n const styleId = 'math-templated-response-styles';\n if (!document.getElementById(styleId)) {\n const style = document.createElement('style');\n style.id = styleId;\n style.textContent = `\n .response-editor {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-width: 500px;\n max-width: 900px;\n height: auto;\n min-height: 40px;\n }\n .math-toolbar {\n width: 100%;\n }\n `;\n document.head.appendChild(style);\n }\n}\n\nexport class Response extends React.Component {\n static propTypes = {\n defaultResponse: PropTypes.bool,\n error: PropTypes.object,\n mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n onResponseChange: PropTypes.func.isRequired,\n onResponseDone: PropTypes.func.isRequired,\n response: PropTypes.object.isRequired,\n cIgnoreOrder: PropTypes.object.isRequired,\n cAllowTrailingZeros: PropTypes.object.isRequired,\n responseKey: PropTypes.number.isRequired,\n };\n\n static defaultProps = {\n defaultResponse: false,\n mode: '8',\n };\n\n constructor(props) {\n super(props);\n\n const { response: { alternates } = {} } = props || {};\n const alternatesLength = Object.keys(alternates || {}).length;\n\n this.state = {\n alternateIdCounter: alternatesLength + 1,\n showKeypad: {\n openCount: 0,\n main: false,\n },\n };\n }\n\n onChange = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.value;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onConfigChanged = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.checked;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onLiteralOptionsChange = (name) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = !response[name];\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAnswerChange = (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.answer = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAlternateAnswerChange = (alternateId) => (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.alternates[alternateId] = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAddAlternate = () => {\n const { response, onResponseChange, responseKey } = this.props;\n const { alternateIdCounter } = this.state;\n const newResponse = { ...response };\n\n if (!newResponse.alternates) {\n newResponse.alternates = {};\n }\n\n newResponse.alternates[alternateIdCounter] = '';\n\n onResponseChange(newResponse, responseKey);\n\n this.setState({\n alternateIdCounter: alternateIdCounter + 1,\n });\n };\n\n onRemoveAlternate = (alternateId) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n delete newResponse.alternates[alternateId];\n\n onResponseChange(newResponse, responseKey);\n\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount : state.showKeypad.openCount - 1,\n },\n }));\n };\n\n onDone = () => {\n const { onResponseDone } = this.props;\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n main: false,\n },\n }));\n\n onResponseDone();\n };\n\n onFocus = () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad.main ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n main: true,\n },\n }));\n };\n\n onAlternateFocus = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n [alternateId]: true,\n },\n }));\n };\n\n onAlternateDone = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n [alternateId]: false,\n },\n }));\n };\n\n render() {\n const { mode, responseKey, response, cAllowTrailingZeros, cIgnoreOrder, error } = this.props;\n const { showKeypad } = this.state;\n const { validation, answer, alternates, ignoreOrder, allowTrailingZeros } = response;\n const hasAlternates = Object.keys(alternates || {}).length > 0;\n const classNames = {\n editor: 'response-editor',\n mathToolbar: 'math-toolbar',\n };\n const styles = {\n minHeight: `${showKeypad.openCount > 0 ? 430 : 230}px`,\n };\n // add 1 to index to display R 1 instead of R 0\n const keyToDisplay = `R ${parseInt(responseKey) + 1}`;\n\n return (\n <ResponseContainer style={styles}>\n <StyledCardContent>\n <TitleBar>\n <StyledTitle component=\"div\">\n Response for <ResponseBox>{keyToDisplay}</ResponseBox>\n </StyledTitle>\n\n <StyledSelectContainer label=\"Validation\">\n <Select onChange={this.onChange('validation')} value={validation || 'literal'} MenuProps={{transitionDuration: { enter: 225, exit: 195 } }}>\n <MenuItem value=\"literal\">Literal Validation</MenuItem>\n <MenuItem value=\"symbolic\">Symbolic Validation</MenuItem>\n </Select>\n </StyledSelectContainer>\n </TitleBar>\n\n {validation === 'literal' && (\n <FlexContainer>\n {cAllowTrailingZeros.enabled && (\n <FormControlLabel\n label={cAllowTrailingZeros.label}\n control={\n <CustomColorCheckbox\n checked={allowTrailingZeros}\n onChange={this.onLiteralOptionsChange('allowTrailingZeros')}\n />\n }\n />\n )}\n\n {cIgnoreOrder.enabled && (\n <FormControlLabel\n label={cIgnoreOrder.label}\n control={\n <CustomColorCheckbox\n checked={ignoreOrder}\n onChange={this.onLiteralOptionsChange('ignoreOrder')}\n />\n }\n />\n )}\n </FlexContainer>\n )}\n\n <InputContainerWrapper>\n <InputLabel>Correct Answer</InputLabel>\n <MathToolbar\n keypadMode={mode}\n classNames={classNames}\n controlledKeypad\n showKeypad={showKeypad.main}\n latex={answer || ''}\n onChange={this.onAnswerChange}\n onFocus={this.onFocus}\n onDone={this.onDone}\n error={error && error.answer}\n />\n {error && error.answer ? <ErrorText>{error.answer}</ErrorText> : null}\n </InputContainerWrapper>\n\n {hasAlternates &&\n Object.keys(alternates).map((alternateId, altIdx) => (\n <InputContainerWrapper key={alternateId}>\n <InputLabel>\n Alternate\n {Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''}\n </InputLabel>\n <AlternateBar>\n <MathToolbar\n classNames={classNames}\n controlledKeypad\n keypadMode={mode}\n showKeypad={showKeypad[alternateId] || false}\n latex={alternates[alternateId] || ''}\n onChange={this.onAlternateAnswerChange(alternateId)}\n onFocus={this.onAlternateFocus(alternateId)}\n onDone={this.onAlternateDone(alternateId)}\n error={error && error[alternateId]}\n />\n <RemoveAlternateButton\n onClick={this.onRemoveAlternate(alternateId)}\n size=\"large\">\n <Delete />\n </RemoveAlternateButton>\n </AlternateBar>\n {error && error[alternateId] ? <ErrorText>{error[alternateId]}</ErrorText> : null}\n </InputContainerWrapper>\n ))}\n\n <AlternateButton type=\"primary\" onClick={this.onAddAlternate}>\n ADD ALTERNATE\n </AlternateButton>\n </StyledCardContent>\n </ResponseContainer>\n );\n }\n}\n\nexport default Response;\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,OAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,iBAAA,GAAA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F,KAAK,EAAE2F,kBAAS,CAACE,MAAM;EACvB9C,IAAI,EAAE4C,kBAAS,CAACG,SAAS,CAAC,CAACH,kBAAS,CAACI,MAAM,EAAEJ,kBAAS,CAACK,MAAM,CAAC,CAAC;EAC/DpE,gBAAgB,EAAE+D,kBAAS,CAACM,IAAI,CAACC,UAAU;EAC3CxD,cAAc,EAAEiD,kBAAS,CAACM,IAAI,CAACC,UAAU;EACzCvE,QAAQ,EAAEgE,kBAAS,CAACE,MAAM,CAACK,UAAU;EACrCjD,YAAY,EAAE0C,kBAAS,CAACE,MAAM,CAACK,UAAU;EACzClD,mBAAmB,EAAE2C,kBAAS,CAACE,MAAM,CAACK,UAAU;EAChDrE,WAAW,EAAE8D,kBAAS,CAACK,MAAM,CAACE;AAChC,CAAC;AAAA,IAAA1E,gBAAA,CAAAvE,OAAA,EAXUmE,QAAQ,kBAaG;EACpBsE,eAAe,EAAE,KAAK;EACtB3C,IAAI,EAAE;AACR,CAAC;AAAA,IAAAoD,QAAA,GAAAV,OAAA,CAAAxI,OAAA,GA4PYmE,QAAQ","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/math-templated-configure",
3
3
  "private": true,
4
- "version": "5.2.0-beta.0",
4
+ "version": "5.2.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -11,10 +11,10 @@
11
11
  "@mui/icons-material": "^7.3.4",
12
12
  "@mui/material": "^7.3.4",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
- "@pie-lib/config-ui": "13.1.0-beta",
15
- "@pie-lib/editable-html-tip-tap": "2.2.0-beta",
16
- "@pie-lib/math-toolbar": "3.1.0-beta",
17
- "@pie-lib/render-ui": "6.1.3",
14
+ "@pie-lib/config-ui": "13.0.16",
15
+ "@pie-lib/editable-html-tip-tap": "2.1.14",
16
+ "@pie-lib/math-toolbar": "3.0.7",
17
+ "@pie-lib/render-ui": "7.0.0",
18
18
  "debug": "^4.1.1",
19
19
  "lodash-es": "^4.17.23",
20
20
  "prop-types": "^15.8.1",
@@ -3,12 +3,24 @@
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.2.0-beta.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@6.1.0...@pie-element/math-templated-controller@6.2.0-beta.0) (2026-08-07)
6
+ ## [6.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@6.1.2...@pie-element/math-templated-controller@6.1.4) (2026-08-13)
7
+
8
+ **Note:** Version bump only for package @pie-element/math-templated-controller
9
+
10
+ ## [6.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@6.1.2...@pie-element/math-templated-controller@6.1.3) (2026-08-11)
11
+
12
+ **Note:** Version bump only for package @pie-element/math-templated-controller
13
+
14
+ ## [6.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@6.1.1...@pie-element/math-templated-controller@6.1.2) (2026-07-02)
7
15
 
8
16
  ### Bug Fixes
9
17
 
10
18
  - 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))
11
19
 
20
+ ## [6.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@6.1.0...@pie-element/math-templated-controller@6.1.1) (2026-05-21)
21
+
22
+ **Note:** Version bump only for package @pie-element/math-templated-controller
23
+
12
24
  # [6.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@6.1.0-next.1...@pie-element/math-templated-controller@6.1.0) (2026-05-21)
13
25
 
14
26
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/math-templated-controller",
3
3
  "private": true,
4
- "version": "6.2.0-beta.0",
4
+ "version": "6.1.4",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",