@khanacademy/perseus-editor 5.2.3 → 5.2.5
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/device-framer.d.ts +6 -10
- package/dist/components/viewport-resizer.d.ts +8 -11
- package/dist/components/widget-editor.d.ts +1 -1
- package/dist/es/index.js +85 -97
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +88 -93
- package/dist/index.js.map +1 -1
- package/dist/item-editor.d.ts +2 -2
- package/dist/widgets/interactive-graph-editor.d.ts +9 -5
- package/package.json +3 -7
package/dist/item-editor.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as React from "react";
|
|
|
2
2
|
import Editor from "./editor";
|
|
3
3
|
import IframeContentRenderer from "./iframe-content-renderer";
|
|
4
4
|
import ItemExtrasEditor from "./item-extras-editor";
|
|
5
|
-
import type { APIOptions, ImageUploader, ChangeHandler } from "@khanacademy/perseus";
|
|
5
|
+
import type { APIOptions, ImageUploader, ChangeHandler, DeviceType } from "@khanacademy/perseus";
|
|
6
6
|
type Props = {
|
|
7
7
|
apiOptions?: APIOptions;
|
|
8
|
-
deviceType?:
|
|
8
|
+
deviceType?: DeviceType;
|
|
9
9
|
gradeMessage?: string;
|
|
10
10
|
imageUploader?: ImageUploader;
|
|
11
11
|
wasAnswered?: boolean;
|
|
@@ -426,7 +426,8 @@ declare const InteractiveGraph: {
|
|
|
426
426
|
setGraphie: (arg1: any) => void;
|
|
427
427
|
handleAddPointsMouseDown: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
428
428
|
resetGraphie: () => void;
|
|
429
|
-
setupGraphie: () => void;
|
|
429
|
+
setupGraphie: () => void;
|
|
430
|
+
/**
|
|
430
431
|
* The range of the graph in the x and y directions.
|
|
431
432
|
*/
|
|
432
433
|
showHairlines: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
@@ -529,7 +530,8 @@ declare const InteractiveGraph: {
|
|
|
529
530
|
addSinusoidControls: () => void;
|
|
530
531
|
updateSinusoid: () => void;
|
|
531
532
|
removeSinusoidControls: () => void;
|
|
532
|
-
addCircleControls: () => void;
|
|
533
|
+
addCircleControls: () => void;
|
|
534
|
+
/**
|
|
533
535
|
* Whether to show the protractor on the graph.
|
|
534
536
|
*/
|
|
535
537
|
removeCircleControls: () => void;
|
|
@@ -2053,7 +2055,8 @@ declare const InteractiveGraph: {
|
|
|
2053
2055
|
setGraphie: (arg1: any) => void;
|
|
2054
2056
|
handleAddPointsMouseDown: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
2055
2057
|
resetGraphie: () => void;
|
|
2056
|
-
setupGraphie: () => void;
|
|
2058
|
+
setupGraphie: () => void;
|
|
2059
|
+
/**
|
|
2057
2060
|
* The range of the graph in the x and y directions.
|
|
2058
2061
|
*/
|
|
2059
2062
|
showHairlines: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
@@ -2156,7 +2159,8 @@ declare const InteractiveGraph: {
|
|
|
2156
2159
|
addSinusoidControls: () => void;
|
|
2157
2160
|
updateSinusoid: () => void;
|
|
2158
2161
|
removeSinusoidControls: () => void;
|
|
2159
|
-
addCircleControls: () => void;
|
|
2162
|
+
addCircleControls: () => void;
|
|
2163
|
+
/**
|
|
2160
2164
|
* Whether to show the protractor on the graph.
|
|
2161
2165
|
*/
|
|
2162
2166
|
removeCircleControls: () => void;
|
|
@@ -5112,7 +5116,7 @@ declare const InteractiveGraph: {
|
|
|
5112
5116
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
5113
5117
|
containerSizeClass: SizingUtils.SizeClass;
|
|
5114
5118
|
}): string;
|
|
5115
|
-
validate(
|
|
5119
|
+
validate(userInput: import("@khanacademy/perseus").PerseusGraphType, rubric: PerseusInteractiveGraphWidgetOptions, component: any): import("@khanacademy/perseus").PerseusScore;
|
|
5116
5120
|
getUserInputFromProps(props: PerseusInteractiveGraphWidgetOptions & {
|
|
5117
5121
|
widgetId: string;
|
|
5118
5122
|
alignment: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "5.2.
|
|
6
|
+
"version": "5.2.5",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -27,21 +27,19 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@khanacademy/kas": "^0.3.9",
|
|
29
29
|
"@khanacademy/kmath": "^0.1.12",
|
|
30
|
-
"@khanacademy/math-input": "^17.4.
|
|
31
|
-
"@khanacademy/perseus": "^
|
|
30
|
+
"@khanacademy/math-input": "^17.4.1",
|
|
31
|
+
"@khanacademy/perseus": "^21.0.0",
|
|
32
32
|
"@khanacademy/perseus-core": "1.4.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@khanacademy/wonder-blocks-button": "^6.2.8",
|
|
36
36
|
"@khanacademy/wonder-blocks-clickable": "^4.1.0",
|
|
37
|
-
"@khanacademy/wonder-blocks-color": "^3.0.0",
|
|
38
37
|
"@khanacademy/wonder-blocks-core": "^6.3.1",
|
|
39
38
|
"@khanacademy/wonder-blocks-dropdown": "^5.1.8",
|
|
40
39
|
"@khanacademy/wonder-blocks-form": "^4.4.5",
|
|
41
40
|
"@khanacademy/wonder-blocks-i18n": "^2.0.2",
|
|
42
41
|
"@khanacademy/wonder-blocks-icon": "4.0.1",
|
|
43
42
|
"@khanacademy/wonder-blocks-icon-button": "^5.1.13",
|
|
44
|
-
"@khanacademy/wonder-blocks-spacing": "^4.0.1",
|
|
45
43
|
"@khanacademy/wonder-blocks-tokens": "^1.1.0",
|
|
46
44
|
"@khanacademy/wonder-blocks-typography": "^2.1.10",
|
|
47
45
|
"@khanacademy/wonder-stuff-core": "^1.5.1",
|
|
@@ -60,14 +58,12 @@
|
|
|
60
58
|
"peerDependencies": {
|
|
61
59
|
"@khanacademy/wonder-blocks-button": "^6.2.8",
|
|
62
60
|
"@khanacademy/wonder-blocks-clickable": "^4.1.0",
|
|
63
|
-
"@khanacademy/wonder-blocks-color": "^3.0.0",
|
|
64
61
|
"@khanacademy/wonder-blocks-core": "^6.3.1",
|
|
65
62
|
"@khanacademy/wonder-blocks-dropdown": "^5.1.8",
|
|
66
63
|
"@khanacademy/wonder-blocks-form": "^4.4.5",
|
|
67
64
|
"@khanacademy/wonder-blocks-i18n": "^2.0.2",
|
|
68
65
|
"@khanacademy/wonder-blocks-icon": "4.0.1",
|
|
69
66
|
"@khanacademy/wonder-blocks-icon-button": "^5.1.13",
|
|
70
|
-
"@khanacademy/wonder-blocks-spacing": "^4.0.1",
|
|
71
67
|
"@khanacademy/wonder-blocks-tokens": "^1.1.0",
|
|
72
68
|
"@khanacademy/wonder-blocks-typography": "^2.1.10",
|
|
73
69
|
"@khanacademy/wonder-stuff-core": "^1.5.1",
|