@molecule/app-billing-react 2.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +9 -20
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-25T19:20:40.915Z
6
+ Generated: 2026-10-27T23:35:33.518Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-billing-react
@@ -330,9 +330,7 @@ Compact billing-status display for the user's account/settings page.
330
330
  Shows the current tier name and offers a cancel button on paid tiers.
331
331
 
332
332
  ```typescript
333
- function BillingStatusBadge(
334
- props: BillingStatusBadgeProps,
335
- ): ReactElement<unknown, string | JSXElementConstructor<any>> | null
333
+ function BillingStatusBadge(props: BillingStatusBadgeProps): React.ReactElement | null
336
334
  ```
337
335
 
338
336
  - `props` — Component props.
@@ -347,11 +345,7 @@ stacked-checklist layout (check icon prefix, muted/primary colors,
347
345
  spacing) that matches the rest of `<PricingPage />`.
348
346
 
349
347
  ```typescript
350
- function LimitsList({
351
- children,
352
- }: {
353
- children: ReactNode
354
- }): ReactElement<unknown, string | JSXElementConstructor<any>>
348
+ function LimitsList({ children }: { children: ReactNode }): React.ReactElement
355
349
  ```
356
350
 
357
351
  #### `LimitsItem(props)`
@@ -360,10 +354,7 @@ Single row in a tier's feature list — a check (or em-dash) icon
360
354
  followed by the row label. Use inside `<LimitsList>`.
361
355
 
362
356
  ```typescript
363
- function LimitsItem({
364
- children,
365
- included = true,
366
- }: LimitsItemProps): ReactElement<unknown, string | JSXElementConstructor<any>>
357
+ function LimitsItem({ children, included = true }: LimitsItemProps): React.ReactElement
367
358
  ```
368
359
 
369
360
  #### `PricingPage(props)`
@@ -381,9 +372,7 @@ a different tier in the spotlight can pass `popularTierKey` (or
381
372
  `null` to suppress).
382
373
 
383
374
  ```typescript
384
- function PricingPage(
385
- props: PricingPageProps<TLimits>,
386
- ): ReactElement<unknown, string | JSXElementConstructor<any>>
375
+ function PricingPage<TLimits = unknown>(props: PricingPageProps<TLimits>): React.ReactElement
387
376
  ```
388
377
 
389
378
  - `props` — Component props (see `PricingPageProps`).
@@ -396,7 +385,7 @@ Fetch the public pricing data once on mount. Useful inside a
396
385
  pricing/upgrade page where the tiers are needed before render.
397
386
 
398
387
  ```typescript
399
- function usePricingTiers(): UseHttpResult<PricingTiersResponse<TLimits>>
388
+ function usePricingTiers<TLimits = unknown>(): UseHttpResult<PricingTiersResponse<TLimits>>
400
389
  ```
401
390
 
402
391
  **Returns:** Async-state for the pricing tiers response.
@@ -408,7 +397,7 @@ Returns 401 from the API when the user is not authenticated; consumers
408
397
  should treat the absence of `data` as "anonymous → free tier".
409
398
 
410
399
  ```typescript
411
- function useBillingStatus(): UseHttpResult<BillingStatus<TLimits>>
400
+ function useBillingStatus<TLimits = unknown>(): UseHttpResult<BillingStatus<TLimits>>
412
401
  ```
413
402
 
414
403
  **Returns:** Async-state for the user's billing status.
@@ -449,9 +438,9 @@ function useCancelSubscription(): BillingActionState<CancelResponse> & {
449
438
  Peer dependencies:
450
439
 
451
440
  - `@molecule/app-http` ^1.0.1
452
- - `@molecule/app-react` ^2.0.0
441
+ - `@molecule/app-react` ^3.0.0
453
442
  - `@molecule/app-ui` ^1.0.1
454
- - `@molecule/app-ui-react` ^2.0.0
443
+ - `@molecule/app-ui-react` ^3.0.0
455
444
  - `react` ^18.0.0 || ^19.0.0
456
445
 
457
446
  ### Runtime Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-billing-react",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "React pricing page + checkout flow that consumes /api/billing/* (provided by @molecule/api-entitlements + @molecule/api-payments-stripe)",
5
5
  "homepage": "https://www.molecule.dev/packages/app-billing-react",
6
6
  "type": "module",
@@ -36,16 +36,16 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@molecule/app-http": "^1.0.1",
39
- "@molecule/app-react": "^2.0.0",
39
+ "@molecule/app-react": "^3.0.0",
40
40
  "@molecule/app-ui": "^1.0.1",
41
- "@molecule/app-ui-react": "^2.0.0",
41
+ "@molecule/app-ui-react": "^3.0.0",
42
42
  "react": "^18.0.0 || ^19.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@molecule/app-http": "1.5.0",
46
- "@molecule/app-react": "2.0.0",
45
+ "@molecule/app-http": "1.5.1",
46
+ "@molecule/app-react": "3.0.0",
47
47
  "@molecule/app-ui": "1.3.8",
48
- "@molecule/app-ui-react": "2.0.0",
48
+ "@molecule/app-ui-react": "3.0.0",
49
49
  "@types/node": "26.6.5",
50
50
  "@types/react": "19.3.0",
51
51
  "react": "19.3.1",