Releases: nocode-js/sequential-workflow-designer
Releases · nocode-js/sequential-workflow-designer
0.20.0
This version introduces the localization feature. Now you can localize the designer to any language you want.
const configuration = {
i18n: (key, defaultValue) => {
if (currentLang === 'pl') {
if (key === 'controlBar.undo') {
return 'Cofnij';
}
}
return defaultValue;
}
// ...
};
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.5
0.18.4
This version removes the features introduced in the previous release. We noticed that the proposed solution did not update the undo stack. As a result, we removed that feature in this version. Instead, we added a new method to the Designer class called replaceDefinition
, which allows for the replacement of the entire definition and updates the undo stack.
function appendStep() {
const newStep: Step = { /* ... */ };
const newDefinition = ObjectCloner.deepClone(designer.getDefinition());
newDefinition.sequence.push(newStep);
await designer.replaceDefinition(newDefinition);
}