@develemit/storefront 0.7.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 0.9.0 (2026-11-14)
2
+
3
+ ### Features
4
+
5
+ - `CheckoutSuccessView` shows a Tax row (`labels.tax`, default "Tax") between shipping and total when the order's `taxCents` is above 0. Untaxed orders are unchanged.
6
+ - `CartSummary` (and `CartDrawer` through `summary`) takes an opt-in `showTaxNote`, which renders `labels.taxNote` (default "Tax calculated at checkout") under the subtotal. Off by default.
7
+
8
+ ## 0.8.0 (2026-11-12)
9
+
10
+ ### Features
11
+
12
+ - `ProductDetailView` gains `backHref` and `backLabel` (default "Back to the shop") for a link above the gallery. The title is now display-size and bold, the detail column spacing is looser, and a sold product mutes its gallery image like the shop card.
13
+ - **Changed:** `AddToCartButton` renders a non-interactive `.sf-sold-note` span (label `labels.sold`, default "Sold") instead of a disabled button when the product is sold. Reserved products still show the disabled button with `labels.unavailable`.
14
+ - Shop grid: more space between the category chips and the grid, equal-height cards with aligned bodies, and the empty-state content is centred.
15
+ - **Changed:** `CheckoutSuccessView` fills the `labels.reference` `{id}` placeholder with the short reference from `formatOrderRef` (for example `#A1B2C3D4`) instead of the full order id. A custom label that already contains a `#` before `{id}` now shows two; drop it.
16
+
1
17
  ## 0.7.0 (2026-11-04)
2
18
 
3
19
  ### Features
@@ -3,6 +3,7 @@ export interface AddToCartLabels {
3
3
  add: string;
4
4
  inCart: string;
5
5
  unavailable: string;
6
+ sold: string;
6
7
  }
7
8
  export declare const defaultAddToCartLabels: AddToCartLabels;
8
9
  export interface AddToCartButtonProps {
@@ -3,6 +3,7 @@ export type { CartSummaryDiscount, DiscountPreviewResult, } from './discount-typ
3
3
  export { discountReasonMessage } from './discount-types';
4
4
  export interface CartSummaryLabels {
5
5
  subtotal: string;
6
+ taxNote: string;
6
7
  discount: Partial<Omit<DiscountLabels, 'reasons'>> & {
7
8
  reasons?: Partial<DiscountLabels['reasons']>;
8
9
  };
@@ -13,5 +14,6 @@ export interface CartSummaryProps {
13
14
  checkoutDisabled?: boolean;
14
15
  labels?: Partial<CartSummaryLabels>;
15
16
  discount?: CartSummaryDiscount;
17
+ showTaxNote?: boolean;
16
18
  }
17
- export declare function CartSummary({ onCheckout, checkoutLabel, checkoutDisabled, labels, discount, }: CartSummaryProps): import('react').JSX.Element;
19
+ export declare function CartSummary({ onCheckout, checkoutLabel, checkoutDisabled, labels, discount, showTaxNote, }: CartSummaryProps): import('react').JSX.Element;
@@ -7,6 +7,7 @@ export interface CheckoutSuccessLabels {
7
7
  subtotal: string;
8
8
  discount: string;
9
9
  shipping: string;
10
+ tax: string;
10
11
  total: string;
11
12
  shipTo: string;
12
13
  tracking: string;