@ultrst-armada/floks 1.11.1 → 1.12.1
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 +5 -5
- package/packages/canvas-ui/package.json +2 -2
- package/packages/ui/dist/{chunk-LL745D7M.js → chunk-5PHDWQDI.js} +1 -1
- package/packages/ui/dist/{chunk-Z5YEBR6R.js → chunk-KS25NSAK.js} +21 -1
- package/packages/ui/dist/components/auth/index.js +2 -2
- package/packages/ui/dist/frnl/index.d.ts +7 -2
- package/packages/ui/dist/frnl/index.js +1 -1
- package/packages/ui/dist/index.d.ts +1 -1
- package/packages/ui/dist/index.js +2 -2
- package/packages/ui/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@ultrst-armada/floks",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "1.12.1",
|
|
5
|
+
"sourceCommit": "691a99f75fe4e95a74ebf59e0cddc860031bc722",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "41190546738"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultrst-armada/floks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
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.4.0",
|
|
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.
|
|
82
|
+
"@dinilmusick/gutts": "^1.2.0"
|
|
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.
|
|
97
|
-
"@ultrst-armada/frnlts": "^0.
|
|
96
|
+
"@ultrst-armada/kloks": "^1.22.2",
|
|
97
|
+
"@ultrst-armada/frnlts": "^0.4.0",
|
|
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.
|
|
79
|
-
"@ultrst-armada/kloks": "^1.
|
|
78
|
+
"@ultrst-armada/frnlts": "^0.4.0",
|
|
79
|
+
"@ultrst-armada/kloks": "^1.22.2"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@dnd-kit/core": "^6.0.0",
|
|
@@ -215,6 +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
219
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
219
220
|
var frnlTextInputDefinition = defineFrnlComponent2({
|
|
220
221
|
name: "frnlTextInput",
|
|
@@ -223,7 +224,8 @@ var frnlTextInputDefinition = defineFrnlComponent2({
|
|
|
223
224
|
name: "idle",
|
|
224
225
|
events: {
|
|
225
226
|
change: { functionId: "frnlTextInput.idle.change" },
|
|
226
|
-
focus: { functionId: "frnlTextInput.idle.focus" }
|
|
227
|
+
focus: { functionId: "frnlTextInput.idle.focus" },
|
|
228
|
+
blur: { functionId: "frnlTextInput.idle.blur" }
|
|
227
229
|
},
|
|
228
230
|
visualParameters: { borderColor: "var(--skipo-border-subtle, #334155)" },
|
|
229
231
|
phases: {
|
|
@@ -278,6 +280,8 @@ var frnlTextInput = ({
|
|
|
278
280
|
leadingIcon,
|
|
279
281
|
trailingIcon,
|
|
280
282
|
onClear,
|
|
283
|
+
semanticInput,
|
|
284
|
+
onSemanticValue,
|
|
281
285
|
disabled = false,
|
|
282
286
|
value,
|
|
283
287
|
onChange,
|
|
@@ -290,6 +294,7 @@ var frnlTextInput = ({
|
|
|
290
294
|
...rest
|
|
291
295
|
}) => {
|
|
292
296
|
const store = useFloksFrnlStore();
|
|
297
|
+
const semanticContext = useFrnlSemanticInputContext();
|
|
293
298
|
const { setInspectionText } = useBottomStrip();
|
|
294
299
|
const generatedId = useId2().replace(/[:/]/g, "");
|
|
295
300
|
const componentId = id ?? `frnlTextInput.${label ? label.toLowerCase().replace(/[^a-z0-9]/g, "-") : generatedId}`;
|
|
@@ -298,6 +303,7 @@ var frnlTextInput = ({
|
|
|
298
303
|
() => ({
|
|
299
304
|
"frnlTextInput.idle.change": (payload) => onChange?.(payload),
|
|
300
305
|
"frnlTextInput.idle.focus": (payload) => onFocus?.(payload),
|
|
306
|
+
"frnlTextInput.idle.blur": (payload) => onBlur?.(payload),
|
|
301
307
|
"frnlTextInput.focused.change": (payload) => onChange?.(payload),
|
|
302
308
|
"frnlTextInput.focused.blur": (payload) => onBlur?.(payload),
|
|
303
309
|
"frnlTextInput.error.change": (payload) => onChange?.(payload)
|
|
@@ -318,6 +324,18 @@ var frnlTextInput = ({
|
|
|
318
324
|
setInspectionText(label || null, description || null);
|
|
319
325
|
}
|
|
320
326
|
};
|
|
327
|
+
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) {
|
|
331
|
+
onSemanticValue?.(result.value, result.rawInput);
|
|
332
|
+
const strVal = typeof result.value === "string" ? result.value : String(result.value);
|
|
333
|
+
if (strVal !== value) {
|
|
334
|
+
const syntheticEvent = { target: { value: strVal } };
|
|
335
|
+
onChange?.(syntheticEvent);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
};
|
|
321
339
|
const handleLeave = (e) => {
|
|
322
340
|
onMouseLeave?.(e);
|
|
323
341
|
setInspectionText(null);
|
|
@@ -347,6 +365,7 @@ var frnlTextInput = ({
|
|
|
347
365
|
value,
|
|
348
366
|
disabled,
|
|
349
367
|
"data-frnl-component": "frnlTextInput",
|
|
368
|
+
"data-semantic-input": semanticInput ? "true" : "false",
|
|
350
369
|
"data-frnl-state": frnl.state,
|
|
351
370
|
onChange: (e) => {
|
|
352
371
|
onChange?.(e);
|
|
@@ -359,6 +378,7 @@ var frnlTextInput = ({
|
|
|
359
378
|
},
|
|
360
379
|
onBlur: (e) => {
|
|
361
380
|
onBlur?.(e);
|
|
381
|
+
void handleSemanticBlur();
|
|
362
382
|
frnl.events.blur?.(e);
|
|
363
383
|
setInspectionText(null);
|
|
364
384
|
},
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GoogleSignInButton,
|
|
5
5
|
LoginModal,
|
|
6
6
|
authPageDefinition
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-5PHDWQDI.js";
|
|
8
|
+
import "../../chunk-KS25NSAK.js";
|
|
9
9
|
import "../../chunk-5ZMXFCD4.js";
|
|
10
10
|
import "../../chunk-C3L53YN4.js";
|
|
11
11
|
import "../../chunk-B4XTM5TI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FrnlStoreProvider, FrnlStoreProviderProps, floksFrnlFrontendApi, floksFrnlStore, getFloksFrnlStore, useFloksFrnlStore } from './store.js';
|
|
2
|
-
import { FrnlOrchestrationDefinition } from '@ultrst-armada/frnlts';
|
|
3
|
-
export { FrnlComponentControl, FrnlComponentSnapshot, FrnlFrontendApi, FrnlFrontendSnapshot, FrnlStore } from '@ultrst-armada/frnlts';
|
|
2
|
+
import { FrnlInputContract, FrnlOrchestrationDefinition } from '@ultrst-armada/frnlts';
|
|
3
|
+
export { FrnlComponentControl, FrnlComponentSnapshot, FrnlFrontendApi, FrnlFrontendSnapshot, FrnlInputContract, FrnlStore } from '@ultrst-armada/frnlts';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
|
|
6
6
|
type FrnlButtonVariant = 'primary' | 'secondary' | 'accent' | 'dock' | 'danger' | 'success' | 'ghost' | 'outline';
|
|
@@ -172,6 +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>;
|
|
176
|
+
onSemanticValue?: (value: any, rawInput?: string) => void;
|
|
175
177
|
}
|
|
176
178
|
declare const frnlTextInputDefinition: {
|
|
177
179
|
name: string;
|
|
@@ -185,6 +187,9 @@ declare const frnlTextInputDefinition: {
|
|
|
185
187
|
focus: {
|
|
186
188
|
functionId: string;
|
|
187
189
|
};
|
|
190
|
+
blur: {
|
|
191
|
+
functionId: string;
|
|
192
|
+
};
|
|
188
193
|
};
|
|
189
194
|
visualParameters: {
|
|
190
195
|
borderColor: string;
|
|
@@ -15,7 +15,7 @@ export { AIKeyEntry, AIKeyUsageStats, AIModelMeta, AIModelPicker, AIModelPickerP
|
|
|
15
15
|
export { DEFAULT_PALETTE_ID, THEME_STORAGE_KEY, ThemeContextValue, ThemeProvider, ThemeProviderProps, applyPaletteToDocument, getActivePalette, paletteToSkipoThemePack, subscribeToPalette, usePalette, useTheme } from './palette/index.js';
|
|
16
16
|
export { ActionButton, Badge, BadgeProps, BadgeTone, ButtonParent, ButtonParentProps, ButtonProps, ButtonSize, ButtonVariant, CardPanel, CategoryCardTile, ChannelStripTile, ClipCardTile, DangerButton, GhostButton, IconButton, InspectorPanel, ModalPanel, PanelParent, PanelParentProps, PanelProps, PanelVariant, SelectInput, SelectInputProps, SliderInput, SliderInputProps, SpawnOptionTile, SplitButton, SplitButtonProps, StatusDot, StatusDotProps, TelemetryPill, TelemetryPillProps, TextInput, TextInputProps, TileParent, TileParentProps, TileVariant, ToggleButton, ToggleInput, ToggleInputProps, ToolbarPanel, TooltipDirection, UIBaseProps, UIInteractionState, UIParent, UIParentProps, UIProps, UIRole, UISize, UIStyleTokens, UIVariant } from './hierarchy/index.js';
|
|
17
17
|
export { FrnlStoreProvider, FrnlStoreProviderProps, floksFrnlFrontendApi, floksFrnlStore, getFloksFrnlStore, useFloksFrnlStore } from './frnl/store.js';
|
|
18
|
-
export { FrnlComponentControl, FrnlComponentSnapshot, FrnlFrontendApi, FrnlFrontendSnapshot, FrnlStore } from '@ultrst-armada/frnlts';
|
|
18
|
+
export { FrnlComponentControl, FrnlComponentSnapshot, FrnlFrontendApi, FrnlFrontendSnapshot, FrnlInputContract, FrnlStore } from '@ultrst-armada/frnlts';
|
|
19
19
|
export { FrnlApiRequestLog, FrnlBadgeProps, FrnlBottomBarProps, FrnlBreadcrumbItem, FrnlButtonProps, FrnlButtonSize, FrnlButtonVariant, FrnlPageProps, FrnlPageTab, FrnlSelectOption, FrnlSelectProps, FrnlSliderProps, FrnlTabItem, FrnlTabWindowProps, FrnlTextInputProps, FrnlToggleProps, FrnlTopBarProps, FrnlTopBarTab, FrnlUserProfile, frnlBadge, frnlBottomBar, frnlButton, frnlButtonDefinition, frnlPage, frnlSelect, frnlSelectDefinition, frnlSlider, frnlTabWindow, frnlTextInput, frnlTextInputDefinition, frnlToggle, frnlToggleDefinition, frnlTopBar } from './frnl/index.js';
|
|
20
20
|
import 'zod';
|
|
21
21
|
import 'react';
|
|
@@ -210,13 +210,13 @@ import {
|
|
|
210
210
|
GoogleSignInButton,
|
|
211
211
|
LoginModal,
|
|
212
212
|
authPageDefinition
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-5PHDWQDI.js";
|
|
214
214
|
import {
|
|
215
215
|
frnlButton,
|
|
216
216
|
frnlButtonDefinition,
|
|
217
217
|
frnlTextInput,
|
|
218
218
|
frnlTextInputDefinition
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-KS25NSAK.js";
|
|
220
220
|
import "./chunk-5ZMXFCD4.js";
|
|
221
221
|
import {
|
|
222
222
|
ApiCallIndicator,
|