@nok-integration/storefront-react 0.22.4 → 0.23.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
@@ -5897,9 +5897,6 @@ export declare type ShopEvent = {
5897
5897
  | {
5898
5898
  type: 'support_requested';
5899
5899
  orderRef: string;
5900
- } | {
5901
- type: 'help_requested';
5902
- inviteRef: string;
5903
5900
  }
5904
5901
  /**
5905
5902
  * The fan confirmed a cancellation and the engine accepted it.
@@ -6982,14 +6979,13 @@ declare const VipInviteView: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
6982
6979
 
6983
6980
  declare type VipInviteView = z.infer<typeof VipInviteView>;
6984
6981
 
6985
- export declare function VipLandingView({ token, onUnavailable, onHelp }: VipLandingViewProps): JSX.Element;
6982
+ export declare function VipLandingView({ token, onUnavailable }: VipLandingViewProps): JSX.Element;
6986
6983
 
6987
6984
  export declare interface VipLandingViewProps {
6988
6985
  /** The token from the invite link: the last path segment of the URL the recipient opened. */
6989
6986
  token: string;
6990
6987
  /** Replaces the built-in screen for an invite that cannot be claimed. */
6991
6988
  onUnavailable?: (state: VipInviteUnavailableState) => ReactNode;
6992
- onHelp?: () => void;
6993
6989
  }
6994
6990
 
6995
6991
  /** "Why shop with us" reassurance tiles. */
package/dist/index.mjs CHANGED
@@ -6402,7 +6402,6 @@ const ES = {
6402
6402
  "Measurement unit": "Unidad de medida",
6403
6403
  "Need help?": "¿Necesita ayuda?",
6404
6404
  "Need help with your order?": "¿Necesita ayuda con su pedido?",
6405
- Homepage: "Inicio",
6406
6405
  Breadcrumb: "Ruta de navegación",
6407
6406
  "Show image {0} of {1}": "Ver imagen {0} de {1}",
6408
6407
  "Nothing left to return": "No queda nada por devolver",
@@ -8453,7 +8452,7 @@ function VipBreadcrumb({ title: title2, trail: trail2 = [], onHome }) {
8453
8452
  type: "button",
8454
8453
  className: styles$C.home,
8455
8454
  onClick: onHome,
8456
- children: t("Homepage")
8455
+ children: t("DAZN Shop")
8457
8456
  })
8458
8457
  }), trail2.map((crumb, i) => jsxs(Fragment$1, {
8459
8458
  children: [jsx("li", {
@@ -8934,7 +8933,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
8934
8933
  className: styles$A.cancelledMeta,
8935
8934
  children: t("Order #{0} · Placed {1}", shortRef$1(order.order_ref), placedOn(order.placed_at, locale))
8936
8935
  })]
8937
- }), !order.vip && jsx(Button, {
8936
+ }), jsx(Button, {
8938
8937
  variant: "primary",
8939
8938
  fullWidth: true,
8940
8939
  loading: reordering,
@@ -12478,7 +12477,7 @@ function VipHero({ hero: hero2, onContinue }) {
12478
12477
  })
12479
12478
  });
12480
12479
  }
12481
- function VipLandingView({ token, onUnavailable, onHelp }) {
12480
+ function VipLandingView({ token, onUnavailable }) {
12482
12481
  const t = useT();
12483
12482
  const { api, emit } = useShop();
12484
12483
  const [load, setLoad] = useState({
@@ -12541,13 +12540,10 @@ function VipLandingView({ token, onUnavailable, onHelp }) {
12541
12540
  }
12542
12541
  return jsx(ActiveLanding, {
12543
12542
  token,
12544
- invite,
12545
- ...onHelp ? {
12546
- onHelp
12547
- } : {}
12543
+ invite
12548
12544
  });
12549
12545
  }
12550
- function ActiveLanding({ token, invite, onHelp }) {
12546
+ function ActiveLanding({ token, invite }) {
12551
12547
  const t = useT();
12552
12548
  const toast2 = useToast();
12553
12549
  const { api, emit } = useShop();
@@ -12612,16 +12608,7 @@ function ActiveLanding({ token, invite, onHelp }) {
12612
12608
  title: loaded.product.title,
12613
12609
  onHome: product.close
12614
12610
  })
12615
- } : {},
12616
- help: jsx(VipHelpLink, {
12617
- onHelp: () => {
12618
- emit({
12619
- type: "help_requested",
12620
- inviteRef: invite.invite_ref
12621
- });
12622
- onHelp?.();
12623
- }
12624
- })
12611
+ } : {}
12625
12612
  }, loaded.product.sku);
12626
12613
  }
12627
12614
  if (loaded.loading) return jsx(ScreenSkeleton, {
@@ -13498,7 +13485,6 @@ function toGa4Event(event) {
13498
13485
  case "ready":
13499
13486
  case "navigate":
13500
13487
  case "support_requested":
13501
- case "help_requested":
13502
13488
  case "order_cancellation_requested":
13503
13489
  case "reorder_requested":
13504
13490
  case "session_required":
@@ -6402,7 +6402,6 @@ const ES = {
6402
6402
  "Measurement unit": "Unidad de medida",
6403
6403
  "Need help?": "¿Necesita ayuda?",
6404
6404
  "Need help with your order?": "¿Necesita ayuda con su pedido?",
6405
- Homepage: "Inicio",
6406
6405
  Breadcrumb: "Ruta de navegación",
6407
6406
  "Show image {0} of {1}": "Ver imagen {0} de {1}",
6408
6407
  "Nothing left to return": "No queda nada por devolver",
@@ -8453,7 +8452,7 @@ function VipBreadcrumb({ title: title2, trail: trail2 = [], onHome }) {
8453
8452
  type: "button",
8454
8453
  className: styles$C.home,
8455
8454
  onClick: onHome,
8456
- children: t("Homepage")
8455
+ children: t("DAZN Shop")
8457
8456
  })
8458
8457
  }), trail2.map((crumb, i) => jsxs(Fragment$1, {
8459
8458
  children: [jsx("li", {
@@ -8934,7 +8933,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
8934
8933
  className: styles$A.cancelledMeta,
8935
8934
  children: t("Order #{0} · Placed {1}", shortRef$1(order.order_ref), placedOn(order.placed_at, locale))
8936
8935
  })]
8937
- }), !order.vip && jsx(Button, {
8936
+ }), jsx(Button, {
8938
8937
  variant: "primary",
8939
8938
  fullWidth: true,
8940
8939
  loading: reordering,
@@ -12478,7 +12477,7 @@ function VipHero({ hero: hero2, onContinue }) {
12478
12477
  })
12479
12478
  });
12480
12479
  }
12481
- function VipLandingView({ token, onUnavailable, onHelp }) {
12480
+ function VipLandingView({ token, onUnavailable }) {
12482
12481
  const t = useT();
12483
12482
  const { api, emit } = useShop();
12484
12483
  const [load, setLoad] = useState({
@@ -12541,13 +12540,10 @@ function VipLandingView({ token, onUnavailable, onHelp }) {
12541
12540
  }
12542
12541
  return jsx(ActiveLanding, {
12543
12542
  token,
12544
- invite,
12545
- ...onHelp ? {
12546
- onHelp
12547
- } : {}
12543
+ invite
12548
12544
  });
12549
12545
  }
12550
- function ActiveLanding({ token, invite, onHelp }) {
12546
+ function ActiveLanding({ token, invite }) {
12551
12547
  const t = useT();
12552
12548
  const toast2 = useToast();
12553
12549
  const { api, emit } = useShop();
@@ -12612,16 +12608,7 @@ function ActiveLanding({ token, invite, onHelp }) {
12612
12608
  title: loaded.product.title,
12613
12609
  onHome: product.close
12614
12610
  })
12615
- } : {},
12616
- help: jsx(VipHelpLink, {
12617
- onHelp: () => {
12618
- emit({
12619
- type: "help_requested",
12620
- inviteRef: invite.invite_ref
12621
- });
12622
- onHelp?.();
12623
- }
12624
- })
12611
+ } : {}
12625
12612
  }, loaded.product.sku);
12626
12613
  }
12627
12614
  if (loaded.loading) return jsx(ScreenSkeleton, {
@@ -13498,7 +13485,6 @@ function toGa4Event(event) {
13498
13485
  case "ready":
13499
13486
  case "navigate":
13500
13487
  case "support_requested":
13501
- case "help_requested":
13502
13488
  case "order_cancellation_requested":
13503
13489
  case "reorder_requested":
13504
13490
  case "session_required":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.22.4",
3
+ "version": "0.23.0",
4
4
  "description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",