@canopycanopycanopy/b-ber-reader-react 1.2.13-react-reader.35 → 1.2.13-react-reader.42

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/index.d.ts CHANGED
@@ -170,6 +170,12 @@ interface SidebarMetadataProps {
170
170
 
171
171
  type UiReaderProp<T> = React.Component<T> | ((props: T) => JSX.Element)
172
172
 
173
+ type LocationState = 'memory' | 'localStorage' | 'queryParams'
174
+
175
+ type KeysValues<T> = { [P in keyof T]: T[P] }
176
+
177
+ type SearchParams = string | KeysValues<BberReaderQueryParameterKeys>
178
+
173
179
  interface OptionalBberReaderProps {
174
180
  bookURL?: string
175
181
  manifestURL?: string
@@ -181,7 +187,7 @@ interface OptionalBberReaderProps {
181
187
  uiOptions?: UI
182
188
  cache?: boolean
183
189
  layout?: Layout
184
- paramKeys?: BberReaderQueryParameterKeys
190
+ searchParamKeys?: BberReaderQueryParameterKeys
185
191
  disableBodyStyles?: boolean
186
192
 
187
193
  NavigationHeader?: UiReaderProp<NavigationHeaderProps>
@@ -190,6 +196,9 @@ interface OptionalBberReaderProps {
190
196
  SidebarDownloads?: UiReaderProp<SidebarDownloadsProps>
191
197
  SidebarMetadata?: UiReaderProp<SidebarMetadataProps>
192
198
  // SidebarSettings?: UiReaderProp<SidebarSettingsProps>
199
+
200
+ locationState?: LocationState
201
+ searchParams?: SearchParams
193
202
  }
194
203
 
195
204
  export type BberReaderProps = RequireOneOf<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopycanopycanopy/b-ber-reader-react",
3
- "version": "1.2.13-react-reader.35+527d8e79",
3
+ "version": "1.2.13-react-reader.42+51bd8a89",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -61,6 +61,7 @@
61
61
  "postcss-loader": "^2.1.1",
62
62
  "prop-types": "^15.6.1",
63
63
  "react-test-renderer": "^16.4.0",
64
+ "redux-mock-store": "^1.5.4",
64
65
  "resize-observer-polyfill": "^1.5.0",
65
66
  "rimraf": "^2.7.1",
66
67
  "sass": "^1.49.8",
@@ -121,5 +122,5 @@
121
122
  "url": "https://maxwellsimmer.com"
122
123
  }
123
124
  ],
124
- "gitHead": "527d8e79f950d695509b03743e7a1c0d6bd66edf"
125
+ "gitHead": "51bd8a894e97b78603602b891f92a35091e4371a"
125
126
  }