From 886b5d930bd944bb9ea3d32591e860e5362db496 Mon Sep 17 00:00:00 2001 From: jagnani73 Date: Tue, 25 Jan 2022 15:38:35 +0530 Subject: [PATCH 1/2] feat: add props import --- package.json | 2 +- src/animation.tsx | 6 +++++- src/types.ts | 6 +----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 066665a..1a48c7c 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ ], "main": "dist/index.js", "module": "dist/index.es.js", - "types": "dist/index.d.ts", + "types": "dist/types.d.ts", "engines": { "node": ">=12", "npm": ">=6" diff --git a/src/animation.tsx b/src/animation.tsx index ccc6009..4b29475 100644 --- a/src/animation.tsx +++ b/src/animation.tsx @@ -1,4 +1,8 @@ -import { AnimationProps } from "./types"; +export interface AnimationProps { + axis?: "X" | "Y"; + reverse?: boolean; + offset: -1 | 0 | 1; +} const Animation = ({ axis, reverse, offset }: AnimationProps) => { return ( diff --git a/src/types.ts b/src/types.ts index 8679cee..362bc0d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,8 +1,4 @@ -export interface AnimationProps { - axis?: "X" | "Y"; - reverse?: boolean; - offset: -1 | 0 | 1; -} +import { AnimationProps } from "./animation"; export interface MarqueeProps extends AnimationProps { align?: "start" | "end"; From 6ca608c30173ca130ce693d3633fe486b6ca3d04 Mon Sep 17 00:00:00 2001 From: jagnani73 Date: Tue, 25 Jan 2022 15:39:08 +0530 Subject: [PATCH 2/2] !feat(release): new version! --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1a48c7c..9b35464 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-easy-marquee", - "version": "1.1.5", + "version": "1.1.6", "homepage": "https://jagnani73.github.io/react-easy-marquee", "description": "A marquee component for React using CSS.", "author": {