@factorialco/f0-react 2.31.0 → 2.32.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/dist/{F0CanvasPanel-dberL_E_.js → F0CanvasPanel-CxrYr5OJ.js} +99 -99
- package/dist/ai.d.ts +37 -20
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +5 -5
- package/dist/experimental.js +5 -5
- package/dist/f0.d.ts +68 -20
- package/dist/f0.js +2061 -2045
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/{useChatHistory-spTJ2Xog.js → useChatHistory-CqUmb2mH.js} +1489 -1475
- package/dist/{useDataCollectionSource-BbGIwO6U.js → useDataCollectionSource-BDFT840X.js} +1 -1
- package/package.json +1 -1
|
@@ -134966,7 +134966,7 @@ export {
|
|
|
134966
134966
|
cF as cy,
|
|
134967
134967
|
BY1 as cz,
|
|
134968
134968
|
BQ1 as d,
|
|
134969
|
-
|
|
134969
|
+
uc as d$,
|
|
134970
134970
|
mK1 as d0,
|
|
134971
134971
|
gK1 as d1,
|
|
134972
134972
|
vK1 as d2,
|
|
@@ -134987,23 +134987,23 @@ export {
|
|
|
134987
134987
|
_G as dH,
|
|
134988
134988
|
rM as dI,
|
|
134989
134989
|
OQ1 as dJ,
|
|
134990
|
-
|
|
134991
|
-
|
|
134992
|
-
|
|
134993
|
-
|
|
134994
|
-
|
|
134995
|
-
|
|
134996
|
-
|
|
134997
|
-
|
|
134998
|
-
|
|
134999
|
-
|
|
135000
|
-
|
|
135001
|
-
|
|
135002
|
-
|
|
135003
|
-
|
|
135004
|
-
|
|
135005
|
-
|
|
135006
|
-
|
|
134990
|
+
na as dK,
|
|
134991
|
+
NU1 as dL,
|
|
134992
|
+
FQ1 as dM,
|
|
134993
|
+
t0 as dN,
|
|
134994
|
+
VY1 as dO,
|
|
134995
|
+
rq as dP,
|
|
134996
|
+
rK as dQ,
|
|
134997
|
+
gQ1 as dR,
|
|
134998
|
+
kQ1 as dS,
|
|
134999
|
+
nk as dT,
|
|
135000
|
+
D7 as dU,
|
|
135001
|
+
CQ1 as dV,
|
|
135002
|
+
hQ1 as dW,
|
|
135003
|
+
T7 as dX,
|
|
135004
|
+
Ln as dY,
|
|
135005
|
+
uB1 as dZ,
|
|
135006
|
+
dB1 as d_,
|
|
135007
135007
|
Bf2 as da,
|
|
135008
135008
|
HK1 as db,
|
|
135009
135009
|
_K1 as dc,
|
|
@@ -135030,82 +135030,82 @@ export {
|
|
|
135030
135030
|
jQ1 as dy,
|
|
135031
135031
|
Oq as dz,
|
|
135032
135032
|
XU1 as e,
|
|
135033
|
-
|
|
135034
|
-
|
|
135035
|
-
|
|
135036
|
-
|
|
135037
|
-
|
|
135038
|
-
|
|
135039
|
-
|
|
135040
|
-
|
|
135041
|
-
|
|
135042
|
-
|
|
135043
|
-
|
|
135044
|
-
|
|
135045
|
-
|
|
135046
|
-
|
|
135047
|
-
|
|
135048
|
-
|
|
135049
|
-
|
|
135050
|
-
|
|
135051
|
-
|
|
135052
|
-
|
|
135053
|
-
|
|
135054
|
-
|
|
135055
|
-
|
|
135056
|
-
|
|
135057
|
-
|
|
135058
|
-
|
|
135059
|
-
|
|
135060
|
-
|
|
135061
|
-
|
|
135062
|
-
|
|
135063
|
-
|
|
135064
|
-
|
|
135065
|
-
|
|
135066
|
-
|
|
135067
|
-
|
|
135068
|
-
|
|
135069
|
-
|
|
135070
|
-
|
|
135071
|
-
|
|
135072
|
-
|
|
135073
|
-
|
|
135074
|
-
|
|
135075
|
-
|
|
135076
|
-
|
|
135077
|
-
|
|
135078
|
-
|
|
135079
|
-
|
|
135080
|
-
|
|
135081
|
-
|
|
135082
|
-
|
|
135083
|
-
|
|
135084
|
-
|
|
135085
|
-
|
|
135086
|
-
|
|
135087
|
-
|
|
135088
|
-
|
|
135089
|
-
|
|
135090
|
-
|
|
135091
|
-
|
|
135092
|
-
|
|
135093
|
-
|
|
135094
|
-
|
|
135095
|
-
|
|
135096
|
-
|
|
135033
|
+
gu as e$,
|
|
135034
|
+
lc as e0,
|
|
135035
|
+
An2 as e1,
|
|
135036
|
+
Ub as e2,
|
|
135037
|
+
z3 as e3,
|
|
135038
|
+
an as e4,
|
|
135039
|
+
GP as e5,
|
|
135040
|
+
s92 as e6,
|
|
135041
|
+
_Y1 as e7,
|
|
135042
|
+
n1 as e8,
|
|
135043
|
+
S7 as e9,
|
|
135044
|
+
xr as eA,
|
|
135045
|
+
z1 as eB,
|
|
135046
|
+
Yt as eC,
|
|
135047
|
+
KY2 as eD,
|
|
135048
|
+
h6 as eE,
|
|
135049
|
+
b5 as eF,
|
|
135050
|
+
f5 as eG,
|
|
135051
|
+
z9 as eH,
|
|
135052
|
+
B2 as eI,
|
|
135053
|
+
nn as eJ,
|
|
135054
|
+
sa as eK,
|
|
135055
|
+
X8 as eL,
|
|
135056
|
+
j5 as eM,
|
|
135057
|
+
q5 as eN,
|
|
135058
|
+
kG2 as eO,
|
|
135059
|
+
W5 as eP,
|
|
135060
|
+
C7 as eQ,
|
|
135061
|
+
YG2 as eR,
|
|
135062
|
+
bY as eS,
|
|
135063
|
+
LY as eT,
|
|
135064
|
+
MQ1 as eU,
|
|
135065
|
+
LQ1 as eV,
|
|
135066
|
+
wQ1 as eW,
|
|
135067
|
+
vQ1 as eX,
|
|
135068
|
+
oJ2 as eY,
|
|
135069
|
+
l7 as eZ,
|
|
135070
|
+
xu as e_,
|
|
135071
|
+
Gc as ea,
|
|
135072
|
+
G9 as eb,
|
|
135073
|
+
fQ1 as ec,
|
|
135074
|
+
dQ1 as ed,
|
|
135075
|
+
uQ1 as ee,
|
|
135076
|
+
oZ2 as ef,
|
|
135077
|
+
Rq as eg,
|
|
135078
|
+
aZ2 as eh,
|
|
135079
|
+
ie as ei,
|
|
135080
|
+
un as ej,
|
|
135081
|
+
CZ2 as ek,
|
|
135082
|
+
K1 as el,
|
|
135083
|
+
B1 as em,
|
|
135084
|
+
je as en,
|
|
135085
|
+
gU as eo,
|
|
135086
|
+
Bz2 as ep,
|
|
135087
|
+
kn as eq,
|
|
135088
|
+
b3 as er,
|
|
135089
|
+
Gz2 as es,
|
|
135090
|
+
$1 as et,
|
|
135091
|
+
cl as eu,
|
|
135092
|
+
ee as ev,
|
|
135093
|
+
bQ1 as ew,
|
|
135094
|
+
Qs as ex,
|
|
135095
|
+
Ue as ey,
|
|
135096
|
+
XM as ez,
|
|
135097
135097
|
LY1 as f,
|
|
135098
135098
|
_9 as f$,
|
|
135099
|
-
|
|
135100
|
-
|
|
135101
|
-
|
|
135102
|
-
|
|
135103
|
-
|
|
135104
|
-
|
|
135105
|
-
|
|
135106
|
-
|
|
135107
|
-
|
|
135108
|
-
|
|
135099
|
+
SN2 as f0,
|
|
135100
|
+
bZ as f1,
|
|
135101
|
+
pM as f2,
|
|
135102
|
+
pQ1 as f3,
|
|
135103
|
+
O21 as f4,
|
|
135104
|
+
tk as f5,
|
|
135105
|
+
eQ2 as f6,
|
|
135106
|
+
fa as f7,
|
|
135107
|
+
yQ1 as f8,
|
|
135108
|
+
Y4 as f9,
|
|
135109
135109
|
Db as fA,
|
|
135110
135110
|
wD2 as fB,
|
|
135111
135111
|
kD2 as fC,
|
|
@@ -135133,13 +135133,13 @@ export {
|
|
|
135133
135133
|
J31 as fY,
|
|
135134
135134
|
hG1 as fZ,
|
|
135135
135135
|
Oq1 as f_,
|
|
135136
|
-
|
|
135137
|
-
|
|
135138
|
-
|
|
135139
|
-
|
|
135140
|
-
|
|
135141
|
-
|
|
135142
|
-
|
|
135136
|
+
A9 as fa,
|
|
135137
|
+
BI as fb,
|
|
135138
|
+
u7 as fc,
|
|
135139
|
+
xQ1 as fd,
|
|
135140
|
+
JY as fe,
|
|
135141
|
+
Gt as ff,
|
|
135142
|
+
G21 as fg,
|
|
135143
135143
|
M4 as fh,
|
|
135144
135144
|
Ck as fi,
|
|
135145
135145
|
FK as fj,
|
package/dist/ai.d.ts
CHANGED
|
@@ -812,6 +812,28 @@ export declare type CanvasActions = {
|
|
|
812
812
|
dashboard?: DashboardCanvasActions;
|
|
813
813
|
};
|
|
814
814
|
|
|
815
|
+
declare type CanvasCardAction = {
|
|
816
|
+
type: "open";
|
|
817
|
+
onOpen: () => void;
|
|
818
|
+
onClose: () => void;
|
|
819
|
+
/** When false, hides the Open/Close button but the card stays clickable. Default true. */
|
|
820
|
+
showButton?: boolean;
|
|
821
|
+
} | {
|
|
822
|
+
type: "custom";
|
|
823
|
+
icon: IconType;
|
|
824
|
+
label: string;
|
|
825
|
+
onClick: () => void;
|
|
826
|
+
hideLabel?: boolean;
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
declare type CanvasCardAvatar = {
|
|
830
|
+
type: "module";
|
|
831
|
+
module: ModuleId;
|
|
832
|
+
} | {
|
|
833
|
+
type: "file";
|
|
834
|
+
file: FileDef;
|
|
835
|
+
};
|
|
836
|
+
|
|
815
837
|
/**
|
|
816
838
|
* Discriminated union for canvas panel content.
|
|
817
839
|
* Add new entity types to this union as they are implemented.
|
|
@@ -2911,30 +2933,25 @@ declare type F0AvatarTeamProps = {
|
|
|
2911
2933
|
|
|
2912
2934
|
/**
|
|
2913
2935
|
* Shared inline card rendered in the AI chat for any canvas entity.
|
|
2914
|
-
* Shows
|
|
2915
|
-
* When active, displays a focus ring and the button switches to "Close".
|
|
2936
|
+
* Shows an avatar, title, optional description, and a configurable action button.
|
|
2916
2937
|
*/
|
|
2917
|
-
export declare function F0CanvasCard({
|
|
2938
|
+
export declare function F0CanvasCard({ avatar, title, description, isActive, action, children, }: F0CanvasCardProps): JSX_2.Element;
|
|
2918
2939
|
|
|
2919
2940
|
export declare namespace F0CanvasCard {
|
|
2920
2941
|
var displayName: string;
|
|
2921
2942
|
}
|
|
2922
2943
|
|
|
2923
2944
|
export declare type F0CanvasCardProps = {
|
|
2924
|
-
/**
|
|
2925
|
-
|
|
2945
|
+
/** Avatar to display: a module icon or a file-type badge */
|
|
2946
|
+
avatar?: CanvasCardAvatar;
|
|
2926
2947
|
/** Primary title */
|
|
2927
2948
|
title: string;
|
|
2928
|
-
/**
|
|
2929
|
-
description
|
|
2930
|
-
/**
|
|
2931
|
-
|
|
2932
|
-
/**
|
|
2933
|
-
|
|
2934
|
-
/** Called when the user clicks the "Close" button (active state) */
|
|
2935
|
-
onClose: () => void;
|
|
2936
|
-
/** Whether this card's content is currently shown in the canvas */
|
|
2937
|
-
isActive: boolean;
|
|
2949
|
+
/** Optional secondary description line */
|
|
2950
|
+
description?: string;
|
|
2951
|
+
/** Whether this card's content is currently shown in the canvas (only meaningful for action.type === "open") */
|
|
2952
|
+
isActive?: boolean;
|
|
2953
|
+
/** Action exposed by the card: either an Open/Close toggle or a custom icon button */
|
|
2954
|
+
action: CanvasCardAction;
|
|
2938
2955
|
/** Optional content rendered below the card header (e.g. a data preview) */
|
|
2939
2956
|
children?: React.ReactNode;
|
|
2940
2957
|
};
|
|
@@ -4193,11 +4210,6 @@ declare module "gridstack" {
|
|
|
4193
4210
|
}
|
|
4194
4211
|
|
|
4195
4212
|
|
|
4196
|
-
declare namespace Calendar {
|
|
4197
|
-
var displayName: string;
|
|
4198
|
-
}
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
4213
|
declare module "@tiptap/core" {
|
|
4202
4214
|
interface Commands<ReturnType> {
|
|
4203
4215
|
aiBlock: {
|
|
@@ -4247,6 +4259,11 @@ declare module "@tiptap/core" {
|
|
|
4247
4259
|
}
|
|
4248
4260
|
|
|
4249
4261
|
|
|
4262
|
+
declare namespace Calendar {
|
|
4263
|
+
var displayName: string;
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
|
|
4250
4267
|
declare namespace F0GraphNodeWrapperInner {
|
|
4251
4268
|
var displayName: string;
|
|
4252
4269
|
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-
|
|
1
|
+
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-CqUmb2mH.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -8564,11 +8564,6 @@ declare module "gridstack" {
|
|
|
8564
8564
|
}
|
|
8565
8565
|
|
|
8566
8566
|
|
|
8567
|
-
declare namespace Calendar {
|
|
8568
|
-
var displayName: string;
|
|
8569
|
-
}
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
8567
|
declare module "@tiptap/core" {
|
|
8573
8568
|
interface Commands<ReturnType> {
|
|
8574
8569
|
aiBlock: {
|
|
@@ -8618,6 +8613,11 @@ declare module "@tiptap/core" {
|
|
|
8618
8613
|
}
|
|
8619
8614
|
|
|
8620
8615
|
|
|
8616
|
+
declare namespace Calendar {
|
|
8617
|
+
var displayName: string;
|
|
8618
|
+
}
|
|
8619
|
+
|
|
8620
|
+
|
|
8621
8621
|
declare namespace F0GraphNodeWrapperInner {
|
|
8622
8622
|
var displayName: string;
|
|
8623
8623
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as it, aG as gn, aH as ar, aI as rr, aJ as lr, aK as ir, aL as Ue, aM as bt, aN as bn, aO as sr, aP as xn, aQ as or, aR as cr, aS as dr, aT as Ee, aU as ur, aV as Te, aW as Lt, aX as st, aY as fr, aZ as mr, a as hr, b as pr, a_ as vn, a$ as gr, f as br, F as xr, b0 as wn, b1 as vr, b2 as yn, b3 as wr, b4 as yr, b5 as Nr, b6 as Cr, b7 as kr, b8 as Sr, b9 as Ir, ba as Fr, bb as Ar, bc as Nn, bd as ue, be as xt, bf as vt, bg as wt, bh as Cn, bi as yt, bj as kn, bk as Sn, bl as Lr, bm as Er, bn as _r, bo as Or, bp as Dr, bq as Tr, br as zr, bs as Pr, bt as Br, bu as Rr, bv as Et, bw as _t, bx as Ot, by as $r, bz as Wr, bA as Mr, bB as jr, bC as In, bD as Vr, bE as Gr } from "./F0CanvasPanel-
|
|
2
|
-
import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, c1 as Pc, bH as Bc, bO as Rc, bY as $c, bZ as Wc, bI as Mc, bS as jc, bR as Vc, bJ as Gc, bK as Hc, b_ as Uc, c2 as Kc, b$ as qc, bX as Yc, bU as Zc, bW as Xc, bT as Jc, bL as Qc, bV as ed } from "./F0CanvasPanel-
|
|
1
|
+
import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as it, aG as gn, aH as ar, aI as rr, aJ as lr, aK as ir, aL as Ue, aM as bt, aN as bn, aO as sr, aP as xn, aQ as or, aR as cr, aS as dr, aT as Ee, aU as ur, aV as Te, aW as Lt, aX as st, aY as fr, aZ as mr, a as hr, b as pr, a_ as vn, a$ as gr, f as br, F as xr, b0 as wn, b1 as vr, b2 as yn, b3 as wr, b4 as yr, b5 as Nr, b6 as Cr, b7 as kr, b8 as Sr, b9 as Ir, ba as Fr, bb as Ar, bc as Nn, bd as ue, be as xt, bf as vt, bg as wt, bh as Cn, bi as yt, bj as kn, bk as Sn, bl as Lr, bm as Er, bn as _r, bo as Or, bp as Dr, bq as Tr, br as zr, bs as Pr, bt as Br, bu as Rr, bv as Et, bw as _t, bx as Ot, by as $r, bz as Wr, bA as Mr, bB as jr, bC as In, bD as Vr, bE as Gr } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
2
|
+
import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, c1 as Pc, bH as Bc, bO as Rc, bY as $c, bZ as Wc, bI as Mc, bS as jc, bR as Vc, bJ as Gc, bK as Hc, b_ as Uc, c2 as Kc, b$ as qc, bX as Yc, bU as Zc, bW as Xc, bT as Jc, bL as Qc, bV as ed } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import se, { forwardRef as j, useRef as G, useTransition as Hr, useState as _, useLayoutEffect as Fn, useId as ot, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Ur, isValidElement as Kr, cloneElement as An, Children as Ln } from "react";
|
|
5
|
-
import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-
|
|
6
|
-
import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a5 as od, G as cd, q as dd, o as ud, Q as fd, ab as md, U as hd, W as pd, v as gd, a7 as bd, a8 as xd, a6 as vd, a9 as wd, N as yd, X as Nd, a2 as Cd, a4 as kd, w as Sd, y as Id, D as Fd, J as Ad, aa as Ld, K as Ed, T as _d, x as Od, E as Dd, m as Td, n as zd, Z as Pd, _ as Bd, a3 as Rd, I as $d, $ as Wd, a0 as Md, Y as jd, a1 as Vd } from "./useDataCollectionSource-
|
|
5
|
+
import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-BDFT840X.js";
|
|
6
|
+
import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a5 as od, G as cd, q as dd, o as ud, Q as fd, ab as md, U as hd, W as pd, v as gd, a7 as bd, a8 as xd, a6 as vd, a9 as wd, N as yd, X as Nd, a2 as Cd, a4 as kd, w as Sd, y as Id, D as Fd, J as Ad, aa as Ld, K as Ed, T as _d, x as Od, E as Dd, m as Td, n as zd, Z as Pd, _ as Bd, a3 as Rd, I as $d, $ as Wd, a0 as Md, Y as jd, a1 as Vd } from "./useDataCollectionSource-BDFT840X.js";
|
|
7
7
|
const ul = da("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -4635,7 +4635,7 @@ const Wi = ({
|
|
|
4635
4635
|
"div",
|
|
4636
4636
|
{
|
|
4637
4637
|
className: p(
|
|
4638
|
-
"flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden
|
|
4638
|
+
"flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-lg font-semibold text-f1-foreground transition-colors"
|
|
4639
4639
|
),
|
|
4640
4640
|
children: [
|
|
4641
4641
|
/* @__PURE__ */ e(
|
package/dist/f0.d.ts
CHANGED
|
@@ -1862,6 +1862,28 @@ export declare type CanvasActions = {
|
|
|
1862
1862
|
dashboard?: DashboardCanvasActions;
|
|
1863
1863
|
};
|
|
1864
1864
|
|
|
1865
|
+
declare type CanvasCardAction = {
|
|
1866
|
+
type: "open";
|
|
1867
|
+
onOpen: () => void;
|
|
1868
|
+
onClose: () => void;
|
|
1869
|
+
/** When false, hides the Open/Close button but the card stays clickable. Default true. */
|
|
1870
|
+
showButton?: boolean;
|
|
1871
|
+
} | {
|
|
1872
|
+
type: "custom";
|
|
1873
|
+
icon: IconType;
|
|
1874
|
+
label: string;
|
|
1875
|
+
onClick: () => void;
|
|
1876
|
+
hideLabel?: boolean;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
declare type CanvasCardAvatar = {
|
|
1880
|
+
type: "module";
|
|
1881
|
+
module: ModuleId;
|
|
1882
|
+
} | {
|
|
1883
|
+
type: "file";
|
|
1884
|
+
file: FileDef;
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1865
1887
|
/**
|
|
1866
1888
|
* Discriminated union for canvas panel content.
|
|
1867
1889
|
* Add new entity types to this union as they are implemented.
|
|
@@ -6651,30 +6673,25 @@ export declare type F0ButtonToggleProps = Omit<F0ButtonToggleInternalProps, (typ
|
|
|
6651
6673
|
|
|
6652
6674
|
/**
|
|
6653
6675
|
* Shared inline card rendered in the AI chat for any canvas entity.
|
|
6654
|
-
* Shows
|
|
6655
|
-
* When active, displays a focus ring and the button switches to "Close".
|
|
6676
|
+
* Shows an avatar, title, optional description, and a configurable action button.
|
|
6656
6677
|
*/
|
|
6657
|
-
export declare function F0CanvasCard({
|
|
6678
|
+
export declare function F0CanvasCard({ avatar, title, description, isActive, action, children, }: F0CanvasCardProps): JSX_2.Element;
|
|
6658
6679
|
|
|
6659
6680
|
export declare namespace F0CanvasCard {
|
|
6660
6681
|
var displayName: string;
|
|
6661
6682
|
}
|
|
6662
6683
|
|
|
6663
6684
|
export declare type F0CanvasCardProps = {
|
|
6664
|
-
/**
|
|
6665
|
-
|
|
6685
|
+
/** Avatar to display: a module icon or a file-type badge */
|
|
6686
|
+
avatar?: CanvasCardAvatar;
|
|
6666
6687
|
/** Primary title */
|
|
6667
6688
|
title: string;
|
|
6668
|
-
/**
|
|
6669
|
-
description
|
|
6670
|
-
/**
|
|
6671
|
-
|
|
6672
|
-
/**
|
|
6673
|
-
|
|
6674
|
-
/** Called when the user clicks the "Close" button (active state) */
|
|
6675
|
-
onClose: () => void;
|
|
6676
|
-
/** Whether this card's content is currently shown in the canvas */
|
|
6677
|
-
isActive: boolean;
|
|
6689
|
+
/** Optional secondary description line */
|
|
6690
|
+
description?: string;
|
|
6691
|
+
/** Whether this card's content is currently shown in the canvas (only meaningful for action.type === "open") */
|
|
6692
|
+
isActive?: boolean;
|
|
6693
|
+
/** Action exposed by the card: either an Open/Close toggle or a custom icon button */
|
|
6694
|
+
action: CanvasCardAction;
|
|
6678
6695
|
/** Optional content rendered below the card header (e.g. a data preview) */
|
|
6679
6696
|
children?: React.ReactNode;
|
|
6680
6697
|
};
|
|
@@ -10424,6 +10441,14 @@ export declare const getAnimationVariants: (options?: AnimationVariantsOptions)
|
|
|
10424
10441
|
};
|
|
10425
10442
|
};
|
|
10426
10443
|
|
|
10444
|
+
/**
|
|
10445
|
+
* Builds the localStorage key for a OneDataCollection's persisted state.
|
|
10446
|
+
*
|
|
10447
|
+
* @param id - The OneDataCollection `id` (e.g. `organization/employees/v1`),
|
|
10448
|
+
* WITHOUT the `datacollection-` prefix.
|
|
10449
|
+
*/
|
|
10450
|
+
export declare const getDataCollectionStorageKey: (id: string) => string;
|
|
10451
|
+
|
|
10427
10452
|
/**
|
|
10428
10453
|
* Get the pagination type of a data adapter
|
|
10429
10454
|
* @param dataAdapter - The data adapter to get the pagination type of
|
|
@@ -12666,6 +12691,16 @@ declare type RatingQuestionProps = BaseQuestionPropsForOtherQuestionComponents &
|
|
|
12666
12691
|
}[];
|
|
12667
12692
|
};
|
|
12668
12693
|
|
|
12694
|
+
/**
|
|
12695
|
+
* Synchronously reads a OneDataCollection's persisted state from localStorage.
|
|
12696
|
+
*
|
|
12697
|
+
* @param id - The same `id` passed to OneDataCollection (e.g.
|
|
12698
|
+
* `organization/employees/v1`), WITHOUT the `datacollection-`
|
|
12699
|
+
* prefix — this function applies it.
|
|
12700
|
+
* @returns The parsed storage, or `null` on missing key / parse error.
|
|
12701
|
+
*/
|
|
12702
|
+
export declare const readDataCollectionStorage: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(id: string) => DataCollectionStorage<CurrentFiltersState> | null;
|
|
12703
|
+
|
|
12669
12704
|
export declare function reconstructElements(flatItems: FlatFormItem[]): SurveyFormBuilderElement[];
|
|
12670
12705
|
|
|
12671
12706
|
/**
|
|
@@ -12854,6 +12889,19 @@ export declare type RequisitionProfile = {
|
|
|
12854
12889
|
};
|
|
12855
12890
|
};
|
|
12856
12891
|
|
|
12892
|
+
/**
|
|
12893
|
+
* Resolves the effective filters for the persisted visualization:
|
|
12894
|
+
* `visualizationFilters[String(visualization ?? 0)] ?? filters`.
|
|
12895
|
+
*
|
|
12896
|
+
* Pure equivalent of the runtime keying in usePerVisualizationFilters.ts; the
|
|
12897
|
+
* hook's refs/transitions/preset-hydration are irrelevant when reading
|
|
12898
|
+
* already-persisted state.
|
|
12899
|
+
*
|
|
12900
|
+
* NOTE on sortings: F0 persists `sortings` as `SortingsState` — a single
|
|
12901
|
+
* `{ field; order } | null`, NOT an array. Read it via `storage?.sortings`.
|
|
12902
|
+
*/
|
|
12903
|
+
export declare const resolveDataCollectionFilters: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(storage: Pick<DataCollectionStorage<CurrentFiltersState>, "visualization" | "visualizationFilters" | "filters"> | null) => CurrentFiltersState | undefined;
|
|
12904
|
+
|
|
12857
12905
|
export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
|
|
12858
12906
|
|
|
12859
12907
|
/**
|
|
@@ -15158,11 +15206,6 @@ declare module "gridstack" {
|
|
|
15158
15206
|
}
|
|
15159
15207
|
|
|
15160
15208
|
|
|
15161
|
-
declare namespace Calendar {
|
|
15162
|
-
var displayName: string;
|
|
15163
|
-
}
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
15209
|
declare module "@tiptap/core" {
|
|
15167
15210
|
interface Commands<ReturnType> {
|
|
15168
15211
|
aiBlock: {
|
|
@@ -15212,6 +15255,11 @@ declare module "@tiptap/core" {
|
|
|
15212
15255
|
}
|
|
15213
15256
|
|
|
15214
15257
|
|
|
15258
|
+
declare namespace Calendar {
|
|
15259
|
+
var displayName: string;
|
|
15260
|
+
}
|
|
15261
|
+
|
|
15262
|
+
|
|
15215
15263
|
declare namespace F0GraphNodeWrapperInner {
|
|
15216
15264
|
var displayName: string;
|
|
15217
15265
|
}
|