@khanacademy/math-input 0.6.3 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @khanacademy/math-input
2
2
 
3
+ ## 0.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 6a7f36be: Update wonder-stuff and wonder-blocks dependencies
8
+
9
+ ## 0.6.5
10
+
11
+ ### Patch Changes
12
+
13
+ - c238d540: Wrap all ReactDOM.render() calls in `<RenderStateRoot>` to ensure it propagates properly
14
+
15
+ ## 0.6.4
16
+
17
+ ### Patch Changes
18
+
19
+ - 113953e8: Exports new types to support custom keypads: `CursorContext`, `KeypadType`, `KeyType`, and `Key`
20
+
3
21
  ## 0.6.3
4
22
 
5
23
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -300,6 +300,7 @@ var toolbarHeightPx = 60;
300
300
  /**
301
301
  * Constants that are shared between multiple files.
302
302
  */
303
+ // TODO: Retire this in favour of KeypadType (above)
303
304
  var KeypadTypes = {
304
305
  FRACTION: "FRACTION",
305
306
  EXPRESSION: "EXPRESSION"
@@ -673,6 +674,7 @@ for (var key of Object.keys(KeyConfigs)) {
673
674
  * now, we show the dismiss button rather than allowing the user to jump out of
674
675
  * the radical.
675
676
  */
677
+ // TODO: Get rid of these constants in favour of CursorContext type.
676
678
  // The cursor is not in any of the other viable contexts.
677
679
  var NONE = "NONE"; // The cursor is within a set of parentheses.
678
680
 
@@ -1528,7 +1530,7 @@ class MathWrapper {
1528
1530
 
1529
1531
  var commandCharRegex = /^[a-z]$/;
1530
1532
  var commandStartRegex = /^\\[a-z]$/;
1531
- var commandEndSeq = "\\left("; // Note: We whitelist the set of valid commands, since relying solely on
1533
+ var commandEndSeq = "\\left("; // Note: We allowlist the set of valid commands, since relying solely on
1532
1534
  // a command being prefixed with a backslash leads to undesired
1533
1535
  // behavior. For example, Greek symbols, left parentheses, and square
1534
1536
  // roots all get treated as commands.