@ultrst-armada/floks 1.2.5 → 1.2.7

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 (38) hide show
  1. package/package.json +13 -11
  2. package/packages/canvas-ui/dist/chunk-QRYNQ36L.js +123 -0
  3. package/packages/canvas-ui/dist/{chunk-OOTTFWXA.js → chunk-RH5NINIT.js} +1 -122
  4. package/packages/canvas-ui/dist/chunk-VESG3VP3.js +1522 -0
  5. package/packages/canvas-ui/dist/frnl-editable-node-graph/index.d.ts +110 -0
  6. package/packages/canvas-ui/dist/frnl-editable-node-graph/index.js +9 -0
  7. package/packages/canvas-ui/dist/index.d.ts +13 -2
  8. package/packages/canvas-ui/dist/index.js +62 -484
  9. package/packages/canvas-ui/dist/predictive/index.js +4 -2
  10. package/packages/canvas-ui/floks.manifest.json +25 -4
  11. package/packages/canvas-ui/package.json +11 -7
  12. package/packages/ui/dist/chunk-2SD6BIUX.js +0 -0
  13. package/packages/ui/dist/{chunk-YDOKOBRJ.js → chunk-DGZBP3ND.js} +106 -491
  14. package/packages/ui/dist/{chunk-2SFOC7KZ.js → chunk-KQAFKNQH.js} +77 -67
  15. package/packages/ui/dist/chunk-PH4NEHWR.js +99 -0
  16. package/packages/ui/dist/chunk-TKGKVCB7.js +323 -0
  17. package/packages/ui/dist/{chunk-DT6DZU63.js → chunk-X67KXI3H.js} +190 -152
  18. package/packages/ui/dist/chunk-YVWJ4SW7.js +394 -0
  19. package/packages/ui/dist/components/auth/index.d.ts +56 -14
  20. package/packages/ui/dist/components/auth/index.js +12 -3
  21. package/packages/ui/dist/components/composite/index.js +1 -1
  22. package/packages/ui/dist/components/graph/index.d.ts +29 -0
  23. package/packages/ui/dist/components/graph/index.js +10 -0
  24. package/packages/ui/dist/components/layout/index.js +2 -2
  25. package/packages/ui/dist/components/settings/index.js +2 -2
  26. package/packages/ui/dist/components/tiles/index.d.ts +83 -0
  27. package/packages/ui/dist/components/tiles/index.js +10 -0
  28. package/packages/ui/dist/components/workspace/index.d.ts +108 -33
  29. package/packages/ui/dist/components/workspace/index.js +15 -3
  30. package/packages/ui/dist/frnl/index.js +9 -7
  31. package/packages/ui/dist/hierarchy/index.js +2 -2
  32. package/packages/ui/dist/index.d.ts +5 -2
  33. package/packages/ui/dist/index.js +68 -39
  34. package/packages/ui/floks.manifest.json +99 -17
  35. package/packages/ui/package.json +18 -3
  36. package/packages/ui/dist/{chunk-MYXPGPI3.js → chunk-GWW3BGOB.js} +3 -3
  37. package/packages/ui/dist/{chunk-TORWRS3V.js → chunk-SXRIBCJX.js} +3 -3
  38. package/packages/ui/dist/{chunk-NPIMIWVO.js → chunk-ZPQC46RO.js} +4 -4
@@ -0,0 +1,394 @@
1
+ import {
2
+ useFloksFrnlStore
3
+ } from "./chunk-X4B3EBMY.js";
4
+ import {
5
+ useBottomStrip
6
+ } from "./chunk-62ITRDJX.js";
7
+
8
+ // src/frnl/frnlButton.tsx
9
+ import { useId, useMemo } from "react";
10
+ import { defineFrnlComponent } from "@ultrst-armada/frnlts";
11
+ import { useFrnlComponent } from "@ultrst-armada/frnlts/react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ var frnlButtonDefinition = defineFrnlComponent({
14
+ name: "frnlButton",
15
+ states: {
16
+ idle: {
17
+ name: "idle",
18
+ events: { click: { functionId: "frnlButton.idle.click" } },
19
+ visualParameters: { opacity: 1 },
20
+ phases: {
21
+ attackPhase: { visualDefinition: { parameters: {} } },
22
+ sustainPhase: { visualDefinition: { parameters: {} } },
23
+ releasePhase: { visualDefinition: { parameters: {} } }
24
+ }
25
+ },
26
+ hover: {
27
+ name: "hover",
28
+ events: { click: { functionId: "frnlButton.hover.click" } },
29
+ visualParameters: { opacity: 1 },
30
+ phases: {
31
+ attackPhase: { visualDefinition: { parameters: {} } },
32
+ sustainPhase: { visualDefinition: { parameters: {} } },
33
+ releasePhase: { visualDefinition: { parameters: {} } }
34
+ }
35
+ },
36
+ active: {
37
+ name: "active",
38
+ events: { click: { functionId: "frnlButton.active.click" } },
39
+ visualParameters: { opacity: 1 },
40
+ phases: {
41
+ attackPhase: { visualDefinition: { parameters: {} } },
42
+ sustainPhase: { visualDefinition: { parameters: {} } },
43
+ releasePhase: { visualDefinition: { parameters: {} } }
44
+ }
45
+ },
46
+ disabled: {
47
+ name: "disabled",
48
+ events: { click: { functionId: "frnlButton.disabled.click" } },
49
+ visualParameters: { opacity: 0.4 },
50
+ phases: {
51
+ attackPhase: { visualDefinition: { parameters: {} } },
52
+ sustainPhase: { visualDefinition: { parameters: {} } },
53
+ releasePhase: { visualDefinition: { parameters: {} } }
54
+ }
55
+ },
56
+ loading: {
57
+ name: "loading",
58
+ events: { click: { functionId: "frnlButton.loading.click" } },
59
+ visualParameters: { opacity: 0.6 },
60
+ phases: {
61
+ attackPhase: { visualDefinition: { parameters: {} } },
62
+ sustainPhase: { visualDefinition: { parameters: {} } },
63
+ releasePhase: { visualDefinition: { parameters: {} } }
64
+ }
65
+ }
66
+ }
67
+ });
68
+ var SIZE_CLASSES = {
69
+ xs: "px-1.5 py-0.5 text-[10px] gap-1 h-6",
70
+ sm: "px-2.5 py-1 text-xs gap-1.5 h-7",
71
+ md: "px-3.5 py-1.5 text-xs gap-2 h-8",
72
+ lg: "px-4 py-2 text-sm gap-2.5 h-10",
73
+ xl: "px-5 py-2.5 text-base gap-3 h-12"
74
+ };
75
+ var VARIANT_STYLES = {
76
+ primary: {
77
+ backgroundColor: "var(--skipo-bg-surface, #1e293b)",
78
+ borderColor: "var(--skipo-border-subtle, #334155)",
79
+ color: "var(--skipo-text-primary, #f8fafc)"
80
+ },
81
+ secondary: {
82
+ backgroundColor: "var(--skipo-bg-panel, #0f172a)",
83
+ borderColor: "var(--skipo-border-subtle, #334155)",
84
+ color: "var(--skipo-text-muted, #94a3b8)"
85
+ },
86
+ accent: {
87
+ backgroundColor: "var(--skipo-accent, #38bdf8)",
88
+ borderColor: "var(--skipo-accent-contrast, #0284c7)",
89
+ color: "#000000",
90
+ fontWeight: 700
91
+ },
92
+ dock: {
93
+ backgroundColor: "var(--skipo-bg-subtle, #1e293b)",
94
+ borderColor: "var(--skipo-border-color, #334155)",
95
+ color: "var(--skipo-text-primary, #f8fafc)"
96
+ },
97
+ danger: {
98
+ backgroundColor: "rgba(239, 68, 68, 0.15)",
99
+ borderColor: "rgba(239, 68, 68, 0.4)",
100
+ color: "#f87171"
101
+ },
102
+ success: {
103
+ backgroundColor: "rgba(16, 185, 129, 0.15)",
104
+ borderColor: "rgba(16, 185, 129, 0.4)",
105
+ color: "#34d399"
106
+ },
107
+ ghost: {
108
+ backgroundColor: "transparent",
109
+ borderColor: "transparent",
110
+ color: "var(--skipo-text-muted, #94a3b8)"
111
+ },
112
+ outline: {
113
+ backgroundColor: "transparent",
114
+ borderColor: "var(--skipo-border-subtle, #334155)",
115
+ color: "var(--skipo-text-primary, #f8fafc)"
116
+ }
117
+ };
118
+ var frnlButton = ({
119
+ id,
120
+ variant = "secondary",
121
+ size = "md",
122
+ label,
123
+ tooltip,
124
+ description,
125
+ isActive = false,
126
+ loading = false,
127
+ icon,
128
+ disabled = false,
129
+ children,
130
+ onClick,
131
+ onMouseEnter,
132
+ onMouseLeave,
133
+ onFocus,
134
+ onBlur,
135
+ className = "",
136
+ style,
137
+ ...rest
138
+ }) => {
139
+ const store = useFloksFrnlStore();
140
+ const { setInspectionText } = useBottomStrip();
141
+ const generatedId = useId().replace(/[:/]/g, "");
142
+ const componentId = id ?? `frnlButton.${label ? label.toLowerCase().replace(/[^a-z0-9]/g, "-") : generatedId}`;
143
+ const resolvedState = disabled ? "disabled" : loading ? "loading" : isActive ? "active" : "idle";
144
+ const handlers = useMemo(
145
+ () => ({
146
+ "frnlButton.idle.click": (payload) => onClick?.(payload),
147
+ "frnlButton.hover.click": (payload) => onClick?.(payload),
148
+ "frnlButton.active.click": (payload) => onClick?.(payload),
149
+ "frnlButton.disabled.click": () => {
150
+ },
151
+ "frnlButton.loading.click": () => {
152
+ }
153
+ }),
154
+ [onClick]
155
+ );
156
+ const frnl = useFrnlComponent({
157
+ id: componentId,
158
+ definition: frnlButtonDefinition,
159
+ store,
160
+ state: resolvedState,
161
+ properties: { variant, size, label, isActive, disabled, loading },
162
+ handlers
163
+ });
164
+ const handleHoverStart = (e) => {
165
+ onMouseEnter?.(e);
166
+ const effLabel = label || tooltip || (typeof children === "string" ? children : void 0);
167
+ if (effLabel || description) {
168
+ setInspectionText(effLabel || null, description || null);
169
+ }
170
+ };
171
+ const handleHoverEnd = (e) => {
172
+ onMouseLeave?.(e);
173
+ setInspectionText(null);
174
+ };
175
+ return /* @__PURE__ */ jsxs(
176
+ "button",
177
+ {
178
+ ...rest,
179
+ id: componentId,
180
+ type: rest.type ?? "button",
181
+ disabled: disabled || loading,
182
+ "data-frnl-component": "frnlButton",
183
+ "data-frnl-state": frnl.state,
184
+ onClick: (e) => {
185
+ if (disabled || loading) return;
186
+ frnl.events.click(e);
187
+ },
188
+ onMouseEnter: handleHoverStart,
189
+ onMouseLeave: handleHoverEnd,
190
+ onFocus: (e) => {
191
+ onFocus?.(e);
192
+ const effLabel = label || tooltip || (typeof children === "string" ? children : void 0);
193
+ if (effLabel || description) setInspectionText(effLabel || null, description || null);
194
+ },
195
+ onBlur: (e) => {
196
+ onBlur?.(e);
197
+ setInspectionText(null);
198
+ },
199
+ className: `inline-flex items-center justify-center font-mono font-bold uppercase tracking-wider border rounded transition-all duration-150 select-none cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed active:scale-[0.98] ${SIZE_CLASSES[size]} ${className}`,
200
+ style: {
201
+ ...VARIANT_STYLES[variant],
202
+ ...isActive ? { borderColor: "var(--skipo-accent, #38bdf8)", boxShadow: "0 0 10px rgba(56, 189, 248, 0.25)" } : {},
203
+ ...style
204
+ },
205
+ children: [
206
+ loading ? /* @__PURE__ */ jsx("span", { className: "w-3.5 h-3.5 border-2 border-current border-t-transparent rounded-full animate-spin shrink-0" }) : icon ? /* @__PURE__ */ jsx("span", { className: "shrink-0 flex items-center justify-center", children: icon }) : null,
207
+ children ? /* @__PURE__ */ jsx("span", { children }) : label ? /* @__PURE__ */ jsx("span", { children: label }) : null
208
+ ]
209
+ }
210
+ );
211
+ };
212
+ frnlButton.displayName = "frnlButton";
213
+
214
+ // src/frnl/frnlTextInput.tsx
215
+ import { useId as useId2, useMemo as useMemo2 } from "react";
216
+ import { defineFrnlComponent as defineFrnlComponent2 } from "@ultrst-armada/frnlts";
217
+ import { useFrnlComponent as useFrnlComponent2 } from "@ultrst-armada/frnlts/react";
218
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
219
+ var frnlTextInputDefinition = defineFrnlComponent2({
220
+ name: "frnlTextInput",
221
+ states: {
222
+ idle: {
223
+ name: "idle",
224
+ events: {
225
+ change: { functionId: "frnlTextInput.idle.change" },
226
+ focus: { functionId: "frnlTextInput.idle.focus" }
227
+ },
228
+ visualParameters: { borderColor: "var(--skipo-border-subtle, #334155)" },
229
+ phases: {
230
+ attackPhase: { visualDefinition: { parameters: {} } },
231
+ sustainPhase: { visualDefinition: { parameters: {} } },
232
+ releasePhase: { visualDefinition: { parameters: {} } }
233
+ }
234
+ },
235
+ focused: {
236
+ name: "focused",
237
+ events: {
238
+ change: { functionId: "frnlTextInput.focused.change" },
239
+ blur: { functionId: "frnlTextInput.focused.blur" }
240
+ },
241
+ visualParameters: { borderColor: "var(--skipo-accent, #38bdf8)" },
242
+ phases: {
243
+ attackPhase: { visualDefinition: { parameters: {} } },
244
+ sustainPhase: { visualDefinition: { parameters: {} } },
245
+ releasePhase: { visualDefinition: { parameters: {} } }
246
+ }
247
+ },
248
+ error: {
249
+ name: "error",
250
+ events: {
251
+ change: { functionId: "frnlTextInput.error.change" }
252
+ },
253
+ visualParameters: { borderColor: "#ef4444" },
254
+ phases: {
255
+ attackPhase: { visualDefinition: { parameters: {} } },
256
+ sustainPhase: { visualDefinition: { parameters: {} } },
257
+ releasePhase: { visualDefinition: { parameters: {} } }
258
+ }
259
+ },
260
+ disabled: {
261
+ name: "disabled",
262
+ events: {},
263
+ visualParameters: { opacity: 0.5 },
264
+ phases: {
265
+ attackPhase: { visualDefinition: { parameters: {} } },
266
+ sustainPhase: { visualDefinition: { parameters: {} } },
267
+ releasePhase: { visualDefinition: { parameters: {} } }
268
+ }
269
+ }
270
+ }
271
+ });
272
+ var frnlTextInput = ({
273
+ id,
274
+ label,
275
+ description,
276
+ error,
277
+ size = "md",
278
+ leadingIcon,
279
+ trailingIcon,
280
+ onClear,
281
+ disabled = false,
282
+ value,
283
+ onChange,
284
+ onFocus,
285
+ onBlur,
286
+ onMouseEnter,
287
+ onMouseLeave,
288
+ className = "",
289
+ style,
290
+ ...rest
291
+ }) => {
292
+ const store = useFloksFrnlStore();
293
+ const { setInspectionText } = useBottomStrip();
294
+ const generatedId = useId2().replace(/[:/]/g, "");
295
+ const componentId = id ?? `frnlTextInput.${label ? label.toLowerCase().replace(/[^a-z0-9]/g, "-") : generatedId}`;
296
+ const resolvedState = disabled ? "disabled" : error ? "error" : "idle";
297
+ const handlers = useMemo2(
298
+ () => ({
299
+ "frnlTextInput.idle.change": (payload) => onChange?.(payload),
300
+ "frnlTextInput.idle.focus": (payload) => onFocus?.(payload),
301
+ "frnlTextInput.focused.change": (payload) => onChange?.(payload),
302
+ "frnlTextInput.focused.blur": (payload) => onBlur?.(payload),
303
+ "frnlTextInput.error.change": (payload) => onChange?.(payload)
304
+ }),
305
+ [onChange, onFocus, onBlur]
306
+ );
307
+ const frnl = useFrnlComponent2({
308
+ id: componentId,
309
+ definition: frnlTextInputDefinition,
310
+ store,
311
+ state: resolvedState,
312
+ properties: { label, error: Boolean(error), disabled },
313
+ handlers
314
+ });
315
+ const handleHover = (e) => {
316
+ onMouseEnter?.(e);
317
+ if (label || description) {
318
+ setInspectionText(label || null, description || null);
319
+ }
320
+ };
321
+ const handleLeave = (e) => {
322
+ onMouseLeave?.(e);
323
+ setInspectionText(null);
324
+ };
325
+ const heightClass = size === "sm" ? "h-7 text-xs" : size === "lg" ? "h-10 text-sm" : "h-8 text-xs";
326
+ return /* @__PURE__ */ jsxs2("div", { className: `flex flex-col gap-1 font-mono select-none ${className}`, children: [
327
+ label && /* @__PURE__ */ jsx2(
328
+ "label",
329
+ {
330
+ htmlFor: componentId,
331
+ className: "text-[10px] font-bold uppercase tracking-wider text-[var(--skipo-text-muted,#94a3b8)]",
332
+ children: label
333
+ }
334
+ ),
335
+ /* @__PURE__ */ jsxs2(
336
+ "div",
337
+ {
338
+ className: `relative flex items-center border rounded transition-colors bg-[var(--skipo-bg-panel,#0f172a)] ${error ? "border-rose-500" : "border-[var(--skipo-border-subtle,#334155)] focus-within:border-[var(--skipo-accent,#38bdf8)]"}`,
339
+ style,
340
+ children: [
341
+ leadingIcon && /* @__PURE__ */ jsx2("span", { className: "pl-2.5 text-[var(--skipo-text-muted,#94a3b8)] flex items-center justify-center shrink-0", children: leadingIcon }),
342
+ /* @__PURE__ */ jsx2(
343
+ "input",
344
+ {
345
+ ...rest,
346
+ id: componentId,
347
+ value,
348
+ disabled,
349
+ "data-frnl-component": "frnlTextInput",
350
+ "data-frnl-state": frnl.state,
351
+ onChange: (e) => {
352
+ onChange?.(e);
353
+ frnl.events.change?.(e);
354
+ },
355
+ onFocus: (e) => {
356
+ onFocus?.(e);
357
+ frnl.events.focus?.(e);
358
+ if (label || description) setInspectionText(label || null, description || null);
359
+ },
360
+ onBlur: (e) => {
361
+ onBlur?.(e);
362
+ frnl.events.blur?.(e);
363
+ setInspectionText(null);
364
+ },
365
+ onMouseEnter: handleHover,
366
+ onMouseLeave: handleLeave,
367
+ className: `w-full bg-transparent px-3 py-1 text-[var(--skipo-text-primary,#f8fafc)] focus:outline-none placeholder-[var(--skipo-text-muted,#64748b)] disabled:opacity-40 disabled:cursor-not-allowed ${heightClass}`
368
+ }
369
+ ),
370
+ trailingIcon && /* @__PURE__ */ jsx2("span", { className: "pr-2.5 text-[var(--skipo-text-muted,#94a3b8)] flex items-center justify-center shrink-0", children: trailingIcon }),
371
+ onClear && value && !disabled && /* @__PURE__ */ jsx2(
372
+ "button",
373
+ {
374
+ type: "button",
375
+ onClick: onClear,
376
+ className: "pr-2.5 text-[var(--skipo-text-muted,#94a3b8)] hover:text-white cursor-pointer",
377
+ "aria-label": "Clear Input",
378
+ children: "\xD7"
379
+ }
380
+ )
381
+ ]
382
+ }
383
+ ),
384
+ typeof error === "string" && /* @__PURE__ */ jsx2("span", { className: "text-[10px] text-rose-400 font-semibold", children: error })
385
+ ] });
386
+ };
387
+ frnlTextInput.displayName = "frnlTextInput";
388
+
389
+ export {
390
+ frnlButtonDefinition,
391
+ frnlButton,
392
+ frnlTextInputDefinition,
393
+ frnlTextInput
394
+ };
@@ -1,19 +1,12 @@
1
1
  import React__default from 'react';
2
2
 
3
- /**
4
- * @public
5
- * Canonical Auth Result contract.
6
- */
3
+ declare const AUTH_PAGE_REQUIRED_SERVICES: readonly ["auth"];
7
4
  interface AuthResult {
8
5
  success: boolean;
9
6
  error?: string;
10
7
  user?: unknown;
11
8
  token?: string;
12
9
  }
13
- /**
14
- * @public
15
- * Canonical AuthPage Props for FLOKS reusable authentication page.
16
- */
17
10
  interface AuthPageProps {
18
11
  appName?: string;
19
12
  appSubtitle?: string;
@@ -27,11 +20,60 @@ interface AuthPageProps {
27
20
  onSuccess?: (result: AuthResult) => void;
28
21
  onSwitchToAdmin?: () => void;
29
22
  }
30
- /**
31
- * @public
32
- * Canonical FLOKS AuthPage section/page component.
33
- * Single source of truth for login/registration across DEPM, KRUSBL, and SKIPO apps.
34
- */
23
+ declare const authPageDefinition: {
24
+ name: string;
25
+ states: {
26
+ idle: {
27
+ name: string;
28
+ events: {
29
+ login: {
30
+ functionId: string;
31
+ };
32
+ register: {
33
+ functionId: string;
34
+ };
35
+ };
36
+ visualParameters: {};
37
+ phases: {
38
+ sustainPhase: {
39
+ visualDefinition: {
40
+ parameters: {};
41
+ };
42
+ };
43
+ };
44
+ };
45
+ loading: {
46
+ name: string;
47
+ events: {};
48
+ visualParameters: {
49
+ opacity: number;
50
+ };
51
+ phases: {
52
+ sustainPhase: {
53
+ visualDefinition: {
54
+ parameters: {};
55
+ };
56
+ };
57
+ };
58
+ };
59
+ error: {
60
+ name: string;
61
+ events: {
62
+ retry: {
63
+ functionId: string;
64
+ };
65
+ };
66
+ visualParameters: {};
67
+ phases: {
68
+ sustainPhase: {
69
+ visualDefinition: {
70
+ parameters: {};
71
+ };
72
+ };
73
+ };
74
+ };
75
+ };
76
+ };
35
77
  declare const AuthPage: React__default.FC<AuthPageProps>;
36
78
 
37
79
  interface LoginModalProps {
@@ -41,4 +83,4 @@ interface LoginModalProps {
41
83
  }
42
84
  declare const LoginModal: React__default.FC<LoginModalProps>;
43
85
 
44
- export { AuthPage, type AuthPageProps, type AuthResult, LoginModal, type LoginModalProps };
86
+ export { AUTH_PAGE_REQUIRED_SERVICES, AuthPage, type AuthPageProps, type AuthResult, LoginModal, type LoginModalProps, authPageDefinition };
@@ -1,10 +1,19 @@
1
1
  import {
2
+ AUTH_PAGE_REQUIRED_SERVICES,
2
3
  AuthPage,
3
- LoginModal
4
- } from "../../chunk-2SFOC7KZ.js";
4
+ LoginModal,
5
+ authPageDefinition
6
+ } from "../../chunk-KQAFKNQH.js";
7
+ import "../../chunk-YVWJ4SW7.js";
8
+ import "../../chunk-5ZMXFCD4.js";
9
+ import "../../chunk-C3L53YN4.js";
10
+ import "../../chunk-X4B3EBMY.js";
5
11
  import "../../chunk-W42SJGOJ.js";
12
+ import "../../chunk-62ITRDJX.js";
6
13
  import "../../chunk-A2CDQISJ.js";
7
14
  export {
15
+ AUTH_PAGE_REQUIRED_SERVICES,
8
16
  AuthPage,
9
- LoginModal
17
+ LoginModal,
18
+ authPageDefinition
10
19
  };
@@ -11,10 +11,10 @@ import {
11
11
  import {
12
12
  IconOnlyButton
13
13
  } from "../../chunk-OR5ZNJI4.js";
14
- import "../../chunk-GKP6KHTI.js";
15
14
  import {
16
15
  CopyableLogViewer
17
16
  } from "../../chunk-RLQ2ALJG.js";
17
+ import "../../chunk-GKP6KHTI.js";
18
18
  import "../../chunk-UOR4P6PO.js";
19
19
  import "../../chunk-W42SJGOJ.js";
20
20
  import "../../chunk-62ITRDJX.js";
@@ -0,0 +1,29 @@
1
+ import React__default from 'react';
2
+ import { FrnlTileRecord } from '../tiles/index.js';
3
+ import { Node, Edge } from '@xyflow/react';
4
+
5
+ type FrnlNodeGraphNode<T extends Record<string, unknown> = Record<string, unknown>> = Node<T>;
6
+ type FrnlNodeGraphEdge = Edge;
7
+
8
+ interface FrnlForceGraphLink {
9
+ source: string;
10
+ target: string;
11
+ }
12
+
13
+ declare const GRAPHS_MENU_REQUIRED_SERVICES: readonly ["workspace"];
14
+ interface GraphRecord extends FrnlTileRecord {
15
+ kind?: 'editable' | 'force';
16
+ nodes?: FrnlNodeGraphNode[];
17
+ edges?: FrnlNodeGraphEdge[];
18
+ links?: FrnlForceGraphLink[];
19
+ }
20
+ interface GraphsMenuProps {
21
+ graphs: GraphRecord[];
22
+ onSelectGraph: (graph: GraphRecord) => void;
23
+ onCreateGraph?: () => void;
24
+ loading?: boolean;
25
+ error?: string | null;
26
+ }
27
+ declare function GraphsMenu({ graphs, onSelectGraph, onCreateGraph, loading, error }: GraphsMenuProps): React__default.JSX.Element;
28
+
29
+ export { GRAPHS_MENU_REQUIRED_SERVICES, type GraphRecord, GraphsMenu, type GraphsMenuProps };
@@ -0,0 +1,10 @@
1
+ import {
2
+ GRAPHS_MENU_REQUIRED_SERVICES,
3
+ GraphsMenu
4
+ } from "../../chunk-TKGKVCB7.js";
5
+ import "../../chunk-PH4NEHWR.js";
6
+ import "../../chunk-X4B3EBMY.js";
7
+ export {
8
+ GRAPHS_MENU_REQUIRED_SERVICES,
9
+ GraphsMenu
10
+ };
@@ -3,9 +3,9 @@ import {
3
3
  BreadcrumbNav,
4
4
  HeaderBar,
5
5
  TopToolbar
6
- } from "../../chunk-MYXPGPI3.js";
7
- import "../../chunk-GKP6KHTI.js";
6
+ } from "../../chunk-GWW3BGOB.js";
8
7
  import "../../chunk-C3L53YN4.js";
8
+ import "../../chunk-GKP6KHTI.js";
9
9
  import "../../chunk-62ITRDJX.js";
10
10
  import "../../chunk-A2CDQISJ.js";
11
11
  export {
@@ -2,10 +2,10 @@ import {
2
2
  AccountsSettingsSection,
3
3
  SettingsTab,
4
4
  ThemeSettingsSection
5
- } from "../../chunk-NPIMIWVO.js";
5
+ } from "../../chunk-ZPQC46RO.js";
6
6
  import "../../chunk-RLQ2ALJG.js";
7
- import "../../chunk-UOR4P6PO.js";
8
7
  import "../../chunk-DZJ3NSCX.js";
8
+ import "../../chunk-UOR4P6PO.js";
9
9
  import "../../chunk-W42SJGOJ.js";
10
10
  import "../../chunk-A2CDQISJ.js";
11
11
  export {
@@ -0,0 +1,83 @@
1
+ import React__default from 'react';
2
+
3
+ interface FrnlTileRecord {
4
+ id: string;
5
+ title: string;
6
+ description?: string;
7
+ icon?: React__default.ReactNode;
8
+ metadata?: React__default.ReactNode;
9
+ }
10
+ interface TilesMenuProps<T extends FrnlTileRecord = FrnlTileRecord> {
11
+ id?: string;
12
+ title: string;
13
+ subtitle?: string;
14
+ tiles: T[];
15
+ searchPlaceholder?: string;
16
+ emptyText?: string;
17
+ loading?: boolean;
18
+ error?: string | null;
19
+ createLabel?: string;
20
+ onSelect: (tile: T) => void;
21
+ onCreate?: () => void;
22
+ renderTile?: (tile: T, selected: boolean) => React__default.ReactNode;
23
+ }
24
+ declare const tilesMenuDefinition: {
25
+ name: string;
26
+ states: {
27
+ idle: {
28
+ name: string;
29
+ events: {
30
+ search: {
31
+ functionId: string;
32
+ };
33
+ select: {
34
+ functionId: string;
35
+ };
36
+ create: {
37
+ functionId: string;
38
+ };
39
+ };
40
+ visualParameters: {};
41
+ phases: {
42
+ sustainPhase: {
43
+ visualDefinition: {
44
+ parameters: {};
45
+ };
46
+ };
47
+ };
48
+ };
49
+ loading: {
50
+ name: string;
51
+ events: {};
52
+ visualParameters: {
53
+ opacity: number;
54
+ };
55
+ phases: {
56
+ sustainPhase: {
57
+ visualDefinition: {
58
+ parameters: {};
59
+ };
60
+ };
61
+ };
62
+ };
63
+ error: {
64
+ name: string;
65
+ events: {
66
+ dismiss: {
67
+ functionId: string;
68
+ };
69
+ };
70
+ visualParameters: {};
71
+ phases: {
72
+ sustainPhase: {
73
+ visualDefinition: {
74
+ parameters: {};
75
+ };
76
+ };
77
+ };
78
+ };
79
+ };
80
+ };
81
+ declare function TilesMenu<T extends FrnlTileRecord>({ id, title, subtitle, tiles, searchPlaceholder, emptyText, loading, error, createLabel, onSelect, onCreate, renderTile, }: TilesMenuProps<T>): React__default.JSX.Element;
82
+
83
+ export { type FrnlTileRecord, TilesMenu, type TilesMenuProps, tilesMenuDefinition };
@@ -0,0 +1,10 @@
1
+ import "../../chunk-2SD6BIUX.js";
2
+ import {
3
+ TilesMenu,
4
+ tilesMenuDefinition
5
+ } from "../../chunk-PH4NEHWR.js";
6
+ import "../../chunk-X4B3EBMY.js";
7
+ export {
8
+ TilesMenu,
9
+ tilesMenuDefinition
10
+ };