sequential-workflow-designer 0.24.0 → 0.24.1
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/README.md +4 -4
- package/dist/index.umd.js +3 -3
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.js +3 -3
- package/lib/index.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,10 +103,10 @@ Add the below code to your head section in HTML document.
|
|
|
103
103
|
```html
|
|
104
104
|
<head>
|
|
105
105
|
...
|
|
106
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.
|
|
107
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.
|
|
108
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.
|
|
109
|
-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.
|
|
106
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/css/designer.css" rel="stylesheet">
|
|
107
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/css/designer-light.css" rel="stylesheet">
|
|
108
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/css/designer-dark.css" rel="stylesheet">
|
|
109
|
+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.1/dist/index.umd.js"></script>
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
Call the designer by:
|
package/dist/index.umd.js
CHANGED
|
@@ -4571,14 +4571,14 @@
|
|
|
4571
4571
|
if (!placeholder) {
|
|
4572
4572
|
throw new Error('Placeholder is not defined');
|
|
4573
4573
|
}
|
|
4574
|
-
if (!isElementAttached(placeholder)) {
|
|
4575
|
-
throw new Error('Placeholder is not attached to the DOM');
|
|
4576
|
-
}
|
|
4577
4574
|
if (!startDefinition) {
|
|
4578
4575
|
throw new Error('Start definition is not defined');
|
|
4579
4576
|
}
|
|
4580
4577
|
const config = configuration;
|
|
4581
4578
|
validateConfiguration(config);
|
|
4579
|
+
if (!config.disableDomAttachmentCheck && !isElementAttached(placeholder)) {
|
|
4580
|
+
throw new Error('Placeholder is not attached to the DOM');
|
|
4581
|
+
}
|
|
4582
4582
|
const services = ServicesResolver.resolve(configuration.extensions, config);
|
|
4583
4583
|
const designerContext = DesignerContext.create(placeholder, startDefinition, config, services);
|
|
4584
4584
|
const designerApi = DesignerApi.create(designerContext);
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -4386,14 +4386,14 @@ class Designer {
|
|
|
4386
4386
|
if (!placeholder) {
|
|
4387
4387
|
throw new Error('Placeholder is not defined');
|
|
4388
4388
|
}
|
|
4389
|
-
if (!isElementAttached(placeholder)) {
|
|
4390
|
-
throw new Error('Placeholder is not attached to the DOM');
|
|
4391
|
-
}
|
|
4392
4389
|
if (!startDefinition) {
|
|
4393
4390
|
throw new Error('Start definition is not defined');
|
|
4394
4391
|
}
|
|
4395
4392
|
const config = configuration;
|
|
4396
4393
|
validateConfiguration(config);
|
|
4394
|
+
if (!config.disableDomAttachmentCheck && !isElementAttached(placeholder)) {
|
|
4395
|
+
throw new Error('Placeholder is not attached to the DOM');
|
|
4396
|
+
}
|
|
4397
4397
|
const services = ServicesResolver.resolve(configuration.extensions, config);
|
|
4398
4398
|
const designerContext = DesignerContext.create(placeholder, startDefinition, config, services);
|
|
4399
4399
|
const designerApi = DesignerApi.create(designerContext);
|
package/lib/esm/index.js
CHANGED
|
@@ -4385,14 +4385,14 @@ class Designer {
|
|
|
4385
4385
|
if (!placeholder) {
|
|
4386
4386
|
throw new Error('Placeholder is not defined');
|
|
4387
4387
|
}
|
|
4388
|
-
if (!isElementAttached(placeholder)) {
|
|
4389
|
-
throw new Error('Placeholder is not attached to the DOM');
|
|
4390
|
-
}
|
|
4391
4388
|
if (!startDefinition) {
|
|
4392
4389
|
throw new Error('Start definition is not defined');
|
|
4393
4390
|
}
|
|
4394
4391
|
const config = configuration;
|
|
4395
4392
|
validateConfiguration(config);
|
|
4393
|
+
if (!config.disableDomAttachmentCheck && !isElementAttached(placeholder)) {
|
|
4394
|
+
throw new Error('Placeholder is not attached to the DOM');
|
|
4395
|
+
}
|
|
4396
4396
|
const services = ServicesResolver.resolve(configuration.extensions, config);
|
|
4397
4397
|
const designerContext = DesignerContext.create(placeholder, startDefinition, config, services);
|
|
4398
4398
|
const designerApi = DesignerApi.create(designerContext);
|
package/lib/index.d.ts
CHANGED
|
@@ -935,6 +935,10 @@ interface DesignerConfiguration<TDefinition extends Definition = Definition> {
|
|
|
935
935
|
* @description Custom translation function.
|
|
936
936
|
*/
|
|
937
937
|
i18n?: I18n;
|
|
938
|
+
/**
|
|
939
|
+
* @description By default, the designer checks if the placeholder is attached to the DOM. This flag may disable this check.
|
|
940
|
+
*/
|
|
941
|
+
disableDomAttachmentCheck?: boolean;
|
|
938
942
|
}
|
|
939
943
|
type UidGenerator = () => string;
|
|
940
944
|
type I18n = (key: string, defaultValue: string) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequential-workflow-designer",
|
|
3
3
|
"description": "Customizable no-code component for building flow-based programming applications.",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|