@khanacademy/math-input 22.2.4 → 22.2.5
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/components/aphrodite-css-transition-group/types.d.ts +0 -9
- package/dist/components/keypad/keypad.d.ts +2 -1
- package/dist/components/keypad/navigation-button.d.ts +2 -1
- package/dist/components/keypad/navigation-pad.d.ts +2 -1
- package/dist/es/index.js +18 -13
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
45
45
|
|
|
46
46
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
47
47
|
const libName = "@khanacademy/math-input";
|
|
48
|
-
const libVersion = "22.2.
|
|
48
|
+
const libVersion = "22.2.5";
|
|
49
49
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
50
50
|
|
|
51
51
|
function _extends() {
|
|
@@ -94,18 +94,22 @@ class View extends React__namespace.Component {
|
|
|
94
94
|
});
|
|
95
95
|
render() {
|
|
96
96
|
const className = aphrodite.css(View.styles.initial, ...(Array.isArray(this.props.style) ? this.props.style : [this.props.style])) + (this.props.extraClassName ? ` ${this.props.extraClassName}` : "");
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
97
|
+
return (
|
|
98
|
+
/*#__PURE__*/
|
|
99
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- TODO(LEMS-2871): Address a11y error
|
|
100
|
+
React__namespace.createElement("div", {
|
|
101
|
+
className: className,
|
|
102
|
+
style: this.props.dynamicStyle,
|
|
103
|
+
onClick: this.props.onClick,
|
|
104
|
+
onTouchCancel: this.props.onTouchCancel,
|
|
105
|
+
onTouchEnd: this.props.onTouchEnd,
|
|
106
|
+
onTouchMove: this.props.onTouchMove,
|
|
107
|
+
onTouchStart: this.props.onTouchStart,
|
|
108
|
+
"aria-label": this.props.ariaLabel,
|
|
109
|
+
role: this.props.role,
|
|
110
|
+
ref: this.props.forwardRef
|
|
111
|
+
}, this.props.children)
|
|
112
|
+
);
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
|
|
@@ -2305,6 +2309,7 @@ class MathInput extends React__namespace.Component {
|
|
|
2305
2309
|
}, /*#__PURE__*/React__namespace.createElement("div", {
|
|
2306
2310
|
className: "keypad-input"
|
|
2307
2311
|
// @ts-expect-error - TS2322 - Type 'string' is not assignable to type 'number | undefined'.
|
|
2312
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- TODO(LEMS-2871): Address a11y error
|
|
2308
2313
|
,
|
|
2309
2314
|
tabIndex: "0",
|
|
2310
2315
|
ref: node => {
|