@khanacademy/perseus-core
Advanced tools
Comparing version 1.0.0 to 1.1.0
# @khanacademy/perseus-core | ||
## 1.1.0 | ||
### Minor Changes | ||
- 4f4fe4f9: Added new analytics event "perseus:expression-focused" | ||
## 1.0.0 | ||
@@ -4,0 +10,0 @@ |
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 | ||
* send. | ||
*/ | ||
export type PerseusAnalyticsEvent = { | ||
@@ -9,2 +13,5 @@ type: "perseus:expression-evaluated"; | ||
} | { | ||
type: "perseus:expression-focused"; | ||
payload: null; | ||
} | { | ||
type: "math-input:keypad-closed"; | ||
@@ -11,0 +18,0 @@ payload: { |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
@@ -7,4 +7,6 @@ export type VirtualKeypadVersion = | ||
// A type union of all the events that any package in the Perseus ecosystem can | ||
// send. | ||
/** | ||
* A type union of all the events that any package in the Perseus ecosystem can | ||
* send. | ||
*/ | ||
export type PerseusAnalyticsEvent = | ||
@@ -19,2 +21,6 @@ | { | ||
| { | ||
type: "perseus:expression-focused"; | ||
payload: null; | ||
} | ||
| { | ||
type: "math-input:keypad-closed"; | ||
@@ -34,2 +40,6 @@ payload: { | ||
// | {type: "b"; payload: {name: string}}; | ||
// | ||
// Event types should be formatted as "package-name:event-name" (where the | ||
// package name is the name of the package that emits the event without the | ||
// `@khanacademy/` prefix and then the name of the event.) | ||
@@ -36,0 +46,0 @@ /** A function that is called when Perseus emits an analytics event. */ |
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
52602
167