@factorialco/f0-react 4.9.1 → 4.11.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-DuhmCpFU.js} +3926 -4241
- package/dist/{F0CanvasPanel-B-6B9ckI.js → F0CanvasPanel-BCgTx6V0.js} +32745 -32964
- package/dist/ai.d.ts +4 -0
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +10 -1
- package/dist/experimental.js +1432 -1381
- package/dist/f0.d.ts +44 -23
- package/dist/f0.js +11305 -11809
- package/dist/i18n-provider-defaults.d.ts +4 -0
- package/dist/i18n-provider-defaults.js +4 -0
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-u42jSFpK.js → useDataCollectionSource-BpmrIPJk.js} +15132 -14552
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -4366,6 +4366,10 @@ export declare const defaultTranslations: {
|
|
|
4366
4366
|
readonly show: "Show password";
|
|
4367
4367
|
readonly hide: "Hide password";
|
|
4368
4368
|
};
|
|
4369
|
+
readonly private: {
|
|
4370
|
+
readonly show: "Show {{label}}";
|
|
4371
|
+
readonly hide: "Hide {{label}}";
|
|
4372
|
+
};
|
|
4369
4373
|
};
|
|
4370
4374
|
readonly link: {
|
|
4371
4375
|
readonly opensInNewTab: "opens in new tab";
|
|
@@ -5263,6 +5267,10 @@ declare type DialogWrapperContextType = {
|
|
|
5263
5267
|
portalContainer: HTMLDivElement | null;
|
|
5264
5268
|
};
|
|
5265
5269
|
|
|
5270
|
+
declare const DialogWrapperProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: DialogWrapperProviderProps) => JSX_2.Element;
|
|
5271
|
+
export { DialogWrapperProvider as F0DialogAlikeProvider }
|
|
5272
|
+
export { DialogWrapperProvider as F0DialogProvider }
|
|
5273
|
+
|
|
5266
5274
|
/**
|
|
5267
5275
|
* The props for the F0DialogProvider component.
|
|
5268
5276
|
*/
|
|
@@ -8257,7 +8265,10 @@ export declare interface F0DemoCardProps {
|
|
|
8257
8265
|
}
|
|
8258
8266
|
|
|
8259
8267
|
/**
|
|
8260
|
-
* @
|
|
8268
|
+
* @deprecated Use `F0Dialog` from `@/components/dialog-alike/F0Dialog` for
|
|
8269
|
+
* center/fullscreen dialogs, or `F0Drawer` from
|
|
8270
|
+
* `@/components/dialog-alike/F0Drawer` for side panels. This is a
|
|
8271
|
+
* backward-compatible shim that maps the legacy props onto those components.
|
|
8261
8272
|
*/
|
|
8262
8273
|
export declare const F0Dialog: WithDataTestIdReturnType_3<FC<F0DialogInternalProps>>;
|
|
8263
8274
|
|
|
@@ -8277,8 +8288,12 @@ export declare type F0DialogActionsProps = {
|
|
|
8277
8288
|
|
|
8278
8289
|
export declare const F0DialogAlikeContext: Context<DialogWrapperContextType>;
|
|
8279
8290
|
|
|
8280
|
-
|
|
8281
|
-
|
|
8291
|
+
/**
|
|
8292
|
+
* The dialog-alike context, retyped under the original name so the public
|
|
8293
|
+
* `Context<F0DialogContextType>` signature is preserved (the runtime value is
|
|
8294
|
+
* the same context the dialog-alike components populate).
|
|
8295
|
+
* @deprecated Import `F0DialogContext` from `@/components/dialog-alike/F0Dialog`.
|
|
8296
|
+
*/
|
|
8282
8297
|
export declare const F0DialogContext: Context<F0DialogContextType>;
|
|
8283
8298
|
|
|
8284
8299
|
declare type F0DialogContextType = {
|
|
@@ -8305,17 +8320,6 @@ export declare type F0DialogPrimaryAction = {
|
|
|
8305
8320
|
|
|
8306
8321
|
export declare type F0DialogPrimaryActionItem = F0DialogActionItem;
|
|
8307
8322
|
|
|
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
8323
|
export declare type F0DialogSecondaryAction = {
|
|
8320
8324
|
label: string;
|
|
8321
8325
|
icon?: IconType;
|
|
@@ -9426,6 +9430,11 @@ export declare interface F0FormStylingConfig {
|
|
|
9426
9430
|
* @default false
|
|
9427
9431
|
*/
|
|
9428
9432
|
showSectionsSidepanel?: boolean;
|
|
9433
|
+
/**
|
|
9434
|
+
* Removes the default padding around the form content.
|
|
9435
|
+
* @default false
|
|
9436
|
+
*/
|
|
9437
|
+
noPadding?: boolean;
|
|
9429
9438
|
}
|
|
9430
9439
|
|
|
9431
9440
|
/**
|
|
@@ -10714,8 +10723,12 @@ export declare type F0TextAreaInputProps = Pick<ComponentProps<typeof Textarea_2
|
|
|
10714
10723
|
* F0 config options specific to text fields
|
|
10715
10724
|
*/
|
|
10716
10725
|
export declare interface F0TextConfig {
|
|
10717
|
-
/**
|
|
10718
|
-
|
|
10726
|
+
/**
|
|
10727
|
+
* Input type. `"private"` is a non-HTML F0 subtype for sensitive,
|
|
10728
|
+
* non-credential data — masked like a password but with no lock icon, an
|
|
10729
|
+
* eye toggle, and password managers disabled.
|
|
10730
|
+
*/
|
|
10731
|
+
inputType?: "text" | "email" | "password" | "tel" | "url" | "private";
|
|
10719
10732
|
}
|
|
10720
10733
|
|
|
10721
10734
|
/**
|
|
@@ -10977,7 +10990,7 @@ declare interface F0WizardFormBaseProps {
|
|
|
10977
10990
|
onClose?: () => void;
|
|
10978
10991
|
title?: string;
|
|
10979
10992
|
/** @deprecated Use `size` instead. */
|
|
10980
|
-
width?:
|
|
10993
|
+
width?: Exclude<F0DialogSize, "fullscreen">;
|
|
10981
10994
|
/** The size of the wizard dialog. Preferred over the deprecated `width`. */
|
|
10982
10995
|
size?: F0DialogSize;
|
|
10983
10996
|
defaultStepIndex?: number;
|
|
@@ -12312,7 +12325,12 @@ declare const inputFieldStatus: readonly ["default", "warning", "info", "error"]
|
|
|
12312
12325
|
declare type InputFieldStatusType = (typeof inputFieldStatus)[number];
|
|
12313
12326
|
|
|
12314
12327
|
declare type InputInternalProps = Pick<ComponentProps<typeof Input_2>, "ref" | "id" | "aria-describedby" | "aria-invalid"> & Pick<InputFieldProps<string>, "autoFocus" | "required" | "disabled" | "size" | "onChange" | "value" | "placeholder" | "clearable" | "maxLength" | "label" | "labelIcon" | "icon" | "hideLabel" | "name" | "error" | "status" | "hint" | "autocomplete" | "buttonToggle" | "hideMaxLength" | "loading" | "transparent" | "onBlur" | "readonly"> & {
|
|
12315
|
-
|
|
12328
|
+
/**
|
|
12329
|
+
* `"private"` is a non-HTML subtype for sensitive, non-credential data:
|
|
12330
|
+
* masked like a password but with no lock icon and with password managers
|
|
12331
|
+
* disabled. It never reaches the DOM (mapped to text/password internally).
|
|
12332
|
+
*/
|
|
12333
|
+
type?: Exclude<HTMLInputTypeAttribute, "number"> | "private";
|
|
12316
12334
|
onPressEnter?: () => void;
|
|
12317
12335
|
};
|
|
12318
12336
|
|
|
@@ -15080,7 +15098,7 @@ declare interface SurveyAnsweringFormDialogProps extends SurveyAnsweringFormShar
|
|
|
15080
15098
|
inline?: false;
|
|
15081
15099
|
mode: SurveyAnsweringFormMode;
|
|
15082
15100
|
module: SurveyAnsweringFormModule;
|
|
15083
|
-
position?:
|
|
15101
|
+
position?: SurveyDialogPosition;
|
|
15084
15102
|
isOpen: boolean;
|
|
15085
15103
|
onClose: () => void;
|
|
15086
15104
|
allowToChangeFullscreen?: boolean;
|
|
@@ -15191,6 +15209,9 @@ export declare type SurveyDataset = {
|
|
|
15191
15209
|
|
|
15192
15210
|
export declare type SurveyDatasets = Record<string, SurveyDataset>;
|
|
15193
15211
|
|
|
15212
|
+
/** Where the answering dialog is anchored. */
|
|
15213
|
+
declare type SurveyDialogPosition = "center" | "left" | "right" | "fullscreen";
|
|
15214
|
+
|
|
15194
15215
|
export declare const SurveyFormBuilder: WithDataTestIdReturnType_8<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
|
|
15195
15216
|
|
|
15196
15217
|
export declare type SurveyFormBuilderCallbacks = {
|
|
@@ -16432,6 +16453,10 @@ export declare interface UseDataSourceItemNavigationReturn<R extends RecordType>
|
|
|
16432
16453
|
previousItemUrl: string | null;
|
|
16433
16454
|
}
|
|
16434
16455
|
|
|
16456
|
+
declare const useDialogWrapperContext: () => DialogWrapperContextType;
|
|
16457
|
+
export { useDialogWrapperContext as useF0Dialog }
|
|
16458
|
+
export { useDialogWrapperContext as useF0DialogAlikeContext }
|
|
16459
|
+
|
|
16435
16460
|
export declare function useDndEvents(handler: (e: {
|
|
16436
16461
|
phase: "start" | "over" | "drop" | "cancel";
|
|
16437
16462
|
source: DragPayload;
|
|
@@ -16460,10 +16485,6 @@ export declare const useEmojiConfetti: () => {
|
|
|
16460
16485
|
*/
|
|
16461
16486
|
export declare function useF0AiFormRegistry(): F0AiFormRegistryContextValue | null;
|
|
16462
16487
|
|
|
16463
|
-
export declare const useF0Dialog: () => F0DialogContextType;
|
|
16464
|
-
|
|
16465
|
-
export declare const useF0DialogAlikeContext: () => DialogWrapperContextType;
|
|
16466
|
-
|
|
16467
16488
|
/**
|
|
16468
16489
|
* Hook to control F0Form programmatically.
|
|
16469
16490
|
*
|