@reblu/site-blocks 0.32.0 → 0.33.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/dist/index.d.cts CHANGED
@@ -1637,12 +1637,18 @@ interface OrderConfirmationProps {
1637
1637
  cartHref?: string;
1638
1638
  /** Called by the "Volver a comprobar" button on `pending_timeout`/`error`. Omit to render no button. */
1639
1639
  onRecheck?: () => void;
1640
+ /**
1641
+ * REB-1236 — show `order.purchaseTexts` (what happens next for each purchase
1642
+ * type, the tenant's texts from nexus) on a confirmed order. Default `true`;
1643
+ * a server without the field renders nothing extra.
1644
+ */
1645
+ showPurchaseTexts?: boolean;
1640
1646
  labels?: Partial<OrderConfirmationLabels>;
1641
1647
  currencyCode?: string;
1642
1648
  locale?: string;
1643
1649
  className?: string;
1644
1650
  }
1645
- declare function OrderConfirmation({ status, order, sessionId, cartHref, onRecheck, labels, currencyCode, locale, className, }: OrderConfirmationProps): react_jsx_runtime.JSX.Element;
1651
+ declare function OrderConfirmation({ status, order, sessionId, cartHref, onRecheck, showPurchaseTexts, labels, currencyCode, locale, className, }: OrderConfirmationProps): react_jsx_runtime.JSX.Element;
1646
1652
 
1647
1653
  /** The shipping address fields the buyer types (country defaults server-side). */
1648
1654
  interface CheckoutAddressValue {
package/dist/index.d.ts CHANGED
@@ -1637,12 +1637,18 @@ interface OrderConfirmationProps {
1637
1637
  cartHref?: string;
1638
1638
  /** Called by the "Volver a comprobar" button on `pending_timeout`/`error`. Omit to render no button. */
1639
1639
  onRecheck?: () => void;
1640
+ /**
1641
+ * REB-1236 — show `order.purchaseTexts` (what happens next for each purchase
1642
+ * type, the tenant's texts from nexus) on a confirmed order. Default `true`;
1643
+ * a server without the field renders nothing extra.
1644
+ */
1645
+ showPurchaseTexts?: boolean;
1640
1646
  labels?: Partial<OrderConfirmationLabels>;
1641
1647
  currencyCode?: string;
1642
1648
  locale?: string;
1643
1649
  className?: string;
1644
1650
  }
1645
- declare function OrderConfirmation({ status, order, sessionId, cartHref, onRecheck, labels, currencyCode, locale, className, }: OrderConfirmationProps): react_jsx_runtime.JSX.Element;
1651
+ declare function OrderConfirmation({ status, order, sessionId, cartHref, onRecheck, showPurchaseTexts, labels, currencyCode, locale, className, }: OrderConfirmationProps): react_jsx_runtime.JSX.Element;
1646
1652
 
1647
1653
  /** The shipping address fields the buyer types (country defaults server-side). */
1648
1654
  interface CheckoutAddressValue {
package/dist/index.js CHANGED
@@ -16299,6 +16299,7 @@ function OrderConfirmation({
16299
16299
  sessionId,
16300
16300
  cartHref,
16301
16301
  onRecheck,
16302
+ showPurchaseTexts = true,
16302
16303
  labels,
16303
16304
  currencyCode,
16304
16305
  locale,
@@ -16356,6 +16357,23 @@ function OrderConfirmation({
16356
16357
  /* @__PURE__ */ jsx30("span", { children: formatPrice(order.total, currencyCode, locale) })
16357
16358
  ] }) })
16358
16359
  ] }),
16360
+ showPurchaseTexts && order.purchaseTexts?.length ? /* @__PURE__ */ jsx30("div", { className: "mx-auto max-w-sm space-y-3 text-left", "data-slot": "order-confirmation-purchase-texts", children: order.purchaseTexts.map((entry) => /* @__PURE__ */ jsxs28(
16361
+ "div",
16362
+ {
16363
+ className: "rounded-xl border border-border bg-card p-4",
16364
+ "data-slot": "order-confirmation-purchase-text",
16365
+ "data-kind": entry.kind,
16366
+ children: [
16367
+ /* @__PURE__ */ jsx30("p", { className: "mb-1 text-xs uppercase tracking-widest text-muted-foreground", children: entry.label }),
16368
+ entry.place ? /* @__PURE__ */ jsxs28("address", { className: "mb-2 text-sm not-italic", "data-slot": "order-confirmation-pickup-place", children: [
16369
+ entry.place.name ? /* @__PURE__ */ jsx30("span", { className: "block font-medium", children: entry.place.name }) : null,
16370
+ entry.place.address.map((line) => /* @__PURE__ */ jsx30("span", { className: "block", children: line }, line))
16371
+ ] }) : null,
16372
+ /* @__PURE__ */ jsx30("p", { className: "whitespace-pre-line text-sm", children: entry.text })
16373
+ ]
16374
+ },
16375
+ entry.kind
16376
+ )) }) : null,
16359
16377
  t.foundDescription.includes("{email}") ? null : /* @__PURE__ */ jsxs28("p", { className: "mx-auto max-w-sm text-sm text-muted-foreground", children: [
16360
16378
  t.confirmationEmailPrefix,
16361
16379
  " ",