@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.
- package/build/index.d.ts +5 -3
- package/build/package.json.js +2 -2
- package/build/src/components/Common/SelectAnotherMethodButton/index.js +15 -3
- package/build/src/components/Common/SelectAnotherMethodButton/index.js.map +1 -1
- package/build/src/components/DaimoPayButton/index.js +2 -1
- package/build/src/components/DaimoPayButton/index.js.map +1 -1
- package/build/src/components/Pages/SelectMethod/index.js +0 -1
- package/build/src/components/Pages/SelectMethod/index.js.map +1 -1
- package/build/src/payment/paymentFsm.js.map +1 -1
- package/package.json +3 -3
- package/build/assets/MobileWithLogos.d.ts +0 -2
- package/build/assets/ScanIconWithLogos.d.ts +0 -6
- package/build/assets/browsers.d.ts +0 -10
- package/build/assets/chains.d.ts +0 -28
- package/build/assets/coins.d.ts +0 -2
- package/build/assets/crepe.d.ts +0 -3
- package/build/assets/icons.d.ts +0 -35
- package/build/assets/logos.d.ts +0 -207
- package/build/assets/wallet.d.ts +0 -3
- package/build/assets/wave.d.ts +0 -2
- package/build/components/Common/Alert/index.d.ts +0 -6
- package/build/components/Common/Alert/styles.d.ts +0 -2
- package/build/components/Common/Alert/types.d.ts +0 -5
- package/build/components/Common/AmountInput/AmountInputField.d.ts +0 -8
- package/build/components/Common/AmountInput/index.d.ts +0 -9
- package/build/components/Common/Avatar/index.d.ts +0 -17
- package/build/components/Common/Avatar/styles.d.ts +0 -2
- package/build/components/Common/BrowserIcon/index.d.ts +0 -4
- package/build/components/Common/BrowserIcon/styles.d.ts +0 -1
- package/build/components/Common/BrowserIcon/types.d.ts +0 -3
- package/build/components/Common/Button/index.d.ts +0 -4
- package/build/components/Common/Button/styles.d.ts +0 -10
- package/build/components/Common/Button/types.d.ts +0 -15
- package/build/components/Common/Chain/index.d.ts +0 -9
- package/build/components/Common/Chain/styles.d.ts +0 -4
- package/build/components/Common/ChainSelectList/index.d.ts +0 -4
- package/build/components/Common/ChainSelectList/styles.d.ts +0 -9
- package/build/components/Common/CircleTimer.d.ts +0 -17
- package/build/components/Common/ConnectorList/index.d.ts +0 -2
- package/build/components/Common/ConnectorList/styles.d.ts +0 -8
- package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +0 -6
- package/build/components/Common/CopyToClipboard/index.d.ts +0 -7
- package/build/components/Common/CustomQRCode/QRCode.d.ts +0 -12
- package/build/components/Common/CustomQRCode/index.d.ts +0 -6
- package/build/components/Common/CustomQRCode/styles.d.ts +0 -6
- package/build/components/Common/CustomQRCode/types.d.ts +0 -11
- package/build/components/Common/DynamicContainer/index.d.ts +0 -7
- package/build/components/Common/FitText/index.d.ts +0 -8
- package/build/components/Common/LazyImage/index.d.ts +0 -8
- package/build/components/Common/Logo/index.d.ts +0 -8
- package/build/components/Common/Logo/styles.d.ts +0 -3
- package/build/components/Common/Modal/index.d.ts +0 -25
- package/build/components/Common/Modal/styles.d.ts +0 -25
- package/build/components/Common/OptionsList/index.d.ts +0 -17
- package/build/components/Common/OptionsList/styles.d.ts +0 -5
- package/build/components/Common/OrderHeader/index.d.ts +0 -5
- package/build/components/Common/PaymentBreakdown/index.d.ts +0 -6
- package/build/components/Common/Portal/index.d.ts +0 -2
- package/build/components/Common/PoweredByFooter/index.d.ts +0 -5
- package/build/components/Common/ScrollArea/index.d.ts +0 -9
- package/build/components/Common/ScrollArea/styles.d.ts +0 -3
- package/build/components/Common/SelectAnotherMethodButton/index.d.ts +0 -1
- package/build/components/Common/Spinner/index.d.ts +0 -1
- package/build/components/Common/Spinner/styles.d.ts +0 -1
- package/build/components/Common/SquareTimer.d.ts +0 -19
- package/build/components/Common/SwitchButton/index.d.ts +0 -6
- package/build/components/Common/ThemedButton/index.d.ts +0 -15
- package/build/components/Common/ThemedButton/styles.d.ts +0 -2
- package/build/components/Common/TokenChainLogo/index.d.ts +0 -7
- package/build/components/Common/Tooltip/index.d.ts +0 -4
- package/build/components/Common/Tooltip/styles.d.ts +0 -3
- package/build/components/Common/Tooltip/types.d.ts +0 -9
- package/build/components/Common/WalletChainLogo/index.d.ts +0 -6
- package/build/components/DaimoPayButton/index.d.ts +0 -149
- package/build/components/DaimoPayButton/styles.d.ts +0 -4
- package/build/components/DaimoPayModal/ConnectUsing.d.ts +0 -2
- package/build/components/DaimoPayModal/ConnectWithInjector/index.d.ts +0 -15
- package/build/components/DaimoPayModal/ConnectWithInjector/styles.d.ts +0 -6
- package/build/components/DaimoPayModal/ConnectWithQRCode.d.ts +0 -12
- package/build/components/DaimoPayModal/index.d.ts +0 -8
- package/build/components/DaimoPayThemeProvider/DaimoPayThemeProvider.d.ts +0 -16
- package/build/components/Pages/About/graphics.d.ts +0 -11
- package/build/components/Pages/About/index.d.ts +0 -3
- package/build/components/Pages/About/styles.d.ts +0 -8
- package/build/components/Pages/Confirmation/index.d.ts +0 -3
- package/build/components/Pages/Connectors/index.d.ts +0 -3
- package/build/components/Pages/Connectors/styles.d.ts +0 -9
- package/build/components/Pages/DownloadApp/index.d.ts +0 -2
- package/build/components/Pages/Error/index.d.ts +0 -1
- package/build/components/Pages/MobileConnectors/index.d.ts +0 -3
- package/build/components/Pages/MobileConnectors/styles.d.ts +0 -5
- package/build/components/Pages/Onboarding/index.d.ts +0 -3
- package/build/components/Pages/Onboarding/styles.d.ts +0 -9
- package/build/components/Pages/PayWithToken/index.d.ts +0 -3
- package/build/components/Pages/SelectAmount/index.d.ts +0 -3
- package/build/components/Pages/SelectDepositAddressAmount/index.d.ts +0 -3
- package/build/components/Pages/SelectDepositAddressChain/index.d.ts +0 -3
- package/build/components/Pages/SelectExchange/index.d.ts +0 -3
- package/build/components/Pages/SelectExternalAmount/index.d.ts +0 -3
- package/build/components/Pages/SelectMethod/index.d.ts +0 -1
- package/build/components/Pages/SelectMethod/styles.d.ts +0 -9
- package/build/components/Pages/SelectToken/index.d.ts +0 -1
- package/build/components/Pages/SelectWalletAmount/index.d.ts +0 -3
- package/build/components/Pages/SelectWalletChain/index.d.ts +0 -3
- package/build/components/Pages/SelectZKP/index.d.ts +0 -3
- package/build/components/Pages/Solana/ConnectorSolana/index.d.ts +0 -4
- package/build/components/Pages/Solana/PayWithSolanaToken/index.d.ts +0 -3
- package/build/components/Pages/Solana/SelectSolanaAmount/index.d.ts +0 -3
- package/build/components/Pages/SwitchNetworks/index.d.ts +0 -3
- package/build/components/Pages/WaitingDepositAddress/index.d.ts +0 -1
- package/build/components/Pages/WaitingExternal/index.d.ts +0 -3
- package/build/components/Pages/WaitingWallet/index.d.ts +0 -3
- package/build/components/Spinners/CircleSpinner/index.d.ts +0 -9
- package/build/components/Spinners/CircleSpinner/styles.d.ts +0 -5
- package/build/components/Spinners/ExternalPaymentSpinner/index.d.ts +0 -5
- package/build/components/Spinners/SquircleSpinner/index.d.ts +0 -5
- package/build/components/Spinners/SquircleSpinner/styles.d.ts +0 -4
- package/build/components/Spinners/TokenLogoSpinner/index.d.ts +0 -5
- package/build/components/Spinners/TokenLogoSpinner/styles.d.ts +0 -1
- package/build/components/Spinners/WalletPaymentSpinner/index.d.ts +0 -5
- package/build/components/Spinners/styles.d.ts +0 -2
- package/build/constants/defaultTheme.d.ts +0 -4
- package/build/constants/routes.d.ts +0 -28
- package/build/defaultConfig.d.ts +0 -17
- package/build/defaultConnectors.d.ts +0 -14
- package/build/hooks/useChainIsSupported.d.ts +0 -2
- package/build/hooks/useChains.d.ts +0 -3
- package/build/hooks/useConnect.d.ts +0 -110
- package/build/hooks/useConnectCallback.d.ts +0 -8
- package/build/hooks/useConnectors.d.ts +0 -3
- package/build/hooks/useDaimoPay.d.ts +0 -94
- package/build/hooks/useDaimoPayStatus.d.ts +0 -15
- package/build/hooks/useDaimoPayUI.d.ts +0 -6
- package/build/hooks/useDepositAddressOptions.d.ts +0 -10
- package/build/hooks/useEnsFallbackConfig.d.ts +0 -2
- package/build/hooks/useExternalPaymentOptions.d.ts +0 -12
- package/build/hooks/useFitText.d.ts +0 -14
- package/build/hooks/useFocusTrap.d.ts +0 -1
- package/build/hooks/useGoogleFont.d.ts +0 -3
- package/build/hooks/useIsMobile.d.ts +0 -5
- package/build/hooks/useIsMounted.d.ts +0 -3
- package/build/hooks/useLastConnector.d.ts +0 -4
- package/build/hooks/useLocalStorage.d.ts +0 -7
- package/build/hooks/useLocales.d.ts +0 -2
- package/build/hooks/useLockBodyScroll.d.ts +0 -1
- package/build/hooks/useModal.d.ts +0 -8
- package/build/hooks/useOrderUsdLimits.d.ts +0 -7
- package/build/hooks/usePayContext.d.ts +0 -2
- package/build/hooks/usePaymentState.d.ts +0 -67
- package/build/hooks/usePrevious.d.ts +0 -1
- package/build/hooks/useSolanaPaymentOptions.d.ts +0 -13
- package/build/hooks/useTokenOptions.d.ts +0 -5
- package/build/hooks/useUntronAvailability.d.ts +0 -14
- package/build/hooks/useWalletPaymentOptions.d.ts +0 -31
- package/build/hooks/useWindowSize.d.ts +0 -4
- package/build/localizations/index.d.ts +0 -2
- package/build/localizations/locales/ar-AE.d.ts +0 -3
- package/build/localizations/locales/ca-AD.d.ts +0 -3
- package/build/localizations/locales/ee-EE.d.ts +0 -3
- package/build/localizations/locales/en-US.d.ts +0 -128
- package/build/localizations/locales/es-ES.d.ts +0 -3
- package/build/localizations/locales/fa-IR.d.ts +0 -3
- package/build/localizations/locales/fr-FR.d.ts +0 -3
- package/build/localizations/locales/index.d.ts +0 -3
- package/build/localizations/locales/ja-JP.d.ts +0 -91
- package/build/localizations/locales/pt-BR.d.ts +0 -3
- package/build/localizations/locales/ru-RU.d.ts +0 -3
- package/build/localizations/locales/tr-TR.d.ts +0 -3
- package/build/localizations/locales/vi-VN.d.ts +0 -3
- package/build/localizations/locales/zh-CN.d.ts +0 -3
- package/build/payment/paymentEffects.d.ts +0 -12
- package/build/payment/paymentFsm.d.ts +0 -131
- package/build/payment/paymentStore.d.ts +0 -14
- package/build/payment/paymentUtils.d.ts +0 -6
- package/build/provider/DaimoPayProvider.d.ts +0 -24
- package/build/provider/PayContext.d.ts +0 -66
- package/build/provider/PaymentProvider.d.ts +0 -8
- package/build/provider/SolanaContextProvider.d.ts +0 -6
- package/build/provider/Web3ContextProvider.d.ts +0 -24
- package/build/stateStore.d.ts +0 -66
- package/build/styles/defaultTheme.d.ts +0 -3
- package/build/styles/index.d.ts +0 -1
- package/build/styles/styled/index.d.ts +0 -12
- package/build/styles/themes/base.d.ts +0 -129
- package/build/styles/themes/index.d.ts +0 -673
- package/build/styles/themes/midnight.d.ts +0 -74
- package/build/styles/themes/minimal.d.ts +0 -94
- package/build/styles/themes/nouns.d.ts +0 -79
- package/build/styles/themes/retro.d.ts +0 -89
- package/build/styles/themes/rounded.d.ts +0 -86
- package/build/styles/themes/soft.d.ts +0 -69
- package/build/styles/themes/web95.d.ts +0 -91
- package/build/styles/types.d.ts +0 -80
- package/build/types.d.ts +0 -46
- package/build/utils/exports.d.ts +0 -1
- package/build/utils/format.d.ts +0 -49
- package/build/utils/index.d.ts +0 -17
- package/build/utils/localstorage.d.ts +0 -9
- package/build/utils/p3.d.ts +0 -2
- package/build/utils/platform.d.ts +0 -2
- package/build/utils/polling.d.ts +0 -13
- package/build/utils/supportUrl.d.ts +0 -2
- package/build/utils/trpc.d.ts +0 -4
- package/build/utils/validateInput.d.ts +0 -16
- package/build/utils/wallets.d.ts +0 -24
- package/build/wallets/index.d.ts +0 -5
- package/build/wallets/useWallets.d.ts +0 -16
- package/build/wallets/walletConfigs.d.ts +0 -29
- package/build/world-mini-app/WorldPayButton.d.ts +0 -84
- package/build/world-mini-app/promptWorldPayment.d.ts +0 -9
|
@@ -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,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,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,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,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,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,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 ErrorPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 +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 +0,0 @@
|
|
|
1
|
-
export default function WaitingDepositAddress(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export declare const ChainLogoContainer: any;
|
|
@@ -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
|
-
}
|
package/build/defaultConfig.d.ts
DELETED
|
@@ -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;
|