sequential-workflow-designer-svelte 0.35.3 → 0.37.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.
@@ -95,9 +95,10 @@ function init() {
95
95
  })
96
96
  );
97
97
  d.onDefinitionChanged.subscribe(
98
- (definition2) => dispatch("definitionChanged", {
99
- definition: definition2,
100
- isValid: d.isValid()
98
+ (event) => dispatch("definitionChanged", {
99
+ definition: event.definition,
100
+ isValid: d.isValid(),
101
+ duplicatedStepIds: event.duplicatedStepIds
101
102
  })
102
103
  );
103
104
  d.onSelectedStepIdChanged.subscribe((stepId) => dispatch("selectedStepIdChanged", { stepId }));
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import { DefinitionWalker, type Definition, type StepsConfiguration, type ToolboxConfiguration, type UndoStack, type ValidatorConfiguration, type PlaceholderConfiguration, type UidGenerator, type DesignerExtension, type CustomActionHandler, type StepEditorProvider, type RootEditorProvider, type KeyboardConfiguration, type I18n, type PreferenceStorage } from 'sequential-workflow-designer';
2
+ import { DefinitionWalker, type Definition, type StepsConfiguration, type ToolboxConfiguration, type UndoStack, type ValidatorConfiguration, type PlaceholderConfiguration, type UidGenerator, type DesignerExtension, type CustomActionHandler, type StepEditorProvider, type RootEditorProvider, type KeyboardConfiguration, type I18n, type PreferenceStorage, type DuplicatedStepId } from 'sequential-workflow-designer';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  definition: Definition;
@@ -40,6 +40,7 @@ declare const __propDef: {
40
40
  definitionChanged: CustomEvent<{
41
41
  definition: Definition;
42
42
  isValid: boolean;
43
+ duplicatedStepIds?: DuplicatedStepId[] | undefined;
43
44
  }>;
44
45
  selectedStepIdChanged: CustomEvent<{
45
46
  stepId: string | null;
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.35.3",
4
+ "version": "0.37.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.35.3"
31
+ "sequential-workflow-designer": "^0.37.0"
32
32
  },
33
33
  "devDependencies": {
34
- "sequential-workflow-designer": "^0.35.3",
34
+ "sequential-workflow-designer": "^0.37.0",
35
35
  "@sveltejs/adapter-static": "^2.0.3",
36
36
  "@sveltejs/kit": "^1.20.4",
37
37
  "@sveltejs/package": "^2.0.0",