From feca95cbbf0b906744c4f04749dc6fb884aaec84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Jun 2023 10:40:49 +0000 Subject: [PATCH 1/4] Bump vite from 3.2.5 to 3.2.7 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.5 to 3.2.7. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v3.2.7/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v3.2.7/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- .../embla-carousel-playground-react/package.json | 2 +- .../embla-carousel-playground-vanilla/package.json | 2 +- yarn.lock | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/playgrounds/embla-carousel-playground-react/package.json b/playgrounds/embla-carousel-playground-react/package.json index f680c1dd1..337c4594d 100644 --- a/playgrounds/embla-carousel-playground-react/package.json +++ b/playgrounds/embla-carousel-playground-react/package.json @@ -19,6 +19,6 @@ "@types/react-dom": "^18.0.7", "@vitejs/plugin-react": "^2.2.0", "typescript": "^4.6.4", - "vite": "^3.2.0" + "vite": "^3.2.7" } } diff --git a/playgrounds/embla-carousel-playground-vanilla/package.json b/playgrounds/embla-carousel-playground-vanilla/package.json index 6db1c0738..3f73c5a7d 100644 --- a/playgrounds/embla-carousel-playground-vanilla/package.json +++ b/playgrounds/embla-carousel-playground-vanilla/package.json @@ -13,6 +13,6 @@ }, "devDependencies": { "typescript": "^4.6.4", - "vite": "^3.2.0" + "vite": "^3.2.7" } } diff --git a/yarn.lock b/yarn.lock index b3a8ce572..6882a9708 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7697,7 +7697,7 @@ __metadata: react-dom: ^18.2.0 react-router-dom: ^6.4.3 typescript: ^4.6.4 - vite: ^3.2.0 + vite: ^3.2.7 languageName: unknown linkType: soft @@ -7707,7 +7707,7 @@ __metadata: dependencies: embla-carousel: 8.0.0-rc07 typescript: ^4.6.4 - vite: ^3.2.0 + vite: ^3.2.7 languageName: unknown linkType: soft @@ -19708,9 +19708,9 @@ __metadata: languageName: node linkType: hard -"vite@npm:^3.2.0": - version: 3.2.5 - resolution: "vite@npm:3.2.5" +"vite@npm:^3.2.7": + version: 3.2.7 + resolution: "vite@npm:3.2.7" dependencies: esbuild: ^0.15.9 fsevents: ~2.3.2 @@ -19742,7 +19742,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: ad35b7008c2b62a167d1d1a82f0a0c60fa457733f1969e9eedf0b0077f67a7ac74b4c9477e75a397895150f09b6551f0c17841c5b05c34d9fe302bb0b5dc28a8 + checksum: 4c5883b721b6ec406419e61d0b3fae8528e80f8c2eb20c087c7b1b76daec3665a0a49c83cd8ac7fdda6089625094b70c6a132daa5edc650c515ddc9f5eed44f0 languageName: node linkType: hard From 5bb3e8dec891e823bff64934407a8410e1254480 Mon Sep 17 00:00:00 2001 From: David Jerleke Date: Tue, 6 Jun 2023 12:48:54 +0200 Subject: [PATCH 2/4] Deploy docs with v8.0.0-rc07. --- docs/404.html | 4 ++-- docs/404/index.html | 4 ++-- docs/_gatsby/slices/_gatsby-scripts-1.html | 4 ++-- docs/api/events/index.html | 18 +++++++++--------- docs/api/index.html | 6 +++--- docs/api/methods/index.html | 4 ++-- docs/api/options/index.html | 4 ++-- docs/api/plugins/index.html | 4 ++-- ...759b9d8d.js => app-dd66e4babdbdbf0ec4b3.js} | 6 +++--- ...=> app-dd66e4babdbdbf0ec4b3.js.LICENSE.txt} | 0 ....js.map => app-dd66e4babdbdbf0ec4b3.js.map} | 2 +- docs/chunk-map.json | 2 +- ...examples-static-mdx-871cf83dea12184bf7c6.js | 2 -- ...examples-static-mdx-ab4be5085b7bb4ff4286.js | 2 ++ ...les-static-mdx-ab4be5085b7bb4ff4286.js.map} | 2 +- docs/examples/index.html | 4 ++-- docs/examples/static/index.html | 4 ++-- docs/get-started/cdn/index.html | 4 ++-- docs/get-started/index.html | 4 ++-- docs/get-started/module/index.html | 4 ++-- docs/get-started/react/index.html | 4 ++-- docs/get-started/svelte/index.html | 4 ++-- docs/get-started/typescript/index.html | 4 ++-- docs/get-started/vue/index.html | 4 ++-- docs/guides/breakpoints/index.html | 4 ++-- docs/guides/index.html | 4 ++-- .../previous-and-next-buttons/index.html | 4 ++-- docs/guides/slide-container/index.html | 4 ++-- docs/guides/slide-gaps/index.html | 4 ++-- docs/guides/slide-sizes/index.html | 4 ++-- docs/index.html | 4 ++-- docs/page-data/app-data.json | 2 +- docs/page-data/sq/d/388772440.json | 2 +- docs/page-data/sq/d/4025401718.json | 2 +- docs/plugins/auto-height/index.html | 4 ++-- docs/plugins/autoplay/index.html | 4 ++-- docs/plugins/class-names/index.html | 4 ++-- docs/plugins/index.html | 4 ++-- docs/plugins/wheel-gestures/index.html | 4 ++-- docs/sitemap-0.xml | 2 +- ...=> webpack-runtime-0d7765fbbba621fff7a8.js} | 4 ++-- ...ebpack-runtime-0d7765fbbba621fff7a8.js.map} | 2 +- docs/webpack.stats.json | 2 +- 43 files changed, 82 insertions(+), 82 deletions(-) rename docs/{app-88e70f89db46759b9d8d.js => app-dd66e4babdbdbf0ec4b3.js} (99%) rename docs/{app-88e70f89db46759b9d8d.js.LICENSE.txt => app-dd66e4babdbdbf0ec4b3.js.LICENSE.txt} (100%) rename docs/{app-88e70f89db46759b9d8d.js.map => app-dd66e4babdbdbf0ec4b3.js.map} (99%) delete mode 100644 docs/component---src-templates-page-tsx-content-file-path-users-davidjerleke-sites-embla-carousel-packages-embla-carousel-docs-src-content-pages-examples-static-mdx-871cf83dea12184bf7c6.js create mode 100644 docs/component---src-templates-page-tsx-content-file-path-users-davidjerleke-sites-embla-carousel-packages-embla-carousel-docs-src-content-pages-examples-static-mdx-ab4be5085b7bb4ff4286.js rename docs/{component---src-templates-page-tsx-content-file-path-users-davidjerleke-sites-embla-carousel-packages-embla-carousel-docs-src-content-pages-examples-static-mdx-871cf83dea12184bf7c6.js.map => component---src-templates-page-tsx-content-file-path-users-davidjerleke-sites-embla-carousel-packages-embla-carousel-docs-src-content-pages-examples-static-mdx-ab4be5085b7bb4ff4286.js.map} (99%) rename docs/{webpack-runtime-4c7882dbed06dc3ebb6f.js => webpack-runtime-0d7765fbbba621fff7a8.js} (98%) rename docs/{webpack-runtime-4c7882dbed06dc3ebb6f.js.map => webpack-runtime-0d7765fbbba621fff7a8.js.map} (99%) diff --git a/docs/404.html b/docs/404.html index e700a8bd9..5799a5332 100644 --- a/docs/404.html +++ b/docs/404.html @@ -189,6 +189,6 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/404/index.html b/docs/404/index.html index 13a27f0ea..2184f8009 100644 --- a/docs/404/index.html +++ b/docs/404/index.html @@ -189,6 +189,6 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/_gatsby/slices/_gatsby-scripts-1.html b/docs/_gatsby/slices/_gatsby-scripts-1.html index 88e7ca3ff..b1cfe1bbd 100644 --- a/docs/_gatsby/slices/_gatsby-scripts-1.html +++ b/docs/_gatsby/slices/_gatsby-scripts-1.html @@ -2,6 +2,6 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/api/events/index.html b/docs/api/events/index.html index ad8b127df..9c1c3a93a 100644 --- a/docs/api/events/index.html +++ b/docs/api/events/index.html @@ -547,36 +547,36 @@ } } } -

Events

+

Events

Embla Carousel exposes custom events that can be hooked on to. Listening to events allows for extending the carousel.

Usage

You need an initialized carousel in order to make use of events. Events will only be fired during the lifecycle of a carousel and added event listeners will persist even when you hard reset the carousel with the reInit method.

Adding event listeners

After initializing a carousel, we're going to subscribe to the select event in the following example:

-
import EmblaCarousel from 'embla-carousel'
+
import EmblaCarousel from 'embla-carousel'
 const emblaApi = EmblaCarousel(emblaNode, { loop: true })
 const onSelect = (emblaApi, eventName) => {  console.log(`Embla just triggered ${eventName}!`)}
-emblaApi.on('select', onSelect)

Removing event listeners

In order to remove an event listener, you'll have to call the off method and make sure to pass the same callback reference you passed to the on method:

-
import EmblaCarousel from 'embla-carousel'
+
import EmblaCarousel from 'embla-carousel'
 const emblaApi = EmblaCarousel(emblaNode, { loop: true })
 const onSelect = (emblaApi, eventName) => {  console.log(`Embla just triggered ${eventName}!`)}
 const removeOnSelectListener = () => {  emblaApi.off('select', onSelect)}
-emblaApi.on('select', onSelect)