@khanacademy/perseus-core 18.7.0 → 18.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  export declare const parseIFrameUserInput: import("../parser-types").Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
2
2
  status: "correct" | "incorrect" | "incomplete";
3
- message: string | null;
3
+ message: string | null | undefined;
4
4
  }>>;
@@ -1,3 +1,3 @@
1
1
  export declare const parseRadioUserInput: import("../parser-types").Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
2
- choicesSelected: boolean[];
2
+ selectedChoiceIds: string[];
3
3
  }>>;
@@ -0,0 +1,3 @@
1
+ import type { PerseusImageWidgetOptions, ImageWidget } from "../../data-schema";
2
+ export declare function generateImageOptions(options?: Partial<PerseusImageWidgetOptions>): PerseusImageWidgetOptions;
3
+ export declare function generateImageWidget(imageWidgetProperties?: Partial<Omit<ImageWidget, "type">>): ImageWidget;
@@ -83,7 +83,7 @@ export type PerseusGrapherRubric = {
83
83
  export type PerseusGrapherUserInput = GrapherAnswerTypes;
84
84
  export type PerseusIFrameUserInput = {
85
85
  status: UserInputStatus;
86
- message: string | null;
86
+ message?: string | null;
87
87
  };
88
88
  export type PerseusInputNumberRubric = {
89
89
  answerType?: "number" | "decimal" | "integer" | "rational" | "improper" | "mixed" | "percent" | "pi";
@@ -172,7 +172,7 @@ export type PerseusRadioRubric = {
172
172
  countChoices?: boolean;
173
173
  };
174
174
  export type PerseusRadioUserInput = {
175
- choicesSelected: boolean[];
175
+ selectedChoiceIds: string[];
176
176
  };
177
177
  export type PerseusSorterRubric = {
178
178
  correct: string[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared Perseus infrastructure",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "18.7.0",
6
+ "version": "18.9.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },