@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,3 +1,3 @@
|
|
|
1
|
-
export declare function installAlloy(isAlloyActive: any): any;
|
|
2
|
-
export declare function verifyAlloyId(actionConfig: any, alloyConfig: any, onSuccess: any): Promise<void>;
|
|
1
|
+
export declare function installAlloy(isAlloyActive: any): any;
|
|
2
|
+
export declare function verifyAlloyId(actionConfig: any, alloyConfig: any, onSuccess: any): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=alloy.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function installAmplitude(amplitudeConfig: any): Promise<void>;
|
|
1
|
+
export declare function installAmplitude(amplitudeConfig: any): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=amplitude.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function installArgyle(isArgyleActive: any): any;
|
|
2
|
-
export declare function openArgyleLink(client: any, onSuccess: any, argyleConfig: any): Promise<void>;
|
|
1
|
+
export declare function installArgyle(isArgyleActive: any): any;
|
|
2
|
+
export declare function openArgyleLink(client: any, onSuccess: any, argyleConfig: any): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=argyle.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function transformCalendlyParams(config: any): string;
|
|
2
|
-
export declare function isCalendlyWindowEvent(e: any): any;
|
|
1
|
+
export declare function transformCalendlyParams(config: any): string;
|
|
2
|
+
export declare function isCalendlyWindowEvent(e: any): any;
|
|
3
3
|
//# sourceMappingURL=calendly.d.ts.map
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export declare function installFirebase(firebaseConfig: any): any;
|
|
2
|
-
export declare function firebaseLoginOnLoad(featheryClient: any): Promise<any>;
|
|
3
|
-
export declare function getCurrentSession(): Promise<any>;
|
|
4
|
-
export declare function firebaseSendMagicLink({ fieldVal, servar }: {
|
|
5
|
-
fieldVal: string;
|
|
6
|
-
servar: any;
|
|
7
|
-
}): Promise<any>;
|
|
8
|
-
export declare function firebaseSendSms({ fieldVal, servar }: {
|
|
9
|
-
fieldVal: string;
|
|
10
|
-
servar: any;
|
|
11
|
-
}): Promise<any>;
|
|
12
|
-
export declare function firebaseVerifySms({ fieldVal, featheryClient }: any): Promise<any>;
|
|
13
|
-
export declare function firebaseSignInPopup(oauthType: keyof typeof OAUTH_PROVIDER_MAP, featheryClient: any): Promise<any>;
|
|
14
|
-
export declare function isHrefFirebaseMagicLink(): boolean;
|
|
15
|
-
export declare function useFirebaseRecaptcha(step: any): void;
|
|
16
|
-
declare const OAUTH_PROVIDER_MAP: {
|
|
17
|
-
google: {
|
|
18
|
-
provider: string;
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
facebook: {
|
|
22
|
-
provider: string;
|
|
23
|
-
id: string;
|
|
24
|
-
};
|
|
25
|
-
apple: {
|
|
26
|
-
provider: string;
|
|
27
|
-
id: string;
|
|
28
|
-
};
|
|
29
|
-
twitter: {
|
|
30
|
-
provider: string;
|
|
31
|
-
id: string;
|
|
32
|
-
};
|
|
33
|
-
github: {
|
|
34
|
-
provider: string;
|
|
35
|
-
id: string;
|
|
36
|
-
};
|
|
37
|
-
microsoft: {
|
|
38
|
-
provider: string;
|
|
39
|
-
id: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
1
|
+
export declare function installFirebase(firebaseConfig: any): any;
|
|
2
|
+
export declare function firebaseLoginOnLoad(featheryClient: any): Promise<any>;
|
|
3
|
+
export declare function getCurrentSession(): Promise<any>;
|
|
4
|
+
export declare function firebaseSendMagicLink({ fieldVal, servar }: {
|
|
5
|
+
fieldVal: string;
|
|
6
|
+
servar: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export declare function firebaseSendSms({ fieldVal, servar }: {
|
|
9
|
+
fieldVal: string;
|
|
10
|
+
servar: any;
|
|
11
|
+
}): Promise<any>;
|
|
12
|
+
export declare function firebaseVerifySms({ fieldVal, featheryClient }: any): Promise<any>;
|
|
13
|
+
export declare function firebaseSignInPopup(oauthType: keyof typeof OAUTH_PROVIDER_MAP, featheryClient: any): Promise<any>;
|
|
14
|
+
export declare function isHrefFirebaseMagicLink(): boolean;
|
|
15
|
+
export declare function useFirebaseRecaptcha(step: any): void;
|
|
16
|
+
declare const OAUTH_PROVIDER_MAP: {
|
|
17
|
+
google: {
|
|
18
|
+
provider: string;
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
facebook: {
|
|
22
|
+
provider: string;
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
apple: {
|
|
26
|
+
provider: string;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
twitter: {
|
|
30
|
+
provider: string;
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
github: {
|
|
34
|
+
provider: string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
microsoft: {
|
|
38
|
+
provider: string;
|
|
39
|
+
id: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
43
|
//# sourceMappingURL=firebase.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import IntegrationClient from '../../utils/featheryClient/integrationClient';
|
|
2
|
-
declare type UpdateFieldValuesCallback = (fieldValues: any) => void;
|
|
3
|
-
export declare function useFlinksConnect(): {
|
|
4
|
-
openFlinksConnect: (client: IntegrationClient, onSuccess: () => void, onError: (err?: string | undefined) => void, flinksConfig: any, updateFieldValues: UpdateFieldValuesCallback) => Promise<{
|
|
5
|
-
err: any;
|
|
6
|
-
fieldValues: {};
|
|
7
|
-
} | undefined>;
|
|
8
|
-
flinksFrame: import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
1
|
+
import IntegrationClient from '../../utils/featheryClient/integrationClient';
|
|
2
|
+
declare type UpdateFieldValuesCallback = (fieldValues: any) => void;
|
|
3
|
+
export declare function useFlinksConnect(): {
|
|
4
|
+
openFlinksConnect: (client: IntegrationClient, onSuccess: () => void, onError: (err?: string | undefined) => void, flinksConfig: any, updateFieldValues: UpdateFieldValuesCallback) => Promise<{
|
|
5
|
+
err: any;
|
|
6
|
+
fieldValues: {};
|
|
7
|
+
} | undefined>;
|
|
8
|
+
flinksFrame: import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import IntegrationClient from '../../utils/featheryClient/integrationClient';
|
|
2
|
-
export declare function getIframeAuthorizationToken(client: IntegrationClient): Promise<{
|
|
3
|
-
token: any;
|
|
4
|
-
err?: undefined;
|
|
5
|
-
} | {
|
|
6
|
-
err: any;
|
|
7
|
-
token?: undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export declare function setupFlinks(client: IntegrationClient, loginId: string, accountId: string, token: string): Promise<{
|
|
10
|
-
err: string;
|
|
11
|
-
fieldValues: {};
|
|
12
|
-
}>;
|
|
1
|
+
import IntegrationClient from '../../utils/featheryClient/integrationClient';
|
|
2
|
+
export declare function getIframeAuthorizationToken(client: IntegrationClient): Promise<{
|
|
3
|
+
token: any;
|
|
4
|
+
err?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
err: any;
|
|
7
|
+
token?: undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function setupFlinks(client: IntegrationClient, loginId: string, accountId: string, token: string): Promise<{
|
|
10
|
+
err: string;
|
|
11
|
+
fieldValues: {};
|
|
12
|
+
}>;
|
|
13
13
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare let gaInstalled: boolean;
|
|
2
|
-
export declare function installGoogleAnalytics(gaConfig: any): Promise<void>;
|
|
3
|
-
export declare function trackGAEvent(category: string, action: string, label: string): void;
|
|
1
|
+
export declare let gaInstalled: boolean;
|
|
2
|
+
export declare function installGoogleAnalytics(gaConfig: any): Promise<void>;
|
|
3
|
+
export declare function trackGAEvent(category: string, action: string, label: string): void;
|
|
4
4
|
//# sourceMappingURL=googleAnalytics.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function initializeTagManager(gtmConfig: any): void;
|
|
1
|
+
export declare function initializeTagManager(gtmConfig: any): void;
|
|
2
2
|
//# sourceMappingURL=googleTagManager.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare let heapInstalled: boolean;
|
|
2
|
-
export declare function installHeap(heapConfig: any): Promise<void>;
|
|
1
|
+
export declare let heapInstalled: boolean;
|
|
2
|
+
export declare function installHeap(heapConfig: any): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=heap.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare let intercomInstalled: boolean;
|
|
2
|
-
export declare function installIntercom(intercomConfig: any): Promise<void>;
|
|
1
|
+
export declare let intercomInstalled: boolean;
|
|
2
|
+
export declare function installIntercom(intercomConfig: any): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=intercom.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare let mixpanelInstalled: boolean;
|
|
2
|
-
export declare function installMixpanel(mixpanelConfig: any): Promise<void>;
|
|
1
|
+
export declare let mixpanelInstalled: boolean;
|
|
2
|
+
export declare function installMixpanel(mixpanelConfig: any): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=mixpanel.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function installPersona(personaConfig: any): Promise<void>;
|
|
2
|
-
export declare function triggerPersona(config: any, onComplete: any, setErr: any, updateFieldValues: any, featheryClient: any): void;
|
|
1
|
+
export declare function installPersona(personaConfig: any): Promise<void>;
|
|
2
|
+
export declare function triggerPersona(config: any, onComplete: any, setErr: any, updateFieldValues: any, featheryClient: any): void;
|
|
3
3
|
//# sourceMappingURL=persona.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function installPlaid(isPlaidActive: any): any;
|
|
2
|
-
export declare function openPlaidLink(client: any, onSuccess: any, onExit: any, updateFieldValues: any, action: any, handleError: any): Promise<void>;
|
|
1
|
+
export declare function installPlaid(isPlaidActive: any): any;
|
|
2
|
+
export declare function openPlaidLink(client: any, onSuccess: any, onExit: any, updateFieldValues: any, action: any, handleError: any): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=plaid.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function installRecaptcha(steps: Record<string, any>): Promise<void>;
|
|
2
|
-
export declare function verifyRecaptcha(client: any): Promise<any>;
|
|
1
|
+
export declare function installRecaptcha(steps: Record<string, any>): Promise<void>;
|
|
2
|
+
export declare function verifyRecaptcha(client: any): Promise<any>;
|
|
3
3
|
//# sourceMappingURL=recaptcha.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare let rudderStackInstalled: boolean;
|
|
2
|
-
export declare function installRudderStack(rudderStackConfig: any): Promise<void>;
|
|
3
|
-
export declare function trackRudderEvent(title: string, properties: Record<string, any>, integ: any): void;
|
|
1
|
+
export declare let rudderStackInstalled: boolean;
|
|
2
|
+
export declare function installRudderStack(rudderStackConfig: any): Promise<void>;
|
|
3
|
+
export declare function trackRudderEvent(title: string, properties: Record<string, any>, integ: any): void;
|
|
4
4
|
//# sourceMappingURL=rudderstack.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function createSchwabContact(client: any, setElementError: any): Promise<void>;
|
|
1
|
+
export declare function createSchwabContact(client: any, setElementError: any): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=schwab.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function installSegment(segmentConfig: any): Promise<void>;
|
|
1
|
+
export declare function installSegment(segmentConfig: any): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=segment.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { StripeConfig } from './';
|
|
2
|
-
export default class Cart {
|
|
3
|
-
_productPriceCacheConfig: {
|
|
4
|
-
[x: string]: import("./stripe").Product;
|
|
5
|
-
};
|
|
6
|
-
_updateFieldValues: any;
|
|
7
|
-
_stripeConfig: StripeConfig;
|
|
8
|
-
_client: any;
|
|
9
|
-
constructor(updateFieldValues: any, stripeConfig: StripeConfig, client: any);
|
|
10
|
-
get items(): any;
|
|
11
|
-
get total(): string;
|
|
12
|
-
get total_formatted(): string;
|
|
13
|
-
addProductToCart(productId: string, quantity: number, replace?: boolean): {
|
|
14
|
-
[x: string]: number;
|
|
15
|
-
};
|
|
16
|
-
removeProductFromCart(productId: string): {
|
|
17
|
-
[x: string]: number;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
1
|
+
import { StripeConfig } from './';
|
|
2
|
+
export default class Cart {
|
|
3
|
+
_productPriceCacheConfig: {
|
|
4
|
+
[x: string]: import("./stripe").Product;
|
|
5
|
+
};
|
|
6
|
+
_updateFieldValues: any;
|
|
7
|
+
_stripeConfig: StripeConfig;
|
|
8
|
+
_client: any;
|
|
9
|
+
constructor(updateFieldValues: any, stripeConfig: StripeConfig, client: any);
|
|
10
|
+
get items(): any;
|
|
11
|
+
get total(): string;
|
|
12
|
+
get total_formatted(): string;
|
|
13
|
+
addProductToCart(productId: string, quantity: number, replace?: boolean): {
|
|
14
|
+
[x: string]: number;
|
|
15
|
+
};
|
|
16
|
+
removeProductFromCart(productId: string): {
|
|
17
|
+
[x: string]: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
20
|
//# sourceMappingURL=Cart.d.ts.map
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { Price, Product as StripeProductProductCacheItem, StripeConfig } from './stripe';
|
|
2
|
-
export default class SimplifiedProduct {
|
|
3
|
-
_id: string;
|
|
4
|
-
_productPriceCacheItem: StripeProductProductCacheItem;
|
|
5
|
-
_defaultPrice: Price | undefined;
|
|
6
|
-
_mode: 'live' | 'test';
|
|
7
|
-
_updateFieldValues: any;
|
|
8
|
-
_stripeConfig: StripeConfig;
|
|
9
|
-
_client: any;
|
|
10
|
-
constructor(id: string, productPriceCacheItem: StripeProductProductCacheItem, mode: 'live' | 'test', updateFieldValues: any, stripeConfig: StripeConfig, client: any);
|
|
11
|
-
get id(): string;
|
|
12
|
-
get name(): string;
|
|
13
|
-
get description(): string;
|
|
14
|
-
get active(): boolean;
|
|
15
|
-
get price(): string;
|
|
16
|
-
get price_formatted(): string;
|
|
17
|
-
get currency(): string;
|
|
18
|
-
get subscription_interval(): string;
|
|
19
|
-
get pricing_type(): string;
|
|
20
|
-
get recurring_billing_type(): string;
|
|
21
|
-
get mode(): string;
|
|
22
|
-
getCartQuantity(): number;
|
|
23
|
-
get cart_quantity(): string;
|
|
24
|
-
get cart_subtotal(): string;
|
|
25
|
-
get cart_subtotal_formatted(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Add this product to the cart
|
|
28
|
-
* @param quantity
|
|
29
|
-
* @param replace
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
addToCart(quantity: number, replace?: boolean): {
|
|
33
|
-
[x: string]: number;
|
|
34
|
-
};
|
|
35
|
-
removeFromCart(): {
|
|
36
|
-
[x: string]: number;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export declare function getDefaultPrice(productPriceCacheItem: StripeProductProductCacheItem): Price | undefined;
|
|
1
|
+
import { Price, Product as StripeProductProductCacheItem, StripeConfig } from './stripe';
|
|
2
|
+
export default class SimplifiedProduct {
|
|
3
|
+
_id: string;
|
|
4
|
+
_productPriceCacheItem: StripeProductProductCacheItem;
|
|
5
|
+
_defaultPrice: Price | undefined;
|
|
6
|
+
_mode: 'live' | 'test';
|
|
7
|
+
_updateFieldValues: any;
|
|
8
|
+
_stripeConfig: StripeConfig;
|
|
9
|
+
_client: any;
|
|
10
|
+
constructor(id: string, productPriceCacheItem: StripeProductProductCacheItem, mode: 'live' | 'test', updateFieldValues: any, stripeConfig: StripeConfig, client: any);
|
|
11
|
+
get id(): string;
|
|
12
|
+
get name(): string;
|
|
13
|
+
get description(): string;
|
|
14
|
+
get active(): boolean;
|
|
15
|
+
get price(): string;
|
|
16
|
+
get price_formatted(): string;
|
|
17
|
+
get currency(): string;
|
|
18
|
+
get subscription_interval(): string;
|
|
19
|
+
get pricing_type(): string;
|
|
20
|
+
get recurring_billing_type(): string;
|
|
21
|
+
get mode(): string;
|
|
22
|
+
getCartQuantity(): number;
|
|
23
|
+
get cart_quantity(): string;
|
|
24
|
+
get cart_subtotal(): string;
|
|
25
|
+
get cart_subtotal_formatted(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Add this product to the cart
|
|
28
|
+
* @param quantity
|
|
29
|
+
* @param replace
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
addToCart(quantity: number, replace?: boolean): {
|
|
33
|
+
[x: string]: number;
|
|
34
|
+
};
|
|
35
|
+
removeFromCart(): {
|
|
36
|
+
[x: string]: number;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare function getDefaultPrice(productPriceCacheItem: StripeProductProductCacheItem): Price | undefined;
|
|
40
40
|
//# sourceMappingURL=SimplifiedProduct.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './stripe';
|
|
1
|
+
export * from './stripe';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { ActionData } from '../utils';
|
|
2
|
-
import Cart from './Cart';
|
|
3
|
-
import BigDecimal from 'js-big-decimal';
|
|
4
|
-
export declare const getStripe: () => Promise<unknown>;
|
|
5
|
-
export declare function installStripe(stripeConfig: any): Promise<void>;
|
|
6
|
-
export declare function getFlatStripeCustomerFieldValues(stripeConfig: any): Record<string, any>;
|
|
7
|
-
export declare const FEATHERY_CART = "feathery.cart";
|
|
8
|
-
export declare const FEATHERY_CART_TOTAL = "feathery.cart.total";
|
|
9
|
-
export declare function getPaymentsReservedFieldValues(): Record<string, any>;
|
|
10
|
-
/**
|
|
11
|
-
* Used to set up a payment method.
|
|
12
|
-
*/
|
|
13
|
-
export declare function setupPaymentMethod({ pmField, client, formattedFields, updateFieldValues, integrationData, targetElement }: ActionData, syncFields?: boolean, stripePromise?: null): Promise<{
|
|
14
|
-
errorField: any;
|
|
15
|
-
errorMessage: any;
|
|
16
|
-
} | null>;
|
|
17
|
-
interface PaymentAction {
|
|
18
|
-
product_id: string;
|
|
19
|
-
quantity_field?: string;
|
|
20
|
-
fixed_quantity?: number;
|
|
21
|
-
toggle?: boolean;
|
|
22
|
-
add_to_quantity?: boolean;
|
|
23
|
-
clear_cart: boolean;
|
|
24
|
-
success_url?: string;
|
|
25
|
-
cancel_url?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Determines if a product is in the cart selections with a quantity greater than 0
|
|
29
|
-
* @param productId
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export declare function isProductInPurchaseSelections(productId: string): boolean | 0;
|
|
33
|
-
interface PricingTier {
|
|
34
|
-
up_to: number | null;
|
|
35
|
-
unit_amount?: number;
|
|
36
|
-
flat_amount?: number;
|
|
37
|
-
}
|
|
38
|
-
declare type PRICE_TYPE = 'one_time' | 'recurring';
|
|
39
|
-
export interface Price {
|
|
40
|
-
id: string;
|
|
41
|
-
currency?: string;
|
|
42
|
-
type: PRICE_TYPE;
|
|
43
|
-
recurring_interval?: 'month' | 'year' | 'week' | 'day' | null | '';
|
|
44
|
-
recurring_usage_type?: 'licensed' | 'metered';
|
|
45
|
-
billing_scheme: 'per_unit' | 'tiered';
|
|
46
|
-
unit_amount?: number;
|
|
47
|
-
per_unit_units?: number;
|
|
48
|
-
per_unit_rounding?: 'up' | 'down';
|
|
49
|
-
tiers_mode?: 'graduated' | 'volume';
|
|
50
|
-
tiers?: PricingTier[];
|
|
51
|
-
}
|
|
52
|
-
export interface Product {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
description: string;
|
|
56
|
-
active: boolean;
|
|
57
|
-
default_price: string;
|
|
58
|
-
prices: Price[];
|
|
59
|
-
}
|
|
60
|
-
export interface ProductPriceCacheConfig {
|
|
61
|
-
product_price_cache: Record<string, Product>;
|
|
62
|
-
}
|
|
63
|
-
export interface StripeConfig {
|
|
64
|
-
metadata: {
|
|
65
|
-
test?: ProductPriceCacheConfig;
|
|
66
|
-
live?: ProductPriceCacheConfig;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export declare function getCart(stripeConfig: StripeConfig, updateFieldValues: any, client: any): Cart;
|
|
70
|
-
export declare function getSimplifiedProducts(stripeConfig: StripeConfig, updateFieldValues: any, client: any): Record<string, any>;
|
|
71
|
-
export declare function getLiveOrTestProduct(productId: string, stripeConfig: StripeConfig): string;
|
|
72
|
-
/**
|
|
73
|
-
* Add to cart function
|
|
74
|
-
* If add_to_quantity is false, then the quantity is replaced with the new quantity,
|
|
75
|
-
* otherwise the new quantity is added to the existing quantity.
|
|
76
|
-
*/
|
|
77
|
-
export declare function addToCart(paymentAction: PaymentAction, updateFieldValues: any, stripeConfig: StripeConfig, client: any): Record<string, number> | null;
|
|
78
|
-
/**
|
|
79
|
-
* Remove from cart function.
|
|
80
|
-
* Clear the cart completely if clear_cart is true.
|
|
81
|
-
*/
|
|
82
|
-
export declare function removeFromCart(paymentAction: PaymentAction, updateFieldValues: any, stripeConfig: any, client: any): Record<string, number> | null;
|
|
83
|
-
/**
|
|
84
|
-
* Used to either collect payment directly or launch stripe checkout to collect payment.
|
|
85
|
-
*/
|
|
86
|
-
export declare function purchaseCart(actionData: ActionData, stripePromise?: null): Promise<{
|
|
87
|
-
errorField: any;
|
|
88
|
-
errorMessage: any;
|
|
89
|
-
} | null>;
|
|
90
|
-
export declare function checkForPaymentCheckoutCompletion(steps: any, client: any, updateFieldValues: (fieldValues: any, options?: any) => void, integrationData: any): Promise<void>;
|
|
91
|
-
export declare function usePayments(): [
|
|
92
|
-
(key: string) => any,
|
|
93
|
-
(key: string, cardElement: any) => void
|
|
94
|
-
];
|
|
95
|
-
export declare function calculateSelectedProductsTotal(stripeConfig: StripeConfig, updateFieldValues: (fv: Record<string, any>) => void, client: any): string;
|
|
96
|
-
export declare function calculateLineItemCost(product: Product | undefined, quantity: number, inMajorUnits?: boolean): BigDecimal;
|
|
97
|
-
export {};
|
|
1
|
+
import { ActionData } from '../utils';
|
|
2
|
+
import Cart from './Cart';
|
|
3
|
+
import BigDecimal from 'js-big-decimal';
|
|
4
|
+
export declare const getStripe: () => Promise<unknown>;
|
|
5
|
+
export declare function installStripe(stripeConfig: any): Promise<void>;
|
|
6
|
+
export declare function getFlatStripeCustomerFieldValues(stripeConfig: any): Record<string, any>;
|
|
7
|
+
export declare const FEATHERY_CART = "feathery.cart";
|
|
8
|
+
export declare const FEATHERY_CART_TOTAL = "feathery.cart.total";
|
|
9
|
+
export declare function getPaymentsReservedFieldValues(): Record<string, any>;
|
|
10
|
+
/**
|
|
11
|
+
* Used to set up a payment method.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setupPaymentMethod({ pmField, client, formattedFields, updateFieldValues, integrationData, targetElement }: ActionData, syncFields?: boolean, stripePromise?: null): Promise<{
|
|
14
|
+
errorField: any;
|
|
15
|
+
errorMessage: any;
|
|
16
|
+
} | null>;
|
|
17
|
+
interface PaymentAction {
|
|
18
|
+
product_id: string;
|
|
19
|
+
quantity_field?: string;
|
|
20
|
+
fixed_quantity?: number;
|
|
21
|
+
toggle?: boolean;
|
|
22
|
+
add_to_quantity?: boolean;
|
|
23
|
+
clear_cart: boolean;
|
|
24
|
+
success_url?: string;
|
|
25
|
+
cancel_url?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Determines if a product is in the cart selections with a quantity greater than 0
|
|
29
|
+
* @param productId
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function isProductInPurchaseSelections(productId: string): boolean | 0;
|
|
33
|
+
interface PricingTier {
|
|
34
|
+
up_to: number | null;
|
|
35
|
+
unit_amount?: number;
|
|
36
|
+
flat_amount?: number;
|
|
37
|
+
}
|
|
38
|
+
declare type PRICE_TYPE = 'one_time' | 'recurring';
|
|
39
|
+
export interface Price {
|
|
40
|
+
id: string;
|
|
41
|
+
currency?: string;
|
|
42
|
+
type: PRICE_TYPE;
|
|
43
|
+
recurring_interval?: 'month' | 'year' | 'week' | 'day' | null | '';
|
|
44
|
+
recurring_usage_type?: 'licensed' | 'metered';
|
|
45
|
+
billing_scheme: 'per_unit' | 'tiered';
|
|
46
|
+
unit_amount?: number;
|
|
47
|
+
per_unit_units?: number;
|
|
48
|
+
per_unit_rounding?: 'up' | 'down';
|
|
49
|
+
tiers_mode?: 'graduated' | 'volume';
|
|
50
|
+
tiers?: PricingTier[];
|
|
51
|
+
}
|
|
52
|
+
export interface Product {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
active: boolean;
|
|
57
|
+
default_price: string;
|
|
58
|
+
prices: Price[];
|
|
59
|
+
}
|
|
60
|
+
export interface ProductPriceCacheConfig {
|
|
61
|
+
product_price_cache: Record<string, Product>;
|
|
62
|
+
}
|
|
63
|
+
export interface StripeConfig {
|
|
64
|
+
metadata: {
|
|
65
|
+
test?: ProductPriceCacheConfig;
|
|
66
|
+
live?: ProductPriceCacheConfig;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export declare function getCart(stripeConfig: StripeConfig, updateFieldValues: any, client: any): Cart;
|
|
70
|
+
export declare function getSimplifiedProducts(stripeConfig: StripeConfig, updateFieldValues: any, client: any): Record<string, any>;
|
|
71
|
+
export declare function getLiveOrTestProduct(productId: string, stripeConfig: StripeConfig): string;
|
|
72
|
+
/**
|
|
73
|
+
* Add to cart function
|
|
74
|
+
* If add_to_quantity is false, then the quantity is replaced with the new quantity,
|
|
75
|
+
* otherwise the new quantity is added to the existing quantity.
|
|
76
|
+
*/
|
|
77
|
+
export declare function addToCart(paymentAction: PaymentAction, updateFieldValues: any, stripeConfig: StripeConfig, client: any): Record<string, number> | null;
|
|
78
|
+
/**
|
|
79
|
+
* Remove from cart function.
|
|
80
|
+
* Clear the cart completely if clear_cart is true.
|
|
81
|
+
*/
|
|
82
|
+
export declare function removeFromCart(paymentAction: PaymentAction, updateFieldValues: any, stripeConfig: any, client: any): Record<string, number> | null;
|
|
83
|
+
/**
|
|
84
|
+
* Used to either collect payment directly or launch stripe checkout to collect payment.
|
|
85
|
+
*/
|
|
86
|
+
export declare function purchaseCart(actionData: ActionData, stripePromise?: null): Promise<{
|
|
87
|
+
errorField: any;
|
|
88
|
+
errorMessage: any;
|
|
89
|
+
} | null>;
|
|
90
|
+
export declare function checkForPaymentCheckoutCompletion(steps: any, client: any, updateFieldValues: (fieldValues: any, options?: any) => void, integrationData: any): Promise<void>;
|
|
91
|
+
export declare function usePayments(): [
|
|
92
|
+
(key: string) => any,
|
|
93
|
+
(key: string, cardElement: any) => void
|
|
94
|
+
];
|
|
95
|
+
export declare function calculateSelectedProductsTotal(stripeConfig: StripeConfig, updateFieldValues: (fv: Record<string, any>) => void, client: any): string;
|
|
96
|
+
export declare function calculateLineItemCost(product: Product | undefined, quantity: number, inMajorUnits?: boolean): BigDecimal;
|
|
97
|
+
export {};
|
|
98
98
|
//# sourceMappingURL=stripe.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export declare function installStytch(stytchConfig: any): any;
|
|
2
|
-
export declare function stytchOauthRedirect(oauthType: string): void;
|
|
3
|
-
export declare function stytchSendMagicLink({ fieldVal }: any): any;
|
|
4
|
-
export declare function stytchSendSms({ fieldVal }: any): any;
|
|
5
|
-
export declare function stytchLoginOnLoad(featheryClient: any): Promise<any>;
|
|
6
|
-
export declare function stytchVerifySms({ fieldVal, featheryClient }: any): Promise<any>;
|
|
7
|
-
/**
|
|
8
|
-
* [Hosted Login] This fn will set the Stytch cookie on the primary site domain.
|
|
9
|
-
* For example, if a form is hosted at login.feathery.io the default Stytch
|
|
10
|
-
* cookie will be set to login.feathery.io, so we set the same values for the
|
|
11
|
-
* domain feathery.io, so that subdomains can be authenticated
|
|
12
|
-
*/
|
|
13
|
-
export declare function setStytchDomainCookie(): void;
|
|
14
|
-
/**
|
|
15
|
-
* [Hosted Login] This fn will clear the cookies set by setStytchDomainCookie.
|
|
16
|
-
* This is needed if the session was revoked on another domain.
|
|
17
|
-
*/
|
|
18
|
-
export declare function clearStytchDomainCookie(): void;
|
|
19
|
-
export declare function removeStytchQueryParams(): void;
|
|
1
|
+
export declare function installStytch(stytchConfig: any): any;
|
|
2
|
+
export declare function stytchOauthRedirect(oauthType: string): void;
|
|
3
|
+
export declare function stytchSendMagicLink({ fieldVal }: any): any;
|
|
4
|
+
export declare function stytchSendSms({ fieldVal }: any): any;
|
|
5
|
+
export declare function stytchLoginOnLoad(featheryClient: any): Promise<any>;
|
|
6
|
+
export declare function stytchVerifySms({ fieldVal, featheryClient }: any): Promise<any>;
|
|
7
|
+
/**
|
|
8
|
+
* [Hosted Login] This fn will set the Stytch cookie on the primary site domain.
|
|
9
|
+
* For example, if a form is hosted at login.feathery.io the default Stytch
|
|
10
|
+
* cookie will be set to login.feathery.io, so we set the same values for the
|
|
11
|
+
* domain feathery.io, so that subdomains can be authenticated
|
|
12
|
+
*/
|
|
13
|
+
export declare function setStytchDomainCookie(): void;
|
|
14
|
+
/**
|
|
15
|
+
* [Hosted Login] This fn will clear the cookies set by setStytchDomainCookie.
|
|
16
|
+
* This is needed if the session was revoked on another domain.
|
|
17
|
+
*/
|
|
18
|
+
export declare function clearStytchDomainCookie(): void;
|
|
19
|
+
export declare function removeStytchQueryParams(): void;
|
|
20
20
|
//# sourceMappingURL=stytch.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function installTrustedForm(trustedformConfig: any, formKey: string): Promise<void>;
|
|
2
|
-
export declare function gatherTrustedFormFields(existingFields: any, formKey: string): void;
|
|
1
|
+
export declare function installTrustedForm(trustedformConfig: any, formKey: string): Promise<void>;
|
|
2
|
+
export declare function gatherTrustedFormFields(existingFields: any, formKey: string): void;
|
|
3
3
|
//# sourceMappingURL=trustedform.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import FeatheryClient from '../utils/featheryClient';
|
|
2
|
-
export declare function dynamicImport(dependencies: any, parallel?: boolean, force?: boolean): any;
|
|
3
|
-
export declare function initializeIntegrations(integs: Record<string, any>, featheryClient: FeatheryClient): Promise<any>;
|
|
4
|
-
export interface ActionData {
|
|
5
|
-
pmField?: any;
|
|
6
|
-
triggerElement?: any;
|
|
7
|
-
triggerElementType?: 'button' | 'container';
|
|
8
|
-
client: any;
|
|
9
|
-
formattedFields?: any;
|
|
10
|
-
updateFieldValues: any;
|
|
11
|
-
integrationData: any;
|
|
12
|
-
targetElement?: any;
|
|
13
|
-
}
|
|
14
|
-
export declare function trackEvent(integrations: any, title: string, stepId: string, formName: string, fieldData?: any): void;
|
|
1
|
+
import FeatheryClient from '../utils/featheryClient';
|
|
2
|
+
export declare function dynamicImport(dependencies: any, parallel?: boolean, force?: boolean): any;
|
|
3
|
+
export declare function initializeIntegrations(integs: Record<string, any>, featheryClient: FeatheryClient): Promise<any>;
|
|
4
|
+
export interface ActionData {
|
|
5
|
+
pmField?: any;
|
|
6
|
+
triggerElement?: any;
|
|
7
|
+
triggerElementType?: 'button' | 'container';
|
|
8
|
+
client: any;
|
|
9
|
+
formattedFields?: any;
|
|
10
|
+
updateFieldValues: any;
|
|
11
|
+
integrationData: any;
|
|
12
|
+
targetElement?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function trackEvent(integrations: any, title: string, stepId: string, formName: string, fieldData?: any): void;
|
|
15
15
|
//# sourceMappingURL=utils.d.ts.map
|