@factorialco/f0-react 1.453.0 → 1.455.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/{F0AiChat-CLTpMqnb.js → F0AiChat-T4phx1M_.js} +33565 -33400
- package/dist/ai.d.ts +465 -5
- package/dist/ai.js +30 -27
- package/dist/experimental.d.ts +45 -36
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +129 -5
- package/dist/f0.js +107 -104
- package/dist/i18n-provider-defaults.d.ts +7 -5
- package/dist/i18n-provider-defaults.js +2 -0
- package/dist/{index-C87rXop2.js → index-DAbukEpK.js} +286 -286
- package/dist/styles.css +1 -1
- package/dist/{types-BcRmQjTr.js → types-BKqlP3gz.js} +1 -1
- package/package.json +1 -1
package/dist/ai.js
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultTranslations as
|
|
3
|
-
import { A as
|
|
1
|
+
import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-T4phx1M_.js";
|
|
2
|
+
import { defaultTranslations as S } from "./i18n-provider-defaults.js";
|
|
3
|
+
import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-BKqlP3gz.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
v as AiChatTranslationsProvider,
|
|
6
6
|
t as ChatSpinner,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
O as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
e as F0ActionItem,
|
|
8
|
+
r as F0AiChat,
|
|
9
|
+
o as F0AiChatProvider,
|
|
10
|
+
i as F0AiChatTextArea,
|
|
11
|
+
n as F0AiFullscreenChat,
|
|
12
|
+
x as F0AiInsightCard,
|
|
13
|
+
P as F0AiMask,
|
|
14
|
+
V as F0AuraVoiceAnimation,
|
|
15
|
+
k as F0HILActionConfirmation,
|
|
16
|
+
F as F0OneIcon,
|
|
17
|
+
u as F0OneSwitch,
|
|
18
|
+
A as FormCardValueFormatterProvider,
|
|
19
|
+
c as I18nProvider,
|
|
20
|
+
O as actionItemStatuses,
|
|
21
|
+
b as aiTranslations,
|
|
22
|
+
y as contentTypes,
|
|
23
|
+
S as defaultTranslations,
|
|
24
|
+
C as getCanvasEntity,
|
|
25
|
+
M as oneIconSizes,
|
|
26
|
+
m as useAiChat,
|
|
27
|
+
j as useAiChatTranslations,
|
|
28
|
+
h as useDefaultCopilotActions,
|
|
29
|
+
l as useFormCardValueFormatter,
|
|
30
|
+
d as useI18n,
|
|
29
31
|
I as useMessageSourcesAction,
|
|
30
|
-
f as useOrchestratorThinkingAction
|
|
32
|
+
f as useOrchestratorThinkingAction,
|
|
33
|
+
T as useSetFormCardValueFormatter
|
|
31
34
|
};
|
package/dist/experimental.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ export declare type ActionDefinition = DropdownItemSeparator | (Pick<DropdownIte
|
|
|
254
254
|
onClick: () => void;
|
|
255
255
|
enabled?: boolean;
|
|
256
256
|
type?: "primary" | "secondary" | "other";
|
|
257
|
+
hideLabel?: boolean;
|
|
257
258
|
});
|
|
258
259
|
|
|
259
260
|
declare type ActionLinkProps = ActionBaseProps & {
|
|
@@ -1913,36 +1914,6 @@ declare type CompareToDef = {
|
|
|
1913
1914
|
|
|
1914
1915
|
declare type CompareToDefKey = string;
|
|
1915
1916
|
|
|
1916
|
-
declare type Content = (ComponentProps<typeof DataList.Item> & {
|
|
1917
|
-
type: "item";
|
|
1918
|
-
}) | (ComponentProps<typeof DataList.PersonItem> & {
|
|
1919
|
-
type: "person";
|
|
1920
|
-
}) | (ComponentProps<typeof DataList.CompanyItem> & {
|
|
1921
|
-
type: "company";
|
|
1922
|
-
}) | (ComponentProps<typeof DataList.TeamItem> & {
|
|
1923
|
-
type: "team";
|
|
1924
|
-
}) | (ComponentProps<typeof Weekdays> & {
|
|
1925
|
-
type: "weekdays";
|
|
1926
|
-
}) | (ComponentProps<typeof DataList.DotTagItem> & {
|
|
1927
|
-
type: "dot-tag";
|
|
1928
|
-
}) | (Props_3 & {
|
|
1929
|
-
type: "alert-tag";
|
|
1930
|
-
}) | (F0TagBalanceProps & {
|
|
1931
|
-
type: "balance-tag";
|
|
1932
|
-
}) | (F0TagStatusProps & {
|
|
1933
|
-
type: "status-tag";
|
|
1934
|
-
}) | (F0TagRawProps & {
|
|
1935
|
-
type: "raw-tag";
|
|
1936
|
-
}) | {
|
|
1937
|
-
[T in TagType_2]: {
|
|
1938
|
-
type: "tag-list";
|
|
1939
|
-
tagList: F0TagListProps<T>;
|
|
1940
|
-
};
|
|
1941
|
-
}[TagType_2] | {
|
|
1942
|
-
type: "avatar-list";
|
|
1943
|
-
avatarList: F0AvatarListProps;
|
|
1944
|
-
};
|
|
1945
|
-
|
|
1946
1917
|
/**
|
|
1947
1918
|
* @experimental This is an experimental component use it at your own risk
|
|
1948
1919
|
*/
|
|
@@ -3088,6 +3059,8 @@ declare const defaultTranslations: {
|
|
|
3088
3059
|
};
|
|
3089
3060
|
};
|
|
3090
3061
|
readonly forms: {
|
|
3062
|
+
readonly yes: "Yes";
|
|
3063
|
+
readonly no: "No";
|
|
3091
3064
|
readonly actionBar: {
|
|
3092
3065
|
readonly unsavedChanges: "You have changes pending to be saved";
|
|
3093
3066
|
readonly saving: "Saving...";
|
|
@@ -3159,6 +3132,36 @@ declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
|
|
|
3159
3132
|
*/
|
|
3160
3133
|
export declare const DetailsItem: WithDataTestIdReturnType_5<ForwardRefExoticComponent<DetailsItemType & RefAttributes<HTMLDivElement>>>;
|
|
3161
3134
|
|
|
3135
|
+
export declare type DetailsItemContent = (ComponentProps<typeof DataList.Item> & {
|
|
3136
|
+
type: "item";
|
|
3137
|
+
}) | (ComponentProps<typeof DataList.PersonItem> & {
|
|
3138
|
+
type: "person";
|
|
3139
|
+
}) | (ComponentProps<typeof DataList.CompanyItem> & {
|
|
3140
|
+
type: "company";
|
|
3141
|
+
}) | (ComponentProps<typeof DataList.TeamItem> & {
|
|
3142
|
+
type: "team";
|
|
3143
|
+
}) | (ComponentProps<typeof Weekdays> & {
|
|
3144
|
+
type: "weekdays";
|
|
3145
|
+
}) | (ComponentProps<typeof DataList.DotTagItem> & {
|
|
3146
|
+
type: "dot-tag";
|
|
3147
|
+
}) | (Props_3 & {
|
|
3148
|
+
type: "alert-tag";
|
|
3149
|
+
}) | (F0TagBalanceProps & {
|
|
3150
|
+
type: "balance-tag";
|
|
3151
|
+
}) | (F0TagStatusProps & {
|
|
3152
|
+
type: "status-tag";
|
|
3153
|
+
}) | (F0TagRawProps & {
|
|
3154
|
+
type: "raw-tag";
|
|
3155
|
+
}) | {
|
|
3156
|
+
[T in TagType_2]: {
|
|
3157
|
+
type: "tag-list";
|
|
3158
|
+
tagList: F0TagListProps<T>;
|
|
3159
|
+
};
|
|
3160
|
+
}[TagType_2] | {
|
|
3161
|
+
type: "avatar-list";
|
|
3162
|
+
avatarList: F0AvatarListProps;
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3162
3165
|
/**
|
|
3163
3166
|
* @experimental This is an experimental component use it at your own risk
|
|
3164
3167
|
*/
|
|
@@ -3174,8 +3177,14 @@ declare interface DetailsItemsListProps extends WithDataTestIdProps {
|
|
|
3174
3177
|
|
|
3175
3178
|
export declare interface DetailsItemType {
|
|
3176
3179
|
title: string;
|
|
3177
|
-
content:
|
|
3180
|
+
content: DetailsItemContent | DetailsItemContent[];
|
|
3178
3181
|
isHorizontal?: boolean;
|
|
3182
|
+
/**
|
|
3183
|
+
* When true inside a tableView, keeps the table-row padding but stacks
|
|
3184
|
+
* the label above the content instead of side-by-side. Useful for
|
|
3185
|
+
* long-form text fields like rich-text or textarea.
|
|
3186
|
+
*/
|
|
3187
|
+
verticalLayout?: boolean;
|
|
3179
3188
|
spacingAtTheBottom?: boolean;
|
|
3180
3189
|
}
|
|
3181
3190
|
|
|
@@ -7684,11 +7693,6 @@ declare module "gridstack" {
|
|
|
7684
7693
|
}
|
|
7685
7694
|
|
|
7686
7695
|
|
|
7687
|
-
declare namespace Calendar {
|
|
7688
|
-
var displayName: string;
|
|
7689
|
-
}
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
7696
|
declare module "@tiptap/core" {
|
|
7693
7697
|
interface Commands<ReturnType> {
|
|
7694
7698
|
aiBlock: {
|
|
@@ -7736,3 +7740,8 @@ declare module "@tiptap/core" {
|
|
|
7736
7740
|
};
|
|
7737
7741
|
}
|
|
7738
7742
|
}
|
|
7743
|
+
|
|
7744
|
+
|
|
7745
|
+
declare namespace Calendar {
|
|
7746
|
+
var displayName: string;
|
|
7747
|
+
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as Pa, aV as za, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as Pr, c7 as zr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-T4phx1M_.js";
|
|
2
|
+
import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as Pc, cp as zc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-T4phx1M_.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
|
|
5
|
-
import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-
|
|
6
|
-
import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as Pd, q as zd, _ as Rd, v as Bd, t as $d } from "./index-
|
|
5
|
+
import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-DAbukEpK.js";
|
|
6
|
+
import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as Pd, q as zd, _ as Rd, v as Bd, t as $d } from "./index-DAbukEpK.js";
|
|
7
7
|
const dl = oa("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
|
@@ -25,6 +25,7 @@ import { ChartPropsBase } from './utils/types';
|
|
|
25
25
|
import { ClassValue } from 'cva';
|
|
26
26
|
import { CompanyCellValue } from './f0';
|
|
27
27
|
import { CompanyCellValue as CompanyCellValue_2 } from './types/company';
|
|
28
|
+
import { CompanyItemProps } from './types';
|
|
28
29
|
import { ComponentProps } from 'react';
|
|
29
30
|
import { ComponentType } from 'react';
|
|
30
31
|
import { CompoundCellValue } from './types/compound';
|
|
@@ -42,6 +43,7 @@ import { DotTagCellValue } from './f0';
|
|
|
42
43
|
import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
|
|
43
44
|
import type * as echarts_2 from 'echarts';
|
|
44
45
|
import { Editor } from '@tiptap/react';
|
|
46
|
+
import { EmployeeItemProps } from './types';
|
|
45
47
|
import { F0AnalyticsDashboardProps as F0AnalyticsDashboardProps_2 } from './types';
|
|
46
48
|
import { F0AvatarCompanyProps as F0AvatarCompanyProps_2 } from './types';
|
|
47
49
|
import { F0AvatarDateProps } from './F0AvatarDate';
|
|
@@ -90,6 +92,7 @@ import { InputProps } from '@copilotkit/react-ui';
|
|
|
90
92
|
import { internalAvatarColors as internalAvatarColors_2 } from './f0';
|
|
91
93
|
import { internalAvatarSizes as internalAvatarSizes_2 } from './f0';
|
|
92
94
|
import { internalAvatarTypes as internalAvatarTypes_2 } from './f0';
|
|
95
|
+
import { ItemProps } from './types';
|
|
93
96
|
import { JSONContent } from '@tiptap/react';
|
|
94
97
|
import { JSONContent as JSONContent_2 } from '@tiptap/core';
|
|
95
98
|
import { JSX as JSX_2 } from 'react';
|
|
@@ -117,6 +120,7 @@ import * as React_2 from 'react';
|
|
|
117
120
|
import { ReactElement } from 'react';
|
|
118
121
|
import { ReactNode } from 'react';
|
|
119
122
|
import * as RechartsPrimitive from 'recharts';
|
|
123
|
+
import { Ref } from 'react';
|
|
120
124
|
import { RefAttributes } from 'react';
|
|
121
125
|
import { RefObject } from 'react';
|
|
122
126
|
import { RemoteAudioTrack } from 'livekit-client';
|
|
@@ -127,14 +131,22 @@ import { StatusCellValue as StatusCellValue_2 } from './types/status';
|
|
|
127
131
|
import { SummaryCellValue } from './types/summary';
|
|
128
132
|
import { SVGProps } from 'react';
|
|
129
133
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
134
|
+
import { TagAlertProps as TagAlertProps_2 } from './f0';
|
|
135
|
+
import { TagBalanceProps as TagBalanceProps_2 } from './f0';
|
|
130
136
|
import { TagCellValue } from './f0';
|
|
131
137
|
import { TagCellValue as TagCellValue_2 } from './types/tag';
|
|
138
|
+
import { TagDotProps as TagDotProps_2 } from './f0';
|
|
132
139
|
import { TagListCellValue } from './f0';
|
|
133
140
|
import { TagListCellValue as TagListCellValue_2 } from './types/tagList';
|
|
141
|
+
import { TagListProps as TagListProps_2 } from './f0';
|
|
142
|
+
import { TagRawProps as TagRawProps_2 } from './f0';
|
|
143
|
+
import { TagStatusProps as TagStatusProps_2 } from './f0';
|
|
134
144
|
import { TagType as TagType_2 } from './types';
|
|
145
|
+
import { TagType as TagType_3 } from './f0';
|
|
135
146
|
import { TagVariant as TagVariant_2 } from './F0Tag';
|
|
136
147
|
import { TeamCellValue } from './f0';
|
|
137
148
|
import { TeamCellValue as TeamCellValue_2 } from './types/team';
|
|
149
|
+
import { TeamItemProps } from './types';
|
|
138
150
|
import { TextCellValue } from './f0';
|
|
139
151
|
import { TextCellValue as TextCellValue_2 } from './types/text';
|
|
140
152
|
import { TrackReferenceOrPlaceholder } from '@livekit/components-react';
|
|
@@ -286,6 +298,7 @@ declare type ActionDefinition = DropdownItemSeparator | (Pick<DropdownItemObject
|
|
|
286
298
|
onClick: () => void;
|
|
287
299
|
enabled?: boolean;
|
|
288
300
|
type?: "primary" | "secondary" | "other";
|
|
301
|
+
hideLabel?: boolean;
|
|
289
302
|
});
|
|
290
303
|
|
|
291
304
|
export declare type ActionItemStatus = (typeof actionItemStatuses)[number];
|
|
@@ -3219,6 +3232,27 @@ export declare interface DataError {
|
|
|
3219
3232
|
cause?: unknown;
|
|
3220
3233
|
}
|
|
3221
3234
|
|
|
3235
|
+
declare const DataList: ForwardRefExoticComponent<DataListProps & RefAttributes<HTMLUListElement>> & {
|
|
3236
|
+
Item: ForwardRefExoticComponent<ItemProps & RefAttributes<HTMLLIElement>>;
|
|
3237
|
+
CompanyItem: ForwardRefExoticComponent<CompanyItemProps & RefAttributes<HTMLLIElement>>;
|
|
3238
|
+
PersonItem: ForwardRefExoticComponent<EmployeeItemProps & RefAttributes<HTMLLIElement>>;
|
|
3239
|
+
TeamItem: ForwardRefExoticComponent<TeamItemProps & RefAttributes<HTMLLIElement>>;
|
|
3240
|
+
DotTagItem: ForwardRefExoticComponent<TagDotProps_2 & RefAttributes<HTMLLIElement>>;
|
|
3241
|
+
AlertTagItem: ForwardRefExoticComponent<TagAlertProps_2 & RefAttributes<HTMLLIElement>>;
|
|
3242
|
+
BalanceTagItem: ForwardRefExoticComponent<TagBalanceProps_2 & RefAttributes<HTMLLIElement>>;
|
|
3243
|
+
StatusTagItem: ForwardRefExoticComponent<TagStatusProps_2 & RefAttributes<HTMLLIElement>>;
|
|
3244
|
+
RawTagItem: ForwardRefExoticComponent<TagRawProps_2 & RefAttributes<HTMLLIElement>>;
|
|
3245
|
+
TagListItem: <T extends TagType_3>(props: TagListProps_2<T> & {
|
|
3246
|
+
ref?: Ref<HTMLLIElement>;
|
|
3247
|
+
}) => ReturnType<(<T_1 extends TagType_3>(props: TagListProps_2<T_1>, ref: ForwardedRef<HTMLLIElement>) => JSX_2.Element)>;
|
|
3248
|
+
};
|
|
3249
|
+
|
|
3250
|
+
declare type DataListProps = {
|
|
3251
|
+
children: ReactElement | ReactElement[];
|
|
3252
|
+
label?: string;
|
|
3253
|
+
isHorizontal?: boolean;
|
|
3254
|
+
};
|
|
3255
|
+
|
|
3222
3256
|
/**
|
|
3223
3257
|
* Represents a data source with filtering capabilities and data fetching functionality.
|
|
3224
3258
|
* Extends DataSourceDefinition with runtime properties for state management.
|
|
@@ -4185,6 +4219,8 @@ export declare const defaultTranslations: {
|
|
|
4185
4219
|
};
|
|
4186
4220
|
};
|
|
4187
4221
|
readonly forms: {
|
|
4222
|
+
readonly yes: "Yes";
|
|
4223
|
+
readonly no: "No";
|
|
4188
4224
|
readonly actionBar: {
|
|
4189
4225
|
readonly unsavedChanges: "You have changes pending to be saved";
|
|
4190
4226
|
readonly saving: "Saving...";
|
|
@@ -4283,6 +4319,36 @@ declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
|
|
|
4283
4319
|
*/
|
|
4284
4320
|
export declare function describeFormSchema(schema: F0FormSchema): FormFieldDescription[];
|
|
4285
4321
|
|
|
4322
|
+
declare type DetailsItemContent = (ComponentProps<typeof DataList.Item> & {
|
|
4323
|
+
type: "item";
|
|
4324
|
+
}) | (ComponentProps<typeof DataList.PersonItem> & {
|
|
4325
|
+
type: "person";
|
|
4326
|
+
}) | (ComponentProps<typeof DataList.CompanyItem> & {
|
|
4327
|
+
type: "company";
|
|
4328
|
+
}) | (ComponentProps<typeof DataList.TeamItem> & {
|
|
4329
|
+
type: "team";
|
|
4330
|
+
}) | (ComponentProps<typeof Weekdays> & {
|
|
4331
|
+
type: "weekdays";
|
|
4332
|
+
}) | (ComponentProps<typeof DataList.DotTagItem> & {
|
|
4333
|
+
type: "dot-tag";
|
|
4334
|
+
}) | (TagAlertProps & {
|
|
4335
|
+
type: "alert-tag";
|
|
4336
|
+
}) | (TagBalanceProps & {
|
|
4337
|
+
type: "balance-tag";
|
|
4338
|
+
}) | (TagStatusProps & {
|
|
4339
|
+
type: "status-tag";
|
|
4340
|
+
}) | (TagRawProps & {
|
|
4341
|
+
type: "raw-tag";
|
|
4342
|
+
}) | {
|
|
4343
|
+
[T in TagType]: {
|
|
4344
|
+
type: "tag-list";
|
|
4345
|
+
tagList: TagListProps<T>;
|
|
4346
|
+
};
|
|
4347
|
+
}[TagType] | {
|
|
4348
|
+
type: "avatar-list";
|
|
4349
|
+
avatarList: F0AvatarListProps;
|
|
4350
|
+
};
|
|
4351
|
+
|
|
4286
4352
|
export declare type DialogPosition = (typeof dialogPositions)[number];
|
|
4287
4353
|
|
|
4288
4354
|
declare const dialogPositions: readonly ["center", "left", "right", "fullscreen"];
|
|
@@ -8377,6 +8443,23 @@ declare type FormCanvasContent = CanvasContentBase & {
|
|
|
8377
8443
|
formModule?: ModuleId;
|
|
8378
8444
|
};
|
|
8379
8445
|
|
|
8446
|
+
export declare interface FormCardValueFormatterEntry<T = unknown> {
|
|
8447
|
+
/** Scope to a specific form. Omit to apply to all forms. */
|
|
8448
|
+
formName?: string;
|
|
8449
|
+
/** Scope to a specific custom field name. Omit to apply to all fields. */
|
|
8450
|
+
customFieldName?: string;
|
|
8451
|
+
/** Format function. Return `undefined` to fall back to built-in formatting. */
|
|
8452
|
+
format: (value: T, meta: {
|
|
8453
|
+
key: string;
|
|
8454
|
+
fieldType?: string;
|
|
8455
|
+
customFieldName?: string;
|
|
8456
|
+
}) => DetailsItemContent | DetailsItemContent[] | undefined;
|
|
8457
|
+
}
|
|
8458
|
+
|
|
8459
|
+
export declare function FormCardValueFormatterProvider({ children, }: {
|
|
8460
|
+
children: ReactNode;
|
|
8461
|
+
}): JSX_2.Element;
|
|
8462
|
+
|
|
8380
8463
|
/* Excluded from this release type: FormDefinitionItem */
|
|
8381
8464
|
|
|
8382
8465
|
/**
|
|
@@ -11146,6 +11229,8 @@ export declare const selectSizes: readonly ["sm", "md"];
|
|
|
11146
11229
|
*/
|
|
11147
11230
|
declare type SelectValueType = string | number;
|
|
11148
11231
|
|
|
11232
|
+
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
11233
|
+
|
|
11149
11234
|
/**
|
|
11150
11235
|
* @experimental This is an experimental component use it at your own risk
|
|
11151
11236
|
*/
|
|
@@ -12495,6 +12580,17 @@ export declare interface UseF0FormReturn {
|
|
|
12495
12580
|
*/
|
|
12496
12581
|
export declare type UseFileUpload = () => FileUploadHookReturn;
|
|
12497
12582
|
|
|
12583
|
+
/**
|
|
12584
|
+
* Returns a resolved formatter for the given `formName`.
|
|
12585
|
+
* Matches registered formatters by specificity:
|
|
12586
|
+
* formName + customFieldName > formName only > customFieldName only > global
|
|
12587
|
+
* Returns `null` when no provider is present or no formatters are registered.
|
|
12588
|
+
*/
|
|
12589
|
+
export declare function useFormCardValueFormatter(formName: string): ((key: string, value: unknown, meta: {
|
|
12590
|
+
fieldType?: string;
|
|
12591
|
+
customFieldName?: string;
|
|
12592
|
+
}) => DetailsItemContent | DetailsItemContent[] | undefined) | null;
|
|
12593
|
+
|
|
12498
12594
|
export declare const useFormComponent: () => F0FormLikeComponent | undefined;
|
|
12499
12595
|
|
|
12500
12596
|
export declare const useGroups: <R extends RecordType>(groups: GroupRecord<R>[], defaultOpenGroups?: boolean | GroupRecord<R>["key"][]) => {
|
|
@@ -12647,6 +12743,27 @@ export declare type UseSelectableReturn<R extends RecordType, Filters extends Fi
|
|
|
12647
12743
|
handleSelectGroupChange: (groupOrId: GroupRecord<R> | SelectionId | readonly SelectionId[], checked: boolean) => void;
|
|
12648
12744
|
};
|
|
12649
12745
|
|
|
12746
|
+
/**
|
|
12747
|
+
* Returns a setter to register value formatters used by FormCard.
|
|
12748
|
+
*
|
|
12749
|
+
* ```ts
|
|
12750
|
+
* const setFormatter = useSetFormCardValueFormatter()
|
|
12751
|
+
*
|
|
12752
|
+
* // Global formatter (all forms, all fields)
|
|
12753
|
+
* setFormatter({ format: (value) => ({ type: "item", text: String(value) }) })
|
|
12754
|
+
*
|
|
12755
|
+
* // Scoped to a form
|
|
12756
|
+
* setFormatter({ formName: "create-task", format: (value) => ... })
|
|
12757
|
+
*
|
|
12758
|
+
* // Scoped to a custom field name (across all forms)
|
|
12759
|
+
* setFormatter({ customFieldName: "assignees_selector", format: (value) => ... })
|
|
12760
|
+
*
|
|
12761
|
+
* // Scoped to both
|
|
12762
|
+
* setFormatter({ formName: "create-task", customFieldName: "assignees_selector", format: (value) => ... })
|
|
12763
|
+
* ```
|
|
12764
|
+
*/
|
|
12765
|
+
export declare function useSetFormCardValueFormatter(): SetFormCardValueFormatter;
|
|
12766
|
+
|
|
12650
12767
|
export declare const useXRay: () => {
|
|
12651
12768
|
enabled: boolean;
|
|
12652
12769
|
filter: ComponentTypes[];
|
|
@@ -12753,6 +12870,13 @@ declare type VisualizationSettings = {
|
|
|
12753
12870
|
[K in keyof typeof collectionVisualizations]: ExtractVisualizationSettings<(typeof collectionVisualizations)[K]>;
|
|
12754
12871
|
};
|
|
12755
12872
|
|
|
12873
|
+
declare const Weekdays: ForwardRefExoticComponent<WeekdaysProps & RefAttributes<HTMLDivElement>>;
|
|
12874
|
+
|
|
12875
|
+
declare interface WeekdaysProps {
|
|
12876
|
+
activatedDays?: number[];
|
|
12877
|
+
daysOfTheWeek?: string[];
|
|
12878
|
+
}
|
|
12879
|
+
|
|
12756
12880
|
export declare const WeekStartDay: {
|
|
12757
12881
|
readonly Sunday: 0;
|
|
12758
12882
|
readonly Monday: 1;
|
|
@@ -12874,11 +12998,6 @@ declare module "gridstack" {
|
|
|
12874
12998
|
}
|
|
12875
12999
|
|
|
12876
13000
|
|
|
12877
|
-
declare namespace Calendar {
|
|
12878
|
-
var displayName: string;
|
|
12879
|
-
}
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
13001
|
declare module "@tiptap/core" {
|
|
12883
13002
|
interface Commands<ReturnType> {
|
|
12884
13003
|
aiBlock: {
|
|
@@ -12926,3 +13045,8 @@ declare module "@tiptap/core" {
|
|
|
12926
13045
|
};
|
|
12927
13046
|
}
|
|
12928
13047
|
}
|
|
13048
|
+
|
|
13049
|
+
|
|
13050
|
+
declare namespace Calendar {
|
|
13051
|
+
var displayName: string;
|
|
13052
|
+
}
|