@factorialco/f0-react 6.63.2 → 6.65.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/{ChatPdfThumbnail-f69Z12JN.js → ChatPdfThumbnail-2TrtvwK9.js} +1 -1
- package/dist/{CoachmarkProvider-CY6k_w3l.js → CoachmarkProvider-MMyod2tH.js} +264 -263
- package/dist/{DocumentToolbar-DEKXZotB.js → DocumentToolbar-VT-2Ba2W.js} +2 -2
- package/dist/{DocxViewer-DHDA6hNb.js → DocxViewer-pCBwQ_c-.js} +2 -2
- package/dist/{F0AiProcessingOverlay-De0y15ST.js → F0AiProcessingOverlay-DwP54pFR.js} +1 -1
- package/dist/{F0CanvasPanel-DeUaUB_R.js → F0CanvasPanel-Db99rzA7.js} +31385 -31221
- package/dist/{F0VideoPlayer-C6KjykmM.js → F0VideoPlayer-CLedAOOb.js} +1 -1
- package/dist/{LocationMap-B701CMrb.js → LocationMap-DAnC5xA-.js} +1 -1
- package/dist/{SheetViewer-DhXStyfP.js → SheetViewer-CLAvYaVR.js} +2 -2
- package/dist/{TextViewer-BwO_4FYV.js → TextViewer-5j7srC4M.js} +2 -2
- package/dist/ai.d.ts +7 -7
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +7 -7
- package/dist/component-status.js +1 -1
- package/dist/{experimental-D5r3TBm_.js → experimental-DH8mvyWK.js} +6962 -6935
- package/dist/experimental.d.ts +105 -67
- package/dist/experimental.js +24 -23
- package/dist/f0.d.ts +120 -83
- package/dist/f0.js +60 -59
- package/dist/i18n-provider-defaults.d.ts +7 -7
- package/dist/index-Dl4muhMx.js +4 -0
- package/dist/{index-BFsCw-CZ.js → index-Y07o6sHw.js} +3 -3
- package/dist/{pdfWorker-BH2CbM6O.js → pdfWorker-BHf5i1AB.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-DstE1lBT.js +0 -4
package/dist/experimental.d.ts
CHANGED
|
@@ -1324,6 +1324,7 @@ export declare type BreadcrumbSelectItemType = BreadcrumbBaseItemType & {
|
|
|
1324
1324
|
|
|
1325
1325
|
export declare type BreadcrumbSelectProps<T extends string, R = unknown> = F0SelectProps<T, R> & {
|
|
1326
1326
|
multiple?: false;
|
|
1327
|
+
variant?: "field";
|
|
1327
1328
|
};
|
|
1328
1329
|
|
|
1329
1330
|
export declare interface BreadcrumbsProps {
|
|
@@ -8092,33 +8093,24 @@ export declare interface F0SegmentedControlProps {
|
|
|
8092
8093
|
ariaLabelledBy?: string;
|
|
8093
8094
|
}
|
|
8094
8095
|
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8096
|
+
declare type F0SelectDataProps<T extends string, R = unknown> = {
|
|
8097
|
+
source: DataSourceDefinition<ResolvedRecordType<R>, FiltersDefinition, SortingsDefinition, GroupingDefinition<ResolvedRecordType<R>>>;
|
|
8098
|
+
mapOptions: (item: ResolvedRecordType<R>) => F0SelectItemProps<T, ResolvedRecordType<R>>;
|
|
8099
|
+
options?: never;
|
|
8100
|
+
} | {
|
|
8101
|
+
source?: never;
|
|
8102
|
+
mapOptions?: never;
|
|
8103
|
+
searchFn?: (option: F0SelectItemProps<T, unknown>, search?: string) => boolean | undefined;
|
|
8104
|
+
options: F0SelectItemProps<T, unknown>[];
|
|
8105
|
+
};
|
|
8106
|
+
|
|
8107
|
+
declare type F0SelectFieldProps<T extends string, R = unknown> = F0SelectPopupProps<T, R> & F0SelectSelectionProps<T, R> & {
|
|
8108
|
+
/** Standard form-field presentation. This remains the default. */
|
|
8109
|
+
variant?: "field";
|
|
8099
8110
|
withApplySelection?: boolean;
|
|
8100
8111
|
applySelectionLabel?: string;
|
|
8101
|
-
onChangeSelectedOption?: (option: F0SelectItemObject<T, ResolvedRecordType<R>> | undefined, checked: boolean) => void;
|
|
8102
8112
|
children?: React.ReactNode;
|
|
8103
|
-
open?: boolean;
|
|
8104
|
-
showSearchBox?: boolean;
|
|
8105
|
-
searchBoxPlaceholder?: string;
|
|
8106
|
-
onSearchChange?: (value: string) => void;
|
|
8107
|
-
searchValue?: string;
|
|
8108
|
-
onOpenChange?: (open: boolean) => void;
|
|
8109
|
-
/**
|
|
8110
|
-
* Called when the user changes the in-dropdown filters (requires a `source`
|
|
8111
|
-
* with filter definitions). Lets consumers keep an external context — e.g.
|
|
8112
|
-
* detail-page navigation — in sync with what the dropdown is showing.
|
|
8113
|
-
*/
|
|
8114
|
-
onFiltersChange?: (filters: FiltersState<FiltersDefinition>) => void;
|
|
8115
|
-
searchEmptyMessage?: string;
|
|
8116
8113
|
className?: string;
|
|
8117
|
-
actions?: Action[];
|
|
8118
|
-
/** Callback to create a new item from the current search text. When provided, a "+ Create" button is shown in the empty state of the dropdown. */
|
|
8119
|
-
onCreate?: (value: string) => Promise<void> | void;
|
|
8120
|
-
/** Container element to render the portal content into */
|
|
8121
|
-
portalContainer?: HTMLElement | null;
|
|
8122
8114
|
/**
|
|
8123
8115
|
* When true, renders the select as a static list without the input trigger.
|
|
8124
8116
|
* Only displays the dropdown content with max height, border and scroll.
|
|
@@ -8130,23 +8122,32 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
|
8130
8122
|
* @default false
|
|
8131
8123
|
*/
|
|
8132
8124
|
showPreview?: boolean;
|
|
8125
|
+
} & Pick<InputFieldProps<T>, "required" | "loading" | "hideLabel" | "labelIcon" | "size" | "label" | "icon" | "placeholder" | "disabled" | "name" | "error" | "status" | "hint">;
|
|
8126
|
+
|
|
8127
|
+
declare type F0SelectInlineProps<T extends string, R = unknown> = F0SelectPopupProps<T, R> & F0SelectSingleSelectionProps<T, R> & Pick<InputFieldProps<T>, "label" | "placeholder" | "disabled"> & {
|
|
8133
8128
|
/**
|
|
8134
|
-
*
|
|
8135
|
-
*
|
|
8136
|
-
* filters to find items to add to an existing selection.
|
|
8137
|
-
*
|
|
8138
|
-
* @default true
|
|
8139
|
-
*/
|
|
8140
|
-
preserveSelectionOnDatasetChange?: boolean;
|
|
8141
|
-
/**
|
|
8142
|
-
* When true, the dropdown sizes to its widest option (never narrower than
|
|
8143
|
-
* the trigger) instead of the default 20rem minimum. Useful for compact
|
|
8144
|
-
* value pickers like month/year selectors.
|
|
8145
|
-
*
|
|
8146
|
-
* @default false
|
|
8129
|
+
* Compact borderless presentation for single-value controls embedded in rows.
|
|
8130
|
+
* The required label is used as the accessible name and is not shown visually.
|
|
8147
8131
|
*/
|
|
8148
|
-
|
|
8149
|
-
|
|
8132
|
+
variant: "inline";
|
|
8133
|
+
size?: never;
|
|
8134
|
+
disableSelectAll?: never;
|
|
8135
|
+
withApplySelection?: never;
|
|
8136
|
+
applySelectionLabel?: never;
|
|
8137
|
+
children?: never;
|
|
8138
|
+
className?: never;
|
|
8139
|
+
asList?: never;
|
|
8140
|
+
showPreview?: never;
|
|
8141
|
+
required?: never;
|
|
8142
|
+
loading?: never;
|
|
8143
|
+
hideLabel?: never;
|
|
8144
|
+
labelIcon?: never;
|
|
8145
|
+
icon?: never;
|
|
8146
|
+
name?: never;
|
|
8147
|
+
error?: never;
|
|
8148
|
+
status?: never;
|
|
8149
|
+
hint?: never;
|
|
8150
|
+
};
|
|
8150
8151
|
|
|
8151
8152
|
/**
|
|
8152
8153
|
* Short token rendered next to the option label, in secondary color, on a
|
|
@@ -8194,22 +8195,56 @@ declare type F0SelectItemProps<T, R = unknown> = F0SelectItemObject<T, R> | {
|
|
|
8194
8195
|
export { F0SelectItemProps }
|
|
8195
8196
|
export { F0SelectItemProps as SelectItemProps }
|
|
8196
8197
|
|
|
8198
|
+
/** Props shared by the field and inline select variants. */
|
|
8199
|
+
declare type F0SelectPopupProps<T extends string, R = unknown> = {
|
|
8200
|
+
onChangeSelectedOption?: (option: F0SelectItemObject<T, ResolvedRecordType<R>> | undefined, checked: boolean) => void;
|
|
8201
|
+
open?: boolean;
|
|
8202
|
+
showSearchBox?: boolean;
|
|
8203
|
+
searchBoxPlaceholder?: string;
|
|
8204
|
+
onSearchChange?: (value: string) => void;
|
|
8205
|
+
searchValue?: string;
|
|
8206
|
+
onOpenChange?: (open: boolean) => void;
|
|
8207
|
+
/**
|
|
8208
|
+
* Called when the user changes the in-dropdown filters (requires a `source`
|
|
8209
|
+
* with filter definitions). Lets consumers keep an external context — e.g.
|
|
8210
|
+
* detail-page navigation — in sync with what the dropdown is showing.
|
|
8211
|
+
*/
|
|
8212
|
+
onFiltersChange?: (filters: FiltersState<FiltersDefinition>) => void;
|
|
8213
|
+
searchEmptyMessage?: string;
|
|
8214
|
+
actions?: Action[];
|
|
8215
|
+
/** Callback to create a new item from the current search text. When provided, a "+ Create" button is shown in the empty state of the dropdown. */
|
|
8216
|
+
onCreate?: (value: string) => Promise<void> | void;
|
|
8217
|
+
/** Container element to render the portal content into */
|
|
8218
|
+
portalContainer?: HTMLElement | null;
|
|
8219
|
+
/**
|
|
8220
|
+
* When true, preserves selections when the dataset changes (search, filters,
|
|
8221
|
+
* or sortings). Useful for picker components where the user searches and
|
|
8222
|
+
* filters to find items to add to an existing selection.
|
|
8223
|
+
*
|
|
8224
|
+
* @default true
|
|
8225
|
+
*/
|
|
8226
|
+
preserveSelectionOnDatasetChange?: boolean;
|
|
8227
|
+
/**
|
|
8228
|
+
* When true, the dropdown sizes to its widest option (never narrower than
|
|
8229
|
+
* the trigger) instead of the default 20rem minimum. Useful for compact
|
|
8230
|
+
* value pickers like month/year selectors.
|
|
8231
|
+
*
|
|
8232
|
+
* @default false for field selects; true for inline selects
|
|
8233
|
+
*/
|
|
8234
|
+
fitContentWidth?: boolean;
|
|
8235
|
+
} & WithDataTestIdProps;
|
|
8236
|
+
|
|
8197
8237
|
/**
|
|
8198
8238
|
* Select component for choosing from a list of options.
|
|
8199
8239
|
*
|
|
8200
8240
|
* @template T - The type of the emitted value
|
|
8201
8241
|
* @template R - The type of the record/item data (used with data source)
|
|
8202
8242
|
*/
|
|
8203
|
-
declare type F0SelectProps<T extends string, R = unknown> =
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
defaultItem?: F0SelectItemObject<T, ResolvedRecordType<R>>;
|
|
8209
|
-
onChange?: (value: T, originalItem?: ResolvedRecordType<R> | undefined, option?: F0SelectItemObject<T, ResolvedRecordType<R>>) => void;
|
|
8210
|
-
/** Callback for selection changes - provides full selection state for advanced use cases (e.g., "Select All" with exclusions) */
|
|
8211
|
-
onSelectItems?: never;
|
|
8212
|
-
} | {
|
|
8243
|
+
declare type F0SelectProps<T extends string, R = unknown> = (F0SelectFieldProps<T, R> | F0SelectInlineProps<T, R>) & F0SelectDataProps<T, R>;
|
|
8244
|
+
export { F0SelectProps }
|
|
8245
|
+
export { F0SelectProps as SelectProps }
|
|
8246
|
+
|
|
8247
|
+
declare type F0SelectSelectionProps<T extends string, R = unknown> = F0SelectSingleSelectionProps<T, R> | {
|
|
8213
8248
|
clearable: true;
|
|
8214
8249
|
multiple?: false;
|
|
8215
8250
|
value?: T;
|
|
@@ -8239,18 +8274,17 @@ declare type F0SelectProps<T extends string, R = unknown> = F0SelectBaseProps<T,
|
|
|
8239
8274
|
* When enabled, the allSelected state will always be false and users must select items individually.
|
|
8240
8275
|
*/
|
|
8241
8276
|
disableSelectAll?: boolean;
|
|
8242
|
-
}
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
export { F0SelectProps as SelectProps }
|
|
8277
|
+
};
|
|
8278
|
+
|
|
8279
|
+
declare type F0SelectSingleSelectionProps<T extends string, R = unknown> = {
|
|
8280
|
+
clearable?: false;
|
|
8281
|
+
multiple?: false;
|
|
8282
|
+
value?: T;
|
|
8283
|
+
defaultItem?: F0SelectItemObject<T, ResolvedRecordType<R>>;
|
|
8284
|
+
onChange?: (value: T, originalItem?: ResolvedRecordType<R> | undefined, option?: F0SelectItemObject<T, ResolvedRecordType<R>>) => void;
|
|
8285
|
+
/** Callback for selection changes - provides full selection state for advanced use cases (e.g., "Select All" with exclusions) */
|
|
8286
|
+
onSelectItems?: never;
|
|
8287
|
+
};
|
|
8254
8288
|
|
|
8255
8289
|
export declare type F0SelectTagProp = string | {
|
|
8256
8290
|
type: "dot";
|
|
@@ -8270,6 +8304,8 @@ export declare type F0SelectTagProp = string | {
|
|
|
8270
8304
|
variant: StatusVariant;
|
|
8271
8305
|
};
|
|
8272
8306
|
|
|
8307
|
+
export declare type F0SelectVariant = (typeof selectVariants)[number];
|
|
8308
|
+
|
|
8273
8309
|
/**
|
|
8274
8310
|
* @experimental This is an experimental component use it at your own risk
|
|
8275
8311
|
*/
|
|
@@ -12388,6 +12424,8 @@ export declare type SelectionId = number | string;
|
|
|
12388
12424
|
|
|
12389
12425
|
export declare const selectSizes: readonly ["sm", "md"];
|
|
12390
12426
|
|
|
12427
|
+
export declare const selectVariants: readonly ["field", "inline"];
|
|
12428
|
+
|
|
12391
12429
|
/**
|
|
12392
12430
|
* @experimental This is an experimental component use it at your own risk
|
|
12393
12431
|
*/
|
|
@@ -15055,9 +15093,10 @@ declare module "@tiptap/core" {
|
|
|
15055
15093
|
|
|
15056
15094
|
declare module "@tiptap/core" {
|
|
15057
15095
|
interface Commands<ReturnType> {
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
|
|
15096
|
+
indent: {
|
|
15097
|
+
setIndent: (level: number) => ReturnType;
|
|
15098
|
+
unsetIndent: () => ReturnType;
|
|
15099
|
+
outdent: () => ReturnType;
|
|
15061
15100
|
};
|
|
15062
15101
|
}
|
|
15063
15102
|
}
|
|
@@ -15065,10 +15104,9 @@ declare module "@tiptap/core" {
|
|
|
15065
15104
|
|
|
15066
15105
|
declare module "@tiptap/core" {
|
|
15067
15106
|
interface Commands<ReturnType> {
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
outdent: () => ReturnType;
|
|
15107
|
+
fontSize: {
|
|
15108
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
15109
|
+
unsetFontSize: () => ReturnType;
|
|
15072
15110
|
};
|
|
15073
15111
|
}
|
|
15074
15112
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { v as s, t, A as i, a as o, J as r, ar as n, aq as l, as as d, B as S, w as C, y as g, L as m, ay as u, az as c, aI as b, x as h, C as P, ax as
|
|
2
|
-
import { dO as Be, ep as ye, eo as De, eC as Le, dl as We, em as ve, cd as ke, c3 as Oe, ca as _e, eh as fe, bY as xe, bY as Re, bR as He, ei as Me, cg as Ne, d$ as Ve, ci as we, eF as Ge, en as ze, ey as Ue, ez as je, d5 as
|
|
3
|
-
import {
|
|
1
|
+
import { v as s, t, A as i, a as o, J as r, ar as n, aq as l, as as d, B as S, w as C, y as g, L as m, ay as u, az as c, aI as b, x as h, C as P, ax as T, aJ as p, D as F, z as I, a3 as E, b1 as A, b8 as B, K as y, b0 as D, E as L, b as W, i as v, ag as k, ah as O, G as _, an as f, F as x, j as R, n as H, o as M, k as N, c as V, q as w, r as G, H as z, aM as U, aN as j, aB as q, am as Y, aR as K, at as X, a6 as $, aL as J, U as Q, ac as Z, O as aa, bc as ea, V as sa, P as ta, M as ia, N as oa, au as ra, R as na, a_ as la, b2 as da, S as Sa, a7 as Ca, a8 as ga, _ as ma, $ as ua, a0 as ca, Z as ba, a1 as ha, W as Pa, a2 as Ta, a4 as pa, a5 as Fa, a9 as Ia, aa as Ea, b6 as Aa, b5 as Ba, ap as ya, ao as Da, aw as La, aK as Wa, aH as va, av as ka, ab as Oa, aC as _a, b7 as fa, ba as xa, aA as Ra, aF as Ha, aD as Ma, bb as Na, aG as Va, aE as wa, b9 as Ga, d as za, af as Ua, b4 as ja, b3 as qa, aj as Ya, f as Ka, l as Xa, p as $a, g as Ja, h as Qa, aU as Za, aS as ae, ak as ee, al as se, aQ as te, aT as ie, e as oe, s as re, aY as ne, aP as le, aV as de, ad as Se, a$ as Ce, u as ge, ae as me, ai as ue, aO as ce, T as be, Q as he, I as Pe, Y as Te, X as pe, aZ as Fe, aX as Ie, aW as Ee } from "./experimental-DH8mvyWK.js";
|
|
2
|
+
import { dO as Be, ep as ye, eo as De, eC as Le, dl as We, em as ve, cd as ke, c3 as Oe, ca as _e, eh as fe, bY as xe, bY as Re, bR as He, ei as Me, cg as Ne, d$ as Ve, ci as we, eF as Ge, en as ze, ey as Ue, ez as je, d5 as qe, eD as Ye, k as Ke, dP as Xe, cM as $e, el as Je, er as Qe, eq as Ze, T as as, h as es, bS as ss, eA as ts, eG as is, eB as os, eE as rs, ex as ns, eu as ls, ew as ds, es as Ss, ej as Cs, ek as gs, ed as ms, ev as us, et as cs } from "./F0CanvasPanel-Db99rzA7.js";
|
|
3
|
+
import { ax as hs, ay as Ps, a5 as Ts, a6 as ps, a3 as Fs, ag as Is, C as Es, a7 as As, aJ as Bs, ac as ys, aI as Ds, af as Ls, a4 as Ws, av as vs, aL as ks, aK as Os, an as _s, ah as fs, aq as xs, aO as Rs, a2 as Hs, as as Ms, ap as Ns, ak as Vs, aQ as ws, al as Gs, at as zs, au as Us, a8 as js, aM as qs, aN as Ys, am as Ks, aw as Xs, aF as $s, O as Js, aH as Qs, a9 as Zs, aS as at, ab as et, ad as st, aq as tt, aP as it, ar as ot, ao as rt, aR as nt, aa as lt, W as dt, ae as St, a1 as Ct, $ as gt, a0 as mt, aB as ut, aC as ct, az as bt, aG as ht, aj as Pt, ai as Tt, aD as pt, l as Ft, aA as It, aE as Et, y as At } from "./CoachmarkProvider-MMyod2tH.js";
|
|
4
4
|
export {
|
|
5
5
|
hs as AUTO_PER_PAGE_MAX,
|
|
6
6
|
Ps as AUTO_PER_PAGE_MIN_RESERVED_ROWS,
|
|
@@ -9,11 +9,11 @@ export {
|
|
|
9
9
|
i as AiPromotionChat,
|
|
10
10
|
o as AiPromotionChatProvider,
|
|
11
11
|
r as ApplicationFrame,
|
|
12
|
-
|
|
12
|
+
Ts as AreaChart,
|
|
13
13
|
n as AreaChartWidget,
|
|
14
14
|
l as AutoGrid,
|
|
15
15
|
Be as Badge,
|
|
16
|
-
|
|
16
|
+
ps as BarChart,
|
|
17
17
|
d as BarChartWidget,
|
|
18
18
|
S as BaseActivityItemList,
|
|
19
19
|
Fs as BaseBanner,
|
|
@@ -30,9 +30,9 @@ export {
|
|
|
30
30
|
b as CategoryBarSection,
|
|
31
31
|
h as Celebration,
|
|
32
32
|
P as CelebrationSkeleton,
|
|
33
|
-
|
|
33
|
+
T as ChartWidgetEmptyState,
|
|
34
34
|
Le as Chip,
|
|
35
|
-
|
|
35
|
+
p as ClockInControls,
|
|
36
36
|
Bs as CoachmarkProvider,
|
|
37
37
|
ys as ComboChart,
|
|
38
38
|
F as CommunityPost,
|
|
@@ -89,19 +89,19 @@ export {
|
|
|
89
89
|
z as HighlightBanner,
|
|
90
90
|
U as HomeSlotItem,
|
|
91
91
|
j as HomeSlotItems,
|
|
92
|
-
|
|
92
|
+
q as IndicatorsList,
|
|
93
93
|
Gs as Input,
|
|
94
94
|
zs as Item,
|
|
95
95
|
Us as ItemSectionHeader,
|
|
96
|
-
|
|
96
|
+
Y as LATEST,
|
|
97
97
|
K as LIST_COMPACT_AFTER,
|
|
98
98
|
js as LineChart,
|
|
99
99
|
X as LineChartWidget,
|
|
100
100
|
$ as Menu,
|
|
101
101
|
ze as MobileDropdown,
|
|
102
102
|
J as NewHomeLayout,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
qs as NotesTextEditor,
|
|
104
|
+
Ys as NotesTextEditorSkeleton,
|
|
105
105
|
Ks as NumberInput,
|
|
106
106
|
Q as OmniButton,
|
|
107
107
|
Z as OneApprovalHistory,
|
|
@@ -117,7 +117,7 @@ export {
|
|
|
117
117
|
ta as PageHeader,
|
|
118
118
|
ia as PageHeaderNavigationContext,
|
|
119
119
|
oa as PageHeaderNavigationProvider,
|
|
120
|
-
|
|
120
|
+
qe as PageNavigation,
|
|
121
121
|
Zs as PieChart,
|
|
122
122
|
ra as PieChartWidget,
|
|
123
123
|
at as PrivateBox,
|
|
@@ -125,7 +125,7 @@ export {
|
|
|
125
125
|
st as RadarChart,
|
|
126
126
|
na as Reactions,
|
|
127
127
|
tt as ResourceHeader,
|
|
128
|
-
|
|
128
|
+
Ye as RichTextDisplay,
|
|
129
129
|
it as RichTextEditor,
|
|
130
130
|
la as SLOT_ROW_BLEED,
|
|
131
131
|
da as SLOT_SKELETON_ITEM_TESTID,
|
|
@@ -141,8 +141,8 @@ export {
|
|
|
141
141
|
ba as SidebarChatList,
|
|
142
142
|
ha as SidebarChatListSkeleton,
|
|
143
143
|
Pa as SidebarChatProvider,
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
Ta as SidebarCollapsibleSection,
|
|
145
|
+
pa as SidebarFooter,
|
|
146
146
|
Fa as SidebarHeader,
|
|
147
147
|
Ia as SidebarTabPanel,
|
|
148
148
|
Ea as SidebarTabs,
|
|
@@ -186,9 +186,9 @@ export {
|
|
|
186
186
|
os as chipVariants,
|
|
187
187
|
Ua as coachmarks,
|
|
188
188
|
ja as defaultSlotRenderers,
|
|
189
|
-
|
|
189
|
+
qa as defaultSlotSkeleton,
|
|
190
190
|
ut as downloadAsCSV,
|
|
191
|
-
|
|
191
|
+
Ya as f0ChatSenderColors,
|
|
192
192
|
Ka as f0EmojiPickerSizes,
|
|
193
193
|
rs as f0FileItemSizes,
|
|
194
194
|
Xa as f0MapMarkerVariants,
|
|
@@ -220,21 +220,22 @@ export {
|
|
|
220
220
|
de as resolveWidgetHeader,
|
|
221
221
|
Se as seedFromStorage,
|
|
222
222
|
Pt as selectSizes,
|
|
223
|
+
Tt as selectVariants,
|
|
223
224
|
Ce as slotRowBleed,
|
|
224
225
|
ge as useAiPromotionChat,
|
|
225
226
|
pt as useDataCollectionData,
|
|
226
227
|
me as useDataCollectionItemNavigation,
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
Ft as useDataCollectionSource,
|
|
229
|
+
It as useExportAction,
|
|
229
230
|
ue as useF0Chat,
|
|
230
|
-
|
|
231
|
+
Et as useInfiniteScrollPagination,
|
|
231
232
|
ce as useIsBulkChange,
|
|
232
233
|
be as usePageHeaderItemNavigation,
|
|
233
234
|
he as usePageHeaderNavigation,
|
|
234
235
|
Pe as useSidebar,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
Te as useSidebarChatActions,
|
|
237
|
+
pe as useSidebarChats,
|
|
238
|
+
At as useWidgetIsWide,
|
|
238
239
|
Fe as widgetChrome,
|
|
239
240
|
Ie as widgetParamsAreComplete,
|
|
240
241
|
Ee as widgetTitle
|
package/dist/f0.d.ts
CHANGED
|
@@ -12483,62 +12483,6 @@ export declare const F0Select: <T extends string = string, R = unknown>(props: F
|
|
|
12483
12483
|
ref?: React.Ref<HTMLButtonElement>;
|
|
12484
12484
|
}) => React.ReactElement;
|
|
12485
12485
|
|
|
12486
|
-
/**
|
|
12487
|
-
* Base props shared across all F0Select variants
|
|
12488
|
-
*/
|
|
12489
|
-
declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
12490
|
-
withApplySelection?: boolean;
|
|
12491
|
-
applySelectionLabel?: string;
|
|
12492
|
-
onChangeSelectedOption?: (option: F0SelectItemObject<T, ResolvedRecordType<R>> | undefined, checked: boolean) => void;
|
|
12493
|
-
children?: React.ReactNode;
|
|
12494
|
-
open?: boolean;
|
|
12495
|
-
showSearchBox?: boolean;
|
|
12496
|
-
searchBoxPlaceholder?: string;
|
|
12497
|
-
onSearchChange?: (value: string) => void;
|
|
12498
|
-
searchValue?: string;
|
|
12499
|
-
onOpenChange?: (open: boolean) => void;
|
|
12500
|
-
/**
|
|
12501
|
-
* Called when the user changes the in-dropdown filters (requires a `source`
|
|
12502
|
-
* with filter definitions). Lets consumers keep an external context — e.g.
|
|
12503
|
-
* detail-page navigation — in sync with what the dropdown is showing.
|
|
12504
|
-
*/
|
|
12505
|
-
onFiltersChange?: (filters: FiltersState<FiltersDefinition>) => void;
|
|
12506
|
-
searchEmptyMessage?: string;
|
|
12507
|
-
className?: string;
|
|
12508
|
-
actions?: Action_2[];
|
|
12509
|
-
/** Callback to create a new item from the current search text. When provided, a "+ Create" button is shown in the empty state of the dropdown. */
|
|
12510
|
-
onCreate?: (value: string) => Promise<void> | void;
|
|
12511
|
-
/** Container element to render the portal content into */
|
|
12512
|
-
portalContainer?: HTMLElement | null;
|
|
12513
|
-
/**
|
|
12514
|
-
* When true, renders the select as a static list without the input trigger.
|
|
12515
|
-
* Only displays the dropdown content with max height, border and scroll.
|
|
12516
|
-
*/
|
|
12517
|
-
asList?: boolean;
|
|
12518
|
-
/**
|
|
12519
|
-
* When true, shows a selection preview panel on the right side of the dropdown
|
|
12520
|
-
* for multi-select mode. When false and filters are present, filters use compact mode.
|
|
12521
|
-
* @default false
|
|
12522
|
-
*/
|
|
12523
|
-
showPreview?: boolean;
|
|
12524
|
-
/**
|
|
12525
|
-
* When true, preserves selections when the dataset changes (search, filters,
|
|
12526
|
-
* or sortings). Useful for picker components where the user searches and
|
|
12527
|
-
* filters to find items to add to an existing selection.
|
|
12528
|
-
*
|
|
12529
|
-
* @default true
|
|
12530
|
-
*/
|
|
12531
|
-
preserveSelectionOnDatasetChange?: boolean;
|
|
12532
|
-
/**
|
|
12533
|
-
* When true, the dropdown sizes to its widest option (never narrower than
|
|
12534
|
-
* the trigger) instead of the default 20rem minimum. Useful for compact
|
|
12535
|
-
* value pickers like month/year selectors.
|
|
12536
|
-
*
|
|
12537
|
-
* @default false
|
|
12538
|
-
*/
|
|
12539
|
-
fitContentWidth?: boolean;
|
|
12540
|
-
} & WithDataTestIdProps;
|
|
12541
|
-
|
|
12542
12486
|
/**
|
|
12543
12487
|
* F0 config options specific to select fields
|
|
12544
12488
|
*
|
|
@@ -12607,6 +12551,17 @@ declare interface F0SelectConfigWithSource<T extends SelectValueType = string, R
|
|
|
12607
12551
|
options?: never;
|
|
12608
12552
|
}
|
|
12609
12553
|
|
|
12554
|
+
declare type F0SelectDataProps<T extends string, R = unknown> = {
|
|
12555
|
+
source: DataSourceDefinition<ResolvedRecordType<R>, FiltersDefinition, SortingsDefinition, GroupingDefinition<ResolvedRecordType<R>>>;
|
|
12556
|
+
mapOptions: (item: ResolvedRecordType<R>) => F0SelectItemProps<T, ResolvedRecordType<R>>;
|
|
12557
|
+
options?: never;
|
|
12558
|
+
} | {
|
|
12559
|
+
source?: never;
|
|
12560
|
+
mapOptions?: never;
|
|
12561
|
+
searchFn?: (option: F0SelectItemProps<T, unknown>, search?: string) => boolean | undefined;
|
|
12562
|
+
options: F0SelectItemProps<T, unknown>[];
|
|
12563
|
+
};
|
|
12564
|
+
|
|
12610
12565
|
/**
|
|
12611
12566
|
* Select field with all properties for rendering
|
|
12612
12567
|
* Includes properties derived from Zod schema
|
|
@@ -12619,6 +12574,51 @@ export declare type F0SelectField = F0BaseField & F0SelectConfig & {
|
|
|
12619
12574
|
renderIf?: SelectFieldRenderIf;
|
|
12620
12575
|
};
|
|
12621
12576
|
|
|
12577
|
+
declare type F0SelectFieldProps<T extends string, R = unknown> = F0SelectPopupProps<T, R> & F0SelectSelectionProps<T, R> & {
|
|
12578
|
+
/** Standard form-field presentation. This remains the default. */
|
|
12579
|
+
variant?: "field";
|
|
12580
|
+
withApplySelection?: boolean;
|
|
12581
|
+
applySelectionLabel?: string;
|
|
12582
|
+
children?: React.ReactNode;
|
|
12583
|
+
className?: string;
|
|
12584
|
+
/**
|
|
12585
|
+
* When true, renders the select as a static list without the input trigger.
|
|
12586
|
+
* Only displays the dropdown content with max height, border and scroll.
|
|
12587
|
+
*/
|
|
12588
|
+
asList?: boolean;
|
|
12589
|
+
/**
|
|
12590
|
+
* When true, shows a selection preview panel on the right side of the dropdown
|
|
12591
|
+
* for multi-select mode. When false and filters are present, filters use compact mode.
|
|
12592
|
+
* @default false
|
|
12593
|
+
*/
|
|
12594
|
+
showPreview?: boolean;
|
|
12595
|
+
} & Pick<InputFieldProps<T>, "required" | "loading" | "hideLabel" | "labelIcon" | "size" | "label" | "icon" | "placeholder" | "disabled" | "name" | "error" | "status" | "hint">;
|
|
12596
|
+
|
|
12597
|
+
declare type F0SelectInlineProps<T extends string, R = unknown> = F0SelectPopupProps<T, R> & F0SelectSingleSelectionProps<T, R> & Pick<InputFieldProps<T>, "label" | "placeholder" | "disabled"> & {
|
|
12598
|
+
/**
|
|
12599
|
+
* Compact borderless presentation for single-value controls embedded in rows.
|
|
12600
|
+
* The required label is used as the accessible name and is not shown visually.
|
|
12601
|
+
*/
|
|
12602
|
+
variant: "inline";
|
|
12603
|
+
size?: never;
|
|
12604
|
+
disableSelectAll?: never;
|
|
12605
|
+
withApplySelection?: never;
|
|
12606
|
+
applySelectionLabel?: never;
|
|
12607
|
+
children?: never;
|
|
12608
|
+
className?: never;
|
|
12609
|
+
asList?: never;
|
|
12610
|
+
showPreview?: never;
|
|
12611
|
+
required?: never;
|
|
12612
|
+
loading?: never;
|
|
12613
|
+
hideLabel?: never;
|
|
12614
|
+
labelIcon?: never;
|
|
12615
|
+
icon?: never;
|
|
12616
|
+
name?: never;
|
|
12617
|
+
error?: never;
|
|
12618
|
+
status?: never;
|
|
12619
|
+
hint?: never;
|
|
12620
|
+
};
|
|
12621
|
+
|
|
12622
12622
|
/**
|
|
12623
12623
|
* Short token rendered next to the option label, in secondary color, on a
|
|
12624
12624
|
* single line — never wraps and never affects row height. For prose that
|
|
@@ -12661,22 +12661,54 @@ export declare type F0SelectItemProps<T, R = unknown> = F0SelectItemObject<T, R>
|
|
|
12661
12661
|
type: "separator";
|
|
12662
12662
|
};
|
|
12663
12663
|
|
|
12664
|
+
/** Props shared by the field and inline select variants. */
|
|
12665
|
+
declare type F0SelectPopupProps<T extends string, R = unknown> = {
|
|
12666
|
+
onChangeSelectedOption?: (option: F0SelectItemObject<T, ResolvedRecordType<R>> | undefined, checked: boolean) => void;
|
|
12667
|
+
open?: boolean;
|
|
12668
|
+
showSearchBox?: boolean;
|
|
12669
|
+
searchBoxPlaceholder?: string;
|
|
12670
|
+
onSearchChange?: (value: string) => void;
|
|
12671
|
+
searchValue?: string;
|
|
12672
|
+
onOpenChange?: (open: boolean) => void;
|
|
12673
|
+
/**
|
|
12674
|
+
* Called when the user changes the in-dropdown filters (requires a `source`
|
|
12675
|
+
* with filter definitions). Lets consumers keep an external context — e.g.
|
|
12676
|
+
* detail-page navigation — in sync with what the dropdown is showing.
|
|
12677
|
+
*/
|
|
12678
|
+
onFiltersChange?: (filters: FiltersState<FiltersDefinition>) => void;
|
|
12679
|
+
searchEmptyMessage?: string;
|
|
12680
|
+
actions?: Action_2[];
|
|
12681
|
+
/** Callback to create a new item from the current search text. When provided, a "+ Create" button is shown in the empty state of the dropdown. */
|
|
12682
|
+
onCreate?: (value: string) => Promise<void> | void;
|
|
12683
|
+
/** Container element to render the portal content into */
|
|
12684
|
+
portalContainer?: HTMLElement | null;
|
|
12685
|
+
/**
|
|
12686
|
+
* When true, preserves selections when the dataset changes (search, filters,
|
|
12687
|
+
* or sortings). Useful for picker components where the user searches and
|
|
12688
|
+
* filters to find items to add to an existing selection.
|
|
12689
|
+
*
|
|
12690
|
+
* @default true
|
|
12691
|
+
*/
|
|
12692
|
+
preserveSelectionOnDatasetChange?: boolean;
|
|
12693
|
+
/**
|
|
12694
|
+
* When true, the dropdown sizes to its widest option (never narrower than
|
|
12695
|
+
* the trigger) instead of the default 20rem minimum. Useful for compact
|
|
12696
|
+
* value pickers like month/year selectors.
|
|
12697
|
+
*
|
|
12698
|
+
* @default false for field selects; true for inline selects
|
|
12699
|
+
*/
|
|
12700
|
+
fitContentWidth?: boolean;
|
|
12701
|
+
} & WithDataTestIdProps;
|
|
12702
|
+
|
|
12664
12703
|
/**
|
|
12665
12704
|
* Select component for choosing from a list of options.
|
|
12666
12705
|
*
|
|
12667
12706
|
* @template T - The type of the emitted value
|
|
12668
12707
|
* @template R - The type of the record/item data (used with data source)
|
|
12669
12708
|
*/
|
|
12670
|
-
export declare type F0SelectProps<T extends string, R = unknown> =
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
multiple?: false;
|
|
12674
|
-
value?: T;
|
|
12675
|
-
defaultItem?: F0SelectItemObject<T, ResolvedRecordType<R>>;
|
|
12676
|
-
onChange?: (value: T, originalItem?: ResolvedRecordType<R> | undefined, option?: F0SelectItemObject<T, ResolvedRecordType<R>>) => void;
|
|
12677
|
-
/** Callback for selection changes - provides full selection state for advanced use cases (e.g., "Select All" with exclusions) */
|
|
12678
|
-
onSelectItems?: never;
|
|
12679
|
-
} | {
|
|
12709
|
+
export declare type F0SelectProps<T extends string, R = unknown> = (F0SelectFieldProps<T, R> | F0SelectInlineProps<T, R>) & F0SelectDataProps<T, R>;
|
|
12710
|
+
|
|
12711
|
+
declare type F0SelectSelectionProps<T extends string, R = unknown> = F0SelectSingleSelectionProps<T, R> | {
|
|
12680
12712
|
clearable: true;
|
|
12681
12713
|
multiple?: false;
|
|
12682
12714
|
value?: T;
|
|
@@ -12706,16 +12738,17 @@ export declare type F0SelectProps<T extends string, R = unknown> = F0SelectBaseP
|
|
|
12706
12738
|
* When enabled, the allSelected state will always be false and users must select items individually.
|
|
12707
12739
|
*/
|
|
12708
12740
|
disableSelectAll?: boolean;
|
|
12709
|
-
}
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12741
|
+
};
|
|
12742
|
+
|
|
12743
|
+
declare type F0SelectSingleSelectionProps<T extends string, R = unknown> = {
|
|
12744
|
+
clearable?: false;
|
|
12745
|
+
multiple?: false;
|
|
12746
|
+
value?: T;
|
|
12747
|
+
defaultItem?: F0SelectItemObject<T, ResolvedRecordType<R>>;
|
|
12748
|
+
onChange?: (value: T, originalItem?: ResolvedRecordType<R> | undefined, option?: F0SelectItemObject<T, ResolvedRecordType<R>>) => void;
|
|
12749
|
+
/** Callback for selection changes - provides full selection state for advanced use cases (e.g., "Select All" with exclusions) */
|
|
12750
|
+
onSelectItems?: never;
|
|
12751
|
+
};
|
|
12719
12752
|
|
|
12720
12753
|
export declare type F0SelectTagProp = string | {
|
|
12721
12754
|
type: "dot";
|
|
@@ -12735,6 +12768,8 @@ export declare type F0SelectTagProp = string | {
|
|
|
12735
12768
|
variant: StatusVariant;
|
|
12736
12769
|
};
|
|
12737
12770
|
|
|
12771
|
+
export declare type F0SelectVariant = (typeof selectVariants)[number];
|
|
12772
|
+
|
|
12738
12773
|
/**
|
|
12739
12774
|
* @experimental This is an experimental component, use it at your own risk.
|
|
12740
12775
|
*/
|
|
@@ -17708,6 +17743,8 @@ export declare const selectSizes: readonly ["sm", "md"];
|
|
|
17708
17743
|
*/
|
|
17709
17744
|
declare type SelectValueType = string | number;
|
|
17710
17745
|
|
|
17746
|
+
export declare const selectVariants: readonly ["field", "inline"];
|
|
17747
|
+
|
|
17711
17748
|
/**
|
|
17712
17749
|
* Writes a data collection's current state onto an existing query string,
|
|
17713
17750
|
* preserving any unrelated params. Every `dc_`-prefixed param is rebuilt from
|
|
@@ -20375,9 +20412,10 @@ declare module "@tiptap/core" {
|
|
|
20375
20412
|
|
|
20376
20413
|
declare module "@tiptap/core" {
|
|
20377
20414
|
interface Commands<ReturnType> {
|
|
20378
|
-
|
|
20379
|
-
|
|
20380
|
-
|
|
20415
|
+
indent: {
|
|
20416
|
+
setIndent: (level: number) => ReturnType;
|
|
20417
|
+
unsetIndent: () => ReturnType;
|
|
20418
|
+
outdent: () => ReturnType;
|
|
20381
20419
|
};
|
|
20382
20420
|
}
|
|
20383
20421
|
}
|
|
@@ -20385,10 +20423,9 @@ declare module "@tiptap/core" {
|
|
|
20385
20423
|
|
|
20386
20424
|
declare module "@tiptap/core" {
|
|
20387
20425
|
interface Commands<ReturnType> {
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
outdent: () => ReturnType;
|
|
20426
|
+
fontSize: {
|
|
20427
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
20428
|
+
unsetFontSize: () => ReturnType;
|
|
20392
20429
|
};
|
|
20393
20430
|
}
|
|
20394
20431
|
}
|