@khanacademy/perseus 19.8.0 → 19.9.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 +3 -7
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -42218,7 +42218,7 @@ const init = function init(options) {
|
|
|
42218
42218
|
|
|
42219
42219
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
42220
42220
|
const libName = "@khanacademy/perseus";
|
|
42221
|
-
const libVersion = "19.
|
|
42221
|
+
const libVersion = "19.9.0";
|
|
42222
42222
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
42223
42223
|
|
|
42224
42224
|
const apiVersion = {
|
|
@@ -42780,17 +42780,13 @@ class ServerItemRenderer extends React.Component {
|
|
|
42780
42780
|
this.blurTimeoutID = void 0;
|
|
42781
42781
|
this._handleFocusChange = (newFocus, oldFocus) => {
|
|
42782
42782
|
if (newFocus != null) {
|
|
42783
|
-
var _this$props$apiOption;
|
|
42784
42783
|
this._setCurrentFocus(newFocus);
|
|
42785
|
-
|
|
42786
|
-
// Call the interactionCallback, if it exists, with the current user input data
|
|
42787
|
-
(_this$props$apiOption = this.props.apiOptions) == null || _this$props$apiOption.interactionCallback == null || _this$props$apiOption.interactionCallback(this.questionRenderer.getUserInputForWidgets());
|
|
42788
42784
|
} else {
|
|
42789
42785
|
this._onRendererBlur(oldFocus);
|
|
42790
42786
|
}
|
|
42791
42787
|
};
|
|
42792
42788
|
this.handleInteractWithWidget = widgetId => {
|
|
42793
|
-
var _this$props$
|
|
42789
|
+
var _this$props$apiOption;
|
|
42794
42790
|
const withRemoved = _.difference(this.state.questionHighlightedWidgets, [widgetId]);
|
|
42795
42791
|
this.setState({
|
|
42796
42792
|
questionCompleted: false,
|
|
@@ -42798,7 +42794,7 @@ class ServerItemRenderer extends React.Component {
|
|
|
42798
42794
|
});
|
|
42799
42795
|
|
|
42800
42796
|
// Call the interactionCallback, if it exists, with the current user input data
|
|
42801
|
-
(_this$props$
|
|
42797
|
+
(_this$props$apiOption = this.props.apiOptions) == null || _this$props$apiOption.interactionCallback == null || _this$props$apiOption.interactionCallback(this.questionRenderer.getUserInputForWidgets());
|
|
42802
42798
|
};
|
|
42803
42799
|
// This must be pre-bound otherwise SvgImage's shouldComponentUpdate
|
|
42804
42800
|
// won't behave correctly and we'll get an infinite loop.
|