@khanacademy/perseus-core
Advanced tools
Comparing version 0.2.0 to 1.0.0
# @khanacademy/perseus-core | ||
## 1.0.0 | ||
### Major Changes | ||
- 2af4f9fa: Switch from using ProvideKeypad in ArticleRenderer to passing the keypad element down instead | ||
## 0.2.0 | ||
@@ -4,0 +10,0 @@ |
export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export type { KEScore, RendererInterface } from "./types"; | ||
export type { KEScore, KeypadContextRendererInterface, RendererInterface, } from "./types"; |
@@ -0,1 +1,4 @@ | ||
export interface KeypadContextRendererInterface { | ||
blur(): void; | ||
} | ||
type State = any; | ||
@@ -2,0 +5,0 @@ export interface RendererInterface { |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"publishConfig": { | ||
@@ -13,3 +13,4 @@ "access": "public" | ||
"type": "git", | ||
"url": "https://github.com/Khan/perseus.git" | ||
"url": "https://github.com/Khan/perseus.git", | ||
"directory": "packages/perseus-core" | ||
}, | ||
@@ -16,0 +17,0 @@ "bugs": { |
export type {PerseusAnalyticsEvent, AnalyticsEventHandlerFn} from "./analytics"; | ||
export type {KEScore, RendererInterface} from "./types"; | ||
export type { | ||
KEScore, | ||
KeypadContextRendererInterface, | ||
RendererInterface, | ||
} from "./types"; |
// Types that can be shared between Perseus packages | ||
// ideally without causing circular dependencies | ||
// Used by KeypadContext to pass around a renderer reference | ||
export interface KeypadContextRendererInterface { | ||
blur(): void; | ||
} | ||
// TODO: this should be typed | ||
@@ -8,4 +13,3 @@ type State = any; | ||
// Interfact currently only implemented by | ||
// ServerItemRenderer and used by KeypadContext | ||
// to pass around a renderer reference | ||
// ServerItemRenderer | ||
export interface RendererInterface { | ||
@@ -12,0 +16,0 @@ getSerializedState(): State; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
52033
150
1
56