@factorialco/f0-react 4.9.1 → 4.10.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/{F0AiProcessingOverlay-B8K7o_Ei.js → F0AiProcessingOverlay-aRzAETGm.js} +3926 -4241
- package/dist/{F0CanvasPanel-B-6B9ckI.js → F0CanvasPanel-DlvTIHHX.js} +32801 -33035
- package/dist/ai.js +2 -2
- package/dist/experimental.js +1432 -1381
- package/dist/f0.d.ts +28 -20
- package/dist/f0.js +11305 -11809
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-u42jSFpK.js → useDataCollectionSource-CNcaLmV5.js} +15132 -14552
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -5263,6 +5263,10 @@ declare type DialogWrapperContextType = {
|
|
|
5263
5263
|
portalContainer: HTMLDivElement | null;
|
|
5264
5264
|
};
|
|
5265
5265
|
|
|
5266
|
+
declare const DialogWrapperProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: DialogWrapperProviderProps) => JSX_2.Element;
|
|
5267
|
+
export { DialogWrapperProvider as F0DialogAlikeProvider }
|
|
5268
|
+
export { DialogWrapperProvider as F0DialogProvider }
|
|
5269
|
+
|
|
5266
5270
|
/**
|
|
5267
5271
|
* The props for the F0DialogProvider component.
|
|
5268
5272
|
*/
|
|
@@ -8257,7 +8261,10 @@ export declare interface F0DemoCardProps {
|
|
|
8257
8261
|
}
|
|
8258
8262
|
|
|
8259
8263
|
/**
|
|
8260
|
-
* @
|
|
8264
|
+
* @deprecated Use `F0Dialog` from `@/components/dialog-alike/F0Dialog` for
|
|
8265
|
+
* center/fullscreen dialogs, or `F0Drawer` from
|
|
8266
|
+
* `@/components/dialog-alike/F0Drawer` for side panels. This is a
|
|
8267
|
+
* backward-compatible shim that maps the legacy props onto those components.
|
|
8261
8268
|
*/
|
|
8262
8269
|
export declare const F0Dialog: WithDataTestIdReturnType_3<FC<F0DialogInternalProps>>;
|
|
8263
8270
|
|
|
@@ -8277,8 +8284,12 @@ export declare type F0DialogActionsProps = {
|
|
|
8277
8284
|
|
|
8278
8285
|
export declare const F0DialogAlikeContext: Context<DialogWrapperContextType>;
|
|
8279
8286
|
|
|
8280
|
-
|
|
8281
|
-
|
|
8287
|
+
/**
|
|
8288
|
+
* The dialog-alike context, retyped under the original name so the public
|
|
8289
|
+
* `Context<F0DialogContextType>` signature is preserved (the runtime value is
|
|
8290
|
+
* the same context the dialog-alike components populate).
|
|
8291
|
+
* @deprecated Import `F0DialogContext` from `@/components/dialog-alike/F0Dialog`.
|
|
8292
|
+
*/
|
|
8282
8293
|
export declare const F0DialogContext: Context<F0DialogContextType>;
|
|
8283
8294
|
|
|
8284
8295
|
declare type F0DialogContextType = {
|
|
@@ -8305,17 +8316,6 @@ export declare type F0DialogPrimaryAction = {
|
|
|
8305
8316
|
|
|
8306
8317
|
export declare type F0DialogPrimaryActionItem = F0DialogActionItem;
|
|
8307
8318
|
|
|
8308
|
-
export declare const F0DialogProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: F0DialogProviderProps) => JSX_2.Element;
|
|
8309
|
-
|
|
8310
|
-
declare type F0DialogProviderProps = {
|
|
8311
|
-
isOpen: boolean;
|
|
8312
|
-
onClose: () => void;
|
|
8313
|
-
shownBottomSheet?: boolean;
|
|
8314
|
-
position: DialogPosition;
|
|
8315
|
-
children: ReactNode;
|
|
8316
|
-
portalContainer: HTMLDivElement | null;
|
|
8317
|
-
};
|
|
8318
|
-
|
|
8319
8319
|
export declare type F0DialogSecondaryAction = {
|
|
8320
8320
|
label: string;
|
|
8321
8321
|
icon?: IconType;
|
|
@@ -9426,6 +9426,11 @@ export declare interface F0FormStylingConfig {
|
|
|
9426
9426
|
* @default false
|
|
9427
9427
|
*/
|
|
9428
9428
|
showSectionsSidepanel?: boolean;
|
|
9429
|
+
/**
|
|
9430
|
+
* Removes the default padding around the form content.
|
|
9431
|
+
* @default false
|
|
9432
|
+
*/
|
|
9433
|
+
noPadding?: boolean;
|
|
9429
9434
|
}
|
|
9430
9435
|
|
|
9431
9436
|
/**
|
|
@@ -10977,7 +10982,7 @@ declare interface F0WizardFormBaseProps {
|
|
|
10977
10982
|
onClose?: () => void;
|
|
10978
10983
|
title?: string;
|
|
10979
10984
|
/** @deprecated Use `size` instead. */
|
|
10980
|
-
width?:
|
|
10985
|
+
width?: Exclude<F0DialogSize, "fullscreen">;
|
|
10981
10986
|
/** The size of the wizard dialog. Preferred over the deprecated `width`. */
|
|
10982
10987
|
size?: F0DialogSize;
|
|
10983
10988
|
defaultStepIndex?: number;
|
|
@@ -15080,7 +15085,7 @@ declare interface SurveyAnsweringFormDialogProps extends SurveyAnsweringFormShar
|
|
|
15080
15085
|
inline?: false;
|
|
15081
15086
|
mode: SurveyAnsweringFormMode;
|
|
15082
15087
|
module: SurveyAnsweringFormModule;
|
|
15083
|
-
position?:
|
|
15088
|
+
position?: SurveyDialogPosition;
|
|
15084
15089
|
isOpen: boolean;
|
|
15085
15090
|
onClose: () => void;
|
|
15086
15091
|
allowToChangeFullscreen?: boolean;
|
|
@@ -15191,6 +15196,9 @@ export declare type SurveyDataset = {
|
|
|
15191
15196
|
|
|
15192
15197
|
export declare type SurveyDatasets = Record<string, SurveyDataset>;
|
|
15193
15198
|
|
|
15199
|
+
/** Where the answering dialog is anchored. */
|
|
15200
|
+
declare type SurveyDialogPosition = "center" | "left" | "right" | "fullscreen";
|
|
15201
|
+
|
|
15194
15202
|
export declare const SurveyFormBuilder: WithDataTestIdReturnType_8<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
|
|
15195
15203
|
|
|
15196
15204
|
export declare type SurveyFormBuilderCallbacks = {
|
|
@@ -16432,6 +16440,10 @@ export declare interface UseDataSourceItemNavigationReturn<R extends RecordType>
|
|
|
16432
16440
|
previousItemUrl: string | null;
|
|
16433
16441
|
}
|
|
16434
16442
|
|
|
16443
|
+
declare const useDialogWrapperContext: () => DialogWrapperContextType;
|
|
16444
|
+
export { useDialogWrapperContext as useF0Dialog }
|
|
16445
|
+
export { useDialogWrapperContext as useF0DialogAlikeContext }
|
|
16446
|
+
|
|
16435
16447
|
export declare function useDndEvents(handler: (e: {
|
|
16436
16448
|
phase: "start" | "over" | "drop" | "cancel";
|
|
16437
16449
|
source: DragPayload;
|
|
@@ -16460,10 +16472,6 @@ export declare const useEmojiConfetti: () => {
|
|
|
16460
16472
|
*/
|
|
16461
16473
|
export declare function useF0AiFormRegistry(): F0AiFormRegistryContextValue | null;
|
|
16462
16474
|
|
|
16463
|
-
export declare const useF0Dialog: () => F0DialogContextType;
|
|
16464
|
-
|
|
16465
|
-
export declare const useF0DialogAlikeContext: () => DialogWrapperContextType;
|
|
16466
|
-
|
|
16467
16475
|
/**
|
|
16468
16476
|
* Hook to control F0Form programmatically.
|
|
16469
16477
|
*
|