@khanacademy/perseus-editor 12.0.1 → 13.0.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/all-editors.d.ts +2 -1
- package/dist/components/graph-locked-figures/locked-figure-select.d.ts +1 -0
- package/dist/components/graph-locked-figures/locked-figure-settings.d.ts +3 -1
- package/dist/components/graph-locked-figures/locked-figures-section.d.ts +1 -0
- package/dist/components/graph-locked-figures/locked-label-settings.d.ts +17 -0
- package/dist/components/util.d.ts +2 -1
- package/dist/components/widget-editor.d.ts +1 -1
- package/dist/es/index.js +313 -145
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +312 -144
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph-editor.d.ts +186 -248
- package/dist/widgets/phet-simulation-editor.d.ts +19 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PerseusPhetSimulationWidgetOptions } from "@khanacademy/perseus";
|
|
3
|
+
type DefaultProps = {
|
|
4
|
+
url: PerseusPhetSimulationWidgetOptions["url"];
|
|
5
|
+
description: PerseusPhetSimulationWidgetOptions["description"];
|
|
6
|
+
};
|
|
7
|
+
type Props = DefaultProps & {
|
|
8
|
+
onChange: (arg1: {
|
|
9
|
+
url?: Props["url"];
|
|
10
|
+
description?: Props["description"];
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
|
13
|
+
declare class PhetSimulationEditor extends React.Component<Props> {
|
|
14
|
+
static defaultProps: DefaultProps;
|
|
15
|
+
static widgetName: "phet-simulation";
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
serialize(): PerseusPhetSimulationWidgetOptions;
|
|
18
|
+
}
|
|
19
|
+
export default PhetSimulationEditor;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "13.0.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@khanacademy/kas": "^0.3.12",
|
|
38
38
|
"@khanacademy/kmath": "^0.1.13",
|
|
39
39
|
"@khanacademy/math-input": "^21.0.1",
|
|
40
|
-
"@khanacademy/perseus": "^
|
|
40
|
+
"@khanacademy/perseus": "^31.0.1",
|
|
41
41
|
"@khanacademy/perseus-core": "1.5.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|