@factorialco/f0-react 2.37.0 → 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 +17 -18
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +31 -37
- 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
|
@@ -37,7 +37,6 @@ import { DotTagCellValue as DotTagCellValue_2 } from './experimental';
|
|
|
37
37
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
38
38
|
import { Editor } from '@tiptap/react';
|
|
39
39
|
import { EmployeeItemProps } from './types';
|
|
40
|
-
import { F0NumberInputProps as F0NumberInputProps_2 } from './F0NumberInput';
|
|
41
40
|
import { F0SegmentedControlProps as F0SegmentedControlProps_2 } from './types';
|
|
42
41
|
import { F0SelectProps as F0SelectProps_2 } from './types';
|
|
43
42
|
import { F0TagBalanceProps as F0TagBalanceProps_2 } from './types';
|
|
@@ -45,8 +44,6 @@ import { F0TagCompanyProps } from './types';
|
|
|
45
44
|
import { F0TagPersonProps } from './types';
|
|
46
45
|
import { F0TagRawProps as F0TagRawProps_2 } from './types';
|
|
47
46
|
import { F0TagTeamProps } from './types';
|
|
48
|
-
import { F0TextAreaInputProps as F0TextAreaInputProps_2 } from './F0TextAreaInput';
|
|
49
|
-
import { F0TextInputProps as F0TextInputProps_2 } from './F0TextInput';
|
|
50
47
|
import { f1Colors } from '@factorialco/f0-core';
|
|
51
48
|
import { FC } from 'react';
|
|
52
49
|
import { FileCellValue } from './types/file';
|
|
@@ -5397,7 +5394,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
|
|
|
5397
5394
|
*
|
|
5398
5395
|
* @removeIn 2.0.0
|
|
5399
5396
|
*/
|
|
5400
|
-
export declare const Input: <T extends string>(props:
|
|
5397
|
+
export declare const Input: <T extends string>(props: F0TextInputProps<T>) => JSX_2.Element;
|
|
5401
5398
|
|
|
5402
5399
|
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "transparent" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
5403
5400
|
|
|
@@ -5499,7 +5496,7 @@ declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof I
|
|
|
5499
5496
|
* @deprecated Renamed to `F0TextInputProps`. See the `Input` deprecation note.
|
|
5500
5497
|
* @removeIn 2.0.0
|
|
5501
5498
|
*/
|
|
5502
|
-
export declare type InputProps<T extends string> =
|
|
5499
|
+
export declare type InputProps<T extends string> = F0TextInputProps<T>;
|
|
5503
5500
|
|
|
5504
5501
|
declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
5505
5502
|
type: "insert_after";
|
|
@@ -6096,7 +6093,7 @@ declare type NumberFilterValue = {
|
|
|
6096
6093
|
*
|
|
6097
6094
|
* @removeIn 2.0.0
|
|
6098
6095
|
*/
|
|
6099
|
-
export declare const NumberInput: (props:
|
|
6096
|
+
export declare const NumberInput: (props: F0NumberInputProps) => JSX_2.Element;
|
|
6100
6097
|
|
|
6101
6098
|
declare type NumberInputInternalProps = Omit<InputInternalProps<string>, "value" | "type" | "onChange"> & {
|
|
6102
6099
|
locale: string;
|
|
@@ -6132,7 +6129,7 @@ export declare interface NumberInputPopoverConfig {
|
|
|
6132
6129
|
* deprecation note.
|
|
6133
6130
|
* @removeIn 2.0.0
|
|
6134
6131
|
*/
|
|
6135
|
-
export declare type NumberInputProps =
|
|
6132
|
+
export declare type NumberInputProps = F0NumberInputProps;
|
|
6136
6133
|
|
|
6137
6134
|
declare type Numeric = NumericValue | number | undefined | null;
|
|
6138
6135
|
|
|
@@ -6402,10 +6399,12 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
|
|
|
6402
6399
|
features?: DataCollectionStorageFeaturesDefinition;
|
|
6403
6400
|
};
|
|
6404
6401
|
/**
|
|
6405
|
-
* By default
|
|
6406
|
-
*
|
|
6407
|
-
*
|
|
6408
|
-
* `
|
|
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.
|
|
6409
6408
|
*/
|
|
6410
6409
|
disableUrlParams?: boolean;
|
|
6411
6410
|
/**
|
|
@@ -7936,7 +7935,7 @@ declare type TeamTagProps = ComponentProps<typeof F0TagTeam>;
|
|
|
7936
7935
|
*
|
|
7937
7936
|
* @removeIn 2.0.0
|
|
7938
7937
|
*/
|
|
7939
|
-
export declare const Textarea: FC<
|
|
7938
|
+
export declare const Textarea: FC<F0TextAreaInputProps>;
|
|
7940
7939
|
|
|
7941
7940
|
declare const Textarea_2: ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
7942
7941
|
value?: string;
|
|
@@ -7949,7 +7948,7 @@ maxHeight?: number;
|
|
|
7949
7948
|
* deprecation note.
|
|
7950
7949
|
* @removeIn 2.0.0
|
|
7951
7950
|
*/
|
|
7952
|
-
export declare type TextareaProps =
|
|
7951
|
+
export declare type TextareaProps = F0TextAreaInputProps;
|
|
7953
7952
|
|
|
7954
7953
|
export declare type TOCItem<Depth extends 1 | 2 | 3 | 4 = 1> = BaseTOCItem & {
|
|
7955
7954
|
children?: NextDepth<Depth> extends never ? never : TOCItem<NextDepth<Depth>>[];
|
|
@@ -8704,11 +8703,6 @@ declare module "gridstack" {
|
|
|
8704
8703
|
}
|
|
8705
8704
|
|
|
8706
8705
|
|
|
8707
|
-
declare namespace Calendar {
|
|
8708
|
-
var displayName: string;
|
|
8709
|
-
}
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
8706
|
declare module "@tiptap/core" {
|
|
8713
8707
|
interface Commands<ReturnType> {
|
|
8714
8708
|
aiBlock: {
|
|
@@ -8758,6 +8752,11 @@ declare module "@tiptap/core" {
|
|
|
8758
8752
|
}
|
|
8759
8753
|
|
|
8760
8754
|
|
|
8755
|
+
declare namespace Calendar {
|
|
8756
|
+
var displayName: string;
|
|
8757
|
+
}
|
|
8758
|
+
|
|
8759
|
+
|
|
8761
8760
|
declare namespace F0GraphNodeWrapperInner {
|
|
8762
8761
|
var displayName: string;
|
|
8763
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
|
@@ -59,7 +59,6 @@ import { F0FormDefinition as F0FormDefinition_2 } from './f0';
|
|
|
59
59
|
import { F0FormDefinitionPerSection as F0FormDefinitionPerSection_2 } from './f0';
|
|
60
60
|
import { F0FormDefinitionSingleSchema as F0FormDefinitionSingleSchema_2 } from './f0';
|
|
61
61
|
import { F0GridStackProps as F0GridStackProps_2 } from './F0GridStack';
|
|
62
|
-
import { F0NumberInputProps as F0NumberInputProps_2 } from './F0NumberInput';
|
|
63
62
|
import { F0SelectProps as F0SelectProps_2 } from './types';
|
|
64
63
|
import { F0TagBalanceProps } from './types';
|
|
65
64
|
import { F0TagCompanyProps } from './types';
|
|
@@ -68,8 +67,6 @@ import { F0TagPersonProps as F0TagPersonProps_2 } from './types';
|
|
|
68
67
|
import { F0TagRawProps } from './types';
|
|
69
68
|
import { F0TagStatusProps } from './types';
|
|
70
69
|
import { F0TagTeamProps } from './types';
|
|
71
|
-
import { F0TextAreaInputProps as F0TextAreaInputProps_2 } from './F0TextAreaInput';
|
|
72
|
-
import { F0TextInputProps as F0TextInputProps_2 } from './F0TextInput';
|
|
73
70
|
import { F0TimelineRowProps as F0TimelineRowProps_2 } from './types';
|
|
74
71
|
import { f1Colors } from '@factorialco/f0-core';
|
|
75
72
|
import { FC } from 'react';
|
|
@@ -1635,10 +1632,10 @@ declare const boxVariants: (props?: ({
|
|
|
1635
1632
|
export declare type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
1636
1633
|
|
|
1637
1634
|
/**
|
|
1638
|
-
* Builds a fresh `URLSearchParams` encoding a data collection
|
|
1639
|
-
*
|
|
1635
|
+
* Builds a fresh `URLSearchParams` encoding a data collection's state, symmetric
|
|
1636
|
+
* with {@link parseDataCollectionUrlParams}.
|
|
1640
1637
|
*/
|
|
1641
|
-
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;
|
|
1642
1639
|
|
|
1643
1640
|
export declare const buildTranslations: (translations: TranslationsType) => TranslationsType;
|
|
1644
1641
|
|
|
@@ -3507,19 +3504,19 @@ export declare type Data<R extends RecordType> = {
|
|
|
3507
3504
|
|
|
3508
3505
|
/**
|
|
3509
3506
|
* Every data collection URL param shares this prefix, so each filter is its own
|
|
3510
|
-
* readable param — e.g. `?
|
|
3511
|
-
* 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.
|
|
3512
3510
|
*/
|
|
3513
3511
|
export declare const DATA_COLLECTION_URL_PARAM_PREFIX = "dc_";
|
|
3514
3512
|
|
|
3515
3513
|
/**
|
|
3516
3514
|
* The reserved (non-filter) param names. Individual filters are encoded as
|
|
3517
|
-
* `dc_<filterKey>`; these
|
|
3518
|
-
*
|
|
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
|
|
3519
3517
|
* reserved param wins.
|
|
3520
3518
|
*/
|
|
3521
3519
|
export declare const DATA_COLLECTION_URL_PARAMS: {
|
|
3522
|
-
readonly id: "dc_id";
|
|
3523
3520
|
readonly search: "dc_search";
|
|
3524
3521
|
readonly sortings: "dc_sort";
|
|
3525
3522
|
/** Active visualization type/key, e.g. `table` (omitted for the default one). */
|
|
@@ -3664,11 +3661,6 @@ export declare type DataCollectionStorageHandler<CurrentFiltersState extends Fil
|
|
|
3664
3661
|
/** How {@link syncDataCollectionUrlParams} should update the browser history. */
|
|
3665
3662
|
export declare type DataCollectionUrlHistoryMode = "replace" | "push" | "none";
|
|
3666
3663
|
|
|
3667
|
-
export declare type DataCollectionUrlParams<CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>> = {
|
|
3668
|
-
id: string;
|
|
3669
|
-
state: DataCollectionUrlState<CurrentFiltersState>;
|
|
3670
|
-
};
|
|
3671
|
-
|
|
3672
3664
|
/** The subset of a data collection's state we read from / write to the URL. */
|
|
3673
3665
|
export declare type DataCollectionUrlState<CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>> = Pick<DataCollectionStorage<CurrentFiltersState>, "filters" | "search" | "sortings"> & {
|
|
3674
3666
|
/**
|
|
@@ -11076,7 +11068,7 @@ export declare function injectSectionEnds(items: FlatFormItem[], inSectionQuesti
|
|
|
11076
11068
|
*
|
|
11077
11069
|
* @removeIn 2.0.0
|
|
11078
11070
|
*/
|
|
11079
|
-
export declare const Input: <T extends string>(props:
|
|
11071
|
+
export declare const Input: <T extends string>(props: F0TextInputProps<T>) => JSX_2.Element;
|
|
11080
11072
|
|
|
11081
11073
|
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "transparent" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
11082
11074
|
|
|
@@ -11182,7 +11174,7 @@ declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof I
|
|
|
11182
11174
|
* @deprecated Renamed to `F0TextInputProps`. See the `Input` deprecation note.
|
|
11183
11175
|
* @removeIn 2.0.0
|
|
11184
11176
|
*/
|
|
11185
|
-
export declare type InputProps<T extends string> =
|
|
11177
|
+
export declare type InputProps<T extends string> = F0TextInputProps<T>;
|
|
11186
11178
|
|
|
11187
11179
|
declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
11188
11180
|
type: "insert_after";
|
|
@@ -11957,7 +11949,7 @@ declare type NumberFilterValue = {
|
|
|
11957
11949
|
*
|
|
11958
11950
|
* @removeIn 2.0.0
|
|
11959
11951
|
*/
|
|
11960
|
-
export declare const NumberInput: (props:
|
|
11952
|
+
export declare const NumberInput: (props: F0NumberInputProps) => JSX_2.Element;
|
|
11961
11953
|
|
|
11962
11954
|
declare type NumberInputInternalProps = Omit<InputInternalProps<string>, "value" | "type" | "onChange"> & {
|
|
11963
11955
|
locale: string;
|
|
@@ -11993,7 +11985,7 @@ export declare interface NumberInputPopoverConfig {
|
|
|
11993
11985
|
* deprecation note.
|
|
11994
11986
|
* @removeIn 2.0.0
|
|
11995
11987
|
*/
|
|
11996
|
-
export declare type NumberInputProps =
|
|
11988
|
+
export declare type NumberInputProps = F0NumberInputProps;
|
|
11997
11989
|
|
|
11998
11990
|
/**
|
|
11999
11991
|
* Base for number-specific conditions
|
|
@@ -12467,15 +12459,17 @@ export declare type PaginationInfo = Omit<PageBasedPaginatedResponse<unknown>, "
|
|
|
12467
12459
|
export declare type PaginationType = "pages" | "infinite-scroll" | "no-pagination";
|
|
12468
12460
|
|
|
12469
12461
|
/**
|
|
12470
|
-
* Parses
|
|
12462
|
+
* Parses a data collection's state out of URL query params.
|
|
12471
12463
|
*
|
|
12472
12464
|
* @param input - A query string, a `URLSearchParams`, or omitted to read from
|
|
12473
12465
|
* `window.location.search`.
|
|
12474
12466
|
* @param filtersDefinition - Needed to decode the `dc_<filterKey>` params back
|
|
12475
12467
|
* into correctly-typed filter values. Omit to skip filters.
|
|
12476
|
-
* @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.
|
|
12477
12471
|
*/
|
|
12478
|
-
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>;
|
|
12479
12473
|
|
|
12480
12474
|
declare type PathsToStringProps<T> = T extends string ? [] : {
|
|
12481
12475
|
[K in Extract<keyof T, string>]: [K, ...PathsToStringProps<T[K]>];
|
|
@@ -13546,12 +13540,12 @@ export declare const selectSizes: readonly ["sm", "md"];
|
|
|
13546
13540
|
declare type SelectValueType = string | number;
|
|
13547
13541
|
|
|
13548
13542
|
/**
|
|
13549
|
-
* Writes a data collection's current
|
|
13550
|
-
*
|
|
13551
|
-
*
|
|
13552
|
-
*
|
|
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.
|
|
13553
13547
|
*/
|
|
13554
|
-
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;
|
|
13555
13549
|
|
|
13556
13550
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
13557
13551
|
|
|
@@ -13846,14 +13840,14 @@ export declare type SurveySubmitAnswers = Record<string, string | number | boole
|
|
|
13846
13840
|
declare type SwitchFieldRenderIf = BooleanRenderIfCondition | CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
|
|
13847
13841
|
|
|
13848
13842
|
/**
|
|
13849
|
-
* Reflects a data collection's current
|
|
13843
|
+
* Reflects a data collection's current state into the URL.
|
|
13850
13844
|
*
|
|
13851
13845
|
* Pairs with {@link parseDataCollectionUrlParams} (which reads the other way).
|
|
13852
13846
|
* `OneDataCollection` wires this up by default when an `id` is set.
|
|
13853
13847
|
*
|
|
13854
13848
|
* @returns The resulting query string (no leading `?`), or `null` under SSR.
|
|
13855
13849
|
*/
|
|
13856
|
-
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?: {
|
|
13857
13851
|
history?: DataCollectionUrlHistoryMode;
|
|
13858
13852
|
}) => string | null;
|
|
13859
13853
|
|
|
@@ -14196,7 +14190,7 @@ declare type TeamTagProps = ComponentProps<typeof F0TagTeam>;
|
|
|
14196
14190
|
*
|
|
14197
14191
|
* @removeIn 2.0.0
|
|
14198
14192
|
*/
|
|
14199
|
-
export declare const Textarea: FC<
|
|
14193
|
+
export declare const Textarea: FC<F0TextAreaInputProps>;
|
|
14200
14194
|
|
|
14201
14195
|
declare const Textarea_2: ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
14202
14196
|
value?: string;
|
|
@@ -14214,7 +14208,7 @@ declare type TextareaFieldRenderIf = TextRenderIfCondition | CommonRenderIfCondi
|
|
|
14214
14208
|
* deprecation note.
|
|
14215
14209
|
* @removeIn 2.0.0
|
|
14216
14210
|
*/
|
|
14217
|
-
export declare type TextareaProps =
|
|
14211
|
+
export declare type TextareaProps = F0TextAreaInputProps;
|
|
14218
14212
|
|
|
14219
14213
|
/**
|
|
14220
14214
|
* All valid renderIf conditions for text fields
|
|
@@ -15525,11 +15519,6 @@ declare module "gridstack" {
|
|
|
15525
15519
|
}
|
|
15526
15520
|
|
|
15527
15521
|
|
|
15528
|
-
declare namespace Calendar {
|
|
15529
|
-
var displayName: string;
|
|
15530
|
-
}
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
15522
|
declare module "@tiptap/core" {
|
|
15534
15523
|
interface Commands<ReturnType> {
|
|
15535
15524
|
aiBlock: {
|
|
@@ -15579,6 +15568,11 @@ declare module "@tiptap/core" {
|
|
|
15579
15568
|
}
|
|
15580
15569
|
|
|
15581
15570
|
|
|
15571
|
+
declare namespace Calendar {
|
|
15572
|
+
var displayName: string;
|
|
15573
|
+
}
|
|
15574
|
+
|
|
15575
|
+
|
|
15582
15576
|
declare namespace F0GraphNodeWrapperInner {
|
|
15583
15577
|
var displayName: string;
|
|
15584
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
|
}
|