@nok-integration/storefront-react 0.19.14 → 0.19.16

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
@@ -2503,6 +2503,7 @@ declare function createClient(options: ClientOptions): {
2503
2503
  cta: string;
2504
2504
  image?: string | undefined;
2505
2505
  target?: string | undefined;
2506
+ video?: string | undefined;
2506
2507
  focal_y?: number | undefined;
2507
2508
  }[];
2508
2509
  }>;
@@ -2858,6 +2859,7 @@ declare function createClient(options: ClientOptions): {
2858
2859
  amount: number;
2859
2860
  currency: string;
2860
2861
  } | undefined;
2862
+ returned_qty?: number | undefined;
2861
2863
  }[];
2862
2864
  totals: {
2863
2865
  shipping: {
@@ -2951,6 +2953,7 @@ declare function createClient(options: ClientOptions): {
2951
2953
  amount: number;
2952
2954
  currency: string;
2953
2955
  } | undefined;
2956
+ returned_qty?: number | undefined;
2954
2957
  }[];
2955
2958
  totals: {
2956
2959
  shipping: {
@@ -3729,6 +3732,20 @@ declare const OrderDetail: z.ZodObject<{
3729
3732
  */
3730
3733
  cancelled_qty: z.ZodNumber;
3731
3734
  refunded_qty: z.ZodNumber;
3735
+ /**
3736
+ * Units already reported as coming back.
3737
+ *
3738
+ * **The returns screen cannot compute what is left without it, and got it wrong.** The
3739
+ * engine refuses a return of more than `qty - cancelled_qty - refunded_qty - returned_qty`
3740
+ * (`returns.service`), and this was the only one of those four not on the wire — so a
3741
+ * line returned in full still offered its full quantity, and choosing it answered 400
3742
+ * `invalid_request` with "Only 0 of line_1 can be returned". Seen on UAT order 611887,
3743
+ * 28 Aug.
3744
+ *
3745
+ * Optional so an engine that predates it stays valid; absent means zero, which is what a
3746
+ * consumer already assumed.
3747
+ */
3748
+ returned_qty: z.ZodOptional<z.ZodNumber>;
3732
3749
  }, "strip", z.ZodTypeAny, {
3733
3750
  sku: string;
3734
3751
  qty: number;
@@ -3750,6 +3767,7 @@ declare const OrderDetail: z.ZodObject<{
3750
3767
  title?: string | undefined;
3751
3768
  image?: string | undefined;
3752
3769
  attributes?: Record<string, string> | undefined;
3770
+ returned_qty?: number | undefined;
3753
3771
  }, {
3754
3772
  sku: string;
3755
3773
  qty: number;
@@ -3771,6 +3789,7 @@ declare const OrderDetail: z.ZodObject<{
3771
3789
  title?: string | undefined;
3772
3790
  image?: string | undefined;
3773
3791
  attributes?: Record<string, string> | undefined;
3792
+ returned_qty?: number | undefined;
3774
3793
  }>, "many">;
3775
3794
  ship_to: z.ZodObject<{
3776
3795
  name: z.ZodString;
@@ -3951,6 +3970,7 @@ declare const OrderDetail: z.ZodObject<{
3951
3970
  title?: string | undefined;
3952
3971
  image?: string | undefined;
3953
3972
  attributes?: Record<string, string> | undefined;
3973
+ returned_qty?: number | undefined;
3954
3974
  }[];
3955
3975
  totals: {
3956
3976
  shipping: {
@@ -4037,6 +4057,7 @@ declare const OrderDetail: z.ZodObject<{
4037
4057
  title?: string | undefined;
4038
4058
  image?: string | undefined;
4039
4059
  attributes?: Record<string, string> | undefined;
4060
+ returned_qty?: number | undefined;
4040
4061
  }[];
4041
4062
  totals: {
4042
4063
  shipping: {
@@ -4704,7 +4725,7 @@ export declare interface ProductDetailsProps {
4704
4725
  }
4705
4726
 
4706
4727
  /**
4707
- * One product as its own gallery (Figma `mobile/limited edition`, 5304:77067).
4728
+ * One product as its own gallery (Figma `mobile/limited edition`, 5986:27948).
4708
4729
  *
4709
4730
  * **The third shape a product takes on a category page**, and the reason it is its own
4710
4731
  * component rather than a variant of the other two: `featured` is one product as one large
@@ -5769,6 +5790,51 @@ export declare interface ShopSurfaceProps extends Omit<ComponentPropsWithoutRef<
5769
5790
 
5770
5791
  export declare type ShopTone = 'dark' | 'light';
5771
5792
 
5793
+ /**
5794
+ * Full-bleed background video: muted, looping, inline, and never showing a control.
5795
+ *
5796
+ * The four attributes below are not stylistic. `muted` and `playsInline` together are the
5797
+ * only combination iOS will start without a gesture — a video that is unmuted, or that is
5798
+ * allowed to go fullscreen, simply does not play, and the panel shows its poster forever.
5799
+ * `loop` is the brief. `controls` is absent because this is artwork behind copy, not a
5800
+ * player: a tap belongs to the CTA stretched over the panel, and a play button in the
5801
+ * middle of a category slide would sit directly on that hit area.
5802
+ *
5803
+ * **Playback follows visibility.** The shop entry is five full-screen panels, so a naive
5804
+ * page decodes five simultaneous streams for four panels nobody is looking at. Each clip
5805
+ * starts when its panel comes into view and pauses when it leaves, which keeps one video
5806
+ * decoding at a time. Fetching is deferred the same way: `preload="none"` until the
5807
+ * observer fires, so a fan who never scrolls past the hero pays for the hero alone.
5808
+ *
5809
+ * **Reduced motion is honoured by not playing at all.** Autoplaying background video is
5810
+ * exactly what the preference is about, and there is a good still to fall back to — the
5811
+ * poster is frame 0 of the clip, so the panel is the design's own opening frame rather
5812
+ * than an empty box. The preference is read live rather than once: a fan can change it
5813
+ * while the page is open, and on iOS it changes with the low-power setting.
5814
+ */
5815
+ export declare function ShopVideo({ src, poster, fill, className, style, priority, }: ShopVideoProps): JSX.Element;
5816
+
5817
+ export declare interface ShopVideoProps {
5818
+ src: string;
5819
+ /**
5820
+ * Still shown until the first frame decodes, and the only thing shown when motion is
5821
+ * reduced. Cut from frame 0 of `src` so there is no jump when playback starts.
5822
+ */
5823
+ poster?: string;
5824
+ /**
5825
+ * Fill the positioned ancestor, as `ShopImage`'s `fill` does. The parent must be
5826
+ * `position: relative` (or absolute/fixed) — same requirement, same reason.
5827
+ */
5828
+ fill?: boolean;
5829
+ className?: string;
5830
+ style?: CSSProperties;
5831
+ /**
5832
+ * Above the fold. Fetches the file immediately instead of waiting for the panel to come
5833
+ * into view. One video per screen should carry this; the rest should not.
5834
+ */
5835
+ priority?: boolean;
5836
+ }
5837
+
5772
5838
  /**
5773
5839
  * Sizing help, shown in the PDP "Size guide" overlay (Figma `size-guide`, 4882:58365).
5774
5840
  *