@factorialco/f0-react 1.278.0 → 1.279.2
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 +54 -30
- package/dist/experimental.js +9706 -9446
- package/dist/f0.d.ts +54 -30
- package/dist/f0.js +2 -2
- package/dist/{hooks-BPLedtdk.js → hooks-CfFQMvCM.js} +19105 -19099
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -912,6 +912,14 @@ declare interface CheckboxProps extends DataAttributes_2 {
|
|
|
912
912
|
name?: string;
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
+
declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | {
|
|
916
|
+
records: R[] & {
|
|
917
|
+
type?: ChildrenResponseType;
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
declare type ChildrenResponseType = "basic" | "detailed";
|
|
922
|
+
|
|
915
923
|
declare type ChipProps = BaseChipProps & ChipVariants & {
|
|
916
924
|
variant?: "default" | "selected";
|
|
917
925
|
};
|
|
@@ -1283,6 +1291,13 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
|
|
|
1283
1291
|
defaultGrouping?: GroupingState<R, Grouping>;
|
|
1284
1292
|
/** Current state of applied grouping */
|
|
1285
1293
|
currentGrouping?: GroupingState<R, Grouping>;
|
|
1294
|
+
/*******************************************************/
|
|
1295
|
+
/***** NESTED RECORDS ***************************************************/
|
|
1296
|
+
fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>) => Promise<ChildrenResponse<R>>;
|
|
1297
|
+
/** Function to determine if an item has children */
|
|
1298
|
+
itemsWithChildren?: (item: R) => boolean;
|
|
1299
|
+
/** Function to get the number of children for an item */
|
|
1300
|
+
childrenCount?: (item: R) => number | undefined;
|
|
1286
1301
|
};
|
|
1287
1302
|
|
|
1288
1303
|
export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
|
|
@@ -1906,7 +1921,7 @@ export declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<type
|
|
|
1906
1921
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
1907
1922
|
|
|
1908
1923
|
declare type F0AvatarFlagProps = {
|
|
1909
|
-
flag: CountryCode;
|
|
1924
|
+
flag: CountryCode | (string & {});
|
|
1910
1925
|
size?: BaseAvatarProps["size"];
|
|
1911
1926
|
badge?: AvatarBadge;
|
|
1912
1927
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
@@ -2604,6 +2619,15 @@ declare type InFilterOptionItem<T = unknown> = {
|
|
|
2604
2619
|
*/
|
|
2605
2620
|
declare type InFilterOptions_2<T, _R extends RecordType = RecordType> = {
|
|
2606
2621
|
cache?: boolean;
|
|
2622
|
+
/**
|
|
2623
|
+
* Optional function to resolve labels for specific values without fetching all options.
|
|
2624
|
+
* This is useful when you have a dynamic source and want to avoid fetching all options
|
|
2625
|
+
* just to display labels for selected values.
|
|
2626
|
+
* @param value - The value to get the label for
|
|
2627
|
+
* @returns The label for the value, or a promise that resolves to the label
|
|
2628
|
+
* @note The parameter type is `unknown` to allow compatibility when T is different types
|
|
2629
|
+
*/
|
|
2630
|
+
getLabel?: (value: unknown) => string | Promise<string>;
|
|
2607
2631
|
} & ({
|
|
2608
2632
|
options: Array<InFilterOptionItem<T>> | (() => Array<InFilterOptionItem<T>> | Promise<Array<InFilterOptionItem<T>>>);
|
|
2609
2633
|
} | {
|
|
@@ -4180,33 +4204,6 @@ declare global {
|
|
|
4180
4204
|
}
|
|
4181
4205
|
|
|
4182
4206
|
|
|
4183
|
-
declare module "@tiptap/core" {
|
|
4184
|
-
interface Commands<ReturnType> {
|
|
4185
|
-
aiBlock: {
|
|
4186
|
-
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
4187
|
-
};
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
declare module "@tiptap/core" {
|
|
4193
|
-
interface Commands<ReturnType> {
|
|
4194
|
-
liveCompanion: {
|
|
4195
|
-
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
4196
|
-
};
|
|
4197
|
-
}
|
|
4198
|
-
}
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
declare module "@tiptap/core" {
|
|
4202
|
-
interface Commands<ReturnType> {
|
|
4203
|
-
transcript: {
|
|
4204
|
-
insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
|
|
4205
|
-
};
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
4207
|
declare module "gridstack" {
|
|
4211
4208
|
interface GridStackWidget {
|
|
4212
4209
|
id?: string;
|
|
@@ -4232,8 +4229,30 @@ declare module "gridstack" {
|
|
|
4232
4229
|
}
|
|
4233
4230
|
|
|
4234
4231
|
|
|
4235
|
-
declare
|
|
4236
|
-
|
|
4232
|
+
declare module "@tiptap/core" {
|
|
4233
|
+
interface Commands<ReturnType> {
|
|
4234
|
+
aiBlock: {
|
|
4235
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
4236
|
+
};
|
|
4237
|
+
}
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4240
|
+
|
|
4241
|
+
declare module "@tiptap/core" {
|
|
4242
|
+
interface Commands<ReturnType> {
|
|
4243
|
+
liveCompanion: {
|
|
4244
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
4245
|
+
};
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
declare module "@tiptap/core" {
|
|
4251
|
+
interface Commands<ReturnType> {
|
|
4252
|
+
transcript: {
|
|
4253
|
+
insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
|
|
4254
|
+
};
|
|
4255
|
+
}
|
|
4237
4256
|
}
|
|
4238
4257
|
|
|
4239
4258
|
|
|
@@ -4244,3 +4263,8 @@ declare module "@tiptap/core" {
|
|
|
4244
4263
|
};
|
|
4245
4264
|
}
|
|
4246
4265
|
}
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
declare namespace Calendar {
|
|
4269
|
+
var displayName: string;
|
|
4270
|
+
}
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as $e, a as qt, f as Re, L as Q, b as Kt, A as Vt, i as de, c as it, d as st, E as Yt, g as ue, e as Xt, h as Jt, C as Zt, j as Qt, k as V, l as rt, u as ei, G as ti, m as ii, n as je, o as si, p as nt, q as ri, B as ot, X as at, Y as Se, r as ni, s as lt, t as oi, v as ai, w as li, x as hi, y as di, z as ci, D as ui, F as fi, H as Ue, I as gi, J as ee, K as Ne, M as pi, N as mi, O as yi, P as ht, Q as j, R as I, T as vi, U as bi, V as wi, W as _i, Z as xi, _ as Ei, $ as Ci, a0 as dt, a1 as Ri, a2 as fe, a3 as ct, a4 as ut, a5 as Ni, a6 as ft, a7 as gt, a8 as pt, a9 as Ae, aa as Di, ab as mt, ac as Si, ad as zi, ae as ki, af as qe, ag as De, ah as Pi, ai as Ai, aj as yt, ak as Oi, al as Ti, am as vt, an as Li, ao as Mi, ap as Hi, aq as Bi, ar as Ii, as as Fi, at as Gi, au as Wi, av as bt, aw as X, ax as wt, ay as $i, az as ji, aA as Ke, aB as Ui, aC as _t, aD as qi, aE as Ki, aF as Vi, aG as Yi, aH as Xi, aI as Ji, aJ as Zi, aK as Qi, aL as es, aM as ts, aN as is, aO as ss } from "./hooks-
|
|
2
|
-
import { be as $r, br as jr, bA as Ur, aP as qr, aQ as Kr, aR as Vr, aS as Yr, aT as Xr, aU as Jr, aV as Zr, aW as Qr, aY as en, aZ as tn, a_ as sn, a$ as rn, b0 as nn, b1 as on, bw as an, b3 as ln, b5 as hn, b6 as dn, b7 as cn, b8 as un, bb as fn, bc as gn, bd as pn, bg as mn, b4 as yn, bf as vn, ba as bn, bx as wn, bq as _n, bl as xn, bo as En, bk as Cn, bB as Rn, bj as Nn, bi as Dn, aX as Sn, b2 as zn, b9 as kn, bh as Pn, bm as An, bs as On, bt as Tn, bu as Ln, bC as Mn, bn as Hn, bv as Bn, bz as In, bp as Fn, by as Gn } from "./hooks-
|
|
1
|
+
import { S as $e, a as qt, f as Re, L as Q, b as Kt, A as Vt, i as de, c as it, d as st, E as Yt, g as ue, e as Xt, h as Jt, C as Zt, j as Qt, k as V, l as rt, u as ei, G as ti, m as ii, n as je, o as si, p as nt, q as ri, B as ot, X as at, Y as Se, r as ni, s as lt, t as oi, v as ai, w as li, x as hi, y as di, z as ci, D as ui, F as fi, H as Ue, I as gi, J as ee, K as Ne, M as pi, N as mi, O as yi, P as ht, Q as j, R as I, T as vi, U as bi, V as wi, W as _i, Z as xi, _ as Ei, $ as Ci, a0 as dt, a1 as Ri, a2 as fe, a3 as ct, a4 as ut, a5 as Ni, a6 as ft, a7 as gt, a8 as pt, a9 as Ae, aa as Di, ab as mt, ac as Si, ad as zi, ae as ki, af as qe, ag as De, ah as Pi, ai as Ai, aj as yt, ak as Oi, al as Ti, am as vt, an as Li, ao as Mi, ap as Hi, aq as Bi, ar as Ii, as as Fi, at as Gi, au as Wi, av as bt, aw as X, ax as wt, ay as $i, az as ji, aA as Ke, aB as Ui, aC as _t, aD as qi, aE as Ki, aF as Vi, aG as Yi, aH as Xi, aI as Ji, aJ as Zi, aK as Qi, aL as es, aM as ts, aN as is, aO as ss } from "./hooks-CfFQMvCM.js";
|
|
2
|
+
import { be as $r, br as jr, bA as Ur, aP as qr, aQ as Kr, aR as Vr, aS as Yr, aT as Xr, aU as Jr, aV as Zr, aW as Qr, aY as en, aZ as tn, a_ as sn, a$ as rn, b0 as nn, b1 as on, bw as an, b3 as ln, b5 as hn, b6 as dn, b7 as cn, b8 as un, bb as fn, bc as gn, bd as pn, bg as mn, b4 as yn, bf as vn, ba as bn, bx as wn, bq as _n, bl as xn, bo as En, bk as Cn, bB as Rn, bj as Nn, bi as Dn, aX as Sn, b2 as zn, b9 as kn, bh as Pn, bm as An, bs as On, bt as Tn, bu as Ln, bC as Mn, bn as Hn, bv as Bn, bz as In, bp as Fn, by as Gn } from "./hooks-CfFQMvCM.js";
|
|
3
3
|
import { jsx as g, jsxs as z, Fragment as oe } from "react/jsx-runtime";
|
|
4
4
|
import * as Oe from "react";
|
|
5
5
|
import P, { PureComponent as rs, useState as A, forwardRef as K, useEffect as q, useMemo as te, useCallback as W, useRef as Y, useImperativeHandle as xt, Children as ns, createContext as xe, useContext as Et, useLayoutEffect as Ve } from "react";
|