@khanacademy/perseus-editor 8.2.0 → 9.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/components/angle-input.d.ts +2 -2
- package/dist/components/coordinate-pair-input.d.ts +2 -2
- package/dist/components/graph-locked-figures/color-select.d.ts +2 -2
- package/dist/components/graph-locked-figures/color-swatch.d.ts +2 -2
- package/dist/components/graph-locked-figures/defining-point-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/ellipse-swatch.d.ts +2 -2
- package/dist/components/graph-locked-figures/labeled-row.d.ts +1 -1
- package/dist/components/graph-locked-figures/labeled-switch.d.ts +2 -2
- package/dist/components/graph-locked-figures/line-swatch.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-ellipse-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-figure-select.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-figure-settings-actions.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-figure-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-figures-section.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-line-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-point-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-polygon-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/locked-vector-settings.d.ts +2 -2
- package/dist/components/graph-locked-figures/polygon-swatch.d.ts +2 -2
- package/dist/components/graph-points-count-selector.d.ts +2 -2
- package/dist/components/graph-type-selector.d.ts +2 -2
- package/dist/components/heading.d.ts +2 -2
- package/dist/components/interactive-graph-correct-answer.d.ts +1 -1
- package/dist/components/interactive-graph-settings.d.ts +1 -1
- package/dist/components/perseus-editor-accordion.d.ts +1 -1
- package/dist/components/segment-count-selector.d.ts +2 -2
- package/dist/components/start-coord-settings.d.ts +2 -2
- package/dist/components/toggleable-caret.d.ts +2 -2
- package/dist/components/viewport-resizer.d.ts +2 -2
- package/dist/components/widget-editor.d.ts +1 -1
- package/dist/es/index.js +10 -10
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/widgets/image-editor.d.ts +2 -2
- package/dist/widgets/interaction-editor/mathquill-input.d.ts +2 -2
- package/dist/widgets/interactive-graph-editor.d.ts +67 -75
- package/dist/widgets/numeric-input-editor.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -83,7 +83,7 @@ var arrowCounterClockwise__default = /*#__PURE__*/_interopDefaultLegacy(arrowCou
|
|
|
83
83
|
|
|
84
84
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
85
85
|
const libName = "@khanacademy/perseus-editor";
|
|
86
|
-
const libVersion = "
|
|
86
|
+
const libVersion = "9.0.0";
|
|
87
87
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
88
88
|
|
|
89
89
|
function _extends() {
|
|
@@ -29245,7 +29245,7 @@ class InteractionEditor extends React__namespace.Component {
|
|
|
29245
29245
|
gridStep: this.props.graph.gridStep,
|
|
29246
29246
|
markings: this.props.graph.markings,
|
|
29247
29247
|
onChange: this._updateGraphProps
|
|
29248
|
-
}), this.props.graph.valid !== true && /*#__PURE__*/React__namespace.createElement("div", null, this.props.graph.valid)), ___default["default"].map(this.props.elements, function (element, n) {
|
|
29248
|
+
}), /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, this.props.graph.valid !== true && /*#__PURE__*/React__namespace.createElement("div", null, this.props.graph.valid))), ___default["default"].map(this.props.elements, function (element, n) {
|
|
29249
29249
|
if (element.type === "movable-point") {
|
|
29250
29250
|
return /*#__PURE__*/React__namespace.createElement(perseus.ElementContainer, {
|
|
29251
29251
|
title: /*#__PURE__*/React__namespace.createElement("span", null, "Movable point", " ", /*#__PURE__*/React__namespace.createElement(TeX, null, "(x_{" + element.options.varSubscript + "}, y_{" + element.options.varSubscript + "})"))
|
|
@@ -29841,7 +29841,7 @@ const LockedFigureSelect = props => {
|
|
|
29841
29841
|
key: `${id}-${figureType}`,
|
|
29842
29842
|
label: figureType,
|
|
29843
29843
|
onClick: () => onChange(figureType)
|
|
29844
|
-
}
|
|
29844
|
+
}))));
|
|
29845
29845
|
};
|
|
29846
29846
|
const styles$x = aphrodite.StyleSheet.create({
|
|
29847
29847
|
container: {
|
|
@@ -30076,7 +30076,7 @@ const ColorSelect = props => {
|
|
|
30076
30076
|
color: colorName,
|
|
30077
30077
|
decorative: true
|
|
30078
30078
|
})
|
|
30079
|
-
}
|
|
30079
|
+
})))));
|
|
30080
30080
|
};
|
|
30081
30081
|
const styles$s = aphrodite.StyleSheet.create({
|
|
30082
30082
|
row: {
|
|
@@ -30271,7 +30271,7 @@ const LockedEllipseSettings = props => {
|
|
|
30271
30271
|
key: option,
|
|
30272
30272
|
value: option,
|
|
30273
30273
|
label: option
|
|
30274
|
-
}
|
|
30274
|
+
}))))), /*#__PURE__*/React__namespace.createElement(wonderBlocksTypography.LabelMedium, {
|
|
30275
30275
|
tag: "label",
|
|
30276
30276
|
style: styles$p.row
|
|
30277
30277
|
}, "stroke", /*#__PURE__*/React__namespace.createElement(Strut, {
|
|
@@ -30287,10 +30287,10 @@ const LockedEllipseSettings = props => {
|
|
|
30287
30287
|
}, /*#__PURE__*/React__namespace.createElement(wonderBlocksDropdown.OptionItem, {
|
|
30288
30288
|
value: "solid",
|
|
30289
30289
|
label: "solid"
|
|
30290
|
-
}
|
|
30290
|
+
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksDropdown.OptionItem, {
|
|
30291
30291
|
value: "dashed",
|
|
30292
30292
|
label: "dashed"
|
|
30293
|
-
}
|
|
30293
|
+
}))), /*#__PURE__*/React__namespace.createElement(LockedFigureSettingsActions, {
|
|
30294
30294
|
showM2Features: props.showM2Features,
|
|
30295
30295
|
figureType: props.type,
|
|
30296
30296
|
onMove: onMove,
|
|
@@ -30763,7 +30763,7 @@ const LockedPolygonSettings = props => {
|
|
|
30763
30763
|
key: option,
|
|
30764
30764
|
value: option,
|
|
30765
30765
|
label: option
|
|
30766
|
-
}
|
|
30766
|
+
}))))), /*#__PURE__*/React__namespace.createElement(wonderBlocksTypography.LabelMedium, {
|
|
30767
30767
|
tag: "label",
|
|
30768
30768
|
style: [styles$i.row, styles$i.spaceUnder]
|
|
30769
30769
|
}, "stroke", /*#__PURE__*/React__namespace.createElement(Strut, {
|
|
@@ -30779,10 +30779,10 @@ const LockedPolygonSettings = props => {
|
|
|
30779
30779
|
}, /*#__PURE__*/React__namespace.createElement(wonderBlocksDropdown.OptionItem, {
|
|
30780
30780
|
value: "solid",
|
|
30781
30781
|
label: "solid"
|
|
30782
|
-
}
|
|
30782
|
+
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksDropdown.OptionItem, {
|
|
30783
30783
|
value: "dashed",
|
|
30784
30784
|
label: "dashed"
|
|
30785
|
-
}
|
|
30785
|
+
}))), /*#__PURE__*/React__namespace.createElement(LabeledSwitch, {
|
|
30786
30786
|
label: "show vertices",
|
|
30787
30787
|
checked: showVertices,
|
|
30788
30788
|
onChange: newValue => onChangeProps({
|