@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR2219-20250220194243 to 0.0.0-PR2219-20250226180352
@@ -748,5 +748,6 @@ /** | ||
export type PerseusNumericInputAnswerForm = { | ||
simplify: "required" | "correct" | "enforced" | "optional" | null | undefined; | ||
simplify: PerseusNumericInputSimplify | null | undefined; | ||
name: MathFormat; | ||
}; | ||
export type PerseusNumericInputSimplify = "required" | "correct" | "enforced" | "optional"; | ||
export type PerseusNumericInputWidgetOptions = { | ||
@@ -759,3 +760,2 @@ answers: ReadonlyArray<PerseusNumericInputAnswer>; | ||
static: boolean; | ||
answerForms?: ReadonlyArray<PerseusNumericInputAnswerForm>; | ||
}; | ||
@@ -769,3 +769,3 @@ export type PerseusNumericInputAnswer = { | ||
maxError: number | null | undefined; | ||
simplify: string | null | undefined; | ||
simplify: PerseusNumericInputSimplify | null | undefined; | ||
}; | ||
@@ -772,0 +772,0 @@ export type PerseusNumberLineWidgetOptions = { |
@@ -6,3 +6,2 @@ export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export type { Coords } from "./utils/grapher-types"; | ||
export { addLibraryVersionToPerseusDebug } from "./utils/add-library-version-to-perseus-debug"; | ||
export { default as getMatrixSize } from "./utils/get-matrix-size"; | ||
@@ -98,2 +97,3 @@ export { default as getDecimalSeparator } from "./utils/get-decimal-separator"; | ||
export { default as getDropdownPublicWidgetOptions } from "./widgets/dropdown/dropdown-util"; | ||
export type { DropdownPublicWidgetOptions } from "./widgets/dropdown/dropdown-util"; | ||
export { default as getNumericInputPublicWidgetOptions } from "./widgets/numeric-input/numeric-input-util"; | ||
@@ -100,0 +100,0 @@ export { default as getNumberLinePublicWidgetOptions } from "./widgets/number-line/number-line-util"; |
@@ -6,3 +6,3 @@ import type { PerseusDropdownWidgetOptions } from "@khanacademy/perseus-core"; | ||
*/ | ||
type DropdownPublicWidgetOptions = { | ||
export type DropdownPublicWidgetOptions = { | ||
choices: ReadonlyArray<{ | ||
@@ -9,0 +9,0 @@ content: string; |
@@ -1,2 +0,3 @@ | ||
import type { PerseusNumericInputWidgetOptions } from "@khanacademy/perseus-core"; | ||
import type { PerseusNumericInputAnswer, PerseusNumericInputWidgetOptions } from "@khanacademy/perseus-core"; | ||
type NumericInputAnswerPublicData = Pick<PerseusNumericInputAnswer, "answerForms" | "simplify" | "status">; | ||
/** | ||
@@ -12,3 +13,3 @@ * For details on the individual options, see the | ||
static: PerseusNumericInputWidgetOptions["static"]; | ||
answerForms?: PerseusNumericInputWidgetOptions["answerForms"]; | ||
answers: ReadonlyArray<NumericInputAnswerPublicData>; | ||
}; | ||
@@ -15,0 +16,0 @@ /** |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR2219-20250220194243", | ||
"version": "0.0.0-PR2219-20250226180352", | ||
"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
1159313
9706