@ultrst-armada/floks 1.12.1 → 1.13.3
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.
- package/.krusbl-release-attestation.json +3 -3
- package/package.json +4 -4
- package/packages/canvas-ui/dist/index.js +9 -9
- package/packages/canvas-ui/package.json +1 -1
- package/packages/ui/dist/{chunk-KS25NSAK.js → chunk-5QDNIDDN.js} +21 -5
- package/packages/ui/dist/{chunk-5PHDWQDI.js → chunk-RBYTWUD4.js} +1 -1
- package/packages/ui/dist/components/auth/index.js +2 -2
- package/packages/ui/dist/frnl/index.d.ts +4 -2
- package/packages/ui/dist/frnl/index.js +1 -1
- package/packages/ui/dist/index.js +14 -14
- package/packages/ui/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@ultrst-armada/floks",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "1.13.3",
|
|
5
|
+
"sourceCommit": "bb1bfd488fba5951ad53a56567dcb065344194dc",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "41202294867"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultrst-armada/floks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.3",
|
|
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.
|
|
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
|
|
82
|
+
"@dinilmusick/gutts": "^1.3.2"
|
|
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.
|
|
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",
|
|
@@ -50,21 +50,21 @@ import {
|
|
|
50
50
|
getAuthoringSubtreeIds
|
|
51
51
|
} from "./chunk-TS7P3WWH.js";
|
|
52
52
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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";
|
|
@@ -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",
|
|
@@ -282,8 +282,11 @@ var frnlTextInput = ({
|
|
|
282
282
|
onClear,
|
|
283
283
|
semanticInput,
|
|
284
284
|
onSemanticValue,
|
|
285
|
+
onSemanticResult,
|
|
285
286
|
disabled = false,
|
|
286
287
|
value,
|
|
288
|
+
name,
|
|
289
|
+
type = "text",
|
|
287
290
|
onChange,
|
|
288
291
|
onFocus,
|
|
289
292
|
onBlur,
|
|
@@ -298,6 +301,16 @@ var frnlTextInput = ({
|
|
|
298
301
|
const { setInspectionText } = useBottomStrip();
|
|
299
302
|
const generatedId = useId2().replace(/[:/]/g, "");
|
|
300
303
|
const componentId = id ?? `frnlTextInput.${label ? label.toLowerCase().replace(/[^a-z0-9]/g, "-") : generatedId}`;
|
|
304
|
+
const effectiveSemanticInput = useMemo2(() => {
|
|
305
|
+
if (semanticInput === null) return void 0;
|
|
306
|
+
return semanticInput ?? createDefaultFrnlInputContract({
|
|
307
|
+
name: name ?? componentId,
|
|
308
|
+
label: label ?? name ?? componentId,
|
|
309
|
+
description,
|
|
310
|
+
inputType: type,
|
|
311
|
+
context: semanticContext
|
|
312
|
+
});
|
|
313
|
+
}, [semanticInput, name, componentId, label, description, type, semanticContext]);
|
|
301
314
|
const resolvedState = disabled ? "disabled" : error ? "error" : "idle";
|
|
302
315
|
const handlers = useMemo2(
|
|
303
316
|
() => ({
|
|
@@ -325,9 +338,10 @@ var frnlTextInput = ({
|
|
|
325
338
|
}
|
|
326
339
|
};
|
|
327
340
|
const handleSemanticBlur = async () => {
|
|
328
|
-
if (!
|
|
329
|
-
const result = await resolveFrnlInput(
|
|
330
|
-
|
|
341
|
+
if (!effectiveSemanticInput || typeof value !== "string" || !value.trim()) return;
|
|
342
|
+
const result = await resolveFrnlInput(effectiveSemanticInput, value, semanticContext);
|
|
343
|
+
onSemanticResult?.(result);
|
|
344
|
+
if (result && result.status === "resolved" && result.value !== void 0) {
|
|
331
345
|
onSemanticValue?.(result.value, result.rawInput);
|
|
332
346
|
const strVal = typeof result.value === "string" ? result.value : String(result.value);
|
|
333
347
|
if (strVal !== value) {
|
|
@@ -362,10 +376,12 @@ var frnlTextInput = ({
|
|
|
362
376
|
{
|
|
363
377
|
...rest,
|
|
364
378
|
id: componentId,
|
|
379
|
+
name,
|
|
380
|
+
type,
|
|
365
381
|
value,
|
|
366
382
|
disabled,
|
|
367
383
|
"data-frnl-component": "frnlTextInput",
|
|
368
|
-
"data-semantic-input":
|
|
384
|
+
"data-semantic-input": effectiveSemanticInput ? "true" : "false",
|
|
369
385
|
"data-frnl-state": frnl.state,
|
|
370
386
|
onChange: (e) => {
|
|
371
387
|
onChange?.(e);
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GoogleSignInButton,
|
|
5
5
|
LoginModal,
|
|
6
6
|
authPageDefinition
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
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
|
|
|
@@ -172,8 +172,10 @@ 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
|
-
|
|
175
|
+
/** undefined = framework auto contract; null = explicitly disable semantic resolution. */
|
|
176
|
+
semanticInput?: FrnlInputContract<any> | null;
|
|
176
177
|
onSemanticValue?: (value: any, rawInput?: string) => void;
|
|
178
|
+
onSemanticResult?: (result: FrnlResolvedInput<any>) => void;
|
|
177
179
|
}
|
|
178
180
|
declare const frnlTextInputDefinition: {
|
|
179
181
|
name: string;
|
|
@@ -64,18 +64,6 @@ import {
|
|
|
64
64
|
TilesMenu,
|
|
65
65
|
tilesMenuDefinition
|
|
66
66
|
} from "./chunk-DZTJJOLR.js";
|
|
67
|
-
import {
|
|
68
|
-
frnlBadge,
|
|
69
|
-
frnlBottomBar,
|
|
70
|
-
frnlPage,
|
|
71
|
-
frnlSelect,
|
|
72
|
-
frnlSelectDefinition,
|
|
73
|
-
frnlSlider,
|
|
74
|
-
frnlTabWindow,
|
|
75
|
-
frnlToggle,
|
|
76
|
-
frnlToggleDefinition,
|
|
77
|
-
frnlTopBar
|
|
78
|
-
} from "./chunk-G5CYPT3P.js";
|
|
79
67
|
import {
|
|
80
68
|
ActionButton,
|
|
81
69
|
Badge,
|
|
@@ -103,6 +91,18 @@ import {
|
|
|
103
91
|
ToolbarPanel,
|
|
104
92
|
UIParent
|
|
105
93
|
} from "./chunk-Q324BMDJ.js";
|
|
94
|
+
import {
|
|
95
|
+
frnlBadge,
|
|
96
|
+
frnlBottomBar,
|
|
97
|
+
frnlPage,
|
|
98
|
+
frnlSelect,
|
|
99
|
+
frnlSelectDefinition,
|
|
100
|
+
frnlSlider,
|
|
101
|
+
frnlTabWindow,
|
|
102
|
+
frnlToggle,
|
|
103
|
+
frnlToggleDefinition,
|
|
104
|
+
frnlTopBar
|
|
105
|
+
} from "./chunk-G5CYPT3P.js";
|
|
106
106
|
import "./chunk-SLJBDDSN.js";
|
|
107
107
|
import {
|
|
108
108
|
DEFAULT_PALETTE_ID,
|
|
@@ -210,13 +210,13 @@ import {
|
|
|
210
210
|
GoogleSignInButton,
|
|
211
211
|
LoginModal,
|
|
212
212
|
authPageDefinition
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-RBYTWUD4.js";
|
|
214
214
|
import {
|
|
215
215
|
frnlButton,
|
|
216
216
|
frnlButtonDefinition,
|
|
217
217
|
frnlTextInput,
|
|
218
218
|
frnlTextInputDefinition
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-5QDNIDDN.js";
|
|
220
220
|
import "./chunk-5ZMXFCD4.js";
|
|
221
221
|
import {
|
|
222
222
|
ApiCallIndicator,
|
package/packages/ui/package.json
CHANGED
|
@@ -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.
|
|
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"
|