use-frontbacked 5.0.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.
Files changed (151) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/index.js +8066 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/types/node_modules/web3-types/src/eth_types.d.ts +440 -0
  5. package/dist/cjs/types/node_modules/web3-types/src/primitives_types.d.ts +4 -0
  6. package/dist/cjs/types/src/components/CreditTransfer/index.d.ts +12 -0
  7. package/dist/cjs/types/src/components/DownloadType/index.d.ts +12 -0
  8. package/dist/cjs/types/src/components/Firebase/AccessTokenDoor.d.ts +12 -0
  9. package/dist/cjs/types/src/components/Firebase/AuthView.d.ts +15 -0
  10. package/dist/cjs/types/src/components/Firebase/SignInView.d.ts +11 -0
  11. package/dist/cjs/types/src/components/Firebase/SignUpView.d.ts +10 -0
  12. package/dist/cjs/types/src/components/Firebase/data.type.d.ts +23 -0
  13. package/dist/cjs/types/src/components/Firebase/index.d.ts +14 -0
  14. package/dist/cjs/types/src/components/PayFlow/AmountEditor.d.ts +9 -0
  15. package/dist/cjs/types/src/components/PayFlow/CryptoDeposit/index.d.ts +16 -0
  16. package/dist/cjs/types/src/components/PayFlow/FiatDeposit/index.d.ts +22 -0
  17. package/dist/cjs/types/src/components/PayFlow/PaymentDetected.d.ts +7 -0
  18. package/dist/cjs/types/src/components/PayFlow/StatusCoin.d.ts +6 -0
  19. package/dist/cjs/types/src/components/PayFlow/WalletFactory.d.ts +21 -0
  20. package/dist/cjs/types/src/components/PayFlow/hooks/useCoinListener.d.ts +18 -0
  21. package/dist/cjs/types/src/components/PayFlow/hooks/usePriceData.d.ts +3 -0
  22. package/dist/cjs/types/src/components/PayFlow/hooks/useReferralId.d.ts +5 -0
  23. package/dist/cjs/types/src/components/PayFlow/hooks/useSdkConfig.d.ts +10 -0
  24. package/dist/cjs/types/src/components/PayFlow/hooks/useServerBalanceUpdate.d.ts +4 -0
  25. package/dist/cjs/types/src/components/PayFlow/hooks/useTools/index.d.ts +14 -0
  26. package/dist/cjs/types/src/components/PayFlow/hooks/useTools/types.d.ts +62 -0
  27. package/dist/cjs/types/src/components/PayFlow/hooks/useTools/utils.d.ts +23 -0
  28. package/dist/cjs/types/src/components/PayFlow/hooks/useWalletListener.d.ts +4 -0
  29. package/dist/cjs/types/src/components/PayFlow/index.d.ts +19 -0
  30. package/dist/cjs/types/src/components/PayFlow/types.d.ts +214 -0
  31. package/dist/cjs/types/src/components/PaymentRequest/index.d.ts +12 -0
  32. package/dist/cjs/types/src/components/SdkProvider/index.d.ts +55 -0
  33. package/dist/cjs/types/src/components/WalletTracker/index.d.ts +19 -0
  34. package/dist/cjs/types/src/components/index.d.ts +2 -0
  35. package/dist/cjs/types/src/components/widgets/AppButton.d.ts +17 -0
  36. package/dist/cjs/types/src/components/widgets/CopyView.d.ts +24 -0
  37. package/dist/cjs/types/src/components/widgets/DrawerPop/index.d.ts +25 -0
  38. package/dist/cjs/types/src/components/widgets/InfoLabel.d.ts +11 -0
  39. package/dist/cjs/types/src/components/widgets/InputBox/index.d.ts +94 -0
  40. package/dist/cjs/types/src/components/widgets/InputBox/utils.d.ts +1 -0
  41. package/dist/cjs/types/src/components/widgets/Link.d.ts +9 -0
  42. package/dist/cjs/types/src/components/widgets/Loading.d.ts +27 -0
  43. package/dist/cjs/types/src/components/widgets/ModalPop/index.d.ts +26 -0
  44. package/dist/cjs/types/src/components/widgets/PleaseWaitForX.d.ts +3 -0
  45. package/dist/cjs/types/src/index.d.ts +1 -0
  46. package/dist/cjs/types/src/theme.d.ts +3 -0
  47. package/dist/cjs/types/src/theme.type.d.ts +19 -0
  48. package/dist/cjs/types/src/utils/CustomError.d.ts +5 -0
  49. package/dist/cjs/types/src/utils/base64Images.d.ts +4 -0
  50. package/dist/cjs/types/src/utils/c.d.ts +38 -0
  51. package/dist/cjs/types/src/utils/f.d.ts +27 -0
  52. package/dist/cjs/types/src/utils/storeframer.d.ts +7 -0
  53. package/dist/components/CreditTransfer/index.d.ts +12 -0
  54. package/dist/components/DownloadType/index.d.ts +12 -0
  55. package/dist/components/Firebase/AccessTokenDoor.d.ts +12 -0
  56. package/dist/components/Firebase/AuthView.d.ts +15 -0
  57. package/dist/components/Firebase/SignInView.d.ts +11 -0
  58. package/dist/components/Firebase/SignUpView.d.ts +10 -0
  59. package/dist/components/Firebase/data.type.d.ts +23 -0
  60. package/dist/components/Firebase/index.d.ts +14 -0
  61. package/dist/components/PayFlow/AmountEditor.d.ts +9 -0
  62. package/dist/components/PayFlow/CryptoDeposit/index.d.ts +16 -0
  63. package/dist/components/PayFlow/FiatDeposit/index.d.ts +22 -0
  64. package/dist/components/PayFlow/PaymentDetected.d.ts +7 -0
  65. package/dist/components/PayFlow/StatusCoin.d.ts +6 -0
  66. package/dist/components/PayFlow/WalletFactory.d.ts +21 -0
  67. package/dist/components/PayFlow/hooks/useCoinListener.d.ts +18 -0
  68. package/dist/components/PayFlow/hooks/usePriceData.d.ts +3 -0
  69. package/dist/components/PayFlow/hooks/useReferralId.d.ts +5 -0
  70. package/dist/components/PayFlow/hooks/useSdkConfig.d.ts +10 -0
  71. package/dist/components/PayFlow/hooks/useServerBalanceUpdate.d.ts +4 -0
  72. package/dist/components/PayFlow/hooks/useTools/index.d.ts +14 -0
  73. package/dist/components/PayFlow/hooks/useTools/types.d.ts +62 -0
  74. package/dist/components/PayFlow/hooks/useTools/utils.d.ts +23 -0
  75. package/dist/components/PayFlow/hooks/useWalletListener.d.ts +4 -0
  76. package/dist/components/PayFlow/index.d.ts +19 -0
  77. package/dist/components/PayFlow/types.d.ts +214 -0
  78. package/dist/components/PaymentRequest/index.d.ts +12 -0
  79. package/dist/components/SdkProvider/index.d.ts +55 -0
  80. package/dist/components/WalletTracker/index.d.ts +19 -0
  81. package/dist/components/index.d.ts +2 -0
  82. package/dist/components/widgets/AppButton.d.ts +17 -0
  83. package/dist/components/widgets/CopyView.d.ts +24 -0
  84. package/dist/components/widgets/DrawerPop/index.d.ts +25 -0
  85. package/dist/components/widgets/InfoLabel.d.ts +11 -0
  86. package/dist/components/widgets/InputBox/index.d.ts +94 -0
  87. package/dist/components/widgets/InputBox/utils.d.ts +1 -0
  88. package/dist/components/widgets/Link.d.ts +9 -0
  89. package/dist/components/widgets/Loading.d.ts +27 -0
  90. package/dist/components/widgets/ModalPop/index.d.ts +26 -0
  91. package/dist/components/widgets/PleaseWaitForX.d.ts +3 -0
  92. package/dist/esm/index.es.js +8049 -0
  93. package/dist/esm/index.es.js.map +1 -0
  94. package/dist/esm/types/node_modules/web3-types/src/eth_types.d.ts +440 -0
  95. package/dist/esm/types/node_modules/web3-types/src/primitives_types.d.ts +4 -0
  96. package/dist/esm/types/src/components/CreditTransfer/index.d.ts +12 -0
  97. package/dist/esm/types/src/components/DownloadType/index.d.ts +12 -0
  98. package/dist/esm/types/src/components/Firebase/AccessTokenDoor.d.ts +12 -0
  99. package/dist/esm/types/src/components/Firebase/AuthView.d.ts +15 -0
  100. package/dist/esm/types/src/components/Firebase/SignInView.d.ts +11 -0
  101. package/dist/esm/types/src/components/Firebase/SignUpView.d.ts +10 -0
  102. package/dist/esm/types/src/components/Firebase/data.type.d.ts +23 -0
  103. package/dist/esm/types/src/components/Firebase/index.d.ts +14 -0
  104. package/dist/esm/types/src/components/PayFlow/AmountEditor.d.ts +9 -0
  105. package/dist/esm/types/src/components/PayFlow/CryptoDeposit/index.d.ts +16 -0
  106. package/dist/esm/types/src/components/PayFlow/FiatDeposit/index.d.ts +22 -0
  107. package/dist/esm/types/src/components/PayFlow/PaymentDetected.d.ts +7 -0
  108. package/dist/esm/types/src/components/PayFlow/StatusCoin.d.ts +6 -0
  109. package/dist/esm/types/src/components/PayFlow/WalletFactory.d.ts +21 -0
  110. package/dist/esm/types/src/components/PayFlow/hooks/useCoinListener.d.ts +18 -0
  111. package/dist/esm/types/src/components/PayFlow/hooks/usePriceData.d.ts +3 -0
  112. package/dist/esm/types/src/components/PayFlow/hooks/useReferralId.d.ts +5 -0
  113. package/dist/esm/types/src/components/PayFlow/hooks/useSdkConfig.d.ts +10 -0
  114. package/dist/esm/types/src/components/PayFlow/hooks/useServerBalanceUpdate.d.ts +4 -0
  115. package/dist/esm/types/src/components/PayFlow/hooks/useTools/index.d.ts +14 -0
  116. package/dist/esm/types/src/components/PayFlow/hooks/useTools/types.d.ts +62 -0
  117. package/dist/esm/types/src/components/PayFlow/hooks/useTools/utils.d.ts +23 -0
  118. package/dist/esm/types/src/components/PayFlow/hooks/useWalletListener.d.ts +4 -0
  119. package/dist/esm/types/src/components/PayFlow/index.d.ts +19 -0
  120. package/dist/esm/types/src/components/PayFlow/types.d.ts +214 -0
  121. package/dist/esm/types/src/components/PaymentRequest/index.d.ts +12 -0
  122. package/dist/esm/types/src/components/SdkProvider/index.d.ts +55 -0
  123. package/dist/esm/types/src/components/WalletTracker/index.d.ts +19 -0
  124. package/dist/esm/types/src/components/index.d.ts +2 -0
  125. package/dist/esm/types/src/components/widgets/AppButton.d.ts +17 -0
  126. package/dist/esm/types/src/components/widgets/CopyView.d.ts +24 -0
  127. package/dist/esm/types/src/components/widgets/DrawerPop/index.d.ts +25 -0
  128. package/dist/esm/types/src/components/widgets/InfoLabel.d.ts +11 -0
  129. package/dist/esm/types/src/components/widgets/InputBox/index.d.ts +94 -0
  130. package/dist/esm/types/src/components/widgets/InputBox/utils.d.ts +1 -0
  131. package/dist/esm/types/src/components/widgets/Link.d.ts +9 -0
  132. package/dist/esm/types/src/components/widgets/Loading.d.ts +27 -0
  133. package/dist/esm/types/src/components/widgets/ModalPop/index.d.ts +26 -0
  134. package/dist/esm/types/src/components/widgets/PleaseWaitForX.d.ts +3 -0
  135. package/dist/esm/types/src/index.d.ts +1 -0
  136. package/dist/esm/types/src/theme.d.ts +3 -0
  137. package/dist/esm/types/src/theme.type.d.ts +19 -0
  138. package/dist/esm/types/src/utils/CustomError.d.ts +5 -0
  139. package/dist/esm/types/src/utils/base64Images.d.ts +4 -0
  140. package/dist/esm/types/src/utils/c.d.ts +38 -0
  141. package/dist/esm/types/src/utils/f.d.ts +27 -0
  142. package/dist/esm/types/src/utils/storeframer.d.ts +7 -0
  143. package/dist/index.d.ts +1 -0
  144. package/dist/theme.d.ts +3 -0
  145. package/dist/theme.type.d.ts +19 -0
  146. package/dist/utils/CustomError.d.ts +5 -0
  147. package/dist/utils/base64Images.d.ts +4 -0
  148. package/dist/utils/c.d.ts +38 -0
  149. package/dist/utils/f.d.ts +27 -0
  150. package/dist/utils/storeframer.d.ts +7 -0
  151. package/package.json +85 -0
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { AllCoinsBalanceInfo, PriceData, SaltBalanceConfirmation, Vendor } from './types';
3
+ import { Config } from '../../theme.type';
4
+ export interface PayFlow {
5
+ show: boolean;
6
+ payAmount: number | null | undefined;
7
+ walletListenerResult: AllCoinsBalanceInfo;
8
+ priceData: PriceData;
9
+ vendors?: Vendor[] | null;
10
+ minDeposit: number;
11
+ minVendorDeposit: number;
12
+ onSuccess: (latestDeposit: SaltBalanceConfirmation) => void;
13
+ onClose: () => void;
14
+ config: Config;
15
+ isDarkMode?: boolean;
16
+ contactLink?: string | null;
17
+ }
18
+ declare const PayFlow: React.FC<PayFlow>;
19
+ export default PayFlow;
@@ -0,0 +1,214 @@
1
+ import { User } from "firebase/auth";
2
+ export interface Doc {
3
+ [x: string]: any;
4
+ }
5
+ export interface Router {
6
+ push: (url: string) => void;
7
+ }
8
+ export interface DownloadTypeProps {
9
+ toolVersionCode?: number;
10
+ title?: string;
11
+ removeFreemiumBeforeUpdate?: boolean;
12
+ toolId?: string;
13
+ freeTitle?: string;
14
+ freeMessage?: string;
15
+ paidTitle?: string;
16
+ paidMessage?: string;
17
+ updateMessage?: string;
18
+ renewSubscription?: boolean;
19
+ isFreemium?: boolean;
20
+ }
21
+ export interface DocRules {
22
+ allow_freemium: boolean;
23
+ create_price: number;
24
+ update_price: number;
25
+ create_price_is_monthly?: boolean;
26
+ yearly_price?: number;
27
+ quarterly_price?: number;
28
+ x?: string[];
29
+ }
30
+ export interface SubscriptionType {
31
+ monthly: "monthly";
32
+ quarterly: "quarterly";
33
+ yearly: "yearly";
34
+ }
35
+ export declare const SUSCRIPTION_TYPES: SubscriptionType;
36
+ export interface DownloadTypeResult extends DocRules {
37
+ is_freemium: boolean;
38
+ is_create: boolean;
39
+ subscription_type?: "monthly" | "quarterly" | "yearly";
40
+ cost: number;
41
+ }
42
+ export interface Tool extends DocRules {
43
+ id: string;
44
+ isActive: boolean;
45
+ isHidden: boolean;
46
+ siteLogoUrl: string;
47
+ siteUrl: string;
48
+ desktopVideoUrl: string | null;
49
+ mobileVideoUrl: string | null;
50
+ is_static?: boolean | null;
51
+ allowFreemium?: boolean | null;
52
+ createPrice?: number | null;
53
+ description?: string | null;
54
+ icon?: string | null;
55
+ name: string;
56
+ templates_url?: string | null;
57
+ updatePrice?: number | null;
58
+ youtube?: string | null;
59
+ }
60
+ export interface Vendor {
61
+ name: string;
62
+ number: string;
63
+ freq: number;
64
+ }
65
+ export interface SdkConfig {
66
+ app_version_code: number;
67
+ ttl_days: number;
68
+ valid_till: number;
69
+ min_deposit: number;
70
+ min_vendor_deposit: number;
71
+ parent_site_home: string;
72
+ contact_link: string;
73
+ group_link: string;
74
+ group_links: string[];
75
+ aff_pct: number;
76
+ tools: Tool[];
77
+ vendors: Vendor[];
78
+ }
79
+ export interface Coins {
80
+ [x: string]: {
81
+ coingecko_price_key: string;
82
+ disabled: boolean;
83
+ key: string;
84
+ symbol: string;
85
+ decimals: number;
86
+ requiredConfirmations: number;
87
+ priority: number;
88
+ name: string;
89
+ depositWarning: string;
90
+ secondsPerBlock: number;
91
+ logo: string;
92
+ abiData: {
93
+ rpcUrl: string;
94
+ chainId: number;
95
+ address: string;
96
+ abi: {}[];
97
+ [x: string]: any;
98
+ };
99
+ };
100
+ }
101
+ export interface UseBalanceUpdateResult {
102
+ usdBalance: number;
103
+ balanceUpdating: boolean;
104
+ referralEarnings: number;
105
+ bnbPaymentAddress: string | null;
106
+ bnbTestnetPaymentAddress: string | null;
107
+ updatePaymentAddress: (address: string, chainCoin: string, user?: User | null) => Promise<void>;
108
+ syncConfirmedBalance: (coinsInfo: {
109
+ [x: string]: BigInt;
110
+ }) => void;
111
+ transferCredit: (recipientEmail: string, amount: number, user?: User | null) => Promise<void>;
112
+ }
113
+ export interface BalanceDoc {
114
+ usd_balance: number;
115
+ referral_earnings: number;
116
+ bnb_payment_address: string | null;
117
+ bnb_testnet_payment_address: string | null;
118
+ referred_by: string | null;
119
+ [coinXReferralEarnings: string]: any;
120
+ }
121
+ export interface PriceData {
122
+ [coinPrice: string]: number;
123
+ }
124
+ export interface Balance {
125
+ loading: boolean;
126
+ ethWallet: string | null | undefined;
127
+ ethWalletContracted: boolean;
128
+ bnbWallet: string | null | undefined;
129
+ bnbWalletContracted: boolean;
130
+ ethBalance: number;
131
+ ethBalanceInUsd: number;
132
+ bnbBalance: number;
133
+ bnbBalanceInUsd: number;
134
+ ethBalancePending: number;
135
+ ethBalancePendingInUsd: number;
136
+ bnbBalancePending: number;
137
+ bnbBalancePendingInUsd: number;
138
+ balanceInUsd: number;
139
+ balancePendingInUsd: number;
140
+ }
141
+ export interface SaltBalanceInfo {
142
+ salt: string;
143
+ paddedSalt: string;
144
+ wallet: string;
145
+ isCreated: boolean;
146
+ balance: BigInt;
147
+ blockNumber: number | string;
148
+ }
149
+ export interface SaltBalanceConfirmation extends SaltBalanceInfo {
150
+ depositedAmount: BigInt;
151
+ depositedAmountInCoin: number;
152
+ remainingConfirmations: number;
153
+ requiredConfirmations: number;
154
+ coin: string;
155
+ depositedAmountInUsd: number;
156
+ }
157
+ export interface BalanceInfo {
158
+ hasError: boolean;
159
+ confirmedDepositsBalance: BigInt;
160
+ confirmedDepositsBalanceInCoin: number;
161
+ unconfirmedDepositsBalance: BigInt;
162
+ unconfirmedDepositsBalanceInCoin: number;
163
+ unconfirmedDeposits: SaltBalanceConfirmation[];
164
+ latestDeposit: SaltBalanceConfirmation | null | undefined;
165
+ salt: string | null | undefined;
166
+ paddedSalt: string | null | undefined;
167
+ wallet: string | null | undefined;
168
+ walletCreated: boolean;
169
+ confirmedDepositsBalanceInUsd: number;
170
+ unconfirmedDepositsBalanceInUsd: number;
171
+ }
172
+ export interface AllCoinsBalanceInfo {
173
+ hasErrorBnbTest: boolean;
174
+ confirmedDepositsBalanceBnbTest: BigInt;
175
+ confirmedDepositsBalanceInCoinBnbTest: number;
176
+ unconfirmedDepositsBalanceBnbTest: BigInt;
177
+ unconfirmedDepositsBalanceInCoinBnbTest: number;
178
+ unconfirmedDepositsBnbTest: SaltBalanceConfirmation[];
179
+ latestDepositBnbTest: SaltBalanceConfirmation | null | undefined;
180
+ saltBnbTest: string | null | undefined;
181
+ paddedSaltBnbTest: string | null | undefined;
182
+ walletBnbTest: string | null | undefined;
183
+ walletCreatedBnbTest: boolean;
184
+ confirmedDepositsBalanceInUsdBnbTest: number;
185
+ unconfirmedDepositsBalanceInUsdBnbTest: number;
186
+ hasErrorBnb: boolean;
187
+ confirmedDepositsBalanceBnb: BigInt;
188
+ confirmedDepositsBalanceInCoinBnb: number;
189
+ unconfirmedDepositsBalanceBnb: BigInt;
190
+ unconfirmedDepositsBalanceInCoinBnb: number;
191
+ unconfirmedDepositsBnb: SaltBalanceConfirmation[];
192
+ latestDepositBnb: SaltBalanceConfirmation | null | undefined;
193
+ saltBnb: string | null | undefined;
194
+ paddedSaltBnb: string | null | undefined;
195
+ walletBnb: string | null | undefined;
196
+ walletCreatedBnb: boolean;
197
+ confirmedDepositsBalanceInUsdBnb: number;
198
+ unconfirmedDepositsBalanceInUsdBnb: number;
199
+ hasErrorEth: boolean;
200
+ confirmedDepositsBalanceEth: BigInt;
201
+ confirmedDepositsBalanceInCoinEth: number;
202
+ unconfirmedDepositsBalanceEth: BigInt;
203
+ unconfirmedDepositsBalanceInCoinEth: number;
204
+ unconfirmedDepositsEth: SaltBalanceConfirmation[];
205
+ latestDepositEth: SaltBalanceConfirmation | null | undefined;
206
+ saltEth: string | null | undefined;
207
+ paddedSaltEth: string | null | undefined;
208
+ walletEth: string | null | undefined;
209
+ walletCreatedEth: boolean;
210
+ confirmedDepositsBalanceInUsdEth: number;
211
+ unconfirmedDepositsBalanceInUsdEth: number;
212
+ balanceInUsd: number;
213
+ balancePendingInUsd: number;
214
+ }
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { User } from "firebase/auth";
3
+ import { Config } from "../../theme.type";
4
+ interface PaymentRequest {
5
+ currentPaymentAddress: string | null;
6
+ config: Config;
7
+ updatePaymentAddress: (address: string, chainCoin: string, user?: User | null) => Promise<void>;
8
+ onClose: () => void;
9
+ isDarkMode?: boolean;
10
+ }
11
+ declare const PaymentRequest: React.FC<PaymentRequest>;
12
+ export default PaymentRequest;
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ import { User } from 'firebase/auth';
3
+ import { AuthResource } from '../Firebase/data.type';
4
+ import { DownloadTypeProps, DownloadTypeResult, SaltBalanceConfirmation, SdkConfig } from '../PayFlow/types';
5
+ import useSdkConfig from '../PayFlow/hooks/useSdkConfig';
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';
11
+ export { rmUpdates };
12
+ export interface SdkProviderProps {
13
+ children: any;
14
+ config: Config;
15
+ enableLog?: boolean;
16
+ isDarkMode?: boolean;
17
+ disableBlockchainPoll?: boolean;
18
+ }
19
+ export type { StaticTool, DynamicTool, DynamicTemplate, ToolsData, UseToolsResult };
20
+ interface DocSaveResult {
21
+ docId: string;
22
+ totalFieldsUpdated: number;
23
+ }
24
+ export interface SoftBakerResourceProps extends AuthResource {
25
+ signIn: (signInTitle: string | null | undefined, signUpTitle: string | null | undefined) => Promise<User>;
26
+ signOut: () => Promise<void>;
27
+ createDoc: (documentId: string | null, document: {
28
+ [x: string]: any;
29
+ }, user?: User | null, staticToolCollection?: string | null, dynamicToolId?: string | null) => Promise<DocSaveResult>;
30
+ updateDoc: (documentId: string | null, document: {
31
+ [x: string]: any;
32
+ }, staticToolCollection?: string | null, dynamicToolId?: string | null) => Promise<DocSaveResult>;
33
+ deposit: (amount: number, signInTitle: string | null | undefined, signUpTitle: string | null | undefined) => Promise<SaltBalanceConfirmation>;
34
+ showWallet: (depositAmount: number) => void;
35
+ sdkConfig?: SdkConfig | null;
36
+ contact_link: string | null | undefined;
37
+ group_link: string | null | undefined;
38
+ group_links: string[] | null | undefined;
39
+ parent_site_home: string | null | undefined;
40
+ aff_pct: number | null | undefined;
41
+ balanceInUsd: 0;
42
+ balancePendingInUsd: 0;
43
+ unconfirmedDepositsCount: 0;
44
+ downloadSvgAsImage: (svgString: string, format: 'png' | 'jpeg', fileName: string) => Promise<string>;
45
+ getDownloadType: (downloadTypeProps: DownloadTypeProps) => Promise<DownloadTypeResult>;
46
+ saveToStoreFrameCookie: (key: string, value: string) => Promise<void>;
47
+ saveToStoreFrameLocalStorage: (key: string, value: string) => Promise<void>;
48
+ saveToStoreFrameSessionStorage: (key: string, value: string) => Promise<void>;
49
+ getFromStoreFrameCookie: (key: string) => Promise<any>;
50
+ getFromStoreFrameLocalStorage: (key: string) => Promise<any>;
51
+ getFromStoreFrameSessionStorage: (key: string) => Promise<any>;
52
+ }
53
+ declare const SdkProvider: React.FC<SdkProviderProps>;
54
+ declare function useFrontbacked(): SoftBakerResourceProps;
55
+ export { SdkProvider, useFrontbacked, useSdkConfig, useTools, useReferralId };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { AllCoinsBalanceInfo, SaltBalanceConfirmation } from '../PayFlow/types';
3
+ import { Config } from '../../theme.type';
4
+ interface WalletTracker {
5
+ affPct?: number;
6
+ walletListenerResult: AllCoinsBalanceInfo;
7
+ defaultDepositAmount: number;
8
+ balanceUpdating: boolean;
9
+ referralEarnings: number;
10
+ config: Config;
11
+ requestPayment: () => Promise<void>;
12
+ currentPaymentAddress?: string | null;
13
+ onClose: () => void;
14
+ deposit: (amount: number, signInTitle?: string | null, signUpTitle?: string | null) => Promise<SaltBalanceConfirmation>;
15
+ sell: (signInTitle?: string | null, signUpTitle?: string | null) => void;
16
+ isDarkMode?: boolean;
17
+ }
18
+ declare const WalletTracker: React.FC<WalletTracker>;
19
+ export default WalletTracker;
@@ -0,0 +1,2 @@
1
+ export { SdkProvider, useFrontbacked, useTools, useSdkConfig, rmUpdates, useReferralId } from "./SdkProvider";
2
+ export type { StaticTool, DynamicTool, DynamicTemplate, ToolsData, UseToolsResult } from "./SdkProvider";
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { ResponsiveValue } from "@chakra-ui/react";
3
+ interface AppButtonProps {
4
+ as?: any;
5
+ children?: any;
6
+ variant?: ResponsiveValue<any>;
7
+ bgColor?: ResponsiveValue<any>;
8
+ outlineColor?: ResponsiveValue<any>;
9
+ leftIcon?: ResponsiveValue<any>;
10
+ rightIcon?: ResponsiveValue<any>;
11
+ loading?: boolean;
12
+ disabled?: boolean;
13
+ onClick?: (e: any) => void;
14
+ [x: string]: any;
15
+ }
16
+ declare const AppButton: React.FC<AppButtonProps>;
17
+ export default AppButton;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ interface TypesInf {
3
+ text?: number;
4
+ address?: number;
5
+ refCode?: number;
6
+ link?: number;
7
+ shillText?: number;
8
+ refLink?: number;
9
+ phone?: number;
10
+ }
11
+ interface CopyViewProps {
12
+ as?: any;
13
+ textToCopy?: string;
14
+ children?: any;
15
+ type?: number;
16
+ copyType?: number;
17
+ maxChars?: number;
18
+ onCopyMessage?: string;
19
+ [x: string]: any;
20
+ }
21
+ declare const CopyView: React.FC<CopyViewProps> & {
22
+ Types: TypesInf;
23
+ };
24
+ export default CopyView;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ interface DrawerPopProps {
3
+ bg?: any;
4
+ color?: any;
5
+ h?: any;
6
+ height?: any;
7
+ w?: any;
8
+ width?: any;
9
+ maxH?: any;
10
+ maxHeight?: any;
11
+ maxW?: any;
12
+ maxWidth?: any;
13
+ children: any;
14
+ placement?: any;
15
+ onClose?: () => void;
16
+ isOpen: boolean;
17
+ isClosable?: boolean;
18
+ closeOnOverlayClick?: boolean;
19
+ title?: any;
20
+ footer?: any;
21
+ hideModeSwitch?: boolean;
22
+ [x: string]: any;
23
+ }
24
+ declare const DrawerPop: React.FC<DrawerPopProps>;
25
+ export default DrawerPop;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ResponsiveValue } from "@chakra-ui/react";
3
+ interface InfoLabelProps {
4
+ children?: any;
5
+ as?: any;
6
+ info?: string | string[];
7
+ textTransform?: ResponsiveValue<any>;
8
+ [x: string]: any;
9
+ }
10
+ declare const InfoLabel: React.FC<InfoLabelProps>;
11
+ export default InfoLabel;
@@ -0,0 +1,94 @@
1
+ import React from 'react';
2
+ import { ResponsiveValue } from '@chakra-ui/react';
3
+ export declare const TYPES: {
4
+ text: string;
5
+ email: string;
6
+ number: string;
7
+ range: string;
8
+ date: string;
9
+ phone: string;
10
+ password: string;
11
+ select: string;
12
+ select_tree: string;
13
+ textarea: string;
14
+ checkbox: string;
15
+ checklist: string;
16
+ radio: string;
17
+ none: string;
18
+ location: string;
19
+ price: string;
20
+ };
21
+ export interface PhoneValue {
22
+ number: string;
23
+ countryCode?: string;
24
+ currencyCode?: string;
25
+ dialingCode?: string;
26
+ }
27
+ export interface LocationValue {
28
+ name?: string;
29
+ address?: string;
30
+ position?: {
31
+ lat: number;
32
+ lng: number;
33
+ };
34
+ }
35
+ export interface RangeValue {
36
+ min: number;
37
+ max: number;
38
+ }
39
+ interface InputBoxProps {
40
+ key?: string;
41
+ id?: string;
42
+ title?: string | any[];
43
+ name?: string;
44
+ type?: string;
45
+ locale?: string;
46
+ value?: string | any[] | number | RangeValue | PhoneValue | LocationValue | boolean | any;
47
+ onFocus?: (value: any) => void;
48
+ onChange?: (value: any) => void;
49
+ onCheckInfo?: (value: any) => {
50
+ waitTime: number;
51
+ checker: (currentValue: any) => Promise<boolean>;
52
+ };
53
+ onKeyDown?: (e?: any) => void;
54
+ errorMessage?: string | any[];
55
+ helperText?: string | any[] | any | undefined;
56
+ info?: string | any[];
57
+ placeholder?: string | any[] | undefined;
58
+ textTransform?: ResponsiveValue<any>;
59
+ options?: any[];
60
+ onOptionValue?: (option: any, index?: number) => string | number | any[];
61
+ onOptionName?: (option: any, index?: number) => string | any[] | JSX.Element;
62
+ defaultCountry?: string;
63
+ phoneSelectBg?: string;
64
+ phoneSelectColor?: string;
65
+ numberDecimals?: number;
66
+ hasNegOverflow?: boolean;
67
+ numberUnit?: any;
68
+ iconLeft?: any;
69
+ iconRight?: any;
70
+ disableCalendar?: boolean;
71
+ disableClock?: boolean;
72
+ dateFormat?: string;
73
+ direction?: ResponsiveValue<any>;
74
+ maxTextLimit?: number;
75
+ resize?: ResponsiveValue<any>;
76
+ /**Range props */
77
+ rangeMinPlaceholder?: string;
78
+ rangeMaxPlaceholder?: string;
79
+ minTitle?: string | any[];
80
+ maxTitle?: string | any[];
81
+ disabled?: boolean;
82
+ apiKey?: string;
83
+ mapToSearchRatio?: number;
84
+ twoDigitCountryCode?: string;
85
+ inputRef?: any;
86
+ defaultLatlng?: {
87
+ lat: number;
88
+ lng: number;
89
+ } | undefined;
90
+ geotype?: string;
91
+ [x: string]: any;
92
+ }
93
+ declare const _default: React.NamedExoticComponent<InputBoxProps>;
94
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const arraysEqual: (array1: any[], array2: any[]) => boolean;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface LinkProps {
3
+ children: any;
4
+ disabled?: boolean | null | undefined;
5
+ onClick?: (e: any) => void | null | undefined;
6
+ [x: string]: any;
7
+ }
8
+ declare const Link: React.FC<LinkProps>;
9
+ export default Link;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ interface TYPES_PROPS {
3
+ audio: string;
4
+ bars: string;
5
+ ballTrinagle: string;
6
+ circles: string;
7
+ grid: string;
8
+ hearts: string;
9
+ oval: string;
10
+ puff: string;
11
+ rings: string;
12
+ tailSpin: string;
13
+ threeDots: string;
14
+ RotatingLines: string;
15
+ Dna: string;
16
+ }
17
+ interface LoadingProps {
18
+ type?: string;
19
+ [x: string]: any;
20
+ }
21
+ declare const Loading: {
22
+ type?: string;
23
+ [x: string]: any;
24
+ } & {
25
+ TYPES: TYPES_PROPS;
26
+ } & React.FC<LoadingProps>;
27
+ export default Loading;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ interface ModalPopProps {
3
+ bg?: any;
4
+ color?: any;
5
+ w?: any;
6
+ width?: any;
7
+ maxW?: any;
8
+ maxWidth?: any;
9
+ h?: any;
10
+ height?: any;
11
+ maxH?: any;
12
+ maxHeight?: any;
13
+ children: any;
14
+ placement?: any;
15
+ onClose?: () => void;
16
+ isOpen: boolean;
17
+ isClosable?: boolean;
18
+ title?: any;
19
+ subtitle?: any;
20
+ footer?: any;
21
+ hideModeSwitch?: boolean;
22
+ noHeader?: boolean;
23
+ [x: string]: any;
24
+ }
25
+ declare const ModalPop: React.FC<ModalPopProps>;
26
+ export default ModalPop;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PleaseWaitForX: () => React.JSX.Element;
3
+ export default PleaseWaitForX;