@khanacademy/math-input 8.0.0 → 8.1.0

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,17 @@
1
1
  # @khanacademy/math-input
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5611204a: Adds back the export of the unwrapped keypad for Khanmigo
8
+ - b4430dce: Make sendEvent in the Keypad an optional param
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [b4c06409]
13
+ - @khanacademy/perseus-core@0.1.0
14
+
3
15
  ## 8.0.0
4
16
 
5
17
  ### Major Changes
@@ -15,7 +15,7 @@ export type Props = {
15
15
  basicRelations?: boolean;
16
16
  advancedRelations?: boolean;
17
17
  onClickKey: ClickKeyCallback;
18
- sendEvent: SendEventFn;
18
+ sendEvent?: SendEventFn;
19
19
  };
20
20
  declare function Keypad(props: Props): JSX.Element;
21
21
  declare namespace Keypad {
@@ -23,7 +23,7 @@ export type Props = {|
23
23
  basicRelations?: boolean,
24
24
  advancedRelations?: boolean,
25
25
  onClickKey: ClickKeyCallback,
26
- sendEvent: SendEventFn,
26
+ sendEvent?: SendEventFn,
27
27
  |};
28
28
  declare var Keypad: typeof npm$namespace$Keypad;
29
29
 
package/dist/es/index.js CHANGED
@@ -4159,7 +4159,7 @@ function Keypad$2(props) {
4159
4159
  } = props;
4160
4160
  useEffect(() => {
4161
4161
  if (!isMounted) {
4162
- sendEvent({
4162
+ sendEvent == null ? void 0 : sendEvent({
4163
4163
  type: "math-input:keypad-opened",
4164
4164
  payload: {
4165
4165
  virtualKeypadVersion: "MATH_INPUT_KEYPAD_V2"
@@ -4169,7 +4169,7 @@ function Keypad$2(props) {
4169
4169
  }
4170
4170
  return () => {
4171
4171
  if (isMounted) {
4172
- sendEvent({
4172
+ sendEvent == null ? void 0 : sendEvent({
4173
4173
  type: "math-input:keypad-closed",
4174
4174
  payload: {
4175
4175
  virtualKeypadVersion: "MATH_INPUT_KEYPAD_V2"
@@ -8845,5 +8845,5 @@ const keypadElementPropType = PropTypes.shape({
8845
8845
  getDOMNode: PropTypes.func.isRequired
8846
8846
  });
8847
8847
 
8848
- export { CursorContext, KeyConfigs, KeypadSwitch as Keypad, context as KeypadContext, MathInput as KeypadInput, KeypadType, createMathField, getCursorContext, keyToMathquillMap as keyTranslator, keypadElementPropType, mathQuillInstance };
8848
+ export { CursorContext, Keypad$2 as DesktopKeypad, KeyConfigs, context as KeypadContext, MathInput as KeypadInput, KeypadType, KeypadSwitch as MobileKeypad, createMathField, getCursorContext, keyToMathquillMap as keyTranslator, keypadElementPropType, mathQuillInstance };
8849
8849
  //# sourceMappingURL=index.js.map