@getpara/react-sdk-lite 2.8.0 → 2.10.0
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/dist/modal/ParaModal.js +1 -1
- package/dist/modal/components/Account/Account.js +17 -7
- package/dist/modal/components/Account/AccountProfile.js +30 -9
- package/dist/modal/components/Account/AccountSend/AccountSendForm.js +7 -1
- package/dist/modal/components/Account/AccountWallet.js +2 -0
- package/dist/modal/components/AddFunds/AddFunds.js +1 -4
- package/dist/modal/components/AddFunds/AddFundsAsset.js +25 -88
- package/dist/modal/components/AddFunds/AddFundsContext.d.ts +8 -2
- package/dist/modal/components/AddFunds/AddFundsContext.js +116 -22
- package/dist/modal/components/AddFunds/AddFundsNetwork.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFundsNetwork.js +31 -0
- package/dist/modal/components/AddFunds/AddFundsProvider.js +50 -65
- package/dist/modal/components/AddFunds/AddFundsReceive.js +4 -1
- package/dist/modal/components/AddFunds/AddFundsSettings.js +126 -143
- package/dist/modal/components/AuthInput/AuthInput.js +12 -1
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +32 -11
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +17 -8
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +25 -9
- package/dist/modal/components/Body/Body.js +3 -51
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +25 -8
- package/dist/modal/components/ExternalWallets/ExternalWallets.js +33 -13
- package/dist/modal/components/IFrameStep/IFrameStep.js +1 -1
- package/dist/modal/components/OAuth/OAuth.js +5 -3
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +15 -24
- package/dist/modal/components/QuantityInput.js +62 -9
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +4 -4
- package/dist/modal/components/SearchableButtonList.d.ts +2 -1
- package/dist/modal/components/SearchableButtonList.js +3 -1
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +6 -5
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +4 -2
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +2 -2
- package/dist/modal/components/common.d.ts +1 -1
- package/dist/modal/stores/modal/actions.js +2 -1
- package/dist/modal/stores/modal/useModalStore.d.ts +2 -0
- package/dist/modal/stores/modal/useModalStore.js +2 -1
- package/dist/modal/types/modalProps.d.ts +3 -1
- package/dist/modal/utils/validatePortalOrigin.js +6 -0
- package/dist/provider/ParaProviderMin.js +3 -0
- package/dist/provider/hooks/queries/useProfileBalance.js +33 -6
- package/dist/provider/hooks/utils/index.d.ts +1 -0
- package/dist/provider/hooks/utils/index.js +2 -0
- package/dist/provider/hooks/utils/useSetBalanceOverrides.d.ts +34 -0
- package/dist/provider/hooks/utils/useSetBalanceOverrides.js +12 -0
- package/dist/provider/stores/slices/modal.js +11 -1
- package/dist/provider/stores/types.d.ts +8 -0
- package/package.json +8 -8
- package/dist/modal/components/AddFunds/common.d.ts +0 -5
- package/dist/modal/components/AddFunds/common.js +0 -17
|
@@ -113,13 +113,14 @@ const VerificationCode = ({ authInfo, onResend, onSubmit, status, error }) => {
|
|
|
113
113
|
errorText: codeError || "",
|
|
114
114
|
onKeyDown: (e) => __async(void 0, null, function* () {
|
|
115
115
|
return e.key === "Enter" && (yield handleSubmitCode());
|
|
116
|
-
})
|
|
116
|
+
}),
|
|
117
|
+
"data-testid": "para-otp-input"
|
|
117
118
|
}
|
|
118
119
|
)
|
|
119
120
|
}
|
|
120
121
|
),
|
|
121
122
|
/* @__PURE__ */ jsxs(InlineText, { variant: "bodyS", color: "secondary", children: [
|
|
122
|
-
"Didn
|
|
123
|
+
"Didn't receive a code?",
|
|
123
124
|
" ",
|
|
124
125
|
/* @__PURE__ */ jsx(
|
|
125
126
|
ClickableText,
|
|
@@ -127,6 +128,7 @@ const VerificationCode = ({ authInfo, onResend, onSubmit, status, error }) => {
|
|
|
127
128
|
variant: "bodyS",
|
|
128
129
|
style: { cursor: resendDisabled ? "default" : "pointer" },
|
|
129
130
|
onClick: handleResendClick,
|
|
131
|
+
"data-testid": "para-otp-resend",
|
|
130
132
|
children: resendDisabled ? "Resent!" : "Resend."
|
|
131
133
|
}
|
|
132
134
|
)
|
|
@@ -68,10 +68,10 @@ const WalletCreationDoneStep = ({ twoFactorAuthEnabled, onClose }) => {
|
|
|
68
68
|
/* @__PURE__ */ jsx(CardContainer, { children: hideWallets ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
69
69
|
/* @__PURE__ */ jsx(HeroIcon, { icon: "checkCircleFilled" }),
|
|
70
70
|
/* @__PURE__ */ jsx(CpslText, { variant: "bodyM", color: "secondary", weight: "medium", style: { marginTop: "16px" }, children: "Your account has been created." })
|
|
71
|
-
] }) : /* @__PURE__ */ jsx(WalletCards, { children: para.currentWalletIdsArray.map(([id, type]) => {
|
|
71
|
+
] }) : /* @__PURE__ */ jsx(WalletCards, { "data-testid": "para-wallet-card", children: para.currentWalletIdsArray.map(([id, type]) => {
|
|
72
72
|
return /* @__PURE__ */ jsx(WalletCard, { id, type, showAddFunds: isOnRampConfigured }, id);
|
|
73
73
|
}) }) }),
|
|
74
|
-
/* @__PURE__ */ jsx(InnerStepContainer, { children: /* @__PURE__ */ jsx(CpslButton, { fullWidth: true, onClick: handleNext, disabled: isWaiting, children: twoFactorAuthEnabled ? "Continue" : "Done" }) })
|
|
74
|
+
/* @__PURE__ */ jsx(InnerStepContainer, { children: /* @__PURE__ */ jsx(CpslButton, { fullWidth: true, onClick: handleNext, disabled: isWaiting, "data-testid": "para-done-button", children: twoFactorAuthEnabled ? "Continue" : "Done" }) })
|
|
75
75
|
] });
|
|
76
76
|
};
|
|
77
77
|
const CardContainer = safeStyled(InnerStepContainer)`
|
|
@@ -10,7 +10,7 @@ export declare const FullWidthFilledDisabledInput: typeof CpslInput;
|
|
|
10
10
|
export declare const CenteredText: typeof CpslText;
|
|
11
11
|
export declare const InnerStepContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
12
|
export declare const StepContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
13
|
-
ref?:
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
$wide?: boolean;
|
|
16
16
|
}>> & string;
|
|
@@ -139,7 +139,8 @@ const getActions = (set, get) => ({
|
|
|
139
139
|
setIsPasskeySupported: (isPasskeySupported) => set({ isPasskeySupported }),
|
|
140
140
|
setAccountLinkOptions: (accountLinkOptions) => set({ accountLinkOptions }),
|
|
141
141
|
setProfileWallet: (profileWallet) => set({ profileWallet }),
|
|
142
|
-
setSendTx: (sendTx) => set({ sendTx })
|
|
142
|
+
setSendTx: (sendTx) => set({ sendTx }),
|
|
143
|
+
setIsTestModeAlertDismissed: (isTestModeAlertDismissed) => set({ isTestModeAlertDismissed })
|
|
143
144
|
});
|
|
144
145
|
export {
|
|
145
146
|
getActions
|
|
@@ -62,6 +62,7 @@ interface ModalState {
|
|
|
62
62
|
accountLinkOptions: SupportedAccountLinks;
|
|
63
63
|
profileWallet?: AvailableWallet;
|
|
64
64
|
sendTx: BroadcastTransactionResult | null;
|
|
65
|
+
isTestModeAlertDismissed: boolean;
|
|
65
66
|
}
|
|
66
67
|
export interface ModalActions {
|
|
67
68
|
resetState: () => void;
|
|
@@ -102,6 +103,7 @@ export interface ModalActions {
|
|
|
102
103
|
setAccountLinkOptions: (_: SupportedAccountLinks) => void;
|
|
103
104
|
setProfileWallet: (_?: AvailableWallet) => void;
|
|
104
105
|
setSendTx: (_: BroadcastTransactionResult | null) => void;
|
|
106
|
+
setIsTestModeAlertDismissed: (_: boolean) => void;
|
|
105
107
|
}
|
|
106
108
|
export type ModalStore = ModalState & ModalActions;
|
|
107
109
|
export declare const DEFAULT_MODAL_STATE: Omit<ModalState, 'step' | 'onRampConfig'>;
|
|
@@ -74,7 +74,9 @@ export interface ParaModalProps {
|
|
|
74
74
|
*/
|
|
75
75
|
logo?: string;
|
|
76
76
|
/**
|
|
77
|
-
* Whether
|
|
77
|
+
* Whether to run configured on-ramp providers in test mode in the PROD environment.
|
|
78
|
+
*
|
|
79
|
+
* On-ramp and off-ramp widgets will always run in test mode outside of PROD.
|
|
78
80
|
*/
|
|
79
81
|
onRampTestMode?: boolean;
|
|
80
82
|
/**
|
|
@@ -5,6 +5,12 @@ const validatePortalOrigin = (event, paraCtx) => {
|
|
|
5
5
|
const portalBase = getPortalBaseURL(paraCtx);
|
|
6
6
|
const portalLocalBase = getPortalBaseURL(paraCtx, true);
|
|
7
7
|
const normalizedOrigin = event.origin.replace("usecapsule", "getpara");
|
|
8
|
+
if (paraCtx.portalUrlOverride) {
|
|
9
|
+
const allowedPatterns = [/^https:\/\/\d+-portal\.preview\.sandbox\.getpara\.com$/, /^https?:\/\/localhost:\d+$/];
|
|
10
|
+
const overrideOrigin = new URL(paraCtx.portalUrlOverride).origin;
|
|
11
|
+
const isAllowed = allowedPatterns.some((pattern) => pattern.test(overrideOrigin));
|
|
12
|
+
if (isAllowed && normalizedOrigin === overrideOrigin) return true;
|
|
13
|
+
}
|
|
8
14
|
if (normalizedOrigin !== portalBase && normalizedOrigin !== portalLocalBase) {
|
|
9
15
|
return false;
|
|
10
16
|
}
|
|
@@ -101,6 +101,9 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
|
|
|
101
101
|
}
|
|
102
102
|
const newClient = isParaWeb(paraClientConfig) ? paraClientConfig : paraClientConfig.env ? new ParaWeb(paraClientConfig.env, paraClientConfig.apiKey, paraClientConfig.opts) : new ParaWeb(paraClientConfig.apiKey, paraClientConfig.opts);
|
|
103
103
|
newClient.setModalError = setModalError;
|
|
104
|
+
if (typeof globalThis !== "undefined" && globalThis.__PARA_PORTAL_URL_OVERRIDE__) {
|
|
105
|
+
newClient.ctx.portalUrlOverride = globalThis.__PARA_PORTAL_URL_OVERRIDE__;
|
|
106
|
+
}
|
|
104
107
|
newClient.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
|
|
105
108
|
if (newClient.isReady) {
|
|
106
109
|
setIsClientReady(true);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
__async
|
|
3
|
+
__async,
|
|
4
|
+
__spreadProps,
|
|
5
|
+
__spreadValues
|
|
4
6
|
} from "../../../chunk-MMUBH76A.js";
|
|
5
7
|
import { useQuery } from "@tanstack/react-query";
|
|
6
|
-
import { useRef, useEffect } from "react";
|
|
8
|
+
import { useRef, useEffect, useMemo } from "react";
|
|
7
9
|
import { useStore } from "../../stores/useStore.js";
|
|
8
10
|
import { useInternalClient } from "../utils/useInternalClient.js";
|
|
9
11
|
import { useIsFullyLoggedIn } from "./useIsFullyLoggedIn.js";
|
|
10
|
-
import { filterProfileBalance } from "@getpara/shared";
|
|
12
|
+
import { filterProfileBalance, formatCurrency } from "@getpara/shared";
|
|
11
13
|
const useProfileBalance = (options) => {
|
|
12
14
|
var _a, _b, _c;
|
|
13
15
|
const client = useInternalClient();
|
|
@@ -17,6 +19,7 @@ const useProfileBalance = (options) => {
|
|
|
17
19
|
return (_a2 = state.modalConfig) == null ? void 0 : _a2.balances;
|
|
18
20
|
});
|
|
19
21
|
const refs = useStore((state) => state.refs);
|
|
22
|
+
const balanceOverrides = useStore((state) => state.balanceOverrides);
|
|
20
23
|
const isComprehensive = (_a = options == null ? void 0 : options.isComprehensive) != null ? _a : false;
|
|
21
24
|
const previousTriggerRef = useRef(options == null ? void 0 : options.refetchTrigger);
|
|
22
25
|
const shouldRefetchRef = useRef(false);
|
|
@@ -28,8 +31,10 @@ const useProfileBalance = (options) => {
|
|
|
28
31
|
previousTriggerRef.current = options == null ? void 0 : options.refetchTrigger;
|
|
29
32
|
}
|
|
30
33
|
}, [options == null ? void 0 : options.refetchTrigger]);
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
const requiresOverrides = (config == null ? void 0 : config.useBalanceOverrides) && (config == null ? void 0 : config.displayType) === "AGGREGATED";
|
|
35
|
+
const shouldUseOverrides = requiresOverrides && !!balanceOverrides;
|
|
36
|
+
const query = useQuery({
|
|
37
|
+
enabled: isSuccess && !!client && (!requiresOverrides || !!balanceOverrides),
|
|
33
38
|
queryKey: [
|
|
34
39
|
"useProfileBalance",
|
|
35
40
|
isFullyLoggedIn != null ? isFullyLoggedIn : null,
|
|
@@ -56,9 +61,31 @@ const useProfileBalance = (options) => {
|
|
|
56
61
|
isInitialLoadRef.current = false;
|
|
57
62
|
return isComprehensive ? profileBalance : filterProfileBalance(profileBalance, config || { displayType: "AGGREGATED" });
|
|
58
63
|
}),
|
|
59
|
-
// We handle refetch manually
|
|
60
64
|
refetchOnWindowFocus: false
|
|
61
65
|
});
|
|
66
|
+
const data = useMemo(() => {
|
|
67
|
+
var _a2;
|
|
68
|
+
const raw = query.data;
|
|
69
|
+
if (!raw || !shouldUseOverrides) return raw;
|
|
70
|
+
const overrides = balanceOverrides.value;
|
|
71
|
+
const result = structuredClone(raw);
|
|
72
|
+
for (const [walletAddress, override] of Object.entries(overrides)) {
|
|
73
|
+
const wallet = result.wallets.find((w) => w.address === walletAddress);
|
|
74
|
+
if (((_a2 = wallet == null ? void 0 : wallet.value) == null ? void 0 : _a2.value) === void 0) continue;
|
|
75
|
+
if (typeof override !== "number" || !Number.isFinite(override)) continue;
|
|
76
|
+
wallet.value.value = override;
|
|
77
|
+
wallet.formattedValue = formatCurrency(wallet.value);
|
|
78
|
+
}
|
|
79
|
+
if (result.value) {
|
|
80
|
+
result.value.value = result.wallets.reduce((sum, wallet) => {
|
|
81
|
+
var _a3, _b2;
|
|
82
|
+
return sum + ((_b2 = (_a3 = wallet.value) == null ? void 0 : _a3.value) != null ? _b2 : 0);
|
|
83
|
+
}, 0);
|
|
84
|
+
result.formattedValue = formatCurrency(result.value);
|
|
85
|
+
}
|
|
86
|
+
return result;
|
|
87
|
+
}, [query.data, shouldUseOverrides, balanceOverrides == null ? void 0 : balanceOverrides.version]);
|
|
88
|
+
return __spreadProps(__spreadValues({}, query), { data: data != null ? data : void 0 });
|
|
62
89
|
};
|
|
63
90
|
export {
|
|
64
91
|
useProfileBalance
|
|
@@ -3,8 +3,10 @@ import "../../../chunk-MMUBH76A.js";
|
|
|
3
3
|
import { useClient } from "./useClient.js";
|
|
4
4
|
import { useModal } from "./useModal.js";
|
|
5
5
|
import { useWalletState } from "./useWalletState.js";
|
|
6
|
+
import { useSetBalanceOverrides } from "./useSetBalanceOverrides.js";
|
|
6
7
|
export {
|
|
7
8
|
useClient,
|
|
8
9
|
useModal,
|
|
10
|
+
useSetBalanceOverrides,
|
|
9
11
|
useWalletState
|
|
10
12
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BalanceOverrides } from '@getpara/shared';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a function to set the balance overrides, similar to React `setState`. Use this once your balance overrides are available to modify or replace the displayed wallet balances in the Para Modal. Both the individual wallet and the cumulative total balance will be modified.
|
|
4
|
+
*
|
|
5
|
+
* If you have set `useBalanceOverrides` to `true` in your configuration, you must call this function at least once with a non-null value for balances to be displayed.
|
|
6
|
+
*
|
|
7
|
+
* **Behavior notes:**
|
|
8
|
+
* - Both numeric `value.value` and `formattedValue` strings are recalculated after overrides.
|
|
9
|
+
* - Wallets not present in the override map retain their original values.
|
|
10
|
+
* - Overrides are re-applied whenever the underlying balance data refetches; they do not need to be re-set.
|
|
11
|
+
* - Non-finite values (`NaN`, `Infinity`) are silently skipped.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { useAccount, useSetBalanceOverrides } from '@getpara/react-sdk';
|
|
16
|
+
*
|
|
17
|
+
* const ComponentWithinParaProvider = () => {
|
|
18
|
+
* const setBalanceOverrides = useSetBalanceOverrides();
|
|
19
|
+
* const { embedded: embeddedWallets } = useAccount();
|
|
20
|
+
*
|
|
21
|
+
* useEffect(() => {
|
|
22
|
+
* const interval = setInterval(async () => {
|
|
23
|
+
* const balances = await getBalancesFromYourApi({ addresses: embeddedWallets.map(w => w.address!) });
|
|
24
|
+
*
|
|
25
|
+
* // Pass a Record<string, number> mapping wallet addresses to their new balance values:
|
|
26
|
+
* setBalanceOverrides(balances);
|
|
27
|
+
* }, 10000);
|
|
28
|
+
* return () => clearInterval(interval);
|
|
29
|
+
* }, [embeddedWallets, setBalanceOverrides]);
|
|
30
|
+
*
|
|
31
|
+
* // ...
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const useSetBalanceOverrides: () => (balanceOverrides: BalanceOverrides) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../../chunk-MMUBH76A.js";
|
|
3
|
+
import { useStore } from "../../stores/useStore.js";
|
|
4
|
+
const useSetBalanceOverrides = () => {
|
|
5
|
+
const setBalanceOverrides = useStore((state) => state.setBalanceOverrides);
|
|
6
|
+
return (balanceOverrides) => {
|
|
7
|
+
setBalanceOverrides(balanceOverrides);
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
useSetBalanceOverrides
|
|
12
|
+
};
|
|
@@ -18,7 +18,17 @@ const createModalSlice = (set) => ({
|
|
|
18
18
|
refs: {
|
|
19
19
|
openedToStep: createRef(),
|
|
20
20
|
balancesInvalidationTime: createRef()
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
|
+
balanceOverrides: null,
|
|
23
|
+
setBalanceOverrides: (balanceOverrides) => set((state) => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
return {
|
|
26
|
+
balanceOverrides: balanceOverrides ? {
|
|
27
|
+
version: ((_b = (_a = state.balanceOverrides) == null ? void 0 : _a.version) != null ? _b : 0) + 1,
|
|
28
|
+
value: balanceOverrides
|
|
29
|
+
} : null
|
|
30
|
+
};
|
|
31
|
+
})
|
|
22
32
|
});
|
|
23
33
|
export {
|
|
24
34
|
createModalSlice
|
|
@@ -7,6 +7,12 @@ import { ParaSolanaProvider, SolanaExternalWalletContextType, WalletList as Sola
|
|
|
7
7
|
import { ModalStep, ParaModalProps } from '../../modal/index.js';
|
|
8
8
|
import { OAuthLogoVariantType } from '../../modal/types/modalProps.js';
|
|
9
9
|
import { type TExternalWallet } from '@getpara/react-common';
|
|
10
|
+
import { BalanceOverrides } from '@getpara/shared';
|
|
11
|
+
/** Balance overrides with a version field for React Query cache invalidation (version must be serializable). */
|
|
12
|
+
export type BalanceOverridesWithVersion = {
|
|
13
|
+
version: number;
|
|
14
|
+
value: BalanceOverrides;
|
|
15
|
+
};
|
|
10
16
|
export type FarcasterMiniAppConfig = {
|
|
11
17
|
/**
|
|
12
18
|
* Whether to disable automatic sign-in via the Farcaster user's existing miniapp wallet(s).
|
|
@@ -40,6 +46,8 @@ export interface ModalSlice {
|
|
|
40
46
|
openedToStep: MutableRefObject<ModalStep | null>;
|
|
41
47
|
balancesInvalidationTime: MutableRefObject<number | null>;
|
|
42
48
|
};
|
|
49
|
+
balanceOverrides: BalanceOverridesWithVersion | null;
|
|
50
|
+
setBalanceOverrides: (_: BalanceOverrides | null) => void;
|
|
43
51
|
}
|
|
44
52
|
export interface WalletSlice {
|
|
45
53
|
rpcUrl?: string;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk-lite",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"setup-para": "dist/cli/cli.mjs"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@getpara/react-common": "2.
|
|
9
|
-
"@getpara/react-components": "2.
|
|
10
|
-
"@getpara/web-sdk": "2.
|
|
8
|
+
"@getpara/react-common": "2.10.0",
|
|
9
|
+
"@getpara/react-components": "2.10.0",
|
|
10
|
+
"@getpara/web-sdk": "2.10.0",
|
|
11
11
|
"date-fns": "^3.6.0",
|
|
12
12
|
"framer-motion": "^11.3.31",
|
|
13
13
|
"libphonenumber-js": "^1.11.7",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"zustand-sync-tabs": "^0.2.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@getpara/cosmos-wallet-connectors": "2.
|
|
20
|
-
"@getpara/evm-wallet-connectors": "2.
|
|
21
|
-
"@getpara/solana-wallet-connectors": "2.
|
|
19
|
+
"@getpara/cosmos-wallet-connectors": "2.10.0",
|
|
20
|
+
"@getpara/evm-wallet-connectors": "2.10.0",
|
|
21
|
+
"@getpara/solana-wallet-connectors": "2.10.0",
|
|
22
22
|
"@tanstack/react-query": "^5.74.0",
|
|
23
23
|
"@testing-library/dom": "^10.4.0",
|
|
24
24
|
"@testing-library/react": "^16.3.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"package.json",
|
|
39
39
|
"styles.css"
|
|
40
40
|
],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8da2c51cc91f021acbc2ec7373b9ca0638fc840a",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@tanstack/react-query": ">=5.0.0",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const NoProviders: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<any, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
2
|
-
ref?: ((instance: any) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<any> | null | undefined;
|
|
3
|
-
}, {
|
|
4
|
-
isHidden?: boolean;
|
|
5
|
-
}>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { CpslText } from "@getpara/react-components";
|
|
4
|
-
import { safeStyled } from "@getpara/react-common";
|
|
5
|
-
const NoProviders = safeStyled(CpslText)`
|
|
6
|
-
width: 100%;
|
|
7
|
-
text-align: center;
|
|
8
|
-
visibility: ${({ isHidden }) => isHidden ? "hidden" : "visible"};
|
|
9
|
-
position: absolute;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
right: 0;
|
|
13
|
-
transition: visibility 0.2s;
|
|
14
|
-
`;
|
|
15
|
-
export {
|
|
16
|
-
NoProviders
|
|
17
|
-
};
|