@getpara/react-sdk-lite 2.0.0-alpha.55 → 2.0.0-alpha.56
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.
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { jsx
|
|
4
|
-
import {
|
|
5
|
-
import { InfoBoxContent, InfoBoxHeader, StepContainer } from "../common.js";
|
|
6
|
-
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { StepContainer } from "../common.js";
|
|
7
5
|
import { Waiting } from "../Waiting/Waiting.js";
|
|
8
6
|
import { useStore } from "../../../provider/stores/useStore.js";
|
|
9
7
|
import { useAccount } from "../../../provider/index.js";
|
|
@@ -12,37 +10,14 @@ const AwaitingWalletCreationStep = ({ isGuestMode = false }) => {
|
|
|
12
10
|
var _a;
|
|
13
11
|
return (_a = state.modalConfig) == null ? void 0 : _a.hideWallets;
|
|
14
12
|
});
|
|
15
|
-
const [showInfoBox, setShowInfoBox] = useState(false);
|
|
16
|
-
const showInfoBoxTimeout = useRef();
|
|
17
13
|
const { embedded } = useAccount();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
return /* @__PURE__ */ jsx(StepContainer, { $wide: true, children: /* @__PURE__ */ jsx(
|
|
15
|
+
Waiting,
|
|
16
|
+
{
|
|
17
|
+
heading: isGuestMode ? "Creating Guest Account" : (embedded == null ? void 0 : embedded.isGuestMode) ? hideWallets ? "Linking Guest Account" : "Linking Guest Wallet" : hideWallets ? "Creating Your Account" : "Creating Your Wallet",
|
|
18
|
+
subheading: "This should only take a couple of seconds."
|
|
23
19
|
}
|
|
24
|
-
|
|
25
|
-
}, []);
|
|
26
|
-
return /* @__PURE__ */ jsxs(StepContainer, { $wide: true, children: [
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
28
|
-
Waiting,
|
|
29
|
-
{
|
|
30
|
-
heading: isGuestMode ? "Creating Guest Account" : (embedded == null ? void 0 : embedded.isGuestMode) ? hideWallets ? "Linking Guest Account" : "Linking Guest Wallet" : hideWallets ? "Creating Your Account" : "Creating Your Wallet",
|
|
31
|
-
subheading: "This should only take a couple of seconds."
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
showInfoBox && /* @__PURE__ */ jsx(CpslInfoBox, { children: /* @__PURE__ */ jsxs(InfoBoxContent, { children: [
|
|
35
|
-
/* @__PURE__ */ jsxs(InfoBoxHeader, { children: [
|
|
36
|
-
/* @__PURE__ */ jsx(CpslIcon, { icon: "clock" }),
|
|
37
|
-
/* @__PURE__ */ jsx(CpslText, { weight: "medium", children: "Hang on" })
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ jsxs(CpslText, { variant: "bodyS", weight: "medium", color: "secondary", children: [
|
|
40
|
-
"Creating your ",
|
|
41
|
-
hideWallets ? "account" : "wallet",
|
|
42
|
-
" is taking a little longer than expected, but we're working on it!"
|
|
43
|
-
] })
|
|
44
|
-
] }) })
|
|
45
|
-
] });
|
|
20
|
+
) });
|
|
46
21
|
};
|
|
47
22
|
export {
|
|
48
23
|
AwaitingWalletCreationStep
|
|
@@ -101,6 +101,7 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
|
|
|
101
101
|
}
|
|
102
102
|
const newClient = isParaWeb(paraClientConfig) ? paraClientConfig : new ParaWeb(paraClientConfig.env, paraClientConfig.apiKey, paraClientConfig.opts);
|
|
103
103
|
newClient.setModalError = setModalError;
|
|
104
|
+
newClient.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
|
|
104
105
|
if (newClient.isReady) {
|
|
105
106
|
setIsClientReady(true);
|
|
106
107
|
} else {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk-lite",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.56",
|
|
4
4
|
"bin": {
|
|
5
5
|
"setup-para": "dist/cli/cli.mjs"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@getpara/react-common": "2.0.0-alpha.
|
|
9
|
-
"@getpara/react-components": "2.0.0-alpha.
|
|
10
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
8
|
+
"@getpara/react-common": "2.0.0-alpha.56",
|
|
9
|
+
"@getpara/react-components": "2.0.0-alpha.56",
|
|
10
|
+
"@getpara/web-sdk": "2.0.0-alpha.56",
|
|
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.0.0-alpha.
|
|
20
|
-
"@getpara/evm-wallet-connectors": "2.0.0-alpha.
|
|
21
|
-
"@getpara/solana-wallet-connectors": "2.0.0-alpha.
|
|
19
|
+
"@getpara/cosmos-wallet-connectors": "2.0.0-alpha.56",
|
|
20
|
+
"@getpara/evm-wallet-connectors": "2.0.0-alpha.56",
|
|
21
|
+
"@getpara/solana-wallet-connectors": "2.0.0-alpha.56",
|
|
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": "908fa2e02b383f43eef312c0cbeb2f2076e8dc25",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@tanstack/react-query": ">=5.0.0",
|