@feathery/react 2.6.8 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/components/AIExtractionToast/ExtractionItem.d.ts +5 -5
- package/dist/Form/components/AIExtractionToast/icons.d.ts +7 -7
- package/dist/Form/components/AIExtractionToast/index.d.ts +8 -8
- package/dist/Form/components/AIExtractionToast/useAIExtractionToast.d.ts +64 -64
- 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/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 +33 -34
- package/dist/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
- 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 +45 -46
- package/dist/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/CheckboxField/index.d.ts +5 -5
- package/dist/elements/fields/CheckboxField/tests/test-utils.d.ts +19 -20
- package/dist/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/CheckboxGroupField/index.d.ts +2 -2
- package/dist/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +59 -60
- package/dist/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/ColorPickerField/index.d.ts +2 -2
- package/dist/elements/fields/ColorPickerField/tests/test-utils.d.ts +20 -21
- package/dist/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
- 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 +73 -74
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- 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 +26 -28
- package/dist/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
- 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 +46 -47
- package/dist/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
- 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 +66 -67
- package/dist/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/PasswordField/index.d.ts +4 -4
- package/dist/elements/fields/PasswordField/tests/test-utils.d.ts +29 -30
- package/dist/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
- 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 +85 -86
- package/dist/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- 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 +78 -79
- package/dist/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
- 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 +54 -55
- package/dist/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/RatingField/index.d.ts +1 -1
- package/dist/elements/fields/RatingField/tests/test-utils.d.ts +21 -22
- package/dist/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
- 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 +21 -22
- package/dist/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
- 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 +50 -51
- package/dist/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
- 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.DxW_Bnm8.js +16 -0
- package/dist/fthry_InlineTooltip.CKU9xvD_.js +53 -0
- package/dist/fthry_Overlay.CAkqWcqE.js +228 -0
- package/dist/fthry_PaymentMethodField.DgbAXbj6.js +928 -0
- package/dist/fthry_Placeholder.Dns0M5df.js +14 -0
- package/dist/fthry_ShowEyeIcon.B5WMynZy.js +13 -0
- package/dist/fthry_index.3X-DqTfs.js +97 -0
- package/dist/fthry_index.B2eJWMcW.js +2000 -0
- package/dist/fthry_index.BMqtYXlU.js +8166 -0
- package/dist/fthry_index.BOBND5Kw.js +1427 -0
- package/dist/fthry_index.BOzMcNbx.js +1452 -0
- package/dist/fthry_index.BQObFcP7.js +15921 -0
- package/dist/fthry_index.CJrl9QNZ.js +888 -0
- package/dist/fthry_index.CcFhx1jU.js +73 -0
- package/dist/fthry_index.CcNVqQ7R.js +293 -0
- package/dist/fthry_index.CnVdemA5.js +1162 -0
- package/dist/fthry_index.CxRelutP.js +42 -0
- package/dist/fthry_index.D19e9CJD.js +1193 -0
- package/dist/fthry_index.D6UpFxPB.js +216 -0
- package/dist/fthry_index.DD4M0PFc.js +46 -0
- package/dist/fthry_index.DMgGgKWy.js +55 -0
- package/dist/fthry_index.DQB3aI2u.js +95 -0
- package/dist/fthry_index.DaJO430v.js +513 -0
- package/dist/fthry_index.DfiZRBo4.js +35 -0
- package/dist/fthry_index.Di1aadud.js +251 -0
- package/dist/fthry_index.DpFG-lbP.js +138 -0
- package/dist/fthry_index.DsECQjJb.js +131 -0
- package/dist/fthry_index.diObxaBS.js +60999 -0
- package/dist/fthry_index.ghZ0mkQF.js +98 -0
- package/dist/fthry_input.COhHyroj.js +3779 -0
- package/dist/fthry_script.D9CLkYzO.js +157 -0
- package/dist/fthry_styles.Bcy5cq6p.js +1654 -0
- package/dist/fthry_useElementSize.boD8p4bk.js +51 -0
- package/dist/fthry_useSalesforceSync.BNvWxPzE.js +44 -0
- package/dist/fthry_webfontloader.DEj1XG0u.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/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 +17 -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/umd/796.e66d52ea21ef09c4eeaa.js +0 -1
package/dist/utils/logic.d.ts
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
declare type OPERATOR_CODE = 'equal' | 'not_equal' | 'equal_ignore_case' | 'not_equal_ignore_case' | 'greater_than' | 'greater_than_or_equal' | 'less_than' | 'less_than_or_equal' | 'is_filled' | 'is_empty' | 'is_true' | 'is_false' | 'contains' | 'not_contains' | 'contains_ignore_case' | 'not_contains_ignore_case' | 'starts_with' | 'not_starts_with' | 'ends_with' | 'not_ends_with' | 'is_numerical' | 'is_text' | 'selections_include' | 'selections_dont_include';
|
|
2
|
-
export declare type FieldValueType = {
|
|
3
|
-
field_type: 'servar' | 'hidden';
|
|
4
|
-
field_id: string;
|
|
5
|
-
field_key: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type ValueType = string | FieldValueType;
|
|
8
|
-
export interface ComparisonRule {
|
|
9
|
-
field_type?: '' | 'servar' | 'hidden';
|
|
10
|
-
hidden_field?: string | null;
|
|
11
|
-
servar?: string | null;
|
|
12
|
-
comparison?: OPERATOR_CODE;
|
|
13
|
-
values: ValueType[];
|
|
14
|
-
field_id: string | null;
|
|
15
|
-
field_key?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ResolvedComparisonRule extends ComparisonRule {
|
|
18
|
-
field_type: 'servar' | 'hidden';
|
|
19
|
-
comparison: OPERATOR_CODE;
|
|
20
|
-
field_key: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Evaluates a comparison rule.
|
|
24
|
-
* @param rule
|
|
25
|
-
* @param repeatIndex If evaluating for a specific index of a repeat, use the index to
|
|
26
|
-
* only compare repeating fields (left and right) at THAT index, i.e. only use that indexed
|
|
27
|
-
* value in the comparison.
|
|
28
|
-
* @param internalId Needed to get field data and verify if a field is repeating
|
|
29
|
-
*
|
|
30
|
-
* Note: The right side field values can be multi-values (array) as well
|
|
31
|
-
* as the left-side field value (repeating field).
|
|
32
|
-
* The LEFT side field values may be repeating because the field is in a repeat
|
|
33
|
-
* or because the field is multi-valued. To complicate further, the multi-valued
|
|
34
|
-
* field may be in a repeat, resulting in an array of arrays.
|
|
35
|
-
* Additionally, the RIGHT side field values could also be existing fields which themselves
|
|
36
|
-
* might be multi-valued (either a multi-valued type or in a repeat or both).
|
|
37
|
-
* Either way, the logic evaluation is the same:
|
|
38
|
-
* SOME LEFT SIDE VALUE MUST COMPARE TRUTHY TO AT LEAST ONE (SOME) RIGHT SIDE VALUE
|
|
39
|
-
* FOR THE OVERALL EXPRESSION TO BE TRUE.
|
|
40
|
-
*
|
|
41
|
-
* Note: The [undefined] arrays used when flattening the left and right values below are
|
|
42
|
-
* to deal with multi-valued repeating fields (e.g. checkbox group) on both the left and right
|
|
43
|
-
* that have no values (empty array). This logic is flattening the values out to feed to
|
|
44
|
-
* the "some left value must compare to some right value" comparison logic.
|
|
45
|
-
* Since [].every() always returns true, we need to have a value of undefined for each empty
|
|
46
|
-
* field value for it to properly evaluate the empty field case.
|
|
47
|
-
*/
|
|
48
|
-
declare const evalComparisonRule: (rule: ResolvedComparisonRule, repeatIndex?: number | undefined, internalId?: string) => boolean;
|
|
49
|
-
export { evalComparisonRule };
|
|
50
|
-
export type { OPERATOR_CODE };
|
|
1
|
+
declare type OPERATOR_CODE = 'equal' | 'not_equal' | 'equal_ignore_case' | 'not_equal_ignore_case' | 'greater_than' | 'greater_than_or_equal' | 'less_than' | 'less_than_or_equal' | 'is_filled' | 'is_empty' | 'is_true' | 'is_false' | 'contains' | 'not_contains' | 'contains_ignore_case' | 'not_contains_ignore_case' | 'starts_with' | 'not_starts_with' | 'ends_with' | 'not_ends_with' | 'is_numerical' | 'is_text' | 'selections_include' | 'selections_dont_include';
|
|
2
|
+
export declare type FieldValueType = {
|
|
3
|
+
field_type: 'servar' | 'hidden';
|
|
4
|
+
field_id: string;
|
|
5
|
+
field_key: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type ValueType = string | FieldValueType;
|
|
8
|
+
export interface ComparisonRule {
|
|
9
|
+
field_type?: '' | 'servar' | 'hidden';
|
|
10
|
+
hidden_field?: string | null;
|
|
11
|
+
servar?: string | null;
|
|
12
|
+
comparison?: OPERATOR_CODE;
|
|
13
|
+
values: ValueType[];
|
|
14
|
+
field_id: string | null;
|
|
15
|
+
field_key?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ResolvedComparisonRule extends ComparisonRule {
|
|
18
|
+
field_type: 'servar' | 'hidden';
|
|
19
|
+
comparison: OPERATOR_CODE;
|
|
20
|
+
field_key: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Evaluates a comparison rule.
|
|
24
|
+
* @param rule
|
|
25
|
+
* @param repeatIndex If evaluating for a specific index of a repeat, use the index to
|
|
26
|
+
* only compare repeating fields (left and right) at THAT index, i.e. only use that indexed
|
|
27
|
+
* value in the comparison.
|
|
28
|
+
* @param internalId Needed to get field data and verify if a field is repeating
|
|
29
|
+
*
|
|
30
|
+
* Note: The right side field values can be multi-values (array) as well
|
|
31
|
+
* as the left-side field value (repeating field).
|
|
32
|
+
* The LEFT side field values may be repeating because the field is in a repeat
|
|
33
|
+
* or because the field is multi-valued. To complicate further, the multi-valued
|
|
34
|
+
* field may be in a repeat, resulting in an array of arrays.
|
|
35
|
+
* Additionally, the RIGHT side field values could also be existing fields which themselves
|
|
36
|
+
* might be multi-valued (either a multi-valued type or in a repeat or both).
|
|
37
|
+
* Either way, the logic evaluation is the same:
|
|
38
|
+
* SOME LEFT SIDE VALUE MUST COMPARE TRUTHY TO AT LEAST ONE (SOME) RIGHT SIDE VALUE
|
|
39
|
+
* FOR THE OVERALL EXPRESSION TO BE TRUE.
|
|
40
|
+
*
|
|
41
|
+
* Note: The [undefined] arrays used when flattening the left and right values below are
|
|
42
|
+
* to deal with multi-valued repeating fields (e.g. checkbox group) on both the left and right
|
|
43
|
+
* that have no values (empty array). This logic is flattening the values out to feed to
|
|
44
|
+
* the "some left value must compare to some right value" comparison logic.
|
|
45
|
+
* Since [].every() always returns true, we need to have a value of undefined for each empty
|
|
46
|
+
* field value for it to properly evaluate the empty field case.
|
|
47
|
+
*/
|
|
48
|
+
declare const evalComparisonRule: (rule: ResolvedComparisonRule, repeatIndex?: number | undefined, internalId?: string) => boolean;
|
|
49
|
+
export { evalComparisonRule };
|
|
50
|
+
export type { OPERATOR_CODE };
|
|
51
51
|
//# sourceMappingURL=logic.d.ts.map
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import type FeatheryClient from './featheryClient';
|
|
2
|
-
export interface RequestOptions {
|
|
3
|
-
headers?: {
|
|
4
|
-
'Content-Type'?: string | undefined;
|
|
5
|
-
Authorization?: string;
|
|
6
|
-
};
|
|
7
|
-
method: string;
|
|
8
|
-
body: any;
|
|
9
|
-
keepalive?: boolean;
|
|
10
|
-
}
|
|
11
|
-
interface RequestMetadata {
|
|
12
|
-
fieldKey?: string;
|
|
13
|
-
preserveStepRequests?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const untrackUnload: (force?: boolean) => void;
|
|
16
|
-
export declare const markFileUploadRetrySuccess: (fieldKey?: string) => void;
|
|
17
|
-
export declare const markFileUploadRetryFailure: (fieldKey?: string) => void;
|
|
18
|
-
export declare function useOfflineRequestHandler(client: FeatheryClient): void;
|
|
19
|
-
/**
|
|
20
|
-
* OfflineRequestHandler manages HTTP request reliability for forms.
|
|
21
|
-
* Failed requests are queued in IndexedDB and replayed when connectivity is restored.
|
|
22
|
-
*
|
|
23
|
-
* Behavior:
|
|
24
|
-
* - When online: attempts requests immediately, but queues them if network errors occur
|
|
25
|
-
* - When offline: immediately queues all requests for later replay
|
|
26
|
-
* - Prevent page unload while requests are pending
|
|
27
|
-
* - Replays requests in chronological order
|
|
28
|
-
*/
|
|
29
|
-
export declare class OfflineRequestHandler {
|
|
30
|
-
private isReplayingRequests;
|
|
31
|
-
private readonly formKey;
|
|
32
|
-
private readonly dbName;
|
|
33
|
-
private readonly storeName;
|
|
34
|
-
private readonly dbVersion;
|
|
35
|
-
private readonly maxRetryAttempts;
|
|
36
|
-
private readonly retryDelayMs;
|
|
37
|
-
private onlineSignals;
|
|
38
|
-
private indexedDBSupported;
|
|
39
|
-
private errorCallback?;
|
|
40
|
-
constructor(formKey: string, errorCallback?: (error: string) => void);
|
|
41
|
-
dbHasRequest(): Promise<boolean>;
|
|
42
|
-
onlineAndReplayed(): Promise<unknown>;
|
|
43
|
-
openDatabase(): Promise<IDBDatabase | undefined>;
|
|
44
|
-
private getDbTransaction;
|
|
45
|
-
/**
|
|
46
|
-
* Core request orchestration method that decides whether to execute a request immediately
|
|
47
|
-
* or queue it for later replay. This implements the "eventual consistency" pattern for
|
|
48
|
-
* offline-first applications.
|
|
49
|
-
*
|
|
50
|
-
* Logic flow:
|
|
51
|
-
* 1. If online AND no pending requests: execute immediately
|
|
52
|
-
* 2. If online BUT requests are queued/replaying: wait for queue to clear, then execute
|
|
53
|
-
* 3. If request fails with network error: queue it and start replay process
|
|
54
|
-
* 4. If offline: immediately queue the request
|
|
55
|
-
*/
|
|
56
|
-
runOrSaveRequest(run: any, url: string, options: any, type: string, stepKey?: string, metadata?: RequestMetadata): Promise<void>;
|
|
57
|
-
saveRequest(url: string, options: any, type: string, stepKey?: string, metadata?: RequestMetadata): Promise<void>;
|
|
58
|
-
private serializeRequestBody;
|
|
59
|
-
/**
|
|
60
|
-
* Replay queued requests:
|
|
61
|
-
*
|
|
62
|
-
* Step 1: Submit requests (form submissions, custom requests) - executed in parallel
|
|
63
|
-
* Step 2: Event registrations - grouped by step and executed sequentially by step,
|
|
64
|
-
* but in parallel within each step to maintain event ordering per form step
|
|
65
|
-
*/
|
|
66
|
-
replayRequests(): Promise<void>;
|
|
67
|
-
private replayRequestsInParallel;
|
|
68
|
-
private removeRequest;
|
|
69
|
-
clearFailedRequestByUrl(url: string, options?: {
|
|
70
|
-
fieldKey?: string;
|
|
71
|
-
}): Promise<void>;
|
|
72
|
-
private recordMatchesFieldKey;
|
|
73
|
-
private matchesMetadataField;
|
|
74
|
-
private matchesFormDataField;
|
|
75
|
-
private matchesBlobField;
|
|
76
|
-
clearFailedRequestsByStep(stepKey: string): Promise<void>;
|
|
77
|
-
clearFailedFileUploadRequests(): Promise<void>;
|
|
78
|
-
private deleteRecordsWhere;
|
|
79
|
-
private updateRequest;
|
|
80
|
-
private updateRecordsWhere;
|
|
81
|
-
private updateRetryAttempts;
|
|
82
|
-
private hasReplayableRequest;
|
|
83
|
-
resetRetryAttemptsByUrl(url: string, options?: {
|
|
84
|
-
fieldKey?: string;
|
|
85
|
-
}): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Calculates exponential backoff delay with jitter.
|
|
88
|
-
* Pattern: 1s, 2s, 4s, etc.
|
|
89
|
-
*/
|
|
90
|
-
private getExponentialDelay;
|
|
91
|
-
private delay;
|
|
92
|
-
private reconstructBody;
|
|
93
|
-
}
|
|
94
|
-
export {};
|
|
1
|
+
import type FeatheryClient from './featheryClient';
|
|
2
|
+
export interface RequestOptions {
|
|
3
|
+
headers?: {
|
|
4
|
+
'Content-Type'?: string | undefined;
|
|
5
|
+
Authorization?: string;
|
|
6
|
+
};
|
|
7
|
+
method: string;
|
|
8
|
+
body: any;
|
|
9
|
+
keepalive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface RequestMetadata {
|
|
12
|
+
fieldKey?: string;
|
|
13
|
+
preserveStepRequests?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const untrackUnload: (force?: boolean) => void;
|
|
16
|
+
export declare const markFileUploadRetrySuccess: (fieldKey?: string) => void;
|
|
17
|
+
export declare const markFileUploadRetryFailure: (fieldKey?: string) => void;
|
|
18
|
+
export declare function useOfflineRequestHandler(client: FeatheryClient): void;
|
|
19
|
+
/**
|
|
20
|
+
* OfflineRequestHandler manages HTTP request reliability for forms.
|
|
21
|
+
* Failed requests are queued in IndexedDB and replayed when connectivity is restored.
|
|
22
|
+
*
|
|
23
|
+
* Behavior:
|
|
24
|
+
* - When online: attempts requests immediately, but queues them if network errors occur
|
|
25
|
+
* - When offline: immediately queues all requests for later replay
|
|
26
|
+
* - Prevent page unload while requests are pending
|
|
27
|
+
* - Replays requests in chronological order
|
|
28
|
+
*/
|
|
29
|
+
export declare class OfflineRequestHandler {
|
|
30
|
+
private isReplayingRequests;
|
|
31
|
+
private readonly formKey;
|
|
32
|
+
private readonly dbName;
|
|
33
|
+
private readonly storeName;
|
|
34
|
+
private readonly dbVersion;
|
|
35
|
+
private readonly maxRetryAttempts;
|
|
36
|
+
private readonly retryDelayMs;
|
|
37
|
+
private onlineSignals;
|
|
38
|
+
private indexedDBSupported;
|
|
39
|
+
private errorCallback?;
|
|
40
|
+
constructor(formKey: string, errorCallback?: (error: string) => void);
|
|
41
|
+
dbHasRequest(): Promise<boolean>;
|
|
42
|
+
onlineAndReplayed(): Promise<unknown>;
|
|
43
|
+
openDatabase(): Promise<IDBDatabase | undefined>;
|
|
44
|
+
private getDbTransaction;
|
|
45
|
+
/**
|
|
46
|
+
* Core request orchestration method that decides whether to execute a request immediately
|
|
47
|
+
* or queue it for later replay. This implements the "eventual consistency" pattern for
|
|
48
|
+
* offline-first applications.
|
|
49
|
+
*
|
|
50
|
+
* Logic flow:
|
|
51
|
+
* 1. If online AND no pending requests: execute immediately
|
|
52
|
+
* 2. If online BUT requests are queued/replaying: wait for queue to clear, then execute
|
|
53
|
+
* 3. If request fails with network error: queue it and start replay process
|
|
54
|
+
* 4. If offline: immediately queue the request
|
|
55
|
+
*/
|
|
56
|
+
runOrSaveRequest(run: any, url: string, options: any, type: string, stepKey?: string, metadata?: RequestMetadata): Promise<void>;
|
|
57
|
+
saveRequest(url: string, options: any, type: string, stepKey?: string, metadata?: RequestMetadata): Promise<void>;
|
|
58
|
+
private serializeRequestBody;
|
|
59
|
+
/**
|
|
60
|
+
* Replay queued requests:
|
|
61
|
+
*
|
|
62
|
+
* Step 1: Submit requests (form submissions, custom requests) - executed in parallel
|
|
63
|
+
* Step 2: Event registrations - grouped by step and executed sequentially by step,
|
|
64
|
+
* but in parallel within each step to maintain event ordering per form step
|
|
65
|
+
*/
|
|
66
|
+
replayRequests(): Promise<void>;
|
|
67
|
+
private replayRequestsInParallel;
|
|
68
|
+
private removeRequest;
|
|
69
|
+
clearFailedRequestByUrl(url: string, options?: {
|
|
70
|
+
fieldKey?: string;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
private recordMatchesFieldKey;
|
|
73
|
+
private matchesMetadataField;
|
|
74
|
+
private matchesFormDataField;
|
|
75
|
+
private matchesBlobField;
|
|
76
|
+
clearFailedRequestsByStep(stepKey: string): Promise<void>;
|
|
77
|
+
clearFailedFileUploadRequests(): Promise<void>;
|
|
78
|
+
private deleteRecordsWhere;
|
|
79
|
+
private updateRequest;
|
|
80
|
+
private updateRecordsWhere;
|
|
81
|
+
private updateRetryAttempts;
|
|
82
|
+
private hasReplayableRequest;
|
|
83
|
+
resetRetryAttemptsByUrl(url: string, options?: {
|
|
84
|
+
fieldKey?: string;
|
|
85
|
+
}): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Calculates exponential backoff delay with jitter.
|
|
88
|
+
* Pattern: 1s, 2s, 4s, etc.
|
|
89
|
+
*/
|
|
90
|
+
private getExponentialDelay;
|
|
91
|
+
private delay;
|
|
92
|
+
private reconstructBody;
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
95
95
|
//# sourceMappingURL=offlineRequestHandler.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import 'flat-map-polyfill';
|
|
2
|
-
export {};
|
|
1
|
+
import 'flat-map-polyfill';
|
|
2
|
+
export {};
|
|
3
3
|
//# sourceMappingURL=polyfills.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
declare function encodeGetParams(params: any): string;
|
|
2
|
-
declare function isNum(candidate: any): boolean;
|
|
3
|
-
declare function isObjectEmpty(obj: any): boolean;
|
|
4
|
-
declare function objectFromEntries(arr: any): any;
|
|
5
|
-
declare function stringifyWithNull(value: any): any;
|
|
6
|
-
declare function startsEndsWithQuotes(str: string): boolean;
|
|
7
|
-
declare function isAlphaNumeric(val: any): boolean;
|
|
8
|
-
declare function filterKeys(obj: any, allowedKeys: any): {};
|
|
9
|
-
declare function formatNumeric(number: number, intlOptions?: {}, locales?: string[]): string;
|
|
10
|
-
declare function formatDecimal(number: number, decimalDigits?: number, locales?: string[]): string;
|
|
11
|
-
declare function formatMoneyUSD(number: number, locales?: string[]): string;
|
|
12
|
-
declare function formatMoney(number: number, currency?: string, locales?: any): string;
|
|
13
|
-
declare function numMatchingItems(arr1: number[], arr2: number[]): number;
|
|
14
|
-
export { encodeGetParams, isAlphaNumeric, isNum, isObjectEmpty, objectFromEntries, stringifyWithNull, filterKeys, formatNumeric, formatDecimal, formatMoneyUSD, formatMoney, numMatchingItems, startsEndsWithQuotes };
|
|
1
|
+
declare function encodeGetParams(params: any): string;
|
|
2
|
+
declare function isNum(candidate: any): boolean;
|
|
3
|
+
declare function isObjectEmpty(obj: any): boolean;
|
|
4
|
+
declare function objectFromEntries(arr: any): any;
|
|
5
|
+
declare function stringifyWithNull(value: any): any;
|
|
6
|
+
declare function startsEndsWithQuotes(str: string): boolean;
|
|
7
|
+
declare function isAlphaNumeric(val: any): boolean;
|
|
8
|
+
declare function filterKeys(obj: any, allowedKeys: any): {};
|
|
9
|
+
declare function formatNumeric(number: number, intlOptions?: {}, locales?: string[]): string;
|
|
10
|
+
declare function formatDecimal(number: number, decimalDigits?: number, locales?: string[]): string;
|
|
11
|
+
declare function formatMoneyUSD(number: number, locales?: string[]): string;
|
|
12
|
+
declare function formatMoney(number: number, currency?: string, locales?: any): string;
|
|
13
|
+
declare function numMatchingItems(arr1: number[], arr2: number[]): number;
|
|
14
|
+
export { encodeGetParams, isAlphaNumeric, isNum, isObjectEmpty, objectFromEntries, stringifyWithNull, filterKeys, formatNumeric, formatDecimal, formatMoneyUSD, formatMoney, numMatchingItems, startsEndsWithQuotes };
|
|
15
15
|
//# sourceMappingURL=primitives.d.ts.map
|
package/dist/utils/random.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function getRandomBoolean(userID: any, testName: any): boolean;
|
|
1
|
+
export default function getRandomBoolean(userID: any, testName: any): boolean;
|
|
2
2
|
//# sourceMappingURL=random.d.ts.map
|
package/dist/utils/repeat.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { PositionedElement, Subgrid } from '../types/Form';
|
|
2
|
-
interface Step {
|
|
3
|
-
subgrids: Subgrid[];
|
|
4
|
-
servar_fields: any[];
|
|
5
|
-
}
|
|
6
|
-
export declare function inRepeat(elementKey: string, parentKey: string, addCommaToElement?: boolean): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Gets the repeating container ancestor of an element
|
|
9
|
-
* @param step
|
|
10
|
-
* @param element
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
export declare function getRepeatedContainer(step: Step, element: PositionedElement): Subgrid | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Gets all of the repeated container for a step
|
|
16
|
-
* @param step
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
export declare function getRepeatedContainers(step: Step): Subgrid[];
|
|
20
|
-
/**
|
|
21
|
-
* Gets all of the server field descendants of a repeating container
|
|
22
|
-
* @param step
|
|
23
|
-
* @param repeatContainer
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
export declare function getFieldsInRepeat(step: {
|
|
27
|
-
servar_fields: any[];
|
|
28
|
-
}, repeatContainer: PositionedElement): any[];
|
|
29
|
-
/**
|
|
30
|
-
* Gets the container with the given id on the step
|
|
31
|
-
* @param step
|
|
32
|
-
* @param id
|
|
33
|
-
* @returns
|
|
34
|
-
*/
|
|
35
|
-
export declare function getContainerById(step: {
|
|
36
|
-
subgrids: Subgrid[];
|
|
37
|
-
}, id: string): Subgrid | undefined;
|
|
38
|
-
export {};
|
|
1
|
+
import { PositionedElement, Subgrid } from '../types/Form';
|
|
2
|
+
interface Step {
|
|
3
|
+
subgrids: Subgrid[];
|
|
4
|
+
servar_fields: any[];
|
|
5
|
+
}
|
|
6
|
+
export declare function inRepeat(elementKey: string, parentKey: string, addCommaToElement?: boolean): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Gets the repeating container ancestor of an element
|
|
9
|
+
* @param step
|
|
10
|
+
* @param element
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function getRepeatedContainer(step: Step, element: PositionedElement): Subgrid | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Gets all of the repeated container for a step
|
|
16
|
+
* @param step
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function getRepeatedContainers(step: Step): Subgrid[];
|
|
20
|
+
/**
|
|
21
|
+
* Gets all of the server field descendants of a repeating container
|
|
22
|
+
* @param step
|
|
23
|
+
* @param repeatContainer
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function getFieldsInRepeat(step: {
|
|
27
|
+
servar_fields: any[];
|
|
28
|
+
}, repeatContainer: PositionedElement): any[];
|
|
29
|
+
/**
|
|
30
|
+
* Gets the container with the given id on the step
|
|
31
|
+
* @param step
|
|
32
|
+
* @param id
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function getContainerById(step: {
|
|
36
|
+
subgrids: Subgrid[];
|
|
37
|
+
}, id: string): Subgrid | undefined;
|
|
38
|
+
export {};
|
|
39
39
|
//# sourceMappingURL=repeat.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const getPrivateActions: (formUuid: string) => {
|
|
2
|
-
_sendSmsCode: (phoneNumber: string) => any;
|
|
3
|
-
_telesignVoice: (phoneNumber: string) => Promise<void>;
|
|
4
|
-
_telesignSms: (phoneNumber: string) => Promise<void>;
|
|
5
|
-
_sendEmail: (templateId: string) => Promise<void>;
|
|
6
|
-
_sendEmailOTP: (emailAddress: string) => Promise<any>;
|
|
7
|
-
};
|
|
1
|
+
export declare const getPrivateActions: (formUuid: string) => {
|
|
2
|
+
_sendSmsCode: (phoneNumber: string) => any;
|
|
3
|
+
_telesignVoice: (phoneNumber: string) => Promise<void>;
|
|
4
|
+
_telesignSms: (phoneNumber: string) => Promise<void>;
|
|
5
|
+
_sendEmail: (templateId: string) => Promise<void>;
|
|
6
|
+
_sendEmailOTP: (emailAddress: string) => Promise<any>;
|
|
7
|
+
};
|
|
8
8
|
//# sourceMappingURL=sensitiveActions.d.ts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare function changeStep(newKey: string, oldKey: string, steps: any, setStepKey: any, navigate: any, client: any, trackHashes?: boolean): boolean;
|
|
2
|
-
export declare function getNewStepUrl(stepKey: any): string;
|
|
3
|
-
export declare function getPrevStepKey(curStep: any, stepMap: Record<string, string>): string;
|
|
4
|
-
export declare const nextStepKey: (nextConditions: any, metadata: any) => any;
|
|
5
|
-
export declare const getOrigin: (steps: any) => unknown;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @returns Url hash without the #, or '' if decodeURI fails
|
|
9
|
-
*/
|
|
10
|
-
export declare function getUrlHash(): string;
|
|
11
|
-
export declare function setUrlStepHash(navigate: any, steps: any, stepName: string): void;
|
|
12
|
-
export declare function getInitialStep({ initialStepId, steps, sessionCurrentStep, formId }: {
|
|
13
|
-
initialStepId: string;
|
|
14
|
-
steps: any;
|
|
15
|
-
sessionCurrentStep?: string;
|
|
16
|
-
formId?: string;
|
|
17
|
-
}): any;
|
|
18
|
-
export declare function getSavedStepKey(formId: string): string | undefined;
|
|
19
|
-
export declare function setSavedStepKey(formId: string, stepKey: string): void;
|
|
20
|
-
export declare function isStepTerminal(step: any): boolean;
|
|
21
|
-
export declare const getStepDepthMap: (steps: any, hasProgressBar?: boolean) => Record<string, any>;
|
|
22
|
-
export declare const recurseProgressDepth: (steps: any, curKey: any) => any[];
|
|
1
|
+
export declare function changeStep(newKey: string, oldKey: string, steps: any, setStepKey: any, navigate: any, client: any, trackHashes?: boolean): boolean;
|
|
2
|
+
export declare function getNewStepUrl(stepKey: any): string;
|
|
3
|
+
export declare function getPrevStepKey(curStep: any, stepMap: Record<string, string>): string;
|
|
4
|
+
export declare const nextStepKey: (nextConditions: any, metadata: any) => any;
|
|
5
|
+
export declare const getOrigin: (steps: any) => unknown;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @returns Url hash without the #, or '' if decodeURI fails
|
|
9
|
+
*/
|
|
10
|
+
export declare function getUrlHash(): string;
|
|
11
|
+
export declare function setUrlStepHash(navigate: any, steps: any, stepName: string): void;
|
|
12
|
+
export declare function getInitialStep({ initialStepId, steps, sessionCurrentStep, formId }: {
|
|
13
|
+
initialStepId: string;
|
|
14
|
+
steps: any;
|
|
15
|
+
sessionCurrentStep?: string;
|
|
16
|
+
formId?: string;
|
|
17
|
+
}): any;
|
|
18
|
+
export declare function getSavedStepKey(formId: string): string | undefined;
|
|
19
|
+
export declare function setSavedStepKey(formId: string, stepKey: string): void;
|
|
20
|
+
export declare function isStepTerminal(step: any): boolean;
|
|
21
|
+
export declare const getStepDepthMap: (steps: any, hasProgressBar?: boolean) => Record<string, any>;
|
|
22
|
+
export declare const recurseProgressDepth: (steps: any, curKey: any) => any[];
|
|
23
23
|
//# sourceMappingURL=stepHelperFunctions.d.ts.map
|
package/dist/utils/styles.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const FORM_Z_INDEX = 1;
|
|
2
|
-
export declare const DEV_NAV_BAR_Z_INDEX: number;
|
|
3
|
-
export declare const MODAL_Z_INDEX: number;
|
|
4
|
-
export declare function isDirectionColumn(flexDirection: any): any;
|
|
5
|
-
export declare function adjustColor(color: string, amount: number): string;
|
|
1
|
+
export declare const FORM_Z_INDEX = 1;
|
|
2
|
+
export declare const DEV_NAV_BAR_Z_INDEX: number;
|
|
3
|
+
export declare const MODAL_Z_INDEX: number;
|
|
4
|
+
export declare function isDirectionColumn(flexDirection: any): any;
|
|
5
|
+
export declare function adjustColor(color: string, amount: number): string;
|
|
6
6
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { ResolvedComparisonRule } from './logic';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Trigger } from '../types/Form';
|
|
4
|
-
export interface ResolvedCustomValidation {
|
|
5
|
-
message: string;
|
|
6
|
-
rules: ResolvedComparisonRule[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Validate elements on a form
|
|
10
|
-
*/
|
|
11
|
-
declare function validateElements({ step, visiblePositions, triggerErrors, errorType, formRef, errorCallback, setInlineErrors, trigger }: {
|
|
12
|
-
step: any;
|
|
13
|
-
visiblePositions: any;
|
|
14
|
-
triggerErrors: boolean;
|
|
15
|
-
errorType: string;
|
|
16
|
-
formRef: React.MutableRefObject<any>;
|
|
17
|
-
errorCallback?: any;
|
|
18
|
-
setInlineErrors: any;
|
|
19
|
-
trigger?: Trigger;
|
|
20
|
-
}): {
|
|
21
|
-
errors: {
|
|
22
|
-
[fieldKey: string]: string;
|
|
23
|
-
};
|
|
24
|
-
inlineErrors: {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
};
|
|
27
|
-
invalid: boolean;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Performs all default/standard and custom validations on a field/element
|
|
31
|
-
* and returns any validation message.
|
|
32
|
-
*/
|
|
33
|
-
declare function validateElement(element: {
|
|
34
|
-
servar?: {
|
|
35
|
-
type: string;
|
|
36
|
-
key: string;
|
|
37
|
-
metadata?: any;
|
|
38
|
-
required: boolean;
|
|
39
|
-
repeated: boolean;
|
|
40
|
-
};
|
|
41
|
-
validations?: ResolvedCustomValidation[];
|
|
42
|
-
}, repeat: any): string;
|
|
43
|
-
declare const emailPatternStr = "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]{2,63})+$";
|
|
44
|
-
declare let phoneLibPromise: Promise<void>;
|
|
45
|
-
declare const loadPhoneValidator: () => any;
|
|
46
|
-
declare const validators: {
|
|
47
|
-
email: (a: string) => boolean;
|
|
48
|
-
phone: (a: string) => any;
|
|
49
|
-
url: (a: string) => boolean;
|
|
50
|
-
};
|
|
51
|
-
declare function isFieldValueEmpty(value: any, servar: any): any;
|
|
52
|
-
/**
|
|
53
|
-
* Default validations.
|
|
54
|
-
* Returns the error message for a field value if it's invalid.
|
|
55
|
-
* Returns an empty string if it's valid.
|
|
56
|
-
*/
|
|
57
|
-
declare function getStandardFieldError(value: any, servar: any, repeat: any): string;
|
|
58
|
-
export { validateElement, validateElements, getStandardFieldError, isFieldValueEmpty, emailPatternStr, loadPhoneValidator, validators, phoneLibPromise };
|
|
1
|
+
import { ResolvedComparisonRule } from './logic';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Trigger } from '../types/Form';
|
|
4
|
+
export interface ResolvedCustomValidation {
|
|
5
|
+
message: string;
|
|
6
|
+
rules: ResolvedComparisonRule[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Validate elements on a form
|
|
10
|
+
*/
|
|
11
|
+
declare function validateElements({ step, visiblePositions, triggerErrors, errorType, formRef, errorCallback, setInlineErrors, trigger }: {
|
|
12
|
+
step: any;
|
|
13
|
+
visiblePositions: any;
|
|
14
|
+
triggerErrors: boolean;
|
|
15
|
+
errorType: string;
|
|
16
|
+
formRef: React.MutableRefObject<any>;
|
|
17
|
+
errorCallback?: any;
|
|
18
|
+
setInlineErrors: any;
|
|
19
|
+
trigger?: Trigger;
|
|
20
|
+
}): {
|
|
21
|
+
errors: {
|
|
22
|
+
[fieldKey: string]: string;
|
|
23
|
+
};
|
|
24
|
+
inlineErrors: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
invalid: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Performs all default/standard and custom validations on a field/element
|
|
31
|
+
* and returns any validation message.
|
|
32
|
+
*/
|
|
33
|
+
declare function validateElement(element: {
|
|
34
|
+
servar?: {
|
|
35
|
+
type: string;
|
|
36
|
+
key: string;
|
|
37
|
+
metadata?: any;
|
|
38
|
+
required: boolean;
|
|
39
|
+
repeated: boolean;
|
|
40
|
+
};
|
|
41
|
+
validations?: ResolvedCustomValidation[];
|
|
42
|
+
}, repeat: any): string;
|
|
43
|
+
declare const emailPatternStr = "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]{2,63})+$";
|
|
44
|
+
declare let phoneLibPromise: Promise<void>;
|
|
45
|
+
declare const loadPhoneValidator: () => any;
|
|
46
|
+
declare const validators: {
|
|
47
|
+
email: (a: string) => boolean;
|
|
48
|
+
phone: (a: string) => any;
|
|
49
|
+
url: (a: string) => boolean;
|
|
50
|
+
};
|
|
51
|
+
declare function isFieldValueEmpty(value: any, servar: any): any;
|
|
52
|
+
/**
|
|
53
|
+
* Default validations.
|
|
54
|
+
* Returns the error message for a field value if it's invalid.
|
|
55
|
+
* Returns an empty string if it's valid.
|
|
56
|
+
*/
|
|
57
|
+
declare function getStandardFieldError(value: any, servar: any, repeat: any): string;
|
|
58
|
+
export { validateElement, validateElements, getStandardFieldError, isFieldValueEmpty, emailPatternStr, loadPhoneValidator, validators, phoneLibPromise };
|
|
59
59
|
//# sourceMappingURL=validation.d.ts.map
|