@ultrst-armada/floks 1.12.2 → 1.13.4

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": "1.12.2",
5
- "sourceCommit": "f80d6d20684475959ef2a78cd1a6d17664d853b6",
4
+ "version": "1.13.4",
5
+ "sourceCommit": "263c5e058791e5069309c71f5bd3936d23190842",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "41195216012"
7
+ "workflowRunId": "41290610321"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "1.12.2",
3
+ "version": "1.13.4",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -74,12 +74,12 @@
74
74
  "clean": "pnpm -r run clean"
75
75
  },
76
76
  "dependencies": {
77
- "@ultrst-armada/frnlts": "^0.4.1",
77
+ "@ultrst-armada/frnlts": "^0.5.3",
78
78
  "@xyflow/react": "^12.8.6",
79
79
  "d3-force": "^3.0.0",
80
80
  "zod": "^3.24.1",
81
81
  "zustand": "^5.0.3",
82
- "@dinilmusick/gutts": "^1.2.1"
82
+ "@dinilmusick/gutts": "^1.3.2"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@ultrst-armada/kloks": "^1.17.0",
@@ -93,8 +93,8 @@
93
93
  "@types/node": "^22.0.0",
94
94
  "@types/react": "^19.0.0",
95
95
  "@types/react-dom": "^19.0.0",
96
- "@ultrst-armada/kloks": "^1.22.2",
97
- "@ultrst-armada/frnlts": "^0.4.1",
96
+ "@ultrst-armada/kloks": "^1.24.0",
97
+ "@ultrst-armada/frnlts": "^0.5.3",
98
98
  "happy-dom": "^21.0.3",
99
99
  "lucide-react": "^1.55.0",
100
100
  "react": "^19.0.1",
@@ -75,8 +75,8 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@floks/ui": "workspace:*",
78
- "@ultrst-armada/frnlts": "^0.4.1",
79
- "@ultrst-armada/kloks": "^1.22.2"
78
+ "@ultrst-armada/frnlts": "^0.5.3",
79
+ "@ultrst-armada/kloks": "^1.24.0"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@dnd-kit/core": "^6.0.0",
@@ -282,6 +282,7 @@ var frnlTextInput = ({
282
282
  onClear,
283
283
  semanticInput,
284
284
  onSemanticValue,
285
+ onSemanticResult,
285
286
  disabled = false,
286
287
  value,
287
288
  name,
@@ -339,6 +340,7 @@ var frnlTextInput = ({
339
340
  const handleSemanticBlur = async () => {
340
341
  if (!effectiveSemanticInput || typeof value !== "string" || !value.trim()) return;
341
342
  const result = await resolveFrnlInput(effectiveSemanticInput, value, semanticContext);
343
+ onSemanticResult?.(result);
342
344
  if (result && result.status === "resolved" && result.value !== void 0) {
343
345
  onSemanticValue?.(result.value, result.rawInput);
344
346
  const strVal = typeof result.value === "string" ? result.value : String(result.value);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  frnlButton,
3
3
  frnlTextInput
4
- } from "./chunk-2US2HKL6.js";
4
+ } from "./chunk-5QDNIDDN.js";
5
5
  import {
6
6
  useFloksFrnlStore
7
7
  } from "./chunk-B4XTM5TI.js";
@@ -1063,13 +1063,14 @@ var DirectChatMessageList = ({
1063
1063
 
1064
1064
  // src/components/ai/chat/DirectChatInput.tsx
1065
1065
  import { useState as useState10 } from "react";
1066
- import { Send } from "lucide-react";
1066
+ import { Bug, Send } from "lucide-react";
1067
1067
  import { jsx as jsx21, jsxs as jsxs21 } from "react/jsx-runtime";
1068
1068
  var DirectChatInput = ({
1069
1069
  onSendMessage,
1070
1070
  disabled = false,
1071
1071
  placeholder = "Type a prompt... (Shift+Enter for new line)",
1072
- toolsSlot
1072
+ toolsSlot,
1073
+ onReportBug
1073
1074
  }) => {
1074
1075
  const [content, setContent] = useState10("");
1075
1076
  const handleKeyDown = (e) => {
@@ -1084,7 +1085,13 @@ var DirectChatInput = ({
1084
1085
  setContent("");
1085
1086
  };
1086
1087
  return /* @__PURE__ */ jsxs21("div", { className: "p-3 border-t border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 font-mono text-xs", children: [
1087
- /* @__PURE__ */ jsx21("div", { className: "flex items-center justify-between pb-2", children: /* @__PURE__ */ jsx21("div", { className: "flex items-center gap-2", children: toolsSlot }) }),
1088
+ /* @__PURE__ */ jsx21("div", { className: "flex items-center justify-between pb-2", children: /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2", children: [
1089
+ toolsSlot,
1090
+ onReportBug && /* @__PURE__ */ jsxs21(BaseButton, { size: "sm", variant: "ghost", onClick: () => content.trim() && onReportBug(content.trim()), disabled: disabled || !content.trim(), title: "Report bug", children: [
1091
+ /* @__PURE__ */ jsx21(Bug, { size: 13 }),
1092
+ " Report bug"
1093
+ ] })
1094
+ ] }) }),
1088
1095
  /* @__PURE__ */ jsxs21("div", { className: "flex items-end gap-2", children: [
1089
1096
  /* @__PURE__ */ jsx21("div", { className: "flex-1", children: /* @__PURE__ */ jsx21(
1090
1097
  BaseTextarea,
@@ -359,6 +359,7 @@ interface DirectChatInputProps {
359
359
  disabled?: boolean;
360
360
  placeholder?: string;
361
361
  toolsSlot?: React__default.ReactNode;
362
+ onReportBug?: (description: string) => void;
362
363
  }
363
364
  declare const DirectChatInput: React__default.FC<DirectChatInputProps>;
364
365
 
@@ -22,7 +22,7 @@ import {
22
22
  SingleKeyForm,
23
23
  TimelineScrubber,
24
24
  getProviderIcon
25
- } from "../../chunk-UJK3JKRK.js";
25
+ } from "../../chunk-XMRSW4TL.js";
26
26
  import "../../chunk-KIFQA7L6.js";
27
27
  import "../../chunk-GKP6KHTI.js";
28
28
  import "../../chunk-UOR4P6PO.js";
@@ -4,8 +4,8 @@ import {
4
4
  GoogleSignInButton,
5
5
  LoginModal,
6
6
  authPageDefinition
7
- } from "../../chunk-BYEKOTEG.js";
8
- import "../../chunk-2US2HKL6.js";
7
+ } from "../../chunk-RBYTWUD4.js";
8
+ import "../../chunk-5QDNIDDN.js";
9
9
  import "../../chunk-5ZMXFCD4.js";
10
10
  import "../../chunk-C3L53YN4.js";
11
11
  import "../../chunk-B4XTM5TI.js";
@@ -1,5 +1,5 @@
1
1
  export { FrnlStoreProvider, FrnlStoreProviderProps, floksFrnlFrontendApi, floksFrnlStore, getFloksFrnlStore, useFloksFrnlStore } from './store.js';
2
- import { FrnlInputContract, FrnlOrchestrationDefinition } from '@ultrst-armada/frnlts';
2
+ import { FrnlInputContract, FrnlResolvedInput, FrnlOrchestrationDefinition } from '@ultrst-armada/frnlts';
3
3
  export { FrnlComponentControl, FrnlComponentSnapshot, FrnlFrontendApi, FrnlFrontendSnapshot, FrnlInputContract, FrnlStore } from '@ultrst-armada/frnlts';
4
4
  import React__default from 'react';
5
5
 
@@ -175,6 +175,7 @@ interface FrnlTextInputProps extends Omit<React__default.InputHTMLAttributes<HTM
175
175
  /** undefined = framework auto contract; null = explicitly disable semantic resolution. */
176
176
  semanticInput?: FrnlInputContract<any> | null;
177
177
  onSemanticValue?: (value: any, rawInput?: string) => void;
178
+ onSemanticResult?: (result: FrnlResolvedInput<any>) => void;
178
179
  }
179
180
  declare const frnlTextInputDefinition: {
180
181
  name: string;
@@ -15,7 +15,7 @@ import {
15
15
  frnlButtonDefinition,
16
16
  frnlTextInput,
17
17
  frnlTextInputDefinition
18
- } from "../chunk-2US2HKL6.js";
18
+ } from "../chunk-5QDNIDDN.js";
19
19
  import "../chunk-5ZMXFCD4.js";
20
20
  import "../chunk-C3L53YN4.js";
21
21
  import {
@@ -189,7 +189,7 @@ import {
189
189
  SingleKeyForm,
190
190
  TimelineScrubber,
191
191
  getProviderIcon
192
- } from "./chunk-UJK3JKRK.js";
192
+ } from "./chunk-XMRSW4TL.js";
193
193
  import {
194
194
  BaseSelect,
195
195
  BaseTextarea,
@@ -210,13 +210,13 @@ import {
210
210
  GoogleSignInButton,
211
211
  LoginModal,
212
212
  authPageDefinition
213
- } from "./chunk-BYEKOTEG.js";
213
+ } from "./chunk-RBYTWUD4.js";
214
214
  import {
215
215
  frnlButton,
216
216
  frnlButtonDefinition,
217
217
  frnlTextInput,
218
218
  frnlTextInputDefinition
219
- } from "./chunk-2US2HKL6.js";
219
+ } from "./chunk-5QDNIDDN.js";
220
220
  import "./chunk-5ZMXFCD4.js";
221
221
  import {
222
222
  ApiCallIndicator,
@@ -97,13 +97,13 @@
97
97
  }
98
98
  },
99
99
  "scripts": {
100
- "build": "tsup src/index.ts src/theme/index.ts src/palette/index.ts src/hierarchy/index.ts src/frnl/index.ts src/frnl/store.ts src/components/base/index.ts src/components/containers/index.ts src/components/composite/index.ts src/components/layout/index.ts src/components/bottom-strip/index.ts src/components/settings/index.ts src/components/auth/index.ts src/components/workspace/index.ts src/components/tiles/index.ts src/components/graph/index.ts src/components/ai/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react",
100
+ "build": "tsup src/index.ts src/theme/index.ts src/palette/index.ts src/hierarchy/index.ts src/frnl/index.ts src/frnl/store.ts src/components/base/index.ts src/components/containers/index.ts src/components/composite/index.ts src/components/layout/index.ts src/components/bottom-strip/index.ts src/components/settings/index.ts src/components/auth/index.ts src/components/workspace/index.ts src/components/tiles/index.ts src/components/graph/index.ts src/components/ai/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react --external @ultrst-armada/frnlts",
101
101
  "typecheck": "tsc --noEmit",
102
102
  "clean": "rm -rf dist"
103
103
  },
104
104
  "dependencies": {
105
105
  "zod": "^3.24.1",
106
- "@ultrst-armada/frnlts": "^0.4.1",
106
+ "@ultrst-armada/frnlts": "^0.5.3",
107
107
  "zustand": "^5.0.3",
108
108
  "@xyflow/react": "^12.8.6",
109
109
  "d3-force": "^3.0.0"