@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR2245-20250214165021 to 0.0.0-PR2246-20250214210704
@@ -18,18 +18,6 @@ type VirtualKeypadVersion = "MATH_INPUT_KEYPAD_V2" | "REACT_NATIVE_KEYPAD"; | ||
payload: { | ||
widgetSubType: string; | ||
widgetType: string; | ||
widgetId: string; | ||
message: string; | ||
userAgent: string; | ||
}; | ||
} | { | ||
type: "perseus:widget-rendering-error:ti"; | ||
payload: { | ||
widgetSubType: string; | ||
widgetType: string; | ||
widgetId: string; | ||
message: string; | ||
userAgent: string; | ||
}; | ||
} | { | ||
type: "perseus:interactive-graph-widget:rendered"; | ||
@@ -42,9 +30,2 @@ payload: { | ||
} | { | ||
type: "perseus:widget:rendered:ti"; | ||
payload: { | ||
widgetSubType: string; | ||
widgetType: string; | ||
widgetId: string; | ||
}; | ||
} | { | ||
type: "perseus:label-image:toggle-answers-hidden"; | ||
@@ -59,11 +40,2 @@ payload: null; | ||
} | { | ||
type: "perseus:label-image:toggle-answers-hidden:ti"; | ||
payload: null; | ||
} | { | ||
type: "perseus:label-image:marker-interacted-with:ti"; | ||
payload: null; | ||
} | { | ||
type: "perseus:label-image:choiced-interacted-with:ti"; | ||
payload: null; | ||
} | { | ||
type: "math-input:keypad-closed"; | ||
@@ -70,0 +42,0 @@ payload: { |
@@ -229,3 +229,2 @@ /** | ||
widgets: PerseusWidgetsMap; | ||
metadata?: ReadonlyArray<string>; | ||
/** | ||
@@ -262,3 +261,3 @@ * A dictionary of {[imageUrl]: PerseusImageDetail}. | ||
options: Options; | ||
key?: number; | ||
key?: number | null; | ||
version?: Version; | ||
@@ -309,3 +308,3 @@ }; | ||
left?: number; | ||
scale?: number | string; | ||
scale?: number; | ||
bottom?: number; | ||
@@ -566,3 +565,3 @@ }; | ||
directionalAxis: "x" | "y"; | ||
domain?: [min: number | null, max: number | null]; | ||
domain?: Interval; | ||
labels?: LockedLabelType[]; | ||
@@ -569,0 +568,0 @@ ariaLabel?: string; |
@@ -9,2 +9,1 @@ import { ErrorTrackingParseContext } from "../error-tracking-parse-context"; | ||
export declare function summonParsedValue<P extends Parser<any>>(): ParsedValue<P>; | ||
export declare function summon<T>(): T; |
@@ -16,9 +16,2 @@ export type Result<S, F> = Success<S> | Failure<F>; | ||
export declare function assertSuccess<S, F>(result: Result<S, F>): asserts result is Success<S>; | ||
/** | ||
* @returns a function that transforms the `detail` value of any Failure result | ||
* passed to it, and leaves Success results unchanged. `mapFailure` is curried | ||
* for easy composition with Array.map(), mu-lambda's pipe(), etc. | ||
* @param f the function to apply to Failure `detail`s. | ||
*/ | ||
export declare function mapFailure<S, DetailIn, DetailOut>(f: (detail: DetailIn) => DetailOut): (result: Result<S, DetailIn>) => Result<S, DetailOut>; | ||
export declare function all<S, F>(results: Array<Result<S, F>>, combineFailureDetails?: (a: F, b: F) => F): Result<S[], F>; |
import type { PerseusGroupWidgetOptions } from "../../data-schema"; | ||
import type { WidgetLogic } from "../logic-export.types"; | ||
export type GroupDefaultWidgetOptions = Pick<PerseusGroupWidgetOptions, "content" | "widgets" | "images" | "metadata">; | ||
export type GroupDefaultWidgetOptions = Pick<PerseusGroupWidgetOptions, "content" | "widgets" | "images">; | ||
declare const groupWidgetLogic: WidgetLogic; | ||
export default groupWidgetLogic; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR2245-20250214165021", | ||
"version": "0.0.0-PR2246-20250214210704", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1541789
155
12838