Skip to content

Commit 389f5c8

Browse files
authored
0.37.2. (#217)
1 parent 9e7e05c commit 389f5c8

File tree

13 files changed

+44
-36
lines changed

13 files changed

+44
-36
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.37.2
2+
3+
This version fixes a bug where commands were not forwarded in collapsible regions when `isRegionClickable` was set to `false`.
4+
15
# 0.37.1
26

37
This version adds a new property, `branchNameLabelResolver`, to the `SwitchStepExtensionConfiguration` interface. This property allows you to override the default labels of the switch step branches.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ Add the below code to your head section in HTML document.
106106
```html
107107
<head>
108108
...
109-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.1/css/designer.css" rel="stylesheet" />
110-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.1/css/designer-light.css" rel="stylesheet" />
111-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.1/css/designer-dark.css" rel="stylesheet" />
112-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.1/dist/index.umd.js"></script>
109+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/css/designer.css" rel="stylesheet" />
110+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/css/designer-light.css" rel="stylesheet" />
111+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/css/designer-dark.css" rel="stylesheet" />
112+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/dist/index.umd.js"></script>
113113
</head>
114114
```
115115

angular/designer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sequential-workflow-designer-angular",
33
"description": "Angular wrapper for Sequential Workflow Designer component.",
4-
"version": "0.37.1",
4+
"version": "0.37.2",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 20",
1717
"@angular/core": "12 - 20",
18-
"sequential-workflow-designer": "^0.37.1"
18+
"sequential-workflow-designer": "^0.37.2"
1919
},
2020
"dependencies": {
2121
"tslib": "^2.3.0"

demos/angular-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@angular/platform-browser-dynamic": "^17.3.9",
2727
"@angular/router": "^17.3.9",
2828
"rxjs": "~7.8.0",
29-
"sequential-workflow-designer": "^0.37.1",
30-
"sequential-workflow-designer-angular": "^0.37.1",
29+
"sequential-workflow-designer": "^0.37.2",
30+
"sequential-workflow-designer-angular": "^0.37.2",
3131
"tslib": "^2.3.0",
3232
"zone.js": "~0.14.6"
3333
},

demos/angular-app/yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6744,17 +6744,17 @@ send@0.18.0:
67446744
range-parser "~1.2.1"
67456745
statuses "2.0.1"
67466746

6747-
sequential-workflow-designer-angular@^0.37.1:
6748-
version "0.37.1"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.37.1.tgz#b0e012e2313c898b1917cb82deed50eca82713e6"
6750-
integrity sha512-KZq1FXII2k4IAn8enDynlsrBb52TNmy8pHPVK2qEbJI3F5144e8yEMhkktVt8YGT+FojD5Ho8XiFH4P1JOdAgA==
6747+
sequential-workflow-designer-angular@^0.37.2:
6748+
version "0.37.2"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.37.2.tgz#a40d34f6f869358101b9d46e3c7d10580ef4936e"
6750+
integrity sha512-TFz+3qVjIFpQxk0O9su2EpcnebpohmZsdMTag76+7AP6GPD1pLQbTRVuXDATmlj5S+1aVil7VFqE0GNQ0IxSWg==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.37.1:
6755-
version "0.37.1"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.37.1.tgz#93d87c2e7fb21b75d5c5782960699989c0b24260"
6757-
integrity sha512-IdS31OpgnrqMIOIWhiKqMKJf5D+pPdVNVkPQh1OV4IuGcYnmhEDU38dk4H5QWA0IObKvLNgQG+tcys4y884sHQ==
6754+
sequential-workflow-designer@^0.37.2:
6755+
version "0.37.2"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.37.2.tgz#d311d769f58ed1b2a1627f29ad0538707e3d0451"
6757+
integrity sha512-AGtv8GJ9SF+mIGtDzyEZTn1X3VkcgMIZzV15WCAOweMGec/NTS9zw8qraWPoSBkLdNDQtuK4/jbUxLnwJS4N9g==
67586758
dependencies:
67596759
sequential-workflow-model "^0.2.0"
67606760

demos/react-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"react": "^18.2.0",
88
"react-dom": "^18.2.0",
9-
"sequential-workflow-designer": "^0.37.1",
10-
"sequential-workflow-designer-react": "^0.37.1"
9+
"sequential-workflow-designer": "^0.37.2",
10+
"sequential-workflow-designer-react": "^0.37.2"
1111
},
1212
"devDependencies": {
1313
"@types/jest": "^29.2.5",

demos/svelte-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"eslint": "eslint ./src --ext .ts"
1717
},
1818
"dependencies": {
19-
"sequential-workflow-designer": "^0.37.1",
20-
"sequential-workflow-designer-svelte": "^0.37.1"
19+
"sequential-workflow-designer": "^0.37.2",
20+
"sequential-workflow-designer-svelte": "^0.37.2"
2121
},
2222
"devDependencies": {
2323
"@sveltejs/adapter-static": "^2.0.3",

designer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sequential-workflow-designer",
33
"description": "Customizable no-code component for building flow-based programming applications.",
4-
"version": "0.37.1",
4+
"version": "0.37.2",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",

designer/src/workspace/container-step/container-step-component-view.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ export const createContainerStepComponentViewFactory =
5454
return regionView.getClientPosition();
5555
},
5656
resolveClick(click: ClickDetails): true | ClickCommand | null {
57-
if (cfg.isRegionClickable) {
58-
const result = regionView.resolveClick(click);
59-
if (result !== null) {
60-
return result;
57+
const result = regionView.resolveClick(click);
58+
if (result === true) {
59+
if (cfg.isRegionClickable) {
60+
return true;
6161
}
62+
} else if (result !== null) {
63+
return result;
6264
}
6365
return labelView.g.contains(click.element) || (inputView && inputView.g.contains(click.element)) ? true : null;
6466
},

designer/src/workspace/switch-step/switch-step-component-view.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ function createView(
4141
return regionView.getClientPosition();
4242
},
4343
resolveClick(click: ClickDetails): true | ClickCommand | null {
44-
if (cfg.isRegionClickable) {
45-
const result = regionView.resolveClick(click);
46-
if (result !== null) {
47-
return result;
44+
const result = regionView.resolveClick(click);
45+
if (result === true) {
46+
if (cfg.isRegionClickable) {
47+
return true;
4848
}
49+
} else if (result !== null) {
50+
return result;
4951
}
5052
return labelViews.some(v => v.g.contains(click.element) || (inputView && inputView.g.contains(click.element))) ? true : null;
5153
},

0 commit comments

Comments
 (0)