Skip to content
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

0.14.5. #50

Merged
merged 1 commit into from
Jan 10, 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 @@
## O.14.5

Added comments to describe the `EditorProvider` class.

## 0.14.4

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).
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Powerful workflow editor builder for sequential workflows. Written in TypeScript
Pro:

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

## 🚀 Installation

Expand Down
4 changes: 2 additions & 2 deletions demos/webpack-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"sequential-workflow-model": "^0.2.0",
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-machine": "^0.4.0",
"sequential-workflow-editor-model": "^0.14.4",
"sequential-workflow-editor": "^0.14.4"
"sequential-workflow-editor-model": "^0.14.5",
"sequential-workflow-editor": "^0.14.5"
},
"devDependencies": {
"ts-loader": "^9.4.2",
Expand Down
6 changes: 3 additions & 3 deletions editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sequential-workflow-editor",
"version": "0.14.4",
"version": "0.14.5",
"type": "module",
"main": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -46,11 +46,11 @@
"prettier:fix": "prettier --write ./src ./css"
},
"dependencies": {
"sequential-workflow-editor-model": "^0.14.4",
"sequential-workflow-editor-model": "^0.14.5",
"sequential-workflow-model": "^0.2.0"
},
"peerDependencies": {
"sequential-workflow-editor-model": "^0.14.4",
"sequential-workflow-editor-model": "^0.14.5",
"sequential-workflow-model": "^0.2.0"
},
"devDependencies": {
Expand Down
15 changes: 15 additions & 0 deletions editor/src/editor-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ import { EditorHeaderData } from './editor-header';
import { sortToolboxGroups } from './core/sort-toolbox-groups';

export class EditorProvider<TDefinition extends Definition> {
/**
* Creates an editor provider.
* @param definitionModel The definition model.
* @param configuration The configuration.
* @returns The editor provider.
*/
public static create<TDef extends Definition>(
definitionModel: DefinitionModel<TDef>,
configuration: EditorProviderConfiguration
Expand Down Expand Up @@ -121,10 +127,19 @@ export class EditorProvider<TDefinition extends Definition> {
};
}

/**
* Activates the definition (creates a new instance of the definition with the default values).
* @returns The activated definition.
*/
public activateDefinition(): TDefinition {
return this.activator.activateDefinition();
}

/**
* Activates a step with the default values.
* @param type The type of the step to activate.
* @returns The activated step.
*/
public activateStep(type: string): Step {
return this.activator.activateStep(type);
}
Expand Down
2 changes: 1 addition & 1 deletion model/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sequential-workflow-editor-model",
"version": "0.14.4",
"version": "0.14.5",
"homepage": "https://nocode-js.com/",
"author": {
"name": "NoCode JS",
Expand Down
Loading