Releases: nocode-js/sequential-workflow-designer
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);
}
0.18.3
0.18.2
0.18.1
0.18.0
0.17.0
This version introduces a new argument for editor providers: isReadonly
. Now when the designer is in the read-only mode, the editor providers can render the read-only version of the editor.
Breaking Changes
This version finally renames the "global editor" into the "root editor". This change is made in the designer package and all wrappers, except the Svelte package. The Svelte package uses a new name from the beginning.
const configuration = {
editors: {
// globalEditorProvider: () => {}, is not supported anymore, use `rootEditorProvider` instead.
rootEditorProvider: (definition, rootContext, isReadonly) => { /* ... */ },
// ...
}
};
This version also renames the sqd-global-editor
class of the root editor into the sqd-root-editor
class.
React
// globalEditor={} is not supported anymore, use `rootEditor={}` instead.
<SequentialWorkflowDesigner
rootEditor={<RootEditor />} ... />
Angular
<!-- [globalEditor]="" is not supported anymore, use [rootEditor]="" instead. -->
<sqd-designer ...
[rootEditor]="rootEditor"></sqd-designer>