@webstudio-is/image 0.28.0 → 0.30.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.
@@ -1,6 +1,6 @@
1
- // Story for image development, see https://github.com/webstudio-is/webstudio-designer/issues/387
1
+ // Story for image development, see https://github.com/webstudio-is/webstudio-builder/issues/387
2
2
 
3
- import React, { type ComponentProps, type HTMLAttributes } from "react";
3
+ import type * as React from "react";
4
4
  import type { ComponentMeta, ComponentStory } from "@storybook/react";
5
5
  import { Image as ImagePrimitive, loaders } from "./";
6
6
 
@@ -13,7 +13,7 @@ export default {
13
13
  title: "Components/ImageDev",
14
14
  } as ComponentMeta<typeof ImagePrimitive>;
15
15
 
16
- type ImageProps = ComponentProps<typeof ImagePrimitive>;
16
+ type ImageProps = React.ComponentProps<typeof ImagePrimitive>;
17
17
 
18
18
  /**
19
19
  * In case you need to test img with real cloudflare trasforms
@@ -34,7 +34,9 @@ const imageLoader = USE_CLOUDFLARE_IMAGE_TRANSFORM
34
34
 
35
35
  const ImageBase: ComponentStory<
36
36
  React.ForwardRefExoticComponent<
37
- Omit<ImageProps, "loader"> & { style?: HTMLAttributes<"img">["style"] }
37
+ Omit<ImageProps, "loader"> & {
38
+ style?: React.HTMLAttributes<"img">["style"];
39
+ }
38
40
  >
39
41
  > = (args) => {
40
42
  const style = {