Skip to content

Commit

Permalink
Build: (4053cb8) Increase size of login buttons (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 29, 2024
1 parent 190014e commit c8c5a4a
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion assets/ccip-Bqiufqz1.js → assets/ccip-Tlhou0Qw.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions assets/index-CVagkyr6.js → assets/index-BBsh3BWa.js
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions assets/index-CPDDPdhj.js → assets/index-CfDyxI2K.js
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
6 changes: 3 additions & 3 deletions assets/index-D_tUmM1O.js → assets/index-DRQsxcnG.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down
19 changes: 10 additions & 9 deletions assets/index-Dru-pASN.js → assets/index-DvyhjMqX.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down Expand Up @@ -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, {
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions assets/index-CZGXbaEi.js → assets/index-YbxUGrkV.js
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
8 changes: 4 additions & 4 deletions assets/index.es-BPbiJyt7.js → assets/index.es-DuAdkEa6.js
Original file line number Diff line number Diff line change
@@ -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++) {
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Sequence Kit Demo</title>
<script type="module" crossorigin src="./assets/index-Dru-pASN.js"></script>
<script type="module" crossorigin src="./assets/index-DvyhjMqX.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Dso1Hl_w.css">
</head>
<body>
Expand Down

0 comments on commit c8c5a4a

Please sign in to comment.