-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43d9675
commit e0d4cda
Showing
7 changed files
with
23 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@unlazy/svelte", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.11.0", | ||
"packageManager": "pnpm@8.14.0", | ||
"description": "Svelte lazy loading library for placeholder images", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -49,15 +49,15 @@ | |
"test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" | ||
}, | ||
"peerDependencies": { | ||
"svelte": "^3.54.0" | ||
"svelte": "^3 || ^4" | ||
}, | ||
"dependencies": { | ||
"unlazy": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@sveltejs/adapter-auto": "^2.1.1", | ||
"@sveltejs/kit": "^1.27.7", | ||
"@sveltejs/package": "^2.2.3", | ||
"@sveltejs/adapter-auto": "^3.0.1", | ||
"@sveltejs/kit": "^2.0.6", | ||
"@sveltejs/package": "^2.2.5", | ||
"eslint-plugin-svelte": "^2.35.1", | ||
"svelte": "^4.2.8", | ||
"svelte-check": "^3.6.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<script lang="ts"> | ||
<script lang='ts'> | ||
import UnLazyImage from '../lib/UnLazyImage.svelte' | ||
</script> | ||
|
||
<UnLazyImage | ||
blurhash="LKO2:N%2Tw=w]~RBVZRi};RPxuwH" | ||
srcSet="image-320w.jpg 320w, image-640w.jpg 640w" | ||
blurhash='LKO2:N%2Tw=w]~RBVZRi};RPxuwH' | ||
srcSet='image-320w.jpg 320w, image-640w.jpg 640w' | ||
autoSizes | ||
width="640" | ||
height="640" | ||
width='640' | ||
height='640' | ||
/> | ||
<UnLazyImage | ||
thumbhash="1QcSHQRnh493V4dIh4eXh1h4kJUI" | ||
src="/images/sunrise-evan-wallace.jpg" | ||
width="480" | ||
height="640" | ||
thumbhash='1QcSHQRnh493V4dIh4eXh1h4kJUI' | ||
src='/images/sunrise-evan-wallace.jpg' | ||
width='480' | ||
height='640' | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters