@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.
- package/.github/workflows/node.js.yml +14 -14
- package/.github/workflows/npm-publish.yml +4 -4
- package/BookReader/BookReader.css +14 -15
- package/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +87 -87
- package/BookReader/ia-bookreader-bundle.js.map +1 -1
- package/BookReader/icons/pause.svg +1 -1
- package/BookReader/icons/playback-speed.svg +1 -1
- package/BookReader/icons/read-aloud.svg +1 -1
- package/BookReader/images/BRicons.svg +2 -2
- package/BookReader/images/books_graphic.svg +1 -1
- package/BookReader/images/icon_book.svg +1 -1
- package/BookReader/images/icon_gear.svg +1 -1
- package/BookReader/images/icon_info.svg +1 -1
- package/BookReader/images/icon_playback-rate.svg +1 -1
- package/BookReader/images/icon_search_button.svg +1 -1
- package/BookReader/images/icon_share.svg +1 -1
- package/BookReader/images/icon_speaker.svg +1 -1
- package/BookReader/images/icon_speaker_open.svg +1 -1
- package/BookReader/images/marker_chap-off.svg +1 -1
- package/BookReader/images/marker_chap-on.svg +1 -1
- package/BookReader/images/marker_srch-on.svg +1 -1
- package/BookReader/jquery-1.10.1.js +1 -1
- package/BookReader/jquery-1.10.1.js.LICENSE.txt +6 -6
- package/BookReader/plugins/plugin.archive_analytics.js +1 -1
- package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
- package/BookReader/plugins/plugin.resume.js +1 -1
- package/BookReader/plugins/plugin.resume.js.map +1 -1
- package/BookReader/plugins/plugin.search.js +1 -1
- package/BookReader/plugins/plugin.search.js.map +1 -1
- package/BookReader/plugins/plugin.text_selection.js +1 -1
- package/BookReader/plugins/plugin.text_selection.js.map +1 -1
- package/BookReader/plugins/plugin.tts.js +1 -1
- package/BookReader/plugins/plugin.tts.js.map +1 -1
- package/BookReader/plugins/plugin.url.js +1 -1
- package/BookReader/plugins/plugin.url.js.map +1 -1
- package/BookReader/plugins/plugin.vendor-fullscreen.js +1 -1
- package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
- package/BookReaderDemo/IADemoBr.js +30 -0
- package/BookReaderDemo/demo-internetarchive.html +3 -0
- package/CHANGELOG.md +9 -0
- package/babel.config.js +1 -1
- package/package.json +22 -27
- package/renovate.json +13 -4
- package/scripts/preversion.js +4 -1
- package/src/BookNavigator/book-navigator.js +4 -0
- package/src/BookNavigator/downloads/downloads-provider.js +14 -5
- package/src/BookNavigator/downloads/downloads.js +23 -1
- package/src/BookNavigator/search/a-search-result.js +4 -6
- package/src/css/_controls.scss +1 -2
- package/src/plugins/search/plugin.search.js +17 -4
- package/src/plugins/search/view.js +1 -3
- package/src/plugins/tts/plugin.tts.js +15 -3
- package/tests/{karma → jest}/BookNavigator/book-navigator.test.js +119 -104
- package/tests/{karma → jest}/BookNavigator/bookmarks/bookmark-button.test.js +13 -14
- package/tests/{karma → jest}/BookNavigator/bookmarks/bookmark-edit.test.js +25 -26
- package/tests/{karma → jest}/BookNavigator/bookmarks/bookmarks-list.test.js +41 -42
- package/tests/jest/BookNavigator/bookmarks/ia-bookmarks.test.js +45 -0
- package/tests/{karma → jest}/BookNavigator/downloads/downloads-provider.test.js +18 -18
- package/tests/{karma → jest}/BookNavigator/downloads/downloads.test.js +7 -8
- package/tests/{karma → jest}/BookNavigator/search/search-provider.test.js +29 -29
- package/tests/{karma → jest}/BookNavigator/search/search-results.test.js +57 -56
- package/tests/{karma → jest}/BookNavigator/sharing/sharing-provider.test.js +8 -8
- package/tests/jest/BookNavigator/visual-adjustments.test.js +200 -0
- package/tests/{karma → jest}/BookNavigator/volumes/volumes-provider.test.js +38 -38
- package/tests/{karma → jest}/BookNavigator/volumes/volumes.test.js +15 -16
- package/tests/jest/plugins/search/plugin.search.test.js +40 -23
- package/tests/jest/plugins/tts/AbstractTTSEngine.test.js +3 -3
- package/karma.conf.js +0 -23
- package/tests/karma/BookNavigator/bookmarks/ia-bookmarks.test.js +0 -57
- 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@
|
18
|
-
- uses: actions/setup-node@
|
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@
|
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@
|
40
|
-
- uses: actions/setup-node@
|
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@
|
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@
|
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@
|
64
|
-
- uses: actions/setup-node@
|
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@
|
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@
|
82
|
-
- uses: actions/setup-node@
|
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@
|
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@
|
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@
|
15
|
-
- uses: actions/setup-node@
|
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@
|
26
|
-
- uses: actions/setup-node@
|
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:
|
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:
|
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:
|
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:
|
288
|
+
background-color: rgb(171, 171, 171);
|
289
289
|
}
|
290
290
|
.BRaction.default {
|
291
|
-
background-color:
|
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:
|
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:
|
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:
|
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
|
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
|
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:
|
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:
|
2906
|
+
background: hsla(210deg, 74%, 62%, 0.4);
|
2908
2907
|
}
|
2909
2908
|
.textSelectionSVG .BRwordElement::-moz-selection {
|
2910
|
-
background:
|
2909
|
+
background: hsla(210deg, 74%, 62%, 0.4);
|
2911
2910
|
color: transparent;
|
2912
2911
|
}
|
2913
2912
|
.textSelectionSVG .BRparagElement {
|