@khanacademy/perseus 17.1.1 → 17.2.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/CHANGELOG.md +13 -0
- package/dist/es/index.js +5 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/math-input.tsx +6 -1
- package/src/widgets/label-image/hide-answers-toggle.tsx +1 -1
- package/tsconfig-build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -182,7 +182,7 @@ class MathInput extends React__namespace.Component {
|
|
|
182
182
|
// Use the specified symbol to represent multiplication
|
|
183
183
|
// TODO(alex): Add an option to disallow variables, in
|
|
184
184
|
// which case 'x' should get converted to '\\times'
|
|
185
|
-
if (this.props.convertDotToTimes) {
|
|
185
|
+
if (mathInput.convertDotToTimesByLocale(this.props.convertDotToTimes)) {
|
|
186
186
|
value = value.replace(/\\cdot/g, "\\times");
|
|
187
187
|
|
|
188
188
|
// Preserve cursor position in the common case:
|
|
@@ -31234,7 +31234,8 @@ const HideAnswersToggle = props => {
|
|
|
31234
31234
|
"aria-labelledby": labelId
|
|
31235
31235
|
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksTypography.LabelMedium, {
|
|
31236
31236
|
id: labelId,
|
|
31237
|
-
htmlFor: switchId
|
|
31237
|
+
htmlFor: switchId,
|
|
31238
|
+
tag: "label"
|
|
31238
31239
|
}, strings.hideAnswersToggleLabel));
|
|
31239
31240
|
};
|
|
31240
31241
|
const styles$h = aphrodite.StyleSheet.create({
|
|
@@ -44320,7 +44321,7 @@ const init = function (options) {
|
|
|
44320
44321
|
|
|
44321
44322
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44322
44323
|
const libName = "@khanacademy/perseus";
|
|
44323
|
-
const libVersion = "17.
|
|
44324
|
+
const libVersion = "17.2.0";
|
|
44324
44325
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44325
44326
|
|
|
44326
44327
|
const apiVersion = {
|