@khanacademy/perseus 28.2.0 → 30.0.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 CHANGED
@@ -1293,7 +1293,7 @@ const KhanMath = {
1293
1293
  * with an approx symbol if num had to be rounded, and trailing 0s
1294
1294
  */
1295
1295
  toFixedApprox: function (num, precision) {
1296
- // TODO(aria): Make this locale-dependent like KhanUtil.localeToFixed
1296
+ // TODO(aria): Make this locale-dependent
1297
1297
  const fixedStr = num.toFixed(precision);
1298
1298
  if (number.equal(+fixedStr, num)) {
1299
1299
  return fixedStr;
@@ -22577,7 +22577,7 @@ var sharedStyles = StyleSheet.create({
22577
22577
  zIndex: zIndexAboveScratchpad
22578
22578
  },
22579
22579
  blankBackground: {
22580
- // TODO(emily): Use KhanUtil._BACKGROUND?
22580
+ // TODO(emily): Use WB colors?
22581
22581
  backgroundColor: "#FDFDFD"
22582
22582
  },
22583
22583
  perseusSrOnly: {
@@ -29692,6 +29692,18 @@ const LegacyGrid = ({
29692
29692
 
29693
29693
  // Range is replaced within this file with Interval, but it is used elsewhere
29694
29694
  // and exported from the package, so we need to keep it around.
29695
+ /**
29696
+ * A "PerseusItem" is a classic Perseus item. It is rendered by the
29697
+ * `ServerItemRenderer` and the layout is pre-set.
29698
+ *
29699
+ * To render more complex Perseus items, see the `Item` type in the multi item
29700
+ * area.
29701
+ */
29702
+ /**
29703
+ * A "MultiItem" is an advanced Perseus item. It is rendered by the
29704
+ * `MultiRenderer` and you can control the layout of individual parts of the
29705
+ * item.
29706
+ */
29695
29707
  const ItemExtras = [
29696
29708
  // The user might benefit from using a Scientific Calculator. Provided on Khan Academy when true
29697
29709
  "calculator",
@@ -31892,7 +31904,8 @@ const MafsGraph = props => {
31892
31904
  boxSizing: "content-box",
31893
31905
  marginLeft: "20px",
31894
31906
  marginBottom: "20px",
31895
- pointerEvents: props.static ? "none" : "auto"
31907
+ pointerEvents: props.static ? "none" : "auto",
31908
+ userSelect: "none"
31896
31909
  }
31897
31910
  }, /*#__PURE__*/React.createElement(LegacyGrid, {
31898
31911
  box: props.box,
@@ -44260,7 +44273,7 @@ const init = function init(options) {
44260
44273
 
44261
44274
  // This file is processed by a Rollup plugin (replace) to inject the production
44262
44275
  const libName = "@khanacademy/perseus";
44263
- const libVersion = "28.2.0";
44276
+ const libVersion = "30.0.0";
44264
44277
  addLibraryVersionToPerseusDebug(libName, libVersion);
44265
44278
 
44266
44279
  const apiVersion = {
@@ -47670,7 +47683,6 @@ const genericPerseusItemData = {
47670
47683
  minor: 1
47671
47684
  },
47672
47685
  hints: [],
47673
- _multi: null,
47674
47686
  answer: null
47675
47687
  };
47676
47688