@internetarchive/bookreader 5.0.0-30-e → 5.0.0-32-shadydom1

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 (59) hide show
  1. package/BookReader/BookReader.js +1 -1
  2. package/BookReader/BookReader.js.LICENSE.txt +117 -0
  3. package/BookReader/ia-bookreader-bundle.js +18 -67
  4. package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +39 -0
  5. package/BookReader/ia-bookreader-bundle.js.map +1 -1
  6. package/BookReader/icons/1up.svg +12 -1
  7. package/BookReader/icons/2up.svg +15 -1
  8. package/BookReader/icons/advance.svg +26 -3
  9. package/BookReader/icons/chevron-right.svg +1 -1
  10. package/BookReader/icons/close-circle-dark.svg +1 -1
  11. package/BookReader/icons/close-circle.svg +1 -1
  12. package/BookReader/icons/fullscreen.svg +17 -1
  13. package/BookReader/icons/fullscreen_exit.svg +17 -1
  14. package/BookReader/icons/hamburger.svg +15 -1
  15. package/BookReader/icons/left-arrow.svg +12 -1
  16. package/BookReader/icons/magnify-minus.svg +16 -1
  17. package/BookReader/icons/magnify-plus.svg +17 -1
  18. package/BookReader/icons/magnify.svg +15 -1
  19. package/BookReader/icons/pause.svg +23 -1
  20. package/BookReader/icons/play.svg +22 -1
  21. package/BookReader/icons/playback-speed.svg +34 -1
  22. package/BookReader/icons/read-aloud.svg +22 -1
  23. package/BookReader/icons/review.svg +22 -3
  24. package/BookReader/icons/thumbnails.svg +17 -1
  25. package/BookReader/icons/voice.svg +1 -1
  26. package/BookReader/icons/volume-full.svg +22 -1
  27. package/BookReader/images/BRicons.svg +94 -5
  28. package/BookReader/images/books_graphic.svg +177 -1
  29. package/BookReader/images/icon_book.svg +12 -1
  30. package/BookReader/images/icon_bookmark.svg +12 -1
  31. package/BookReader/images/icon_gear.svg +14 -1
  32. package/BookReader/images/icon_hamburger.svg +20 -1
  33. package/BookReader/images/icon_home.svg +21 -1
  34. package/BookReader/images/icon_info.svg +11 -1
  35. package/BookReader/images/icon_one_page.svg +8 -1
  36. package/BookReader/images/icon_pause.svg +1 -1
  37. package/BookReader/images/icon_play.svg +1 -1
  38. package/BookReader/images/icon_playback-rate.svg +15 -1
  39. package/BookReader/images/icon_search_button.svg +8 -1
  40. package/BookReader/images/icon_share.svg +9 -1
  41. package/BookReader/images/icon_skip-ahead.svg +6 -1
  42. package/BookReader/images/icon_skip-back.svg +13 -2
  43. package/BookReader/images/icon_speaker.svg +18 -1
  44. package/BookReader/images/icon_speaker_open.svg +10 -1
  45. package/BookReader/images/icon_thumbnails.svg +12 -1
  46. package/BookReader/images/icon_toc.svg +5 -1
  47. package/BookReader/images/icon_two_pages.svg +9 -1
  48. package/BookReader/images/marker_chap-off.svg +11 -1
  49. package/BookReader/images/marker_chap-on.svg +11 -1
  50. package/BookReader/images/marker_srch-on.svg +11 -1
  51. package/BookReader/jquery-1.10.1.js.LICENSE.txt +24 -0
  52. package/BookReader/plugins/plugin.tts.js.LICENSE.txt +27 -0
  53. package/BookReader/webcomponents-bundle.js.LICENSE.txt +9 -0
  54. package/BookReaderDemo/demo-internetarchive.html +1 -1
  55. package/CHANGELOG.md +6 -0
  56. package/package.json +2 -2
  57. package/src/BookNavigator/book-navigator.js +1 -0
  58. package/src/ia-bookreader/ia-bookreader.js +17 -14
  59. package/webpack.config.js +1 -1
@@ -29052,7 +29052,7 @@ var svg = function svg(strings) {
29052
29052
  /***/ (function(module) {
29053
29053
 
29054
29054
  "use strict";
29055
- module.exports = JSON.parse('{"name":"@internetarchive/bookreader","version":"5.0.0-30-e","description":"The Internet Archive BookReader.","repository":{"type":"git","url":"git+https://github.com/internetarchive/bookreader.git"},"publishConfig":{"access":"public"},"module":"src/ia-bookreader/ia-bookreader.js","keywords":["online","bookreader","interface","ebooks","internet archive"],"author":"Internet Archive","license":"AGPL-3.0","bugs":{"url":"https://github.com/internetarchive/bookreader/issues"},"homepage":"https://github.com/internetarchive/bookreader#readme","private":false,"dependencies":{"@internetarchive/ia-activity-indicator":"^0.0.1","@internetarchive/ia-item-navigator":"^0.0.4","@internetarchive/ia-menu-slider":"^1.1.1","@internetarchive/ia-sharing-options":"^0.1.4","@internetarchive/icon-bookmark":"^1.1.3","@internetarchive/icon-collapse-sidebar":"^1.1.0","@internetarchive/icon-dl":"^1.1.3","@internetarchive/icon-edit-pencil":"1.1.5","@internetarchive/icon-magnify-minus":"^1.2.3","@internetarchive/icon-magnify-plus":"^1.2.3","@internetarchive/icon-search":"^1.2.3","@internetarchive/icon-share":"^1.1.3","@internetarchive/icon-visual-adjustment":"^1.1.3","@internetarchive/modal-manager":"^0.1.0","@internetarchive/shared-resize-observer":"^0.0.1","lit-element":"^2.4.0","lit-html":"^1.3.0"},"devDependencies":{"@babel/core":"7.15.0","@babel/eslint-parser":"^7.15.7","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-proposal-decorators":"^7.14.5","@babel/preset-env":"7.15.0","@open-wc/testing":"^2.5.33","@open-wc/testing-karma":"^4.0.9","@types/jest":"27.0.1","@webcomponents/webcomponentsjs":"^2.6.0","babel-loader":"8.2.2","codecov":"3.8.3","concurrently":"6.0.2","core-js":"3.16.2","cpx2":"3.0.0","eslint":"^7.32.0","eslint-plugin-no-jquery":"^2.6.0","eslint-plugin-testcafe":"0.2.1","hammerjs":"^2.0.8","http-server":"0.12.3","iso-language-codes":"1.1.0","jest":"27.0.6","jquery":"1.11.3","jquery-colorbox":"1.6.4","jquery-ui":"1.12.1","jquery-ui-touch-punch":"0.2.3","jquery.browser":"0.1.0","jquery.mmenu":"5.6.5","karma-coverage":"^2.0.3","live-server":"1.2.1","node-fetch":"2.6.1","regenerator-runtime":"0.13.9","sass":"1.38.2","sinon":"11.1.2","soundmanager2":"2.97.20170602","svgo":"2.4.0","testcafe":"^1.16.1","testcafe-browser-provider-browserstack":"^1.13.2-alpha.1","webpack":"5.51.1","webpack-cli":"4.8.0"},"jest":{"testEnvironment":"jsdom","transformIgnorePatterns":["node_modules/(?!(lit-html|lit-element|lit)/)"],"moduleNameMapper":{"^@/(.*)$":"<rootDir>/$1"},"setupFiles":["./src/jquery-wrapper.js"],"roots":["<rootDir>/src/","<rootDir>/tests/jest/"],"coverageDirectory":"<rootDir>/coverage-jest"},"scripts":{"preversion":"npm run test && node scripts/preversion.js","version":"node scripts/version.js","postversion":"node scripts/postversion.js","build":"npm run clean && npm run build-js && npm run build-css && npm run build-assets","build-assets":"npx cpx \\"src/assets/**/*\\" BookReader && npx svgo -f BookReader/icons && npx svgo -f BookReader/images","build-assets:watch":"npx cpx --watch --verbose \\"src/assets/**/*\\" BookReader","build-js":"npx webpack","build-js:watch":"npx webpack --mode=development --watch","build-css":"npx sass --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css","build-css:watch":"npx sass --watch --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css","clean":"rm -r BookReader/ || true","lint":"npx eslint src/ tests/ *.js","lint:fix":"npx eslint --fix src/ tests/ *.js","serve":"npx http-server . --port 8000","serve-live":"npx live-server . --port 8000 --watch=index.html,BookReader,BookReaderDemo","serve-dev":"npm run build-css && npx concurrently --kill-others npm:serve-live npm:build-*:watch","test":"npm run test-jest && npm run test-karma","test:e2e":"npm run build && npx testcafe","test:e2e:dev":"npx testcafe --live --dev","test-jest:watch":"npx jest --watch","test-jest":"npx jest --coverage --colors","test-karma":"npx karma start --coverage","test-karma:watch":"npx karma start --auto-watch=true --single-run=false","DOCS:update:test-deps":"If CI succeeds, these should be good to update","update:test-deps":"npm i @babel/eslint-parser@latest @open-wc/testing@latest @open-wc/testing-karma@latest @types/jest@latest codecov@latest eslint@latest eslint-plugin-testcafe@latest jest@latest karma-coverage@latest sinon@latest testcafe@latest","DOCS:update:build-deps":"These can cause strange changes, so do an npm run build + check file size (git diff --stat), and check the site is as expected","update:build-deps":"npm i @babel/core@latest @babel/preset-env@latest babel-loader@latest core-js@latest regenerator-runtime@latest sass@latest svgo@latest webpack@latest webpack-cli@latest","codecov":"npx codecov"}}');
29055
+ module.exports = JSON.parse('{"name":"@internetarchive/bookreader","version":"5.0.0-32-shadydom1","description":"The Internet Archive BookReader.","repository":{"type":"git","url":"git+https://github.com/internetarchive/bookreader.git"},"publishConfig":{"access":"public"},"module":"src/ia-bookreader/ia-bookreader.js","keywords":["online","bookreader","interface","ebooks","internet archive"],"author":"Internet Archive","license":"AGPL-3.0","bugs":{"url":"https://github.com/internetarchive/bookreader/issues"},"homepage":"https://github.com/internetarchive/bookreader#readme","private":false,"dependencies":{"@internetarchive/ia-activity-indicator":"^0.0.1","@internetarchive/ia-item-navigator":"0.0.5-1","@internetarchive/ia-menu-slider":"^1.1.1","@internetarchive/ia-sharing-options":"^0.1.4","@internetarchive/icon-bookmark":"^1.1.3","@internetarchive/icon-collapse-sidebar":"^1.1.0","@internetarchive/icon-dl":"^1.1.3","@internetarchive/icon-edit-pencil":"1.1.5","@internetarchive/icon-magnify-minus":"^1.2.3","@internetarchive/icon-magnify-plus":"^1.2.3","@internetarchive/icon-search":"^1.2.3","@internetarchive/icon-share":"^1.1.3","@internetarchive/icon-visual-adjustment":"^1.1.3","@internetarchive/modal-manager":"^0.1.0","@internetarchive/shared-resize-observer":"^0.0.1","lit-element":"^2.4.0","lit-html":"^1.3.0"},"devDependencies":{"@babel/core":"7.15.0","@babel/eslint-parser":"^7.15.7","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-proposal-decorators":"^7.14.5","@babel/preset-env":"7.15.0","@open-wc/testing":"^2.5.33","@open-wc/testing-karma":"^4.0.9","@types/jest":"27.0.1","@webcomponents/webcomponentsjs":"^2.6.0","babel-loader":"8.2.2","codecov":"3.8.3","concurrently":"6.0.2","core-js":"3.16.2","cpx2":"3.0.0","eslint":"^7.32.0","eslint-plugin-no-jquery":"^2.6.0","eslint-plugin-testcafe":"0.2.1","hammerjs":"^2.0.8","http-server":"0.12.3","iso-language-codes":"1.1.0","jest":"27.0.6","jquery":"1.11.3","jquery-colorbox":"1.6.4","jquery-ui":"1.12.1","jquery-ui-touch-punch":"0.2.3","jquery.browser":"0.1.0","jquery.mmenu":"5.6.5","karma-coverage":"^2.0.3","live-server":"1.2.1","node-fetch":"2.6.1","regenerator-runtime":"0.13.9","sass":"1.38.2","sinon":"11.1.2","soundmanager2":"2.97.20170602","svgo":"2.4.0","testcafe":"^1.16.1","testcafe-browser-provider-browserstack":"^1.13.2-alpha.1","webpack":"5.51.1","webpack-cli":"4.8.0"},"jest":{"testEnvironment":"jsdom","transformIgnorePatterns":["node_modules/(?!(lit-html|lit-element|lit)/)"],"moduleNameMapper":{"^@/(.*)$":"<rootDir>/$1"},"setupFiles":["./src/jquery-wrapper.js"],"roots":["<rootDir>/src/","<rootDir>/tests/jest/"],"coverageDirectory":"<rootDir>/coverage-jest"},"scripts":{"preversion":"npm run test && node scripts/preversion.js","version":"node scripts/version.js","postversion":"node scripts/postversion.js","build":"npm run clean && npm run build-js && npm run build-css && npm run build-assets","build-assets":"npx cpx \\"src/assets/**/*\\" BookReader && npx svgo -f BookReader/icons && npx svgo -f BookReader/images","build-assets:watch":"npx cpx --watch --verbose \\"src/assets/**/*\\" BookReader","build-js":"npx webpack","build-js:watch":"npx webpack --mode=development --watch","build-css":"npx sass --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css","build-css:watch":"npx sass --watch --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css","clean":"rm -r BookReader/ || true","lint":"npx eslint src/ tests/ *.js","lint:fix":"npx eslint --fix src/ tests/ *.js","serve":"npx http-server . --port 8000","serve-live":"npx live-server . --port 8000 --watch=index.html,BookReader,BookReaderDemo","serve-dev":"npm run build-css && npx concurrently --kill-others npm:serve-live npm:build-*:watch","test":"npm run test-jest && npm run test-karma","test:e2e":"npm run build && npx testcafe","test:e2e:dev":"npx testcafe --live --dev","test-jest:watch":"npx jest --watch","test-jest":"npx jest --coverage --colors","test-karma":"npx karma start --coverage","test-karma:watch":"npx karma start --auto-watch=true --single-run=false","DOCS:update:test-deps":"If CI succeeds, these should be good to update","update:test-deps":"npm i @babel/eslint-parser@latest @open-wc/testing@latest @open-wc/testing-karma@latest @types/jest@latest codecov@latest eslint@latest eslint-plugin-testcafe@latest jest@latest karma-coverage@latest sinon@latest testcafe@latest","DOCS:update:build-deps":"These can cause strange changes, so do an npm run build + check file size (git diff --stat), and check the site is as expected","update:build-deps":"npm i @babel/core@latest @babel/preset-env@latest babel-loader@latest core-js@latest regenerator-runtime@latest sass@latest svgo@latest webpack@latest webpack-cli@latest","codecov":"npx codecov"}}');
29056
29056
 
29057
29057
  /***/ })
29058
29058
 
@@ -0,0 +1,117 @@
1
+ /*!
2
+ Colorbox 1.6.4
3
+ license: MIT
4
+ http://www.jacklmoore.com/colorbox
5
+ */
6
+
7
+ /*!
8
+ * jQuery Color Animations v2.1.2
9
+ * https://github.com/jquery/jquery-color
10
+ *
11
+ * Copyright 2014 jQuery Foundation and other contributors
12
+ * Released under the MIT license.
13
+ * http://jquery.org/license
14
+ *
15
+ * Date: Wed Jan 16 08:47:09 2013 -0600
16
+ */
17
+
18
+ /*!
19
+ * jQuery UI Effects 1.12.1
20
+ * http://jqueryui.com
21
+ *
22
+ * Copyright jQuery Foundation and other contributors
23
+ * Released under the MIT license.
24
+ * http://jquery.org/license
25
+ */
26
+
27
+ /*!
28
+ * jQuery UI Keycode 1.12.1
29
+ * http://jqueryui.com
30
+ *
31
+ * Copyright jQuery Foundation and other contributors
32
+ * Released under the MIT license.
33
+ * http://jquery.org/license
34
+ */
35
+
36
+ /*!
37
+ * jQuery UI Mouse 1.12.1
38
+ * http://jqueryui.com
39
+ *
40
+ * Copyright jQuery Foundation and other contributors
41
+ * Released under the MIT license.
42
+ * http://jquery.org/license
43
+ */
44
+
45
+ /*!
46
+ * jQuery UI Slider 1.12.1
47
+ * http://jqueryui.com
48
+ *
49
+ * Copyright jQuery Foundation and other contributors
50
+ * Released under the MIT license.
51
+ * http://jquery.org/license
52
+ */
53
+
54
+ /*!
55
+ * jQuery UI Touch Punch 0.2.3
56
+ *
57
+ * Copyright 2011–2014, Dave Furfero
58
+ * Dual licensed under the MIT or GPL Version 2 licenses.
59
+ *
60
+ * Depends:
61
+ * jquery.ui.widget.js
62
+ * jquery.ui.mouse.js
63
+ */
64
+
65
+ /*!
66
+ * jQuery UI Widget 1.12.1
67
+ * http://jqueryui.com
68
+ *
69
+ * Copyright jQuery Foundation and other contributors
70
+ * Released under the MIT license.
71
+ * http://jquery.org/license
72
+ */
73
+
74
+ /*! Hammer.JS - v2.0.7 - 2016-04-22
75
+ * http://hammerjs.github.io/
76
+ *
77
+ * Copyright (c) 2016 Jorik Tangelder;
78
+ * Licensed under the MIT license */
79
+
80
+ /**
81
+ * @license
82
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
83
+ * This code may only be used under the BSD style license found at
84
+ * http://polymer.github.io/LICENSE.txt
85
+ * The complete set of authors may be found at
86
+ * http://polymer.github.io/AUTHORS.txt
87
+ * The complete set of contributors may be found at
88
+ * http://polymer.github.io/CONTRIBUTORS.txt
89
+ * Code distributed by Google as part of the polymer project is also
90
+ * subject to an additional IP rights grant found at
91
+ * http://polymer.github.io/PATENTS.txt
92
+ */
93
+
94
+ /**
95
+ * @license
96
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
97
+ * This code may only be used under the BSD style license found at
98
+ * http://polymer.github.io/LICENSE.txt
99
+ * The complete set of authors may be found at
100
+ * http://polymer.github.io/AUTHORS.txt
101
+ * The complete set of contributors may be found at
102
+ * http://polymer.github.io/CONTRIBUTORS.txt
103
+ * Code distributed by Google as part of the polymer project is also
104
+ * subject to an additional IP rights grant found at
105
+ * http://polymer.github.io/PATENTS.txt
106
+ */
107
+
108
+ /**
109
+ @license
110
+ Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
111
+ This code may only be used under the BSD style license found at
112
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
113
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
114
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
115
+ part of the polymer project is also subject to an additional IP rights grant
116
+ found at http://polymer.github.io/PATENTS.txt
117
+ */
@@ -13,10 +13,8 @@ __webpack_require__.r(__webpack_exports__);
13
13
  /* harmony export */ "ByteParser": function() { return /* reexport safe */ _src_field_types_byte__WEBPACK_IMPORTED_MODULE_1__.ByteParser; },
14
14
  /* harmony export */ "DateParser": function() { return /* reexport safe */ _src_field_types_date__WEBPACK_IMPORTED_MODULE_2__.DateParser; },
15
15
  /* harmony export */ "DurationParser": function() { return /* reexport safe */ _src_field_types_duration__WEBPACK_IMPORTED_MODULE_3__.DurationParser; },
16
- /* harmony export */ "MediaType": function() { return /* reexport safe */ _src_field_types_mediatype__WEBPACK_IMPORTED_MODULE_4__.MediaType; },
17
16
  /* harmony export */ "MediaTypeParser": function() { return /* reexport safe */ _src_field_types_mediatype__WEBPACK_IMPORTED_MODULE_4__.MediaTypeParser; },
18
17
  /* harmony export */ "NumberParser": function() { return /* reexport safe */ _src_field_types_number__WEBPACK_IMPORTED_MODULE_5__.NumberParser; },
19
- /* harmony export */ "PageProgression": function() { return /* reexport safe */ _src_field_types_page_progression__WEBPACK_IMPORTED_MODULE_6__.PageProgression; },
20
18
  /* harmony export */ "PageProgressionParser": function() { return /* reexport safe */ _src_field_types_page_progression__WEBPACK_IMPORTED_MODULE_6__.PageProgressionParser; },
21
19
  /* harmony export */ "StringParser": function() { return /* reexport safe */ _src_field_types_string__WEBPACK_IMPORTED_MODULE_7__.StringParser; }
22
20
  /* harmony export */ });
@@ -250,49 +248,14 @@ DurationParser.shared = new DurationParser();
250
248
  "use strict";
251
249
  __webpack_require__.r(__webpack_exports__);
252
250
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
253
- /* harmony export */ "MediaType": function() { return /* binding */ MediaType; },
254
251
  /* harmony export */ "MediaTypeParser": function() { return /* binding */ MediaTypeParser; }
255
252
  /* harmony export */ });
256
- var MediaType;
257
- (function (MediaType) {
258
- MediaType["Audio"] = "audio";
259
- MediaType["Collection"] = "collection";
260
- MediaType["Data"] = "data";
261
- MediaType["Etree"] = "etree";
262
- MediaType["Image"] = "image";
263
- MediaType["Movies"] = "movies";
264
- MediaType["Software"] = "software";
265
- MediaType["Texts"] = "texts";
266
- MediaType["Web"] = "web";
267
- })(MediaType || (MediaType = {}));
268
253
  class MediaTypeParser {
269
254
  /** @inheritdoc */
270
255
  parseValue(rawValue) {
271
256
  if (typeof rawValue !== 'string')
272
257
  return undefined;
273
- const lowercased = rawValue.toLowerCase();
274
- switch (lowercased) {
275
- case 'audio':
276
- return MediaType.Audio;
277
- case 'collection':
278
- return MediaType.Collection;
279
- case 'data':
280
- return MediaType.Data;
281
- case 'etree':
282
- return MediaType.Etree;
283
- case 'image':
284
- return MediaType.Image;
285
- case 'movies':
286
- return MediaType.Movies;
287
- case 'software':
288
- return MediaType.Software;
289
- case 'texts':
290
- return MediaType.Texts;
291
- case 'web':
292
- return MediaType.Web;
293
- default:
294
- return undefined;
295
- }
258
+ return rawValue;
296
259
  }
297
260
  }
298
261
  // use a shared static instance for performance instead of
@@ -343,28 +306,14 @@ NumberParser.shared = new NumberParser();
343
306
  "use strict";
344
307
  __webpack_require__.r(__webpack_exports__);
345
308
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
346
- /* harmony export */ "PageProgression": function() { return /* binding */ PageProgression; },
347
309
  /* harmony export */ "PageProgressionParser": function() { return /* binding */ PageProgressionParser; }
348
310
  /* harmony export */ });
349
- var PageProgression;
350
- (function (PageProgression) {
351
- PageProgression["RightToLeft"] = "rl";
352
- PageProgression["LeftToRight"] = "lr";
353
- })(PageProgression || (PageProgression = {}));
354
311
  class PageProgressionParser {
355
312
  /** @inheritdoc */
356
313
  parseValue(rawValue) {
357
314
  if (typeof rawValue !== 'string')
358
315
  return undefined;
359
- const lowercased = rawValue.toLowerCase();
360
- switch (lowercased) {
361
- case 'rl':
362
- return PageProgression.RightToLeft;
363
- case 'lr':
364
- return PageProgression.LeftToRight;
365
- default:
366
- return undefined;
367
- }
316
+ return rawValue;
368
317
  }
369
318
  }
370
319
  // use a shared static instance for performance instead of
@@ -699,11 +648,6 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
699
648
  get loaderTitle() {
700
649
  return this.viewportInFullscreen ? 'Internet Archive' : '';
701
650
  }
702
- get readerHeightStyle() {
703
- var _a, _b;
704
- const calcFSHeight = `calc(100% - ${((_a = this.headerSlot) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0}px)`;
705
- return ((_b = this.headerSlot) === null || _b === void 0 ? void 0 : _b.offsetHeight) > 0 ? `height: ${calcFSHeight}` : '';
706
- }
707
651
  get loadingArea() {
708
652
  return lit_element__WEBPACK_IMPORTED_MODULE_1__.html `
709
653
  <div class="loading-area">
@@ -729,7 +673,7 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
729
673
  name="header"
730
674
  @slotchange=${(e) => this.slotChange(e, 'header')}
731
675
  ></slot>
732
- <div class="menu-and-reader" style=${this.readerHeightStyle}>
676
+ <div class="menu-and-reader">
733
677
  ${this.shouldRenderMenu ? this.renderSideMenu : lit_html__WEBPACK_IMPORTED_MODULE_2__.nothing}
734
678
  <div id="reader" class=${displayReaderClass}>
735
679
  ${this.renderViewport}
@@ -755,7 +699,6 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
755
699
  <div slot="main" style=${slotVisibility}>
756
700
  <slot
757
701
  name="main"
758
- style=${this.readerHeightStyle}
759
702
  @slotchange=${(e) => this.slotChange(e, 'main')}
760
703
  ></slot>
761
704
  </div>
@@ -913,6 +856,8 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
913
856
  #frame {
914
857
  background-color: ${theaterBg};
915
858
  color-scheme: dark;
859
+ display: flex;
860
+ flex-direction: column;
916
861
  }
917
862
 
918
863
  #frame.fullscreen {
@@ -930,13 +875,17 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
930
875
  justify-content: center;
931
876
  }
932
877
 
878
+ .loading-area {
879
+ width: 100%;
880
+ }
881
+
933
882
  ia-itemnav-loader {
934
883
  display: block;
935
884
  width: 100%;
936
885
  }
937
886
 
938
887
  .hidden {
939
- display: none;
888
+ display: none !important;
940
889
  }
941
890
 
942
891
  button {
@@ -952,6 +901,7 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
952
901
 
953
902
  .menu-and-reader {
954
903
  position: relative;
904
+ display: flex;
955
905
  }
956
906
 
957
907
  nav button {
@@ -1014,13 +964,14 @@ let ItemNavigator = class ItemNavigator extends lit_element__WEBPACK_IMPORTED_MO
1014
964
  z-index: 1;
1015
965
  transform: translateX(0);
1016
966
  width: 100%;
1017
- height: 100%;
967
+ flex: 1;
968
+ display: flex;
1018
969
  }
1019
970
 
1020
971
  #reader > * {
1021
972
  width: 100%;
1022
973
  display: flex;
1023
- height: 100%;
974
+ flex: 1;
1024
975
  }
1025
976
 
1026
977
  .open.overlay #reader {
@@ -7182,7 +7133,7 @@ var BookNavigator = /*#__PURE__*/function (_LitElement) {
7182
7133
  }, {
7183
7134
  key: "styles",
7184
7135
  get: function get() {
7185
- return (0,lit_element__WEBPACK_IMPORTED_MODULE_24__.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n :host,\n #book-navigator,\n slot,\n slot > * {\n display: block;\n height: inherit;\n }\n .cover-img {\n max-height: 300px;\n }\n "])));
7136
+ return (0,lit_element__WEBPACK_IMPORTED_MODULE_24__.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n :host,\n #book-navigator,\n slot,\n slot > * {\n display: block;\n height: inherit;\n width: inherit;\n }\n .cover-img {\n max-height: 300px;\n }\n "])));
7186
7137
  }
7187
7138
  }]);
7188
7139
 
@@ -11144,7 +11095,7 @@ var IaBookReader = /*#__PURE__*/function (_LitElement) {
11144
11095
 
11145
11096
  if (!modalManager) {
11146
11097
  modalManager = document.createElement('modal-manager');
11147
- document.body.appendChild(this.modal);
11098
+ document.body.appendChild(modalManager);
11148
11099
  }
11149
11100
 
11150
11101
  this.modal = modalManager;
@@ -11206,7 +11157,7 @@ var IaBookReader = /*#__PURE__*/function (_LitElement) {
11206
11157
  }, {
11207
11158
  key: "render",
11208
11159
  value: function render() {
11209
- return (0,lit_element__WEBPACK_IMPORTED_MODULE_13__.html)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <div class=\"ia-bookreader\">\n <ia-item-navigator\n ?viewportInFullscreen=", "\n .basehost=", "\n .item=", "\n .modal=", "\n .loaded=", "\n .sharedObserver=", "\n ?signedIn=", "\n .menuShortcuts=", "\n .menuContents=", "\n >\n <div slot=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <div slot=\"main\">\n <book-navigator\n .modal=", "\n .baseHost=", "\n .itemMD=", "\n ?signedIn=", "\n ?sideMenuOpen=", "\n .sharedObserver=", "\n @ViewportInFullScreen=", "\n @loadingStateUpdated=", "\n @updateSideMenu=", "\n @menuUpdated=", "\n @menuShortcutsUpdated=", "\n >\n <div slot=\"main\">\n <slot name=\"main\"></slot>\n </div>\n </book-navigator>\n </div>\n </ia-item-navigator>\n </div>\n "])), this.fullscreen, this.baseHost, this.item, this.modal, this.loaded, this.sharedObserver, this.signedIn, this.menuShortcuts, this.menuContents, this.modal, this.baseHost, this.item, this.signedIn, this.menuOpened, this.sharedObserver, this.manageFullscreen, this.loadingStateUpdated, this.manageSideMenuEvents, this.setMenuContents, this.setMenuShortcuts);
11160
+ return (0,lit_element__WEBPACK_IMPORTED_MODULE_13__.html)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <div class=\"main-component\">\n <ia-item-navigator\n ?viewportInFullscreen=", "\n .basehost=", "\n .item=", "\n .modal=", "\n .loaded=", "\n .sharedObserver=", "\n ?signedIn=", "\n .menuShortcuts=", "\n .menuContents=", "\n >\n <div slot=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <div slot=\"main\">\n <book-navigator\n .modal=", "\n .baseHost=", "\n .itemMD=", "\n ?signedIn=", "\n ?sideMenuOpen=", "\n .sharedObserver=", "\n @ViewportInFullScreen=", "\n @loadingStateUpdated=", "\n @updateSideMenu=", "\n @menuUpdated=", "\n @menuShortcutsUpdated=", "\n >\n <div slot=\"main\">\n <slot name=\"main\"></slot>\n </div>\n </book-navigator>\n </div>\n </ia-item-navigator>\n </div>\n "])), this.fullscreen, this.baseHost, this.item, this.modal, this.loaded, this.sharedObserver, this.signedIn, this.menuShortcuts, this.menuContents, this.modal, this.baseHost, this.item, this.signedIn, this.menuOpened, this.sharedObserver, this.manageFullscreen, this.loadingStateUpdated, this.manageSideMenuEvents, this.setMenuContents, this.setMenuShortcuts);
11210
11161
  }
11211
11162
  }], [{
11212
11163
  key: "properties",
@@ -11248,7 +11199,7 @@ var IaBookReader = /*#__PURE__*/function (_LitElement) {
11248
11199
  }, {
11249
11200
  key: "styles",
11250
11201
  get: function get() {
11251
- return (0,lit_element__WEBPACK_IMPORTED_MODULE_13__.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n :host {\n display: block;\n height: inherit;\n min-height: inherit;\n --primaryBGColor: var(--black, #000);\n --secondaryBGColor: #222;\n --tertiaryBGColor: #333;\n --primaryTextColor: var(--white, #fff);\n --primaryCTAFill: #194880;\n --primaryCTABorder: #c5d1df;\n --secondaryCTAFill: #333;\n --secondaryCTABorder: #999;\n --primaryErrorCTAFill: #e51c26;\n --primaryErrorCTABorder: #f8c6c8;\n }\n\n :host([fullscreen]),\n ia-item-navigator[viewportinfullscreen] {\n position: fixed;\n inset: 0;\n height: 100%;\n min-height: unset;\n }\n\n div[slot=\"main\"],\n div[slot=\"main\"] > * {\n height: inherit;\n }\n\n slot {\n display: block;\n }\n\n .ia-bookreader {\n background-color: var(--primaryBGColor);\n position: relative;\n min-height: inherit;\n height: inherit;\n }\n\n ia-item-navigator {\n min-height: var(--br-height, inherit);\n height: var(--br-height, inherit);\n display: block;\n width: 100%;\n color: var(--primaryTextColor);\n --menuButtonLabelDisplay: block;\n --menuWidth: 320px;\n --menuSliderBg: var(--secondaryBGColor);\n --activeButtonBg: var(--tertiaryBGColor);\n --subpanelRightBorderColor: var(--secondaryCTABorder);\n --animationTiming: 100ms;\n --iconFillColor: var(--primaryTextColor);\n --iconStrokeColor: var(--primaryTextColor);\n --menuSliderHeaderIconHeight: 2rem;\n --menuSliderHeaderIconWidth: 2rem;\n --iconWidth: 2.4rem;\n --iconHeight: 2.4rem;\n --shareLinkColor: var(--primaryTextColor);\n --shareIconBorder: var(--primaryTextColor);\n --shareIconBg: var(--secondaryBGColor);\n --activityIndicatorLoadingDotColor: var(--primaryTextColor);\n --activityIndicatorLoadingRingColor: var(--primaryTextColor);\n }\n "])));
11202
+ return (0,lit_element__WEBPACK_IMPORTED_MODULE_13__.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n :host {\n display: block;\n --primaryBGColor: var(--black, #000);\n --secondaryBGColor: #222;\n --tertiaryBGColor: #333;\n --primaryTextColor: var(--white, #fff);\n --primaryCTAFill: #194880;\n --primaryCTABorder: #c5d1df;\n --secondaryCTAFill: #333;\n --secondaryCTABorder: #999;\n --primaryErrorCTAFill: #e51c26;\n --primaryErrorCTABorder: #f8c6c8;\n background-color: var(--primaryBGColor);\n position: relative;\n }\n\n :host([fullscreen]),\n ia-item-navigator[viewportinfullscreen] {\n position: fixed;\n inset: 0;\n height: 100%;\n min-height: unset;\n }\n\n .main-component {\n height: 100%;\n width: 100%;\n min-height: inherit;\n }\n\n div[slot=\"main\"] {\n display: flex;\n width: 100%;\n }\n\n slot[name=\"main\"] {\n flex: 1;\n }\n\n slot {\n display: block;\n }\n\n ia-item-navigator {\n min-height: var(--br-height, inherit);\n height: var(--br-height, inherit);\n display: block;\n width: 100%;\n color: var(--primaryTextColor);\n --menuButtonLabelDisplay: block;\n --menuWidth: 320px;\n --menuSliderBg: var(--secondaryBGColor);\n --activeButtonBg: var(--tertiaryBGColor);\n --subpanelRightBorderColor: var(--secondaryCTABorder);\n --animationTiming: 100ms;\n --iconFillColor: var(--primaryTextColor);\n --iconStrokeColor: var(--primaryTextColor);\n --menuSliderHeaderIconHeight: 2rem;\n --menuSliderHeaderIconWidth: 2rem;\n --iconWidth: 2.4rem;\n --iconHeight: 2.4rem;\n --shareLinkColor: var(--primaryTextColor);\n --shareIconBorder: var(--primaryTextColor);\n --shareIconBg: var(--secondaryBGColor);\n --activityIndicatorLoadingDotColor: var(--primaryTextColor);\n --activityIndicatorLoadingRingColor: var(--primaryTextColor);\n }\n "])));
11252
11203
  }
11253
11204
  }]);
11254
11205
 
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+
15
+ /**
16
+ * @license
17
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
18
+ * This code may only be used under the BSD style license found at
19
+ * http://polymer.github.io/LICENSE.txt
20
+ * The complete set of authors may be found at
21
+ * http://polymer.github.io/AUTHORS.txt
22
+ * The complete set of contributors may be found at
23
+ * http://polymer.github.io/CONTRIBUTORS.txt
24
+ * Code distributed by Google as part of the polymer project is also
25
+ * subject to an additional IP rights grant found at
26
+ * http://polymer.github.io/PATENTS.txt
27
+ */
28
+
29
+ /**
30
+ * @license
31
+ * Copyright 2017 Google LLC
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
34
+
35
+ /**
36
+ * @license
37
+ * Copyright 2019 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */