Skip to content

Commit 1001a02

Browse files
authored
0.24.2. (#163)
1 parent c3b402b commit 1001a02

File tree

19 files changed

+60
-46
lines changed

19 files changed

+60
-46
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.24.2
2+
3+
This version reverts the changes introduced in version 0.24.1. To modify the DOM attachment check, you should now pass the `documentBody` property in the configuration, which should reference the document's body element.
4+
15
# 0.24.1
26

37
This version allows to disable the DOM attachment check.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ Add the below code to your head section in HTML document.
103103
```html
104104
<head>
105105
...
106-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/css/designer.css" rel="stylesheet">
107-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/css/designer-light.css" rel="stylesheet">
108-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/css/designer-dark.css" rel="stylesheet">
109-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/dist/index.umd.js"></script>
106+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.2/css/designer.css" rel="stylesheet">
107+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.2/css/designer-light.css" rel="stylesheet">
108+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.2/css/designer-dark.css" rel="stylesheet">
109+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.2/dist/index.umd.js"></script>
110110
```
111111

112112
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.24.1",
4+
"version": "0.24.2",
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.24.1"
18+
"sequential-workflow-designer": "^0.24.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.24.1",
30-
"sequential-workflow-designer-angular": "^0.24.1",
29+
"sequential-workflow-designer": "^0.24.2",
30+
"sequential-workflow-designer-angular": "^0.24.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.24.1:
6748-
version "0.24.1"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.24.1.tgz#09b6b943057a338ca31393fef41f4fba684938b0"
6750-
integrity sha512-B72m3jCcl/ZTHjXPuF/BAP37dgfvw91JzD0LeKZUDcEsvDOfH1lVCjvZD1JWlplQhLsYHTZohmg698lgRjdY9A==
6747+
sequential-workflow-designer-angular@^0.24.2:
6748+
version "0.24.2"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.24.2.tgz#def1c1ed8bf58942653be1dd4a5e8d5eb8e77cb5"
6750+
integrity sha512-o3oi6ogatAm53Drn44IoupcQHxgi2e3/8tf22J2AyOrFrIvzGbxVyZMKF2t99zYBDjmJkQ7p2jp58kwk0e363Q==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.24.1:
6755-
version "0.24.1"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.24.1.tgz#d5e60c518589a655fda308068e3bae47341f958b"
6757-
integrity sha512-BNeIN0RWwObaSnlAGm2IpqPb/NpvtLyy2Ft2arRuQ2PO8a4RkU6Wu0G7mx1i6NLNoN2xJOf+4PsTDFeOk/k2ww==
6754+
sequential-workflow-designer@^0.24.2:
6755+
version "0.24.2"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.24.2.tgz#628b3d1e317c0a40b9b4c7c3b1b2703e17b3b741"
6757+
integrity sha512-dfnf23keTXvXlAq0XBNbOi2pyrJXKB4j41IPIV0UpFEbKZ54QkxPq4UYubA/TWGjSgIOG+jnrZuNrEzs61UVRw==
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.24.1",
10-
"sequential-workflow-designer-react": "^0.24.1"
9+
"sequential-workflow-designer": "^0.24.2",
10+
"sequential-workflow-designer-react": "^0.24.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.24.1",
20-
"sequential-workflow-designer-svelte": "^0.24.1"
19+
"sequential-workflow-designer": "^0.24.2",
20+
"sequential-workflow-designer-svelte": "^0.24.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.24.1",
4+
"version": "0.24.2",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",

designer/src/behaviors/drag-step-behavior-view.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ export class DragStepView {
99
const layer = Dom.element('div', {
1010
class: `sqd-drag sqd-theme-${theme}`
1111
});
12-
document.body.appendChild(layer);
12+
componentContext.documentBody.appendChild(layer);
1313

1414
const component = componentContext.services.draggedComponent.create(layer, step, componentContext);
1515

16-
return new DragStepView(component, layer);
16+
return new DragStepView(component, layer, componentContext.documentBody);
1717
}
1818

1919
private constructor(
2020
public readonly component: DraggedComponent,
21-
private readonly layer: HTMLElement
21+
private readonly layer: HTMLElement,
22+
private readonly documentBody: Node
2223
) {}
2324

2425
public setPosition(position: Vector) {
@@ -28,6 +29,6 @@ export class DragStepView {
2829

2930
public remove() {
3031
this.component.destroy();
31-
document.body.removeChild(this.layer);
32+
this.documentBody.removeChild(this.layer);
3233
}
3334
}

designer/src/component-context.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export class ComponentContext {
1717
preferenceStorage: PreferenceStorage,
1818
placeholderController: PlaceholderController,
1919
i18n: I18n,
20-
services: Services
20+
services: Services,
21+
documentBody: Node
2122
): ComponentContext {
2223
const validator = new DefinitionValidator(configuration.validator, state);
2324
const iconProvider = new IconProvider(configuration.steps);
@@ -30,7 +31,8 @@ export class ComponentContext {
3031
definitionWalker,
3132
services,
3233
preferenceStorage,
33-
i18n
34+
i18n,
35+
documentBody
3436
);
3537
}
3638

@@ -42,6 +44,7 @@ export class ComponentContext {
4244
public readonly definitionWalker: DefinitionWalker,
4345
public readonly services: Services,
4446
public readonly preferenceStorage: PreferenceStorage,
45-
public readonly i18n: I18n
47+
public readonly i18n: I18n,
48+
public readonly documentBody: Node
4649
) {}
4750
}

0 commit comments

Comments
 (0)