@nice2dev/ui-core 1.0.30 → 1.1.5

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.
@@ -117,7 +117,7 @@ export declare function useProgressiveImage(config: LazyImageConfig & {
117
117
  isInView: boolean;
118
118
  /** Error if any */
119
119
  error: Error | null;
120
- ref: import("react").RefObject<HTMLImageElement>;
120
+ ref: import("react").RefObject<HTMLImageElement | null>;
121
121
  };
122
122
  /**
123
123
  * Preload images in the background
@@ -158,7 +158,7 @@ export declare function createImageObserver(options?: IntersectionObserverInit):
158
158
  * Hook for using shared image observer
159
159
  */
160
160
  export declare function useSharedImageObserver(observer: ReturnType<typeof createImageObserver>, onIntersect: () => void): {
161
- ref: import("react").RefObject<HTMLImageElement>;
161
+ ref: import("react").RefObject<HTMLImageElement | null>;
162
162
  isInView: boolean;
163
163
  };
164
164
  /**
@@ -186,7 +186,7 @@ export interface LazyImageOptions {
186
186
  export declare function useLazyImage(options: LazyImageOptions & {
187
187
  src: string;
188
188
  }): {
189
- ref: import("react").RefObject<HTMLImageElement>;
189
+ ref: import("react").RefObject<HTMLImageElement | null>;
190
190
  isInView: boolean;
191
191
  isLoaded: boolean;
192
192
  currentSrc: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-core",
3
- "version": "1.0.30",
3
+ "version": "1.1.5",
4
4
  "description": "Nice2Dev UI Core — Types, hooks, i18n, a11y, datasource, theme, animations, icons and responsive utilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -33,15 +33,16 @@
33
33
  "react-dom": ">=17.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@nice2dev/i18n": "^1.0.30",
37
- "@types/react": "^18.2.0",
38
- "@types/react-dom": "^18.2.0",
39
- "@vitejs/plugin-react": "^4.3.0",
40
- "react": "^18.2.0",
41
- "react-dom": "^18.2.0",
42
- "rimraf": "^6.0.0",
43
- "typescript": "^5.3.0",
44
- "vite": "^6.4.0"
36
+ "@nice2dev/i18n": "^1.1.5",
37
+ "@types/react": "^19.2.18",
38
+ "@types/react-dom": "^19.2.7",
39
+ "@vitejs/plugin-react": "^4.7.0",
40
+ "react": "^19.2.8",
41
+ "react-dom": "^19.2.8",
42
+ "rimraf": "^6.1.3",
43
+ "typescript": "^5.9.3",
44
+ "vite": "^6.4.1",
45
+ "vitest": "^4.1.11"
45
46
  },
46
47
  "author": "NiceToDev <contact@nicetodev.com>",
47
48
  "license": "SEE LICENSE IN LICENSE",