@khanacademy/perseus-editor 14.2.0 → 14.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/widget-editor.d.ts +1 -0
- package/dist/editor-page.d.ts +2 -0
- package/dist/editor.d.ts +1 -0
- package/dist/es/index.js +479 -378
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +491 -380
- package/dist/index.js.map +1 -1
- package/dist/item-editor.d.ts +1 -0
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +122 -0
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-figure-settings-actions.d.ts +1 -1
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.d.ts +2 -0
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-figures-section.d.ts +2 -1
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-label-settings.d.ts +22 -2
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-point-settings.d.ts +40 -3
- package/package.json +4 -3
- package/dist/widgets/interactive-graph-editor/locked-figures/defining-point-settings.d.ts +0 -35
|
@@ -1,11 +1,48 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
import type { LockedPointType } from "@khanacademy/perseus";
|
|
4
|
-
export type Props =
|
|
2
|
+
import type { LockedFigureSettingsMovementType } from "./locked-figure-settings-actions";
|
|
3
|
+
import type { APIOptions, LockedPointType } from "@khanacademy/perseus";
|
|
4
|
+
export type Props = LockedPointType & {
|
|
5
|
+
/**
|
|
6
|
+
* Optional flags to determine which features are enabled.
|
|
7
|
+
*/
|
|
8
|
+
flags?: APIOptions["flags"];
|
|
9
|
+
/**
|
|
10
|
+
* Optional label for the point to display in the header summary.
|
|
11
|
+
* Defaults to "Point".
|
|
12
|
+
*/
|
|
13
|
+
headerLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the extra point settings are toggled open.
|
|
16
|
+
*/
|
|
17
|
+
showPoint?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Optional error message to display.
|
|
20
|
+
*/
|
|
21
|
+
error?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Called when the extra settings toggle switch is changed.
|
|
24
|
+
*/
|
|
25
|
+
onTogglePoint?: (newValue: any) => void;
|
|
5
26
|
/**
|
|
6
27
|
* Called when the props (coords, color, etc.) are updated.
|
|
7
28
|
*/
|
|
8
29
|
onChangeProps: (newProps: Partial<LockedPointType>) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this accordion is expanded.
|
|
32
|
+
*/
|
|
33
|
+
expanded?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Called when the accordion is expanded or collapsed.
|
|
36
|
+
*/
|
|
37
|
+
onToggle?: (expanded: boolean) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Called when the point is moved.
|
|
40
|
+
*/
|
|
41
|
+
onMove?: (movement: LockedFigureSettingsMovementType) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Called when the point is removed.
|
|
44
|
+
*/
|
|
45
|
+
onRemove?: () => void;
|
|
9
46
|
};
|
|
10
47
|
declare const LockedPointSettings: (props: Props) => React.JSX.Element;
|
|
11
48
|
export default LockedPointSettings;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "14.
|
|
6
|
+
"version": "14.4.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
"@khanacademy/keypad-context": "^1.0.1",
|
|
39
39
|
"@khanacademy/kmath": "^0.1.13",
|
|
40
40
|
"@khanacademy/math-input": "^21.0.2",
|
|
41
|
-
"@khanacademy/perseus": "^
|
|
42
|
-
"@khanacademy/perseus-core": "1.5.0"
|
|
41
|
+
"@khanacademy/perseus": "^34.1.0",
|
|
42
|
+
"@khanacademy/perseus-core": "1.5.0",
|
|
43
|
+
"mafs": "^0.19.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@khanacademy/wonder-blocks-accordion": "1.3.6",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { LockedPointType } from "@khanacademy/perseus";
|
|
3
|
-
export type Props = LockedPointType & {
|
|
4
|
-
/**
|
|
5
|
-
* Optional label for the point to display in the header summary.
|
|
6
|
-
* Defaults to "Point".
|
|
7
|
-
*/
|
|
8
|
-
label: string;
|
|
9
|
-
/**
|
|
10
|
-
* Whether the extra point settings are toggled open.
|
|
11
|
-
*/
|
|
12
|
-
showPoint?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Optional error message to display.
|
|
15
|
-
*/
|
|
16
|
-
error?: string | null;
|
|
17
|
-
/**
|
|
18
|
-
* Called when the extra settings toggle switch is changed.
|
|
19
|
-
*/
|
|
20
|
-
onTogglePoint?: (newValue: any) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Called when the props (coords, color, etc.) are updated.
|
|
23
|
-
*/
|
|
24
|
-
onChangeProps: (newProps: Partial<LockedPointType>) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Whether this accordion is expanded.
|
|
27
|
-
*/
|
|
28
|
-
expanded?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Called when the accordion is expanded or collapsed.
|
|
31
|
-
*/
|
|
32
|
-
onToggle?: (expanded: boolean) => void;
|
|
33
|
-
};
|
|
34
|
-
declare const DefiningPointSettings: (props: Props) => React.JSX.Element;
|
|
35
|
-
export default DefiningPointSettings;
|