@nypl/web-reader 3.2.3 → 3.2.5
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/dist/cjs/index.js +292 -29
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +19736 -24426
- package/dist/esm/index.js.map +3 -3
- package/dist/types/ui/Button.d.ts +2 -2
- package/dist/types/ui/Header.d.ts +2 -2
- package/dist/types/ui/menu/use-menu.d.ts +10 -10
- package/package.json +11 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button as ChakraButton } from '@chakra-ui/react';
|
|
3
3
|
export declare type ButtonProps = React.ComponentPropsWithRef<typeof ChakraButton>;
|
|
4
|
-
declare const Button: React.ForwardRefExoticComponent<Pick<Pick<import("@chakra-ui/
|
|
5
|
-
as?: import("@chakra-ui/
|
|
4
|
+
declare const Button: React.ForwardRefExoticComponent<Pick<Pick<import("@chakra-ui/react").OmitCommonProps<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("@chakra-ui/react").ButtonProps> & import("@chakra-ui/react").ButtonProps & import("@chakra-ui/react").OmitCommonProps<any, keyof import("@chakra-ui/react").ButtonProps> & {
|
|
5
|
+
as?: import("@chakra-ui/react").As<any> | undefined;
|
|
6
6
|
}, string | number | symbol> & {
|
|
7
7
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
8
8
|
}, string | number | symbol> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -4,6 +4,6 @@ export declare const DefaultHeaderLeft: () => React.ReactElement;
|
|
|
4
4
|
export default function Header(props: ActiveReader & ReaderManagerArguments & {
|
|
5
5
|
containerRef: React.MutableRefObject<null | HTMLDivElement>;
|
|
6
6
|
}): React.ReactElement;
|
|
7
|
-
export declare const HeaderWrapper: React.ForwardRefExoticComponent<Pick<import("@chakra-ui/
|
|
8
|
-
as?: import("@chakra-ui/
|
|
7
|
+
export declare const HeaderWrapper: React.ForwardRefExoticComponent<Pick<import("@chakra-ui/react").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@chakra-ui/react").FlexProps> & import("@chakra-ui/react").FlexProps & import("@chakra-ui/react").OmitCommonProps<any, keyof import("@chakra-ui/react").FlexProps> & {
|
|
8
|
+
as?: import("@chakra-ui/react").As<any> | undefined;
|
|
9
9
|
}, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -149,7 +149,7 @@ export declare function useMenuButton(props?: UseMenuButtonProps, externalRef?:
|
|
|
149
149
|
results?: number | undefined;
|
|
150
150
|
security?: string | undefined;
|
|
151
151
|
unselectable?: "on" | "off" | undefined;
|
|
152
|
-
inputMode?: "none" | "
|
|
152
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
153
153
|
is?: string | undefined;
|
|
154
154
|
'aria-activedescendant'?: string | undefined;
|
|
155
155
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1199,7 +1199,7 @@ export declare function useMenuList(props?: UseMenuListProps, ref?: React.Ref<an
|
|
|
1199
1199
|
results?: number | undefined;
|
|
1200
1200
|
security?: string | undefined;
|
|
1201
1201
|
unselectable?: "on" | "off" | undefined;
|
|
1202
|
-
inputMode?: "none" | "
|
|
1202
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1203
1203
|
is?: string | undefined;
|
|
1204
1204
|
'aria-activedescendant'?: string | undefined;
|
|
1205
1205
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1480,7 +1480,7 @@ export declare function useMenuItem(props?: UseMenuItemProps, externalRef?: Reac
|
|
|
1480
1480
|
results?: number | undefined;
|
|
1481
1481
|
security?: string | undefined;
|
|
1482
1482
|
unselectable?: "on" | "off" | undefined;
|
|
1483
|
-
inputMode?: "none" | "
|
|
1483
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1484
1484
|
is?: string | undefined;
|
|
1485
1485
|
'aria-activedescendant'?: string | undefined;
|
|
1486
1486
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1529,7 +1529,7 @@ export declare function useMenuItem(props?: UseMenuItemProps, externalRef?: Reac
|
|
|
1529
1529
|
'aria-valuemin'?: number | undefined;
|
|
1530
1530
|
'aria-valuenow'?: number | undefined;
|
|
1531
1531
|
'aria-valuetext'?: string | undefined;
|
|
1532
|
-
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.
|
|
1532
|
+
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined;
|
|
1533
1533
|
dangerouslySetInnerHTML?: {
|
|
1534
1534
|
__html: string;
|
|
1535
1535
|
} | {
|
|
@@ -1747,7 +1747,7 @@ export declare function useMenuItem(props?: UseMenuItemProps, externalRef?: Reac
|
|
|
1747
1747
|
results?: number | undefined;
|
|
1748
1748
|
security?: string | undefined;
|
|
1749
1749
|
unselectable?: "on" | "off" | undefined;
|
|
1750
|
-
inputMode?: "none" | "
|
|
1750
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1751
1751
|
is?: string | undefined;
|
|
1752
1752
|
'aria-activedescendant'?: string | undefined;
|
|
1753
1753
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1796,7 +1796,7 @@ export declare function useMenuItem(props?: UseMenuItemProps, externalRef?: Reac
|
|
|
1796
1796
|
'aria-valuemin'?: number | undefined;
|
|
1797
1797
|
'aria-valuenow'?: number | undefined;
|
|
1798
1798
|
'aria-valuetext'?: string | undefined;
|
|
1799
|
-
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.
|
|
1799
|
+
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined;
|
|
1800
1800
|
dangerouslySetInnerHTML?: {
|
|
1801
1801
|
__html: string;
|
|
1802
1802
|
} | {
|
|
@@ -2019,7 +2019,7 @@ export declare function useMenuOption(props?: UseMenuOptionProps, ref?: React.Re
|
|
|
2019
2019
|
results?: number | undefined;
|
|
2020
2020
|
security?: string | undefined;
|
|
2021
2021
|
unselectable?: "on" | "off" | undefined;
|
|
2022
|
-
inputMode?: "none" | "
|
|
2022
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
2023
2023
|
is?: string | undefined;
|
|
2024
2024
|
'aria-activedescendant'?: string | undefined;
|
|
2025
2025
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2067,7 +2067,7 @@ export declare function useMenuOption(props?: UseMenuOptionProps, ref?: React.Re
|
|
|
2067
2067
|
'aria-valuemin'?: number | undefined;
|
|
2068
2068
|
'aria-valuenow'?: number | undefined;
|
|
2069
2069
|
'aria-valuetext'?: string | undefined;
|
|
2070
|
-
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.
|
|
2070
|
+
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined;
|
|
2071
2071
|
dangerouslySetInnerHTML?: {
|
|
2072
2072
|
__html: string;
|
|
2073
2073
|
} | {
|
|
@@ -2286,7 +2286,7 @@ export declare function useMenuOption(props?: UseMenuOptionProps, ref?: React.Re
|
|
|
2286
2286
|
results?: number | undefined;
|
|
2287
2287
|
security?: string | undefined;
|
|
2288
2288
|
unselectable?: "on" | "off" | undefined;
|
|
2289
|
-
inputMode?: "none" | "
|
|
2289
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
2290
2290
|
is?: string | undefined;
|
|
2291
2291
|
'aria-activedescendant'?: string | undefined;
|
|
2292
2292
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2334,7 +2334,7 @@ export declare function useMenuOption(props?: UseMenuOptionProps, ref?: React.Re
|
|
|
2334
2334
|
'aria-valuemin'?: number | undefined;
|
|
2335
2335
|
'aria-valuenow'?: number | undefined;
|
|
2336
2336
|
'aria-valuetext'?: string | undefined;
|
|
2337
|
-
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.
|
|
2337
|
+
children?: string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined;
|
|
2338
2338
|
dangerouslySetInnerHTML?: {
|
|
2339
2339
|
__html: string;
|
|
2340
2340
|
} | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/web-reader",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "https://github.com/NYPL-Simplified/web-reader",
|
|
6
6
|
"homepage": "https://github.com/NYPL-Simplified/web-reader",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"release:alpha": "release-it --verbose --preRelease=alpha"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"react": "^16.8.0 || 17.x || 18.x",
|
|
53
|
-
"react-dom": "^16.8.0 || 17.x || 18.x",
|
|
54
52
|
"@chakra-ui/react": "^1.8.7 || 2.x",
|
|
55
53
|
"@emotion/react": "^11.8.2",
|
|
56
54
|
"@emotion/styled": "^11.8.1",
|
|
55
|
+
"react": "^16.8.0 || 17.x || 18.x",
|
|
56
|
+
"react-dom": "^16.8.0 || 17.x || 18.x",
|
|
57
57
|
"swr": "^1.0.1"
|
|
58
58
|
},
|
|
59
59
|
"prettier": {
|
|
@@ -84,13 +84,6 @@
|
|
|
84
84
|
"@babel/core": "^7.12.10",
|
|
85
85
|
"@emotion/jest": "^11.8.0",
|
|
86
86
|
"@parcel/transformer-typescript-tsc": "^2.4.1",
|
|
87
|
-
"@storybook/addon-actions": "^6.3.1",
|
|
88
|
-
"@storybook/addon-essentials": "^6.3.1",
|
|
89
|
-
"@storybook/addon-info": "^5.3.21",
|
|
90
|
-
"@storybook/addon-links": "^6.3.1",
|
|
91
|
-
"@storybook/addon-storyshots": "^6.3.1",
|
|
92
|
-
"@storybook/addons": "^6.3.1",
|
|
93
|
-
"@storybook/react": "^6.3.1",
|
|
94
87
|
"@testing-library/cypress": "^8.0.2",
|
|
95
88
|
"@testing-library/jest-dom": "^5.16.3",
|
|
96
89
|
"@testing-library/react": "^12.0.0",
|
|
@@ -148,6 +141,13 @@
|
|
|
148
141
|
"typescript": "^4.3.5"
|
|
149
142
|
},
|
|
150
143
|
"dependencies": {
|
|
144
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
145
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
146
|
+
"@storybook/addon-info": "^5.3.21",
|
|
147
|
+
"@storybook/addon-links": "^6.5.13",
|
|
148
|
+
"@storybook/addon-storyshots": "^6.5.13",
|
|
149
|
+
"@storybook/addons": "^6.5.13",
|
|
150
|
+
"@storybook/react": "^6.5.13",
|
|
151
151
|
"comlink": "^4.3.1",
|
|
152
152
|
"framer-motion": "^4.1.6",
|
|
153
153
|
"node-fetch": "^2.6.1",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"workbox-strategies": "^6.3.0"
|
|
162
162
|
},
|
|
163
163
|
"optionalDependencies": {
|
|
164
|
-
"@nypl-simplified-packages/axisnow-access-control-web": "^1.4.
|
|
164
|
+
"@nypl-simplified-packages/axisnow-access-control-web": "^1.4.2"
|
|
165
165
|
},
|
|
166
166
|
"lint-staged": {
|
|
167
167
|
"*.{ts,tsx,js,jsx}": "eslint --cache --fix",
|