Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@takuma-ru/vue-swipe-modal

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@takuma-ru/vue-swipe-modal - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0-alpha.0

components.d.ts

100

package.json
{
"name": "@takuma-ru/vue-swipe-modal",
"version": "2.0.5",
"version": "2.1.0-alpha.0",
"private": false,
"main": "dist/swipemodal.umd.js",
"unpkg": "./dist/swipemodal.min.js",
"module": "dist/swipemodal.esm.js",
"browser": {
"./sfc": "src/Swipemodal.vue"
},
"description": "",
"license": "MIT",
"author": "takuma-ru <kcattdev@gmail.com> (https://github.com/takuma-ru/)",
"files": [
"dist"
],
"keywords": [

@@ -29,5 +21,8 @@ "vue",

],
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:takuma-ru/vue_SwipeModal.git"
"url": "git@github.com:takuma-ru/vue_SwipeModal.git"
},

@@ -39,43 +34,58 @@ "bugs": {

"homepage": "https://vue-swipe-modal.vercel.app/",
"main": "dist/swipe-modal.ssr.js",
"browser": "dist/swipe-modal.esm.js",
"module": "dist/swipe-modal.esm.js",
"unpkg": "dist/swipe-modal.min.js",
"types": "components.d.ts",
"files": [
"dist/*",
"components.d.ts",
"src/**/*.vue"
],
"sideEffects": false,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"build-bundle": "vue-cli-service build --target lib --name swipemodal ./src/library-main.js"
"prebuild:vue2": "vue-demi-switch 2",
"build:vue2": "cross-env VUE_VERSION=2 NODE_ENV=production rollup --config build/rollup.config.js",
"prebuild:vue3": "vue-demi-switch 3",
"build:vue3": "cross-env VUE_VERSION=3 NODE_ENV=production rollup --config build/rollup.config.js",
"publish:vue2": "yarn build:vue2 && npm publish --access=public",
"publish:vue3": "yarn build:vue3 && npm publish --access=public"
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
"vue-demi": "latest"
},
"devDependencies": {
"fibers": "^5.0.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11",
"sass": "^1.48.0",
"sass-loader": "^10.1.1"
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.7",
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-replace": "^4.0.0",
"@vue/compiler-sfc": "^3.0.0",
"@vue/composition-api": "^1.6.1",
"cross-env": "^7.0.3",
"minimist": "^1.2.5",
"postcss": "^8.0.0",
"rollup": "^2.36.1",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-scss": "3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^6.0.0",
"rollup-plugin-vue2": "npm:rollup-plugin-vue@^5.0.0",
"typescript": "^4.0.0",
"vue": "^2.6.0",
"vue-template-compiler": "^2.6.12",
"vue3": "npm:vue@3"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
"vue": "^2.0.0 || ^3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
}
}
# @takuma-ru/vue-swpie-modal
## WERNING
I want to support vue2 and vue3 but I can't~!
It may not work properly for the time being: ....
## Description

@@ -12,11 +16,15 @@ Modal window that can be swiped to close.(Swipeable Bottom Sheet)

1. Install
```md
npm i @takuma-ru/vue-swpie-modal
```
```md
yarn add @takuma-ru/vue-swpie-modal
```
- for Vue3
```md
yarn add @takuma-ru/vue-swipe-modal@^3
```
- for Vue2
```md
yarn add @takuma-ru/vue-swipe-modal@~2
```
2. Come on, let's use it.
```vue
<!-- for Vue3 -->
<template>

@@ -28,5 +36,4 @@ <div>

v-model="modal"
contents-height="80vh"
contents-width="100%"
border-top-radius="20px"
contents-height="50vh"
border-top-radius="16px"
>

@@ -38,19 +45,7 @@ <h1>contents</h1>

<script>
import swipeModal from 'nekoo_vue_swipemodal'
import 'nekoo_vue_swipemodal/dist/swipemodal.css'
<script lang="ts" setup>
import { ref } from 'vue'
import swipeModal from '@takuma-ru/vue-swpie-modal'
export default {
name: 'App',
data() {
return {
modal: false
}
},
components: {
swipeModal
}
}
const modal = ref(false)
</script>

@@ -57,0 +52,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc