@getpara/react-sdk-lite 2.15.0 → 2.17.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/aa/alchemy/hook.d.ts +16708 -0
- package/dist/aa/alchemy/hook.js +26 -0
- package/dist/aa/biconomy/hook.d.ts +44 -0
- package/dist/aa/biconomy/hook.js +26 -0
- package/dist/aa/cdp/hook.d.ts +11 -0
- package/dist/aa/cdp/hook.js +26 -0
- package/dist/aa/createSmartAccountHook.d.ts +13 -0
- package/dist/aa/createSmartAccountHook.js +81 -0
- package/dist/aa/gelato/hook.d.ts +11 -0
- package/dist/aa/gelato/hook.js +26 -0
- package/dist/aa/pimlico/hook.d.ts +838 -0
- package/dist/aa/pimlico/hook.js +26 -0
- package/dist/aa/porto/hook.d.ts +12 -0
- package/dist/aa/porto/hook.js +26 -0
- package/dist/aa/rhinestone/hook.d.ts +12 -0
- package/dist/aa/rhinestone/hook.js +26 -0
- package/dist/aa/safe/hook.d.ts +12 -0
- package/dist/aa/safe/hook.js +26 -0
- package/dist/aa/thirdweb/hook.d.ts +12 -0
- package/dist/aa/thirdweb/hook.js +26 -0
- package/dist/aa/types.d.ts +21 -0
- package/dist/aa/types.js +1 -0
- package/dist/aa/zerodev/hook.d.ts +12 -0
- package/dist/aa/zerodev/hook.js +26 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +33 -1
- package/dist/modal/ParaModal.js +1 -1
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +2 -1
- package/package.json +66 -12
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../chunk-MMUBH76A.js";
|
|
5
|
+
import { createSmartAccountHook } from "../createSmartAccountHook.js";
|
|
6
|
+
const PIMLICO_SMART_ACCOUNT_BASE_KEY = "PARA_PIMLICO_SMART_ACCOUNT";
|
|
7
|
+
const usePimlicoSmartAccount = createSmartAccountHook({
|
|
8
|
+
queryKeyBase: PIMLICO_SMART_ACCOUNT_BASE_KEY,
|
|
9
|
+
getQueryKey: (p) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return [p.apiKey, (_a = p.chain) == null ? void 0 : _a.id, p.rpcUrl, p.mode];
|
|
12
|
+
},
|
|
13
|
+
createClient: (params) => __async(void 0, null, function* () {
|
|
14
|
+
let mod;
|
|
15
|
+
try {
|
|
16
|
+
mod = yield import("@getpara/aa-pimlico");
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw new Error("[@getpara/react-sdk-lite] Please install @getpara/aa-pimlico to use usePimlicoSmartAccount");
|
|
19
|
+
}
|
|
20
|
+
return mod.createPimlicoSmartAccount(params);
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
PIMLICO_SMART_ACCOUNT_BASE_KEY,
|
|
25
|
+
usePimlicoSmartAccount
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const PORTO_ACCOUNT_BASE_KEY = "PARA_PORTO_ACCOUNT";
|
|
2
|
+
/**
|
|
3
|
+
* React hook to create and manage a Porto smart account.
|
|
4
|
+
*
|
|
5
|
+
* Porto operates in EIP-7702 mode only. No API key required — Porto uses its own relay RPC.
|
|
6
|
+
* On testnets, Porto's relay sponsors gas by default. For mainnet, pass `merchantUrl`.
|
|
7
|
+
*
|
|
8
|
+
* Requires `@getpara/aa-porto` to be installed.
|
|
9
|
+
*/
|
|
10
|
+
export declare const usePortoSmartAccount: (params?: import("@getpara/aa-porto").PortoAccountConfig & {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}) => import("../types.js").UseSmartAccountResult<import("@getpara/viem-v2-integration/aa").SmartAccount7702<any>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../chunk-MMUBH76A.js";
|
|
5
|
+
import { createSmartAccountHook } from "../createSmartAccountHook.js";
|
|
6
|
+
const PORTO_ACCOUNT_BASE_KEY = "PARA_PORTO_ACCOUNT";
|
|
7
|
+
const usePortoSmartAccount = createSmartAccountHook({
|
|
8
|
+
queryKeyBase: PORTO_ACCOUNT_BASE_KEY,
|
|
9
|
+
getQueryKey: (params) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return [(_a = params.chain) == null ? void 0 : _a.id, params.merchantUrl];
|
|
12
|
+
},
|
|
13
|
+
createClient: (params) => __async(void 0, null, function* () {
|
|
14
|
+
let mod;
|
|
15
|
+
try {
|
|
16
|
+
mod = yield import("@getpara/aa-porto");
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw new Error("[@getpara/react-sdk-lite] Please install @getpara/aa-porto to use usePortoSmartAccount");
|
|
19
|
+
}
|
|
20
|
+
return mod.createPortoSmartAccount(params);
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
PORTO_ACCOUNT_BASE_KEY,
|
|
25
|
+
usePortoSmartAccount
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const RHINESTONE_SMART_ACCOUNT_BASE_KEY = "PARA_RHINESTONE_SMART_ACCOUNT";
|
|
2
|
+
/**
|
|
3
|
+
* React hook to create and manage a Rhinestone smart account.
|
|
4
|
+
*
|
|
5
|
+
* Rhinestone operates in EIP-4337 mode only. Uses Rhinestone's orchestrator
|
|
6
|
+
* with Pimlico's bundler infrastructure.
|
|
7
|
+
*
|
|
8
|
+
* Requires `@getpara/aa-rhinestone` to be installed.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useRhinestoneSmartAccount: (params?: import("@getpara/aa-rhinestone").RhinestoneSmartAccountConfig & {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}) => import("../types.js").UseSmartAccountResult<import("@getpara/viem-v2-integration/aa").SmartAccount4337<any>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../chunk-MMUBH76A.js";
|
|
5
|
+
import { createSmartAccountHook } from "../createSmartAccountHook.js";
|
|
6
|
+
const RHINESTONE_SMART_ACCOUNT_BASE_KEY = "PARA_RHINESTONE_SMART_ACCOUNT";
|
|
7
|
+
const useRhinestoneSmartAccount = createSmartAccountHook({
|
|
8
|
+
queryKeyBase: RHINESTONE_SMART_ACCOUNT_BASE_KEY,
|
|
9
|
+
getQueryKey: (p) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return [(_a = p.chain) == null ? void 0 : _a.id, p.rpcUrl, p.rhinestoneApiKey, p.pimlicoApiKey];
|
|
12
|
+
},
|
|
13
|
+
createClient: (params) => __async(void 0, null, function* () {
|
|
14
|
+
let mod;
|
|
15
|
+
try {
|
|
16
|
+
mod = yield import("@getpara/aa-rhinestone");
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw new Error("[@getpara/react-sdk-lite] Please install @getpara/aa-rhinestone to use useRhinestoneSmartAccount");
|
|
19
|
+
}
|
|
20
|
+
return mod.createRhinestoneSmartAccount(params);
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
RHINESTONE_SMART_ACCOUNT_BASE_KEY,
|
|
25
|
+
useRhinestoneSmartAccount
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const SAFE_SMART_ACCOUNT_BASE_KEY = "PARA_SAFE_SMART_ACCOUNT";
|
|
2
|
+
/**
|
|
3
|
+
* React hook to create and manage a Safe smart account.
|
|
4
|
+
*
|
|
5
|
+
* Safe operates in EIP-4337 mode only. Uses permissionless's Safe implementation
|
|
6
|
+
* with Pimlico's bundler and paymaster infrastructure.
|
|
7
|
+
*
|
|
8
|
+
* Requires `@getpara/aa-safe` to be installed.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useSafeSmartAccount: (params?: import("@getpara/aa-safe").SafeSmartAccountConfig & {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}) => import("../types.js").UseSmartAccountResult<import("@getpara/viem-v2-integration/aa").SmartAccount4337<import("permissionless").SmartAccountClient>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../chunk-MMUBH76A.js";
|
|
5
|
+
import { createSmartAccountHook } from "../createSmartAccountHook.js";
|
|
6
|
+
const SAFE_SMART_ACCOUNT_BASE_KEY = "PARA_SAFE_SMART_ACCOUNT";
|
|
7
|
+
const useSafeSmartAccount = createSmartAccountHook({
|
|
8
|
+
queryKeyBase: SAFE_SMART_ACCOUNT_BASE_KEY,
|
|
9
|
+
getQueryKey: (p) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return [p.pimlicoApiKey, (_a = p.chain) == null ? void 0 : _a.id, p.rpcUrl, p.safeVersion, (_b = p.saltNonce) == null ? void 0 : _b.toString()];
|
|
12
|
+
},
|
|
13
|
+
createClient: (params) => __async(void 0, null, function* () {
|
|
14
|
+
let mod;
|
|
15
|
+
try {
|
|
16
|
+
mod = yield import("@getpara/aa-safe");
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw new Error("[@getpara/react-sdk-lite] Please install @getpara/aa-safe to use useSafeSmartAccount");
|
|
19
|
+
}
|
|
20
|
+
return mod.createSafeSmartAccount(params);
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
SAFE_SMART_ACCOUNT_BASE_KEY,
|
|
25
|
+
useSafeSmartAccount
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const THIRDWEB_SMART_ACCOUNT_BASE_KEY = "PARA_THIRDWEB_SMART_ACCOUNT";
|
|
2
|
+
/**
|
|
3
|
+
* React hook to create and manage a Thirdweb smart account.
|
|
4
|
+
*
|
|
5
|
+
* Supports both EIP-4337 and EIP-7702 modes. Uses Thirdweb's smart wallet
|
|
6
|
+
* infrastructure with optional gas sponsorship.
|
|
7
|
+
*
|
|
8
|
+
* Requires `@getpara/aa-thirdweb` to be installed.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useThirdwebSmartAccount: (params?: import("@getpara/aa-thirdweb").ThirdwebSmartAccountConfig & {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}) => import("../types.js").UseSmartAccountResult<NonNullable<import("@getpara/viem-v2-integration/aa").SmartAccount4337<import("thirdweb/wallets").Account> | import("@getpara/viem-v2-integration/aa").SmartAccount7702<import("thirdweb/wallets").Account> | null>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../chunk-MMUBH76A.js";
|
|
5
|
+
import { createSmartAccountHook } from "../createSmartAccountHook.js";
|
|
6
|
+
const THIRDWEB_SMART_ACCOUNT_BASE_KEY = "PARA_THIRDWEB_SMART_ACCOUNT";
|
|
7
|
+
const useThirdwebSmartAccount = createSmartAccountHook({
|
|
8
|
+
queryKeyBase: THIRDWEB_SMART_ACCOUNT_BASE_KEY,
|
|
9
|
+
getQueryKey: (p) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return [p.clientId, (_a = p.chain) == null ? void 0 : _a.id, p.mode, p.sponsorGas, p.factoryAddress, p.accountAddress];
|
|
12
|
+
},
|
|
13
|
+
createClient: (params) => __async(void 0, null, function* () {
|
|
14
|
+
let mod;
|
|
15
|
+
try {
|
|
16
|
+
mod = yield import("@getpara/aa-thirdweb");
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw new Error("[@getpara/react-sdk-lite] Please install @getpara/aa-thirdweb to use useThirdwebSmartAccount");
|
|
19
|
+
}
|
|
20
|
+
return mod.createThirdwebSmartAccount(params);
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
THIRDWEB_SMART_ACCOUNT_BASE_KEY,
|
|
25
|
+
useThirdwebSmartAccount
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type ParaCore from '@getpara/core-sdk';
|
|
2
|
+
import type { Hex } from 'viem';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for `createSmartAccountHook` — defines how a provider hook
|
|
5
|
+
* creates its smart account client.
|
|
6
|
+
*/
|
|
7
|
+
export interface SmartAccountHookConfig<TParams, TResult> {
|
|
8
|
+
queryKeyBase: string;
|
|
9
|
+
getQueryKey: (params: TParams) => unknown[];
|
|
10
|
+
createClient: (params: TParams & {
|
|
11
|
+
para: ParaCore;
|
|
12
|
+
address?: Hex;
|
|
13
|
+
}) => Promise<TResult | null>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Return type of hooks created by `createSmartAccountHook`.
|
|
17
|
+
* Extends React Query's `UseQueryResult` with a convenient `smartAccount` alias.
|
|
18
|
+
*/
|
|
19
|
+
export type UseSmartAccountResult<TResult> = import('@tanstack/react-query').UseQueryResult<TResult | null | undefined, Error> & {
|
|
20
|
+
smartAccount: TResult | null | undefined;
|
|
21
|
+
};
|
package/dist/aa/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ZERODEV_SMART_ACCOUNT_BASE_KEY = "PARA_ZERODEV_SMART_ACCOUNT";
|
|
2
|
+
/**
|
|
3
|
+
* React hook to create and manage a ZeroDev smart account.
|
|
4
|
+
*
|
|
5
|
+
* Supports both EIP-4337 and EIP-7702 modes. Uses ZeroDev's Kernel account
|
|
6
|
+
* with ECDSA validation and gas sponsorship.
|
|
7
|
+
*
|
|
8
|
+
* Requires `@getpara/aa-zerodev` to be installed.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useZeroDevSmartAccount: (params?: import("@getpara/aa-zerodev").ZeroDevSmartAccountConfig & {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}) => import("../types.js").UseSmartAccountResult<NonNullable<import("@getpara/viem-v2-integration/aa").SmartAccount4337<import("@zerodev/sdk").KernelAccountClient> | import("@getpara/viem-v2-integration/aa").SmartAccount7702<import("@zerodev/sdk").KernelAccountClient> | null>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../chunk-MMUBH76A.js";
|
|
5
|
+
import { createSmartAccountHook } from "../createSmartAccountHook.js";
|
|
6
|
+
const ZERODEV_SMART_ACCOUNT_BASE_KEY = "PARA_ZERODEV_SMART_ACCOUNT";
|
|
7
|
+
const useZeroDevSmartAccount = createSmartAccountHook({
|
|
8
|
+
queryKeyBase: ZERODEV_SMART_ACCOUNT_BASE_KEY,
|
|
9
|
+
getQueryKey: (p) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return [p.projectId, (_a = p.chain) == null ? void 0 : _a.id, p.rpcUrl, p.bundlerUrl, p.paymasterUrl, p.mode];
|
|
12
|
+
},
|
|
13
|
+
createClient: (params) => __async(void 0, null, function* () {
|
|
14
|
+
let mod;
|
|
15
|
+
try {
|
|
16
|
+
mod = yield import("@getpara/aa-zerodev");
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw new Error("[@getpara/react-sdk-lite] Please install @getpara/aa-zerodev to use useZeroDevSmartAccount");
|
|
19
|
+
}
|
|
20
|
+
return mod.createZeroDevSmartAccount(params);
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
ZERODEV_SMART_ACCOUNT_BASE_KEY,
|
|
25
|
+
useZeroDevSmartAccount
|
|
26
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,15 @@ export type { Theme } from '@getpara/react-components';
|
|
|
5
5
|
import ParaWeb from '@getpara/web-sdk';
|
|
6
6
|
export default ParaWeb;
|
|
7
7
|
export type { StepOverride } from './modal/types/modalProps.js';
|
|
8
|
+
export { createSmartAccountHook } from './aa/createSmartAccountHook.js';
|
|
9
|
+
export type { UseSmartAccountResult, SmartAccountHookConfig } from './aa/types.js';
|
|
10
|
+
export { useAlchemySmartAccount, ALCHEMY_SMART_ACCOUNT_BASE_KEY } from './aa/alchemy/hook.js';
|
|
11
|
+
export { useBiconomySmartAccount, BICONOMY_SMART_ACCOUNT_BASE_KEY } from './aa/biconomy/hook.js';
|
|
12
|
+
export { useCDPSmartAccount, CDP_SMART_ACCOUNT_BASE_KEY } from './aa/cdp/hook.js';
|
|
13
|
+
export { useGelatoSmartAccount, GELATO_SMART_ACCOUNT_BASE_KEY } from './aa/gelato/hook.js';
|
|
14
|
+
export { usePimlicoSmartAccount, PIMLICO_SMART_ACCOUNT_BASE_KEY } from './aa/pimlico/hook.js';
|
|
15
|
+
export { usePortoSmartAccount, PORTO_ACCOUNT_BASE_KEY } from './aa/porto/hook.js';
|
|
16
|
+
export { useRhinestoneSmartAccount, RHINESTONE_SMART_ACCOUNT_BASE_KEY } from './aa/rhinestone/hook.js';
|
|
17
|
+
export { useSafeSmartAccount, SAFE_SMART_ACCOUNT_BASE_KEY } from './aa/safe/hook.js';
|
|
18
|
+
export { useThirdwebSmartAccount, THIRDWEB_SMART_ACCOUNT_BASE_KEY } from './aa/thirdweb/hook.js';
|
|
19
|
+
export { useZeroDevSmartAccount, ZERODEV_SMART_ACCOUNT_BASE_KEY } from './aa/zerodev/hook.js';
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,38 @@ export * from "./provider/index.js";
|
|
|
5
5
|
export * from "@getpara/web-sdk";
|
|
6
6
|
import ParaWeb from "@getpara/web-sdk";
|
|
7
7
|
var src_default = ParaWeb;
|
|
8
|
+
import { createSmartAccountHook } from "./aa/createSmartAccountHook.js";
|
|
9
|
+
import { useAlchemySmartAccount, ALCHEMY_SMART_ACCOUNT_BASE_KEY } from "./aa/alchemy/hook.js";
|
|
10
|
+
import { useBiconomySmartAccount, BICONOMY_SMART_ACCOUNT_BASE_KEY } from "./aa/biconomy/hook.js";
|
|
11
|
+
import { useCDPSmartAccount, CDP_SMART_ACCOUNT_BASE_KEY } from "./aa/cdp/hook.js";
|
|
12
|
+
import { useGelatoSmartAccount, GELATO_SMART_ACCOUNT_BASE_KEY } from "./aa/gelato/hook.js";
|
|
13
|
+
import { usePimlicoSmartAccount, PIMLICO_SMART_ACCOUNT_BASE_KEY } from "./aa/pimlico/hook.js";
|
|
14
|
+
import { usePortoSmartAccount, PORTO_ACCOUNT_BASE_KEY } from "./aa/porto/hook.js";
|
|
15
|
+
import { useRhinestoneSmartAccount, RHINESTONE_SMART_ACCOUNT_BASE_KEY } from "./aa/rhinestone/hook.js";
|
|
16
|
+
import { useSafeSmartAccount, SAFE_SMART_ACCOUNT_BASE_KEY } from "./aa/safe/hook.js";
|
|
17
|
+
import { useThirdwebSmartAccount, THIRDWEB_SMART_ACCOUNT_BASE_KEY } from "./aa/thirdweb/hook.js";
|
|
18
|
+
import { useZeroDevSmartAccount, ZERODEV_SMART_ACCOUNT_BASE_KEY } from "./aa/zerodev/hook.js";
|
|
8
19
|
export {
|
|
9
|
-
|
|
20
|
+
ALCHEMY_SMART_ACCOUNT_BASE_KEY,
|
|
21
|
+
BICONOMY_SMART_ACCOUNT_BASE_KEY,
|
|
22
|
+
CDP_SMART_ACCOUNT_BASE_KEY,
|
|
23
|
+
GELATO_SMART_ACCOUNT_BASE_KEY,
|
|
24
|
+
PIMLICO_SMART_ACCOUNT_BASE_KEY,
|
|
25
|
+
PORTO_ACCOUNT_BASE_KEY,
|
|
26
|
+
RHINESTONE_SMART_ACCOUNT_BASE_KEY,
|
|
27
|
+
SAFE_SMART_ACCOUNT_BASE_KEY,
|
|
28
|
+
THIRDWEB_SMART_ACCOUNT_BASE_KEY,
|
|
29
|
+
ZERODEV_SMART_ACCOUNT_BASE_KEY,
|
|
30
|
+
createSmartAccountHook,
|
|
31
|
+
src_default as default,
|
|
32
|
+
useAlchemySmartAccount,
|
|
33
|
+
useBiconomySmartAccount,
|
|
34
|
+
useCDPSmartAccount,
|
|
35
|
+
useGelatoSmartAccount,
|
|
36
|
+
usePimlicoSmartAccount,
|
|
37
|
+
usePortoSmartAccount,
|
|
38
|
+
useRhinestoneSmartAccount,
|
|
39
|
+
useSafeSmartAccount,
|
|
40
|
+
useThirdwebSmartAccount,
|
|
41
|
+
useZeroDevSmartAccount
|
|
10
42
|
};
|
package/dist/modal/ParaModal.js
CHANGED
|
@@ -13,9 +13,10 @@ const useIsFullyLoggedIn = () => {
|
|
|
13
13
|
var _a2;
|
|
14
14
|
return (_a2 = state.paraState) == null ? void 0 : _a2.corePhase;
|
|
15
15
|
});
|
|
16
|
+
const phaseKey = corePhase === "authenticated" || corePhase === "guest_mode" ? "authenticated" : "incomplete";
|
|
16
17
|
return useQuery({
|
|
17
18
|
enabled: !!(client == null ? void 0 : client.isReady),
|
|
18
|
-
queryKey: [IS_FULLY_LOGGED_IN_BASE_KEY,
|
|
19
|
+
queryKey: [IS_FULLY_LOGGED_IN_BASE_KEY, phaseKey, (_a = client == null ? void 0 : client.userId) != null ? _a : null],
|
|
19
20
|
queryFn: () => __async(void 0, null, function* () {
|
|
20
21
|
var _a2;
|
|
21
22
|
return (_a2 = yield client == null ? void 0 : client.isFullyLoggedIn()) != null ? _a2 : false;
|
package/package.json
CHANGED
|
@@ -1,33 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk-lite",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.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.17.0",
|
|
9
|
+
"@getpara/react-components": "2.17.0",
|
|
10
|
+
"@getpara/web-sdk": "2.17.0",
|
|
11
11
|
"date-fns": "^3.6.0",
|
|
12
|
+
"detect-browser": "^5.3.0",
|
|
12
13
|
"framer-motion": "^11.3.31",
|
|
13
14
|
"libphonenumber-js": "^1.11.7",
|
|
14
15
|
"socket.io-client": "^4.5.1",
|
|
15
|
-
"styled-components": "^6
|
|
16
|
+
"styled-components": "^6",
|
|
16
17
|
"zustand": "^4.5.2",
|
|
17
18
|
"zustand-sync-tabs": "^0.2.2"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
|
-
"@getpara/
|
|
21
|
-
"@getpara/
|
|
22
|
-
"@getpara/
|
|
21
|
+
"@getpara/aa-alchemy": "2.17.0",
|
|
22
|
+
"@getpara/aa-biconomy": "2.17.0",
|
|
23
|
+
"@getpara/aa-cdp": "2.17.0",
|
|
24
|
+
"@getpara/aa-gelato": "2.17.0",
|
|
25
|
+
"@getpara/aa-pimlico": "2.17.0",
|
|
26
|
+
"@getpara/aa-porto": "2.17.0",
|
|
27
|
+
"@getpara/aa-rhinestone": "2.17.0",
|
|
28
|
+
"@getpara/aa-safe": "2.17.0",
|
|
29
|
+
"@getpara/aa-thirdweb": "2.17.0",
|
|
30
|
+
"@getpara/aa-zerodev": "2.17.0",
|
|
31
|
+
"@getpara/cosmos-wallet-connectors": "2.17.0",
|
|
32
|
+
"@getpara/evm-wallet-connectors": "2.17.0",
|
|
33
|
+
"@getpara/solana-wallet-connectors": "2.17.0",
|
|
23
34
|
"@tanstack/react-query": "^5.74.0",
|
|
24
35
|
"@testing-library/dom": "^10.4.0",
|
|
25
36
|
"@testing-library/react": "^16.3.0",
|
|
26
37
|
"@testing-library/react-hooks": "^8.0.1",
|
|
27
38
|
"@testing-library/user-event": "^14.6.1",
|
|
28
39
|
"@types/chrome": "^0.0.237",
|
|
29
|
-
"@types/react": "^18.
|
|
30
|
-
"@types/react-dom": "^18.
|
|
40
|
+
"@types/react": "^18.3.3",
|
|
41
|
+
"@types/react-dom": "^18.3.0",
|
|
31
42
|
"typescript": "^5.8.3"
|
|
32
43
|
},
|
|
33
44
|
"exports": {
|
|
@@ -39,12 +50,55 @@
|
|
|
39
50
|
"package.json",
|
|
40
51
|
"styles.css"
|
|
41
52
|
],
|
|
42
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3ed1f835b97ae720f1ac747611296e3b86f61138",
|
|
43
54
|
"main": "dist/index.js",
|
|
44
55
|
"peerDependencies": {
|
|
56
|
+
"@getpara/aa-alchemy": ">=2.15.0",
|
|
57
|
+
"@getpara/aa-biconomy": ">=2.15.0",
|
|
58
|
+
"@getpara/aa-cdp": ">=2.15.0",
|
|
59
|
+
"@getpara/aa-gelato": ">=2.15.0",
|
|
60
|
+
"@getpara/aa-pimlico": ">=2.15.0",
|
|
61
|
+
"@getpara/aa-porto": ">=2.15.0",
|
|
62
|
+
"@getpara/aa-rhinestone": ">=2.15.0",
|
|
63
|
+
"@getpara/aa-safe": ">=2.15.0",
|
|
64
|
+
"@getpara/aa-thirdweb": ">=2.15.0",
|
|
65
|
+
"@getpara/aa-zerodev": ">=2.15.0",
|
|
45
66
|
"@tanstack/react-query": ">=5.0.0",
|
|
46
67
|
"react": "*",
|
|
47
|
-
"react-dom": "*"
|
|
68
|
+
"react-dom": "*",
|
|
69
|
+
"viem": ">=2.0.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"@getpara/aa-alchemy": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"@getpara/aa-biconomy": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"@getpara/aa-cdp": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"@getpara/aa-gelato": {
|
|
82
|
+
"optional": true
|
|
83
|
+
},
|
|
84
|
+
"@getpara/aa-pimlico": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"@getpara/aa-porto": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"@getpara/aa-rhinestone": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"@getpara/aa-safe": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"@getpara/aa-thirdweb": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"@getpara/aa-zerodev": {
|
|
100
|
+
"optional": true
|
|
101
|
+
}
|
|
48
102
|
},
|
|
49
103
|
"resolutions": {
|
|
50
104
|
"styled-components": "^6"
|