@canopycanopycanopy/b-ber-reader-react 1.2.13-react-reader.44 → 1.2.13-react-reader.45

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -9
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -85,7 +85,7 @@ export interface UiOptions {
85
85
  navigation?: UiOptionsNavigation
86
86
  }
87
87
 
88
- enum SidebarName {
88
+ export enum SidebarName {
89
89
  CHAPTERS = 'chapters',
90
90
  DOWNLOADS = 'downloads',
91
91
  METADATA = 'metadata',
@@ -94,16 +94,11 @@ enum SidebarName {
94
94
 
95
95
  export interface NavigationHeaderProps {
96
96
  destroyReaderComponent: () => void
97
- handleSidebarButtonClick: (name: SidebarName | null) => void
97
+ handleSidebarButtonClick: (name: `${SidebarName}` | null) => void
98
98
  downloads: Download[]
99
99
  uiOptions: UiOptions
100
100
  }
101
101
 
102
- enum Layout {
103
- SCROLL = 'scroll',
104
- COLUMNS = 'columns',
105
- }
106
-
107
102
  export interface SpineItem {
108
103
  absoluteURL: string
109
104
  children: SpineItem[]
@@ -136,7 +131,7 @@ export interface NavigationFooterProps {
136
131
  uiOptions: UiOptions
137
132
  currentSpineItemIndex: number
138
133
  spine: Spine
139
- layout: Layout
134
+ layout: `${Layout}`
140
135
  spreadIndex: number
141
136
  lastSpreadIndex: number
142
137
  handleEvents: boolean
@@ -186,7 +181,7 @@ export interface OptionalBberReaderProps {
186
181
  loadRemoteLibrary?: boolean
187
182
  uiOptions?: UI
188
183
  cache?: boolean
189
- layout?: Layout
184
+ layout?: `${Layout}`
190
185
  searchParamKeys?: BberReaderQueryParameterKeys
191
186
  disableBodyStyles?: boolean
192
187
 
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.44+d9708544",
3
+ "version": "1.2.13-react-reader.45+ff99b231",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -122,5 +122,5 @@
122
122
  "url": "https://maxwellsimmer.com"
123
123
  }
124
124
  ],
125
- "gitHead": "d970854461f12ab332ea8541ed99c5c3a56e3275"
125
+ "gitHead": "ff99b23185b94316fc96251b2d580a00a2649ed5"
126
126
  }