@khanacademy/wonder-blocks-modal 4.0.18 → 4.0.19

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,22 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- import ModalDialog from "./components/modal-dialog";
8
- import ModalFooter from "./components/modal-footer";
9
- import ModalHeader from "./components/modal-header";
10
- import ModalLauncher from "./components/modal-launcher";
11
- import ModalPanel from "./components/modal-panel";
12
- import OnePaneDialog from "./components/one-pane-dialog";
13
- import maybeGetPortalMountedModalHostElement from "./util/maybe-get-portal-mounted-modal-host-element";
14
- declare export {
15
- ModalHeader,
16
- ModalFooter,
17
- ModalDialog,
18
- ModalPanel,
19
- ModalLauncher,
20
- OnePaneDialog,
21
- maybeGetPortalMountedModalHostElement,
22
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- /**
8
- * The attribute used to identify a modal launcher portal.
9
- */
10
- declare var ModalLauncherPortalAttributeName: "data-modal-launcher-portal";
11
- declare export { ModalLauncherPortalAttributeName };
@@ -1,9 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- declare export function findFocusableNodes(
8
- root: HTMLElement | Document
9
- ): Array<HTMLElement>;
@@ -1,17 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- /**
8
- * From a given element, finds the next modal host that has been mounted in
9
- * a modal portal.
10
- * @param {?(Element | Text)} element The element whose ancestors are to be
11
- * walked.
12
- * @returns {?Element} The next portal-mounted modal host element.
13
- * TODO(kevinb): look into getting rid of this
14
- */
15
- declare export default function maybeGetPortalMountedModalHostElement(
16
- element?: Element | Text | null
17
- ): Element | null | void;
@@ -1,19 +0,0 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
7
- import * as React from "react";
8
-
9
- /**
10
- * A `ModalElement` is a React element that should either itself be a modal
11
- * (OnePaneDialog), or wrap a modal.
12
- *
13
- * If it's a wrapper component, then its props must be passed along to the child
14
- * modal, because we clone this element and add new props in order to capture
15
- * `onClose` events.
16
- *
17
- * NOTE(kevinb): we include `| null` here because that's what React.FC<> returns.
18
- */
19
- export type ModalElement = React.Element<any> | null;