@d34dman/flowdrop 0.0.62 → 0.0.63
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.
|
@@ -905,10 +905,6 @@
|
|
|
905
905
|
cursor: pointer;
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
/* Enhanced arrow markers for input ports */
|
|
909
|
-
:global(.flowdrop-workflow-editor .svelte-flow__edge-marker) {
|
|
910
|
-
fill: currentColor;
|
|
911
|
-
}
|
|
912
908
|
|
|
913
909
|
/* Handle size/position only; colors come from inline --fd-handle-fill and base.css ::before */
|
|
914
910
|
:global(.flowdrop-workflow-editor .svelte-flow__handle) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
category: "inputs",
|
|
23
23
|
version: "1.0.0",
|
|
24
24
|
type: "square",
|
|
25
|
-
supportedTypes: ["
|
|
25
|
+
supportedTypes: ["square"],
|
|
26
26
|
icon: "mdi:text",
|
|
27
27
|
color: "#22c55e",
|
|
28
28
|
inputs: [],
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
category: "outputs",
|
|
44
44
|
version: "1.0.0",
|
|
45
45
|
type: "square",
|
|
46
|
-
supportedTypes: ["square"
|
|
46
|
+
supportedTypes: ["square"],
|
|
47
47
|
icon: "mdi:text-box",
|
|
48
48
|
color: "#ef4444",
|
|
49
49
|
inputs: [
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
width: 16px !important;
|
|
659
659
|
height: 16px !important;
|
|
660
660
|
border-radius: 50% !important;
|
|
661
|
-
border:
|
|
661
|
+
border: none !important;
|
|
662
662
|
transition: all var(--fd-transition-normal) !important;
|
|
663
663
|
cursor: pointer !important;
|
|
664
664
|
z-index: 20 !important;
|
|
@@ -166,27 +166,8 @@ export class EdgeStylingHelper {
|
|
|
166
166
|
: null;
|
|
167
167
|
// Determine edge category (loopback takes precedence)
|
|
168
168
|
const edgeCategory = this.getEdgeCategoryWithLoopback(edge, sourcePortDataType);
|
|
169
|
-
// Detect current theme for marker colors
|
|
170
|
-
// Marker colors are baked in at creation time, so we check the theme here
|
|
171
|
-
const isDarkMode = typeof document !== 'undefined' &&
|
|
172
|
-
document.documentElement.getAttribute('data-theme') === 'dark';
|
|
173
|
-
// Edge color constants for marker arrows - matched to CSS token values
|
|
174
|
-
// These match the --fd-edge-* tokens in tokens.css for consistency
|
|
175
|
-
const EDGE_COLORS = isDarkMode
|
|
176
|
-
? {
|
|
177
|
-
trigger: '#eaeaef', // --_gray-3 (light for dark mode visibility)
|
|
178
|
-
tool: '#fbbf24', // Brighter amber for dark mode
|
|
179
|
-
loopback: '#a3a3ad', // --_gray-5
|
|
180
|
-
data: '#a3a3ad' // --_gray-5
|
|
181
|
-
}
|
|
182
|
-
: {
|
|
183
|
-
trigger: '#18181c', // --_gray-9 (dark for light mode)
|
|
184
|
-
tool: '#f59e0b', // --_amber-2
|
|
185
|
-
loopback: '#71717b', // --_gray-6
|
|
186
|
-
data: '#a3a3ad' // --_gray-5
|
|
187
|
-
};
|
|
188
169
|
// Apply styling based on edge category
|
|
189
|
-
// CSS
|
|
170
|
+
// Marker colors use CSS custom properties so they respond to theme changes automatically
|
|
190
171
|
switch (edgeCategory) {
|
|
191
172
|
case 'loopback':
|
|
192
173
|
// Loopback edges: dashed gray line for loop iteration
|
|
@@ -197,7 +178,7 @@ export class EdgeStylingHelper {
|
|
|
197
178
|
type: MarkerType.ArrowClosed,
|
|
198
179
|
width: 14,
|
|
199
180
|
height: 14,
|
|
200
|
-
color:
|
|
181
|
+
color: 'var(--fd-edge-loopback)'
|
|
201
182
|
};
|
|
202
183
|
break;
|
|
203
184
|
case 'trigger':
|
|
@@ -208,7 +189,7 @@ export class EdgeStylingHelper {
|
|
|
208
189
|
type: MarkerType.ArrowClosed,
|
|
209
190
|
width: 16,
|
|
210
191
|
height: 16,
|
|
211
|
-
color:
|
|
192
|
+
color: 'var(--fd-edge-trigger)'
|
|
212
193
|
};
|
|
213
194
|
break;
|
|
214
195
|
case 'tool':
|
|
@@ -219,7 +200,7 @@ export class EdgeStylingHelper {
|
|
|
219
200
|
type: MarkerType.ArrowClosed,
|
|
220
201
|
width: 16,
|
|
221
202
|
height: 16,
|
|
222
|
-
color:
|
|
203
|
+
color: 'var(--fd-edge-tool)'
|
|
223
204
|
};
|
|
224
205
|
break;
|
|
225
206
|
case 'data':
|
|
@@ -231,7 +212,7 @@ export class EdgeStylingHelper {
|
|
|
231
212
|
type: MarkerType.ArrowClosed,
|
|
232
213
|
width: 16,
|
|
233
214
|
height: 16,
|
|
234
|
-
color:
|
|
215
|
+
color: 'var(--fd-edge-data)'
|
|
235
216
|
};
|
|
236
217
|
break;
|
|
237
218
|
}
|