@pontive/pontkit-core 1.3.0 → 1.3.2

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/styles.css CHANGED
@@ -2825,6 +2825,7 @@
2825
2825
  */
2826
2826
 
2827
2827
  :root {
2828
+ --pont-card-footer-color-bg: hsl(var(--pont-sem-color-bg-surface-quaternary));
2828
2829
  --pont-card-footer-width-border: var(--pont-sem-width-border);
2829
2830
  --pont-card-footer-color-border: hsl(var(--pont-sem-color-border));
2830
2831
  --pont-carousel-space-w: var(--pont-ref-space-full);
@@ -7254,7 +7255,7 @@ pont-card
7254
7255
 
7255
7256
  pont-card-footer > [data-slot='card-footer'][data-border] {
7256
7257
  padding-block: var(--pont-card-space-py);
7257
- background-color: hsl(var(--pont-sem-color-bg-surface-quaternary));
7258
+ background-color: var(--pont-card-footer-color-bg);
7258
7259
  border-top: var(--pont-card-footer-width-border) solid
7259
7260
  var(--pont-card-footer-color-border);
7260
7261
  }
@@ -10185,6 +10186,10 @@ pont-scroll-area > [data-slot=scroll-area] {
10185
10186
  --pont-block-space-min-height: 100vh;
10186
10187
  --pont-block-space-gap: 16px;
10187
10188
  --pont-block-footer-space-py: var(--pont-ref-space-4);
10189
+ /* A tinted band that reads as part of the card while the ring frames it. A
10190
+ brand that drops the ring should set this to `transparent`, or the band
10191
+ reads as a detached strip. */
10192
+ --pont-block-footer-color-bg: hsl(var(--pont-sem-color-bg-surface-quaternary));
10188
10193
  }
10189
10194
 
10190
10195
  /*
@@ -10287,7 +10292,7 @@ pont-scroll-area > [data-slot=scroll-area] {
10287
10292
  --pont-watermark-muted-color-text: hsl(var(--pont-sem-color-text-secondary));
10288
10293
 
10289
10294
  /* The lockup's HEIGHT; its width follows the ~5:1 aspect ratio. */
10290
- --pont-watermark-logo-space-size: var(--pont-ref-space-4);
10295
+ --pont-watermark-logo-space-size: var(--pont-ref-space-3-5);
10291
10296
 
10292
10297
  /*
10293
10298
  * The old tile/glyph pair (*-logo-rect-color / *-logo-path-color) is gone
@@ -11287,6 +11292,7 @@ pont-block > pont-card pont-card-content > [data-slot="card-content"] {
11287
11292
 
11288
11293
  pont-block > pont-card > [data-slot="card"] > pont-card-footer {
11289
11294
  --pont-card-space-py: var(--pont-block-footer-space-py);
11295
+ --pont-card-footer-color-bg: var(--pont-block-footer-color-bg);
11290
11296
  }
11291
11297
 
11292
11298
  pont-block
@@ -11517,6 +11523,9 @@ pont-link {
11517
11523
 
11518
11524
  pont-link > [part="link"] {
11519
11525
  display: flex;
11526
+ /* The button is taller than a line of text and centres its label, so the
11527
+ default `stretch` left the prompt riding high beside it. */
11528
+ align-items: baseline;
11520
11529
  gap: var(--pont-link-space-gap);
11521
11530
  color: var(--pont-link-color-text);
11522
11531
  font-size: var(--pont-link-font-size);
@@ -0,0 +1,20 @@
1
+ import { EnvConfig } from '../types';
2
+ /**
3
+ * Where to send the browser once a flow has authenticated someone, or null to
4
+ * stay put.
5
+ *
6
+ * Pure, and separate from the provider, because the rule is easy to get subtly
7
+ * wrong and impossible to see when it is: getting it wrong means a page that
8
+ * finished its work and said nothing. That is what happened to invitations —
9
+ * the invitee was authenticated and the invitation accepted, while the page sat
10
+ * on the verification step, because the rule was "redirect only from the
11
+ * sign-in or sign-up page" and an invitation is answered on neither.
12
+ */
13
+ export interface PostAuthPage {
14
+ /** The page's path, e.g. window.location.pathname. */
15
+ pathname: string;
16
+ /** The page's query, e.g. window.location.search. */
17
+ search: string;
18
+ env: Pick<EnvConfig, "signinUrl" | "signupUrl" | "invitationUrl" | "signinRedirectUrl">;
19
+ }
20
+ export declare function postAuthDestination({ pathname, search, env }: PostAuthPage): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",