@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.cjs
CHANGED
|
@@ -833,25 +833,25 @@ var init_env = __esm({
|
|
|
833
833
|
function getTssUrl2() {
|
|
834
834
|
const serviceUrls = getServiceUrls();
|
|
835
835
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("tssUrl") || void 0 : void 0;
|
|
836
|
-
const envUrl = getEnvVar("
|
|
836
|
+
const envUrl = getEnvVar("LUMIA_TSS_URL");
|
|
837
837
|
return paramUrl || serviceUrls.tssUrl || envUrl || "http://localhost:9256";
|
|
838
838
|
}
|
|
839
839
|
function getBundlerUrl() {
|
|
840
840
|
const serviceUrls = getServiceUrls();
|
|
841
841
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("bundlerUrl") || void 0 : void 0;
|
|
842
|
-
const envUrl = getEnvVar("
|
|
842
|
+
const envUrl = getEnvVar("LUMIA_BUNDLER_URL");
|
|
843
843
|
const proxyPath = "/bundler";
|
|
844
844
|
return (paramUrl || serviceUrls.bundlerUrl || envUrl || "http://localhost:4337").replace(/^\/$/, proxyPath);
|
|
845
845
|
}
|
|
846
846
|
function getShareVaultUrl() {
|
|
847
847
|
const serviceUrls = getServiceUrls();
|
|
848
848
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("shareVaultUrl") || void 0 : void 0;
|
|
849
|
-
const envUrl = getEnvVar("
|
|
849
|
+
const envUrl = getEnvVar("LUMIA_SHARE_VAULT_URL");
|
|
850
850
|
return paramUrl || serviceUrls.shareVaultUrl || envUrl || "http://localhost:9090";
|
|
851
851
|
}
|
|
852
852
|
function getSelectedNetwork() {
|
|
853
853
|
const paramNet = typeof window !== "undefined" ? (new URLSearchParams(window.location.search).get("network") || "").toLowerCase() : "";
|
|
854
|
-
const envNet = (getEnvVar("
|
|
854
|
+
const envNet = (getEnvVar("LUMIA_NETWORK") || BUILD_NETWORK || "").toLowerCase();
|
|
855
855
|
const net = paramNet || envNet;
|
|
856
856
|
return net === "prisma" ? "prisma" : "beam";
|
|
857
857
|
}
|
|
@@ -864,7 +864,7 @@ function defaultExplorerUrl(network) {
|
|
|
864
864
|
function getExplorerUrl() {
|
|
865
865
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("explorerUrl") || void 0 : void 0;
|
|
866
866
|
const buildUrl = true ? "https://beam-explorer.lumia.org/" : "";
|
|
867
|
-
const envUrl = getEnvVar("
|
|
867
|
+
const envUrl = getEnvVar("LUMIA_EXPLORER_URL");
|
|
868
868
|
const net = getSelectedNetwork();
|
|
869
869
|
return paramUrl || buildUrl || envUrl || defaultExplorerUrl(net);
|
|
870
870
|
}
|
|
@@ -897,7 +897,7 @@ var init_base = __esm({
|
|
|
897
897
|
};
|
|
898
898
|
PRISMA_DEFAULTS = {
|
|
899
899
|
// Note: chainId can be overridden via env LUMIA_CHAIN_ID
|
|
900
|
-
id: Number(BUILD_CHAIN_ID || getEnvVar("
|
|
900
|
+
id: Number(BUILD_CHAIN_ID || getEnvVar("LUMIA_CHAIN_ID") || BEAM_DEFAULTS.id),
|
|
901
901
|
name: BUILD_NETWORK_NAME || "Lumia Prisma",
|
|
902
902
|
symbol: BUILD_NATIVE_SYMBOL || "LUMIA"
|
|
903
903
|
};
|
|
@@ -932,11 +932,11 @@ var init_base = __esm({
|
|
|
932
932
|
ENTRYPOINT_V07 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
933
933
|
ENTRYPOINT_V06 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
934
934
|
ENTRYPOINT = ENTRYPOINT_V07;
|
|
935
|
-
LUMIA_AA_FACTORY_ADDRESS = BUILD_AA_FACTORY_ADDRESS || getEnvVar("
|
|
935
|
+
LUMIA_AA_FACTORY_ADDRESS = BUILD_AA_FACTORY_ADDRESS || getEnvVar("LUMIA_AA_FACTORY_ADDRESS") || "";
|
|
936
936
|
FACTORY_ADDRESS = LUMIA_AA_FACTORY_ADDRESS;
|
|
937
937
|
COMPAT_FACTORY_ADDRESS = LUMIA_AA_FACTORY_ADDRESS;
|
|
938
938
|
LUMIA_FACTORY_ADDRESS = LUMIA_AA_FACTORY_ADDRESS;
|
|
939
|
-
LUMIA_PAYMASTER_ADDRESS = BUILD_PAYMASTER_ADDRESS || getEnvVar("
|
|
939
|
+
LUMIA_PAYMASTER_ADDRESS = BUILD_PAYMASTER_ADDRESS || getEnvVar("LUMIA_PAYMASTER_ADDRESS") || "";
|
|
940
940
|
FUNDER_PK = getEnvVar("VITE_FUNDER_PK") || "";
|
|
941
941
|
publicClient = (0, import_viem2.createPublicClient)({
|
|
942
942
|
chain: lumiaBeam,
|
|
@@ -3881,7 +3881,7 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3881
3881
|
};
|
|
3882
3882
|
let estimated = false;
|
|
3883
3883
|
try {
|
|
3884
|
-
const gasEst = await (0, import_bundler.estimateUserOperationGas)(
|
|
3884
|
+
const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
|
|
3885
3885
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
3886
3886
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
3887
3887
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
@@ -4070,7 +4070,7 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4070
4070
|
};
|
|
4071
4071
|
let estimated = false;
|
|
4072
4072
|
try {
|
|
4073
|
-
const gasEst = await (0, import_bundler.estimateUserOperationGas)(
|
|
4073
|
+
const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
|
|
4074
4074
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
4075
4075
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
4076
4076
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
@@ -5615,7 +5615,7 @@ function Header() {
|
|
|
5615
5615
|
// package.json
|
|
5616
5616
|
var package_default = {
|
|
5617
5617
|
name: "@lumiapassport/ui-kit",
|
|
5618
|
-
version: "1.15.
|
|
5618
|
+
version: "1.15.7",
|
|
5619
5619
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5620
5620
|
type: "module",
|
|
5621
5621
|
main: "./dist/index.cjs",
|