@tokenoftrust/storefront-runner 2.4.30 → 2.4.31

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.
@@ -16,6 +16,7 @@ import VariantSelector, { publicSelectorVariants } from "@/components/islands/Va
16
16
  import CheckoutComplianceGate from "@/components/islands/CheckoutComplianceGate.tsx";
17
17
  import RecentlyViewed from "@/components/islands/RecentlyViewed.tsx";
18
18
  import NicotineWarning from "@/components/compliance/NicotineWarning.astro";
19
+ import Prop65Warning from "@/components/compliance/Prop65Warning.astro";
19
20
  import ReviewSummary from "@/components/commerce/ReviewSummary.astro";
20
21
  import ReviewList from "@/components/commerce/ReviewList.astro";
21
22
  import { isOnSale, isNew, isAvailable, fromPrice } from "@/lib/tot/query";
@@ -348,6 +349,16 @@ const jsonLd = [productJsonLd, breadcrumbLd(crumbs, canonicalBase)];
348
349
  </div>
349
350
  )}
350
351
 
352
+ {/* California Prop 65 (Cal. Code Regs. tit. 27 § 25601+): the safe-harbor
353
+ warning must reach the purchaser before checkout completes, so the PDP
354
+ — the point of sale here (no in-app cart page; checkout is an external
355
+ handoff) — is the mandated placement. */}
356
+ {compliance?.prop65 && (
357
+ <div class="mt-6">
358
+ <Prop65Warning variant="block" config={compliance.prop65} />
359
+ </div>
360
+ )}
361
+
351
362
  {restrictedStates.length > 0 && (
352
363
  <div class="mt-4 rounded-[var(--radius-md)] border border-[var(--color-border)] bg-[var(--color-surface)] px-4 py-3 text-sm" role="note">
353
364
  <p class="font-display font-medium text-[var(--color-text)]">Where we can ship this</p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "2.4.30",
3
+ "version": "2.4.31",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",