@khanacademy/perseus 19.1.8 → 19.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-loader.d.ts +2 -2
- package/dist/components/math-input.d.ts +1 -1
- package/dist/es/index.js +620 -617
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +605 -616
- package/dist/index.js.map +1 -1
- package/dist/interactive2/arrowhead.d.ts +9 -0
- package/dist/interactive2/get-clip-point.d.ts +2 -0
- package/dist/interactive2/wrapped-drawing.d.ts +29 -0
- package/dist/interactive2/wrapped-ellipse.d.ts +8 -1
- package/dist/interactive2/wrapped-line.d.ts +10 -1
- package/dist/interactive2/wrapped-path.d.ts +7 -1
- package/dist/logging/log.d.ts +1 -1
- package/dist/perseus-types.d.ts +9 -4
- package/dist/strings.js +4 -0
- package/dist/util/graphie.d.ts +23 -7
- package/dist/util/sizing-utils.d.ts +1 -1
- package/dist/widgets/expression.d.ts +2 -2
- package/dist/widgets/graded-group.d.ts +1 -1
- package/dist/widgets/python-program.d.ts +33 -0
- package/package.json +4 -4
- package/dist/interactive2/wrapped-defaults.d.ts +0 -5
|
@@ -28,12 +28,12 @@ type Props = {
|
|
|
28
28
|
imgProps: ImageProps;
|
|
29
29
|
onError?: (event: Event) => void;
|
|
30
30
|
onLoad?: (event: Event) => void;
|
|
31
|
-
onUpdate: (status: typeof Status[keyof typeof Status]) => void;
|
|
31
|
+
onUpdate: (status: (typeof Status)[keyof typeof Status]) => void;
|
|
32
32
|
preloader: () => React.ReactElement | null | undefined;
|
|
33
33
|
src: string;
|
|
34
34
|
};
|
|
35
35
|
type State = {
|
|
36
|
-
status: typeof Status[keyof typeof Status];
|
|
36
|
+
status: (typeof Status)[keyof typeof Status];
|
|
37
37
|
};
|
|
38
38
|
declare class ImageLoader extends React.Component<Props, State> {
|
|
39
39
|
img: HTMLImageElement | null | undefined;
|
|
@@ -48,7 +48,7 @@ type DefaultProps = {
|
|
|
48
48
|
type State = {
|
|
49
49
|
focused: boolean;
|
|
50
50
|
keypadOpen: boolean;
|
|
51
|
-
cursorContext: typeof CursorContext[keyof typeof CursorContext];
|
|
51
|
+
cursorContext: (typeof CursorContext)[keyof typeof CursorContext];
|
|
52
52
|
openedWithEventType?: string;
|
|
53
53
|
};
|
|
54
54
|
declare class MathInput extends React.Component<Props, State> {
|