@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR681-20230822211350 to 0.0.0-PR681-20230824155605
# @khanacademy/perseus-core | ||
## 0.0.0-PR681-20230822211350 | ||
## 0.0.0-PR681-20230824155605 | ||
@@ -5,0 +5,0 @@ ### Major Changes |
export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export type { KEScore, KeypadContextRendererInterface } from "./types"; | ||
export type { KEScore, KeypadContextRendererInterface, RendererInterface, } from "./types"; |
export interface KeypadContextRendererInterface { | ||
blur(): void; | ||
} | ||
type State = any; | ||
export interface RendererInterface { | ||
getSerializedState(): State; | ||
restoreSerializedState(state: State, callback?: () => void): void; | ||
scoreInput(): KEScore; | ||
blur(): void; | ||
focus(): boolean | null | undefined; | ||
props: any; | ||
} | ||
export type KEScore = { | ||
@@ -12,1 +21,2 @@ empty: boolean; | ||
}; | ||
export {}; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR681-20230822211350", | ||
"version": "0.0.0-PR681-20230824155605", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
export type {PerseusAnalyticsEvent, AnalyticsEventHandlerFn} from "./analytics"; | ||
export type {KEScore, KeypadContextRendererInterface} from "./types"; | ||
export type { | ||
KEScore, | ||
KeypadContextRendererInterface, | ||
RendererInterface, | ||
} from "./types"; |
@@ -9,2 +9,16 @@ // Types that can be shared between Perseus packages | ||
// TODO: this should be typed | ||
type State = any; | ||
// Interfact currently only implemented by | ||
// ServerItemRenderer | ||
export interface RendererInterface { | ||
getSerializedState(): State; | ||
restoreSerializedState(state: State, callback?: () => void): void; | ||
scoreInput(): KEScore; | ||
blur(): void; | ||
focus(): boolean | null | undefined; | ||
props: any; | ||
} | ||
export type KEScore = { | ||
@@ -11,0 +25,0 @@ empty: boolean; |
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
52029
150