@internetarchive/bookreader
Advanced tools
Comparing version 5.0.0-73-alpha2 to 5.0.0-74-alpha
{ | ||
"name": "@internetarchive/bookreader", | ||
"version": "5.0.0-73-alpha2", | ||
"version": "5.0.0-74-alpha", | ||
"description": "The Internet Archive BookReader.", | ||
@@ -29,3 +29,3 @@ "repository": { | ||
"@internetarchive/ia-activity-indicator": "^0.0.4", | ||
"@internetarchive/ia-item-navigator": "^2.0.3-alpha2", | ||
"@internetarchive/ia-item-navigator": "^2.0.3", | ||
"@internetarchive/icon-bookmark": "^1.3.4", | ||
@@ -32,0 +32,0 @@ "@internetarchive/icon-dl": "^1.3.4", |
@@ -70,2 +70,3 @@ // eslint-disable-next-line no-unused-vars | ||
*/ | ||
'chapters', | ||
'fullscreen', | ||
@@ -363,3 +364,2 @@ 'volumes', | ||
this.menuShortcuts.push(this.menuProviders[menuId]); | ||
this.sortMenuShortcuts(); | ||
@@ -366,0 +366,0 @@ this.emitMenuShortcutsUpdated(); |
@@ -79,2 +79,3 @@ /* global BookReader */ | ||
}; | ||
shell.addMenuShortcut('chapters'); | ||
shell.updateMenuContents(); | ||
@@ -81,0 +82,0 @@ this._tocEntries.forEach((tocEntry, i) => this._chaptersRenderMarker(tocEntry, i)); |
@@ -323,6 +323,7 @@ import { | ||
const el = fixtureSync(container()); | ||
expect(el.shortcutOrder[0]).toEqual('fullscreen'); | ||
expect(el.shortcutOrder[1]).toEqual('volumes'); | ||
expect(el.shortcutOrder[2]).toEqual('search'); | ||
expect(el.shortcutOrder[3]).toEqual('bookmarks'); | ||
expect(el.shortcutOrder[0]).toEqual('chapters'); | ||
expect(el.shortcutOrder[1]).toEqual('fullscreen'); | ||
expect(el.shortcutOrder[2]).toEqual('volumes'); | ||
expect(el.shortcutOrder[3]).toEqual('search'); | ||
expect(el.shortcutOrder[4]).toEqual('bookmarks'); | ||
}); | ||
@@ -329,0 +330,0 @@ }); |
@@ -161,2 +161,3 @@ import sinon from "sinon"; | ||
updateMenuContents: sinon.stub(), | ||
addMenuShortcut: sinon.stub() | ||
} | ||
@@ -167,2 +168,3 @@ }; | ||
expect(fakeBR.shell.updateMenuContents.callCount).toBe(1); | ||
expect(fakeBR.shell.addMenuShortcut.callCount).toBe(1); | ||
expect(fakeBR._chaptersRenderMarker.callCount).toBeGreaterThan(1); | ||
@@ -169,0 +171,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40428
9059204