sequential-workflow-designer-react 0.19.4 → 0.20.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 +4 -7
- package/lib/esm/index.js +4 -7
- package/lib/index.d.ts +2 -1
- package/package.json +3 -3
package/lib/cjs/index.cjs
CHANGED
|
@@ -173,12 +173,7 @@ function SequentialWorkflowDesigner(props) {
|
|
|
173
173
|
var contextMenu = props.contextMenu;
|
|
174
174
|
var keyboard = props.keyboard;
|
|
175
175
|
var extensions = props.extensions;
|
|
176
|
-
|
|
177
|
-
throw new Error('The "controlBar" property is not set');
|
|
178
|
-
}
|
|
179
|
-
if (props.globalEditor) {
|
|
180
|
-
throw new Error('The "globalEditor" property is renamed to "rootEditor"');
|
|
181
|
-
}
|
|
176
|
+
var i18n = props.i18n;
|
|
182
177
|
function forwardDefinition() {
|
|
183
178
|
if (designerRef.current) {
|
|
184
179
|
var wd = wrapDefinition(designerRef.current.getDefinition(), designerRef.current.isValid());
|
|
@@ -291,6 +286,7 @@ function SequentialWorkflowDesigner(props) {
|
|
|
291
286
|
: false,
|
|
292
287
|
customActionHandler: customActionHandlerRef.current && customActionHandler,
|
|
293
288
|
extensions: extensions,
|
|
289
|
+
i18n: i18n,
|
|
294
290
|
isReadonly: isReadonly
|
|
295
291
|
});
|
|
296
292
|
if (controllerRef.current) {
|
|
@@ -333,7 +329,8 @@ function SequentialWorkflowDesigner(props) {
|
|
|
333
329
|
controlBar,
|
|
334
330
|
steps,
|
|
335
331
|
validator,
|
|
336
|
-
extensions
|
|
332
|
+
extensions,
|
|
333
|
+
i18n
|
|
337
334
|
]);
|
|
338
335
|
react.useEffect(function () {
|
|
339
336
|
return tryDestroy;
|
package/lib/esm/index.js
CHANGED
|
@@ -171,12 +171,7 @@ function SequentialWorkflowDesigner(props) {
|
|
|
171
171
|
var contextMenu = props.contextMenu;
|
|
172
172
|
var keyboard = props.keyboard;
|
|
173
173
|
var extensions = props.extensions;
|
|
174
|
-
|
|
175
|
-
throw new Error('The "controlBar" property is not set');
|
|
176
|
-
}
|
|
177
|
-
if (props.globalEditor) {
|
|
178
|
-
throw new Error('The "globalEditor" property is renamed to "rootEditor"');
|
|
179
|
-
}
|
|
174
|
+
var i18n = props.i18n;
|
|
180
175
|
function forwardDefinition() {
|
|
181
176
|
if (designerRef.current) {
|
|
182
177
|
var wd = wrapDefinition(designerRef.current.getDefinition(), designerRef.current.isValid());
|
|
@@ -289,6 +284,7 @@ function SequentialWorkflowDesigner(props) {
|
|
|
289
284
|
: false,
|
|
290
285
|
customActionHandler: customActionHandlerRef.current && customActionHandler,
|
|
291
286
|
extensions: extensions,
|
|
287
|
+
i18n: i18n,
|
|
292
288
|
isReadonly: isReadonly
|
|
293
289
|
});
|
|
294
290
|
if (controllerRef.current) {
|
|
@@ -331,7 +327,8 @@ function SequentialWorkflowDesigner(props) {
|
|
|
331
327
|
controlBar,
|
|
332
328
|
steps,
|
|
333
329
|
validator,
|
|
334
|
-
extensions
|
|
330
|
+
extensions,
|
|
331
|
+
i18n
|
|
335
332
|
]);
|
|
336
333
|
useEffect(function () {
|
|
337
334
|
return tryDestroy;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MutableRefObject, Context, ReactNode, DependencyList } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom/client';
|
|
4
|
-
import { Definition, RootEditorContext, Designer, ToolboxConfiguration, RootEditorProvider, StepEditorProvider, StepsConfiguration, ValidatorConfiguration, KeyboardConfiguration, CustomActionHandler, DesignerExtension, Step, StepEditorContext } from 'sequential-workflow-designer';
|
|
4
|
+
import { Definition, RootEditorContext, Designer, ToolboxConfiguration, RootEditorProvider, StepEditorProvider, StepsConfiguration, ValidatorConfiguration, KeyboardConfiguration, CustomActionHandler, DesignerExtension, I18n, Step, StepEditorContext } from 'sequential-workflow-designer';
|
|
5
5
|
|
|
6
6
|
declare class Presenter {
|
|
7
7
|
static render(className: string, rootRef: MutableRefObject<ReactDOM.Root | null>, element: JSX.Element): HTMLElement;
|
|
@@ -91,6 +91,7 @@ interface SequentialWorkflowDesignerProps<TDefinition extends Definition> {
|
|
|
91
91
|
controller?: SequentialWorkflowDesignerController;
|
|
92
92
|
customActionHandler?: CustomActionHandler;
|
|
93
93
|
extensions?: DesignerExtension[];
|
|
94
|
+
i18n?: I18n;
|
|
94
95
|
}
|
|
95
96
|
declare function SequentialWorkflowDesigner<TDefinition extends Definition>(props: SequentialWorkflowDesignerProps<TDefinition>): JSX.Element;
|
|
96
97
|
|
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.
|
|
4
|
+
"version": "0.20.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.
|
|
50
|
+
"sequential-workflow-designer": "^0.20.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.
|
|
66
|
+
"sequential-workflow-designer": "^0.20.0",
|
|
67
67
|
"rollup": "^3.18.0",
|
|
68
68
|
"rollup-plugin-dts": "^5.2.0",
|
|
69
69
|
"rollup-plugin-typescript2": "^0.34.1",
|