sequential-workflow-designer-svelte 0.16.10 → 0.18.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/README.md CHANGED
@@ -83,6 +83,7 @@ The root editor:
83
83
 
84
84
  export let context: RootEditorContext;
85
85
  export let definition: Definition;
86
+ export let isReadonly: boolean;
86
87
  let velocity = definition.properties.velocity;
87
88
 
88
89
  function onVelocityChanged(event: Event) {
@@ -104,6 +105,7 @@ The step editor:
104
105
  export let context: StepEditorContext;
105
106
  export let definition: Definition;
106
107
  export let step: Step;
108
+ export let isReadonly: boolean;
107
109
 
108
110
  let name = step.name;
109
111
 
@@ -32,31 +32,31 @@ let placeholder;
32
32
  function init() {
33
33
  const editors = (stepEditor || nativeStepEditor) && (rootEditor || nativeRootEditor) ? {
34
34
  isCollapsed: isEditorCollapsed,
35
- stepEditorProvider: (step, context, def) => {
35
+ stepEditorProvider: (step, context, def, isReadonly2) => {
36
36
  if (stepEditor) {
37
37
  const root = document.createElement("div");
38
38
  new stepEditor({
39
39
  target: root,
40
- props: { step, context, definition: def }
40
+ props: { step, context, definition: def, isReadonly: isReadonly2 }
41
41
  });
42
42
  return root;
43
43
  }
44
44
  if (nativeStepEditor) {
45
- return nativeStepEditor(step, context, def);
45
+ return nativeStepEditor(step, context, def, isReadonly2);
46
46
  }
47
47
  throw new Error("No step editor provided");
48
48
  },
49
- globalEditorProvider: (def, context) => {
49
+ rootEditorProvider: (def, context, isReadonly2) => {
50
50
  if (rootEditor) {
51
51
  const root = document.createElement("div");
52
52
  new rootEditor({
53
53
  target: root,
54
- props: { definition: def, context }
54
+ props: { definition: def, context, isReadonly: isReadonly2 }
55
55
  });
56
56
  return root;
57
57
  }
58
58
  if (nativeRootEditor) {
59
- return nativeRootEditor(def, context);
59
+ return nativeRootEditor(def, context, isReadonly2);
60
60
  }
61
61
  throw new Error("No root editor provided");
62
62
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sequential-workflow-designer-svelte",
3
3
  "description": "Svelte wrapper for Sequential Workflow Designer component.",
4
- "version": "0.16.10",
4
+ "version": "0.18.0",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "prepare": "cp ../LICENSE LICENSE",
@@ -28,10 +28,10 @@
28
28
  ],
29
29
  "peerDependencies": {
30
30
  "svelte": "^4.0.0",
31
- "sequential-workflow-designer": "^0.16.10"
31
+ "sequential-workflow-designer": "^0.18.0"
32
32
  },
33
33
  "devDependencies": {
34
- "sequential-workflow-designer": "^0.16.10",
34
+ "sequential-workflow-designer": "^0.18.0",
35
35
  "@sveltejs/adapter-static": "^2.0.3",
36
36
  "@sveltejs/kit": "^1.20.4",
37
37
  "@sveltejs/package": "^2.0.0",