@khanacademy/perseus-editor 45.0.1 → 45.0.2

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.
@@ -2,16 +2,10 @@ import * as React from "react";
2
2
  import type { RadioOptionSettingsHandle } from "./radio-option-settings";
3
3
  import type { ChoiceMovementType } from "./radio-option-settings-actions";
4
4
  import type { APIOptions } from "@khanacademy/perseus";
5
- import type { PerseusRadioWidgetOptions, PerseusRadioChoice } from "@khanacademy/perseus-core";
6
- export interface RadioEditorProps {
5
+ import type { PerseusRadioWidgetOptions } from "@khanacademy/perseus-core";
6
+ export interface RadioEditorProps extends PerseusRadioWidgetOptions {
7
7
  apiOptions: APIOptions;
8
- countChoices: boolean;
9
- choices: PerseusRadioChoice[];
10
- randomize: boolean;
11
- hasNoneOfTheAbove: boolean;
12
- multipleSelect: boolean;
13
- deselectEnabled: boolean;
14
- onChange: (values: Partial<PerseusRadioWidgetOptions>, callback?: (() => void) | null) => void;
8
+ onChange: (options: PerseusRadioWidgetOptions) => void;
15
9
  }
16
10
  /**
17
11
  * An editor for adding a radio widget that allows users to select a single option from multiple choices.
@@ -24,6 +18,7 @@ declare class RadioEditor extends React.Component<RadioEditorProps> {
24
18
  static defaultProps: PerseusRadioWidgetOptions;
25
19
  choiceRefs: Map<string, React.RefObject<RadioOptionSettingsHandle>>;
26
20
  componentDidMount(): void;
21
+ handleChange(changes: Partial<PerseusRadioWidgetOptions>): void;
27
22
  getChoiceRef: (choiceId: string) => React.RefObject<RadioOptionSettingsHandle>;
28
23
  onMultipleSelectChange: (options: {
29
24
  multipleSelect: boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "45.0.1",
6
+ "version": "45.0.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -28,7 +28,7 @@
28
28
  "@khanacademy/keypad-context": "6.0.7",
29
29
  "@khanacademy/kmath": "3.1.0",
30
30
  "@khanacademy/math-input": "30.1.2",
31
- "@khanacademy/perseus": "92.0.1",
31
+ "@khanacademy/perseus": "92.0.2",
32
32
  "@khanacademy/perseus-core": "42.0.0",
33
33
  "@khanacademy/perseus-linter": "6.1.5",
34
34
  "@khanacademy/perseus-utils": "3.0.1",