@zubyjs/react 1.0.68 → 1.0.70

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.
Files changed (3) hide show
  1. package/image.js +1 -1
  2. package/package.json +1 -1
  3. package/router.js +1 -1
package/image.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useGlobalContext } from 'zuby/hooks/index.js';
3
3
  import getNearestSize from 'zuby/image/getNearestSize.js';
4
- export default function Image({ src: originalSrc, alt, width, height, format, quality, lazy, }) {
4
+ export default function Image({ src: originalSrc, alt, width, height, format, quality, lazy = true, }) {
5
5
  const context = useGlobalContext();
6
6
  format = format || context?.image?.defaultFormat;
7
7
  quality = quality || context?.image?.defaultQuality;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zubyjs/react",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "description": "Zuby.js JsxProvider for react",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/router.js CHANGED
@@ -7,7 +7,7 @@ import { preloadPage } from 'zuby/preload/index.js';
7
7
  import lazyWithPreload from './components/lazyWithPreload.js';
8
8
  import { useProps } from 'zuby/hooks/useProps.js';
9
9
  import { pageContext } from './contexts/pageContext.js';
10
- import { usePageContext } from '@zubyjs/preact/src/hooks/index.js';
10
+ import { usePageContext } from './hooks/index.js';
11
11
  let pages;
12
12
  let apps;
13
13
  let errors;