@arudovwen/form-builder-react 1.9.12 → 1.9.13
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/form-builder-react.css +1 -1
- package/dist/form-builder.es.js +1 -1
- package/dist/form-builder.umd.js +15 -15
- package/dist/{index-CbC9vAx2.js → index-okrlYnnk.js} +3106 -2900
- package/dist/{logic-flow-DoGabFPy.js → logic-flow-Bacyv8yH.js} +1 -1
- package/package.json +1 -1
- package/types/components/viewer/index.d.ts +1 -0
- package/types/context/editor-context.d.ts +3 -0
- package/types/pages/viewer/index.d.ts +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as ce, jsx as D, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import ht, { memo as le, useState as xe, useCallback as we, forwardRef as Oo, useRef as ne, useEffect as ie, useContext as gt, createContext as fn, useMemo as be, useLayoutEffect as Aa } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
import { A as Ia } from "./index-
|
|
4
|
+
import { A as Ia } from "./index-okrlYnnk.js";
|
|
5
5
|
function ue(e) {
|
|
6
6
|
if (typeof e == "string" || typeof e == "number") return "" + e;
|
|
7
7
|
let t = "";
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ export interface FormRendererProps {
|
|
|
22
22
|
uploadUrl?: string;
|
|
23
23
|
pollResults?: Record<string, any>;
|
|
24
24
|
showResults?: boolean;
|
|
25
|
+
sendHiddenSectionsAsEmpty?: boolean;
|
|
25
26
|
}
|
|
26
27
|
declare const _default: React.NamedExoticComponent<FormRendererProps>;
|
|
27
28
|
export default _default;
|
|
@@ -25,6 +25,9 @@ declare const EditorContext: React.Context<{
|
|
|
25
25
|
setUploadUrl: (e: string) => void;
|
|
26
26
|
copyElement: (elementId: string, sectionId: string) => void;
|
|
27
27
|
pasteElement: (sectionId: string, targetIndex?: number) => void;
|
|
28
|
+
copySection: (sectionId: string) => void;
|
|
29
|
+
pasteSection: (targetIndex?: number, directClipboardText?: string) => void;
|
|
30
|
+
duplicateSection: (sectionId: string) => void;
|
|
28
31
|
apiActivityCount: number;
|
|
29
32
|
setApiActivityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
30
33
|
/**
|
|
@@ -18,5 +18,6 @@ export interface RenderProps {
|
|
|
18
18
|
uploadUrl?: string;
|
|
19
19
|
pollResults?: Record<string, any>;
|
|
20
20
|
showResults?: boolean;
|
|
21
|
+
sendHiddenSectionsAsEmpty?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export default function Viewer({ answerData, form_data, ignoreValidation, onSubmit, isReadOnly, loading, config, renderType, children, hideFooter, onGetValues, uploadUrl, pollResults, showResults, }: RenderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default function Viewer({ answerData, form_data, ignoreValidation, onSubmit, isReadOnly, loading, config, renderType, children, hideFooter, onGetValues, uploadUrl, pollResults, showResults, sendHiddenSectionsAsEmpty, }: RenderProps): import("react/jsx-runtime").JSX.Element;
|