@factorialco/f0-react 14.23.1 → 14.24.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/component-status.js +1 -1
- package/dist/f0.d.ts +26 -2
- package/dist/f0.js +826 -823
- package/package.json +1 -1
package/dist/component-status.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useCallback as i, useEffect as a, useRef as o, useState as s } from "re
|
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
//#region \0virtual:f0-component-status-data
|
|
6
6
|
var u = {
|
|
7
|
-
generatedAt: "2026-11-
|
|
7
|
+
generatedAt: "2026-11-17T15:15:53.157Z",
|
|
8
8
|
stats: {
|
|
9
9
|
total: 314,
|
|
10
10
|
byStatus: {
|
package/dist/f0.d.ts
CHANGED
|
@@ -1703,16 +1703,20 @@ export declare const Await: <T>(props: AwaitProps<T> & {
|
|
|
1703
1703
|
}) => ReactNode;
|
|
1704
1704
|
//#endregion
|
|
1705
1705
|
//#region src/blocks/F0GridStack/types.d.ts
|
|
1706
|
-
|
|
1706
|
+
interface GridStackReactOptions extends Omit<GridStackOptions, "children" | "subGridOpts" | "subGridDynamic"> {
|
|
1707
|
+
subGridOpts?: never;
|
|
1708
|
+
subGridDynamic?: never;
|
|
1709
|
+
}
|
|
1707
1710
|
interface GridStackReactSize {
|
|
1708
1711
|
w: number;
|
|
1709
1712
|
h: number;
|
|
1710
1713
|
}
|
|
1711
|
-
interface GridStackReactWidget extends Omit<GridStackWidget, "content" | "id"> {
|
|
1714
|
+
interface GridStackReactWidget extends Omit<GridStackWidget, "content" | "id" | "subGridOpts"> {
|
|
1712
1715
|
id: Required<GridStackWidget>["id"];
|
|
1713
1716
|
allowedSizes?: GridStackReactSize[];
|
|
1714
1717
|
content?: React$1.ReactElement;
|
|
1715
1718
|
meta?: Record<string, unknown>;
|
|
1719
|
+
subGridOpts?: never;
|
|
1716
1720
|
_originalContent?: React$1.ReactNode;
|
|
1717
1721
|
}
|
|
1718
1722
|
interface F0GridStackProps {
|
|
@@ -2191,6 +2195,23 @@ type SurveyFormSubmitResult = {
|
|
|
2191
2195
|
errors?: Record<string, string>;
|
|
2192
2196
|
};
|
|
2193
2197
|
type SurveyAnsweringFormMode = "stepped" | "all-questions";
|
|
2198
|
+
/**
|
|
2199
|
+
* Lets the respondent keep unfinished answers. The answers are not validated,
|
|
2200
|
+
* so required questions may be empty, and the dialog stays open after a save.
|
|
2201
|
+
*/
|
|
2202
|
+
interface SurveyAnsweringFormSaveDraft {
|
|
2203
|
+
/**
|
|
2204
|
+
* The button label. It comes from the host, which knows whether a draft
|
|
2205
|
+
* already exists ("Save draft" or "Update draft") and translates it.
|
|
2206
|
+
*/
|
|
2207
|
+
label: string;
|
|
2208
|
+
/**
|
|
2209
|
+
* Receives every question's answer, the same keys as `onSubmit`, including
|
|
2210
|
+
* steps not visited yet (from `defaultValues` or the question's default).
|
|
2211
|
+
* The host reports the outcome, errors included: a rejection is only logged.
|
|
2212
|
+
*/
|
|
2213
|
+
onSave: (answers: SurveySubmitAnswers) => Promise<void> | void;
|
|
2214
|
+
}
|
|
2194
2215
|
interface SurveyAnsweringFormModule {
|
|
2195
2216
|
id: ModuleId;
|
|
2196
2217
|
label: string;
|
|
@@ -2243,14 +2264,17 @@ interface SurveyAnsweringFormInlineProps extends SurveyAnsweringFormSharedProps
|
|
|
2243
2264
|
type SurveyAnsweringFormDefaultProps = SurveyAnsweringFormDialogProps & {
|
|
2244
2265
|
preview?: false;
|
|
2245
2266
|
onSubmit: (answers: SurveySubmitAnswers) => Promise<SurveyFormSubmitResult> | SurveyFormSubmitResult;
|
|
2267
|
+
saveDraft?: SurveyAnsweringFormSaveDraft;
|
|
2246
2268
|
};
|
|
2247
2269
|
type SurveyAnsweringFormPreviewProps = SurveyAnsweringFormDialogProps & {
|
|
2248
2270
|
preview: true;
|
|
2249
2271
|
onSubmit?: never;
|
|
2272
|
+
saveDraft?: never;
|
|
2250
2273
|
};
|
|
2251
2274
|
type SurveyAnsweringFormInlineReadonlyProps = SurveyAnsweringFormInlineProps & {
|
|
2252
2275
|
preview?: never;
|
|
2253
2276
|
onSubmit?: never;
|
|
2277
|
+
saveDraft?: never;
|
|
2254
2278
|
};
|
|
2255
2279
|
type SurveyAnsweringFormProps = SurveyAnsweringFormDefaultProps | SurveyAnsweringFormPreviewProps | SurveyAnsweringFormInlineReadonlyProps;
|
|
2256
2280
|
interface FlatQuestion {
|