@pie-lib/math-input 6.11.4 → 6.12.1-beta.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 +54 -187
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +6 -2
- package/src/__tests__/__snapshots__/math-input-test.jsx.snap +152 -0
- package/src/__tests__/math-input-test.jsx +85 -0
- package/src/horizontal-keypad.jsx +14 -1
- package/src/index.jsx +1 -10
- package/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +193 -0
- package/src/keypad/__tests__/index.test.jsx +24 -0
- package/src/keypad/__tests__/keys-layout.test.js +15 -0
- package/src/keypad/index.jsx +99 -15
- package/src/keys/__tests__/utils.test.js +57 -0
- package/src/keys/geometry.js +6 -2
- package/src/keys/grades.js +11 -0
- package/src/keys/log.js +1 -1
- package/src/mq/__tests__/__snapshots__/input.test.jsx.snap +9 -0
- package/src/mq/__tests__/input.test.jsx +92 -0
- package/src/mq/__tests__/static.test.jsx +57 -0
- package/src/mq/common-mq-styles.js +105 -0
- package/src/mq/index.js +2 -1
- package/src/mq/input.jsx +22 -9
- package/src/mq/static.jsx +142 -13
- package/src/updateSpans.js +15 -0
- package/README.md +0 -27
- package/lib/horizontal-keypad.js +0 -118
- package/lib/horizontal-keypad.js.map +0 -1
- package/lib/index.js +0 -80
- package/lib/index.js.map +0 -1
- package/lib/keypad/index.js +0 -441
- package/lib/keypad/index.js.map +0 -1
- package/lib/keypad/keys-layout.js +0 -34
- package/lib/keypad/keys-layout.js.map +0 -1
- package/lib/keys/basic-operators.js +0 -41
- package/lib/keys/basic-operators.js.map +0 -1
- package/lib/keys/chars.js +0 -17
- package/lib/keys/chars.js.map +0 -1
- package/lib/keys/comparison.js +0 -49
- package/lib/keys/comparison.js.map +0 -1
- package/lib/keys/constants.js +0 -43
- package/lib/keys/constants.js.map +0 -1
- package/lib/keys/digits.js +0 -53
- package/lib/keys/digits.js.map +0 -1
- package/lib/keys/edit.js +0 -17
- package/lib/keys/edit.js.map +0 -1
- package/lib/keys/exponent.js +0 -36
- package/lib/keys/exponent.js.map +0 -1
- package/lib/keys/fractions.js +0 -34
- package/lib/keys/fractions.js.map +0 -1
- package/lib/keys/geometry.js +0 -167
- package/lib/keys/geometry.js.map +0 -1
- package/lib/keys/grades.js +0 -283
- package/lib/keys/grades.js.map +0 -1
- package/lib/keys/index.js +0 -54
- package/lib/keys/index.js.map +0 -1
- package/lib/keys/log.js +0 -32
- package/lib/keys/log.js.map +0 -1
- package/lib/keys/logic.js +0 -23
- package/lib/keys/logic.js.map +0 -1
- package/lib/keys/matrices.js +0 -23
- package/lib/keys/matrices.js.map +0 -1
- package/lib/keys/misc.js +0 -74
- package/lib/keys/misc.js.map +0 -1
- package/lib/keys/navigation.js +0 -25
- package/lib/keys/navigation.js.map +0 -1
- package/lib/keys/operators.js +0 -18
- package/lib/keys/operators.js.map +0 -1
- package/lib/keys/statistics.js +0 -47
- package/lib/keys/statistics.js.map +0 -1
- package/lib/keys/sub-sup.js +0 -23
- package/lib/keys/sub-sup.js.map +0 -1
- package/lib/keys/trigonometry.js +0 -53
- package/lib/keys/trigonometry.js.map +0 -1
- package/lib/keys/utils.js +0 -120
- package/lib/keys/utils.js.map +0 -1
- package/lib/keys/vars.js +0 -29
- package/lib/keys/vars.js.map +0 -1
- package/lib/math-input.js +0 -192
- package/lib/math-input.js.map +0 -1
- package/lib/mq/custom-elements.js +0 -23
- package/lib/mq/custom-elements.js.map +0 -1
- package/lib/mq/index.js +0 -24
- package/lib/mq/index.js.map +0 -1
- package/lib/mq/input.js +0 -245
- package/lib/mq/input.js.map +0 -1
- package/lib/mq/static.js +0 -233
- package/lib/mq/static.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,18 +3,15 @@
|
|
|
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.
|
|
7
|
-
|
|
6
|
+
## [6.12.1-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-input@6.11.4...@pie-lib/math-input@6.12.1-beta.0) (2025-07-20)
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* prevent crash PD-2150 ([3491c09](https://github.com/pie-framework/pie-lib/commit/3491c09aa5ad947e1248254e79043e5a909d2cde))
|
|
8
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
12
9
|
|
|
13
10
|
|
|
14
11
|
|
|
15
12
|
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
# [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)
|
|
18
15
|
|
|
19
16
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
20
17
|
|
|
@@ -22,342 +19,212 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
22
19
|
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
# [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)
|
|
26
23
|
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
27
25
|
|
|
28
|
-
|
|
26
|
+
# [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)
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
31
29
|
|
|
30
|
+
## [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)
|
|
32
31
|
|
|
32
|
+
### Bug Fixes
|
|
33
33
|
|
|
34
|
+
- prevent crash PD-2150 ([3491c09](https://github.com/pie-framework/pie-lib/commit/3491c09aa5ad947e1248254e79043e5a909d2cde))
|
|
34
35
|
|
|
36
|
+
## [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)
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
37
39
|
|
|
40
|
+
## [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)
|
|
38
41
|
|
|
39
42
|
### Bug Fixes
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
* **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
|
|
43
|
-
|
|
44
|
+
- made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
44
45
|
|
|
46
|
+
## [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)
|
|
45
47
|
|
|
48
|
+
### Bug Fixes
|
|
46
49
|
|
|
50
|
+
- **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
51
|
+
- **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
|
|
47
52
|
|
|
48
53
|
# [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)
|
|
49
54
|
|
|
50
|
-
|
|
51
55
|
### Features
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
- **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))
|
|
58
58
|
|
|
59
59
|
## [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)
|
|
60
60
|
|
|
61
|
-
|
|
62
61
|
### Bug Fixes
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
- **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))
|
|
69
64
|
|
|
70
65
|
## [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)
|
|
71
66
|
|
|
72
67
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
73
68
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
69
|
## [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)
|
|
79
70
|
|
|
80
71
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
81
72
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
73
|
## [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)
|
|
87
74
|
|
|
88
75
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
89
76
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
77
|
## [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)
|
|
95
78
|
|
|
96
79
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
97
80
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
81
|
## [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)
|
|
103
82
|
|
|
104
83
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
105
84
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
85
|
## [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)
|
|
111
86
|
|
|
112
87
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
113
88
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
89
|
## [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)
|
|
119
90
|
|
|
120
91
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
121
92
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
93
|
# [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)
|
|
127
94
|
|
|
128
|
-
|
|
129
95
|
### Features
|
|
130
96
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
97
|
+
- **math-input:** solve eslint error ([b4489aa](https://github.com/pie-framework/pie-lib/commit/b4489aad65d5a92989ea32294589b5a030019ecb))
|
|
136
98
|
|
|
137
99
|
# [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)
|
|
138
100
|
|
|
139
|
-
|
|
140
101
|
### Features
|
|
141
102
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
103
|
+
- **math-input:** add aria label property for latex buttons ([5aa5b35](https://github.com/pie-framework/pie-lib/commit/5aa5b351c969e13a6a225c7c3d5015e70a3d1c18))
|
|
104
|
+
- **math-input:** add labels to math-operators and buttons that screen readers can use ([ad64881](https://github.com/pie-framework/pie-lib/commit/ad648818c060de1fad9c30b62d3bf73d8d7481fb))
|
|
105
|
+
- **math-input:** refactor ([71bd61c](https://github.com/pie-framework/pie-lib/commit/71bd61cb1e0efb5b2a3e0119eea0239a4863e9ac))
|
|
106
|
+
- **math-input:** update snapshots ([4fe88e1](https://github.com/pie-framework/pie-lib/commit/4fe88e1264667218b59ecfd956e205ae22d0f2a6))
|
|
150
107
|
|
|
151
108
|
## [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)
|
|
152
109
|
|
|
153
110
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
154
111
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
112
|
## [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)
|
|
160
113
|
|
|
161
|
-
|
|
162
114
|
### Bug Fixes
|
|
163
115
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
116
|
+
- 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))
|
|
169
117
|
|
|
170
118
|
## [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)
|
|
171
119
|
|
|
172
|
-
|
|
173
120
|
### Bug Fixes
|
|
174
121
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
122
|
+
- 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))
|
|
123
|
+
- 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))
|
|
181
124
|
|
|
182
125
|
## [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)
|
|
183
126
|
|
|
184
127
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
185
128
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
129
|
# [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)
|
|
191
130
|
|
|
192
|
-
|
|
193
131
|
### Features
|
|
194
132
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
133
|
+
- 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))
|
|
134
|
+
- 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))
|
|
135
|
+
- **math-input:** feedback ([6b6ee68](https://github.com/pie-framework/pie-lib/commit/6b6ee6852c6226c446a498ad64c2b43e23f9c154))
|
|
136
|
+
- **math-input:** Make math-input style inline with mathjax's one ([e988f63](https://github.com/pie-framework/pie-lib/commit/e988f635f6f75cbe882b3bf7efb716de13fd893d))
|
|
203
137
|
|
|
204
138
|
## [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)
|
|
205
139
|
|
|
206
|
-
|
|
207
140
|
### Bug Fixes
|
|
208
141
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
142
|
+
- bump mathquill to 1.1.3 ([48b84c5](https://github.com/pie-framework/pie-lib/commit/48b84c534cbf519e172a80d18a48b26eda3cf7e6))
|
|
214
143
|
|
|
215
144
|
## [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)
|
|
216
145
|
|
|
217
|
-
|
|
218
146
|
### Reverts
|
|
219
147
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
148
|
+
- Revert "feat(math-toolbar): Make math-toolbar style inline with mathjax for Geometry" ([fee3f22](https://github.com/pie-framework/pie-lib/commit/fee3f22897a03d1d5c892f731dfc441dba9ed10f))
|
|
149
|
+
- Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
|
|
226
150
|
|
|
227
151
|
# [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)
|
|
228
152
|
|
|
229
|
-
|
|
230
153
|
### Features
|
|
231
154
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
155
|
+
- **characters:** special character accents span 2 rows, added border for visibility [PD-1462](<[c60b0bc](https://github.com/pie-framework/pie-lib/commit/c60b0bc8ff45cc01f53bc752fd5dd64da623f6be)>)
|
|
156
|
+
- **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
|
|
157
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax for Geometry ([811bde0](https://github.com/pie-framework/pie-lib/commit/811bde0aa97633822fa3260666e298e841b6b9f7))
|
|
158
|
+
- **plugins:** added special characters adding capabilities [PD-1462](<[b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e)>)
|
|
240
159
|
|
|
241
160
|
## [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)
|
|
242
161
|
|
|
243
162
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
244
163
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
164
|
## [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)
|
|
250
165
|
|
|
251
|
-
|
|
252
166
|
### Bug Fixes
|
|
253
167
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
168
|
+
- **math-input:** PD-1669 handle latex with errors in keypad buttons ([6b36f17](https://github.com/pie-framework/pie-lib/commit/6b36f175deffbd0a0fe021f4f7a11d7c4f14a014))
|
|
259
169
|
|
|
260
170
|
## [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)
|
|
261
171
|
|
|
262
172
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
263
173
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
174
|
## [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)
|
|
269
175
|
|
|
270
176
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
271
177
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
178
|
## [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)
|
|
277
179
|
|
|
278
|
-
|
|
279
180
|
### Bug Fixes
|
|
280
181
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
182
|
+
- **math-input:** Fixed left-right arrow button ([6109149](https://github.com/pie-framework/pie-lib/commit/6109149))
|
|
286
183
|
|
|
287
184
|
## [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)
|
|
288
185
|
|
|
289
|
-
|
|
290
186
|
### Bug Fixes
|
|
291
187
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
188
|
+
- **math-input:** create proper latex expression for log base button ([ca0c3f0](https://github.com/pie-framework/pie-lib/commit/ca0c3f0))
|
|
189
|
+
- **math-input:** Made overarc button consistent with the others PD-1315 ([8726469](https://github.com/pie-framework/pie-lib/commit/8726469))
|
|
190
|
+
- **math-input:** Made segment, ray and line buttons more consistent PD-1315 ([e7e4e29](https://github.com/pie-framework/pie-lib/commit/e7e4e29))
|
|
299
191
|
|
|
300
192
|
## [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)
|
|
301
193
|
|
|
302
|
-
|
|
303
194
|
### Bug Fixes
|
|
304
195
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
196
|
+
- **math-input, math-toolbar:** Adjusted parallelogram button size ([699431e](https://github.com/pie-framework/pie-lib/commit/699431e))
|
|
310
197
|
|
|
311
198
|
## [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)
|
|
312
199
|
|
|
313
|
-
|
|
314
200
|
### Bug Fixes
|
|
315
201
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
202
|
+
- **math-input:** render measured angle as m + angle sign PD-368 ([670fb56](https://github.com/pie-framework/pie-lib/commit/670fb56))
|
|
321
203
|
|
|
322
204
|
## [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)
|
|
323
205
|
|
|
324
206
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
325
207
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
208
|
## [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)
|
|
331
209
|
|
|
332
|
-
|
|
333
210
|
### Bug Fixes
|
|
334
211
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
212
|
+
- **math-input:** default latex when received is wrong ([d872f60](https://github.com/pie-framework/pie-lib/commit/d872f60))
|
|
213
|
+
- **math-input:** default latex when received is wrong (2) ([dc71307](https://github.com/pie-framework/pie-lib/commit/dc71307))
|
|
214
|
+
- **math-input:** fix e button on advanced algebra math editor PD-1280 ([dbfb53b](https://github.com/pie-framework/pie-lib/commit/dbfb53b))
|
|
215
|
+
- **math-input:** Fixed arrows button for pits ([66dd6a9](https://github.com/pie-framework/pie-lib/commit/66dd6a9))
|
|
343
216
|
|
|
344
217
|
# [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)
|
|
345
218
|
|
|
346
|
-
|
|
347
219
|
### Bug Fixes
|
|
348
220
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
221
|
+
- **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))
|
|
222
|
+
- **math-toolbar:** Made segment, ray and line more consistent PD-1264 ([1a2ad37](https://github.com/pie-framework/pie-lib/commit/1a2ad37))
|
|
223
|
+
- **math-toolbar & math-input:** render parallel sign with bigger font PD-1258 ([418fc28](https://github.com/pie-framework/pie-lib/commit/418fc28))
|
|
353
224
|
|
|
354
225
|
### Features
|
|
355
226
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
227
|
+
- **math-input, math-toolbar:** add long division button in math editor PD-888 ([3056990](https://github.com/pie-framework/pie-lib/commit/3056990))
|
|
361
228
|
|
|
362
229
|
## [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)
|
|
363
230
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.12.1-beta.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
|
+
"@pie-lib/editable-html": "beta",
|
|
14
|
+
"@pie-lib/math-input": "beta",
|
|
15
|
+
"classnames": "^2.2.6",
|
|
13
16
|
"debug": "^4.1.1",
|
|
14
17
|
"lodash": "^4.17.11",
|
|
18
|
+
"prop-types": "^15.7.2",
|
|
15
19
|
"react-portal": "^4.2.0"
|
|
16
20
|
},
|
|
17
21
|
"peerDependencies": {
|
|
@@ -22,5 +26,5 @@
|
|
|
22
26
|
"react-dom": "^16.9.0"
|
|
23
27
|
},
|
|
24
28
|
"scripts": {},
|
|
25
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453"
|
|
26
30
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`MathInput snapshot renders 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="className"
|
|
6
|
+
>
|
|
7
|
+
<WithStyles(Input)
|
|
8
|
+
innerRef={[Function]}
|
|
9
|
+
onBlur={[Function]}
|
|
10
|
+
onChange={[Function]}
|
|
11
|
+
onFocus={[Function]}
|
|
12
|
+
/>
|
|
13
|
+
<div>
|
|
14
|
+
<WithStyles(KeyPad)
|
|
15
|
+
additionalKeys={Array []}
|
|
16
|
+
baseSet={
|
|
17
|
+
Array [
|
|
18
|
+
Array [
|
|
19
|
+
Object {
|
|
20
|
+
"category": "digit",
|
|
21
|
+
"label": "7",
|
|
22
|
+
"name": "seven",
|
|
23
|
+
"write": "7",
|
|
24
|
+
},
|
|
25
|
+
Object {
|
|
26
|
+
"category": "digit",
|
|
27
|
+
"label": "8",
|
|
28
|
+
"name": "eight",
|
|
29
|
+
"write": "8",
|
|
30
|
+
},
|
|
31
|
+
Object {
|
|
32
|
+
"category": "digit",
|
|
33
|
+
"label": "9",
|
|
34
|
+
"name": "nine",
|
|
35
|
+
"write": "9",
|
|
36
|
+
},
|
|
37
|
+
Object {
|
|
38
|
+
"category": "operators",
|
|
39
|
+
"command": "\\\\divide",
|
|
40
|
+
"label": "÷",
|
|
41
|
+
"name": "divide",
|
|
42
|
+
"otherNotation": "\\\\div",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
Array [
|
|
46
|
+
Object {
|
|
47
|
+
"category": "digit",
|
|
48
|
+
"label": "4",
|
|
49
|
+
"name": "four",
|
|
50
|
+
"write": "4",
|
|
51
|
+
},
|
|
52
|
+
Object {
|
|
53
|
+
"category": "digit",
|
|
54
|
+
"label": "5",
|
|
55
|
+
"name": "five",
|
|
56
|
+
"write": "5",
|
|
57
|
+
},
|
|
58
|
+
Object {
|
|
59
|
+
"category": "digit",
|
|
60
|
+
"label": "6",
|
|
61
|
+
"name": "six",
|
|
62
|
+
"write": "6",
|
|
63
|
+
},
|
|
64
|
+
Object {
|
|
65
|
+
"category": "operators",
|
|
66
|
+
"command": "\\\\times",
|
|
67
|
+
"label": "×",
|
|
68
|
+
"name": "multiply",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
Array [
|
|
72
|
+
Object {
|
|
73
|
+
"category": "digit",
|
|
74
|
+
"label": "1",
|
|
75
|
+
"name": "one",
|
|
76
|
+
"write": "1",
|
|
77
|
+
},
|
|
78
|
+
Object {
|
|
79
|
+
"category": "digit",
|
|
80
|
+
"label": "2",
|
|
81
|
+
"name": "two",
|
|
82
|
+
"write": "2",
|
|
83
|
+
},
|
|
84
|
+
Object {
|
|
85
|
+
"category": "digit",
|
|
86
|
+
"label": "3",
|
|
87
|
+
"name": "three",
|
|
88
|
+
"write": "3",
|
|
89
|
+
},
|
|
90
|
+
Object {
|
|
91
|
+
"category": "operators",
|
|
92
|
+
"label": "−",
|
|
93
|
+
"write": "−",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
Array [
|
|
97
|
+
Object {
|
|
98
|
+
"category": "digit",
|
|
99
|
+
"label": "0",
|
|
100
|
+
"name": "zero",
|
|
101
|
+
"write": "0",
|
|
102
|
+
},
|
|
103
|
+
Object {
|
|
104
|
+
"category": "digit",
|
|
105
|
+
"label": ".",
|
|
106
|
+
"name": "decimal-point",
|
|
107
|
+
"write": ".",
|
|
108
|
+
},
|
|
109
|
+
Object {
|
|
110
|
+
"category": "digit",
|
|
111
|
+
"label": ",",
|
|
112
|
+
"name": "comma",
|
|
113
|
+
"write": ",",
|
|
114
|
+
},
|
|
115
|
+
Object {
|
|
116
|
+
"category": "operators",
|
|
117
|
+
"label": "+",
|
|
118
|
+
"write": "+",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
Array [
|
|
122
|
+
Object {
|
|
123
|
+
"ariaLabel": "Move cursor left",
|
|
124
|
+
"category": "navigation",
|
|
125
|
+
"keystroke": "Left",
|
|
126
|
+
"label": "◀",
|
|
127
|
+
},
|
|
128
|
+
Object {
|
|
129
|
+
"ariaLabel": "Move cursor right",
|
|
130
|
+
"category": "navigation",
|
|
131
|
+
"keystroke": "Right",
|
|
132
|
+
"label": "▶",
|
|
133
|
+
},
|
|
134
|
+
Object {
|
|
135
|
+
"ariaLabel": "Delete",
|
|
136
|
+
"category": "edit",
|
|
137
|
+
"keystroke": "Backspace",
|
|
138
|
+
"label": "⌫",
|
|
139
|
+
},
|
|
140
|
+
Object {
|
|
141
|
+
"category": "operators",
|
|
142
|
+
"label": "=",
|
|
143
|
+
"write": "=",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
onPress={[Function]}
|
|
149
|
+
/>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
`;
|