@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/es/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import Switch from '@khanacademy/wonder-blocks-switch';
|
|
|
29
29
|
|
|
30
30
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
31
31
|
const libName = "@khanacademy/perseus-editor";
|
|
32
|
-
const libVersion = "6.2.
|
|
32
|
+
const libVersion = "6.2.2";
|
|
33
33
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
34
34
|
|
|
35
35
|
function _extends() {
|
|
@@ -28366,6 +28366,7 @@ function MathquillInput(props) {
|
|
|
28366
28366
|
const mathFieldWrapperRef = useRef(null);
|
|
28367
28367
|
const mathFieldInstance = useRef();
|
|
28368
28368
|
const {
|
|
28369
|
+
locale,
|
|
28369
28370
|
strings
|
|
28370
28371
|
} = useMathInputI18n();
|
|
28371
28372
|
useEffect(() => {
|
|
@@ -28373,7 +28374,7 @@ function MathquillInput(props) {
|
|
|
28373
28374
|
// make a new Mathquill input
|
|
28374
28375
|
if (mathFieldWrapperRef.current && !mathFieldInstance.current) {
|
|
28375
28376
|
// Initialize MathQuill.MathField instance
|
|
28376
|
-
mathFieldInstance.current = createMathField(mathFieldWrapperRef.current, strings, baseConfig => _extends({}, baseConfig, {
|
|
28377
|
+
mathFieldInstance.current = createMathField(mathFieldWrapperRef.current, locale, strings, baseConfig => _extends({}, baseConfig, {
|
|
28377
28378
|
handlers: {
|
|
28378
28379
|
edit: mathField => {
|
|
28379
28380
|
// This handler is guaranteed to be called on change, but
|
|
@@ -29963,11 +29964,7 @@ class InteractiveGraphSettings extends React.Component {
|
|
|
29963
29964
|
onBlur: this.changeBackgroundUrl
|
|
29964
29965
|
}), /*#__PURE__*/React.createElement(InfoTip$c, null, /*#__PURE__*/React.createElement("p", null, "Create an image in graphie, or use the \"Add image\" function to create a background."))), /*#__PURE__*/React.createElement(View, {
|
|
29965
29966
|
style: styles$k.rulerSection
|
|
29966
|
-
}, /*#__PURE__*/React.createElement(
|
|
29967
|
-
layout: "floating",
|
|
29968
|
-
text: "The ruler and protractor are not accessible. Please consider an alternate approach.",
|
|
29969
|
-
kind: "warning"
|
|
29970
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
29967
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
29971
29968
|
style: styles$k.checkboxRow
|
|
29972
29969
|
}, /*#__PURE__*/React.createElement(PropCheckBox$7, {
|
|
29973
29970
|
label: "Show ruler",
|
|
@@ -29979,7 +29976,11 @@ class InteractiveGraphSettings extends React.Component {
|
|
|
29979
29976
|
showProtractor: this.props.showProtractor,
|
|
29980
29977
|
onChange: this.change,
|
|
29981
29978
|
style: styles$k.resetSpaceTop
|
|
29982
|
-
})), this.props.showRuler && /*#__PURE__*/React.createElement(
|
|
29979
|
+
})), (this.props.showRuler || this.props.showProtractor) && /*#__PURE__*/React.createElement(Banner, {
|
|
29980
|
+
layout: "floating",
|
|
29981
|
+
text: "The ruler and protractor are not accessible. Please consider an alternate approach.",
|
|
29982
|
+
kind: "warning"
|
|
29983
|
+
}), this.props.showRuler && /*#__PURE__*/React.createElement(View, {
|
|
29983
29984
|
style: styles$k.spaceTop
|
|
29984
29985
|
}, /*#__PURE__*/React.createElement(LabeledRow, {
|
|
29985
29986
|
label: "Ruler label:",
|
|
@@ -30079,7 +30080,7 @@ const styles$k = StyleSheet.create({
|
|
|
30079
30080
|
flexDirection: "row",
|
|
30080
30081
|
alignItems: "center",
|
|
30081
30082
|
justifyContent: "space-between",
|
|
30082
|
-
|
|
30083
|
+
marginBottom: spacing.xSmall_8
|
|
30083
30084
|
},
|
|
30084
30085
|
rulerSection: {
|
|
30085
30086
|
marginTop: spacing.xSmall_8,
|