@eccenca/gui-elements 23.1.0-easynav.1 → 23.1.0-easynav.3

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -1
  3. package/dist/cjs/components/Depiction/Depiction.js +13 -13
  4. package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
  5. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +20 -5
  6. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
  7. package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +17 -1
  8. package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
  9. package/dist/cjs/extensions/react-flow/edges/edgeTypes.js +10 -9
  10. package/dist/cjs/extensions/react-flow/edges/edgeTypes.js.map +1 -1
  11. package/dist/cjs/extensions/react-flow/index.js +2 -3
  12. package/dist/cjs/extensions/react-flow/index.js.map +1 -1
  13. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +54 -6
  14. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  15. package/dist/esm/common/utils/CssCustomProperties.js.map +1 -1
  16. package/dist/esm/components/Depiction/Depiction.js +15 -14
  17. package/dist/esm/components/Depiction/Depiction.js.map +1 -1
  18. package/dist/esm/extensions/react-flow/edges/EdgeDefault.js +20 -4
  19. package/dist/esm/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
  20. package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +17 -1
  21. package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
  22. package/dist/esm/extensions/react-flow/edges/edgeTypes.js +10 -9
  23. package/dist/esm/extensions/react-flow/edges/edgeTypes.js.map +1 -1
  24. package/dist/esm/extensions/react-flow/index.js +1 -1
  25. package/dist/esm/extensions/react-flow/index.js.map +1 -1
  26. package/dist/esm/extensions/react-flow/nodes/NodeContent.js +54 -5
  27. package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  28. package/dist/types/common/utils/CssCustomProperties.d.ts +1 -1
  29. package/dist/types/extensions/react-flow/edges/EdgeDefault.d.ts +16 -1
  30. package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +12 -0
  31. package/dist/types/extensions/react-flow/edges/edgeTypes.d.ts +10 -9
  32. package/dist/types/extensions/react-flow/index.d.ts +1 -2
  33. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +26 -3
  34. package/package.json +1 -1
  35. package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +2 -2
  36. package/src/cmem/react-flow/_edges.scss +3 -2
  37. package/src/common/utils/CssCustomProperties.ts +1 -1
  38. package/src/components/Depiction/Depiction.tsx +11 -10
  39. package/src/extensions/react-flow/_config.scss +7 -4
  40. package/src/extensions/react-flow/edges/EdgeDefault.tsx +60 -5
  41. package/src/extensions/react-flow/edges/EdgeLabel.tsx +45 -1
  42. package/src/extensions/react-flow/edges/_edges.scss +131 -33
  43. package/src/extensions/react-flow/edges/edgeTypes.ts +13 -9
  44. package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +34 -13
  45. package/src/extensions/react-flow/index.ts +2 -2
  46. package/src/extensions/react-flow/nodes/NodeContent.tsx +93 -7
  47. package/src/extensions/react-flow/nodes/_nodes.scss +177 -50
  48. package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +30 -0
@@ -7,9 +7,24 @@ import {
7
7
  getEdgeCenter,
8
8
  EdgeText,
9
9
  } from "react-flow-renderer";
10
+ import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
11
+ import { IntentTypes, intentClassName } from "../../../common/Intent";
12
+ import { NodeHighlightColor, evaluateHighlightColors } from "./../nodes/NodeContent";
10
13
  import { drawEdgeStraight} from "./utils";
11
14
 
12
15
  export interface EdgeDefaultDataProps {
16
+ /**
17
+ * Overwrites the default style how the edge stroke is displayed.
18
+ */
19
+ strokeType?: "solid" | "dashed" | "dotted" | "double" | "doubledashed";
20
+ /**
21
+ * Feedback state of the node.
22
+ */
23
+ intent?: IntentTypes;
24
+ /**
25
+ * Set the color of used highlights to mark the edge.
26
+ */
27
+ highlightColor?: NodeHighlightColor | [NodeHighlightColor, NodeHighlightColor];
13
28
  /**
14
29
  * Size of the "glow" effect when the edge is hovered.
15
30
  */
@@ -20,7 +35,7 @@ export interface EdgeDefaultDataProps {
20
35
  */
21
36
  inversePath?: boolean;
22
37
  /**
23
- * Reference linnk to the SVG marker used for the start of the edge
38
+ * Reference link to the SVG marker used for the start of the edge
24
39
  */
25
40
  markerStart?: string;
26
41
  /**
@@ -49,7 +64,10 @@ export const EdgeDefault = memo(
49
64
  } = edge;
50
65
  const {
51
66
  pathGlowWidth = 10,
52
- markerStart
67
+ markerStart,
68
+ strokeType,
69
+ intent,
70
+ highlightColor,
53
71
  } = data;
54
72
 
55
73
  const pathDisplay = drawSvgPath({...edgeOriginalProperties, data});
@@ -78,18 +96,38 @@ export const EdgeDefault = memo(
78
96
  ) : null);
79
97
 
80
98
  const edgeStyle = edgeOriginalProperties.style ?? {};
99
+ const {
100
+ highlightCustomPropertySettings
101
+ } = evaluateHighlightColors("--edge-highlight", highlightColor);
102
+
81
103
  return (
82
- <g style={{...edgeStyle, color: edgeStyle.color || edgeStyle.stroke}}>
104
+ <g
105
+ className={createEdgeDefaultClassName({intent}, "")}
106
+ style={{
107
+ ...edgeStyle,
108
+ color: edgeStyle.color || edgeStyle.stroke
109
+ }}
110
+ >
111
+ { highlightColor && (
112
+ <path
113
+ d={pathDisplay}
114
+ className={createEdgeDefaultClassName({highlightColor}, "react-flow__edge-path-highlight")}
115
+ strokeWidth={pathGlowWidth}
116
+ style={{
117
+ ...highlightCustomPropertySettings,
118
+ }}
119
+ />
120
+ )}
83
121
  { pathGlowWidth && (
84
122
  <path
85
123
  d={pathDisplay}
86
- className="react-flow__edge-path-glow"
124
+ className={createEdgeDefaultClassName({}, "react-flow__edge-path-glow")}
87
125
  strokeWidth={pathGlowWidth}
88
126
  />
89
127
  )}
90
128
  <path
91
129
  d={pathDisplay}
92
- className="react-flow__edge-path"
130
+ className={createEdgeDefaultClassName({strokeType})}
93
131
  markerStart={markerStart}
94
132
  markerEnd={markerEnd}
95
133
  />
@@ -98,3 +136,20 @@ export const EdgeDefault = memo(
98
136
  );
99
137
  }
100
138
  );
139
+
140
+ export const createEdgeDefaultClassName = ({
141
+ strokeType,
142
+ intent,
143
+ highlightColor,
144
+ }: EdgeDefaultDataProps, baseClass: string = "react-flow__edge-path") => {
145
+ const {
146
+ highlightClassNameSuffix,
147
+ } = evaluateHighlightColors("--edge-highlight", highlightColor);
148
+ return baseClass +
149
+ (strokeType ? ` ${baseClass}--stroke-${strokeType}` : "") +
150
+ (intent ? ` ${intentClassName(intent)}` : "") +
151
+ (highlightClassNameSuffix.length > 0
152
+ ? highlightClassNameSuffix.map(highlight => ` ${eccgui}-graphviz__edge--highlight-${highlight}`).join("")
153
+ : ""
154
+ );
155
+ }
@@ -1,4 +1,4 @@
1
- import React, { memo } from "react";
1
+ import React, { memo, useEffect, useRef } from "react";
2
2
  import { Icon, Depiction, DepictionProps, OverflowText } from "../../../index";
3
3
  import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
4
4
  import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
@@ -81,3 +81,47 @@ export const EdgeLabel = memo(({
81
81
  </div>
82
82
  )
83
83
  });
84
+
85
+ interface EdgeLabelObjectProps extends React.SVGAttributes<SVGForeignObjectElement> {
86
+ /**
87
+ * The `<EdgeLabel />` element that need to be displayed.
88
+ */
89
+ children: React.ReactElement<EdgeLabelProps>;
90
+ /**
91
+ * Property from the `renderLabel` callback method.
92
+ */
93
+ edgeCenter: [number, number, number, number];
94
+ }
95
+
96
+ export const EdgeLabelObject = memo(({
97
+ children,
98
+ edgeCenter,
99
+ ...otherForeignObjectProps
100
+ } : EdgeLabelObjectProps) => {
101
+ const containerRef = useRef<SVGForeignObjectElement>(null);
102
+
103
+ useEffect(() => {
104
+ const labelElement = containerRef.current!.getElementsByClassName(`${eccgui}-graphviz__edge-label`);
105
+ if (labelElement.length > 0) {
106
+ const width = (labelElement[0] as HTMLElement).offsetWidth;
107
+ const height = (labelElement[0] as HTMLElement).offsetHeight;
108
+ containerRef.current!.setAttribute("width", width.toString());
109
+ containerRef.current!.setAttribute("height", height.toString());
110
+ containerRef.current!.setAttribute("x", (edgeCenter[0] - width/2).toString());
111
+ containerRef.current!.setAttribute("y", (edgeCenter[1] - height/2).toString());
112
+ }
113
+ })
114
+
115
+ return (
116
+ <foreignObject
117
+ ref={containerRef}
118
+ className={`${eccgui}-graphviz__edge-labelobject`}
119
+ width="1"
120
+ height="1"
121
+ {...otherForeignObjectProps}
122
+ requiredExtensions="http://www.w3.org/1999/xhtml"
123
+ >
124
+ { children }
125
+ </foreignObject>
126
+ )
127
+ });
@@ -1,15 +1,15 @@
1
1
  .react-flow__edge {
2
+ --#{$eccgui}-reactflow-node-color-default: #{$reactflow-edge-stroke-color-default};
3
+ --#{$eccgui}-reactflow-node-color-hover: #{$reactflow-edge-stroke-color-hover};
4
+ --#{$eccgui}-reactflow-node-color-selected: #{$reactflow-edge-stroke-color-selected};
2
5
 
3
6
  path, rect {
4
7
  shape-rendering: optimizeSpeed;
5
- /* TODO: transitions currently do not work like expected
6
- transition: $reactflow-transition-time * 0.5 $reactflow-transition-function;
7
- */
8
- stroke-opacity: $reactflow-edge-stroke-opacity;
8
+ stroke-opacity: $reactflow-edge-stroke-opacity-default;
9
9
  }
10
10
 
11
11
  text {
12
- opacity: $reactflow-edge-stroke-opacity;
12
+ opacity: $reactflow-edge-stroke-opacity-default;
13
13
  }
14
14
 
15
15
  &:hover {
@@ -31,11 +31,24 @@
31
31
  opacity: $reactflow-edge-stroke-opacity-selected;
32
32
  }
33
33
  }
34
+ stroke: var(--#{$eccgui}-reactflow-node-color-default);
35
+ color: var(--#{$eccgui}-reactflow-node-color-default);
36
+
37
+ &:hover {
38
+ stroke: var(--#{$eccgui}-reactflow-node-color-hover);
39
+ color: var(--#{$eccgui}-reactflow-node-color-hover);
40
+ }
41
+
42
+ &.selected {
43
+ stroke: var(--#{$eccgui}-reactflow-node-color-selected);
44
+ color: var(--#{$eccgui}-reactflow-node-color-selected);
45
+ }
34
46
  }
35
47
 
36
48
  path.react-flow__edge-path {
37
49
  stroke-width: 2;
38
50
  stroke: currentColor;
51
+ stroke-opacity: $reactflow-edge-stroke-opacity-default;
39
52
 
40
53
  .react-flow__edge.selected & {
41
54
  stroke-width: 2;
@@ -49,9 +62,12 @@ path.react-flow__edge-path-glow {
49
62
  fill: none;
50
63
  stroke-linecap: round;
51
64
 
52
- .react-flow__edge:hover &,
65
+ .react-flow__edge:hover & {
66
+ stroke-opacity: $reactflow-edge-stroke-opacity-hover * 0.2;
67
+ }
68
+
53
69
  .react-flow__edge.selected & {
54
- stroke-opacity: 0.1;
70
+ stroke-opacity: $reactflow-edge-stroke-opacity-selected * 0.2;
55
71
  }
56
72
 
57
73
  .react-flow__edge.animated & {
@@ -70,12 +86,6 @@ path.react-flow__edge-path-glow {
70
86
  }
71
87
  }
72
88
 
73
- .react-flow__edge-textwrapper {
74
- /* TODO: transitions currently do not work like expected
75
- transition: $reactflow-transition-time * 0.5 $reactflow-transition-function;
76
- */
77
- }
78
-
79
89
  .react-flow__edge-text {
80
90
  fill: currentColor;
81
91
  stroke: none;
@@ -84,39 +94,127 @@ path.react-flow__edge-path-glow {
84
94
  .react-flow__edge-textbg {
85
95
  }
86
96
 
97
+ // Stroke types
98
+
99
+ path.react-flow__edge-path--stroke-solid {
100
+ stroke-dasharray: unset;
101
+ }
102
+
103
+ path.react-flow__edge-path--stroke-dashed,
104
+ .react-flow__edge.animated path.react-flow__edge-path--stroke-dashed {
105
+ stroke-dasharray: 5;
106
+ }
107
+
108
+ path.react-flow__edge-path--stroke-dotted,
109
+ .react-flow__edge.animated path.react-flow__edge-path--stroke-dotted {
110
+ stroke-dasharray: 2;
111
+ }
112
+
113
+ path.react-flow__edge-path--stroke-double {
114
+ stroke: #fff !important;
115
+ stroke-opacity: 1 !important;
116
+ filter: drop-shadow(1px 1px 1px currentColor) drop-shadow(-1px -1px 1px currentColor);
117
+ }
118
+
119
+ path.react-flow__edge-path--stroke-doubledashed {
120
+ stroke: #fff !important;
121
+ stroke-opacity: 1 !important;
122
+ filter: drop-shadow(1px 1px 1px currentColor) drop-shadow(-1px -1px 1px currentColor);
123
+ stroke-dasharray: 5;
124
+ }
125
+
126
+ // Intent states
127
+
128
+ g[class*="#{$eccgui}-intent--"] {
129
+ color: var(--edge-intent-color);
130
+ }
131
+
132
+ g[class*="#{$eccgui}-intent--"] > path.react-flow__edge-path,
133
+ g[class*="#{$eccgui}-intent--"] > path.react-flow__edge-path-glow {
134
+ stroke: var(--edge-intent-color);
135
+
136
+ .react-flow__edge.selected & {
137
+ stroke: var(--edge-intent-color);
138
+ }
139
+ }
140
+
141
+ g.#{$eccgui}-intent--primary {
142
+ --edge-intent-color: #{$eccgui-color-primary};
143
+ }
144
+
145
+ g.#{$eccgui}-intent--accent {
146
+ --edge-intent-color: #{$eccgui-color-accent};
147
+ }
148
+
149
+ g.#{$eccgui}-intent--info {
150
+ --edge-intent-color: #{$eccgui-color-info-text};
151
+ }
152
+
153
+ g.#{$eccgui}-intent--success {
154
+ --edge-intent-color: #{$eccgui-color-success-text};
155
+ }
156
+
157
+ g.#{$eccgui}-intent--warning {
158
+ --edge-intent-color: #{$eccgui-color-warning-text};
159
+ }
160
+
161
+ g.#{$eccgui}-intent--danger {
162
+ --edge-intent-color: #{$eccgui-color-danger-text};
163
+ }
164
+
165
+ // Highlightning
166
+
167
+ path.react-flow__edge-path-highlight {
168
+ stroke-opacity: 1;
169
+ fill: none;
170
+ stroke-linecap: round;
171
+ stroke: #fff;
172
+ filter:
173
+ drop-shadow(2px -2px 1px var(--edge-highlight-default-color))
174
+ drop-shadow(-2px 2px 1px var(--edge-highlight-alternate-color, var(--edge-highlight-default-color)));
175
+ }
176
+
177
+ .#{$eccgui}-graphviz__edge--highlight-default {
178
+ --edge-highlight-default-color: #{$eccgui-color-accent};
179
+ --edge-highlight-alternate-color: #{$eccgui-color-accent};
180
+ }
181
+
182
+ .#{$eccgui}-graphviz__edge--highlight-alternate {
183
+ --edge-highlight-default-color: #{$eccgui-color-primary};
184
+ --edge-highlight-alternate-color: #{$eccgui-color-primary};
185
+ }
186
+
187
+ .#{$eccgui}-graphviz__edge--highlight-default.#{$eccgui}-graphviz__edge--highlight-alternate {
188
+ --edge-highlight-default-color: #{$eccgui-color-accent};
189
+ --edge-highlight-alternate-color: #{$eccgui-color-primary};
190
+ }
191
+
192
+
193
+
87
194
  // Type colors
88
195
 
89
196
  .react-flow__edge-default,
90
197
  .react-flow__edge-straight,
91
198
  .react-flow__edge-smoothstep,
92
199
  .react-flow__edge-step {
93
- stroke: $reactflow-edge-stroke-color;
94
- color: $reactflow-edge-stroke-color;
95
-
96
- &:hover {
97
- stroke: $reactflow-edge-stroke-color-hover;
98
- color: $reactflow-edge-stroke-color-hover;
99
- }
100
-
101
- &.selected {
102
- stroke: $reactflow-edge-stroke-color-selected;
103
- color: $reactflow-edge-stroke-color-selected;
104
- }
105
200
  }
106
201
 
107
202
  .react-flow__edge-success {
108
- stroke: $eccgui-color-success-text;
109
- color: $eccgui-color-success-text;
203
+ --#{$eccgui}-reactflow-node-color-default: #{$eccgui-color-success-text};
204
+ --#{$eccgui}-reactflow-node-color-hover: #{$eccgui-color-success-text};
205
+ --#{$eccgui}-reactflow-node-color-selected: #{$eccgui-color-success-text};
110
206
  }
111
207
 
112
208
  .react-flow__edge-warning {
113
- stroke: $eccgui-color-warning-text;
114
- color: $eccgui-color-warning-text;
209
+ --#{$eccgui}-reactflow-node-color-default: #{$eccgui-color-warning-text};
210
+ --#{$eccgui}-reactflow-node-color-hover: #{$eccgui-color-warning-text};
211
+ --#{$eccgui}-reactflow-node-color-selected: #{$eccgui-color-warning-text};
115
212
  }
116
213
 
117
214
  .react-flow__edge-danger {
118
- stroke: $eccgui-color-danger-text;
119
- color: $eccgui-color-danger-text;
215
+ --#{$eccgui}-reactflow-node-color-default: #{$eccgui-color-danger-text};
216
+ --#{$eccgui}-reactflow-node-color-hover: #{$eccgui-color-danger-text};
217
+ --#{$eccgui}-reactflow-node-color-selected: #{$eccgui-color-danger-text};
120
218
  }
121
219
 
122
220
  // Tools overlay
@@ -158,10 +256,10 @@ path.react-flow__edge-path-glow {
158
256
  // Custom label
159
257
 
160
258
  .#{$eccgui}-graphviz__edge-label {
161
- border: 0.5*$reactflow-node-border-width solid $reactflow-node-border-color;
259
+ border: 0.5*$reactflow-node-border-width solid currentColor;
162
260
  border-radius: $reactflow-node-border-radius;
163
261
  background: #fff; // TODO color
164
- color: $reactflow-node-color;
262
+ color: currentColor;
165
263
  display: inline-flex;
166
264
  align-items: center;
167
265
  width: auto;
@@ -12,13 +12,17 @@ export const edgeTypes = {
12
12
  default: EdgeDefault,
13
13
  straight: EdgeDefault,
14
14
  step: EdgeStep,
15
- smoothstep: EdgeStep,
16
- implicitEdge: EdgeDefault,
17
- importEdge: EdgeDefault,
18
- subclassEdge: EdgeDefault,
19
- subpropertyEdge: EdgeDefault,
20
- rdftypeEdge: EdgeDefault,
21
- successStep: EdgeStep,
22
- warningStep: EdgeStep,
23
- dangerStep: EdgeStep,
15
+
16
+ success: EdgeDefault,
17
+ warning: EdgeDefault,
18
+ danger: EdgeDefault,
19
+
20
+ implicit: EdgeDefault,
21
+ import: EdgeDefault,
22
+ subclass: EdgeDefault,
23
+ subproperty: EdgeDefault,
24
+ rdftype: EdgeDefault,
25
+
26
+ value: EdgeStep,
27
+ score: EdgeStep,
24
28
  };
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect, useCallback } from "react";
2
2
  import { ComponentStory, ComponentMeta } from "@storybook/react";
3
- import { ReactFlow, Tag } from "./../../../../../index";
3
+ import { ReactFlow, EdgeLabel, EdgeLabelObject } from "./../../../../../index";
4
4
  import { ArrowHeadType, Elements, getMarkerEnd, ReactFlowProvider } from 'react-flow-renderer';
5
5
 
6
6
  import { EdgeDefault, EdgeDefaultDataProps as EdgeData } from "./../EdgeDefault";
@@ -16,6 +16,10 @@ export default {
16
16
  component: EdgeDefault,
17
17
  subcomponents: { EdgeDefaultDataProps },
18
18
  argTypes: {
19
+ type: {
20
+ control: "select",
21
+ options: [...(Object.keys(edgeTypes))],
22
+ },
19
23
  },
20
24
  } as ComponentMeta<typeof EdgeDefault>;
21
25
 
@@ -74,7 +78,7 @@ const Template: ComponentStory<typeof EdgeDefault> = (args) => (
74
78
  export const Default = Template.bind({});
75
79
  Default.args = {
76
80
  id: 'default',
77
- type: 'default',
81
+ type: 'dangerStep',
78
82
  label: "edge",
79
83
  arrowHeadType: "arrowclosed",
80
84
  source: 'node-1',
@@ -88,21 +92,14 @@ CustomLabel.args = {
88
92
  ...Default.args,
89
93
  id: "customlabel",
90
94
  arrowHeadType: undefined,
95
+ label: undefined,
91
96
  data: {
92
97
  renderLabel: (
93
98
  edgeCenter: [number, number, number, number]
94
99
  ) => (
95
- <foreignObject
96
- width={100}
97
- height={20}
98
- x={edgeCenter[0] - 50}
99
- y={edgeCenter[1] - 10}
100
- requiredExtensions="http://www.w3.org/1999/xhtml"
101
- >
102
- <body>
103
- <Tag>Custom label</Tag>
104
- </body>
105
- </foreignObject>
100
+ <EdgeLabelObject edgeCenter={edgeCenter}>
101
+ <EdgeLabel text="Custom label that is very long" />
102
+ </EdgeLabelObject>
106
103
  )
107
104
  }
108
105
  };
@@ -119,3 +116,27 @@ InverseEdge.args = {
119
116
  ),
120
117
  }
121
118
  };
119
+
120
+ export const AdjustStrokeType = Template.bind({});
121
+ AdjustStrokeType.args = {
122
+ ...Default.args,
123
+ data: {
124
+ strokeType: "double",
125
+ }
126
+ };
127
+
128
+ export const AdjustIntent = Template.bind({});
129
+ AdjustIntent.args = {
130
+ ...Default.args,
131
+ data: {
132
+ intent: "warning",
133
+ }
134
+ };
135
+
136
+ export const AdjustHighlight = Template.bind({});
137
+ AdjustHighlight.args = {
138
+ ...Default.args,
139
+ data: {
140
+ highlightColor: ["default", "alternate"]
141
+ }
142
+ };
@@ -3,7 +3,6 @@ export { NodeContent } from "./nodes/NodeContent";
3
3
  export { NodeContentExtension } from "./nodes/NodeContentExtension";
4
4
  export { NodeTools } from "./nodes/NodeTools";
5
5
  export { nodeTypes } from "./nodes/nodeTypes";
6
- export { EdgeDefault } from "./edges/EdgeDefault";
7
6
  export { EdgeStep } from "./edges/EdgeStep";
8
7
  export { EdgeTools } from "./edges/EdgeTools";
9
8
  export { edgeTypes } from "./edges/edgeTypes";
@@ -18,6 +17,7 @@ export type { NodeProps } from "./nodes/NodeDefault";
18
17
  export type { NodeContentProps } from "./nodes/NodeContent";
19
18
  export type { NodeContentExtensionProps } from "./nodes/NodeContentExtension";
20
19
  export type { NodeToolsProps } from "./nodes/NodeTools";
21
- export type { EdgeDefaultProps } from "./edges/EdgeDefault";
22
20
  export type { EdgeStepProps } from "./edges/EdgeStep";
23
21
  export type { MiniMapProps } from "./minimap/MiniMap";
22
+
23
+ export * from "./edges/EdgeDefault";