@neowhale/storefront 0.2.12 → 0.2.13

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.
@@ -358,6 +358,7 @@ interface QRLandingData {
358
358
  product: Record<string, unknown> | null;
359
359
  coa: {
360
360
  url: string;
361
+ viewer_url?: string | null;
361
362
  document_name: string;
362
363
  } | null;
363
364
  landing_page: LandingPageConfig | null;
@@ -396,6 +397,7 @@ interface LandingPageRenderData {
396
397
  product: Record<string, unknown> | null;
397
398
  coa: {
398
399
  url: string;
400
+ viewer_url?: string | null;
399
401
  document_name: string;
400
402
  } | null;
401
403
  }
@@ -358,6 +358,7 @@ interface QRLandingData {
358
358
  product: Record<string, unknown> | null;
359
359
  coa: {
360
360
  url: string;
361
+ viewer_url?: string | null;
361
362
  document_name: string;
362
363
  } | null;
363
364
  landing_page: LandingPageConfig | null;
@@ -396,6 +397,7 @@ interface LandingPageRenderData {
396
397
  product: Record<string, unknown> | null;
397
398
  coa: {
398
399
  url: string;
400
+ viewer_url?: string | null;
399
401
  document_name: string;
400
402
  } | null;
401
403
  }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- export { A as Address, C as Cart, a as CartItem, b as Category, c as CategoryTreeNode, d as CheckoutSession, e as CouponValidation, f as Customer, g as CustomerAnalytics, E as EventType, L as LandingPageConfig, h as LandingPageRenderData, i as LandingSection, j as ListResponse, k as Location, l as LoyaltyAccount, m as LoyaltyReward, n as LoyaltyTransaction, O as Order, o as OrderItem, P as PaymentData, p as PixelConfig, q as PricingTier, r as Product, s as ProductVariation, Q as QRLandingData, t as QRLandingPage, u as QRLandingStore, R as Recommendation, v as Review, w as ReviewSummary, S as SendCodeResponse, x as ShippingMethod, y as ShippingRate, z as StorefrontConfig, B as StorefrontSession, T as TaxBreakdown, V as VerifyCodeResponse, W as WhaleClient, D as WhaleStorefrontConfig, F as WishlistItem } from './client-T1eA5Xs-.cjs';
2
- export { P as PixelManager } from './pixel-manager-BHE1nZ90.cjs';
1
+ export { A as Address, C as Cart, a as CartItem, b as Category, c as CategoryTreeNode, d as CheckoutSession, e as CouponValidation, f as Customer, g as CustomerAnalytics, E as EventType, L as LandingPageConfig, h as LandingPageRenderData, i as LandingSection, j as ListResponse, k as Location, l as LoyaltyAccount, m as LoyaltyReward, n as LoyaltyTransaction, O as Order, o as OrderItem, P as PaymentData, p as PixelConfig, q as PricingTier, r as Product, s as ProductVariation, Q as QRLandingData, t as QRLandingPage, u as QRLandingStore, R as Recommendation, v as Review, w as ReviewSummary, S as SendCodeResponse, x as ShippingMethod, y as ShippingRate, z as StorefrontConfig, B as StorefrontSession, T as TaxBreakdown, V as VerifyCodeResponse, W as WhaleClient, D as WhaleStorefrontConfig, F as WishlistItem } from './client-Ca8Otk-R.cjs';
2
+ export { P as PixelManager } from './pixel-manager-CIR16DXY.cjs';
3
3
 
4
4
  /**
5
5
  * Resilient HTTP sender for analytics/event payloads.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { A as Address, C as Cart, a as CartItem, b as Category, c as CategoryTreeNode, d as CheckoutSession, e as CouponValidation, f as Customer, g as CustomerAnalytics, E as EventType, L as LandingPageConfig, h as LandingPageRenderData, i as LandingSection, j as ListResponse, k as Location, l as LoyaltyAccount, m as LoyaltyReward, n as LoyaltyTransaction, O as Order, o as OrderItem, P as PaymentData, p as PixelConfig, q as PricingTier, r as Product, s as ProductVariation, Q as QRLandingData, t as QRLandingPage, u as QRLandingStore, R as Recommendation, v as Review, w as ReviewSummary, S as SendCodeResponse, x as ShippingMethod, y as ShippingRate, z as StorefrontConfig, B as StorefrontSession, T as TaxBreakdown, V as VerifyCodeResponse, W as WhaleClient, D as WhaleStorefrontConfig, F as WishlistItem } from './client-T1eA5Xs-.js';
2
- export { P as PixelManager } from './pixel-manager-1C6-h9Rp.js';
1
+ export { A as Address, C as Cart, a as CartItem, b as Category, c as CategoryTreeNode, d as CheckoutSession, e as CouponValidation, f as Customer, g as CustomerAnalytics, E as EventType, L as LandingPageConfig, h as LandingPageRenderData, i as LandingSection, j as ListResponse, k as Location, l as LoyaltyAccount, m as LoyaltyReward, n as LoyaltyTransaction, O as Order, o as OrderItem, P as PaymentData, p as PixelConfig, q as PricingTier, r as Product, s as ProductVariation, Q as QRLandingData, t as QRLandingPage, u as QRLandingStore, R as Recommendation, v as Review, w as ReviewSummary, S as SendCodeResponse, x as ShippingMethod, y as ShippingRate, z as StorefrontConfig, B as StorefrontSession, T as TaxBreakdown, V as VerifyCodeResponse, W as WhaleClient, D as WhaleStorefrontConfig, F as WishlistItem } from './client-Ca8Otk-R.js';
2
+ export { P as PixelManager } from './pixel-manager-CIZKghfx.js';
3
3
 
4
4
  /**
5
5
  * Resilient HTTP sender for analytics/event payloads.
@@ -1,4 +1,4 @@
1
- import { D as WhaleStorefrontConfig, W as WhaleClient, r as Product } from '../client-T1eA5Xs-.cjs';
1
+ import { D as WhaleStorefrontConfig, W as WhaleClient, r as Product } from '../client-Ca8Otk-R.cjs';
2
2
  import { NextRequest, NextResponse } from 'next/server';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { D as WhaleStorefrontConfig, W as WhaleClient, r as Product } from '../client-T1eA5Xs-.js';
1
+ import { D as WhaleStorefrontConfig, W as WhaleClient, r as Product } from '../client-Ca8Otk-R.js';
2
2
  import { NextRequest, NextResponse } from 'next/server';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { p as PixelConfig } from './client-T1eA5Xs-.cjs';
1
+ import { p as PixelConfig } from './client-Ca8Otk-R.cjs';
2
2
 
3
3
  declare class PixelManager {
4
4
  private providers;
@@ -1,4 +1,4 @@
1
- import { p as PixelConfig } from './client-T1eA5Xs-.js';
1
+ import { p as PixelConfig } from './client-Ca8Otk-R.js';
2
2
 
3
3
  declare class PixelManager {
4
4
  private providers;
@@ -1499,25 +1499,26 @@ function COAViewerSection({
1499
1499
  const coa = data?.coa;
1500
1500
  const c = section.content;
1501
1501
  if (!coa) return null;
1502
- return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "1.5rem", maxWidth: 480, margin: "0 auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(
1503
- "button",
1504
- {
1505
- onClick: onShowCOA,
1506
- style: {
1507
- width: "100%",
1508
- padding: "0.875rem",
1509
- background: theme.accent,
1510
- color: theme.bg,
1511
- border: "none",
1512
- fontSize: "0.85rem",
1513
- fontWeight: 500,
1514
- cursor: "pointer",
1515
- letterSpacing: "0.08em",
1516
- textTransform: "uppercase"
1517
- },
1518
- children: c.button_text || "View Lab Results"
1519
- }
1520
- ) });
1502
+ const buttonStyle = {
1503
+ width: "100%",
1504
+ padding: "0.875rem",
1505
+ background: theme.accent,
1506
+ color: theme.bg,
1507
+ border: "none",
1508
+ fontSize: "0.85rem",
1509
+ fontWeight: 500,
1510
+ cursor: "pointer",
1511
+ letterSpacing: "0.08em",
1512
+ textTransform: "uppercase",
1513
+ textAlign: "center",
1514
+ textDecoration: "none",
1515
+ display: "block",
1516
+ boxSizing: "border-box"
1517
+ };
1518
+ if (coa.viewer_url) {
1519
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "1.5rem", maxWidth: 480, margin: "0 auto" }, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: coa.viewer_url, target: "_blank", rel: "noopener noreferrer", style: buttonStyle, children: c.button_text || "View Lab Results" }) });
1520
+ }
1521
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "1.5rem", maxWidth: 480, margin: "0 auto" }, children: /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onShowCOA, style: buttonStyle, children: c.button_text || "View Lab Results" }) });
1521
1522
  }
1522
1523
  function SocialLinksSection({ section, theme }) {
1523
1524
  const { links } = section.content;