@winkintel/bootstrap-svelte 1.0.1 → 1.0.2
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.
|
@@ -66,8 +66,9 @@ export class CarouselRootState {
|
|
|
66
66
|
};
|
|
67
67
|
document.addEventListener('visibilitychange', this.#visibilityListener);
|
|
68
68
|
}
|
|
69
|
-
// Start autoplay immediately if ride='carousel', otherwise wait for user interaction
|
|
70
|
-
|
|
69
|
+
// Start autoplay immediately in the browser if ride='carousel', otherwise wait for user interaction.
|
|
70
|
+
// During static prerendering there is no browser timer API, so autoplay starts during hydration instead.
|
|
71
|
+
if (typeof window !== 'undefined' && this.#ride === 'carousel' && !this.#timeoutId) {
|
|
71
72
|
this.cycle();
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -277,7 +278,6 @@ export class CarouselRootState {
|
|
|
277
278
|
*/
|
|
278
279
|
cycle() {
|
|
279
280
|
if (typeof window === 'undefined') {
|
|
280
|
-
console.warn('[Carousel] Cycle called in non-browser environment, ignoring.');
|
|
281
281
|
return;
|
|
282
282
|
}
|
|
283
283
|
// Don't start cycling if we're hovered and pause='hover'
|
|
@@ -306,7 +306,6 @@ export class CarouselRootState {
|
|
|
306
306
|
}
|
|
307
307
|
pause() {
|
|
308
308
|
if (typeof window === 'undefined') {
|
|
309
|
-
console.warn('[Carousel] Pause called in non-browser environment, ignoring.');
|
|
310
309
|
return;
|
|
311
310
|
}
|
|
312
311
|
if (this.#timeoutId) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Wink, Inc.",
|
|
3
3
|
"name": "@winkintel/bootstrap-svelte",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"description": "Bootstrap components for Svelte 5 with TypeScript support.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"bnd": "pnpm build && pnpm dev",
|
|
19
19
|
"bnp": "pnpm build && pnpm preview",
|
|
20
20
|
"build": "vite build && pnpm prepack",
|
|
21
|
+
"build:site": "vite build",
|
|
21
22
|
"check-types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
22
23
|
"check-types:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
23
24
|
"clean": "rimraf --glob --max-retries=10 --retry-delay=250 '{.svelte-kit,.turbo,.vercel,build,dist,node_modules,playwright-mcp,test-results}'",
|
|
@@ -25,8 +26,8 @@
|
|
|
25
26
|
"format": "prettier --write --ignore-path=.prettierignore $(git diff --name-only --diff-filter d --relative . && git ls-files --others --exclude-standard | sed \"s|^$(git rev-parse --show-prefix)||\")",
|
|
26
27
|
"format-all": "prettier --write --ignore-path=.prettierignore ./src",
|
|
27
28
|
"lint": "prettier --check ./src && eslint ./src",
|
|
28
|
-
"ncu:check": "ncu --target minor && ncu --target minor --cooldown 0d --filter \"@sveltejs/adapter-
|
|
29
|
-
"ncu:upgrade": "ncu --target minor -u && ncu --target minor --cooldown 0d -u --filter \"@sveltejs/adapter-
|
|
29
|
+
"ncu:check": "ncu --target minor && ncu --target minor --cooldown 0d --filter \"@sveltejs/adapter-static,@sveltejs/kit,@sveltejs/vite-plugin-svelte,svelte,svelte-check,svelte-preprocess\"",
|
|
30
|
+
"ncu:upgrade": "ncu --target minor -u && ncu --target minor --cooldown 0d -u --filter \"@sveltejs/adapter-static,@sveltejs/kit,@sveltejs/vite-plugin-svelte,svelte,svelte-check,svelte-preprocess\" && pnpm install",
|
|
30
31
|
"prepare": "svelte-kit sync || echo ''",
|
|
31
32
|
"prepack": "svelte-kit sync && svelte-package && publint",
|
|
32
33
|
"preview": "vite preview --port 4176",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@eslint/compat": "~2.1.0",
|
|
65
66
|
"@eslint/js": "~10.0.1",
|
|
66
|
-
"@sveltejs/adapter-
|
|
67
|
+
"@sveltejs/adapter-static": "^3.0.10",
|
|
67
68
|
"@sveltejs/kit": "~2.61.1",
|
|
68
69
|
"@sveltejs/package": "~2.5.7",
|
|
69
70
|
"@sveltejs/vite-plugin-svelte": "~7.1.2",
|