[
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\nindent_style = space\nindent_size = 2\ntab_width = 2\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n"
  },
  {
    "path": ".github/workflows/publish.yml",
    "content": "# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created\n# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages\n# Fork from: https://github.com/actions/starter-workflows/blob/master/ci/npm-publish.yml\n\nname: Publish\n\non:\n  release:\n    types: [created]\n  push:\n    tags:\n      - 'v*'\n\njobs:\n  publish-npm:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: 14\n          registry-url: https://registry.npmjs.org/\n      - run: npm publish\n        env:\n          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "content": "# https://github.com/actions/create-release\nname: Release\n\non:\n  push:\n    tags:\n      - 'v*'\n\njobs:\n  build:\n    name: Create Release\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@master\n\n      - name: Create Release\n        id: create_release\n        uses: actions/create-release@latest\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          tag_name: ${{ github.ref }}\n          release_name: ${{ github.ref }}\n          draft: false\n          prerelease: false\n"
  },
  {
    "path": ".gitignore",
    "content": "# Logs\nlogs\n*.log\nnpm-debug.log\nselenium-debug.log\nnpm-debug.log*\n\n# output\ndist\ndist/*\n\n# System\n.DS_Store\n\n# Optional npm cache directory\n.npm\n# node-waf configuration\n.lock-wscript\n\n# Package\npackage-lock.json\n\n# Test\ntests/unit/coverage\ntests/e2e/reports\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# Dependency directories\nnode_modules\nnode_modules/\n\n.vscode\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "\n# Changelog\nAll notable changes to this project will be documented in this file.\n\n### 5.0.0 (2022-03-19) ⚠️\n\n- Deprecated component\n- Bridge to `swiper/vue`\n- Upgrade to Vue3\n\n### 4.1.1 (2020-04-21)\n\n**Fixed**\n- [#632](https://github.com/surmon-china/vue-awesome-swiper/issues/632) Slide component auto update when `SwiperComponent.autuUpdate`\n\n### 4.1.0 (2020-03-29)\n\n**Update**\n- Upgrade abc-factory\n- Update test spec\n- Vue SFC component to `render`\n- Move `types` to `dist`\n\n**Features**\n- Support Custom build with Swiper\n\n**Fixed**\n- [#422](https://github.com/surmon-china/vue-awesome-swiper/issues/422)\n- [#527](https://github.com/surmon-china/vue-awesome-swiper/issues/527)\n- [#621](https://github.com/surmon-china/vue-awesome-swiper/issues/621)\n\n### [4.0.4](https://github.com/surmon-china/vue-awesome-swiper/compare/v4.0.3...v4.0.4) (2020-03-22)\n\n**Fixed**\n- Event `click-slide` condition with `!swiper.destroyed`\n\n### [4.0.3](https://github.com/surmon-china/vue-awesome-swiper/compare/v4.0.2...v4.0.3) (2020-03-21)\n\n**Fixed**\n- Directive instancing when `swiper.destroyed`\n\n### [4.0.1](https://github.com/surmon-china/vue-awesome-swiper/compare/v4.0.0...v4.0.1) (2020-03-20)\n\n**Fixed**\n- Publish CI scripts `build`\n\n### [4.0.0-rc.1](https://github.com/surmon-china/vue-awesome-swiper/compare/v4.0.0-rc.0...v4.0.0-rc.1) (2020-03-20)\n\n**Fixed**\n- `@clicks-lide` get event path from `event.composedPath()` ~~`event.path`~~\n\n**Update**\n- Rename `update` to `updateSwiper`\n- Rename `destroy` to `destroySwiper`\n- Rename `autoReLoop` to `autoReLoopSwiper`\n\n### [4.0.0-rc.0](https://github.com/surmon-china/vue-awesome-swiper/compare/v3.1.3...v4.0.0-rc.0) (2020-03-19)\n\n**Breaking change**\n- Remove vue1 support\n- Remove bower support\n- Upgrade to Swiper5\n- Move Swiper dependencie to `peerDependencies`\n- Replace Swiper instance name to `$swiper`\n- Merge SSR (Directive) file to the lib core\n- Update the component name\n  - `swiper` to `Swiper`\n  - `swiperSlide` to `SwiperSlide`\n- Does not merge options object\n\n**Removed**\n- Move examples to [github.surmon.me](https://github.surmon.me/vue-awesome-swiper/)\n\n**Features**\n- Add `@click-slide` event (For `loop` mode)\n- Add `directive`\n- Add prop `autoUpdate`\n- Add prop `autoDestroy`\n- Add prop `deleteInstanceOnDestroy`\n- Add prop `cleanupStylesOnDestroy` [PR #388](https://github.com/surmon-china/vue-awesome-swiper/pull/388)\n\n**Fixed**\n\nLoop mode:\n- [#593](https://github.com/surmon-china/vue-awesome-swiper/issues/593)\n- [#544](https://github.com/surmon-china/vue-awesome-swiper/issues/544)\n- [PR #545](https://github.com/surmon-china/vue-awesome-swiper/pull/545)\n\nDestory:\n- [PR #593](https://github.com/surmon-china/vue-awesome-swiper/pull/550)\n- [PR #341](https://github.com/surmon-china/vue-awesome-swiper/pull/341)\n- [PR #388](https://github.com/surmon-china/vue-awesome-swiper/pull/388)\n- [#340](https://github.com/surmon-china/vue-awesome-swiper/issues/340)\n\nEvent:\n- [PR #377](https://github.com/surmon-china/vue-awesome-swiper/pull/377)\n\n### v3.1.3\n- fixed bug with swiper inside transition. #276\n\n### v3.1.2\n- update webpack config and rebuild.\n\n### v3.1.1\n- fix emit event in browser\n\n### v3.1.0\n- fix loop bug\n- [bind swiper events to vuejs events](https://github.com/surmon-china/vue-awesome-swiper/pull/238)\n\n### v3.0.7\n- remove reloop function\n- update ssr example\n\n### v3.0.5\n- update swiper version to v4.0.7\n\n### v3.0.4\n- fix object assign in spa\n\n### v3.0.3\n- fix reLoop method [#205](https://github.com/surmon-china/vue-awesome-swiper/issues/205)\n\n### v3.0.2\n- fix ssr build bug\n\n### v3.0.1\n- fix the es module export issue\n\n### v3.0.0\n\n#### use\n- add global default options\n- update the options assign logic\n- Update to [Swiper4](http://www.swiper.com.cn)\n\n#### project\n- add brower support\n- add test scripts\n- update babel and webpack configs\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2020 Surmon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<p></p>\n<p align=\"center\">\n  <a href=\"https://swiperjs.com\" target=\"_blank\">\n    <img width=\"77px\" src=\"/presses/swiper-logo.svg\" />\n  </a>\n  <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>\n  <a href=\"https://vuejs.org\" target=\"_blank\">\n    <img width=\"79px\" src=\"/presses/vue-logo.png\" />\n  </a>\n</p>\n\n# vue-awesome-swiper\n[![vue](https://img.shields.io/badge/MADE%20WITH-VUE-42a97a?style=for-the-badge&labelColor=35495d)](https://vuejs.org)\n&nbsp;\n[![GitHub stars](https://img.shields.io/github/stars/surmon-china/vue-awesome-swiper.svg?style=for-the-badge)](https://github.com/surmon-china/vue-awesome-swiper/stargazers)\n&nbsp;\n[![GitHub issues](https://img.shields.io/github/issues/surmon-china/vue-awesome-swiper.svg?style=for-the-badge)](https://github.com/surmon-china/vue-awesome-swiper/issues)\n&nbsp;\n[![npm](https://img.shields.io/npm/v/vue-awesome-swiper?color=c7343a&label=npm&style=for-the-badge)](https://www.npmjs.com/package/vue-awesome-swiper)\n&nbsp;\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=for-the-badge)](/LICENSE)\n\n\n**[Swiper](https://swiperjs.com)** component for Vue.\n\n---\n\n### DEPRECATED ⚠️\n\nThe **vue-awesome-swiper** project has been **deprecated** and superseded by [Swiper Vue component](https://swiperjs.com/vue), a TypeScript friendly project which is a recent official release provided by [Swiper](https://swiperjs.com/). For better stability, please migrate as soon as possible.\n\n**vue-awesome-swiper** released its last version **v5** for (bridge) transition. It's worth noting that APIs in this version are completely **NOT compatible** with that of previous version, it only [re-exports](/index.js) [`swiper/vue`](https://swiperjs.com/vue) and **only supports Vue3**, which means only functions of `swiper/vue` are available. For example, the following code is fully equivalent in `vue-awesome-swiper@5`. And if you want to check update catelog of Swiper API, please refer to [Swiper Changelog](https://swiperjs.com/changelog).\n\n```ts\nimport { Swiper, SwiperSlide, /* rest swiper/vue API... */ } from 'vue-awesome-swiper'\n// exactly equivalent to\nimport { Swiper, SwiperSlide, /* rest swiper/vue API... */ } from 'swiper/vue'\n```\n\nIf you need to use older versions of vue-awesome-swiper, you can find the corresponding version number below. Feel free to fork our code and maintain your own copy.\n\n### Legacy versions\n- Swiper 5-6 [vue-awesome-swiper@4.1.1](https://github.com/surmon-china/vue-awesome-swiper/tree/v4.1.1) (Vue2)\n- Swiper 4.x [vue-awesome-swiper@3.1.3](https://github.com/surmon-china/vue-awesome-swiper/tree/v3.1.3) (Vue2)\n- Swiper 3.x [vue-awesome-swiper@2.6.7](https://github.com/surmon-china/vue-awesome-swiper/tree/v2.6.7) (Vue2)\n\n---\n\n### Documentation\n- [Examples (Vue3)](https://github.surmon.me/vue-awesome-swiper)\n- [Examples (Vue2)](https://v1.github.surmon.me/vue-awesome-swiper)\n- [Swiper API](https://swiperjs.com/swiper-api)\n- [Swiper Vue (3)](https://swiperjs.com/vue)\n- [Swiper issues](https://github.com/nolimits4web/swiper/issues?q=is%3Aissue+is%3Aopen+label%3AVue)\n- [Swiper discussions](https://github.com/nolimits4web/swiper/discussions)\n\n### How to use\n\n#### Install\n\n``` bash\nnpm install swiper vue-awesome-swiper --save\n```\n\n```bash\nyarn add swiper vue-awesome-swiper\n```\n\n#### Local component\n\n```vue\n<template>\n  <swiper :modules=\"modules\" :pagination=\"{ clickable: true }\">\n    <swiper-slide>Slide 1</swiper-slide>\n    <swiper-slide>Slide 2</swiper-slide>\n    <swiper-slide>Slide 3</swiper-slide>\n  </swiper>\n</template>\n\n<script>\n  import SwiperClass, { Pagination } from 'swiper'\n  import { Swiper, SwiperSlide } from 'vue-awesome-swiper'\n\n  // import swiper module styles\n  import 'swiper/css'\n  import 'swiper/css/pagination'\n  // more module style...\n\n  export default {\n    components: {\n      Swiper,\n      SwiperSlide\n    },\n    setup() {\n      return {\n        modules: [Pagination]\n      }\n    }\n  }\n</script>\n```\n\n#### Global component\n\n```javascript\nimport { createApp } from 'vue'\nimport SwiperClass, { /* swiper modules... */ } from 'swiper'\nimport VueAwesomeSwiper from 'vue-awesome-swiper'\n\n// import swiper module styles\nimport 'swiper/css'\n// more module style...\n\n// use swiper modules\nSwiperClass.use([/* swiper modules... */])\n\nconst app = createApp()\napp.use(VueAwesomeSwiper)\n```\n\n### Component API\n\n```html\n<!-- All options and events of the original Swiper are supported -->\n<swiper\n  :modules=\"...\"\n  :allow-touch-move=\"false\"\n  :slides-per-view=\"1\"\n  :autoplay=\"{ delay: 3500, disableOnInteraction: false }\"\n  @swiper=\"...\"\n  @slide-change=\"...\"\n  @transition-start=\"...\"\n  ...\n>\n  <template #container-start><span>Container start</span></template>\n  <template #wrapper-start><span>Wrapper start</span></template>\n  <swiper-slide>Slide 1<swiper-slide>\n  <swiper-slide v-slot=\"{ isActive }\">Slide 2 {{ isActive }}<swiper-slide>\n  <swiper-slide>Slide 3<swiper-slide>\n  <template #wrapper-end><span>Wrapper end</span></template>\n  <template #container-end><span>Container end</span></template>\n</swiper>\n```\n\n### Changelog\n\nDetailed changes for each release are documented in the [release notes](/CHANGELOG.md).\n\n### License\n\nLicensed under the [MIT](/LICENSE) License.\n\n"
  },
  {
    "path": "index.d.ts",
    "content": "/**\n * @file vue-awesome-swiper\n * @author Surmon <https://github.com/surmon-china>\n */\n\nimport type { App } from 'vue';\nimport { Swiper, SwiperSlide } from 'swiper/vue';\n\nexport * from 'swiper/vue';\n\ndeclare const _default: {\n  Swiper: typeof Swiper;\n  SwiperSlide: typeof SwiperSlide;\n  install(app: App): void;\n};\n\nexport default _default;\n"
  },
  {
    "path": "index.js",
    "content": "/**\n * @file vue-awesome-swiper\n * @author Surmon <https://github.com/surmon-china>\n */\n\nimport { Swiper, SwiperSlide } from 'swiper/vue';\nexport * from 'swiper/vue';\nexport default {\n  Swiper: Swiper,\n  SwiperSlide: SwiperSlide,\n  install(app) {\n    app.component('Swiper', Swiper);\n    app.component('SwiperSlide', SwiperSlide);\n  }\n};\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"vue-awesome-swiper\",\n  \"description\": \"Swiper component for Vue\",\n  \"version\": \"5.0.0\",\n  \"author\": \"Surmon\",\n  \"keywords\": [\n    \"vue swiper\",\n    \"vue awesome swiper\",\n    \"vue carrousel\",\n    \"carrousel\",\n    \"swiper\"\n  ],\n  \"license\": \"MIT\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/surmon-china/vue-awesome-swiper\"\n  },\n  \"bugs\": \"https://github.com/surmon-china/vue-awesome-swiper/issues\",\n  \"homepage\": \"https://github.surmon.me/vue-awesome-swiper\",\n  \"type\": \"module\",\n  \"types\": \"index.d.ts\",\n  \"module\": \"index.js\",\n  \"browser\": \"index.js\",\n  \"jsdelivr\": \"index.js\",\n  \"unpkg\": \"index.js\",\n  \"main\": \"index.js\",\n  \"jspm\": {\n    \"main\": \"index.js\",\n    \"registry\": \"npm\",\n    \"format\": \"esm\"\n  },\n  \"files\": [\n    \"index.d.ts\",\n    \"index.js\"\n  ],\n  \"scripts\": {\n    \"release\": \". ./scripts/release.sh\"\n  },\n  \"peerDependencies\": {\n    \"swiper\": \"^7.0.0  || ^8.0.0\",\n    \"vue\": \"3.x\"\n  },\n  \"devDependencies\": {\n    \"swiper\": \"^8.0.0\",\n    \"vue\": \"^3.2.31\",\n    \"typescript\": \"^4.5.4\"\n  }\n}\n"
  },
  {
    "path": "scripts/release.sh",
    "content": "#!/bin/sh\n\nset -e\n\nPKG_VERSION=$(jq -r '.version' package.json)\n\ngit fetch origin v\"$PKG_VERSION\" || {\n  npx standard-version --skip.changelog --skip.commit -a --release-as \"$PKG_VERSION\"\n  git push --follow-tags origin main\n}\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"module\": \"esnext\",\n    \"target\": \"ES6\",\n    \"lib\": [\"ESNext\"],\n    \"strict\": true,\n    \"esModuleInterop\": true,\n    \"moduleResolution\": \"node\",\n    \"declaration\": true,\n    \"skipLibCheck\": true,\n    \"noUnusedLocals\": true,\n    \"noUnusedParameters\": true,\n    \"noImplicitReturns\": true,\n    \"outDir\": \"dist\"\n  }\n}\n"
  }
]