Skip to content

0.29.2. #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.29.2

Added a new theme: `soft`.

# 0.29.1

This release includes a small code refactor.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ Add the below code to your head section in HTML document.
```html
<head>
...
<link href="https://cdn.jsdelivr.net/npm/[email protected].1/css/designer.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].1/css/designer-light.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].1/css/designer-dark.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/index.umd.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/css/designer.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/css/designer-light.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/css/designer-dark.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/index.umd.js"></script>
```

Call the designer by:
Expand Down
4 changes: 2 additions & 2 deletions angular/designer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequential-workflow-designer-angular",
"description": "Angular wrapper for Sequential Workflow Designer component.",
"version": "0.29.1",
"version": "0.29.2",
"author": {
"name": "NoCode JS",
"url": "https://nocode-js.com/"
Expand All @@ -15,7 +15,7 @@
"peerDependencies": {
"@angular/common": "12 - 19",
"@angular/core": "12 - 19",
"sequential-workflow-designer": "^0.29.1"
"sequential-workflow-designer": "^0.29.2"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
4 changes: 2 additions & 2 deletions demos/angular-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@angular/platform-browser-dynamic": "^17.3.9",
"@angular/router": "^17.3.9",
"rxjs": "~7.8.0",
"sequential-workflow-designer": "^0.29.1",
"sequential-workflow-designer-angular": "^0.29.1",
"sequential-workflow-designer": "^0.29.2",
"sequential-workflow-designer-angular": "^0.29.2",
"tslib": "^2.3.0",
"zone.js": "~0.14.6"
},
Expand Down
16 changes: 8 additions & 8 deletions demos/angular-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6744,17 +6744,17 @@ [email protected]:
range-parser "~1.2.1"
statuses "2.0.1"

sequential-workflow-designer-angular@^0.29.1:
version "0.29.1"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.29.1.tgz#dd8e5f873d96c414fed7a7588dbf396dc5490b06"
integrity sha512-IN4lkR16Mw3/uOOnwwwdzgY8Fy+1BgBgkaz11aN5PzmiRE/6qaFsHAsG9WenRsYx1dVGnSvjQMePMjeDN8WD2A==
sequential-workflow-designer-angular@^0.29.2:
version "0.29.2"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.29.2.tgz#04a12899ea6daf50e12bae286bd2d792519f55c2"
integrity sha512-IiOi46UrE31EUe4DL9ZT1MwswDIsmpq/qIgC5GBEeI5kKENXL09e4KbePhJQXurnpSJCzcX7cUCnRuoFsMsCdg==
dependencies:
tslib "^2.3.0"

sequential-workflow-designer@^0.29.1:
version "0.29.1"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.29.1.tgz#f619c4647e106efa3f50c7d63b93705d4c7c6e4f"
integrity sha512-0XfHlkhoVc/nvMNXg80dVP8N/MBRnjrWbsPPlfRl+dd1HmSF+AlE9YgO4nuhTHUHi3seI81TC5Kf8RwjZ4mTYw==
sequential-workflow-designer@^0.29.2:
version "0.29.2"
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.29.2.tgz#bdb610325396baab5f5e91f95bb846159cb0cb0b"
integrity sha512-yPxMLLZUV529HQIAVSEWHEjOLDWn+abEZ+E7VIq3vIAs9ew3fG7U/StUz+mA8+zr7iTSp9wlGUXdZi8ZRtQ1Qw==
dependencies:
sequential-workflow-model "^0.2.0"

Expand Down
4 changes: 2 additions & 2 deletions demos/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sequential-workflow-designer": "^0.29.1",
"sequential-workflow-designer-react": "^0.29.1"
"sequential-workflow-designer": "^0.29.2",
"sequential-workflow-designer-react": "^0.29.2"
},
"devDependencies": {
"@types/jest": "^29.2.5",
Expand Down
4 changes: 2 additions & 2 deletions demos/svelte-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"eslint": "eslint ./src --ext .ts"
},
"dependencies": {
"sequential-workflow-designer": "^0.29.1",
"sequential-workflow-designer-svelte": "^0.29.1"
"sequential-workflow-designer": "^0.29.2",
"sequential-workflow-designer-svelte": "^0.29.2"
},
"devDependencies": {
"@sveltejs/adapter-static": "^2.0.3",
Expand Down
8 changes: 7 additions & 1 deletion designer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequential-workflow-designer",
"description": "Customizable no-code component for building flow-based programming applications.",
"version": "0.29.1",
"version": "0.29.2",
"type": "module",
"main": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
Expand All @@ -22,6 +22,9 @@
"./css/designer-light.css": {
"default": "./css/designer-light.css"
},
"./css/designer-soft.css": {
"default": "./css/designer-soft.css"
},
"./css/designer-dark.css": {
"default": "./css/designer-dark.css"
},
Expand All @@ -34,6 +37,9 @@
"./sass/designer-light.scss": {
"default": "./sass/designer-light.scss"
},
"./sass/designer-soft.scss": {
"default": "./sass/designer-soft.scss"
},
"./sass/designer-dark.scss": {
"default": "./sass/designer-dark.scss"
}
Expand Down
47 changes: 47 additions & 0 deletions designer/sass/designer-soft.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@import './designer-theme.scss';

$joinColor: #2a2a2a;

@include sqd-theme-ui-toolbox(
'soft',
$groupBackgroundColor: #efefef,
$filterBorder: 1px solid #dbdbdb,
$filterBorderColorFocused: #c3c3c3,
$panelBoxShadow: (0 1px 4px rgba(0, 0, 0, 0.15))
);
@include sqd-theme-ui-toolbox-item(
'soft',
$itemBorder: 1px solid #dbdbdb,
$itemBorderHovered: #cfcfcf,
$itemBoxShadow: (0 1px 3px rgba(0, 0, 0, 0.1)),
$noIconBackgroundColor: #e9e9e9
);
@include sqd-theme-ui-control-bar('soft', $panelBoxShadow: (0 1px 4px rgba(0, 0, 0, 0.15)));
@include sqd-theme-ui-editor('soft', $panelBoxShadow: (0 1px 4px rgba(0, 0, 0, 0.15)), $toggleBoxShadow: (0 1px 4px rgba(0, 0, 0, 0.1)));
@include sqd-theme-ui-context-menu('soft');

@include sqd-theme-workspace('soft');
@include sqd-theme-line-grid('soft', $strokeColor: #ebebeb);
@include sqd-theme-join('soft', $joinStrokeColor: $joinColor);
@include sqd-theme-region('soft', $strokeColor: #e9e9e9);
@include sqd-theme-placeholder('soft', $rectFillColor: #e9e9e9, $rectStrokeColor: #707070);
@include sqd-theme-validation-error-badge('soft');

@include sqd-theme-start-stop-root-component('soft', $circleFillColor: #3747dd);

@include sqd-theme-task-step-component(
'soft',
$rectStrokeColor: #dbdbdb,
$rectShadow: (0 1px 3px rgba(0, 0, 0, 0.1)),
$emptyIconColor: #e9e9e9,
$inputStrokeColor: $joinColor,
$outputFillColor: $joinColor
);
@include sqd-theme-switch-step-component(
'soft',
$labelPrimaryFillColor: #3747dd,
$labelSecondaryTextColor: #555555,
$labelSecondaryFillColor: #e9e9e9,
$inputStrokeColor: $joinColor
);
@include sqd-theme-container-step-component('soft', $labelFillColor: #3747dd, $inputStrokeColor: $joinColor);
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export const createSwitchStepComponentViewFactory =
let maxBranchesHeight = 0;

branchNames.forEach(branchName => {
const component = viewContext.createSequenceComponent(g, step.branches[branchName]);

const labelY = paddingTop + cfg.nameLabel.height + cfg.connectionHeight;
const translatedBranchName = viewContext.i18n(`stepComponent.${step.type}.branchName`, branchName);
const labelView = LabelView.create(g, labelY, cfg.branchNameLabel, translatedBranchName, 'secondary');

const component = viewContext.createSequenceComponent(g, step.branches[branchName]);

const halfOfWidestBranchElement = Math.max(labelView.width, cfg.minBranchWidth) / 2;

const branchOffsetLeft = Math.max(halfOfWidestBranchElement - component.view.joinX, 0) + cfg.paddingX;
Expand Down
1 change: 1 addition & 0 deletions examples/assets/auto-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

function init(id, isAutoSelectDisabled) {
const configuration = {
theme: 'soft',
steps: {
iconUrlProvider: () => './assets/icon-task.svg',
isAutoSelectDisabled
Expand Down
1 change: 1 addition & 0 deletions examples/assets/code-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function reload(definition) {
}

const configuration = {
theme: 'soft',
toolbox: {
groups: [
{
Expand Down
24 changes: 16 additions & 8 deletions examples/assets/common.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
html,
body,
h1,
select {
font:
13px/1.3em 'Open Sans',
14px/1.3em 'Open Sans',
Arial,
Verdana,
Serif;
Expand All @@ -12,15 +13,15 @@ select {

.title-bar {
display: flex;
min-height: 40px;
background: #242424;
min-height: 60px;
align-items: center;
width: 100%;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
background: #fff;
box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.06);
}
.title-bar,
.title-bar a {
color: #fff;
color: #000;
text-decoration: none;
}
.title-bar a:hover {
Expand All @@ -31,11 +32,15 @@ select {
}
.title-bar select,
.title-bar button {
background: #fff;
background: #efefef;
color: #000;
border: 0;
padding: 5px;
border-radius: 5px;
padding: 6px 12px;
border-radius: 10px;
}
.title-bar select:hover,
.title-bar button:hover {
background: #e8e8e8;
}
.title-bar button {
cursor: pointer;
Expand All @@ -47,6 +52,9 @@ select {
.text-end {
text-align: end;
}
.text-gray {
color: #d7d7d7;
}
@media only screen and (max-width: 700px) {
.hidden-mobile {
display: none;
Expand Down
1 change: 1 addition & 0 deletions examples/assets/editing-restrictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function load() {
};
let designer;
const configuration = {
theme: 'soft',
undoStackSize: 10,
toolbox: {
isCollapsed: true,
Expand Down
5 changes: 3 additions & 2 deletions examples/assets/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ let validationStatusText;
const localStorageKey = 'sqdFullscreen';

function refreshValidationStatus() {
validationStatusText.innerText = designer.isValid() ? 'Definition is valid' : 'Definition is invalid';
validationStatusText.innerText = designer.isValid() ? 'Definition is valid' : 'Definition is invalid';
}

function loadState() {
Expand All @@ -111,6 +111,7 @@ function saveState() {
const initialState = loadState();

const configuration = {
theme: 'soft',
undoStackSize: 20,
undoStack: initialState.undoStack,

Expand Down Expand Up @@ -178,7 +179,7 @@ function getStartDefinition() {
createIfStep(
'00000000000000000000000000000001',
[createTaskStep('00000000000000000000000000000002', 'save', 'Save file', { isInvalid: true })],
[createTaskStep('00000000000000000000000000000003', 'text', 'Send email')]
[createTaskStep('00000000000000000000000000000003', 'text', 'Ask AI')]
),
createContainerStep('00000000000000000000000000000004', [
createTaskStep('00000000000000000000000000000005', 'task', 'Create task')
Expand Down
1 change: 1 addition & 0 deletions examples/assets/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function mount(lang) {
return (LANG[lang] && LANG[lang][key]) || defaultValue;
};
const configuration = {
theme: 'soft',
undoStackSize: 5,
toolbox: {
groups: [
Expand Down
3 changes: 2 additions & 1 deletion examples/assets/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ function embedStylesheet(url) {
document.write(`<link href="${url}" rel="stylesheet">`);
}

const baseUrl = isTestEnv() ? '../designer' : '//cdn.jsdelivr.net/npm/[email protected].1';
const baseUrl = isTestEnv() ? '../designer' : '//cdn.jsdelivr.net/npm/[email protected].2';

embedScript(`${baseUrl}/dist/index.umd.js`);
embedStylesheet(`${baseUrl}/css/designer.css`);
embedStylesheet(`${baseUrl}/css/designer-light.css`);
embedStylesheet(`${baseUrl}/css/designer-soft.css`);
embedStylesheet(`${baseUrl}/css/designer-dark.css`);
2 changes: 1 addition & 1 deletion examples/assets/light-dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ function install(placeholder, theme) {
}

window.addEventListener('load', () => {
install(document.getElementById('light'), 'light');
install(document.getElementById('light'), 'soft');
install(document.getElementById('dark'), 'dark');
});
1 change: 1 addition & 0 deletions examples/assets/live-testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function stepEditorProvider(step, editorContext, _definition, isReadonly) {
}

const configuration = {
theme: 'soft',
undoStackSize: 5,

toolbox: {
Expand Down
1 change: 1 addition & 0 deletions examples/assets/multi-conditional-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function load() {
properties: {}
};
const configuration = {
theme: 'soft',
toolbox: {
groups: [
{
Expand Down
1 change: 1 addition & 0 deletions examples/assets/particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ class Popup {
popupCloseButton.innerText = 'Save ' + particle.colorA;

const designer = sequentialWorkflowDesigner.Designer.create(popupPlaceholder, particle.definition, {
theme: 'soft',
toolbox: {
groups: [
{
Expand Down
1 change: 1 addition & 0 deletions examples/assets/rendering-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function initDesigner(testCaseName) {

const definition = testCases[testCaseName];
const configuration = {
theme: 'soft',
toolbox: false,

steps: {
Expand Down
1 change: 1 addition & 0 deletions examples/assets/scrollable-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const definition = {
properties: {}
};
const configuration = {
theme: 'soft',
toolbox: {
groups: [
{
Expand Down
1 change: 1 addition & 0 deletions examples/assets/stress-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Steps {
}

const configuration = {
theme: 'soft',
steps: {
iconUrlProvider: (_, type) => {
return `./assets/icon-${type}.svg`;
Expand Down
5 changes: 3 additions & 2 deletions examples/auto-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
<div class="column">
<h1>🌀 Auto-Select Example</h1>
</div>
<div class="column text-end flex-1">
<a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank">GitHub</a>
<div class="column text-end flex-1 text-gray">
<a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank">GitHub</a> |
<a href="https://nocode-js.com" target="_blank">NoCode JS</a>
</div>
</header>

Expand Down
Loading