@sesamy/sesamy-components 2.24.2 → 2.25.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 CHANGED
@@ -153,18 +153,19 @@ See also the window-level `Events` enum emitted by `@sesamy/sesamy-js` (`AUTHENT
153
153
  <sesamy-login
154
154
  style="
155
155
  --sesamy-font-family: Georgia; /* Sets font family, default Helvetica */
156
+ --sesamy-base-font-size: 18px; /* Base size (in px) that all component font sizes and spacing scale from, default 16px. Components never use rem, so they are unaffected by e.g. html { font-size: 62.5% } */
156
157
  --sesamy-login-button-background-color: blue; /* Sets background color of the login button, default transparent */
157
158
  --sesamy-login-button-text-color: green; /* Sets text color of the login button, default black */
158
159
  --sesamy-login-button-border-color: pink; /* Sets border color of the login button, default black */
159
160
  --sesamy-login-button-border-width: 5px; /* Sets border width of the login button, default 1px */
160
- --sesamy-login-button-border-radius: 20px; /* Sets border radius of the login button, default */
161
+ --sesamy-login-button-border-radius: 20px; /* Sets border radius of the login button, default 6px at a 16px base size */
161
162
  --sesamy-login-button-font-weight: 100; /* Sets font weight of the login button, default 700 */
162
- --sesamy-login-popup-width: 400px; /* Sets width of the login popup, default 18rem */
163
+ --sesamy-login-popup-width: 400px; /* Sets width of the login popup, default 288px */
163
164
  --sesamy-login-popup-bgcolor: green; /* Sets background color of the login popup, default white */
164
165
  --sesamy-login-popup-textcolor: pink; /* Sets text color of the login popup, default black */
165
166
  --sesamy-login-popup-border-color: red; /* Sets border color of the login popup, default #e5e7eb */
166
167
  --sesamy-login-popup-border-width: 5px; /* Sets border width of the login popup, default 1px */
167
- --sesamy-login-popup-border-radius: 20px; /* Sets border radius of the login popup, default 0.125rem */
168
+ --sesamy-login-popup-border-radius: 20px; /* Sets border radius of the login popup, default 2px */
168
169
  --sesamy-login-popup-zindex: 100; /* Sets z-index of the login popup, default 10 */
169
170
  "
170
171
  ></sesamy-login>
@@ -300,6 +301,22 @@ A web component that displays a paywall for content, loading paywall settings fr
300
301
  - `utm-source`, `utm-medium`, `utm-campaign`, `utm-term`, `utm-content`: UTM parameters for tracking
301
302
  - `pass`: Pass ID for access
302
303
 
304
+ **Post-purchase redirect:**
305
+
306
+ Where the visitor lands after buying is resolved when they go to checkout, first
307
+ usable value winning:
308
+
309
+ 1. `redirectUrl` on the chosen subscription option (from the paywall settings)
310
+ 2. `settings.redirectUrl` on the paywall (the paywall-wide default)
311
+ 3. the `redirect-url` attribute on the element
312
+ 4. the page the visitor is on
313
+
314
+ Only an absolute URL counts as usable. Empty, whitespace-only and unparseable
315
+ values fall through to the next level (the last with a `console.warn`) instead
316
+ of sending a broken `redirect-url` to checkout. Single purchases have no
317
+ per-option redirect, so they start at level 2; subscription options of type URL
318
+ link straight out and never reach checkout at all.
319
+
303
320
  **Events:**
304
321
 
305
322
  Per-element events dispatched directly on the `<sesamy-paywall>` element (bubble, composed):