@factorialco/f0-react 2.37.1 → 2.38.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/ai.d.ts +5 -5
- package/dist/experimental.d.ts +11 -9
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +25 -28
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/{useDataCollectionSource-O4gVVcoQ.js → useDataCollectionSource-ZgUdpWim.js} +2952 -2957
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -4216,11 +4216,6 @@ declare module "gridstack" {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
4218
|
|
|
4219
|
-
declare namespace Calendar {
|
|
4220
|
-
var displayName: string;
|
|
4221
|
-
}
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
4219
|
declare module "@tiptap/core" {
|
|
4225
4220
|
interface Commands<ReturnType> {
|
|
4226
4221
|
aiBlock: {
|
|
@@ -4270,6 +4265,11 @@ declare module "@tiptap/core" {
|
|
|
4270
4265
|
}
|
|
4271
4266
|
|
|
4272
4267
|
|
|
4268
|
+
declare namespace Calendar {
|
|
4269
|
+
var displayName: string;
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
|
|
4273
4273
|
declare namespace F0GraphNodeWrapperInner {
|
|
4274
4274
|
var displayName: string;
|
|
4275
4275
|
}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -6399,10 +6399,12 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
|
|
|
6399
6399
|
features?: DataCollectionStorageFeaturesDefinition;
|
|
6400
6400
|
};
|
|
6401
6401
|
/**
|
|
6402
|
-
* By default
|
|
6403
|
-
*
|
|
6404
|
-
*
|
|
6405
|
-
* `
|
|
6402
|
+
* By default the data collection reads its filters/search/sortings/
|
|
6403
|
+
* visualization/page from the URL query params on mount and reflects any later
|
|
6404
|
+
* changes back into them (see `dataCollectionUrlParams`). This applies to any
|
|
6405
|
+
* collection — no `id` is required, and params are not scoped to one, so a
|
|
6406
|
+
* single URL-synced collection per page is assumed. Set this to `true` to opt
|
|
6407
|
+
* out of URL syncing.
|
|
6406
6408
|
*/
|
|
6407
6409
|
disableUrlParams?: boolean;
|
|
6408
6410
|
/**
|
|
@@ -8701,11 +8703,6 @@ declare module "gridstack" {
|
|
|
8701
8703
|
}
|
|
8702
8704
|
|
|
8703
8705
|
|
|
8704
|
-
declare namespace Calendar {
|
|
8705
|
-
var displayName: string;
|
|
8706
|
-
}
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
8706
|
declare module "@tiptap/core" {
|
|
8710
8707
|
interface Commands<ReturnType> {
|
|
8711
8708
|
aiBlock: {
|
|
@@ -8755,6 +8752,11 @@ declare module "@tiptap/core" {
|
|
|
8755
8752
|
}
|
|
8756
8753
|
|
|
8757
8754
|
|
|
8755
|
+
declare namespace Calendar {
|
|
8756
|
+
var displayName: string;
|
|
8757
|
+
}
|
|
8758
|
+
|
|
8759
|
+
|
|
8758
8760
|
declare namespace F0GraphNodeWrapperInner {
|
|
8759
8761
|
var displayName: string;
|
|
8760
8762
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ 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,
|
|
|
2
2
|
import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, bH as Pc, c1 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-BErabj-B.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, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } 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-ZgUdpWim.js";
|
|
6
|
+
import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-ZgUdpWim.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" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -1632,10 +1632,10 @@ declare const boxVariants: (props?: ({
|
|
|
1632
1632
|
export declare type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
1633
1633
|
|
|
1634
1634
|
/**
|
|
1635
|
-
* Builds a fresh `URLSearchParams` encoding a data collection
|
|
1636
|
-
*
|
|
1635
|
+
* Builds a fresh `URLSearchParams` encoding a data collection's state, symmetric
|
|
1636
|
+
* with {@link parseDataCollectionUrlParams}.
|
|
1637
1637
|
*/
|
|
1638
|
-
export declare const buildDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(
|
|
1638
|
+
export declare const buildDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(state?: DataCollectionUrlState<CurrentFiltersState>) => URLSearchParams;
|
|
1639
1639
|
|
|
1640
1640
|
export declare const buildTranslations: (translations: TranslationsType) => TranslationsType;
|
|
1641
1641
|
|
|
@@ -3504,19 +3504,19 @@ export declare type Data<R extends RecordType> = {
|
|
|
3504
3504
|
|
|
3505
3505
|
/**
|
|
3506
3506
|
* Every data collection URL param shares this prefix, so each filter is its own
|
|
3507
|
-
* readable param — e.g. `?
|
|
3508
|
-
* instead of a single JSON blob.
|
|
3507
|
+
* readable param — e.g. `?dc_department=Sales&dc_search=ada&dc_view=kanban`
|
|
3508
|
+
* instead of a single JSON blob. Params are not scoped to a collection id, so
|
|
3509
|
+
* this assumes a single URL-synced collection per page.
|
|
3509
3510
|
*/
|
|
3510
3511
|
export declare const DATA_COLLECTION_URL_PARAM_PREFIX = "dc_";
|
|
3511
3512
|
|
|
3512
3513
|
/**
|
|
3513
3514
|
* The reserved (non-filter) param names. Individual filters are encoded as
|
|
3514
|
-
* `dc_<filterKey>`; these
|
|
3515
|
-
*
|
|
3515
|
+
* `dc_<filterKey>`; these names are written last (via `set`) so that on the rare
|
|
3516
|
+
* clash where a filter key is exactly `search`, `sort`, `view` or `page`, the
|
|
3516
3517
|
* reserved param wins.
|
|
3517
3518
|
*/
|
|
3518
3519
|
export declare const DATA_COLLECTION_URL_PARAMS: {
|
|
3519
|
-
readonly id: "dc_id";
|
|
3520
3520
|
readonly search: "dc_search";
|
|
3521
3521
|
readonly sortings: "dc_sort";
|
|
3522
3522
|
/** Active visualization type/key, e.g. `table` (omitted for the default one). */
|
|
@@ -3661,11 +3661,6 @@ export declare type DataCollectionStorageHandler<CurrentFiltersState extends Fil
|
|
|
3661
3661
|
/** How {@link syncDataCollectionUrlParams} should update the browser history. */
|
|
3662
3662
|
export declare type DataCollectionUrlHistoryMode = "replace" | "push" | "none";
|
|
3663
3663
|
|
|
3664
|
-
export declare type DataCollectionUrlParams<CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>> = {
|
|
3665
|
-
id: string;
|
|
3666
|
-
state: DataCollectionUrlState<CurrentFiltersState>;
|
|
3667
|
-
};
|
|
3668
|
-
|
|
3669
3664
|
/** The subset of a data collection's state we read from / write to the URL. */
|
|
3670
3665
|
export declare type DataCollectionUrlState<CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>> = Pick<DataCollectionStorage<CurrentFiltersState>, "filters" | "search" | "sortings"> & {
|
|
3671
3666
|
/**
|
|
@@ -12464,15 +12459,17 @@ export declare type PaginationInfo = Omit<PageBasedPaginatedResponse<unknown>, "
|
|
|
12464
12459
|
export declare type PaginationType = "pages" | "infinite-scroll" | "no-pagination";
|
|
12465
12460
|
|
|
12466
12461
|
/**
|
|
12467
|
-
* Parses
|
|
12462
|
+
* Parses a data collection's state out of URL query params.
|
|
12468
12463
|
*
|
|
12469
12464
|
* @param input - A query string, a `URLSearchParams`, or omitted to read from
|
|
12470
12465
|
* `window.location.search`.
|
|
12471
12466
|
* @param filtersDefinition - Needed to decode the `dc_<filterKey>` params back
|
|
12472
12467
|
* into correctly-typed filter values. Omit to skip filters.
|
|
12473
|
-
* @returns
|
|
12468
|
+
* @returns The state encoded in the URL (empty when no `dc_` params are present).
|
|
12469
|
+
* Params are not scoped to a collection id — one synced collection per
|
|
12470
|
+
* page is assumed.
|
|
12474
12471
|
*/
|
|
12475
|
-
export declare const parseDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(input?: string | URLSearchParams, filtersDefinition?: FiltersDefinition) =>
|
|
12472
|
+
export declare const parseDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(input?: string | URLSearchParams, filtersDefinition?: FiltersDefinition) => DataCollectionUrlState<CurrentFiltersState>;
|
|
12476
12473
|
|
|
12477
12474
|
declare type PathsToStringProps<T> = T extends string ? [] : {
|
|
12478
12475
|
[K in Extract<keyof T, string>]: [K, ...PathsToStringProps<T[K]>];
|
|
@@ -13543,12 +13540,12 @@ export declare const selectSizes: readonly ["sm", "md"];
|
|
|
13543
13540
|
declare type SelectValueType = string | number;
|
|
13544
13541
|
|
|
13545
13542
|
/**
|
|
13546
|
-
* Writes a data collection's current
|
|
13547
|
-
*
|
|
13548
|
-
*
|
|
13549
|
-
*
|
|
13543
|
+
* Writes a data collection's current state onto an existing query string,
|
|
13544
|
+
* preserving any unrelated params. Every `dc_`-prefixed param is rebuilt from
|
|
13545
|
+
* `state`, so cleared values drop out and an entirely empty state leaves the URL
|
|
13546
|
+
* free of `dc_` params.
|
|
13550
13547
|
*/
|
|
13551
|
-
export declare const setDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(current: string | URLSearchParams | undefined,
|
|
13548
|
+
export declare const setDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(current: string | URLSearchParams | undefined, state: DataCollectionUrlState<CurrentFiltersState>) => URLSearchParams;
|
|
13552
13549
|
|
|
13553
13550
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
13554
13551
|
|
|
@@ -13843,14 +13840,14 @@ export declare type SurveySubmitAnswers = Record<string, string | number | boole
|
|
|
13843
13840
|
declare type SwitchFieldRenderIf = BooleanRenderIfCondition | CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
|
|
13844
13841
|
|
|
13845
13842
|
/**
|
|
13846
|
-
* Reflects a data collection's current
|
|
13843
|
+
* Reflects a data collection's current state into the URL.
|
|
13847
13844
|
*
|
|
13848
13845
|
* Pairs with {@link parseDataCollectionUrlParams} (which reads the other way).
|
|
13849
13846
|
* `OneDataCollection` wires this up by default when an `id` is set.
|
|
13850
13847
|
*
|
|
13851
13848
|
* @returns The resulting query string (no leading `?`), or `null` under SSR.
|
|
13852
13849
|
*/
|
|
13853
|
-
export declare const syncDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(
|
|
13850
|
+
export declare const syncDataCollectionUrlParams: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(state: DataCollectionUrlState<CurrentFiltersState>, options?: {
|
|
13854
13851
|
history?: DataCollectionUrlHistoryMode;
|
|
13855
13852
|
}) => string | null;
|
|
13856
13853
|
|
|
@@ -15522,11 +15519,6 @@ declare module "gridstack" {
|
|
|
15522
15519
|
}
|
|
15523
15520
|
|
|
15524
15521
|
|
|
15525
|
-
declare namespace Calendar {
|
|
15526
|
-
var displayName: string;
|
|
15527
|
-
}
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
15522
|
declare module "@tiptap/core" {
|
|
15531
15523
|
interface Commands<ReturnType> {
|
|
15532
15524
|
aiBlock: {
|
|
@@ -15576,6 +15568,11 @@ declare module "@tiptap/core" {
|
|
|
15576
15568
|
}
|
|
15577
15569
|
|
|
15578
15570
|
|
|
15571
|
+
declare namespace Calendar {
|
|
15572
|
+
var displayName: string;
|
|
15573
|
+
}
|
|
15574
|
+
|
|
15575
|
+
|
|
15579
15576
|
declare namespace F0GraphNodeWrapperInner {
|
|
15580
15577
|
var displayName: string;
|
|
15581
15578
|
}
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import He, { forwardRef as Jr, useRef as se, useImperativeHandle as IH, Children
|
|
|
6
6
|
import { z as PH, B as OH, U as iT, D as aT, E as $m, G as oT, H as BH, I as Oa, J as nl, K as VH, L as Hw, M as Rr, N as fi, O as FH, P as zH, Q as kk, Z as Ho, R as GH, S as HH, T as WH, V as Rk, W as Xv, X as Ww, Y as Pk, _ as Ok, $ as pn, a0 as UH, a1 as $H, a2 as Bk, a3 as Rg, a4 as YH, a5 as XH, a6 as Vk, a7 as qH, a8 as ZH, a9 as jH, aa as KH, ab as QH, ac as JH, F as eW } from "./useChatHistory-DBzFU3JU.js";
|
|
7
7
|
import { A as Lye, C as Nye, h as Iye, t as kye, v as Rye, x as Pye, ah as Oye, n as Bye, j as Vye, r as Fye, y as zye, q as Gye, s as Hye, k as Wye, e as Uye, g as $ye, l as Yye, i as Xye, a as qye, p as Zye, ai as jye, af as Kye, ae as Qye, ag as Jye, m as e0e, o as t0e, ad as r0e, b as n0e, f as i0e, w as a0e, c as o0e, d as s0e, u as l0e } from "./useChatHistory-DBzFU3JU.js";
|
|
8
8
|
import { createPortal as Fk, unstable_batchedUpdates as qd, flushSync as tW } from "react-dom";
|
|
9
|
-
import { C as rW, o as nW, G as jb, H as zk, ag as Gk, Q as Hk, ae as iW, U as aW, X as Wk, Y as Uw, ah as $w, a9 as oW, ai as sW, aj as lW, d as Pg, ak as uW, R as Yw, u as Xw, W as Uk, O as qw, al as $k, am as Zw, p as cW, a4 as Yk, $ as Xk, an as fW, ao as dW, ap as hW, aq as vW, ar as pW, M as gW, as as Kb } from "./useDataCollectionSource-
|
|
10
|
-
import { r as c0e, s as f0e, t as d0e, z as h0e, az as v0e, ay as p0e, au as g0e, F as m0e, J as y0e, af as b0e, K as x0e, v as _0e, aA as w0e, ab as S0e, ac as C0e, aa as T0e, ad as D0e, N as A0e, w as M0e, P as E0e, y as L0e, D as N0e, T as I0e, x as k0e, E as R0e, aC as P0e, m as O0e, n as B0e, at as V0e, aB as F0e, a7 as z0e, I as G0e, aD as H0e, aE as W0e, av as U0e, aw as $0e, ax as Y0e, e as X0e, aF as q0e } from "./useDataCollectionSource-
|
|
9
|
+
import { C as rW, o as nW, G as jb, H as zk, ag as Gk, Q as Hk, ae as iW, U as aW, X as Wk, Y as Uw, ah as $w, a9 as oW, ai as sW, aj as lW, d as Pg, ak as uW, R as Yw, u as Xw, W as Uk, O as qw, al as $k, am as Zw, p as cW, a4 as Yk, $ as Xk, an as fW, ao as dW, ap as hW, aq as vW, ar as pW, M as gW, as as Kb } from "./useDataCollectionSource-ZgUdpWim.js";
|
|
10
|
+
import { r as c0e, s as f0e, t as d0e, z as h0e, az as v0e, ay as p0e, au as g0e, F as m0e, J as y0e, af as b0e, K as x0e, v as _0e, aA as w0e, ab as S0e, ac as C0e, aa as T0e, ad as D0e, N as A0e, w as M0e, P as E0e, y as L0e, D as N0e, T as I0e, x as k0e, E as R0e, aC as P0e, m as O0e, n as B0e, at as V0e, aB as F0e, a7 as z0e, I as G0e, aD as H0e, aE as W0e, av as U0e, aw as $0e, ax as Y0e, e as X0e, aF as q0e } from "./useDataCollectionSource-ZgUdpWim.js";
|
|
11
11
|
import { utils as fu, write as qk } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as j0e } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const mW = {
|
|
@@ -842,11 +842,6 @@ declare module "gridstack" {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
|
|
845
|
-
declare namespace Calendar {
|
|
846
|
-
var displayName: string;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
|
|
850
845
|
declare module "@tiptap/core" {
|
|
851
846
|
interface Commands<ReturnType> {
|
|
852
847
|
aiBlock: {
|
|
@@ -896,6 +891,11 @@ declare module "@tiptap/core" {
|
|
|
896
891
|
}
|
|
897
892
|
|
|
898
893
|
|
|
894
|
+
declare namespace Calendar {
|
|
895
|
+
var displayName: string;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
|
|
899
899
|
declare namespace F0GraphNodeWrapperInner {
|
|
900
900
|
var displayName: string;
|
|
901
901
|
}
|