@panelwave/player 1.2.0 → 1.5.0
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/README.md +10 -4
- package/fesm2022/panelwave-player.mjs +5908 -2766
- package/fesm2022/panelwave-player.mjs.map +1 -1
- package/index.d.ts +832 -69
- package/package.json +3 -2
- package/src/assets/fonts/balloon/LICENSES.md +2 -2
- package/src/assets/fonts/balloon/balloon-fonts.css +7 -4
- package/src/assets/i18n/de.json +23 -1
- package/src/assets/i18n/en.json +23 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ it into a complete reading experience:
|
|
|
53
53
|
|
|
54
54
|
Stories are authored in the PanelWave CMS or written by hand against the
|
|
55
55
|
[open JSON Schema](https://github.com/panelwave/schema). The player supports
|
|
56
|
-
manifests up to format 1.
|
|
56
|
+
manifests up to format 1.7 (video panels, edge-transition inheritance,
|
|
57
57
|
typography style presets, the infinite canvas, paywall rules unlocked by any
|
|
58
58
|
of several products, each Buy option named and priced from `paywall.products`; 1.5's asset folders and localization blocks are
|
|
59
59
|
authoring metadata the player doesn't need).
|
|
@@ -127,8 +127,8 @@ and include the balloon lettering fonts:
|
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
The bundled fonts are open-licensed (SIL OFL 1.1: Bangers, Comic Neue,
|
|
130
|
-
Caveat, Anton and 10 more). The commercial
|
|
131
|
-
included. If your works use it, license it from [
|
|
130
|
+
Caveat, Anton and 10 more). The commercial font **Ames Pro** (Purastik Graphics) is not
|
|
131
|
+
included. If your works use it, license it (web-font license) from [Fontspring](https://www.fontspring.com/fonts/purastik-graphics/ames-pro)
|
|
132
132
|
and add your own `@font-face`. Otherwise balloons fall back to Comic Neue.
|
|
133
133
|
|
|
134
134
|
The player depends on `json-logic-js`, a CommonJS module. To silence the
|
|
@@ -225,7 +225,9 @@ navigation stops at the gate. Works without paywall rules aren't affected.
|
|
|
225
225
|
`extras` rules lock an extras block, never panels.
|
|
226
226
|
- **Age:** `ageGate` / `minimumAge` is checked on top of the rule's
|
|
227
227
|
entitlement. The reader answers the age gate first, then gets the paywall
|
|
228
|
-
if the purchase or subscription is still missing.
|
|
228
|
+
if the purchase or subscription is still missing. Age requirements combine
|
|
229
|
+
across every rule that applies to a panel, so a chapter preview or a free
|
|
230
|
+
panel rule never skips a work-wide age gate.
|
|
229
231
|
- **Buy / Subscribe:** the overlay offers a Buy option per product of a
|
|
230
232
|
purchase rule and a Subscribe option per tier of a subscription rule (name,
|
|
231
233
|
description and price from the rule), next to Sign in and Maybe later.
|
|
@@ -235,6 +237,10 @@ navigation stops at the gate. Works without paywall rules aren't affected.
|
|
|
235
237
|
pass a new `entitlementSnapshot`; the overlay closes once the reader is
|
|
236
238
|
through. Story keys and swipes do nothing while the paywall or the age
|
|
237
239
|
gate is open.
|
|
240
|
+
- **Custom `entitlementAdapter`:** it decides navigation, not rendering. A
|
|
241
|
+
panel the adapter refuses still renders (on the initial load the paywall
|
|
242
|
+
opens over it), so don't rely on an adapter to hide content: strip it on
|
|
243
|
+
the server (`"x-locked": true`) or pass an `entitlementSnapshot`.
|
|
238
244
|
|
|
239
245
|
### Going further
|
|
240
246
|
|