@orderly.network/wallet-connector-privy 2.7.1 → 2.7.2
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/index.js +3 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1423,22 +1423,7 @@ var PrivyConnectAreaDesktop = ({
|
|
|
1423
1423
|
const { t } = i18n.useTranslation();
|
|
1424
1424
|
const { connectorWalletType, privyConfig } = useWalletConnectorPrivy();
|
|
1425
1425
|
const loginMethods = privyConfig.loginMethods;
|
|
1426
|
-
return /* @__PURE__ */ React19__default.default.createElement(ui.Flex, { direction: "column",
|
|
1427
|
-
"div",
|
|
1428
|
-
{
|
|
1429
|
-
className: ui.cn(
|
|
1430
|
-
"oui-flex oui-items-center oui-justify-between",
|
|
1431
|
-
"oui-mb-3 oui-text-sm oui-font-semibold oui-text-base-contrast-80"
|
|
1432
|
-
)
|
|
1433
|
-
},
|
|
1434
|
-
t("connector.privy.loginIn")
|
|
1435
|
-
), /* @__PURE__ */ React19__default.default.createElement(ui.Grid, { cols: 1, gap: 2, className: "oui-w-full" }, /* @__PURE__ */ React19__default.default.createElement(RenderLoginMethodsDom, { connect, loginMethods })), /* @__PURE__ */ React19__default.default.createElement("div", { className: "oui-mt-4 oui-flex oui-h-3 oui-justify-center" }, /* @__PURE__ */ React19__default.default.createElement(
|
|
1436
|
-
"img",
|
|
1437
|
-
{
|
|
1438
|
-
src: "https://oss.orderly.network/static/sdk/privy/privy-logo.png",
|
|
1439
|
-
className: " oui-h-[10px]"
|
|
1440
|
-
}
|
|
1441
|
-
)), (!connectorWalletType.disableWagmi || !connectorWalletType.disableSolana) && /* @__PURE__ */ React19__default.default.createElement("div", { className: "oui-mt-4 oui-h-px oui-w-full oui-bg-line md:oui-mt-5" }));
|
|
1426
|
+
return /* @__PURE__ */ React19__default.default.createElement(ui.Flex, { direction: "column", itemAlign: "start", className: "oui-w-full" }, /* @__PURE__ */ React19__default.default.createElement(ui.Grid, { cols: 1, gap: 2, className: "oui-w-full" }, /* @__PURE__ */ React19__default.default.createElement(RenderLoginMethodsDom, { connect, loginMethods })), (!connectorWalletType.disableWagmi || !connectorWalletType.disableSolana) && /* @__PURE__ */ React19__default.default.createElement("div", { className: "oui-mt-4 oui-h-px oui-w-full oui-bg-line md:oui-mt-5" }));
|
|
1442
1427
|
};
|
|
1443
1428
|
function PrivyConnectArea({
|
|
1444
1429
|
connect
|
|
@@ -3119,7 +3104,7 @@ var commonSwrOpts = {
|
|
|
3119
3104
|
// don't duplicate a request with the same key for 1hr
|
|
3120
3105
|
dedupingInterval: 36e5
|
|
3121
3106
|
};
|
|
3122
|
-
|
|
3107
|
+
types.TesntTokenFallback([
|
|
3123
3108
|
types.ArbitrumSepoliaTokenInfo,
|
|
3124
3109
|
types.SolanaDevnetTokenInfo
|
|
3125
3110
|
]);
|
|
@@ -3260,10 +3245,7 @@ function WalletConnectorPrivyProvider(props) {
|
|
|
3260
3245
|
const { data: mainnetChainInfos } = hooks.useSWR(
|
|
3261
3246
|
!props.customChains ? "https://api.orderly.org/v1/public/chain_info" : null,
|
|
3262
3247
|
hooks.fetcher,
|
|
3263
|
-
|
|
3264
|
-
...commonSwrOpts,
|
|
3265
|
-
fallbackData: testnetTokenFallback
|
|
3266
|
-
}
|
|
3248
|
+
commonSwrOpts
|
|
3267
3249
|
);
|
|
3268
3250
|
const { data: testChainInfos } = hooks.useSWR(
|
|
3269
3251
|
!props.customChains ? "https://testnet-api.orderly.org/v1/public/chain_info" : null,
|
|
@@ -3365,7 +3347,6 @@ function WalletConnectorPrivyProvider(props) {
|
|
|
3365
3347
|
let mainnetChainsList = [];
|
|
3366
3348
|
try {
|
|
3367
3349
|
testChainsList = testChainInfos;
|
|
3368
|
-
testChainsList.push(types.AbstractTestnetChainInfo);
|
|
3369
3350
|
mainnetChainsList = mainnetChainInfos;
|
|
3370
3351
|
const testChains = processChainInfo(testChainsList);
|
|
3371
3352
|
const mainnetChains2 = processChainInfo(mainnetChainsList);
|