@internetarchive/bookreader 5.0.0-63 → 5.0.0-64
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/node.js.yml +1 -0
- package/BookReader/BookReader.css +45 -58
- package/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.LICENSE.txt +2 -0
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +95 -95
- package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +2 -0
- package/BookReader/ia-bookreader-bundle.js.map +1 -1
- package/BookReader/icons/1up.svg +1 -1
- package/BookReader/icons/2up.svg +1 -1
- package/BookReader/icons/advance.svg +1 -1
- package/BookReader/icons/chevron-right.svg +1 -1
- package/BookReader/icons/close-circle-dark.svg +1 -1
- package/BookReader/icons/close-circle.svg +1 -1
- package/BookReader/icons/fullscreen.svg +1 -1
- package/BookReader/icons/fullscreen_exit.svg +1 -1
- package/BookReader/icons/hamburger.svg +1 -1
- package/BookReader/icons/left-arrow.svg +1 -1
- package/BookReader/icons/magnify-minus.svg +1 -1
- package/BookReader/icons/magnify-plus.svg +1 -1
- package/BookReader/icons/magnify.svg +1 -1
- package/BookReader/icons/pause.svg +1 -1
- package/BookReader/icons/play.svg +1 -1
- package/BookReader/icons/playback-speed.svg +1 -1
- package/BookReader/icons/read-aloud.svg +1 -1
- package/BookReader/icons/review.svg +1 -1
- package/BookReader/icons/thumbnails.svg +1 -1
- package/BookReader/icons/voice.svg +1 -1
- package/BookReader/icons/volume-full.svg +1 -1
- package/BookReader/images/BRicons.svg +3 -3
- package/BookReader/images/books_graphic.svg +1 -1
- package/BookReader/images/icon_book.svg +1 -1
- package/BookReader/images/icon_bookmark.svg +1 -1
- package/BookReader/images/icon_gear.svg +1 -1
- package/BookReader/images/icon_hamburger.svg +1 -1
- package/BookReader/images/icon_home.svg +1 -1
- package/BookReader/images/icon_info.svg +1 -1
- package/BookReader/images/icon_one_page.svg +1 -1
- package/BookReader/images/icon_pause.svg +1 -1
- package/BookReader/images/icon_play.svg +1 -1
- package/BookReader/images/icon_search_button.svg +1 -1
- package/BookReader/images/icon_share.svg +1 -1
- package/BookReader/images/icon_skip-ahead.svg +1 -1
- package/BookReader/images/icon_skip-back.svg +1 -1
- package/BookReader/images/icon_speaker.svg +1 -1
- package/BookReader/images/icon_speaker_open.svg +1 -1
- package/BookReader/images/icon_thumbnails.svg +1 -1
- package/BookReader/images/icon_toc.svg +1 -1
- package/BookReader/images/icon_two_pages.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-3.js +1 -1
- package/BookReader/plugins/plugin.archive_analytics.js +1 -1
- package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
- package/BookReader/plugins/plugin.autoplay.js +1 -1
- package/BookReader/plugins/plugin.autoplay.js.map +1 -1
- package/BookReader/plugins/plugin.chapters.js +2 -1
- package/BookReader/plugins/plugin.chapters.js.LICENSE.txt +1 -0
- package/BookReader/plugins/plugin.chapters.js.map +1 -1
- package/BookReader/plugins/plugin.iframe.js.map +1 -1
- package/BookReader/plugins/plugin.mobile_nav.js +1 -1
- package/BookReader/plugins/plugin.mobile_nav.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 +2 -1
- package/BookReader/plugins/plugin.search.js.LICENSE.txt +1 -0
- package/BookReader/plugins/plugin.search.js.map +1 -1
- package/BookReader/plugins/plugin.text_selection.js +2 -1
- package/BookReader/plugins/plugin.text_selection.js.LICENSE.txt +1 -0
- package/BookReader/plugins/plugin.text_selection.js.map +1 -1
- package/BookReader/plugins/plugin.tts.js +1 -1
- package/BookReader/plugins/plugin.tts.js.LICENSE.txt +2 -0
- 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/BookReader/webcomponents-bundle.js +1 -1
- package/BookReader/webcomponents-bundle.js.map +1 -1
- package/CHANGELOG.md +5 -0
- package/babel.config.js +5 -4
- package/netlify.toml +4 -0
- package/package.json +15 -15
- package/src/BookNavigator/search/search-results.js +1 -7
- package/src/BookReader/utils.js +10 -0
- package/src/css/_BRnav.scss +2 -2
- package/src/css/_BRsearch.scss +38 -10
- package/src/plugins/search/plugin.search.js +14 -21
- package/src/plugins/search/utils.js +43 -0
- package/src/plugins/search/view.js +11 -24
- package/tests/e2e/helpers/desktopSearch.js +3 -3
- package/tests/jest/BookNavigator/search/search-results.test.js +6 -1
- package/tests/jest/BookReader/utils.test.js +12 -0
- package/tests/jest/plugins/search/plugin.search.test.js +2 -39
- package/tests/jest/plugins/search/plugin.search.view.test.js +5 -0
- package/tests/jest/plugins/search/utils.js +25 -0
- package/tests/jest/plugins/search/utils.test.js +29 -0
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="23" height="23" aria-labelledby="infoTitleID infoDescID"><path fill="#fff" fill-rule="evenodd" d="M11.5 23C17.851 23 23 17.851 23 11.5S17.851 0 11.5 0 0 5.149 0 11.5 5.149 23 11.5 23Zm3.093-17.385c0 .392-.14.73-.422 1.011a1.38 1.38 0 0 1-1.01.423 1.38 1.38 0 0 1-1.012-.423 1.38 1.38 0 0 1-.422-1.01c0-.399.14-.737.422-1.016a1.387 1.387 0 0 1 1.011-.418c.392 0 .729.14 1.01.418.283.279.423.617.423 1.015Zm-1.543 9.06h.928c-.784 1.672-1.88 2.509-3.29 2.509-.57 0-.998-.12-1.286-.359-.288-.239-.432-.594-.432-1.066 0-.275.12-.76.358-1.451l1.103-3.17c.086-.245.129-.405.129-.478 0-.074-.017-.127-.05-.161-.035-.034-.088-.05-.162-.05-.312 0-.68.398-1.102 1.194h-.882c.79-1.71 1.905-2.564 3.344-2.564.509 0 .904.124 1.186.372.281.249.422.59.422 1.025 0 .319-.125.824-.376 1.516l-1.066 2.904c-.153.41-.23.667-.23.772 0 .067.02.119.06.156.04.036.096.055.17.055.159 0 .363-.138.61-.414.249-.275.437-.539.566-.79Z"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="42" aria-labelledby="mobile1upTitleID mobile1upDescID"><rect width="27.907" height="40" x="14" fill="none" fill-rule="evenodd" stroke="#fff" stroke-width="2" rx="1" transform="translate(-13 1)"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path fill="#333" fill-rule="evenodd" d="M32 18h6v25h-6zm-10 0h6v25h-6z"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path fill="#333" fill-rule="evenodd" d="M47 30.5 22 43V18z"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" aria-labelledby="searchButtonTitleID searchButtonDescID"><path fill="#fff" fill-rule="evenodd" d="m18.414 16.661-5.84-5.768a6.44 6.44 0 0 0 1.261-3.822c0-.073-.01-.144-.022-.213.012-.07.023-.142.023-.216 0-3.603-2.968-6.535-6.616-6.535-.065 0-.128.01-.19.019-.063-.009-.125-.019-.19-.019C3.192.107.224 3.04.224 6.642c0 .073.01.143.022.213-.013.07-.023.141-.023.216 0 3.603 2.968 6.534 6.617 6.534.064 0 .127-.01.19-.019.062.01.124.02.189.02a6.626 6.626 0 0 0 3.383-.93l5.924 5.85c.26.258.602.387.944.387.342 0 .684-.13.944-.387a1.307 1.307 0 0 0 0-1.865ZM7.03 10.987c-.063-.01-.125-.02-.19-.02-2.176 0-3.946-1.747-3.946-3.896 0-.073-.01-.143-.022-.213a1.27 1.27 0 0 0 .022-.216c0-2.149 1.77-3.897 3.946-3.897.065 0 .127-.01.19-.018.062.008.124.018.19.018 2.175 0 3.945 1.748 3.945 3.897 0 .073.01.143.022.213-.012.07-.023.142-.023.216 0 2.149-1.77 3.897-3.945 3.897-.065 0-.127.01-.19.019Z"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="23" height="20" aria-labelledby="shareTitleID shareDescID"><g fill="#fff" fill-rule="evenodd"><path d="M2.325 19.425C1.043 19.425 0 18.33 0 16.98V4.065C0 2.717 1.043 1.62 2.325 1.62h12.947L9.438 4.093H2.326l.052 12.886 13.587-.028-.052-1.741 2.379-1.842v3.612c0 1.349-1.044 2.445-2.327 2.445H2.325Z"/><path d="M15.86 9.336c-5.554-.036-9.704 3.229-9.704 3.229s.658-7.222 9.721-9.002V0l7.019 6.625-3.413 3.21-3.606 3.404-.017-3.903Z"/></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg height="20" viewBox="-1 0 20 20"
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="-1 0 20 20"><g fill="none" fill-rule="evenodd"><path stroke="#333" stroke-width="2" d="M5.556 16.667H0V3.333h14.444"/><path fill="#333" d="M14.444 0v6.667l4.445-3.334z"/></g></svg>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 21 20"
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 21 20"><g fill="none" fill-rule="evenodd"><path stroke="#333" stroke-width="2" d="M14.444 16.667H20V3.333H5.556"/><path fill="#333" d="M5.556 0v6.667L1.11 3.333z"/><text fill="#333" font-family="HelveticaNeue, Helvetica Neue" font-size="10">
|
2
2
|
</text></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="23"><path fill="#245E83" fill-rule="evenodd" d="M16.122.401a.814.814 0 0 0-.82.048L7.997 5.353H.794A.784.784 0 0 0 0 6.127v10.496c0 .427.355.774.794.774h7.214l7.31 4.661a.81.81 0 0 0 .813.034.772.772 0 0 0 .416-.681V1.086a.77.77 0 0 0-.425-.685Z"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="23" aria-labelledby="speakerOpenTitleID speakerOpenDescID"><g fill="none" fill-rule="evenodd"><path fill="#fff" d="M16.122.401a.814.814 0 0 0-.82.048L7.997 5.353H.794A.784.784 0 0 0 0 6.127v10.496c0 .427.355.774.794.774h7.214l7.31 4.661a.81.81 0 0 0 .813.034.772.772 0 0 0 .416-.681V1.086a.77.77 0 0 0-.425-.685Z"/><path stroke="#fff" stroke-linecap="square" stroke-width="2" d="M20.196 7.27s2.215 1.384 2.133 4.23c-.081 2.846-2.133 4.23-2.133 4.23M23.281 3.91s3.398 2.212 3.41 7.59c.012 5.378-3.41 7.59-3.41 7.59"/></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="45" height="42" aria-labelledby="mobileThumbnailTitleID mobileThumbnailDescID"><g fill="none" fill-rule="evenodd" stroke="#fff" stroke-width="2" transform="translate(1 1)"><rect width="15.61" height="15.238" rx="1"/><rect width="15.61" height="15.238" x="26.667" rx="1"/><rect width="15.61" height="15.238" y="24.762" rx="1"/><rect width="15.61" height="15.238" x="26.667" y="24.762" rx="1"/></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" aria-labelledby="tocTitleID tocDescID" viewBox="0 0 24 16"><path fill="#fff" d="M3.908 1.168v.764c0 .322-.102.597-.306.826-.203.228-.434.342-.691.342H1.038c-.272 0-.512-.114-.722-.342A1.18 1.18 0 0 1 0 1.932v-.764C0 .846.105.57.316.342.526.114.767 0 1.038 0h1.873c.258 0 .488.114.691.342.204.229.306.504.306.826zm20.092 0v.764c0 .31-.105.581-.316.816-.21.234-.444.352-.702.352H7.369a.923.923 0 0 1-.734-.332c-.19-.22-.285-.5-.285-.835v-.765c0-.321.095-.597.285-.825A.91.91 0 0 1 7.37.001h15.613c.258 0 .492.117.702.352.21.235.316.507.316.815zM3.908 7.608v.804c0 .309-.102.57-.306.785-.203.215-.434.322-.691.322H1.038a.983.983 0 0 1-.722-.322A1.084 1.084 0 0 1 0 8.412v-.805c0-.322.105-.603.316-.844.21-.242.451-.362.722-.362h1.873c.258 0 .488.12.691.362.204.24.306.522.306.844zm20.092 0v.804c0 .309-.105.57-.316.785-.21.215-.444.322-.702.322H7.369a.948.948 0 0 1-.734-.312c-.19-.208-.285-.473-.285-.795v-.805c0-.335.095-.62.285-.855A.901.901 0 0 1 7.37 6.4h15.613c.258 0 .492.12.702.362.21.241.316.523.316.845zm-20.092 6.48v.724c0 .336-.102.617-.306.846-.203.228-.434.342-.691.342H1.038c-.272 0-.512-.114-.722-.342S0 15.148 0 14.812v-.725c0-.348.105-.637.316-.865.21-.228.451-.342.722-.342h1.873c.258 0 .488.114.691.342.204.228.306.517.306.865zm20.092 0v.724a1.2 1.2 0 0 1-.316.846c-.21.228-.444.342-.702.342H7.369a.923.923 0 0 1-.734-.332c-.19-.22-.285-.506-.285-.855v-.725c0-.348.095-.637.285-.865a.91.91 0 0 1 .734-.342h15.613c.258 0 .492.117.702.352.21.234.316.52.316.855z"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="58" height="43" aria-labelledby="mobile2upTitleID mobile2upDescID"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><rect width="56" height="40" stroke="#fff" stroke-width="2" rx="1"/><path fill="#fff" d="M27 0h2v40h-2z"/></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="25"><g fill="none" fill-rule="evenodd"><path fill="#FFF" fill-rule="nonzero" stroke="#898989" d="M10 .5a9 9 0 0 1 9 9c0 6-9 15-9 15s-9-9-9-15a9 9 0 0 1 9-9Z"/><path fill="#898989" d="M10 13.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z"/></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="25"><g fill="none" fill-rule="evenodd"><path fill="#B8B8B8" fill-rule="nonzero" stroke="#898989" d="M10 .5a9 9 0 0 1 9 9c0 6-9 15-9 15s-9-9-9-15a9 9 0 0 1 9-9Z"/><path fill="#FFF" d="M10 13.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z"/></g></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="25"><g fill="none" fill-rule="evenodd"><path fill="#00F" fill-rule="nonzero" stroke="#FFF" d="M10 .5a9 9 0 0 1 9 9c0 6-9 15-9 15s-9-9-9-15a9 9 0 0 1 9-9Z"/><path fill="#FFF" d="M10 13.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z"/></g></svg>
|