@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR606-20230821185223 to 0.0.0-PR606-20230821222918
# @khanacademy/perseus-core | ||
## 0.0.0-PR606-20230821185223 | ||
## 0.0.0-PR606-20230821222918 | ||
@@ -5,0 +5,0 @@ ### Minor Changes |
@@ -0,5 +1,6 @@ | ||
export type VirtualKeypadVersion = "PERSEUS_MATH_INPUT" | "MATH_INPUT_KEYPAD_V1" | "MATH_INPUT_KEYPAD_V2" | "REACT_NATIVE_KEYPAD"; | ||
export type PerseusAnalyticsEvent = { | ||
type: "perseus:expression-evaluated"; | ||
payload: { | ||
virtualKeypadVersion?: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
result: "correct" | "incorrect" | "invalid"; | ||
@@ -10,3 +11,3 @@ }; | ||
payload: { | ||
virtualKeypadVersion: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
}; | ||
@@ -16,3 +17,3 @@ } | { | ||
payload: { | ||
virtualKeypadVersion: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
}; | ||
@@ -19,0 +20,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR606-20230821185223", | ||
"version": "0.0.0-PR606-20230821222918", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
@@ -0,1 +1,7 @@ | ||
export type VirtualKeypadVersion = | ||
| "PERSEUS_MATH_INPUT" | ||
| "MATH_INPUT_KEYPAD_V1" | ||
| "MATH_INPUT_KEYPAD_V2" | ||
| "REACT_NATIVE_KEYPAD"; | ||
// A type union of all the events that any package in the Perseus ecosystem can | ||
@@ -7,5 +13,3 @@ // send. | ||
payload: { | ||
// Keypad version can be supplied by Perseus sometimes, but not always. | ||
// The host application will need to fill this in if it's not present. | ||
virtualKeypadVersion?: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
result: "correct" | "incorrect" | "invalid"; | ||
@@ -17,3 +21,3 @@ }; | ||
payload: { | ||
virtualKeypadVersion: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
}; | ||
@@ -24,3 +28,3 @@ } | ||
payload: { | ||
virtualKeypadVersion: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
}; | ||
@@ -27,0 +31,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140
51674
17