@daimo/pay 1.16.1 → 1.16.2

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 (210) hide show
  1. package/build/index.d.ts +5 -3
  2. package/build/package.json.js +2 -2
  3. package/build/src/components/Common/SelectAnotherMethodButton/index.js +15 -3
  4. package/build/src/components/Common/SelectAnotherMethodButton/index.js.map +1 -1
  5. package/build/src/components/DaimoPayButton/index.js +2 -1
  6. package/build/src/components/DaimoPayButton/index.js.map +1 -1
  7. package/build/src/components/Pages/SelectMethod/index.js +0 -1
  8. package/build/src/components/Pages/SelectMethod/index.js.map +1 -1
  9. package/build/src/payment/paymentFsm.js.map +1 -1
  10. package/package.json +3 -3
  11. package/build/assets/MobileWithLogos.d.ts +0 -2
  12. package/build/assets/ScanIconWithLogos.d.ts +0 -6
  13. package/build/assets/browsers.d.ts +0 -10
  14. package/build/assets/chains.d.ts +0 -28
  15. package/build/assets/coins.d.ts +0 -2
  16. package/build/assets/crepe.d.ts +0 -3
  17. package/build/assets/icons.d.ts +0 -35
  18. package/build/assets/logos.d.ts +0 -207
  19. package/build/assets/wallet.d.ts +0 -3
  20. package/build/assets/wave.d.ts +0 -2
  21. package/build/components/Common/Alert/index.d.ts +0 -6
  22. package/build/components/Common/Alert/styles.d.ts +0 -2
  23. package/build/components/Common/Alert/types.d.ts +0 -5
  24. package/build/components/Common/AmountInput/AmountInputField.d.ts +0 -8
  25. package/build/components/Common/AmountInput/index.d.ts +0 -9
  26. package/build/components/Common/Avatar/index.d.ts +0 -17
  27. package/build/components/Common/Avatar/styles.d.ts +0 -2
  28. package/build/components/Common/BrowserIcon/index.d.ts +0 -4
  29. package/build/components/Common/BrowserIcon/styles.d.ts +0 -1
  30. package/build/components/Common/BrowserIcon/types.d.ts +0 -3
  31. package/build/components/Common/Button/index.d.ts +0 -4
  32. package/build/components/Common/Button/styles.d.ts +0 -10
  33. package/build/components/Common/Button/types.d.ts +0 -15
  34. package/build/components/Common/Chain/index.d.ts +0 -9
  35. package/build/components/Common/Chain/styles.d.ts +0 -4
  36. package/build/components/Common/ChainSelectList/index.d.ts +0 -4
  37. package/build/components/Common/ChainSelectList/styles.d.ts +0 -9
  38. package/build/components/Common/CircleTimer.d.ts +0 -17
  39. package/build/components/Common/ConnectorList/index.d.ts +0 -2
  40. package/build/components/Common/ConnectorList/styles.d.ts +0 -8
  41. package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +0 -6
  42. package/build/components/Common/CopyToClipboard/index.d.ts +0 -7
  43. package/build/components/Common/CustomQRCode/QRCode.d.ts +0 -12
  44. package/build/components/Common/CustomQRCode/index.d.ts +0 -6
  45. package/build/components/Common/CustomQRCode/styles.d.ts +0 -6
  46. package/build/components/Common/CustomQRCode/types.d.ts +0 -11
  47. package/build/components/Common/DynamicContainer/index.d.ts +0 -7
  48. package/build/components/Common/FitText/index.d.ts +0 -8
  49. package/build/components/Common/LazyImage/index.d.ts +0 -8
  50. package/build/components/Common/Logo/index.d.ts +0 -8
  51. package/build/components/Common/Logo/styles.d.ts +0 -3
  52. package/build/components/Common/Modal/index.d.ts +0 -25
  53. package/build/components/Common/Modal/styles.d.ts +0 -25
  54. package/build/components/Common/OptionsList/index.d.ts +0 -17
  55. package/build/components/Common/OptionsList/styles.d.ts +0 -5
  56. package/build/components/Common/OrderHeader/index.d.ts +0 -5
  57. package/build/components/Common/PaymentBreakdown/index.d.ts +0 -6
  58. package/build/components/Common/Portal/index.d.ts +0 -2
  59. package/build/components/Common/PoweredByFooter/index.d.ts +0 -5
  60. package/build/components/Common/ScrollArea/index.d.ts +0 -9
  61. package/build/components/Common/ScrollArea/styles.d.ts +0 -3
  62. package/build/components/Common/SelectAnotherMethodButton/index.d.ts +0 -1
  63. package/build/components/Common/Spinner/index.d.ts +0 -1
  64. package/build/components/Common/Spinner/styles.d.ts +0 -1
  65. package/build/components/Common/SquareTimer.d.ts +0 -19
  66. package/build/components/Common/SwitchButton/index.d.ts +0 -6
  67. package/build/components/Common/ThemedButton/index.d.ts +0 -15
  68. package/build/components/Common/ThemedButton/styles.d.ts +0 -2
  69. package/build/components/Common/TokenChainLogo/index.d.ts +0 -7
  70. package/build/components/Common/Tooltip/index.d.ts +0 -4
  71. package/build/components/Common/Tooltip/styles.d.ts +0 -3
  72. package/build/components/Common/Tooltip/types.d.ts +0 -9
  73. package/build/components/Common/WalletChainLogo/index.d.ts +0 -6
  74. package/build/components/DaimoPayButton/index.d.ts +0 -149
  75. package/build/components/DaimoPayButton/styles.d.ts +0 -4
  76. package/build/components/DaimoPayModal/ConnectUsing.d.ts +0 -2
  77. package/build/components/DaimoPayModal/ConnectWithInjector/index.d.ts +0 -15
  78. package/build/components/DaimoPayModal/ConnectWithInjector/styles.d.ts +0 -6
  79. package/build/components/DaimoPayModal/ConnectWithQRCode.d.ts +0 -12
  80. package/build/components/DaimoPayModal/index.d.ts +0 -8
  81. package/build/components/DaimoPayThemeProvider/DaimoPayThemeProvider.d.ts +0 -16
  82. package/build/components/Pages/About/graphics.d.ts +0 -11
  83. package/build/components/Pages/About/index.d.ts +0 -3
  84. package/build/components/Pages/About/styles.d.ts +0 -8
  85. package/build/components/Pages/Confirmation/index.d.ts +0 -3
  86. package/build/components/Pages/Connectors/index.d.ts +0 -3
  87. package/build/components/Pages/Connectors/styles.d.ts +0 -9
  88. package/build/components/Pages/DownloadApp/index.d.ts +0 -2
  89. package/build/components/Pages/Error/index.d.ts +0 -1
  90. package/build/components/Pages/MobileConnectors/index.d.ts +0 -3
  91. package/build/components/Pages/MobileConnectors/styles.d.ts +0 -5
  92. package/build/components/Pages/Onboarding/index.d.ts +0 -3
  93. package/build/components/Pages/Onboarding/styles.d.ts +0 -9
  94. package/build/components/Pages/PayWithToken/index.d.ts +0 -3
  95. package/build/components/Pages/SelectAmount/index.d.ts +0 -3
  96. package/build/components/Pages/SelectDepositAddressAmount/index.d.ts +0 -3
  97. package/build/components/Pages/SelectDepositAddressChain/index.d.ts +0 -3
  98. package/build/components/Pages/SelectExchange/index.d.ts +0 -3
  99. package/build/components/Pages/SelectExternalAmount/index.d.ts +0 -3
  100. package/build/components/Pages/SelectMethod/index.d.ts +0 -1
  101. package/build/components/Pages/SelectMethod/styles.d.ts +0 -9
  102. package/build/components/Pages/SelectToken/index.d.ts +0 -1
  103. package/build/components/Pages/SelectWalletAmount/index.d.ts +0 -3
  104. package/build/components/Pages/SelectWalletChain/index.d.ts +0 -3
  105. package/build/components/Pages/SelectZKP/index.d.ts +0 -3
  106. package/build/components/Pages/Solana/ConnectorSolana/index.d.ts +0 -4
  107. package/build/components/Pages/Solana/PayWithSolanaToken/index.d.ts +0 -3
  108. package/build/components/Pages/Solana/SelectSolanaAmount/index.d.ts +0 -3
  109. package/build/components/Pages/SwitchNetworks/index.d.ts +0 -3
  110. package/build/components/Pages/WaitingDepositAddress/index.d.ts +0 -1
  111. package/build/components/Pages/WaitingExternal/index.d.ts +0 -3
  112. package/build/components/Pages/WaitingWallet/index.d.ts +0 -3
  113. package/build/components/Spinners/CircleSpinner/index.d.ts +0 -9
  114. package/build/components/Spinners/CircleSpinner/styles.d.ts +0 -5
  115. package/build/components/Spinners/ExternalPaymentSpinner/index.d.ts +0 -5
  116. package/build/components/Spinners/SquircleSpinner/index.d.ts +0 -5
  117. package/build/components/Spinners/SquircleSpinner/styles.d.ts +0 -4
  118. package/build/components/Spinners/TokenLogoSpinner/index.d.ts +0 -5
  119. package/build/components/Spinners/TokenLogoSpinner/styles.d.ts +0 -1
  120. package/build/components/Spinners/WalletPaymentSpinner/index.d.ts +0 -5
  121. package/build/components/Spinners/styles.d.ts +0 -2
  122. package/build/constants/defaultTheme.d.ts +0 -4
  123. package/build/constants/routes.d.ts +0 -28
  124. package/build/defaultConfig.d.ts +0 -17
  125. package/build/defaultConnectors.d.ts +0 -14
  126. package/build/hooks/useChainIsSupported.d.ts +0 -2
  127. package/build/hooks/useChains.d.ts +0 -3
  128. package/build/hooks/useConnect.d.ts +0 -110
  129. package/build/hooks/useConnectCallback.d.ts +0 -8
  130. package/build/hooks/useConnectors.d.ts +0 -3
  131. package/build/hooks/useDaimoPay.d.ts +0 -94
  132. package/build/hooks/useDaimoPayStatus.d.ts +0 -15
  133. package/build/hooks/useDaimoPayUI.d.ts +0 -6
  134. package/build/hooks/useDepositAddressOptions.d.ts +0 -10
  135. package/build/hooks/useEnsFallbackConfig.d.ts +0 -2
  136. package/build/hooks/useExternalPaymentOptions.d.ts +0 -12
  137. package/build/hooks/useFitText.d.ts +0 -14
  138. package/build/hooks/useFocusTrap.d.ts +0 -1
  139. package/build/hooks/useGoogleFont.d.ts +0 -3
  140. package/build/hooks/useIsMobile.d.ts +0 -5
  141. package/build/hooks/useIsMounted.d.ts +0 -3
  142. package/build/hooks/useLastConnector.d.ts +0 -4
  143. package/build/hooks/useLocalStorage.d.ts +0 -7
  144. package/build/hooks/useLocales.d.ts +0 -2
  145. package/build/hooks/useLockBodyScroll.d.ts +0 -1
  146. package/build/hooks/useModal.d.ts +0 -8
  147. package/build/hooks/useOrderUsdLimits.d.ts +0 -7
  148. package/build/hooks/usePayContext.d.ts +0 -2
  149. package/build/hooks/usePaymentState.d.ts +0 -67
  150. package/build/hooks/usePrevious.d.ts +0 -1
  151. package/build/hooks/useSolanaPaymentOptions.d.ts +0 -13
  152. package/build/hooks/useTokenOptions.d.ts +0 -5
  153. package/build/hooks/useUntronAvailability.d.ts +0 -14
  154. package/build/hooks/useWalletPaymentOptions.d.ts +0 -31
  155. package/build/hooks/useWindowSize.d.ts +0 -4
  156. package/build/localizations/index.d.ts +0 -2
  157. package/build/localizations/locales/ar-AE.d.ts +0 -3
  158. package/build/localizations/locales/ca-AD.d.ts +0 -3
  159. package/build/localizations/locales/ee-EE.d.ts +0 -3
  160. package/build/localizations/locales/en-US.d.ts +0 -128
  161. package/build/localizations/locales/es-ES.d.ts +0 -3
  162. package/build/localizations/locales/fa-IR.d.ts +0 -3
  163. package/build/localizations/locales/fr-FR.d.ts +0 -3
  164. package/build/localizations/locales/index.d.ts +0 -3
  165. package/build/localizations/locales/ja-JP.d.ts +0 -91
  166. package/build/localizations/locales/pt-BR.d.ts +0 -3
  167. package/build/localizations/locales/ru-RU.d.ts +0 -3
  168. package/build/localizations/locales/tr-TR.d.ts +0 -3
  169. package/build/localizations/locales/vi-VN.d.ts +0 -3
  170. package/build/localizations/locales/zh-CN.d.ts +0 -3
  171. package/build/payment/paymentEffects.d.ts +0 -12
  172. package/build/payment/paymentFsm.d.ts +0 -131
  173. package/build/payment/paymentStore.d.ts +0 -14
  174. package/build/payment/paymentUtils.d.ts +0 -6
  175. package/build/provider/DaimoPayProvider.d.ts +0 -24
  176. package/build/provider/PayContext.d.ts +0 -66
  177. package/build/provider/PaymentProvider.d.ts +0 -8
  178. package/build/provider/SolanaContextProvider.d.ts +0 -6
  179. package/build/provider/Web3ContextProvider.d.ts +0 -24
  180. package/build/stateStore.d.ts +0 -66
  181. package/build/styles/defaultTheme.d.ts +0 -3
  182. package/build/styles/index.d.ts +0 -1
  183. package/build/styles/styled/index.d.ts +0 -12
  184. package/build/styles/themes/base.d.ts +0 -129
  185. package/build/styles/themes/index.d.ts +0 -673
  186. package/build/styles/themes/midnight.d.ts +0 -74
  187. package/build/styles/themes/minimal.d.ts +0 -94
  188. package/build/styles/themes/nouns.d.ts +0 -79
  189. package/build/styles/themes/retro.d.ts +0 -89
  190. package/build/styles/themes/rounded.d.ts +0 -86
  191. package/build/styles/themes/soft.d.ts +0 -69
  192. package/build/styles/themes/web95.d.ts +0 -91
  193. package/build/styles/types.d.ts +0 -80
  194. package/build/types.d.ts +0 -46
  195. package/build/utils/exports.d.ts +0 -1
  196. package/build/utils/format.d.ts +0 -49
  197. package/build/utils/index.d.ts +0 -17
  198. package/build/utils/localstorage.d.ts +0 -9
  199. package/build/utils/p3.d.ts +0 -2
  200. package/build/utils/platform.d.ts +0 -2
  201. package/build/utils/polling.d.ts +0 -13
  202. package/build/utils/supportUrl.d.ts +0 -2
  203. package/build/utils/trpc.d.ts +0 -4
  204. package/build/utils/validateInput.d.ts +0 -16
  205. package/build/utils/wallets.d.ts +0 -24
  206. package/build/wallets/index.d.ts +0 -5
  207. package/build/wallets/useWallets.d.ts +0 -16
  208. package/build/wallets/walletConfigs.d.ts +0 -29
  209. package/build/world-mini-app/WorldPayButton.d.ts +0 -84
  210. package/build/world-mini-app/promptWorldPayment.d.ts +0 -9
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- declare const SwitchButton: React.FC<{
3
- onClick: () => void;
4
- children?: React.ReactNode;
5
- }>;
6
- export default SwitchButton;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { ThemeContainer } from "./styles";
3
- import { All } from "./../../../types";
4
- type ThemedButtonProps = {
5
- children?: React.ReactNode;
6
- variant?: "primary" | "secondary" | "tertiary";
7
- autoSize?: boolean;
8
- duration?: number;
9
- style?: React.CSSProperties;
10
- onClick?: () => void;
11
- };
12
- export declare const PlaceholderButton: () => import("react/jsx-runtime").JSX.Element;
13
- declare const ThemedButton: React.FC<ThemedButtonProps & All>;
14
- export default ThemedButton;
15
- export { ThemeContainer };
@@ -1,2 +0,0 @@
1
- export declare const Container: any;
2
- export declare const ThemeContainer: any;
@@ -1,7 +0,0 @@
1
- import { Token } from "@daimo/pay-common";
2
- declare const TokenChainLogo: ({ token, size, offset, }: {
3
- token: Token;
4
- size?: number;
5
- offset?: number;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default TokenChainLogo;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { TooltipProps } from "./types";
3
- declare const Tooltip: React.FC<TooltipProps>;
4
- export default Tooltip;
@@ -1,3 +0,0 @@
1
- export declare const TooltipWindow: any;
2
- export declare const TooltipContainer: any;
3
- export declare const TooltipTail: any;
@@ -1,9 +0,0 @@
1
- export type TooltipSizeProps = "small" | "large";
2
- export type TooltipProps = {
3
- message?: string | React.ReactNode;
4
- children?: React.ReactNode;
5
- open?: boolean;
6
- xOffset?: number;
7
- yOffset?: number;
8
- delay?: number;
9
- };
@@ -1,6 +0,0 @@
1
- declare const WalletChainLogo: ({ walletIcon, walletName, chainLogo, }: {
2
- walletIcon: React.ReactNode | string;
3
- walletName: string;
4
- chainLogo: React.ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default WalletChainLogo;
@@ -1,149 +0,0 @@
1
- import { ReactElement } from "react";
2
- import { DaimoPayOrderView, DaimoPayUserMetadata, ExternalPaymentOptionsString, PaymentBouncedEvent, PaymentCompletedEvent, PaymentStartedEvent, UniquePaymentOptionsString } from "@daimo/pay-common";
3
- import { Address, Hex } from "viem";
4
- import { CustomTheme, Mode, Theme } from "../../types";
5
- /** Payment details and status. */
6
- export type DaimoPayment = DaimoPayOrderView;
7
- /** Props for DaimoPayButton. */
8
- export type PayButtonPaymentProps = {
9
- /**
10
- * Your public app ID. Specify either (payId) or (appId + parameters).
11
- */
12
- appId: string;
13
- /**
14
- * Destination chain ID.
15
- */
16
- toChain: number;
17
- /**
18
- * The destination token to send, completing payment. Must be an ERC-20
19
- * token or the zero address, indicating the native token / ETH.
20
- */
21
- toToken: Address;
22
- /**
23
- * The amount of destination token to send (transfer or approve).
24
- * If not provided, the user will be prompted to enter an amount.
25
- */
26
- toUnits?: string;
27
- /**
28
- * The destination address to transfer to, or contract to call.
29
- */
30
- toAddress: Address;
31
- /**
32
- * Optional calldata to call an arbitrary function on `toAddress`.
33
- */
34
- toCallData?: Hex;
35
- /**
36
- * The intent verb, such as "Pay", "Deposit", or "Purchase".
37
- */
38
- intent?: string;
39
- /**
40
- * Payment options. By default, all are enabled.
41
- */
42
- paymentOptions?: ExternalPaymentOptionsString[];
43
- /**
44
- * Preferred chain IDs. Assets on these chains will appear first.
45
- */
46
- preferredChains?: number[];
47
- /**
48
- * Preferred tokens. These appear first in the token list.
49
- */
50
- preferredTokens?: {
51
- chain: number;
52
- address: Address;
53
- }[];
54
- /**
55
- * Only allow payments on these EVM chains.
56
- */
57
- evmChains?: number[];
58
- /**
59
- * External ID. E.g. a correlation ID.
60
- */
61
- externalId?: string;
62
- /**
63
- * Developer metadata. E.g. correlation ID.
64
- * */
65
- metadata?: DaimoPayUserMetadata;
66
- /**
67
- * The address to refund to if the payment bounces.
68
- */
69
- refundAddress?: Address;
70
- /**
71
- * Pass-through tokens. If the user pays via a pass-through
72
- * token, it is sent directly to `toAddress` with no swapping or bridging.
73
- */
74
- passthroughTokens?: PassthroughToken[];
75
- } | {
76
- /** The payment ID, generated via the Daimo Pay API. Replaces params above. */
77
- payId: string;
78
- /** Payment options. By default, all are enabled. */
79
- paymentOptions?: ExternalPaymentOptionsString[];
80
- /**
81
- * The page to start on.
82
- */
83
- uniquePaymentOption?: UniquePaymentOptionsString;
84
- };
85
- /**
86
- * Represents a pass-through token. If the user pays via a pass-through
87
- * token, it is sent directly to `toAddress` with no swapping or bridging.
88
- */
89
- type PassthroughToken = {
90
- chain: number;
91
- address: Address;
92
- };
93
- type PayButtonCommonProps = PayButtonPaymentProps & {
94
- /** Called when user sends payment and transaction is seen on chain */
95
- onPaymentStarted?: (event: PaymentStartedEvent) => void;
96
- /** Called when destination transfer or call completes successfully */
97
- onPaymentCompleted?: (event: PaymentCompletedEvent) => void;
98
- /** Called when destination call reverts and funds are refunded */
99
- onPaymentBounced?: (event: PaymentBouncedEvent) => void;
100
- /** Called when the modal is opened. */
101
- onOpen?: () => void;
102
- /** Called when the modal is closed. */
103
- onClose?: () => void;
104
- /** Open the modal by default. */
105
- defaultOpen?: boolean;
106
- /** Automatically close the modal after a successful payment. */
107
- closeOnSuccess?: boolean;
108
- /** Reset the payment after a successful payment. */
109
- resetOnSuccess?: boolean;
110
- /** Go directly to tokens in already-connected Ethereum and Solana wallet(s).
111
- * Don't let the user pick any other payment method. Used in embedded flows.*/
112
- connectedWalletOnly?: boolean;
113
- /** Custom message to display on confirmation page. */
114
- confirmationMessage?: string;
115
- /** Redirect URL to return to the app. E.g. after Coinbase, Binance, RampNetwork. */
116
- redirectReturnUrl?: string;
117
- };
118
- export type DaimoPayButtonProps = PayButtonCommonProps & {
119
- /** Light mode, dark mode, or auto. */
120
- mode?: Mode;
121
- /** Named theme. See docs for options. */
122
- theme?: Theme;
123
- /** Custom theme. See docs for options. */
124
- customTheme?: CustomTheme;
125
- /** Disable interaction. */
126
- disabled?: boolean;
127
- };
128
- export type DaimoPayButtonCustomProps = PayButtonCommonProps & {
129
- /** Custom renderer */
130
- children: (renderProps: {
131
- show: () => void;
132
- hide: () => void;
133
- }) => ReactElement;
134
- };
135
- /**
136
- * A button that shows the Daimo Pay checkout. Replaces the traditional
137
- * Connect Wallet » approve » execute sequence with a single action.
138
- */
139
- export declare function DaimoPayButton(props: DaimoPayButtonProps): JSX.Element;
140
- export declare namespace DaimoPayButton {
141
- var Custom: typeof DaimoPayButtonCustom;
142
- }
143
- /** Like DaimoPayButton, but with custom styling. */
144
- declare function DaimoPayButtonCustom(props: DaimoPayButtonCustomProps): JSX.Element;
145
- declare namespace DaimoPayButtonCustom {
146
- var displayName: string;
147
- }
148
- export declare function DaimoPayButtonInner(): import("react/jsx-runtime").JSX.Element;
149
- export {};
@@ -1,4 +0,0 @@
1
- export declare const TextContainer: any;
2
- export declare const ChainContainer: any;
3
- export declare const IconContainer: any;
4
- export declare const UnsupportedNetworkContainer: any;
@@ -1,2 +0,0 @@
1
- declare const ConnectUsing: () => import("react/jsx-runtime").JSX.Element;
2
- export default ConnectUsing;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- export declare const states: {
3
- CONNECTED: string;
4
- CONNECTING: string;
5
- EXPIRING: string;
6
- FAILED: string;
7
- REJECTED: string;
8
- NOTCONNECTED: string;
9
- UNAVAILABLE: string;
10
- };
11
- declare const ConnectWithInjector: React.FC<{
12
- switchConnectMethod: (id?: string) => void;
13
- forceState?: typeof states;
14
- }>;
15
- export default ConnectWithInjector;
@@ -1,6 +0,0 @@
1
- export declare const Content: any;
2
- export declare const Container: any;
3
- export declare const ConnectingContainer: any;
4
- export declare const ConnectingAnimation: any;
5
- export declare const RetryButton: any;
6
- export declare const RetryIconContainer: any;
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- /**
3
- * Continues a Daimo Pay flow in another app.
4
- * - If the pendingConnectorId is a mobile wallet, deeplink directly into that
5
- * wallet. This opens the flow in eg. the Rainbow in-app browser, letting the
6
- * user finish the flow in a single app switch instead of multiple.
7
- * - If the pendingConnectorId is MOBILE_WALLETS_CONNECTOR_ID, then show a QR
8
- * that the user can scan from their phone. This opens the flow in eg. mobile
9
- * Safari, letting them pick which app they want to use & finish there.
10
- */
11
- declare const ConnectWithQRCode: React.FC<{}>;
12
- export default ConnectWithQRCode;
@@ -1,8 +0,0 @@
1
- import { CustomTheme, Languages, Mode, Theme } from "../../types";
2
- export declare const DaimoPayModal: React.FC<{
3
- mode: Mode;
4
- theme: Theme;
5
- customTheme: CustomTheme;
6
- lang: Languages;
7
- disableMobileInjector: boolean;
8
- }>;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { CustomTheme, Mode, Theme } from "../../types";
3
- type ContextValue = {
4
- theme?: Theme;
5
- mode?: Mode;
6
- customTheme?: CustomTheme;
7
- };
8
- type DaimoPayThemeProviderProps = {
9
- children?: React.ReactNode;
10
- theme?: Theme;
11
- mode?: Mode;
12
- customTheme?: CustomTheme;
13
- };
14
- export declare const DaimoPayThemeProvider: React.FC<DaimoPayThemeProviderProps>;
15
- export declare const useThemeContext: () => ContextValue;
16
- export {};
@@ -1,11 +0,0 @@
1
- import { EasingFunction } from "framer-motion";
2
- export type Easing = [number, number, number, number] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | EasingFunction;
3
- type Slide = {
4
- layoutId?: string;
5
- duration: number;
6
- ease: Easing;
7
- };
8
- export declare const SlideOne: ({ layoutId }: Slide) => import("react/jsx-runtime").JSX.Element;
9
- export declare const SlideTwo: ({ layoutId }: Slide) => import("react/jsx-runtime").JSX.Element;
10
- export declare const SlideThree: ({ layoutId }: Slide) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const About: React.FC;
3
- export default About;
@@ -1,8 +0,0 @@
1
- export declare const ImageContainer: any;
2
- export declare const ImageContainerInner: any;
3
- export declare const MobileImageContainer: any;
4
- export declare const Slides: any;
5
- export declare const Slide: any;
6
- export declare const Slider: any;
7
- export declare const Dots: any;
8
- export declare const Dot: any;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const Confirmation: React.FC;
3
- export default Confirmation;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const Wallets: React.FC;
3
- export default Wallets;
@@ -1,9 +0,0 @@
1
- export declare const InfoBox: any;
2
- export declare const InfoBoxButtons: any;
3
- export declare const LearnMoreContainer: any;
4
- export declare const LearnMoreButton: any;
5
- export declare const ConnectorsContainer: any;
6
- export declare const ConnectorButton: any;
7
- export declare const ConnectorRecentlyUsed: any;
8
- export declare const ConnectorLabel: any;
9
- export declare const ConnectorIcon: any;
@@ -1,2 +0,0 @@
1
- declare const DownloadApp: () => import("react/jsx-runtime").JSX.Element;
2
- export default DownloadApp;
@@ -1 +0,0 @@
1
- export default function ErrorPage(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const MobileConnectors: React.FC;
3
- export default MobileConnectors;
@@ -1,5 +0,0 @@
1
- export declare const WalletItem: any;
2
- export declare const WalletIcon: any;
3
- export declare const WalletLabel: any;
4
- export declare const WalletList: any;
5
- export declare const Container: any;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const Introduction: React.FC;
3
- export default Introduction;
@@ -1,9 +0,0 @@
1
- export declare const Graphic: any;
2
- export declare const LogoGroup: any;
3
- export declare const GraphicBackground: any;
4
- export declare const LogoPosition: any;
5
- export declare const LogoInner: any;
6
- export declare const LogoGraphic: any;
7
- export declare const FloatWrapper: any;
8
- export declare const RotateWrapper: any;
9
- export declare const Logo: any;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const PayWithToken: React.FC;
3
- export default PayWithToken;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectAmount: React.FC;
3
- export default SelectAmount;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectDepositAddressAmount: React.FC;
3
- export default SelectDepositAddressAmount;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectDepositAddressChain: React.FC;
3
- export default SelectDepositAddressChain;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectExchange: React.FC;
3
- export default SelectExchange;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectExternalAmount: React.FC;
3
- export default SelectExternalAmount;
@@ -1 +0,0 @@
1
- export default function SelectMethod(): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- export declare const InfoBox: any;
2
- export declare const InfoBoxButtons: any;
3
- export declare const LearnMoreContainer: any;
4
- export declare const LearnMoreButton: any;
5
- export declare const ConnectorsContainer: any;
6
- export declare const ConnectorButton: any;
7
- export declare const ConnectorRecentlyUsed: any;
8
- export declare const ConnectorLabel: any;
9
- export declare const ConnectorIcon: any;
@@ -1 +0,0 @@
1
- export default function SelectToken(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectWalletAmount: React.FC;
3
- export default SelectWalletAmount;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectWalletChain: React.FC;
3
- export default SelectWalletChain;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectZKP: React.FC;
3
- export default SelectZKP;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const ConnectSolana: React.FC;
3
- export declare const LoadingContainer: any;
4
- export default ConnectSolana;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const PayWithSolanaToken: React.FC;
3
- export default PayWithSolanaToken;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SelectSolanaAmount: React.FC;
3
- export default SelectSolanaAmount;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const SwitchNetworks: React.FC;
3
- export default SwitchNetworks;
@@ -1 +0,0 @@
1
- export default function WaitingDepositAddress(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const WaitingExternal: React.FC;
3
- export default WaitingExternal;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const WaitingWallet: React.FC;
3
- export default WaitingWallet;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- declare const CircleSpinner: ({ logo, smallLogo, loading, unavailable, countdown, }: {
3
- logo?: React.ReactNode;
4
- smallLogo?: boolean;
5
- loading?: boolean;
6
- unavailable?: boolean;
7
- countdown?: boolean;
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- export default CircleSpinner;
@@ -1,5 +0,0 @@
1
- export declare const LogoContainer: any;
2
- export declare const Logo: any;
3
- export declare const SpinnerContainer: any;
4
- export declare const ExpiringSpinner: any;
5
- export declare const Spinner: any;
@@ -1,5 +0,0 @@
1
- declare const ExternalPaymentSpinner: ({ logoURI, logoShape, }: {
2
- logoURI: string;
3
- logoShape: "circle" | "squircle";
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default ExternalPaymentSpinner;
@@ -1,5 +0,0 @@
1
- declare const SquircleSpinner: ({ logo, loading, }: {
2
- logo?: React.ReactNode;
3
- loading?: boolean;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default SquircleSpinner;
@@ -1,4 +0,0 @@
1
- export declare const LogoContainer: any;
2
- export declare const Logo: any;
3
- export declare const SpinnerContainer: any;
4
- export declare const Spinner: any;
@@ -1,5 +0,0 @@
1
- import { DaimoPayToken } from "@daimo/pay-common";
2
- declare const TokenLogoSpinner: ({ token }: {
3
- token: DaimoPayToken;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default TokenLogoSpinner;
@@ -1 +0,0 @@
1
- export declare const ChainLogoContainer: any;
@@ -1,5 +0,0 @@
1
- declare const WalletPaymentSpinner: ({ logo, logoShape, }: {
2
- logo: React.ReactNode | string;
3
- logoShape: "circle" | "squircle";
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default WalletPaymentSpinner;
@@ -1,2 +0,0 @@
1
- export declare const LoadingContainer: any;
2
- export declare const AnimationContainer: any;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- mobileWidth: number;
3
- };
4
- export default _default;
@@ -1,28 +0,0 @@
1
- export declare enum ROUTES {
2
- SELECT_METHOD = "daimoPaySelectMethod",
3
- SELECT_TOKEN = "daimoPaySelectToken",
4
- SELECT_AMOUNT = "daimoPaySelectAmount",
5
- SELECT_EXTERNAL_AMOUNT = "daimoPaySelectExternalAmount",
6
- SELECT_EXCHANGE = "daimoPaySelectExchange",
7
- SELECT_DEPOSIT_ADDRESS_AMOUNT = "daimoPaySelectDepositAddressAmount",
8
- SELECT_WALLET_AMOUNT = "daimoPaySelectWalletAmount",
9
- SELECT_WALLET_CHAIN = "daimoPaySelectWalletChain",
10
- SELECT_ZKP2P = "daimoPaySelectZKP2P",
11
- WAITING_EXTERNAL = "daimoPayWaitingExternal",
12
- WAITING_WALLET = "daimoPayWaitingWallet",
13
- SELECT_DEPOSIT_ADDRESS_CHAIN = "daimoPaySelectDepositAddressChain",
14
- WAITING_DEPOSIT_ADDRESS = "daimoPayWaitingDepositAddress",
15
- PAY_WITH_TOKEN = "daimoPayPayWithToken",
16
- CONFIRMATION = "daimoPayConfirmation",
17
- SOLANA_CONNECTOR = "daimoPaySolanaConnector",
18
- SOLANA_SELECT_AMOUNT = "daimoPaySolanaSelectAmount",
19
- SOLANA_PAY_WITH_TOKEN = "daimoPaySolanaPayWithToken",
20
- ERROR = "daimoPayError",
21
- ONBOARDING = "onboarding",
22
- ABOUT = "about",
23
- CONNECTORS = "connectors",
24
- MOBILECONNECTORS = "mobileConnectors",
25
- CONNECT = "connect",
26
- DOWNLOAD = "download",
27
- SWITCHNETWORKS = "switchNetworks"
28
- }
@@ -1,17 +0,0 @@
1
- import { type CreateConfigParameters } from "@wagmi/core";
2
- import { CreateConnectorFn } from "wagmi";
3
- import { CoinbaseWalletParameters } from "wagmi/connectors";
4
- export declare const getAppName: () => string;
5
- export declare const getAppIcon: () => string;
6
- type DefaultConfigProps = {
7
- appName: string;
8
- appIcon?: string;
9
- appDescription?: string;
10
- appUrl?: string;
11
- coinbaseWalletPreference?: CoinbaseWalletParameters<"4">["preference"];
12
- additionalConnectors?: CreateConnectorFn[];
13
- } & Partial<CreateConfigParameters>;
14
- export declare const REQUIRED_CHAINS: CreateConfigParameters["chains"];
15
- /** Daimo Pay recommended config, for use with wagmi's createConfig(). */
16
- declare const defaultConfig: ({ appName, appIcon, appDescription, appUrl, coinbaseWalletPreference, additionalConnectors, chains, client, ...props }: DefaultConfigProps) => CreateConfigParameters;
17
- export default defaultConfig;
@@ -1,14 +0,0 @@
1
- import { CoinbaseWalletParameters } from "@wagmi/connectors";
2
- import { CreateConnectorFn } from "wagmi";
3
- type DefaultConnectorsProps = {
4
- app: {
5
- name: string;
6
- icon?: string;
7
- description?: string;
8
- url?: string;
9
- };
10
- coinbaseWalletPreference?: CoinbaseWalletParameters<"4">["preference"];
11
- additionalConnectors?: CreateConnectorFn[];
12
- };
13
- declare const defaultConnectors: ({ app, coinbaseWalletPreference, additionalConnectors, }: DefaultConnectorsProps) => CreateConnectorFn[];
14
- export default defaultConnectors;
@@ -1,2 +0,0 @@
1
- /** Determines whether the current wagmi configuration supports a given chain. */
2
- export declare function useChainIsSupported(chainId?: number): boolean | null;
@@ -1,3 +0,0 @@
1
- import { Chain } from "viem";
2
- /** Returns currently configured wagmi chains. */
3
- export declare function useChains(): Chain[];