@internetarchive/bookreader 5.0.0-4 → 5.0.0-40-a1

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 (228) hide show
  1. package/.eslintrc.js +17 -15
  2. package/.github/workflows/node.js.yml +75 -4
  3. package/.github/workflows/npm-publish.yml +2 -16
  4. package/.testcaferc.js +10 -0
  5. package/BookReader/BookReader.css +83 -323
  6. package/BookReader/BookReader.js +1 -1
  7. package/BookReader/BookReader.js.LICENSE.txt +24 -0
  8. package/BookReader/BookReader.js.map +1 -1
  9. package/BookReader/ia-bookreader-bundle.js +1623 -0
  10. package/BookReader/{bookreader-component-bundle.js.LICENSE.txt → ia-bookreader-bundle.js.LICENSE.txt} +14 -10
  11. package/BookReader/ia-bookreader-bundle.js.map +1 -0
  12. package/BookReader/icons/close-circle-dark.svg +1 -0
  13. package/BookReader/icons/magnify-minus.svg +1 -1
  14. package/BookReader/icons/magnify-plus.svg +1 -1
  15. package/BookReader/icons/voice.svg +1 -0
  16. package/BookReader/plugins/plugin.archive_analytics.js +1 -1
  17. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
  18. package/BookReader/plugins/plugin.autoplay.js +1 -1
  19. package/BookReader/plugins/plugin.autoplay.js.map +1 -1
  20. package/BookReader/plugins/plugin.chapters.js +1 -1
  21. package/BookReader/plugins/plugin.chapters.js.map +1 -1
  22. package/BookReader/plugins/plugin.iframe.js +1 -1
  23. package/BookReader/plugins/plugin.iframe.js.map +1 -1
  24. package/BookReader/plugins/plugin.mobile_nav.js +1 -1
  25. package/BookReader/plugins/plugin.mobile_nav.js.map +1 -1
  26. package/BookReader/plugins/plugin.resume.js +1 -1
  27. package/BookReader/plugins/plugin.resume.js.map +1 -1
  28. package/BookReader/plugins/plugin.search.js +1 -1
  29. package/BookReader/plugins/plugin.search.js.map +1 -1
  30. package/BookReader/plugins/plugin.text_selection.js +1 -1
  31. package/BookReader/plugins/plugin.text_selection.js.map +1 -1
  32. package/BookReader/plugins/plugin.tts.js +1 -1
  33. package/BookReader/plugins/plugin.tts.js.map +1 -1
  34. package/BookReader/plugins/plugin.url.js +1 -1
  35. package/BookReader/plugins/plugin.url.js.map +1 -1
  36. package/BookReader/plugins/plugin.vendor-fullscreen.js +1 -1
  37. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
  38. package/BookReader/webcomponents-bundle.js +3 -0
  39. package/BookReader/webcomponents-bundle.js.LICENSE.txt +9 -0
  40. package/BookReader/webcomponents-bundle.js.map +1 -0
  41. package/BookReaderDemo/BookReaderDemo.css +14 -1
  42. package/BookReaderDemo/IADemoBr.js +120 -0
  43. package/BookReaderDemo/demo-advanced.html +1 -1
  44. package/BookReaderDemo/demo-autoplay.html +1 -0
  45. package/BookReaderDemo/demo-embed-iframe-src.html +1 -0
  46. package/BookReaderDemo/demo-fullscreen-mobile.html +1 -0
  47. package/BookReaderDemo/demo-fullscreen.html +1 -0
  48. package/BookReaderDemo/demo-iiif.html +1 -0
  49. package/BookReaderDemo/demo-internetarchive.html +74 -17
  50. package/BookReaderDemo/demo-multiple.html +1 -0
  51. package/BookReaderDemo/demo-preview-pages.html +1 -0
  52. package/BookReaderDemo/demo-simple.html +1 -0
  53. package/BookReaderDemo/demo-vendor-fullscreen.html +1 -0
  54. package/BookReaderDemo/ia-multiple-volumes-manifest.js +170 -0
  55. package/BookReaderDemo/immersion-1up.html +1 -0
  56. package/BookReaderDemo/immersion-mode.html +1 -0
  57. package/BookReaderDemo/toggle_controls.html +1 -0
  58. package/BookReaderDemo/view_mode.html +1 -0
  59. package/BookReaderDemo/viewmode-cycle.html +1 -2
  60. package/CHANGELOG.md +166 -0
  61. package/README.md +14 -1
  62. package/babel.config.js +18 -0
  63. package/codecov.yml +6 -0
  64. package/index.html +3 -0
  65. package/jsconfig.json +19 -0
  66. package/package.json +62 -47
  67. package/renovate.json +43 -0
  68. package/src/BookNavigator/assets/bookmark-colors.js +1 -1
  69. package/src/BookNavigator/assets/button-base.js +9 -2
  70. package/src/BookNavigator/assets/ia-logo.js +17 -0
  71. package/src/BookNavigator/assets/icon_checkmark.js +1 -1
  72. package/src/BookNavigator/assets/icon_close.js +1 -1
  73. package/src/BookNavigator/assets/icon_sort_asc.js +5 -0
  74. package/src/BookNavigator/assets/icon_sort_desc.js +5 -0
  75. package/src/BookNavigator/assets/icon_sort_neutral.js +5 -0
  76. package/src/BookNavigator/assets/icon_volumes.js +11 -0
  77. package/src/BookNavigator/book-navigator.js +556 -0
  78. package/src/BookNavigator/bookmarks/bookmark-button.js +3 -2
  79. package/src/BookNavigator/bookmarks/bookmark-edit.js +4 -4
  80. package/src/BookNavigator/bookmarks/bookmarks-list.js +3 -3
  81. package/src/BookNavigator/bookmarks/bookmarks-loginCTA.js +3 -8
  82. package/src/BookNavigator/bookmarks/bookmarks-provider.js +23 -12
  83. package/src/BookNavigator/bookmarks/ia-bookmarks.js +98 -62
  84. package/src/BookNavigator/delete-modal-actions.js +1 -1
  85. package/src/BookNavigator/downloads/downloads-provider.js +23 -17
  86. package/src/BookNavigator/downloads/downloads.js +17 -25
  87. package/src/BookNavigator/search/a-search-result.js +3 -3
  88. package/src/BookNavigator/search/search-provider.js +57 -24
  89. package/src/BookNavigator/search/search-results.js +8 -20
  90. package/src/BookNavigator/sharing.js +27 -0
  91. package/src/BookNavigator/visual-adjustments/visual-adjustments-provider.js +11 -13
  92. package/src/BookNavigator/visual-adjustments/visual-adjustments.js +4 -3
  93. package/src/BookNavigator/volumes/volumes-provider.js +114 -0
  94. package/src/BookNavigator/volumes/volumes.js +188 -0
  95. package/src/BookReader/DebugConsole.js +3 -3
  96. package/src/BookReader/DragScrollable.js +233 -0
  97. package/src/BookReader/Mode1Up.js +51 -351
  98. package/src/BookReader/Mode1UpLit.js +441 -0
  99. package/src/BookReader/Mode2Up.js +104 -71
  100. package/src/BookReader/ModeSmoothZoom.js +179 -0
  101. package/src/BookReader/ModeThumb.js +16 -8
  102. package/src/BookReader/Navbar/Navbar.js +2 -31
  103. package/src/BookReader/PageContainer.js +57 -6
  104. package/src/BookReader/ReduceSet.js +1 -1
  105. package/src/BookReader/Toolbar/Toolbar.js +7 -7
  106. package/src/BookReader/options.js +10 -0
  107. package/src/BookReader/utils/HTMLDimensionsCacher.js +44 -0
  108. package/src/BookReader/utils/ScrollClassAdder.js +31 -0
  109. package/src/BookReader/utils.js +68 -13
  110. package/src/BookReader.js +375 -289
  111. package/src/assets/icons/close-circle-dark.svg +1 -0
  112. package/src/assets/icons/magnify-minus.svg +3 -7
  113. package/src/assets/icons/magnify-plus.svg +3 -7
  114. package/src/assets/icons/voice.svg +1 -0
  115. package/src/css/BookReader.scss +0 -12
  116. package/src/css/_BRComponent.scss +1 -1
  117. package/src/css/_BRmain.scss +19 -24
  118. package/src/css/_BRnav.scss +4 -26
  119. package/src/css/_BRpages.scss +35 -0
  120. package/src/css/_BRsearch.scss +11 -215
  121. package/src/css/_TextSelection.scss +14 -17
  122. package/src/css/_colorbox.scss +2 -2
  123. package/src/css/_controls.scss +16 -3
  124. package/src/css/_icons.scss +6 -0
  125. package/src/ia-bookreader/ia-bookreader.js +224 -0
  126. package/src/plugins/plugin.chapters.js +26 -33
  127. package/src/plugins/plugin.mobile_nav.js +11 -10
  128. package/src/plugins/plugin.resume.js +3 -3
  129. package/src/plugins/plugin.text_selection.js +26 -39
  130. package/src/plugins/plugin.vendor-fullscreen.js +4 -4
  131. package/src/plugins/search/plugin.search.js +106 -107
  132. package/src/plugins/search/view.js +50 -163
  133. package/src/plugins/tts/AbstractTTSEngine.js +46 -37
  134. package/src/plugins/tts/FestivalTTSEngine.js +12 -13
  135. package/src/plugins/tts/PageChunk.js +15 -21
  136. package/src/plugins/tts/PageChunkIterator.js +8 -12
  137. package/src/plugins/tts/WebTTSEngine.js +64 -68
  138. package/src/plugins/tts/plugin.tts.js +79 -108
  139. package/src/plugins/url/UrlPlugin.js +184 -0
  140. package/src/plugins/{plugin.url.js → url/plugin.url.js} +28 -6
  141. package/tests/e2e/README.md +37 -0
  142. package/tests/e2e/autoplay.test.js +2 -2
  143. package/tests/e2e/base.test.js +7 -7
  144. package/tests/e2e/helpers/base.js +8 -3
  145. package/tests/e2e/helpers/debug.js +1 -1
  146. package/tests/e2e/helpers/desktopSearch.js +14 -13
  147. package/tests/e2e/helpers/mobileSearch.js +3 -3
  148. package/tests/e2e/helpers/params.js +17 -0
  149. package/tests/e2e/models/Navigation.js +12 -3
  150. package/tests/e2e/rightToLeft.test.js +4 -5
  151. package/tests/e2e/viewmode.test.js +38 -33
  152. package/tests/{BookReader → jest/BookReader}/BookModel.test.js +3 -3
  153. package/tests/jest/BookReader/BookReaderPublicFunctions.test.js +176 -0
  154. package/tests/{BookReader → jest/BookReader}/DebugConsole.test.js +1 -1
  155. package/tests/{BookReader → jest/BookReader}/ImageCache.test.js +4 -4
  156. package/tests/jest/BookReader/Mode1UpLit.test.js +88 -0
  157. package/tests/{BookReader → jest/BookReader}/Mode2Up.test.js +5 -7
  158. package/tests/jest/BookReader/ModeSmoothZoom.test.js +149 -0
  159. package/tests/jest/BookReader/ModeThumb.test.js +71 -0
  160. package/tests/{BookReader → jest/BookReader}/Navbar/Navbar.test.js +7 -7
  161. package/tests/{BookReader → jest/BookReader}/PageContainer.test.js +79 -6
  162. package/tests/{BookReader → jest/BookReader}/ReduceSet.test.js +1 -1
  163. package/tests/{BookReader → jest/BookReader}/Toolbar/Toolbar.test.js +2 -2
  164. package/tests/jest/BookReader/utils/HTMLDimensionsCacher.test.js +59 -0
  165. package/tests/jest/BookReader/utils/ScrollClassAdder.test.js +49 -0
  166. package/tests/{BookReader → jest/BookReader}/utils/classes.test.js +1 -1
  167. package/tests/jest/BookReader/utils.test.js +136 -0
  168. package/tests/jest/BookReader.keyboard.test.js +190 -0
  169. package/tests/{BookReader.options.test.js → jest/BookReader.options.test.js} +9 -1
  170. package/tests/{BookReader.test.js → jest/BookReader.test.js} +20 -4
  171. package/tests/{plugins → jest/plugins}/plugin.archive_analytics.test.js +2 -2
  172. package/tests/{plugins → jest/plugins}/plugin.autoplay.test.js +2 -2
  173. package/tests/{plugins → jest/plugins}/plugin.chapters.test.js +8 -8
  174. package/tests/{plugins → jest/plugins}/plugin.iframe.test.js +2 -2
  175. package/tests/{plugins → jest/plugins}/plugin.mobile_nav.test.js +5 -5
  176. package/tests/{plugins → jest/plugins}/plugin.resume.test.js +3 -3
  177. package/tests/{plugins → jest/plugins}/plugin.text_selection.test.js +39 -47
  178. package/tests/{plugins → jest/plugins}/plugin.vendor-fullscreen.test.js +2 -2
  179. package/tests/{plugins → jest/plugins}/search/plugin.search.test.js +24 -25
  180. package/tests/{plugins → jest/plugins}/search/plugin.search.view.test.js +6 -6
  181. package/tests/{plugins → jest/plugins}/tts/AbstractTTSEngine.test.js +6 -6
  182. package/tests/{plugins → jest/plugins}/tts/FestivalTTSEngine.test.js +4 -4
  183. package/tests/{plugins → jest/plugins}/tts/PageChunk.test.js +1 -1
  184. package/tests/{plugins → jest/plugins}/tts/PageChunkIterator.test.js +3 -3
  185. package/tests/{plugins → jest/plugins}/tts/WebTTSEngine.test.js +1 -1
  186. package/tests/{plugins → jest/plugins}/tts/utils.test.js +3 -3
  187. package/tests/jest/plugins/url/UrlPlugin.test.js +190 -0
  188. package/tests/{plugins → jest/plugins/url}/plugin.url.test.js +33 -14
  189. package/tests/{util → jest/util}/browserSniffing.test.js +1 -1
  190. package/tests/{util → jest/util}/docCookies.test.js +1 -1
  191. package/tests/{util → jest/util}/strings.test.js +1 -1
  192. package/tests/{utils.js → jest/utils.js} +38 -0
  193. package/tests/karma/BookNavigator/book-navigator.test.js +501 -0
  194. package/tests/karma/BookNavigator/bookmarks/bookmark-button.test.js +44 -0
  195. package/tests/karma/BookNavigator/bookmarks/bookmark-edit.test.js +1 -3
  196. package/tests/karma/BookNavigator/bookmarks/bookmarks-list.test.js +3 -4
  197. package/tests/karma/BookNavigator/bookmarks/ia-bookmarks.test.js +57 -0
  198. package/tests/karma/BookNavigator/downloads/downloads-provider.test.js +67 -0
  199. package/tests/karma/BookNavigator/downloads/downloads.test.js +54 -0
  200. package/tests/karma/BookNavigator/search/search-provider.test.js +123 -0
  201. package/tests/karma/BookNavigator/{search-results.test.js → search/search-results.test.js} +1 -4
  202. package/tests/karma/BookNavigator/sharing/sharing-provider.test.js +49 -0
  203. package/tests/karma/BookNavigator/visual-adjustments.test.js +0 -2
  204. package/tests/karma/BookNavigator/volumes/volumes-provider.test.js +184 -0
  205. package/tests/karma/BookNavigator/volumes/volumes.test.js +98 -0
  206. package/webpack.config.js +10 -4
  207. package/.babelrc +0 -12
  208. package/.dependabot/config.yml +0 -6
  209. package/.testcaferc.json +0 -5
  210. package/BookReader/bookreader-component-bundle.js +0 -1450
  211. package/BookReader/bookreader-component-bundle.js.map +0 -1
  212. package/BookReader/plugins/plugin.menu_toggle.js +0 -2
  213. package/BookReader/plugins/plugin.menu_toggle.js.map +0 -1
  214. package/BookReaderDemo/bookreader-template-bundle.js +0 -7178
  215. package/BookReaderDemo/demo-plugin-menu-toggle.html +0 -34
  216. package/src/BookNavigator/BookModel.js +0 -14
  217. package/src/BookNavigator/BookNavigator.js +0 -435
  218. package/src/BookNavigator/assets/book-loader.js +0 -27
  219. package/src/BookNavigator/br-fullscreen-mgr.js +0 -83
  220. package/src/BookReaderComponent/BookReaderComponent.js +0 -112
  221. package/src/ItemNavigator/ItemNavigator.js +0 -372
  222. package/src/ItemNavigator/providers/sharing.js +0 -29
  223. package/src/dragscrollable-br.js +0 -261
  224. package/src/plugins/menu_toggle/plugin.menu_toggle.js +0 -324
  225. package/tests/BookReader/BookReaderPublicFunctions.test.js +0 -171
  226. package/tests/BookReader/Mode1Up.test.js +0 -164
  227. package/tests/BookReader/utils.test.js +0 -109
  228. package/tests/plugins/menu_toggle/plugin.menu_toggle.test.js +0 -68
package/CHANGELOG.md CHANGED
@@ -1,3 +1,169 @@
1
+ # 5.0.0-39
2
+ Fix: Performance improvements to scroll/zooming when text layer is larger @cdrini
3
+ Fix: Update zoom in/out icons to match iconochive glyphs @pezvi
4
+ Dev: update dependencies @renovate
5
+
6
+ # 5.0.0-38
7
+ Dev: Add Renovate Bot @cdrini
8
+ Dev: Update node-fetch @cdrini
9
+ Fix: Search request promise err & fix tests @cdrini
10
+ Dev: Split node workflow into different jobs @cdrini
11
+ Dev: Give cache steps better names in GHA @cdrini
12
+ Dev: Update concurrently + Small speedup to build & test @cdrini
13
+ Dev: Renovate - Auto-update dev dependencies for minor/patch @cdrini
14
+ Fix: Better MS Edge voice selection @cdrini
15
+ Dev: Allow small drops in codecov coverage (< 0.5%) @cdrini
16
+ Dev: Renovate - add `^@internetarchive/icon-` @cdrini
17
+
18
+ # 5.0.0-37
19
+ Fix: Update all `.then()` to async/await @sancodes
20
+ Fix: Upgrade to Lit 2 @Aadilhassan
21
+ Dev: Update to Node v16.x @duggiefresh
22
+ Dev: Remove unused demo bundle @cdrini
23
+ Dev: Fix README broken link for plugin directory @duggiefresh
24
+ Dev: Update sharing options menu to lit2 @iisa
25
+ Dev: Remove package publishing from GHA @cdrini
26
+
27
+ # 5.0.0-36
28
+ Fix: Readaloud scrolls along with dext @cdrini
29
+ Dev: ES6 var to let/const updates @sancodes
30
+ Dev: ES6 async/await updates @sancodes
31
+ Dev: Re-enable testcafe tests in GH action @iisa
32
+ Fix: Search results bar clears and closes properly @iisa
33
+
34
+ # 5.0.0-35
35
+ Fix: global syle leak specify colorbox styles @iisa
36
+ Fix: br menu reinits with shared ro load @iisa
37
+ Fix: url plugin does not rewrite with multiple slashes @iisa
38
+
39
+ # 5.0.0-34
40
+ Dev: udpate test dependencies @cdrini
41
+ Fix: Update hyphen stitching regex to include dangling "¬" @cdrini
42
+ Fix: pop open multiple files menu at proper width @iisa
43
+
44
+ # 5.0.0-33
45
+ Fix: restricted books get cover image @iisa
46
+
47
+ # 5.0.0-32
48
+ Fix: fetch bookmarks from service when logged in @iisa
49
+ Fix: adjust css to help shadydom render properly @iisa
50
+ # 5.0.0-31
51
+ Fix: modal loads into dom from `<ia-bookreader>` @iisa
52
+
53
+ # 5.0.0-30
54
+ - `<ia-bookreader>` is top-most web component @iisa
55
+
56
+ # 5.0.0-29
57
+ - import ia-item-navigator for menu management @iisa
58
+ - url plugin: suppress default state on load @dualcnhq
59
+
60
+ # 5.0.0-28
61
+ Dev: Refactor URLPlugin + sync volumes sorting state to URL @dualcnhq @cdrini
62
+
63
+ # 5.0.0-27
64
+ Dev: eslint fix for $.browser @homewardgamer
65
+ Fix: cache search inside requests @iisa
66
+ # 5.0.0-26
67
+ Fix: read aloud play/pause button @nsharma123
68
+ Dev: strict keyboard shortcuts @mc2
69
+ Dev: update IA demo page @iisa
70
+
71
+ # 5.0.0-24
72
+ Fix: book-nav side panel zoom out @mc2
73
+ Dev: refactor zoom code @mc2
74
+
75
+ # 5.0.0-23
76
+ Fix: Darken scrollbars in Safari @pezvi
77
+ Fix: Bookmarks service calls when reader is logged in @mc2
78
+ Dev: Move jest tests into separate directory @cdrini
79
+
80
+ # 5.0.0-22
81
+ - Dev: remove deprecated embed nav view, use standard default @iisa
82
+
83
+ # 5.0.0-21
84
+ - Dev: Toggle view=theater in fullscreen @mc2
85
+
86
+ # 5.0.0-20
87
+ - Feature: Add voice selection dropdown to ReadAloud! @mekarpeles
88
+ - Dev: Make jest support root-level imports with "@" @cdrini
89
+ - Dev: Make it easy to run e2e tests on archive.org/browserstack @cdrini
90
+
91
+ # 5.0.0-19
92
+ - Dev: Refactor dragscrollable from a jquery plugin to a JS class @cdrini
93
+ - Dev: Fix jquery eslint errors @cdrini
94
+ - Dev: Replace deprecated babel-eslint with successor @cdrini
95
+ - Fix: BR not working on iOS 9 / iOS 10! @cdrini, @iisa
96
+ - Added webcomponents, ResizeObserver polyfill
97
+ - ES5-ify lit node_modules
98
+
99
+ # 5.0.0-18
100
+ - Dev: Update a number of dependencies @cdrini
101
+ - Dev: Added eslint-plugin-no-jquery @soham4abc
102
+ - Feature: Add continuous pinch zooming for touch screens and trackpads! @cdrini
103
+ - 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.
104
+ - Breaking changes (unlikely to be used by anyone):
105
+ - Most Mode1Up Bookreader global functions removed (unlikely to be used): `drawLeafsOnePage`, `onePageGetAutofitWidth`, `onePageGetAutofitHeight`, `onePageGetPageTop`, `onePageCalculateReductionFactors`, `centerX1up`, `centerY1up`
106
+ - Some Mode2Up cleanups: Removed `setClickHandler2UP`, `setMouseHandlers2UP`
107
+ - [Web components](https://caniuse.com/custom-elementsv1) now must be supported
108
+ - Reduction factors options no longer applies to 1up
109
+
110
+ # 5.0.0-17
111
+ - Fix: focus in a textarea disables keyboard shortcuts @cdrini
112
+
113
+ # 5.0.0-16
114
+ - Dev: remove unused menu toggle plugin @iisa
115
+ - Fix: Book nav loader safari update @iisa
116
+
117
+ # 5.0.0-15
118
+ - Fix: Typing -/+ in search box no longer zooms @cdrini
119
+ - Dev: Add script for updating dev deps @cdrini
120
+ - Refactor/Fix: Convert search/TTS highlights to use SVG layer @cdrini
121
+ - Fix TTS highlights not positioned correctly in Mode1Up
122
+ - Breaking changes (unlikely these are used by anyone):
123
+ - Remove public method `BookReader.prototype.keyboardNavigationIsDisabled`
124
+ - Remove public method `BookReader.util.sleep`
125
+ - Remove public method `BookReader.prototype.updateSearchHilites1UP`
126
+ - Remove public method `BookReader.prototype.updateSearchHilites2UP`
127
+ - Remove public attribute `BookReader.prototype.ttsHilites`
128
+
129
+ # 5.0.0-14
130
+ - Fix: Url search param `q=` updates dynamically @nsharma123
131
+ - Fix: Downloads menu text updates @dualcnhq
132
+ - Fix: Volumes updates - icons, labelling, open menu onload @iisa
133
+
134
+ # 5.0.0-13
135
+ - Enhancement: Add neutral state for sorting volumes @dualcnhq
136
+ - Enhancement: Update subfiles/volumes title sorting logic by filename -> title_asc -> title_desc order then back to filename @dualcnhq
137
+ - Fix: Volume item index count display @dualcnhq
138
+
139
+
140
+ # 5.0.0-12
141
+ - Fix: new side panel: sortable multiple volumes @dualcnhq @iisa
142
+ - Fix: sharing side panel can share subfile/volume @iisa
143
+
144
+ # 5.0.0-11
145
+ - Fix: standardize button style for download panel @nsharma123
146
+ # 5.0.0-10
147
+ - Fix: Make 1up default to full width (up to real world size) @cdrini
148
+ - Fix: Remove "page" from toolbar @cdrini
149
+ - Dev: Update menu slider @iisa
150
+ - Dev: Add semi-colons eslint rule @iisa
151
+
152
+ # 5.0.0-9
153
+ - Fix: search-inside results check for page's index via `leafNum` @nsharma123
154
+ # 5.0.0-8
155
+ - Fix: cancel search fix naming var @iisa
156
+
157
+ # 5.0.0-7
158
+ - Fix: cancel search @iisa
159
+ - Dev: remove dead css @cdrini
160
+ - Dev: GHA node_modules caching @cdrini
161
+ # 5.0.0-6
162
+ - Fix: Fullscreen toggle sets/unsets animating flag @iisa
163
+ # 5.0.0-5
164
+ - Fix: Book Nav: resize only when bookreader is not animating @iisa
165
+ - Fix: Web components register themselves at EOF @iisa
166
+ - Dev: update dependencies with dependabot @drini
1
167
  # 5.0.0-4
2
168
  - Dev: update bookmarks login archive_analytics @iisa @dualcnhq
3
169
 
package/README.md CHANGED
@@ -123,7 +123,7 @@ A peek in how to use/extend core functionality:
123
123
  - plugin.url.js - automatically updates the browser url
124
124
  - plugin.resume.js - uses cookies to remember the current page
125
125
  - plugin.vendor-fullscreen.js - replaces fullscreen mode with vendor native fullscreen
126
- - see plugin directory for current plugin files ()[https://github.com/internetarchive/bookreader/tree/master/src/plugins]
126
+ - see [plugin directory for current plugin files](https://github.com/internetarchive/bookreader/tree/master/src/plugins)
127
127
 
128
128
  ### Embedding BookReader in an iFrame
129
129
 
@@ -149,6 +149,19 @@ The source JavaScript is written in ES6 (located in the `src/js` directory) and
149
149
 
150
150
  Until the next major version bump, we have to store the build files inside the repo to maintain backwards compatibility. Please _DO NOT_ include these files in your PR. Anything in the `BookReader/` directory should not be committed.
151
151
 
152
+ ### Developing icons
153
+ To see local icon package changes in bookreader, you'll need to install core-js into the icon package and link into bookreader.
154
+
155
+ Let's use `icon-share` as an example.
156
+ 1. Confirm your icon package is working properly in the iaux-icons demo
157
+ 2. Navigate to your icon package (`iaux-icons/packages/icon-share`) and run command: `npm install core-js`
158
+ - You shouldn't need to commit any of these core-js changes
159
+ 3. From within your icon package directory run command: `npm link`
160
+ - You can use the command `npm ls -g` to confirm your local package now appears in the registry
161
+ 4. Navigate to `/bookreader` and run command: `npm link @internetarchive/icon-share`
162
+ - You can use the command `npm ls |grep icon-share` to confirm icon-share is now a link to your local directory
163
+ 5. You may now start a local server to see your changes by running command: `npm run serve-dev`
164
+
152
165
  ## Releases
153
166
 
154
167
  To version bump the repo and prepare a release, run `npm version major|minor|patch` (following [semver](https://semver.org/)), then (something like) `git push origin HEAD --tags`. It'll automatically update the version number where it appears, build the files, and ask you to update the CHANGELOG.
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ presets: [
3
+ [
4
+ "@babel/preset-env",
5
+ {
6
+ targets: "> 2%, ie 11, edge 14, samsung > 9, OperaMini all, UCAndroid > 12, Safari >= 9",
7
+ useBuiltIns: "usage",
8
+ corejs: 3
9
+ }
10
+ ]
11
+ ],
12
+ plugins: [
13
+ ["@babel/plugin-proposal-decorators", {decoratorsBeforeExport: true}],
14
+ ["@babel/plugin-proposal-class-properties", {loose: true}],
15
+ ["@babel/plugin-proposal-private-property-in-object", { loose: true }],
16
+ ["@babel/plugin-proposal-private-methods", { loose: true }],
17
+ ]
18
+ };
package/codecov.yml CHANGED
@@ -1,6 +1,12 @@
1
1
  codecov:
2
2
  notify:
3
3
  require_ci_to_pass: yes
4
+ status:
5
+ project:
6
+ default:
7
+ # Allow small drops in coverage
8
+ threshold: 0.005 # .5 %
9
+ if_not_found: failure
4
10
 
5
11
  coverage:
6
12
  precision: 2
package/index.html CHANGED
@@ -18,12 +18,15 @@
18
18
  <li><a href="BookReaderDemo/demo-preview-pages.html">Preview Pages</a></li>
19
19
  <li><a href="BookReaderDemo/demo-embed.html">Embed</a></li>
20
20
  <li><a href="BookReaderDemo/demo-multiple.html">Multiple on same page</a></li>
21
+ <!-- plugin.search.js -->
21
22
  <li><a href="BookReaderDemo/demo-internetarchive.html?ocaid=theworksofplato01platiala">From Internet Archive</a></li>
23
+ <!-- plugin.search.js -->
22
24
  <li><a href="BookReaderDemo/demo-internetarchive.html?ocaid=adventuresofoli00dick">From Internet Archive - a book with CHAPTERS</a></li>
23
25
  <li><a href="BookReaderDemo/demo-iiif.html">IIIF</a></li>
24
26
  <li><a href="BookReaderDemo/demo-autoplay.html">Autoplay (kiosk mode)</a></li>
25
27
  <li><a href="BookReaderDemo/demo-plugin-menu-toggle.html">Plugin: Full screen menu toggle</a></li>
26
28
  <li><a href="BookReaderDemo/immersion-mode.html">Start in immersion (fullscreen) mode</a></li>
29
+ <!-- plugin.search.js -->
27
30
  <li><a href="BookReaderDemo/immersion-1up.html">Start in immersion mode on 1up default item</a></li>
28
31
  <li><a href="BookReaderDemo/viewmode-cycle.html">Replace view mode buttons with view mode cycler</a></li>
29
32
  </ul>
package/jsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es6",
4
+ "moduleResolution": "node",
5
+ "experimentalDecorators": true,
6
+ "baseUrl": ".",
7
+ "paths": {
8
+ "@/*": ["./*"]
9
+ }
10
+ },
11
+ "include": [
12
+ "src/**/*.js",
13
+ "tests/**/*.js",
14
+ ],
15
+ "exclude": [
16
+ "node_modules",
17
+ "BookReader"
18
+ ]
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/bookreader",
3
- "version": "5.0.0-4",
3
+ "version": "5.0.0-40-a1",
4
4
  "description": "The Internet Archive BookReader.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "module": "src/BookNavigator/BookNavigator.js",
12
+ "module": "src/ia-bookreader/ia-bookreader.js",
13
13
  "keywords": [
14
14
  "online",
15
15
  "bookreader",
@@ -25,65 +25,76 @@
25
25
  "homepage": "https://github.com/internetarchive/bookreader#readme",
26
26
  "private": false,
27
27
  "dependencies": {
28
- "@internetarchive/ia-activity-indicator": "^0.0.1",
29
- "@internetarchive/ia-icons": "^1.2.2",
30
- "@internetarchive/ia-menu-slider": "^0.1.10",
31
- "@internetarchive/ia-sharing-options": "^0.1.2",
32
- "@internetarchive/icon-bookmark": "^1.1.3",
33
- "@internetarchive/icon-collapse-sidebar": "^1.1.0",
34
- "@internetarchive/icon-edit-pencil": "1.1.5",
35
- "@internetarchive/icon-magnify-minus": "^1.2.3",
36
- "@internetarchive/icon-magnify-plus": "^1.2.3",
37
- "@internetarchive/icon-search": "^1.2.3",
38
- "@internetarchive/modal-manager": "^0.1.0",
39
- "lit-element": "^2.4.0",
40
- "lit-html": "^1.3.0"
28
+ "@internetarchive/ia-activity-indicator": "^0.0.2",
29
+ "@internetarchive/ia-item-navigator": "^1.0.0",
30
+ "@internetarchive/ia-sharing-options": "^1.0.1",
31
+ "@internetarchive/icon-bookmark": "^1.3.2",
32
+ "@internetarchive/icon-dl": "^1.3.3",
33
+ "@internetarchive/icon-edit-pencil": "1.3.2",
34
+ "@internetarchive/icon-magnify-minus": "^1.3.3",
35
+ "@internetarchive/icon-magnify-plus": "^1.3.3",
36
+ "@internetarchive/icon-search": "^1.3.3",
37
+ "@internetarchive/icon-share": "^1.3.3",
38
+ "@internetarchive/icon-visual-adjustment": "^1.3.2",
39
+ "@internetarchive/modal-manager": "^0.2.1",
40
+ "@internetarchive/shared-resize-observer": "^0.2.0",
41
+ "lit": "^2.1.3"
41
42
  },
42
43
  "devDependencies": {
43
- "@babel/core": "7.13.16",
44
- "@babel/preset-env": "7.13.15",
45
- "@open-wc/testing": "^2.5.33",
44
+ "@babel/core": "7.17.5",
45
+ "@babel/eslint-parser": "7.17.0",
46
+ "@babel/plugin-proposal-class-properties": "7.16.7",
47
+ "@babel/plugin-proposal-decorators": "7.17.2",
48
+ "@babel/preset-env": "7.16.11",
49
+ "@open-wc/testing": "^3.1.2",
46
50
  "@open-wc/testing-karma": "^4.0.9",
47
- "@types/jest": "26.0.22",
48
- "babel-loader": "8.2.2",
49
- "codecov": "3.8.1",
50
- "concurrently": "6.0.2",
51
- "core-js": "3.11.0",
52
- "cpx2": "3.0.0",
53
- "eslint": "7.24.0",
54
- "eslint-plugin-testcafe": "0.2.1",
55
- "http-server": "0.12.3",
56
- "iso-language-codes": "1.0.7",
57
- "jest": "26.6.3",
51
+ "@types/jest": "^27.4.1",
52
+ "@webcomponents/webcomponentsjs": "^2.6.0",
53
+ "babel-loader": "8.2.3",
54
+ "codecov": "^3.8.3",
55
+ "concurrently": "7.0.0",
56
+ "core-js": "3.16.2",
57
+ "cpx2": "4.2.0",
58
+ "eslint": "^7.32.0",
59
+ "eslint-plugin-no-jquery": "^2.7.0",
60
+ "eslint-plugin-testcafe": "^0.2.1",
61
+ "hammerjs": "^2.0.8",
62
+ "http-server": "14.1.0",
63
+ "iso-language-codes": "1.1.0",
64
+ "jest": "^27.5.1",
58
65
  "jquery": "1.11.3",
59
66
  "jquery-colorbox": "1.6.4",
60
67
  "jquery-ui": "1.12.1",
61
68
  "jquery-ui-touch-punch": "0.2.3",
62
69
  "jquery.browser": "0.1.0",
63
70
  "jquery.mmenu": "5.6.5",
64
- "karma-coverage": "^2.0.3",
71
+ "karma-coverage": "^2.1.0",
65
72
  "live-server": "1.2.1",
66
- "node-fetch": "2.6.1",
67
- "regenerator-runtime": "0.13.7",
68
- "sass": "1.32.11",
69
- "sinon": "10.0.0",
73
+ "node-fetch": "2.6.7",
74
+ "regenerator-runtime": "0.13.9",
75
+ "sass": "1.38.2",
76
+ "sinon": "^12.0.1",
70
77
  "soundmanager2": "2.97.20170602",
71
- "svgo": "2.3.0",
72
- "testcafe": "1.14.0",
73
- "webpack": "5.35.0",
74
- "webpack-cli": "4.6.0"
78
+ "svgo": "2.4.0",
79
+ "testcafe": "^1.18.4",
80
+ "testcafe-browser-provider-browserstack": "^1.13.2-alpha.1",
81
+ "webpack": "5.51.1",
82
+ "webpack-cli": "4.8.0"
75
83
  },
76
84
  "jest": {
85
+ "testEnvironment": "jsdom",
86
+ "transformIgnorePatterns": [
87
+ "node_modules/(?!(lit-html|lit-element|lit|@lit|@internetarchive)/)"
88
+ ],
89
+ "moduleNameMapper": {
90
+ "^@/(.*)$": "<rootDir>/$1"
91
+ },
77
92
  "setupFiles": [
78
93
  "./src/jquery-wrapper.js"
79
94
  ],
80
95
  "roots": [
81
96
  "<rootDir>/src/",
82
- "<rootDir>/tests/"
83
- ],
84
- "testPathIgnorePatterns": [
85
- "<rootDir>/tests/e2e/",
86
- "<rootDir>/tests/karma/"
97
+ "<rootDir>/tests/jest/"
87
98
  ],
88
99
  "coverageDirectory": "<rootDir>/coverage-jest"
89
100
  },
@@ -91,7 +102,7 @@
91
102
  "preversion": "npm run test && node scripts/preversion.js",
92
103
  "version": "node scripts/version.js",
93
104
  "postversion": "node scripts/postversion.js",
94
- "build": "npm run clean && npm run build-js && npm run build-css && npm run build-assets",
105
+ "build": "npm run clean && npx concurrently --group npm:build-js npm:build-css npm:build-assets",
95
106
  "build-assets": "npx cpx \"src/assets/**/*\" BookReader && npx svgo -f BookReader/icons && npx svgo -f BookReader/images",
96
107
  "build-assets:watch": "npx cpx --watch --verbose \"src/assets/**/*\" BookReader",
97
108
  "build-js": "npx webpack",
@@ -104,13 +115,17 @@
104
115
  "serve": "npx http-server . --port 8000",
105
116
  "serve-live": "npx live-server . --port 8000 --watch=index.html,BookReader,BookReaderDemo",
106
117
  "serve-dev": "npm run build-css && npx concurrently --kill-others npm:serve-live npm:build-*:watch",
107
- "test": "npm run test-jest && npm run test-karma",
108
- "test:e2e": "npm run build && env BASE_URL=http://127.0.0.1:8000/BookReaderDemo/ npx testcafe",
109
- "test:e2e:dev": "env BASE_URL=http://127.0.0.1:8000/BookReaderDemo/ npx testcafe --live --dev",
118
+ "test": "npx concurrently --group npm:test-jest npm:test-karma",
119
+ "test:e2e": "npm run build && npx testcafe",
120
+ "test:e2e:dev": "npx testcafe --live --dev",
110
121
  "test-jest:watch": "npx jest --watch",
111
122
  "test-jest": "npx jest --coverage --colors",
112
123
  "test-karma": "npx karma start --coverage",
113
124
  "test-karma:watch": "npx karma start --auto-watch=true --single-run=false",
125
+ "DOCS:update:test-deps": "If CI succeeds, these should be good to update",
126
+ "update:test-deps": "npm i @babel/eslint-parser@latest @open-wc/testing@latest @open-wc/testing-karma@latest @types/jest@latest codecov@latest eslint@latest eslint-plugin-testcafe@latest jest@latest karma-coverage@latest sinon@latest testcafe@latest",
127
+ "DOCS:update:build-deps": "These can cause strange changes, so do an npm run build + check file size (git diff --stat), and check the site is as expected",
128
+ "update:build-deps": "npm i @babel/core@latest @babel/preset-env@latest babel-loader@latest core-js@latest regenerator-runtime@latest sass@latest svgo@latest webpack@latest webpack-cli@latest",
114
129
  "codecov": "npx codecov"
115
130
  }
116
131
  }
package/renovate.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "extends": [
3
+ "config:base"
4
+ ],
5
+ "packageRules": [
6
+ {
7
+ "matchPackageNames": [
8
+ "@babel/eslint-parser",
9
+ "@open-wc/testing",
10
+ "@open-wc/testing-karma",
11
+ "@types/jest",
12
+ "codecov",
13
+ "eslint",
14
+ "eslint-plugin-no-jquery",
15
+ "eslint-plugin-testcafe",
16
+ "jest",
17
+ "karma-coverage",
18
+ "sinon",
19
+ "testcafe"
20
+ ],
21
+ "automerge": true
22
+ },
23
+ {
24
+ "matchPackageNames": [
25
+ "concurrently",
26
+ "http-server",
27
+ "live-server",
28
+ "node-fetch"
29
+ ],
30
+ "matchUpdateTypes": ["minor", "patch"],
31
+ "automerge": true
32
+ },
33
+ {
34
+ "matchPackagePatterns": ["^@internetarchive/icon-"],
35
+ "groupName": "@internetarchive icons",
36
+ "rangeStrategy": "bump"
37
+ },
38
+ {
39
+ "matchPackagePatterns": ["*"],
40
+ "rangeStrategy": "bump"
41
+ }
42
+ ]
43
+ }
@@ -1,4 +1,4 @@
1
- import { css } from 'lit-element';
1
+ import { css } from 'lit';
2
2
 
3
3
  export default css`
4
4
  .blue {
@@ -1,4 +1,4 @@
1
- import { css } from 'lit-element';
1
+ import { css } from 'lit';
2
2
 
3
3
  export default css`
4
4
  .ia-button {
@@ -24,8 +24,10 @@ export default css`
24
24
  user-select: none;
25
25
  }
26
26
 
27
- .ia-button.link {
27
+ .ia-button.link,
28
+ .ia-button.external {
28
29
  min-height: unset;
30
+ text-decoration: none;
29
31
  }
30
32
 
31
33
  .ia-button:disabled,
@@ -51,4 +53,9 @@ export default css`
51
53
  background-color: var(--primaryErrorCTAFill);
52
54
  border-color: var(--primaryErrorCTABorder);
53
55
  }
56
+
57
+ .ia-button.external {
58
+ background: var(--secondaryCTAFill);
59
+ border-color: var(--secondaryCTABorder);
60
+ }
54
61
  `;
@@ -0,0 +1,17 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`
4
+ <svg class="ia-logo" width="27" height="30" viewBox="0 0 27 30" xmlns="http://www.w3.org/2000/svg" aria-labelledby="logoTitleID logoDescID">
5
+ <title id="logoTitleID">Internet Archive logo</title>
6
+ <desc id="logoDescID">A line drawing of the Internet Archive headquarters building façade.</desc>
7
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <mask id="mask-2" fill="white">
9
+ <path d="M26.6666667,28.6046512 L26.6666667,30 L0,30 L0.000283687943,28.6046512 L26.6666667,28.6046512 Z M25.6140351,26.5116279 L25.6140351,28.255814 L1.05263158,28.255814 L1.05263158,26.5116279 L25.6140351,26.5116279 Z M3.62469203,7.6744186 L3.91746909,7.82153285 L4.0639977,10.1739544 L4.21052632,13.9963932 L4.21052632,17.6725617 L4.0639977,22.255044 L4.03962296,25.3421929 L3.62469203,25.4651163 L2.16024641,25.4651163 L1.72094074,25.3421929 L1.55031755,22.255044 L1.40350877,17.6970339 L1.40350877,14.0211467 L1.55031755,10.1739544 L1.68423854,7.80887484 L1.98962322,7.6744186 L3.62469203,7.6744186 Z M24.6774869,7.6744186 L24.9706026,7.82153285 L25.1168803,10.1739544 L25.2631579,13.9963932 L25.2631579,17.6725617 L25.1168803,22.255044 L25.0927809,25.3421929 L24.6774869,25.4651163 L23.2130291,25.4651163 L22.7736357,25.3421929 L22.602418,22.255044 L22.4561404,17.6970339 L22.4561404,14.0211467 L22.602418,10.1739544 L22.7369262,7.80887484 L23.0420916,7.6744186 L24.6774869,7.6744186 Z M9.94042303,7.6744186 L10.2332293,7.82153285 L10.3797725,10.1739544 L10.5263158,13.9963932 L10.5263158,17.6725617 L10.3797725,22.255044 L10.3556756,25.3421929 L9.94042303,25.4651163 L8.47583122,25.4651163 L8.0362015,25.3421929 L7.86556129,22.255044 L7.71929825,17.6970339 L7.71929825,14.0211467 L7.86556129,10.1739544 L8.00005604,7.80887484 L8.30491081,7.6744186 L9.94042303,7.6744186 Z M18.0105985,7.6744186 L18.3034047,7.82153285 L18.449948,10.1739544 L18.5964912,13.9963932 L18.5964912,17.6725617 L18.449948,22.255044 L18.425851,25.3421929 L18.0105985,25.4651163 L16.5460067,25.4651163 L16.1066571,25.3421929 L15.9357367,22.255044 L15.7894737,17.6970339 L15.7894737,14.0211467 L15.9357367,10.1739544 L16.0702315,7.80887484 L16.3753664,7.6744186 L18.0105985,7.6744186 Z M25.6140351,4.53488372 L25.6140351,6.97674419 L1.05263158,6.97674419 L1.05263158,4.53488372 L25.6140351,4.53488372 Z M13.0806755,0 L25.9649123,2.93331338 L25.4484139,3.8372093 L0.771925248,3.8372093 L0,3.1041615 L13.0806755,0 Z" id="path-1"></path>
10
+ </mask>
11
+ <use fill="#FFFFFF" xlink:href="#path-1"></use>
12
+ <g mask="url(#mask-2)" fill="#FFFFFF">
13
+ <path d="M0,0 L26.6666667,0 L26.6666667,30 L0,30 L0,0 Z" id="swatch"></path>
14
+ </g>
15
+ </g>
16
+ </svg>
17
+ `;
@@ -1,4 +1,4 @@
1
- import { css } from 'lit-element';
1
+ import { css } from 'lit';
2
2
 
3
3
  // Original SVG object for reference
4
4
  // <svg height="10" viewBox="0 0 13 10" width="13" xmlns="http://www.w3.org/2000/svg"><path d="m4.33333333 10-4.33333333-4.16666667 1.73333333-1.66666666 2.6 2.5 6.93333337-6.66666667 1.7333333 1.66666667z" fill="#fff" fill-rule="evenodd"/></svg>
@@ -1,3 +1,3 @@
1
- import { css } from 'lit-element';
1
+ import { css } from 'lit';
2
2
 
3
3
  export default css`data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDAgNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJjbG9zZVRpdGxlSUQgY2xvc2VEZXNjSUQiPjxwYXRoIGQ9Ik0yOS4xOTIgMTAuODA4YTEuNSAxLjUgMCAwMTAgMi4xMkwyMi4xMjIgMjBsNy4wNyA3LjA3MmExLjUgMS41IDAgMDEtMi4xMiAyLjEyMWwtNy4wNzMtNy4wNy03LjA3IDcuMDdhMS41IDEuNSAwIDAxLTIuMTIxLTIuMTJsNy4wNy03LjA3My03LjA3LTcuMDdhMS41IDEuNSAwIDAxMi4xMi0yLjEyMUwyMCAxNy44NzhsNy4wNzItNy4wN2ExLjUgMS41IDAgMDEyLjEyMSAweiIgY2xhc3M9ImZpbGwtY29sb3IiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==`;
@@ -0,0 +1,5 @@
1
+ import { html } from 'lit';
2
+
3
+ export default html`
4
+ <svg name="sort-asc" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="m2.32514544 8.30769231.7756949-2.08468003h2.92824822l.75630252 2.08468003h1.01809955l-2.70523594-6.92307693h-1.01809955l-2.69553976 6.92307693zm3.41305753-2.86037492h-2.34647705l1.17323853-3.22883h.01939237z" fill="#fff" fill-rule="nonzero"/><path d="m7.1689722 16.6153846v-.7756949h-4.4117647l4.29541047-5.3716871v-.77569491h-5.06140918v.77569491h3.97543633l-4.30510666 5.3716871v.7756949z" fill="#fff" fill-rule="nonzero"/><path d="m10.3846154 11.0769231 2.7692308 5.5384615 2.7692307-5.5384615m-2.7692307 4.1538461v-13.15384612" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.661538" transform="matrix(1 0 0 -1 0 18.692308)"/></g></svg>
5
+ `;
@@ -0,0 +1,5 @@
1
+ import { html } from 'lit';
2
+
3
+ export default html`
4
+ <svg name="sort-desc" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="m2.32514544 8.30769231.7756949-2.08468003h2.92824822l.75630252 2.08468003h1.01809955l-2.70523594-6.92307693h-1.01809955l-2.69553976 6.92307693zm3.41305753-2.86037492h-2.34647705l1.17323853-3.22883h.01939237z" fill="#fff" fill-rule="nonzero"/><path d="m7.1689722 16.6153846v-.7756949h-4.4117647l4.29541047-5.3716871v-.77569491h-5.06140918v.77569491h3.97543633l-4.30510666 5.3716871v.7756949z" fill="#fff" fill-rule="nonzero"/><path d="m10.3846154 11.0769231 2.7692308 5.5384615 2.7692307-5.5384615m-2.7692307 4.1538461v-13.15384612" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.661538"/></g></svg>
5
+ `;
@@ -0,0 +1,5 @@
1
+ import { html } from 'lit';
2
+
3
+ export default html`
4
+ <svg name="sort-neutral" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg"><g fill="#fff" fill-rule="evenodd"><path d="m2.32514544 8.30769231.7756949-2.08468003h2.92824822l.75630252 2.08468003h1.01809955l-2.70523594-6.92307693h-1.01809955l-2.69553976 6.92307693zm3.41305753-2.86037492h-2.34647705l1.17323853-3.22883h.01939237z" fill-rule="nonzero"/><path d="m7.1689722 16.6153846v-.7756949h-4.4117647l4.29541047-5.3716871v-.77569491h-5.06140918v.77569491h3.97543633l-4.30510666 5.3716871v.7756949z" fill-rule="nonzero"/><circle cx="13" cy="9" r="2"/></g></svg>
5
+ `;
@@ -0,0 +1,11 @@
1
+ import { html } from 'lit';
2
+
3
+ export default html`
4
+ <svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" aria-labelledby="volumesTitleID volumesDescID">
5
+ <title id="volumesTitleID">Volumes icon</title>
6
+ <desc id="volumesDescID">Three books stacked on each other</desc>
7
+ <g fill="#ffffff">
8
+ <path fill="#ffffff" d="m9.83536396 0h10.07241114c.1725502.47117517.3378411.76385809.4958725.87804878.1295523.11419069.3199719.1998337.5712586.25692905.2512868.05709534.4704647.08564301.6575337.08564301h.2806036v15.24362526h-4.3355343v3.8106985h-4.44275v3.7250554h-12.01318261c-.27306495 0-.50313194-.085643-.69020098-.256929-.18706903-.1712861-.30936193-.3425721-.36687867-.5138581l-.06449694-.2785477v-14.2159091c0-.32815965.08627512-.5922949.25882537-.79240577.17255024-.20011086.34510049-.32150776.51765073-.36419068l.25882537-.0640244h3.36472977v-2.54767184c0-.31374722.08627513-.57067627.25882537-.77078714.17255025-.20011086.34510049-.32150776.51765074-.36419068l.25882536-.06402439h3.36472978v-2.56929047c0-.32815964.08627512-.5922949.25882537-.79240576.17255024-.20011087.34510049-.31430156.51765073-.34257207zm10.78355264 15.6294346v-13.53076498c-.2730649-.08536585-.4456152-.16380266-.5176507-.23531042-.1725502-.1424612-.2730649-.27078714-.3015441-.38497783v13.36031043h-9.87808272c0 .0144124-.02149898.0144124-.06449694 0-.04299795-.0144124-.08962561.006929-.13988296.0640244-.05025735.0570953-.07538603.1427383-.07538603.256929s.02149898.210643.06449694.289357c.04299795.078714.08599591.1322062.12899387.1604767l.06449693.0216187h10.71905571zm-10.2449613-2.4412417h7.98003v-11.60421286h-7.98003zm1.6827837-9.41990022h4.6153002c.1725502 0 .3199718.05349224.4422647.16047672s.1834393.23891353.1834393.39578714c0 .15687362-.0611464.28519956-.1834393.38497783s-.2697145.1496674-.4422647.1496674h-4.6153002c-.1725503 0-.3199719-.04988913-.4422647-.1496674-.1222929-.09977827-.1834394-.22810421-.1834394-.38497783 0-.15687361.0611465-.28880266.1834394-.39578714.1222928-.10698448.2697144-.16047672.4422647-.16047672zm-6.08197737 13.50997782h7.72120467v-.8131929h-3.79610541c-.27306495 0-.49950224-.085643-.67931188-.256929-.17980964-.1712861-.29847284-.3425721-.35598958-.5138581l-.06449694-.2785477v-10.02023282h-2.82530086zm6.77217827-11.36890243h3.2139578c.1295522 0 .240956.05709534.3342113.17128603.0932554.11419069.139883.24972284.139883.40659645 0 .15687362-.0466276.28880267-.139883.39578714-.0932553.10698448-.2046591.16047672-.3342113.16047672h-3.2139578c-.1295523 0-.2373264-.05349224-.3233223-.16047672-.0859959-.10698447-.1289938-.23891352-.1289938-.39578714 0-.15687361.0429979-.29240576.1289938-.40659645s.19377-.17128603.3233223-.17128603zm-11.15043132 15.11557653h7.69942646v-.7491685h-3.79610539c-.25854616 0-.48135376-.0892462-.66842279-.2677384-.18706904-.1784922-.30936193-.3605876-.36687868-.546286l-.06449694-.2569291v-10.04101994h-2.80352266zm14.62237682-4.5606985h-.8191949v2.1410754h-9.89986085s-.04299796.0285477-.12899387.085643c-.08599592.0570954-.12201369.1427384-.10805331.2569291 0 .1141907.01786928.210643.05360784.289357.03573856.0787139.07538603.125.1189424.138858l.06449694.0432373h10.71905575v-2.9542683zm-4.3991936 3.8106985h-.8191949v2.077051h-9.8563045c0 .0144124-.02149898.0144124-.06449694 0-.04299795-.0144125-.08962561.0105321-.13988296.0748337-.05025735.0643015-.07538603.1607538-.07538603.289357 0 .1141906.02149898.2070399.06449694.2785476.04299795.0715078.08599591.1141907.12899387.1280488l.06449693.0216186h10.69811519v-2.8686252z" />
9
+ </g>
10
+ </svg>
11
+ `;