@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/index.d.ts CHANGED
@@ -88,7 +88,7 @@ export type { ServerItemRenderer as ServerItemRendererComponent } from "./server
88
88
  export type { Alignment, APIOptions, APIOptionsWithDefaults, ChangeHandler, DeviceType, DomInsertCheckFn, EditorMode, FocusPath, ImageDict, ImageUploader, JiptLabelStore, JiptRenderer, PerseusDependencies, PerseusScore, Version, VideoData, VideoKind, WidgetDict, WidgetExports, } from "./types";
89
89
  export type { ParsedValue } from "./util";
90
90
  export type { Hint, LegacyButtonSets, LockedFigure, LockedFigureColor, LockedFigureFillType, LockedFigureType, LockedPointType, LockedLineType, LockedVectorType, LockedEllipseType, LockedPolygonType, LockedFunctionType, PerseusGraphType, PerseusAnswerArea, PerseusExpressionWidgetOptions, Range, Size, CollinearTuple, MathFormat, InputNumberWidget, // TODO(jeremy): remove?
91
- PerseusImageBackground, PerseusInputNumberWidgetOptions, PerseusInteractiveGraphWidgetOptions, PerseusItem, PerseusPlotterWidgetOptions, PerseusPythonProgramWidgetOptions, PerseusRadioWidgetOptions, PerseusExampleWidgetOptions, PerseusExampleGraphieWidgetOptions, PerseusSimpleMarkdownTesterWidgetOptions, PerseusRenderer, PerseusWidget, PerseusWidgetsMap, } from "./perseus-types";
91
+ PerseusImageBackground, PerseusInputNumberWidgetOptions, PerseusInteractiveGraphWidgetOptions, PerseusItem, PerseusPlotterWidgetOptions, PerseusPythonProgramWidgetOptions, PerseusRadioWidgetOptions, PerseusExampleWidgetOptions, PerseusExampleGraphieWidgetOptions, PerseusSimpleMarkdownTesterWidgetOptions, PerseusRenderer, PerseusWidget, PerseusWidgetsMap, MultiItem, } from "./perseus-types";
92
92
  export type { Coord } from "./interactive2/types";
93
93
  export type { MarkerType } from "./widgets/label-image/types";
94
94
  /**
package/dist/index.js CHANGED
@@ -1395,7 +1395,7 @@ const KhanMath = {
1395
1395
  * with an approx symbol if num had to be rounded, and trailing 0s
1396
1396
  */
1397
1397
  toFixedApprox: function (num, precision) {
1398
- // TODO(aria): Make this locale-dependent like KhanUtil.localeToFixed
1398
+ // TODO(aria): Make this locale-dependent
1399
1399
  const fixedStr = num.toFixed(precision);
1400
1400
  if (kmath.number.equal(+fixedStr, num)) {
1401
1401
  return fixedStr;
@@ -22792,7 +22792,7 @@ var sharedStyles = aphrodite.StyleSheet.create({
22792
22792
  zIndex: zIndexAboveScratchpad
22793
22793
  },
22794
22794
  blankBackground: {
22795
- // TODO(emily): Use KhanUtil._BACKGROUND?
22795
+ // TODO(emily): Use WB colors?
22796
22796
  backgroundColor: "#FDFDFD"
22797
22797
  },
22798
22798
  perseusSrOnly: {
@@ -29997,6 +29997,18 @@ const LegacyGrid = _ref => {
29997
29997
 
29998
29998
  // Range is replaced within this file with Interval, but it is used elsewhere
29999
29999
  // and exported from the package, so we need to keep it around.
30000
+ /**
30001
+ * A "PerseusItem" is a classic Perseus item. It is rendered by the
30002
+ * `ServerItemRenderer` and the layout is pre-set.
30003
+ *
30004
+ * To render more complex Perseus items, see the `Item` type in the multi item
30005
+ * area.
30006
+ */
30007
+ /**
30008
+ * A "MultiItem" is an advanced Perseus item. It is rendered by the
30009
+ * `MultiRenderer` and you can control the layout of individual parts of the
30010
+ * item.
30011
+ */
30000
30012
  const ItemExtras = [
30001
30013
  // The user might benefit from using a Scientific Calculator. Provided on Khan Academy when true
30002
30014
  "calculator",
@@ -32219,7 +32231,8 @@ const MafsGraph = props => {
32219
32231
  boxSizing: "content-box",
32220
32232
  marginLeft: "20px",
32221
32233
  marginBottom: "20px",
32222
- pointerEvents: props.static ? "none" : "auto"
32234
+ pointerEvents: props.static ? "none" : "auto",
32235
+ userSelect: "none"
32223
32236
  }
32224
32237
  }, /*#__PURE__*/React__namespace.createElement(LegacyGrid, {
32225
32238
  box: props.box,
@@ -44612,7 +44625,7 @@ const init = function (options) {
44612
44625
 
44613
44626
  // This file is processed by a Rollup plugin (replace) to inject the production
44614
44627
  const libName = "@khanacademy/perseus";
44615
- const libVersion = "28.2.0";
44628
+ const libVersion = "30.0.0";
44616
44629
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
44617
44630
 
44618
44631
  const apiVersion = {
@@ -48033,7 +48046,6 @@ const genericPerseusItemData = {
48033
48046
  minor: 1
48034
48047
  },
48035
48048
  hints: [],
48036
- _multi: null,
48037
48049
  answer: null
48038
48050
  };
48039
48051