@readium/navigator 2.5.0-beta.1 → 2.5.0-beta.3

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.
Files changed (29) hide show
  1. package/dist/{ReadiumCSS-after-C-T_0paD.js → ReadiumCSS-after-AX2xHXM6.js} +3 -3
  2. package/dist/{ReadiumCSS-after-lr-n3fz2.js → ReadiumCSS-after-DIfxADJu.js} +4 -4
  3. package/dist/{ReadiumCSS-after-B_e3a-PY.js → ReadiumCSS-after-Djsq77vV.js} +10 -10
  4. package/dist/{ReadiumCSS-after-mXeKKPap.js → ReadiumCSS-after-DwG-6hYO.js} +4 -4
  5. package/dist/{ReadiumCSS-before-CfXPAGaQ.js → ReadiumCSS-before-B8zaPxhu.js} +1 -1
  6. package/dist/{ReadiumCSS-before-KVen5ceo.js → ReadiumCSS-before-BA9Irzag.js} +1 -1
  7. package/dist/{ReadiumCSS-before-CrNWvuyE.js → ReadiumCSS-before-Cz5-ynli.js} +1 -1
  8. package/dist/{ReadiumCSS-before-Bjd3POej.js → ReadiumCSS-before-DKjdmFso.js} +1 -1
  9. package/dist/{ReadiumCSS-default-C63bYOYF.js → ReadiumCSS-default-BGrBd7Sk.js} +1 -1
  10. package/dist/{ReadiumCSS-default-BKAG5pGU.js → ReadiumCSS-default-CcWmjgaR.js} +1 -1
  11. package/dist/{ReadiumCSS-default-DnlgDaBu.js → ReadiumCSS-default-DsgDIxGa.js} +1 -1
  12. package/dist/{ReadiumCSS-default-CclvbeNC.js → ReadiumCSS-default-DzJEDDcb.js} +1 -1
  13. package/dist/index.js +979 -954
  14. package/dist/index.umd.cjs +72 -72
  15. package/package.json +2 -2
  16. package/src/epub/EpubNavigator.ts +13 -8
  17. package/src/epub/css/ReadiumCSS.ts +21 -1
  18. package/src/epub/frame/FrameBlobBuilder.ts +1 -1
  19. package/src/epub/index.ts +0 -1
  20. package/src/helpers/dimensions.ts +7 -0
  21. package/src/helpers/index.ts +1 -0
  22. package/src/{epub/helpers → helpers}/scriptMode.ts +8 -1
  23. package/src/injection/epubInjectables.ts +6 -2
  24. package/src/webpub/WebPubNavigator.ts +9 -4
  25. package/types/src/epub/css/ReadiumCSS.d.ts +3 -0
  26. package/types/src/epub/index.d.ts +0 -1
  27. package/types/src/helpers/dimensions.d.ts +1 -0
  28. package/types/src/helpers/index.d.ts +1 -0
  29. package/types/src/{epub/helpers → helpers}/scriptMode.d.ts +4 -1
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -295,7 +295,7 @@ body{
295
295
  :root[style*="--USER__lineHeight"] p,
296
296
  :root[style*="--USER__lineHeight"] li,
297
297
  :root[style*="--USER__lineHeight"] div{
298
- line-height:inherit;
298
+ line-height:var(--USER__lineHeight) !important;
299
299
  }
300
300
 
301
301
  :root[style*="--USER__paraSpacing"] p{
@@ -330,7 +330,7 @@ body{
330
330
  :root[style*="--USER__wordSpacing"] div,
331
331
  :root[style*="--USER__wordSpacing"] dt,
332
332
  :root[style*="--USER__wordSpacing"] dd{
333
- word-spacing:var(--USER__wordSpacing);
333
+ word-spacing:var(--USER__wordSpacing) !important;
334
334
  }
335
335
 
336
336
  :root[style*="--USER__ligatures"]{
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -258,7 +258,7 @@ body{
258
258
  :root[style*="--USER__lineHeight"] p,
259
259
  :root[style*="--USER__lineHeight"] li,
260
260
  :root[style*="--USER__lineHeight"] div{
261
- line-height:inherit;
261
+ line-height:var(--USER__lineHeight) !important;
262
262
  }
263
263
 
264
264
  :root[style*="--USER__paraSpacing"] p{
@@ -294,8 +294,8 @@ body{
294
294
  :root[style*="--USER__letterSpacing"] div,
295
295
  :root[style*="--USER__letterSpacing"] dt,
296
296
  :root[style*="--USER__letterSpacing"] dd{
297
- letter-spacing:var(--USER__letterSpacing);
298
- font-variant:none;
297
+ letter-spacing:var(--USER__letterSpacing) !important;
298
+ font-variant:none !important;
299
299
  }
300
300
 
301
301
  :root[style*="readium-noRuby-on"] body rt,
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -247,11 +247,11 @@ body{
247
247
  :root[style*="--USER__bodyHyphens"] li,
248
248
  :root[style*="--USER__bodyHyphens"] div,
249
249
  :root[style*="--USER__bodyHyphens"] dd{
250
- -webkit-hyphens:inherit;
251
- -moz-hyphens:inherit;
252
- -ms-hyphens:inherit;
253
- -epub-hyphens:inherit;
254
- hyphens:inherit;
250
+ -webkit-hyphens:var(--USER__bodyHyphens) !important;
251
+ -moz-hyphens:var(--USER__bodyHyphens) !important;
252
+ -ms-hyphens:var(--USER__bodyHyphens) !important;
253
+ -epub-hyphens:var(--USER__bodyHyphens) !important;
254
+ hyphens:var(--USER__bodyHyphens) !important;
255
255
  }
256
256
 
257
257
  :root[style*="--USER__fontFamily"]{
@@ -342,7 +342,7 @@ body{
342
342
  :root[style*="--USER__lineHeight"] p,
343
343
  :root[style*="--USER__lineHeight"] li,
344
344
  :root[style*="--USER__lineHeight"] div{
345
- line-height:inherit;
345
+ line-height:var(--USER__lineHeight) !important;
346
346
  }
347
347
 
348
348
  :root[style*="--USER__paraSpacing"] p{
@@ -377,7 +377,7 @@ body{
377
377
  :root[style*="--USER__wordSpacing"] div,
378
378
  :root[style*="--USER__wordSpacing"] dt,
379
379
  :root[style*="--USER__wordSpacing"] dd{
380
- word-spacing:var(--USER__wordSpacing);
380
+ word-spacing:var(--USER__wordSpacing) !important;
381
381
  }
382
382
 
383
383
  :root[style*="--USER__letterSpacing"] h1,
@@ -391,8 +391,8 @@ body{
391
391
  :root[style*="--USER__letterSpacing"] div,
392
392
  :root[style*="--USER__letterSpacing"] dt,
393
393
  :root[style*="--USER__letterSpacing"] dd{
394
- letter-spacing:var(--USER__letterSpacing);
395
- font-variant:none;
394
+ letter-spacing:var(--USER__letterSpacing) !important;
395
+ font-variant:none !important;
396
396
  }
397
397
 
398
398
  :root[style*="--USER__ligatures"]{
@@ -1,5 +1,5 @@
1
1
  const t = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -273,7 +273,7 @@ body{
273
273
  :root[style*="--USER__lineHeight"] p,
274
274
  :root[style*="--USER__lineHeight"] li,
275
275
  :root[style*="--USER__lineHeight"] div{
276
- line-height:inherit;
276
+ line-height:var(--USER__lineHeight) !important;
277
277
  }
278
278
 
279
279
  :root[style*="--USER__paraSpacing"] p{
@@ -309,8 +309,8 @@ body{
309
309
  :root[style*="--USER__letterSpacing"] div,
310
310
  :root[style*="--USER__letterSpacing"] dt,
311
311
  :root[style*="--USER__letterSpacing"] dd{
312
- letter-spacing:var(--USER__letterSpacing);
313
- font-variant:none;
312
+ letter-spacing:var(--USER__letterSpacing) !important;
313
+ font-variant:none !important;
314
314
  }
315
315
 
316
316
  :root[style*="readium-noRuby-on"] body rt,
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.1
2
+ * Readium CSS v.2.0.2
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.