@internetarchive/bookreader 5.0.0-116 → 5.0.0-118-alpha1

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 (205) hide show
  1. package/README.md +3 -1
  2. package/package.json +35 -31
  3. package/src/BookReader.js +16 -0
  4. package/src/css/_TextSelection.scss +51 -18
  5. package/src/plugins/plugin.chapters.js +8 -4
  6. package/src/plugins/plugin.iframe.js +36 -37
  7. package/src/plugins/plugin.text_selection.js +36 -11
  8. package/src/plugins/search/plugin.search.js +2 -8
  9. package/src/plugins/tts/plugin.tts.js +27 -8
  10. package/src/util/TextSelectionManager.js +53 -8
  11. package/src/util/dom.js +88 -0
  12. package/BookReader/474.js +0 -2
  13. package/BookReader/474.js.map +0 -1
  14. package/BookReader/BookReader.css +0 -2425
  15. package/BookReader/BookReader.js +0 -3
  16. package/BookReader/BookReader.js.LICENSE.txt +0 -72
  17. package/BookReader/BookReader.js.map +0 -1
  18. package/BookReader/bergamot-translator-worker.js +0 -2966
  19. package/BookReader/bergamot-translator-worker.wasm +0 -0
  20. package/BookReader/hypothesis/LICENSE +0 -50
  21. package/BookReader/hypothesis/README.md +0 -55
  22. package/BookReader/hypothesis/build/boot.js +0 -1
  23. package/BookReader/hypothesis/build/manifest.json +0 -20
  24. package/BookReader/hypothesis/build/scripts/annotator.bundle.js +0 -184
  25. package/BookReader/hypothesis/build/scripts/annotator.bundle.js.map +0 -1
  26. package/BookReader/hypothesis/build/scripts/sidebar.bundle.js +0 -798
  27. package/BookReader/hypothesis/build/scripts/sidebar.bundle.js.map +0 -1
  28. package/BookReader/hypothesis/build/scripts/ui-playground.bundle.js +0 -711
  29. package/BookReader/hypothesis/build/scripts/ui-playground.bundle.js.map +0 -1
  30. package/BookReader/hypothesis/build/styles/annotator.css +0 -2235
  31. package/BookReader/hypothesis/build/styles/annotator.css.map +0 -1
  32. package/BookReader/hypothesis/build/styles/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  33. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  34. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  35. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  36. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  37. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Bold.woff2 +0 -0
  38. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  39. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Italic.woff2 +0 -0
  40. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Regular.woff2 +0 -0
  41. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  42. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Math-Italic.woff2 +0 -0
  43. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  44. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  45. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  46. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Script-Regular.woff2 +0 -0
  47. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  48. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  49. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  50. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  51. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  52. package/BookReader/hypothesis/build/styles/highlights.css +0 -2
  53. package/BookReader/hypothesis/build/styles/highlights.css.map +0 -1
  54. package/BookReader/hypothesis/build/styles/katex.min.css +0 -2
  55. package/BookReader/hypothesis/build/styles/katex.min.css.map +0 -1
  56. package/BookReader/hypothesis/build/styles/pdfjs-overrides.css +0 -2
  57. package/BookReader/hypothesis/build/styles/pdfjs-overrides.css.map +0 -1
  58. package/BookReader/hypothesis/build/styles/sidebar.css +0 -2731
  59. package/BookReader/hypothesis/build/styles/sidebar.css.map +0 -1
  60. package/BookReader/hypothesis/build/styles/ui-playground.css +0 -2659
  61. package/BookReader/hypothesis/build/styles/ui-playground.css.map +0 -1
  62. package/BookReader/hypothesis/package.json +0 -126
  63. package/BookReader/ia-bookreader-bundle.js +0 -1886
  64. package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +0 -19
  65. package/BookReader/ia-bookreader-bundle.js.map +0 -1
  66. package/BookReader/icons/1up.svg +0 -1
  67. package/BookReader/icons/2up.svg +0 -1
  68. package/BookReader/icons/advance.svg +0 -3
  69. package/BookReader/icons/chevron-right.svg +0 -1
  70. package/BookReader/icons/close-circle-dark.svg +0 -1
  71. package/BookReader/icons/close-circle.svg +0 -1
  72. package/BookReader/icons/fullscreen.svg +0 -1
  73. package/BookReader/icons/fullscreen_exit.svg +0 -1
  74. package/BookReader/icons/hamburger.svg +0 -1
  75. package/BookReader/icons/left-arrow.svg +0 -1
  76. package/BookReader/icons/magnify-minus.svg +0 -1
  77. package/BookReader/icons/magnify-plus.svg +0 -1
  78. package/BookReader/icons/magnify.svg +0 -1
  79. package/BookReader/icons/pause.svg +0 -1
  80. package/BookReader/icons/play.svg +0 -1
  81. package/BookReader/icons/playback-speed.svg +0 -1
  82. package/BookReader/icons/read-aloud.svg +0 -1
  83. package/BookReader/icons/review.svg +0 -3
  84. package/BookReader/icons/slider-toggle.svg +0 -1
  85. package/BookReader/icons/thumbnails.svg +0 -1
  86. package/BookReader/icons/voice.svg +0 -1
  87. package/BookReader/icons/volume-full.svg +0 -1
  88. package/BookReader/images/BRicons.png +0 -0
  89. package/BookReader/images/BRicons.svg +0 -5
  90. package/BookReader/images/BRicons_ia.png +0 -0
  91. package/BookReader/images/back_pages.png +0 -0
  92. package/BookReader/images/book_bottom_icon.png +0 -0
  93. package/BookReader/images/book_down_icon.png +0 -0
  94. package/BookReader/images/book_left_icon.png +0 -0
  95. package/BookReader/images/book_leftmost_icon.png +0 -0
  96. package/BookReader/images/book_right_icon.png +0 -0
  97. package/BookReader/images/book_rightmost_icon.png +0 -0
  98. package/BookReader/images/book_top_icon.png +0 -0
  99. package/BookReader/images/book_up_icon.png +0 -0
  100. package/BookReader/images/books_graphic.svg +0 -1
  101. package/BookReader/images/booksplit.png +0 -0
  102. package/BookReader/images/control_pause_icon.png +0 -0
  103. package/BookReader/images/control_play_icon.png +0 -0
  104. package/BookReader/images/embed_icon.png +0 -0
  105. package/BookReader/images/hypothesis.ico +0 -0
  106. package/BookReader/images/icon-home-ia.png +0 -0
  107. package/BookReader/images/icon_OL-logo-xs.png +0 -0
  108. package/BookReader/images/icon_alert-xs.png +0 -0
  109. package/BookReader/images/icon_book.svg +0 -1
  110. package/BookReader/images/icon_bookmark.svg +0 -1
  111. package/BookReader/images/icon_close-pop.png +0 -0
  112. package/BookReader/images/icon_download.png +0 -0
  113. package/BookReader/images/icon_experiment.svg +0 -1
  114. package/BookReader/images/icon_gear.svg +0 -1
  115. package/BookReader/images/icon_hamburger.svg +0 -1
  116. package/BookReader/images/icon_home.png +0 -0
  117. package/BookReader/images/icon_home.svg +0 -1
  118. package/BookReader/images/icon_home_ia.png +0 -0
  119. package/BookReader/images/icon_indicator.png +0 -0
  120. package/BookReader/images/icon_info.svg +0 -1
  121. package/BookReader/images/icon_one_page.svg +0 -1
  122. package/BookReader/images/icon_pause.svg +0 -1
  123. package/BookReader/images/icon_play.svg +0 -1
  124. package/BookReader/images/icon_playback-rate.svg +0 -1
  125. package/BookReader/images/icon_return.png +0 -0
  126. package/BookReader/images/icon_search_button.svg +0 -1
  127. package/BookReader/images/icon_share.svg +0 -1
  128. package/BookReader/images/icon_skip-ahead.svg +0 -1
  129. package/BookReader/images/icon_skip-back.svg +0 -2
  130. package/BookReader/images/icon_speaker.svg +0 -1
  131. package/BookReader/images/icon_speaker_open.svg +0 -1
  132. package/BookReader/images/icon_thumbnails.svg +0 -1
  133. package/BookReader/images/icon_toc.svg +0 -1
  134. package/BookReader/images/icon_two_pages.svg +0 -1
  135. package/BookReader/images/icon_zoomer.png +0 -0
  136. package/BookReader/images/loading.gif +0 -0
  137. package/BookReader/images/logo_icon.png +0 -0
  138. package/BookReader/images/marker_chap-off.png +0 -0
  139. package/BookReader/images/marker_chap-off.svg +0 -1
  140. package/BookReader/images/marker_chap-off_ia.png +0 -0
  141. package/BookReader/images/marker_chap-on.png +0 -0
  142. package/BookReader/images/marker_chap-on.svg +0 -1
  143. package/BookReader/images/marker_srch-on.svg +0 -1
  144. package/BookReader/images/marker_srchchap-off.png +0 -0
  145. package/BookReader/images/marker_srchchap-on.png +0 -0
  146. package/BookReader/images/nav_control-dn.png +0 -0
  147. package/BookReader/images/nav_control-dn_ia.png +0 -0
  148. package/BookReader/images/nav_control-up.png +0 -0
  149. package/BookReader/images/nav_control-up_ia.png +0 -0
  150. package/BookReader/images/nav_control.png +0 -0
  151. package/BookReader/images/one_page_mode_icon.png +0 -0
  152. package/BookReader/images/paper-badge.png +0 -0
  153. package/BookReader/images/print_icon.png +0 -0
  154. package/BookReader/images/progressbar.gif +0 -0
  155. package/BookReader/images/right_edges.png +0 -0
  156. package/BookReader/images/slider.png +0 -0
  157. package/BookReader/images/slider_ia.png +0 -0
  158. package/BookReader/images/thumbnail_mode_icon.png +0 -0
  159. package/BookReader/images/translate.svg +0 -1
  160. package/BookReader/images/transparent.png +0 -0
  161. package/BookReader/images/two_page_mode_icon.png +0 -0
  162. package/BookReader/images/unviewable_page.png +0 -0
  163. package/BookReader/images/zoom_in_icon.png +0 -0
  164. package/BookReader/images/zoom_out_icon.png +0 -0
  165. package/BookReader/jquery-3.js +0 -2
  166. package/BookReader/jquery-3.js.LICENSE.txt +0 -24
  167. package/BookReader/plugins/plugin.archive_analytics.js +0 -2
  168. package/BookReader/plugins/plugin.archive_analytics.js.map +0 -1
  169. package/BookReader/plugins/plugin.autoplay.js +0 -2
  170. package/BookReader/plugins/plugin.autoplay.js.map +0 -1
  171. package/BookReader/plugins/plugin.chapters.js +0 -23
  172. package/BookReader/plugins/plugin.chapters.js.LICENSE.txt +0 -1
  173. package/BookReader/plugins/plugin.chapters.js.map +0 -1
  174. package/BookReader/plugins/plugin.experiments.js +0 -3
  175. package/BookReader/plugins/plugin.experiments.js.LICENSE.txt +0 -1
  176. package/BookReader/plugins/plugin.experiments.js.map +0 -1
  177. package/BookReader/plugins/plugin.iframe.js +0 -2
  178. package/BookReader/plugins/plugin.iframe.js.map +0 -1
  179. package/BookReader/plugins/plugin.iiif.js +0 -2
  180. package/BookReader/plugins/plugin.iiif.js.map +0 -1
  181. package/BookReader/plugins/plugin.resume.js +0 -2
  182. package/BookReader/plugins/plugin.resume.js.map +0 -1
  183. package/BookReader/plugins/plugin.search.js +0 -3
  184. package/BookReader/plugins/plugin.search.js.LICENSE.txt +0 -1
  185. package/BookReader/plugins/plugin.search.js.map +0 -1
  186. package/BookReader/plugins/plugin.text_selection.js +0 -45
  187. package/BookReader/plugins/plugin.text_selection.js.LICENSE.txt +0 -1
  188. package/BookReader/plugins/plugin.text_selection.js.map +0 -1
  189. package/BookReader/plugins/plugin.translate.js +0 -179
  190. package/BookReader/plugins/plugin.translate.js.LICENSE.txt +0 -1
  191. package/BookReader/plugins/plugin.translate.js.map +0 -1
  192. package/BookReader/plugins/plugin.tts.js +0 -3
  193. package/BookReader/plugins/plugin.tts.js.LICENSE.txt +0 -29
  194. package/BookReader/plugins/plugin.tts.js.map +0 -1
  195. package/BookReader/plugins/plugin.url.js +0 -2
  196. package/BookReader/plugins/plugin.url.js.map +0 -1
  197. package/BookReader/plugins/plugin.vendor-fullscreen.js +0 -2
  198. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +0 -1
  199. package/BookReader/plugins/translator-worker.js +0 -2
  200. package/BookReader/plugins/translator-worker.js.map +0 -1
  201. package/BookReader/silence.mp3 +0 -0
  202. package/BookReader/translator-worker.js +0 -475
  203. package/BookReader/webcomponents-bundle.js +0 -3
  204. package/BookReader/webcomponents-bundle.js.LICENSE.txt +0 -9
  205. package/BookReader/webcomponents-bundle.js.map +0 -1
@@ -1,72 +0,0 @@
1
- /*!
2
- Colorbox 1.6.4
3
- license: MIT
4
- http://www.jacklmoore.com/colorbox
5
- */
6
-
7
- /*!
8
- * jQuery UI Keycode 1.12.1
9
- * http://jqueryui.com
10
- *
11
- * Copyright jQuery Foundation and other contributors
12
- * Released under the MIT license.
13
- * http://jquery.org/license
14
- */
15
-
16
- /*!
17
- * jQuery UI Mouse 1.12.1
18
- * http://jqueryui.com
19
- *
20
- * Copyright jQuery Foundation and other contributors
21
- * Released under the MIT license.
22
- * http://jquery.org/license
23
- */
24
-
25
- /*!
26
- * jQuery UI Slider 1.12.1
27
- * http://jqueryui.com
28
- *
29
- * Copyright jQuery Foundation and other contributors
30
- * Released under the MIT license.
31
- * http://jquery.org/license
32
- */
33
-
34
- /*!
35
- * jQuery UI Touch Punch 0.2.3
36
- *
37
- * Copyright 2011–2014, Dave Furfero
38
- * Dual licensed under the MIT or GPL Version 2 licenses.
39
- *
40
- * Depends:
41
- * jquery.ui.widget.js
42
- * jquery.ui.mouse.js
43
- */
44
-
45
- /*!
46
- * jQuery UI Widget 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
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
55
-
56
- /**
57
- * @license
58
- * Copyright 2017 Google LLC
59
- * SPDX-License-Identifier: BSD-3-Clause
60
- */
61
-
62
- /**
63
- * @license
64
- * Copyright 2018 Google LLC
65
- * SPDX-License-Identifier: BSD-3-Clause
66
- */
67
-
68
- /**
69
- * @license
70
- * Copyright 2019 Google LLC
71
- * SPDX-License-Identifier: BSD-3-Clause
72
- */