@ultrst-armada/floks 2.0.6 → 2.0.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "2.0.6",
5
- "sourceCommit": "f749bdb6416d8d441fda7567cd96ccd9b6a504d9",
4
+ "version": "2.0.7",
5
+ "sourceCommit": "30e9828c9552718fefa773b3122ffd74b86f84d0",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "44026031976"
7
+ "workflowRunId": "44079620802"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,13 +1,34 @@
1
1
  import {
2
- DockBar,
3
- DockItem,
4
- useDock
5
- } from "./chunk-6VB74RCH.js";
2
+ BIOME_CONFIGS,
3
+ COORD_SCALE,
4
+ CanvasBackground2D,
5
+ CanvasErrorBoundary,
6
+ ContainerNode2D,
7
+ EffectNode2D,
8
+ MagneticTraces2D,
9
+ ModuleNode2D,
10
+ NODE_CARD_WIDTH,
11
+ Node2DBase,
12
+ NodeRenderer2D,
13
+ RecorderWaveformDisplay,
14
+ RotaryKnob,
15
+ SOCKET_ROW_HEIGHT,
16
+ Socket2D,
17
+ TriggerNode2D,
18
+ Wire2D,
19
+ renderSpriteIcon,
20
+ useCanvas2DCoordinates,
21
+ useCanvas2DMagnetic
22
+ } from "./chunk-ZDADZVQ2.js";
6
23
  import {
7
24
  PredictiveGhostNodeCard,
8
25
  PredictiveHudToolbar,
9
26
  PredictiveLayer2D
10
27
  } from "./chunk-A7BSZ5QO.js";
28
+ import {
29
+ getSocketLocalOffset,
30
+ getSocketScreenPosition
31
+ } from "./chunk-FPRATI44.js";
11
32
  import {
12
33
  Tile,
13
34
  TileCreateButton,
@@ -35,11 +56,22 @@ import {
35
56
  setAuthoringOperations,
36
57
  updateAuthoringNode
37
58
  } from "./chunk-CI4C6DJR.js";
59
+ import {
60
+ DockBar,
61
+ DockItem,
62
+ useDock
63
+ } from "./chunk-6VB74RCH.js";
38
64
  import {
39
65
  MonacoEditor,
40
66
  skipoDarkTheme,
41
67
  useMonaco
42
68
  } from "./chunk-KAKAFGVH.js";
69
+ import {
70
+ CanvasViewport,
71
+ InfiniteCanvas,
72
+ MiniMap,
73
+ useCanvas
74
+ } from "./chunk-34YRDZPJ.js";
43
75
  import {
44
76
  FodModule
45
77
  } from "./chunk-TKOMIUCU.js";
@@ -55,38 +87,6 @@ import {
55
87
  import {
56
88
  usePredictiveGraph2D
57
89
  } from "./chunk-ZSVXR3HU.js";
58
- import {
59
- BIOME_CONFIGS,
60
- COORD_SCALE,
61
- CanvasBackground2D,
62
- CanvasErrorBoundary,
63
- ContainerNode2D,
64
- EffectNode2D,
65
- MagneticTraces2D,
66
- ModuleNode2D,
67
- NODE_CARD_WIDTH,
68
- Node2DBase,
69
- NodeRenderer2D,
70
- RecorderWaveformDisplay,
71
- RotaryKnob,
72
- SOCKET_ROW_HEIGHT,
73
- Socket2D,
74
- TriggerNode2D,
75
- Wire2D,
76
- renderSpriteIcon,
77
- useCanvas2DCoordinates,
78
- useCanvas2DMagnetic
79
- } from "./chunk-ZDADZVQ2.js";
80
- import {
81
- getSocketLocalOffset,
82
- getSocketScreenPosition
83
- } from "./chunk-FPRATI44.js";
84
- import {
85
- CanvasViewport,
86
- InfiniteCanvas,
87
- MiniMap,
88
- useCanvas
89
- } from "./chunk-34YRDZPJ.js";
90
90
 
91
91
  // src/node-graph-ui/widgets/MidpointWidgets.tsx
92
92
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -3,10 +3,10 @@ import {
3
3
  PredictiveHudToolbar,
4
4
  PredictiveLayer2D
5
5
  } from "../chunk-A7BSZ5QO.js";
6
+ import "../chunk-FPRATI44.js";
6
7
  import {
7
8
  usePredictiveGraph2D
8
9
  } from "../chunk-ZSVXR3HU.js";
9
- import "../chunk-FPRATI44.js";
10
10
  export {
11
11
  PredictiveGhostNodeCard,
12
12
  PredictiveHudToolbar,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TilesMenu
3
- } from "./chunk-NKFSUEAH.js";
3
+ } from "./chunk-DEKSKDSF.js";
4
4
  import {
5
5
  useFloksFrnlStore
6
6
  } from "./chunk-2YP2RPJY.js";
@@ -36,26 +36,42 @@ function TilesMenu({
36
36
  const [query, setQuery] = React.useState("");
37
37
  const [selectedId, setSelectedId] = React.useState(null);
38
38
  const state = error ? "error" : loading ? "loading" : "idle";
39
+ const filtered = useMemo(() => {
40
+ if (loading) return [];
41
+ const search = query.trim().toLowerCase();
42
+ return tiles.filter((tile) => !search || tile.title.toLowerCase().includes(search) || (tile.description ?? "").toLowerCase().includes(search));
43
+ }, [loading, query, tiles]);
44
+ const properties = useMemo(() => ({
45
+ role: "region",
46
+ label: title,
47
+ title,
48
+ tileCount: tiles.length,
49
+ query,
50
+ selectedId,
51
+ visibleTiles: filtered.map(({ id: id2, title: title2 }) => ({ id: id2, title: title2 }))
52
+ }), [filtered, query, selectedId, tiles.length, title]);
39
53
  const handlers = useMemo(() => ({
40
54
  "tilesMenu.idle.search": (value) => setQuery(String(value ?? "")),
41
- "tilesMenu.idle.select": (tile) => onSelect(tile),
55
+ "tilesMenu.idle.select": (value) => {
56
+ const id2 = typeof value === "string" ? value : value?.id;
57
+ const tile = filtered.find((entry) => entry.id === id2);
58
+ if (!tile) throw new Error("The requested tile is not visible in this menu.");
59
+ setSelectedId(tile.id);
60
+ onSelect(tile);
61
+ },
42
62
  "tilesMenu.idle.create": () => onCreate?.(),
43
63
  "tilesMenu.error.dismiss": () => {
44
64
  }
45
- }), [onCreate, onSelect]);
65
+ }), [filtered, onCreate, onSelect]);
46
66
  const frnl = useFrnlComponent({
47
67
  id: componentId,
48
68
  definition: tilesMenuDefinition,
49
69
  store,
50
70
  state,
51
- properties: { title, tileCount: tiles.length, query },
71
+ properties,
52
72
  handlers
53
73
  });
54
- const filtered = tiles.filter((tile) => {
55
- const q = query.trim().toLowerCase();
56
- return !q || tile.title.toLowerCase().includes(q) || (tile.description ?? "").toLowerCase().includes(q);
57
- });
58
- return /* @__PURE__ */ jsxs("section", { id: componentId, "data-frnl-component": "tilesMenu", "data-frnl-state": frnl.state, className: "w-full font-mono text-[var(--skipo-text)]", children: [
74
+ return /* @__PURE__ */ jsxs("section", { id: componentId, "data-frnl-component": "tilesMenu", "data-frnl-state": frnl.state, "aria-label": title, className: "w-full font-mono text-[var(--skipo-text)]", children: [
59
75
  /* @__PURE__ */ jsxs("header", { className: "flex flex-wrap items-center gap-3 mb-4", children: [
60
76
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-[220px]", children: [
61
77
  /* @__PURE__ */ jsx("h2", { className: "text-sm font-black uppercase tracking-wider", children: title }),
@@ -78,10 +94,7 @@ function TilesMenu({
78
94
  error && /* @__PURE__ */ jsx("div", { className: "mb-3 border border-red-500/70 bg-red-500/10 p-3 text-xs text-red-300", children: error }),
79
95
  loading ? /* @__PURE__ */ jsx("div", { className: "border border-dashed border-[var(--skipo-border-color)] p-8 text-center text-xs text-[var(--skipo-text-muted)]", children: "LOADING..." }) : filtered.length === 0 ? /* @__PURE__ */ jsx("div", { className: "border border-dashed border-[var(--skipo-border-color)] p-8 text-center text-xs text-[var(--skipo-text-muted)]", children: emptyText }) : /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3", children: filtered.map((tile) => {
80
96
  const selected = selectedId === tile.id;
81
- return /* @__PURE__ */ jsx("button", { type: "button", onClick: () => {
82
- setSelectedId(tile.id);
83
- frnl.events.select(tile);
84
- }, className: `text-left p-4 border-2 bg-[var(--skipo-surface)] transition-colors ${selected ? "border-[var(--skipo-accent)]" : "border-[var(--skipo-border-color)] hover:border-[var(--skipo-accent)]"}`, children: renderTile ? renderTile(tile, selected) : /* @__PURE__ */ jsxs(Fragment, { children: [
97
+ return /* @__PURE__ */ jsx("button", { type: "button", onClick: () => frnl.events.select(tile.id), className: `text-left p-4 border-2 bg-[var(--skipo-surface)] transition-colors ${selected ? "border-[var(--skipo-accent)]" : "border-[var(--skipo-border-color)] hover:border-[var(--skipo-accent)]"}`, children: renderTile ? renderTile(tile, selected) : /* @__PURE__ */ jsxs(Fragment, { children: [
85
98
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs font-black uppercase", children: [
86
99
  tile.icon,
87
100
  tile.title
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TilesMenu
3
- } from "./chunk-NKFSUEAH.js";
3
+ } from "./chunk-DEKSKDSF.js";
4
4
  import {
5
5
  useFloksFrnlStore
6
6
  } from "./chunk-2YP2RPJY.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  GRAPHS_MENU_REQUIRED_SERVICES,
3
3
  GraphsMenu
4
- } from "../../chunk-SFD2LWCU.js";
5
- import "../../chunk-NKFSUEAH.js";
4
+ } from "../../chunk-6EYOJ4DD.js";
5
+ import "../../chunk-DEKSKDSF.js";
6
6
  import "../../chunk-2YP2RPJY.js";
7
7
  export {
8
8
  GRAPHS_MENU_REQUIRED_SERVICES,
@@ -3,9 +3,9 @@ import {
3
3
  BreadcrumbNav,
4
4
  HeaderBar,
5
5
  TopToolbar
6
- } from "../../chunk-GWW3BGOB.js";
7
- import "../../chunk-C3L53YN4.js";
6
+ } from "../../chunk-MYXPGPI3.js";
8
7
  import "../../chunk-GKP6KHTI.js";
8
+ import "../../chunk-C3L53YN4.js";
9
9
  import "../../chunk-62ITRDJX.js";
10
10
  import "../../chunk-A2CDQISJ.js";
11
11
  export {
@@ -2,7 +2,7 @@ import "../../chunk-2SD6BIUX.js";
2
2
  import {
3
3
  TilesMenu,
4
4
  tilesMenuDefinition
5
- } from "../../chunk-NKFSUEAH.js";
5
+ } from "../../chunk-DEKSKDSF.js";
6
6
  import "../../chunk-2YP2RPJY.js";
7
7
  export {
8
8
  TilesMenu,
@@ -12,8 +12,8 @@ import {
12
12
  describeGoogleDriveError,
13
13
  formatWorkspaceFolderPreview,
14
14
  workspaceTilesMenuDefinition
15
- } from "../../chunk-QFUPODK6.js";
16
- import "../../chunk-NKFSUEAH.js";
15
+ } from "../../chunk-FVOZFKV7.js";
16
+ import "../../chunk-DEKSKDSF.js";
17
17
  import "../../chunk-2YP2RPJY.js";
18
18
  export {
19
19
  GoogleDriveWorkspacePicker,
@@ -19,26 +19,7 @@ import {
19
19
  describeGoogleDriveError,
20
20
  formatWorkspaceFolderPreview,
21
21
  workspaceTilesMenuDefinition
22
- } from "./chunk-QFUPODK6.js";
23
- import {
24
- AUTH_PAGE_REQUIRED_SERVICES,
25
- AuthLoadingScreen,
26
- AuthPage,
27
- DEFAULT_LUTH_URL,
28
- GoogleIcon,
29
- GoogleSignInButton,
30
- LoginModal,
31
- LuthAuthClient,
32
- LuthAuthError,
33
- LuthAuthPage,
34
- LuthProtectedRoute,
35
- authPageDefinition,
36
- createLuthAuthClient,
37
- createLuthAuthClientForApplication,
38
- resolveLuthEnvironment,
39
- resolveLuthOrigin,
40
- useLuthAuth
41
- } from "./chunk-FA6GHJKU.js";
22
+ } from "./chunk-FVOZFKV7.js";
42
23
  import {
43
24
  ConfirmDialog,
44
25
  CopyableErrorAlert,
@@ -70,13 +51,13 @@ import {
70
51
  import {
71
52
  GRAPHS_MENU_REQUIRED_SERVICES,
72
53
  GraphsMenu
73
- } from "./chunk-SFD2LWCU.js";
54
+ } from "./chunk-6EYOJ4DD.js";
74
55
  import {
75
56
  AppShell,
76
57
  BreadcrumbNav,
77
58
  HeaderBar,
78
59
  TopToolbar
79
- } from "./chunk-GWW3BGOB.js";
60
+ } from "./chunk-MYXPGPI3.js";
80
61
  import {
81
62
  AccountsSettingsSection,
82
63
  SettingsTab,
@@ -89,7 +70,7 @@ import "./chunk-2SD6BIUX.js";
89
70
  import {
90
71
  TilesMenu,
91
72
  tilesMenuDefinition
92
- } from "./chunk-NKFSUEAH.js";
73
+ } from "./chunk-DEKSKDSF.js";
93
74
  import {
94
75
  createFrnlDomMeasurementAdapter,
95
76
  frnlBadge,
@@ -103,28 +84,6 @@ import {
103
84
  frnlToggleDefinition,
104
85
  frnlTopBar
105
86
  } from "./chunk-IYBFDSTU.js";
106
- import {
107
- frnlButton,
108
- frnlButtonDefinition,
109
- frnlTextInput,
110
- frnlTextInputDefinition
111
- } from "./chunk-RLM72WKL.js";
112
- import "./chunk-5ZMXFCD4.js";
113
- import {
114
- ApiCallIndicator,
115
- AutoSaveToggle,
116
- BottomStrip,
117
- StatusLight,
118
- SystemMessageDisplay
119
- } from "./chunk-C3L53YN4.js";
120
- import {
121
- FrnlStoreProvider,
122
- floksFrnlFrontendApi,
123
- floksFrnlStore,
124
- getFloksFrnlFrontendApi,
125
- getFloksFrnlStore,
126
- useFloksFrnlStore
127
- } from "./chunk-2YP2RPJY.js";
128
87
  import {
129
88
  DEFAULT_PALETTE_ID,
130
89
  THEME_STORAGE_KEY,
@@ -225,6 +184,47 @@ import {
225
184
  BaseBadge,
226
185
  BaseCard
227
186
  } from "./chunk-UOR4P6PO.js";
187
+ import {
188
+ AUTH_PAGE_REQUIRED_SERVICES,
189
+ AuthLoadingScreen,
190
+ AuthPage,
191
+ DEFAULT_LUTH_URL,
192
+ GoogleIcon,
193
+ GoogleSignInButton,
194
+ LoginModal,
195
+ LuthAuthClient,
196
+ LuthAuthError,
197
+ LuthAuthPage,
198
+ LuthProtectedRoute,
199
+ authPageDefinition,
200
+ createLuthAuthClient,
201
+ createLuthAuthClientForApplication,
202
+ resolveLuthEnvironment,
203
+ resolveLuthOrigin,
204
+ useLuthAuth
205
+ } from "./chunk-FA6GHJKU.js";
206
+ import {
207
+ frnlButton,
208
+ frnlButtonDefinition,
209
+ frnlTextInput,
210
+ frnlTextInputDefinition
211
+ } from "./chunk-RLM72WKL.js";
212
+ import "./chunk-5ZMXFCD4.js";
213
+ import {
214
+ ApiCallIndicator,
215
+ AutoSaveToggle,
216
+ BottomStrip,
217
+ StatusLight,
218
+ SystemMessageDisplay
219
+ } from "./chunk-C3L53YN4.js";
220
+ import {
221
+ FrnlStoreProvider,
222
+ floksFrnlFrontendApi,
223
+ floksFrnlStore,
224
+ getFloksFrnlFrontendApi,
225
+ getFloksFrnlStore,
226
+ useFloksFrnlStore
227
+ } from "./chunk-2YP2RPJY.js";
228
228
  import {
229
229
  BaseInput
230
230
  } from "./chunk-W42SJGOJ.js";
@@ -1,9 +1,9 @@
1
- import {
2
- BottomStrip
3
- } from "./chunk-C3L53YN4.js";
4
1
  import {
5
2
  BaseTooltip
6
3
  } from "./chunk-GKP6KHTI.js";
4
+ import {
5
+ BottomStrip
6
+ } from "./chunk-C3L53YN4.js";
7
7
  import {
8
8
  BottomStripProvider
9
9
  } from "./chunk-62ITRDJX.js";