@internetarchive/bookreader 5.0.0-37 → 5.0.0-38
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/node.js.yml +66 -4
- package/BookReader/BookReader.js +1 -1
- package/BookReader/ia-bookreader-bundle.js +1 -1
- package/BookReader/ia-bookreader-bundle.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.tts.js +1 -1
- package/BookReader/plugins/plugin.tts.js.map +1 -1
- package/CHANGELOG.md +12 -0
- package/codecov.yml +6 -0
- package/package.json +12 -12
- package/renovate.json +43 -0
- package/src/plugins/search/plugin.search.js +5 -15
- package/src/plugins/search/view.js +2 -0
- package/src/plugins/tts/AbstractTTSEngine.js +9 -4
- package/stat/BookNavigator/BookNavigator.js +42 -0
- package/tests/e2e/base.test.js +4 -5
- package/tests/e2e/helpers/desktopSearch.js +13 -12
- package/tests/e2e/models/Navigation.js +12 -3
- package/tests/e2e/rightToLeft.test.js +1 -1
- package/tests/e2e/viewmode.test.js +37 -31
- package/.github/dependabot.yml +0 -8
@@ -983,7 +983,7 @@
|
|
983
983
|
${this.customModalContent}
|
984
984
|
</modal-template>
|
985
985
|
</div>
|
986
|
-
`}getMode(){return this.mode}closeModal(){this.mode=jn.Closed}callUserClosedModalCallback(){const e=this.userClosedModalCallback;this.userClosedModalCallback=void 0,e&&e()}showModal(e){return t=this,void 0,
|
986
|
+
`}getMode(){return this.mode}closeModal(){this.mode=jn.Closed}callUserClosedModalCallback(){const e=this.userClosedModalCallback;this.userClosedModalCallback=void 0,e&&e()}showModal(e){return t=this,n=void 0,o=function*(){this.closeOnBackdropClick=e.config.closeOnBackdropClick,this.userClosedModalCallback=e.userClosedModalCallback,this.modalTemplate.config=e.config,this.customModalContent=e.customModalContent,this.mode=jn.Open,yield this.modalTemplate.updateComplete,this.modalTemplate.focus()},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o}updated(e){e.has("mode")&&this.handleModeChange()}backdropClicked(){this.closeOnBackdropClick&&(this.closeModal(),this.callUserClosedModalCallback())}handleModeChange(){this.hostBridge.handleModeChange(this.mode),this.emitModeChangeEvent()}emitModeChangeEvent(){const e=new CustomEvent("modeChanged",{detail:{mode:this.mode}});this.dispatchEvent(e)}closeButtonPressed(){this.closeModal(),this.callUserClosedModalCallback()}static get styles(){const e=mn`var(--modalBackdropColor, rgba(10, 10, 10, 0.9))`,t=mn`var(--modalBackdropZindex, 1000)`,n=mn`var(--modalWidth, 32rem)`,r=mn`var(--modalMaxWidth, 95%)`,o=mn`var(--modalZindex, 2000)`;return mn`
|
987
987
|
.container {
|
988
988
|
width: 100%;
|
989
989
|
height: 100%;
|