From 583ba85e5137728600d8bdc4d3de51da97f4b04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Vodr=C3=A1=C5=BEka?= <36418132+DaveVodrazka@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:01:58 +0100 Subject: [PATCH 01/18] fix: prevent creating multiple root divs --- src/main.ts | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/src/main.ts b/src/main.ts index ddbb659..6d3d51e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -82,15 +82,33 @@ export const connect = async ({ storeVersion, }) - const element = document.createElement("div") - document.body.appendChild(element) - const target = element.attachShadow({ mode: "open" }) - - target.innerHTML = `` + const getTarget = (): ShadowRoot => { + const modalId = "starknetkit-modal" + const existingElement = document.getElementById(modalId) + + if (existingElement) { + if (existingElement.shadowRoot) { + // element already exists, use the existing as target + return existingElement.shadowRoot + } + // element exists but shadowRoot cannot be accessed + // delete the element and create new + existingElement.remove() + } + + const element = document.createElement("div") + // set id for future retrieval + element.id = modalId + document.body.appendChild(element) + const target = element.attachShadow({ mode: "open" }) + target.innerHTML = `` + + return target + } return new Promise((resolve) => { const modal = new Modal({ - target, + target: getTarget(), props: { dappName, callback: async (value: StarknetWindowObject | null) => { From 292292c5a3ff35af23c145d46f57c7ea35846ac7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 12 Dec 2023 11:47:15 +0000 Subject: [PATCH 02/18] chore(release): 1.0.23 [skip ci] ## [1.0.23](https://github.com/argentlabs/starknetkit/compare/v1.0.22...v1.0.23) (2023-12-12) ### Bug Fixes * prevent creating multiple root divs ([583ba85](https://github.com/argentlabs/starknetkit/commit/583ba85e5137728600d8bdc4d3de51da97f4b04d)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 350890a..bfda235 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.22", + "version": "1.0.23", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From 5b2717b5eb2c04fbdd51f69d9e98d70203ed3be2 Mon Sep 17 00:00:00 2001 From: bluecco Date: Tue, 12 Dec 2023 15:29:12 +0100 Subject: [PATCH 03/18] fix: argent mobile connector icon url parameter --- src/connectors/argentMobile/index.ts | 5 ++++- src/connectors/argentMobile/modal/login.ts | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index e1939d8..bc9512b 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -25,6 +25,7 @@ export interface ArgentMobileConnectorOptions { chainId?: constants.NetworkName description?: string url?: string + icons?: string[] } export class ArgentMobileConnector extends Connector { @@ -143,13 +144,15 @@ export class ArgentMobileConnector extends Connector { private async ensureWallet(): Promise { const { getStarknetWindowObject } = await import("./modal") - const { chainId, projectId, dappName, description, url } = this._options + const { chainId, projectId, dappName, description, url, icons } = + this._options const options = { chainId: chainId ?? constants.NetworkName.SN_MAIN, name: dappName, projectId: projectId ?? DEFAULT_PROJECT_ID, description, url, + icons, } if (projectId === DEFAULT_PROJECT_ID) { diff --git a/src/connectors/argentMobile/modal/login.ts b/src/connectors/argentMobile/modal/login.ts index 8db7d64..6d63548 100644 --- a/src/connectors/argentMobile/modal/login.ts +++ b/src/connectors/argentMobile/modal/login.ts @@ -15,6 +15,7 @@ export interface IArgentLoginOptions { name?: string description?: string url?: string + icons?: string[] chainId?: string | number rpcUrl?: string bridgeUrl?: string @@ -34,6 +35,7 @@ export const login = async ( mobileUrl = getMobileUrl(chainId), modalType = "overlay", url, + icons, walletConnect, }: IArgentLoginOptions, Adapter: new (options: NamespaceAdapterOptions) => TAdapter, @@ -55,7 +57,7 @@ export const login = async ( name: name ?? "Unknown dapp", description: description ?? "Unknown dapp description", url: url ?? "#", - icons: ["https://walletconnect.com/walletconnect-logo.png"], + icons: icons ?? [], ...walletConnect?.metadata, }, } From 4c997a641c9263d01edace0f08ce3afa994a2b79 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 13 Dec 2023 10:58:56 +0000 Subject: [PATCH 04/18] chore(release): 1.0.24 [skip ci] ## [1.0.24](https://github.com/argentlabs/starknetkit/compare/v1.0.23...v1.0.24) (2023-12-13) ### Bug Fixes * argent mobile connector icon url parameter ([5b2717b](https://github.com/argentlabs/starknetkit/commit/5b2717b5eb2c04fbdd51f69d9e98d70203ed3be2)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bfda235..3ce98fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.23", + "version": "1.0.24", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From acdbf1c7d77d68286df81fb3ee74ee93424c47d4 Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 13 Dec 2023 14:29:25 +0100 Subject: [PATCH 05/18] fix: allow custom provider for injected connectors --- src/connectors/injected/index.ts | 11 ++++++++++- src/helpers/defaultConnectors.ts | 7 +++++-- src/main.ts | 2 ++ src/types/modal.ts | 2 ++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/connectors/injected/index.ts b/src/connectors/injected/index.ts index fb29653..e90ee8b 100644 --- a/src/connectors/injected/index.ts +++ b/src/connectors/injected/index.ts @@ -1,5 +1,5 @@ import type { StarknetWindowObject } from "get-starknet-core" -import { AccountInterface, constants } from "starknet" +import { AccountInterface, ProviderInterface, constants } from "starknet" import { ConnectorNotConnectedError, ConnectorNotFoundError, @@ -23,6 +23,8 @@ export interface InjectedConnectorOptions { name?: string /** Wallet icons. */ icon?: ConnectorIcons + /** Provider */ + provider?: ProviderInterface } export class InjectedConnector extends Connector { @@ -211,6 +213,13 @@ export class InjectedConnector extends Connector { const installed = getAvailableWallets(globalThis) const wallet = installed.filter((w) => w.id === this._options.id)[0] if (wallet) { + const { provider } = this._options + if (provider) { + Object.assign(wallet, { + provider, + }) + } + this._wallet = wallet } } diff --git a/src/helpers/defaultConnectors.ts b/src/helpers/defaultConnectors.ts index 5a36195..acda731 100644 --- a/src/helpers/defaultConnectors.ts +++ b/src/helpers/defaultConnectors.ts @@ -1,3 +1,4 @@ +import { ProviderInterface } from "starknet" import { type Connector } from "../connectors" import { ArgentMobileConnector, @@ -9,9 +10,11 @@ import { WebWalletConnector } from "../connectors/webwallet" export const defaultConnectors = ({ argentMobileOptions, webWalletUrl, + provider, }: { argentMobileOptions?: ArgentMobileConnectorOptions webWalletUrl?: string + provider?: ProviderInterface }): Connector[] => { const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) @@ -19,10 +22,10 @@ export const defaultConnectors = ({ if (!isSafari) { defaultConnectors.push( - new InjectedConnector({ options: { id: "argentX" } }), + new InjectedConnector({ options: { id: "argentX", provider } }), ) defaultConnectors.push( - new InjectedConnector({ options: { id: "braavos" } }), + new InjectedConnector({ options: { id: "braavos", provider } }), ) } diff --git a/src/main.ts b/src/main.ts index 6d3d51e..cc2be13 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,6 +31,7 @@ export const connect = async ({ webWalletUrl = DEFAULT_WEBWALLET_URL, argentMobileOptions, connectors = [], + provider, ...restOptions }: ConnectOptions = {}): Promise => { // force null in case it was disconnected from mobile app @@ -40,6 +41,7 @@ export const connect = async ({ ? defaultConnectors({ argentMobileOptions, webWalletUrl, + provider, }) : connectors diff --git a/src/types/modal.ts b/src/types/modal.ts index 91608dd..4325fb6 100644 --- a/src/types/modal.ts +++ b/src/types/modal.ts @@ -1,6 +1,7 @@ import type { GetWalletOptions } from "get-starknet-core" import type { Connector, ConnectorIcons } from "../connectors/connector" import type { ArgentMobileConnectorOptions } from "../connectors/argentMobile" +import { ProviderInterface } from "starknet" export type StoreVersion = "chrome" | "firefox" | "edge" @@ -12,6 +13,7 @@ export interface ConnectOptions extends GetWalletOptions { modalTheme?: "light" | "dark" | "system" storeVersion?: StoreVersion | null webWalletUrl?: string + provider?: ProviderInterface } export type ModalWallet = { From 83b66015e6fe4e92fd558e0fbbd5bfde6b4947f0 Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 13 Dec 2023 14:59:01 +0100 Subject: [PATCH 06/18] fix: allow custom provider for webwallet connector --- src/connectors/webwallet/index.ts | 10 ++++++++-- .../starknetWindowObject/getWebWalletStarknetObject.ts | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/connectors/webwallet/index.ts b/src/connectors/webwallet/index.ts index 18ddfb8..7e53c8f 100644 --- a/src/connectors/webwallet/index.ts +++ b/src/connectors/webwallet/index.ts @@ -2,7 +2,7 @@ import type { AccountChangeEventHandler, StarknetWindowObject, } from "get-starknet-core" -import type { AccountInterface } from "starknet" +import type { AccountInterface, ProviderInterface } from "starknet" import { Connector, type ConnectorData, @@ -23,6 +23,7 @@ let _wallet: StarknetWindowObject | null = null interface WebWalletConnectorOptions { url?: string + provider?: ProviderInterface } export class WebWalletConnector extends Connector { @@ -163,11 +164,16 @@ export class WebWalletConnector extends Connector { private async ensureWallet(): Promise { const origin = this._options.url || DEFAULT_WEBWALLET_URL + const provider = this._options.provider setPopupOptions({ origin, location: "/interstitialLogin", }) - const wallet = await getWebWalletStarknetObject(origin, trpcProxyClient({})) + const wallet = await getWebWalletStarknetObject( + origin, + trpcProxyClient({}), + provider, + ) _wallet = wallet ?? null this._wallet = _wallet diff --git a/src/connectors/webwallet/starknetWindowObject/getWebWalletStarknetObject.ts b/src/connectors/webwallet/starknetWindowObject/getWebWalletStarknetObject.ts index a7ae80e..90dd22e 100644 --- a/src/connectors/webwallet/starknetWindowObject/getWebWalletStarknetObject.ts +++ b/src/connectors/webwallet/starknetWindowObject/getWebWalletStarknetObject.ts @@ -1,5 +1,5 @@ import type { CreateTRPCProxyClient } from "@trpc/client" -import { RpcProvider } from "starknet" +import { ProviderInterface, RpcProvider } from "starknet" import { mapTargetUrlToNodeUrl } from "../helpers/mapTargetUrlToNodeUrl" import type { AppRouter } from "../helpers/trpc" @@ -9,6 +9,7 @@ import { getArgentStarknetWindowObject } from "./argentStarknetWindowObject" export const getWebWalletStarknetObject = async ( target: string, proxyLink: CreateTRPCProxyClient, + provider?: ProviderInterface, ): Promise => { const globalWindow = typeof window !== "undefined" ? window : undefined if (!globalWindow) { @@ -16,7 +17,7 @@ export const getWebWalletStarknetObject = async ( } const nodeUrl = mapTargetUrlToNodeUrl(target) - const defaultProvider = new RpcProvider({ nodeUrl }) + const defaultProvider = provider ?? new RpcProvider({ nodeUrl }) const starknetWindowObject = getArgentStarknetWindowObject( { host: globalWindow.location.origin, From 8e99cbb793882474015603185eb60515e4159b0a Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 13 Dec 2023 14:59:23 +0100 Subject: [PATCH 07/18] fix: allow custom provider for argent mobile connector --- src/connectors/argentMobile/index.ts | 15 ++++++++++++++- .../argentMobile/modal/starknet/adapter.ts | 9 ++------- src/helpers/defaultConnectors.ts | 8 ++++++-- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index bc9512b..05641f9 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -2,7 +2,7 @@ import type { AccountChangeEventHandler, StarknetWindowObject, } from "get-starknet-core" -import type { AccountInterface } from "starknet" +import type { AccountInterface, ProviderInterface } from "starknet" import { constants } from "starknet" import { DEFAULT_ARGENT_MOBILE_ICON, DEFAULT_PROJECT_ID } from "./constants" import { @@ -26,6 +26,7 @@ export interface ArgentMobileConnectorOptions { description?: string url?: string icons?: string[] + provider?: ProviderInterface } export class ArgentMobileConnector extends Connector { @@ -153,6 +154,10 @@ export class ArgentMobileConnector extends Connector { description, url, icons, + rpcUrl: + chainId === constants.NetworkName.SN_MAIN + ? "https://cloud.argent-api.com/v1/starknet/goerli/rpc/v0.5" + : "https://api.hydrogen.argent47.net/v1/starknet/goerli/rpc/v0.5", } if (projectId === DEFAULT_PROJECT_ID) { @@ -171,6 +176,14 @@ export class ArgentMobileConnector extends Connector { } const _wallet = await getStarknetWindowObject(options) + + const { provider } = this._options + if (provider) { + Object.assign(_wallet, { + provider, + }) + } + console.log(_wallet.provider) this._wallet = _wallet // wallet connect rpc enable diff --git a/src/connectors/argentMobile/modal/starknet/adapter.ts b/src/connectors/argentMobile/modal/starknet/adapter.ts index 8c4152a..eabd13d 100644 --- a/src/connectors/argentMobile/modal/starknet/adapter.ts +++ b/src/connectors/argentMobile/modal/starknet/adapter.ts @@ -11,7 +11,7 @@ import type { ProviderInterface, SignerInterface, } from "starknet" -import { Provider, constants } from "starknet" +import { RpcProvider, constants } from "starknet" import type { NamespaceAdapterOptions } from "../adapter" import { NamespaceAdapter } from "../adapter" @@ -84,12 +84,7 @@ export class StarknetAdapter this.remoteSigner = new StarknetRemoteSigner(this.walletRpc) - if (rpcUrl) { - this.provider = new Provider({ rpc: { nodeUrl: rpcUrl } }) - } else { - const network = this.getNetworkName(this.chainId) - this.provider = new Provider({ sequencer: { network } }) - } + this.provider = new RpcProvider({ nodeUrl: rpcUrl }) this.account = new StarknetRemoteAccount( this.provider, "", diff --git a/src/helpers/defaultConnectors.ts b/src/helpers/defaultConnectors.ts index acda731..14b6659 100644 --- a/src/helpers/defaultConnectors.ts +++ b/src/helpers/defaultConnectors.ts @@ -29,8 +29,12 @@ export const defaultConnectors = ({ ) } - defaultConnectors.push(new ArgentMobileConnector(argentMobileOptions)) - defaultConnectors.push(new WebWalletConnector({ url: webWalletUrl })) + defaultConnectors.push( + new ArgentMobileConnector({ ...argentMobileOptions, provider }), + ) + defaultConnectors.push( + new WebWalletConnector({ url: webWalletUrl, provider }), + ) return defaultConnectors } From 041751b5f61eb02c6d5774be2c4860168beee906 Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 13 Dec 2023 15:09:57 +0100 Subject: [PATCH 08/18] chore: removed console log --- src/connectors/argentMobile/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index 05641f9..13dc819 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -183,7 +183,7 @@ export class ArgentMobileConnector extends Connector { provider, }) } - console.log(_wallet.provider) + this._wallet = _wallet // wallet connect rpc enable From e951459a74020a22273467ba8a227e3cb5bd648f Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 13 Dec 2023 15:14:16 +0100 Subject: [PATCH 09/18] fix: rpc urls for mainnet --- src/connectors/argentMobile/index.ts | 2 +- src/connectors/webwallet/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index 13dc819..a3e0524 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -156,7 +156,7 @@ export class ArgentMobileConnector extends Connector { icons, rpcUrl: chainId === constants.NetworkName.SN_MAIN - ? "https://cloud.argent-api.com/v1/starknet/goerli/rpc/v0.5" + ? "https://cloud.argent-api.com/v1/starknet/mainnet/rpc/v0.5" : "https://api.hydrogen.argent47.net/v1/starknet/goerli/rpc/v0.5", } diff --git a/src/connectors/webwallet/constants.ts b/src/connectors/webwallet/constants.ts index f1a69bd..4642193 100644 --- a/src/connectors/webwallet/constants.ts +++ b/src/connectors/webwallet/constants.ts @@ -19,4 +19,4 @@ export const RPC_NODE_URL_TESTNET = "https://api.hydrogen.argent47.net/v1/starknet/goerli/rpc/v0.5" export const RPC_NODE_URL_MAINNET = - "https://cloud.argent-api.com/v1/starknet/goerli/rpc/v0.5" + "https://cloud.argent-api.com/v1/starknet/mainnet/rpc/v0.5" From f56daf14d9ebbbe52a50f2199a88bf389c53c41a Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 13 Dec 2023 14:25:06 +0000 Subject: [PATCH 10/18] chore(release): 1.0.25 [skip ci] ## [1.0.25](https://github.com/argentlabs/starknetkit/compare/v1.0.24...v1.0.25) (2023-12-13) ### Bug Fixes * allow custom provider for argent mobile connector ([8e99cbb](https://github.com/argentlabs/starknetkit/commit/8e99cbb793882474015603185eb60515e4159b0a)) * allow custom provider for injected connectors ([acdbf1c](https://github.com/argentlabs/starknetkit/commit/acdbf1c7d77d68286df81fb3ee74ee93424c47d4)) * allow custom provider for webwallet connector ([83b6601](https://github.com/argentlabs/starknetkit/commit/83b66015e6fe4e92fd558e0fbbd5bfde6b4947f0)) * rpc urls for mainnet ([e951459](https://github.com/argentlabs/starknetkit/commit/e951459a74020a22273467ba8a227e3cb5bd648f)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ce98fe..a0abc33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.24", + "version": "1.0.25", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From 00a65a4d199b1c07ebc7005e0c56ca2e19a3788b Mon Sep 17 00:00:00 2001 From: bluecco Date: Fri, 29 Dec 2023 12:06:25 +0100 Subject: [PATCH 11/18] fix: don't show modal if only one connector is defined --- src/modal/Modal.svelte | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modal/Modal.svelte b/src/modal/Modal.svelte index c80d88e..c0d562d 100644 --- a/src/modal/Modal.svelte +++ b/src/modal/Modal.svelte @@ -14,9 +14,6 @@ export let theme: "light" | "dark" | null = null let loadingItem: string | false = false - let emailOnly = - modalWallets.length === 1 && - modalWallets[0].id.toLowerCase().includes("webwallet") let starknetMobile = window?.starknet_argentX as StarknetWindowObject & { isInAppBrowser: boolean @@ -59,7 +56,7 @@ return } - if (emailOnly) { + if (modalWallets.length === 1) { try { const [wallet] = modalWallets await wallet.connector?.connect() @@ -71,7 +68,7 @@ }) -{#if !isInAppBrowser && !emailOnly} +{#if !isInAppBrowser && modalWallets.length > 1} Date: Fri, 29 Dec 2023 12:54:54 +0000 Subject: [PATCH 12/18] chore(release): 1.0.26 [skip ci] ## [1.0.26](https://github.com/argentlabs/starknetkit/compare/v1.0.25...v1.0.26) (2023-12-29) ### Bug Fixes * don't show modal if only one connector is defined ([00a65a4](https://github.com/argentlabs/starknetkit/commit/00a65a4d199b1c07ebc7005e0c56ca2e19a3788b)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a0abc33..def2d6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.25", + "version": "1.0.26", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From 495184bff7a53eb577a7a700e84d1e83c01c6d59 Mon Sep 17 00:00:00 2001 From: bluecco Date: Fri, 29 Dec 2023 16:24:43 +0100 Subject: [PATCH 13/18] fix: add part attribute for starknetkit modal for css override --- src/main.ts | 2 +- src/modal/Modal.svelte | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index cc2be13..d7a752b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,7 +85,7 @@ export const connect = async ({ }) const getTarget = (): ShadowRoot => { - const modalId = "starknetkit-modal" + const modalId = "starknetkit-modal-container" const existingElement = document.getElementById(modalId) if (existingElement) { diff --git a/src/modal/Modal.svelte b/src/modal/Modal.svelte index c0d562d..e8f2343 100644 --- a/src/modal/Modal.svelte +++ b/src/modal/Modal.svelte @@ -71,6 +71,7 @@ {#if !isInAppBrowser && modalWallets.length > 1} cb(null)} From 83a9e3d9f5e4c3e1018955c37cffbecb6f6b262e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 29 Dec 2023 15:28:47 +0000 Subject: [PATCH 14/18] chore(release): 1.0.27 [skip ci] ## [1.0.27](https://github.com/argentlabs/starknetkit/compare/v1.0.26...v1.0.27) (2023-12-29) ### Bug Fixes * add part attribute for starknetkit modal for css override ([495184b](https://github.com/argentlabs/starknetkit/commit/495184bff7a53eb577a7a700e84d1e83c01c6d59)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index def2d6c..a1f3691 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.26", + "version": "1.0.27", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From 0bef0fc83339cd00a50cb5663786e2bb963de966 Mon Sep 17 00:00:00 2001 From: bluecco Date: Tue, 2 Jan 2024 10:39:23 +0100 Subject: [PATCH 15/18] fix: add id for argent mobile modal container div --- src/connectors/argentMobile/modal/argentModal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectors/argentMobile/modal/argentModal.ts b/src/connectors/argentMobile/modal/argentModal.ts index 54e28e0..ff0213b 100644 --- a/src/connectors/argentMobile/modal/argentModal.ts +++ b/src/connectors/argentMobile/modal/argentModal.ts @@ -41,7 +41,7 @@ const iframeStyle = { } const overlayHtml = ` - + From 2ddb904f634fc1174576e7fcd9acabde63bc6589 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 2 Jan 2024 14:10:07 +0000 Subject: [PATCH 16/18] chore(release): 1.0.28 [skip ci] ## [1.0.28](https://github.com/argentlabs/starknetkit/compare/v1.0.27...v1.0.28) (2024-01-02) ### Bug Fixes * add id for argent mobile modal container div ([0bef0fc](https://github.com/argentlabs/starknetkit/commit/0bef0fc83339cd00a50cb5663786e2bb963de966)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a1f3691..8846d96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.27", + "version": "1.0.28", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From b606da8e12d05044076a21cfac5117e755d4146a Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 3 Jan 2024 11:10:02 +0100 Subject: [PATCH 17/18] fix: add id for argent mobile modal overlay --- src/connectors/argentMobile/modal/argentModal.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connectors/argentMobile/modal/argentModal.ts b/src/connectors/argentMobile/modal/argentModal.ts index ff0213b..9daeeb7 100644 --- a/src/connectors/argentMobile/modal/argentModal.ts +++ b/src/connectors/argentMobile/modal/argentModal.ts @@ -141,6 +141,7 @@ class ArgentModal { // type=overlay, device=desktop const overlay = document.createElement("div") overlay.innerHTML = overlayHtml + overlay.id = "argent-mobile-modal-overlay" for (const [key, value] of Object.entries(overlayStyle)) { overlay.style[key as any] = value } From 43ea9a397c2e45471b3038b3bc522521ddef4aa5 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 3 Jan 2024 10:16:30 +0000 Subject: [PATCH 18/18] chore(release): 1.0.29 [skip ci] ## [1.0.29](https://github.com/argentlabs/starknetkit/compare/v1.0.28...v1.0.29) (2024-01-03) ### Bug Fixes * add id for argent mobile modal overlay ([b606da8](https://github.com/argentlabs/starknetkit/commit/b606da8e12d05044076a21cfac5117e755d4146a)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8846d96..5c8efdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.28", + "version": "1.0.29", "repository": "github:argentlabs/starknetkit", "private": false, "browser": {