@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR640-20230728151651 to 0.0.0-PR681-20230821181145
# @khanacademy/perseus-core | ||
## 0.0.0-PR640-20230728151651 | ||
## 0.0.0-PR681-20230821181145 | ||
### Major Changes | ||
- 8034c522: Switch from using ProvideKeypad in ArticleRenderer to passing the keypad element down instead | ||
## 0.1.1 | ||
### Patch Changes | ||
- 88bf291d: Commented RendererInterface | ||
- 57f75510: Commented RendererInterface | ||
@@ -9,0 +15,0 @@ ## 0.1.0 |
export type { PerseusAnalyticsEvent, SendEventFn } from "./analytics"; | ||
export type { KEScore, RendererInterface } from "./types"; | ||
export type { KEScore, KeypadContextRendererInterface } from "./types"; |
@@ -1,9 +0,3 @@ | ||
type State = any; | ||
export interface RendererInterface { | ||
getSerializedState(): State; | ||
restoreSerializedState(state: State, callback?: () => void): void; | ||
scoreInput(): KEScore; | ||
export interface KeypadContextRendererInterface { | ||
blur(): void; | ||
focus(): boolean | null | undefined; | ||
props: any; | ||
} | ||
@@ -18,2 +12,1 @@ export type KEScore = { | ||
}; | ||
export {}; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR640-20230728151651", | ||
"version": "0.0.0-PR681-20230821181145", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
export type {PerseusAnalyticsEvent, SendEventFn} from "./analytics"; | ||
export type {KEScore, RendererInterface} from "./types"; | ||
export type {KEScore, KeypadContextRendererInterface} from "./types"; |
// Types that can be shared between Perseus packages | ||
// ideally without causing circular dependencies | ||
// TODO: this should be typed | ||
type State = any; | ||
// Interfact currently only implemented by | ||
// Interface currently only implemented by | ||
// ServerItemRenderer and used by KeypadContext | ||
// to pass around a renderer reference | ||
export interface RendererInterface { | ||
getSerializedState(): State; | ||
restoreSerializedState(state: State, callback?: () => void): void; | ||
scoreInput(): KEScore; | ||
export interface KeypadContextRendererInterface { | ||
blur(): void; | ||
focus(): boolean | null | undefined; | ||
props: any; | ||
} | ||
@@ -18,0 +10,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
277
42
52
93
52339
120