@nypl/web-reader 1.1.1 → 1.2.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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * See Chakra default theme for shape of theme object:
3
+ * https://github.com/chakra-ui/chakra-ui/tree/main/packages/theme
4
+ */
5
+ declare const theme: import("@chakra-ui/utils").Dict<any>;
6
+ export default theme;
@@ -0,0 +1,10 @@
1
+ import { HtmlState } from '../HtmlReader/types';
2
+ import { Locator } from '../Readium/Locator';
3
+ import { ReaderSettings } from '../types';
4
+ export declare type LSLocationRecord = {
5
+ location: Locator;
6
+ createdAt: number;
7
+ };
8
+ export declare function getLocalStorageLocation(webpubManifestUrl: string): LSLocationRecord | undefined;
9
+ export declare function getLocalStorageSettings(): ReaderSettings | undefined;
10
+ export default function useUpdateLocalStorage(webpubManifestUrl: string | undefined, state: HtmlState): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/web-reader",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "repository": "https://github.com/NYPL-Simplified/web-reader",
6
6
  "homepage": "https://github.com/NYPL-Simplified/web-reader",