@tap-payments/auth-jsconnect 2.5.7-test → 2.5.9-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/build/@types/app.d.ts +16 -16
  2. package/build/@types/form.d.ts +20 -20
  3. package/build/@types/theme.d.ts +1 -1
  4. package/build/api/account.d.ts +2 -2
  5. package/build/api/auth.d.ts +11 -11
  6. package/build/api/availabilityServices.d.ts +3 -3
  7. package/build/api/axios.js +1 -1
  8. package/build/api/board.d.ts +3 -3
  9. package/build/api/brand.d.ts +1 -1
  10. package/build/api/country.d.ts +1 -1
  11. package/build/api/data.d.ts +11 -11
  12. package/build/api/document.d.ts +2 -2
  13. package/build/api/entity.d.ts +8 -8
  14. package/build/api/file.d.ts +1 -1
  15. package/build/api/individual.d.ts +5 -5
  16. package/build/api/init.d.ts +1 -1
  17. package/build/api/lead.d.ts +11 -11
  18. package/build/api/operator.d.ts +1 -1
  19. package/build/api/operator.js +1 -1
  20. package/build/api/user.d.ts +2 -2
  21. package/build/app/settings.d.ts +2 -11
  22. package/build/app/settings.js +8 -4
  23. package/build/app/store.d.ts +4 -4
  24. package/build/components/Slide/Slide.d.ts +1 -1
  25. package/build/constants/app.d.ts +1 -1
  26. package/build/features/app/bank/bankStore.d.ts +10 -82
  27. package/build/features/app/bank/bankStore.js +1 -1
  28. package/build/features/app/brand/brandStore.d.ts +15 -132
  29. package/build/features/app/brand/brandStore.js +1 -1
  30. package/build/features/app/business/businessStore.d.ts +18 -162
  31. package/build/features/app/business/businessStore.js +1 -1
  32. package/build/features/app/connect/connectStore.d.ts +16 -151
  33. package/build/features/app/connect/connectStore.js +1 -1
  34. package/build/features/app/connectExpress/connectExpressStore.d.ts +22 -211
  35. package/build/features/app/connectExpress/connectExpressStore.js +1 -1
  36. package/build/features/app/entity/entityStore.d.ts +10 -82
  37. package/build/features/app/entity/entityStore.js +1 -1
  38. package/build/features/app/individual/individualStore.d.ts +22 -175
  39. package/build/features/app/individual/individualStore.js +1 -1
  40. package/build/features/app/password/passwordStore.d.ts +12 -102
  41. package/build/features/app/password/passwordStore.js +1 -1
  42. package/build/features/app/signIn/signInStore.d.ts +7 -61
  43. package/build/features/app/signIn/signInStore.js +1 -1
  44. package/build/features/app/tax/taxStore.d.ts +9 -72
  45. package/build/features/app/tax/taxStore.js +1 -1
  46. package/build/features/bank/screens/BankDetails/BankName.d.ts +1 -1
  47. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
  48. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -1
  49. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  50. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -6
  51. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  52. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
  53. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -2
  54. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -1
  55. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
  56. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  57. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  58. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  59. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  60. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  61. package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
  62. package/build/features/business/screens/Customers/CustomerLocations.d.ts +7 -7
  63. package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -4
  64. package/build/features/connect/Connect.js +1 -1
  65. package/build/features/connect/screens/Individual/Email.js +1 -1
  66. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  67. package/build/features/connectExpress/ConnectExpress.js +1 -1
  68. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  69. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +3 -3
  70. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -2
  71. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  72. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -2
  73. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  74. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  75. package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
  76. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +6 -6
  77. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  78. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  79. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  80. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
  81. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  82. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  83. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  84. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +3 -3
  85. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  86. package/build/features/shared/Address/CountryList.d.ts +6 -6
  87. package/build/features/shared/Address/InputSelect.d.ts +6 -6
  88. package/build/features/shared/Address/InputSelect.js +1 -1
  89. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  90. package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
  91. package/build/features/shared/Button/FlowsButtons.js +1 -1
  92. package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
  93. package/build/features/shared/CheckIcon/CheckIcon.d.ts +1 -1
  94. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  95. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  96. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -1
  97. package/build/features/shared/Input/Input.d.ts +2 -2
  98. package/build/features/shared/UploadFile/FileUpload.d.ts +3 -3
  99. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  100. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
  101. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
  102. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +3 -3
  103. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  104. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
  105. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -1
  106. package/build/features/tax/screens/TaxDetails/VATId.d.ts +1 -1
  107. package/build/hooks/useAppConfig.js +2 -12
  108. package/build/hooks/useDataVerified.d.ts +1 -1
  109. package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
  110. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
  111. package/build/hooks/useFormReadOnly.d.ts +1 -1
  112. package/build/utils/array.js +1 -1
  113. package/build/utils/common.d.ts +1 -0
  114. package/build/utils/common.js +10 -0
  115. package/package.json +1 -1
@@ -4,9 +4,9 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
4
4
  component?: React.ElementType<any> | undefined;
5
5
  ref?: React.Ref<unknown> | undefined;
6
6
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
7
- } & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
7
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
9
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
9
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
10
10
  interface UploadFileProps {
11
11
  label: string;
12
12
  required?: boolean;
@@ -7,9 +7,9 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
7
7
  component?: React.ElementType<any> | undefined;
8
8
  ref?: React.Ref<unknown> | undefined;
9
9
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
10
- } & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
11
11
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
12
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
13
  interface UploadWrapperProps {
14
14
  id: string;
15
15
  control: Control<FieldValues, any>;
@@ -6,10 +6,10 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
6
6
  component?: React.ElementType<any> | undefined;
7
7
  ref?: React.Ref<unknown> | undefined;
8
8
  sx?: SxProps<Theme> | undefined;
9
- } & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
9
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
10
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
11
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
12
- export type UploadFileProps = {
11
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
12
+ export declare type UploadFileProps = {
13
13
  index: number;
14
14
  purpose: string;
15
15
  file: File;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
27
+ while (_) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -7,9 +7,9 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
7
7
  component?: React.ElementType<any> | undefined;
8
8
  ref?: React.Ref<unknown> | undefined;
9
9
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
10
- } & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
11
11
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
12
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
13
  interface UploadMultipleFileProps {
14
14
  id: string;
15
15
  control: Control<FieldValues, any>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type ConfirmPolicyProps = {
2
+ declare type ConfirmPolicyProps = {
3
3
  readOnly?: boolean;
4
4
  };
5
5
  declare const ConfirmPolicy: ({ readOnly }: ConfirmPolicyProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type VATIdProps = {
2
+ declare type VATIdProps = {
3
3
  readOnly?: boolean;
4
4
  isVerified?: boolean;
5
5
  };
@@ -24,21 +24,11 @@ import { useEffect } from 'react';
24
24
  import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync, handelBoardMaturity, settingsSelector } from '../app/settings';
25
25
  import { useAppDispatch } from './useAppDispatch';
26
26
  import { useAppSelector } from './useAppSelector';
27
- import { axiosInstance } from '../api';
28
- import { isTapDomain, removeRequestHeaders } from '../utils';
29
- import { ENDPOINT_PATHS } from '../constants';
27
+ import { isTapDomain, removeRequestHeaders, setBaseUrl } from '../utils';
30
28
  export var useAppConfig = function (_a) {
31
29
  var appInfo = _a.appInfo, navigation = _a.navigation, publicKey = _a.publicKey, disableCountries = _a.disableCountries, disableLocale = _a.disableLocale, disableSettingFetching = _a.disableSettingFetching, maturity = _a.maturity, boardMaturity = _a.boardMaturity, configToken = _a.configToken, onVerifyConfigTokenSuccess = _a.onVerifyConfigTokenSuccess, rest = __rest(_a, ["appInfo", "navigation", "publicKey", "disableCountries", "disableLocale", "disableSettingFetching", "maturity", "boardMaturity", "configToken", "onVerifyConfigTokenSuccess"]);
32
30
  var dispatch = useAppDispatch();
33
31
  var data = useAppSelector(settingsSelector).data;
34
- var setBaseUrl = function () {
35
- var isProd = publicKey.includes('pk_live');
36
- if (isProd) {
37
- axiosInstance.defaults.baseURL = ENDPOINT_PATHS.PRODUCTION_BASE_URL;
38
- return;
39
- }
40
- axiosInstance.defaults.baseURL = ENDPOINT_PATHS.DEV_BASE_URL;
41
- };
42
32
  var setAppConfig = function () {
43
33
  dispatch(handleSetAppConfig(__assign({ appInfo: appInfo, publicKey: publicKey }, rest)));
44
34
  dispatch(handleActiveFlowScreens(navigation));
@@ -56,7 +46,7 @@ export var useAppConfig = function (_a) {
56
46
  if (!disableSettingFetching)
57
47
  removeRequestHeaders();
58
48
  checkDomain();
59
- setBaseUrl();
49
+ setBaseUrl(publicKey);
60
50
  setAppConfig();
61
51
  if (typeof boardMaturity === 'boolean')
62
52
  dispatch(handelBoardMaturity(boardMaturity));
@@ -1,5 +1,5 @@
1
1
  import { FieldType } from '../@types';
2
- type DataVerified<T> = {
2
+ declare type DataVerified<T> = {
3
3
  [K in keyof T]?: boolean;
4
4
  };
5
5
  export declare const useDataVerified: <T = undefined>(dataVerification: Record<keyof T, FieldType>, verifiedKeys: (keyof T)[]) => DataVerified<T>;
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- type ReadOnly<TF, V> = {
2
+ declare type ReadOnly<TF, V> = {
3
3
  [key in keyof TF]: V;
4
4
  };
5
5
  export declare const useExcludeReadOnlyFelids: <TF extends FieldValues = FieldValues>({ formState }: UseFormReturn<TF, any>, readOnly: ReadOnly<TF, boolean>) => {
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- type ReadOnly<TF, V> = {
2
+ declare type ReadOnly<TF, V> = {
3
3
  [key in keyof TF]: V;
4
4
  };
5
5
  export declare const useFormErrorAndUpdateReadOnly: <TF extends FieldValues = FieldValues>(methods: UseFormReturn<TF, any>, readOnlyData: { [key in keyof TF]: boolean; }, noneEditable?: Record<any, boolean>) => ReadOnly<TF, boolean>;
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- type ReadOnly<TF, V> = {
2
+ declare type ReadOnly<TF, V> = {
3
3
  [key in keyof TF]: V;
4
4
  };
5
5
  export declare const useFormReadOnly: <TF extends FieldValues = FieldValues>(methods: UseFormReturn<TF, any>, extraData?: { [key in keyof TF]?: any; }) => ReadOnly<TF, boolean>;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
27
+ while (_) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -1,2 +1,3 @@
1
1
  export declare const sleep: (milliseconds?: number) => Promise<unknown>;
2
2
  export declare const dangerousMessage: (message: string, callBack?: Function) => void;
3
+ export declare const setBaseUrl: (publicKey: string) => void;
@@ -1,3 +1,5 @@
1
+ import { axiosInstance } from '../api';
2
+ import { ENDPOINT_PATHS } from '../constants';
1
3
  export var sleep = function (milliseconds) {
2
4
  if (milliseconds === void 0) { milliseconds = 1000; }
3
5
  return new Promise(function (resolve) { return setTimeout(resolve, milliseconds); });
@@ -8,3 +10,11 @@ export var dangerousMessage = function (message, callBack) {
8
10
  }
9
11
  callBack === null || callBack === void 0 ? void 0 : callBack({ message: message });
10
12
  };
13
+ export var setBaseUrl = function (publicKey) {
14
+ var isProd = publicKey.includes('pk_live');
15
+ if (isProd) {
16
+ axiosInstance.defaults.baseURL = ENDPOINT_PATHS.PRODUCTION_BASE_URL;
17
+ return;
18
+ }
19
+ axiosInstance.defaults.baseURL = ENDPOINT_PATHS.DEV_BASE_URL;
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.5.7-test",
3
+ "version": "2.5.9-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",