Skip to content

Commit 53c9d33

Browse files
authored
0.14.5. (#50)
1 parent 40917b1 commit 53c9d33

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## O.14.5
2+
3+
Added comments to describe the `EditorProvider` class.
4+
15
## 0.14.4
26

37
This version exposes the `ToolboxGroup` interface in the `sequential-workflow-editor` package [#46](https://github.com/nocode-js/sequential-workflow-editor/issues/46#issuecomment-2439817733).

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Powerful workflow editor builder for sequential workflows. Written in TypeScript
2121
Pro:
2222

2323
* [📖 Pro Editors](https://nocode-js.com/examples/sequential-workflow-editor-pro/webpack-pro-app/public/editors.html)
24+
* [📫 Template System](https://nocode-js.com/examples/sequential-workflow-editor-pro/webpack-pro-app/public/template-system.html)
2425

2526
## 🚀 Installation
2627

demos/webpack-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"sequential-workflow-model": "^0.2.0",
1919
"sequential-workflow-designer": "^0.21.2",
2020
"sequential-workflow-machine": "^0.4.0",
21-
"sequential-workflow-editor-model": "^0.14.4",
22-
"sequential-workflow-editor": "^0.14.4"
21+
"sequential-workflow-editor-model": "^0.14.5",
22+
"sequential-workflow-editor": "^0.14.5"
2323
},
2424
"devDependencies": {
2525
"ts-loader": "^9.4.2",

editor/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sequential-workflow-editor",
3-
"version": "0.14.4",
3+
"version": "0.14.5",
44
"type": "module",
55
"main": "./lib/esm/index.js",
66
"types": "./lib/index.d.ts",
@@ -46,11 +46,11 @@
4646
"prettier:fix": "prettier --write ./src ./css"
4747
},
4848
"dependencies": {
49-
"sequential-workflow-editor-model": "^0.14.4",
49+
"sequential-workflow-editor-model": "^0.14.5",
5050
"sequential-workflow-model": "^0.2.0"
5151
},
5252
"peerDependencies": {
53-
"sequential-workflow-editor-model": "^0.14.4",
53+
"sequential-workflow-editor-model": "^0.14.5",
5454
"sequential-workflow-model": "^0.2.0"
5555
},
5656
"devDependencies": {

editor/src/editor-provider.ts

+15
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ import { EditorHeaderData } from './editor-header';
2525
import { sortToolboxGroups } from './core/sort-toolbox-groups';
2626

2727
export class EditorProvider<TDefinition extends Definition> {
28+
/**
29+
* Creates an editor provider.
30+
* @param definitionModel The definition model.
31+
* @param configuration The configuration.
32+
* @returns The editor provider.
33+
*/
2834
public static create<TDef extends Definition>(
2935
definitionModel: DefinitionModel<TDef>,
3036
configuration: EditorProviderConfiguration
@@ -121,10 +127,19 @@ export class EditorProvider<TDefinition extends Definition> {
121127
};
122128
}
123129

130+
/**
131+
* Activates the definition (creates a new instance of the definition with the default values).
132+
* @returns The activated definition.
133+
*/
124134
public activateDefinition(): TDefinition {
125135
return this.activator.activateDefinition();
126136
}
127137

138+
/**
139+
* Activates a step with the default values.
140+
* @param type The type of the step to activate.
141+
* @returns The activated step.
142+
*/
128143
public activateStep(type: string): Step {
129144
return this.activator.activateStep(type);
130145
}

model/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sequential-workflow-editor-model",
3-
"version": "0.14.4",
3+
"version": "0.14.5",
44
"homepage": "https://nocode-js.com/",
55
"author": {
66
"name": "NoCode JS",

0 commit comments

Comments
 (0)