@khanacademy/perseus-editor 6.2.1 → 6.2.2
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 +10 -9
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -67,7 +67,7 @@ var Switch__default = /*#__PURE__*/_interopDefaultLegacy(Switch);
|
|
|
67
67
|
|
|
68
68
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
69
69
|
const libName = "@khanacademy/perseus-editor";
|
|
70
|
-
const libVersion = "6.2.
|
|
70
|
+
const libVersion = "6.2.2";
|
|
71
71
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
72
72
|
|
|
73
73
|
function _extends() {
|
|
@@ -28419,6 +28419,7 @@ function MathquillInput(props) {
|
|
|
28419
28419
|
const mathFieldWrapperRef = React.useRef(null);
|
|
28420
28420
|
const mathFieldInstance = React.useRef();
|
|
28421
28421
|
const {
|
|
28422
|
+
locale,
|
|
28422
28423
|
strings
|
|
28423
28424
|
} = mathInput.useMathInputI18n();
|
|
28424
28425
|
React.useEffect(() => {
|
|
@@ -28426,7 +28427,7 @@ function MathquillInput(props) {
|
|
|
28426
28427
|
// make a new Mathquill input
|
|
28427
28428
|
if (mathFieldWrapperRef.current && !mathFieldInstance.current) {
|
|
28428
28429
|
// Initialize MathQuill.MathField instance
|
|
28429
|
-
mathFieldInstance.current = mathInput.createMathField(mathFieldWrapperRef.current, strings, baseConfig => ({
|
|
28430
|
+
mathFieldInstance.current = mathInput.createMathField(mathFieldWrapperRef.current, locale, strings, baseConfig => ({
|
|
28430
28431
|
...baseConfig,
|
|
28431
28432
|
handlers: {
|
|
28432
28433
|
edit: mathField => {
|
|
@@ -30072,11 +30073,7 @@ class InteractiveGraphSettings extends React__namespace.Component {
|
|
|
30072
30073
|
onBlur: this.changeBackgroundUrl
|
|
30073
30074
|
}), /*#__PURE__*/React__namespace.createElement(InfoTip$c, null, /*#__PURE__*/React__namespace.createElement("p", null, "Create an image in graphie, or use the \"Add image\" function to create a background."))), /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, {
|
|
30074
30075
|
style: styles$k.rulerSection
|
|
30075
|
-
}, /*#__PURE__*/React__namespace.createElement(
|
|
30076
|
-
layout: "floating",
|
|
30077
|
-
text: "The ruler and protractor are not accessible. Please consider an alternate approach.",
|
|
30078
|
-
kind: "warning"
|
|
30079
|
-
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, {
|
|
30076
|
+
}, /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, {
|
|
30080
30077
|
style: styles$k.checkboxRow
|
|
30081
30078
|
}, /*#__PURE__*/React__namespace.createElement(PropCheckBox$7, {
|
|
30082
30079
|
label: "Show ruler",
|
|
@@ -30088,7 +30085,11 @@ class InteractiveGraphSettings extends React__namespace.Component {
|
|
|
30088
30085
|
showProtractor: this.props.showProtractor,
|
|
30089
30086
|
onChange: this.change,
|
|
30090
30087
|
style: styles$k.resetSpaceTop
|
|
30091
|
-
})), this.props.showRuler && /*#__PURE__*/React__namespace.createElement(
|
|
30088
|
+
})), (this.props.showRuler || this.props.showProtractor) && /*#__PURE__*/React__namespace.createElement(Banner__default["default"], {
|
|
30089
|
+
layout: "floating",
|
|
30090
|
+
text: "The ruler and protractor are not accessible. Please consider an alternate approach.",
|
|
30091
|
+
kind: "warning"
|
|
30092
|
+
}), this.props.showRuler && /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, {
|
|
30092
30093
|
style: styles$k.spaceTop
|
|
30093
30094
|
}, /*#__PURE__*/React__namespace.createElement(LabeledRow, {
|
|
30094
30095
|
label: "Ruler label:",
|
|
@@ -30172,7 +30173,7 @@ const styles$k = aphrodite.StyleSheet.create({
|
|
|
30172
30173
|
flexDirection: "row",
|
|
30173
30174
|
alignItems: "center",
|
|
30174
30175
|
justifyContent: "space-between",
|
|
30175
|
-
|
|
30176
|
+
marginBottom: wonderBlocksTokens.spacing.xSmall_8
|
|
30176
30177
|
},
|
|
30177
30178
|
rulerSection: {
|
|
30178
30179
|
marginTop: wonderBlocksTokens.spacing.xSmall_8,
|