@pie-lib/math-toolbar 1.11.31-next.135 → 1.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 +55 -196
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +7 -5
- package/src/__tests__/__snapshots__/editor-and-pad.test.js.snap +31 -0
- package/src/__tests__/__snapshots__/index.test.js.snap +30 -0
- package/src/__tests__/__snapshots__/math-preview.test.js.snap +23 -0
- package/src/__tests__/editor-and-pad.test.js +25 -0
- package/src/__tests__/index.test.js +28 -0
- package/src/__tests__/math-preview.test.js +31 -0
- package/src/editor-and-pad.jsx +21 -120
- package/src/index.jsx +12 -1
- package/src/math-preview.jsx +28 -48
- package/src/utils.js +11 -0
- package/lib/done-button.js +0 -68
- package/lib/done-button.js.map +0 -1
- package/lib/editor-and-pad.js +0 -653
- package/lib/editor-and-pad.js.map +0 -1
- package/lib/index.js +0 -275
- package/lib/index.js.map +0 -1
- package/lib/math-preview.js +0 -250
- package/lib/math-preview.js.map +0 -1
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
|
+
# [1.12.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.30...@pie-lib/math-toolbar@1.12.0-beta.2) (2025-07-20)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# [1.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.30...@pie-lib/math-toolbar@1.12.0-beta.1) (2025-07-20)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
17
17
|
|
|
@@ -19,388 +19,247 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# [1.12.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.30...@pie-lib/math-toolbar@1.12.0-beta.1) (2025-07-20)
|
|
23
23
|
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
24
25
|
|
|
25
|
-
### Bug Fixes
|
|
26
26
|
|
|
27
|
-
* made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
28
27
|
|
|
29
28
|
|
|
30
29
|
|
|
30
|
+
# [1.12.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.30...@pie-lib/math-toolbar@1.12.0-beta.0) (2025-07-20)
|
|
31
31
|
|
|
32
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
32
33
|
|
|
33
|
-
## [1.11.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.26...@pie-lib/math-toolbar@1.11.27) (2023-05-02)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
### Bug Fixes
|
|
37
36
|
|
|
38
|
-
* **math-toolbar:** add white background for spanish and special characters done button PD-2119 ([3c1dd82](https://github.com/pie-framework/pie-lib/commit/3c1dd82f7d3f21651d3e5f87d5d543ad4a0907bf))
|
|
39
37
|
|
|
38
|
+
# [1.13.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.30...@pie-lib/math-toolbar@1.13.0-beta.0) (2025-07-15)
|
|
40
39
|
|
|
40
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
41
41
|
|
|
42
|
+
# [1.12.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.30...@pie-lib/math-toolbar@1.12.0-beta.0) (2025-07-15)
|
|
42
43
|
|
|
44
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
43
45
|
|
|
44
|
-
## [1.11.
|
|
46
|
+
## [1.11.30](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.29...@pie-lib/math-toolbar@1.11.30) (2023-07-04)
|
|
45
47
|
|
|
48
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
## [1.11.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.28...@pie-lib/math-toolbar@1.11.29) (2023-06-24)
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
50
53
|
|
|
54
|
+
## [1.11.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.27...@pie-lib/math-toolbar@1.11.28) (2023-05-22)
|
|
51
55
|
|
|
56
|
+
### Bug Fixes
|
|
52
57
|
|
|
58
|
+
- made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
53
59
|
|
|
60
|
+
## [1.11.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.26...@pie-lib/math-toolbar@1.11.27) (2023-05-02)
|
|
54
61
|
|
|
55
|
-
|
|
62
|
+
### Bug Fixes
|
|
56
63
|
|
|
64
|
+
- **math-toolbar:** add white background for spanish and special characters done button PD-2119 ([3c1dd82](https://github.com/pie-framework/pie-lib/commit/3c1dd82f7d3f21651d3e5f87d5d543ad4a0907bf))
|
|
57
65
|
|
|
58
|
-
|
|
66
|
+
## [1.11.26](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.25...@pie-lib/math-toolbar@1.11.26) (2023-05-01)
|
|
59
67
|
|
|
60
|
-
|
|
68
|
+
### Bug Fixes
|
|
61
69
|
|
|
70
|
+
- **math-toolbar:** add style to sqrt component ([be42f61](https://github.com/pie-framework/pie-lib/commit/be42f619468d9fd07f2bbc79ff70849d98b32d4d))
|
|
62
71
|
|
|
72
|
+
## [1.11.25](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.24...@pie-lib/math-toolbar@1.11.25) (2023-04-19)
|
|
63
73
|
|
|
74
|
+
### Bug Fixes
|
|
64
75
|
|
|
76
|
+
- **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
65
77
|
|
|
66
78
|
## [1.11.24](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.23...@pie-lib/math-toolbar@1.11.24) (2023-04-07)
|
|
67
79
|
|
|
68
80
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
69
81
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
82
|
## [1.11.23](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.22...@pie-lib/math-toolbar@1.11.23) (2023-03-20)
|
|
75
83
|
|
|
76
84
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
86
|
## [1.11.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.20...@pie-lib/math-toolbar@1.11.22) (2023-01-31)
|
|
83
87
|
|
|
84
88
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
90
|
## [1.11.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.19...@pie-lib/math-toolbar@1.11.20) (2023-01-31)
|
|
91
91
|
|
|
92
92
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
94
|
## [1.11.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.18...@pie-lib/math-toolbar@1.11.19) (2023-01-31)
|
|
99
95
|
|
|
100
96
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
101
97
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
98
|
## [1.11.18](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.17...@pie-lib/math-toolbar@1.11.18) (2023-01-31)
|
|
107
99
|
|
|
108
100
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
109
101
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
102
|
## [1.11.17](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.10...@pie-lib/math-toolbar@1.11.17) (2023-01-31)
|
|
115
103
|
|
|
116
104
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
117
105
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
106
|
## [1.11.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.8...@pie-lib/math-toolbar@1.11.10) (2023-01-31)
|
|
123
107
|
|
|
124
108
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
125
109
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
110
|
## [1.11.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.6...@pie-lib/math-toolbar@1.11.8) (2023-01-31)
|
|
131
111
|
|
|
132
112
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
133
113
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
114
|
## [1.11.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.5...@pie-lib/math-toolbar@1.11.6) (2023-01-03)
|
|
139
115
|
|
|
140
116
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
141
117
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
118
|
## [1.11.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.4...@pie-lib/math-toolbar@1.11.5) (2022-12-19)
|
|
147
119
|
|
|
148
120
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
149
121
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
122
|
## [1.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.3...@pie-lib/math-toolbar@1.11.4) (2022-11-23)
|
|
155
123
|
|
|
156
124
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
157
125
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
126
|
## [1.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.2...@pie-lib/math-toolbar@1.11.3) (2022-11-17)
|
|
163
127
|
|
|
164
128
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
165
129
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
130
|
## [1.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.1...@pie-lib/math-toolbar@1.11.2) (2022-11-14)
|
|
171
131
|
|
|
172
|
-
|
|
173
132
|
### Bug Fixes
|
|
174
133
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
134
|
+
- 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))
|
|
180
135
|
|
|
181
136
|
## [1.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.0...@pie-lib/math-toolbar@1.11.1) (2022-08-30)
|
|
182
137
|
|
|
183
138
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
184
139
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
140
|
# [1.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.3...@pie-lib/math-toolbar@1.11.0) (2022-08-29)
|
|
190
141
|
|
|
191
|
-
|
|
192
142
|
### Features
|
|
193
143
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
144
|
+
- **math-toolbar:** feedback ([f3ef92d](https://github.com/pie-framework/pie-lib/commit/f3ef92d2dad55e0e0aff6dc216cc491f1fde94f2))
|
|
145
|
+
- **math-toolbar:** feedback ([85e4b58](https://github.com/pie-framework/pie-lib/commit/85e4b585dfb389a026629607ce54f6e3ac7d15fb))
|
|
146
|
+
- **math-toolbar:** feedback ([b1d925f](https://github.com/pie-framework/pie-lib/commit/b1d925f1caf67a0851eadb07467ed042df4513ea))
|
|
147
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax's one ([043ab63](https://github.com/pie-framework/pie-lib/commit/043ab63dda1914c992821d3f90992fe65817c597))
|
|
148
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax's one ([8b7a7ed](https://github.com/pie-framework/pie-lib/commit/8b7a7ed46eb5e597589dd0f999663bfeb20edaa9))
|
|
149
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax's one ([85ca9bd](https://github.com/pie-framework/pie-lib/commit/85ca9bdd12227054d1d3045e610544211251a699))
|
|
150
|
+
- **math-toolbar:** updates fonts accordingly - variables use italic MJXTEX-I ([9a0b157](https://github.com/pie-framework/pie-lib/commit/9a0b1579c9c17d77a94f62eeb4cc160c21ab2f81))
|
|
205
151
|
|
|
206
152
|
## [1.10.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.2...@pie-lib/math-toolbar@1.10.3) (2022-08-01)
|
|
207
153
|
|
|
208
154
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
209
155
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
156
|
## [1.10.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.1...@pie-lib/math-toolbar@1.10.2) (2022-07-19)
|
|
215
157
|
|
|
216
158
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
217
159
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
160
|
## [1.10.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.0...@pie-lib/math-toolbar@1.10.1) (2022-07-18)
|
|
223
161
|
|
|
224
|
-
|
|
225
162
|
### Reverts
|
|
226
163
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
164
|
+
- Revert "feat(math-toolbar): Make math-toolbar style inline with mathjax from Numeric to Grade 8HS PD-1521" ([f604ddd](https://github.com/pie-framework/pie-lib/commit/f604ddd8402b81f101e3f50b1baa4cc1bd5eec34))
|
|
165
|
+
- Revert "feat(math-toolbar): Make math-toolbar preview style inline with mathjax" ([bb86c35](https://github.com/pie-framework/pie-lib/commit/bb86c35ed56228c673020faf5ea089fb99418fd8))
|
|
166
|
+
- Revert "tweak" ([0c59e89](https://github.com/pie-framework/pie-lib/commit/0c59e89d5ca923e93a742051b3df7e9c8b2b90cc))
|
|
167
|
+
- Revert "tweaks" ([647904f](https://github.com/pie-framework/pie-lib/commit/647904f3dc4f59b86064be1d7b9bbd2a4184f96b))
|
|
235
168
|
|
|
236
169
|
# [1.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.9.4...@pie-lib/math-toolbar@1.10.0) (2022-07-18)
|
|
237
170
|
|
|
238
|
-
|
|
239
171
|
### Bug Fixes
|
|
240
172
|
|
|
241
|
-
|
|
242
|
-
|
|
173
|
+
- **math-toolbar:** add sanity check for clicking in editor-and-pad ([4c5dc18](https://github.com/pie-framework/pie-lib/commit/4c5dc18e077fca9a50f9c638f64ba08bba3b0884))
|
|
243
174
|
|
|
244
175
|
### Features
|
|
245
176
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
177
|
+
- **math-toolbar:** Make math-toolbar preview style inline with mathjax ([266b1bc](https://github.com/pie-framework/pie-lib/commit/266b1bc9a277530fd653edfacbb836596957dd33))
|
|
178
|
+
- **math-toolbar:** Make math-toolbar style inline with mathjax from Numeric to Grade 8HS PD-1521 ([5c49326](https://github.com/pie-framework/pie-lib/commit/5c493262ccf2ca8ba4c80af42e566b4e7a8c3571))
|
|
179
|
+
- **plugins:** added special characters adding capabilities [PD-1462](<[b9f41e1](https://github.com/pie-framework/pie-lib/commit/b9f41e11f44df140a66145d0b04558ca2b0ea48e)>)
|
|
253
180
|
|
|
254
181
|
## [1.9.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.9.3...@pie-lib/math-toolbar@1.9.4) (2022-06-13)
|
|
255
182
|
|
|
256
183
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
257
184
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
185
|
## [1.9.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.9.2...@pie-lib/math-toolbar@1.9.3) (2022-05-10)
|
|
263
186
|
|
|
264
|
-
|
|
265
187
|
### Bug Fixes
|
|
266
188
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
189
|
+
- **math-toolbar:** make sure errors visually update for item validation ([d36fe40](https://github.com/pie-framework/pie-lib/commit/d36fe4071deb5cb10f61758cfe73b185574b27af))
|
|
272
190
|
|
|
273
191
|
## [1.9.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.9.1...@pie-lib/math-toolbar@1.9.2) (2022-05-09)
|
|
274
192
|
|
|
275
|
-
|
|
276
193
|
### Bug Fixes
|
|
277
194
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
195
|
+
- **math-toolbar:** fix simple response gather PD-1786 ([1769577](https://github.com/pie-framework/pie-lib/commit/176957700d75d3efa0e5fbf08e8e4c6ffe61320d))
|
|
283
196
|
|
|
284
197
|
## [1.9.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.9.0...@pie-lib/math-toolbar@1.9.1) (2022-05-03)
|
|
285
198
|
|
|
286
|
-
|
|
287
199
|
### Bug Fixes
|
|
288
200
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
201
|
+
- **math-toolbar:** add sanity checks ([e012294](https://github.com/pie-framework/pie-lib/commit/e012294184b6f0c1472e6306be01e76e650c8fa5))
|
|
294
202
|
|
|
295
203
|
# [1.9.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.9...@pie-lib/math-toolbar@1.9.0) (2022-05-03)
|
|
296
204
|
|
|
297
|
-
|
|
298
205
|
### Features
|
|
299
206
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
207
|
+
- **math-toolbar:** add validation ui/ux for math-inline inputs PD-1705 ([cbc7205](https://github.com/pie-framework/pie-lib/commit/cbc72051deaefd76765cd60a387e47eebd0abc2f))
|
|
208
|
+
- **math-toolbar:** PD-1705 disable logic for add button in editor if maxResponseAreas is defined ([d68034c](https://github.com/pie-framework/pie-lib/commit/d68034cb4a2d24224f2c778fa4cf425ff157177a))
|
|
306
209
|
|
|
307
210
|
## [1.8.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.8...@pie-lib/math-toolbar@1.8.9) (2022-04-12)
|
|
308
211
|
|
|
309
212
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
310
213
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
214
|
## [1.8.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.7...@pie-lib/math-toolbar@1.8.8) (2022-02-04)
|
|
316
215
|
|
|
317
216
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
318
217
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
218
|
## [1.8.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.6...@pie-lib/math-toolbar@1.8.7) (2022-01-10)
|
|
324
219
|
|
|
325
220
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
326
221
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
222
|
## [1.8.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.5...@pie-lib/math-toolbar@1.8.6) (2021-10-04)
|
|
332
223
|
|
|
333
224
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
334
225
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
226
|
## [1.8.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.4...@pie-lib/math-toolbar@1.8.5) (2021-10-04)
|
|
340
227
|
|
|
341
228
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
342
229
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
230
|
## [1.8.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.3...@pie-lib/math-toolbar@1.8.4) (2021-09-20)
|
|
348
231
|
|
|
349
|
-
|
|
350
232
|
### Bug Fixes
|
|
351
233
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
234
|
+
- **math-input, math-toolbar:** Adjusted parallelogram button size ([699431e](https://github.com/pie-framework/pie-lib/commit/699431e))
|
|
357
235
|
|
|
358
236
|
## [1.8.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.2...@pie-lib/math-toolbar@1.8.3) (2021-09-16)
|
|
359
237
|
|
|
360
238
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
361
239
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
240
|
## [1.8.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.1...@pie-lib/math-toolbar@1.8.2) (2021-09-08)
|
|
367
241
|
|
|
368
242
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
369
243
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
244
|
## [1.8.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.8.0...@pie-lib/math-toolbar@1.8.1) (2021-09-08)
|
|
375
245
|
|
|
376
|
-
|
|
377
246
|
### Bug Fixes
|
|
378
247
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
248
|
+
- **math-toolbar:** Fixed arrows for pits ([f22208b](https://github.com/pie-framework/pie-lib/commit/f22208b))
|
|
384
249
|
|
|
385
250
|
# [1.8.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.7.14...@pie-lib/math-toolbar@1.8.0) (2021-08-30)
|
|
386
251
|
|
|
387
|
-
|
|
388
252
|
### Bug Fixes
|
|
389
253
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
254
|
+
- **math-toolbar:** Added a min width for line notation PD-1263 ([92a560f](https://github.com/pie-framework/pie-lib/commit/92a560f))
|
|
255
|
+
- **math-toolbar:** Made segment, ray and line more consistent PD-1264 ([1a2ad37](https://github.com/pie-framework/pie-lib/commit/1a2ad37))
|
|
256
|
+
- **math-toolbar & math-input:** render parallel sign with bigger font PD-1258 ([418fc28](https://github.com/pie-framework/pie-lib/commit/418fc28))
|
|
257
|
+
- override arrow style for ray PD-1265 ([815e3a5](https://github.com/pie-framework/pie-lib/commit/815e3a5))
|
|
395
258
|
|
|
396
259
|
### Features
|
|
397
260
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
261
|
+
- **math-input, math-toolbar:** add long division button in math editor PD-888 ([3056990](https://github.com/pie-framework/pie-lib/commit/3056990))
|
|
262
|
+
- **math-toolbar:** default to the grade 8 editor PD-1266 ([0cd28a2](https://github.com/pie-framework/pie-lib/commit/0cd28a2))
|
|
404
263
|
|
|
405
264
|
## [1.7.14](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.7.12...@pie-lib/math-toolbar@1.7.14) (2021-06-25)
|
|
406
265
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.12.0-beta.2",
|
|
7
7
|
"description": "Math toolbar for editing math equations",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"math",
|
|
@@ -19,19 +19,21 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@material-ui/core": "^3.8.3",
|
|
21
21
|
"@material-ui/icons": "^3.0.2",
|
|
22
|
-
"@pie-lib/math-input": "
|
|
22
|
+
"@pie-lib/math-input": "beta",
|
|
23
|
+
"@pie-lib/render-ui": "beta",
|
|
23
24
|
"classnames": "^2.2.6",
|
|
24
25
|
"debug": "^4.1.1",
|
|
25
26
|
"keycode": "^2.2.0",
|
|
26
|
-
"lodash": "^4.17.11"
|
|
27
|
+
"lodash": "^4.17.11",
|
|
28
|
+
"prop-types": "^15.7.2"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
29
31
|
"react": "^16.8.1",
|
|
30
32
|
"react-dom": "^16.9.0"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@pie-lib/test-utils": "
|
|
35
|
+
"@pie-lib/test-utils": "beta"
|
|
34
36
|
},
|
|
35
37
|
"scripts": {},
|
|
36
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453"
|
|
37
39
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`snapshot renders 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className=""
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
className=""
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
className=""
|
|
12
|
+
>
|
|
13
|
+
<WithStyles(Input)
|
|
14
|
+
className=""
|
|
15
|
+
innerRef={[Function]}
|
|
16
|
+
onBlur={[Function]}
|
|
17
|
+
onChange={[Function]}
|
|
18
|
+
onFocus={[Function]}
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<hr />
|
|
23
|
+
<HorizontalKeypad
|
|
24
|
+
additionalKeys={Array []}
|
|
25
|
+
className=""
|
|
26
|
+
mode="scientific"
|
|
27
|
+
noDecimal={false}
|
|
28
|
+
onClick={[Function]}
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`snapshot renders with DONE button if hideDoneButton is not defined 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className=""
|
|
6
|
+
>
|
|
7
|
+
<div />
|
|
8
|
+
<WithStyles(EditorAndPad)
|
|
9
|
+
classNames={Object {}}
|
|
10
|
+
controlledKeypad={true}
|
|
11
|
+
showKeypad={true}
|
|
12
|
+
/>
|
|
13
|
+
<WithStyles(RawDoneButton)
|
|
14
|
+
hideBackground={false}
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
exports[`snapshot renders without DONE button if hideDoneButton value is true 1`] = `
|
|
20
|
+
<div
|
|
21
|
+
className=""
|
|
22
|
+
>
|
|
23
|
+
<div />
|
|
24
|
+
<WithStyles(EditorAndPad)
|
|
25
|
+
classNames={Object {}}
|
|
26
|
+
controlledKeypad={true}
|
|
27
|
+
showKeypad={true}
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`snapshot renders 1`] = `
|
|
4
|
+
<RawMathPreview
|
|
5
|
+
classes={
|
|
6
|
+
Object {
|
|
7
|
+
"insideOverlay": "RawMathPreview-insideOverlay-3",
|
|
8
|
+
"root": "RawMathPreview-root-1",
|
|
9
|
+
"selected": "RawMathPreview-selected-2",
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
isSelected={false}
|
|
13
|
+
node={
|
|
14
|
+
Object {
|
|
15
|
+
"data": Object {
|
|
16
|
+
"get": [MockFunction],
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
onBlur={[MockFunction]}
|
|
21
|
+
onFocus={[MockFunction]}
|
|
22
|
+
/>
|
|
23
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EditorAndPad } from '../editor-and-pad';
|
|
2
|
+
import { shallow } from 'enzyme';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
describe('snapshot', () => {
|
|
6
|
+
let wrapper;
|
|
7
|
+
let onBlur = jest.fn();
|
|
8
|
+
|
|
9
|
+
beforeAll(() => {
|
|
10
|
+
wrapper = (extras) => {
|
|
11
|
+
const defaults = {
|
|
12
|
+
classes: {},
|
|
13
|
+
classNames: {},
|
|
14
|
+
onBlur,
|
|
15
|
+
};
|
|
16
|
+
const props = { ...defaults, ...extras };
|
|
17
|
+
|
|
18
|
+
return shallow(<EditorAndPad {...props} />);
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('renders', () => {
|
|
23
|
+
expect(wrapper()).toMatchSnapshot();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RawPureToolbar } from '../index';
|
|
2
|
+
import { shallow } from 'enzyme';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
describe('snapshot', () => {
|
|
6
|
+
let wrapper;
|
|
7
|
+
|
|
8
|
+
beforeAll(() => {
|
|
9
|
+
wrapper = (extras) => {
|
|
10
|
+
const defaults = {
|
|
11
|
+
classes: {},
|
|
12
|
+
controlledKeypad: true,
|
|
13
|
+
showKeypad: true,
|
|
14
|
+
};
|
|
15
|
+
const props = { ...defaults, ...extras };
|
|
16
|
+
|
|
17
|
+
return shallow(<RawPureToolbar {...props} />);
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('renders with DONE button if hideDoneButton is not defined', () => {
|
|
22
|
+
expect(wrapper()).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('renders without DONE button if hideDoneButton value is true', () => {
|
|
26
|
+
expect(wrapper({ hideDoneButton: true })).toMatchSnapshot();
|
|
27
|
+
});
|
|
28
|
+
});
|