1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00
Commit graph

1301 commits

Author SHA1 Message Date
Alberto Valero Gómez
0042ba9d5b
Update rendition.d.ts 2022-12-01 09:38:16 +01:00
Alberto Valero Gómez
58a008fddf
Update rendition.d.ts 2022-12-01 09:37:23 +01:00
Fred Chasen
3565e476c9
Merge pull request #1302 from johnfactotum/fix-mathml-example
Fix MathML example
2022-11-20 21:41:39 -08:00
John Factotum
5eaef9c280
Fix MathML example
`allowScriptedContent` is required for MathJax to run
2022-11-15 18:29:38 +08:00
Fred Chasen
0963efe979 0.3.93 2022-02-15 10:13:52 -08:00
Fred Chasen
854d4f3b2a
Merge pull request #1250 from washu/patch-1
Update core.js
2022-02-15 10:11:54 -08:00
Fred Chasen
585bce16a4
Merge pull request #1249 from azu/allow-popups
feat: add `allowPopups` option
2022-02-15 10:11:29 -08:00
Sal Scotto
00a9ef4a4a
Update core.js
fix for css attached to epub in iframe rendering.
2022-02-08 08:31:51 -07:00
azu
c168bb91ce feat: add allowPopups option 2022-02-05 14:52:55 +09:00
Fred Chasen
f6fece4f88
Merge pull request #1239 from rafaelsaback/fix-locations-generate-type
Fix locations.generate's return type
2022-01-07 15:49:31 -08:00
Fred Chasen
f9b6a8a084 0.3.92 2022-01-07 14:31:03 -08:00
Fred Chasen
369fee5dbb
Merge pull request #1243 from futurepress/fix_addscript
Remove check for script properties
2022-01-07 14:30:39 -08:00
Fred Chasen
d86b375ec9 Remove check for script properties 2022-01-07 14:27:01 -08:00
Fred Chasen
9b1d290d21 0.3.91 2022-01-07 13:46:39 -08:00
Fred Chasen
256e1f584b
Merge pull request #1238 from rafaelsaback/patch-3
Add location and percentage to DisplayedLocation
2022-01-07 11:20:03 -08:00
Fred Chasen
e727bc85bc
Merge pull request #1233 from johnfactotum/fix-nav-span
Allow `span` in toc nav items
2022-01-07 11:19:39 -08:00
Fred Chasen
858c3a8f91
Merge pull request #1232 from kianmeng/fix-typos
Fix typos
2022-01-07 11:17:51 -08:00
Rafael Saback
33df7dd27e Fix locations.generate's return type 2021-12-29 11:49:29 +01:00
Rafael Saback
2c29a61537
Add location and percentage to DIsplayedLocation 2021-12-29 11:39:25 +01:00
Fred Chasen
5c610143bf
Merge pull request #1237 from johnfactotum/fix-cfi-base 2021-12-27 11:58:21 -08:00
John Factotum
32afb79fd1 Fix ID assertion in section base CFI
XML ID assertions should contain the `id` attribute of the element itself.

Fixes #1236
2021-12-27 14:52:07 +08:00
John Factotum
1336e51c40 Allow span in toc nav items
According to https://www.w3.org/publishing/epub32/epub-packages.html#sec-package-nav-def-model:

"A child `a` element describes the target that the link points to, while a `span` element serves as a heading for breaking down lists into distinct groups (for example, a large list of illustrations can be segmented into several lists, one for each chapter)."
2021-12-16 15:11:55 +08:00
Kian-Meng, Ang
851304ff76 Fix typos 2021-12-16 15:03:30 +08:00
Fred Chasen
228d9913e0 0.3.90 2021-10-21 11:44:03 -07:00
Fred Chasen
819d3c3380 Update dependencies 2021-10-21 11:43:54 -07:00
Fred Chasen
f7c179ad7b
Merge pull request #1223 from maggie0002/xmldom
Import new @xmldom package
2021-10-21 11:32:23 -07:00
maggie0002
d0d557e398 Import new @xmldom package 2021-10-21 09:45:41 +01:00
Fred Chasen
9fd9177c48 0.3.89 2021-10-20 20:23:16 -07:00
Fred Chasen
e43c12832b
Merge pull request #1182 from Upstatement/remove-pane-if-iframe-unloads
Remove pane when iframe is destroyed to force redraw on render
2021-10-20 20:18:51 -07:00
Fred Chasen
9e729d693c
Merge pull request #1222 from futurepress/disable_scripts
Add iframe sandboxing and allowScriptedContent option
2021-10-20 20:18:09 -07:00
Fred Chasen
ab4dd46408 Add iframe sandboxing 2021-10-20 20:15:50 -07:00
Fred Chasen
f632df7cb3
Merge pull request #1184 from Upstatement/fix-marks-example
fix marks example
2021-10-18 22:47:19 -07:00
Fred Chasen
f1a3e01269
Merge pull request #1202 from tgv1975/patch-2
Fix xmldom DOMParser import
2021-10-18 22:46:25 -07:00
Fred Chasen
4f4155a891
Merge pull request #1206 from maggie0002/master
Fix XMLDOM package critical security vulnerability
2021-10-18 22:46:15 -07:00
maggie0002
4fdd85c0c6 Update XMLDOM Package 2021-09-22 14:50:17 -07:00
Tudor Gavan
9267148062
Fix xmldom DOMParser import
`xmldom` does not export `XMLDOMParser`, it exports `DOMParser` instead (https://www.npmjs.com/package/xmldom).

With TypeScript, the following error occurs, which breaks the build:

```
./node_modules/epubjs/src/section.js💯18-34 - Error: export 'XMLDOMParser' (imported as 'XMLDOMSerializer') was not found in 'xmldom' (possible exports: DOMImplementation, DOMParser, XMLSerializer)
```

Making the correction manually in the local node_modules fixes this, but it's obviously not a longterm solution.
2021-06-20 22:52:11 +03:00
Scott Batson
46eb851111 fix marks example 2021-03-25 16:32:27 -04:00
Scott Batson
057ed100f8 remove pane to force redraw on render 2021-03-18 15:15:55 -04:00
Fred Chasen
5c7f21d648
Merge pull request #1180 from futurepress/move_mime_to_utils
Build mime.js with babel
2021-03-09 11:43:00 -08:00
Fred Chasen
408873b8ac Move mime.js to utils, remove libs folder 2021-03-09 11:18:02 -08:00
Fred Chasen
98fe63bc4e
Merge pull request #1160 from alikazemkhanloo/patch-1
add RTL support for moveTo function
2021-03-08 16:45:42 -08:00
Fred Chasen
952190e76f
Merge pull request #1140 from EduardoJM/master
fix the getRange in Book return type to Promise
2021-03-08 15:25:32 -08:00
Fred Chasen
7e04151e13
Merge pull request #1123 from rafaelsaback/patch-1
Fix cfirange type on selected event
2021-03-08 15:22:49 -08:00
Fred Chasen
9a9a32799f
Merge pull request #1104 from alikazemkhanloo/fixPageNumbers
update layout before calculating location
2021-03-08 11:56:14 -08:00
Fred Chasen
27691ac94d
Merge pull request #1121 from MrMYHuang/UpdateLayoutAcrossSection
Update layout after crossing a section boundary
2021-03-08 11:55:47 -08:00
Fred Chasen
d68919ff06
Merge pull request #1120 from MrMYHuang/FixMoveToForVertical
* Fix moveTo for vertical writing mode.
2021-03-08 11:55:17 -08:00
Fred Chasen
e2f90b3526
Merge pull request #1118 from AmmiWang/patch-1
Update hook.js
2021-03-08 11:44:20 -08:00
Fred Chasen
701ef3ab24
Merge pull request #1115 from bard/epub-types
update Epub() type signature to reflect implementation
2021-03-08 11:42:34 -08:00
Fred Chasen
fc1727bbc4
Merge pull request #1114 from nielslanting/feat/nested-toc
Return nested TOC with duplicate hrefs
2021-03-08 11:42:02 -08:00
Fred Chasen
c0b710deab
Merge pull request #1124 from rafaelsaback/patch-2
Add mousemove to DOM_EVENTS
2021-03-08 11:40:00 -08:00