@khanacademy/math-input 17.2.0 → 17.2.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/dist/es/index.js +15 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import PropTypes from 'prop-types';
|
|
|
17
17
|
|
|
18
18
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
19
19
|
const libName = "@khanacademy/math-input";
|
|
20
|
-
const libVersion = "17.2.
|
|
20
|
+
const libVersion = "17.2.1";
|
|
21
21
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
22
22
|
|
|
23
23
|
function _extends() {
|
|
@@ -2352,10 +2352,22 @@ const IconAsset = function IconAsset({
|
|
|
2352
2352
|
fill: tintColor
|
|
2353
2353
|
}));
|
|
2354
2354
|
}
|
|
2355
|
+
case "Fractions":
|
|
2356
|
+
// The Fractions keypad is a special one that never displays anything
|
|
2357
|
+
// in the tabbar. Ideally, we'd separate the KeypadPageType from the
|
|
2358
|
+
// tab bar item types, but that's not easy given how the keypad manages
|
|
2359
|
+
// the selected page. For now, we'll just return a dummy SVG to satisfy
|
|
2360
|
+
// the types here.
|
|
2361
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2362
|
+
width: "44",
|
|
2363
|
+
height: "44",
|
|
2364
|
+
viewBox: "0 0 44 44",
|
|
2365
|
+
fill: "none",
|
|
2366
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2367
|
+
});
|
|
2355
2368
|
default:
|
|
2356
2369
|
{
|
|
2357
|
-
|
|
2358
|
-
throw new Error("Invalid icon type");
|
|
2370
|
+
throw new Error(`Invalid icon type: ${type}`);
|
|
2359
2371
|
}
|
|
2360
2372
|
}
|
|
2361
2373
|
};
|