@khanacademy/perseus-core 4.0.0 → 5.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.
@@ -26,6 +26,7 @@
26
26
  * b) the parsing code (`util/parse-perseus-json/`) is updated to handle
27
27
  * the new format _as well as_ the old format.
28
28
  */
29
+ import type { KeypadKey } from "./keypad";
29
30
  export type Coord = [x: number, y: number];
30
31
  export type Interval = [min: number, max: number];
31
32
  export type Vector2 = Coord;
@@ -365,6 +366,7 @@ export type PerseusExpressionWidgetOptions = {
365
366
  buttonSets: LegacyButtonSets;
366
367
  functions: ReadonlyArray<string>;
367
368
  times: boolean;
369
+ extraKeys?: ReadonlyArray<KeypadKey>;
368
370
  visibleLabel?: string;
369
371
  ariaLabel?: string;
370
372
  buttonsVisible?: "always" | "never" | "focused";
@@ -833,6 +835,7 @@ export type PerseusRadioWidgetOptions = {
833
835
  choices: ReadonlyArray<PerseusRadioChoice>;
834
836
  hasNoneOfTheAbove?: boolean;
835
837
  countChoices?: boolean;
838
+ numCorrect?: number;
836
839
  randomize?: boolean;
837
840
  multipleSelect?: boolean;
838
841
  deselectEnabled?: boolean;