sequential-workflow-designer-react 0.10.1 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.cjs CHANGED
@@ -183,9 +183,9 @@ function SequentialWorkflowDesigner(props) {
183
183
  }
184
184
  return Presenter.render(externalEditorClassName, editorRootRef, jsxRuntime.jsx(StepEditorWrapperContext, __assign({ step: step, context: context }, { children: stepEditorRef.current })));
185
185
  }
186
- function customActionHandler(action, step) {
186
+ function customActionHandler(action, step, sequence, context) {
187
187
  if (customActionHandlerRef.current) {
188
- customActionHandlerRef.current(action, step);
188
+ customActionHandlerRef.current(action, step, sequence, context);
189
189
  }
190
190
  }
191
191
  function tryDestroy() {
@@ -294,6 +294,12 @@ var SequentialWorkflowDesignerController = /** @class */ (function () {
294
294
  this.updateBadges = function () {
295
295
  _this.getDesigner().updateBadges();
296
296
  };
297
+ /**
298
+ * @description Rerender the root component and all its children.
299
+ */
300
+ this.updateRootComponent = function () {
301
+ _this.getDesigner().updateRootComponent();
302
+ };
297
303
  // Nothing...
298
304
  }
299
305
  SequentialWorkflowDesignerController.create = function () {
package/lib/esm/index.js CHANGED
@@ -181,9 +181,9 @@ function SequentialWorkflowDesigner(props) {
181
181
  }
182
182
  return Presenter.render(externalEditorClassName, editorRootRef, jsx(StepEditorWrapperContext, __assign({ step: step, context: context }, { children: stepEditorRef.current })));
183
183
  }
184
- function customActionHandler(action, step) {
184
+ function customActionHandler(action, step, sequence, context) {
185
185
  if (customActionHandlerRef.current) {
186
- customActionHandlerRef.current(action, step);
186
+ customActionHandlerRef.current(action, step, sequence, context);
187
187
  }
188
188
  }
189
189
  function tryDestroy() {
@@ -292,6 +292,12 @@ var SequentialWorkflowDesignerController = /** @class */ (function () {
292
292
  this.updateBadges = function () {
293
293
  _this.getDesigner().updateBadges();
294
294
  };
295
+ /**
296
+ * @description Rerender the root component and all its children.
297
+ */
298
+ this.updateRootComponent = function () {
299
+ _this.getDesigner().updateRootComponent();
300
+ };
295
301
  // Nothing...
296
302
  }
297
303
  SequentialWorkflowDesignerController.create = function () {
package/lib/index.d.ts CHANGED
@@ -42,6 +42,10 @@ declare class SequentialWorkflowDesignerController {
42
42
  * @description Updates all badges.
43
43
  */
44
44
  readonly updateBadges: () => void;
45
+ /**
46
+ * @description Rerender the root component and all its children.
47
+ */
48
+ readonly updateRootComponent: () => void;
45
49
  /**
46
50
  * @returns `true` if the controller is ready to be used, `false` otherwise.
47
51
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sequential-workflow-designer-react",
3
3
  "description": "React wrapper for Sequential Workflow Designer component.",
4
- "version": "0.10.1",
4
+ "version": "0.11.0",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "types": "./lib/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "peerDependencies": {
48
48
  "react": "^18.2.0",
49
49
  "react-dom": "^18.2.0",
50
- "sequential-workflow-designer": "^0.10.1"
50
+ "sequential-workflow-designer": "^0.11.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@rollup/plugin-node-resolve": "^15.0.1",
@@ -63,7 +63,7 @@
63
63
  "prettier": "^2.8.2",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
- "sequential-workflow-designer": "^0.10.1",
66
+ "sequential-workflow-designer": "^0.11.0",
67
67
  "rollup": "^3.18.0",
68
68
  "rollup-plugin-dts": "^5.2.0",
69
69
  "rollup-plugin-typescript2": "^0.34.1",