@internetarchive/bookreader 5.0.0-42-a2 → 5.0.0-44-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 (72) hide show
  1. package/.github/workflows/node.js.yml +14 -14
  2. package/.github/workflows/npm-publish.yml +4 -4
  3. package/BookReader/BookReader.css +14 -15
  4. package/BookReader/BookReader.js +1 -1
  5. package/BookReader/BookReader.js.map +1 -1
  6. package/BookReader/ia-bookreader-bundle.js +87 -87
  7. package/BookReader/ia-bookreader-bundle.js.map +1 -1
  8. package/BookReader/icons/pause.svg +1 -1
  9. package/BookReader/icons/playback-speed.svg +1 -1
  10. package/BookReader/icons/read-aloud.svg +1 -1
  11. package/BookReader/images/BRicons.svg +2 -2
  12. package/BookReader/images/books_graphic.svg +1 -1
  13. package/BookReader/images/icon_book.svg +1 -1
  14. package/BookReader/images/icon_gear.svg +1 -1
  15. package/BookReader/images/icon_info.svg +1 -1
  16. package/BookReader/images/icon_playback-rate.svg +1 -1
  17. package/BookReader/images/icon_search_button.svg +1 -1
  18. package/BookReader/images/icon_share.svg +1 -1
  19. package/BookReader/images/icon_speaker.svg +1 -1
  20. package/BookReader/images/icon_speaker_open.svg +1 -1
  21. package/BookReader/images/marker_chap-off.svg +1 -1
  22. package/BookReader/images/marker_chap-on.svg +1 -1
  23. package/BookReader/images/marker_srch-on.svg +1 -1
  24. package/BookReader/jquery-1.10.1.js +1 -1
  25. package/BookReader/jquery-1.10.1.js.LICENSE.txt +6 -6
  26. package/BookReader/plugins/plugin.archive_analytics.js +1 -1
  27. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
  28. package/BookReader/plugins/plugin.resume.js +1 -1
  29. package/BookReader/plugins/plugin.resume.js.map +1 -1
  30. package/BookReader/plugins/plugin.search.js +1 -1
  31. package/BookReader/plugins/plugin.search.js.map +1 -1
  32. package/BookReader/plugins/plugin.text_selection.js +1 -1
  33. package/BookReader/plugins/plugin.text_selection.js.map +1 -1
  34. package/BookReader/plugins/plugin.tts.js +1 -1
  35. package/BookReader/plugins/plugin.tts.js.map +1 -1
  36. package/BookReader/plugins/plugin.url.js +1 -1
  37. package/BookReader/plugins/plugin.url.js.map +1 -1
  38. package/BookReader/plugins/plugin.vendor-fullscreen.js +1 -1
  39. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
  40. package/BookReaderDemo/IADemoBr.js +30 -0
  41. package/BookReaderDemo/demo-internetarchive.html +3 -0
  42. package/CHANGELOG.md +9 -0
  43. package/babel.config.js +1 -1
  44. package/package.json +22 -27
  45. package/renovate.json +13 -4
  46. package/scripts/preversion.js +4 -1
  47. package/src/BookNavigator/book-navigator.js +4 -0
  48. package/src/BookNavigator/downloads/downloads-provider.js +14 -5
  49. package/src/BookNavigator/downloads/downloads.js +23 -1
  50. package/src/BookNavigator/search/a-search-result.js +4 -6
  51. package/src/css/_controls.scss +1 -2
  52. package/src/plugins/search/plugin.search.js +17 -4
  53. package/src/plugins/search/view.js +1 -3
  54. package/src/plugins/tts/plugin.tts.js +15 -3
  55. package/tests/{karma → jest}/BookNavigator/book-navigator.test.js +119 -104
  56. package/tests/{karma → jest}/BookNavigator/bookmarks/bookmark-button.test.js +13 -14
  57. package/tests/{karma → jest}/BookNavigator/bookmarks/bookmark-edit.test.js +25 -26
  58. package/tests/{karma → jest}/BookNavigator/bookmarks/bookmarks-list.test.js +41 -42
  59. package/tests/jest/BookNavigator/bookmarks/ia-bookmarks.test.js +45 -0
  60. package/tests/{karma → jest}/BookNavigator/downloads/downloads-provider.test.js +18 -18
  61. package/tests/{karma → jest}/BookNavigator/downloads/downloads.test.js +7 -8
  62. package/tests/{karma → jest}/BookNavigator/search/search-provider.test.js +29 -29
  63. package/tests/{karma → jest}/BookNavigator/search/search-results.test.js +57 -56
  64. package/tests/{karma → jest}/BookNavigator/sharing/sharing-provider.test.js +8 -8
  65. package/tests/jest/BookNavigator/visual-adjustments.test.js +200 -0
  66. package/tests/{karma → jest}/BookNavigator/volumes/volumes-provider.test.js +38 -38
  67. package/tests/{karma → jest}/BookNavigator/volumes/volumes.test.js +15 -16
  68. package/tests/jest/plugins/search/plugin.search.test.js +40 -23
  69. package/tests/jest/plugins/tts/AbstractTTSEngine.test.js +3 -3
  70. package/karma.conf.js +0 -23
  71. package/tests/karma/BookNavigator/bookmarks/ia-bookmarks.test.js +0 -57
  72. package/tests/karma/BookNavigator/visual-adjustments.test.js +0 -201
@@ -14,12 +14,12 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v2
18
- - uses: actions/setup-node@v1
17
+ - uses: actions/checkout@v3
18
+ - uses: actions/setup-node@v3
19
19
  with:
20
20
  node-version: 16.x
21
21
  - name: Cache node_modules
22
- uses: actions/cache@v2
22
+ uses: actions/cache@v3
23
23
  id: cache
24
24
  with:
25
25
  # Caching node_modules isn't recommended because it can break across
@@ -36,18 +36,18 @@ jobs:
36
36
  needs: install
37
37
  runs-on: ubuntu-latest
38
38
  steps:
39
- - uses: actions/checkout@v2
40
- - uses: actions/setup-node@v1
39
+ - uses: actions/checkout@v3
40
+ - uses: actions/setup-node@v3
41
41
  with:
42
42
  node-version: 16.x
43
43
  - name: Load node_modules from cache
44
- uses: actions/cache@v2
44
+ uses: actions/cache@v3
45
45
  with:
46
46
  # Use node_modules from previous jobs
47
47
  path: 'node_modules'
48
48
  key: ${{ runner.os }}-node-16-${{ hashFiles('package*.json') }}
49
49
  - name: Cache BookReader/
50
- uses: actions/cache@v2
50
+ uses: actions/cache@v3
51
51
  id: build-cache
52
52
  with:
53
53
  # Cache the build files so we don't have to build twice for e2e tests
@@ -60,12 +60,12 @@ jobs:
60
60
  needs: install
61
61
  runs-on: ubuntu-latest
62
62
  steps:
63
- - uses: actions/checkout@v2
64
- - uses: actions/setup-node@v1
63
+ - uses: actions/checkout@v3
64
+ - uses: actions/setup-node@v3
65
65
  with:
66
66
  node-version: 16.x
67
67
  - name: Load node_modules from cache
68
- uses: actions/cache@v2
68
+ uses: actions/cache@v3
69
69
  with:
70
70
  # Use node_modules from previous jobs
71
71
  path: 'node_modules'
@@ -78,18 +78,18 @@ jobs:
78
78
  needs: build
79
79
  runs-on: ubuntu-latest
80
80
  steps:
81
- - uses: actions/checkout@v2
82
- - uses: actions/setup-node@v1
81
+ - uses: actions/checkout@v3
82
+ - uses: actions/setup-node@v3
83
83
  with:
84
84
  node-version: 16.x
85
85
  - name: Load node_modules from cache
86
- uses: actions/cache@v2
86
+ uses: actions/cache@v3
87
87
  with:
88
88
  # Use node_modules from previous jobs
89
89
  path: 'node_modules'
90
90
  key: ${{ runner.os }}-node-16-${{ hashFiles('package*.json') }}
91
91
  - name: Load BookReader/ from cache
92
- uses: actions/cache@v2
92
+ uses: actions/cache@v3
93
93
  with:
94
94
  # Cache the build files so we don't have to build twice for e2e tests
95
95
  path: 'BookReader'
@@ -11,8 +11,8 @@ jobs:
11
11
  build:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
- - uses: actions/checkout@v2
15
- - uses: actions/setup-node@v2
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-node@v3
16
16
  with:
17
17
  node-version: 16
18
18
  - run: npm ci
@@ -22,8 +22,8 @@ jobs:
22
22
  needs: build
23
23
  runs-on: ubuntu-latest
24
24
  steps:
25
- - uses: actions/checkout@v2
26
- - uses: actions/setup-node@v2
25
+ - uses: actions/checkout@v3
26
+ - uses: actions/setup-node@v3
27
27
  with:
28
28
  node-version: 16
29
29
  registry-url: https://registry.npmjs.org/
@@ -205,7 +205,7 @@
205
205
  display: block;
206
206
  }
207
207
  .BRshare button[type=button].share-finished {
208
- background-color: #4a90e2;
208
+ background-color: rgb(74, 144, 226);
209
209
  border: 0;
210
210
  color: white;
211
211
  border-radius: 3px;
@@ -228,13 +228,13 @@
228
228
  }
229
229
 
230
230
  .BRinfoMoreInfoWrapper {
231
- background-color: #4a90e2;
231
+ background-color: rgb(74, 144, 226);
232
232
  border-radius: 2px;
233
233
  padding: 8px;
234
234
  text-align: center;
235
235
  }
236
236
  .BRinfoMoreInfoWrapper:active {
237
- background-color: #509bf2;
237
+ background-color: rgb(80, 155, 242);
238
238
  }
239
239
 
240
240
  .BRinfoOtherFormats {
@@ -285,10 +285,10 @@ body.BRfullscreenActive .mm-menu {
285
285
  line-height: 1;
286
286
  }
287
287
  .BRaction:active {
288
- background-color: #ababab;
288
+ background-color: rgb(171, 171, 171);
289
289
  }
290
290
  .BRaction.default {
291
- background-color: #c1c1c1;
291
+ background-color: rgb(193, 193, 193);
292
292
  color: white;
293
293
  }
294
294
  .BRaction.primary {
@@ -303,7 +303,7 @@ body.BRfullscreenActive .mm-menu {
303
303
  color: orange;
304
304
  }
305
305
  .BRaction.orangeButton:active {
306
- border-color: #f9c613;
306
+ border-color: rgb(249, 198, 19);
307
307
  }
308
308
  .BRaction.skinny {
309
309
  min-width: 50px;
@@ -535,7 +535,7 @@ svg.BRPageLayer {
535
535
 
536
536
  .BRleafEdgeR {
537
537
  border-style: solid solid solid none;
538
- border-color: #333322;
538
+ border-color: rgb(51, 51, 34);
539
539
  border-width: 1px 1px 1px 0px;
540
540
  background: transparent url(images/back_pages.png) repeat scroll 0% 0%;
541
541
  position: absolute;
@@ -755,7 +755,7 @@ i.BRicon {
755
755
  * BRfloat is the modal popup used in bookreader
756
756
  */
757
757
  .BRfloat {
758
- color: #343434;
758
+ color: rgb(52, 52, 52);
759
759
  }
760
760
 
761
761
  .BRfloat a.title {
@@ -926,7 +926,7 @@ i.BRicon {
926
926
  font-size: 16px;
927
927
  font-weight: 700;
928
928
  text-align: center;
929
- border-bottom: 1px solid #d8d8d8;
929
+ border-bottom: 1px solid rgb(216, 216, 216);
930
930
  }
931
931
 
932
932
  .BRfloatFoot {
@@ -945,7 +945,7 @@ i.BRicon {
945
945
  .BRfloatHead {
946
946
  box-sizing: border-box;
947
947
  line-height: normal;
948
- border-bottom: 1px solid #d8d8d8;
948
+ border-bottom: 1px solid rgb(216, 216, 216);
949
949
  padding: 10px;
950
950
  min-height: initial;
951
951
  font-size: 14px;
@@ -2306,7 +2306,7 @@ html.mm-opening .mm-slideout {
2306
2306
 
2307
2307
  .mm-panel h1 {
2308
2308
  margin-top: 0;
2309
- color: #245e83;
2309
+ color: rgb(36, 94, 131);
2310
2310
  font-size: 14px;
2311
2311
  }
2312
2312
 
@@ -2700,13 +2700,12 @@ li.BRtable-contents-el .BRTOCElementPage {
2700
2700
  -webkit-appearance: none;
2701
2701
  appearance: none;
2702
2702
  font-size: 10px;
2703
- text-align: center;
2704
2703
  text-align-last: center;
2705
2704
  color: #fff;
2706
2705
  border: none;
2707
2706
  cursor: pointer;
2708
2707
  }
2709
- .BRcontrols select.playback-speed option, .BRcontrols select.playback-voices option {
2708
+ .BRcontrols select.playback-speed option, .BRcontrols select.playback-speed optgroup, .BRcontrols select.playback-voices option, .BRcontrols select.playback-voices optgroup {
2710
2709
  background: #333;
2711
2710
  }
2712
2711
  .BRcontrols select.playback-speed {
@@ -2904,10 +2903,10 @@ li.BRtable-contents-el .BRTOCElementPage {
2904
2903
  cursor: text;
2905
2904
  }
2906
2905
  .textSelectionSVG .BRwordElement::selection {
2907
- background: rgba(86, 158, 230, 0.4);
2906
+ background: hsla(210deg, 74%, 62%, 0.4);
2908
2907
  }
2909
2908
  .textSelectionSVG .BRwordElement::-moz-selection {
2910
- background: rgba(86, 158, 230, 0.4);
2909
+ background: hsla(210deg, 74%, 62%, 0.4);
2911
2910
  color: transparent;
2912
2911
  }
2913
2912
  .textSelectionSVG .BRparagElement {