@khanacademy/perseus 27.2.0 → 28.1.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.
Files changed (38) hide show
  1. package/dist/components/image-loader.d.ts +2 -2
  2. package/dist/components/{info-tip.d.ts → info-tip/index.d.ts} +2 -2
  3. package/dist/components/info-tip/info-tip-base.d.ts +6 -0
  4. package/dist/components.d.ts +0 -1
  5. package/dist/es/index.js +452 -362
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/es/strings.js +6 -2
  8. package/dist/es/strings.js.map +1 -1
  9. package/dist/hints-renderer.d.ts +2 -1
  10. package/dist/index.d.ts +4 -4
  11. package/dist/index.js +438 -348
  12. package/dist/index.js.map +1 -1
  13. package/dist/interactive2/movable-point.d.ts +3 -3
  14. package/dist/perseus-api.d.ts +3 -0
  15. package/dist/perseus-types.d.ts +10 -6
  16. package/dist/renderer.d.ts +2 -1
  17. package/dist/server-item-renderer.d.ts +3 -0
  18. package/dist/strings.d.ts +2 -0
  19. package/dist/strings.js +6 -2
  20. package/dist/strings.js.map +1 -1
  21. package/dist/types.d.ts +7 -7
  22. package/dist/util/{katex-preprocess.d.ts → tex-preprocess.d.ts} +1 -1
  23. package/dist/widgets/expression.d.ts +20 -2
  24. package/dist/widgets/interactive-graphs/graphs/angle.d.ts +7 -0
  25. package/dist/widgets/interactive-graphs/graphs/components/angle-indicators.d.ts +0 -2
  26. package/dist/widgets/interactive-graphs/graphs/components/movable-point.d.ts +3 -2
  27. package/dist/widgets/interactive-graphs/graphs/polygon.d.ts +1 -0
  28. package/dist/widgets/interactive-graphs/graphs/use-draggable.d.ts +7 -1
  29. package/dist/widgets/interactive-graphs/locked-figures/locked-function.d.ts +1 -1
  30. package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
  31. package/dist/widgets/interactive-graphs/math/geometry.d.ts +2 -1
  32. package/dist/widgets/interactive-graphs/reducer/initialize-graph-state.d.ts +8 -1
  33. package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +1 -1
  34. package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +1 -0
  35. package/dist/widgets/label-image.d.ts +6 -0
  36. package/package.json +8 -7
  37. package/dist/components/info-tip/info-tip.d.ts +0 -6
  38. 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?: string;
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.ReactElement | null | undefined;
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 ReactComponentsInfoTip from "./info-tip/info-tip";
8
+ import InfoTipBase from "./info-tip-base";
9
9
  import type { PropsFor } from "@khanacademy/wonder-blocks-core";
10
- type Props = PropsFor<typeof ReactComponentsInfoTip>;
10
+ type Props = PropsFor<typeof InfoTipBase>;
11
11
  type State = {
12
12
  didMount: boolean;
13
13
  };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ };
5
+ declare const InfoTipBase: (props: Props) => React.JSX.Element;
6
+ export default InfoTipBase;
@@ -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";