@khanacademy/perseus-editor 35.1.1 → 35.2.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/image-preview.d.ts +6 -1
- package/dist/es/index.css +2 -2
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +32 -28
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +31 -27
- package/dist/index.js.map +1 -1
- package/dist/styles/icon-paths.d.ts +0 -5
- package/dist/widgets/graded-group-editor.d.ts +1 -1
- package/dist/widgets/image-editor/components/dark-mode-toggle.d.ts +11 -0
- package/package.json +8 -8
|
@@ -23,11 +23,6 @@ export declare const iconMobilePhone: {
|
|
|
23
23
|
readonly width: 60.013;
|
|
24
24
|
readonly height: 100;
|
|
25
25
|
};
|
|
26
|
-
export declare const iconPlus: {
|
|
27
|
-
readonly path: "M99.758 43.09l0 13.578q0 2.852-1.984 4.836t-4.836 1.984l-29.45 0l0 29.45q0 2.852-1.984 4.836t-4.836 1.984l-13.578 0q-2.852 0-4.836-1.984t-1.984-4.836l0-29.45l-29.45 0q-2.852 0-4.836-1.984t-1.984-4.836l0-13.578q0-2.852 1.984-4.836t4.836-1.984l29.45 0l0-29.45q0-2.852 1.984-4.836t4.836-1.984l13.578 0q2.852 0 4.836 1.984t1.984 4.836l0 29.45l29.45 0q2.852 0 4.836 1.984t1.984 4.836z";
|
|
28
|
-
readonly width: 100;
|
|
29
|
-
readonly height: 100;
|
|
30
|
-
};
|
|
31
26
|
export declare const iconTablet: {
|
|
32
27
|
readonly path: "M45.322 90.706q0-1.86-1.302-3.224-1.364-1.364-3.224-1.364t-3.224 1.364-1.302 3.224q0 1.86 1.364 3.224 1.302 1.364 3.162 1.302 1.86.062 3.224-1.302t1.302-3.224zm27.218-11.346l0-68.014q0-.93-.682-1.612t-1.55-.682l-58.962 0q-.93 0-1.612.682t-.682 1.612l0 68.014q0 .93.682 1.612t1.612.62l58.962 0q.992-.062 1.612-.682t.62-1.55zm9.114-68.014l0 77.066q0 4.65-3.348 7.998t-7.998 3.348l-58.962 0q-4.65 0-7.998-3.348t-3.348-7.998l0-77.066q0-4.65 3.348-7.998t7.998-3.348l58.962 0q4.65 0 7.998 3.348t3.348 7.998z";
|
|
33
28
|
readonly width: 81.852;
|
|
@@ -17,7 +17,7 @@ declare class GradedGroupEditor extends React.Component<Props> {
|
|
|
17
17
|
hintEditor: React.RefObject<Editor>;
|
|
18
18
|
change: (arg1: any, arg2: any, arg3: any) => any;
|
|
19
19
|
handleAddHint: () => void;
|
|
20
|
-
handleRemoveHint: (
|
|
20
|
+
handleRemoveHint: () => void;
|
|
21
21
|
getSaveWarnings: () => any;
|
|
22
22
|
serialize: () => {
|
|
23
23
|
title: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Props as ImageEditorProps } from "../image-editor";
|
|
3
|
+
import type { PerseusImageBackground } from "@khanacademy/perseus-core";
|
|
4
|
+
interface Props {
|
|
5
|
+
backgroundImage: PerseusImageBackground;
|
|
6
|
+
editingDisabled?: boolean;
|
|
7
|
+
onShowToggle: (theme?: string) => void;
|
|
8
|
+
onSuppressToggle: ImageEditorProps["onChange"];
|
|
9
|
+
}
|
|
10
|
+
export default function DarkModeToggle({ backgroundImage, onShowToggle, onSuppressToggle, editingDisabled, }: Props): React.JSX.Element;
|
|
11
|
+
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "35.
|
|
6
|
+
"version": "35.2.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"mafs": "^0.19.0",
|
|
37
37
|
"tiny-invariant": "1.3.1",
|
|
38
38
|
"@khanacademy/kas": "2.2.3",
|
|
39
|
-
"@khanacademy/keypad-context": "3.2.
|
|
40
|
-
"@khanacademy/kmath": "2.4.
|
|
41
|
-
"@khanacademy/math-input": "26.6.
|
|
42
|
-
"@khanacademy/perseus": "82.
|
|
43
|
-
"@khanacademy/perseus-core": "33.0.
|
|
44
|
-
"@khanacademy/perseus-
|
|
45
|
-
"@khanacademy/perseus-
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.77",
|
|
40
|
+
"@khanacademy/kmath": "2.4.36",
|
|
41
|
+
"@khanacademy/math-input": "26.6.6",
|
|
42
|
+
"@khanacademy/perseus": "82.1.0",
|
|
43
|
+
"@khanacademy/perseus-core": "33.0.1",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.1.17",
|
|
45
|
+
"@khanacademy/perseus-utils": "2.1.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@khanacademy/mathjax-renderer": "3.0.0",
|