@d-i-t-a/reader 1.11.0-beta.4 → 1.11.0-beta.5
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/dist/index.d.ts +0 -1
- package/dist/injectables/footnotes/footnotes.d.ts +1 -0
- package/dist/injectables/footnotes/footnotes.js +2 -1
- package/dist/injectables/footnotes/footnotes.js.map +1 -1
- package/dist/injectables/glossary/glossary.d.ts +5 -0
- package/dist/injectables/glossary/glossary.js +3 -1
- package/dist/modules/citations/CitationModule.d.ts +37 -0
- package/dist/modules/footnotes/FootnotesEventHandler.d.ts +0 -0
- package/dist/modules/highlight/TextHighlighter.d.ts +16 -45
- package/dist/modules/highlight/TextHighlighterFXL.d.ts +278 -0
- package/dist/modules/highlight/renderer/iframe/state.d.ts +0 -3
- package/dist/modules/linefocus/LineFocusModule.d.ts +43 -0
- package/dist/modules/pagebreak/PageBreakModule.d.ts +3 -0
- package/dist/modules/search/DefinitionsModule.d.ts +6 -1
- package/dist/modules/search/SearchModule.d.ts +3 -0
- package/dist/reader.js +1 -1
- package/dist/reader.js.map +1 -1
- package/dist/store/Annotator.d.ts +1 -2
- package/dist/store/LocalAnnotator.d.ts +1 -2
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
- package/dist/modules/popup/Popup.d.ts +0 -8
- package/dist/store/LocalPositions.d.ts +0 -18
- package/dist/store/Positions.d.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IS_DEV: boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
var Footnotes;
|
|
1
|
+
var Footnotes;(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{IS_DEV:()=>o});var n=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function l(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};const o=!1;document.addEventListener("click",(e=>n(void 0,void 0,void 0,(function*(){o&&console.log("Footnote Click Handler");var t=e.target;if("a"===t.tagName.toLowerCase()){var r=document.createElement("div");r.innerHTML=t.outerHTML;var a=r.querySelector("a");if(a&&"noteref"===a.getAttribute("epub:type")){var i=a.getAttribute("href");if(i.indexOf("#")>0){var l=i.substring(i.indexOf("#")+1),c=function(e){var t=document.location.href;return new URL(e,t).href}(i);c=c.substring(0,c.indexOf("#")),e.preventDefault(),e.stopPropagation(),yield fetch(c).then((e=>e.text())).then((e=>n(void 0,void 0,void 0,(function*(){var n=(new DOMParser).parseFromString(e,"text/html").querySelector("aside#"+l);if(n){var o=document.createElement("div");o.className="modal",o.innerHTML='<div class="modal-content"><span class="close">x</span>'+n.innerHTML+"</div>",o.style.display="block",document.body.appendChild(o);var r=o.getElementsByClassName("modal-content")[0],i=t.offsetTop;t.offsetTop>100&&(i=t.offsetTop-20),r.style.top=i+"px",o.getElementsByClassName("close")[0].onclick=function(){o.style.display="none",o.parentElement.removeChild(o)},window.onclick=function(e){e.target===o&&(o.style.display="none",o.parentElement.removeChild(o))}}else a.click()}))))}}}}))),!0),Footnotes=t})();
|
|
2
|
+
//# sourceMappingURL=footnotes.js.map
|