@khanacademy/perseus-editor 28.5.6 → 28.6.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.
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import type { PerseusAnswerArea } from "@khanacademy/perseus-core";
3
3
  type Props = PerseusAnswerArea & {
4
4
  onChange: (props: Partial<PerseusAnswerArea>) => void;
5
+ editingDisabled: boolean;
5
6
  };
6
7
  declare class ItemExtrasEditor extends React.Component<Props> {
7
8
  static defaultProps: PerseusAnswerArea;
@@ -14,10 +14,10 @@ declare class DropdownEditor extends React.Component<Props> {
14
14
  onVisibleLabelChange: (arg1: string) => void;
15
15
  onAriaLabelChange: (arg1: string) => void;
16
16
  onPlaceholderChange: (arg1: string) => void;
17
- onCorrectChange: (arg1: number, arg2: React.ChangeEvent<HTMLInputElement>) => void;
18
- onContentChange: (arg1: number, arg2: React.ChangeEvent<HTMLInputElement>) => void;
19
- addChoice: (arg1: React.MouseEvent) => void;
20
- removeChoice: (arg1: number, arg2: React.MouseEvent) => void;
17
+ onCorrectChange: (arg1: number) => void;
18
+ onContentChange: (arg1: number, arg2: string) => void;
19
+ addChoice: () => void;
20
+ removeChoice: (arg1: number) => void;
21
21
  focus: (arg1: number) => boolean;
22
22
  serialize: () => any;
23
23
  render(): React.ReactNode;
@@ -3,6 +3,7 @@ import type { ShowAxisArrows } from "@khanacademy/perseus-core";
3
3
  interface AxisArrowSwitchesProps {
4
4
  showAxisArrows: ShowAxisArrows;
5
5
  onChange: (axis: keyof ShowAxisArrows) => void;
6
+ disabled: boolean;
6
7
  }
7
8
  export default function AxisArrowSwitches(props: AxisArrowSwitchesProps): React.JSX.Element;
8
9
  export {};
@@ -69,6 +69,7 @@ type Props = {
69
69
  */
70
70
  showTooltips: boolean;
71
71
  onChange: (arg1: Partial<Props>) => void;
72
+ editingDisabled: boolean;
72
73
  };
73
74
  type State = {
74
75
  isExpanded: boolean;
@@ -128,6 +129,7 @@ declare class InteractiveGraphSettings extends React.Component<Props, State> {
128
129
  yMin: boolean;
129
130
  yMax: boolean;
130
131
  };
132
+ editingDisabled: boolean;
131
133
  };
132
134
  componentDidMount(): void;
133
135
  UNSAFE_componentWillReceiveProps(nextProps: any): void;