@khanacademy/perseus 71.4.0 → 71.4.2

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.
@@ -1,31 +0,0 @@
1
- /**
2
- * This is a wrapper component for the visibility-observer.js utility which
3
- * abstracts the native or polyfilled IntersectionObserver utility. The
4
- * primary purpose of this comonent is to tell you whether the children of
5
- * the component are visibile within a scrollable ancestor. It will notify
6
- * you via an onChange event when the visibility changes, and whether the
7
- * children are below or above the scroll.
8
- */
9
- import * as React from "react";
10
- import type { VisibilityObserver as IVisibilityObserver } from "./create-visibility-observer";
11
- export type ScrollVisibility = "hidden-above" | "hidden-below" | "visible" | "unknown";
12
- type Props = {
13
- children: React.ReactNode;
14
- rootMargin?: string;
15
- scrollParentIsNotBody?: boolean;
16
- onChange: (visibility: ScrollVisibility) => void;
17
- };
18
- declare class VisibilityObserver extends React.Component<Props> {
19
- _observer: IVisibilityObserver;
20
- _node: HTMLElement;
21
- static defaultProps: {
22
- onChange: () => void;
23
- };
24
- componentDidMount(): void;
25
- componentWillUnmount(): void;
26
- handleVisibilityChange: (isVisible: boolean, rootBounds: DOMRectReadOnly) => void;
27
- registerVisibilityObserver(): void;
28
- unregisterVisibilityObserver(): void;
29
- render(): React.ReactNode;
30
- }
31
- export default VisibilityObserver;
@@ -1,9 +0,0 @@
1
- export declare const CHOICE_ICON_SIZE = 24;
2
- declare const styles: {
3
- readonly iconWrapper: {
4
- readonly display: "inline-block";
5
- readonly position: "relative";
6
- readonly background: "linear-gradient(to right, white 10%, transparent)";
7
- };
8
- };
9
- export default styles;
@@ -1,22 +0,0 @@
1
- import * as React from "react";
2
- interface ChoiceIconProps {
3
- pos: number;
4
- checked: boolean;
5
- focused: boolean;
6
- hovered: boolean;
7
- pressed: boolean;
8
- correct: boolean;
9
- showCorrectness: boolean;
10
- multipleSelect: boolean;
11
- reviewMode: boolean;
12
- previouslyAnswered: boolean;
13
- }
14
- /**
15
- * This component is a duplicate of the ChoiceIcon component in choice-icon.tsx
16
- * for the Radio Revitalization Project. (LEMS-2933)
17
- * This component will eventually replace choice-icon.tsx when the feature flag is no longer needed.
18
- *
19
- * TODO(LEMS-2994): Clean up this file.
20
- */
21
- declare const ChoiceIcon: (props: ChoiceIconProps) => React.ReactElement;
22
- export default ChoiceIcon;