@khanacademy/perseus 26.0.0 → 26.1.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 +8 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/renderer.d.ts +8 -1
- package/dist/types.d.ts +1 -0
- package/dist/widget-container.d.ts +1 -1
- package/dist/widgets/expression.d.ts +4 -2
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
- package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +1 -0
- package/package.json +4 -4
package/dist/es/index.js
CHANGED
|
@@ -501,6 +501,7 @@ class InnerMathInput extends React.Component {
|
|
|
501
501
|
}), /*#__PURE__*/React.createElement(Popover, {
|
|
502
502
|
opened: this.state.keypadOpen,
|
|
503
503
|
onClose: () => this.closeKeypad(),
|
|
504
|
+
portal: false,
|
|
504
505
|
dismissEnabled: true,
|
|
505
506
|
content: () => {
|
|
506
507
|
var _this$props$keypadBut, _this$props;
|
|
@@ -730,7 +731,7 @@ const denylist = [
|
|
|
730
731
|
// (technically the renderer still adds them)
|
|
731
732
|
"key", "ref",
|
|
732
733
|
// added by src/renderer.jsx
|
|
733
|
-
"containerSizeClass", "widgetId", "onChange", "problemNum", "apiOptions", "questionCompleted", "findWidgets",
|
|
734
|
+
"containerSizeClass", "widgetId", "onChange", "problemNum", "apiOptions", "questionCompleted", "findWidgets", "hintMode",
|
|
734
735
|
// added by src/editor.jsx, for widgets removing themselves
|
|
735
736
|
// this is soooo not the right place for this, but alas.
|
|
736
737
|
"onRemove",
|
|
@@ -19731,6 +19732,7 @@ class Renderer extends React.Component {
|
|
|
19731
19732
|
onBlur: _.partial(this._onWidgetBlur, id),
|
|
19732
19733
|
findWidgets: this.findWidgets,
|
|
19733
19734
|
reviewModeRubric: reviewModeRubric,
|
|
19735
|
+
hintMode: this.props.hintMode,
|
|
19734
19736
|
onChange: (newProps, cb, silent = false) => {
|
|
19735
19737
|
this._setWidgetProps(id, newProps, cb, silent);
|
|
19736
19738
|
},
|
|
@@ -20930,6 +20932,7 @@ Renderer.defaultProps = {
|
|
|
20930
20932
|
findExternalWidgets: () => [],
|
|
20931
20933
|
alwaysUpdate: false,
|
|
20932
20934
|
reviewMode: false,
|
|
20935
|
+
hintMode: false,
|
|
20933
20936
|
serializedState: null,
|
|
20934
20937
|
onSerializedStateUpdated: () => {},
|
|
20935
20938
|
linterContext: PerseusLinter.linterContextDefault
|
|
@@ -34159,7 +34162,8 @@ class InteractiveGraph extends React.Component {
|
|
|
34159
34162
|
gridStep: gridStep,
|
|
34160
34163
|
snapStep: snapStep,
|
|
34161
34164
|
box: box,
|
|
34162
|
-
showTooltips: !!this.props.showTooltips
|
|
34165
|
+
showTooltips: !!this.props.showTooltips,
|
|
34166
|
+
hintMode: this.props.hintMode
|
|
34163
34167
|
}));
|
|
34164
34168
|
}
|
|
34165
34169
|
return /*#__PURE__*/React.createElement(LegacyInteractiveGraph, _extends({
|
|
@@ -44970,7 +44974,7 @@ const init = function init(options) {
|
|
|
44970
44974
|
|
|
44971
44975
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44972
44976
|
const libName = "@khanacademy/perseus";
|
|
44973
|
-
const libVersion = "26.
|
|
44977
|
+
const libVersion = "26.1.0";
|
|
44974
44978
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44975
44979
|
|
|
44976
44980
|
const apiVersion = {
|
|
@@ -45212,6 +45216,7 @@ class HintRenderer extends React.Component {
|
|
|
45212
45216
|
// eslint-disable-next-line react/no-string-refs
|
|
45213
45217
|
, {
|
|
45214
45218
|
ref: "renderer",
|
|
45219
|
+
hintMode: true,
|
|
45215
45220
|
widgets: hint.widgets,
|
|
45216
45221
|
content: hint.content || "",
|
|
45217
45222
|
images: hint.images,
|