diff --git a/packages/vue-moveable/package.json b/packages/vue-moveable/package.json index efb592b80..29b2e6e2a 100755 --- a/packages/vue-moveable/package.json +++ b/packages/vue-moveable/package.json @@ -1,6 +1,6 @@ { "name": "vue-moveable", - "version": "2.0.0-beta.83", + "version": "2.0.0-beta.84", "description": "A Vue Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.", "types": "declaration/index.d.ts", "main": "dist/moveable.cjs.js", @@ -60,7 +60,7 @@ "moveable": "~0.51.1" }, "devDependencies": { - "@daybrush/builder": "^0.2.4", + "@daybrush/builder": "0.1.2", "@vue/cli-plugin-typescript": "^3.12.0", "@vue/cli-service": "^3.12.0", "rollup-plugin-vue": "^5.1.9", @@ -68,5 +68,9 @@ "typescript": "^4.8 <4.9", "vue": "^2.6.11", "vue-template-compiler": "^2.6.11" - } + }, + "nohoist": [ + "**/@daybrush/builder", + "**/@daybrush/builder/**" + ] } diff --git a/packages/vue-moveable/rollup.config.js b/packages/vue-moveable/rollup.config.js index 9e5e17c10..a909a1a43 100644 --- a/packages/vue-moveable/rollup.config.js +++ b/packages/vue-moveable/rollup.config.js @@ -8,7 +8,10 @@ const defaultOptions = { external: true, plugins: [ vuePlugin(), - ] + ], + outputOptions: { + interop: "auto", + }, }; module.exports = buildHelper([ { diff --git a/yarn.lock b/yarn.lock index 3a8b5f30a..6d85a3fe1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2728,6 +2728,21 @@ glob "^8.0.3" tslib "^2.4.0" +"@daybrush/builder@0.1.2": + version "0.1.2" + resolved "https://registry.npmjs.org/@daybrush/builder/-/builder-0.1.2.tgz#1298a1fff8c49192658f689f426fcee4a93b509b" + integrity sha512-Yk+lZLFRPGFsKLKjiLwzSYlF83Bav+B8PhSsUsvhVyl/f30hjOS/lM3sdCF8WI9lWWcCG/XpNUf/O16qDvLKqQ== + dependencies: + "@daybrush/rollup-plugin-prototype-minify" "^1.1.2" + rollup "^1.7.4" + rollup-plugin-commonjs "^9.3.4" + rollup-plugin-node-resolve "^4.0.1" + rollup-plugin-prototype-minify "^1.1.0" + rollup-plugin-replace "^2.1.1" + rollup-plugin-typescript "^1.0.1" + rollup-plugin-uglify "^6.0.2" + rollup-plugin-visualizer "^1.1.0" + "@daybrush/builder@^0.2.4": version "0.2.4" resolved "https://registry.npmjs.org/@daybrush/builder/-/builder-0.2.4.tgz#27f68fc40d447baa6f32ec74dda7f2fbf5c85a69" @@ -2803,6 +2818,13 @@ npmlog "6.0.2" sync-exec "^0.6.2" +"@daybrush/rollup-plugin-prototype-minify@^1.1.2": + version "1.1.2" + resolved "https://registry.npmjs.org/@daybrush/rollup-plugin-prototype-minify/-/rollup-plugin-prototype-minify-1.1.2.tgz#85f7506f67125d2aca6a0f100e90c202205b4df8" + integrity sha512-mrIzM0unFQ6jXv/jJtHiwmQg/2zF4GsuEyFiKd3G9Wl26gMM8b4H55wMzAXRzBTnZLVEagTz4MvNVO758uZf8A== + dependencies: + prototype-minify "^1.0.0" + "@daybrush/tester@^0.1.3": version "0.1.3" resolved "https://registry.npmjs.org/@daybrush/tester/-/tester-0.1.3.tgz" @@ -5825,7 +5847,7 @@ dependencies: "@rollup/pluginutils" "^5.0.1" -"@rollup/plugin-node-resolve@^15.0.0", "@rollup/plugin-node-resolve@^15.0.1": +"@rollup/plugin-node-resolve@^15.0.0": version "15.1.0" resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.1.0.tgz#9ffcd8e8c457080dba89bb9fcb583a6778dc757e" integrity sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA== @@ -5837,6 +5859,18 @@ is-module "^1.0.0" resolve "^1.22.1" +"@rollup/plugin-node-resolve@^15.0.1": + version "15.2.1" + resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.1.tgz#a15b14fb7969229e26a30feff2816d39eff503f0" + integrity sha512-nsbUg588+GDSu8/NS8T4UAshO6xeaOfINNuXeVHcKV02LJtoRaM1SiOacClw4kws1SFiNhdLGxlbMY9ga/zs/w== + dependencies: + "@rollup/pluginutils" "^5.0.1" + "@types/resolve" "1.20.2" + deepmerge "^4.2.2" + is-builtin-module "^3.2.1" + is-module "^1.0.0" + resolve "^1.22.1" + "@rollup/plugin-replace@^5.0.1": version "5.0.2" resolved "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.2.tgz#45f53501b16311feded2485e98419acb8448c61d" @@ -8641,7 +8675,7 @@ acorn@^6.0.1, acorn@^6.0.5, acorn@^6.1.1, acorn@^6.4.1: resolved "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz" integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ== -acorn@^7.1.1, acorn@^7.4.0, acorn@^7.4.1: +acorn@^7.1.0, acorn@^7.1.1, acorn@^7.4.0, acorn@^7.4.1: version "7.4.1" resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== @@ -13951,7 +13985,7 @@ estree-util-visit@^1.0.0: "@types/estree-jsx" "^1.0.0" "@types/unist" "^2.0.0" -estree-walker@^0.6.1: +estree-walker@^0.6.0, estree-walker@^0.6.1: version "0.6.1" resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz" integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== @@ -18833,7 +18867,7 @@ jest-watcher@^29.0.0, jest-watcher@^29.0.3: jest-util "^29.0.3" string-length "^4.0.1" -jest-worker@^24.6.0, jest-worker@^24.9.0: +jest-worker@^24.0.0, jest-worker@^24.6.0, jest-worker@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz" integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== @@ -20072,7 +20106,7 @@ magic-string@0.26.7: dependencies: sourcemap-codec "^1.4.8" -magic-string@^0.25.7: +magic-string@^0.25.2, magic-string@^0.25.7: version "0.25.9" resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz" integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== @@ -22311,7 +22345,7 @@ opener@^1.5.1: resolved "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz" integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== -opn@^5.5.0: +opn@^5.4.0, opn@^5.5.0: version "5.5.0" resolved "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz" integrity sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA== @@ -24016,7 +24050,7 @@ protoduck@^4.0.0: dependencies: genfun "^4.0.1" -prototype-minify@^1.1.0: +prototype-minify@^1.0.0, prototype-minify@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/prototype-minify/-/prototype-minify-1.1.0.tgz" integrity sha512-xsxG/Bh06Y0keIM/DNsOnX0lFuPVrhl7v48FxEHg8xCAjPjjoI2EruVdJbzfYHCGqf8HqD4JI3s7gsWZ392x9w== @@ -25389,6 +25423,16 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" +rollup-plugin-commonjs@^9.3.4: + version "9.3.4" + resolved "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.3.4.tgz#2b3dddbbbded83d45c36ff101cdd29e924fd23bc" + integrity sha512-DTZOvRoiVIHHLFBCL4pFxOaJt8pagxsVldEXBOn6wl3/V21wVaj17HFfyzTsQUuou3sZL3lEJZVWKPFblJfI6w== + dependencies: + estree-walker "^0.6.0" + magic-string "^0.25.2" + resolve "^1.10.0" + rollup-pluginutils "^2.6.0" + rollup-plugin-css-bundle@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/rollup-plugin-css-bundle/-/rollup-plugin-css-bundle-1.0.4.tgz" @@ -25397,6 +25441,16 @@ rollup-plugin-css-bundle@^1.0.4: fs-extra "^5.0.0" rollup-pluginutils "^2.0.1" +rollup-plugin-node-resolve@^4.0.1: + version "4.2.4" + resolved "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.4.tgz#7d370f8d6fd3031006a0032c38262dd9be3c6250" + integrity sha512-t/64I6l7fZ9BxqD3XlX4ZeO6+5RLKyfpwE2CiPNUKa+GocPlQhf/C208ou8y3AwtNsc6bjSk/8/6y/YAyxCIvw== + dependencies: + "@types/resolve" "0.0.8" + builtin-modules "^3.1.0" + is-module "^1.0.0" + resolve "^1.10.0" + rollup-plugin-node-resolve@^5.2.0: version "5.2.0" resolved "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz" @@ -25432,6 +25486,14 @@ rollup-plugin-react-compat@^0.1.1: preact-compat "^3.19.0" rollup-plugin-node-resolve "^5.2.0" +rollup-plugin-replace@^2.1.1: + version "2.2.0" + resolved "https://registry.npmjs.org/rollup-plugin-replace/-/rollup-plugin-replace-2.2.0.tgz#f41ae5372e11e7a217cde349c8b5d5fd115e70e3" + integrity sha512-/5bxtUPkDHyBJAKketb4NfaeZjL5yLZdeUihSfbF2PQMz+rSTEb8ARKoOl3UBT4m7/X+QOXJo3sLTcq+yMMYTA== + dependencies: + magic-string "^0.25.2" + rollup-pluginutils "^2.6.0" + rollup-plugin-typescript2@^0.34.1: version "0.34.1" resolved "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.34.1.tgz#c457f155a71d133c142689213fce78694e30d0be" @@ -25443,6 +25505,34 @@ rollup-plugin-typescript2@^0.34.1: semver "^7.3.7" tslib "^2.4.0" +rollup-plugin-typescript@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/rollup-plugin-typescript/-/rollup-plugin-typescript-1.0.1.tgz#86565033b714c3d1f3aba510aad3dc519f7091e9" + integrity sha512-rwJDNn9jv/NsKZuyBb/h0jsclP4CJ58qbvZt2Q9zDIGILF2LtdtvCqMOL+Gq9IVq5MTrTlHZNrn8h7VjQgd8tw== + dependencies: + resolve "^1.10.0" + rollup-pluginutils "^2.5.0" + +rollup-plugin-uglify@^6.0.2: + version "6.0.4" + resolved "https://registry.npmjs.org/rollup-plugin-uglify/-/rollup-plugin-uglify-6.0.4.tgz#65a0959d91586627f1e46a7db966fd504ec6c4e6" + integrity sha512-ddgqkH02klveu34TF0JqygPwZnsbhHVI6t8+hGTcYHngPkQb5MIHI0XiztXIN/d6V9j+efwHAqEL7LspSxQXGw== + dependencies: + "@babel/code-frame" "^7.0.0" + jest-worker "^24.0.0" + serialize-javascript "^2.1.2" + uglify-js "^3.4.9" + +rollup-plugin-visualizer@^1.1.0: + version "1.1.1" + resolved "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-1.1.1.tgz#454ae0aed23845407ebfb81cc52114af308d6d90" + integrity sha512-7xkSKp+dyJmSC7jg2LXqViaHuOnF1VvIFCnsZEKjrgT5ZVyiLLSbeszxFcQSfNJILphqgAEmWAUz0Z4xYScrRw== + dependencies: + mkdirp "^0.5.1" + opn "^5.4.0" + source-map "^0.7.3" + typeface-oswald "0.0.54" + rollup-plugin-visualizer@^5.8.3: version "5.9.2" resolved "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.2.tgz#f1aa2d9b1be8ebd6869223c742324897464d8891" @@ -25468,20 +25558,36 @@ rollup-plugin-vue@^5.1.9: source-map "0.7.3" vue-runtime-helpers "^1.1.2" -rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2: +rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.5.0, rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2: version "2.8.2" resolved "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz" integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== dependencies: estree-walker "^0.6.1" -rollup@*, rollup@^3.0.0, rollup@^3.21.0, rollup@^3.7.1: +rollup@*, rollup@^3.0.0, rollup@^3.21.0: version "3.25.3" resolved "https://registry.npmjs.org/rollup/-/rollup-3.25.3.tgz#f9a8986f0f244bcfde2208da91ba46b8fd252551" integrity sha512-ZT279hx8gszBj9uy5FfhoG4bZx8c+0A1sbqtr7Q3KNWIizpTdDEPZbV2xcbvHsnFp4MavCQYZyzApJ+virB8Yw== optionalDependencies: fsevents "~2.3.2" +rollup@^1.7.4: + version "1.32.1" + resolved "https://registry.npmjs.org/rollup/-/rollup-1.32.1.tgz#4480e52d9d9e2ae4b46ba0d9ddeaf3163940f9c4" + integrity sha512-/2HA0Ec70TvQnXdzynFffkjA6XN+1e2pEv/uKS5Ulca40g2L7KuOE3riasHoNVHOsFD5KKZgDsMk1CP3Tw9s+A== + dependencies: + "@types/estree" "*" + "@types/node" "*" + acorn "^7.1.0" + +rollup@^3.7.1: + version "3.29.2" + resolved "https://registry.npmjs.org/rollup/-/rollup-3.29.2.tgz#cbc76cd5b03b9f9e93be991d23a1dff9c6d5b740" + integrity sha512-CJouHoZ27v6siztc21eEQGo0kIcE5D1gVPA571ez0mMYb25LGYGKnVNXpEj5MGlepmDWGXNjDB5q7uNiPHC11A== + optionalDependencies: + fsevents "~2.3.2" + rsvp@^4.8.4: version "4.8.5" resolved "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz" @@ -25831,6 +25937,11 @@ serialize-javascript@^1.4.0: resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz" integrity sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A== +serialize-javascript@^2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61" + integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== + serialize-javascript@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz" @@ -27455,9 +27566,9 @@ terser@^4.1.2, terser@^4.6.3: source-map-support "~0.5.12" terser@^5.15.1: - version "5.18.1" - resolved "https://registry.npmjs.org/terser/-/terser-5.18.1.tgz#6d8642508ae9fb7b48768e48f16d675c89a78460" - integrity sha512-j1n0Ao919h/Ai5r43VAnfV/7azUYW43GPxK7qSATzrsERfW7+y2QW9Cp9ufnRF5CQUWbnLSo7UJokSWCqg4tsQ== + version "5.19.4" + resolved "https://registry.npmjs.org/terser/-/terser-5.19.4.tgz#941426fa482bf9b40a0308ab2b3cd0cf7c775ebd" + integrity sha512-6p1DjHeuluwxDXcuT9VR8p64klWJKo1ILiy19s6C9+0Bh2+NWTX6nD9EPppiER4ICkHDVB1RkVpin/YW2nQn/g== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -27988,6 +28099,11 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typeface-oswald@0.0.54: + version "0.0.54" + resolved "https://registry.npmjs.org/typeface-oswald/-/typeface-oswald-0.0.54.tgz#1e253011622cdd50f580c04e7d625e7f449763d7" + integrity sha512-U1WMNp4qfy4/3khIfHMVAIKnNu941MXUfs3+H9R8PFgnoz42Hh9pboSFztWr86zut0eXC8byalmVhfkiKON/8Q== + "typescript@^4.5.0 <4.6.0", "typescript@^4.8 <4.9", typescript@^5.0.3, typescript@~5.0.4: version "4.8.4" resolved "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" @@ -28016,6 +28132,11 @@ uglify-js@^3.1.4: resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.16.0.tgz" integrity sha512-FEikl6bR30n0T3amyBh3LoiBdqHRy/f4H80+My34HOesOKyHfOsxAPAxOoqC0JUnC1amnO0IwkYC3sko51caSw== +uglify-js@^3.4.9: + version "3.17.4" + resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" + integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== + uid-number@0.0.6: version "0.0.6" resolved "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz"