@khanacademy/perseus-editor 17.8.0 → 17.9.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/es/index.js +85 -67
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +77 -56
- package/dist/index.js.map +1 -1
- package/dist/widgets/expression-editor.d.ts +1 -1
- package/dist/widgets/radio/editor.d.ts +17 -16
- package/package.json +8 -8
|
@@ -16,7 +16,7 @@ declare class ExpressionEditor extends React.Component<Props, State> {
|
|
|
16
16
|
static defaultProps: ExpressionDefaultWidgetOptions;
|
|
17
17
|
constructor(props: Props);
|
|
18
18
|
change: ChangeFn;
|
|
19
|
-
serialize
|
|
19
|
+
serialize(): PerseusExpressionWidgetOptions;
|
|
20
20
|
getSaveWarnings: () => any;
|
|
21
21
|
_newEmptyAnswerForm: () => any;
|
|
22
22
|
newAnswer: () => void;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Changeable } from "@khanacademy/perseus";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
import type { APIOptions } from "@khanacademy/perseus";
|
|
4
|
+
import type { PerseusRadioWidgetOptions, PerseusRadioChoice, RadioDefaultWidgetOptions } from "@khanacademy/perseus-core";
|
|
5
|
+
type RadioEditorProps = {
|
|
6
|
+
apiOptions: APIOptions;
|
|
7
|
+
countChoices: boolean;
|
|
8
|
+
choices: ReadonlyArray<PerseusRadioChoice>;
|
|
9
|
+
displayCount: number;
|
|
10
|
+
randomize: boolean;
|
|
11
|
+
hasNoneOfTheAbove: boolean;
|
|
12
|
+
multipleSelect: boolean;
|
|
13
|
+
deselectEnabled: boolean;
|
|
14
|
+
static: boolean;
|
|
15
|
+
} & Changeable.ChangeableProps;
|
|
16
|
+
declare class RadioEditor extends React.Component<RadioEditorProps> {
|
|
16
17
|
static widgetName: "radio";
|
|
17
18
|
static defaultProps: RadioDefaultWidgetOptions;
|
|
18
19
|
change: (...args: ReadonlyArray<unknown>) => any;
|
|
@@ -20,13 +21,13 @@ declare class RadioEditor extends React.Component<any> {
|
|
|
20
21
|
onCountChoicesChange: (arg1: any) => void;
|
|
21
22
|
onChange: (arg1: any) => void;
|
|
22
23
|
onContentChange: (arg1: any, arg2: any) => void;
|
|
23
|
-
onClueChange
|
|
24
|
+
onClueChange(choiceIndex: number, newClue: string): void;
|
|
24
25
|
onDelete: (arg1: number) => void;
|
|
25
26
|
addChoice: (arg1: boolean, arg2: any) => void;
|
|
26
27
|
setDisplayCount: (arg1: number) => void;
|
|
27
28
|
focus: () => boolean;
|
|
28
29
|
getSaveWarnings: () => ReadonlyArray<string>;
|
|
29
|
-
serialize
|
|
30
|
+
serialize(): PerseusRadioWidgetOptions;
|
|
30
31
|
render(): React.ReactNode;
|
|
31
32
|
}
|
|
32
33
|
export default RadioEditor;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "17.
|
|
6
|
+
"version": "17.9.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"mafs": "^0.19.0",
|
|
35
35
|
"@khanacademy/kas": "0.5.0",
|
|
36
|
-
"@khanacademy/keypad-context": "1.1.
|
|
37
|
-
"@khanacademy/kmath": "0.4.
|
|
38
|
-
"@khanacademy/perseus-linter": "1.3.
|
|
39
|
-
"@khanacademy/math-input": "
|
|
40
|
-
"@khanacademy/perseus": "
|
|
41
|
-
"@khanacademy/perseus-core": "
|
|
42
|
-
"@khanacademy/perseus-score": "2.3.
|
|
36
|
+
"@khanacademy/keypad-context": "1.1.1",
|
|
37
|
+
"@khanacademy/kmath": "0.4.1",
|
|
38
|
+
"@khanacademy/perseus-linter": "1.3.1",
|
|
39
|
+
"@khanacademy/math-input": "23.0.0",
|
|
40
|
+
"@khanacademy/perseus": "56.0.0",
|
|
41
|
+
"@khanacademy/perseus-core": "5.0.0",
|
|
42
|
+
"@khanacademy/perseus-score": "2.3.1",
|
|
43
43
|
"@khanacademy/pure-markdown": "0.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|