@lumiapassport/ui-kit 1.15.5 → 1.15.7
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +3 -2
- package/dist/iframe/main.js.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -824,25 +824,25 @@ import { createBundlerClient } from "viem/account-abstraction";
|
|
|
824
824
|
function getTssUrl2() {
|
|
825
825
|
const serviceUrls = getServiceUrls();
|
|
826
826
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("tssUrl") || void 0 : void 0;
|
|
827
|
-
const envUrl = getEnvVar("
|
|
827
|
+
const envUrl = getEnvVar("LUMIA_TSS_URL");
|
|
828
828
|
return paramUrl || serviceUrls.tssUrl || envUrl || "http://localhost:9256";
|
|
829
829
|
}
|
|
830
830
|
function getBundlerUrl() {
|
|
831
831
|
const serviceUrls = getServiceUrls();
|
|
832
832
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("bundlerUrl") || void 0 : void 0;
|
|
833
|
-
const envUrl = getEnvVar("
|
|
833
|
+
const envUrl = getEnvVar("LUMIA_BUNDLER_URL");
|
|
834
834
|
const proxyPath = "/bundler";
|
|
835
835
|
return (paramUrl || serviceUrls.bundlerUrl || envUrl || "http://localhost:4337").replace(/^\/$/, proxyPath);
|
|
836
836
|
}
|
|
837
837
|
function getShareVaultUrl() {
|
|
838
838
|
const serviceUrls = getServiceUrls();
|
|
839
839
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("shareVaultUrl") || void 0 : void 0;
|
|
840
|
-
const envUrl = getEnvVar("
|
|
840
|
+
const envUrl = getEnvVar("LUMIA_SHARE_VAULT_URL");
|
|
841
841
|
return paramUrl || serviceUrls.shareVaultUrl || envUrl || "http://localhost:9090";
|
|
842
842
|
}
|
|
843
843
|
function getSelectedNetwork() {
|
|
844
844
|
const paramNet = typeof window !== "undefined" ? (new URLSearchParams(window.location.search).get("network") || "").toLowerCase() : "";
|
|
845
|
-
const envNet = (getEnvVar("
|
|
845
|
+
const envNet = (getEnvVar("LUMIA_NETWORK") || BUILD_NETWORK || "").toLowerCase();
|
|
846
846
|
const net = paramNet || envNet;
|
|
847
847
|
return net === "prisma" ? "prisma" : "beam";
|
|
848
848
|
}
|
|
@@ -855,7 +855,7 @@ function defaultExplorerUrl(network) {
|
|
|
855
855
|
function getExplorerUrl() {
|
|
856
856
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("explorerUrl") || void 0 : void 0;
|
|
857
857
|
const buildUrl = true ? "https://beam-explorer.lumia.org/" : "";
|
|
858
|
-
const envUrl = getEnvVar("
|
|
858
|
+
const envUrl = getEnvVar("LUMIA_EXPLORER_URL");
|
|
859
859
|
const net = getSelectedNetwork();
|
|
860
860
|
return paramUrl || buildUrl || envUrl || defaultExplorerUrl(net);
|
|
861
861
|
}
|
|
@@ -886,7 +886,7 @@ var init_base = __esm({
|
|
|
886
886
|
};
|
|
887
887
|
PRISMA_DEFAULTS = {
|
|
888
888
|
// Note: chainId can be overridden via env LUMIA_CHAIN_ID
|
|
889
|
-
id: Number(BUILD_CHAIN_ID || getEnvVar("
|
|
889
|
+
id: Number(BUILD_CHAIN_ID || getEnvVar("LUMIA_CHAIN_ID") || BEAM_DEFAULTS.id),
|
|
890
890
|
name: BUILD_NETWORK_NAME || "Lumia Prisma",
|
|
891
891
|
symbol: BUILD_NATIVE_SYMBOL || "LUMIA"
|
|
892
892
|
};
|
|
@@ -921,11 +921,11 @@ var init_base = __esm({
|
|
|
921
921
|
ENTRYPOINT_V07 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
922
922
|
ENTRYPOINT_V06 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
923
923
|
ENTRYPOINT = ENTRYPOINT_V07;
|
|
924
|
-
LUMIA_AA_FACTORY_ADDRESS = BUILD_AA_FACTORY_ADDRESS || getEnvVar("
|
|
924
|
+
LUMIA_AA_FACTORY_ADDRESS = BUILD_AA_FACTORY_ADDRESS || getEnvVar("LUMIA_AA_FACTORY_ADDRESS") || "";
|
|
925
925
|
FACTORY_ADDRESS = LUMIA_AA_FACTORY_ADDRESS;
|
|
926
926
|
COMPAT_FACTORY_ADDRESS = LUMIA_AA_FACTORY_ADDRESS;
|
|
927
927
|
LUMIA_FACTORY_ADDRESS = LUMIA_AA_FACTORY_ADDRESS;
|
|
928
|
-
LUMIA_PAYMASTER_ADDRESS = BUILD_PAYMASTER_ADDRESS || getEnvVar("
|
|
928
|
+
LUMIA_PAYMASTER_ADDRESS = BUILD_PAYMASTER_ADDRESS || getEnvVar("LUMIA_PAYMASTER_ADDRESS") || "";
|
|
929
929
|
FUNDER_PK = getEnvVar("VITE_FUNDER_PK") || "";
|
|
930
930
|
publicClient = createPublicClient({
|
|
931
931
|
chain: lumiaBeam,
|
|
@@ -3893,7 +3893,7 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3893
3893
|
};
|
|
3894
3894
|
let estimated = false;
|
|
3895
3895
|
try {
|
|
3896
|
-
const gasEst = await estimateUserOperationGas(
|
|
3896
|
+
const gasEst = await estimateUserOperationGas(userOp);
|
|
3897
3897
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
3898
3898
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
3899
3899
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
@@ -4082,7 +4082,7 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4082
4082
|
};
|
|
4083
4083
|
let estimated = false;
|
|
4084
4084
|
try {
|
|
4085
|
-
const gasEst = await estimateUserOperationGas(
|
|
4085
|
+
const gasEst = await estimateUserOperationGas(userOp);
|
|
4086
4086
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
4087
4087
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
4088
4088
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
@@ -5563,7 +5563,7 @@ function Header() {
|
|
|
5563
5563
|
// package.json
|
|
5564
5564
|
var package_default = {
|
|
5565
5565
|
name: "@lumiapassport/ui-kit",
|
|
5566
|
-
version: "1.15.
|
|
5566
|
+
version: "1.15.7",
|
|
5567
5567
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5568
5568
|
type: "module",
|
|
5569
5569
|
main: "./dist/index.cjs",
|