@nok-integration/storefront-react 0.19.15 → 0.19.17
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 +25 -4
- package/dist/index.mjs +309 -283
- package/dist/standalone/storefront.mjs +309 -283
- package/dist/standalone/styles.css +79 -77
- package/dist/styles.css +79 -77
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1253,12 +1253,15 @@ declare const CategoryPage: z.ZodObject<{
|
|
|
1253
1253
|
}>, z.ZodObject<{
|
|
1254
1254
|
kind: z.ZodLiteral<"lifestyle_image">;
|
|
1255
1255
|
images: z.ZodArray<z.ZodString, "many">;
|
|
1256
|
+
videos: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
|
|
1256
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1257
1258
|
kind: "lifestyle_image";
|
|
1258
1259
|
images: string[];
|
|
1260
|
+
videos?: (string | null)[] | undefined;
|
|
1259
1261
|
}, {
|
|
1260
1262
|
kind: "lifestyle_image";
|
|
1261
1263
|
images: string[];
|
|
1264
|
+
videos?: (string | null)[] | undefined;
|
|
1262
1265
|
}>, z.ZodObject<{
|
|
1263
1266
|
kind: z.ZodLiteral<"grid">;
|
|
1264
1267
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1719,6 +1722,7 @@ declare const CategoryPage: z.ZodObject<{
|
|
|
1719
1722
|
} | {
|
|
1720
1723
|
kind: "lifestyle_image";
|
|
1721
1724
|
images: string[];
|
|
1725
|
+
videos?: (string | null)[] | undefined;
|
|
1722
1726
|
} | {
|
|
1723
1727
|
kind: "grid";
|
|
1724
1728
|
products: {
|
|
@@ -1931,6 +1935,7 @@ declare const CategoryPage: z.ZodObject<{
|
|
|
1931
1935
|
} | {
|
|
1932
1936
|
kind: "lifestyle_image";
|
|
1933
1937
|
images: string[];
|
|
1938
|
+
videos?: (string | null)[] | undefined;
|
|
1934
1939
|
} | {
|
|
1935
1940
|
kind: "grid";
|
|
1936
1941
|
products: {
|
|
@@ -2381,6 +2386,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
2381
2386
|
} | {
|
|
2382
2387
|
kind: "lifestyle_image";
|
|
2383
2388
|
images: string[];
|
|
2389
|
+
videos?: (string | null)[] | undefined;
|
|
2384
2390
|
} | {
|
|
2385
2391
|
kind: "grid";
|
|
2386
2392
|
products: {
|
|
@@ -3460,15 +3466,30 @@ export declare function isDuplicateOrder(err: unknown): boolean;
|
|
|
3460
3466
|
export declare function isUnauthorized(err: unknown): boolean;
|
|
3461
3467
|
|
|
3462
3468
|
/**
|
|
3463
|
-
* Full-width editorial
|
|
3469
|
+
* Full-width editorial band, swipeable when the CMS supplies more than one slide.
|
|
3464
3470
|
*
|
|
3465
3471
|
* It previously rendered `images[0]` and dropped the rest, which is a silent failure of
|
|
3466
3472
|
* the worst kind: the block takes an array, an author publishes three, and nothing on the
|
|
3467
3473
|
* screen says the other two exist.
|
|
3474
|
+
*
|
|
3475
|
+
* **A slide is a picture or a clip, and the picture is the clip's poster.** The pairing is
|
|
3476
|
+
* positional and comes off the wire that way, so `images[i]` is what shows for slide `i`
|
|
3477
|
+
* until its video decodes, and all that shows when motion is reduced — the same rule the
|
|
3478
|
+
* shop entry's slides follow. `priority` stays on the image path only: a band this far
|
|
3479
|
+
* down the page has no business fetching a megabyte before it is anywhere near the screen,
|
|
3480
|
+
* and `ShopVideo` starts its own download when the slide comes into view.
|
|
3468
3481
|
*/
|
|
3469
|
-
export declare function LifestyleImage({ images }:
|
|
3482
|
+
export declare function LifestyleImage({ images, videos }: LifestyleImageProps): JSX.Element | null;
|
|
3483
|
+
|
|
3484
|
+
declare interface LifestyleImageProps {
|
|
3470
3485
|
images: string[];
|
|
3471
|
-
|
|
3486
|
+
/**
|
|
3487
|
+
* Parallel to `images`: the clip for the slide at the same index, `null` where that
|
|
3488
|
+
* slide is a still. Absent for a band of stills, which is every band published before
|
|
3489
|
+
* contracts 2.51.0.
|
|
3490
|
+
*/
|
|
3491
|
+
videos?: (string | null)[];
|
|
3492
|
+
}
|
|
3472
3493
|
|
|
3473
3494
|
/** Editorial text band between PCP sections. */
|
|
3474
3495
|
export declare function LifestyleText({ text, align }: LifestyleTextProps): JSX.Element;
|
|
@@ -4725,7 +4746,7 @@ export declare interface ProductDetailsProps {
|
|
|
4725
4746
|
}
|
|
4726
4747
|
|
|
4727
4748
|
/**
|
|
4728
|
-
* One product as its own gallery (Figma `mobile/limited edition`,
|
|
4749
|
+
* One product as its own gallery (Figma `mobile/limited edition`, 5986:27948).
|
|
4729
4750
|
*
|
|
4730
4751
|
* **The third shape a product takes on a category page**, and the reason it is its own
|
|
4731
4752
|
* component rather than a variant of the other two: `featured` is one product as one large
|