@khanacademy/perseus-editor 46.1.0 → 46.1.1
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/editor.d.ts +4 -0
- package/dist/index.js +917 -985
- package/dist/index.js.map +1 -1
- package/dist/widgets/categorizer-editor/categorizer-editor.d.ts +0 -1
- package/dist/widgets/definition-editor/definition-editor.d.ts +1 -2
- package/dist/widgets/dropdown-editor/dropdown-editor.d.ts +1 -2
- package/dist/widgets/explanation-editor/explanation-editor.d.ts +0 -1
- package/dist/widgets/expression-editor/expression-editor.d.ts +1 -11
- package/dist/widgets/fill-in-the-blank-editor/fill-in-the-blank-editor.d.ts +2 -5
- package/dist/widgets/free-response-editor/free-response-editor.d.ts +0 -7
- package/dist/widgets/graded-group-editor/graded-group-editor.d.ts +0 -1
- package/dist/widgets/graded-group-set-editor/graded-group-set-editor.d.ts +0 -1
- package/dist/widgets/grapher-editor/grapher-editor.d.ts +0 -1
- package/dist/widgets/group-editor/group-editor.d.ts +0 -1
- package/dist/widgets/iframe-editor/iframe-editor.d.ts +0 -1
- package/dist/widgets/image-editor/image-editor.d.ts +1 -2
- package/dist/widgets/interaction-editor/interaction-editor.d.ts +0 -1
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +1 -23
- package/dist/widgets/label-image-editor/label-image-editor.d.ts +0 -1
- package/dist/widgets/matcher-editor/matcher-editor.d.ts +0 -1
- package/dist/widgets/matrix-editor/matrix-editor.d.ts +0 -1
- package/dist/widgets/measurer-editor/measurer-editor.d.ts +0 -1
- package/dist/widgets/number-line-editor/number-line-editor.d.ts +0 -1
- package/dist/widgets/numeric-input-editor/numeric-input-editor.d.ts +0 -7
- package/dist/widgets/orderer-editor/orderer-editor.d.ts +0 -1
- package/dist/widgets/phet-simulation-editor/phet-simulation-editor.d.ts +1 -2
- package/dist/widgets/plotter-editor/plotter-editor.d.ts +1 -2
- package/dist/widgets/python-program-editor/python-program-editor.d.ts +0 -1
- package/dist/widgets/radio-editor/radio-editor.d.ts +0 -1
- package/dist/widgets/table-editor/table-editor.d.ts +0 -1
- package/dist/widgets/video-editor/video-editor.d.ts +1 -2
- package/package.json +7 -7
|
@@ -6,7 +6,6 @@ type Props = WidgetEditorProps<PerseusCategorizerWidgetOptions>;
|
|
|
6
6
|
* An editor for adding a categorizer widget that allows users to sort items into categories.
|
|
7
7
|
*/
|
|
8
8
|
declare class CategorizerEditor extends React.Component<Props> {
|
|
9
|
-
static defaultProps: PerseusCategorizerWidgetOptions;
|
|
10
9
|
handleChange(changed: Partial<PerseusCategorizerWidgetOptions>): void;
|
|
11
10
|
render(): React.ReactNode;
|
|
12
11
|
}
|
|
@@ -8,8 +8,7 @@ type Props = WidgetEditorProps<PerseusDefinitionWidgetOptions>;
|
|
|
8
8
|
* editors to embed clickable terms with expandable explanations within content.
|
|
9
9
|
*/
|
|
10
10
|
declare class DefinitionEditor extends React.Component<Props> {
|
|
11
|
-
static
|
|
12
|
-
static initializeWidgetOptions(params: InitializeWidgetOptionsParams): PerseusDefinitionWidgetOptions;
|
|
11
|
+
static initializeWidgetOptions(defaults: PerseusDefinitionWidgetOptions, params: InitializeWidgetOptionsParams): PerseusDefinitionWidgetOptions;
|
|
13
12
|
handleChange(changed: Partial<PerseusDefinitionWidgetOptions>): void;
|
|
14
13
|
render(): React.ReactNode;
|
|
15
14
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { type PerseusDropdownWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
3
|
+
import type { PerseusDropdownWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusDropdownWidgetOptions>;
|
|
5
5
|
/**
|
|
6
6
|
* An editor for adding a dropdown widget that allows users to select an option from a predefined list.
|
|
7
7
|
*/
|
|
8
8
|
declare class DropdownEditor extends React.Component<Props> {
|
|
9
|
-
static defaultProps: PerseusDropdownWidgetOptions;
|
|
10
9
|
handleChange(changed: Partial<PerseusDropdownWidgetOptions>): void;
|
|
11
10
|
onCorrectChange(choiceIndex: number): void;
|
|
12
11
|
onContentChange(choiceIndex: number, newContent: string): void;
|
|
@@ -6,7 +6,6 @@ type Props = WidgetEditorProps<PerseusExplanationWidgetOptions>;
|
|
|
6
6
|
* An editor for adding an explanation widget that provides supplementary information to users.
|
|
7
7
|
*/
|
|
8
8
|
declare class ExplanationEditor extends React.Component<Props> {
|
|
9
|
-
static defaultProps: PerseusExplanationWidgetOptions;
|
|
10
9
|
handleChange(changes: Partial<PerseusExplanationWidgetOptions>): void;
|
|
11
10
|
render(): React.ReactNode;
|
|
12
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PerseusExpressionAnswerFormConsidered } from "@khanacademy/perseus-core";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
4
|
-
import type { PerseusExpressionWidgetOptions,
|
|
4
|
+
import type { PerseusExpressionWidgetOptions, PerseusExpressionUserInput } from "@khanacademy/perseus-core";
|
|
5
5
|
type EditableExpressionWidgetOptions = Omit<PerseusExpressionWidgetOptions, "buttonsVisible">;
|
|
6
6
|
type Props = WidgetEditorProps<EditableExpressionWidgetOptions>;
|
|
7
7
|
type AnswerForm = PerseusExpressionWidgetOptions["answerForms"][number];
|
|
@@ -12,16 +12,6 @@ interface State {
|
|
|
12
12
|
* An editor for adding an expression widget that allows users to enter mathematical expressions.
|
|
13
13
|
*/
|
|
14
14
|
declare class ExpressionEditor extends React.Component<Props, State> {
|
|
15
|
-
static defaultProps: {
|
|
16
|
-
answerForms: PerseusExpressionAnswerForm[];
|
|
17
|
-
buttonSets: LegacyButtonSets;
|
|
18
|
-
functions: string[];
|
|
19
|
-
times: boolean;
|
|
20
|
-
extraKeys?: import("@khanacademy/perseus-core").KeypadKey[];
|
|
21
|
-
visibleLabel?: string;
|
|
22
|
-
ariaLabel?: string;
|
|
23
|
-
buttonsVisible?: "always" | "never" | "focused";
|
|
24
|
-
};
|
|
25
15
|
constructor(props: Props);
|
|
26
16
|
handleChange(changes: Partial<EditableExpressionWidgetOptions>): void;
|
|
27
17
|
newAnswer: () => void;
|
|
@@ -11,8 +11,5 @@ interface Props extends PerseusFillInTheBlankWidgetOptions {
|
|
|
11
11
|
*
|
|
12
12
|
* The controls are not built yet (LEMS-4371).
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
defaultProps: PerseusFillInTheBlankWidgetOptions;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
14
|
+
export default function FillInTheBlankEditor({ apiOptions }: Props): React.JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -6,13 +6,6 @@ type Props = WidgetEditorProps<PerseusFreeResponseWidgetOptions>;
|
|
|
6
6
|
* An editor for adding a free response widget that allows users to enter open-ended text answers.
|
|
7
7
|
*/
|
|
8
8
|
declare class FreeResponseEditor extends React.Component<Props> {
|
|
9
|
-
static defaultProps: {
|
|
10
|
-
allowUnlimitedCharacters: boolean;
|
|
11
|
-
characterLimit: number;
|
|
12
|
-
placeholder: string;
|
|
13
|
-
question: string;
|
|
14
|
-
scoringCriteria: ReadonlyArray<PerseusFreeResponseWidgetScoringCriterion>;
|
|
15
|
-
};
|
|
16
9
|
handleChange(changes: Partial<PerseusFreeResponseWidgetOptions>): void;
|
|
17
10
|
handleUpdateCharacterLimit: (newValue: string) => void;
|
|
18
11
|
handleUpdateCriterion: (index: number, criterion: PerseusFreeResponseWidgetScoringCriterion) => void;
|
|
@@ -3,7 +3,6 @@ import type { WidgetEditorProps } from "../widget-editor-props";
|
|
|
3
3
|
import type { PerseusGradedGroupWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusGradedGroupWidgetOptions>;
|
|
5
5
|
declare class GradedGroupEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusGradedGroupWidgetOptions;
|
|
7
6
|
handleChange(changes: Partial<PerseusGradedGroupWidgetOptions>): void;
|
|
8
7
|
handleAddHint: () => void;
|
|
9
8
|
handleRemoveHint: () => void;
|
|
@@ -3,7 +3,6 @@ import type { WidgetEditorProps } from "../widget-editor-props";
|
|
|
3
3
|
import type { PerseusGradedGroupSetWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusGradedGroupSetWidgetOptions>;
|
|
5
5
|
declare class GradedGroupSetEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusGradedGroupSetWidgetOptions;
|
|
7
6
|
renderGroups: () => React.ReactNode;
|
|
8
7
|
addGroup: () => void;
|
|
9
8
|
render(): React.ReactNode;
|
|
@@ -3,7 +3,6 @@ import type { WidgetEditorProps } from "../widget-editor-props";
|
|
|
3
3
|
import type { PerseusGrapherWidgetOptions, GrapherFunctionType } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusGrapherWidgetOptions>;
|
|
5
5
|
declare class GrapherEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusGrapherWidgetOptions;
|
|
7
6
|
handleChange(changes: Partial<PerseusGrapherWidgetOptions>): void;
|
|
8
7
|
handleAvailableTypesChange: (newAvailableTypes: GrapherFunctionType[]) => void;
|
|
9
8
|
render(): React.ReactNode;
|
|
@@ -3,7 +3,6 @@ import type { WidgetEditorProps } from "../widget-editor-props";
|
|
|
3
3
|
import type { PerseusGroupWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusGroupWidgetOptions>;
|
|
5
5
|
declare class GroupEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusGroupWidgetOptions;
|
|
7
6
|
render(): React.ReactNode;
|
|
8
7
|
}
|
|
9
8
|
export default GroupEditor;
|
|
@@ -6,7 +6,6 @@ type IframeEditorProps = WidgetEditorProps<PerseusIFrameWidgetOptions>;
|
|
|
6
6
|
* This is the main editor for this widget, to specify all the options.
|
|
7
7
|
*/
|
|
8
8
|
declare class IframeEditor extends React.Component<IframeEditorProps> {
|
|
9
|
-
static defaultProps: PerseusIFrameWidgetOptions;
|
|
10
9
|
handleChange(changes: Partial<PerseusIFrameWidgetOptions>): void;
|
|
11
10
|
render(): React.ReactNode;
|
|
12
11
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { type PerseusImageWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
3
|
+
import type { PerseusImageWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusImageWidgetOptions>;
|
|
5
5
|
/**
|
|
6
6
|
* An editor for adding an image widget that allows users to display and configure images within content.
|
|
7
7
|
*/
|
|
8
8
|
declare class ImageEditor extends React.Component<Props> {
|
|
9
9
|
static displayName: string;
|
|
10
|
-
static defaultProps: PerseusImageWidgetOptions;
|
|
11
10
|
handleChange: (changes: Partial<PerseusImageWidgetOptions>) => void;
|
|
12
11
|
render(): React.JSX.Element;
|
|
13
12
|
}
|
|
@@ -12,7 +12,6 @@ type State = any;
|
|
|
12
12
|
* and their properties.
|
|
13
13
|
*/
|
|
14
14
|
declare class InteractionEditor extends React.Component<Props, State> {
|
|
15
|
-
static defaultProps: PerseusInteractionWidgetOptions;
|
|
16
15
|
state: State;
|
|
17
16
|
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
18
17
|
handleChange(changes: Partial<PerseusInteractionWidgetOptions>): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { InteractiveGraphSettingsData } from "./components/interactive-graph-settings";
|
|
3
3
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
4
|
-
import type {
|
|
4
|
+
import type { PerseusInteractiveGraphWidgetOptions } from "@khanacademy/perseus-core";
|
|
5
5
|
interface State {
|
|
6
6
|
/**
|
|
7
7
|
* An error message to display in the graph area, or true if the
|
|
@@ -23,28 +23,6 @@ declare class InteractiveGraphEditor extends React.Component<Props, State> {
|
|
|
23
23
|
};
|
|
24
24
|
displayName: string;
|
|
25
25
|
state: State;
|
|
26
|
-
static defaultProps: {
|
|
27
|
-
step: [number, number];
|
|
28
|
-
gridStep?: [x: number, y: number];
|
|
29
|
-
snapStep?: [x: number, y: number];
|
|
30
|
-
backgroundImage: import("@khanacademy/perseus-core").PerseusImageBackground;
|
|
31
|
-
markings: import("@khanacademy/perseus-core").MarkingsType;
|
|
32
|
-
labels: string[];
|
|
33
|
-
labelLocation: import("@khanacademy/perseus-core").AxisLabelLocation;
|
|
34
|
-
showAxisArrows: import("@khanacademy/perseus-core").ShowAxisArrows;
|
|
35
|
-
showAxisTicks: import("@khanacademy/perseus-core").ShowAxisTicks;
|
|
36
|
-
showProtractor: boolean;
|
|
37
|
-
showRuler?: boolean;
|
|
38
|
-
showTooltips: boolean;
|
|
39
|
-
rulerLabel?: string;
|
|
40
|
-
rulerTicks?: number;
|
|
41
|
-
range: import("@khanacademy/perseus-core").GraphRange;
|
|
42
|
-
graph: PerseusGraphType;
|
|
43
|
-
correct: PerseusGraphType;
|
|
44
|
-
lockedFigures: import("@khanacademy/perseus-core").LockedFigure[];
|
|
45
|
-
fullGraphAriaLabel?: string;
|
|
46
|
-
fullGraphAriaDescription?: string;
|
|
47
|
-
};
|
|
48
26
|
handleChange(changes: Partial<PerseusInteractiveGraphWidgetOptions>): void;
|
|
49
27
|
handleSettingsChange({ valid, ...settings }: InteractiveGraphSettingsData): void;
|
|
50
28
|
changeStartCoords: (coords: any) => void;
|
|
@@ -15,7 +15,6 @@ type State = {
|
|
|
15
15
|
declare class LabelImageEditor extends React.Component<Props, State> {
|
|
16
16
|
private _questionMarkers;
|
|
17
17
|
state: State;
|
|
18
|
-
static defaultProps: PerseusLabelImageWidgetOptions;
|
|
19
18
|
componentDidUpdate(prevProps: Props): void;
|
|
20
19
|
handleChange(changes: Partial<PerseusLabelImageWidgetOptions>): void;
|
|
21
20
|
handleImageChange: (url: string) => void;
|
|
@@ -6,7 +6,6 @@ type Props = WidgetEditorProps<PerseusMatcherWidgetOptions>;
|
|
|
6
6
|
* An editor for adding a matcher widget that allows users to match items from two different sets.
|
|
7
7
|
*/
|
|
8
8
|
declare class MatcherEditor extends React.Component<Props> {
|
|
9
|
-
static defaultProps: PerseusMatcherWidgetOptions;
|
|
10
9
|
handleChange(changes: Partial<PerseusMatcherWidgetOptions>): void;
|
|
11
10
|
onLabelChange: (index: number, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
11
|
render(): React.ReactNode;
|
|
@@ -3,7 +3,6 @@ import type { WidgetEditorProps } from "../widget-editor-props";
|
|
|
3
3
|
import type { PerseusMatrixWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusMatrixWidgetOptions>;
|
|
5
5
|
declare class MatrixEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusMatrixWidgetOptions;
|
|
7
6
|
handleChange(changes: Partial<PerseusMatrixWidgetOptions>): void;
|
|
8
7
|
onMatrixBoardSizeChange: (arg1: [number, number]) => void;
|
|
9
8
|
render(): React.ReactNode;
|
|
@@ -3,7 +3,6 @@ import type { WidgetEditorProps } from "../widget-editor-props";
|
|
|
3
3
|
import type { PerseusMeasurerWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusMeasurerWidgetOptions>;
|
|
5
5
|
declare class MeasurerEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusMeasurerWidgetOptions;
|
|
7
6
|
className: string;
|
|
8
7
|
handleChange(changes: Partial<PerseusMeasurerWidgetOptions>): void;
|
|
9
8
|
_changeUrl: (arg1: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -7,7 +7,6 @@ type Props = WidgetEditorProps<PerseusNumberLineWidgetOptions>;
|
|
|
7
7
|
* positions, intervals, and points on a number line.
|
|
8
8
|
*/
|
|
9
9
|
declare class NumberLineEditor extends React.Component<Props> {
|
|
10
|
-
static defaultProps: PerseusNumberLineWidgetOptions;
|
|
11
10
|
handleChange(changes: Partial<PerseusNumberLineWidgetOptions>): void;
|
|
12
11
|
handleLabelRangeChange(i: number, num: number): void;
|
|
13
12
|
onNumDivisionsChange: (numDivisions: number) => void;
|
|
@@ -14,13 +14,6 @@ interface State {
|
|
|
14
14
|
*/
|
|
15
15
|
declare class NumericInputEditor extends React.Component<Props, State> {
|
|
16
16
|
static displayName: string;
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
answers: import("@khanacademy/perseus-core").PerseusNumericInputAnswer[];
|
|
19
|
-
labelText?: string | undefined;
|
|
20
|
-
size: string;
|
|
21
|
-
coefficient: boolean;
|
|
22
|
-
textAlign: "left" | "right" | "center";
|
|
23
|
-
};
|
|
24
17
|
constructor(props: Props);
|
|
25
18
|
handleChange(changes: Partial<PerseusNumericInputWidgetOptions>): void;
|
|
26
19
|
onToggleAnswers: (answerIndex: number) => void;
|
|
@@ -3,7 +3,6 @@ import * as React from "react";
|
|
|
3
3
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusOrdererWidgetOptions>;
|
|
5
5
|
declare class OrdererEditor extends React.Component<Props> {
|
|
6
|
-
static defaultProps: PerseusOrdererWidgetOptions;
|
|
7
6
|
handleChange(changes: Partial<PerseusOrdererWidgetOptions>): void;
|
|
8
7
|
onOptionsChange: (whichOptions: "correctOptions" | "otherOptions", options: string[]) => void;
|
|
9
8
|
render(): React.ReactNode;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { type PerseusPhetSimulationWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
3
|
+
import type { PerseusPhetSimulationWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = WidgetEditorProps<PerseusPhetSimulationWidgetOptions>;
|
|
5
5
|
/**
|
|
6
6
|
* An editor for adding a PhET simulation widget that allows users to interact
|
|
7
7
|
* with physics simulations.
|
|
8
8
|
*/
|
|
9
9
|
declare class PhetSimulationEditor extends React.Component<Props> {
|
|
10
|
-
static defaultProps: PerseusPhetSimulationWidgetOptions;
|
|
11
10
|
handleChange(changes: Partial<PerseusPhetSimulationWidgetOptions>): void;
|
|
12
11
|
render(): React.ReactNode;
|
|
13
12
|
}
|
|
@@ -16,12 +16,11 @@ type State = {
|
|
|
16
16
|
* An editor for adding a plotter widget that allows users to create and customize data visualizations.
|
|
17
17
|
*/
|
|
18
18
|
declare class PlotterEditor extends React.Component<Props, State> {
|
|
19
|
-
static defaultProps: PerseusPlotterWidgetOptions;
|
|
20
19
|
state: State;
|
|
21
20
|
UNSAFE_componentWillMount(): void;
|
|
22
21
|
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
23
22
|
handleChange(changes: Partial<PerseusPlotterWidgetOptions>): void;
|
|
24
|
-
fetchPic: (url: string | null
|
|
23
|
+
fetchPic: (url: string | null) => void;
|
|
25
24
|
handleChangeTickStep: (arg1: number) => void;
|
|
26
25
|
handleChangeRange: (arg1: [number, number]) => void;
|
|
27
26
|
changeLabelInterval: (arg1: number) => void;
|
|
@@ -6,7 +6,6 @@ type Props = WidgetEditorProps<PerseusPythonProgramWidgetOptions>;
|
|
|
6
6
|
* An editor for adding a Python program widget that allows users to write, edit and execute Python code.
|
|
7
7
|
*/
|
|
8
8
|
declare class PythonProgramEditor extends React.Component<Props> {
|
|
9
|
-
static defaultProps: PerseusPythonProgramWidgetOptions;
|
|
10
9
|
handleChange(changes: Partial<PerseusPythonProgramWidgetOptions>): void;
|
|
11
10
|
render(): React.ReactNode;
|
|
12
11
|
}
|
|
@@ -12,7 +12,6 @@ declare class RadioEditor extends React.Component<RadioEditorProps> {
|
|
|
12
12
|
url: string;
|
|
13
13
|
label: string;
|
|
14
14
|
};
|
|
15
|
-
static defaultProps: PerseusRadioWidgetOptions;
|
|
16
15
|
choiceRefs: Map<string, React.RefObject<RadioOptionSettingsHandle>>;
|
|
17
16
|
componentDidMount(): void;
|
|
18
17
|
handleChange(changes: Partial<PerseusRadioWidgetOptions>): void;
|
|
@@ -4,7 +4,6 @@ import * as React from "react";
|
|
|
4
4
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
5
5
|
type Props = WidgetEditorProps<PerseusTableWidgetOptions>;
|
|
6
6
|
declare class TableEditor extends React.Component<Props> {
|
|
7
|
-
static defaultProps: PerseusTableWidgetOptions;
|
|
8
7
|
numberOfColumns: React.RefObject<components.NumberInput>;
|
|
9
8
|
handleChange: (changes: Partial<PerseusTableWidgetOptions>) => void;
|
|
10
9
|
focus: () => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { type PerseusVideoWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import type { WidgetEditorProps } from "../widget-editor-props";
|
|
3
|
+
import type { PerseusVideoWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
export type VideoEditorProps = WidgetEditorProps<PerseusVideoWidgetOptions>;
|
|
5
5
|
/**
|
|
6
6
|
* This is the main editor for this widget, to specify all the options.
|
|
7
7
|
*/
|
|
8
8
|
declare class VideoEditor extends React.Component<VideoEditorProps> {
|
|
9
|
-
static defaultProps: PerseusVideoWidgetOptions;
|
|
10
9
|
render(): React.ReactNode;
|
|
11
10
|
}
|
|
12
11
|
export default VideoEditor;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "46.1.
|
|
6
|
+
"version": "46.1.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@khanacademy/keypad-context": "6.0.
|
|
28
|
-
"@khanacademy/kmath": "3.1.
|
|
29
|
-
"@khanacademy/math-input": "30.2.
|
|
30
|
-
"@khanacademy/perseus": "95.0.
|
|
31
|
-
"@khanacademy/perseus-core": "42.5.
|
|
32
|
-
"@khanacademy/perseus-linter": "8.2.
|
|
27
|
+
"@khanacademy/keypad-context": "6.0.16",
|
|
28
|
+
"@khanacademy/kmath": "3.1.9",
|
|
29
|
+
"@khanacademy/math-input": "30.2.6",
|
|
30
|
+
"@khanacademy/perseus": "95.0.1",
|
|
31
|
+
"@khanacademy/perseus-core": "42.5.1",
|
|
32
|
+
"@khanacademy/perseus-linter": "8.2.1",
|
|
33
33
|
"@khanacademy/perseus-utils": "3.0.2",
|
|
34
34
|
"axe-core": "^4.11.0",
|
|
35
35
|
"katex": "0.11.1",
|