@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR634-20230727203610 to 0.0.0-PR635-20230727220119
# @khanacademy/perseus-core | ||
## 0.0.0-PR634-20230727203610 | ||
## 0.0.0-PR635-20230727220119 | ||
### Minor Changes | ||
- fb3a4a5b: Add perseus-core to changeset | ||
- dd800c22: Rename analytics prop from onEvent to onAnalyticsEvent | ||
@@ -9,0 +9,0 @@ ## 0.0.2 |
@@ -18,3 +18,3 @@ export type PerseusAnalyticsEvent = { | ||
}; | ||
/** A function to send analytics events. */ | ||
export type SendEventFn = (event: PerseusAnalyticsEvent) => Promise<void>; | ||
/** A function that is called when Perseus emits an analytics event. */ | ||
export type AnalyticsEventHandlerFn = (event: PerseusAnalyticsEvent) => Promise<void>; |
@@ -1,2 +0,2 @@ | ||
export type { PerseusAnalyticsEvent, SendEventFn } from "./analytics"; | ||
export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export type { KEScore, RendererInterface } from "./types"; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR634-20230727203610", | ||
"version": "0.0.0-PR635-20230727220119", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
@@ -29,3 +29,5 @@ // A type union of all the events that any package in the Perseus ecosystem can | ||
/** A function to send analytics events. */ | ||
export type SendEventFn = (event: PerseusAnalyticsEvent) => Promise<void>; | ||
/** A function that is called when Perseus emits an analytics event. */ | ||
export type AnalyticsEventHandlerFn = ( | ||
event: PerseusAnalyticsEvent, | ||
) => Promise<void>; |
@@ -1,2 +0,2 @@ | ||
export type {PerseusAnalyticsEvent, SendEventFn} from "./analytics"; | ||
export type {PerseusAnalyticsEvent, AnalyticsEventHandlerFn} from "./analytics"; | ||
export type {KEScore, RendererInterface} from "./types"; |
// Types that can be shared between Perseus packages | ||
// ideally without causing circular dependencies | ||
// TODO: this should be typed | ||
type State = any; | ||
@@ -6,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
52741
132