@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.d.ts
CHANGED
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
import { AgentState } from '@livekit/components-react';
|
|
2
2
|
import { AIMessage } from '@copilotkit/shared';
|
|
3
3
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { baseColors } from '@factorialco/f0-core';
|
|
4
5
|
import { ClassValue } from 'cva';
|
|
6
|
+
import { CompanyItemProps } from './types';
|
|
5
7
|
import { ComponentProps } from 'react';
|
|
6
8
|
import { CopilotKitProps } from '@copilotkit/react-core';
|
|
9
|
+
import { EmployeeItemProps } from './types';
|
|
10
|
+
import { F0TagBalanceProps as F0TagBalanceProps_2 } from './types';
|
|
11
|
+
import { F0TagCompanyProps } from './types';
|
|
12
|
+
import { F0TagPersonProps } from './types';
|
|
13
|
+
import { F0TagTeamProps } from './types';
|
|
7
14
|
import { f1Colors } from '@factorialco/f0-core';
|
|
15
|
+
import { ForwardedRef } from 'react';
|
|
8
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
9
17
|
import { InputProps } from '@copilotkit/react-ui';
|
|
18
|
+
import { ItemProps } from './types';
|
|
10
19
|
import { JSX as JSX_2 } from 'react';
|
|
11
20
|
import { LocalAudioTrack } from 'livekit-client';
|
|
12
21
|
import { Message } from '@copilotkit/shared';
|
|
22
|
+
import { Props as Props_3 } from './types';
|
|
13
23
|
import * as React_2 from 'react';
|
|
14
24
|
import { ReactElement } from 'react';
|
|
15
25
|
import { ReactNode } from 'react';
|
|
26
|
+
import { Ref } from 'react';
|
|
16
27
|
import { RefAttributes } from 'react';
|
|
17
28
|
import { RemoteAudioTrack } from 'livekit-client';
|
|
18
29
|
import { SVGProps } from 'react';
|
|
19
30
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
31
|
+
import { TagAlertProps } from '../../../f0';
|
|
32
|
+
import { TagBalanceProps } from '../../../f0';
|
|
33
|
+
import { TagDotProps } from '../../../f0';
|
|
34
|
+
import { TagListProps } from '../../../f0';
|
|
35
|
+
import { TagRawProps } from '../../../f0';
|
|
36
|
+
import { TagStatusProps } from '../../../f0';
|
|
37
|
+
import { TagType } from '../../../f0';
|
|
38
|
+
import { TeamItemProps } from './types';
|
|
20
39
|
import { TrackReferenceOrPlaceholder } from '@livekit/components-react';
|
|
21
40
|
import { VariantProps } from 'cva';
|
|
22
41
|
import { WithDataTestIdReturnType } from '../../../lib/data-testid';
|
|
@@ -548,6 +567,8 @@ export declare const aiTranslations: {
|
|
|
548
567
|
};
|
|
549
568
|
};
|
|
550
569
|
|
|
570
|
+
declare type AlertTagProps = ComponentProps<typeof F0TagAlert>;
|
|
571
|
+
|
|
551
572
|
/**
|
|
552
573
|
* A message to inject via appendMessages.
|
|
553
574
|
* IDs are generated internally — callers only provide role, content, and
|
|
@@ -570,6 +591,12 @@ export declare type AppendToolCall = {
|
|
|
570
591
|
};
|
|
571
592
|
};
|
|
572
593
|
|
|
594
|
+
declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
595
|
+
size?: (typeof internalAvatarSizes)[number];
|
|
596
|
+
type?: (typeof internalAvatarTypes)[number];
|
|
597
|
+
color?: (typeof internalAvatarColors)[number];
|
|
598
|
+
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
599
|
+
|
|
573
600
|
declare type AvatarBadge = ({
|
|
574
601
|
type: "module";
|
|
575
602
|
module: ModuleId;
|
|
@@ -580,10 +607,38 @@ declare type AvatarBadge = ({
|
|
|
580
607
|
tooltip?: string;
|
|
581
608
|
};
|
|
582
609
|
|
|
610
|
+
declare const avatarEmojiSizes: readonly ["sm", "md", "lg", "xl"];
|
|
611
|
+
|
|
612
|
+
declare type AvatarFileSize = (typeof avatarFileSizes)[number];
|
|
613
|
+
|
|
614
|
+
declare const avatarFileSizes: readonly ["xs", "sm", "md", "lg"];
|
|
615
|
+
|
|
616
|
+
declare const avatarIconSizes: readonly ["sm", "md", "lg"];
|
|
617
|
+
|
|
618
|
+
declare type AvatarListSize = (typeof avatarListSizes)[number];
|
|
619
|
+
|
|
620
|
+
declare const avatarListSizes: readonly ["xs", "sm", "md"];
|
|
621
|
+
|
|
583
622
|
declare type AvatarSize = (typeof avatarSizes)[number];
|
|
584
623
|
|
|
585
624
|
declare const avatarSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
586
625
|
|
|
626
|
+
declare type AvatarVariant = DistributiveOmit<({
|
|
627
|
+
type: "person";
|
|
628
|
+
} & F0AvatarPersonProps) | ({
|
|
629
|
+
type: "emoji";
|
|
630
|
+
} & F0AvatarEmojiProps) | ({
|
|
631
|
+
type: "team";
|
|
632
|
+
} & F0AvatarTeamProps) | ({
|
|
633
|
+
type: "company";
|
|
634
|
+
} & F0AvatarCompanyProps) | ({
|
|
635
|
+
type: "file";
|
|
636
|
+
} & F0AvatarFileProps) | ({
|
|
637
|
+
type: "flag";
|
|
638
|
+
} & F0AvatarFlagProps) | ({
|
|
639
|
+
type: "icon";
|
|
640
|
+
} & F0AvatarIconProps), "size">;
|
|
641
|
+
|
|
587
642
|
declare interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
588
643
|
icon: IconType;
|
|
589
644
|
type?: VariantProps<typeof badgeVariants>["type"];
|
|
@@ -610,6 +665,8 @@ export declare type BalanceConfig = {
|
|
|
610
665
|
hint?: string;
|
|
611
666
|
};
|
|
612
667
|
|
|
668
|
+
declare type BalanceTagProps = ComponentProps<typeof F0TagBalance>;
|
|
669
|
+
|
|
613
670
|
declare type BaseAvatarProps = {
|
|
614
671
|
/**
|
|
615
672
|
* The type of the avatar.
|
|
@@ -652,6 +709,12 @@ declare type BaseAvatarProps = {
|
|
|
652
709
|
size: InternalAvatarProps["size"];
|
|
653
710
|
});
|
|
654
711
|
|
|
712
|
+
declare type BaseColor = keyof typeof baseColors;
|
|
713
|
+
|
|
714
|
+
declare type BaseTag<T extends {
|
|
715
|
+
type: string;
|
|
716
|
+
}> = T & WithTooltipDescription;
|
|
717
|
+
|
|
655
718
|
/**
|
|
656
719
|
* Profile data for a candidate entity (ATS applicant), resolved asynchronously
|
|
657
720
|
* and displayed in the entity reference hover card.
|
|
@@ -1017,10 +1080,18 @@ declare interface CollectionComputation {
|
|
|
1017
1080
|
limit?: number;
|
|
1018
1081
|
}
|
|
1019
1082
|
|
|
1083
|
+
declare type CompanyAvatarVariant = Extract<AvatarVariant, {
|
|
1084
|
+
type: "company";
|
|
1085
|
+
}>;
|
|
1086
|
+
|
|
1087
|
+
declare type CompanyTagProps = ComponentProps<typeof F0TagCompany>;
|
|
1088
|
+
|
|
1020
1089
|
export declare type ContentType = (typeof contentTypes)[number];
|
|
1021
1090
|
|
|
1022
1091
|
export declare const contentTypes: readonly ["text", "person", "people", "team", "company", "alert", "balance", "sparkline"];
|
|
1023
1092
|
|
|
1093
|
+
declare type CountryCode = keyof TranslationsType["countries"];
|
|
1094
|
+
|
|
1024
1095
|
/**
|
|
1025
1096
|
* Credits usage data returned by the host app
|
|
1026
1097
|
*/
|
|
@@ -1096,6 +1167,27 @@ declare type DataDownloadDataset = {
|
|
|
1096
1167
|
columnLabels?: Record<string, string>;
|
|
1097
1168
|
};
|
|
1098
1169
|
|
|
1170
|
+
declare const DataList: ForwardRefExoticComponent<DataListProps & RefAttributes<HTMLUListElement>> & {
|
|
1171
|
+
Item: ForwardRefExoticComponent<ItemProps & RefAttributes<HTMLLIElement>>;
|
|
1172
|
+
CompanyItem: ForwardRefExoticComponent<CompanyItemProps & RefAttributes<HTMLLIElement>>;
|
|
1173
|
+
PersonItem: ForwardRefExoticComponent<EmployeeItemProps & RefAttributes<HTMLLIElement>>;
|
|
1174
|
+
TeamItem: ForwardRefExoticComponent<TeamItemProps & RefAttributes<HTMLLIElement>>;
|
|
1175
|
+
DotTagItem: ForwardRefExoticComponent<TagDotProps & RefAttributes<HTMLLIElement>>;
|
|
1176
|
+
AlertTagItem: ForwardRefExoticComponent<TagAlertProps & RefAttributes<HTMLLIElement>>;
|
|
1177
|
+
BalanceTagItem: ForwardRefExoticComponent<TagBalanceProps & RefAttributes<HTMLLIElement>>;
|
|
1178
|
+
StatusTagItem: ForwardRefExoticComponent<TagStatusProps & RefAttributes<HTMLLIElement>>;
|
|
1179
|
+
RawTagItem: ForwardRefExoticComponent<TagRawProps & RefAttributes<HTMLLIElement>>;
|
|
1180
|
+
TagListItem: <T extends TagType>(props: TagListProps<T> & {
|
|
1181
|
+
ref?: Ref<HTMLLIElement>;
|
|
1182
|
+
}) => ReturnType<(<T_1 extends TagType>(props: TagListProps<T_1>, ref: ForwardedRef<HTMLLIElement>) => JSX_2.Element)>;
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
declare type DataListProps = {
|
|
1186
|
+
children: ReactElement | ReactElement[];
|
|
1187
|
+
label?: string;
|
|
1188
|
+
isHorizontal?: boolean;
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1099
1191
|
export declare const defaultTranslations: {
|
|
1100
1192
|
readonly countries: {
|
|
1101
1193
|
ad: string;
|
|
@@ -1758,6 +1850,8 @@ export declare const defaultTranslations: {
|
|
|
1758
1850
|
};
|
|
1759
1851
|
};
|
|
1760
1852
|
readonly forms: {
|
|
1853
|
+
readonly yes: "Yes";
|
|
1854
|
+
readonly no: "No";
|
|
1761
1855
|
readonly actionBar: {
|
|
1762
1856
|
readonly unsavedChanges: "You have changes pending to be saved";
|
|
1763
1857
|
readonly saving: "Saving...";
|
|
@@ -1819,6 +1913,52 @@ export declare const defaultTranslations: {
|
|
|
1819
1913
|
};
|
|
1820
1914
|
};
|
|
1821
1915
|
|
|
1916
|
+
declare type DetailsItemContent = (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 & {
|
|
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
|
+
/**
|
|
1947
|
+
* Remove a property from a union of objects.
|
|
1948
|
+
* @example
|
|
1949
|
+
* type Person = {
|
|
1950
|
+
* name: string
|
|
1951
|
+
* age: number
|
|
1952
|
+
* } | {
|
|
1953
|
+
* name: string
|
|
1954
|
+
* height: number
|
|
1955
|
+
* }
|
|
1956
|
+
*
|
|
1957
|
+
* type PersonWithoutName = DistributiveOmit<Person, "name">
|
|
1958
|
+
* // { age: number } | { height: number }
|
|
1959
|
+
*/
|
|
1960
|
+
declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
1961
|
+
|
|
1822
1962
|
/**
|
|
1823
1963
|
* Grouped configuration for entity references in the AI chat.
|
|
1824
1964
|
* Combines resolver functions (data fetching) with URL builders (navigation).
|
|
@@ -1973,6 +2113,75 @@ declare type F0AvatarCompanyProps = {
|
|
|
1973
2113
|
badge?: AvatarBadge;
|
|
1974
2114
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
1975
2115
|
|
|
2116
|
+
declare type F0AvatarEmojiProps = {
|
|
2117
|
+
emoji: string;
|
|
2118
|
+
size?: (typeof avatarEmojiSizes)[number];
|
|
2119
|
+
} & Partial<Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">>;
|
|
2120
|
+
|
|
2121
|
+
declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<typeof Avatar>, "type" | "size"> & {
|
|
2122
|
+
file: FileDef;
|
|
2123
|
+
size?: AvatarFileSize;
|
|
2124
|
+
badge?: AvatarBadge;
|
|
2125
|
+
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby"> & WithDataTestIdProps;
|
|
2126
|
+
|
|
2127
|
+
declare type F0AvatarFlagProps = {
|
|
2128
|
+
flag: CountryCode | (string & {});
|
|
2129
|
+
size?: BaseAvatarProps["size"];
|
|
2130
|
+
badge?: AvatarBadge;
|
|
2131
|
+
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2132
|
+
|
|
2133
|
+
declare type F0AvatarIconProps = {
|
|
2134
|
+
icon: IconType;
|
|
2135
|
+
size?: (typeof avatarIconSizes)[number];
|
|
2136
|
+
state?: F0IconProps["state"];
|
|
2137
|
+
} & Partial<Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">>;
|
|
2138
|
+
|
|
2139
|
+
declare type F0AvatarListProps = {
|
|
2140
|
+
/**
|
|
2141
|
+
* The size of the avatars in the list.
|
|
2142
|
+
* @default "md"
|
|
2143
|
+
*/
|
|
2144
|
+
size?: AvatarListSize;
|
|
2145
|
+
/**
|
|
2146
|
+
* Whether to hide tooltips in each avatar.
|
|
2147
|
+
* @default false
|
|
2148
|
+
*/
|
|
2149
|
+
noTooltip?: boolean;
|
|
2150
|
+
/**
|
|
2151
|
+
* The maximum number of avatars to display.
|
|
2152
|
+
* @default 3
|
|
2153
|
+
*/
|
|
2154
|
+
max?: number;
|
|
2155
|
+
/**
|
|
2156
|
+
* The remaining number to display.
|
|
2157
|
+
*/
|
|
2158
|
+
remainingCount?: number;
|
|
2159
|
+
/**
|
|
2160
|
+
* The layout of the avatar list.
|
|
2161
|
+
* - "fill" - Avatars will expand to fill the available width, with overflow items shown in a counter
|
|
2162
|
+
* - "compact" - Avatars will be stacked tightly together up to the max limit, with remaining shown in counter
|
|
2163
|
+
* @default "compact"
|
|
2164
|
+
*/
|
|
2165
|
+
layout?: "fill" | "compact";
|
|
2166
|
+
} & F0AvatarListPropsAvatars;
|
|
2167
|
+
|
|
2168
|
+
declare type F0AvatarListPropsAvatars = {
|
|
2169
|
+
type: "person";
|
|
2170
|
+
avatars: (Omit<PersonAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
2171
|
+
} | {
|
|
2172
|
+
type: "team";
|
|
2173
|
+
avatars: (Omit<TeamAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
2174
|
+
} | {
|
|
2175
|
+
type: "company";
|
|
2176
|
+
avatars: (Omit<CompanyAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
2177
|
+
} | {
|
|
2178
|
+
type: "flag";
|
|
2179
|
+
avatars: (Omit<FlagAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
2180
|
+
} | {
|
|
2181
|
+
type: "file";
|
|
2182
|
+
avatars: (Omit<FileAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
2183
|
+
};
|
|
2184
|
+
|
|
1976
2185
|
declare type F0AvatarPersonProps = {
|
|
1977
2186
|
/**
|
|
1978
2187
|
* The first name of the person.
|
|
@@ -2097,6 +2306,110 @@ export declare type F0OneSwitchProps = React.ComponentPropsWithoutRef<typeof Swi
|
|
|
2097
2306
|
autoOpen?: boolean;
|
|
2098
2307
|
};
|
|
2099
2308
|
|
|
2309
|
+
declare const F0TagAlert: WithDataTestIdReturnType<ForwardRefExoticComponent<Props_3 & RefAttributes<HTMLDivElement>>>;
|
|
2310
|
+
|
|
2311
|
+
declare const F0TagBalance: WithDataTestIdReturnType<ForwardRefExoticComponent<F0TagBalanceProps_2 & RefAttributes<HTMLDivElement>>>;
|
|
2312
|
+
|
|
2313
|
+
declare type F0TagBalanceProps = {
|
|
2314
|
+
/**
|
|
2315
|
+
* Inverts the balance status color. Is useful when a negative percent mean something positive.
|
|
2316
|
+
*/
|
|
2317
|
+
invertStatus?: boolean;
|
|
2318
|
+
/**
|
|
2319
|
+
* Hint text to display next to the tag (This text is not displayed when the balance is null or undefined)
|
|
2320
|
+
*/
|
|
2321
|
+
hint?: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* Info text to display an i icon and a tooltip next to the tag
|
|
2324
|
+
*/
|
|
2325
|
+
info?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* Text to display when the balance is null or undefined
|
|
2328
|
+
*/
|
|
2329
|
+
nullText?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* Value to display next to the tag can be a number, a Numeric or a NumericWithFormatter
|
|
2332
|
+
*/
|
|
2333
|
+
amount: RelaxedNumericWithFormatter | Numeric;
|
|
2334
|
+
} & ({
|
|
2335
|
+
percentage: (Omit<RelaxedNumericWithFormatter, "value"> & {
|
|
2336
|
+
value: Omit<Numeric, "units" | "unitsPosition">;
|
|
2337
|
+
}) | Omit<Numeric, "units" | "unitsPosition">;
|
|
2338
|
+
} | {
|
|
2339
|
+
percentage?: null;
|
|
2340
|
+
formatterOptions?: undefined;
|
|
2341
|
+
});
|
|
2342
|
+
|
|
2343
|
+
declare const F0TagCompany: WithDataTestIdReturnType<ForwardRefExoticComponent<F0TagCompanyProps & RefAttributes<HTMLDivElement>>>;
|
|
2344
|
+
|
|
2345
|
+
declare type F0TagListProps<T extends TagType_2> = {
|
|
2346
|
+
/**
|
|
2347
|
+
* The type of tags to display. Only one type can be used at a time.
|
|
2348
|
+
*/
|
|
2349
|
+
type: T;
|
|
2350
|
+
/**
|
|
2351
|
+
* Array of tag data corresponding to the specified type.
|
|
2352
|
+
*/
|
|
2353
|
+
tags: Array<TagTypeMapping[T]>;
|
|
2354
|
+
/**
|
|
2355
|
+
* The maximum number of tags to display.
|
|
2356
|
+
* @default 4
|
|
2357
|
+
*/
|
|
2358
|
+
max?: number;
|
|
2359
|
+
/**
|
|
2360
|
+
* The remaining number to display.
|
|
2361
|
+
*/
|
|
2362
|
+
remainingCount?: number;
|
|
2363
|
+
};
|
|
2364
|
+
|
|
2365
|
+
declare const F0TagPerson: WithDataTestIdReturnType<ForwardRefExoticComponent<F0TagPersonProps & RefAttributes<HTMLDivElement>>>;
|
|
2366
|
+
|
|
2367
|
+
declare type F0TagRawProps = {
|
|
2368
|
+
/**
|
|
2369
|
+
* The label to display in the tag or used for accessible text
|
|
2370
|
+
*/
|
|
2371
|
+
text: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* Additional accessible text to display in the tag
|
|
2374
|
+
*/
|
|
2375
|
+
additionalAccessibleText?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Info text to display an i icon and a tooltip next to the tag
|
|
2378
|
+
*/
|
|
2379
|
+
info?: string;
|
|
2380
|
+
} & ({
|
|
2381
|
+
icon: IconType;
|
|
2382
|
+
onlyIcon: true;
|
|
2383
|
+
} | {
|
|
2384
|
+
icon?: IconType;
|
|
2385
|
+
onlyIcon?: boolean;
|
|
2386
|
+
});
|
|
2387
|
+
|
|
2388
|
+
declare interface F0TagStatusProps {
|
|
2389
|
+
text: string;
|
|
2390
|
+
variant: Variant;
|
|
2391
|
+
/**
|
|
2392
|
+
* Sometimes you need to clarify the status for screen reader users
|
|
2393
|
+
* E.g., when showing a tooltip for sighted user, provide the tootip text to this prop because tooltips aren't accessible
|
|
2394
|
+
*/
|
|
2395
|
+
additionalAccessibleText?: string;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
declare const F0TagTeam: WithDataTestIdReturnType<ForwardRefExoticComponent<F0TagTeamProps & RefAttributes<HTMLDivElement>>>;
|
|
2399
|
+
|
|
2400
|
+
declare type FileAvatarVariant = Extract<AvatarVariant, {
|
|
2401
|
+
type: "file";
|
|
2402
|
+
}>;
|
|
2403
|
+
|
|
2404
|
+
declare type FileDef = {
|
|
2405
|
+
name: string;
|
|
2406
|
+
type: string;
|
|
2407
|
+
};
|
|
2408
|
+
|
|
2409
|
+
declare type FlagAvatarVariant = Extract<AvatarVariant, {
|
|
2410
|
+
type: "flag";
|
|
2411
|
+
}>;
|
|
2412
|
+
|
|
2100
2413
|
/**
|
|
2101
2414
|
* A preset formatting instruction the LLM can specify instead of a
|
|
2102
2415
|
* real formatter function. The wrapper component maps these to actual
|
|
@@ -2123,6 +2436,23 @@ declare type FormCanvasContent = CanvasContentBase & {
|
|
|
2123
2436
|
formModule?: ModuleId;
|
|
2124
2437
|
};
|
|
2125
2438
|
|
|
2439
|
+
export declare interface FormCardValueFormatterEntry<T = unknown> {
|
|
2440
|
+
/** Scope to a specific form. Omit to apply to all forms. */
|
|
2441
|
+
formName?: string;
|
|
2442
|
+
/** Scope to a specific custom field name. Omit to apply to all fields. */
|
|
2443
|
+
customFieldName?: string;
|
|
2444
|
+
/** Format function. Return `undefined` to fall back to built-in formatting. */
|
|
2445
|
+
format: (value: T, meta: {
|
|
2446
|
+
key: string;
|
|
2447
|
+
fieldType?: string;
|
|
2448
|
+
customFieldName?: string;
|
|
2449
|
+
}) => DetailsItemContent | DetailsItemContent[] | undefined;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
export declare function FormCardValueFormatterProvider({ children, }: {
|
|
2453
|
+
children: ReactNode;
|
|
2454
|
+
}): JSX_2.Element;
|
|
2455
|
+
|
|
2126
2456
|
declare interface GaugeComputation {
|
|
2127
2457
|
datasetId: string;
|
|
2128
2458
|
aggregation: AggregationType;
|
|
@@ -2349,6 +2679,8 @@ declare type NestedKeyOf<T> = {
|
|
|
2349
2679
|
} ? `${K}` | `${K}-${NestedKeyOf<T[K]>}` : `${K}-${NestedKeyOf<T[K]>}` : K extends "DEFAULT" ? never : `${K}`;
|
|
2350
2680
|
}[keyof T & string];
|
|
2351
2681
|
|
|
2682
|
+
declare type NewColor = Extract<BaseColor, (typeof tagDotColors)[number]>;
|
|
2683
|
+
|
|
2352
2684
|
declare type Numeric = NumericValue | number | undefined | null;
|
|
2353
2685
|
|
|
2354
2686
|
/**
|
|
@@ -2476,6 +2808,10 @@ declare type PathsToStringProps<T> = T extends string ? [] : {
|
|
|
2476
2808
|
[K in Extract<keyof T, string>]: [K, ...PathsToStringProps<T[K]>];
|
|
2477
2809
|
}[Extract<keyof T, string>];
|
|
2478
2810
|
|
|
2811
|
+
declare type PersonAvatarVariant = Extract<AvatarVariant, {
|
|
2812
|
+
type: "person";
|
|
2813
|
+
}>;
|
|
2814
|
+
|
|
2479
2815
|
/**
|
|
2480
2816
|
* Profile data for a person entity (employee), resolved asynchronously
|
|
2481
2817
|
* and displayed in the entity reference hover card.
|
|
@@ -2488,6 +2824,8 @@ export declare type PersonProfile = {
|
|
|
2488
2824
|
jobTitle?: string;
|
|
2489
2825
|
};
|
|
2490
2826
|
|
|
2827
|
+
declare type PersonTagProps = ComponentProps<typeof F0TagPerson>;
|
|
2828
|
+
|
|
2491
2829
|
declare interface PieComputation {
|
|
2492
2830
|
datasetId: string;
|
|
2493
2831
|
nameColumn: string;
|
|
@@ -2500,6 +2838,27 @@ declare interface PieComputation {
|
|
|
2500
2838
|
|
|
2501
2839
|
declare const privateProps: readonly ["className"];
|
|
2502
2840
|
|
|
2841
|
+
declare type Props<Text extends string = string> = {
|
|
2842
|
+
text: Text extends "" ? never : Text;
|
|
2843
|
+
level: Level;
|
|
2844
|
+
/**
|
|
2845
|
+
* Info text to display an i icon and a tooltip next to the tag
|
|
2846
|
+
*/
|
|
2847
|
+
info?: string;
|
|
2848
|
+
};
|
|
2849
|
+
|
|
2850
|
+
declare type Props_2 = {
|
|
2851
|
+
text: string;
|
|
2852
|
+
/**
|
|
2853
|
+
* Info text to display an i icon and a tooltip next to the tag
|
|
2854
|
+
*/
|
|
2855
|
+
info?: string;
|
|
2856
|
+
} & ({
|
|
2857
|
+
color: NewColor;
|
|
2858
|
+
} | {
|
|
2859
|
+
customColor: string;
|
|
2860
|
+
});
|
|
2861
|
+
|
|
2503
2862
|
declare interface RadarComputation {
|
|
2504
2863
|
datasetId: string;
|
|
2505
2864
|
seriesColumn: string;
|
|
@@ -2532,10 +2891,59 @@ export declare type RequisitionProfile = {
|
|
|
2532
2891
|
reason?: string;
|
|
2533
2892
|
};
|
|
2534
2893
|
|
|
2894
|
+
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
2895
|
+
|
|
2535
2896
|
export declare type SparklineDataPoint = {
|
|
2536
2897
|
value: number;
|
|
2537
2898
|
};
|
|
2538
2899
|
|
|
2900
|
+
declare const statuses: readonly ["neutral", "info", "positive", "warning", "critical"];
|
|
2901
|
+
|
|
2902
|
+
declare type TagDataType<T extends string> = Omit<Extract<TagVariant, {
|
|
2903
|
+
type: T;
|
|
2904
|
+
}>, "type" | "description">;
|
|
2905
|
+
|
|
2906
|
+
declare const tagDotColors: ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel"];
|
|
2907
|
+
|
|
2908
|
+
declare type TagType_2 = (typeof tagTypes)[number];
|
|
2909
|
+
|
|
2910
|
+
declare type TagTypeMapping = {
|
|
2911
|
+
dot: TagDataType<"dot">;
|
|
2912
|
+
person: TagDataType<"person">;
|
|
2913
|
+
team: TagDataType<"team">;
|
|
2914
|
+
company: TagDataType<"company">;
|
|
2915
|
+
alert: TagDataType<"alert">;
|
|
2916
|
+
status: TagDataType<"status">;
|
|
2917
|
+
balance: TagDataType<"balance">;
|
|
2918
|
+
raw: TagDataType<"raw">;
|
|
2919
|
+
};
|
|
2920
|
+
|
|
2921
|
+
declare const tagTypes: readonly ["dot", "person", "team", "company", "alert", "status", "balance", "raw"];
|
|
2922
|
+
|
|
2923
|
+
declare type TagVariant = BaseTag<{
|
|
2924
|
+
type: "dot";
|
|
2925
|
+
} & Props_2> | BaseTag<{
|
|
2926
|
+
type: "person";
|
|
2927
|
+
} & PersonTagProps> | BaseTag<{
|
|
2928
|
+
type: "team";
|
|
2929
|
+
} & TeamTagProps> | BaseTag<{
|
|
2930
|
+
type: "company";
|
|
2931
|
+
} & CompanyTagProps> | BaseTag<{
|
|
2932
|
+
type: "alert";
|
|
2933
|
+
} & AlertTagProps> | BaseTag<{
|
|
2934
|
+
type: "status";
|
|
2935
|
+
} & F0TagStatusProps> | BaseTag<{
|
|
2936
|
+
type: "balance";
|
|
2937
|
+
} & BalanceTagProps> | BaseTag<{
|
|
2938
|
+
type: "raw";
|
|
2939
|
+
} & F0TagRawProps>;
|
|
2940
|
+
|
|
2941
|
+
declare type TeamAvatarVariant = Extract<AvatarVariant, {
|
|
2942
|
+
type: "team";
|
|
2943
|
+
}>;
|
|
2944
|
+
|
|
2945
|
+
declare type TeamTagProps = ComponentProps<typeof F0TagTeam>;
|
|
2946
|
+
|
|
2539
2947
|
declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
|
|
2540
2948
|
|
|
2541
2949
|
declare type TranslationShape<T> = {
|
|
@@ -2570,6 +2978,17 @@ export declare function useAiChatTranslations(): AiChatTranslations;
|
|
|
2570
2978
|
*/
|
|
2571
2979
|
export declare function useDefaultCopilotActions(): void;
|
|
2572
2980
|
|
|
2981
|
+
/**
|
|
2982
|
+
* Returns a resolved formatter for the given `formName`.
|
|
2983
|
+
* Matches registered formatters by specificity:
|
|
2984
|
+
* formName + customFieldName > formName only > customFieldName only > global
|
|
2985
|
+
* Returns `null` when no provider is present or no formatters are registered.
|
|
2986
|
+
*/
|
|
2987
|
+
export declare function useFormCardValueFormatter(formName: string): ((key: string, value: unknown, meta: {
|
|
2988
|
+
fieldType?: string;
|
|
2989
|
+
customFieldName?: string;
|
|
2990
|
+
}) => DetailsItemContent | DetailsItemContent[] | undefined) | null;
|
|
2991
|
+
|
|
2573
2992
|
export declare function useI18n(): TranslationsType & {
|
|
2574
2993
|
t: (key: TranslationKey, args?: Record<string, string | number>) => string;
|
|
2575
2994
|
};
|
|
@@ -2586,6 +3005,27 @@ export declare const useMessageSourcesAction: () => void;
|
|
|
2586
3005
|
*/
|
|
2587
3006
|
export declare const useOrchestratorThinkingAction: () => void;
|
|
2588
3007
|
|
|
3008
|
+
/**
|
|
3009
|
+
* Returns a setter to register value formatters used by FormCard.
|
|
3010
|
+
*
|
|
3011
|
+
* ```ts
|
|
3012
|
+
* const setFormatter = useSetFormCardValueFormatter()
|
|
3013
|
+
*
|
|
3014
|
+
* // Global formatter (all forms, all fields)
|
|
3015
|
+
* setFormatter({ format: (value) => ({ type: "item", text: String(value) }) })
|
|
3016
|
+
*
|
|
3017
|
+
* // Scoped to a form
|
|
3018
|
+
* setFormatter({ formName: "create-task", format: (value) => ... })
|
|
3019
|
+
*
|
|
3020
|
+
* // Scoped to a custom field name (across all forms)
|
|
3021
|
+
* setFormatter({ customFieldName: "assignees_selector", format: (value) => ... })
|
|
3022
|
+
*
|
|
3023
|
+
* // Scoped to both
|
|
3024
|
+
* setFormatter({ formName: "create-task", customFieldName: "assignees_selector", format: (value) => ... })
|
|
3025
|
+
* ```
|
|
3026
|
+
*/
|
|
3027
|
+
export declare function useSetFormCardValueFormatter(): SetFormCardValueFormatter;
|
|
3028
|
+
|
|
2589
3029
|
/**
|
|
2590
3030
|
* Profile data for a vacancy entity (ATS vacancy/position), resolved asynchronously
|
|
2591
3031
|
* and displayed in the entity reference hover card.
|
|
@@ -2597,11 +3037,20 @@ export declare type VacancyProfile = {
|
|
|
2597
3037
|
vacancyType?: string;
|
|
2598
3038
|
};
|
|
2599
3039
|
|
|
3040
|
+
declare type Variant = (typeof statuses)[number];
|
|
3041
|
+
|
|
2600
3042
|
/**
|
|
2601
3043
|
* Visualization mode for the AI chat
|
|
2602
3044
|
*/
|
|
2603
3045
|
export declare type VisualizationMode = "sidepanel" | "fullscreen" | "canvas";
|
|
2604
3046
|
|
|
3047
|
+
declare const Weekdays: ForwardRefExoticComponent<WeekdaysProps & RefAttributes<HTMLDivElement>>;
|
|
3048
|
+
|
|
3049
|
+
declare interface WeekdaysProps {
|
|
3050
|
+
activatedDays?: number[];
|
|
3051
|
+
daysOfTheWeek?: string[];
|
|
3052
|
+
}
|
|
3053
|
+
|
|
2605
3054
|
/**
|
|
2606
3055
|
* Welcome screen suggestion item
|
|
2607
3056
|
*/
|
|
@@ -2611,6 +3060,17 @@ export declare type WelcomeScreenSuggestion = {
|
|
|
2611
3060
|
prompt?: string;
|
|
2612
3061
|
};
|
|
2613
3062
|
|
|
3063
|
+
declare type WithDataTestIdProps = {
|
|
3064
|
+
dataTestId?: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare interface WithTooltipDescription {
|
|
3068
|
+
/**
|
|
3069
|
+
* Optional description to show in the tooltip
|
|
3070
|
+
*/
|
|
3071
|
+
description?: string;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
2614
3074
|
export { }
|
|
2615
3075
|
|
|
2616
3076
|
|
|
@@ -2651,11 +3111,6 @@ declare module "gridstack" {
|
|
|
2651
3111
|
}
|
|
2652
3112
|
|
|
2653
3113
|
|
|
2654
|
-
declare namespace Calendar {
|
|
2655
|
-
var displayName: string;
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
3114
|
declare module "@tiptap/core" {
|
|
2660
3115
|
interface Commands<ReturnType> {
|
|
2661
3116
|
aiBlock: {
|
|
@@ -2703,3 +3158,8 @@ declare module "@tiptap/core" {
|
|
|
2703
3158
|
};
|
|
2704
3159
|
}
|
|
2705
3160
|
}
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
declare namespace Calendar {
|
|
3164
|
+
var displayName: string;
|
|
3165
|
+
}
|