Skip to content

Commit ec65dac

Browse files
authored
0.26.0. (#171)
1 parent 65cc31c commit ec65dac

35 files changed

+250
-102
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.26.0
2+
3+
This version introduces a few internal changes to support the double-click feature in the pro version.
4+
15
# 0.25.0
26

37
This version introduces the pinch-to-zoom feature. Now you can zoom in and out using the pinch gesture on touch devices.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Pro:
5555
* [👋 Custom Dragged Component](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/custom-dragged-component.html)
5656
* [🔰 Badges](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/badges.html)
5757
* [🎩 Custom Viewport](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/custom-viewport.html)
58+
* [👊 Double Click](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/double-click.html)
5859
* [🛎 Clickable Placeholder](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/clickable-placeholder.html)
5960
* [📮 Conditional Placeholders](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/conditional-placeholders.html)
6061
* [React Pro Demo](https://nocode-js.com/examples/sequential-workflow-designer-pro/react-pro-app/build/index.html)
@@ -103,10 +104,10 @@ Add the below code to your head section in HTML document.
103104
```html
104105
<head>
105106
...
106-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/css/designer.css" rel="stylesheet">
107-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/css/designer-light.css" rel="stylesheet">
108-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/css/designer-dark.css" rel="stylesheet">
109-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/dist/index.umd.js"></script>
107+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/css/designer.css" rel="stylesheet">
108+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/css/designer-light.css" rel="stylesheet">
109+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/css/designer-dark.css" rel="stylesheet">
110+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/dist/index.umd.js"></script>
110111
```
111112

112113
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.25.0",
4+
"version": "0.26.0",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 18",
1717
"@angular/core": "12 - 18",
18-
"sequential-workflow-designer": "^0.25.0"
18+
"sequential-workflow-designer": "^0.26.0"
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.25.0",
30-
"sequential-workflow-designer-angular": "^0.25.0",
29+
"sequential-workflow-designer": "^0.26.0",
30+
"sequential-workflow-designer-angular": "^0.26.0",
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.25.0:
6748-
version "0.25.0"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.25.0.tgz#eb65370283a408c10eeb7b71b67dae2af9d6196b"
6750-
integrity sha512-E100P2es8Gn5th0f0ErfjRr9TWWcgocz16kZocWvCHeOn5/iLo+oCuvSSZjewpnYTVA6oDcHH//KJnq5sPN69g==
6747+
sequential-workflow-designer-angular@^0.26.0:
6748+
version "0.26.0"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.26.0.tgz#f27885071efaf6e20e6884129f0666aefcb66ba6"
6750+
integrity sha512-UkWmksYIXggsDGWTHcjDW6RVpEpi3gKkBKBtMsyYTtZsE8PtMm0W5PF6gTHL3t1JBDw40jHCVLeEFNfjOp6jKg==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.25.0:
6755-
version "0.25.0"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.25.0.tgz#db8d35441a68f0b05f169e458f12f5457f9beca9"
6757-
integrity sha512-KNOTA4zx/TkpL0LHQFvNe2S07vejA4YjRcl6UNpLjG4fODQKfiZ8zj5RypcG54O6TArBU8eDEUwtXgnuopGEYQ==
6754+
sequential-workflow-designer@^0.26.0:
6755+
version "0.26.0"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.26.0.tgz#6ea3148d663e8fda9939b50af575568a19d2c157"
6757+
integrity sha512-PIHiMBti6TWhou5gz7DXMe6HF7AEX9ZkRvXOBLhn07hZn+rk9MPFkV83h7sZDdiTrH6VoMw7rZ7f/th/knm/0A==
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.25.0",
10-
"sequential-workflow-designer-react": "^0.25.0"
9+
"sequential-workflow-designer": "^0.26.0",
10+
"sequential-workflow-designer-react": "^0.26.0"
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.25.0",
20-
"sequential-workflow-designer-svelte": "^0.25.0"
19+
"sequential-workflow-designer": "^0.26.0",
20+
"sequential-workflow-designer-svelte": "^0.26.0"
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.25.0",
4+
"version": "0.26.0",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",

designer/src/api/control-bar-api.ts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ import { race, SimpleEvent } from '../core';
22
import { StateModifier } from '../modifier/state-modifier';
33
import { DesignerState } from '../designer-state';
44
import { HistoryController } from '../history-controller';
5-
import { ViewportApi } from './viewport-api';
65

76
export class ControlBarApi {
87
public static create(
98
state: DesignerState,
109
historyController: HistoryController | undefined,
11-
stateModifier: StateModifier,
12-
viewportApi: ViewportApi
10+
stateModifier: StateModifier
1311
): ControlBarApi {
14-
const api = new ControlBarApi(state, historyController, stateModifier, viewportApi);
12+
const api = new ControlBarApi(state, historyController, stateModifier);
1513

1614
race(
1715
0,
@@ -26,24 +24,11 @@ export class ControlBarApi {
2624
private constructor(
2725
private readonly state: DesignerState,
2826
private readonly historyController: HistoryController | undefined,
29-
private readonly stateModifier: StateModifier,
30-
private readonly viewportApi: ViewportApi
27+
private readonly stateModifier: StateModifier
3128
) {}
3229

3330
public readonly onStateChanged = new SimpleEvent<unknown>();
3431

35-
public resetViewport() {
36-
this.viewportApi.resetViewport();
37-
}
38-
39-
public zoomIn() {
40-
this.viewportApi.zoom(true);
41-
}
42-
43-
public zoomOut() {
44-
this.viewportApi.zoom(false);
45-
}
46-
4732
public isDragDisabled(): boolean {
4833
return this.state.isDragDisabled;
4934
}

designer/src/api/designer-api.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export class DesignerApi {
1313
public static create(context: DesignerContext): DesignerApi {
1414
const workspace = new WorkspaceApi(context.state, context.workspaceController);
1515
const viewportController = context.services.viewportController.create(workspace);
16-
const viewport = new ViewportApi(context.workspaceController, viewportController, workspace);
1716
const toolboxDataProvider = new ToolboxDataProvider(
1817
context.componentContext.iconProvider,
1918
context.i18n,
@@ -22,11 +21,11 @@ export class DesignerApi {
2221

2322
return new DesignerApi(
2423
context.configuration.shadowRoot,
25-
ControlBarApi.create(context.state, context.historyController, context.stateModifier, viewport),
24+
ControlBarApi.create(context.state, context.historyController, context.stateModifier),
2625
new ToolboxApi(context.state, context, context.behaviorController, toolboxDataProvider, context.configuration.uidGenerator),
2726
new EditorApi(context.state, context.definitionWalker, context.stateModifier),
2827
workspace,
29-
viewport,
28+
new ViewportApi(context.state, context.workspaceController, viewportController),
3029
new PathBarApi(context.state, context.definitionWalker),
3130
context.definitionWalker,
3231
context.i18n

0 commit comments

Comments
 (0)