@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/es/index.js
CHANGED
|
@@ -520,8 +520,7 @@ class InnerMathInput extends React.Component {
|
|
|
520
520
|
active: false
|
|
521
521
|
}) : /*#__PURE__*/React.createElement(Clickable, {
|
|
522
522
|
"aria-label": this.state.keypadOpen ? this.context.strings.closeKeypad : this.context.strings.openKeypad,
|
|
523
|
-
"
|
|
524
|
-
role: "switch",
|
|
523
|
+
role: "button",
|
|
525
524
|
onClick: () => this.state.keypadOpen ? this.closeKeypad() : this.openKeypad()
|
|
526
525
|
}, props => /*#__PURE__*/React.createElement(MathInputIcon, _extends({
|
|
527
526
|
active: this.state.keypadOpen
|
|
@@ -31856,6 +31855,10 @@ const StatefulMafsGraph = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
31856
31855
|
dispatch(changeRange([[xMinRange, xMaxRange], [yMinRange, yMaxRange]]));
|
|
31857
31856
|
}, [dispatch, xMinRange, xMaxRange, yMinRange, yMaxRange]);
|
|
31858
31857
|
const numSegments = graph.type === "segment" ? graph.numSegments : null;
|
|
31858
|
+
const numSides = graph.type === "polygon" ? graph.numSides : null;
|
|
31859
|
+
const snapTo = graph.type === "polygon" ? graph.snapTo : null;
|
|
31860
|
+
const showAngles = graph.type === "polygon" ? graph.showAngles : null;
|
|
31861
|
+
const showSides = graph.type === "polygon" ? graph.showSides : null;
|
|
31859
31862
|
const originalPropsRef = useRef(props);
|
|
31860
31863
|
const latestPropsRef = useLatestRef(props);
|
|
31861
31864
|
useEffect(() => {
|
|
@@ -31866,7 +31869,7 @@ const StatefulMafsGraph = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
31866
31869
|
if (latestPropsRef.current !== originalPropsRef.current) {
|
|
31867
31870
|
dispatch(reinitialize(latestPropsRef.current));
|
|
31868
31871
|
}
|
|
31869
|
-
}, [graph.type, numSegments, latestPropsRef]);
|
|
31872
|
+
}, [graph.type, numSegments, numSides, snapTo, showAngles, showSides, latestPropsRef]);
|
|
31870
31873
|
return /*#__PURE__*/React.createElement(MafsGraph, _extends({}, props, {
|
|
31871
31874
|
state: state,
|
|
31872
31875
|
dispatch: dispatch
|
|
@@ -44039,7 +44042,7 @@ const init = function init(options) {
|
|
|
44039
44042
|
|
|
44040
44043
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44041
44044
|
const libName = "@khanacademy/perseus";
|
|
44042
|
-
const libVersion = "
|
|
44045
|
+
const libVersion = "24.0.0";
|
|
44043
44046
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44044
44047
|
|
|
44045
44048
|
const apiVersion = {
|