@arquimedes.co/eureka-forms 1.9.80-test → 1.9.81-test
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/App.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface AppProps {
|
|
|
25
25
|
valuesData?: Record<string, unknown>;
|
|
26
26
|
/** Custom steps to display */
|
|
27
27
|
customSteps?: Record<string, CustomStep>;
|
|
28
|
+
/** Custom steps to display */
|
|
29
|
+
customStepProps?: Record<string, any>;
|
|
28
30
|
/** Classifiers dict */
|
|
29
31
|
classifiers?: Record<string, Classifier>;
|
|
30
32
|
/** Custom function to call on send */
|
|
@@ -44,7 +46,7 @@ export interface CustomStep {
|
|
|
44
46
|
calcRecursiveData?: (step: any, ids: Record<string, string>) => void;
|
|
45
47
|
calcDependencyValue?: (step: any, value: any) => any;
|
|
46
48
|
}
|
|
47
|
-
declare function App({ apiKey, domain, preview, partial, formData, postview, editable, isWidget, internal, valuesData, customSend, customSteps, classifiers, handleConfirmed, ...others }: AppProps): JSX.Element;
|
|
49
|
+
declare function App({ apiKey, domain, preview, partial, formData, postview, editable, isWidget, internal, valuesData, customSend, customSteps, classifiers, handleConfirmed, customStepProps, ...others }: AppProps): JSX.Element;
|
|
48
50
|
export default App;
|
|
49
51
|
export declare enum SIZES {
|
|
50
52
|
SMALL = "SMALL",
|
package/dist/App.js
CHANGED
|
@@ -74,7 +74,7 @@ import { stringToDraft, getRawText, } from './FormComponents/Step/TextAreaStep/M
|
|
|
74
74
|
function App(_a) {
|
|
75
75
|
var _this = this;
|
|
76
76
|
var _b, _c, _d, _e;
|
|
77
|
-
var apiKey = _a.apiKey, domain = _a.domain, preview = _a.preview, partial = _a.partial, formData = _a.formData, postview = _a.postview, _f = _a.editable, editable = _f === void 0 ? true : _f, isWidget = _a.isWidget, internal = _a.internal, valuesData = _a.valuesData, customSend = _a.customSend, customSteps = _a.customSteps, classifiers = _a.classifiers, handleConfirmed = _a.handleConfirmed, others = __rest(_a, ["apiKey", "domain", "preview", "partial", "formData", "postview", "editable", "isWidget", "internal", "valuesData", "customSend", "customSteps", "classifiers", "handleConfirmed"]);
|
|
77
|
+
var apiKey = _a.apiKey, domain = _a.domain, preview = _a.preview, partial = _a.partial, formData = _a.formData, postview = _a.postview, _f = _a.editable, editable = _f === void 0 ? true : _f, isWidget = _a.isWidget, internal = _a.internal, valuesData = _a.valuesData, customSend = _a.customSend, customSteps = _a.customSteps, classifiers = _a.classifiers, handleConfirmed = _a.handleConfirmed, customStepProps = _a.customStepProps, others = __rest(_a, ["apiKey", "domain", "preview", "partial", "formData", "postview", "editable", "isWidget", "internal", "valuesData", "customSend", "customSteps", "classifiers", "handleConfirmed", "customStepProps"]);
|
|
78
78
|
var _g = useState(undefined), form = _g[0], setForm = _g[1];
|
|
79
79
|
var _h = useState({}), originalValues = _h[0], setOriginalValues = _h[1];
|
|
80
80
|
var _j = useState(undefined), organizationInfo = _j[0], setOrganizationInfo = _j[1];
|
|
@@ -273,7 +273,7 @@ function App(_a) {
|
|
|
273
273
|
if (handleConfirmed) {
|
|
274
274
|
handleConfirmed();
|
|
275
275
|
}
|
|
276
|
-
}, editable: editable, postview: postview === true, preview: preview === true, partial: partial === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, isWidget: isWidget === true })) })));
|
|
276
|
+
}, editable: editable, postview: postview === true, preview: preview === true, partial: partial === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, customStepProps: customStepProps !== null && customStepProps !== void 0 ? customStepProps : {}, isWidget: isWidget === true })) })));
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
export default App;
|
|
@@ -13,6 +13,7 @@ export interface FormComponentProps {
|
|
|
13
13
|
organization: Organization;
|
|
14
14
|
originalValues: Record<string, unknown>;
|
|
15
15
|
customSteps: Record<string, CustomStep>;
|
|
16
|
+
customStepProps: Record<string, any>;
|
|
16
17
|
customSend?: (values: any, reload: Function) => Promise<any>;
|
|
17
18
|
customSubmit?: JSX.Element;
|
|
18
19
|
widthStats: WidthStats;
|
|
@@ -21,6 +21,7 @@ export interface RecursiveData {
|
|
|
21
21
|
getValues: UseFormGetValues<FieldValues>;
|
|
22
22
|
originalValues: Record<string, any>;
|
|
23
23
|
customSteps: Record<string, CustomStep>;
|
|
24
|
+
customStepProps: Record<string, any>;
|
|
24
25
|
/** Function to call on postview to fetch the download url of a file */
|
|
25
26
|
fetchDownloadUrl?: (S3Key: string, fileName: string) => Promise<string>;
|
|
26
27
|
dependencyStore: Record<string, any>;
|
package/package.json
CHANGED