@khanacademy/perseus-editor 25.0.5 → 25.1.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/editor-page.d.ts +25 -0
- package/dist/editor.d.ts +2 -0
- package/dist/es/index.js +4 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/item-editor.d.ts +8 -0
- package/package.json +6 -6
package/dist/item-editor.d.ts
CHANGED
|
@@ -6,14 +6,22 @@ import type { Issue } from "./issues-panel";
|
|
|
6
6
|
import type { APIOptions, ImageUploader, ChangeHandler, DeviceType } from "@khanacademy/perseus";
|
|
7
7
|
import type { PerseusAnswerArea, PerseusWidgetsMap, PerseusRenderer } from "@khanacademy/perseus-core";
|
|
8
8
|
type Props = {
|
|
9
|
+
/** Additional templates that the host application would like to display
|
|
10
|
+
* within the Perseus Editor.
|
|
11
|
+
*/
|
|
12
|
+
additionalTemplates?: Record<string, string>;
|
|
9
13
|
apiOptions?: APIOptions;
|
|
10
14
|
deviceType?: DeviceType;
|
|
11
15
|
widgetIsOpen?: boolean;
|
|
12
16
|
imageUploader?: ImageUploader;
|
|
13
17
|
question?: PerseusRenderer;
|
|
14
18
|
answerArea?: PerseusAnswerArea | null;
|
|
19
|
+
/** URL of the route to show on initial load of the preview frames. */
|
|
15
20
|
previewURL: string;
|
|
16
21
|
onChange: ChangeHandler;
|
|
22
|
+
/** The content ID of the AssessmentItem being edited. It may not be set
|
|
23
|
+
* for non-content library exercise questions.
|
|
24
|
+
*/
|
|
17
25
|
itemId?: string;
|
|
18
26
|
issues?: Issue[];
|
|
19
27
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "25.0
|
|
6
|
+
"version": "25.1.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"tiny-invariant": "1.3.1",
|
|
37
37
|
"@khanacademy/kas": "2.0.9",
|
|
38
38
|
"@khanacademy/keypad-context": "3.0.21",
|
|
39
|
-
"@khanacademy/kmath": "2.0.21",
|
|
40
39
|
"@khanacademy/perseus-linter": "4.0.8",
|
|
41
40
|
"@khanacademy/math-input": "26.0.10",
|
|
42
|
-
"@khanacademy/
|
|
41
|
+
"@khanacademy/kmath": "2.0.21",
|
|
42
|
+
"@khanacademy/perseus": "65.3.6",
|
|
43
43
|
"@khanacademy/perseus-core": "16.0.0",
|
|
44
44
|
"@khanacademy/perseus-score": "7.1.8",
|
|
45
45
|
"@khanacademy/perseus-utils": "2.0.5",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"react": "18.2.0",
|
|
75
75
|
"react-dom": "18.2.0",
|
|
76
76
|
"underscore": "1.4.4",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"perseus-build-settings": "0.9.0",
|
|
78
|
+
"jsdiff": "1.0.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@khanacademy/mathjax-renderer": "^3.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@khanacademy/wonder-blocks-icon-button": "^10.3.3",
|
|
91
91
|
"@khanacademy/wonder-blocks-labeled-field": "^3.0.17",
|
|
92
92
|
"@khanacademy/wonder-blocks-layout": "^3.1.20",
|
|
93
|
-
"@khanacademy/wonder-blocks-link": "9.1.9",
|
|
93
|
+
"@khanacademy/wonder-blocks-link": "^9.1.9",
|
|
94
94
|
"@khanacademy/wonder-blocks-pill": "^3.1.22",
|
|
95
95
|
"@khanacademy/wonder-blocks-switch": "^3.3.2",
|
|
96
96
|
"@khanacademy/wonder-blocks-timing": "^7.0.2",
|