From 53c9d33b368c4a248366267f8e94040910d99a17 Mon Sep 17 00:00:00 2001 From: Bart Tadych Date: Fri, 10 Jan 2025 19:09:15 +0100 Subject: [PATCH] 0.14.5. (#50) --- CHANGELOG.md | 4 ++++ README.md | 1 + demos/webpack-app/package.json | 4 ++-- editor/package.json | 6 +++--- editor/src/editor-provider.ts | 15 +++++++++++++++ model/package.json | 2 +- 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ab3748..1826c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/README.md b/README.md index ffd4f0b..68f2dda 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/demos/webpack-app/package.json b/demos/webpack-app/package.json index 74057f3..fa91bb6 100644 --- a/demos/webpack-app/package.json +++ b/demos/webpack-app/package.json @@ -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", diff --git a/editor/package.json b/editor/package.json index 0c7cbb0..6d6bdbd 100644 --- a/editor/package.json +++ b/editor/package.json @@ -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", @@ -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": { diff --git a/editor/src/editor-provider.ts b/editor/src/editor-provider.ts index babe3ef..002ee5e 100644 --- a/editor/src/editor-provider.ts +++ b/editor/src/editor-provider.ts @@ -25,6 +25,12 @@ import { EditorHeaderData } from './editor-header'; import { sortToolboxGroups } from './core/sort-toolbox-groups'; export class EditorProvider { + /** + * Creates an editor provider. + * @param definitionModel The definition model. + * @param configuration The configuration. + * @returns The editor provider. + */ public static create( definitionModel: DefinitionModel, configuration: EditorProviderConfiguration @@ -121,10 +127,19 @@ export class EditorProvider { }; } + /** + * 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); } diff --git a/model/package.json b/model/package.json index d6c4312..2b2b60a 100644 --- a/model/package.json +++ b/model/package.json @@ -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",