Skip to content

Commit

Permalink
0.21.3. (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz authored Jul 11, 2024
1 parent b04acda commit 70d2c40
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 28 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.21.3

This version resolves the problem of unwanted text selection in the toolbox in Safari 17.5 [#153](https://github.com/nocode-js/sequential-workflow-designer/issues/153).

# 0.21.2

This version resolves the problem of unwanted dragging of the image element in the toolbox [#149](https://github.com/nocode-js/sequential-workflow-designer/issues/149).
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ Add the below code to your head section in HTML document.
```html
<head>
...
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/css/designer.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/css/designer-light.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/css/designer-dark.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/index.umd.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/css/designer.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/css/designer-light.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/css/designer-dark.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/index.umd.js"></script>
```

Call the designer by:
Expand Down
4 changes: 2 additions & 2 deletions angular/designer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequential-workflow-designer-angular",
"description": "Angular wrapper for Sequential Workflow Designer component.",
"version": "0.21.2",
"version": "0.21.3",
"author": {
"name": "NoCode JS",
"url": "https://nocode-js.com/"
Expand All @@ -15,7 +15,7 @@
"peerDependencies": {
"@angular/common": "12 - 18",
"@angular/core": "12 - 18",
"sequential-workflow-designer": "^0.21.2"
"sequential-workflow-designer": "^0.21.3"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
4 changes: 2 additions & 2 deletions demos/angular-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@angular/platform-browser-dynamic": "^17.3.9",
"@angular/router": "^17.3.9",
"rxjs": "~7.8.0",
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-designer-angular": "^0.21.2",
"sequential-workflow-designer": "^0.21.3",
"sequential-workflow-designer-angular": "^0.21.3",
"tslib": "^2.3.0",
"zone.js": "~0.14.6"
},
Expand Down
16 changes: 8 additions & 8 deletions demos/angular-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6744,17 +6744,17 @@ [email protected]:
range-parser "~1.2.1"
statuses "2.0.1"

sequential-workflow-designer-angular@^0.21.2:
version "0.21.2"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.21.2.tgz#862affe152042104c5fa668c4426e949cb9e1888"
integrity sha512-0FpWnTR64StQOlR+HdYnTl3+ZhbxTP2Z8CCi0NYMK+2kV0aMVFKIz/hNdcJwDM24nspOFGF/f+FGzjOcrVgJmQ==
sequential-workflow-designer-angular@^0.21.3:
version "0.21.3"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.21.3.tgz#83076784df068869937c1619b621c854da6628a2"
integrity sha512-x0f8/zAteNwt6Y1Se4fv6JarceGCVhNx0JK+zAywtcgomnIqTWBKrZ1hrbUFE8OI0Y1/5OwzALCWkjbCB4A+iQ==
dependencies:
tslib "^2.3.0"

sequential-workflow-designer@^0.21.2:
version "0.21.2"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.21.2.tgz#dab9702ff56a9e20967cb6840bfd19fb710c2c35"
integrity sha512-yjBrENF1bongMB0bW4AcatlhNfM1B48jKVgJKEkAAVgZy7/DioHZ3545fXVGol6bvjcqtKRHwOasZKITvVJU2Q==
sequential-workflow-designer@^0.21.3:
version "0.21.3"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.21.3.tgz#b9e53a4f8b4d2b66892c243775fb1e2ade9a1dba"
integrity sha512-BJOwODSTqSoGxkyPvxlRLyz9Y4kL8W9u6NsP/NeNJV4BoRtsbuMspjnxLNRLCHHjl3Dfa5SEjWr18SXHLjlppA==
dependencies:
sequential-workflow-model "^0.2.0"

Expand Down
4 changes: 2 additions & 2 deletions demos/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-designer-react": "^0.21.2"
"sequential-workflow-designer": "^0.21.3",
"sequential-workflow-designer-react": "^0.21.3"
},
"devDependencies": {
"@types/jest": "^29.2.5",
Expand Down
4 changes: 2 additions & 2 deletions demos/svelte-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"eslint": "eslint ./src --ext .ts"
},
"dependencies": {
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-designer-svelte": "^0.21.2"
"sequential-workflow-designer": "^0.21.3",
"sequential-workflow-designer-svelte": "^0.21.3"
},
"devDependencies": {
"@sveltejs/adapter-static": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion designer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequential-workflow-designer",
"description": "Customizable no-code component for building flow-based programming applications.",
"version": "0.21.2",
"version": "0.21.3",
"type": "module",
"main": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions designer/src/toolbox/scrollbox-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class ScrollBoxView {
};

private readonly onMouseDown = (e: MouseEvent) => {
e.preventDefault();
this.startScroll(readMousePosition(e));
};

Expand Down
2 changes: 2 additions & 0 deletions designer/src/toolbox/toolbox-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ export class ToolboxItem {

private onTouchstart(e: TouchEvent) {
e.preventDefault();
e.stopPropagation();
if (e.touches.length === 1) {
e.stopPropagation();
this.tryDrag(readTouchPosition(e));
}
}

private onMousedown(e: MouseEvent) {
e.preventDefault();
e.stopPropagation();
const isPrimaryButton = e.button === 0;
if (isPrimaryButton) {
Expand Down
2 changes: 1 addition & 1 deletion examples/assets/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function embedStylesheet(url) {
document.write(`<link href="${url}" rel="stylesheet">`);
}

const baseUrl = isTestEnv() ? '../designer' : '//cdn.jsdelivr.net/npm/[email protected].2';
const baseUrl = isTestEnv() ? '../designer' : '//cdn.jsdelivr.net/npm/[email protected].3';

embedScript(`${baseUrl}/dist/index.umd.js`);
embedStylesheet(`${baseUrl}/css/designer.css`);
Expand Down
6 changes: 3 additions & 3 deletions react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequential-workflow-designer-react",
"description": "React wrapper for Sequential Workflow Designer component.",
"version": "0.21.2",
"version": "0.21.3",
"type": "module",
"main": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -47,7 +47,7 @@
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sequential-workflow-designer": "^0.21.2"
"sequential-workflow-designer": "^0.21.3"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.1",
Expand All @@ -63,7 +63,7 @@
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-designer": "^0.21.3",
"rollup": "^3.18.0",
"rollup-plugin-dts": "^5.2.0",
"rollup-plugin-typescript2": "^0.34.1",
Expand Down
6 changes: 3 additions & 3 deletions svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequential-workflow-designer-svelte",
"description": "Svelte wrapper for Sequential Workflow Designer component.",
"version": "0.21.2",
"version": "0.21.3",
"license": "MIT",
"scripts": {
"prepare": "cp ../LICENSE LICENSE",
Expand All @@ -28,10 +28,10 @@
],
"peerDependencies": {
"svelte": "^4.0.0",
"sequential-workflow-designer": "^0.21.2"
"sequential-workflow-designer": "^0.21.3"
},
"devDependencies": {
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-designer": "^0.21.3",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.20.4",
"@sveltejs/package": "^2.0.0",
Expand Down

0 comments on commit 70d2c40

Please sign in to comment.