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