@factorialco/f0-react 12.16.0 → 12.17.0
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/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +35 -5
- package/dist/experimental.js +1197 -997
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/component-status.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useCallback as i, useEffect as a, useRef as o, useState as s } from "re
|
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
//#region \0virtual:f0-component-status-data
|
|
6
6
|
var u = {
|
|
7
|
-
generatedAt: "2026-11-
|
|
7
|
+
generatedAt: "2026-11-03T11:52:48.940Z",
|
|
8
8
|
stats: {
|
|
9
9
|
total: 312,
|
|
10
10
|
byStatus: {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -11940,13 +11940,36 @@ interface F0AgenticHomeProps {
|
|
|
11940
11940
|
showSidebarToggle?: boolean;
|
|
11941
11941
|
/**
|
|
11942
11942
|
* The person's widgets, down the Home's right edge — the same items
|
|
11943
|
-
* `NewHomeLayout` takes for its rail, drawn with `slotRenderers`.
|
|
11944
|
-
* is
|
|
11945
|
-
* for `hasUpdates`), and pointing at one or focusing it floats the
|
|
11946
|
-
* to its left, centred on the glyph. Under the clock, centred on
|
|
11947
|
-
* height.
|
|
11943
|
+
* `NewHomeLayout` takes for its rail, drawn with `slotRenderers`. COLLAPSED
|
|
11944
|
+
* (the default) it is a strip: one glyph per widget (its `icon`, with an
|
|
11945
|
+
* accent dot for `hasUpdates`), and pointing at one or focusing it floats the
|
|
11946
|
+
* widget out to its left, centred on the glyph. Under the clock, centred on
|
|
11947
|
+
* the Home's height. EXPANDED it is a column of every widget, under the
|
|
11948
|
+
* clock, and the briefing centres in the room left beside it. Not on narrow
|
|
11949
|
+
* screens, where there is no room beside the column.
|
|
11948
11950
|
*/
|
|
11949
11951
|
widgets?: HomeWidgetItem[];
|
|
11952
|
+
/**
|
|
11953
|
+
* Whether the widget rail is collapsed into its strip — controlled. A button
|
|
11954
|
+
* beside the clock toggles it, as `NewHomeLayout`'s does, and reports the
|
|
11955
|
+
* new value through {@link onWidgetsCollapsedChange}. Omit it to let the Home
|
|
11956
|
+
* keep its own state, starting from {@link defaultWidgetsCollapsed}.
|
|
11957
|
+
*
|
|
11958
|
+
* Narrowness always wins: while the Home is too narrow for the column and
|
|
11959
|
+
* the expanded rail side by side, the rail is collapsed whatever this says,
|
|
11960
|
+
* and the button is not offered.
|
|
11961
|
+
*/
|
|
11962
|
+
widgetsCollapsed?: boolean;
|
|
11963
|
+
/**
|
|
11964
|
+
* Whether the widget rail starts collapsed, when {@link widgetsCollapsed}
|
|
11965
|
+
* isn't controlled — the per-person default. Defaults to `true`.
|
|
11966
|
+
*/
|
|
11967
|
+
defaultWidgetsCollapsed?: boolean;
|
|
11968
|
+
/**
|
|
11969
|
+
* Told when the person collapses (`true`) or expands (`false`) the widget
|
|
11970
|
+
* rail — to remember their choice for the next visit.
|
|
11971
|
+
*/
|
|
11972
|
+
onWidgetsCollapsedChange?: (collapsed: boolean) => void;
|
|
11950
11973
|
/**
|
|
11951
11974
|
* Offers "Add widget": a plus at the foot of the widget strip, under a short
|
|
11952
11975
|
* divider. The host opens its catalog (`WidgetCatalog`) and adds what is
|
|
@@ -11959,6 +11982,13 @@ interface F0AgenticHomeProps {
|
|
|
11959
11982
|
* widget's id; the host takes it out of `widgets`.
|
|
11960
11983
|
*/
|
|
11961
11984
|
onRemoveWidget?: (id: string) => void;
|
|
11985
|
+
/**
|
|
11986
|
+
* Makes the widgets draggable in the EXPANDED rail, as `NewHomeLayout`'s
|
|
11987
|
+
* columns are: called with every widget id in its new order after a drop.
|
|
11988
|
+
* The host reorders `widgets` to match. The collapsed strip isn't
|
|
11989
|
+
* arrangeable.
|
|
11990
|
+
*/
|
|
11991
|
+
onReorderWidgets?: (ids: string[]) => void;
|
|
11962
11992
|
/**
|
|
11963
11993
|
* Offers "Edit params" in the menu of every widget that declares a
|
|
11964
11994
|
* `paramsSchema` — as `NewHomeLayout` does. Called with the widget's id and
|