@khanacademy/perseus 27.0.0 → 27.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.
|
@@ -25,6 +25,9 @@ declare class Explanation extends React.Component<Props, State> {
|
|
|
25
25
|
static defaultProps: DefaultProps;
|
|
26
26
|
static validate(userInput: UserInput, rubric: Rubric): PerseusScore;
|
|
27
27
|
state: State;
|
|
28
|
+
_mounted: boolean;
|
|
29
|
+
componentDidMount(): void;
|
|
30
|
+
componentWillUnmount(): void;
|
|
28
31
|
change: (arg1: any, arg2: any, arg3: any) => any;
|
|
29
32
|
_onClick: () => void;
|
|
30
33
|
render(): React.ReactNode;
|
|
@@ -28,9 +28,12 @@ export default class Marker extends React.Component<Props> {
|
|
|
28
28
|
}>;
|
|
29
29
|
context: React.ContextType<typeof PerseusI18nContext>;
|
|
30
30
|
_icon: HTMLElement | null | undefined;
|
|
31
|
+
_mounted: boolean;
|
|
31
32
|
static defaultProps: {
|
|
32
33
|
selected: ReadonlyArray<any>;
|
|
33
34
|
};
|
|
35
|
+
componentDidMount(): void;
|
|
36
|
+
componentWillUnmount(): void;
|
|
34
37
|
renderIcon(): React.JSX.Element;
|
|
35
38
|
render(): React.ReactNode;
|
|
36
39
|
}
|
|
@@ -59,6 +59,7 @@ export declare class LabelImage extends React.Component<LabelImageProps, LabelIm
|
|
|
59
59
|
}>;
|
|
60
60
|
context: React.ContextType<typeof PerseusI18nContext>;
|
|
61
61
|
_markers: Array<Marker | null | undefined>;
|
|
62
|
+
_mounted: boolean;
|
|
62
63
|
static gradeMarker(marker: InteractiveMarkerType): InteractiveMarkerScore;
|
|
63
64
|
static validate(state: MarkersState, rubric?: LabelImageProps): PerseusScore;
|
|
64
65
|
/**
|
|
@@ -79,6 +80,8 @@ export declare class LabelImage extends React.Component<LabelImageProps, LabelIm
|
|
|
79
80
|
*/
|
|
80
81
|
static navigateToMarkerIndex(navigateDirection: Direction, markers: ReadonlyArray<InteractiveMarkerType>, thisIndex: number): number;
|
|
81
82
|
constructor(props: LabelImageProps);
|
|
83
|
+
componentDidMount(): void;
|
|
84
|
+
componentWillUnmount(): void;
|
|
82
85
|
simpleValidate(rubric: LabelImageProps): PerseusScore;
|
|
83
86
|
getUserInput(): MarkersState;
|
|
84
87
|
showRationalesForCurrentlySelectedChoices(rubric: LabelImageProps): void;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "27.0.
|
|
6
|
+
"version": "27.0.2",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@khanacademy/kas": "^0.3.
|
|
42
|
+
"@khanacademy/kas": "^0.3.11",
|
|
43
43
|
"@khanacademy/kmath": "^0.1.13",
|
|
44
|
-
"@khanacademy/math-input": "^20.0.
|
|
44
|
+
"@khanacademy/math-input": "^20.0.3",
|
|
45
45
|
"@khanacademy/perseus-core": "1.5.0",
|
|
46
46
|
"@khanacademy/perseus-linter": "^1.0.0",
|
|
47
47
|
"@khanacademy/pure-markdown": "^0.3.7",
|