@khanacademy/math-input 14.2.0 → 14.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
@@ -53,7 +53,7 @@ var Redux__namespace = /*#__PURE__*/_interopNamespace(Redux);
53
53
 
54
54
  // This file is processed by a Rollup plugin (replace) to inject the production
55
55
  const libName = "@khanacademy/math-input";
56
- const libVersion = "14.2.0";
56
+ const libVersion = "14.2.1";
57
57
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
58
58
 
59
59
  function _defineProperty(obj, key, value) {
@@ -5261,7 +5261,7 @@ function getAvailableTabs(props) {
5261
5261
  // The main (v2) Keypad. Use this component to present an accessible, onscreen
5262
5262
  // keypad to learners for entering math expressions.
5263
5263
  function Keypad$2(props) {
5264
- // If we're using the Fractions keyapd, we want to default select that page
5264
+ // If we're using the Fractions keypad, we want to default select that page
5265
5265
  // Otherwise, we want to default to the Numbers page
5266
5266
  const defaultSelectedPage = props.fractionsOnly ? "Fractions" : "Numbers";
5267
5267
  const [selectedPage, setSelectedPage] = React__namespace.useState(defaultSelectedPage);
@@ -5288,7 +5288,7 @@ function Keypad$2(props) {
5288
5288
  // Use a different grid for our fraction keypad
5289
5289
  const gridStyle = fractionsOnly ? styles$d.fractionsGrid : styles$d.expressionGrid;
5290
5290
 
5291
- // This useeffect is only used to ensure that we can test the keypad in storybook
5291
+ // This useEffect is only used to ensure that we can test the keypad in storybook
5292
5292
  React.useEffect(() => {
5293
5293
  setSelectedPage(defaultSelectedPage);
5294
5294
  }, [fractionsOnly, defaultSelectedPage]);
@@ -5876,20 +5876,18 @@ function StatefulKeypadContextProvider(props) {
5876
5876
  // this is a KeypadContextRendererInterface from Perseus
5877
5877
  const [renderer, setRenderer] = React.useState();
5878
5878
  const [scrollableElement, setScrollableElement] = React.useState();
5879
+ const memoizedValue = React.useMemo(() => ({
5880
+ keypadActive,
5881
+ setKeypadActive,
5882
+ keypadElement,
5883
+ setKeypadElement,
5884
+ renderer,
5885
+ setRenderer,
5886
+ scrollableElement,
5887
+ setScrollableElement
5888
+ }), [keypadActive, setKeypadActive, keypadElement, setKeypadElement, renderer, setRenderer, scrollableElement, setScrollableElement]);
5879
5889
  return /*#__PURE__*/React__namespace.createElement(KeypadContext.Provider, {
5880
- value: {
5881
- setKeypadActive,
5882
- keypadActive,
5883
- setKeypadElement,
5884
- keypadElement,
5885
- setRenderer,
5886
- renderer,
5887
- // The scrollableElement options can likely be removed after
5888
- // the exercises-package is officially deprecated. They don't appear
5889
- // to be used anywhere except for the exercises-package and tests.
5890
- setScrollableElement,
5891
- scrollableElement
5892
- }
5890
+ value: memoizedValue
5893
5891
  }, props.children);
5894
5892
  }
5895
5893
 
@@ -7188,7 +7186,7 @@ const styles$9 = aphrodite.StyleSheet.create({
7188
7186
  width: iconSizeWidthPx
7189
7187
  },
7190
7188
  base: {
7191
- fontFamily: "Proxima Nova",
7189
+ fontFamily: "'Lato', sans-serif",
7192
7190
  fontSize: 25
7193
7191
  }
7194
7192
  });