@factorialco/f0-react 4.26.0 → 4.28.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/experimental.d.ts
CHANGED
|
@@ -1734,6 +1734,18 @@ declare type CardImageSize = (typeof cardImageSizes)[number];
|
|
|
1734
1734
|
|
|
1735
1735
|
declare const cardImageSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
1736
1736
|
|
|
1737
|
+
declare type CardMetadata = {
|
|
1738
|
+
/** Leading icon. Optional — when omitted the row renders just the value. */
|
|
1739
|
+
icon?: IconType;
|
|
1740
|
+
property: Exclude<CardMetadataProperty, {
|
|
1741
|
+
type: "file";
|
|
1742
|
+
}>;
|
|
1743
|
+
} | {
|
|
1744
|
+
property: Extract<CardMetadataProperty, {
|
|
1745
|
+
type: "file";
|
|
1746
|
+
}>;
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1737
1749
|
/**
|
|
1738
1750
|
* Card metadata property renderers.
|
|
1739
1751
|
* Each metadata item consists of an icon and a property with its data.
|
|
@@ -6222,6 +6234,16 @@ declare type GraphVisualizationOptions<R extends RecordType, Filters extends Fil
|
|
|
6222
6234
|
* from `searchPreview.onSelect`.
|
|
6223
6235
|
*/
|
|
6224
6236
|
revealNodeId?: string;
|
|
6237
|
+
/**
|
|
6238
|
+
* Id of a node to reveal **once, on entry** (e.g. the current user, or the
|
|
6239
|
+
* root of their branch): when the tree first becomes ready, its ancestor
|
|
6240
|
+
* path is loaded/expanded and the viewport centers on it. Unlike
|
|
6241
|
+
* `revealNodeId` (which is ignored on entry so search stays clean), this is
|
|
6242
|
+
* the opt-in "open the org chart already looking at me" behaviour. Requires
|
|
6243
|
+
* `loadNodePath` to reveal nodes in not-yet-expanded branches. Omit to keep
|
|
6244
|
+
* the default entry view (roots expanded to `defaultExpandDepth`).
|
|
6245
|
+
*/
|
|
6246
|
+
focusOnEntry?: string;
|
|
6225
6247
|
/**
|
|
6226
6248
|
* Resolves the ancestor path (root → … → matched node) for a node so it can
|
|
6227
6249
|
* be revealed, returning the records in root-first order. Required for
|
|
@@ -6802,10 +6824,7 @@ declare type KanbanVisualizationOptions<Record extends RecordType, _Filters exte
|
|
|
6802
6824
|
title?: (record: Record) => string;
|
|
6803
6825
|
description?: (record: Record) => string;
|
|
6804
6826
|
avatar?: (record: Record) => CardAvatarVariant;
|
|
6805
|
-
metadata?: (record: Record) => ReadonlyArray<
|
|
6806
|
-
icon: IconType;
|
|
6807
|
-
property: CardMetadataProperty;
|
|
6808
|
-
}>;
|
|
6827
|
+
metadata?: (record: Record) => ReadonlyArray<CardMetadata>;
|
|
6809
6828
|
onMove?: KanbanOnMove<Record>;
|
|
6810
6829
|
onCreate?: KanbanOnCreate;
|
|
6811
6830
|
};
|
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ import { h as Va, B as Ga, i as Ka, j as qa, k as wn, l as lt, m as tt, n as Ya,
|
|
|
2
2
|
import { cD as vm, cC as ym, cP as wm, cz as Nm, cA as Cm, cs as km, ct as Im, ct as Sm, cu as Fm, cS as Tm, cB as Am, cL as Em, cM as Rm, cQ as Dm, cv as Pm, cF as Lm, cE as Om, cw as _m, cx as zm, cN as $m, cT as Bm, cO as Mm, cR as jm, cK as Wm, cH as Hm, cJ as Um, cG as Vm, cy as Gm, cI as Km } from "./F0CanvasPanel-CYITfwlc.js";
|
|
3
3
|
import { jsx as t, jsxs as d, Fragment as fe } from "react/jsx-runtime";
|
|
4
4
|
import Te, { forwardRef as de, useRef as z, useTransition as Qi, useState as R, useLayoutEffect as Je, useId as Qt, useContext as Le, createContext as Ie, useEffect as K, useCallback as U, useMemo as J, Fragment as qe, isValidElement as Ji, cloneElement as jr, memo as Wr, Children as Hr } from "react";
|
|
5
|
-
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-
|
|
5
|
+
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-DssUbLsy.js";
|
|
6
|
+
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-DssUbLsy.js";
|
|
7
7
|
const xo = Va("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -12064,6 +12064,16 @@ declare type GraphVisualizationOptions<R extends RecordType, Filters extends Fil
|
|
|
12064
12064
|
* from `searchPreview.onSelect`.
|
|
12065
12065
|
*/
|
|
12066
12066
|
revealNodeId?: string;
|
|
12067
|
+
/**
|
|
12068
|
+
* Id of a node to reveal **once, on entry** (e.g. the current user, or the
|
|
12069
|
+
* root of their branch): when the tree first becomes ready, its ancestor
|
|
12070
|
+
* path is loaded/expanded and the viewport centers on it. Unlike
|
|
12071
|
+
* `revealNodeId` (which is ignored on entry so search stays clean), this is
|
|
12072
|
+
* the opt-in "open the org chart already looking at me" behaviour. Requires
|
|
12073
|
+
* `loadNodePath` to reveal nodes in not-yet-expanded branches. Omit to keep
|
|
12074
|
+
* the default entry view (roots expanded to `defaultExpandDepth`).
|
|
12075
|
+
*/
|
|
12076
|
+
focusOnEntry?: string;
|
|
12067
12077
|
/**
|
|
12068
12078
|
* Resolves the ancestor path (root → … → matched node) for a node so it can
|
|
12069
12079
|
* be revealed, returning the records in root-first order. Required for
|
|
@@ -12779,10 +12789,7 @@ declare type KanbanVisualizationOptions<Record extends RecordType, _Filters exte
|
|
|
12779
12789
|
title?: (record: Record) => string;
|
|
12780
12790
|
description?: (record: Record) => string;
|
|
12781
12791
|
avatar?: (record: Record) => CardAvatarVariant;
|
|
12782
|
-
metadata?: (record: Record) => ReadonlyArray<
|
|
12783
|
-
icon: IconType;
|
|
12784
|
-
property: CardMetadataProperty;
|
|
12785
|
-
}>;
|
|
12792
|
+
metadata?: (record: Record) => ReadonlyArray<CardMetadata>;
|
|
12786
12793
|
onMove?: KanbanOnMove<Record>;
|
|
12787
12794
|
onCreate?: KanbanOnCreate;
|
|
12788
12795
|
};
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import React__default, { forwardRef, useRef, useImperativeHandle, Children, crea
|
|
|
6
6
|
import { D as AIButton, E as ForwardRef$1, G as animate, H as ForwardRef$f, I as ForwardRef$j, J as ForwardRef$k, K as ForwardRef$o, L as ForwardRef$t, M as ForwardRef$x, N as ForwardRef$z, O as F0Box, P as ForwardRef$J, Q as ForwardRef$K, R as ForwardRef$L, S as ForwardRef$M, U as ForwardRef$N, F as FormCardValueFormatterProvider } from "./F0AiProcessingOverlay--OAyX7JL.js";
|
|
7
7
|
import { A as ta, C as ea, t as ia, s as aa, v as na, y as la, l as ra, i as sa, q as oa, z as ca, B as da, p as ua, r as ha, j as ma, e as pa, g as ba, k as Za, T as ya, w as Ma, h as Na, a as ga, n as Wa, m as Ta, o as Ga, b as fa, f as va, x as La, c as Ya, d as Xa, u as Sa } from "./F0AiProcessingOverlay--OAyX7JL.js";
|
|
8
8
|
import { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
9
|
-
import { C as Carousel, F as F0SegmentedControl, ah as isFieldRequired, ai as evaluateRenderIf, aj as buildDynamicSchema, ak as renderFieldInput, al as useF0Form, am as F0Form, G as F0ActionBar, an as F0FormSection, ao as nanoid, ap as dequal, Y as F0TableOfContent, a8 as Dialog$1, aq as FormMessage, Q as F0NumberInput, ar as EmojiPicker, as as data, c as ReorderItem, R as ReorderGroup, u as useDragControls, W as ResourceHeader, O as OneEmptyState, at as UpsellRequestResponseDialog, au as Label$1, av as UpsellingButton, o as BaseBanner, d as useDataCollectionSource, $ as OneDataCollection, aw as extractDisplayValue, ax as navigationFilterTypes, ay as NavigationFilters, az as DialogDescription, aA as PrivacyModeProvider, M as MotionConfig } from "./useDataCollectionSource-
|
|
10
|
-
import { r as Va, s as Ia, H as Ra, t as wa, z as za, aR as Da, aQ as Ca, aM as ka, aC as Oa, aB as Fa, aD as ja, aE as Ea, aa as Ua, a9 as Ja, ad as Pa, U as Ka, J as Ha, af as Aa, K as Qa, v as Ba, aS as $a, ab as qa, ac as tn, N as en, w as an, P as nn, y as ln, D as rn, ae as sn, T as on, ag as dn, x as un, E as hn, aU as mn, m as pn, n as bn, aL as Zn, aH as yn, aG as Mn, aT as Nn, a6 as gn, aJ as Wn, aK as Tn, I as Gn, aV as fn, aW as vn, e as Ln, aN as Yn, aO as Xn, aP as Sn, aI as xn, f as Vn, h as In, aF as Rn, aX as wn } from "./useDataCollectionSource-
|
|
9
|
+
import { C as Carousel, F as F0SegmentedControl, ah as isFieldRequired, ai as evaluateRenderIf, aj as buildDynamicSchema, ak as renderFieldInput, al as useF0Form, am as F0Form, G as F0ActionBar, an as F0FormSection, ao as nanoid, ap as dequal, Y as F0TableOfContent, a8 as Dialog$1, aq as FormMessage, Q as F0NumberInput, ar as EmojiPicker, as as data, c as ReorderItem, R as ReorderGroup, u as useDragControls, W as ResourceHeader, O as OneEmptyState, at as UpsellRequestResponseDialog, au as Label$1, av as UpsellingButton, o as BaseBanner, d as useDataCollectionSource, $ as OneDataCollection, aw as extractDisplayValue, ax as navigationFilterTypes, ay as NavigationFilters, az as DialogDescription, aA as PrivacyModeProvider, M as MotionConfig } from "./useDataCollectionSource-DssUbLsy.js";
|
|
10
|
+
import { r as Va, s as Ia, H as Ra, t as wa, z as za, aR as Da, aQ as Ca, aM as ka, aC as Oa, aB as Fa, aD as ja, aE as Ea, aa as Ua, a9 as Ja, ad as Pa, U as Ka, J as Ha, af as Aa, K as Qa, v as Ba, aS as $a, ab as qa, ac as tn, N as en, w as an, P as nn, y as ln, D as rn, ae as sn, T as on, ag as dn, x as un, E as hn, aU as mn, m as pn, n as bn, aL as Zn, aH as yn, aG as Mn, aT as Nn, a6 as gn, aJ as Wn, aK as Tn, I as Gn, aV as fn, aW as vn, e as Ln, aN as Yn, aO as Xn, aP as Sn, aI as xn, f as Vn, h as In, aF as Rn, aX as wn } from "./useDataCollectionSource-DssUbLsy.js";
|
|
11
11
|
import { utils, write as writeSync } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as Dn } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const CAROUSEL_COLUMNS = {
|