@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR781-20231026000232 to 0.0.0-PR783-20231026185326
# @khanacademy/perseus-core | ||
## 0.0.0-PR781-20231026000232 | ||
## 0.0.0-PR783-20231026185326 | ||
### Minor Changes | ||
- [#783](https://github.com/Khan/perseus/pull/783) [`d3ced18e`](https://github.com/Khan/perseus/commit/d3ced18e764c0119c4323914841d36504c0d656d) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Adds 'widgetId' to the 'perseus:widget-rendering-error' analytics event. | ||
## 1.2.0 | ||
### Minor Changes | ||
- [#780](https://github.com/Khan/perseus/pull/780) [`376eb0e4`](https://github.com/Khan/perseus/commit/376eb0e4aaaa4c7a90fd6107a84bb74d382b077c) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Added 'perseus:widget-rendering-error' analytics event. | ||
@@ -8,0 +14,0 @@ |
@@ -16,2 +16,8 @@ export type VirtualKeypadVersion = "PERSEUS_MATH_INPUT" | "MATH_INPUT_KEYPAD_V1" | "MATH_INPUT_KEYPAD_V2" | "REACT_NATIVE_KEYPAD"; | ||
} | { | ||
type: "perseus:widget-rendering-error"; | ||
payload: { | ||
widgetType: string; | ||
widgetId: string; | ||
}; | ||
} | { | ||
type: "math-input:keypad-closed"; | ||
@@ -26,9 +32,4 @@ payload: { | ||
}; | ||
} | { | ||
type: "perseus:widget-rendering-error"; | ||
payload: { | ||
widgetType: string; | ||
}; | ||
}; | ||
/** A function that is called when Perseus emits an analytics event. */ | ||
export type AnalyticsEventHandlerFn = (event: PerseusAnalyticsEvent) => Promise<void>; |
@@ -45,3 +45,3 @@ /** | ||
const libName = "@khanacademy/perseus-core"; | ||
const libVersion = "1.1.2"; | ||
const libVersion = "1.2.0"; | ||
addLibraryVersionToPerseusDebug(libName, libVersion); | ||
@@ -48,0 +48,0 @@ |
@@ -49,3 +49,3 @@ 'use strict'; | ||
const libName = "@khanacademy/perseus-core"; | ||
const libVersion = "1.1.2"; | ||
const libVersion = "1.2.0"; | ||
addLibraryVersionToPerseusDebug(libName, libVersion); | ||
@@ -52,0 +52,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR781-20231026000232", | ||
"version": "0.0.0-PR783-20231026185326", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
@@ -24,9 +24,10 @@ export type VirtualKeypadVersion = | ||
| { | ||
type: "math-input:keypad-closed"; | ||
type: "perseus:widget-rendering-error"; | ||
payload: { | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
widgetType: string; | ||
widgetId: string; | ||
}; | ||
} | ||
| { | ||
type: "math-input:keypad-opened"; | ||
type: "math-input:keypad-closed"; | ||
payload: { | ||
@@ -37,5 +38,5 @@ virtualKeypadVersion: VirtualKeypadVersion; | ||
| { | ||
type: "perseus:widget-rendering-error"; | ||
type: "math-input:keypad-opened"; | ||
payload: { | ||
widgetType: string; | ||
virtualKeypadVersion: VirtualKeypadVersion; | ||
}; | ||
@@ -42,0 +43,0 @@ }; |
Sorry, the diff of this file is not supported yet
74186
432