@khanacademy/math-input 22.0.7 → 22.1.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
@@ -45,7 +45,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
45
45
 
46
46
  // This file is processed by a Rollup plugin (replace) to inject the production
47
47
  const libName = "@khanacademy/math-input";
48
- const libVersion = "22.0.7";
48
+ const libVersion = "22.1.1";
49
49
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
50
50
 
51
51
  function _extends() {
@@ -5021,10 +5021,11 @@ function GeometryPage(props) {
5021
5021
  }));
5022
5022
  }
5023
5023
 
5024
- function NumbersPage(props) {
5025
- const {
5026
- onClickKey
5027
- } = props;
5024
+ function NumbersPage(_ref) {
5025
+ let {
5026
+ onClickKey,
5027
+ scientific
5028
+ } = _ref;
5028
5029
  const {
5029
5030
  strings
5030
5031
  } = useMathInputI18n();
@@ -5085,6 +5086,11 @@ function NumbersPage(props) {
5085
5086
  onClickKey: onClickKey,
5086
5087
  coord: [3, 0],
5087
5088
  secondary: true
5089
+ }), scientific && /*#__PURE__*/React__namespace.createElement(KeypadButton, {
5090
+ keyConfig: Keys.EXP,
5091
+ onClickKey: onClickKey,
5092
+ coord: [3, 2],
5093
+ secondary: true
5088
5094
  }));
5089
5095
  }
5090
5096
 
@@ -5419,6 +5425,7 @@ function Keypad(_ref) {
5419
5425
  logarithms,
5420
5426
  basicRelations,
5421
5427
  advancedRelations,
5428
+ scientific,
5422
5429
  showDismiss,
5423
5430
  onAnalyticsEvent,
5424
5431
  fractionsOnly,
@@ -5474,7 +5481,8 @@ function Keypad(_ref) {
5474
5481
  onClickKey: onClickKey,
5475
5482
  cursorContext: cursorContext
5476
5483
  }), selectedPage === "Numbers" && /*#__PURE__*/React__namespace.createElement(NumbersPage, {
5477
- onClickKey: onClickKey
5484
+ onClickKey: onClickKey,
5485
+ scientific: scientific
5478
5486
  }), selectedPage === "Extras" && /*#__PURE__*/React__namespace.createElement(ExtrasPage, {
5479
5487
  onClickKey: onClickKey,
5480
5488
  extraKeys: extraKeys
@@ -5965,7 +5973,8 @@ class MobileKeypadInternals extends React__namespace.Component {
5965
5973
  basicRelations: isExpression,
5966
5974
  advancedRelations: isExpression,
5967
5975
  expandedView: containerWidth > expandedViewThreshold,
5968
- showDismiss: true
5976
+ showDismiss: true,
5977
+ scientific: isExpression && keypadConfig?.scientific
5969
5978
  }) : null));
5970
5979
  }
5971
5980
  }