@khanacademy/perseus 55.0.1 → 56.0.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.
@@ -1,8 +1,8 @@
1
1
  import { CursorContext, MathInputI18nContext } from "@khanacademy/math-input";
2
2
  import * as React from "react";
3
3
  import { PerseusI18nContext } from "./i18n-context";
4
- import type { Keys, MathFieldInterface } from "@khanacademy/math-input";
5
- import type { AnalyticsEventHandlerFn, LegacyButtonSets } from "@khanacademy/perseus-core";
4
+ import type { MathFieldInterface } from "@khanacademy/math-input";
5
+ import type { AnalyticsEventHandlerFn, KeypadKey, LegacyButtonSets } from "@khanacademy/perseus-core";
6
6
  type ButtonsVisibleType = "always" | "never" | "focused";
7
7
  export type KeypadButtonSets = {
8
8
  advancedRelations?: boolean;
@@ -31,7 +31,7 @@ type Props = {
31
31
  onFocus?: () => void;
32
32
  onBlur?: () => void;
33
33
  hasError?: boolean;
34
- extraKeys?: ReadonlyArray<Keys>;
34
+ extraKeys?: ReadonlyArray<KeypadKey>;
35
35
  /**
36
36
  * Whether to show the keypad buttons.
37
37
  * The strings now misleading, but we keep them for backwards compatibility.
@@ -70,7 +70,7 @@ declare class InnerMathInput extends React.Component<InnerProps, State> {
70
70
  mathField: () => MathFieldInterface | null;
71
71
  focus: () => void;
72
72
  blur: () => void;
73
- handleKeypadPress: (key: Keys, e: any) => void;
73
+ handleKeypadPress: (key: KeypadKey, e: any) => void;
74
74
  render(): React.ReactNode;
75
75
  }
76
76
  declare class MathInput extends React.Component<Props, State> {