@nok-integration/storefront-react 0.21.1 → 0.22.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.ts CHANGED
@@ -3282,6 +3282,8 @@ declare function createClient(options: ClientOptions): {
3282
3282
  body: string | null;
3283
3283
  headline: string;
3284
3284
  cta_label: string;
3285
+ desktop_image?: string | null | undefined;
3286
+ desktop_video?: string | null | undefined;
3285
3287
  } | null | undefined;
3286
3288
  } | {
3287
3289
  state: "scheduled";
@@ -5078,7 +5080,7 @@ declare class ProductCache {
5078
5080
  * the size error). Add-to-cart calls the engine through the session so a 401 silently
5079
5081
  * re-handshakes.
5080
5082
  */
5081
- export declare function ProductDetail({ product, inventory, recommendations, claim, }: ProductDetailProps): JSX.Element;
5083
+ export declare function ProductDetail({ product, inventory, recommendations, claim, breadcrumb, help, }: ProductDetailProps): JSX.Element;
5082
5084
 
5083
5085
  export declare interface ProductDetailProps {
5084
5086
  product: Product;
@@ -5090,6 +5092,8 @@ export declare interface ProductDetailProps {
5090
5092
  * "Claim yours" in place of add-to-cart. Called with the chosen variant's SKU.
5091
5093
  */
5092
5094
  claim?: (sku: string) => Promise<void>;
5095
+ breadcrumb?: ReactNode;
5096
+ help?: ReactNode;
5093
5097
  }
5094
5098
 
5095
5099
  /**
@@ -5892,6 +5896,9 @@ export declare type ShopEvent = {
5892
5896
  | {
5893
5897
  type: 'support_requested';
5894
5898
  orderRef: string;
5899
+ } | {
5900
+ type: 'help_requested';
5901
+ inviteRef: string;
5895
5902
  }
5896
5903
  /**
5897
5904
  * The fan confirmed a cancellation and the engine accepted it.
@@ -6466,7 +6473,7 @@ export declare interface StatusBadgeProps {
6466
6473
  }
6467
6474
 
6468
6475
  /** Bottom-pinned CTA bar, safe-area aware. Holds one or two primary actions. */
6469
- export declare function StickyCtaBar({ children, info, variant }: StickyCtaBarProps): JSX.Element;
6476
+ export declare function StickyCtaBar({ children, info, variant, className }: StickyCtaBarProps): JSX.Element;
6470
6477
 
6471
6478
  export declare interface StickyCtaBarProps {
6472
6479
  children: ReactNode;
@@ -6477,6 +6484,7 @@ export declare interface StickyCtaBarProps {
6477
6484
  * bar: square, hairline top border. Two different frames in Figma, not a preference.
6478
6485
  */
6479
6486
  variant?: 'floating' | 'divider';
6487
+ className?: string;
6480
6488
  }
6481
6489
 
6482
6490
  /** `POST /v1/stock-alerts` — tell me when this is buyable again. */
@@ -6835,6 +6843,8 @@ export declare function VipHero({ hero, onContinue }: VipHeroProps): JSX.Element
6835
6843
 
6836
6844
  declare const VipHero_2: z.ZodObject<{
6837
6845
  image: z.ZodNullable<z.ZodString>;
6846
+ desktop_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6847
+ desktop_video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6838
6848
  headline: z.ZodString;
6839
6849
  body: z.ZodNullable<z.ZodString>;
6840
6850
  cta_label: z.ZodString;
@@ -6843,11 +6853,15 @@ declare const VipHero_2: z.ZodObject<{
6843
6853
  headline: string;
6844
6854
  body: string | null;
6845
6855
  cta_label: string;
6856
+ desktop_image?: string | null | undefined;
6857
+ desktop_video?: string | null | undefined;
6846
6858
  }, {
6847
6859
  image: string | null;
6848
6860
  headline: string;
6849
6861
  body: string | null;
6850
6862
  cta_label: string;
6863
+ desktop_image?: string | null | undefined;
6864
+ desktop_video?: string | null | undefined;
6851
6865
  }>;
6852
6866
 
6853
6867
  declare type VipHero_2 = z.infer<typeof VipHero_2>;
@@ -6878,6 +6892,8 @@ declare const VipInviteView: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
6878
6892
  }>, "many">;
6879
6893
  hero: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6880
6894
  image: z.ZodNullable<z.ZodString>;
6895
+ desktop_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6896
+ desktop_video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6881
6897
  headline: z.ZodString;
6882
6898
  body: z.ZodNullable<z.ZodString>;
6883
6899
  cta_label: z.ZodString;
@@ -6886,11 +6902,15 @@ declare const VipInviteView: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
6886
6902
  headline: string;
6887
6903
  body: string | null;
6888
6904
  cta_label: string;
6905
+ desktop_image?: string | null | undefined;
6906
+ desktop_video?: string | null | undefined;
6889
6907
  }, {
6890
6908
  image: string | null;
6891
6909
  headline: string;
6892
6910
  body: string | null;
6893
6911
  cta_label: string;
6912
+ desktop_image?: string | null | undefined;
6913
+ desktop_video?: string | null | undefined;
6894
6914
  }>>>;
6895
6915
  }, "strip", z.ZodTypeAny, {
6896
6916
  state: "active";
@@ -6908,6 +6928,8 @@ declare const VipInviteView: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
6908
6928
  headline: string;
6909
6929
  body: string | null;
6910
6930
  cta_label: string;
6931
+ desktop_image?: string | null | undefined;
6932
+ desktop_video?: string | null | undefined;
6911
6933
  } | null | undefined;
6912
6934
  }, {
6913
6935
  state: "active";
@@ -6925,6 +6947,8 @@ declare const VipInviteView: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
6925
6947
  headline: string;
6926
6948
  body: string | null;
6927
6949
  cta_label: string;
6950
+ desktop_image?: string | null | undefined;
6951
+ desktop_video?: string | null | undefined;
6928
6952
  } | null | undefined;
6929
6953
  }>, z.ZodObject<{
6930
6954
  state: z.ZodLiteral<"scheduled">;
@@ -6957,13 +6981,14 @@ declare const VipInviteView: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
6957
6981
 
6958
6982
  declare type VipInviteView = z.infer<typeof VipInviteView>;
6959
6983
 
6960
- export declare function VipLandingView({ token, onUnavailable }: VipLandingViewProps): JSX.Element;
6984
+ export declare function VipLandingView({ token, onUnavailable, onHelp }: VipLandingViewProps): JSX.Element;
6961
6985
 
6962
6986
  export declare interface VipLandingViewProps {
6963
6987
  /** The token from the invite link: the last path segment of the URL the recipient opened. */
6964
6988
  token: string;
6965
6989
  /** Replaces the built-in screen for an invite that cannot be claimed. */
6966
6990
  onUnavailable?: (state: VipInviteUnavailableState) => ReactNode;
6991
+ onHelp?: () => void;
6967
6992
  }
6968
6993
 
6969
6994
  /** "Why shop with us" reassurance tiles. */