@feathery/react 2.6.8 → 2.8.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/Form/components/{AIExtractionToast/ExtractionItem.d.ts → ActionToast/ToastItem.d.ts} +6 -6
- package/dist/Form/components/ActionToast/ToastItem.d.ts.map +1 -0
- package/dist/Form/components/{AIExtractionToast → ActionToast}/icons.d.ts +7 -7
- package/dist/Form/components/ActionToast/icons.d.ts.map +1 -0
- package/dist/Form/components/ActionToast/index.d.ts +8 -0
- package/dist/Form/components/ActionToast/index.d.ts.map +1 -0
- package/dist/Form/components/{AIExtractionToast → ActionToast}/useAIExtractionToast.d.ts +72 -64
- package/dist/Form/components/ActionToast/useAIExtractionToast.d.ts.map +1 -0
- package/dist/Form/components/ActionToast/useEnvelopeGenerationToast.d.ts +20 -0
- package/dist/Form/components/ActionToast/useEnvelopeGenerationToast.d.ts.map +1 -0
- package/dist/Form/components/DevNavBar.d.ts +1 -1
- package/dist/Form/components/ReactPortal.d.ts +2 -2
- package/dist/Form/definitions.d.ts +40 -40
- package/dist/Form/grid/CalendlyEmbed.d.ts +1 -1
- package/dist/Form/grid/Container/index.d.ts +19 -19
- package/dist/Form/grid/Element/index.d.ts +2 -2
- package/dist/Form/grid/Element/utils/address.d.ts +3 -3
- package/dist/Form/grid/Element/utils/utils.d.ts +13 -13
- package/dist/Form/grid/StyledContainer/hooks/index.d.ts +20 -20
- package/dist/Form/grid/StyledContainer/hooks/useFixedContainer.d.ts +1 -1
- package/dist/Form/grid/StyledContainer/index.d.ts +21 -21
- package/dist/Form/grid/StyledContainer/styles.d.ts +5 -5
- package/dist/Form/grid/StyledContainer/transform.d.ts +4 -4
- package/dist/Form/grid/StyledContainer/utils.d.ts +44 -44
- package/dist/Form/grid/index.d.ts +2 -2
- package/dist/Form/hooks/useCheckButtonAction.d.ts +6 -6
- package/dist/Form/hooks/useTrackUserInteraction.d.ts +2 -2
- package/dist/Form/index.d.ts +52 -52
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/Form/logic.d.ts +10 -10
- package/dist/Form/tests/testMocks.d.ts +6 -6
- package/dist/auth/LoginError.d.ts +3 -3
- package/dist/auth/LoginForm.d.ts +29 -29
- package/dist/auth/internal/AuthIntegrationInterface.d.ts +31 -31
- package/dist/auth/internal/useFormAuth.d.ts +10 -10
- package/dist/auth/internal/utils.d.ts +13 -13
- package/dist/auth/useAuthClient.d.ts +2 -2
- package/dist/auth/utils.d.ts +1 -1
- package/dist/elements/basic/ButtonElement.d.ts +2 -2
- package/dist/elements/basic/ImageElement.d.ts +3 -3
- package/dist/elements/basic/ProgressBarElement/components/SegmentBar.d.ts +2 -2
- package/dist/elements/basic/ProgressBarElement/components/SmoothBar.d.ts +2 -2
- package/dist/elements/basic/ProgressBarElement/index.d.ts +2 -2
- package/dist/elements/basic/TextElement.d.ts +2 -2
- package/dist/elements/basic/VideoElement.d.ts +2 -2
- package/dist/elements/components/ErrorInput.d.ts +2 -2
- package/dist/elements/components/FormControl.d.ts +10 -10
- package/dist/elements/components/FormOff.d.ts +10 -10
- package/dist/elements/components/InlineTooltip.d.ts +11 -11
- package/dist/elements/components/LoaderContainer.d.ts +10 -10
- package/dist/elements/components/Lottie.d.ts +2 -2
- package/dist/elements/components/Overlay.d.ts +15 -15
- package/dist/elements/components/Placeholder.d.ts +1 -1
- package/dist/elements/components/QuikFormViewer/transforms/form.d.ts +1 -1
- package/dist/elements/components/QuikFormViewer/transforms/header.d.ts +1 -1
- package/dist/elements/components/QuikFormViewer/transforms/sidebar.d.ts +6 -6
- package/dist/elements/components/QuikFormViewer.d.ts +9 -9
- package/dist/elements/components/Spinner.d.ts +4 -4
- package/dist/elements/components/TextHoverTooltip.d.ts +8 -8
- package/dist/elements/components/TextNodes.d.ts +4 -4
- package/dist/elements/components/Tooltip.d.ts +7 -7
- package/dist/elements/components/Watermark.d.ts +1 -1
- package/dist/elements/components/data/countries.d.ts +14 -14
- package/dist/elements/components/data/states/ae.d.ts +5 -5
- package/dist/elements/components/data/states/au.d.ts +5 -5
- package/dist/elements/components/data/states/br.d.ts +5 -5
- package/dist/elements/components/data/states/ca.d.ts +5 -5
- package/dist/elements/components/data/states/cl.d.ts +5 -5
- package/dist/elements/components/data/states/cn.d.ts +5 -5
- package/dist/elements/components/data/states/co.d.ts +5 -5
- package/dist/elements/components/data/states/eg.d.ts +5 -5
- package/dist/elements/components/data/states/es.d.ts +5 -5
- package/dist/elements/components/data/states/gb.d.ts +5 -5
- package/dist/elements/components/data/states/gt.d.ts +5 -5
- package/dist/elements/components/data/states/hk.d.ts +5 -5
- package/dist/elements/components/data/states/id.d.ts +5 -5
- package/dist/elements/components/data/states/ie.d.ts +5 -5
- package/dist/elements/components/data/states/in.d.ts +5 -5
- package/dist/elements/components/data/states/index.d.ts +6 -6
- package/dist/elements/components/data/states/it.d.ts +5 -5
- package/dist/elements/components/data/states/jp.d.ts +5 -5
- package/dist/elements/components/data/states/kr.d.ts +5 -5
- package/dist/elements/components/data/states/mx.d.ts +5 -5
- package/dist/elements/components/data/states/my.d.ts +5 -5
- package/dist/elements/components/data/states/ng.d.ts +5 -5
- package/dist/elements/components/data/states/nz.d.ts +5 -5
- package/dist/elements/components/data/states/pa.d.ts +5 -5
- package/dist/elements/components/data/states/pe.d.ts +5 -5
- package/dist/elements/components/data/states/ph.d.ts +5 -5
- package/dist/elements/components/data/states/pt.d.ts +5 -5
- package/dist/elements/components/data/states/ro.d.ts +5 -5
- package/dist/elements/components/data/states/ru.d.ts +5 -5
- package/dist/elements/components/data/states/th.d.ts +5 -5
- package/dist/elements/components/data/states/us.d.ts +9 -9
- package/dist/elements/components/data/states/za.d.ts +5 -5
- package/dist/elements/components/icons/Close.d.ts +6 -6
- package/dist/elements/components/icons/DiagonalArrow.d.ts +5 -5
- package/dist/elements/components/icons/DownloadIcon.d.ts +4 -4
- package/dist/elements/components/icons/FileUpload.d.ts +1 -1
- package/dist/elements/components/icons/FormClosed.d.ts +5 -5
- package/dist/elements/components/icons/Heart.d.ts +1 -1
- package/dist/elements/components/icons/Help.d.ts +4 -4
- package/dist/elements/components/icons/HideEyeIcon.d.ts +5 -5
- package/dist/elements/components/icons/LeftChevron.d.ts +1 -1
- package/dist/elements/components/icons/RatingStar.d.ts +1 -1
- package/dist/elements/components/icons/RightChevron.d.ts +1 -1
- package/dist/elements/components/icons/ShowEyeIcon.d.ts +5 -5
- package/dist/elements/components/icons/Warning.d.ts +5 -5
- package/dist/elements/components/icons/index.d.ts +11 -11
- package/dist/elements/components/skeletons/FieldSkeleton.d.ts +7 -7
- package/dist/elements/components/useBorder.d.ts +21 -21
- package/dist/elements/components/useTextEdit.d.ts +6 -5
- package/dist/elements/components/useTextEdit.d.ts.map +1 -1
- package/dist/elements/fields/AddressLine1Field/index.d.ts +4 -4
- package/dist/elements/fields/AddressLine1Field/tests/test-utils.d.ts +34 -34
- package/dist/elements/fields/AddressLine1Field/utils.d.ts +2 -2
- package/dist/elements/fields/ButtonGroupField/index.d.ts +2 -2
- package/dist/elements/fields/ButtonGroupField/tests/test-utils.d.ts +46 -46
- package/dist/elements/fields/CheckboxField/index.d.ts +5 -5
- package/dist/elements/fields/CheckboxField/tests/test-utils.d.ts +20 -20
- package/dist/elements/fields/CheckboxGroupField/index.d.ts +2 -2
- package/dist/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +60 -60
- package/dist/elements/fields/ColorPickerField/index.d.ts +2 -2
- package/dist/elements/fields/ColorPickerField/tests/test-utils.d.ts +21 -21
- package/dist/elements/fields/CustomField/Status.d.ts +8 -8
- package/dist/elements/fields/CustomField/index.d.ts +3 -3
- package/dist/elements/fields/CustomField/template.d.ts +1 -1
- package/dist/elements/fields/CustomField/useCustomComponentIframe.d.ts +15 -15
- package/dist/elements/fields/DateSelectorField/index.d.ts +22 -22
- package/dist/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/elements/fields/DateSelectorField/styles.d.ts +4 -4
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts +74 -74
- package/dist/elements/fields/DateSelectorField/useDateLocale.d.ts +7 -7
- package/dist/elements/fields/DateSelectorField/utils.d.ts +3 -3
- package/dist/elements/fields/DropdownField/index.d.ts +1 -1
- package/dist/elements/fields/DropdownField/tests/test-utils.d.ts +28 -28
- package/dist/elements/fields/DropdownMultiField/DropdownMultiFieldSelectComponents.d.ts +8 -8
- package/dist/elements/fields/DropdownMultiField/createDropdownSelect.d.ts +190 -190
- package/dist/elements/fields/DropdownMultiField/index.d.ts +1 -1
- package/dist/elements/fields/DropdownMultiField/optionNormalization.d.ts +9 -9
- package/dist/elements/fields/DropdownMultiField/selectStyles.d.ts +12 -12
- package/dist/elements/fields/DropdownMultiField/tests/test-utils.d.ts +47 -47
- package/dist/elements/fields/DropdownMultiField/types.d.ts +49 -49
- package/dist/elements/fields/DropdownMultiField/useCollapsedSelectionManager.d.ts +46 -46
- package/dist/elements/fields/DropdownMultiField/useCollapsedValuesMeasurement.d.ts +19 -19
- package/dist/elements/fields/DropdownMultiField/useDropdownInteractions.d.ts +46 -46
- package/dist/elements/fields/DropdownMultiField/useDropdownOptions.d.ts +24 -24
- package/dist/elements/fields/DropdownMultiField/useSelectProps.d.ts +112 -112
- package/dist/elements/fields/FileUploadField/index.d.ts +2 -2
- package/dist/elements/fields/FileUploadField/tests/test-utils.d.ts +10 -10
- package/dist/elements/fields/MatrixField/index.d.ts +2 -2
- package/dist/elements/fields/MatrixField/tests/test-utils.d.ts +67 -67
- package/dist/elements/fields/PasswordField/index.d.ts +4 -4
- package/dist/elements/fields/PasswordField/tests/test-utils.d.ts +30 -30
- package/dist/elements/fields/PaymentMethodField.d.ts +4 -4
- package/dist/elements/fields/PhoneField/CountryDropdown.d.ts +3 -3
- package/dist/elements/fields/PhoneField/exampleNumbers.d.ts +2 -2
- package/dist/elements/fields/PhoneField/index.d.ts +4 -4
- package/dist/elements/fields/PhoneField/tests/test-utils.d.ts +86 -86
- package/dist/elements/fields/PhoneField/timeZoneCountries.d.ts +4 -4
- package/dist/elements/fields/PhoneField/validation.d.ts +3 -3
- package/dist/elements/fields/PinInputField/index.d.ts +2 -2
- package/dist/elements/fields/PinInputField/tests/test-utils.d.ts +79 -79
- package/dist/elements/fields/PinInputField/useOTPListener.d.ts +1 -1
- package/dist/elements/fields/QRScanner/constants.d.ts +14 -14
- package/dist/elements/fields/QRScanner/hooks/use-device-rotation.d.ts +11 -11
- package/dist/elements/fields/QRScanner/index.d.ts +2 -2
- package/dist/elements/fields/QRScanner/qrLoader.d.ts +2 -2
- package/dist/elements/fields/QRScanner/utils/local-storage.d.ts +5 -5
- package/dist/elements/fields/QRScanner/utils/select-camera.d.ts +9 -9
- package/dist/elements/fields/QRScanner/utils/supports-zoom.d.ts +8 -8
- package/dist/elements/fields/RadioButtonGroupField/index.d.ts +2 -2
- package/dist/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +55 -55
- package/dist/elements/fields/RatingField/index.d.ts +1 -1
- package/dist/elements/fields/RatingField/tests/test-utils.d.ts +22 -22
- package/dist/elements/fields/SignatureField/components/SignatureCanvas.d.ts +22 -22
- package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts +12 -12
- package/dist/elements/fields/SignatureField/components/utils.d.ts +10 -10
- package/dist/elements/fields/SignatureField/index.d.ts +3 -3
- package/dist/elements/fields/SignatureField/translation.d.ts +17 -17
- package/dist/elements/fields/SliderField/index.d.ts +1 -1
- package/dist/elements/fields/SliderField/styles.d.ts +3 -3
- package/dist/elements/fields/SliderField/tests/test-utils.d.ts +22 -22
- package/dist/elements/fields/TextArea/index.d.ts +4 -4
- package/dist/elements/fields/TextArea/tests/test-utils.d.ts +10 -10
- package/dist/elements/fields/TextField/TextAutocomplete.d.ts +15 -15
- package/dist/elements/fields/TextField/index.d.ts +4 -4
- package/dist/elements/fields/TextField/index.d.ts.map +1 -1
- package/dist/elements/fields/TextField/tests/test-utils.d.ts +10 -10
- package/dist/elements/fields/index.d.ts +27 -26
- package/dist/elements/fields/index.d.ts.map +1 -1
- package/dist/elements/fields/shared/tests/field-test-utils.d.ts +51 -51
- package/dist/elements/index.d.ts +36 -36
- package/dist/elements/styles.d.ts +64 -64
- package/dist/elements/utils/fieldNormalization.d.ts +12 -12
- package/dist/fthry_FormControl.CPHJNRoq.js +16 -0
- package/dist/fthry_InlineTooltip.AGcWhuhV.js +53 -0
- package/dist/fthry_Overlay.X0blINpo.js +228 -0
- package/dist/fthry_PaymentMethodField.DrAgJBPV.js +928 -0
- package/dist/fthry_Placeholder.DLtEoCLC.js +14 -0
- package/dist/fthry_ShowEyeIcon.CkEvtp1W.js +13 -0
- package/dist/fthry_index.BFrZ_89I.js +251 -0
- package/dist/fthry_index.BVM6mIvX.js +73 -0
- package/dist/fthry_index.B_soCJRW.js +1193 -0
- package/dist/fthry_index.BrWMLV_p.js +35 -0
- package/dist/fthry_index.CFbW8L20.js +42 -0
- package/dist/fthry_index.CWt9W3bv.js +95 -0
- package/dist/fthry_index.Cfk_0HTE.js +2000 -0
- package/dist/fthry_index.CjUraQwq.js +888 -0
- package/dist/fthry_index.D99W7p5a.js +293 -0
- package/dist/fthry_index.DAGDZi5r.js +97 -0
- package/dist/fthry_index.DV1PqB3d.js +138 -0
- package/dist/fthry_index.DWyfWu2d.js +216 -0
- package/dist/fthry_index.DaFYDmA_.js +15921 -0
- package/dist/fthry_index.DghPMqyH.js +8166 -0
- package/dist/fthry_index.DodXvrXD.js +98 -0
- package/dist/fthry_index.DohTu1v2.js +46 -0
- package/dist/fthry_index.F6BXSHA5.js +61120 -0
- package/dist/fthry_index.KRksei8j.js +513 -0
- package/dist/fthry_index.dYsdCe_k.js +1427 -0
- package/dist/fthry_index.lC0Xyh-d.js +1162 -0
- package/dist/fthry_index.mE9gZkgT.js +55 -0
- package/dist/fthry_index.rtVAtURz.js +1452 -0
- package/dist/fthry_index.uvWVc7KJ.js +131 -0
- package/dist/fthry_input.Bfzc5hmV.js +3779 -0
- package/dist/fthry_script.cAr9Z1Ke.js +157 -0
- package/dist/fthry_styles.yVoSvBEy.js +1654 -0
- package/dist/fthry_useElementSize.D3n9DgQ-.js +51 -0
- package/dist/fthry_useSalesforceSync.prWuB8V7.js +44 -0
- package/dist/fthry_webfontloader.DyMoLGZ3.js +57 -0
- package/dist/hooks/router.d.ts +14 -14
- package/dist/hooks/useElementSize.d.ts +7 -7
- package/dist/hooks/useLoader.d.ts +35 -35
- package/dist/hooks/useMounted.d.ts +2 -2
- package/dist/hooks/usePollFuserData.d.ts +1 -1
- package/dist/hooks/usePrevious.d.ts +2 -2
- package/dist/hooks/useSalesforceSync.d.ts +10 -10
- package/dist/index.d.ts +150 -149
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/integrations/alloy.d.ts +2 -2
- package/dist/integrations/amplitude.d.ts +1 -1
- package/dist/integrations/argyle.d.ts +2 -2
- package/dist/integrations/calendly.d.ts +2 -2
- package/dist/integrations/firebase.d.ts +42 -42
- package/dist/integrations/flinks/index.d.ts +10 -10
- package/dist/integrations/flinks/utils.d.ts +12 -12
- package/dist/integrations/googleAnalytics.d.ts +3 -3
- package/dist/integrations/googleTagManager.d.ts +1 -1
- package/dist/integrations/heap.d.ts +2 -2
- package/dist/integrations/intercom.d.ts +2 -2
- package/dist/integrations/mixpanel.d.ts +2 -2
- package/dist/integrations/persona.d.ts +2 -2
- package/dist/integrations/plaid.d.ts +2 -2
- package/dist/integrations/recaptcha.d.ts +2 -2
- package/dist/integrations/rudderstack.d.ts +3 -3
- package/dist/integrations/schwab.d.ts +1 -1
- package/dist/integrations/segment.d.ts +1 -1
- package/dist/integrations/stripe/Cart.d.ts +19 -19
- package/dist/integrations/stripe/SimplifiedProduct.d.ts +39 -39
- package/dist/integrations/stripe/index.d.ts +1 -1
- package/dist/integrations/stripe/stripe.d.ts +97 -97
- package/dist/integrations/stytch.d.ts +19 -19
- package/dist/integrations/trustedform.d.ts +2 -2
- package/dist/integrations/utils.d.ts +14 -14
- package/dist/setupTests.d.ts +1 -1
- package/dist/types/Form.d.ts +80 -80
- package/dist/utils/DangerouslySetHTMLContent.d.ts +2 -2
- package/dist/utils/ShadowDomHtmlContent.d.ts +8 -8
- package/dist/utils/array.d.ts +11 -11
- package/dist/utils/browser.d.ts +23 -23
- package/dist/utils/callbackQueue.d.ts +10 -10
- package/dist/utils/document.d.ts +1 -1
- package/dist/utils/elementActions.d.ts +55 -55
- package/dist/utils/entities/Collaborator.d.ts +14 -14
- package/dist/utils/entities/Field.d.ts +129 -129
- package/dist/utils/error.d.ts +13 -13
- package/dist/utils/featheryClient/index.d.ts +103 -103
- package/dist/utils/featheryClient/integrationClient.d.ts +114 -114
- package/dist/utils/featheryClient/utils.d.ts +1 -1
- package/dist/utils/fieldHelperFunctions.d.ts +70 -70
- package/dist/utils/formContext.d.ts +104 -104
- package/dist/utils/formHelperFunctions.d.ts +44 -44
- package/dist/utils/hideAndRepeats.d.ts +27 -27
- package/dist/utils/hydration.d.ts +14 -14
- package/dist/utils/image.d.ts +39 -39
- package/dist/utils/init.d.ts +59 -59
- package/dist/utils/init.d.ts.map +1 -1
- package/dist/utils/interactionState.d.ts +4 -4
- package/dist/utils/internalState.d.ts +91 -91
- package/dist/utils/logic.d.ts +50 -50
- package/dist/utils/offlineRequestHandler.d.ts +94 -94
- package/dist/utils/polyfills.d.ts +2 -2
- package/dist/utils/primitives.d.ts +14 -14
- package/dist/utils/random.d.ts +1 -1
- package/dist/utils/repeat.d.ts +38 -38
- package/dist/utils/sensitiveActions.d.ts +7 -7
- package/dist/utils/stepHelperFunctions.d.ts +22 -22
- package/dist/utils/styles.d.ts +5 -5
- package/dist/utils/validation.d.ts +58 -58
- package/package.json +18 -5
- package/umd/466.e3456c8b3407ad04ba56.js +1 -0
- package/umd/{DateSelectorField.b98c0ecb80f56e65cc69.js → DateSelectorField.bd5646949de71f571d04.js} +1 -1
- package/umd/{TextField.a3d8d42f6f8236d00f83.js → TextField.5a5296fe3ea60c4459f2.js} +1 -1
- package/umd/index.js +1 -1
- package/dist/Form/components/AIExtractionToast/ExtractionItem.d.ts.map +0 -1
- package/dist/Form/components/AIExtractionToast/icons.d.ts.map +0 -1
- package/dist/Form/components/AIExtractionToast/index.d.ts +0 -9
- package/dist/Form/components/AIExtractionToast/index.d.ts.map +0 -1
- package/dist/Form/components/AIExtractionToast/useAIExtractionToast.d.ts.map +0 -1
- package/umd/796.e66d52ea21ef09c4eeaa.js +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function isStoreFieldValueAction(el: any): void;
|
|
3
|
-
export declare const getABVariant: (stepRes: any) => any;
|
|
4
|
-
export declare const getAllElements: (step: any) => any[];
|
|
5
|
-
export declare const lookUpTrigger: (step: any, elementID: string, type: string) => Record<string, any>;
|
|
6
|
-
/** Update the fieldValues cache with a backend session */
|
|
7
|
-
export declare function updateSessionValues(session: any): void;
|
|
8
|
-
/**
|
|
9
|
-
* Set an error on a particular form DOM node(s).
|
|
10
|
-
*/
|
|
11
|
-
export declare function setFormElementError({ formRef, errorType, errorCallback, fieldKey, message, index, servarType, inlineErrors, setInlineErrors, triggerErrors }: any): Promise<boolean>;
|
|
12
|
-
export declare function clearBrowserErrors(formRef: React.MutableRefObject<any>): void;
|
|
13
|
-
export declare function objectMap(obj: any, transform: any): {};
|
|
14
|
-
/**
|
|
15
|
-
* If a user's file is already uploaded, Feathery backend returns S3 details: { path, url }
|
|
16
|
-
* We convert this information into Promises that resolve to the file
|
|
17
|
-
*/
|
|
18
|
-
export declare function fetchS3File(url: any): Promise<File>;
|
|
19
|
-
export declare function clearFilePathMapEntry(key: any, index?: null): void;
|
|
20
|
-
export declare function registerRenderCallback(internalId: string, key: 'form' | 'loginForm', callback: () => void): void;
|
|
21
|
-
export declare function rerenderAllForms(): void;
|
|
22
|
-
export declare function remountAllForms(saveCurrentStep?: boolean): void;
|
|
23
|
-
export declare function prioritizeActions(actions: any[]): any[];
|
|
24
|
-
export declare function mapFormSettingsResponse(res: any): {
|
|
25
|
-
errorType: any;
|
|
26
|
-
autocomplete: string;
|
|
27
|
-
autofocus: any;
|
|
28
|
-
allowEdits: any;
|
|
29
|
-
completionBehavior: any;
|
|
30
|
-
showBrand: boolean;
|
|
31
|
-
brandPosition: any;
|
|
32
|
-
autoscroll: any;
|
|
33
|
-
rightToLeft: any;
|
|
34
|
-
saveUrlParams: any;
|
|
35
|
-
enterToSubmit: any;
|
|
36
|
-
globalStyles: any;
|
|
37
|
-
saveHideIfFields: any;
|
|
38
|
-
clearHideIfFields: any;
|
|
39
|
-
mobileBreakpoint: any;
|
|
40
|
-
};
|
|
41
|
-
export declare function updateCustomHead(headCode: string): Promise<void>;
|
|
42
|
-
export declare function updateCustomCSS(cssCode: string): void;
|
|
43
|
-
export declare function isElementInViewport(el: any): boolean;
|
|
44
|
-
export declare function httpHelpers(client: any, connectorFields?: string[]): Record<string, any>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function isStoreFieldValueAction(el: any): void;
|
|
3
|
+
export declare const getABVariant: (stepRes: any) => any;
|
|
4
|
+
export declare const getAllElements: (step: any) => any[];
|
|
5
|
+
export declare const lookUpTrigger: (step: any, elementID: string, type: string) => Record<string, any>;
|
|
6
|
+
/** Update the fieldValues cache with a backend session */
|
|
7
|
+
export declare function updateSessionValues(session: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* Set an error on a particular form DOM node(s).
|
|
10
|
+
*/
|
|
11
|
+
export declare function setFormElementError({ formRef, errorType, errorCallback, fieldKey, message, index, servarType, inlineErrors, setInlineErrors, triggerErrors }: any): Promise<boolean>;
|
|
12
|
+
export declare function clearBrowserErrors(formRef: React.MutableRefObject<any>): void;
|
|
13
|
+
export declare function objectMap(obj: any, transform: any): {};
|
|
14
|
+
/**
|
|
15
|
+
* If a user's file is already uploaded, Feathery backend returns S3 details: { path, url }
|
|
16
|
+
* We convert this information into Promises that resolve to the file
|
|
17
|
+
*/
|
|
18
|
+
export declare function fetchS3File(url: any): Promise<File>;
|
|
19
|
+
export declare function clearFilePathMapEntry(key: any, index?: null): void;
|
|
20
|
+
export declare function registerRenderCallback(internalId: string, key: 'form' | 'loginForm', callback: () => void): void;
|
|
21
|
+
export declare function rerenderAllForms(): void;
|
|
22
|
+
export declare function remountAllForms(saveCurrentStep?: boolean): void;
|
|
23
|
+
export declare function prioritizeActions(actions: any[]): any[];
|
|
24
|
+
export declare function mapFormSettingsResponse(res: any): {
|
|
25
|
+
errorType: any;
|
|
26
|
+
autocomplete: string;
|
|
27
|
+
autofocus: any;
|
|
28
|
+
allowEdits: any;
|
|
29
|
+
completionBehavior: any;
|
|
30
|
+
showBrand: boolean;
|
|
31
|
+
brandPosition: any;
|
|
32
|
+
autoscroll: any;
|
|
33
|
+
rightToLeft: any;
|
|
34
|
+
saveUrlParams: any;
|
|
35
|
+
enterToSubmit: any;
|
|
36
|
+
globalStyles: any;
|
|
37
|
+
saveHideIfFields: any;
|
|
38
|
+
clearHideIfFields: any;
|
|
39
|
+
mobileBreakpoint: any;
|
|
40
|
+
};
|
|
41
|
+
export declare function updateCustomHead(headCode: string): Promise<void>;
|
|
42
|
+
export declare function updateCustomCSS(cssCode: string): void;
|
|
43
|
+
export declare function isElementInViewport(el: any): boolean;
|
|
44
|
+
export declare function httpHelpers(client: any, connectorFields?: string[]): Record<string, any>;
|
|
45
45
|
//# sourceMappingURL=formHelperFunctions.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ResolvedComparisonRule } from './logic';
|
|
2
|
-
interface FlatHideRule extends ResolvedComparisonRule {
|
|
3
|
-
index: number;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Gets the set of elements that are referenced in a hide if rule for any of the elements.
|
|
7
|
-
* Useful for knowing a field is involved in a rule.
|
|
8
|
-
* @param elements
|
|
9
|
-
* @returns Map<fieldKey, Set<Index>>
|
|
10
|
-
*/
|
|
11
|
-
declare function getHideIfReferences(elements: [
|
|
12
|
-
{
|
|
13
|
-
hide_ifs: FlatHideRule[];
|
|
14
|
-
show_logic: boolean;
|
|
15
|
-
},
|
|
16
|
-
string
|
|
17
|
-
][]): Set<string>;
|
|
18
|
-
/**
|
|
19
|
-
* Determines if the provided element should be hidden based on its "hide-if" rules.
|
|
20
|
-
*/
|
|
21
|
-
declare function shouldElementHide({ hide_ifs: hideIfs, show_logic: show, mobile_styles: mobileStyles, styles }: any, repeat?: number, internalId?: string): boolean;
|
|
22
|
-
declare const stepElementTypes: string[];
|
|
23
|
-
declare const getPositionKey: (node: any) => any;
|
|
24
|
-
export declare type VisiblePositions = Record<string, boolean[]>;
|
|
25
|
-
declare function getVisiblePositions(step: any, internalId: string): VisiblePositions;
|
|
26
|
-
declare function getVisibleElements(step: any, visiblePositions: VisiblePositions, elementTypes?: string[], repeat?: boolean): any[];
|
|
27
|
-
export { shouldElementHide, getHideIfReferences, getVisibleElements, getVisiblePositions, stepElementTypes, getPositionKey };
|
|
1
|
+
import { ResolvedComparisonRule } from './logic';
|
|
2
|
+
interface FlatHideRule extends ResolvedComparisonRule {
|
|
3
|
+
index: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Gets the set of elements that are referenced in a hide if rule for any of the elements.
|
|
7
|
+
* Useful for knowing a field is involved in a rule.
|
|
8
|
+
* @param elements
|
|
9
|
+
* @returns Map<fieldKey, Set<Index>>
|
|
10
|
+
*/
|
|
11
|
+
declare function getHideIfReferences(elements: [
|
|
12
|
+
{
|
|
13
|
+
hide_ifs: FlatHideRule[];
|
|
14
|
+
show_logic: boolean;
|
|
15
|
+
},
|
|
16
|
+
string
|
|
17
|
+
][]): Set<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Determines if the provided element should be hidden based on its "hide-if" rules.
|
|
20
|
+
*/
|
|
21
|
+
declare function shouldElementHide({ hide_ifs: hideIfs, show_logic: show, mobile_styles: mobileStyles, styles }: any, repeat?: number, internalId?: string): boolean;
|
|
22
|
+
declare const stepElementTypes: string[];
|
|
23
|
+
declare const getPositionKey: (node: any) => any;
|
|
24
|
+
export declare type VisiblePositions = Record<string, boolean[]>;
|
|
25
|
+
declare function getVisiblePositions(step: any, internalId: string): VisiblePositions;
|
|
26
|
+
declare function getVisibleElements(step: any, visiblePositions: VisiblePositions, elementTypes?: string[], repeat?: boolean): any[];
|
|
27
|
+
export { shouldElementHide, getHideIfReferences, getVisibleElements, getVisiblePositions, stepElementTypes, getPositionKey };
|
|
28
28
|
//# sourceMappingURL=hideAndRepeats.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import ResponsiveStyles from '../elements/styles';
|
|
2
|
-
export declare const MIN_AXIS_SIZE = 15;
|
|
3
|
-
export declare const FIT = "fit";
|
|
4
|
-
export declare const FILL = "fill";
|
|
5
|
-
export declare const isFill: (v: any) => boolean;
|
|
6
|
-
export declare const isFit: (v: any) => boolean;
|
|
7
|
-
export declare const isPx: (v: string) => boolean;
|
|
8
|
-
export declare const getPxValue: (size: string) => number;
|
|
9
|
-
/**
|
|
10
|
-
* Calculates the dimensions of the provided step.
|
|
11
|
-
* Note: The provided step should be fully-hydrated (i.e. rows injected, etc.) to calculate dimensions accurately.
|
|
12
|
-
*/
|
|
13
|
-
export declare function calculateStepCSS(step: any): Record<string, any>;
|
|
14
|
-
export declare function calculateGlobalCSS(globalStyles: any): ResponsiveStyles;
|
|
1
|
+
import ResponsiveStyles from '../elements/styles';
|
|
2
|
+
export declare const MIN_AXIS_SIZE = 15;
|
|
3
|
+
export declare const FIT = "fit";
|
|
4
|
+
export declare const FILL = "fill";
|
|
5
|
+
export declare const isFill: (v: any) => boolean;
|
|
6
|
+
export declare const isFit: (v: any) => boolean;
|
|
7
|
+
export declare const isPx: (v: string) => boolean;
|
|
8
|
+
export declare const getPxValue: (size: string) => number;
|
|
9
|
+
/**
|
|
10
|
+
* Calculates the dimensions of the provided step.
|
|
11
|
+
* Note: The provided step should be fully-hydrated (i.e. rows injected, etc.) to calculate dimensions accurately.
|
|
12
|
+
*/
|
|
13
|
+
export declare function calculateStepCSS(step: any): Record<string, any>;
|
|
14
|
+
export declare function calculateGlobalCSS(globalStyles: any): ResponsiveStyles;
|
|
15
15
|
//# sourceMappingURL=hydration.d.ts.map
|
package/dist/utils/image.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const THUMBNAIL_TYPE: {
|
|
3
|
-
PDF: string;
|
|
4
|
-
IMAGE: string;
|
|
5
|
-
UNKNOWN: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const BASE64_REGEX: RegExp;
|
|
8
|
-
export declare function getThumbnailType(file: File): string;
|
|
9
|
-
/**
|
|
10
|
-
* Utility hook for handling file values in file upload fields.
|
|
11
|
-
* This custom hook maintains a referentially-stable list of files,
|
|
12
|
-
* and will execute a callback every time that list changes.
|
|
13
|
-
*/
|
|
14
|
-
export declare function useFileData(initialFiles: any, onSetFiles?: () => void): (any[] | import("react").Dispatch<import("react").SetStateAction<any[]>>)[];
|
|
15
|
-
/**
|
|
16
|
-
* Given a File (or a Promise<File>), convert the file to a filename and thumbnail.
|
|
17
|
-
* Filename will be a plaintext string and thumbnail will be a base64 encoded image.
|
|
18
|
-
*/
|
|
19
|
-
export declare function getThumbnailData(filePromise: File | Promise<File>): Promise<{
|
|
20
|
-
filename: any;
|
|
21
|
-
thumbnail: string;
|
|
22
|
-
}>;
|
|
23
|
-
/**
|
|
24
|
-
* Given a File (or a Promise<File>), convert the file to a source url and file type.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getRenderData(filePromise: File | Promise<File>): Promise<{
|
|
27
|
-
type: string;
|
|
28
|
-
url: string;
|
|
29
|
-
}>;
|
|
30
|
-
/**
|
|
31
|
-
* Utility hook for converting a list of files into a list of thumbnail information.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useThumbnailData(files: Promise<File>[]): {
|
|
34
|
-
filename: string;
|
|
35
|
-
thumbnail: string;
|
|
36
|
-
}[];
|
|
37
|
-
export declare const dataURLToFile: (dataURL: any, name: any) => File;
|
|
38
|
-
export declare const toBase64: (file: any) => Promise<string>;
|
|
39
|
-
export declare const isBase64Image: (string: any) => boolean;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const THUMBNAIL_TYPE: {
|
|
3
|
+
PDF: string;
|
|
4
|
+
IMAGE: string;
|
|
5
|
+
UNKNOWN: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const BASE64_REGEX: RegExp;
|
|
8
|
+
export declare function getThumbnailType(file: File): string;
|
|
9
|
+
/**
|
|
10
|
+
* Utility hook for handling file values in file upload fields.
|
|
11
|
+
* This custom hook maintains a referentially-stable list of files,
|
|
12
|
+
* and will execute a callback every time that list changes.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useFileData(initialFiles: any, onSetFiles?: () => void): (any[] | import("react").Dispatch<import("react").SetStateAction<any[]>>)[];
|
|
15
|
+
/**
|
|
16
|
+
* Given a File (or a Promise<File>), convert the file to a filename and thumbnail.
|
|
17
|
+
* Filename will be a plaintext string and thumbnail will be a base64 encoded image.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getThumbnailData(filePromise: File | Promise<File>): Promise<{
|
|
20
|
+
filename: any;
|
|
21
|
+
thumbnail: string;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Given a File (or a Promise<File>), convert the file to a source url and file type.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getRenderData(filePromise: File | Promise<File>): Promise<{
|
|
27
|
+
type: string;
|
|
28
|
+
url: string;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Utility hook for converting a list of files into a list of thumbnail information.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useThumbnailData(files: Promise<File>[]): {
|
|
34
|
+
filename: string;
|
|
35
|
+
thumbnail: string;
|
|
36
|
+
}[];
|
|
37
|
+
export declare const dataURLToFile: (dataURL: any, name: any) => File;
|
|
38
|
+
export declare const toBase64: (file: any) => Promise<string>;
|
|
39
|
+
export declare const isBase64Image: (string: any) => boolean;
|
|
40
40
|
//# sourceMappingURL=image.d.ts.map
|
package/dist/utils/init.d.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import FeatheryClient from './featheryClient';
|
|
2
|
-
export declare type FeatheryFieldTypes = null | boolean | string | string[] | number | number[] | Promise<File> | Promise<File>[] | Record<string, any>;
|
|
3
|
-
export declare type FieldValues = {
|
|
4
|
-
[fieldKey: string]: FeatheryFieldTypes;
|
|
5
|
-
};
|
|
6
|
-
declare type InitOptions = {
|
|
7
|
-
userId?: string;
|
|
8
|
-
cacheUserId?: boolean;
|
|
9
|
-
collaboratorId?: string;
|
|
10
|
-
collaboratorReview?: '' | 'readOnly' | 'editable';
|
|
11
|
-
preloadForms?: string[];
|
|
12
|
-
userTracking?: 'cookie' | 'fingerprint';
|
|
13
|
-
language?: string;
|
|
14
|
-
theme?: string;
|
|
15
|
-
noSave?: boolean;
|
|
16
|
-
_enterpriseRegion?: string;
|
|
17
|
-
};
|
|
18
|
-
declare type InitState = {
|
|
19
|
-
initialized: boolean;
|
|
20
|
-
sdkKey: string;
|
|
21
|
-
overrideUserId: boolean;
|
|
22
|
-
formSchemas: {
|
|
23
|
-
[formId: string]: any;
|
|
24
|
-
};
|
|
25
|
-
formSessions: {
|
|
26
|
-
[formId: string]: any;
|
|
27
|
-
};
|
|
28
|
-
fieldValuesInitialized: boolean;
|
|
29
|
-
redirectCallbacks: Record<string, any>;
|
|
30
|
-
renderCallbacks: Record<string, Record<string, any>>;
|
|
31
|
-
remountCallbacks: Record<string, any>;
|
|
32
|
-
defaultErrors: Record<string, string>;
|
|
33
|
-
isTestEnv: boolean;
|
|
34
|
-
theme: string;
|
|
35
|
-
region: string;
|
|
36
|
-
initNoSave: boolean;
|
|
37
|
-
_internalUserId: string;
|
|
38
|
-
} & InitOptions;
|
|
39
|
-
declare let initFormsPromise: Promise<void>;
|
|
40
|
-
export declare const defaultClient: FeatheryClient;
|
|
41
|
-
declare const initState: InitState;
|
|
42
|
-
declare let fieldValues: FieldValues;
|
|
43
|
-
declare let filePathMap: Record<string, null | string | (string | null)[]>;
|
|
44
|
-
export declare const fileDeduplicationCount: Record<string, number>;
|
|
45
|
-
export declare const fileRetryStatus: Record<string, boolean>;
|
|
46
|
-
declare function init(sdkKey: string, options?: InitOptions): Promise<string>;
|
|
47
|
-
declare function initInfo(): InitState;
|
|
48
|
-
declare function updateUserId(newUserId?: string, merge?: boolean): Promise<void>;
|
|
49
|
-
declare function updateTheme(newTheme?: string): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* If customers provide files through setFieldValues
|
|
52
|
-
* we need to explicitly convert any files to file Promises
|
|
53
|
-
* since they may not have done so
|
|
54
|
-
*/
|
|
55
|
-
declare function setFieldValues(userVals: FieldValues, rerender?: boolean, skipServerSubmit?: boolean): void;
|
|
56
|
-
declare function getFieldValues(): {
|
|
57
|
-
[x: string]: FeatheryFieldTypes;
|
|
58
|
-
};
|
|
59
|
-
export { init, initInfo, updateUserId, updateTheme, setFieldValues, getFieldValues, initState, initFormsPromise, fieldValues, filePathMap };
|
|
1
|
+
import FeatheryClient from './featheryClient';
|
|
2
|
+
export declare type FeatheryFieldTypes = null | boolean | string | string[] | number | number[] | Promise<File> | Promise<File>[] | Record<string, any>;
|
|
3
|
+
export declare type FieldValues = {
|
|
4
|
+
[fieldKey: string]: FeatheryFieldTypes;
|
|
5
|
+
};
|
|
6
|
+
declare type InitOptions = {
|
|
7
|
+
userId?: string;
|
|
8
|
+
cacheUserId?: boolean;
|
|
9
|
+
collaboratorId?: string;
|
|
10
|
+
collaboratorReview?: '' | 'readOnly' | 'editable';
|
|
11
|
+
preloadForms?: string[];
|
|
12
|
+
userTracking?: 'cookie' | 'fingerprint';
|
|
13
|
+
language?: string;
|
|
14
|
+
theme?: string;
|
|
15
|
+
noSave?: boolean;
|
|
16
|
+
_enterpriseRegion?: string;
|
|
17
|
+
};
|
|
18
|
+
declare type InitState = {
|
|
19
|
+
initialized: boolean;
|
|
20
|
+
sdkKey: string;
|
|
21
|
+
overrideUserId: boolean;
|
|
22
|
+
formSchemas: {
|
|
23
|
+
[formId: string]: any;
|
|
24
|
+
};
|
|
25
|
+
formSessions: {
|
|
26
|
+
[formId: string]: any;
|
|
27
|
+
};
|
|
28
|
+
fieldValuesInitialized: boolean;
|
|
29
|
+
redirectCallbacks: Record<string, any>;
|
|
30
|
+
renderCallbacks: Record<string, Record<string, any>>;
|
|
31
|
+
remountCallbacks: Record<string, any>;
|
|
32
|
+
defaultErrors: Record<string, string>;
|
|
33
|
+
isTestEnv: boolean;
|
|
34
|
+
theme: string;
|
|
35
|
+
region: string;
|
|
36
|
+
initNoSave: boolean;
|
|
37
|
+
_internalUserId: string;
|
|
38
|
+
} & InitOptions;
|
|
39
|
+
declare let initFormsPromise: Promise<void>;
|
|
40
|
+
export declare const defaultClient: FeatheryClient;
|
|
41
|
+
declare const initState: InitState;
|
|
42
|
+
declare let fieldValues: FieldValues;
|
|
43
|
+
declare let filePathMap: Record<string, null | string | (string | null)[]>;
|
|
44
|
+
export declare const fileDeduplicationCount: Record<string, number>;
|
|
45
|
+
export declare const fileRetryStatus: Record<string, boolean>;
|
|
46
|
+
declare function init(sdkKey: string, options?: InitOptions): Promise<string>;
|
|
47
|
+
declare function initInfo(): InitState;
|
|
48
|
+
declare function updateUserId(newUserId?: string, merge?: boolean): Promise<void>;
|
|
49
|
+
declare function updateTheme(newTheme?: string): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* If customers provide files through setFieldValues
|
|
52
|
+
* we need to explicitly convert any files to file Promises
|
|
53
|
+
* since they may not have done so
|
|
54
|
+
*/
|
|
55
|
+
declare function setFieldValues(userVals: FieldValues, rerender?: boolean, skipServerSubmit?: boolean): void;
|
|
56
|
+
declare function getFieldValues(): {
|
|
57
|
+
[x: string]: FeatheryFieldTypes;
|
|
58
|
+
};
|
|
59
|
+
export { init, initInfo, updateUserId, updateTheme, setFieldValues, getFieldValues, initState, initFormsPromise, fieldValues, filePathMap };
|
|
60
60
|
//# sourceMappingURL=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
-
export declare const isInteractionDetected: () => boolean;
|
|
2
|
-
export declare const setInteractionDetected: () => void;
|
|
3
|
-
export declare const FEATHERY_INTERACTION_EVENT = "feathery:interaction";
|
|
4
|
-
export declare const INTERACTION_EVENT_TYPES: string[];
|
|
1
|
+
export declare const isInteractionDetected: () => boolean;
|
|
2
|
+
export declare const setInteractionDetected: () => void;
|
|
3
|
+
export declare const FEATHERY_INTERACTION_EVENT = "feathery:interaction";
|
|
4
|
+
export declare const INTERACTION_EVENT_TYPES: string[];
|
|
5
5
|
//# sourceMappingURL=interactionState.d.ts.map
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldOptions, FieldProperties, FieldStyles } from './fieldHelperFunctions';
|
|
3
|
-
import Field from './entities/Field';
|
|
4
|
-
import SimplifiedProduct from '../integrations/stripe/SimplifiedProduct';
|
|
5
|
-
import Cart from '../integrations/stripe/Cart';
|
|
6
|
-
import Collaborator from './entities/Collaborator';
|
|
7
|
-
import FeatheryClient from './featheryClient';
|
|
8
|
-
export declare type IntegrationActionIds = string[] | string;
|
|
9
|
-
export declare type IntegrationActionOptions = {
|
|
10
|
-
waitForCompletion?: boolean;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare type RunIntegrationActions = (actionIds: IntegrationActionIds, options: IntegrationActionOptions) => Promise<{
|
|
14
|
-
ok: boolean;
|
|
15
|
-
error?: string;
|
|
16
|
-
payload?: any;
|
|
17
|
-
}>;
|
|
18
|
-
export declare type ExtractionActionOptions = {
|
|
19
|
-
waitForCompletion?: boolean;
|
|
20
|
-
pages?: number[] | number[][];
|
|
21
|
-
variantId?: string;
|
|
22
|
-
meetingUrl?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare type AlloyEntities = Record<string, any>[];
|
|
25
|
-
export declare type ApplyAlloyJourney = (journeyToken: string, entities: AlloyEntities) => Promise<{
|
|
26
|
-
ok: boolean;
|
|
27
|
-
error?: string;
|
|
28
|
-
payload?: any;
|
|
29
|
-
}>;
|
|
30
|
-
export declare type LoanProCustomerObject = Record<string, any>;
|
|
31
|
-
export declare type SearchLoanProCustomer = () => Promise<{
|
|
32
|
-
ok: boolean;
|
|
33
|
-
error?: any;
|
|
34
|
-
payload?: any;
|
|
35
|
-
}>;
|
|
36
|
-
export declare type CreateLoanProCustomer = (bodyParams: LoanProCustomerObject) => Promise<{
|
|
37
|
-
ok: boolean;
|
|
38
|
-
error?: any;
|
|
39
|
-
payload?: any;
|
|
40
|
-
}>;
|
|
41
|
-
export declare type GetConfigParams = {
|
|
42
|
-
filter?: Record<string, any>;
|
|
43
|
-
keys?: string[];
|
|
44
|
-
unique?: boolean;
|
|
45
|
-
};
|
|
46
|
-
export declare type GetConfig = ({ filter, keys, unique }: GetConfigParams) => Promise<Record<string, any>[]>;
|
|
47
|
-
export interface FormInternalState {
|
|
48
|
-
language: string | undefined;
|
|
49
|
-
currentStep: any;
|
|
50
|
-
previousStepName: string;
|
|
51
|
-
visiblePositions: any;
|
|
52
|
-
client: FeatheryClient;
|
|
53
|
-
formName: string;
|
|
54
|
-
formId: string;
|
|
55
|
-
fields: Record<string, Field>;
|
|
56
|
-
products: Record<string, SimplifiedProduct>;
|
|
57
|
-
cart: Cart;
|
|
58
|
-
collaborator: Collaborator;
|
|
59
|
-
trackHashes?: boolean;
|
|
60
|
-
formRef: React.MutableRefObject<any>;
|
|
61
|
-
formSettings: any;
|
|
62
|
-
getErrorCallback: (props1?: Record<string, unknown>) => (props2?: Record<string, unknown>) => Promise<boolean>;
|
|
63
|
-
navigate: any;
|
|
64
|
-
inlineErrors: Record<string, {
|
|
65
|
-
message: string;
|
|
66
|
-
index: number;
|
|
67
|
-
}>;
|
|
68
|
-
setInlineErrors: React.Dispatch<React.SetStateAction<Record<string, {
|
|
69
|
-
message: string;
|
|
70
|
-
index: number;
|
|
71
|
-
}>>>;
|
|
72
|
-
setUserProgress: React.Dispatch<React.SetStateAction<null>>;
|
|
73
|
-
steps: any;
|
|
74
|
-
setStepKey: (key: string) => void;
|
|
75
|
-
updateFieldOptions: (newOptions: FieldOptions, repeatIndex?: number) => void;
|
|
76
|
-
updateFieldStyles: (fieldKey: string, newStyles: FieldStyles) => void;
|
|
77
|
-
updateFieldProperties: (fieldKey: string, newProperties: FieldProperties, onServar?: boolean) => void;
|
|
78
|
-
setFieldErrors: (errors: Record<string, string | {
|
|
79
|
-
index: number;
|
|
80
|
-
message: string;
|
|
81
|
-
}>) => void;
|
|
82
|
-
setCalendlyUrl: (url: string) => void;
|
|
83
|
-
runAIExtraction: (extractionId: string, options: ExtractionActionOptions | boolean, pages?: number[] | number[][]) => Promise<Record<string, string>>;
|
|
84
|
-
getConfig: GetConfig;
|
|
85
|
-
}
|
|
86
|
-
declare type InternalState = {
|
|
87
|
-
[formUuid: string]: FormInternalState;
|
|
88
|
-
};
|
|
89
|
-
declare const internalState: InternalState;
|
|
90
|
-
export declare const setFormInternalState: (formUuid: string, stateValues: Record<string, any>, keysToKeepStable?: string[]) => FormInternalState;
|
|
91
|
-
export default internalState;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldOptions, FieldProperties, FieldStyles } from './fieldHelperFunctions';
|
|
3
|
+
import Field from './entities/Field';
|
|
4
|
+
import SimplifiedProduct from '../integrations/stripe/SimplifiedProduct';
|
|
5
|
+
import Cart from '../integrations/stripe/Cart';
|
|
6
|
+
import Collaborator from './entities/Collaborator';
|
|
7
|
+
import FeatheryClient from './featheryClient';
|
|
8
|
+
export declare type IntegrationActionIds = string[] | string;
|
|
9
|
+
export declare type IntegrationActionOptions = {
|
|
10
|
+
waitForCompletion?: boolean;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare type RunIntegrationActions = (actionIds: IntegrationActionIds, options: IntegrationActionOptions) => Promise<{
|
|
14
|
+
ok: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
payload?: any;
|
|
17
|
+
}>;
|
|
18
|
+
export declare type ExtractionActionOptions = {
|
|
19
|
+
waitForCompletion?: boolean;
|
|
20
|
+
pages?: number[] | number[][];
|
|
21
|
+
variantId?: string;
|
|
22
|
+
meetingUrl?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type AlloyEntities = Record<string, any>[];
|
|
25
|
+
export declare type ApplyAlloyJourney = (journeyToken: string, entities: AlloyEntities) => Promise<{
|
|
26
|
+
ok: boolean;
|
|
27
|
+
error?: string;
|
|
28
|
+
payload?: any;
|
|
29
|
+
}>;
|
|
30
|
+
export declare type LoanProCustomerObject = Record<string, any>;
|
|
31
|
+
export declare type SearchLoanProCustomer = () => Promise<{
|
|
32
|
+
ok: boolean;
|
|
33
|
+
error?: any;
|
|
34
|
+
payload?: any;
|
|
35
|
+
}>;
|
|
36
|
+
export declare type CreateLoanProCustomer = (bodyParams: LoanProCustomerObject) => Promise<{
|
|
37
|
+
ok: boolean;
|
|
38
|
+
error?: any;
|
|
39
|
+
payload?: any;
|
|
40
|
+
}>;
|
|
41
|
+
export declare type GetConfigParams = {
|
|
42
|
+
filter?: Record<string, any>;
|
|
43
|
+
keys?: string[];
|
|
44
|
+
unique?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export declare type GetConfig = ({ filter, keys, unique }: GetConfigParams) => Promise<Record<string, any>[]>;
|
|
47
|
+
export interface FormInternalState {
|
|
48
|
+
language: string | undefined;
|
|
49
|
+
currentStep: any;
|
|
50
|
+
previousStepName: string;
|
|
51
|
+
visiblePositions: any;
|
|
52
|
+
client: FeatheryClient;
|
|
53
|
+
formName: string;
|
|
54
|
+
formId: string;
|
|
55
|
+
fields: Record<string, Field>;
|
|
56
|
+
products: Record<string, SimplifiedProduct>;
|
|
57
|
+
cart: Cart;
|
|
58
|
+
collaborator: Collaborator;
|
|
59
|
+
trackHashes?: boolean;
|
|
60
|
+
formRef: React.MutableRefObject<any>;
|
|
61
|
+
formSettings: any;
|
|
62
|
+
getErrorCallback: (props1?: Record<string, unknown>) => (props2?: Record<string, unknown>) => Promise<boolean>;
|
|
63
|
+
navigate: any;
|
|
64
|
+
inlineErrors: Record<string, {
|
|
65
|
+
message: string;
|
|
66
|
+
index: number;
|
|
67
|
+
}>;
|
|
68
|
+
setInlineErrors: React.Dispatch<React.SetStateAction<Record<string, {
|
|
69
|
+
message: string;
|
|
70
|
+
index: number;
|
|
71
|
+
}>>>;
|
|
72
|
+
setUserProgress: React.Dispatch<React.SetStateAction<null>>;
|
|
73
|
+
steps: any;
|
|
74
|
+
setStepKey: (key: string) => void;
|
|
75
|
+
updateFieldOptions: (newOptions: FieldOptions, repeatIndex?: number) => void;
|
|
76
|
+
updateFieldStyles: (fieldKey: string, newStyles: FieldStyles) => void;
|
|
77
|
+
updateFieldProperties: (fieldKey: string, newProperties: FieldProperties, onServar?: boolean) => void;
|
|
78
|
+
setFieldErrors: (errors: Record<string, string | {
|
|
79
|
+
index: number;
|
|
80
|
+
message: string;
|
|
81
|
+
}>) => void;
|
|
82
|
+
setCalendlyUrl: (url: string) => void;
|
|
83
|
+
runAIExtraction: (extractionId: string, options: ExtractionActionOptions | boolean, pages?: number[] | number[][]) => Promise<Record<string, string>>;
|
|
84
|
+
getConfig: GetConfig;
|
|
85
|
+
}
|
|
86
|
+
declare type InternalState = {
|
|
87
|
+
[formUuid: string]: FormInternalState;
|
|
88
|
+
};
|
|
89
|
+
declare const internalState: InternalState;
|
|
90
|
+
export declare const setFormInternalState: (formUuid: string, stateValues: Record<string, any>, keysToKeepStable?: string[]) => FormInternalState;
|
|
91
|
+
export default internalState;
|
|
92
92
|
//# sourceMappingURL=internalState.d.ts.map
|