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