astro-swiper 2.5.3 → 2.6.0

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.
Files changed (3) hide show
  1. package/README.md +8 -1
  2. package/package.json +4 -2
  3. package/swiper.ts +8 -0
package/README.md CHANGED
@@ -180,7 +180,7 @@ Here is a snipset of the
180
180
  </Swiper>
181
181
 
182
182
  <script>
183
- import type { PaginationOptions } from 'swiper/types';
183
+ import type { PaginationOptions } from 'astro-swiper/swiper';
184
184
  import { getSwiperFromUniqueSelector } from 'astro-swiper'
185
185
  window.addEventListener('load', () => {
186
186
  const swiper = getSwiperFromUniqueSelector('.swiper-demo-pagination-custom');
@@ -192,6 +192,13 @@ Here is a snipset of the
192
192
  </script>
193
193
  ```
194
194
 
195
+ ### Swiper types
196
+
197
+ Swiper types are available importing types from `astro-swiper/swiper`, such as
198
+
199
+ ```js
200
+ import type { PaginationOptions } from 'astro-swiper/swiper';
201
+ ```
195
202
 
196
203
  ## Help needed?
197
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-swiper",
3
- "version": "2.5.3",
3
+ "version": "2.6.0",
4
4
  "description": "Astro component for swiper, dedicated to slider / carousel / photo swiper / slide, including thumbnails",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -23,10 +23,12 @@
23
23
  ".": {
24
24
  "types": "./index.ts",
25
25
  "default": "./index.ts"
26
- }
26
+ },
27
+ "./swiper": "./swiper.ts"
27
28
  },
28
29
  "files": [
29
30
  "index.ts",
31
+ "swiper.ts",
30
32
  "src/**"
31
33
  ],
32
34
  "engines": {
package/swiper.ts ADDED
@@ -0,0 +1,8 @@
1
+ // Copyright (c) Pascal Brand
2
+ // MIT License
3
+ //
4
+ // export swiper API
5
+ // to be used with
6
+ // import type { Swiper } from 'astro-swiper/swiper'
7
+
8
+ export type * from 'swiper/types';