vue-draggable-resizable
Advanced tools
Comparing version 2.3.0 to 3.0.0-beta.1
100
package.json
{ | ||
"name": "vue-draggable-resizable", | ||
"version": "2.3.0", | ||
"version": "3.0.0-beta.1", | ||
"author": "Maurizio Bonani <maurizio.bonani@gmail.com>", | ||
"main": "dist/VueDraggableResizable.umd.min.js", | ||
"unpkg": "dist/VueDraggableResizable.umd.min.js", | ||
"private": false, | ||
"description": "Vue3 Component for resizable and draggable elements", | ||
"type": "module", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/VueDraggableResizable.umd.cjs", | ||
"module": "dist/VueDraggableResizable.js", | ||
"unpkg": "dist/VueDraggableResizable.umd.cjs", | ||
"browser": { | ||
"./sfc": "src/vue-draggable-resizable.vue" | ||
}, | ||
"private": false, | ||
"description": "Vue2 Component for resizable and draggable elements", | ||
"exports": { | ||
".": { | ||
"import": "./dist/VueDraggableResizable.js", | ||
"require": "./dist/VueDraggableResizable.umd.cjs" | ||
} | ||
}, | ||
"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 VueDraggableResizable ./src/index.js", | ||
"unit": "cross-env BABEL_ENV=test mocha-webpack --webpack-config=webpack.test.js tests/unit/specs/**/*.js", | ||
"unit-watch": "cross-env BABEL_ENV=test mocha-webpack --watch --webpack-config=webpack.test.js tests/unit/specs/**/*.js", | ||
"feature": "cross-env BABEL_ENV=test node_modules/karma/bin/karma start tests/feature/karma.conf.js --single-run", | ||
"feature-watch": "cross-env BABEL_ENV=test node_modules/karma/bin/karma start tests/feature/karma.conf.js", | ||
"test": "npm run unit && npm run feature", | ||
"storybook": "start-storybook -p 9001 -c .storybook", | ||
"gh-pages:clean": "rm -rf docs", | ||
"gh-pages:build": "build-storybook -c .storybook -o docs", | ||
"gh-pages:publish": "$(npm bin)/git-directory-deploy --directory docs", | ||
"gh-pages": "npm run gh-pages:clean && npm run gh-pages:build && npm run gh-pages:publish" | ||
"dev": "vite", | ||
"build": "vite build", | ||
"test": "vitest run", | ||
"test:ui": "vitest --ui", | ||
"test:coverage": "vitest run --coverage", | ||
"test:watch": "vitest", | ||
"cypress": "npx cypress open", | ||
"story:dev": "histoire dev", | ||
"story:build": "histoire build", | ||
"story:preview": "histoire preview" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.6.0", | ||
"@storybook/addon-notes": "^5.1.11", | ||
"@storybook/vue": "^5.1.11", | ||
"@vue/cli-plugin-babel": "^3.11.0", | ||
"@vue/cli-plugin-eslint": "^3.11.0", | ||
"@vue/cli-service": "^4.3.1", | ||
"@vue/eslint-config-standard": "^4.0.0", | ||
"@vue/test-utils": "^1.1.1", | ||
"babel-plugin-istanbul": "^5.2.0", | ||
"babel-preset-vue": "^2.0.2", | ||
"chai": "^4.1.2", | ||
"cross-env": "^5.2.1", | ||
"git-directory-deploy": "^1.5.1", | ||
"karma": "^5.0.1", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage": "^2.0.1", | ||
"karma-coverage-istanbul-reporter": "^2.1.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-webpack": "^4.0.2", | ||
"mocha": "^6.2.0", | ||
"mocha-webpack": "^2.0.0-beta.0", | ||
"sinon": "^7.4.2", | ||
"style-loader": "^1.0.0", | ||
"syn": "^0.14.1", | ||
"vue": "^2.5.21", | ||
"vue-template-compiler": "^2.5.21", | ||
"webpack": "^4.42.1" | ||
"@4tw/cypress-drag-drop": "^2.2.5", | ||
"@babel/core": "^7.18.6", | ||
"@histoire/plugin-vue": "^0.17.6", | ||
"@vitejs/plugin-vue": "^4.3.4", | ||
"@vitest/ui": "^0.15.1", | ||
"@vue/test-utils": "^2.2.7", | ||
"babel-loader": "^8.2.5", | ||
"cypress": "^13.6.2", | ||
"histoire": "^0.17.6", | ||
"jsdom": "^19.0.0", | ||
"vite": "^4.4.9", | ||
"vitest": "^0.28.4", | ||
"vue": "^3.2.25", | ||
"vue-loader": "^16.8.3" | ||
}, | ||
"files": [ | ||
"/dist/*", | ||
"/src/*", | ||
"*.json", | ||
"*.js" | ||
], | ||
"engines": { | ||
"node": ">= 4.0.0", | ||
"npm": ">= 3.0.0" | ||
"peerDependencies": { | ||
"vue": "^3.2.25" | ||
}, | ||
@@ -70,0 +54,0 @@ "repository": { |
<p align="center"><img src="https://rawgit.com/mauricius/vue-draggable-resizable/v1/docs/resources/logo.png" alt="logo"></p> | ||
<h1 align="center">VueDraggableResizable 2</h1> | ||
<h1 align="center">VueDraggableResizable 3</h1> | ||
@@ -8,3 +8,3 @@ [![Latest Version on NPM](https://img.shields.io/npm/v/vue-draggable-resizable.svg?style=flat-square)](https://npmjs.com/package/vue-draggable-resizable) | ||
> Vue2 Component for draggable and resizable elements. | ||
> Vue Component for draggable and resizable elements. | ||
@@ -45,4 +45,4 @@ If you are looking for the version 1 of the component, it is available on the [v1 branch](https://github.com/mauricius/vue-draggable-resizable/tree/v1). | ||
* `npm install` | ||
* `npm run storybook` | ||
* Visit [http://localhost:9001/](http://localhost:9001/) | ||
* `npm run story:dev` | ||
* Visit [http://localhost:6006/](http://localhost:6006/) | ||
@@ -58,12 +58,14 @@ --- | ||
Register the component | ||
Register the component globally | ||
```js | ||
import Vue from 'vue' | ||
// main.js | ||
import createApp from 'vue' | ||
import VueDraggableResizable from 'vue-draggable-resizable' | ||
// optionally import default styles | ||
import 'vue-draggable-resizable/dist/VueDraggableResizable.css' | ||
import App from '/src/App.vue' | ||
Vue.component('vue-draggable-resizable', VueDraggableResizable) | ||
const app = createApp(App) | ||
app.component('vue-draggable-resizable', VueDraggableResizable) | ||
``` | ||
@@ -87,2 +89,5 @@ | ||
export default { | ||
components: { | ||
'vue-draggable-resizable': VueDraggableResizable | ||
}, | ||
data: function () { | ||
@@ -376,3 +381,3 @@ return { | ||
Define the zIndex of the element. | ||
Define the z-index of the element. | ||
@@ -622,3 +627,3 @@ ```html | ||
The component also provides [named slots](https://vuejs.org/v2/guide/components-slots.html#Named-Slots) for each handle, so you can use your markup inside each one. | ||
The component also provides [named slots](https://vuejs.org/guide/components/slots.html#named-slots) for each handle, so you can use your markup inside each one. | ||
@@ -639,3 +644,3 @@ ## Thanks | ||
# serve with hot reload at localhost:8080 | ||
npm run serve | ||
npm run dev | ||
@@ -645,10 +650,10 @@ # distribution build | ||
# build the storybook docs into gh-pages | ||
npm run gh-pages:build | ||
# build the histoire docs | ||
npm run story:build | ||
# run tests | ||
npm run tests | ||
npm run test | ||
# run storybook at localhost:9001 | ||
npm run storybook | ||
# run histoire at localhost:6006 | ||
npm run story:dev | ||
``` | ||
@@ -655,0 +660,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14
656
Yes
59324
1
7
606
2
2