@factorialco/f0-react 1.451.0 → 1.453.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-CvswUKj5.js → F0AiChat-CLTpMqnb.js} +30555 -30375
- package/dist/ai.d.ts +26 -0
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +26 -0
- package/dist/experimental.js +112 -112
- package/dist/f0.d.ts +67 -0
- package/dist/f0.js +1153 -1203
- package/dist/{index-DI1K-gxs.js → index-C87rXop2.js} +1415 -1433
- package/dist/{types-C7-JhSfW.js → types-BcRmQjTr.js} +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -4561,6 +4561,8 @@ export declare type EntityResolvers = {
|
|
|
4561
4561
|
person?: (id: string) => Promise<PersonProfile>;
|
|
4562
4562
|
candidate?: (id: string) => Promise<CandidateProfile>;
|
|
4563
4563
|
jobPosting?: (id: string) => Promise<JobPostingProfile>;
|
|
4564
|
+
requisition?: (id: string) => Promise<RequisitionProfile>;
|
|
4565
|
+
vacancy?: (id: string) => Promise<VacancyProfile>;
|
|
4564
4566
|
/**
|
|
4565
4567
|
* Search for persons by name query. Used by the @mention autocomplete
|
|
4566
4568
|
* in the chat input to let users reference specific employees.
|
|
@@ -4579,6 +4581,8 @@ export declare type EntityUrlBuilders = {
|
|
|
4579
4581
|
person?: (id: string) => string;
|
|
4580
4582
|
candidate?: (id: string) => string;
|
|
4581
4583
|
jobPosting?: (id: string) => string;
|
|
4584
|
+
requisition?: (id: string) => string;
|
|
4585
|
+
vacancy?: (id: string) => string;
|
|
4582
4586
|
};
|
|
4583
4587
|
|
|
4584
4588
|
declare type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? [...Acc, N][number] : Enumerate<N, [...Acc, Acc["length"]]>;
|
|
@@ -6517,6 +6521,21 @@ declare interface F0FormActionBarSubmitConfig extends F0FormSubmitConfigBase {
|
|
|
6517
6521
|
actionBarLabel?: string;
|
|
6518
6522
|
}
|
|
6519
6523
|
|
|
6524
|
+
/**
|
|
6525
|
+
* Common props shared across all F0Form variants (formDefinition-based).
|
|
6526
|
+
* Used as the constraint for `F0FormLikeComponent`.
|
|
6527
|
+
*/
|
|
6528
|
+
declare interface F0FormCommonProps {
|
|
6529
|
+
formDefinition: F0FormDefinitionSingleSchema_2<F0FormSchema> | F0FormDefinitionPerSection_2<F0PerSectionSchema>;
|
|
6530
|
+
className?: string;
|
|
6531
|
+
styling?: F0FormStylingConfig;
|
|
6532
|
+
formRef?: React.MutableRefObject<F0FormRef | null>;
|
|
6533
|
+
initialFiles?: InitialFile[];
|
|
6534
|
+
useUpload?: UseFileUpload;
|
|
6535
|
+
renderCustomField?: RenderCustomFieldFunction;
|
|
6536
|
+
isLoading?: boolean;
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6520
6539
|
/**
|
|
6521
6540
|
* Submit configuration for default button type
|
|
6522
6541
|
*/
|
|
@@ -6744,6 +6763,19 @@ declare interface F0FormFieldNonFileProps extends F0FormFieldCommonProps {
|
|
|
6744
6763
|
|
|
6745
6764
|
export declare type F0FormFieldProps = F0FormFieldFileProps | F0FormFieldNonFileProps;
|
|
6746
6765
|
|
|
6766
|
+
/**
|
|
6767
|
+
* Component type for F0Form-like wrappers (e.g. FactorialF0Form).
|
|
6768
|
+
*
|
|
6769
|
+
* Because F0Form uses overloaded/generic signatures, neither F0Form
|
|
6770
|
+
* nor FactorialF0Form can be directly assigned to this type.
|
|
6771
|
+
* Cast the component when passing it:
|
|
6772
|
+
*
|
|
6773
|
+
* ```tsx
|
|
6774
|
+
* <F0Provider formComponent={FactorialF0Form as F0FormLikeComponent} />
|
|
6775
|
+
* ```
|
|
6776
|
+
*/
|
|
6777
|
+
export declare type F0FormLikeComponent = React.ComponentType<F0FormCommonProps>;
|
|
6778
|
+
|
|
6747
6779
|
/**
|
|
6748
6780
|
* Union of all F0Form prop variants.
|
|
6749
6781
|
* The component detects the mode based on whether `schema` is a single Zod schema
|
|
@@ -7310,6 +7342,17 @@ export declare const F0Provider: React.FC<{
|
|
|
7310
7342
|
showExperimentalWarnings?: boolean;
|
|
7311
7343
|
dataCollectionStorageHandler?: DataCollectionStorageHandler;
|
|
7312
7344
|
renderDataTestIdAttribute?: boolean;
|
|
7345
|
+
/**
|
|
7346
|
+
* Custom form component to use instead of the default F0Form in
|
|
7347
|
+
* AI canvas form panels. Useful for platform-level wrappers that
|
|
7348
|
+
* auto-provide `renderCustomField` or `useUpload`.
|
|
7349
|
+
*
|
|
7350
|
+
* Cast overloaded components when passing:
|
|
7351
|
+
* ```tsx
|
|
7352
|
+
* <F0Provider formComponent={FactorialF0Form as F0FormLikeComponent} />
|
|
7353
|
+
* ```
|
|
7354
|
+
*/
|
|
7355
|
+
formComponent?: F0FormLikeComponent;
|
|
7313
7356
|
}>;
|
|
7314
7357
|
|
|
7315
7358
|
/**
|
|
@@ -10739,6 +10782,17 @@ declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
|
10739
10782
|
content: JSONContent[];
|
|
10740
10783
|
}
|
|
10741
10784
|
|
|
10785
|
+
/**
|
|
10786
|
+
* Profile data for a requisition entity (ATS requisition), resolved asynchronously
|
|
10787
|
+
* and displayed in the entity reference hover card.
|
|
10788
|
+
*/
|
|
10789
|
+
export declare type RequisitionProfile = {
|
|
10790
|
+
id: string | number;
|
|
10791
|
+
title: string;
|
|
10792
|
+
status?: string;
|
|
10793
|
+
reason?: string;
|
|
10794
|
+
};
|
|
10795
|
+
|
|
10742
10796
|
export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
|
|
10743
10797
|
|
|
10744
10798
|
declare type ResourceHeaderProps = Props_4;
|
|
@@ -12441,6 +12495,8 @@ export declare interface UseF0FormReturn {
|
|
|
12441
12495
|
*/
|
|
12442
12496
|
export declare type UseFileUpload = () => FileUploadHookReturn;
|
|
12443
12497
|
|
|
12498
|
+
export declare const useFormComponent: () => F0FormLikeComponent | undefined;
|
|
12499
|
+
|
|
12444
12500
|
export declare const useGroups: <R extends RecordType>(groups: GroupRecord<R>[], defaultOpenGroups?: boolean | GroupRecord<R>["key"][]) => {
|
|
12445
12501
|
openGroups: Record<string, boolean>;
|
|
12446
12502
|
setGroupOpen: (key: string, open: boolean) => void;
|
|
@@ -12598,6 +12654,17 @@ export declare const useXRay: () => {
|
|
|
12598
12654
|
disable: () => void;
|
|
12599
12655
|
};
|
|
12600
12656
|
|
|
12657
|
+
/**
|
|
12658
|
+
* Profile data for a vacancy entity (ATS vacancy/position), resolved asynchronously
|
|
12659
|
+
* and displayed in the entity reference hover card.
|
|
12660
|
+
*/
|
|
12661
|
+
export declare type VacancyProfile = {
|
|
12662
|
+
id: string | number;
|
|
12663
|
+
name: string;
|
|
12664
|
+
status?: string;
|
|
12665
|
+
vacancyType?: string;
|
|
12666
|
+
};
|
|
12667
|
+
|
|
12601
12668
|
declare type ValueDisplayRendererContext_2 = {
|
|
12602
12669
|
visualization: ValueDisplayVisualizationType;
|
|
12603
12670
|
i18n: TranslationsType;
|