diff --git a/assets/___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js b/assets/___vite-browser-external_commonjs-proxy-CCsato3G.js similarity index 99% rename from assets/___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js rename to assets/___vite-browser-external_commonjs-proxy-CCsato3G.js index 559e0eeb..0c7074d1 100644 --- a/assets/___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js +++ b/assets/___vite-browser-external_commonjs-proxy-CCsato3G.js @@ -1,4 +1,4 @@ -import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-Dru-pASN.js"; +import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-DvyhjMqX.js"; var events = { exports: {} }; var R = typeof Reflect === "object" ? Reflect : null; var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) { diff --git a/assets/ccip-Bqiufqz1.js b/assets/ccip-Tlhou0Qw.js similarity index 99% rename from assets/ccip-Bqiufqz1.js rename to assets/ccip-Tlhou0Qw.js index 6a2b32ef..573a998c 100644 --- a/assets/ccip-Bqiufqz1.js +++ b/assets/ccip-Tlhou0Qw.js @@ -1,4 +1,4 @@ -import { h as BaseError, j as getUrl, s as stringify, k as decodeErrorResult, l as isAddressEqual, m as call, n as concat, o as encodeAbiParameters, H as HttpRequestError, q as isHex } from "./index-Dru-pASN.js"; +import { h as BaseError, j as getUrl, s as stringify, k as decodeErrorResult, l as isAddressEqual, m as call, n as concat, o as encodeAbiParameters, H as HttpRequestError, q as isHex } from "./index-DvyhjMqX.js"; class OffchainLookupError extends BaseError { constructor({ callbackSelector, cause, data, extraData, sender, urls }) { var _a; diff --git a/assets/hooks.module-DgsQzz7U.js b/assets/hooks.module-DElaRkR8.js similarity index 99% rename from assets/hooks.module-DgsQzz7U.js rename to assets/hooks.module-DElaRkR8.js index 59c73af3..6d117c15 100644 --- a/assets/hooks.module-DgsQzz7U.js +++ b/assets/hooks.module-DElaRkR8.js @@ -1,5 +1,5 @@ -import { r as require$$2$1, p as process$1, c as commonjsGlobal, i as inherits_browserExports, B as Buffer$7, a as getAugmentedNamespace } from "./index-Dru-pASN.js"; -import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js"; +import { r as require$$2$1, p as process$1, c as commonjsGlobal, i as inherits_browserExports, B as Buffer$7, a as getAugmentedNamespace } from "./index-DvyhjMqX.js"; +import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-CCsato3G.js"; var readableBrowser = { exports: {} }; var streamBrowser = eventsExports.EventEmitter; var buffer_list; diff --git a/assets/index-CVagkyr6.js b/assets/index-BBsh3BWa.js similarity index 99% rename from assets/index-CVagkyr6.js rename to assets/index-BBsh3BWa.js index c997c516..f28f86c0 100644 --- a/assets/index-CVagkyr6.js +++ b/assets/index-BBsh3BWa.js @@ -1,5 +1,5 @@ -import { n as ne$1, s as se$1, T as T$2, t as te$1, a as a$2, o as oe$1, R as R$1, p as p$1, y as y$1 } from "./index-D_tUmM1O.js"; -import "./index-Dru-pASN.js"; +import { n as ne$1, s as se$1, T as T$2, t as te$1, a as a$2, o as oe$1, R as R$1, p as p$1, y as y$1 } from "./index-DRQsxcnG.js"; +import "./index-DvyhjMqX.js"; function addUniqueItem(array, item) { array.indexOf(item) === -1 && array.push(item); } diff --git a/assets/index-CPDDPdhj.js b/assets/index-CfDyxI2K.js similarity index 99% rename from assets/index-CPDDPdhj.js rename to assets/index-CfDyxI2K.js index e017bcc3..c62b5011 100644 --- a/assets/index-CPDDPdhj.js +++ b/assets/index-CfDyxI2K.js @@ -1,6 +1,6 @@ -import { c as commonjsGlobal, b as bnExports, B as Buffer, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-Dru-pASN.js"; -import { s as sha_jsExports, a as require$$1$1, b as require$$2, r as require$$0$1, j as js } from "./hooks.module-DgsQzz7U.js"; -import { e as eventsExports } from "./___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js"; +import { c as commonjsGlobal, b as bnExports, B as Buffer, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-DvyhjMqX.js"; +import { s as sha_jsExports, a as require$$1$1, b as require$$2, r as require$$0$1, j as js } from "./hooks.module-DElaRkR8.js"; +import { e as eventsExports } from "./___vite-browser-external_commonjs-proxy-CCsato3G.js"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { const e = m[i]; diff --git a/assets/index-D_tUmM1O.js b/assets/index-DRQsxcnG.js similarity index 99% rename from assets/index-D_tUmM1O.js rename to assets/index-DRQsxcnG.js index 84963a22..1d349a34 100644 --- a/assets/index-D_tUmM1O.js +++ b/assets/index-DRQsxcnG.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["./index-CVagkyr6.js","./index-Dru-pASN.js","./index-Dso1Hl_w.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import { _ as __vitePreload } from "./index-Dru-pASN.js"; +const __vite__fileDeps=["./index-BBsh3BWa.js","./index-DvyhjMqX.js","./index-Dso1Hl_w.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import { _ as __vitePreload } from "./index-DvyhjMqX.js"; const t = Symbol(); const s = Object.getPrototypeOf, c$1 = /* @__PURE__ */ new WeakMap(), l = (e) => e && (c$1.has(e) ? c$1.get(e) : s(e) === Object.prototype || s(e) === Array.prototype), y$1 = (e) => l(e) && e[t] || null, h = (e, t2 = true) => { c$1.set(e, t2); @@ -487,7 +487,7 @@ class d { } async initUi() { if (typeof window < "u") { - await __vitePreload(() => import("./index-CVagkyr6.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url); + await __vitePreload(() => import("./index-BBsh3BWa.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url); const e = document.createElement("wcm-modal"); document.body.insertAdjacentElement("beforeend", e), p.setIsUiLoaded(true); } diff --git a/assets/index-Dru-pASN.js b/assets/index-DvyhjMqX.js similarity index 99% rename from assets/index-Dru-pASN.js rename to assets/index-DvyhjMqX.js index b3d30596..68a20f7d 100644 --- a/assets/index-Dru-pASN.js +++ b/assets/index-DvyhjMqX.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["./index-CZGXbaEi.js","./hooks.module-DgsQzz7U.js","./___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js","./index-CPDDPdhj.js","./index.es-BPbiJyt7.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["./index-YbxUGrkV.js","./hooks.module-DElaRkR8.js","./___vite-browser-external_commonjs-proxy-CCsato3G.js","./index-CfDyxI2K.js","./index.es-DuAdkEa6.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); var __defProp = Object.defineProperty; var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value; var __publicField = (obj, key2, value) => { @@ -71946,7 +71946,7 @@ async function call(client2, args) { return { data: response }; } catch (err) { const data2 = getRevertErrorData(err); - const { offchainLookup, offchainLookupSignature } = await __vitePreload(() => import("./ccip-Bqiufqz1.js"), true ? [] : void 0, import.meta.url); + const { offchainLookup, offchainLookupSignature } = await __vitePreload(() => import("./ccip-Tlhou0Qw.js"), true ? [] : void 0, import.meta.url); if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to) return { data: await offchainLookup(client2, { data: data2, to }) }; throw getCallError(err, { @@ -82487,12 +82487,14 @@ const ConnectWalletContent = (props) => { return jsxRuntimeExports$1.jsxs(Box, { aspectRatio: "1/1", alignItems: "center", justifyContent: "center", children: [connector._wallet.id === "google-waas" && jsxRuntimeExports$1.jsx(GoogleWaasConnectButton, { connector, onConnect }), connector._wallet.id === "apple-waas" && jsxRuntimeExports$1.jsx(AppleWaasConnectButton, { connector, onConnect }), !connector._wallet.id.includes("waas") && jsxRuntimeExports$1.jsx(ConnectButton, { connector, onConnect })] }, connector.uid); }) })] }), walletConnectors.length > 0 && jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment, { children: [(emailConnector && showEmailInput || socialAuthConnectors.length > 0) && jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment, { children: [jsxRuntimeExports$1.jsx(Divider, { color: "backgroundSecondary" }), jsxRuntimeExports$1.jsx(Box, { justifyContent: "center", alignItems: "center", children: jsxRuntimeExports$1.jsx(Text, { variant: "small", color: "text50", children: "or select a wallet" }) })] }), jsxRuntimeExports$1.jsx(Box, { marginTop: "2", gap: "2", flexDirection: "row", justifyContent: "center", alignItems: "center", children: walletConnectors.slice(0, 7).map((connector) => jsxRuntimeExports$1.jsx(ConnectButton, { connector, onConnect }, connector.uid)) }), displayExtendedListButton && jsxRuntimeExports$1.jsx(Box, { marginTop: "4", justifyContent: "center", children: jsxRuntimeExports$1.jsx(Button, { shape: "square", size: "xs", onClick: () => setShowExtendedList(true), label: "More options", rightIcon: SvgChevronRightIcon }) })] })] })] }); }; +const BUTTON_SIZE = "14"; +const ICON_SIZE = "10"; const ConnectButton = (props) => { const { connector, label, onConnect } = props; const { theme } = useTheme$1(); const walletProps = connector._wallet; const Logo = getLogo(theme, walletProps); - return jsxRuntimeExports$1.jsx(Tooltip, { message: label || walletProps.name, children: jsxRuntimeExports$1.jsx(Card, { clickable: true, width: "10", height: "10", padding: "2", borderRadius: "xs", justifyContent: "center", alignItems: "center", onClick: () => onConnect(connector), children: jsxRuntimeExports$1.jsx(Box, { as: Logo, width: "6", height: "6" }) }) }); + return jsxRuntimeExports$1.jsx(Tooltip, { message: label || walletProps.name, children: jsxRuntimeExports$1.jsx(Card, { clickable: true, width: BUTTON_SIZE, height: BUTTON_SIZE, padding: "2", borderRadius: "xs", justifyContent: "center", alignItems: "center", onClick: () => onConnect(connector), children: jsxRuntimeExports$1.jsx(Box, { as: Logo, width: ICON_SIZE, height: ICON_SIZE }) }) }); }; const GoogleWaasConnectButton = (props) => { const { connector, onConnect } = props; @@ -82507,15 +82509,14 @@ const GoogleWaasConnectButton = (props) => { setEnableGoogleTooltip(true); }, 300); }); - return !isPendingNonce ? jsxRuntimeExports$1.jsx(Tooltip, { message: "Google", disabled: !enableGoogleTooltip, children: jsxRuntimeExports$1.jsxs(Card, { clickable: true, background: "transparent", borderRadius: "xs", padding: "0", width: "10", height: "10", position: "relative", children: [jsxRuntimeExports$1.jsx(Box, { width: "10", height: "10", overflow: "hidden", borderRadius: "sm", alignItems: "center", justifyContent: "center", style: { opacity: 1e-7 }, children: jsxRuntimeExports$1.jsx(GoogleLogin, { type: "icon", size: "large", width: 40, nonce: sessionHash, onSuccess: (credentialResponse) => { + return !isPendingNonce ? jsxRuntimeExports$1.jsx(Tooltip, { message: "Google", disabled: !enableGoogleTooltip, children: jsxRuntimeExports$1.jsxs(Card, { clickable: true, background: "transparent", borderRadius: "xs", padding: "0", width: BUTTON_SIZE, height: BUTTON_SIZE, position: "relative", children: [jsxRuntimeExports$1.jsx(Box, { width: "full", height: "full", overflow: "hidden", borderRadius: "sm", alignItems: "center", justifyContent: "center", style: { opacity: 1e-7, transform: "scale(1.4)" }, children: jsxRuntimeExports$1.jsx(GoogleLogin, { type: "icon", size: "large", width: "56", nonce: sessionHash, onSuccess: (credentialResponse) => { if (credentialResponse.credential) { - console.log(credentialResponse); storage == null ? void 0 : storage.setItem(LocalStorageKey.WaasGoogleIdToken, credentialResponse.credential); onConnect(connector); } }, onError: () => { console.log("Login Failed"); - } }) }), jsxRuntimeExports$1.jsx(Box, { background: "backgroundSecondary", borderRadius: "xs", display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", pointerEvents: "none", width: "10", height: "10", top: "0", right: "0", children: jsxRuntimeExports$1.jsx(Box, { as: Logo, width: "6", height: "6" }) })] }) }) : null; + } }) }), jsxRuntimeExports$1.jsx(Box, { background: "backgroundSecondary", borderRadius: "xs", display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", pointerEvents: "none", width: "full", height: "full", top: "0", right: "0", children: jsxRuntimeExports$1.jsx(Box, { as: Logo, width: ICON_SIZE, height: ICON_SIZE }) })] }) }) : null; }; const AppleWaasConnectButton = (props) => { const { connector, onConnect } = props; @@ -105088,7 +105089,7 @@ function version4(parameters) { }, async getProvider() { if (!walletProvider) { - const { default: CoinbaseSDK_ } = await __vitePreload(() => import("./index-CZGXbaEi.js").then((n2) => n2.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url); + const { default: CoinbaseSDK_ } = await __vitePreload(() => import("./index-YbxUGrkV.js").then((n2) => n2.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url); const CoinbaseSDK = (() => { if (typeof CoinbaseSDK_ !== "function" && typeof CoinbaseSDK_.default === "function") return CoinbaseSDK_.default; @@ -105265,7 +105266,7 @@ function version3(parameters) { async getProvider() { var _a2; if (!walletProvider) { - const { default: SDK_ } = await __vitePreload(() => import("./index-CPDDPdhj.js").then((n2) => n2.i), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url); + const { default: SDK_ } = await __vitePreload(() => import("./index-CfDyxI2K.js").then((n2) => n2.i), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url); let SDK; if (typeof SDK_ !== "function" && typeof SDK_.default === "function") SDK = SDK_.default; @@ -105499,7 +105500,7 @@ function walletConnect$1(parameters) { const optionalChains = config2.chains.map((x) => x.id); if (!optionalChains.length) return; - const { EthereumProvider } = await __vitePreload(() => import("./index.es-BPbiJyt7.js"), true ? __vite__mapDeps([4,2]) : void 0, import.meta.url); + const { EthereumProvider } = await __vitePreload(() => import("./index.es-DuAdkEa6.js"), true ? __vite__mapDeps([4,2]) : void 0, import.meta.url); return await EthereumProvider.init({ ...parameters, disableProviderPing: true, diff --git a/assets/index-CZGXbaEi.js b/assets/index-YbxUGrkV.js similarity index 99% rename from assets/index-CZGXbaEi.js rename to assets/index-YbxUGrkV.js index 9ae4bce8..297d8bb0 100644 --- a/assets/index-CZGXbaEi.js +++ b/assets/index-YbxUGrkV.js @@ -1,5 +1,5 @@ -import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-Dru-pASN.js"; -import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-DgsQzz7U.js"; +import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-DvyhjMqX.js"; +import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-DElaRkR8.js"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { const e = m[i]; diff --git a/assets/index.es-BPbiJyt7.js b/assets/index.es-DuAdkEa6.js similarity index 99% rename from assets/index.es-BPbiJyt7.js rename to assets/index.es-DuAdkEa6.js index 67079886..0a92c5f0 100644 --- a/assets/index.es-BPbiJyt7.js +++ b/assets/index.es-DuAdkEa6.js @@ -1,6 +1,6 @@ -const __vite__fileDeps=["./index-D_tUmM1O.js","./index-Dru-pASN.js","./index-Dso1Hl_w.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import { p as process$1, d as require$$0$1, f as global, B as Buffer, g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, _ as __vitePreload } from "./index-Dru-pASN.js"; -import { r as require$$3, e as eventsExports, W as Wg } from "./___vite-browser-external_commonjs-proxy-BdNQ1Nm8.js"; +const __vite__fileDeps=["./index-DRQsxcnG.js","./index-DvyhjMqX.js","./index-Dso1Hl_w.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import { p as process$1, d as require$$0$1, f as global, B as Buffer, g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, _ as __vitePreload } from "./index-DvyhjMqX.js"; +import { r as require$$3, e as eventsExports, W as Wg } from "./___vite-browser-external_commonjs-proxy-CCsato3G.js"; var __spreadArray = function(to2, from2, pack) { if (pack || arguments.length === 2) for (var i3 = 0, l2 = from2.length, ar2; i3 < l2; i3++) { @@ -19748,7 +19748,7 @@ class C { if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? m2(this.rpc.chains) : m2(this.rpc.optionalChains), this.signer = await hv.init({ projectId: this.rpc.projectId, metadata: this.rpc.metadata, disableProviderPing: t.disableProviderPing, relayUrl: t.relayUrl, storageOptions: t.storageOptions }), this.registerEventListeners(), await this.loadPersistedSession(), this.rpc.showQrModal) { let s2; try { - const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-D_tUmM1O.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url); + const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-DRQsxcnG.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url); s2 = i3; } catch { throw new Error("To use QR modal, please install @walletconnect/modal package"); diff --git a/index.html b/index.html index 21126679..702d1ca1 100644 --- a/index.html +++ b/index.html @@ -24,7 +24,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Sequence Kit Demo - +