@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 +1 -1
- package/package.json +1 -1
- package/dist/analytics.js.flow +0 -37
- package/dist/index.js.flow +0 -11
- package/dist/types.js.flow +0 -23
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/dist/analytics.js.flow
DELETED
|
@@ -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>;
|
package/dist/index.js.flow
DELETED
|
@@ -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";
|
package/dist/types.js.flow
DELETED
|
@@ -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
|
-
|};
|