@khanacademy/perseus-editor 4.3.4 → 4.4.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/components/widget-editor.d.ts +1 -1
- package/dist/es/index.js +10 -14
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +6 -17
- package/dist/index.js.map +1 -1
- package/dist/widgets/example-graphie-widget.d.ts +12 -38
- package/dist/widgets/example-widget.d.ts +19 -8
- package/dist/widgets/interactive-graph-editor.d.ts +368 -644
- package/dist/widgets/simple-markdown-tester.d.ts +9 -7
- package/package.json +3 -3
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Changeable } from "@khanacademy/perseus";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
type
|
|
3
|
+
import type { PerseusSimpleMarkdownTesterWidgetOptions } from "@khanacademy/perseus";
|
|
4
|
+
type Props = Changeable.ChangeableProps & {
|
|
5
|
+
value: PerseusSimpleMarkdownTesterWidgetOptions["value"];
|
|
6
|
+
};
|
|
7
|
+
type DefaultProps = {
|
|
8
|
+
value: Props["value"];
|
|
9
|
+
};
|
|
4
10
|
declare class SimpleMarkdownTester extends React.Component<Props> {
|
|
5
|
-
static
|
|
6
|
-
value: PropTypes.Requireable<string>;
|
|
7
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
-
};
|
|
9
|
-
static defaultProps: Props;
|
|
11
|
+
static defaultProps: DefaultProps;
|
|
10
12
|
/**
|
|
11
13
|
* This is the widget's grading function.
|
|
12
14
|
*
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.4.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@khanacademy/kas": "^0.3.8",
|
|
29
29
|
"@khanacademy/kmath": "^0.1.12",
|
|
30
|
-
"@khanacademy/math-input": "^17.2.
|
|
31
|
-
"@khanacademy/perseus": "^19.
|
|
30
|
+
"@khanacademy/math-input": "^17.2.3",
|
|
31
|
+
"@khanacademy/perseus": "^19.8.0",
|
|
32
32
|
"@khanacademy/perseus-core": "1.4.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|