@khanacademy/perseus-editor 14.0.0 → 14.0.1

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
@@ -42,7 +42,7 @@ import arrowCounterClockwise from '@phosphor-icons/core/bold/arrow-counter-clock
42
42
 
43
43
  // This file is processed by a Rollup plugin (replace) to inject the production
44
44
  const libName = "@khanacademy/perseus-editor";
45
- const libVersion = "14.0.0";
45
+ const libVersion = "14.0.1";
46
46
  addLibraryVersionToPerseusDebug(libName, libVersion);
47
47
 
48
48
  function _extends() {
@@ -32443,18 +32443,10 @@ const {
32443
32443
  containerSizeClass,
32444
32444
  getInteractiveBoxFromSizeClass
32445
32445
  } = SizingUtils;
32446
- const DeprecationMixin = Util.DeprecationMixin;
32447
32446
  const InteractiveGraph = InteractiveGraphWidget.widget;
32448
32447
  const defaultBackgroundImage = {
32449
32448
  url: null
32450
32449
  };
32451
- const deprecatedProps = {
32452
- showGraph: function (props) {
32453
- return {
32454
- markings: props.showGraph ? "graph" : "none"
32455
- };
32456
- }
32457
- };
32458
32450
  const POLYGON_SIDES = _.map(_.range(3, 13), function (value) {
32459
32451
  return /*#__PURE__*/React.createElement(OptionItem, {
32460
32452
  key: `polygon-sides-${value}`,
@@ -32473,8 +32465,6 @@ class InteractiveGraphEditor extends React.Component {
32473
32465
  super(...args);
32474
32466
  this.displayName = "InteractiveGraphEditor";
32475
32467
  this.className = "perseus-widget-interactive-graph";
32476
- // TODO(jack): Use versioning instead of DeprecationMixin
32477
- this.deprecatedProps = deprecatedProps;
32478
32468
  this.changeMatchType = newValue => {
32479
32469
  const correct = _extends({}, this.props.correct, {
32480
32470
  match: newValue
@@ -32508,10 +32498,6 @@ class InteractiveGraphEditor extends React.Component {
32508
32498
  return issues;
32509
32499
  };
32510
32500
  }
32511
- // TODO(jangmi, CP-3288): Remove usage of `UNSAFE_componentWillMount`
32512
- UNSAFE_componentWillMount() {
32513
- DeprecationMixin.UNSAFE_componentWillMount.call(this);
32514
- }
32515
32501
  // serialize() is what makes copy/paste work. All the properties included
32516
32502
  // in the serialization json are included when, for example, a graph
32517
32503
  // is copied from the question editor and pasted into the hint editor