From 99548a0dba01e3890d0852f5ce8249592568b3df Mon Sep 17 00:00:00 2001
From: Braks <78412429+bcakmakoglu@users.noreply.github.com>
Date: Fri, 9 Jul 2021 21:49:37 +0200
Subject: [PATCH] fix: try to deploy as package...
---
package.json | 16 ++-
rollup.config.js | 2 +-
src/App.vue | 5 +-
src/Basic.tsx | 2 +-
.../Background/index.tsx | 2 +-
src/additional-components/Controls/index.tsx | 2 +-
.../MiniMap/MiniMapNode.tsx | 2 +-
src/additional-components/MiniMap/index.tsx | 2 +-
src/components/ConnectionLine/index.tsx | 2 +-
src/components/Edges/BezierEdge.tsx | 2 +-
src/components/Edges/EdgeAnchor.tsx | 2 +-
src/components/Edges/EdgeText.tsx | 2 +-
src/components/Edges/SmoothStepEdge.tsx | 2 +-
src/components/Edges/StepEdge.tsx | 2 +-
src/components/Edges/StraightEdge.tsx | 2 +-
src/components/Edges/wrapEdge.tsx | 2 +-
src/components/Handle/index.tsx | 2 +-
src/components/Nodes/DefaultNode.tsx | 2 +-
src/components/Nodes/InputNode.tsx | 2 +-
src/components/Nodes/OutputNode.tsx | 2 +-
src/components/Nodes/wrapNode.tsx | 2 +-
src/components/UserSelection/index.tsx | 2 +-
.../EdgeRenderer/MarkerDefinitions.tsx | 2 +-
src/container/EdgeRenderer/index.tsx | 2 +-
src/container/EdgeRenderer/utils.ts | 2 +-
src/container/FlowRenderer/index.tsx | 2 +-
src/container/GraphView/index.tsx | 6 +-
src/container/NodeRenderer/index.tsx | 2 +-
src/container/RevueFlow/index.tsx | 136 +++++++++---------
src/container/ZoomPane/index.tsx | 2 +-
src/hooks/useGlobalKeyHandler.ts | 2 +-
src/hooks/useKeyPress.ts | 2 +-
src/index.ts | 5 -
src/main.ts | 2 +-
src/shims-vue.d.ts | 2 +-
src/store/configure-store.ts | 18 ++-
src/types/index.ts | 2 +-
vite.config.ts | 28 +++-
yarn.lock | 5 +
39 files changed, 161 insertions(+), 120 deletions(-)
diff --git a/package.json b/package.json
index a9ae97c1..c1ba33ce 100644
--- a/package.json
+++ b/package.json
@@ -17,10 +17,10 @@
],
"scripts": {
"dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
+ "build": "vue-tsc --noEmit && vite build && yarn build:dist",
"build:dist": "rollup -c --environment NODE_ENV:production && postcss src/*.css --dir dist",
"serve": "vite preview",
- "prepublishOnly": "yarn build:dist",
+ "prepublishOnly": "yarn build",
"test": "exit 0;",
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"lint": "yarn lint:js"
@@ -28,7 +28,7 @@
"dependencies": {
"d3": "^7.0.0",
"pinia": "^2.0.0-beta.3",
- "vue": "^3.0.5"
+ "vue-demi": "^0.10.1"
},
"devDependencies": {
"@babel/core": "^7.14.6",
@@ -65,8 +65,18 @@
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.3.5",
"vite": "^2.3.8",
+ "vue": "^3.0.5",
"vue-tsc": "^0.0.24"
},
+ "peerDependencies": {
+ "@vue/composition-api": "^1.0.0-rc.1",
+ "vue": "^2.0.0 || >=3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@vue/composition-api": {
+ "optional": true
+ }
+ },
"publishConfig": {
"access": "public",
"registry": "http://registry.npmjs.org/"
diff --git a/rollup.config.js b/rollup.config.js
index 6f488f76..8e6e9c22 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -58,7 +58,7 @@ export const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, injec
babel({
extensions: [...DEFAULT_BABEL_EXTENSIONS, '.ts', '.tsx'],
exclude: 'node_modules/**',
- babelHelpers: 'bundled'
+ babelHelpers: 'inline'
})
]
});
diff --git a/src/App.vue b/src/App.vue
index f0402ea2..422aeea3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,18 +1,15 @@
Revue Flow
-