@pie-lib/math-input 6.11.5-next.0 → 6.12.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -181
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +5 -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
|
-
|
|
7
|
-
|
|
6
|
+
# [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)
|
|
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.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)
|
|
18
15
|
|
|
19
16
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
20
17
|
|
|
@@ -22,342 +19,228 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
22
19
|
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
# [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)
|
|
27
23
|
|
|
28
|
-
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
29
25
|
|
|
30
|
-
* made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
31
26
|
|
|
32
27
|
|
|
33
28
|
|
|
34
29
|
|
|
30
|
+
# [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)
|
|
35
31
|
|
|
36
|
-
|
|
32
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
37
33
|
|
|
38
34
|
|
|
39
|
-
### Bug Fixes
|
|
40
35
|
|
|
41
|
-
* **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
42
|
-
* **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
|
|
43
36
|
|
|
44
37
|
|
|
38
|
+
# [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)
|
|
45
39
|
|
|
40
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
46
41
|
|
|
42
|
+
# [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)
|
|
47
43
|
|
|
48
|
-
|
|
44
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
49
45
|
|
|
46
|
+
## [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)
|
|
50
47
|
|
|
51
|
-
###
|
|
48
|
+
### Bug Fixes
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
- prevent crash PD-2150 ([3491c09](https://github.com/pie-framework/pie-lib/commit/3491c09aa5ad947e1248254e79043e5a909d2cde))
|
|
54
51
|
|
|
52
|
+
## [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)
|
|
55
53
|
|
|
54
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
56
55
|
|
|
56
|
+
## [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)
|
|
57
57
|
|
|
58
|
+
### Bug Fixes
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
- made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
60
61
|
|
|
62
|
+
## [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)
|
|
61
63
|
|
|
62
64
|
### Bug Fixes
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
- **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
67
|
+
- **math-input:** add required import for MathQuill-PD-2732 ([532d786](https://github.com/pie-framework/pie-lib/commit/532d7866fa48a5f9ac68f6d26f31b0e28ac54acf))
|
|
67
68
|
|
|
69
|
+
# [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)
|
|
68
70
|
|
|
71
|
+
### Features
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
- **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))
|
|
71
74
|
|
|
72
|
-
|
|
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)
|
|
73
76
|
|
|
77
|
+
### Bug Fixes
|
|
74
78
|
|
|
79
|
+
- **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))
|
|
75
80
|
|
|
81
|
+
## [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)
|
|
76
82
|
|
|
83
|
+
**Note:** Version bump only for package @pie-lib/math-input
|
|
77
84
|
|
|
78
85
|
## [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
86
|
|
|
80
87
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
81
88
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
89
|
## [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
90
|
|
|
88
91
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
89
92
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
93
|
## [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
94
|
|
|
96
95
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
97
|
## [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
98
|
|
|
104
99
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
105
100
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
101
|
## [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
102
|
|
|
112
103
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
113
104
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
105
|
## [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
106
|
|
|
120
107
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
121
108
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
109
|
# [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
110
|
|
|
128
|
-
|
|
129
111
|
### Features
|
|
130
112
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
113
|
+
- **math-input:** solve eslint error ([b4489aa](https://github.com/pie-framework/pie-lib/commit/b4489aad65d5a92989ea32294589b5a030019ecb))
|
|
136
114
|
|
|
137
115
|
# [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
116
|
|
|
139
|
-
|
|
140
117
|
### Features
|
|
141
118
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
119
|
+
- **math-input:** add aria label property for latex buttons ([5aa5b35](https://github.com/pie-framework/pie-lib/commit/5aa5b351c969e13a6a225c7c3d5015e70a3d1c18))
|
|
120
|
+
- **math-input:** add labels to math-operators and buttons that screen readers can use ([ad64881](https://github.com/pie-framework/pie-lib/commit/ad648818c060de1fad9c30b62d3bf73d8d7481fb))
|
|
121
|
+
- **math-input:** refactor ([71bd61c](https://github.com/pie-framework/pie-lib/commit/71bd61cb1e0efb5b2a3e0119eea0239a4863e9ac))
|
|
122
|
+
- **math-input:** update snapshots ([4fe88e1](https://github.com/pie-framework/pie-lib/commit/4fe88e1264667218b59ecfd956e205ae22d0f2a6))
|
|
150
123
|
|
|
151
124
|
## [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
125
|
|
|
153
126
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
154
127
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
128
|
## [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
129
|
|
|
161
|
-
|
|
162
130
|
### Bug Fixes
|
|
163
131
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
132
|
+
- 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
133
|
|
|
170
134
|
## [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
135
|
|
|
172
|
-
|
|
173
136
|
### Bug Fixes
|
|
174
137
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
138
|
+
- 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))
|
|
139
|
+
- 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
140
|
|
|
182
141
|
## [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
142
|
|
|
184
143
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
185
144
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
145
|
# [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
146
|
|
|
192
|
-
|
|
193
147
|
### Features
|
|
194
148
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
149
|
+
- 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))
|
|
150
|
+
- 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))
|
|
151
|
+
- **math-input:** feedback ([6b6ee68](https://github.com/pie-framework/pie-lib/commit/6b6ee6852c6226c446a498ad64c2b43e23f9c154))
|
|
152
|
+
- **math-input:** Make math-input style inline with mathjax's one ([e988f63](https://github.com/pie-framework/pie-lib/commit/e988f635f6f75cbe882b3bf7efb716de13fd893d))
|
|
203
153
|
|
|
204
154
|
## [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
155
|
|
|
206
|
-
|
|
207
156
|
### Bug Fixes
|
|
208
157
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
158
|
+
- bump mathquill to 1.1.3 ([48b84c5](https://github.com/pie-framework/pie-lib/commit/48b84c534cbf519e172a80d18a48b26eda3cf7e6))
|
|
214
159
|
|
|
215
160
|
## [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
161
|
|
|
217
|
-
|
|
218
162
|
### Reverts
|
|
219
163
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
164
|
+
- Revert "feat(math-toolbar): Make math-toolbar style inline with mathjax for Geometry" ([fee3f22](https://github.com/pie-framework/pie-lib/commit/fee3f22897a03d1d5c892f731dfc441dba9ed10f))
|
|
165
|
+
- Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
|
|
226
166
|
|
|
227
167
|
# [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
168
|
|
|
229
|
-
|
|
230
169
|
### Features
|
|
231
170
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
171
|
+
- **characters:** special character accents span 2 rows, added border for visibility [PD-1462](<[c60b0bc](https://github.com/pie-framework/pie-lib/commit/c60b0bc8ff45cc01f53bc752fd5dd64da623f6be)>)
|
|
172
|
+
- **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
|
|
173
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax for Geometry ([811bde0](https://github.com/pie-framework/pie-lib/commit/811bde0aa97633822fa3260666e298e841b6b9f7))
|
|
174
|
+
- **plugins:** added special characters adding capabilities [PD-1462](<[b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e)>)
|
|
240
175
|
|
|
241
176
|
## [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
177
|
|
|
243
178
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
244
179
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
180
|
## [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
181
|
|
|
251
|
-
|
|
252
182
|
### Bug Fixes
|
|
253
183
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
184
|
+
- **math-input:** PD-1669 handle latex with errors in keypad buttons ([6b36f17](https://github.com/pie-framework/pie-lib/commit/6b36f175deffbd0a0fe021f4f7a11d7c4f14a014))
|
|
259
185
|
|
|
260
186
|
## [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
187
|
|
|
262
188
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
263
189
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
190
|
## [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
191
|
|
|
270
192
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
271
193
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
194
|
## [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
195
|
|
|
278
|
-
|
|
279
196
|
### Bug Fixes
|
|
280
197
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
198
|
+
- **math-input:** Fixed left-right arrow button ([6109149](https://github.com/pie-framework/pie-lib/commit/6109149))
|
|
286
199
|
|
|
287
200
|
## [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
201
|
|
|
289
|
-
|
|
290
202
|
### Bug Fixes
|
|
291
203
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
204
|
+
- **math-input:** create proper latex expression for log base button ([ca0c3f0](https://github.com/pie-framework/pie-lib/commit/ca0c3f0))
|
|
205
|
+
- **math-input:** Made overarc button consistent with the others PD-1315 ([8726469](https://github.com/pie-framework/pie-lib/commit/8726469))
|
|
206
|
+
- **math-input:** Made segment, ray and line buttons more consistent PD-1315 ([e7e4e29](https://github.com/pie-framework/pie-lib/commit/e7e4e29))
|
|
299
207
|
|
|
300
208
|
## [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
209
|
|
|
302
|
-
|
|
303
210
|
### Bug Fixes
|
|
304
211
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
212
|
+
- **math-input, math-toolbar:** Adjusted parallelogram button size ([699431e](https://github.com/pie-framework/pie-lib/commit/699431e))
|
|
310
213
|
|
|
311
214
|
## [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
215
|
|
|
313
|
-
|
|
314
216
|
### Bug Fixes
|
|
315
217
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
218
|
+
- **math-input:** render measured angle as m + angle sign PD-368 ([670fb56](https://github.com/pie-framework/pie-lib/commit/670fb56))
|
|
321
219
|
|
|
322
220
|
## [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
221
|
|
|
324
222
|
**Note:** Version bump only for package @pie-lib/math-input
|
|
325
223
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
224
|
## [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
225
|
|
|
332
|
-
|
|
333
226
|
### Bug Fixes
|
|
334
227
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
228
|
+
- **math-input:** default latex when received is wrong ([d872f60](https://github.com/pie-framework/pie-lib/commit/d872f60))
|
|
229
|
+
- **math-input:** default latex when received is wrong (2) ([dc71307](https://github.com/pie-framework/pie-lib/commit/dc71307))
|
|
230
|
+
- **math-input:** fix e button on advanced algebra math editor PD-1280 ([dbfb53b](https://github.com/pie-framework/pie-lib/commit/dbfb53b))
|
|
231
|
+
- **math-input:** Fixed arrows button for pits ([66dd6a9](https://github.com/pie-framework/pie-lib/commit/66dd6a9))
|
|
343
232
|
|
|
344
233
|
# [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
234
|
|
|
346
|
-
|
|
347
235
|
### Bug Fixes
|
|
348
236
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
237
|
+
- **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))
|
|
238
|
+
- **math-toolbar:** Made segment, ray and line more consistent PD-1264 ([1a2ad37](https://github.com/pie-framework/pie-lib/commit/1a2ad37))
|
|
239
|
+
- **math-toolbar & math-input:** render parallel sign with bigger font PD-1258 ([418fc28](https://github.com/pie-framework/pie-lib/commit/418fc28))
|
|
353
240
|
|
|
354
241
|
### Features
|
|
355
242
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
243
|
+
- **math-input, math-toolbar:** add long division button in math editor PD-888 ([3056990](https://github.com/pie-framework/pie-lib/commit/3056990))
|
|
361
244
|
|
|
362
245
|
## [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
246
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.12.0-beta.2",
|
|
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
|
+
"classnames": "^2.2.6",
|
|
13
15
|
"debug": "^4.1.1",
|
|
14
16
|
"lodash": "^4.17.11",
|
|
17
|
+
"prop-types": "^15.7.2",
|
|
15
18
|
"react-portal": "^4.2.0"
|
|
16
19
|
},
|
|
17
20
|
"peerDependencies": {
|
|
@@ -22,5 +25,5 @@
|
|
|
22
25
|
"react-dom": "^16.9.0"
|
|
23
26
|
},
|
|
24
27
|
"scripts": {},
|
|
25
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453"
|
|
26
29
|
}
|
|
@@ -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
|
+
`;
|