create-cartbase 0.1.24 → 0.1.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cartbase",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Scaffold a Cartbase storefront: npm create cartbase my-store",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -471,7 +471,8 @@ code-first through the error-copy maps, never raw API strings.
471
471
  fetches `listShippingOptions`/`listPaymentProviders` (+ customer, +
472
472
  `getIntegrationsConfig().cod`) and passes them down.
473
473
  - **Props contract** — hook options + `showGiftCards?`,
474
- `logoByFulfillmentOptionId?`, Stripe `appearance`/`fonts`, `onCartChange?`
474
+ `showSecureCheckout?`, `paymentMarks?`, `termsContent?`,
475
+ `logoByFulfillmentOptionId?`, Stripe `appearance`/`fonts`, `onCartChange?`
475
476
  (receives every decorated cart from summary mutations; the layout also
476
477
  re-runs `syncPaymentAmount` on those).
477
478
  - **Mount rules** — `"use client"`; inside `CheckoutProvider`; redirect
@@ -630,7 +631,12 @@ code-first through the error-copy maps, never raw API strings.
630
631
  is on screen from arrival and the Buy button carries the gate, naming the
631
632
  missing step; pass true for the older dimmed-until-delivery flow),
632
633
  `beforePaymentButton?` slot, `total` (pass `optimisticTotal`),
633
- `nothingToPay?` (pass the hook's), `logError?`.
634
+ `nothingToPay?` (pass the hook's), `paymentMarks?` (the ordered result of
635
+ `getPaymentMarks`), `termsContent?` (the store's own linked policy notice),
636
+ `logError?`. Payment tabs follow the server's checkout-method order. The
637
+ offline tab prints the configured method name and instructions; the
638
+ connected processor tab shows up to three enabled payment marks and a
639
+ `+N` remainder.
634
640
  - **An order that asks for no money** (2026-09-18) — with `nothingToPay` the
635
641
  rail is replaced by one line saying the order is covered and the button
636
642
  becomes **Complete order**, carrying no amount and waiting on no card
@@ -663,7 +669,7 @@ code-first through the error-copy maps, never raw API strings.
663
669
 
664
670
  - **Purpose** — items (flat rows, READ-ONLY), promo + gift-card widgets,
665
671
  totals breakdown (subtotal / shipping / COD fee / discount / total +
666
- gift-card tender rows UNDER the unchanged total), secure badge.
672
+ gift-card tender rows UNDER the unchanged total), optional secure badge.
667
673
  `LineItemCard` is the standalone card variant.
668
674
  - **A CHECKOUT IS A CHECKOUT** (2026-09-18) — the rows carry no quantity
669
675
  control and call no cart endpoint. The order is stated here and changed in
@@ -686,7 +692,8 @@ code-first through the error-copy maps, never raw API strings.
686
692
  `tax_total`, `total`, `gift_card_total`, `gift_card_remainder`.
687
693
  - **Props contract** — `{client, cart, optimisticShippingCost,
688
694
  onOptimisticShippingClear?, optimisticMethodFee?,
689
- onOptimisticMethodFeeClear?, methodFeeLabel?, showGiftCards?,
695
+ onOptimisticMethodFeeClear?, methodFeeLabel?, showGiftCards?,
696
+ showSecureCheckout?,
690
697
  onCartChange?}`. Optimistic values clear automatically once the server
691
698
  cart catches up.
692
699
  - **The numbers** — every figure comes from `checkoutTotals`
@@ -9,7 +9,7 @@
9
9
  "typecheck": "tsc --noEmit"
10
10
  },
11
11
  "dependencies": {
12
- "@cartbase/storefront": "^0.23.0",
12
+ "@cartbase/storefront": "^0.24.0",
13
13
  "next": "16.2.4",
14
14
  "react": "19.2.4",
15
15
  "react-dom": "19.2.4"