@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/index.js CHANGED
@@ -47,7 +47,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
47
47
 
48
48
  // This file is processed by a Rollup plugin (replace) to inject the production
49
49
  const libName = "@khanacademy/math-input";
50
- const libVersion = "17.2.0";
50
+ const libVersion = "17.2.1";
51
51
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
52
52
 
53
53
  function _extends() {
@@ -2385,10 +2385,22 @@ const IconAsset = function (_ref) {
2385
2385
  fill: tintColor
2386
2386
  }));
2387
2387
  }
2388
+ case "Fractions":
2389
+ // The Fractions keypad is a special one that never displays anything
2390
+ // in the tabbar. Ideally, we'd separate the KeypadPageType from the
2391
+ // tab bar item types, but that's not easy given how the keypad manages
2392
+ // the selected page. For now, we'll just return a dummy SVG to satisfy
2393
+ // the types here.
2394
+ return /*#__PURE__*/React__namespace.createElement("svg", {
2395
+ width: "44",
2396
+ height: "44",
2397
+ viewBox: "0 0 44 44",
2398
+ fill: "none",
2399
+ xmlns: "http://www.w3.org/2000/svg"
2400
+ });
2388
2401
  default:
2389
2402
  {
2390
- // type as never;
2391
- throw new Error("Invalid icon type");
2403
+ throw new Error(`Invalid icon type: ${type}`);
2392
2404
  }
2393
2405
  }
2394
2406
  };