@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.
- package/dist/article-editor.d.ts +1 -1
- package/dist/components/json-editor.d.ts +1 -0
- package/dist/components/labeled-switch.d.ts +1 -0
- package/dist/components/section-control-button.d.ts +5 -14
- package/dist/editor.d.ts +2 -1
- package/dist/es/index.css +3 -1
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +40 -38
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +3 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +47 -43
- package/dist/index.js.map +1 -1
- package/dist/item-extras-editor.d.ts +1 -0
- package/dist/widgets/dropdown-editor.d.ts +4 -4
- package/dist/widgets/interactive-graph-editor/components/axis-arrow-switches.d.ts +1 -0
- package/dist/widgets/interactive-graph-editor/components/interactive-graph-settings.d.ts +2 -0
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +176 -0
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-figures-section.d.ts +1 -0
- package/dist/widgets/label-image-editor/answer-choices.d.ts +2 -1
- package/dist/widgets/label-image-editor/label-image-editor.d.ts +2 -0
- package/dist/widgets/label-image-editor/question-markers.d.ts +1 -0
- package/package.json +5 -5
|
@@ -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
|
|
18
|
-
onContentChange: (arg1: number, arg2:
|
|
19
|
-
addChoice: (
|
|
20
|
-
removeChoice: (arg1: number
|
|
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;
|