@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.
- package/CHANGELOG.md +14 -0
- package/package.json +9 -9
- package/src/components/modal-launcher.tsx +3 -1
- package/tsconfig-build.tsbuildinfo +1 -1
- package/dist/components/close-button.js.flow +0 -41
- package/dist/components/focus-trap.js.flow +0 -67
- package/dist/components/modal-backdrop.js.flow +0 -61
- package/dist/components/modal-content.js.flow +0 -36
- package/dist/components/modal-context.js.flow +0 -12
- package/dist/components/modal-dialog.js.flow +0 -72
- package/dist/components/modal-footer.js.flow +0 -32
- package/dist/components/modal-header.js.flow +0 -105
- package/dist/components/modal-launcher.js.flow +0 -27
- package/dist/components/modal-panel.js.flow +0 -97
- package/dist/components/one-pane-dialog.js.flow +0 -148
- package/dist/components/scroll-disabler.js.flow +0 -20
- package/dist/index.js.flow +0 -22
- package/dist/util/constants.js.flow +0 -11
- package/dist/util/find-focusable-nodes.js.flow +0 -9
- package/dist/util/maybe-get-portal-mounted-modal-host-element.js.flow +0 -17
- package/dist/util/types.js.flow +0 -19
package/dist/index.js.flow
DELETED
|
@@ -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,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;
|
package/dist/util/types.js.flow
DELETED
|
@@ -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;
|