@vunset/nuxt 1.0.0-rc.1 → 1.0.0-rc.3
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/README.md
CHANGED
|
@@ -38,7 +38,9 @@ export function useInfinityFetch(url, options) {
|
|
|
38
38
|
const target = value instanceof Element ? value : value?.$el;
|
|
39
39
|
if (!(target instanceof Element))
|
|
40
40
|
return;
|
|
41
|
-
|
|
41
|
+
// +1: zoomed, `scrollTop` and rects are fractional while `scrollHeight`/`clientHeight`/`innerHeight`
|
|
42
|
+
// are rounded, so the fully scrolled end can sit a fraction of a pixel short of 0.
|
|
43
|
+
const offset = (options.offset ?? 0) + 1;
|
|
42
44
|
// A list that doesn't scroll itself has nothing left to scroll, so only the window counts; a box capped
|
|
43
45
|
// to a height is always in the window, so only its own scroll counts.
|
|
44
46
|
const inWindow = target.getBoundingClientRect().bottom <= window.innerHeight + offset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunset/nuxt",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "Nuxt module for Vunset: every component, composable and helper auto-imported, styles loaded.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"url": "git+https://github.com/vunset/vunset.git",
|
|
18
18
|
"directory": "packages/nuxt"
|
|
19
19
|
},
|
|
20
|
-
"homepage": "https://
|
|
20
|
+
"homepage": "https://vunset.com/nuxt/get-started",
|
|
21
21
|
"bugs": "https://github.com/vunset/vunset/issues",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"files": [
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"prepublishOnly": "npm run build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vunset/ui": "1.0.0-rc.
|
|
38
|
-
"@vunset/utils": "1.0.0-rc.
|
|
39
|
-
"@vunset/vue": "1.0.0-rc.
|
|
37
|
+
"@vunset/ui": "1.0.0-rc.3",
|
|
38
|
+
"@vunset/utils": "1.0.0-rc.3",
|
|
39
|
+
"@vunset/vue": "1.0.0-rc.3",
|
|
40
40
|
"@nuxt/kit": "^4.6.1",
|
|
41
41
|
"defu": "^6.1.7"
|
|
42
42
|
},
|