@khanacademy/perseus-editor 16.0.1 → 16.0.3
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/es/index.js
CHANGED
|
@@ -46,7 +46,7 @@ import arrowCounterClockwise from '@phosphor-icons/core/bold/arrow-counter-clock
|
|
|
46
46
|
|
|
47
47
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
48
48
|
const libName = "@khanacademy/perseus-editor";
|
|
49
|
-
const libVersion = "16.0.
|
|
49
|
+
const libVersion = "16.0.3";
|
|
50
50
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
51
51
|
|
|
52
52
|
function _extends() {
|
|
@@ -181,7 +181,7 @@ const JsonEditor = createReactClass({
|
|
|
181
181
|
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
182
182
|
this.props.onChange(json);
|
|
183
183
|
});
|
|
184
|
-
} catch (
|
|
184
|
+
} catch (_unused) {
|
|
185
185
|
this.setState({
|
|
186
186
|
currentValue: nextString,
|
|
187
187
|
valid: false
|
|
@@ -208,7 +208,7 @@ const JsonEditor = createReactClass({
|
|
|
208
208
|
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
209
209
|
this.props.onChange(json);
|
|
210
210
|
});
|
|
211
|
-
} catch (
|
|
211
|
+
} catch (_unused2) {
|
|
212
212
|
this.setState({
|
|
213
213
|
currentValue: JSON.stringify(this.props.value, null, 4),
|
|
214
214
|
valid: true
|
|
@@ -29636,7 +29636,7 @@ function LockedLabelSettings(props) {
|
|
|
29636
29636
|
size: spacing.xSmall_8
|
|
29637
29637
|
}), /*#__PURE__*/React.createElement(TextField, {
|
|
29638
29638
|
value: text,
|
|
29639
|
-
placeholder: "ex. x^2 or
|
|
29639
|
+
placeholder: "ex. $x^2$ or $\\frac{1}{2}$",
|
|
29640
29640
|
onChange: newValue => onChangeProps({
|
|
29641
29641
|
text: newValue
|
|
29642
29642
|
})
|
|
@@ -94179,7 +94179,7 @@ function getDefaultFigureForType(type) {
|
|
|
94179
94179
|
return {
|
|
94180
94180
|
type: "label",
|
|
94181
94181
|
coord: [0, 0],
|
|
94182
|
-
text: "",
|
|
94182
|
+
text: "label",
|
|
94183
94183
|
color: DEFAULT_COLOR,
|
|
94184
94184
|
size: "medium"
|
|
94185
94185
|
};
|
|
@@ -94229,7 +94229,7 @@ async function generateSpokenMathDetails(mathString) {
|
|
|
94229
94229
|
case "specialCharacter":
|
|
94230
94230
|
// We don't want the backslash from special character
|
|
94231
94231
|
// to show up in the generated aria label.
|
|
94232
|
-
piece.content.length > 1 ?
|
|
94232
|
+
convertedSpeech += piece.content.length > 1 ? piece.content.slice(1) : piece.content;
|
|
94233
94233
|
break;
|
|
94234
94234
|
default:
|
|
94235
94235
|
convertedSpeech += piece.content;
|
|
@@ -97226,7 +97226,7 @@ class FormWrappedTextField extends React.Component {
|
|
|
97226
97226
|
const {
|
|
97227
97227
|
onBlur
|
|
97228
97228
|
} = this.props;
|
|
97229
|
-
onBlur
|
|
97229
|
+
onBlur == null || onBlur(e);
|
|
97230
97230
|
this.setState({
|
|
97231
97231
|
focused: false
|
|
97232
97232
|
});
|
|
@@ -97235,7 +97235,7 @@ class FormWrappedTextField extends React.Component {
|
|
|
97235
97235
|
const {
|
|
97236
97236
|
onFocus
|
|
97237
97237
|
} = this.props;
|
|
97238
|
-
onFocus
|
|
97238
|
+
onFocus == null || onFocus(e);
|
|
97239
97239
|
this.setState({
|
|
97240
97240
|
focused: true
|
|
97241
97241
|
});
|