@khanacademy/math-input 17.0.0 → 17.0.1
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 +6 -0
- package/dist/es/index.js +6 -6
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/keypad/__tests__/__snapshots__/keypad.test.tsx.snap +34 -34
- package/src/components/keypad/shared-keys.tsx +6 -6
- package/src/full-keypad.stories.tsx +14 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
48
48
|
|
|
49
49
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
50
50
|
const libName = "@khanacademy/math-input";
|
|
51
|
-
const libVersion = "17.0.
|
|
51
|
+
const libVersion = "17.0.1";
|
|
52
52
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
53
53
|
|
|
54
54
|
function _extends() {
|
|
@@ -5222,6 +5222,11 @@ function SharedKeys(props) {
|
|
|
5222
5222
|
// Fraction position depends on the page
|
|
5223
5223
|
const fractionCoord = selectedPage === "Numbers" || selectedPage === "Operators" ? [3, 1] : [3, 0];
|
|
5224
5224
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(KeypadButton, {
|
|
5225
|
+
keyConfig: KeyConfigs.FRAC,
|
|
5226
|
+
onClickKey: onClickKey,
|
|
5227
|
+
coord: fractionCoord,
|
|
5228
|
+
secondary: true
|
|
5229
|
+
}), /*#__PURE__*/React__namespace.createElement(KeypadButton, {
|
|
5225
5230
|
keyConfig: KeyConfigs.PLUS,
|
|
5226
5231
|
onClickKey: onClickKey,
|
|
5227
5232
|
coord: [4, 0],
|
|
@@ -5231,11 +5236,6 @@ function SharedKeys(props) {
|
|
|
5231
5236
|
onClickKey: onClickKey,
|
|
5232
5237
|
coord: [5, 0],
|
|
5233
5238
|
secondary: true
|
|
5234
|
-
}), /*#__PURE__*/React__namespace.createElement(KeypadButton, {
|
|
5235
|
-
keyConfig: KeyConfigs.FRAC,
|
|
5236
|
-
onClickKey: onClickKey,
|
|
5237
|
-
coord: fractionCoord,
|
|
5238
|
-
secondary: true
|
|
5239
5239
|
}), /*#__PURE__*/React__namespace.createElement(KeypadButton, {
|
|
5240
5240
|
keyConfig: convertDotToTimesByLocale(!!convertDotToTimes) ? KeyConfigs.TIMES : KeyConfigs.CDOT,
|
|
5241
5241
|
onClickKey: onClickKey,
|