Skip to content

Commit 365e409

Browse files
authored
0.16.4. (#91)
1 parent e2ca34e commit 365e409

39 files changed

+443
-121
lines changed

.github/workflows/examples.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
cp -R examples _deploy
3434
cp -R demos/angular-app/dist/angular-app _deploy/angular-app
3535
cp -R demos/react-app/build _deploy/react-app
36+
- name: Append Analytics
37+
run: |
38+
node scripts/append-ga.cjs _deploy/examples
39+
node scripts/append-ga.cjs _deploy/react-app
40+
node scripts/append-ga.cjs _deploy/angular-app
3641
- name: Upload artifact
3742
uses: actions/upload-pages-artifact@v1
3843
with:

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest]
16-
node: [16]
1716
steps:
1817
- name: Checkout Repo
1918
uses: actions/checkout@v2
20-
- name: Setup Node 16
19+
- name: Setup Node
2120
uses: actions/setup-node@v2
2221
with:
23-
node-version: '16'
22+
node-version: '18'
2423
- name: main.sh
2524
run: bash .github/workflows/main.sh

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
## 0.16.4
2+
3+
This version introduces the `isAutoSelectDisabled` option. Now it's possible to disable the auto-select feature.
4+
5+
```js
6+
const configuration = {
7+
steps: {
8+
isAutoSelectDisabled: true,
9+
// ...
10+
}
11+
};
12+
```
13+
14+
Additionally, this version introduces possibility to initialize the designer with the undo stack from the previous session.
15+
16+
```js
17+
const configuration = {
18+
undoStackSize: 10,
19+
undoStack: myUndoStack,
20+
// ...
21+
};
22+
```
23+
24+
To read the current stack you should use the `dumpUndoStack()` method.
25+
26+
```js
27+
const myUndoStack = designer.dumpUndoStack();
28+
```
29+
130
## 0.16.3
231

332
This version adds: `isReadonly`, `selectedStepId`, `uidGenerator`, `isToolboxCollapsed` and `isEditorCollapsed` properties and `onIsToolboxCollapsedChanged` and `onIsEditorCollapsedChanged` events to the Angular package.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Features:
2727
* [🔴 Particles](https://nocode-js.github.io/sequential-workflow-designer/examples/particles.html)
2828
* [⛅ Light Dark](https://nocode-js.github.io/sequential-workflow-designer/examples/light-dark.html)
2929
* [🤖 Code Generator](https://nocode-js.github.io/sequential-workflow-designer/examples/code-generator.html)
30-
* [📐 Simple Flow](https://nocode-js.github.io/sequential-workflow-designer/examples/simple-flow.html)
3130
* [🌻 Rendering Test](https://nocode-js.github.io/sequential-workflow-designer/examples/rendering-test.html)
3231
* [🚄 Stress Test](https://nocode-js.github.io/sequential-workflow-designer/examples/stress-test.html)
3332
* [🚪 Editing Restrictions](https://nocode-js.github.io/sequential-workflow-designer/examples/editing-restrictions.html)
3433
* [📜 Scrollable Page](https://nocode-js.github.io/sequential-workflow-designer/examples/scrollable-page.html)
3534
* [🌵 Multi-Conditional Switch](https://nocode-js.github.io/sequential-workflow-designer/examples/multi-conditional-switch.html)
35+
* [🌀 Auto-Select](https://nocode-js.github.io/sequential-workflow-designer/examples/auto-select.html)
3636
* [React Demo](https://nocode-js.github.io/sequential-workflow-designer/react-app/)
3737
* [Angular Demo](https://nocode-js.github.io/sequential-workflow-designer/angular-app/)
3838

@@ -95,10 +95,10 @@ Add the below code to your head section in HTML document.
9595
```html
9696
<head>
9797
...
98-
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/css/designer.css" rel="stylesheet">
99-
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/css/designer-light.css" rel="stylesheet">
100-
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/css/designer-dark.css" rel="stylesheet">
101-
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/index.umd.js"></script>
98+
<link href="https://cdn.jsdelivr.net/npm/[email protected].4/css/designer.css" rel="stylesheet">
99+
<link href="https://cdn.jsdelivr.net/npm/[email protected].4/css/designer-light.css" rel="stylesheet">
100+
<link href="https://cdn.jsdelivr.net/npm/[email protected].4/css/designer-dark.css" rel="stylesheet">
101+
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/index.umd.js"></script>
102102
```
103103

104104
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.16.3",
4+
"version": "0.16.4",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 16",
1717
"@angular/core": "12 - 16",
18-
"sequential-workflow-designer": "^0.16.3"
18+
"sequential-workflow-designer": "^0.16.4"
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": "^15.2.9",
2727
"@angular/router": "^15.2.9",
2828
"rxjs": "~7.8.0",
29-
"sequential-workflow-designer": "^0.16.3",
30-
"sequential-workflow-designer-angular": "^0.16.3",
29+
"sequential-workflow-designer": "^0.16.4",
30+
"sequential-workflow-designer-angular": "^0.16.4",
3131
"tslib": "^2.3.0",
3232
"zone.js": "~0.13.0"
3333
},

demos/angular-app/yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,17 +5956,17 @@ [email protected]:
59565956
range-parser "~1.2.1"
59575957
statuses "2.0.1"
59585958

5959-
sequential-workflow-designer-angular@^0.16.3:
5960-
version "0.16.3"
5961-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.16.3.tgz#ad10976164b7c4e85bcb73c0585fb73701761648"
5962-
integrity sha512-kTRUPodVsfYpvFZ4ljMkGqM+VWC4xCay+jyWiGD9N2ifnQ7vuKcapMk6DQ+pSSTNCqqOugwdqD5snnWwCeWOYw==
5959+
sequential-workflow-designer-angular@^0.16.4:
5960+
version "0.16.4"
5961+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.16.4.tgz#fc4d958e4ee7ce9344faa192ba0b13c8b3ae898d"
5962+
integrity sha512-G+JntoXICmgoILYEbD5AF9+NW0XxzZRCNT6YH5FbuWvH0GgIwv831hD2gQxGwKTAGXj+vSRIfBrVSHKagY08Qw==
59635963
dependencies:
59645964
tslib "^2.3.0"
59655965

5966-
sequential-workflow-designer@^0.16.3:
5967-
version "0.16.3"
5968-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.16.3.tgz#899559b3a5ea3b5f0be931a071af67169ec65cb5"
5969-
integrity sha512-4M37SXOVfQ8YzLB+1PSDCB7NRXgipOSyBu127CBx2BdAt2dc7CnA0cyOYlVHtL3WX7xGfLXeIKKG7eSfQvjlWg==
5966+
sequential-workflow-designer@^0.16.4:
5967+
version "0.16.4"
5968+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.16.4.tgz#53ebf0e607f9503eb1bd99c8d8cd0cf347021a3d"
5969+
integrity sha512-BHL9zqvwkCVOGIldxdKArsAuC1tVOCq1YQdr77o3bgbntA6VDv9K8kW1Oj8MBQw+Er6IHWhLDQ7yEsVSFWyJfQ==
59705970
dependencies:
59715971
sequential-workflow-model "^0.2.0"
59725972

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.16.3",
10-
"sequential-workflow-designer-react": "^0.16.3"
9+
"sequential-workflow-designer": "^0.16.4",
10+
"sequential-workflow-designer-react": "^0.16.4"
1111
},
1212
"devDependencies": {
1313
"@types/jest": "^29.2.5",

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.16.3",
4+
"version": "0.16.4",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",

designer/src/api/editor-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { DefinitionChangeType, DesignerState } from '../designer-state';
1+
import { DesignerState } from '../designer-state';
22
import { DefinitionModifier } from '../definition-modifier';
3-
import { GlobalEditorContext, StepEditorContext } from '../designer-configuration';
3+
import { DefinitionChangeType, GlobalEditorContext, StepEditorContext } from '../designer-configuration';
44
import { EditorRenderer, EditorRendererHandler } from './editor-renderer';
55
import { Definition, DefinitionWalker } from '../definition';
66
import { SimpleEventListener } from '../core';

0 commit comments

Comments
 (0)