@khanacademy/perseus-editor 16.0.0 → 16.0.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 +8 -8
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -98,7 +98,7 @@ var arrowCounterClockwise__default = /*#__PURE__*/_interopDefaultLegacy(arrowCou
|
|
|
98
98
|
|
|
99
99
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
100
100
|
const libName = "@khanacademy/perseus-editor";
|
|
101
|
-
const libVersion = "16.0.
|
|
101
|
+
const libVersion = "16.0.2";
|
|
102
102
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
103
103
|
|
|
104
104
|
function _extends() {
|
|
@@ -243,7 +243,7 @@ const JsonEditor = createReactClass__default["default"]({
|
|
|
243
243
|
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
244
244
|
this.props.onChange(json);
|
|
245
245
|
});
|
|
246
|
-
} catch
|
|
246
|
+
} catch {
|
|
247
247
|
this.setState({
|
|
248
248
|
currentValue: nextString,
|
|
249
249
|
valid: false
|
|
@@ -270,7 +270,7 @@ const JsonEditor = createReactClass__default["default"]({
|
|
|
270
270
|
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
271
271
|
this.props.onChange(json);
|
|
272
272
|
});
|
|
273
|
-
} catch
|
|
273
|
+
} catch {
|
|
274
274
|
this.setState({
|
|
275
275
|
currentValue: JSON.stringify(this.props.value, null, 4),
|
|
276
276
|
valid: true
|
|
@@ -29768,7 +29768,7 @@ function LockedLabelSettings(props) {
|
|
|
29768
29768
|
size: wonderBlocksTokens.spacing.xSmall_8
|
|
29769
29769
|
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksForm.TextField, {
|
|
29770
29770
|
value: text,
|
|
29771
|
-
placeholder: "ex. x^2 or
|
|
29771
|
+
placeholder: "ex. $x^2$ or $\\frac{1}{2}$",
|
|
29772
29772
|
onChange: newValue => onChangeProps({
|
|
29773
29773
|
text: newValue
|
|
29774
29774
|
})
|
|
@@ -94312,7 +94312,7 @@ function getDefaultFigureForType(type) {
|
|
|
94312
94312
|
return {
|
|
94313
94313
|
type: "label",
|
|
94314
94314
|
coord: [0, 0],
|
|
94315
|
-
text: "",
|
|
94315
|
+
text: "label",
|
|
94316
94316
|
color: DEFAULT_COLOR,
|
|
94317
94317
|
size: "medium"
|
|
94318
94318
|
};
|
|
@@ -94364,7 +94364,7 @@ async function generateSpokenMathDetails(mathString) {
|
|
|
94364
94364
|
case "specialCharacter":
|
|
94365
94365
|
// We don't want the backslash from special character
|
|
94366
94366
|
// to show up in the generated aria label.
|
|
94367
|
-
piece.content.length > 1 ?
|
|
94367
|
+
convertedSpeech += piece.content.length > 1 ? piece.content.slice(1) : piece.content;
|
|
94368
94368
|
break;
|
|
94369
94369
|
default:
|
|
94370
94370
|
convertedSpeech += piece.content;
|
|
@@ -97469,7 +97469,7 @@ class FormWrappedTextField extends React__namespace.Component {
|
|
|
97469
97469
|
const {
|
|
97470
97470
|
onBlur
|
|
97471
97471
|
} = this.props;
|
|
97472
|
-
onBlur
|
|
97472
|
+
onBlur?.(e);
|
|
97473
97473
|
this.setState({
|
|
97474
97474
|
focused: false
|
|
97475
97475
|
});
|
|
@@ -97478,7 +97478,7 @@ class FormWrappedTextField extends React__namespace.Component {
|
|
|
97478
97478
|
const {
|
|
97479
97479
|
onFocus
|
|
97480
97480
|
} = this.props;
|
|
97481
|
-
onFocus
|
|
97481
|
+
onFocus?.(e);
|
|
97482
97482
|
this.setState({
|
|
97483
97483
|
focused: true
|
|
97484
97484
|
});
|