@viibestack/ui 0.7.8 → 0.7.9

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/auth.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viibestack/ui",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Dependency-free React UI kit -- icons, core components (Button, Card, Input, Modal, etc.), a TeamGrid/TeamMemberCard people-grid pattern, gamification primitives (PointsDisplay, StreakCounter, Achievements, Leaderboard, fireReward), a real per-app data client for browser code (listRows/listRowsPage/getRow/upsertRow/deleteRow/captureClientError) plus server-safe variants for Route Handlers/Server Components (listRowsServer/listRowsPageServer/getRowServer/upsertRowServer/deleteRowServer/resolveAppIdByHostname), a real per-app end-user auth client (signUp/logIn/logOut/getCurrentUser/reportError), and a self-gating PoweredByBadge component -- backed by ViibeStack's own platform-managed data store.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/auth.ts CHANGED
@@ -303,6 +303,15 @@ export interface MonetizationStatus {
303
303
  status: string; // mirrors Stripe verbatim: trialing/active/past_due/canceled/...
304
304
  trial_end: string | null;
305
305
  seats: number; // 1 unless the app owner set pricing_model to per-seat
306
+ // ISO timestamp of this subscription's current billing period end (its
307
+ // next charge date), straight from Stripe's own subscription object --
308
+ // null only until the first customer.subscription.created/updated event
309
+ // lands (moments after checkout, not before). Lets an app show a
310
+ // subscriber their real next-charge date instead of leaving them to
311
+ // guess -- see 140_monetization_current_period_end.sql's own comment for
312
+ // why this was added (a subscriber billed twice in 12 days with no way
313
+ // for the app -- or its owner -- to see or predict their next charge).
314
+ current_period_end: string | null;
306
315
  }
307
316
 
308
317
  // Redirects the browser to Stripe Checkout to start (or restart) the