Skip to content

Commit 10b2207

Browse files
authored
0.35.2. (#209)
1 parent 617099d commit 10b2207

19 files changed

Lines changed: 73 additions & 67 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.35.2
2+
3+
This version introduces a configurable `componentType` for step extensions.
4+
15
# 0.35.1
26

37
This version fixes a bug in the calculation of the placeholder position when dragging a step component.

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.35.1/css/designer.css" rel="stylesheet">
110-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.1/css/designer-light.css" rel="stylesheet">
111-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.1/css/designer-dark.css" rel="stylesheet">
112-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.1/dist/index.umd.js"></script>
109+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.2/css/designer.css" rel="stylesheet">
110+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.2/css/designer-light.css" rel="stylesheet">
111+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.2/css/designer-dark.css" rel="stylesheet">
112+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.35.2/dist/index.umd.js"></script>
113113
```
114114

115115
Call the designer by:

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.35.1",
4+
"version": "0.35.2",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 19",
1717
"@angular/core": "12 - 19",
18-
"sequential-workflow-designer": "^0.35.1"
18+
"sequential-workflow-designer": "^0.35.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.35.1",
30-
"sequential-workflow-designer-angular": "^0.35.1",
29+
"sequential-workflow-designer": "^0.35.2",
30+
"sequential-workflow-designer-angular": "^0.35.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.35.1:
6748-
version "0.35.1"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.35.1.tgz#2d29e3da2d098d6a59aa3b1625feba8d597fdd1c"
6750-
integrity sha512-anB5bS+KMvjJROO7Srcfn0wECDFXt/VL414UG7BzduIGzcN8dXSxLotUc1eTHyq6JXr3xoBuhDO0QoTluW+3Hg==
6747+
sequential-workflow-designer-angular@^0.35.2:
6748+
version "0.35.2"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.35.2.tgz#b9530c4d17c30f5e2ee2eedab10423d28e2cbf41"
6750+
integrity sha512-8rhBMtfX0n8o2TN9UTPZAvc/eSD61fdE3bp/vaQWBJuhfJeZXZzT7yUx1xDmX/cLoq6uaTnzNVQSgSZ1DmJNDQ==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.35.1:
6755-
version "0.35.1"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.35.1.tgz#b62386eff4b1ce88110ab6cd13ef0b45aba9de25"
6757-
integrity sha512-BwnxWkHyMCSn5kCheWE6mdfLD53gaNp4Goz9T7ma5IqqS5YSNen3MDQbgo2hH4DJNMnPEz0S4Cx0nQ0oKsuXzw==
6754+
sequential-workflow-designer@^0.35.2:
6755+
version "0.35.2"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.35.2.tgz#b4453cb63e293525aa7502bf89831ca59a2ab20e"
6757+
integrity sha512-1BvqmcRgelq/m2W2/b+87RzX+jzQsVhRse2tgipUNGJ+HPPKH8uR2x+oj86+mYlFtv7al46JDO/ODy0vNxu+wA==
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.35.1",
10-
"sequential-workflow-designer-react": "^0.35.1"
9+
"sequential-workflow-designer": "^0.35.2",
10+
"sequential-workflow-designer-react": "^0.35.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.35.1",
20-
"sequential-workflow-designer-svelte": "^0.35.1"
19+
"sequential-workflow-designer": "^0.35.2",
20+
"sequential-workflow-designer-svelte": "^0.35.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.35.1",
4+
"version": "0.35.2",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ContainerStepComponentViewConfiguration } from './container-step-component-view-configuration';
22

33
export interface ContainerStepExtensionConfiguration {
4-
view: ContainerStepComponentViewConfiguration;
4+
componentType?: string;
5+
view?: ContainerStepComponentViewConfiguration;
56
}
Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
import { SequentialStep } from '../../definition';
22
import { StepExtension } from '../../designer-extension';
33
import { createContainerStepComponentViewFactory } from './container-step-component-view';
4+
import { ContainerStepComponentViewConfiguration } from './container-step-component-view-configuration';
45
import { ContainerStepExtensionConfiguration } from './container-step-extension-configuration';
56

6-
const defaultConfiguration: ContainerStepExtensionConfiguration = {
7-
view: {
8-
paddingTop: 20,
9-
paddingX: 20,
10-
inputSize: 18,
11-
inputRadius: 4,
12-
inputIconSize: 14,
13-
autoHideInputOnDrag: true,
14-
isRegionClickable: true,
15-
label: {
16-
height: 22,
17-
paddingX: 10,
18-
minWidth: 50,
19-
radius: 10
20-
}
7+
const defaultViewConfiguration: ContainerStepComponentViewConfiguration = {
8+
paddingTop: 20,
9+
paddingX: 20,
10+
inputSize: 18,
11+
inputRadius: 4,
12+
inputIconSize: 14,
13+
autoHideInputOnDrag: true,
14+
isRegionClickable: true,
15+
label: {
16+
height: 22,
17+
paddingX: 10,
18+
minWidth: 50,
19+
radius: 10
2120
}
2221
};
2322

2423
export class ContainerStepExtension implements StepExtension<SequentialStep> {
2524
public static create(configuration?: ContainerStepExtensionConfiguration): ContainerStepExtension {
26-
return new ContainerStepExtension(configuration ?? defaultConfiguration);
25+
return new ContainerStepExtension(configuration);
2726
}
2827

29-
public readonly componentType = 'container';
28+
public readonly componentType = this.configuration?.componentType ?? 'container';
3029

31-
private constructor(private readonly configuration: ContainerStepExtensionConfiguration) {}
30+
private constructor(private readonly configuration: ContainerStepExtensionConfiguration | undefined) {}
3231

33-
public readonly createComponentView = createContainerStepComponentViewFactory(this.configuration.view);
32+
public readonly createComponentView = createContainerStepComponentViewFactory(this.configuration?.view ?? defaultViewConfiguration);
3433
}

0 commit comments

Comments
 (0)