@khanacademy/perseus-editor 5.2.13 → 5.3.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/color-circle.d.ts +9 -0
- package/dist/components/color-select.d.ts +9 -0
- package/dist/components/locked-point-settings.d.ts +9 -5
- package/dist/components/util.d.ts +4 -2
- package/dist/es/index.js +334 -188
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +332 -180
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph-editor.d.ts +248 -124
- package/package.json +23 -19
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LockedFigureColor } from "@khanacademy/perseus";
|
|
3
|
+
type Props = {
|
|
4
|
+
color: LockedFigureColor;
|
|
5
|
+
filled?: boolean;
|
|
6
|
+
decorative?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const ColorCircle: (props: Props) => JSX.Element;
|
|
9
|
+
export default ColorCircle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LockedFigureColor } from "@khanacademy/perseus";
|
|
3
|
+
type Props = {
|
|
4
|
+
id: string;
|
|
5
|
+
selectedValue: LockedFigureColor;
|
|
6
|
+
onChange: (newValue: string) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const ColorSelect: (props: Props) => JSX.Element;
|
|
9
|
+
export default ColorSelect;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import type { LockedPointType } from "@khanacademy/perseus";
|
|
3
|
+
import type { StyleType } from "@khanacademy/wonder-blocks-core";
|
|
4
|
+
export type Props = LockedPointType & {
|
|
5
|
+
label?: string;
|
|
6
|
+
toggled?: boolean;
|
|
7
|
+
style?: StyleType;
|
|
8
|
+
onRemove?: () => void;
|
|
9
|
+
onToggle?: (newValue: any) => void;
|
|
10
|
+
onChangeProps: (newProps: Partial<LockedPointType>) => void;
|
|
7
11
|
};
|
|
8
12
|
declare const LockedPointSettings: (props: Props) => JSX.Element;
|
|
9
13
|
export default LockedPointSettings;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { LockedFigure, LockedFigureType } from "@khanacademy/perseus";
|
|
1
|
+
import type { LockedFigure, LockedFigureType, LockedPointType, LockedLineType } from "@khanacademy/perseus";
|
|
2
2
|
export declare function focusWithChromeStickyFocusBugWorkaround(element: Element): void;
|
|
3
3
|
export declare function getValidNumberFromString(value: string): number;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function getDefaultFigureForType(type: "point"): LockedPointType;
|
|
5
|
+
export declare function getDefaultFigureForType(type: "line"): LockedLineType;
|
|
6
|
+
export declare function getDefaultFigureForType(type: LockedFigureType): LockedFigure;
|