@khanacademy/math-input 25.1.6 → 26.0.1
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 +1 -20
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -20
- package/dist/index.js.map +1 -1
- package/package.json +23 -23
package/dist/es/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { TransitionGroup } from 'react-transition-group';
|
|
|
14
14
|
import { withActionScheduler } from '@khanacademy/wonder-blocks-timing';
|
|
15
15
|
import PropTypes from 'prop-types';
|
|
16
16
|
|
|
17
|
-
const libName="@khanacademy/math-input";const libVersion="
|
|
17
|
+
const libName="@khanacademy/math-input";const libVersion="26.0.1";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
18
18
|
|
|
19
19
|
function getDefaultExportFromCjs (x) {
|
|
20
20
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1241,7 +1241,6 @@ function requireReactJsxRuntime_development () {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
|
-
var didWarnAboutKeySpread = {};
|
|
1245
1244
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
1246
1245
|
{
|
|
1247
1246
|
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
@@ -1312,24 +1311,6 @@ function requireReactJsxRuntime_development () {
|
|
|
1312
1311
|
}
|
|
1313
1312
|
}
|
|
1314
1313
|
|
|
1315
|
-
{
|
|
1316
|
-
if (hasOwnProperty.call(props, 'key')) {
|
|
1317
|
-
var componentName = getComponentNameFromType(type);
|
|
1318
|
-
var keys = Object.keys(props).filter(function (k) {
|
|
1319
|
-
return k !== 'key';
|
|
1320
|
-
});
|
|
1321
|
-
var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
|
|
1322
|
-
|
|
1323
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
1324
|
-
var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
|
|
1325
|
-
|
|
1326
|
-
error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
1327
|
-
|
|
1328
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
1314
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
1334
1315
|
validateFragmentProps(element);
|
|
1335
1316
|
} else {
|