@factorialco/f0-react 1.401.0 → 1.401.1
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/ai.d.ts +7 -0
- package/dist/experimental.d.ts +7 -0
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +33 -5
- package/dist/f0.js +14464 -14198
- package/dist/i18n-provider-defaults.d.ts +7 -0
- package/dist/i18n-provider-defaults.js +7 -0
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-CcLFbGx4.js → useDataCollectionSource-BUi4l1cD.js} +55 -54
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -789,6 +789,13 @@ export declare const defaultTranslations: {
|
|
|
789
789
|
readonly expand: "Expand";
|
|
790
790
|
readonly collapse: "Collapse";
|
|
791
791
|
};
|
|
792
|
+
readonly labels: {
|
|
793
|
+
readonly empty: {
|
|
794
|
+
readonly title: "No questions to answer";
|
|
795
|
+
readonly description: "This survey has no questions yet.";
|
|
796
|
+
readonly emoji: "📝";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
792
799
|
};
|
|
793
800
|
readonly richTextEditor: {
|
|
794
801
|
readonly bold: "Bold";
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2693,6 +2693,13 @@ declare const defaultTranslations: {
|
|
|
2693
2693
|
readonly expand: "Expand";
|
|
2694
2694
|
readonly collapse: "Collapse";
|
|
2695
2695
|
};
|
|
2696
|
+
readonly labels: {
|
|
2697
|
+
readonly empty: {
|
|
2698
|
+
readonly title: "No questions to answer";
|
|
2699
|
+
readonly description: "This survey has no questions yet.";
|
|
2700
|
+
readonly emoji: "📝";
|
|
2701
|
+
};
|
|
2702
|
+
};
|
|
2696
2703
|
};
|
|
2697
2704
|
readonly richTextEditor: {
|
|
2698
2705
|
readonly bold: "Bold";
|
package/dist/experimental.js
CHANGED
|
@@ -3,8 +3,8 @@ import { dx as tA, dw as nA, ds as rA, dt as iA, dF as sA, dG as oA, du as lA, d
|
|
|
3
3
|
import { jsx as c, jsxs as g, Fragment as ne } from "react/jsx-runtime";
|
|
4
4
|
import * as Nn from "react";
|
|
5
5
|
import $, { PureComponent as Ep, forwardRef as P, useRef as K, useTransition as Tp, useState as R, useLayoutEffect as Qa, useContext as Js, createContext as Xs, useCallback as X, useMemo as ee, useEffect as W, useId as ec, useImperativeHandle as tc, memo as Zs, Fragment as Yi, isValidElement as Dp, cloneElement as nc, Children as rc } from "react";
|
|
6
|
-
import { f as Jt, p as Sn, i as tr, D as Lp, L as wi, P as Rp, A as Op, a as nr, b as Mp, c as Pp, G as Fp, g as jo, l as zp, d as Ho, e as $p, h as ic, j as sc, k as Bp, C as jp, m as Hp, N as je, n as at, o as Ee, q as Vp, r as mr, T as Ue, s as oc, S as Me, t as Qs, u as $e, v as Vo, w as Wp, x as lc, F as Ie, y as Fe, z as In, B as Dr, E as ac, H as Up, I as Wt, J as Gp, K as Kp, M as qp, R as Vn, O as Wn, Q as eo, U as Yp, V as cc, W as dc, X as uc, Y as Jp, Z as fc, _ as hc, $ as pc, a0 as mc, a1 as gc, a2 as bc, a3 as Wo, a4 as Xp, a5 as Uo, a6 as Zp, a7 as Qp, a8 as em, a9 as tm, aa as nm, ab as rm, ac as im, ad as sm, ae as om, af as xc, ag as lm, ah as am, ai as cm, aj as wc, ak as Ji, al as dm, am as um, an as Go, ao as vc, ap as fm, aq as hm, ar as pm, as as mm, at as gm, au as bm, av as xm, aw as wm, ax as yc, ay as vm, az as ym, aA as km, aB as kc, aC as Cm, aD as Nm, aE as Sm, aF as Im, aG as Am, aH as _m, aI as Em, aJ as Ko, aK as Tm, aL as Dm, aM as Lm, aN as Rm } from "./useDataCollectionSource-
|
|
7
|
-
import { aO as xA, aQ as wA, b3 as vA, aP as yA, aV as kA, b6 as CA, b4 as NA, aW as SA, aX as IA, aS as AA, aY as _A, b0 as EA, b2 as TA, b5 as DA, aU as LA, aT as RA, b1 as OA, aR as MA, aZ as PA, a_ as FA, a$ as zA } from "./useDataCollectionSource-
|
|
6
|
+
import { f as Jt, p as Sn, i as tr, D as Lp, L as wi, P as Rp, A as Op, a as nr, b as Mp, c as Pp, G as Fp, g as jo, l as zp, d as Ho, e as $p, h as ic, j as sc, k as Bp, C as jp, m as Hp, N as je, n as at, o as Ee, q as Vp, r as mr, T as Ue, s as oc, S as Me, t as Qs, u as $e, v as Vo, w as Wp, x as lc, F as Ie, y as Fe, z as In, B as Dr, E as ac, H as Up, I as Wt, J as Gp, K as Kp, M as qp, R as Vn, O as Wn, Q as eo, U as Yp, V as cc, W as dc, X as uc, Y as Jp, Z as fc, _ as hc, $ as pc, a0 as mc, a1 as gc, a2 as bc, a3 as Wo, a4 as Xp, a5 as Uo, a6 as Zp, a7 as Qp, a8 as em, a9 as tm, aa as nm, ab as rm, ac as im, ad as sm, ae as om, af as xc, ag as lm, ah as am, ai as cm, aj as wc, ak as Ji, al as dm, am as um, an as Go, ao as vc, ap as fm, aq as hm, ar as pm, as as mm, at as gm, au as bm, av as xm, aw as wm, ax as yc, ay as vm, az as ym, aA as km, aB as kc, aC as Cm, aD as Nm, aE as Sm, aF as Im, aG as Am, aH as _m, aI as Em, aJ as Ko, aK as Tm, aL as Dm, aM as Lm, aN as Rm } from "./useDataCollectionSource-BUi4l1cD.js";
|
|
7
|
+
import { aO as xA, aQ as wA, b3 as vA, aP as yA, aV as kA, b6 as CA, b4 as NA, aW as SA, aX as IA, aS as AA, aY as _A, b0 as EA, b2 as TA, b5 as DA, aU as LA, aT as RA, b1 as OA, aR as MA, aZ as PA, a_ as FA, a$ as zA } from "./useDataCollectionSource-BUi4l1cD.js";
|
|
8
8
|
import './experimental.css';const Om = kf("Search", [
|
|
9
9
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
10
10
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -2827,6 +2827,13 @@ export declare const defaultTranslations: {
|
|
|
2827
2827
|
readonly expand: "Expand";
|
|
2828
2828
|
readonly collapse: "Collapse";
|
|
2829
2829
|
};
|
|
2830
|
+
readonly labels: {
|
|
2831
|
+
readonly empty: {
|
|
2832
|
+
readonly title: "No questions to answer";
|
|
2833
|
+
readonly description: "This survey has no questions yet.";
|
|
2834
|
+
readonly emoji: "📝";
|
|
2835
|
+
};
|
|
2836
|
+
};
|
|
2830
2837
|
};
|
|
2831
2838
|
readonly richTextEditor: {
|
|
2832
2839
|
readonly bold: "Bold";
|
|
@@ -5311,6 +5318,8 @@ export declare interface F0SectionConfig {
|
|
|
5311
5318
|
title: string;
|
|
5312
5319
|
/** Section description */
|
|
5313
5320
|
description?: string;
|
|
5321
|
+
/** Applies default horizontal inset to the section header (title/subtitle/action row) */
|
|
5322
|
+
withInset?: boolean;
|
|
5314
5323
|
/** Conditional rendering for the entire section */
|
|
5315
5324
|
renderIf?: SectionRenderIf;
|
|
5316
5325
|
/** Optional action button for the section */
|
|
@@ -8243,13 +8252,10 @@ declare type SummaryKey<Definition extends SummariesDefinition> = Definition ext
|
|
|
8243
8252
|
|
|
8244
8253
|
declare type SummaryType = "sum";
|
|
8245
8254
|
|
|
8246
|
-
export declare function SurveyAnsweringForm({ elements, onSubmit, mode, title, isOpen, onClose, fullscreen: fullscreenProp, allowToChangeFullscreen, defaultValues, errorTriggerMode, }: SurveyAnsweringFormProps): JSX_2.Element;
|
|
8247
|
-
|
|
8248
|
-
export declare type SurveyAnsweringFormMode = "stepped" | "all-questions";
|
|
8255
|
+
export declare function SurveyAnsweringForm({ elements, onSubmit: onSubmitProp, mode, title, isOpen, onClose, fullscreen: fullscreenProp, allowToChangeFullscreen, defaultValues, errorTriggerMode, loading, labels, preview, }: SurveyAnsweringFormProps): JSX_2.Element;
|
|
8249
8256
|
|
|
8250
|
-
|
|
8257
|
+
declare interface SurveyAnsweringFormBaseProps {
|
|
8251
8258
|
elements: SurveyFormBuilderElement[];
|
|
8252
|
-
onSubmit: (answers: SurveySubmitAnswers) => Promise<SurveyFormSubmitResult> | SurveyFormSubmitResult;
|
|
8253
8259
|
mode: SurveyAnsweringFormMode;
|
|
8254
8260
|
title: string;
|
|
8255
8261
|
isOpen: boolean;
|
|
@@ -8258,8 +8264,30 @@ export declare interface SurveyAnsweringFormProps {
|
|
|
8258
8264
|
allowToChangeFullscreen?: boolean;
|
|
8259
8265
|
defaultValues?: Partial<SurveyAnswers>;
|
|
8260
8266
|
errorTriggerMode?: F0FormErrorTriggerMode;
|
|
8267
|
+
loading?: boolean;
|
|
8268
|
+
labels?: {
|
|
8269
|
+
empty?: {
|
|
8270
|
+
title?: string;
|
|
8271
|
+
description?: string;
|
|
8272
|
+
emoji?: string;
|
|
8273
|
+
};
|
|
8274
|
+
};
|
|
8261
8275
|
}
|
|
8262
8276
|
|
|
8277
|
+
declare interface SurveyAnsweringFormDefaultProps extends SurveyAnsweringFormBaseProps {
|
|
8278
|
+
preview?: false;
|
|
8279
|
+
onSubmit: (answers: SurveySubmitAnswers) => Promise<SurveyFormSubmitResult> | SurveyFormSubmitResult;
|
|
8280
|
+
}
|
|
8281
|
+
|
|
8282
|
+
export declare type SurveyAnsweringFormMode = "stepped" | "all-questions";
|
|
8283
|
+
|
|
8284
|
+
declare interface SurveyAnsweringFormPreviewProps extends SurveyAnsweringFormBaseProps {
|
|
8285
|
+
preview: true;
|
|
8286
|
+
onSubmit?: never;
|
|
8287
|
+
}
|
|
8288
|
+
|
|
8289
|
+
export declare type SurveyAnsweringFormProps = SurveyAnsweringFormDefaultProps | SurveyAnsweringFormPreviewProps;
|
|
8290
|
+
|
|
8263
8291
|
export declare type SurveyAnswers = Record<string, SurveyAnswerValue>;
|
|
8264
8292
|
|
|
8265
8293
|
export declare type SurveyAnswerValue = {
|