@pie-lib/math-input 6.13.0-beta.0 → 6.13.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.json +6 -1536
- package/CHANGELOG.md +128 -125
- package/package.json +4 -2
- package/src/__tests__/math-input-test.jsx +1 -1
- package/src/index.jsx +1 -1
- package/src/keypad/index.jsx +3 -3
- package/lib/__tests__/math-input-test.js +0 -109
- package/lib/horizontal-keypad.js +0 -124
- package/lib/index.js +0 -76
- package/lib/keypad/__tests__/index.test.js +0 -41
- package/lib/keypad/__tests__/keys-layout.test.js +0 -15
- package/lib/keypad/index.js +0 -512
- package/lib/keypad/keys-layout.js +0 -34
- package/lib/keys/__tests__/utils.test.js +0 -60
- package/lib/keys/basic-operators.js +0 -41
- package/lib/keys/chars.js +0 -17
- package/lib/keys/comparison.js +0 -49
- package/lib/keys/constants.js +0 -43
- package/lib/keys/digits.js +0 -53
- package/lib/keys/edit.js +0 -17
- package/lib/keys/exponent.js +0 -36
- package/lib/keys/fractions.js +0 -34
- package/lib/keys/geometry.js +0 -169
- package/lib/keys/grades.js +0 -295
- package/lib/keys/index.js +0 -54
- package/lib/keys/log.js +0 -32
- package/lib/keys/logic.js +0 -23
- package/lib/keys/matrices.js +0 -23
- package/lib/keys/misc.js +0 -74
- package/lib/keys/navigation.js +0 -25
- package/lib/keys/operators.js +0 -18
- package/lib/keys/statistics.js +0 -47
- package/lib/keys/sub-sup.js +0 -23
- package/lib/keys/trigonometry.js +0 -53
- package/lib/keys/utils.js +0 -120
- package/lib/keys/vars.js +0 -29
- package/lib/math-input.js +0 -192
- package/lib/mq/__tests__/input.test.js +0 -119
- package/lib/mq/__tests__/static.test.js +0 -74
- package/lib/mq/common-mq-styles.js +0 -110
- package/lib/mq/custom-elements.js +0 -23
- package/lib/mq/index.js +0 -32
- package/lib/mq/input.js +0 -247
- package/lib/mq/static.js +0 -356
- package/lib/updateSpans.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.13.0
|
|
6
|
+
# [6.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0) (2025-07-31)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# [6.
|
|
14
|
+
# [6.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.14.0) (2025-07-31)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
17
17
|
|
|
@@ -19,18 +19,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
22
|
+
# [6.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0) (2025-07-31)
|
|
26
23
|
|
|
27
|
-
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
28
25
|
|
|
29
26
|
|
|
30
27
|
|
|
31
28
|
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
# [6.12.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.8) (2025-07-25)
|
|
34
31
|
|
|
35
32
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
36
33
|
|
|
@@ -38,52 +35,47 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
38
35
|
|
|
39
36
|
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
# [6.12.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.7) (2025-07-25)
|
|
43
39
|
|
|
44
|
-
|
|
40
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
45
41
|
|
|
46
|
-
* made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
47
42
|
|
|
48
43
|
|
|
49
44
|
|
|
50
45
|
|
|
46
|
+
# [6.12.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.7) (2025-07-25)
|
|
51
47
|
|
|
52
|
-
|
|
48
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
53
49
|
|
|
54
50
|
|
|
55
|
-
### Bug Fixes
|
|
56
|
-
|
|
57
|
-
* **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
58
|
-
* **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
|
|
59
51
|
|
|
60
52
|
|
|
61
53
|
|
|
54
|
+
# [6.12.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.6) (2025-07-25)
|
|
62
55
|
|
|
56
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
63
57
|
|
|
64
|
-
# [6.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.13...@pie-lib/math-input@6.11.0) (2023-04-07)
|
|
65
58
|
|
|
66
59
|
|
|
67
|
-
### Features
|
|
68
60
|
|
|
69
|
-
* **math-input:** add two exponent buttons to the grade 3-5 math editor PD-2728 ([b7b87a5](https://github.com/pie-framework/pie-lib/commit/b7b87a5c0c2ca2c3e600cdac696cab3c0a576e87))
|
|
70
61
|
|
|
62
|
+
# [6.12.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.6) (2025-07-25)
|
|
71
63
|
|
|
64
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
72
65
|
|
|
73
66
|
|
|
74
67
|
|
|
75
|
-
## [6.10.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.12...@pie-lib/math-input@6.10.13) (2023-03-20)
|
|
76
68
|
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
# [6.12.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.5) (2025-07-25)
|
|
79
71
|
|
|
80
|
-
|
|
72
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
81
73
|
|
|
82
74
|
|
|
83
75
|
|
|
84
76
|
|
|
85
77
|
|
|
86
|
-
|
|
78
|
+
# [6.12.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.5) (2025-07-25)
|
|
87
79
|
|
|
88
80
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
89
81
|
|
|
@@ -91,7 +83,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
91
83
|
|
|
92
84
|
|
|
93
85
|
|
|
94
|
-
|
|
86
|
+
# [6.12.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.4) (2025-07-25)
|
|
95
87
|
|
|
96
88
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
97
89
|
|
|
@@ -99,7 +91,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
99
91
|
|
|
100
92
|
|
|
101
93
|
|
|
102
|
-
|
|
94
|
+
# [6.12.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.3) (2025-07-25)
|
|
103
95
|
|
|
104
96
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
105
97
|
|
|
@@ -107,7 +99,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
107
99
|
|
|
108
100
|
|
|
109
101
|
|
|
110
|
-
|
|
102
|
+
# [6.12.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.4) (2025-07-23)
|
|
111
103
|
|
|
112
104
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
113
105
|
|
|
@@ -115,7 +107,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
115
107
|
|
|
116
108
|
|
|
117
109
|
|
|
118
|
-
|
|
110
|
+
# [6.12.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.3) (2025-07-23)
|
|
119
111
|
|
|
120
112
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
121
113
|
|
|
@@ -123,7 +115,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
123
115
|
|
|
124
116
|
|
|
125
117
|
|
|
126
|
-
|
|
118
|
+
# [6.12.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.3) (2025-07-20)
|
|
127
119
|
|
|
128
120
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
129
121
|
|
|
@@ -131,7 +123,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
131
123
|
|
|
132
124
|
|
|
133
125
|
|
|
134
|
-
|
|
126
|
+
# [6.12.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.2) (2025-07-20)
|
|
135
127
|
|
|
136
128
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
137
129
|
|
|
@@ -139,32 +131,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
139
131
|
|
|
140
132
|
|
|
141
133
|
|
|
142
|
-
# [6.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Features
|
|
146
|
-
|
|
147
|
-
* **math-input:** solve eslint error ([b4489aa](https://github.com/pie-framework/pie-lib/commit/b4489aad65d5a92989ea32294589b5a030019ecb))
|
|
148
|
-
|
|
134
|
+
# [6.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.1) (2025-07-20)
|
|
149
135
|
|
|
136
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
150
137
|
|
|
151
138
|
|
|
152
139
|
|
|
153
|
-
# [6.9.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.4...@pie-lib/math-input@6.9.0) (2022-12-19)
|
|
154
140
|
|
|
155
141
|
|
|
156
|
-
|
|
142
|
+
# [6.12.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.2) (2025-07-20)
|
|
157
143
|
|
|
158
|
-
|
|
159
|
-
* **math-input:** add labels to math-operators and buttons that screen readers can use ([ad64881](https://github.com/pie-framework/pie-lib/commit/ad648818c060de1fad9c30b62d3bf73d8d7481fb))
|
|
160
|
-
* **math-input:** refactor ([71bd61c](https://github.com/pie-framework/pie-lib/commit/71bd61cb1e0efb5b2a3e0119eea0239a4863e9ac))
|
|
161
|
-
* **math-input:** update snapshots ([4fe88e1](https://github.com/pie-framework/pie-lib/commit/4fe88e1264667218b59ecfd956e205ae22d0f2a6))
|
|
144
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
162
145
|
|
|
163
146
|
|
|
164
147
|
|
|
165
148
|
|
|
166
149
|
|
|
167
|
-
|
|
150
|
+
# [6.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.1) (2025-07-20)
|
|
168
151
|
|
|
169
152
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
170
153
|
|
|
@@ -172,208 +155,228 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
172
155
|
|
|
173
156
|
|
|
174
157
|
|
|
175
|
-
|
|
176
|
-
|
|
158
|
+
# [6.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.1) (2025-07-20)
|
|
177
159
|
|
|
178
|
-
|
|
160
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
179
161
|
|
|
180
|
-
* PD-1858 not working with the fraction button in Advanced Multi mode (mq.Static) PD-2030 PD-2031 ([46d1168](https://github.com/pie-framework/pie-lib/commit/46d116874c063524c764cb6d7035fed6bfa84dfb))
|
|
181
162
|
|
|
182
163
|
|
|
183
164
|
|
|
184
165
|
|
|
166
|
+
# [6.12.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.0) (2025-07-20)
|
|
185
167
|
|
|
186
|
-
|
|
168
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
187
169
|
|
|
188
170
|
|
|
189
|
-
### Bug Fixes
|
|
190
|
-
|
|
191
|
-
* PD-1858 (Math editor tweak to better handle the entry of mixed numbers) - not working with a mixed number if the integer part is multi-digit PD-1858, PD-2029, PD-2030, PD-2031 ([158e76a](https://github.com/pie-framework/pie-lib/commit/158e76a48bec66b1f026811bb1856fa4af5668f3))
|
|
192
|
-
* PD-1858 not working with a mixed number if the integer part is multi-digit PD-2029 ([773f51c](https://github.com/pie-framework/pie-lib/commit/773f51cc54a2af72a1e9bd225ba9be27d8b1de52))
|
|
193
171
|
|
|
194
172
|
|
|
195
173
|
|
|
174
|
+
# [6.13.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.13.0-beta.0) (2025-07-15)
|
|
196
175
|
|
|
176
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
197
177
|
|
|
198
|
-
|
|
178
|
+
# [6.12.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.0-beta.0) (2025-07-15)
|
|
199
179
|
|
|
200
180
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
201
181
|
|
|
182
|
+
## [6.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.3...@pie-lib/math-input@6.11.4) (2023-07-04)
|
|
202
183
|
|
|
184
|
+
### Bug Fixes
|
|
203
185
|
|
|
186
|
+
- prevent crash PD-2150 ([3491c09](https://github.com/pie-framework/pie-lib/commit/3491c09aa5ad947e1248254e79043e5a909d2cde))
|
|
204
187
|
|
|
188
|
+
## [6.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.2...@pie-lib/math-input@6.11.3) (2023-06-24)
|
|
205
189
|
|
|
206
|
-
|
|
190
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
207
191
|
|
|
192
|
+
## [6.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.1...@pie-lib/math-input@6.11.2) (2023-05-22)
|
|
208
193
|
|
|
209
|
-
###
|
|
194
|
+
### Bug Fixes
|
|
210
195
|
|
|
211
|
-
|
|
212
|
-
* parse latex when there's an integer and a space before a fraction (remove white space) PD-1858 ([85654e5](https://github.com/pie-framework/pie-lib/commit/85654e54b9feef656c0002e9d1b2bda2394f398e))
|
|
213
|
-
* **math-input:** feedback ([6b6ee68](https://github.com/pie-framework/pie-lib/commit/6b6ee6852c6226c446a498ad64c2b43e23f9c154))
|
|
214
|
-
* **math-input:** Make math-input style inline with mathjax's one ([e988f63](https://github.com/pie-framework/pie-lib/commit/e988f635f6f75cbe882b3bf7efb716de13fd893d))
|
|
196
|
+
- made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
215
197
|
|
|
198
|
+
## [6.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.0...@pie-lib/math-input@6.11.1) (2023-04-19)
|
|
216
199
|
|
|
200
|
+
### Bug Fixes
|
|
217
201
|
|
|
202
|
+
- **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
203
|
+
- **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
|
|
218
204
|
|
|
205
|
+
# [6.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.13...@pie-lib/math-input@6.11.0) (2023-04-07)
|
|
219
206
|
|
|
220
|
-
|
|
207
|
+
### Features
|
|
221
208
|
|
|
209
|
+
- **math-input:** add two exponent buttons to the grade 3-5 math editor PD-2728 ([b7b87a5](https://github.com/pie-framework/pie-lib/commit/b7b87a5c0c2ca2c3e600cdac696cab3c0a576e87))
|
|
210
|
+
|
|
211
|
+
## [6.10.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.12...@pie-lib/math-input@6.10.13) (2023-03-20)
|
|
222
212
|
|
|
223
213
|
### Bug Fixes
|
|
224
214
|
|
|
225
|
-
|
|
215
|
+
- **math-input:** add important to mq button padding to fix issue in IBX with css priority PD-2702 ([3e40576](https://github.com/pie-framework/pie-lib/commit/3e405767f070ec22cf9315ef9f852f8c8c7d6228))
|
|
226
216
|
|
|
217
|
+
## [6.10.12](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.10...@pie-lib/math-input@6.10.12) (2023-01-31)
|
|
227
218
|
|
|
219
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
228
220
|
|
|
221
|
+
## [6.10.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.9...@pie-lib/math-input@6.10.10) (2023-01-31)
|
|
229
222
|
|
|
223
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
230
224
|
|
|
231
|
-
## [6.
|
|
225
|
+
## [6.10.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.8...@pie-lib/math-input@6.10.9) (2023-01-31)
|
|
232
226
|
|
|
227
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
233
228
|
|
|
234
|
-
|
|
229
|
+
## [6.10.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.7...@pie-lib/math-input@6.10.8) (2023-01-31)
|
|
235
230
|
|
|
236
|
-
|
|
237
|
-
* Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
|
|
231
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
238
232
|
|
|
233
|
+
## [6.10.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.4...@pie-lib/math-input@6.10.7) (2023-01-31)
|
|
239
234
|
|
|
235
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
240
236
|
|
|
237
|
+
## [6.10.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.2...@pie-lib/math-input@6.10.4) (2023-01-31)
|
|
241
238
|
|
|
239
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
242
240
|
|
|
243
|
-
|
|
241
|
+
## [6.10.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.10.0...@pie-lib/math-input@6.10.2) (2023-01-31)
|
|
244
242
|
|
|
243
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
245
244
|
|
|
246
|
-
|
|
245
|
+
# [6.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.9.0...@pie-lib/math-input@6.10.0) (2023-01-03)
|
|
247
246
|
|
|
248
|
-
|
|
249
|
-
* **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
|
|
250
|
-
* **math-toolbar:** Make math-toolbar style inline with mathjax for Geometry ([811bde0](https://github.com/pie-framework/pie-lib/commit/811bde0aa97633822fa3260666e298e841b6b9f7))
|
|
251
|
-
* **plugins:** added special characters adding capabilities [PD-1462] ([b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e))
|
|
247
|
+
### Features
|
|
252
248
|
|
|
249
|
+
- **math-input:** solve eslint error ([b4489aa](https://github.com/pie-framework/pie-lib/commit/b4489aad65d5a92989ea32294589b5a030019ecb))
|
|
253
250
|
|
|
251
|
+
# [6.9.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.4...@pie-lib/math-input@6.9.0) (2022-12-19)
|
|
254
252
|
|
|
253
|
+
### Features
|
|
255
254
|
|
|
255
|
+
- **math-input:** add aria label property for latex buttons ([5aa5b35](https://github.com/pie-framework/pie-lib/commit/5aa5b351c969e13a6a225c7c3d5015e70a3d1c18))
|
|
256
|
+
- **math-input:** add labels to math-operators and buttons that screen readers can use ([ad64881](https://github.com/pie-framework/pie-lib/commit/ad648818c060de1fad9c30b62d3bf73d8d7481fb))
|
|
257
|
+
- **math-input:** refactor ([71bd61c](https://github.com/pie-framework/pie-lib/commit/71bd61cb1e0efb5b2a3e0119eea0239a4863e9ac))
|
|
258
|
+
- **math-input:** update snapshots ([4fe88e1](https://github.com/pie-framework/pie-lib/commit/4fe88e1264667218b59ecfd956e205ae22d0f2a6))
|
|
256
259
|
|
|
257
|
-
## [6.
|
|
260
|
+
## [6.8.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.3...@pie-lib/math-input@6.8.4) (2022-11-23)
|
|
258
261
|
|
|
259
262
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
260
263
|
|
|
264
|
+
## [6.8.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.2...@pie-lib/math-input@6.8.3) (2022-11-17)
|
|
261
265
|
|
|
266
|
+
### Bug Fixes
|
|
262
267
|
|
|
268
|
+
- PD-1858 not working with the fraction button in Advanced Multi mode (mq.Static) PD-2030 PD-2031 ([46d1168](https://github.com/pie-framework/pie-lib/commit/46d116874c063524c764cb6d7035fed6bfa84dfb))
|
|
263
269
|
|
|
264
|
-
|
|
265
|
-
## [6.6.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.8...@pie-lib/math-input@6.6.9) (2022-04-12)
|
|
266
|
-
|
|
270
|
+
## [6.8.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.1...@pie-lib/math-input@6.8.2) (2022-11-14)
|
|
267
271
|
|
|
268
272
|
### Bug Fixes
|
|
269
273
|
|
|
270
|
-
|
|
271
|
-
|
|
274
|
+
- PD-1858 (Math editor tweak to better handle the entry of mixed numbers) - not working with a mixed number if the integer part is multi-digit PD-1858, PD-2029, PD-2030, PD-2031 ([158e76a](https://github.com/pie-framework/pie-lib/commit/158e76a48bec66b1f026811bb1856fa4af5668f3))
|
|
275
|
+
- PD-1858 not working with a mixed number if the integer part is multi-digit PD-2029 ([773f51c](https://github.com/pie-framework/pie-lib/commit/773f51cc54a2af72a1e9bd225ba9be27d8b1de52))
|
|
272
276
|
|
|
277
|
+
## [6.8.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.8.0...@pie-lib/math-input@6.8.1) (2022-08-30)
|
|
273
278
|
|
|
279
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
274
280
|
|
|
281
|
+
# [6.8.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.2...@pie-lib/math-input@6.8.0) (2022-08-29)
|
|
275
282
|
|
|
276
|
-
|
|
283
|
+
### Features
|
|
277
284
|
|
|
278
|
-
|
|
285
|
+
- parse latex when there's an integer and a space before a fraction (remove white space) - wip - PD-1858 ([13995de](https://github.com/pie-framework/pie-lib/commit/13995de67283a3c800f41ee8221f6d2e3f10a7ad))
|
|
286
|
+
- parse latex when there's an integer and a space before a fraction (remove white space) PD-1858 ([85654e5](https://github.com/pie-framework/pie-lib/commit/85654e54b9feef656c0002e9d1b2bda2394f398e))
|
|
287
|
+
- **math-input:** feedback ([6b6ee68](https://github.com/pie-framework/pie-lib/commit/6b6ee6852c6226c446a498ad64c2b43e23f9c154))
|
|
288
|
+
- **math-input:** Make math-input style inline with mathjax's one ([e988f63](https://github.com/pie-framework/pie-lib/commit/e988f635f6f75cbe882b3bf7efb716de13fd893d))
|
|
279
289
|
|
|
290
|
+
## [6.7.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.1...@pie-lib/math-input@6.7.2) (2022-07-19)
|
|
280
291
|
|
|
292
|
+
### Bug Fixes
|
|
281
293
|
|
|
294
|
+
- bump mathquill to 1.1.3 ([48b84c5](https://github.com/pie-framework/pie-lib/commit/48b84c534cbf519e172a80d18a48b26eda3cf7e6))
|
|
282
295
|
|
|
296
|
+
## [6.7.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.7.0...@pie-lib/math-input@6.7.1) (2022-07-18)
|
|
283
297
|
|
|
284
|
-
|
|
298
|
+
### Reverts
|
|
285
299
|
|
|
286
|
-
|
|
300
|
+
- Revert "feat(math-toolbar): Make math-toolbar style inline with mathjax for Geometry" ([fee3f22](https://github.com/pie-framework/pie-lib/commit/fee3f22897a03d1d5c892f731dfc441dba9ed10f))
|
|
301
|
+
- Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
|
|
287
302
|
|
|
303
|
+
# [6.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.10...@pie-lib/math-input@6.7.0) (2022-07-18)
|
|
288
304
|
|
|
305
|
+
### Features
|
|
289
306
|
|
|
307
|
+
- **characters:** special character accents span 2 rows, added border for visibility [PD-1462](<[c60b0bc](https://github.com/pie-framework/pie-lib/commit/c60b0bc8ff45cc01f53bc752fd5dd64da623f6be)>)
|
|
308
|
+
- **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
|
|
309
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax for Geometry ([811bde0](https://github.com/pie-framework/pie-lib/commit/811bde0aa97633822fa3260666e298e841b6b9f7))
|
|
310
|
+
- **plugins:** added special characters adding capabilities [PD-1462](<[b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e)>)
|
|
290
311
|
|
|
312
|
+
## [6.6.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.9...@pie-lib/math-input@6.6.10) (2022-06-13)
|
|
291
313
|
|
|
292
|
-
|
|
314
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
293
315
|
|
|
316
|
+
## [6.6.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.8...@pie-lib/math-input@6.6.9) (2022-04-12)
|
|
294
317
|
|
|
295
318
|
### Bug Fixes
|
|
296
319
|
|
|
297
|
-
|
|
298
|
-
|
|
320
|
+
- **math-input:** PD-1669 handle latex with errors in keypad buttons ([6b36f17](https://github.com/pie-framework/pie-lib/commit/6b36f175deffbd0a0fe021f4f7a11d7c4f14a014))
|
|
299
321
|
|
|
322
|
+
## [6.6.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.7...@pie-lib/math-input@6.6.8) (2022-02-04)
|
|
300
323
|
|
|
324
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
301
325
|
|
|
326
|
+
## [6.6.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.6...@pie-lib/math-input@6.6.7) (2022-01-10)
|
|
302
327
|
|
|
303
|
-
|
|
328
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
304
329
|
|
|
330
|
+
## [6.6.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.5...@pie-lib/math-input@6.6.6) (2021-10-04)
|
|
305
331
|
|
|
306
332
|
### Bug Fixes
|
|
307
333
|
|
|
308
|
-
|
|
309
|
-
* **math-input:** Made overarc button consistent with the others PD-1315 ([8726469](https://github.com/pie-framework/pie-lib/commit/8726469))
|
|
310
|
-
* **math-input:** Made segment, ray and line buttons more consistent PD-1315 ([e7e4e29](https://github.com/pie-framework/pie-lib/commit/e7e4e29))
|
|
311
|
-
|
|
334
|
+
- **math-input:** Fixed left-right arrow button ([6109149](https://github.com/pie-framework/pie-lib/commit/6109149))
|
|
312
335
|
|
|
336
|
+
## [6.6.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.4...@pie-lib/math-input@6.6.5) (2021-10-04)
|
|
313
337
|
|
|
338
|
+
### Bug Fixes
|
|
314
339
|
|
|
340
|
+
- **math-input:** create proper latex expression for log base button ([ca0c3f0](https://github.com/pie-framework/pie-lib/commit/ca0c3f0))
|
|
341
|
+
- **math-input:** Made overarc button consistent with the others PD-1315 ([8726469](https://github.com/pie-framework/pie-lib/commit/8726469))
|
|
342
|
+
- **math-input:** Made segment, ray and line buttons more consistent PD-1315 ([e7e4e29](https://github.com/pie-framework/pie-lib/commit/e7e4e29))
|
|
315
343
|
|
|
316
344
|
## [6.6.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.3...@pie-lib/math-input@6.6.4) (2021-09-20)
|
|
317
345
|
|
|
318
|
-
|
|
319
346
|
### Bug Fixes
|
|
320
347
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
348
|
+
- **math-input, math-toolbar:** Adjusted parallelogram button size ([699431e](https://github.com/pie-framework/pie-lib/commit/699431e))
|
|
326
349
|
|
|
327
350
|
## [6.6.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.2...@pie-lib/math-input@6.6.3) (2021-09-16)
|
|
328
351
|
|
|
329
|
-
|
|
330
352
|
### Bug Fixes
|
|
331
353
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
354
|
+
- **math-input:** render measured angle as m + angle sign PD-368 ([670fb56](https://github.com/pie-framework/pie-lib/commit/670fb56))
|
|
337
355
|
|
|
338
356
|
## [6.6.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.1...@pie-lib/math-input@6.6.2) (2021-09-08)
|
|
339
357
|
|
|
340
358
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
341
359
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
360
|
## [6.6.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.6.0...@pie-lib/math-input@6.6.1) (2021-09-08)
|
|
347
361
|
|
|
348
|
-
|
|
349
362
|
### Bug Fixes
|
|
350
363
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
364
|
+
- **math-input:** default latex when received is wrong ([d872f60](https://github.com/pie-framework/pie-lib/commit/d872f60))
|
|
365
|
+
- **math-input:** default latex when received is wrong (2) ([dc71307](https://github.com/pie-framework/pie-lib/commit/dc71307))
|
|
366
|
+
- **math-input:** fix e button on advanced algebra math editor PD-1280 ([dbfb53b](https://github.com/pie-framework/pie-lib/commit/dbfb53b))
|
|
367
|
+
- **math-input:** Fixed arrows button for pits ([66dd6a9](https://github.com/pie-framework/pie-lib/commit/66dd6a9))
|
|
359
368
|
|
|
360
369
|
# [6.6.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.5.14...@pie-lib/math-input@6.6.0) (2021-08-30)
|
|
361
370
|
|
|
362
|
-
|
|
363
371
|
### Bug Fixes
|
|
364
372
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
373
|
+
- **math-input:** Fixed custom keys behavior and changed label for (),[] and absolute value PD-1251 ([39f2ddb](https://github.com/pie-framework/pie-lib/commit/39f2ddb))
|
|
374
|
+
- **math-toolbar:** Made segment, ray and line more consistent PD-1264 ([1a2ad37](https://github.com/pie-framework/pie-lib/commit/1a2ad37))
|
|
375
|
+
- **math-toolbar & math-input:** render parallel sign with bigger font PD-1258 ([418fc28](https://github.com/pie-framework/pie-lib/commit/418fc28))
|
|
369
376
|
|
|
370
377
|
### Features
|
|
371
378
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
379
|
+
- **math-input, math-toolbar:** add long division button in math editor PD-888 ([3056990](https://github.com/pie-framework/pie-lib/commit/3056990))
|
|
377
380
|
|
|
378
381
|
## [6.5.14](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.5.12...@pie-lib/math-input@6.5.14) (2021-06-25)
|
|
379
382
|
|
package/package.json
CHANGED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.13.0
|
|
6
|
+
"version": "6.13.0",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"module": "src/index.jsx",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.8.3",
|
|
11
11
|
"@material-ui/icons": "^3.0.2",
|
|
12
12
|
"@pie-framework/mathquill": "^1.1.3",
|
|
13
|
+
"classnames": "^2.2.6",
|
|
13
14
|
"debug": "^4.1.1",
|
|
14
15
|
"lodash": "^4.17.11",
|
|
16
|
+
"prop-types": "^15.7.2",
|
|
15
17
|
"react-portal": "^4.2.0"
|
|
16
18
|
},
|
|
17
19
|
"peerDependencies": {
|
|
@@ -22,5 +24,5 @@
|
|
|
22
24
|
"react-dom": "^16.9.0"
|
|
23
25
|
},
|
|
24
26
|
"scripts": {},
|
|
25
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "889a13bfea2c768b8a3a6eabfc6fe7b7725aa832"
|
|
26
28
|
}
|
package/src/index.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { keysForGrade } from './keys/grades';
|
|
2
|
-
import { updateSpans} from
|
|
2
|
+
import { updateSpans } from './updateSpans';
|
|
3
3
|
|
|
4
4
|
const addLeftBracket = (s) => (s.indexOf('\\(') === 0 ? s : `\\(${s}`);
|
|
5
5
|
const addRightBracket = (s) => (s.indexOf('\\)') === s.length - 2 ? s : `${s}\\)`);
|
package/src/keypad/index.jsx
CHANGED
|
@@ -12,7 +12,7 @@ import MathQuill from '@pie-framework/mathquill';
|
|
|
12
12
|
|
|
13
13
|
import * as mq from '../mq';
|
|
14
14
|
import { baseSet } from '../keys';
|
|
15
|
-
import
|
|
15
|
+
import editableHtmlConstants from '../../../editable-html/src/constants';
|
|
16
16
|
import { commonMqKeyboardStyles } from '../mq/common-mq-styles';
|
|
17
17
|
import { sortKeys } from './keys-layout';
|
|
18
18
|
|
|
@@ -215,7 +215,7 @@ export class KeyPad extends React.Component {
|
|
|
215
215
|
|
|
216
216
|
componentDidMount() {
|
|
217
217
|
const keyPadElement = this.keypadRef?.current;
|
|
218
|
-
const mainContainer = keyPadElement?.closest(`.${
|
|
218
|
+
const mainContainer = keyPadElement?.closest(`.${editableHtmlConstants.MAIN_CONTAINER_CLASS}`);
|
|
219
219
|
const currentToolbar = keyPadElement?.closest('.pie-toolbar');
|
|
220
220
|
|
|
221
221
|
// need only for math keyboard so we need also controlledKeypadMode
|
|
@@ -245,7 +245,7 @@ export class KeyPad extends React.Component {
|
|
|
245
245
|
const keyPadElement = this.keypadRef?.current;
|
|
246
246
|
// need only for math keyboard
|
|
247
247
|
if (this.props.controlledKeypadMode && keyPadElement) {
|
|
248
|
-
const mainContainer = keyPadElement.closest(`.${
|
|
248
|
+
const mainContainer = keyPadElement.closest(`.${editableHtmlConstants.MAIN_CONTAINER_CLASS}`);
|
|
249
249
|
|
|
250
250
|
if (mainContainer) {
|
|
251
251
|
mainContainer.style.height = 'unset';
|