Compare commits

..

9 Commits

Author SHA1 Message Date
Dylan Vorster
45649146c9 v6.0.0-alpha.4.1 2019-07-30 22:53:42 +02:00
Dylan Vorster
74e24331ed fix flow demo 2019-07-30 22:48:57 +02:00
Dylan Vorster
0cc469fa44 storybook 2019-07-30 22:43:29 +02:00
Dylan Vorster
0b78ba69c6 fix up the builds 2019-07-30 22:36:44 +02:00
Dylan Vorster
ca301b9d4d v6.0.0-alpha.4.0 2019-07-30 22:23:18 +02:00
Dylan Vorster
ad6c77da28 v6.0.0-alpha.3.0 2019-07-30 22:15:19 +02:00
Dylan Vorster
66b72b4465 v6.0.0-y.0 2019-07-30 22:06:26 +02:00
Dylan Vorster
bb878657ba v6.0.0-alpha.1 2019-07-30 21:58:06 +02:00
Dylan Vorster
1db1e21fc2 hmm 2019-07-30 21:57:27 +02:00
14 changed files with 88 additions and 58 deletions

View File

@@ -3,23 +3,17 @@ jobs:
build:
docker:
- image: buildkite/puppeteer
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
key: v1-dependencies-{{ checksum "yarn.lock" }}
# test building project
- run: yarn run build

View File

@@ -1,5 +1,5 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "6.0.0-alpha.0"
"version": "6.0.0-alpha.4.1"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@projectstorm/react-diagrams",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"repository": {
"type": "git",
@@ -8,7 +8,11 @@
},
"scripts": {
"clean": "rm -rf ./dist",
"build": "../node_modules/.bin/webpack"
"build": "../node_modules/.bin/webpack",
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"web",
@@ -24,15 +28,9 @@
"main": "./dist/index.js",
"typings": "./dist/@types/index",
"dependencies": {
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.0",
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.0",
"@projectstorm/react-diagrams-routing": "^6.0.0-alpha.0"
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.1",
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.4.1",
"@projectstorm/react-diagrams-routing": "^6.0.0-alpha.4.1"
},
"peerDependencies": {
"closest": "^0.0.1",
"lodash": "4.*",
"pathfinding": "^0.4.18",
"paths-js": "^0.4.9",
"react": "16.*"
}
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@projectstorm/react-diagrams-core",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"repository": {
"type": "git",
@@ -8,7 +8,11 @@
},
"scripts": {
"clean": "rm -rf ./dist",
"build": "../node_modules/.bin/webpack"
"build": "../node_modules/.bin/webpack",
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"web",
@@ -24,11 +28,12 @@
"main": "./dist/index.js",
"typings": "./dist/@types/index",
"dependencies": {
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.0"
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.4.1"
},
"peerDependencies": {
"closest": "^0.0.1",
"lodash": "4.*",
"react": "16.*"
}
},
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@projectstorm/react-diagrams-defaults",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"repository": {
"type": "git",
@@ -8,7 +8,11 @@
},
"scripts": {
"clean": "rm -rf ./dist",
"build": "../node_modules/.bin/webpack"
"build": "../node_modules/.bin/webpack",
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"web",
@@ -24,13 +28,13 @@
"main": "./dist/index.js",
"typings": "./dist/@types/index",
"dependencies": {
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.0"
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.1"
},
"peerDependencies": {
"closest": "^0.0.1",
"@emotion/core": "^10.*",
"@emotion/styled": "^10.*",
"lodash": "4.*",
"pathfinding": "^0.4.18",
"paths-js": "^0.4.9",
"react": "16.*"
}
},
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
}

View File

@@ -1,10 +1,19 @@
import createEngine, { DiagramModel, DefaultNodeModel, DiagramWidget } from '@projectstorm/react-diagrams';
import createEngine, {
DiagramModel,
DefaultNodeModel,
DiagramWidget,
MoveItemsActionFactory
} from "@projectstorm/react-diagrams";
import * as React from 'react';
export default () => {
//1) setup the diagram engine
var engine = createEngine();
// ############################################ MAGIC HAPPENS HERE
engine.getActionFactories().registerFactory(new MoveItemsActionFactory({allowLooseLinks: false}));
// ############################################ MAGIC HAPPENS HERE
//2) setup the diagram model
var model = new DiagramModel();

View File

@@ -1,14 +1,15 @@
{
"name": "@projectstorm/react-diagrams-gallery",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/projectstorm/react-diagrams.git"
},
"scripts": {
"start": "../node_modules/.bin/start-storybook",
"build": "../node_modules/.bin/build-storybook -c .storybook -o .out",
"storybook:build": "../node_modules/.bin/build-storybook -c .storybook -o .out",
"github": "../node_modules/.bin/storybook-to-ghpages",
"test:run": "../node_modules/.bin/jest --no-cache",
"test": "yarn build && yarn test:run"

View File

@@ -1,7 +1,8 @@
{
"name": "@projectstorm/react-diagrams-demo",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/projectstorm/react-diagrams.git"
@@ -23,6 +24,7 @@
"main": "./dist/index.js",
"typings": "./dist/@types/index",
"dependencies": {
"@projectstorm/react-diagrams": "^6.0.0-alpha.0"
}
"@projectstorm/react-diagrams": "^6.0.0-alpha.4.1"
},
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
}

4
lib-geometry/.npmignore Normal file
View File

@@ -0,0 +1,4 @@
*
!dist/**/*
!package.json
!README.md

View File

@@ -1,6 +1,6 @@
{
"name": "@projectstorm/react-diagrams-geometry",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"repository": {
"type": "git",
@@ -8,7 +8,11 @@
},
"scripts": {
"clean": "rm -rf ./dist",
"build": "../node_modules/.bin/webpack"
"build": "../node_modules/.bin/webpack",
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"web",
@@ -25,5 +29,6 @@
"typings": "./dist/@types/index",
"peerDependencies": {
"mathjs": "^6.0.3"
}
},
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@projectstorm/react-diagrams-routing",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.4.1",
"author": "dylanvorster",
"repository": {
"type": "git",
@@ -9,8 +9,12 @@
"scripts": {
"clean": "rm -rf ./dist",
"build": "../node_modules/.bin/webpack",
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack",
"test": "../node_modules/.bin/jest --no-cache"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"web",
"diagram",
@@ -25,16 +29,16 @@
"main": "./dist/index.js",
"typings": "./dist/@types/index",
"dependencies": {
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.0",
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.0",
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.0"
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.1",
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.4.1",
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.4.1"
},
"peerDependencies": {
"closest": "^0.0.1",
"dagre": "^0.8.4",
"lodash": "4.*",
"pathfinding": "^0.4.18",
"paths-js": "^0.4.9",
"react": "16.*"
}
},
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
}

View File

@@ -29,7 +29,11 @@
],
"scripts": {
"build": "yarn build:clean && lerna run build --stream",
"build:prod": "yarn build:clean && lerna run build:prod --stream",
"watch": "yarn build:clean && lerna run watch --stream",
"publish:dev": "yarn build:prod && lerna publish --force-publish --dist-tag=next",
"publish:prod": "yarn build:prod && lerna publish --force-publish",
"publish:storybook": "cd lib-demo-gallery && yarn storybook:build && ../node_modules/.bin/storybook-to-ghpages --existing-output-dir .out",
"build:clean": "lerna run clean --stream",
"test": "lerna run test --stream",
"test:ci": "lerna run test --stream -- --runInBand --ci ",
@@ -54,10 +58,10 @@
"@storybook/storybook-deployer": "^2.8.1",
"@storybook/theming": "^5.1.9",
"@types/dagre": "^0.7.42",
"@types/jest": "^24.0.15",
"@types/jest": "^24.0.16",
"@types/jest-environment-puppeteer": "^4.0.0",
"@types/lodash": "^4.14.136",
"@types/mathjs": "^6.0.0",
"@types/mathjs": "^6.0.1",
"@types/node": "^12.6.8",
"@types/promise": "^7.1.30",
"@types/puppeteer": "^1.19.0",

View File

@@ -41,4 +41,4 @@ module.exports = (directory) => {
minimizer: [new TerserPlugin()],
}
}
}
};

View File

@@ -2587,10 +2587,10 @@
dependencies:
"@types/puppeteer" "*"
"@types/jest@^24.0.15":
version "24.0.15"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.15.tgz#6c42d5af7fe3b44ffff7cc65de7bf741e8fa427f"
integrity sha512-MU1HIvWUme74stAoc3mgAi+aMlgKOudgEvQDIm1v4RkrDudBh1T+NFp5sftpBAdXdx1J0PbdpJ+M2EsSOi1djA==
"@types/jest@^24.0.16":
version "24.0.16"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.16.tgz#8d3e406ec0f0dc1688d6711af3062ff9bd428066"
integrity sha512-JrAiyV+PPGKZzw6uxbI761cHZ0G7QMOHXPhtSpcl08rZH6CswXaaejckn3goFKmF7M3nzEoJ0lwYCbqLMmjziQ==
dependencies:
"@types/jest-diff" "*"
@@ -2599,10 +2599,10 @@
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.136.tgz#413e85089046b865d960c9ff1d400e04c31ab60f"
integrity sha512-0GJhzBdvsW2RUccNHOBkabI8HZVdOXmXbXhuKlDEd5Vv12P7oAVGfomGp3Ne21o5D/qu1WmthlNKFaoZJJeErA==
"@types/mathjs@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@types/mathjs/-/mathjs-6.0.0.tgz#5f00e276fbcd4d59d3bb54230b775383db4729a3"
integrity sha512-5lQUtV1ukuKGTbeFMb3R8Uan3cBcQ8/H6aZfybkcxCx8NmqSOprwU4bAI/RCU1Q+5fHTGU4Ru8FAZOfsqYL03A==
"@types/mathjs@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@types/mathjs/-/mathjs-6.0.1.tgz#104345736853e1312b2bce74313235fdab835aaa"
integrity sha512-AsRCEz0cChGnmfo05bCYP25OSWKT8SVjBMRYodQAjQO8od+MQkHZBXGzhBz2l6JbVuwScdQap+2RT9tUaQv6tA==
dependencies:
decimal.js "^10.0.0"