@khanacademy/math-input 23.0.5 → 23.0.6

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/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var perseusUtils = require('@khanacademy/perseus-utils');
5
6
  var _extends = require('@babel/runtime/helpers/extends');
6
7
  var keypadContext = require('@khanacademy/keypad-context');
7
8
  var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
@@ -45,51 +46,10 @@ var MathQuill__default = /*#__PURE__*/_interopDefaultLegacy(MathQuill);
45
46
  var Clickable__default = /*#__PURE__*/_interopDefaultLegacy(Clickable);
46
47
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
47
48
 
48
- /**
49
- * Adds the given perseus library version information to the __perseus_debug__
50
- * object and ensures that the object is attached to `globalThis` (`window` in
51
- * browser environments).
52
- *
53
- * This allows each library to provide runtime version information to assist in
54
- * debugging in production environments.
55
- */
56
- const addLibraryVersionToPerseusDebug = (libraryName, libraryVersion) => {
57
- // If the library version is the default value, then we don't want to
58
- // prefix it with a "v" to indicate that it is a version number.
59
- let prefix = "v";
60
- if (libraryVersion === "__lib_version__") {
61
- prefix = "";
62
- }
63
- const formattedVersion = `${prefix}${libraryVersion}`;
64
- if (typeof globalThis !== "undefined") {
65
- globalThis.__perseus_debug__ = globalThis.__perseus_debug__ ?? {};
66
- const existingVersionEntry = globalThis.__perseus_debug__[libraryName];
67
- if (existingVersionEntry) {
68
- // If we already have an entry and it doesn't match the registered
69
- // version, we morph the entry into an array and log a warning.
70
- if (existingVersionEntry !== formattedVersion) {
71
- // Existing entry might be an array already (oops, at least 2
72
- // versions of the library already loaded!).
73
- const allVersions = Array.isArray(existingVersionEntry) ? existingVersionEntry : [existingVersionEntry];
74
- allVersions.push(formattedVersion);
75
- globalThis.__perseus_debug__[libraryName] = allVersions;
76
-
77
- // eslint-disable-next-line no-console
78
- console.warn(`Multiple versions of ${libraryName} loaded on this page: ${allVersions.sort().join(", ")}`);
79
- }
80
- } else {
81
- globalThis.__perseus_debug__[libraryName] = formattedVersion;
82
- }
83
- } else {
84
- // eslint-disable-next-line no-console
85
- console.warn(`globalThis not found found (${formattedVersion})`);
86
- }
87
- };
88
-
89
49
  // This file is processed by a Rollup plugin (replace) to inject the production
90
50
  const libName = "@khanacademy/math-input";
91
- const libVersion = "23.0.5";
92
- addLibraryVersionToPerseusDebug(libName, libVersion);
51
+ const libVersion = "23.0.6";
52
+ perseusUtils.addLibraryVersionToPerseusDebug(libName, libVersion);
93
53
 
94
54
  class View extends React__namespace.Component {
95
55
  static styles = aphrodite.StyleSheet.create({
@@ -5347,7 +5307,7 @@ function SharedKeys(props) {
5347
5307
  keyConfig: Keys.BACKSPACE,
5348
5308
  onClickKey: onClickKey,
5349
5309
  coord: [5, 3],
5350
- action: true
5310
+ secondary: true
5351
5311
  }));
5352
5312
  }
5353
5313