@lonik/oh-image 1.2.6 → 1.2.7

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/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface ImageSrc {
1
+ interface ImageSrc {
2
2
  /** Original width of the source image in pixels */
3
3
  width: number;
4
4
  /** Original height of the source image in pixels */
@@ -12,11 +12,6 @@ export interface ImageSrc {
12
12
  }
13
13
 
14
14
  declare module "*?oh" {
15
- const imageSrc: ImageSrc;
16
- export default imageSrc;
17
- }
18
-
19
- declare module "*?oh&*" {
20
- const imageSrc: ImageSrc;
15
+ const imageSrc: any;
21
16
  export default imageSrc;
22
17
  }
package/dist/react.d.ts CHANGED
@@ -1,28 +1,6 @@
1
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { ImgHTMLAttributes } from "react";
3
3
 
4
- //#region src/client.d.ts
5
- interface ImageSrc {
6
- /** Original width of the source image in pixels */
7
- width: number;
8
- /** Original height of the source image in pixels */
9
- height: number;
10
- /** URL to the placeholder image (if placeholder was enabled) */
11
- placeholderUrl?: string;
12
- /** Array of responsive image sources at different breakpoints */
13
- srcSets: string;
14
- /** URL to the main processed image */
15
- src: string;
16
- }
17
- declare module "*?oh" {
18
- const imageSrc: ImageSrc;
19
- export default imageSrc;
20
- }
21
- declare module "*?oh&*" {
22
- const imageSrc: ImageSrc;
23
- export default imageSrc;
24
- }
25
- //#endregion
26
4
  //#region src/react/types.d.ts
27
5
  type ImageSrcType = string | ImageSrc;
28
6
  interface ImageProps extends Partial<Pick<ImgHTMLAttributes<HTMLImageElement>, "fetchPriority" | "decoding" | "loading" | "height" | "width" | "srcSet" | "className" | "sizes" | "style">> {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lonik/oh-image",
3
3
  "type": "module",
4
- "version": "1.2.6",
4
+ "version": "1.2.7",
5
5
  "description": "A React component library for optimized image handling.",
6
6
  "author": "Luka Onikadze <lukonik@gmail.com>",
7
7
  "license": "MIT",