@khanacademy/perseus 23.6.0 → 24.0.0

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
@@ -634,8 +634,7 @@ class InnerMathInput extends React__namespace.Component {
634
634
  active: false
635
635
  }) : /*#__PURE__*/React__namespace.createElement(Clickable__default["default"], {
636
636
  "aria-label": this.state.keypadOpen ? this.context.strings.closeKeypad : this.context.strings.openKeypad,
637
- "aria-checked": this.state.keypadOpen,
638
- role: "switch",
637
+ role: "button",
639
638
  onClick: () => this.state.keypadOpen ? this.closeKeypad() : this.openKeypad()
640
639
  }, props => /*#__PURE__*/React__namespace.createElement(MathInputIcon, _extends({
641
640
  active: this.state.keypadOpen
@@ -32209,6 +32208,10 @@ const StatefulMafsGraph = /*#__PURE__*/React__namespace.forwardRef((props, ref)
32209
32208
  dispatch(changeRange([[xMinRange, xMaxRange], [yMinRange, yMaxRange]]));
32210
32209
  }, [dispatch, xMinRange, xMaxRange, yMinRange, yMaxRange]);
32211
32210
  const numSegments = graph.type === "segment" ? graph.numSegments : null;
32211
+ const numSides = graph.type === "polygon" ? graph.numSides : null;
32212
+ const snapTo = graph.type === "polygon" ? graph.snapTo : null;
32213
+ const showAngles = graph.type === "polygon" ? graph.showAngles : null;
32214
+ const showSides = graph.type === "polygon" ? graph.showSides : null;
32212
32215
  const originalPropsRef = React.useRef(props);
32213
32216
  const latestPropsRef = wonderBlocksCore.useLatestRef(props);
32214
32217
  React.useEffect(() => {
@@ -32219,7 +32222,7 @@ const StatefulMafsGraph = /*#__PURE__*/React__namespace.forwardRef((props, ref)
32219
32222
  if (latestPropsRef.current !== originalPropsRef.current) {
32220
32223
  dispatch(reinitialize(latestPropsRef.current));
32221
32224
  }
32222
- }, [graph.type, numSegments, latestPropsRef]);
32225
+ }, [graph.type, numSegments, numSides, snapTo, showAngles, showSides, latestPropsRef]);
32223
32226
  return /*#__PURE__*/React__namespace.createElement(MafsGraph, _extends({}, props, {
32224
32227
  state: state,
32225
32228
  dispatch: dispatch
@@ -44387,7 +44390,7 @@ const init = function (options) {
44387
44390
 
44388
44391
  // This file is processed by a Rollup plugin (replace) to inject the production
44389
44392
  const libName = "@khanacademy/perseus";
44390
- const libVersion = "23.6.0";
44393
+ const libVersion = "24.0.0";
44391
44394
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
44392
44395
 
44393
44396
  const apiVersion = {