@funkit/connect 0.1.7 → 0.1.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.
Files changed (28) hide show
  1. package/dist/{chunk-X5YTL45L.js → chunk-KQXRSMJW.js} +1210 -1223
  2. package/dist/{chunk-VVHY6TFA.js → chunk-N5FOZIDQ.js} +1210 -1223
  3. package/dist/components/FunDivider/FunDivider.d.ts +3 -2
  4. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -1
  5. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +9 -4
  6. package/dist/components/FunkitProvider/FunkitProvider.d.ts +3 -15
  7. package/dist/components/index.js +1 -1
  8. package/dist/index.d.ts +1 -4
  9. package/dist/index.js +57 -113
  10. package/dist/wallets/walletConnectors/index.js +51 -51
  11. package/package.json +1 -1
  12. package/dist/components/ConnectModal/ConnectModalIntro.d.ts +0 -5
  13. package/dist/components/FunkitProvider/AppContext.d.ts +0 -25
  14. package/dist/components/FunkitProvider/ShowRecentTransactionsContext.d.ts +0 -2
  15. package/dist/wallets/walletConnectors/chunk-2T3BP5YM.js +0 -71
  16. package/dist/wallets/walletConnectors/chunk-3JTRMKJN.js +0 -71
  17. package/dist/wallets/walletConnectors/chunk-4AGSKVK4.js +0 -105
  18. package/dist/wallets/walletConnectors/chunk-4HP4HVWX.js +0 -112
  19. package/dist/wallets/walletConnectors/chunk-6GAD4OSN.js +0 -102
  20. package/dist/wallets/walletConnectors/chunk-7Q7X4HIR.js +0 -110
  21. package/dist/wallets/walletConnectors/chunk-CESIYSTD.js +0 -226
  22. package/dist/wallets/walletConnectors/chunk-DINSZSEC.js +0 -71
  23. package/dist/wallets/walletConnectors/chunk-MPVMJW2X.js +0 -113
  24. package/dist/wallets/walletConnectors/chunk-QVJQ2MU7.js +0 -117
  25. package/dist/wallets/walletConnectors/chunk-RAKDFYVF.js +0 -81
  26. package/dist/wallets/walletConnectors/chunk-T2DNUVKD.js +0 -114
  27. package/dist/wallets/walletConnectors/chunk-TM5A4D5D.js +0 -52
  28. package/dist/wallets/walletConnectors/chunk-VDUTD5UR.js +0 -84
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- export declare function FunDivider({ marginY, transparent, }: {
4
- marginY?: BoxProps['margin'];
3
+ export declare function FunDivider({ marginTop, marginBottom, transparent, }: {
4
+ marginTop?: BoxProps['margin'];
5
+ marginBottom?: BoxProps['margin'];
5
6
  transparent?: boolean;
6
7
  }): React.JSX.Element;
@@ -29,7 +29,7 @@ export interface FunkitCheckoutConfig {
29
29
  /** Title to show in the checkout modal. Defaults to "Checkout" **/
30
30
  modalTitle?: string;
31
31
  /** Icon to show in the checkout modal (50px x 50px). If not specified, no icon will be shown. **/
32
- icon?: null | ReactNode;
32
+ iconSrc?: null | string;
33
33
  /** Title of the item being checked out. e.g. Staked Ether, XYZ Option, Solar Bond ABC **/
34
34
  checkoutItemTitle: string;
35
35
  /** Description of the item being checked out. If not specified, it will default to blank. **/
@@ -1,13 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { GlobalEnvOption } from '@funkit/core';
3
2
  interface LoginOptions {
4
3
  web2: boolean;
5
4
  web3: boolean;
6
5
  }
7
- export interface FunkitConfig extends GlobalEnvOption {
6
+ export interface FunkitConfig {
7
+ /** Funkit api key **/
8
+ apiKey: string;
9
+ /** Privy app id **/
8
10
  privyAppId: string;
11
+ /** Login options toggle **/
9
12
  enabledLoginOptions: LoginOptions;
13
+ /** App name **/
14
+ appName: string;
10
15
  }
11
- export declare const FunkitConfigContext: import("react").Context<FunkitConfig | null>;
12
- export declare function useFunkitConfig(): FunkitConfig | null;
16
+ export declare const FunkitConfigContext: import("react").Context<FunkitConfig>;
17
+ export declare function useFunkitConfig(): FunkitConfig;
13
18
  export {};
@@ -2,10 +2,7 @@ import React, { PropsWithChildren } from 'react';
2
2
  import { CreateConfigParameters } from 'wagmi';
3
3
  import { ThemeVars } from '../../css/sprinkles.css';
4
4
  import { Locale } from '../../locales';
5
- import { DisclaimerComponent } from './AppContext';
6
- import { AvatarComponent } from './AvatarContext';
7
5
  import { FunkitConfig } from './FunkitConfigContext';
8
- import { ModalSizes } from './ModalSizeContext';
9
6
  import { RainbowKitChain } from './RainbowKitChainContext';
10
7
  export declare const useThemeRootProps: () => {
11
8
  "data-rk": string;
@@ -15,23 +12,14 @@ export type Theme = ThemeVars | {
15
12
  darkMode: ThemeVars;
16
13
  };
17
14
  export interface FunkitProviderProps {
18
- wagmiConfig: CreateConfigParameters;
19
15
  chains: RainbowKitChain[];
20
16
  initialChain?: RainbowKitChain | number;
17
+ funkitConfig: FunkitConfig;
18
+ wagmiConfig: CreateConfigParameters;
21
19
  id?: string;
22
20
  theme?: Theme | null;
23
- showRecentTransactions?: boolean;
24
- appInfo?: {
25
- appName?: string;
26
- learnMoreUrl?: string;
27
- disclaimer?: DisclaimerComponent;
28
- };
29
- coolMode?: boolean;
30
- avatar?: AvatarComponent;
31
- modalSize?: ModalSizes;
32
21
  locale?: Locale;
33
- funkitConfig: FunkitConfig;
34
22
  }
35
23
  export declare const RESERVED_GROUP_NAME = "funkit-web2";
36
24
  export declare function FunkitProvider(props: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
37
- export declare function FunkitProviderInner({ appInfo, avatar, chains, children, coolMode, id, initialChain, locale, modalSize, showRecentTransactions, theme, funkitConfig, }: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
25
+ export declare function FunkitProviderInner({ chains, children, id, initialChain, locale, theme, funkitConfig, }: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
@@ -4,7 +4,7 @@ import {
4
4
  FunkitProvider,
5
5
  NATIVE_TOKEN,
6
6
  useFunkitCheckout
7
- } from "../chunk-X5YTL45L.js";
7
+ } from "../chunk-KQXRSMJW.js";
8
8
  import "../chunk-PKSFBURG.js";
9
9
  import "../chunk-VP4CAK4A.js";
10
10
  export {
package/dist/index.d.ts CHANGED
@@ -1,18 +1,15 @@
1
1
  export { __private__ } from './__private__';
2
2
  export * from './components';
3
- export type { DisclaimerComponent } from './components/FunkitProvider/AppContext';
4
3
  export type { AuthenticationConfig, AuthenticationStatus, } from './components/FunkitProvider/AuthenticationContext';
5
4
  export { createAuthenticationAdapter, RainbowKitAuthenticationProvider, } from './components/FunkitProvider/AuthenticationContext';
6
- export type { AvatarComponent } from './components/FunkitProvider/AvatarContext';
7
5
  export type { Theme } from './components/FunkitProvider/FunkitProvider';
8
- export { useAccountModal, useChainModal, useConnectModal, } from './components/FunkitProvider/ModalContext';
6
+ export { useAccountModal, useChainModal, useConnectModal, useFunCheckoutHistoryModal, useFunCheckoutModal, } from './components/FunkitProvider/ModalContext';
9
7
  export type { Chain } from './components/FunkitProvider/RainbowKitChainContext';
10
8
  export { cssObjectFromTheme } from './css/cssObjectFromTheme';
11
9
  export { cssStringFromTheme } from './css/cssStringFromTheme';
12
10
  export type { Locale } from './locales/';
13
11
  export { darkTheme } from './themes/darkTheme';
14
12
  export { lightTheme } from './themes/lightTheme';
15
- export { useAddRecentTransaction } from './transactions/useAddRecentTransaction';
16
13
  export { connectorsForWallets } from './wallets/connectorsForWallets';
17
14
  export { getDefaultWallets } from './wallets/getDefaultWallets';
18
15
  export { getWalletConnectConnector } from './wallets/getWalletConnectConnector';
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ import {
4
4
  } from "./chunk-3A7E2IPT.js";
5
5
  import {
6
6
  ActionButton,
7
- AppContext,
8
7
  AsyncImage,
9
8
  Box,
10
9
  CloseButton,
@@ -26,56 +25,31 @@ import {
26
25
  setWalletConnectDeepLink,
27
26
  touchableStyles,
28
27
  useAccountModal,
29
- useChainId,
30
28
  useChainModal,
31
29
  useConnectModal,
32
30
  useCoolMode,
31
+ useFunCheckoutHistoryModal,
32
+ useFunCheckoutModal,
33
33
  useFunkitCheckout,
34
- useTransactionStore,
35
34
  useWalletConnectors
36
- } from "./chunk-X5YTL45L.js";
35
+ } from "./chunk-KQXRSMJW.js";
37
36
  import {
38
37
  darkTheme
39
38
  } from "./chunk-PKSFBURG.js";
40
39
  import "./chunk-VP4CAK4A.js";
41
40
 
42
41
  // src/components/ConnectOptions/MobileOptions.tsx
43
- import React4, { useCallback, useContext, useState } from "react";
44
-
45
- // src/components/Disclaimer/DisclaimerLink.tsx
46
- import React from "react";
47
- var DisclaimerLink = ({
48
- children,
49
- href
50
- }) => {
51
- return /* @__PURE__ */ React.createElement(Box, {
52
- as: "a",
53
- color: "accentColor",
54
- href,
55
- rel: "noreferrer",
56
- target: "_blank"
57
- }, children);
58
- };
59
-
60
- // src/components/Disclaimer/DisclaimerText.tsx
61
- import React2 from "react";
62
- var DisclaimerText = ({ children }) => {
63
- return /* @__PURE__ */ React2.createElement(Text, {
64
- color: "modalTextSecondary",
65
- size: "12",
66
- weight: "medium"
67
- }, children);
68
- };
42
+ import React2, { useCallback, useContext, useState } from "react";
69
43
 
70
44
  // src/components/Icons/Back.tsx
71
- import React3 from "react";
72
- var BackIcon = () => /* @__PURE__ */ React3.createElement("svg", {
45
+ import React from "react";
46
+ var BackIcon = () => /* @__PURE__ */ React.createElement("svg", {
73
47
  fill: "none",
74
48
  height: "17",
75
49
  viewBox: "0 0 11 17",
76
50
  width: "11",
77
51
  xmlns: "http://www.w3.org/2000/svg"
78
- }, /* @__PURE__ */ React3.createElement("path", {
52
+ }, /* @__PURE__ */ React.createElement("path", {
79
53
  d: "M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",
80
54
  fill: "currentColor"
81
55
  }));
@@ -103,7 +77,7 @@ function WalletButton({
103
77
  const getMobileUri = mobile?.getUri;
104
78
  const coolModeRef = useCoolMode(iconUrl);
105
79
  const i18n = useContext(I18nContext);
106
- return /* @__PURE__ */ React4.createElement(Box, {
80
+ return /* @__PURE__ */ React2.createElement(Box, {
107
81
  as: "button",
108
82
  color: ready ? "modalText" : "modalTextSecondary",
109
83
  disabled: !ready,
@@ -142,34 +116,34 @@ function WalletButton({
142
116
  testId: `wallet-option-${id}`,
143
117
  type: "button",
144
118
  width: "full"
145
- }, /* @__PURE__ */ React4.createElement(Box, {
119
+ }, /* @__PURE__ */ React2.createElement(Box, {
146
120
  alignItems: "center",
147
121
  display: "flex",
148
122
  flexDirection: "column",
149
123
  justifyContent: "center"
150
- }, /* @__PURE__ */ React4.createElement(Box, {
124
+ }, /* @__PURE__ */ React2.createElement(Box, {
151
125
  paddingBottom: "8",
152
126
  paddingTop: "10"
153
- }, /* @__PURE__ */ React4.createElement(AsyncImage, {
127
+ }, /* @__PURE__ */ React2.createElement(AsyncImage, {
154
128
  background: iconBackground,
155
129
  borderRadius: "13",
156
130
  boxShadow: "walletLogo",
157
131
  height: "60",
158
132
  src: iconUrl,
159
133
  width: "60"
160
- })), /* @__PURE__ */ React4.createElement(Box, {
134
+ })), /* @__PURE__ */ React2.createElement(Box, {
161
135
  display: "flex",
162
136
  flexDirection: "column",
163
137
  textAlign: "center"
164
- }, /* @__PURE__ */ React4.createElement(Text, {
138
+ }, /* @__PURE__ */ React2.createElement(Text, {
165
139
  as: "h2",
166
140
  color: wallet.ready ? "modalText" : "modalTextSecondary",
167
141
  size: "13",
168
142
  weight: "medium"
169
- }, /* @__PURE__ */ React4.createElement(Box, {
143
+ }, /* @__PURE__ */ React2.createElement(Box, {
170
144
  as: "span",
171
145
  position: "relative"
172
- }, shortName ?? name, !wallet.ready && " (unsupported)")), wallet.recent && /* @__PURE__ */ React4.createElement(Text, {
146
+ }, shortName ?? name, !wallet.ready && " (unsupported)")), wallet.recent && /* @__PURE__ */ React2.createElement(Text, {
173
147
  color: "accentColor",
174
148
  size: "12",
175
149
  weight: "medium"
@@ -178,7 +152,6 @@ function WalletButton({
178
152
  function MobileOptions({ onClose }) {
179
153
  const titleId = "rk_connect_title";
180
154
  const wallets = useWalletConnectors();
181
- const { disclaimer: Disclaimer, learnMoreUrl } = useContext(AppContext);
182
155
  let headerLabel = null;
183
156
  let walletContent = null;
184
157
  let headerBackgroundContrast = false;
@@ -192,74 +165,62 @@ function MobileOptions({ onClose }) {
192
165
  case "CONNECT" /* Connect */: {
193
166
  headerLabel = i18n.t("connect.title");
194
167
  headerBackgroundContrast = true;
195
- walletContent = /* @__PURE__ */ React4.createElement(Box, null, /* @__PURE__ */ React4.createElement(Box, {
168
+ walletContent = /* @__PURE__ */ React2.createElement(Box, null, /* @__PURE__ */ React2.createElement(Box, {
196
169
  background: "profileForeground",
197
170
  className: scroll,
198
171
  display: "flex",
199
172
  paddingBottom: "20",
200
173
  paddingTop: "6"
201
- }, /* @__PURE__ */ React4.createElement(Box, {
174
+ }, /* @__PURE__ */ React2.createElement(Box, {
202
175
  display: "flex",
203
176
  style: { margin: "0 auto" }
204
177
  }, wallets.filter((wallet) => wallet.ready).map((wallet) => {
205
- return /* @__PURE__ */ React4.createElement(Box, {
178
+ return /* @__PURE__ */ React2.createElement(Box, {
206
179
  key: wallet.id,
207
180
  paddingX: "20"
208
- }, /* @__PURE__ */ React4.createElement(Box, {
181
+ }, /* @__PURE__ */ React2.createElement(Box, {
209
182
  width: "60"
210
- }, /* @__PURE__ */ React4.createElement(WalletButton, {
183
+ }, /* @__PURE__ */ React2.createElement(WalletButton, {
211
184
  onClose,
212
185
  wallet
213
186
  })));
214
- }))), /* @__PURE__ */ React4.createElement(Box, {
187
+ }))), /* @__PURE__ */ React2.createElement(Box, {
215
188
  background: "generalBorder",
216
189
  height: "1",
217
190
  marginBottom: "32",
218
191
  marginTop: "-1"
219
- }), /* @__PURE__ */ React4.createElement(Box, {
192
+ }), /* @__PURE__ */ React2.createElement(Box, {
220
193
  alignItems: "center",
221
194
  display: "flex",
222
195
  flexDirection: "column",
223
196
  gap: "32",
224
197
  paddingX: "32",
225
198
  style: { textAlign: "center" }
226
- }, /* @__PURE__ */ React4.createElement(Box, {
199
+ }, /* @__PURE__ */ React2.createElement(Box, {
227
200
  display: "flex",
228
201
  flexDirection: "column",
229
202
  gap: "8",
230
203
  textAlign: "center"
231
- }, /* @__PURE__ */ React4.createElement(Text, {
204
+ }, /* @__PURE__ */ React2.createElement(Text, {
232
205
  color: "modalText",
233
206
  size: "16",
234
207
  weight: "bold"
235
- }, i18n.t("intro.title")), /* @__PURE__ */ React4.createElement(Text, {
208
+ }, i18n.t("intro.title")), /* @__PURE__ */ React2.createElement(Text, {
236
209
  color: "modalTextSecondary",
237
210
  size: "16"
238
- }, i18n.t("intro.description")))), /* @__PURE__ */ React4.createElement(Box, {
211
+ }, i18n.t("intro.description")))), /* @__PURE__ */ React2.createElement(Box, {
239
212
  paddingTop: "32",
240
213
  paddingX: "20"
241
- }, /* @__PURE__ */ React4.createElement(Box, {
214
+ }, /* @__PURE__ */ React2.createElement(Box, {
242
215
  display: "flex",
243
216
  gap: "14",
244
217
  justifyContent: "center"
245
- }, /* @__PURE__ */ React4.createElement(ActionButton, {
218
+ }, /* @__PURE__ */ React2.createElement(ActionButton, {
246
219
  label: i18n.t("intro.get.label"),
247
220
  onClick: () => setWalletStep("GET" /* Get */),
248
221
  size: "large",
249
222
  type: "secondary"
250
- }), /* @__PURE__ */ React4.createElement(ActionButton, {
251
- href: learnMoreUrl,
252
- label: i18n.t("intro.learn_more.label"),
253
- size: "large",
254
- type: "secondary"
255
- }))), Disclaimer && /* @__PURE__ */ React4.createElement(Box, {
256
- marginTop: "28",
257
- marginX: "32",
258
- textAlign: "center"
259
- }, /* @__PURE__ */ React4.createElement(Disclaimer, {
260
- Link: DisclaimerLink,
261
- Text: DisclaimerText
262
- })));
223
+ }))));
263
224
  break;
264
225
  }
265
226
  case "GET" /* Get */: {
@@ -268,7 +229,7 @@ function MobileOptions({ onClose }) {
268
229
  const mobileWallets = wallets?.filter(
269
230
  (wallet) => wallet.downloadUrls?.ios || wallet.downloadUrls?.android || wallet.downloadUrls?.mobile
270
231
  )?.splice(0, 3);
271
- walletContent = /* @__PURE__ */ React4.createElement(Box, null, /* @__PURE__ */ React4.createElement(Box, {
232
+ walletContent = /* @__PURE__ */ React2.createElement(Box, null, /* @__PURE__ */ React2.createElement(Box, {
272
233
  alignItems: "center",
273
234
  display: "flex",
274
235
  flexDirection: "column",
@@ -282,88 +243,88 @@ function MobileOptions({ onClose }) {
282
243
  if (!downloadUrls?.ios && !downloadUrls?.android && !downloadUrls?.mobile) {
283
244
  return null;
284
245
  }
285
- return /* @__PURE__ */ React4.createElement(Box, {
246
+ return /* @__PURE__ */ React2.createElement(Box, {
286
247
  display: "flex",
287
248
  gap: "16",
288
249
  key: wallet.id,
289
250
  paddingX: "20",
290
251
  width: "full"
291
- }, /* @__PURE__ */ React4.createElement(Box, {
252
+ }, /* @__PURE__ */ React2.createElement(Box, {
292
253
  style: { minHeight: 48, minWidth: 48 }
293
- }, /* @__PURE__ */ React4.createElement(AsyncImage, {
254
+ }, /* @__PURE__ */ React2.createElement(AsyncImage, {
294
255
  background: iconBackground,
295
256
  borderColor: "generalBorder",
296
257
  borderRadius: "10",
297
258
  height: "48",
298
259
  src: iconUrl,
299
260
  width: "48"
300
- })), /* @__PURE__ */ React4.createElement(Box, {
261
+ })), /* @__PURE__ */ React2.createElement(Box, {
301
262
  display: "flex",
302
263
  flexDirection: "column",
303
264
  width: "full"
304
- }, /* @__PURE__ */ React4.createElement(Box, {
265
+ }, /* @__PURE__ */ React2.createElement(Box, {
305
266
  alignItems: "center",
306
267
  display: "flex",
307
268
  height: "48"
308
- }, /* @__PURE__ */ React4.createElement(Box, {
269
+ }, /* @__PURE__ */ React2.createElement(Box, {
309
270
  width: "full"
310
- }, /* @__PURE__ */ React4.createElement(Text, {
271
+ }, /* @__PURE__ */ React2.createElement(Text, {
311
272
  color: "modalText",
312
273
  size: "18",
313
274
  weight: "bold"
314
- }, name)), /* @__PURE__ */ React4.createElement(ActionButton, {
275
+ }, name)), /* @__PURE__ */ React2.createElement(ActionButton, {
315
276
  href: (ios ? downloadUrls?.ios : downloadUrls?.android) || downloadUrls?.mobile,
316
277
  label: i18n.t("get.action.label"),
317
278
  size: "small",
318
279
  type: "secondary"
319
- })), index < mobileWallets.length - 1 && /* @__PURE__ */ React4.createElement(Box, {
280
+ })), index < mobileWallets.length - 1 && /* @__PURE__ */ React2.createElement(Box, {
320
281
  background: "generalBorderDim",
321
282
  height: "1",
322
283
  marginY: "10",
323
284
  width: "full"
324
285
  })));
325
- })), /* @__PURE__ */ React4.createElement(Box, {
286
+ })), /* @__PURE__ */ React2.createElement(Box, {
326
287
  style: { marginBottom: "42px" }
327
- }), /* @__PURE__ */ React4.createElement(Box, {
288
+ }), /* @__PURE__ */ React2.createElement(Box, {
328
289
  alignItems: "center",
329
290
  display: "flex",
330
291
  flexDirection: "column",
331
292
  gap: "36",
332
293
  paddingX: "36",
333
294
  style: { textAlign: "center" }
334
- }, /* @__PURE__ */ React4.createElement(Box, {
295
+ }, /* @__PURE__ */ React2.createElement(Box, {
335
296
  display: "flex",
336
297
  flexDirection: "column",
337
298
  gap: "12",
338
299
  textAlign: "center"
339
- }, /* @__PURE__ */ React4.createElement(Text, {
300
+ }, /* @__PURE__ */ React2.createElement(Text, {
340
301
  color: "modalText",
341
302
  size: "16",
342
303
  weight: "bold"
343
- }, i18n.t("get.looking_for.title")), /* @__PURE__ */ React4.createElement(Text, {
304
+ }, i18n.t("get.looking_for.title")), /* @__PURE__ */ React2.createElement(Text, {
344
305
  color: "modalTextSecondary",
345
306
  size: "16"
346
307
  }, i18n.t("get.looking_for.mobile.description")))));
347
308
  break;
348
309
  }
349
310
  }
350
- return /* @__PURE__ */ React4.createElement(Box, {
311
+ return /* @__PURE__ */ React2.createElement(Box, {
351
312
  display: "flex",
352
313
  flexDirection: "column",
353
314
  paddingBottom: "36"
354
- }, /* @__PURE__ */ React4.createElement(Box, {
315
+ }, /* @__PURE__ */ React2.createElement(Box, {
355
316
  background: headerBackgroundContrast ? "profileForeground" : "modalBackground",
356
317
  display: "flex",
357
318
  flexDirection: "column",
358
319
  paddingBottom: "4",
359
320
  paddingTop: "14"
360
- }, /* @__PURE__ */ React4.createElement(Box, {
321
+ }, /* @__PURE__ */ React2.createElement(Box, {
361
322
  display: "flex",
362
323
  justifyContent: "center",
363
324
  paddingBottom: "6",
364
325
  paddingX: "20",
365
326
  position: "relative"
366
- }, headerBackButtonLink && /* @__PURE__ */ React4.createElement(Box, {
327
+ }, headerBackButtonLink && /* @__PURE__ */ React2.createElement(Box, {
367
328
  display: "flex",
368
329
  position: "absolute",
369
330
  style: {
@@ -371,7 +332,7 @@ function MobileOptions({ onClose }) {
371
332
  marginBottom: -20,
372
333
  marginTop: -20
373
334
  }
374
- }, /* @__PURE__ */ React4.createElement(Box, {
335
+ }, /* @__PURE__ */ React2.createElement(Box, {
375
336
  alignItems: "center",
376
337
  as: "button",
377
338
  className: touchableStyles({
@@ -387,28 +348,28 @@ function MobileOptions({ onClose }) {
387
348
  style: { height: 17, willChange: "transform" },
388
349
  transition: "default",
389
350
  type: "button"
390
- }, /* @__PURE__ */ React4.createElement(BackIcon, null))), /* @__PURE__ */ React4.createElement(Box, {
351
+ }, /* @__PURE__ */ React2.createElement(BackIcon, null))), /* @__PURE__ */ React2.createElement(Box, {
391
352
  marginTop: "4",
392
353
  textAlign: "center",
393
354
  width: "full"
394
- }, /* @__PURE__ */ React4.createElement(Text, {
355
+ }, /* @__PURE__ */ React2.createElement(Text, {
395
356
  as: "h1",
396
357
  color: "modalText",
397
358
  id: titleId,
398
359
  size: "20",
399
360
  weight: "bold"
400
- }, headerLabel)), /* @__PURE__ */ React4.createElement(Box, {
361
+ }, headerLabel)), /* @__PURE__ */ React2.createElement(Box, {
401
362
  alignItems: "center",
402
363
  display: "flex",
403
364
  height: "32",
404
365
  paddingRight: "14",
405
366
  position: "absolute",
406
367
  right: "0"
407
- }, /* @__PURE__ */ React4.createElement(Box, {
368
+ }, /* @__PURE__ */ React2.createElement(Box, {
408
369
  style: { marginBottom: -20, marginTop: -20 }
409
- }, /* @__PURE__ */ React4.createElement(CloseButton, {
370
+ }, /* @__PURE__ */ React2.createElement(CloseButton, {
410
371
  onClose
411
- }))))), /* @__PURE__ */ React4.createElement(Box, {
372
+ }))))), /* @__PURE__ */ React2.createElement(Box, {
412
373
  display: "flex",
413
374
  flexDirection: "column"
414
375
  }, walletContent));
@@ -422,24 +383,6 @@ var __private__ = {
422
383
  MobileOptions
423
384
  };
424
385
 
425
- // src/transactions/useAddRecentTransaction.ts
426
- import { useCallback as useCallback2 } from "react";
427
- import { useAccount } from "wagmi";
428
- function useAddRecentTransaction() {
429
- const store = useTransactionStore();
430
- const { address } = useAccount();
431
- const chainId = useChainId();
432
- return useCallback2(
433
- (transaction) => {
434
- if (!address || !chainId) {
435
- throw new Error("No address or chain ID found");
436
- }
437
- store.addTransaction(address, chainId, transaction);
438
- },
439
- [store, address, chainId]
440
- );
441
- }
442
-
443
386
  // src/wallets/walletConnectors/braveWallet/braveWallet.ts
444
387
  import { InjectedConnector } from "wagmi/connectors/injected";
445
388
  var braveWallet = ({
@@ -927,8 +870,9 @@ export {
927
870
  getWalletConnectConnector,
928
871
  lightTheme,
929
872
  useAccountModal,
930
- useAddRecentTransaction,
931
873
  useChainModal,
932
874
  useConnectModal,
875
+ useFunCheckoutHistoryModal,
876
+ useFunCheckoutModal,
933
877
  useFunkitCheckout
934
878
  };