@funkit/connect 7.1.0-next.7 → 7.1.0-next.8
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/CHANGELOG.md +20 -0
- package/dist/domains/quote.d.ts +1 -1
- package/dist/{modals/CheckoutModal → hooks}/useWalletAssetHoldings.d.ts +1 -1
- package/dist/index.js +1257 -1132
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +0 -7
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -6
- package/dist/modals/CheckoutModal/{useSourceAssetConfirm.d.ts → ConfirmationStep/useSourceAssetConfirm.d.ts} +0 -2
- package/dist/providers/FunkitQuoteContext.d.ts +1 -2
- package/dist/wallets/walletConnectors/index.js +9 -9
- package/package.json +4 -4
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +0 -7
|
@@ -2,20 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
3
|
import { type PaymentMethodInfo } from '~/domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
|
-
interface MoonpayDepositData {
|
|
6
|
-
depositToken: string;
|
|
7
|
-
depositTokenAmount: number;
|
|
8
|
-
depositTokenChainId: string;
|
|
9
|
-
}
|
|
10
5
|
export type ConfirmationStepState = CheckoutModalCommonState & {
|
|
11
6
|
paymentMethodInfo: PaymentMethodInfo;
|
|
12
7
|
};
|
|
13
8
|
export type ConfirmationStepNext = {
|
|
14
9
|
depositAddress: Address;
|
|
15
|
-
moonpayData?: MoonpayDepositData;
|
|
16
10
|
paymentMethodInfo: PaymentMethodInfo;
|
|
17
11
|
redirectBackToSourceChange?: boolean;
|
|
18
12
|
};
|
|
19
13
|
export declare const ConfirmationStepInfo: ModalStepInfo<FunCheckoutStep.CONFIRMATION>;
|
|
20
14
|
export declare function ConfirmationStep({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONFIRMATION>): React.JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
2
|
import type { ErrorNotification } from '~/components/FunNotification/FunNotification';
|
|
3
3
|
import { type PaymentMethodInfo } from '~/domains/paymentMethods';
|
|
4
|
-
export interface MoonpayDepositData {
|
|
5
|
-
depositToken: string;
|
|
6
|
-
depositTokenAmount: number;
|
|
7
|
-
depositTokenChainId: string;
|
|
8
|
-
}
|
|
9
4
|
export interface PostCheckoutError extends ErrorNotification {
|
|
10
5
|
disableContinue: boolean;
|
|
11
6
|
durationMs?: number;
|
|
12
7
|
}
|
|
13
8
|
export interface PostCheckoutSuccessData {
|
|
14
9
|
depositAddress: Address;
|
|
15
|
-
moonpayData: MoonpayDepositData;
|
|
16
10
|
paymentMethodInfo: PaymentMethodInfo;
|
|
17
11
|
}
|
|
18
12
|
interface UsePostCheckoutOptions {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
2
2
|
import { type CheckoutQuoteResult } from '~/providers/FunkitQuoteContext';
|
|
3
|
-
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
3
|
export interface SourceAssetConfirmed {
|
|
5
4
|
isQuoteSuccess: boolean;
|
|
6
5
|
maxTargetAssetAmount: number | undefined;
|
|
7
6
|
}
|
|
8
|
-
export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null): PaymentMethodInfo;
|
|
9
7
|
/**
|
|
10
8
|
*
|
|
11
9
|
* Note: this hook is EXTREMELY confusing in what is doing
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { type Dispatch, type ReactNode } from 'react';
|
|
2
|
-
import { type PaymentMethodInfo } from '../domains/paymentMethods';
|
|
3
2
|
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
4
3
|
import { type FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
|
|
5
4
|
export type CheckoutQuoteError = {
|
|
@@ -37,7 +36,7 @@ interface CheckoutQuoteState {
|
|
|
37
36
|
}
|
|
38
37
|
interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
39
38
|
clearCheckoutQuoteMessages: () => void;
|
|
40
|
-
getCheckoutQuote: (
|
|
39
|
+
getCheckoutQuote: (disableInformationStreaming?: boolean) => Promise<GetCheckoutQuoteResponse>;
|
|
41
40
|
setCheckoutQuote: Dispatch<React.SetStateAction<FunkitCheckoutQuoteResult | null>>;
|
|
42
41
|
setQuoteProgress: (state: Omit<CheckoutQuoteState, 'latestQuote'>) => void;
|
|
43
42
|
}
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
37
|
} from "./chunk-2KUBG3S6.js";
|
|
38
|
-
import {
|
|
39
|
-
ramperWallet
|
|
40
|
-
} from "./chunk-BYXPFMI7.js";
|
|
41
38
|
import {
|
|
42
39
|
roninWallet
|
|
43
40
|
} from "./chunk-NWIQNBJU.js";
|
|
41
|
+
import {
|
|
42
|
+
ramperWallet
|
|
43
|
+
} from "./chunk-BYXPFMI7.js";
|
|
44
44
|
import {
|
|
45
45
|
safeWallet
|
|
46
46
|
} from "./chunk-BQQQL6UD.js";
|
|
@@ -125,18 +125,15 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-OLOIXTYS.js";
|
|
128
|
-
import {
|
|
129
|
-
argentWallet
|
|
130
|
-
} from "./chunk-WSQ2YJO2.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
130
|
} from "./chunk-A5N6B5UW.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-TDAVGY5F.js";
|
|
137
|
-
import {
|
|
138
|
-
bitskiWallet
|
|
139
|
-
} from "./chunk-HS3C7OQV.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-3HZRRP4Y.js";
|
|
@@ -144,6 +141,9 @@ import {
|
|
|
144
141
|
bloomWallet
|
|
145
142
|
} from "./chunk-S27IADFU.js";
|
|
146
143
|
import "./chunk-23WIEY36.js";
|
|
144
|
+
import {
|
|
145
|
+
bitskiWallet
|
|
146
|
+
} from "./chunk-HS3C7OQV.js";
|
|
147
147
|
import {
|
|
148
148
|
braveWallet
|
|
149
149
|
} from "./chunk-BPZ2XJO2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "7.1.0-next.
|
|
3
|
+
"version": "7.1.0-next.8",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"ua-parser-js": "^1.0.37",
|
|
101
101
|
"use-debounce": "^10.0.5",
|
|
102
102
|
"uuid": "^9.0.1",
|
|
103
|
-
"@funkit/api-base": "1.12.22-next.
|
|
103
|
+
"@funkit/api-base": "1.12.22-next.2",
|
|
104
104
|
"@funkit/chains": "0.5.2-next.1",
|
|
105
|
-
"@funkit/fun-relay": "2.
|
|
106
|
-
"@funkit/utils": "1.1.22-next.
|
|
105
|
+
"@funkit/fun-relay": "2.2.0-next.3",
|
|
106
|
+
"@funkit/utils": "1.1.22-next.1"
|
|
107
107
|
},
|
|
108
108
|
"repository": {
|
|
109
109
|
"type": "git",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type DeepPartial } from '@funkit/utils';
|
|
2
|
-
import { type FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
|
-
export declare function useNewCheckoutQuote(): (overridingCheckoutItem?: DeepPartial<FunkitActiveCheckoutItem>) => Promise<{
|
|
4
|
-
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
5
|
-
checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
|
|
6
|
-
finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
|
|
7
|
-
}>;
|