@khanacademy/perseus-core 0.0.0-PR684-20230821213119 → 0.0.0-PR685-20230821235235

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,6 +1,6 @@
1
1
  # @khanacademy/perseus-core
2
2
 
3
- ## 0.0.0-PR684-20230821213119
3
+ ## 0.0.0-PR685-20230821235235
4
4
 
5
5
  ### Minor Changes
6
6
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared Perseus infrastructure",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "0.0.0-PR684-20230821213119",
6
+ "version": "0.0.0-PR685-20230821235235",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -1,37 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- export type VirtualKeypadVersion =
8
- | "PERSEUS_MATH_INPUT"
9
- | "MATH_INPUT_KEYPAD_V1"
10
- | "MATH_INPUT_KEYPAD_V2"
11
- | "REACT_NATIVE_KEYPAD";
12
- export type PerseusAnalyticsEvent =
13
- | {|
14
- type: "perseus:expression-evaluated",
15
- payload: {|
16
- virtualKeypadVersion: VirtualKeypadVersion,
17
- result: "correct" | "incorrect" | "invalid",
18
- |},
19
- |}
20
- | {|
21
- type: "math-input:keypad-closed",
22
- payload: {|
23
- virtualKeypadVersion: VirtualKeypadVersion,
24
- |},
25
- |}
26
- | {|
27
- type: "math-input:keypad-opened",
28
- payload: {|
29
- virtualKeypadVersion: VirtualKeypadVersion,
30
- |},
31
- |};
32
- /**
33
- * A function that is called when Perseus emits an analytics event.
34
- */
35
- export type AnalyticsEventHandlerFn = (
36
- event: PerseusAnalyticsEvent
37
- ) => Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- export type {
8
- PerseusAnalyticsEvent,
9
- AnalyticsEventHandlerFn,
10
- } from "./analytics";
11
- export type { KEScore, RendererInterface } from "./types";
@@ -1,23 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- declare type State = any;
8
- export interface RendererInterface {
9
- getSerializedState(): State;
10
- restoreSerializedState(state: State, callback?: () => void): void;
11
- scoreInput(): KEScore;
12
- blur(): void;
13
- focus(): boolean | null | void;
14
- props: any;
15
- }
16
- export type KEScore = {|
17
- empty: boolean,
18
- correct: boolean,
19
- message?: string | null | void,
20
- suppressAlmostThere?: boolean | null | void,
21
- guess: any,
22
- state: any,
23
- |};