@khanacademy/perseus-editor 11.3.0 → 11.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/sortable.d.ts +6 -0
- package/dist/es/index.css +0 -79
- package/dist/es/index.js +335 -270
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -79
- package/dist/index.js +335 -267
- package/dist/index.js.map +1 -1
- package/dist/widgets/expression-editor.d.ts +6 -2
- package/package.json +12 -3
|
@@ -11,9 +11,13 @@ type DefaultProps = {
|
|
|
11
11
|
buttonSets: Props["buttonSets"];
|
|
12
12
|
functions: Props["functions"];
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type State = {
|
|
15
|
+
functionsInternal: string;
|
|
16
|
+
};
|
|
17
|
+
declare class ExpressionEditor extends React.Component<Props, State> {
|
|
15
18
|
static widgetName: "expression";
|
|
16
19
|
static defaultProps: DefaultProps;
|
|
20
|
+
constructor(props: any);
|
|
17
21
|
change(...args: any[]): any;
|
|
18
22
|
render(): React.ReactNode;
|
|
19
23
|
serialize: () => any;
|
|
@@ -26,6 +30,6 @@ declare class ExpressionEditor extends React.Component<Props> {
|
|
|
26
30
|
handleButtonSet: (changingName: string) => void;
|
|
27
31
|
handleToggleDiv: () => void;
|
|
28
32
|
handleTexInsert: (arg1: string) => void;
|
|
29
|
-
handleFunctions: (
|
|
33
|
+
handleFunctions: (value: string) => void;
|
|
30
34
|
}
|
|
31
35
|
export default ExpressionEditor;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "11.
|
|
6
|
+
"version": "11.4.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -18,6 +18,15 @@
|
|
|
18
18
|
"module": "dist/es/index.js",
|
|
19
19
|
"main": "dist/index.js",
|
|
20
20
|
"source": "src/index.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/es/index.js",
|
|
24
|
+
"require": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"source": "./src/index.ts"
|
|
27
|
+
},
|
|
28
|
+
"./styles.css": "./dist/index.css"
|
|
29
|
+
},
|
|
21
30
|
"files": [
|
|
22
31
|
"dist"
|
|
23
32
|
],
|
|
@@ -27,8 +36,8 @@
|
|
|
27
36
|
"dependencies": {
|
|
28
37
|
"@khanacademy/kas": "^0.3.11",
|
|
29
38
|
"@khanacademy/kmath": "^0.1.13",
|
|
30
|
-
"@khanacademy/math-input": "^20.1.
|
|
31
|
-
"@khanacademy/perseus": "^28.
|
|
39
|
+
"@khanacademy/math-input": "^20.1.2",
|
|
40
|
+
"@khanacademy/perseus": "^28.1.0",
|
|
32
41
|
"@khanacademy/perseus-core": "1.5.0"
|
|
33
42
|
},
|
|
34
43
|
"devDependencies": {
|