@sveltia/ui 0.81.2 → 0.81.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.
|
@@ -73,8 +73,10 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const observer = new IntersectionObserver(
|
|
76
|
-
(
|
|
77
|
-
|
|
76
|
+
(entries) => {
|
|
77
|
+
// A busy browser can report several changes at once, oldest first, so only the last entry
|
|
78
|
+
// tells whether the spinner is near the view now
|
|
79
|
+
if (entries.at(-1)?.isIntersecting && loading) {
|
|
78
80
|
loadedItemSize += itemChunkSize;
|
|
79
81
|
}
|
|
80
82
|
},
|
|
@@ -170,8 +170,10 @@ class Popup {
|
|
|
170
170
|
removeTransitionStartListener,
|
|
171
171
|
];
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
// A busy browser can report several changes at once, oldest first, so only the last entry tells
|
|
174
|
+
// whether the anchor is visible now
|
|
175
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
176
|
+
if (!entries.at(-1)?.isIntersecting && this.open) {
|
|
175
177
|
this.hideImmediately();
|
|
176
178
|
}
|
|
177
179
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.3",
|
|
4
4
|
"description": "A collection of Svelte components and utilities for building user interfaces.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@lexical/utils": "^0.52.0",
|
|
62
62
|
"@shikijs/langs": "4.5.0",
|
|
63
63
|
"@shikijs/themes": "4.5.0",
|
|
64
|
-
"@sveltia/i18n": "^1.
|
|
64
|
+
"@sveltia/i18n": "^1.5.0",
|
|
65
65
|
"@sveltia/utils": "^0.12.4",
|
|
66
66
|
"lexical": "^0.52.0"
|
|
67
67
|
},
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"@sveltejs/kit": "^3.0.1",
|
|
75
75
|
"@sveltejs/package": "^3.0.0",
|
|
76
76
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
77
|
-
"@vitest/browser-playwright": "^5.0.
|
|
78
|
-
"@vitest/coverage-v8": "^5.0.
|
|
77
|
+
"@vitest/browser-playwright": "^5.0.4",
|
|
78
|
+
"@vitest/coverage-v8": "^5.0.4",
|
|
79
79
|
"cspell": "^10.3.6",
|
|
80
80
|
"eslint": "^9.39.5",
|
|
81
81
|
"eslint-config-airbnb-extended": "^3.3.0",
|
|
82
82
|
"eslint-config-prettier": "^10.1.8",
|
|
83
83
|
"eslint-plugin-import": "^2.32.0",
|
|
84
|
-
"eslint-plugin-jsdoc": "^65.3.
|
|
84
|
+
"eslint-plugin-jsdoc": "^65.3.1",
|
|
85
85
|
"eslint-plugin-package-json": "^1.10.1",
|
|
86
86
|
"eslint-plugin-svelte": "^3.23.1",
|
|
87
87
|
"globals": "^17.13.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"svelte-preprocess": "^6.0.5",
|
|
104
104
|
"tslib": "^2.8.1",
|
|
105
105
|
"vite": "^8.3.4",
|
|
106
|
-
"vitest": "^5.0.
|
|
106
|
+
"vitest": "^5.0.4",
|
|
107
107
|
"vitest-browser-svelte": "^3.1.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|