lecom-modeler 0.1.22 → 0.1.24

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/index.d.cts CHANGED
@@ -19,7 +19,8 @@ declare enum EditorMode {
19
19
  declare enum ElementType {
20
20
  ACTIVITY = "activity",
21
21
  ROUTING = "routing",
22
- GATEWAY = "gateway"
22
+ GATEWAY = "gateway",
23
+ SUB_PROCESS = "sub_process"
23
24
  }
24
25
  declare enum ActivityVariant {
25
26
  START = "start",
@@ -52,6 +53,14 @@ interface ActivityElement {
52
53
  targets?: Element[];
53
54
  edgeTargets?: Element[];
54
55
  }
56
+ interface SubProcessElement {
57
+ id: string;
58
+ type: ElementType.SUB_PROCESS;
59
+ variant?: ActivityVariant;
60
+ label?: string;
61
+ targets?: Element[];
62
+ edgeTargets?: Element[];
63
+ }
55
64
  interface RoutingElement {
56
65
  id: string;
57
66
  type: ElementType.ROUTING;
@@ -68,7 +77,7 @@ interface GatewayElement {
68
77
  subVariant?: ComplexVariant | ExclusiveVariant;
69
78
  targets?: Element[];
70
79
  }
71
- type Element = ActivityElement | RoutingElement | GatewayElement;
80
+ type Element = ActivityElement | RoutingElement | GatewayElement | SubProcessElement;
72
81
  interface SelectionUtils {
73
82
  deselectAll?: () => Promise<unknown>;
74
83
  selectElement?: (elementId: string) => boolean;
@@ -84,4 +93,4 @@ interface ModelerProps {
84
93
 
85
94
  declare const Modeler: (props: ModelerProps) => react_jsx_runtime.JSX.Element;
86
95
 
87
- export { ActivityVariant, ComplexVariant, EditorMode, type Element, ElementType, ExclusiveVariant, GatewayVariant, Modeler, type ModelerProps, RoutingVariant, type SelectionUtils, useSelectionUtils };
96
+ export { ActivityVariant, ComplexVariant, EditorMode, type Element, ElementType, ExclusiveVariant, GatewayVariant, Modeler, type ModelerProps, type RoutingElement, RoutingVariant, type SelectionUtils, useSelectionUtils };
package/lib/index.d.ts CHANGED
@@ -19,7 +19,8 @@ declare enum EditorMode {
19
19
  declare enum ElementType {
20
20
  ACTIVITY = "activity",
21
21
  ROUTING = "routing",
22
- GATEWAY = "gateway"
22
+ GATEWAY = "gateway",
23
+ SUB_PROCESS = "sub_process"
23
24
  }
24
25
  declare enum ActivityVariant {
25
26
  START = "start",
@@ -52,6 +53,14 @@ interface ActivityElement {
52
53
  targets?: Element[];
53
54
  edgeTargets?: Element[];
54
55
  }
56
+ interface SubProcessElement {
57
+ id: string;
58
+ type: ElementType.SUB_PROCESS;
59
+ variant?: ActivityVariant;
60
+ label?: string;
61
+ targets?: Element[];
62
+ edgeTargets?: Element[];
63
+ }
55
64
  interface RoutingElement {
56
65
  id: string;
57
66
  type: ElementType.ROUTING;
@@ -68,7 +77,7 @@ interface GatewayElement {
68
77
  subVariant?: ComplexVariant | ExclusiveVariant;
69
78
  targets?: Element[];
70
79
  }
71
- type Element = ActivityElement | RoutingElement | GatewayElement;
80
+ type Element = ActivityElement | RoutingElement | GatewayElement | SubProcessElement;
72
81
  interface SelectionUtils {
73
82
  deselectAll?: () => Promise<unknown>;
74
83
  selectElement?: (elementId: string) => boolean;
@@ -84,4 +93,4 @@ interface ModelerProps {
84
93
 
85
94
  declare const Modeler: (props: ModelerProps) => react_jsx_runtime.JSX.Element;
86
95
 
87
- export { ActivityVariant, ComplexVariant, EditorMode, type Element, ElementType, ExclusiveVariant, GatewayVariant, Modeler, type ModelerProps, RoutingVariant, type SelectionUtils, useSelectionUtils };
96
+ export { ActivityVariant, ComplexVariant, EditorMode, type Element, ElementType, ExclusiveVariant, GatewayVariant, Modeler, type ModelerProps, type RoutingElement, RoutingVariant, type SelectionUtils, useSelectionUtils };