@ultrst-armada/floks 1.12.1 → 1.12.2

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.1",
5
- "sourceCommit": "691a99f75fe4e95a74ebf59e0cddc860031bc722",
4
+ "version": "1.12.2",
5
+ "sourceCommit": "f80d6d20684475959ef2a78cd1a6d17664d853b6",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "41190546738"
7
+ "workflowRunId": "41195216012"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
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.0",
77
+ "@ultrst-armada/frnlts": "^0.4.1",
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.0"
82
+ "@dinilmusick/gutts": "^1.2.1"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@ultrst-armada/kloks": "^1.17.0",
@@ -94,7 +94,7 @@
94
94
  "@types/react": "^19.0.0",
95
95
  "@types/react-dom": "^19.0.0",
96
96
  "@ultrst-armada/kloks": "^1.22.2",
97
- "@ultrst-armada/frnlts": "^0.4.0",
97
+ "@ultrst-armada/frnlts": "^0.4.1",
98
98
  "happy-dom": "^21.0.3",
99
99
  "lucide-react": "^1.55.0",
100
100
  "react": "^19.0.1",
@@ -50,21 +50,21 @@ import {
50
50
  getAuthoringSubtreeIds
51
51
  } from "./chunk-TS7P3WWH.js";
52
52
  import {
53
- CanvasViewport,
54
- InfiniteCanvas,
55
- MiniMap,
56
- useCanvas
57
- } from "./chunk-34YRDZPJ.js";
53
+ DockBar,
54
+ DockItem,
55
+ useDock
56
+ } from "./chunk-6VB74RCH.js";
58
57
  import {
59
58
  MonacoEditor,
60
59
  skipoDarkTheme,
61
60
  useMonaco
62
61
  } from "./chunk-ZJXRL74D.js";
63
62
  import {
64
- DockBar,
65
- DockItem,
66
- useDock
67
- } from "./chunk-6VB74RCH.js";
63
+ CanvasViewport,
64
+ InfiniteCanvas,
65
+ MiniMap,
66
+ useCanvas
67
+ } from "./chunk-34YRDZPJ.js";
68
68
  import {
69
69
  FodModule
70
70
  } from "./chunk-7CYX3B6O.js";
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@floks/ui": "workspace:*",
78
- "@ultrst-armada/frnlts": "^0.4.0",
78
+ "@ultrst-armada/frnlts": "^0.4.1",
79
79
  "@ultrst-armada/kloks": "^1.22.2"
80
80
  },
81
81
  "peerDependencies": {
@@ -215,7 +215,7 @@ frnlButton.displayName = "frnlButton";
215
215
  import { useId as useId2, useMemo as useMemo2 } from "react";
216
216
  import { defineFrnlComponent as defineFrnlComponent2 } from "@ultrst-armada/frnlts";
217
217
  import { useFrnlComponent as useFrnlComponent2 } from "@ultrst-armada/frnlts/react";
218
- import { resolveFrnlInput, useFrnlSemanticInputContext } from "@ultrst-armada/frnlts";
218
+ import { createDefaultFrnlInputContract, resolveFrnlInput, useFrnlSemanticInputContext } from "@ultrst-armada/frnlts";
219
219
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
220
220
  var frnlTextInputDefinition = defineFrnlComponent2({
221
221
  name: "frnlTextInput",
@@ -284,6 +284,8 @@ var frnlTextInput = ({
284
284
  onSemanticValue,
285
285
  disabled = false,
286
286
  value,
287
+ name,
288
+ type = "text",
287
289
  onChange,
288
290
  onFocus,
289
291
  onBlur,
@@ -298,6 +300,16 @@ var frnlTextInput = ({
298
300
  const { setInspectionText } = useBottomStrip();
299
301
  const generatedId = useId2().replace(/[:/]/g, "");
300
302
  const componentId = id ?? `frnlTextInput.${label ? label.toLowerCase().replace(/[^a-z0-9]/g, "-") : generatedId}`;
303
+ const effectiveSemanticInput = useMemo2(() => {
304
+ if (semanticInput === null) return void 0;
305
+ return semanticInput ?? createDefaultFrnlInputContract({
306
+ name: name ?? componentId,
307
+ label: label ?? name ?? componentId,
308
+ description,
309
+ inputType: type,
310
+ context: semanticContext
311
+ });
312
+ }, [semanticInput, name, componentId, label, description, type, semanticContext]);
301
313
  const resolvedState = disabled ? "disabled" : error ? "error" : "idle";
302
314
  const handlers = useMemo2(
303
315
  () => ({
@@ -325,9 +337,9 @@ var frnlTextInput = ({
325
337
  }
326
338
  };
327
339
  const handleSemanticBlur = async () => {
328
- if (!semanticInput || typeof value !== "string" || !value.trim()) return;
329
- const result = await resolveFrnlInput(semanticInput, value, semanticContext);
330
- if (result.status === "resolved" && result.value !== void 0) {
340
+ if (!effectiveSemanticInput || typeof value !== "string" || !value.trim()) return;
341
+ const result = await resolveFrnlInput(effectiveSemanticInput, value, semanticContext);
342
+ if (result && result.status === "resolved" && result.value !== void 0) {
331
343
  onSemanticValue?.(result.value, result.rawInput);
332
344
  const strVal = typeof result.value === "string" ? result.value : String(result.value);
333
345
  if (strVal !== value) {
@@ -362,10 +374,12 @@ var frnlTextInput = ({
362
374
  {
363
375
  ...rest,
364
376
  id: componentId,
377
+ name,
378
+ type,
365
379
  value,
366
380
  disabled,
367
381
  "data-frnl-component": "frnlTextInput",
368
- "data-semantic-input": semanticInput ? "true" : "false",
382
+ "data-semantic-input": effectiveSemanticInput ? "true" : "false",
369
383
  "data-frnl-state": frnl.state,
370
384
  onChange: (e) => {
371
385
  onChange?.(e);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  frnlButton,
3
3
  frnlTextInput
4
- } from "./chunk-KS25NSAK.js";
4
+ } from "./chunk-2US2HKL6.js";
5
5
  import {
6
6
  useFloksFrnlStore
7
7
  } from "./chunk-B4XTM5TI.js";
@@ -4,8 +4,8 @@ import {
4
4
  GoogleSignInButton,
5
5
  LoginModal,
6
6
  authPageDefinition
7
- } from "../../chunk-5PHDWQDI.js";
8
- import "../../chunk-KS25NSAK.js";
7
+ } from "../../chunk-BYEKOTEG.js";
8
+ import "../../chunk-2US2HKL6.js";
9
9
  import "../../chunk-5ZMXFCD4.js";
10
10
  import "../../chunk-C3L53YN4.js";
11
11
  import "../../chunk-B4XTM5TI.js";
@@ -172,7 +172,8 @@ interface FrnlTextInputProps extends Omit<React__default.InputHTMLAttributes<HTM
172
172
  leadingIcon?: React__default.ReactNode;
173
173
  trailingIcon?: React__default.ReactNode;
174
174
  onClear?: () => void;
175
- semanticInput?: FrnlInputContract<any>;
175
+ /** undefined = framework auto contract; null = explicitly disable semantic resolution. */
176
+ semanticInput?: FrnlInputContract<any> | null;
176
177
  onSemanticValue?: (value: any, rawInput?: string) => void;
177
178
  }
178
179
  declare const frnlTextInputDefinition: {
@@ -15,7 +15,7 @@ import {
15
15
  frnlButtonDefinition,
16
16
  frnlTextInput,
17
17
  frnlTextInputDefinition
18
- } from "../chunk-KS25NSAK.js";
18
+ } from "../chunk-2US2HKL6.js";
19
19
  import "../chunk-5ZMXFCD4.js";
20
20
  import "../chunk-C3L53YN4.js";
21
21
  import {
@@ -210,13 +210,13 @@ import {
210
210
  GoogleSignInButton,
211
211
  LoginModal,
212
212
  authPageDefinition
213
- } from "./chunk-5PHDWQDI.js";
213
+ } from "./chunk-BYEKOTEG.js";
214
214
  import {
215
215
  frnlButton,
216
216
  frnlButtonDefinition,
217
217
  frnlTextInput,
218
218
  frnlTextInputDefinition
219
- } from "./chunk-KS25NSAK.js";
219
+ } from "./chunk-2US2HKL6.js";
220
220
  import "./chunk-5ZMXFCD4.js";
221
221
  import {
222
222
  ApiCallIndicator,
@@ -103,7 +103,7 @@
103
103
  },
104
104
  "dependencies": {
105
105
  "zod": "^3.24.1",
106
- "@ultrst-armada/frnlts": "^0.4.0",
106
+ "@ultrst-armada/frnlts": "^0.4.1",
107
107
  "zustand": "^5.0.3",
108
108
  "@xyflow/react": "^12.8.6",
109
109
  "d3-force": "^3.0.0"