From 1d45203b01cf34f5209cf915f68b672435260ede Mon Sep 17 00:00:00 2001 From: Javad Mnjd Date: Sun, 12 Jan 2025 16:12:30 +0330 Subject: [PATCH] fix: vue export type declarations --- CHANGELOG.md | 4 ++++ README.md | 2 -- package.json | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e88b69..d614df1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.4 + +- add type declarations for vue export + ## 2.0.3 - fix an issue where content would jump when navbar was stuck diff --git a/README.md b/README.md index 62e3ec3..10b62fe 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ This component can help you: Supports both vue-2 and vue-3 -[![component in action](https://thumbs.gfycat.com/SerpentinePortlyCow-size_restricted.gif)](https://gfycat.com/serpentineportlycow) - [![Edit vue-sticky-element example](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vue-sticky-element-vue3-dzpd13?fontsize=14&hidenavigation=1&theme=dark) ## Getting Started diff --git a/package.json b/package.json index 09338bc..7bec148 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-sticky-element", - "version": "2.0.3", + "version": "2.0.4", "description": "A simple vue sticky component wrapper that will stick to screen when scrolled past it", "author": "jd1378", "license": "MIT", @@ -22,7 +22,8 @@ "default": "./dist/vue-sticky-element.css" }, "./vue": { - "default": "./src/vue-sticky-element.vue" + "default": "./src/vue-sticky-element.vue", + "types": "./dist/vue-sticky-element.vue.d.ts" } }, "files": [