@ikas/storefront 2.0.27 → 2.0.28-alpha.1

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.
@@ -1,36 +1,11 @@
1
1
  import * as React from "react";
2
- import { ImageLoader } from "next/image.js";
2
+ import { ImageProps as NextImageProps } from "next/image.js";
3
3
  import { IkasImage } from "../../models";
4
4
  export declare const Image: React.FC<ImageProps>;
5
- declare const VALID_LAYOUT_VALUES: readonly [
6
- "fill",
7
- "fixed",
8
- "intrinsic",
9
- "responsive",
10
- undefined
11
- ];
12
- declare type LayoutValue = typeof VALID_LAYOUT_VALUES[number];
13
- declare type ImgElementStyle = NonNullable<JSX.IntrinsicElements["img"]["style"]>;
14
- declare type ImageProps = Omit<JSX.IntrinsicElements["img"], "src" | "srcSet" | "ref" | "width" | "height" | "loading" | "style"> & {
15
- loader?: ImageLoader;
5
+ declare type ImageProps = Omit<NextImageProps, "src" | "srcSet" | "blurDataURL" | "placeholder" | "loader" | "quality"> & {
16
6
  priority?: boolean;
17
- loading?: "lazy" | "eager" | undefined;
18
- objectFit?: ImgElementStyle["objectFit"];
19
- objectPosition?: ImgElementStyle["objectPosition"];
20
7
  image: IkasImage;
21
8
  sizes: string;
22
9
  useBlur?: boolean;
23
- } & ({
24
- width?: never;
25
- height?: never;
26
- unsized: true;
27
- } | {
28
- width?: never;
29
- height?: never;
30
- layout: "fill";
31
- } | {
32
- width: number | string;
33
- height: number | string;
34
- layout?: Exclude<LayoutValue, "fill">;
35
- });
10
+ };
36
11
  export {};