@khanacademy/perseus-editor 7.0.1 → 7.0.2
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 +1 -14
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph-editor.d.ts +143 -210
- package/package.json +2 -2
package/dist/es/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import Banner from '@khanacademy/wonder-blocks-banner';
|
|
|
36
36
|
|
|
37
37
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
38
38
|
const libName = "@khanacademy/perseus-editor";
|
|
39
|
-
const libVersion = "7.0.
|
|
39
|
+
const libVersion = "7.0.2";
|
|
40
40
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
41
41
|
|
|
42
42
|
function _extends() {
|
|
@@ -31732,15 +31732,6 @@ class InteractiveGraphEditor extends React.Component {
|
|
|
31732
31732
|
UNSAFE_componentWillMount() {
|
|
31733
31733
|
DeprecationMixin.UNSAFE_componentWillMount.call(this);
|
|
31734
31734
|
}
|
|
31735
|
-
static buildGraphKey(correct) {
|
|
31736
|
-
const testGraphKey = [];
|
|
31737
|
-
for (const key in correct) {
|
|
31738
|
-
if (correct[key]) {
|
|
31739
|
-
typeof correct[key] === "number" || typeof correct[key] === "string" || typeof correct[key] === "boolean" ? testGraphKey.push(correct[key]) : testGraphKey.push(0);
|
|
31740
|
-
}
|
|
31741
|
-
}
|
|
31742
|
-
return testGraphKey.join(":");
|
|
31743
|
-
}
|
|
31744
31735
|
render() {
|
|
31745
31736
|
var _this$props$graph$typ, _this$props$graph, _this$props$correct, _this$props$correct2, _this$props$correct3, _this$props$correct4, _this$props$correct5, _this$props$correct6, _this$props$correct7, _this$props$correct8, _this$props$correct9, _this$props$correct10, _this$props$correct11, _this$props$apiOption, _this$props$apiOption2, _this$props$apiOption3;
|
|
31746
31737
|
let graph;
|
|
@@ -31784,9 +31775,6 @@ class InteractiveGraphEditor extends React.Component {
|
|
|
31784
31775
|
});
|
|
31785
31776
|
}
|
|
31786
31777
|
};
|
|
31787
|
-
// This is used to force a remount of the graph component
|
|
31788
|
-
// when there's a significant change
|
|
31789
|
-
const graphKey = InteractiveGraphEditor.buildGraphKey(correct);
|
|
31790
31778
|
graph =
|
|
31791
31779
|
/*#__PURE__*/
|
|
31792
31780
|
// There are a bunch of props that renderer.jsx passes to widgets via
|
|
@@ -31794,7 +31782,6 @@ class InteractiveGraphEditor extends React.Component {
|
|
|
31794
31782
|
// bother passing.
|
|
31795
31783
|
// @ts-expect-error - TS2769 - No overload matches this call.
|
|
31796
31784
|
React.createElement(InteractiveGraph, _extends({}, graphProps, {
|
|
31797
|
-
key: graphKey,
|
|
31798
31785
|
containerSizeClass: sizeClass,
|
|
31799
31786
|
apiOptions: _extends({}, this.props.apiOptions, {
|
|
31800
31787
|
isMobile: false
|