@khanacademy/perseus 27.1.0 → 28.0.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/{info-tip.d.ts → info-tip/index.d.ts} +2 -2
- package/dist/components/info-tip/info-tip-base.d.ts +6 -0
- package/dist/components.d.ts +0 -1
- package/dist/es/index.js +445 -341
- package/dist/es/index.js.map +1 -1
- package/dist/es/strings.js +6 -2
- package/dist/es/strings.js.map +1 -1
- package/dist/hints-renderer.d.ts +2 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +433 -327
- package/dist/index.js.map +1 -1
- package/dist/interactive2/movable-point.d.ts +3 -3
- package/dist/perseus-api.d.ts +5 -2
- package/dist/perseus-types.d.ts +10 -6
- package/dist/renderer.d.ts +2 -1
- package/dist/server-item-renderer.d.ts +5 -2
- package/dist/strings.d.ts +2 -0
- package/dist/strings.js +6 -2
- package/dist/strings.js.map +1 -1
- package/dist/types.d.ts +8 -8
- package/dist/util/{katex-preprocess.d.ts → tex-preprocess.d.ts} +1 -1
- package/dist/widgets/expression.d.ts +32 -14
- package/dist/widgets/interactive-graphs/graphs/angle.d.ts +7 -0
- package/dist/widgets/interactive-graphs/graphs/components/angle-indicators.d.ts +0 -2
- package/dist/widgets/interactive-graphs/graphs/components/movable-point.d.ts +3 -2
- package/dist/widgets/interactive-graphs/graphs/polygon.d.ts +1 -0
- package/dist/widgets/interactive-graphs/graphs/use-draggable.d.ts +7 -1
- package/dist/widgets/interactive-graphs/locked-figures/locked-function.d.ts +1 -1
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
- package/dist/widgets/interactive-graphs/math/geometry.d.ts +2 -1
- package/dist/widgets/interactive-graphs/reducer/initialize-graph-state.d.ts +10 -1
- package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +1 -1
- package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +1 -0
- package/dist/widgets/label-image.d.ts +10 -4
- package/package.json +6 -6
- package/dist/components/info-tip/info-tip.d.ts +0 -6
- package/dist/components/prop-check-box.d.ts +0 -4
|
@@ -19,7 +19,7 @@ export type ImageProps = {
|
|
|
19
19
|
alt: string;
|
|
20
20
|
title?: string;
|
|
21
21
|
["aria-hidden"]?: boolean;
|
|
22
|
-
tabIndex?:
|
|
22
|
+
tabIndex?: number;
|
|
23
23
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
24
24
|
style?: Dimensions;
|
|
25
25
|
};
|
|
@@ -29,7 +29,7 @@ type Props = {
|
|
|
29
29
|
onError?: (event: Event) => void;
|
|
30
30
|
onLoad?: (event: Event) => void;
|
|
31
31
|
onUpdate: (status: (typeof Status)[keyof typeof Status]) => void;
|
|
32
|
-
preloader: () => React.
|
|
32
|
+
preloader: (() => React.ReactNode) | null | undefined;
|
|
33
33
|
src: string;
|
|
34
34
|
};
|
|
35
35
|
type State = {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* two sets of generated classnames will not match.)
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
|
-
import
|
|
8
|
+
import InfoTipBase from "./info-tip-base";
|
|
9
9
|
import type { PropsFor } from "@khanacademy/wonder-blocks-core";
|
|
10
|
-
type Props = PropsFor<typeof
|
|
10
|
+
type Props = PropsFor<typeof InfoTipBase>;
|
|
11
11
|
type State = {
|
|
12
12
|
didMount: boolean;
|
|
13
13
|
};
|
package/dist/components.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { default as InlineIcon } from "./components/inline-icon";
|
|
|
8
8
|
export { default as MathInput } from "./components/math-input";
|
|
9
9
|
export { default as MultiButtonGroup } from "./components/multi-button-group";
|
|
10
10
|
export { default as NumberInput } from "./components/number-input";
|
|
11
|
-
export { default as PropCheckBox } from "./components/prop-check-box";
|
|
12
11
|
export { default as RangeInput } from "./components/range-input";
|
|
13
12
|
export { default as SvgImage } from "./components/svg-image";
|
|
14
13
|
export { default as TextInput } from "./components/text-input";
|