use-frontbacked 5.1.2 → 5.1.4

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 (128) hide show
  1. package/dist/cjs/index.js +221 -4835
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/{esm/types/src → cjs/types}/components/DownloadType/index.d.ts +1 -1
  4. package/dist/{esm/types/src → cjs/types}/components/FrontbackedProvider/index.d.ts +6 -6
  5. package/dist/{esm/types/src/components/PayFlow → cjs/types/components}/hooks/useSdkConfig.d.ts +1 -1
  6. package/dist/cjs/types/{src/components/PayFlow → components}/hooks/useTools/index.d.ts +1 -1
  7. package/dist/cjs/types/{src/utils → utils}/c.d.ts +0 -5
  8. package/dist/cjs/types/{src/utils → utils}/f.d.ts +0 -4
  9. package/dist/components/DownloadType/index.d.ts +1 -1
  10. package/dist/components/FrontbackedProvider/index.d.ts +6 -6
  11. package/dist/components/{PayFlow/hooks → hooks}/useSdkConfig.d.ts +1 -1
  12. package/dist/{esm/types/src/components/PayFlow → components}/hooks/useTools/index.d.ts +1 -1
  13. package/dist/esm/index.es.js +223 -4836
  14. package/dist/esm/index.es.js.map +1 -1
  15. package/dist/{cjs/types/src → esm/types}/components/DownloadType/index.d.ts +1 -1
  16. package/dist/{cjs/types/src → esm/types}/components/FrontbackedProvider/index.d.ts +6 -6
  17. package/dist/{cjs/types/src/components/PayFlow → esm/types/components}/hooks/useSdkConfig.d.ts +1 -1
  18. package/dist/{components/PayFlow → esm/types/components}/hooks/useTools/index.d.ts +1 -1
  19. package/dist/esm/types/{src/utils → utils}/c.d.ts +0 -5
  20. package/dist/esm/types/{src/utils → utils}/f.d.ts +0 -4
  21. package/dist/utils/c.d.ts +0 -5
  22. package/dist/utils/f.d.ts +0 -4
  23. package/package.json +3 -5
  24. package/dist/cjs/types/node_modules/web3-types/src/eth_types.d.ts +0 -440
  25. package/dist/cjs/types/node_modules/web3-types/src/primitives_types.d.ts +0 -4
  26. package/dist/cjs/types/src/components/CreditTransfer/index.d.ts +0 -12
  27. package/dist/cjs/types/src/components/PayFlow/AmountEditor.d.ts +0 -9
  28. package/dist/cjs/types/src/components/PayFlow/CryptoDeposit/index.d.ts +0 -16
  29. package/dist/cjs/types/src/components/PayFlow/FiatDeposit/index.d.ts +0 -22
  30. package/dist/cjs/types/src/components/PayFlow/PaymentDetected.d.ts +0 -7
  31. package/dist/cjs/types/src/components/PayFlow/StatusCoin.d.ts +0 -6
  32. package/dist/cjs/types/src/components/PayFlow/WalletFactory.d.ts +0 -21
  33. package/dist/cjs/types/src/components/PayFlow/hooks/useCoinListener.d.ts +0 -18
  34. package/dist/cjs/types/src/components/PayFlow/hooks/usePriceData.d.ts +0 -3
  35. package/dist/cjs/types/src/components/PayFlow/hooks/useServerBalanceUpdate.d.ts +0 -4
  36. package/dist/cjs/types/src/components/PayFlow/hooks/useWalletListener.d.ts +0 -4
  37. package/dist/cjs/types/src/components/PayFlow/index.d.ts +0 -19
  38. package/dist/cjs/types/src/components/PaymentRequest/index.d.ts +0 -12
  39. package/dist/cjs/types/src/components/WalletTracker/index.d.ts +0 -19
  40. package/dist/cjs/types/src/utils/storeframer.d.ts +0 -7
  41. package/dist/components/CreditTransfer/index.d.ts +0 -12
  42. package/dist/components/PayFlow/AmountEditor.d.ts +0 -9
  43. package/dist/components/PayFlow/CryptoDeposit/index.d.ts +0 -16
  44. package/dist/components/PayFlow/FiatDeposit/index.d.ts +0 -22
  45. package/dist/components/PayFlow/PaymentDetected.d.ts +0 -7
  46. package/dist/components/PayFlow/StatusCoin.d.ts +0 -6
  47. package/dist/components/PayFlow/WalletFactory.d.ts +0 -21
  48. package/dist/components/PayFlow/hooks/useCoinListener.d.ts +0 -18
  49. package/dist/components/PayFlow/hooks/usePriceData.d.ts +0 -3
  50. package/dist/components/PayFlow/hooks/useServerBalanceUpdate.d.ts +0 -4
  51. package/dist/components/PayFlow/hooks/useWalletListener.d.ts +0 -4
  52. package/dist/components/PayFlow/index.d.ts +0 -19
  53. package/dist/components/PaymentRequest/index.d.ts +0 -12
  54. package/dist/components/WalletTracker/index.d.ts +0 -19
  55. package/dist/esm/types/node_modules/web3-types/src/eth_types.d.ts +0 -440
  56. package/dist/esm/types/node_modules/web3-types/src/primitives_types.d.ts +0 -4
  57. package/dist/esm/types/src/components/CreditTransfer/index.d.ts +0 -12
  58. package/dist/esm/types/src/components/PayFlow/AmountEditor.d.ts +0 -9
  59. package/dist/esm/types/src/components/PayFlow/CryptoDeposit/index.d.ts +0 -16
  60. package/dist/esm/types/src/components/PayFlow/FiatDeposit/index.d.ts +0 -22
  61. package/dist/esm/types/src/components/PayFlow/PaymentDetected.d.ts +0 -7
  62. package/dist/esm/types/src/components/PayFlow/StatusCoin.d.ts +0 -6
  63. package/dist/esm/types/src/components/PayFlow/WalletFactory.d.ts +0 -21
  64. package/dist/esm/types/src/components/PayFlow/hooks/useCoinListener.d.ts +0 -18
  65. package/dist/esm/types/src/components/PayFlow/hooks/usePriceData.d.ts +0 -3
  66. package/dist/esm/types/src/components/PayFlow/hooks/useServerBalanceUpdate.d.ts +0 -4
  67. package/dist/esm/types/src/components/PayFlow/hooks/useWalletListener.d.ts +0 -4
  68. package/dist/esm/types/src/components/PayFlow/index.d.ts +0 -19
  69. package/dist/esm/types/src/components/PaymentRequest/index.d.ts +0 -12
  70. package/dist/esm/types/src/components/WalletTracker/index.d.ts +0 -19
  71. package/dist/esm/types/src/utils/storeframer.d.ts +0 -7
  72. package/dist/utils/storeframer.d.ts +0 -7
  73. /package/dist/cjs/types/{src/components → components}/Firebase/AccessTokenDoor.d.ts +0 -0
  74. /package/dist/cjs/types/{src/components → components}/Firebase/AuthView.d.ts +0 -0
  75. /package/dist/cjs/types/{src/components → components}/Firebase/SignInView.d.ts +0 -0
  76. /package/dist/cjs/types/{src/components → components}/Firebase/SignUpView.d.ts +0 -0
  77. /package/dist/cjs/types/{src/components → components}/Firebase/data.type.d.ts +0 -0
  78. /package/dist/cjs/types/{src/components → components}/Firebase/index.d.ts +0 -0
  79. /package/dist/cjs/types/{src/components/PayFlow → components}/hooks/useReferralId.d.ts +0 -0
  80. /package/dist/cjs/types/{src/components/PayFlow → components}/hooks/useTools/types.d.ts +0 -0
  81. /package/dist/cjs/types/{src/components/PayFlow → components}/hooks/useTools/utils.d.ts +0 -0
  82. /package/dist/cjs/types/{src/components → components}/index.d.ts +0 -0
  83. /package/dist/cjs/types/{src/components/PayFlow → components}/types.d.ts +0 -0
  84. /package/dist/cjs/types/{src/components → components}/widgets/AppButton.d.ts +0 -0
  85. /package/dist/cjs/types/{src/components → components}/widgets/CopyView.d.ts +0 -0
  86. /package/dist/cjs/types/{src/components → components}/widgets/DrawerPop/index.d.ts +0 -0
  87. /package/dist/cjs/types/{src/components → components}/widgets/InfoLabel.d.ts +0 -0
  88. /package/dist/cjs/types/{src/components → components}/widgets/InputBox/index.d.ts +0 -0
  89. /package/dist/cjs/types/{src/components → components}/widgets/InputBox/utils.d.ts +0 -0
  90. /package/dist/cjs/types/{src/components → components}/widgets/Link.d.ts +0 -0
  91. /package/dist/cjs/types/{src/components → components}/widgets/Loading.d.ts +0 -0
  92. /package/dist/cjs/types/{src/components → components}/widgets/ModalPop/index.d.ts +0 -0
  93. /package/dist/cjs/types/{src/components → components}/widgets/PleaseWaitForX.d.ts +0 -0
  94. /package/dist/cjs/types/{src/index.d.ts → index.d.ts} +0 -0
  95. /package/dist/cjs/types/{src/theme.d.ts → theme.d.ts} +0 -0
  96. /package/dist/cjs/types/{src/theme.type.d.ts → theme.type.d.ts} +0 -0
  97. /package/dist/cjs/types/{src/utils → utils}/CustomError.d.ts +0 -0
  98. /package/dist/cjs/types/{src/utils → utils}/base64Images.d.ts +0 -0
  99. /package/dist/components/{PayFlow/hooks → hooks}/useReferralId.d.ts +0 -0
  100. /package/dist/components/{PayFlow/hooks → hooks}/useTools/types.d.ts +0 -0
  101. /package/dist/components/{PayFlow/hooks → hooks}/useTools/utils.d.ts +0 -0
  102. /package/dist/components/{PayFlow/types.d.ts → types.d.ts} +0 -0
  103. /package/dist/esm/types/{src/components → components}/Firebase/AccessTokenDoor.d.ts +0 -0
  104. /package/dist/esm/types/{src/components → components}/Firebase/AuthView.d.ts +0 -0
  105. /package/dist/esm/types/{src/components → components}/Firebase/SignInView.d.ts +0 -0
  106. /package/dist/esm/types/{src/components → components}/Firebase/SignUpView.d.ts +0 -0
  107. /package/dist/esm/types/{src/components → components}/Firebase/data.type.d.ts +0 -0
  108. /package/dist/esm/types/{src/components → components}/Firebase/index.d.ts +0 -0
  109. /package/dist/esm/types/{src/components/PayFlow → components}/hooks/useReferralId.d.ts +0 -0
  110. /package/dist/esm/types/{src/components/PayFlow → components}/hooks/useTools/types.d.ts +0 -0
  111. /package/dist/esm/types/{src/components/PayFlow → components}/hooks/useTools/utils.d.ts +0 -0
  112. /package/dist/esm/types/{src/components → components}/index.d.ts +0 -0
  113. /package/dist/esm/types/{src/components/PayFlow → components}/types.d.ts +0 -0
  114. /package/dist/esm/types/{src/components → components}/widgets/AppButton.d.ts +0 -0
  115. /package/dist/esm/types/{src/components → components}/widgets/CopyView.d.ts +0 -0
  116. /package/dist/esm/types/{src/components → components}/widgets/DrawerPop/index.d.ts +0 -0
  117. /package/dist/esm/types/{src/components → components}/widgets/InfoLabel.d.ts +0 -0
  118. /package/dist/esm/types/{src/components → components}/widgets/InputBox/index.d.ts +0 -0
  119. /package/dist/esm/types/{src/components → components}/widgets/InputBox/utils.d.ts +0 -0
  120. /package/dist/esm/types/{src/components → components}/widgets/Link.d.ts +0 -0
  121. /package/dist/esm/types/{src/components → components}/widgets/Loading.d.ts +0 -0
  122. /package/dist/esm/types/{src/components → components}/widgets/ModalPop/index.d.ts +0 -0
  123. /package/dist/esm/types/{src/components → components}/widgets/PleaseWaitForX.d.ts +0 -0
  124. /package/dist/esm/types/{src/index.d.ts → index.d.ts} +0 -0
  125. /package/dist/esm/types/{src/theme.d.ts → theme.d.ts} +0 -0
  126. /package/dist/esm/types/{src/theme.type.d.ts → theme.type.d.ts} +0 -0
  127. /package/dist/esm/types/{src/utils → utils}/CustomError.d.ts +0 -0
  128. /package/dist/esm/types/{src/utils → utils}/base64Images.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { DownloadTypeProps, DownloadTypeResult, Tool } from "../PayFlow/types";
2
+ import { DownloadTypeProps, DownloadTypeResult, Tool } from "../types";
3
3
  import { Config } from "../../theme.type";
4
4
  interface DownloadType extends DownloadTypeProps {
5
5
  config: Config;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { User } from 'firebase/auth';
3
3
  import { AuthResource } from '../Firebase/data.type';
4
- import { DownloadTypeProps, DownloadTypeResult, SaltBalanceConfirmation, SdkConfig } from '../PayFlow/types';
5
- import useSdkConfig from '../PayFlow/hooks/useSdkConfig';
4
+ import { DownloadTypeProps, DownloadTypeResult, SaltBalanceConfirmation, SdkConfig } from '../types';
5
+ import useSdkConfig from '../hooks/useSdkConfig';
6
6
  import { Config } from '../../theme.type';
7
- import useTools, { UseToolsResult } from '../PayFlow/hooks/useTools';
8
- import { StaticTool, DynamicTool, DynamicTemplate, ToolsData } from "../PayFlow/hooks/useTools/types";
9
- import { rmUpdates } from '../PayFlow/hooks/useTools/utils';
10
- import useReferralId from '../PayFlow/hooks/useReferralId';
7
+ import useTools, { UseToolsResult } from '../hooks/useTools';
8
+ import { StaticTool, DynamicTool, DynamicTemplate, ToolsData } from "../hooks/useTools/types";
9
+ import { rmUpdates } from '../hooks/useTools/utils';
10
+ import useReferralId from '../hooks/useReferralId';
11
11
  export { rmUpdates };
12
12
  export interface FrontbackedProviderProps {
13
13
  children: any;
@@ -1,5 +1,5 @@
1
1
  import { SdkConfig } from '../types';
2
- import { Config } from '../../../theme.type';
2
+ import { Config } from '../../theme.type';
3
3
  declare global {
4
4
  interface Window {
5
5
  fetchPromise: Promise<SdkConfig | null> | null;
@@ -1,5 +1,5 @@
1
1
  import { ToolsData } from "./types";
2
- import { Config } from "../../../../theme.type";
2
+ import { Config } from "../../../theme.type";
3
3
  declare global {
4
4
  interface Window {
5
5
  toolsFetchPromise: Promise<ToolsData | null> | null;
@@ -1,4 +1,3 @@
1
- import { Coins } from "../components/PayFlow/types";
2
1
  export declare const FIREBASE_CONFIG: {
3
2
  [x: string]: any;
4
3
  };
@@ -16,10 +15,6 @@ export declare const SDK_RETRY_INTERVAL_MINS = 0.2;
16
15
  export declare const PRICE_FETCH_INTERVAL_MINS = 10;
17
16
  export declare const MIN_BLOCK_CHECK_INTERVAL_SECONDS = 5;
18
17
  export declare const MIN_REFERAAL_WITHDRAWAL = 20;
19
- export declare const CHAINS_RPC_LISTS: {
20
- [x: string]: string[];
21
- };
22
- export declare const COINS: Coins;
23
18
  export declare const SDK_NAME = "APP";
24
19
  export declare const SDK_SITE = "https://frontbacked.com";
25
20
  export declare const STORE_FRAME_ID: string;
@@ -1,7 +1,4 @@
1
1
  import CustomError from "./CustomError";
2
- export declare function isEthAddress(address: string): string | false;
3
- export declare function weiToEther(bigIntValue: BigInt, decimalPlaces: number, precision: number): number;
4
- export declare function bigIntToBigDecimal(bigIntValue: BigInt): any;
5
2
  export declare const nullOrEmpty: (d: any) => boolean;
6
3
  export declare const isVoid: (value: any) => boolean;
7
4
  export declare const isValidEmail: (email: string) => boolean;
@@ -16,7 +13,6 @@ export declare const rejectPromise: (promiseId: string, error: any) => void;
16
13
  export declare const updateLogSettings: (enableLog?: boolean | null) => void;
17
14
  export declare const consoleLog: (...args: any[]) => void;
18
15
  export declare const whatsappLink: (phoneNumber?: string | null, message?: string, isWeb?: boolean) => string;
19
- export declare const getDefaultCoin: () => string;
20
16
  export declare const downloadSvgAsImage: (svgString: string, format?: 'png' | 'jpeg', fileName?: string) => Promise<string>;
21
17
  export declare function extractNumberFromString(text: string): number | null;
22
18
  export declare const getColor: (isDarkMode: boolean | undefined, colorName: string) => string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { DownloadTypeProps, DownloadTypeResult, Tool } from "../PayFlow/types";
2
+ import { DownloadTypeProps, DownloadTypeResult, Tool } from "../types";
3
3
  import { Config } from "../../theme.type";
4
4
  interface DownloadType extends DownloadTypeProps {
5
5
  config: Config;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { User } from 'firebase/auth';
3
3
  import { AuthResource } from '../Firebase/data.type';
4
- import { DownloadTypeProps, DownloadTypeResult, SaltBalanceConfirmation, SdkConfig } from '../PayFlow/types';
5
- import useSdkConfig from '../PayFlow/hooks/useSdkConfig';
4
+ import { DownloadTypeProps, DownloadTypeResult, SaltBalanceConfirmation, SdkConfig } from '../types';
5
+ import useSdkConfig from '../hooks/useSdkConfig';
6
6
  import { Config } from '../../theme.type';
7
- import useTools, { UseToolsResult } from '../PayFlow/hooks/useTools';
8
- import { StaticTool, DynamicTool, DynamicTemplate, ToolsData } from "../PayFlow/hooks/useTools/types";
9
- import { rmUpdates } from '../PayFlow/hooks/useTools/utils';
10
- import useReferralId from '../PayFlow/hooks/useReferralId';
7
+ import useTools, { UseToolsResult } from '../hooks/useTools';
8
+ import { StaticTool, DynamicTool, DynamicTemplate, ToolsData } from "../hooks/useTools/types";
9
+ import { rmUpdates } from '../hooks/useTools/utils';
10
+ import useReferralId from '../hooks/useReferralId';
11
11
  export { rmUpdates };
12
12
  export interface FrontbackedProviderProps {
13
13
  children: any;
@@ -1,5 +1,5 @@
1
1
  import { SdkConfig } from '../types';
2
- import { Config } from '../../../theme.type';
2
+ import { Config } from '../../theme.type';
3
3
  declare global {
4
4
  interface Window {
5
5
  fetchPromise: Promise<SdkConfig | null> | null;
@@ -1,5 +1,5 @@
1
1
  import { ToolsData } from "./types";
2
- import { Config } from "../../../../theme.type";
2
+ import { Config } from "../../../theme.type";
3
3
  declare global {
4
4
  interface Window {
5
5
  toolsFetchPromise: Promise<ToolsData | null> | null;