@juspay/svelte-ui-components 2.2.0 → 2.2.1

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.
@@ -9,7 +9,7 @@
9
9
  showDots = false,
10
10
  isScrollableLast = false,
11
11
  onkeydown
12
- }: CarouselProperties<Record<string, unknown>> = $props();
12
+ }: CarouselProperties = $props();
13
13
 
14
14
  let slidesDiv: HTMLDivElement | undefined = $state();
15
15
  let intervalId: number;
@@ -1,4 +1,4 @@
1
1
  import type { CarouselProperties } from './properties';
2
- declare const Carousel: import("svelte").Component<CarouselProperties<Record<string, unknown>>, {}, "">;
2
+ declare const Carousel: import("svelte").Component<CarouselProperties, {}, "">;
3
3
  type Carousel = ReturnType<typeof Carousel>;
4
4
  export default Carousel;
@@ -1,10 +1,10 @@
1
1
  import type { Component } from 'svelte';
2
- export type CarouselView<TProps extends Record<string, unknown> = Record<string, unknown>> = {
3
- properties?: TProps;
4
- component: Component<TProps>;
2
+ export type CarouselView = {
3
+ properties?: Record<string, unknown>;
4
+ component: Component<Record<string, unknown>>;
5
5
  };
6
- export type CarouselProperties<TProps extends Record<string, unknown> = Record<string, unknown>> = {
7
- views: CarouselView<TProps>[];
6
+ export type CarouselProperties = {
7
+ views: CarouselView[];
8
8
  autoplay?: boolean;
9
9
  autoplayInterval?: number;
10
10
  showDots?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",