@nypl/web-reader 3.1.0 → 3.2.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,3 +1,4 @@
1
1
  import React from 'react';
2
+ import { WebpubManifest } from '../WebpubManifestTypes/WebpubManifest';
2
3
  import { HtmlAction } from './types';
3
- export default function useIframeLinkClick(dispatch: React.Dispatch<HtmlAction>): void;
4
+ export default function useIframeLinkClick(baseUrl: string | undefined, manifest: WebpubManifest | undefined, dispatch: React.Dispatch<HtmlAction>): void;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { Flex } from '@chakra-ui/react';
3
+ import { Navigator, ReaderState } from '../types';
4
+ declare type FooterProps = {
5
+ state: ReaderState | null;
6
+ navigator: Navigator | null;
7
+ } & React.ComponentProps<typeof Flex>;
8
+ declare const Footer: React.FC<FooterProps>;
9
+ export default Footer;
@@ -1,4 +1,9 @@
1
1
  /// <reference types="react" />
2
- export default function LoadingSkeleton({ height, }: {
2
+ import { HtmlState } from '../HtmlReader/types';
3
+ import { ReaderState } from '../types';
4
+ declare type AnyState = HtmlState | ReaderState | undefined | null;
5
+ export default function LoadingSkeleton({ height, state, }: {
3
6
  height: string;
7
+ state: AnyState;
4
8
  }): JSX.Element;
9
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/web-reader",
3
- "version": "3.1.0",
3
+ "version": "3.2.2",
4
4
  "license": "MIT",
5
5
  "repository": "https://github.com/NYPL-Simplified/web-reader",
6
6
  "homepage": "https://github.com/NYPL-Simplified/web-reader",