@khanacademy/math-input 17.0.4 → 17.0.5

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.
Files changed (82) hide show
  1. package/dist/es/index.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/package.json +5 -2
  4. package/.eslintrc.js +0 -18
  5. package/CHANGELOG.md +0 -660
  6. package/less/main.less +0 -2
  7. package/less/overrides.less +0 -122
  8. package/src/components/__tests__/integration.test.tsx +0 -300
  9. package/src/components/aphrodite-css-transition-group/index.tsx +0 -78
  10. package/src/components/aphrodite-css-transition-group/transition-child.tsx +0 -192
  11. package/src/components/aphrodite-css-transition-group/types.ts +0 -20
  12. package/src/components/aphrodite-css-transition-group/util.ts +0 -97
  13. package/src/components/input/__tests__/context-tracking.test.ts +0 -176
  14. package/src/components/input/__tests__/mathquill-helpers.test.ts +0 -105
  15. package/src/components/input/__tests__/mathquill.test.ts +0 -747
  16. package/src/components/input/__tests__/test-math-wrapper.ts +0 -29
  17. package/src/components/input/cursor-contexts.ts +0 -37
  18. package/src/components/input/cursor-handle.tsx +0 -137
  19. package/src/components/input/cursor-styles.ts +0 -10
  20. package/src/components/input/drag-listener.ts +0 -79
  21. package/src/components/input/math-input.tsx +0 -1036
  22. package/src/components/input/math-wrapper.ts +0 -189
  23. package/src/components/input/mathquill-helpers.ts +0 -262
  24. package/src/components/input/mathquill-instance.ts +0 -106
  25. package/src/components/input/mathquill-types.ts +0 -32
  26. package/src/components/input/scroll-into-view.ts +0 -65
  27. package/src/components/key-handlers/__tests__/handle-jump-out.test.ts +0 -94
  28. package/src/components/key-handlers/handle-arrow.ts +0 -70
  29. package/src/components/key-handlers/handle-backspace.ts +0 -277
  30. package/src/components/key-handlers/handle-exponent.ts +0 -53
  31. package/src/components/key-handlers/handle-jump-out.ts +0 -107
  32. package/src/components/key-handlers/key-translator.ts +0 -222
  33. package/src/components/keypad/__tests__/__snapshots__/keypad.test.tsx.snap +0 -1913
  34. package/src/components/keypad/__tests__/__snapshots__/mobile-keypad.test.tsx.snap +0 -600
  35. package/src/components/keypad/__tests__/keypad-button.test.tsx +0 -84
  36. package/src/components/keypad/__tests__/keypad-v2-mathquill.test.tsx +0 -304
  37. package/src/components/keypad/__tests__/keypad-v2.cypress.ts +0 -16
  38. package/src/components/keypad/__tests__/keypad.test.tsx +0 -321
  39. package/src/components/keypad/__tests__/mobile-keypad.test.tsx +0 -115
  40. package/src/components/keypad/__tests__/test-data-tabs.ts +0 -21
  41. package/src/components/keypad/button-assets.tsx +0 -1880
  42. package/src/components/keypad/index.tsx +0 -2
  43. package/src/components/keypad/keypad-button.stories.tsx +0 -81
  44. package/src/components/keypad/keypad-button.tsx +0 -124
  45. package/src/components/keypad/keypad-mathquill.stories.tsx +0 -109
  46. package/src/components/keypad/keypad-pages/extras-page.tsx +0 -35
  47. package/src/components/keypad/keypad-pages/fractions-page.tsx +0 -125
  48. package/src/components/keypad/keypad-pages/geometry-page.tsx +0 -34
  49. package/src/components/keypad/keypad-pages/keypad-pages.stories.tsx +0 -37
  50. package/src/components/keypad/keypad-pages/numbers-page.tsx +0 -94
  51. package/src/components/keypad/keypad-pages/operators-page.tsx +0 -117
  52. package/src/components/keypad/keypad.tsx +0 -233
  53. package/src/components/keypad/mobile-keypad-internals.tsx +0 -240
  54. package/src/components/keypad/mobile-keypad.tsx +0 -24
  55. package/src/components/keypad/navigation-button.tsx +0 -127
  56. package/src/components/keypad/navigation-pad.stories.tsx +0 -26
  57. package/src/components/keypad/navigation-pad.tsx +0 -67
  58. package/src/components/keypad/shared-keys.tsx +0 -109
  59. package/src/components/keypad/utils.ts +0 -34
  60. package/src/components/keypad-context.tsx +0 -70
  61. package/src/components/prop-types.ts +0 -16
  62. package/src/components/tabbar/__tests__/tabbar.test.tsx +0 -105
  63. package/src/components/tabbar/icons.tsx +0 -122
  64. package/src/components/tabbar/index.ts +0 -1
  65. package/src/components/tabbar/item.tsx +0 -146
  66. package/src/components/tabbar/tabbar.stories.tsx +0 -83
  67. package/src/components/tabbar/tabbar.tsx +0 -65
  68. package/src/data/key-configs.ts +0 -770
  69. package/src/data/keys.ts +0 -123
  70. package/src/enums.ts +0 -27
  71. package/src/fake-react-native-web/index.ts +0 -11
  72. package/src/fake-react-native-web/text.tsx +0 -55
  73. package/src/fake-react-native-web/view.tsx +0 -91
  74. package/src/full-keypad.stories.tsx +0 -142
  75. package/src/full-mobile-input.stories.tsx +0 -115
  76. package/src/index.ts +0 -52
  77. package/src/types.ts +0 -70
  78. package/src/utils.test.ts +0 -33
  79. package/src/utils.ts +0 -61
  80. package/src/version.ts +0 -10
  81. package/tsconfig-build.json +0 -11
  82. package/tsconfig-build.tsbuildinfo +0 -1
package/CHANGELOG.md DELETED
@@ -1,660 +0,0 @@
1
- # @khanacademy/math-input
2
-
3
- ## 17.0.4
4
-
5
- ### Patch Changes
6
-
7
- - [#966](https://github.com/Khan/perseus/pull/966) [`ba44dd40`](https://github.com/Khan/perseus/commit/ba44dd405272b066615099c8bd30033715305939) Thanks [@handeyeco](https://github.com/handeyeco)! - Fix wrong SVG, make lower t use lower t SVG
8
-
9
- ## 17.0.3
10
-
11
- ### Patch Changes
12
-
13
- - [#963](https://github.com/Khan/perseus/pull/963) [`a4a4dc44`](https://github.com/Khan/perseus/commit/a4a4dc447037eaea83423dc21a15076435c4b638) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Remove unused dependency: performance-now
14
-
15
- ## 17.0.2
16
-
17
- ### Patch Changes
18
-
19
- - [#957](https://github.com/Khan/perseus/pull/957) [`19114138`](https://github.com/Khan/perseus/commit/1911413844b59ef87d5b2329f6120e4568be9ae3) Thanks [@nedredmond](https://github.com/nedredmond)! - MathQuill provided a translated label
20
-
21
- ## 17.0.1
22
-
23
- ### Patch Changes
24
-
25
- - [#950](https://github.com/Khan/perseus/pull/950) [`8c8af142`](https://github.com/Khan/perseus/commit/8c8af1425a5cd257ca894b20bdb481f7148ffa7d) Thanks [@nishasy](https://github.com/nishasy)! - Change the focus order so the FRAC key is before the PLUS key
26
-
27
- ## 17.0.0
28
-
29
- ### Major Changes
30
-
31
- - [#937](https://github.com/Khan/perseus/pull/937) [`ef898f77`](https://github.com/Khan/perseus/commit/ef898f77f45f3494f5012d2db52a3461aad93c69) Thanks [@nishasy](https://github.com/nishasy)! - Upgraded MathQuill API version + type updates
32
-
33
- ## 16.5.1
34
-
35
- ### Patch Changes
36
-
37
- - [#940](https://github.com/Khan/perseus/pull/940) [`e970dfcc`](https://github.com/Khan/perseus/commit/e970dfcc51e7b535e94669e6ffe0cbdd6d9b7b89) Thanks [@nishasy](https://github.com/nishasy)! - Fixed the answer pill's height in Label Image widget to account for multi-line answers
38
-
39
- ## 16.5.0
40
-
41
- ### Minor Changes
42
-
43
- - [#921](https://github.com/Khan/perseus/pull/921) [`81b9a562`](https://github.com/Khan/perseus/commit/81b9a562d0fb8ff2cd82e708781432bff8437116) Thanks [@benchristel](https://github.com/benchristel)! - Make the Expression widget treat `sen` as equivalent to `sin`. The spelling
44
- `sen` is used in Portuguese.
45
-
46
- ## 16.4.1
47
-
48
- ### Patch Changes
49
-
50
- - [#881](https://github.com/Khan/perseus/pull/881) [`f02eb991`](https://github.com/Khan/perseus/commit/f02eb991cec37dcff02056c0d6b54fc6dfd96948) Thanks [@nedredmond](https://github.com/nedredmond)! - Swap out Label Image custom dropdown for WonderBlocks
51
-
52
- ## 16.4.0
53
-
54
- ### Minor Changes
55
-
56
- - [#871](https://github.com/Khan/perseus/pull/871) [`610ebba2`](https://github.com/Khan/perseus/commit/610ebba29ab8b2ee4ddf4879f8c8b87993f29b20) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Ensured that tapping an already focused math input will reopen the keypad if it is closed.
57
-
58
- ## 16.3.0
59
-
60
- ### Minor Changes
61
-
62
- - [#863](https://github.com/Khan/perseus/pull/863) [`f910bd72`](https://github.com/Khan/perseus/commit/f910bd72fc5cbf88a1a00d57f8aefa8eea2c755d) Thanks [@handeyeco](https://github.com/handeyeco)! - Localize the multiplication symbol in MathInput
63
-
64
- ## 16.2.0
65
-
66
- ### Minor Changes
67
-
68
- - [#853](https://github.com/Khan/perseus/pull/853) [`cbcc0e68`](https://github.com/Khan/perseus/commit/cbcc0e689b6d4640361c14ae112c476fb061d5f4) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Allowing click events on math-input in order to support third party browsers on ChromeOS.
69
-
70
- * [#859](https://github.com/Khan/perseus/pull/859) [`e7bec961`](https://github.com/Khan/perseus/commit/e7bec961bc5136bcaeb4ebb4b6744b0809f372ec) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Ensure that we're always getting the current keypadBounds
71
-
72
- ## 16.1.2
73
-
74
- ### Patch Changes
75
-
76
- - [#856](https://github.com/Khan/perseus/pull/856) [`6c323dc3`](https://github.com/Khan/perseus/commit/6c323dc37e7cc972fe5a1ab7cbf90a23bf4dd3a0) Thanks [@nedredmond](https://github.com/nedredmond)! - Upgrade WB
77
-
78
- * [#804](https://github.com/Khan/perseus/pull/804) [`2c295e2c`](https://github.com/Khan/perseus/commit/2c295e2c26ff2bf15e1e8e82bcc34e04e4b9bab0) Thanks [@nixterrimus](https://github.com/nixterrimus)! - Upgrade WonderBlocks Popover
79
-
80
- * Updated dependencies [[`1f4e17ba`](https://github.com/Khan/perseus/commit/1f4e17ba77e1491523813655af18a70285a25989), [`8857950b`](https://github.com/Khan/perseus/commit/8857950bdeeb6e13bc3766b1c6545289b21cbe2a)]:
81
- - @khanacademy/perseus-core@1.4.1
82
-
83
- ## 16.1.1
84
-
85
- ### Patch Changes
86
-
87
- - [#841](https://github.com/Khan/perseus/pull/841) [`41d3cd93`](https://github.com/Khan/perseus/commit/41d3cd93f78d4649c8a57b6fa4964c0c9f2c45b0) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove unused SVG tooling
88
-
89
- * [#843](https://github.com/Khan/perseus/pull/843) [`27f691aa`](https://github.com/Khan/perseus/commit/27f691aa11f061b54db487b5b35222431776260f) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove seemingly unused index.html
90
-
91
- - [#844](https://github.com/Khan/perseus/pull/844) [`3803452b`](https://github.com/Khan/perseus/commit/3803452b0593649faf4043bf6e1d7681a14078e4) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove seemingly unused Less
92
-
93
- * [#846](https://github.com/Khan/perseus/pull/846) [`ef32b88f`](https://github.com/Khan/perseus/commit/ef32b88f5027154784fb496506d7c96ee3765eac) Thanks [@handeyeco](https://github.com/handeyeco)! - Break up common-styles.ts
94
-
95
- - [#840](https://github.com/Khan/perseus/pull/840) [`820febc5`](https://github.com/Khan/perseus/commit/820febc5814a5a10d7c1743be8aa9d220f2d9bd8) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove Redux as a dependency
96
-
97
- * [#845](https://github.com/Khan/perseus/pull/845) [`67a09051`](https://github.com/Khan/perseus/commit/67a09051c61df98b697349ad75760193e4228bfe) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove some seemingly unused types
98
-
99
- ## 16.1.0
100
-
101
- ### Minor Changes
102
-
103
- - [#794](https://github.com/Khan/perseus/pull/794) [`a91c84fe`](https://github.com/Khan/perseus/commit/a91c84fe53827ff4333220777a9918882b7fe9f0) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Removing the useV2Keypad apiOption as the V1 keypad is no longer in use.
104
-
105
- ### Patch Changes
106
-
107
- - [#814](https://github.com/Khan/perseus/pull/814) [`105d2060`](https://github.com/Khan/perseus/commit/105d20603d935d35cff237b17f0bfb57ca751e4c) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Minor build change to how we provide Typescript type definitions (should be no change to build output).
108
-
109
- - Updated dependencies [[`a91c84fe`](https://github.com/Khan/perseus/commit/a91c84fe53827ff4333220777a9918882b7fe9f0), [`105d2060`](https://github.com/Khan/perseus/commit/105d20603d935d35cff237b17f0bfb57ca751e4c)]:
110
- - @khanacademy/perseus-core@1.4.0
111
-
112
- ## 16.0.0
113
-
114
- ### Major Changes
115
-
116
- - [#825](https://github.com/Khan/perseus/pull/825) [`7cb40e4c`](https://github.com/Khan/perseus/commit/7cb40e4c919be50e5ced41e4937178bbf849ec74) Thanks [@benchristel](https://github.com/benchristel)! - We've removed the deprecated `useV2Keypad` prop from the MobileKeypad component.
117
-
118
- The V2 keypad is now the default, and the old keypad has been removed.
119
-
120
- Additionally, the mobile keypad no longer accepts the `keypadActive` or
121
- `setKeypadActive` props. It now gets those values itself from the `KeypadContext`.
122
-
123
- ## 15.1.0
124
-
125
- ### Minor Changes
126
-
127
- - [#811](https://github.com/Khan/perseus/pull/811) [`bca527ab`](https://github.com/Khan/perseus/commit/bca527abc4d8b29942efec12509f9cf8be401e75) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Bump all Wonder Blocks dependencies to latest
128
-
129
- ## 15.0.1
130
-
131
- ### Patch Changes
132
-
133
- - [#800](https://github.com/Khan/perseus/pull/800) [`1d58b887`](https://github.com/Khan/perseus/commit/1d58b887179b129b5027e20484fde5169170f052) Thanks [@handeyeco](https://github.com/handeyeco)! - Bugfix: conditionally switch between period/comma for decimal separator
134
-
135
- ## 15.0.0
136
-
137
- ### Major Changes
138
-
139
- - [#786](https://github.com/Khan/perseus/pull/786) [`af4ebf37`](https://github.com/Khan/perseus/commit/af4ebf37dfed15ffd93a8cf2a20d0be464120dd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Added a new required dep in Perseus and MathInput (required by WB)
140
-
141
- ### Patch Changes
142
-
143
- - [#791](https://github.com/Khan/perseus/pull/791) [`3eb0e158`](https://github.com/Khan/perseus/commit/3eb0e15860224cc595d5b7e78d2a5d60e808561c) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Minor fix to ensure that the keypadElement is always provided to mobile keypad consumers
144
-
145
- ## 14.2.2
146
-
147
- ### Patch Changes
148
-
149
- - [#787](https://github.com/Khan/perseus/pull/787) [`ed00ee59`](https://github.com/Khan/perseus/commit/ed00ee59dcdeb20a66709c6b7d3474da55d58e4d) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Fix a bug where the mobile keypad didn't animate in the first time it appeared.
150
-
151
- - Updated dependencies [[`79403e06`](https://github.com/Khan/perseus/commit/79403e06eedb597d7818d6c858bbba6f51ff3fe1)]:
152
- - @khanacademy/perseus-core@1.3.0
153
-
154
- ## 14.2.1
155
-
156
- ### Patch Changes
157
-
158
- - [#759](https://github.com/Khan/perseus/pull/759) [`c431c4b8`](https://github.com/Khan/perseus/commit/c431c4b8147ae0630df2d2b19b0f5a5b5f04d4bf) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove references to unused font families
159
-
160
- * [#764](https://github.com/Khan/perseus/pull/764) [`fb84640d`](https://github.com/Khan/perseus/commit/fb84640de911a8e8817829985fe9956e83a7f7d1) Thanks [@handeyeco](https://github.com/handeyeco)! - Use useMemo in keypad context to avoid needless rerenders
161
-
162
- - [#767](https://github.com/Khan/perseus/pull/767) [`33cc24c3`](https://github.com/Khan/perseus/commit/33cc24c33f62cd87de7594ba575d311fd465e2e0) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Small comment fixes in the math keypad
163
-
164
- - Updated dependencies [[`376eb0e4`](https://github.com/Khan/perseus/commit/376eb0e4aaaa4c7a90fd6107a84bb74d382b077c)]:
165
- - @khanacademy/perseus-core@1.2.0
166
-
167
- ## 14.2.0
168
-
169
- ### Minor Changes
170
-
171
- - aea0387f: Change mobile-keypad to use AphroditeCSSTransitionGroup to animate mounting/unmounting the keypad when active (prevents DOM elements from being in the DOM unless the keypad is actually open).
172
-
173
- ### Patch Changes
174
-
175
- - c4ae088f: Upgrades MathQuill to fix Android keyboard error
176
-
177
- ## 14.1.1
178
-
179
- ### Patch Changes
180
-
181
- - Updated dependencies [22a9c408]
182
- - @khanacademy/perseus-core@1.1.2
183
-
184
- ## 14.1.0
185
-
186
- ### Minor Changes
187
-
188
- - 5bcf118c: Desktop Expression Widget now uses v2 keypad
189
-
190
- ## 14.0.1
191
-
192
- ### Patch Changes
193
-
194
- - 4f8afadd: Fix provided-keypad so that it doesn't re-render unnecessarily.
195
- - 7d8905b6: Removes "grid" role from keypad to un-muddle screen reader experience.
196
- - 55d4cd00: Print package name and version when loaded in the page
197
- - Updated dependencies [55d4cd00]
198
- - @khanacademy/perseus-core@1.1.1
199
-
200
- ## 14.0.0
201
-
202
- ### Major Changes
203
-
204
- - 14138bb0: Move StatefulKeypadContextProvider into math-input
205
- - 14138bb0: Hoist keypad active state into keypad context
206
-
207
- ## 13.1.0
208
-
209
- ### Minor Changes
210
-
211
- - 3b19a1bf: Ensured that we're properly calling componentWillUnmount
212
-
213
- ### Patch Changes
214
-
215
- - 7e2ae0ef: Bugfix for fraction button in v2 fraction keypad
216
- - 1dc460c7: Add tests for mobile MathInput
217
-
218
- ## 13.0.0
219
-
220
- ### Major Changes
221
-
222
- - 609aeb0a: Ensured that the multiplication symbol in our keypad matches the selected symbol from content.
223
-
224
- ### Patch Changes
225
-
226
- - 91f88d0b: Bugfix: v1 and v2 keypad using different FRAC configs
227
- - 4aac71b3: Hide v2 mobile MathInput keypad when it's never been activated
228
-
229
- ## 12.1.1
230
-
231
- ### Patch Changes
232
-
233
- - Updated dependencies [4f4fe4f9]
234
- - @khanacademy/perseus-core@1.1.0
235
-
236
- ## 12.1.0
237
-
238
- ### Minor Changes
239
-
240
- - a5a60852: revert focus changes to math input
241
-
242
- ## 12.0.1
243
-
244
- ### Patch Changes
245
-
246
- - a383823d: Bump @khanacademy/wonder-stuff-core to v1.5.1 (which adds needed support for `isTruthy` helper function)
247
-
248
- ## 12.0.0
249
-
250
- ### Major Changes
251
-
252
- - fa5f463b: Added onAnalyticsEvent prop to the LegacyKeypad (aka ProvidedKeypad). You must now pass in this prop, which is a function, to handle analytics events originating from the legacy keypad.
253
- - 6d8ede65: Added `onAnalyticsEvent` prop to MobileKeypad to pipe out Perseus analytics
254
-
255
- ### Minor Changes
256
-
257
- - fa1bb6b4: Implemented some focus management fixes and improved the full-math-input story.
258
-
259
- ### Patch Changes
260
-
261
- - 3afc0da2: Check for ResizeObserver before using it
262
-
263
- ## 11.0.0
264
-
265
- ### Major Changes
266
-
267
- - 2af4f9fa: Switch from using ProvideKeypad in ArticleRenderer to passing the keypad element down instead
268
-
269
- ### Patch Changes
270
-
271
- - Updated dependencies [2af4f9fa]
272
- - @khanacademy/perseus-core@1.0.0
273
-
274
- ## 10.1.1
275
-
276
- ### Patch Changes
277
-
278
- - 3f7be05a: Updated Keypad V2 TabbarItemType to KeypadPageType as a more accurate description.
279
- - 810c7bd9: Resize letter SVGs
280
- - b161d004: Ensured that the keypad is hidden from screen readers when it is closed.
281
- - a99a9ca4: Fix direction types for MathQuill interface
282
-
283
- ## 10.1.0
284
-
285
- ### Minor Changes
286
-
287
- - 781551f9: Add an expanded view in the v2 MobileKeypad for larger screens
288
-
289
- ## 10.0.1
290
-
291
- ### Patch Changes
292
-
293
- - 7b11736e: Fix cursor animation for MathInput
294
-
295
- ## 10.0.0
296
-
297
- ### Major Changes
298
-
299
- - dd800c22: Rename analytics prop from onEvent to onAnalyticsEvent
300
-
301
- ### Minor Changes
302
-
303
- - 5352d512: Handle keypad resize better when it's positioned absolutely
304
- - 673f61b3: Introduce `dependencies` on Keypad.
305
-
306
- ### Patch Changes
307
-
308
- - Updated dependencies [dd800c22]
309
- - @khanacademy/perseus-core@0.2.0
310
-
311
- ## 9.0.0
312
-
313
- ### Major Changes
314
-
315
- - 0993a46b: Don't generate Flow types
316
-
317
- ### Minor Changes
318
-
319
- - 87aadc43: Surface event from `onClickKey` callback
320
- - b93f9f74: Added new Mobile Fraction Keypad View to the V2 Keypad
321
-
322
- ### Patch Changes
323
-
324
- - 302ca7f7: Fix type for parameters of `moveOutOf` event.
325
- - afb14cff: Add eslint rule to make type imports consistent
326
- - 19054322: Tweak to capital letter icon buttons
327
- - ce5e6297: Upgrade wonder-blocks deps to package versions without Flow types
328
- - 196d2a39: Add icons for all letters
329
-
330
- ## 8.1.2
331
-
332
- ### Patch Changes
333
-
334
- - ea9dac75: Bugfix: allow legacy keypad to be positioned absolutely in column
335
- - 30a99b82: Allow v2 keypad to receive style prop like v1 keypad
336
- - 3fa556a3: Fixes bug where mouse hover causes grid to expand
337
-
338
- ## 8.1.1
339
-
340
- ### Patch Changes
341
-
342
- - Updated dependencies [57f75510]
343
- - @khanacademy/perseus-core@0.1.1
344
-
345
- ## 8.1.0
346
-
347
- ### Minor Changes
348
-
349
- - 5611204a: Adds back the export of the unwrapped keypad for Khanmigo
350
- - b4430dce: Make sendEvent in the Keypad an optional param
351
-
352
- ### Patch Changes
353
-
354
- - Updated dependencies [b4c06409]
355
- - @khanacademy/perseus-core@0.1.0
356
-
357
- ## 8.0.0
358
-
359
- ### Major Changes
360
-
361
- - f9ee9d24: Move KeypadContext from Perseus to MathInput
362
- - b18986d3: Replace Legacy/Mobile keypads with a component that switches between them
363
-
364
- ## 7.0.0
365
-
366
- ### Major Changes
367
-
368
- - 04e68d1c: Change keypadElement from LegacyKeypad to KeypadAPI
369
-
370
- ### Minor Changes
371
-
372
- - acafa72d: Add MobileKeypad to v2 keypad in MathInput
373
-
374
- ### Patch Changes
375
-
376
- - d0f28dbd: Add story for ExpressionEditor
377
- - 54590cc7: Add index.ts files to some dirs in MathInput for organization
378
-
379
- ## 6.0.3
380
-
381
- ### Patch Changes
382
-
383
- - 037a2db6: Update MathQuill version
384
-
385
- ## 6.0.2
386
-
387
- ### Patch Changes
388
-
389
- - 71c631ea: Add keypad opened and closed analytics events
390
- - Updated dependencies [71c631ea]
391
- - @khanacademy/perseus-core@0.0.2
392
-
393
- ## 6.0.1
394
-
395
- ### Patch Changes
396
-
397
- - 8d1745c1: Removed double focus outline from keypad buttons
398
-
399
- ## 6.0.0
400
-
401
- ### Major Changes
402
-
403
- - 36e3a212: Make v2 keypad dismiss button optional, hidden by default
404
-
405
- ### Patch Changes
406
-
407
- - fa735526: Fix issue with uses of CursorContext not being converted by flowgen
408
-
409
- ## 5.0.1
410
-
411
- ### Patch Changes
412
-
413
- - 0cd9f3c4: Export getCursorContext helper from MathInput
414
-
415
- ## 5.0.0
416
-
417
- ### Major Changes
418
-
419
- - bfe68075: Update contextForCursor to further abstract MathQuill cursor
420
-
421
- ### Minor Changes
422
-
423
- - 0b37940d: Add optional dismiss button to tabbar
424
- - 1bad1cbe: Improved A11Y of Keypad
425
- - 1f3fdc6c: Introduce analytics API
426
- - 5f71cd01: Rearrange buttons in MathInput v2 keypad
427
-
428
- ### Patch Changes
429
-
430
- - d609230e: Improve TypeScript types and documentation for Mathquill
431
- - Updated dependencies [1f3fdc6c]
432
- - @khanacademy/perseus-core@0.0.1
433
-
434
- ## 4.3.1
435
-
436
- ### Patch Changes
437
-
438
- - bec7c91c: Update icons in MathInput's v2 keypad
439
-
440
- ## 4.3.0
441
-
442
- ### Minor Changes
443
-
444
- - cf29ed88: Update layout of MathInput's keypad
445
-
446
- ## 4.2.0
447
-
448
- ### Minor Changes
449
-
450
- - d497118e: MathInput exports tools for generating MathFields, replacing the need for direct MathQuill access
451
-
452
- ### Patch Changes
453
-
454
- - e7d21b67: Add keypress logic from MathInput to key translator
455
- - eceb4510: Updated aria-labels to be more descriptive and tests that used aria-labels.
456
-
457
- ## 4.1.1
458
-
459
- ### Patch Changes
460
-
461
- - 31ed8380: Add math-input v2 keypad tests
462
- - 937d2308: Added basic Cypress testing for the v2 math-input keypad
463
-
464
- ## 4.1.0
465
-
466
- ### Minor Changes
467
-
468
- - a7f56710: add support for extraKeys to the v2 MathInput Keypad
469
- - a7f56710: Make tabbar accept styles, create v2 keypad popover example
470
-
471
- ## 4.0.0
472
-
473
- ### Major Changes
474
-
475
- - c4b8d862: Type safety changes that touch our external exports. These are breaking changes to any consumers of the Key data and types.
476
-
477
- ### Minor Changes
478
-
479
- - 0d352105: Added remaining missing keys for current pages
480
- - e900688e: Centralize Key2MathQuill translator. TeXButtons send keypresses, not strings/functions anymore.
481
-
482
- ### Patch Changes
483
-
484
- - 47055ffc: Switch several icons to Phosphor equivalents:
485
-
486
- - All numbers 0-9
487
- - Minus
488
- - Plus
489
- - Times
490
- - Backspace
491
- - Decimal (though this one is supposed to be a , per the code elsewhere)
492
- - Period (same as decimal right now)
493
- - Divide
494
- - Equal
495
- - Percent
496
- - Centered Dot (same icon as Period/Decimal, without y-axis transform)
497
- - Pi
498
- - X with mathematical chi
499
- - x with small mathematical chi
500
- - Square root with "radical"
501
- - Dismiss with caret
502
- - Operators tab icon with "radical"
503
-
504
- - 3a3c317d: Refactor MathWrapper to use shared key2MathQuill translator
505
-
506
- ## 3.0.0
507
-
508
- ### Major Changes
509
-
510
- - ec37eb3d: Export v2 keypad, rename v1 keypad to ProvidedKeypad
511
-
512
- ### Minor Changes
513
-
514
- - 46417c53: add division key boolean
515
- - 97438065: Add prop to Keypad to switch between · and × for multiplication
516
- - 85d9132a: Added Basic Relations buttons
517
- - 42297993: Add advanced relations buttons
518
- - e86cc72f: Keypad API: Button sets on keypad switched to optional booleans. Added all designed button sets as props, but not all are yet implemented.
519
- - c0a15907: adds logarithm buttons
520
-
521
- ### Patch Changes
522
-
523
- - 1ffbe3ef:
524
- - d9759ea6: Fix dom errors from SVG markup and adjust stories to remove warnings
525
-
526
- ## 2.0.0
527
-
528
- ### Major Changes
529
-
530
- - b585fe29: Switch most @khanacademy/math-input psuedo-enums to enums
531
-
532
- ### Patch Changes
533
-
534
- - 0c1cf562: Removal of an unused keypad style
535
-
536
- ## 1.0.0
537
-
538
- ### Major Changes
539
-
540
- - 4c03a43d: Convert math-input to TS, changing the API in the process
541
-
542
- ### Patch Changes
543
-
544
- - 22c5d564: Remove the use of React.FC<> and use types named Props/State in more components
545
-
546
- ## 0.7.2
547
-
548
- ### Patch Changes
549
-
550
- - 8e8d85cd: Fix imported React types in a couple of files
551
-
552
- ## 0.7.1
553
-
554
- ### Patch Changes
555
-
556
- - 1f062e98: Bump all package versions since the build settings have been updated
557
- - 406edf6b: Extract strings to dist/string.js instead of dist/strings.
558
-
559
- ## 0.7.0
560
-
561
- ### Minor Changes
562
-
563
- - 53fd3768: Migrate source code to TypeScript
564
-
565
- ## 0.6.8
566
-
567
- ### Patch Changes
568
-
569
- - 2c843b38: Update to use wonder-blocks deps after migrating wonder-blocks to TS
570
-
571
- ## 0.6.7
572
-
573
- ### Patch Changes
574
-
575
- - a1b4ab3c: Update wonder-blocks and wonder-stuff deps to fix an issue with wonder-stuff's generated flow types
576
-
577
- ## 0.6.6
578
-
579
- ### Patch Changes
580
-
581
- - 6a7f36be: Update wonder-stuff and wonder-blocks dependencies
582
-
583
- ## 0.6.5
584
-
585
- ### Patch Changes
586
-
587
- - c238d540: Wrap all ReactDOM.render() calls in `<RenderStateRoot>` to ensure it propagates properly
588
-
589
- ## 0.6.4
590
-
591
- ### Patch Changes
592
-
593
- - 113953e8: Exports new types to support custom keypads: `CursorContext`, `KeypadType`, `KeyType`, and `Key`
594
-
595
- ## 0.6.3
596
-
597
- ### Patch Changes
598
-
599
- - f567f660: Update the eslint config to look at both the package.json for the package and the one from the root
600
-
601
- ## 0.6.2
602
-
603
- ### Patch Changes
604
-
605
- - bf180fe1: Fix our use of import/no-extraneous-dependencies
606
-
607
- ## 0.6.1
608
-
609
- ### Patch Changes
610
-
611
- - 1a91b6c2: Adds missing wonder-blocks deps, makes wonder-blocks peerDeps
612
-
613
- ## 0.6.0
614
-
615
- ### Minor Changes
616
-
617
- - 8fcd2a28: Inline the import of mathquill.css in math-input's main.less
618
-
619
- ## 0.5.6
620
-
621
- ### Patch Changes
622
-
623
- - 98d283ff: Fix storybook
624
-
625
- ## 0.5.5
626
-
627
- ### Patch Changes
628
-
629
- - 6f8f1ac9: Use wonder-blocks-i18n to determine the decimal separator
630
-
631
- ## 0.5.4
632
-
633
- ### Patch Changes
634
-
635
- - f29b4975: Export the KeyConfigs type
636
-
637
- ## 0.5.3
638
-
639
- ### Patch Changes
640
-
641
- - 96288b87: Export CursorContexts
642
-
643
- ## 0.5.2
644
-
645
- ### Patch Changes
646
-
647
- - a15b0e86: Add 'perseus-build-settings' as a dev dep to packages that were missing it
648
-
649
- ## 0.5.1
650
-
651
- ### Patch Changes
652
-
653
- - 591420a6: Add @flow comment to math-input's index.js and missing props to ProvidedKeypad
654
-
655
- ## 0.5.0
656
-
657
- ### Minor Changes
658
-
659
- - ea57be17: Move math-input into khan/perseus repo (name changes to @khanacademy/math-input)
660
- - 116df39b: Extract math-input strings from source and save them to packages/math-input/dist
package/less/main.less DELETED
@@ -1,2 +0,0 @@
1
- @import "./overrides.less";
2
- @import (inline) "../../../node_modules/mathquill/build/mathquill.css";