@khanacademy/math-input 26.0.0 → 26.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 +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 +20 -20
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
|
|
|
42
42
|
var Clickable__default = /*#__PURE__*/_interopDefaultCompat(Clickable);
|
|
43
43
|
var PropTypes__default = /*#__PURE__*/_interopDefaultCompat(PropTypes);
|
|
44
44
|
|
|
45
|
-
const libName="@khanacademy/math-input";const libVersion="26.0.
|
|
45
|
+
const libName="@khanacademy/math-input";const libVersion="26.0.2";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
46
46
|
|
|
47
47
|
function getDefaultExportFromCjs (x) {
|
|
48
48
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1269,7 +1269,6 @@ function requireReactJsxRuntime_development () {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
|
-
var didWarnAboutKeySpread = {};
|
|
1273
1272
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
1274
1273
|
{
|
|
1275
1274
|
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
@@ -1340,24 +1339,6 @@ function requireReactJsxRuntime_development () {
|
|
|
1340
1339
|
}
|
|
1341
1340
|
}
|
|
1342
1341
|
|
|
1343
|
-
{
|
|
1344
|
-
if (hasOwnProperty.call(props, 'key')) {
|
|
1345
|
-
var componentName = getComponentNameFromType(type);
|
|
1346
|
-
var keys = Object.keys(props).filter(function (k) {
|
|
1347
|
-
return k !== 'key';
|
|
1348
|
-
});
|
|
1349
|
-
var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
|
|
1350
|
-
|
|
1351
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
1352
|
-
var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
|
|
1353
|
-
|
|
1354
|
-
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);
|
|
1355
|
-
|
|
1356
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
1342
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
1362
1343
|
validateFragmentProps(element);
|
|
1363
1344
|
} else {
|