@internetarchive/bookreader 5.0.0-95 → 5.0.0-96

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 (305) hide show
  1. package/BookReader/BookReader.css +2251 -0
  2. package/BookReader/BookReader.js +3 -0
  3. package/BookReader/BookReader.js.LICENSE.txt +72 -0
  4. package/BookReader/BookReader.js.map +1 -0
  5. package/BookReader/hypothesis/LICENSE +50 -0
  6. package/BookReader/hypothesis/README.md +55 -0
  7. package/BookReader/hypothesis/build/boot.js +1 -0
  8. package/BookReader/hypothesis/build/manifest.json +20 -0
  9. package/BookReader/hypothesis/build/scripts/annotator.bundle.js +184 -0
  10. package/BookReader/hypothesis/build/scripts/annotator.bundle.js.map +1 -0
  11. package/BookReader/hypothesis/build/scripts/sidebar.bundle.js +798 -0
  12. package/BookReader/hypothesis/build/scripts/sidebar.bundle.js.map +1 -0
  13. package/BookReader/hypothesis/build/scripts/ui-playground.bundle.js +711 -0
  14. package/BookReader/hypothesis/build/scripts/ui-playground.bundle.js.map +1 -0
  15. package/BookReader/hypothesis/build/styles/annotator.css +2235 -0
  16. package/BookReader/hypothesis/build/styles/annotator.css.map +1 -0
  17. package/BookReader/hypothesis/build/styles/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  18. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  19. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  20. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  21. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  22. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Bold.woff2 +0 -0
  23. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  24. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Italic.woff2 +0 -0
  25. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Regular.woff2 +0 -0
  26. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  27. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Math-Italic.woff2 +0 -0
  28. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  29. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  30. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  31. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Script-Regular.woff2 +0 -0
  32. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  33. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  34. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  35. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  36. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  37. package/BookReader/hypothesis/build/styles/highlights.css +2 -0
  38. package/BookReader/hypothesis/build/styles/highlights.css.map +1 -0
  39. package/BookReader/hypothesis/build/styles/katex.min.css +2 -0
  40. package/BookReader/hypothesis/build/styles/katex.min.css.map +1 -0
  41. package/BookReader/hypothesis/build/styles/pdfjs-overrides.css +2 -0
  42. package/BookReader/hypothesis/build/styles/pdfjs-overrides.css.map +1 -0
  43. package/BookReader/hypothesis/build/styles/sidebar.css +2731 -0
  44. package/BookReader/hypothesis/build/styles/sidebar.css.map +1 -0
  45. package/BookReader/hypothesis/build/styles/ui-playground.css +2659 -0
  46. package/BookReader/hypothesis/build/styles/ui-playground.css.map +1 -0
  47. package/BookReader/hypothesis/package.json +126 -0
  48. package/BookReader/ia-bookreader-bundle.js +1782 -0
  49. package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +7 -0
  50. package/BookReader/ia-bookreader-bundle.js.map +1 -0
  51. package/BookReader/icons/1up.svg +1 -0
  52. package/BookReader/icons/2up.svg +1 -0
  53. package/BookReader/icons/advance.svg +3 -0
  54. package/BookReader/icons/chevron-right.svg +1 -0
  55. package/BookReader/icons/close-circle-dark.svg +1 -0
  56. package/BookReader/icons/close-circle.svg +1 -0
  57. package/BookReader/icons/fullscreen.svg +1 -0
  58. package/BookReader/icons/fullscreen_exit.svg +1 -0
  59. package/BookReader/icons/hamburger.svg +1 -0
  60. package/BookReader/icons/left-arrow.svg +1 -0
  61. package/BookReader/icons/magnify-minus.svg +1 -0
  62. package/BookReader/icons/magnify-plus.svg +1 -0
  63. package/BookReader/icons/magnify.svg +1 -0
  64. package/BookReader/icons/pause.svg +1 -0
  65. package/BookReader/icons/play.svg +1 -0
  66. package/BookReader/icons/playback-speed.svg +1 -0
  67. package/BookReader/icons/read-aloud.svg +1 -0
  68. package/BookReader/icons/review.svg +3 -0
  69. package/BookReader/icons/thumbnails.svg +1 -0
  70. package/BookReader/icons/voice.svg +1 -0
  71. package/BookReader/icons/volume-full.svg +1 -0
  72. package/BookReader/images/BRicons.png +0 -0
  73. package/BookReader/images/BRicons.svg +5 -0
  74. package/BookReader/images/BRicons_ia.png +0 -0
  75. package/BookReader/images/back_pages.png +0 -0
  76. package/BookReader/images/book_bottom_icon.png +0 -0
  77. package/BookReader/images/book_down_icon.png +0 -0
  78. package/BookReader/images/book_left_icon.png +0 -0
  79. package/BookReader/images/book_leftmost_icon.png +0 -0
  80. package/BookReader/images/book_right_icon.png +0 -0
  81. package/BookReader/images/book_rightmost_icon.png +0 -0
  82. package/BookReader/images/book_top_icon.png +0 -0
  83. package/BookReader/images/book_up_icon.png +0 -0
  84. package/BookReader/images/books_graphic.svg +1 -0
  85. package/BookReader/images/booksplit.png +0 -0
  86. package/BookReader/images/control_pause_icon.png +0 -0
  87. package/BookReader/images/control_play_icon.png +0 -0
  88. package/BookReader/images/embed_icon.png +0 -0
  89. package/BookReader/images/hypothesis.ico +0 -0
  90. package/BookReader/images/icon-home-ia.png +0 -0
  91. package/BookReader/images/icon_OL-logo-xs.png +0 -0
  92. package/BookReader/images/icon_alert-xs.png +0 -0
  93. package/BookReader/images/icon_book.svg +1 -0
  94. package/BookReader/images/icon_bookmark.svg +1 -0
  95. package/BookReader/images/icon_close-pop.png +0 -0
  96. package/BookReader/images/icon_download.png +0 -0
  97. package/BookReader/images/icon_gear.svg +1 -0
  98. package/BookReader/images/icon_hamburger.svg +1 -0
  99. package/BookReader/images/icon_home.png +0 -0
  100. package/BookReader/images/icon_home.svg +1 -0
  101. package/BookReader/images/icon_home_ia.png +0 -0
  102. package/BookReader/images/icon_indicator.png +0 -0
  103. package/BookReader/images/icon_info.svg +1 -0
  104. package/BookReader/images/icon_one_page.svg +1 -0
  105. package/BookReader/images/icon_pause.svg +1 -0
  106. package/BookReader/images/icon_play.svg +1 -0
  107. package/BookReader/images/icon_playback-rate.svg +1 -0
  108. package/BookReader/images/icon_return.png +0 -0
  109. package/BookReader/images/icon_search_button.svg +1 -0
  110. package/BookReader/images/icon_share.svg +1 -0
  111. package/BookReader/images/icon_skip-ahead.svg +1 -0
  112. package/BookReader/images/icon_skip-back.svg +2 -0
  113. package/BookReader/images/icon_speaker.svg +1 -0
  114. package/BookReader/images/icon_speaker_open.svg +1 -0
  115. package/BookReader/images/icon_thumbnails.svg +1 -0
  116. package/BookReader/images/icon_toc.svg +1 -0
  117. package/BookReader/images/icon_two_pages.svg +1 -0
  118. package/BookReader/images/icon_zoomer.png +0 -0
  119. package/BookReader/images/loading.gif +0 -0
  120. package/BookReader/images/logo_icon.png +0 -0
  121. package/BookReader/images/marker_chap-off.png +0 -0
  122. package/BookReader/images/marker_chap-off.svg +1 -0
  123. package/BookReader/images/marker_chap-off_ia.png +0 -0
  124. package/BookReader/images/marker_chap-on.png +0 -0
  125. package/BookReader/images/marker_chap-on.svg +1 -0
  126. package/BookReader/images/marker_srch-on.svg +1 -0
  127. package/BookReader/images/marker_srchchap-off.png +0 -0
  128. package/BookReader/images/marker_srchchap-on.png +0 -0
  129. package/BookReader/images/nav_control-dn.png +0 -0
  130. package/BookReader/images/nav_control-dn_ia.png +0 -0
  131. package/BookReader/images/nav_control-up.png +0 -0
  132. package/BookReader/images/nav_control-up_ia.png +0 -0
  133. package/BookReader/images/nav_control.png +0 -0
  134. package/BookReader/images/one_page_mode_icon.png +0 -0
  135. package/BookReader/images/paper-badge.png +0 -0
  136. package/BookReader/images/print_icon.png +0 -0
  137. package/BookReader/images/progressbar.gif +0 -0
  138. package/BookReader/images/right_edges.png +0 -0
  139. package/BookReader/images/slider.png +0 -0
  140. package/BookReader/images/slider_ia.png +0 -0
  141. package/BookReader/images/thumbnail_mode_icon.png +0 -0
  142. package/BookReader/images/transparent.png +0 -0
  143. package/BookReader/images/two_page_mode_icon.png +0 -0
  144. package/BookReader/images/unviewable_page.png +0 -0
  145. package/BookReader/images/zoom_in_icon.png +0 -0
  146. package/BookReader/images/zoom_out_icon.png +0 -0
  147. package/BookReader/jquery-3.js +2 -0
  148. package/BookReader/jquery-3.js.LICENSE.txt +24 -0
  149. package/BookReader/plugins/plugin.archive_analytics.js +2 -0
  150. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -0
  151. package/BookReader/plugins/plugin.autoplay.js +2 -0
  152. package/BookReader/plugins/plugin.autoplay.js.map +1 -0
  153. package/BookReader/plugins/plugin.chapters.js +26 -0
  154. package/BookReader/plugins/plugin.chapters.js.LICENSE.txt +1 -0
  155. package/BookReader/plugins/plugin.chapters.js.map +1 -0
  156. package/BookReader/plugins/plugin.experiments.js +3 -0
  157. package/BookReader/plugins/plugin.experiments.js.LICENSE.txt +1 -0
  158. package/BookReader/plugins/plugin.experiments.js.map +1 -0
  159. package/BookReader/plugins/plugin.iframe.js +2 -0
  160. package/BookReader/plugins/plugin.iframe.js.map +1 -0
  161. package/BookReader/plugins/plugin.iiif.js +2 -0
  162. package/BookReader/plugins/plugin.iiif.js.map +1 -0
  163. package/BookReader/plugins/plugin.resume.js +2 -0
  164. package/BookReader/plugins/plugin.resume.js.map +1 -0
  165. package/BookReader/plugins/plugin.search.js +3 -0
  166. package/BookReader/plugins/plugin.search.js.LICENSE.txt +1 -0
  167. package/BookReader/plugins/plugin.search.js.map +1 -0
  168. package/BookReader/plugins/plugin.text_selection.js +3 -0
  169. package/BookReader/plugins/plugin.text_selection.js.LICENSE.txt +1 -0
  170. package/BookReader/plugins/plugin.text_selection.js.map +1 -0
  171. package/BookReader/plugins/plugin.tts.js +3 -0
  172. package/BookReader/plugins/plugin.tts.js.LICENSE.txt +29 -0
  173. package/BookReader/plugins/plugin.tts.js.map +1 -0
  174. package/BookReader/plugins/plugin.url.js +2 -0
  175. package/BookReader/plugins/plugin.url.js.map +1 -0
  176. package/BookReader/plugins/plugin.vendor-fullscreen.js +2 -0
  177. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -0
  178. package/BookReader/webcomponents-bundle.js +3 -0
  179. package/BookReader/webcomponents-bundle.js.LICENSE.txt +9 -0
  180. package/BookReader/webcomponents-bundle.js.map +1 -0
  181. package/package.json +6 -1
  182. package/src/BookReader/BookModel.js +564 -0
  183. package/src/BookReader/DragScrollable.js +233 -0
  184. package/src/BookReader/ImageCache.js +149 -0
  185. package/src/BookReader/Mode1Up.js +110 -0
  186. package/src/BookReader/Mode1UpLit.js +388 -0
  187. package/src/BookReader/Mode2Up.js +107 -0
  188. package/src/BookReader/Mode2UpLit.js +777 -0
  189. package/src/BookReader/ModeCoordinateSpace.js +29 -0
  190. package/src/BookReader/ModeSmoothZoom.js +312 -0
  191. package/src/BookReader/ModeThumb.js +344 -0
  192. package/src/BookReader/Navbar/Navbar.js +355 -0
  193. package/src/BookReader/PageContainer.js +172 -0
  194. package/src/BookReader/ReduceSet.js +26 -0
  195. package/src/BookReader/Toolbar/Toolbar.js +362 -0
  196. package/src/BookReader/events.js +19 -0
  197. package/src/BookReader/options.js +387 -0
  198. package/src/BookReader/utils/HTMLDimensionsCacher.js +44 -0
  199. package/src/BookReader/utils/ScrollClassAdder.js +31 -0
  200. package/src/BookReader/utils/SelectionObserver.js +45 -0
  201. package/src/BookReader/utils/classes.js +36 -0
  202. package/src/BookReader/utils.js +313 -0
  203. package/.eslintrc.cjs +0 -51
  204. package/.gitattributes +0 -2
  205. package/.github/ISSUE_TEMPLATE/bug.md +0 -32
  206. package/.github/ISSUE_TEMPLATE/feature-request.md +0 -30
  207. package/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +0 -15
  208. package/.github/workflows/node.js.yml +0 -102
  209. package/.github/workflows/npm-publish.yml +0 -23
  210. package/.testcaferc.cjs +0 -10
  211. package/BookReaderDemo/BookReaderDemo.css +0 -40
  212. package/BookReaderDemo/BookReaderJSAdvanced.js +0 -112
  213. package/BookReaderDemo/BookReaderJSSimple.js +0 -56
  214. package/BookReaderDemo/IADemoBr.js +0 -149
  215. package/BookReaderDemo/assets/v5/Bookreader-logo-cool-grad.svg +0 -1
  216. package/BookReaderDemo/assets/v5/Bookreader-logo-flat.svg +0 -1
  217. package/BookReaderDemo/assets/v5/Bookreader-logo-hex-cool-grad.png +0 -0
  218. package/BookReaderDemo/assets/v5/Bookreader-logo-hex-flat.png +0 -0
  219. package/BookReaderDemo/assets/v5/Bookreader-logo-lines.png +0 -0
  220. package/BookReaderDemo/assets/v5/Bookreader-logo-lines.svg +0 -1
  221. package/BookReaderDemo/assets/v5/Bookreader-logo-warm.svg +0 -1
  222. package/BookReaderDemo/assets/v5/bookreader-logo-renders@1x.png +0 -0
  223. package/BookReaderDemo/assets/v5/bookreader-logo-renders@2x.png +0 -0
  224. package/BookReaderDemo/assets/v5/bookreader-v5-screenshot.png +0 -0
  225. package/BookReaderDemo/demo-advanced.html +0 -33
  226. package/BookReaderDemo/demo-embed-iframe-src.html +0 -85
  227. package/BookReaderDemo/demo-embed.html +0 -26
  228. package/BookReaderDemo/demo-fullscreen-mobile.html +0 -34
  229. package/BookReaderDemo/demo-fullscreen.html +0 -31
  230. package/BookReaderDemo/demo-iiif.html +0 -121
  231. package/BookReaderDemo/demo-internetarchive.html +0 -271
  232. package/BookReaderDemo/demo-multiple.html +0 -44
  233. package/BookReaderDemo/demo-preview-pages.html +0 -1093
  234. package/BookReaderDemo/demo-simple.html +0 -35
  235. package/BookReaderDemo/demo-vendor-fullscreen.html +0 -34
  236. package/BookReaderDemo/ia-multiple-volumes-manifest.js +0 -169
  237. package/BookReaderDemo/immersion-1up.html +0 -64
  238. package/BookReaderDemo/immersion-mode.html +0 -33
  239. package/BookReaderDemo/toggle_controls.html +0 -54
  240. package/BookReaderDemo/view_mode.html +0 -40
  241. package/BookReaderDemo/viewmode-cycle.html +0 -40
  242. package/CHANGELOG.md +0 -1087
  243. package/CONTRIBUTING.md +0 -7
  244. package/babel.config.cjs +0 -20
  245. package/codecov.yml +0 -23
  246. package/index.html +0 -34
  247. package/netlify.toml +0 -9
  248. package/renovate.json +0 -52
  249. package/screenshot.png +0 -0
  250. package/scripts/postversion.js +0 -11
  251. package/scripts/preversion.js +0 -15
  252. package/scripts/version.js +0 -24
  253. package/tests/e2e/README.md +0 -112
  254. package/tests/e2e/autoplay.test.js +0 -16
  255. package/tests/e2e/base.test.js +0 -27
  256. package/tests/e2e/helpers/base.js +0 -263
  257. package/tests/e2e/helpers/debug.js +0 -13
  258. package/tests/e2e/helpers/mockSearch.js +0 -90
  259. package/tests/e2e/helpers/params.js +0 -17
  260. package/tests/e2e/helpers/rightToLeft.js +0 -23
  261. package/tests/e2e/helpers/search.js +0 -73
  262. package/tests/e2e/models/BookReader.js +0 -11
  263. package/tests/e2e/models/Navigation.js +0 -39
  264. package/tests/e2e/rightToLeft.test.js +0 -19
  265. package/tests/e2e/viewmode.test.js +0 -44
  266. package/tests/jest/BookNavigator/book-navigator.test.js +0 -653
  267. package/tests/jest/BookNavigator/bookmarks/bookmark-button.test.js +0 -43
  268. package/tests/jest/BookNavigator/bookmarks/bookmark-edit.test.js +0 -132
  269. package/tests/jest/BookNavigator/bookmarks/bookmarks-list.test.js +0 -221
  270. package/tests/jest/BookNavigator/bookmarks/ia-bookmarks.test.js +0 -45
  271. package/tests/jest/BookNavigator/downloads/downloads-provider.test.js +0 -67
  272. package/tests/jest/BookNavigator/downloads/downloads.test.js +0 -53
  273. package/tests/jest/BookNavigator/search/search-provider.test.js +0 -179
  274. package/tests/jest/BookNavigator/search/search-results.test.js +0 -289
  275. package/tests/jest/BookNavigator/sharing/sharing-provider.test.js +0 -49
  276. package/tests/jest/BookNavigator/viewable-files/viewable-files-provider.test.js +0 -80
  277. package/tests/jest/BookNavigator/visual-adjustments.test.js +0 -200
  278. package/tests/jest/BookReader.keyboard.test.js +0 -190
  279. package/tests/jest/BookReader.options.test.js +0 -47
  280. package/tests/jest/BookReader.test.js +0 -316
  281. package/tests/jest/plugins/plugin.archive_analytics.test.js +0 -20
  282. package/tests/jest/plugins/plugin.autoplay.test.js +0 -35
  283. package/tests/jest/plugins/plugin.chapters.test.js +0 -193
  284. package/tests/jest/plugins/plugin.iframe.test.js +0 -42
  285. package/tests/jest/plugins/plugin.resume.test.js +0 -85
  286. package/tests/jest/plugins/plugin.text_selection.test.js +0 -447
  287. package/tests/jest/plugins/plugin.vendor-fullscreen.test.js +0 -65
  288. package/tests/jest/plugins/search/plugin.search.test.js +0 -120
  289. package/tests/jest/plugins/search/plugin.search.view.test.js +0 -131
  290. package/tests/jest/plugins/search/utils.js +0 -25
  291. package/tests/jest/plugins/search/utils.test.js +0 -29
  292. package/tests/jest/plugins/tts/AbstractTTSEngine.test.js +0 -173
  293. package/tests/jest/plugins/tts/FestivalTTSEngine.test.js +0 -59
  294. package/tests/jest/plugins/tts/PageChunk.test.js +0 -57
  295. package/tests/jest/plugins/tts/PageChunkIterator.test.js +0 -179
  296. package/tests/jest/plugins/tts/WebTTSEngine.test.js +0 -178
  297. package/tests/jest/plugins/tts/utils.test.js +0 -74
  298. package/tests/jest/plugins/url/UrlPlugin.test.js +0 -198
  299. package/tests/jest/plugins/url/plugin.url.test.js +0 -168
  300. package/tests/jest/setup.js +0 -3
  301. package/tests/jest/util/browserSniffing.test.js +0 -62
  302. package/tests/jest/util/docCookies.test.js +0 -24
  303. package/tests/jest/util/strings.test.js +0 -63
  304. package/tests/jest/utils.js +0 -83
  305. package/webpack.config.js +0 -97
package/CHANGELOG.md DELETED
@@ -1,1087 +0,0 @@
1
- # 5.0.0-95
2
- - Breaking change: Remove BookReader/ build directory from repo @cdrini
3
- - This pattern has become increasingly rare (even jQuery is no longer doing this). If someone was relying on this somehow, you should be able to achieve the same effect using unpkg, or jsdelivr, or similar, eg:
4
- - https://unpkg.com/@internetarchive/bookreader@5.0.0-94/BookReader/BookReader.js
5
- - https://cdn.jsdelivr.net/npm/@internetarchive/bookreader@5.0.0-94/BookReader/BookReader.js
6
- - And so on.
7
-
8
- # 5.0.0-94
9
- - Refactor: Make bookreader package type: module @cdrini
10
- - Fix: Search icon being fetched from wrong path @cdrini
11
- - Refactor: Move BookReader._plugins -> BookReader.plugins , making it public @cdrini
12
- - Feature: Add length restrictions for protected text selection @cdrini
13
- - Extend BR to work correctly with Hypothesis @cdrini
14
- - Creates new experiments plugin, with a Hypothesis experiment
15
- - Adds no `bookUri` option for saving Hypothesis annotations
16
- - Adds new public HTML attributes to the PageContainer DOM, `data-index` for `PageIndex`, and `data-page-num` for `PageNumString`
17
- - Improves some of BookReader's public APIs. BookReader.bind/unbind are now deprecated in favor of BookReader.on/off
18
-
19
- # 5.0.0-93
20
- - Fix: Clicking on search result not making request_page request correctly @cdrini
21
-
22
- # 5.0.0-92
23
- - Refactor: Migrate search plugin to BookReaderPlugin system @cdrini
24
- - Breaking changes:
25
- - Search options are now nested under the plugin (eg `searchInsideUrl` → `options.plugins.search.searchInsideUrl`), and mostly no longer include the `search` prefix; specifically:
26
- - `searchInsidePreTag`, `searchInsidePostTag` → `options.plugins.search.preTag` and `postTag`
27
- - `searchInsideUrl` is now a `StringWithVars` and supports including `vars` from the root options, e.g. `searchInsideUrl: "https://{{server}}/search_endpoint?q={{query|urlencode}}"` . It also has access to the `preTag` and `postTag` from the options. Note this allows the search inside URL to now be fully customizable from the options, and is no longer hard-coded internally to Internet Archive specific logic.
28
- - `initialSearchTerm` → `options.plugins.search.initialSearchTerm`
29
- - `searchInsideProtocol` → deprecated in favour of variables in `searchInsideUrl`
30
- - Internal search related methods/properties are now nested in the `SearchPlugin` and no longer accessible from the root bookreader object. Notable exception: `br.search` is still made available for convenience.
31
- - Moved: `searchResults`, `searchXHR`, `searchView`, `cancelSearchRequest`, `BRSearchCallback`, `updateSearchHilites`, `removeSearchResults`, `removeSearchHilites`, `searchHighlightVisible`
32
-
33
-
34
- # 5.0.0-91
35
- - Refactor: Migrate ChaptersPlugin to BookReaderPlugin system @cdrini
36
- - Breaking changes:
37
- - Options moved:
38
- - `options.olHost` → `options.plugins.chapters.olHost`
39
- - `options.enableChaptersPlugin` → `options.plugins.chapters.enabled`
40
- - Note `table_of_contents` _did not_ move; that is still root-level
41
- - All chapters state/methods moved from `BookReader` to `BookReader.plugins.chapters`. Full list:
42
- - eg `BookReader._chapters*` has been moved to `BookReader.plugins.chapters._*`
43
- - See https://github.com/internetarchive/bookreader/pull/1381
44
- - Feature: TextSelectionPlugin now supports `protected` option @cdrini
45
- - Feature: New option for ChaptersPlugin for explicit `openLibraryId` @cdrini
46
- - Fix: No longer error when book ends on unviewable page @cdrini
47
- - Fix: ReadAloud no longer jumps to top of page every time it scrolls @cdrini
48
- - Fix: Fix various ReadAloud issues -- ReadAloud stuttering, not stopping, getting stuck, etc. @cdrini
49
-
50
- # 5.0.0-90
51
- - Fix: Festival TTS not working @cdrini
52
-
53
- # 5.0.0-89
54
- - Refactor: Migrate TextSelection, Autoplay, Resume, IIIF, and TTS to new BookReaderPlugin system @cdrini
55
- - Breaking changes:
56
- - Options related to these plugins are now in the `plugins` object
57
- - Methods related to these plugins are now nested, eg `br.ttsToggle` is now `br._plugins.tts.toggle`
58
- - See https://github.com/internetarchive/bookreader/pull/1374 and https://github.com/internetarchive/bookreader/pull/1376 for examples.
59
- - Feature: Add autoplay url parameter for `flipSpeed` and `flipDelay`
60
- - Feature: Add new renderPageURI option + improve image caching @cdrini
61
- - Dev: Fix failing E2E tests @cdrini
62
-
63
- # 5.0.0-88
64
- - Fix: Switch to new page number display format @pezvi
65
- - Fix: Introduce BookReaderPlugin abstraction and apply to ArchiveAnalyticsPlugin @cdrini
66
-
67
- # 5.0.0-87
68
- - Fix: turn on autoplay option @cdrini
69
-
70
- # 5.0.0-86
71
- - Fix: Make JSON requests with cookies for protected books @cdrini
72
-
73
- # 5.0.0-85
74
- - Dev: Disable JSONP requests to archive.org to make BR CSP-compatible @cdrini
75
-
76
- # 5.0.0-84
77
- - Fix: Improve/update wording for downloads @rebecca-shoptaw
78
-
79
- # 5.0.0-83
80
- - Fix: Fix typo in search-results.js @sahalbelam
81
- - Dev: Bump cache action to v4 @williamtheaker
82
- - Fix: Fix toolbar requiring SearchView.init having already been called @cdrini
83
- - Dev: Replace deprecated codecov npm package with github action @cdrini
84
- - Dev: Add eslint trailing comma rule @cdrini
85
- - Fix: Fix IIIF plugin missing last page + error when metadata unspecified @glorieux-f
86
- - Fix: Remove polyfill.io from demo files @cdrini
87
- - Dev: Update build dependencies @cdrini
88
- - Dev: Update some dev deps @cdrini
89
- - Fix: Switch to new Thorium URL @rebecca-shoptaw
90
-
91
- # 5.0.0-82
92
- - Feature: New option to control unviewable page image: `unviewablePageURI` @cdrini
93
-
94
- # 5.0.0-81
95
- - Dev: Update test dependencies @cdrini
96
- - Dev: Update build dependencies @cdrini
97
- - Fix: BookReader buttons inherit font @rebecca-shoptaw
98
- - Fix: Better visual adjustment text @rebecca-shoptaw
99
-
100
- # 5.0.0-80
101
- - Dev: Fix/modernize IIIF demo @cdrini
102
- - Dev: Fix sharing panel erroring when no IA item metadata specified @cdrini
103
-
104
- # 5.0.0-79
105
-
106
- - Fix: Firefox not scrolling to selected volume in the volume side panel @nsharma123
107
-
108
- # 5.0.0-78
109
-
110
- - Fix: Add button outline to some of the controls @cdrini
111
-
112
- # 5.0.0-77
113
-
114
- - Fix: side panels - show downloads before visual adjustments @iisa
115
-
116
- # 5.0.0-76
117
-
118
- - Fix: Update bookNavigator shortcut menu ordering @dualcnhq
119
-
120
- # 5.0.0-75
121
-
122
- - Dev: Update deps via renovatebot
123
- - Dev: Add .env file in .gitignore
124
- - Dev: Update CHANGELOG.md @eltociear
125
- - Feature: Add ToC icon if enableChapterPlugin @dualcnhq
126
-
127
- # 5.0.0-74
128
-
129
- - See 5.0.0-75
130
-
131
- # 5.0.0-73
132
-
133
- - Feature: Add `table_of_contents` option to work with chapters plugin @cdrini
134
- - Fix: Simple demos not working @xonx4l
135
- - Dev: Update test/build dependencies @cdrini
136
-
137
- # 5.0.0-72
138
-
139
- - Fix: Play/pause button out of sync with ReadAloud @sbwhitt
140
- - Fix: BookReader not loading in sandboxed iframe @cdrini
141
- - Dev: Fix noisy sentry error firing on any selection @cdrini
142
- - Dev: Update to Node 20 @cdrini
143
-
144
- # 5.0.0-71
145
-
146
- - Dev: update jest monorepo @renovate
147
- - Fix: Share & Mutliple View menu panel refactor @iisa
148
-
149
- # 5.0.0-70
150
-
151
- - Feature: Remember ReadAloud voice selection @sbwhitt
152
- - Fix: Support page numbers that require url encoding @cdrini
153
-
154
- # 5.0.0-69
155
-
156
- - Fix: Handle ppi incorrectly set to one @cdrini
157
-
158
- # 5.0.0-68
159
-
160
- - Fix: 1up zoom wrong on start/entering full screen @cdrini
161
- - Dev: BREAKING: delete `plugin.mobile_nav.js` no longer used @cdrini
162
- - Dev: Move page 1 label correction logic to BookReaderJSIA @cdrini
163
-
164
- # 5.0.0-67
165
-
166
- - Feature: Re-enable chapters plugin + migrate off mmenu @cdrini
167
- - Fix: Disable tooltips on touchscreens + fix on IA @cdrini
168
- - Dev: Remove core-js update block; issue resolved in core-js @cdrini
169
-
170
- # 5.0.0-66
171
-
172
- - Fix: Pinch zooming on iPad/iPhone, Samsung Internet @cdrini
173
-
174
- # 5.0.0-65
175
-
176
- - Dev: Remove Debug console dev helper @cdrini
177
- - Dev: Fix deno esm.sh esbuild erroring @cdrini
178
- - Dev: Update test/build deps @cdrini
179
-
180
- # 5.0.0-64
181
-
182
- - Dev: update dependencies @renovate
183
- - Dev: update build step @cdrini
184
- - Fix: Search inside option for {{{/}}} + http support @cdrini
185
-
186
- # 5.0.0-63
187
-
188
- Fix: Don't limit autoFit zoom to real world size @cdrini
189
- Dev: Update test deps @cdrini
190
-
191
- # 5.0.0-62
192
-
193
- - Fix: Make text selection work in Safari 15.4+ @cdrini
194
- - Fix: Rewrite/improvements to text selection UX @cdrini
195
- - Switches from SVG text layer to HTML text layer
196
-
197
- # 5.0.0-61
198
-
199
- - Fix: Mode2up preview pages hanging on first click @cdrini
200
- - Dev: Add analytics event for text layer page selection @cdrini
201
-
202
- # 5.0.0-60
203
-
204
- - Fix: Update modal manager to fix duplicate definitions warnings on IA @cdrini
205
- - Fix: Common Sentry error `.spread` undefined @cdrini
206
- - Fix: entering page appearing early in flip anim @cdrini
207
- - Fix: preview pages not working in 1up @cdrini
208
- - Dev: Make serve-dev not do full production babeling (This makes it waaaay easier/faster to debug things like promises) @cdrini
209
- - Dev: Log an error if search inside fails for sentry @cdrini
210
- - Dev: Make dev server support CORS to allow testing via ngrok @cdrini
211
- - Refactor: Rm redundant archive_analytics checks @cdrini
212
- - Refactor: Dissolve a-search-result.js component @cdrini
213
-
214
- # 5.0.0-59
215
-
216
- - Rewrite 2up view to use css transforms and lit @cdrini
217
- - Pretty substantial change. Lots of breaking changes to public methods.
218
-
219
- # 5.0.0-58
220
-
221
- - Fix BookReader sometimes failing to load when starting in Mode1Up @cdrini
222
- - Update testing dependencies @cdrini
223
-
224
- # 5.0.0-57
225
-
226
- - Fix - do not show Download pane when there aren't any available @iisa
227
-
228
- # 5.0.0-56
229
-
230
- - Fix DOMException in sandboxed iframe in chrome @cdrini
231
-
232
- # 5.0.0-55
233
-
234
- - Fix BookReader going to 1up in fullscreen on desktop @mheiman
235
- - Support BookReader running in sandboxed (cookie-less) iframe @cdrini
236
- - Update IA dependencies to avoid duplicate dependencies @cdrini
237
-
238
- # 5.0.0-54
239
-
240
- - Dev: Dispatch custom event from bookreader for ia-book-actions @nsharma123
241
-
242
- # 5.0.0-53
243
-
244
- - Dev: update icons & lit versions to help a.o build @iisa
245
-
246
- # 5.0.0-52
247
-
248
- # 5.0.0-51
249
-
250
- - Fix: Bookmark with subfiles was broken @nsharma123
251
- - Feature: Default 1up mode and options.defaults mode override exiting mode @nsharma123
252
-
253
- # 5.0.0-50
254
-
255
- Fix: Search results display @latonv
256
-
257
- # 5.0.0-49
258
-
259
- - Dev: remove class shims, v5 deprecations @cdrini
260
- - Dev: update dependency (@open-wc/testing-helpers) @renovate
261
- - Dev: e2e - remove ia test + export DesktopNav for external usage @iisa
262
-
263
- # 5.0.0-48
264
-
265
- - Fix: move analytics to sample bucket @iisa
266
- - Dev: update dependencies (concurrently, jest) @renovate
267
-
268
- # 5.0.0-47
269
-
270
- - Fix: XSS vulnerability in search results @latonv
271
- - Dev: Update jQuery to v3 **BREAKING** @cdrini
272
- - If you were importing `BookReader/jquery-1.10.1.js` you will need to change it to `BookReader/jquery-3.js`
273
- - Also ensure if other code was using this jquery that it works with jQuery 3!
274
- - Dev: Update testing dependencies (jest, testcafe) @renovate
275
-
276
- # 5.0.0-46
277
-
278
- Fix: Leaf positioning during RTL fliip animation @latonv
279
- Dev: dependency updates @renovate
280
- Fix: Disable contextmenu for restricted books @iisa
281
-
282
- # 5.0.0-45
283
-
284
- # 5.0.0-44
285
-
286
- Fix: dynamic `q=<term>` url parameter @iisa
287
- Dev: dependency updates @renovate
288
-
289
- # 5.0.0-43
290
-
291
- Fix: search results panel display asserted page numbers @cdrini
292
- Dev: dependency updates @renovate
293
- Dev: node-fetch update @cdrini
294
-
295
- # 5.0.0-42
296
-
297
- Dev: update testing dependencies @renovate
298
- Dev: update `<ia-item-navigator>` @iisa
299
-
300
- # 5.0.0-40
301
-
302
- Fix: Better search highlights @cdrini
303
- Dev: update lit 2 components @iisa
304
- Dev: update lit @renovate
305
-
306
- # 5.0.0-39
307
-
308
- Fix: Performance improvements to scroll/zooming when text layer is larger @cdrini
309
- Fix: Update zoom in/out icons to match iconochive glyphs @pezvi
310
- Dev: update dependencies @renovate
311
-
312
- # 5.0.0-38
313
-
314
- Dev: Add Renovate Bot @cdrini
315
- Dev: Update node-fetch @cdrini
316
- Fix: Search request promise err & fix tests @cdrini
317
- Dev: Split node workflow into different jobs @cdrini
318
- Dev: Give cache steps better names in GHA @cdrini
319
- Dev: Update concurrently + Small speedup to build & test @cdrini
320
- Dev: Renovate - Auto-update dev dependencies for minor/patch @cdrini
321
- Fix: Better MS Edge voice selection @cdrini
322
- Dev: Allow small drops in codecov coverage (< 0.5%) @cdrini
323
- Dev: Renovate - add `^@internetarchive/icon-` @cdrini
324
-
325
- # 5.0.0-37
326
-
327
- Fix: Update all `.then()` to async/await @sancodes
328
- Fix: Upgrade to Lit 2 @Aadilhassan
329
- Dev: Update to Node v16.x @duggiefresh
330
- Dev: Remove unused demo bundle @cdrini
331
- Dev: Fix README broken link for plugin directory @duggiefresh
332
- Dev: Update sharing options menu to lit2 @iisa
333
- Dev: Remove package publishing from GHA @cdrini
334
-
335
- # 5.0.0-36
336
-
337
- Fix: Readaloud scrolls along with dext @cdrini
338
- Dev: ES6 var to let/const updates @sancodes
339
- Dev: ES6 async/await updates @sancodes
340
- Dev: Re-enable testcafe tests in GH action @iisa
341
- Fix: Search results bar clears and closes properly @iisa
342
-
343
- # 5.0.0-35
344
-
345
- Fix: global style leak specify colorbox styles @iisa
346
- Fix: br menu reinits with shared ro load @iisa
347
- Fix: url plugin does not rewrite with multiple slashes @iisa
348
-
349
- # 5.0.0-34
350
-
351
- Dev: update test dependencies @cdrini
352
- Fix: Update hyphen stitching regex to include dangling "¬" @cdrini
353
- Fix: pop open multiple files menu at proper width @iisa
354
-
355
- # 5.0.0-33
356
-
357
- Fix: restricted books get cover image @iisa
358
-
359
- # 5.0.0-32
360
-
361
- Fix: fetch bookmarks from service when logged in @iisa
362
- Fix: adjust css to help shadydom render properly @iisa
363
-
364
- # 5.0.0-31
365
-
366
- Fix: modal loads into dom from `<ia-bookreader>` @iisa
367
-
368
- # 5.0.0-30
369
-
370
- - `<ia-bookreader>` is top-most web component @iisa
371
-
372
- # 5.0.0-29
373
-
374
- - import ia-item-navigator for menu management @iisa
375
- - url plugin: suppress default state on load @dualcnhq
376
-
377
- # 5.0.0-28
378
-
379
- Dev: Refactor URLPlugin + sync volumes sorting state to URL @dualcnhq @cdrini
380
-
381
- # 5.0.0-27
382
-
383
- Dev: eslint fix for $.browser @homewardgamer
384
- Fix: cache search inside requests @iisa
385
-
386
- # 5.0.0-26
387
-
388
- Fix: read aloud play/pause button @nsharma123
389
- Dev: strict keyboard shortcuts @mc2
390
- Dev: update IA demo page @iisa
391
-
392
- # 5.0.0-24
393
-
394
- Fix: book-nav side panel zoom out @mc2
395
- Dev: refactor zoom code @mc2
396
-
397
- # 5.0.0-23
398
-
399
- Fix: Darken scrollbars in Safari @pezvi
400
- Fix: Bookmarks service calls when reader is logged in @mc2
401
- Dev: Move jest tests into separate directory @cdrini
402
-
403
- # 5.0.0-22
404
-
405
- - Dev: remove deprecated embed nav view, use standard default @iisa
406
-
407
- # 5.0.0-21
408
-
409
- - Dev: Toggle view=theater in fullscreen @mc2
410
-
411
- # 5.0.0-20
412
-
413
- - Feature: Add voice selection dropdown to ReadAloud! @mekarpeles
414
- - Dev: Make jest support root-level imports with "@" @cdrini
415
- - Dev: Make it easy to run e2e tests on archive.org/browserstack @cdrini
416
-
417
- # 5.0.0-19
418
-
419
- - Dev: Refactor dragscrollable from a jquery plugin to a JS class @cdrini
420
- - Dev: Fix jquery eslint errors @cdrini
421
- - Dev: Replace deprecated babel-eslint with successor @cdrini
422
- - Fix: BR not working on iOS 9 / iOS 10! @cdrini, @iisa
423
- - Added webcomponents, ResizeObserver polyfill
424
- - ES5-ify lit node_modules
425
-
426
- # 5.0.0-18
427
-
428
- - Dev: Update a number of dependencies @cdrini
429
- - Dev: Added eslint-plugin-no-jquery @soham4abc
430
- - Feature: Add continuous pinch zooming for touch screens and trackpads! @cdrini
431
- - This is a _big_ change to the codebase. It involved rewriting 1 up mode in LitElement. This means that BookReader now need webcomponents to function.
432
- - Breaking changes (unlikely to be used by anyone):
433
- - Most Mode1Up Bookreader global functions removed (unlikely to be used): `drawLeafsOnePage`, `onePageGetAutofitWidth`, `onePageGetAutofitHeight`, `onePageGetPageTop`, `onePageCalculateReductionFactors`, `centerX1up`, `centerY1up`
434
- - Some Mode2Up cleanups: Removed `setClickHandler2UP`, `setMouseHandlers2UP`
435
- - [Web components](https://caniuse.com/custom-elementsv1) now must be supported
436
- - Reduction factors options no longer applies to 1up
437
-
438
- # 5.0.0-17
439
-
440
- - Fix: focus in a textarea disables keyboard shortcuts @cdrini
441
-
442
- # 5.0.0-16
443
-
444
- - Dev: remove unused menu toggle plugin @iisa
445
- - Fix: Book nav loader safari update @iisa
446
-
447
- # 5.0.0-15
448
-
449
- - Fix: Typing -/+ in search box no longer zooms @cdrini
450
- - Dev: Add script for updating dev deps @cdrini
451
- - Refactor/Fix: Convert search/TTS highlights to use SVG layer @cdrini
452
- - Fix TTS highlights not positioned correctly in Mode1Up
453
- - Breaking changes (unlikely these are used by anyone):
454
- - Remove public method `BookReader.prototype.keyboardNavigationIsDisabled`
455
- - Remove public method `BookReader.util.sleep`
456
- - Remove public method `BookReader.prototype.updateSearchHilites1UP`
457
- - Remove public method `BookReader.prototype.updateSearchHilites2UP`
458
- - Remove public attribute `BookReader.prototype.ttsHilites`
459
-
460
- # 5.0.0-14
461
-
462
- - Fix: Url search param `q=` updates dynamically @nsharma123
463
- - Fix: Downloads menu text updates @dualcnhq
464
- - Fix: Volumes updates - icons, labelling, open menu onload @iisa
465
-
466
- # 5.0.0-13
467
-
468
- - Enhancement: Add neutral state for sorting volumes @dualcnhq
469
- - Enhancement: Update subfiles/volumes title sorting logic by filename -> title_asc -> title_desc order then back to filename @dualcnhq
470
- - Fix: Volume item index count display @dualcnhq
471
-
472
- # 5.0.0-12
473
-
474
- - Fix: new side panel: sortable multiple volumes @dualcnhq @iisa
475
- - Fix: sharing side panel can share subfile/volume @iisa
476
-
477
- # 5.0.0-11
478
-
479
- - Fix: standardize button style for download panel @nsharma123
480
-
481
- # 5.0.0-10
482
-
483
- - Fix: Make 1up default to full width (up to real world size) @cdrini
484
- - Fix: Remove "page" from toolbar @cdrini
485
- - Dev: Update menu slider @iisa
486
- - Dev: Add semi-colons eslint rule @iisa
487
-
488
- # 5.0.0-9
489
-
490
- - Fix: search-inside results check for page's index via `leafNum` @nsharma123
491
-
492
- # 5.0.0-8
493
-
494
- - Fix: cancel search fix naming var @iisa
495
-
496
- # 5.0.0-7
497
-
498
- - Fix: cancel search @iisa
499
- - Dev: remove dead css @cdrini
500
- - Dev: GHA node_modules caching @cdrini
501
-
502
- # 5.0.0-6
503
-
504
- - Fix: Fullscreen toggle sets/unsets animating flag @iisa
505
-
506
- # 5.0.0-5
507
-
508
- - Fix: Book Nav: resize only when bookreader is not animating @iisa
509
- - Fix: Web components register themselves at EOF @iisa
510
- - Dev: update dependencies with dependabot @drini
511
-
512
- # 5.0.0-4
513
-
514
- - Dev: update bookmarks login archive_analytics @iisa @dualcnhq
515
-
516
- # 5.0.0-3
517
-
518
- - Fix: bookmarks panel has login CTA @dualcnhq @iisa
519
-
520
- # 5.0.0-2
521
-
522
- - Dev: update testing dependencies @cdrini
523
- - Dev: update dev-flow dependencies @cdrini
524
- - Dev: reorganize core BR files @cdrini
525
- - Dev: update build files @cdrini
526
- - Fix: update needed imports for older iOS versions @cdrini
527
- - Fix: `<ia-bookreader>` does not use full browser width to fit into container @iisa
528
- - Fix: updates to `<book-navigator>` to upgrade archive.org's liner notes display to v5 @iisa
529
-
530
- # 5.0.0-1
531
-
532
- - Actually delete the files mentioned in previous release @cdrini
533
- - Dev: Organize BookNavigator files @iisa
534
- - Fix: Search results not in correct place in Mode1Up @cdrini
535
-
536
- # 5.0.0-0
537
-
538
- First beta release of v5! Lots of breaking changes:
539
-
540
- - Files deleted from `BookReader/` . These are all no longer needed, or bundled in other BookReader JS files
541
- - jquery.bt.min.js
542
- - plugin.theme.js - including methods:
543
- - BookReader.prototype.themes
544
- - BookReader.prototype.updateTheme
545
- - BookReader.prototype.default_theme
546
- - BookReader.prototype.theme
547
- - option enableThemesPlugin
548
- - excanvas.compiled.js
549
- - plugin.print.js - including methods:
550
- - BookReader.prototype.printPage
551
- - BookReader.prototype.getPrintURI
552
- - BookReader.prototype.getPageFile
553
- - jquery.browser.min.js
554
- - soundmanager/*
555
- - jquery.ui.touch-punch.min.js
556
- - mmenu/*
557
- - jquery-ui-1.12.0.min.js
558
- - BookReader now also requires web components; more documentation on how to use will be coming in the next beta versions.
559
- - BookNavigator is a web component wrapper around core BookReader
560
- - Add Karma for testing web components
561
- - Switch to npm module type to allow importing of web components
562
- - Use submenu web components for search, book info, and other
563
- - New Bookmark managing submenu
564
- - Bug fixes
565
- - BookReader/ build files directory is now completely disposable
566
-
567
- # 4.40.2
568
-
569
- -Fix: page container has `data-side` attr @iisa
570
-
571
- # 4.40.1
572
-
573
- - Fix: Support /search/TERM in url @nsharma123
574
- - Dev: Fix reference to deprecated pruneUnused @cdrini
575
-
576
- # 4.40.0
577
-
578
- - Dev: Separate ModeThumb into separate file @cdrini
579
- - Feature: Progressive loading of higher resolution images @cdrini
580
- - Potentially breaking change: `data-(side|leaf|reduce|row)` no longer set
581
- - Potentially breaking change: mode class no longer set on page container
582
- - A number of deprecated methods converted to no-ops with `console.warn`
583
- - Feature: pow2 reduce by default @cdrini
584
- - New option: `reduceSet: 'pow2' | 'integer' = 'pow2'` limits reduce variables sent to getURI to be powers of 2
585
- - Dev: Add esbuild to `npm run serve-dev` @iisa
586
- - Fix: BookNavigator loaded after JSIAInit @cdrini
587
-
588
- # 4.39.3
589
-
590
- - Hotfix: Fix iOS 8 erroring since 4.39.0 @cdrini
591
-
592
- # 4.39.2
593
-
594
- - Dev: update Readme @Himanshunitrr
595
- - Dev: in-file typo fixes @cclauss
596
- - Fix: v5 booknav refresh @iisa @dualcnhq
597
-
598
- # 4.39.1
599
-
600
- - Dev: update Readme @Himanshunitrr
601
- - Fix: v5 bookmarks menu update @iisa @dualcnhq
602
-
603
- # 4.39.0
604
-
605
- - Feature: Mode1Up DPI awareness @cdrini
606
- - Introduces two new optional options: `ppi` and `PageData.ppi`
607
- - Potentially breaking change: zooming in Mode1Up will now zoom at different intervals
608
-
609
- # 4.38.0
610
-
611
- Dev: update dependencies @cdrini
612
- Dev: replace travis badge with GHA badge @cdrini
613
- Feature: Thumbnail/Gallery view reusing best scaled images @iisa
614
- Fix: simplify ImageCache dictionary @iisa
615
-
616
- # 4.37.0
617
-
618
- Fix: new ImageCache that keeps track of requested images & their scale factor @iisa
619
- Fix: 2up mode's use of ImageCache @iisa
620
-
621
- # 4.36.0
622
-
623
- Fix: More image caching - 2up, some sharing with thumbnail draw @iisa
624
-
625
- # 4.35.1
626
-
627
- Fix: 2up, `baseLeafCss` - use function to find "top" value @iisa
628
-
629
- # 4.35.0
630
-
631
- Fix: show text selection layer if word count is less than 2,500 @cdrini
632
- Fix: 2up, only resize spread if current image is better than next size @iisa
633
-
634
- # 4.34.0
635
-
636
- Fix: exist fullscreen will change to 2up if 2up is available @iisa
637
-
638
- # 4.33.0
639
-
640
- Fix: use optional `srcSet` in 1up mode @iisa
641
-
642
- # 4.32.0
643
-
644
- Fix: slim down prefetch group @iisa
645
- Fix: TTS caches xml @cdrini
646
-
647
- # 4.31.0
648
-
649
- Dev: demo cleanup with @cdrini
650
- Fix: 2up - pass reduction factors when creating image urls @iisa
651
-
652
- # 4.30.0
653
-
654
- Fix: all view modes on desktop & view mode toggl on mobile are now default. @nsharma123
655
-
656
- # 4.28.0
657
-
658
- Fix: adding alt tags to images @nsharma123
659
-
660
- # 4.27.0
661
-
662
- Fix: update init function to use new flag `autoResize` @iisa
663
- Fix: images - `useSrcSet` flag to determine when we fill `srcSet` attribute @iisa
664
-
665
- # 4.26.1
666
-
667
- Patch: Text selection layer does not get made in thumbnail view @dualcnhq
668
-
669
- # 4.26.0
670
-
671
- Dev: move to Github actions @cdrini
672
- Dev: version bumps @dependabot
673
- Fix: Text selection layer gets created for first page, does not get created for last page @dualcnhq
674
-
675
- # 4.25.0
676
-
677
- Fix: Helper changes for stream redirection to read hash fragment params from URL @nsharma123
678
-
679
- # 4.24.0
680
-
681
- Fix: Bookreader layout when initialized in "ReadAloud" mode @nsharma123
682
-
683
- # 4.23.0
684
-
685
- Fix: first search result click now updates url @nsharma123
686
-
687
- # 4.22.0
688
-
689
- Fix: update non-asserted page labelling next to nav scrubber @iisa
690
-
691
- # 4.21.0
692
-
693
- - Fix: Search Plugin Updates (#556) @iisa
694
- - always display search results markers
695
- - update search results nav tap targets & style
696
- - Search Results Nav - extend click events
697
- - add new click event to help toggle side menu
698
- - add new test file for Search view
699
- - Dev: move search plugin test files to their own directory (#556) @iisa
700
-
701
- # 4.20.1
702
-
703
- - Fix: Handle empty dejavu.xml files in text selection plugin @iisa
704
-
705
- # 4.20.0
706
-
707
- - Dev: Update 9 dependencies (including webpack, sass, @babel/*) @dependabot-preview + @cdrini
708
- - Dev: Move dragscroll code into src @cdrini
709
- - Dev: Make webpack treat jquery as an external dependency @cdrini
710
- - Fix: Samsung Internet not loading BR on IA @cdrini
711
-
712
- # 4.19.0
713
-
714
- - Fix: `<br>` rendered in search panel @ArunTeltia
715
- - Fix: TTS speed dropdown has white text on white in Chrome @participator
716
- - Dev: Replace dependency copies with npm packages (jquery, jquery-ui, mmenu, colorbox, touch-punch, jquery.browser) @cdrini
717
- - Fix: Use serif font for advance/review icons @Eilima
718
- - Fix: Table of contents has black text on black background @xhalin01
719
- - Dev: Delete empty files (BookReaderEmbed.css, mmenu/demo.css) @cdrini
720
- - Dev: Move images into src directory and compress SVG files @cdrini
721
- - Fix: TTS toolbar should not be in tab order when invisible @shaneriley @cdrini
722
- - Fix: Text selection not working in demos @cdrini
723
- - Fix: Text selection throwing error on page with index=-1 @cdrini
724
-
725
- # 4.18.7
726
-
727
- Fix: update fullscreen toggle methods to fire behaviors in an expected way @iisa
728
-
729
- # 4.18.6
730
-
731
- - Fix: use fullscreen toggle flow when starting fullscreen (#499) @iisa
732
-
733
- # 4.18.5
734
-
735
- - Fix: Waits to resize until first result flipped to (#498) @shaneriley
736
-
737
- # 4.18.4
738
-
739
- - Fix: Adds data attribute to 2up page containers for side designation @shaneriley
740
- - Fix: Apdate interstitial modal to fixed with & clean up messaging @iisa
741
-
742
- # 4.18.3
743
-
744
- - Fix: Enrich context to search emitted events @iisa
745
- - Fix: Hides directional buttons and shows viewmode buttons on mobile viewports @shaneriley
746
-
747
- # 4.18.2
748
-
749
- - Fix: Search plugin fixes (#491) @shaneriley
750
-
751
- # 4.18.1
752
-
753
- - Fix: Skips subsequent creation of search views when setup called 1+n times @shaneriley
754
-
755
- # 4.18.0
756
-
757
- - Dev: Add eslint for `space-after-keywords`, `space-before-blocks`, `only-multiline` @Yashs911
758
- - Dev: Update eslint, sinon, @types/jest, testcafe, sass, webpack @dependabot-preview + @cdrini
759
- - Dev: Add 3 more files to eslint @Yashs911
760
- - Feature: New options for text selection plugin: single page DJVU XML url @cdrini
761
-
762
- # 4.17.0
763
-
764
- - Fix: text selection on Safari @cdrini
765
- - Feature: Search results navigation bar @shaneriley
766
-
767
- # 4.16.0
768
-
769
- - Dev: Emit custom event to trigger @iisa
770
- - Feature: Text selection plugin @Pyrojet99
771
- - Fix: Wrong openlibrary URL @cdrini
772
- - Dev: update sinon, jest, concurrently, testcafe, eslint, @types/jest, webpack-cli, @babel/core, @babel/preset-env, node-fetch @dependabot-preview + @cdrini
773
- - Fix: Flaky TestCafe tests (#436) @cdrini
774
- - Fix: Search plugin fixes (#443) @shaneriley
775
- - Dev: Upgrade to Webpack 5 @cdrini
776
- - Fix: Polyfill CustomEvent constructor @cdrini
777
- - Fix: HTML escaping to prevent XSS (#434) @nsharma123
778
-
779
- # 4.15.0
780
-
781
- - Dev: update lodash dependency @dependabot-preview + @cdrini
782
- - Dev: Moves /BookReaderDemo/index.html to /index.html (#394) @anirbansaha782
783
- - Fix: Prevents page flipping to last page if navigating to previous page from a book's cover (#419) @iisa
784
- - Feature: Splits search plugin controller and view, updates mobile menu styles (#420) @shaneriley
785
- - Dev: Updates to e2e testing navigation model & base tests (#421) @iisa
786
-
787
- # 4.14.3
788
-
789
- - Fix: Zoom buttons missing on mobile + other chrome fixes (#416) @shaneriley
790
-
791
- # 4.14.2
792
-
793
- - Dev: Make npm package public (#414) @cdrini
794
-
795
- # 4.14.1
796
-
797
- - Dev: Automate npm publishing on github release (#409, #412) @cdrini
798
-
799
- # 4.14.0
800
-
801
- - Dev: Simplify webpack file (#373) @cdrini
802
- - Feature: One page/Two page/Thumbnail view now one button toggler (#375) @shaneriley
803
- - Fix: Advanced page demo broken (#383) @Pyrojet99
804
- - Fix: Pages randomly flipping on /stream endpoint (#386) @Pyrojet99
805
- - Feature: Display high quality images on high resolution displays (#378) @Pyrojet99
806
- - Dev: Add eslint for newline at end of file (#396) @JanviMahajan14
807
- - Dev: update a bunch of dependencies @dependabot-preview + @cdrini
808
- - Dev: Speed up Travis (a bit) by making it run testcafe concurrently (#407) @cdrini
809
- - Feature: New chrome for BookReader! (#381) @shaneriley
810
-
811
- # 4.13.1
812
-
813
- - Fix: Toc entries not showing page number on desktop (#369) @cdrini
814
-
815
- # 4.13.0
816
-
817
- - Fix: BookReader.unbind not actually unbinding (#360) @shaneriley
818
- - Dev: New demo with configurable IA id: `demo-internetarchive.html?ocaid=foo` (#356) @Pyrojet99
819
- - Dev: Add E2E tests for right-to-left books (#350) @Pyrojet99
820
- - Dev: Update core-js, webpack, \@types/jest, regenerator-runtime @dependabot-preview + @cdrini
821
- - Fix: Remembers page for multi-book items on IA (#359) @mc2
822
- - Feature: Table of contents panel in mobile view (#351) @Pyrojet99
823
-
824
- # 4.12.0
825
-
826
- - Fix: Test command for Windows users @cdrini
827
- - Dev: Autoplay e2e test @pyrojet99
828
- - Dev: Enable eslint for tests @Kartik1397
829
- - Dev: Mobile search e2e test @pyrojet99
830
- - Fix: Extra querystring after hash @kristopolous
831
- - Dev: Update websocket-extensions, sinon, testcafe @cdrini
832
- - Feature: Visual adjustments checkboxes on mobile @pyrojet99
833
-
834
- # 4.11.1
835
-
836
- - Fix: search urls now redirect to query parameter `q=foo` @mc2
837
-
838
- # 4.11.0
839
-
840
- - Dev: Add E2E tests for searching on desktop @Pyrojet99
841
- - Fix: Search result not highlighted when landing on page with matches @iisa
842
- - Dev: Remove console logs from jest tests @NayamAmarshe
843
- - Dev: Add eslint for space-infix-ops @JanviMahajan14
844
- - Fix: Bugs in search results in preview books @iisa
845
- - Fix: `startFullscreen` option only working for mode2up @shaneriley
846
- - Fix: Prefetch viewable pages in preview books for smoother flipping @cdrini
847
- - Dev: Add dependabot for JS dependencies @cdrini
848
- - Dev: Update codecov, iso-language-codes @dependabot-preview + @cdrini
849
-
850
- # 4.10.0
851
-
852
- - Fix: BR shouldn't change URL until the user interacts with the page @mc2
853
- - Feature: Add `startFullscreen` option to launch in fullscreen @shaneriley
854
- - Feature (beta): Preview pages can be swapped out with search pin clicking @cdrini
855
-
856
- # 4.9.0
857
-
858
- - Fix: -/+ buttons not zooming in Chrome @ishank-dev
859
- - Add chapters demo to e2e tests @ishank-dev
860
- - Make Travis testcafe runs less flaky @shaneriley
861
- - Pin npm version dependencies for consistent builds @cdrini
862
- - Standardize HTML structure for pages across view modes @shaneriley
863
- - WARNING: Some of the html elements/classes have changed. Potentially breaking change.
864
- - Feature (beta): Preview pages. Specifying `viewable: false` on pages causes them to render a preview image placeholder. @cdrini
865
- - Remove deprecated QUnit tests @Pyrojet99
866
- - Remove console.logs in test output @NayamAmarshe
867
-
868
- # 4.8.0
869
-
870
- - Adds customizable layout controls @shaneriley
871
-
872
- # 4.7.1
873
-
874
- - Add new parameters to analytics @bfalling
875
-
876
- # 4.7.0
877
-
878
- Big change: All of BookReader core is now compiled to es5, and a large number of
879
- chunks have been re-written in es6. Care has been taken to ensure no public APIs
880
- have changed, but note this was a big change.
881
-
882
- - Extract large chunks of BookReader.js into separate files, into es6; @cdrini
883
- - Increase jest coverage 47% → 58%; @cdrini
884
- - Increase testcafe coverage; @iisa @shaneriley
885
-
886
- # 4.6.0
887
-
888
- Big change: all the plugins are now written in es6, and compiled to es5. There should
889
- be no observable changes, but note this was a big change.
890
-
891
- - Fix: UI on archive.org not consistent with demos due to CSS conflicts; @rchrd2
892
- - Convert all plugins to es6 + webpack; @cdrini @iisa @nsharma123
893
- - Increase jest coverage 39% → 47%; @cdrini @iisa @nsharma123
894
- - Increase testcafe coverage; @iisa
895
- - Add testcafe to travis; @cdrini
896
- - Add more/enforce more lint rules; @cdrini
897
- - Make demo pages more in sync with Internet Archive pages; @mc2
898
- - Add `npm run serve-dev` for auto-watching + auto-refreshing dev server; @cdrini
899
-
900
- # 4.5.1
901
-
902
- - Fix: Click-to-flip now works in 2up mode zoomed in
903
- - Fix: Image panning sometimes not working
904
- - Fix #144: Hamburger icon only clickable on lines
905
- - Add TestCafe support
906
-
907
- # 4.5.0
908
-
909
- - ReadAloud now supports jumping backwards
910
- - Pressing -/= (or -/+ on numpad) zooms out/in
911
- - FIX #179: ReadAloud now ignores hyphens between lines
912
-
913
- # 4.4.2
914
-
915
- - more robust menu toggle plugin, working well with zoom & panning around in zoom
916
- - more tests
917
-
918
- # 4.4.1
919
-
920
- - Remove accidental es6 syntax in BookReader.js (breaking IE11)
921
-
922
- # 4.4.0
923
-
924
- - New ReadAloud controls + engine. Uses browser's SpeechSynthesis API instead of server-side test-to-speech
925
-
926
- # 4.3.2
927
-
928
- - menu toggle plugin, now applies to in-page & fullscreen views + early escapes when navbar isn't present
929
-
930
- # 4.3.0
931
-
932
- - New plugin, `fullscreen_menu_toggle`, allowing center-tap to hide UI
933
- - TTS Plugin logs analytics events (if enabled)
934
- - ES6 compilation step no longer performed on client; build files are included in repo so clients have no build step
935
-
936
- # 4.2.5
937
-
938
- - Large refactor of plugin.tts.js
939
- - ES6 compilation step
940
- - Known bug: Clicking on page while TTS is playing won't stop the playback
941
-
942
- # 4.2.4
943
-
944
- - Skips initialization of vendor fullscreen plugin when on a mobile device
945
-
946
- # 4.2.3
947
-
948
- - Creates vendor native fullscreen plugin and example use page
949
-
950
- # 4.2.2
951
-
952
- - Adds options for flipSpeed and flipDelay, the latter used for autoplay
953
-
954
- # 4.2.1
955
-
956
- - Fix rapid reload bug from thumbnail view
957
-
958
- # 4.2.0
959
-
960
- - Add eslint
961
- - Fix issue analytics plugin
962
- - Make the page display more extendable by splitting it into two functions
963
-
964
- # 4.1.0
965
-
966
- - Change BookReader.js function comments to JSDoc
967
- - Move autoplay feature into an optional plugin
968
- - Change the format of the current page string in the navbar. eg "1 / 100 (Cover)"
969
- - Add BookReader.prototype.updateFirstIndex and use instead of setting this.firstIndex directly
970
- - Simplify BookReader.prototype.init
971
-
972
- # 4.0.1
973
-
974
- - Add options.navBarTitle, which gets shown to the left of the scrubber.
975
- - Fix issue where there was a 1px border on cover leafEdge
976
-
977
- # 4.0.0
978
-
979
- V4 was driven by updating BookReader to work inline on the archive.org details page. This required code refactoring (eg: changing ids to classes), and also updating the design so it integrates well within the details page theatre section.
980
-
981
- - BookReader selectors made relative to BookReader. This means it shouldn't interfere with parent page, and also more than one BookReader instance can be on the page.
982
- - CSS converted to SASS and refactored.
983
- - New design with full-screen support.
984
- - URL plugin is extended to support replaceState, and also configure which params are reflected into the URL fragment.
985
- - In transition: JavaScript code is formatted with 2 spaces instead of 4
986
-
987
- # 3.2.1
988
-
989
- - Fix so initParams normalizes params.page to params.index, to prevent complexity of priority of page versus index.
990
-
991
- # 3.2.0
992
-
993
- On Archive.org, we needed a way to pass in a default start page for books. These changes make that easier.
994
-
995
- - Update the way bookreader inits from various params contexts
996
- - Add `defaults` to the init options
997
- - Update so that mode is only reflected on URL if user has made a change.
998
- - Update to handle both params.index and params.page when provided in defaults. Separate page parsing into separate method.
999
-
1000
- # 3.1.0
1001
-
1002
- - Add new IFrame plugin to enable two-way communication between a BookReader inside an `<iframe>` and its parent window.
1003
- - Move the `paramsFromCurrent`, `paramsFromFragment`, and `fragmentFromParams` methods back into BookReader core and out of the URL Plugin. This change should be backwards-compatible with previous versions.
1004
- - Fire a new event, `fragmentChange`, on BookReader when the reader’s state changes.
1005
-
1006
- # 3.0.8
1007
-
1008
- - Add additional tracking event when view changes
1009
-
1010
- # 3.0.7
1011
-
1012
- - Fix: Assign options.titleLeaf to this.titleLeaf
1013
-
1014
- # 3.0.6
1015
-
1016
- - Another fix for plugin.search.js. The path GET param should not have a trailing slash.
1017
-
1018
- # 3.0.5
1019
-
1020
- - Hotfix for plugin.search.js. Fixes issue where search results were not rendered on page flip.
1021
-
1022
- # 3.0.4
1023
-
1024
- - Hotfix for plugin.search.js. Fixes fulltext search for some books on Archive.org
1025
-
1026
- # 3.0.3
1027
-
1028
- - Add more options: showToolbar, showLogo
1029
- - Add this.options field, which stores the options last used in setup call
1030
- - Improve `_getDataFlattened` to have simple cache breaker
1031
- - Fix: don't show search UI if this.enableSearch is false
1032
- - Fix: add missing 'defaults' option to search plugin
1033
- - Move constants out of instance, and into class (eg BookReader.constMode1up)
1034
-
1035
- # 3.0.2
1036
-
1037
- In the process of upgrading IA, to use the new BookReader API, more changes/fixes were made.
1038
-
1039
- - Separate default options into BookReader.defaultOptions. This allows clients which use Internet Archive's JSIA endpoint (see demo-ia-plato.html) to have a hook into changing options. Also update plugins, to extend defaultOptions instead of modifying options in setup functions.
1040
- - Add BookReader.version, which helps IA support older versions in the JSIA endpoint (eg <https://archive.org/bookreader/BookReaderJSLocate.php?id=theworksofplato01platiala&subPrefix=theworksofplato01platiala>).
1041
- - Bring some IA-specific code into plugin.chapters.js
1042
- - Add more options that were previously missed (protected, olHost, subPrefix, bookPath, zip, imageFormat, bookId). These are mostly for plugins. If you intend on using any of the plugins, you can see the full config options there.
1043
-
1044
- # 3.0.1
1045
-
1046
- - Fix issue setting info and share dialogs
1047
-
1048
- # 3.0.0 Major Release
1049
-
1050
- Version 3.0.0 is an effort to make BookReader more modular, extensible, and easier to use.
1051
-
1052
- Changes include:
1053
-
1054
- - Make BookReader easier to use, by adding `options` to the constructor, and adding new `options.data` option. The old way of overriding properties should still work, but it is deprecated. With `options.data`, all BookReader needs is the image URLs and dimensions. To have dynamic image URLs (eg for scaling), omit the URL from `options.data`, and include `options.getPageURI`.
1055
- - Factor out extra features into plugins. See `plugins` directory. Example plugins include:
1056
- - plugins.chapters.js - render chapter markers
1057
- - plugins.search.js - add search ui, and callbacks
1058
- - plugins.tts.js - add tts (read aloud) ui, sound library, and callbacks
1059
- - plugins.url.js - automatically updates the browser url
1060
- - plugins.resume.js - uses cookies to remember the current page
1061
- - plugins.mobile_nav.js - adds responsive mobile nav to BookReader
1062
- Note that there is minor overhead added when loading multiple script tags. If this is a concern, a build step, can be used to concatenate the files into a single JS file.
1063
- - Clean up code: Remove a lot of commented-out code. Remove some unused methods.
1064
- - Change some, but not all, CSS ids to classes.
1065
- - DEPRECATED: Use options to configure BookReader. It is now deprecated to change properties directly.
1066
- - DEPRECATED: CSS ids are being removed, (eg #BookReader is now .BookReader), with the goal to entirely use classes instead. This is in progress, but it is considered deprecated to use the ids directly. We would like to remove all ids for the next major release.
1067
- - BREAKING: If features that are now in plugins were used, the plugin's JS file will need to be included as well. Note, we would also like to separate the CSS into a separate file for the next major release.
1068
-
1069
- # 2.1.0
1070
-
1071
- - Add auto mode to 1up autosize (in addition to height and width)
1072
- - Remove the old responsiveAutofit (which is not needed anymore)
1073
-
1074
- # 2.0.2
1075
-
1076
- - Fix regex issue when searching
1077
- - Make the search api endpoint configurable
1078
-
1079
- # 2.0.1
1080
-
1081
- - Add package.json and CHANGELOG
1082
- - Remove more IA-specific code
1083
-
1084
- # 2.0.0
1085
-
1086
- - Major release
1087
- - Many changes from updated Archive.org bookreader brought back to this open source project.