@splidejs/svelte-splide
Advanced tools
Comparing version 0.1.18 to 0.2.0
export { default as Splide } from './Splide/Splide.svelte'; | ||
export { default as SplideTrack } from './SplideTrack/SplideTrack.svelte'; | ||
export { default as SplideSlide } from './SplideSlide/SplideSlide.svelte'; |
export { default as Splide } from './Splide/Splide.svelte'; | ||
export { default as SplideTrack } from './SplideTrack/SplideTrack.svelte'; | ||
export { default as SplideSlide } from './SplideSlide/SplideSlide.svelte'; |
@@ -8,3 +8,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
[x: string]: any; | ||
id?: string | undefined; | ||
class?: string | undefined; | ||
options?: Options; | ||
@@ -14,3 +14,3 @@ splide?: Splide | undefined; | ||
transition?: ComponentConstructor | undefined; | ||
hasSliderWrapper?: boolean; | ||
hasTrack?: boolean; | ||
go?: (control: number | string) => void; | ||
@@ -67,7 +67,3 @@ sync?: (target: Splide) => void; | ||
slots: { | ||
'before-slider': {}; | ||
'before-track': {}; | ||
default: {}; | ||
'after-track': {}; | ||
'after-slider': {}; | ||
}; | ||
@@ -81,5 +77,5 @@ }; | ||
get sync(): (target: Splide) => void; | ||
get id(): string; | ||
get class(): string; | ||
/**accessor*/ | ||
set id(_: string); | ||
set class(_: string); | ||
get options(): Options; | ||
@@ -97,5 +93,5 @@ /**accessor*/ | ||
set transition(_: ComponentConstructor); | ||
get hasSliderWrapper(): boolean; | ||
get hasTrack(): boolean; | ||
/**accessor*/ | ||
set hasSliderWrapper(_: boolean); | ||
set hasTrack(_: boolean); | ||
get undefined(): any; | ||
@@ -102,0 +98,0 @@ /**accessor*/ |
@@ -5,2 +5,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
[x: string]: any; | ||
class?: string | undefined; | ||
}; | ||
@@ -7,0 +8,0 @@ events: { |
export * from './components'; | ||
export type { Options } from '@splidejs/splide'; |
{ | ||
"name": "@splidejs/svelte-splide", | ||
"version": "0.1.18", | ||
"version": "0.2.0", | ||
"description": "Svelte component for the Splide slider/carousel.", | ||
@@ -27,20 +27,18 @@ "author": "Naotoshi Fujita", | ||
"@sveltejs/kit": "next", | ||
"@types/jest": "^27.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.10.0", | ||
"@typescript-eslint/parser": "^5.10.0", | ||
"eslint": "^8.7.0", | ||
"eslint-plugin-svelte3": "^3.4.0", | ||
"@types/jest": "^27.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.17.0", | ||
"@typescript-eslint/parser": "^5.17.0", | ||
"eslint": "^8.12.0", | ||
"eslint-plugin-svelte3": "^3.4.1", | ||
"fs-extra": "^10.0.1", | ||
"gh-pages": "^3.2.3", | ||
"jest": "^27.4.7", | ||
"svelte": "^3.46.2", | ||
"svelte-check": "^2.3.0", | ||
"svelte-preprocess": "^4.10.2", | ||
"svelte2tsx": "^0.4.14", | ||
"jest": "^27.5.1", | ||
"svelte": "^3.46.6", | ||
"svelte-check": "^2.4.6", | ||
"svelte-preprocess": "^4.10.5", | ||
"svelte2tsx": "^0.5.6", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.5" | ||
"typescript": "^4.6.3" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"@splidejs/splide": "^3.6.12" | ||
}, | ||
"exports": { | ||
@@ -52,2 +50,8 @@ "./package.json": "./package.json", | ||
"./components/SplideSlide/SplideSlide.svelte": "./components/SplideSlide/SplideSlide.svelte", | ||
"./components/SplideTrack/SplideTrack.svelte": "./components/SplideTrack/SplideTrack.svelte", | ||
"./css/splide-core.min.css": "./css/splide-core.min.css", | ||
"./css/splide.min.css": "./css/splide.min.css", | ||
"./css/themes/splide-default.min.css": "./css/themes/splide-default.min.css", | ||
"./css/themes/splide-sea-green.min.css": "./css/themes/splide-sea-green.min.css", | ||
"./css/themes/splide-skyblue.min.css": "./css/themes/splide-skyblue.min.css", | ||
".": "./index.js", | ||
@@ -68,5 +72,11 @@ "./types/events": "./types/events.js", | ||
"./utils/merge/merge.test": "./utils/merge/merge.test.js", | ||
"./utils/merge/merge": "./utils/merge/merge.js" | ||
"./utils/merge/merge": "./utils/merge/merge.js", | ||
"./css": "./css/splide.min.css", | ||
"./css/core": "./css/splide-core.min.css", | ||
"./css/*": "./css/themes/splide-*.min.css" | ||
}, | ||
"dependencies": { | ||
"@splidejs/splide": "^4.0.0" | ||
}, | ||
"svelte": "./index.js" | ||
} |
@@ -36,6 +36,6 @@ <div align="center"> | ||
import { Splide, SplideSlide } from '@splidejs/svelte-splide'; | ||
import '@splidejs/splide/dist/css/themes/splide-default.min.css'; | ||
import '@splidejs/svelte-splide/css'; | ||
</script> | ||
<Splide options={ { rewind: true } }> | ||
<Splide options={ { rewind: true } } aria-label="Svelte Splide Example"> | ||
<SplideSlide> | ||
@@ -52,4 +52,11 @@ <img src="image1.jpg" alt="Image 1"/> | ||
## Support Splide | ||
Please support the project if you like it! | ||
- [GitHub Sponsors](https://github.com/sponsors/NaotoshiFujita) | ||
## License | ||
Svelte Splide and Splide are released under the MIT license. | ||
© 2021 Naotoshi Fujita |
/** | ||
* Merges U to T. | ||
* | ||
* @typeParam T - An object to merge to. | ||
* @typeParam U - An object to to. | ||
* @typeParam T - An object to merge U into. | ||
* @typeParam U - An object to merge properties from. | ||
* | ||
@@ -10,3 +10,3 @@ * @return An merged object type. | ||
export declare type Merge<T extends object, U extends object> = Omit<T, keyof U> & { | ||
[K in (keyof T & keyof U)]: U[K] extends object ? U[K] extends any[] ? T[K] extends any[] ? Array<T[K][number] | U[K][number]> : U[K] : T[K] extends object ? Merge<T[K], U[K]> extends infer A ? Cast<A, object> : never : U[K] : U[K]; | ||
[K in (keyof T & keyof U)]: U[K] extends object ? U[K] extends any[] ? U[K] : T[K] extends object ? Merge<T[K], U[K]> extends infer A ? Cast<A, object> : never : U[K] : U[K]; | ||
} & Omit<U, keyof T>; | ||
@@ -13,0 +13,0 @@ declare type Cast<T, U> = T extends U ? T : U; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53413
50
590
61
16
+ Added@splidejs/splide@4.1.4(transitive)
- Removed@splidejs/splide@3.6.12(transitive)
Updated@splidejs/splide@^4.0.0