@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/index.js CHANGED
@@ -618,6 +618,7 @@ class InnerMathInput extends React__namespace.Component {
618
618
  }), /*#__PURE__*/React__namespace.createElement(wonderBlocksPopover.Popover, {
619
619
  opened: this.state.keypadOpen,
620
620
  onClose: () => this.closeKeypad(),
621
+ portal: false,
621
622
  dismissEnabled: true,
622
623
  content: () => /*#__PURE__*/React__namespace.createElement(wonderBlocksPopover.PopoverContentCore, {
623
624
  closeButtonVisible: true,
@@ -834,7 +835,7 @@ const denylist = [
834
835
  // (technically the renderer still adds them)
835
836
  "key", "ref",
836
837
  // added by src/renderer.jsx
837
- "containerSizeClass", "widgetId", "onChange", "problemNum", "apiOptions", "questionCompleted", "findWidgets",
838
+ "containerSizeClass", "widgetId", "onChange", "problemNum", "apiOptions", "questionCompleted", "findWidgets", "hintMode",
838
839
  // added by src/editor.jsx, for widgets removing themselves
839
840
  // this is soooo not the right place for this, but alas.
840
841
  "onRemove",
@@ -19789,6 +19790,7 @@ class Renderer extends React__namespace.Component {
19789
19790
  findExternalWidgets: () => [],
19790
19791
  alwaysUpdate: false,
19791
19792
  reviewMode: false,
19793
+ hintMode: false,
19792
19794
  serializedState: null,
19793
19795
  onSerializedStateUpdated: () => {},
19794
19796
  linterContext: PerseusLinter__namespace.linterContextDefault
@@ -20079,6 +20081,7 @@ class Renderer extends React__namespace.Component {
20079
20081
  onBlur: ___default["default"].partial(this._onWidgetBlur, id),
20080
20082
  findWidgets: this.findWidgets,
20081
20083
  reviewModeRubric: reviewModeRubric,
20084
+ hintMode: this.props.hintMode,
20082
20085
  onChange: function (newProps, cb) {
20083
20086
  let silent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
20084
20087
  _this._setWidgetProps(id, newProps, cb, silent);
@@ -34514,7 +34517,8 @@ class InteractiveGraph extends React__namespace.Component {
34514
34517
  gridStep: gridStep,
34515
34518
  snapStep: snapStep,
34516
34519
  box: box,
34517
- showTooltips: !!this.props.showTooltips
34520
+ showTooltips: !!this.props.showTooltips,
34521
+ hintMode: this.props.hintMode
34518
34522
  }));
34519
34523
  }
34520
34524
  return /*#__PURE__*/React__namespace.createElement(LegacyInteractiveGraph, _extends({
@@ -45332,7 +45336,7 @@ const init = function (options) {
45332
45336
 
45333
45337
  // This file is processed by a Rollup plugin (replace) to inject the production
45334
45338
  const libName = "@khanacademy/perseus";
45335
- const libVersion = "26.0.0";
45339
+ const libVersion = "26.1.0";
45336
45340
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
45337
45341
 
45338
45342
  const apiVersion = {
@@ -45580,6 +45584,7 @@ class HintRenderer extends React__namespace.Component {
45580
45584
  // eslint-disable-next-line react/no-string-refs
45581
45585
  , {
45582
45586
  ref: "renderer",
45587
+ hintMode: true,
45583
45588
  widgets: hint.widgets,
45584
45589
  content: hint.content || "",
45585
45590
  images: hint.images,