Skip to content

Commit

Permalink
chore: fixes after merge with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Jan 14, 2025
1 parent 591796f commit 29cdf78
Show file tree
Hide file tree
Showing 13 changed files with 1,081 additions and 1,219 deletions.
2,266 changes: 1,065 additions & 1,201 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/connectors/argent/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
type ConnectArgs,
type ConnectorData,
type ConnectorIcons,
} from "../connector"
} from "../../connector"
import { type InjectedConnectorOptions } from "../../injected"
import { DEFAULT_ARGENT_MOBILE_ICON, DEFAULT_PROJECT_ID } from "./constants"
import { isInArgentMobileAppBrowser } from "../helpers"
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/argent/argentMobile/modal/argentModal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getDevice } from "./getDevice"
import Modal from "../../../../modal/Modal.svelte"
import { Layout, ModalWallet } from "../../../../types/modal"
import { Layout, type ModalWallet } from "../../../../types/modal"
import { getModalTarget } from "../../../../helpers/modal"
import { StarknetkitConnector } from "../../../connector"

Expand Down
2 changes: 1 addition & 1 deletion src/connectors/argent/argentMobile/modal/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RpcProvider, constants } from "starknet"
import type { NamespaceAdapter, NamespaceAdapterOptions } from "./adapter"
import { argentModal } from "./argentModal"
import { resetWalletConnect } from "../../../../helpers/resetWalletConnect"
import { ModalWallet } from "../../../../types/modal"
import { type ModalWallet } from "../../../../types/modal"

// Using NetworkName as a value.
const Network: typeof constants.NetworkName = constants.NetworkName
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/argent/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { InjectedConnectorOptions, injectedWalletIcons } from "../injected"
import { type InjectedConnectorOptions, injectedWalletIcons } from "../injected"
import { ArgentX } from "../injected/argentX"
import { getInjectedArgentX } from "./helpers/getInjectedArgentX"
import {
ArgentMobileBaseConnector,
ArgentMobileConnectorOptions,
type ArgentMobileConnectorOptions,
isInArgentMobileAppBrowser,
} from "./argentMobile"
import { StarknetkitCompoundConnector } from "../connector"
Expand Down
1 change: 0 additions & 1 deletion src/connectors/braavosMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
type ConnectorIcons,
} from "../connector"
import { Braavos } from "../injected/braavos"
import { isInBraavosMobileAppBrowser } from "./helpers/inAppBrowser"
import { type InjectedConnectorOptions } from "../injected"
import { BRAAVOS_MOBILE_APP_ICON } from "./constants"
import { isInBraavosMobileAppBrowser } from "./helpers/inAppBrowser"
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/injected/argentX.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectedConnector, InjectedConnectorOptions } from "./index"
import { InjectedConnector, type InjectedConnectorOptions } from "./index"

export class ArgentX extends InjectedConnector {
constructor(options?: Omit<InjectedConnectorOptions, "id">) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/injected/braavos.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectedConnector, InjectedConnectorOptions } from "./index"
import { InjectedConnector, type InjectedConnectorOptions } from "./index"

export class Braavos extends InjectedConnector {
constructor(options?: Omit<InjectedConnectorOptions, "id">) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/injected/keplr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectedConnector, InjectedConnectorOptions } from "./index"
import { InjectedConnector, type InjectedConnectorOptions } from "./index"

export class Keplr extends InjectedConnector {
constructor(options?: Omit<InjectedConnectorOptions, "id">) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/injected/metamask.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectedConnector, InjectedConnectorOptions } from "./index"
import { InjectedConnector, type InjectedConnectorOptions } from "./index"

export class MetaMask extends InjectedConnector {
constructor(options?: Omit<InjectedConnectorOptions, "id">) {
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/modal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import css from "../theme.css"
import css from "../theme.css?inline"

export const getModalTarget = (): ShadowRoot => {
const modalId = "starknetkit-modal-container"
Expand All @@ -25,4 +25,4 @@ export const getModalTarget = (): ShadowRoot => {
target.appendChild(styleElement)

return target
}
}
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import sn from "@starknet-io/get-starknet-core"
import type { StarknetWindowObject } from "@starknet-io/types-js"

import {
ConnectOptions,
ConnectOptionsWithConnectors,
type ConnectOptions,
type ConnectOptionsWithConnectors,
Layout,
ModalResult,
ModalWallet,
type ModalResult,
type ModalWallet,
} from "./types/modal"
import {
Connector,
Expand All @@ -29,7 +29,7 @@ import { extractConnector, findConnectorById } from "./helpers/connector"
import { getModalTarget } from "./helpers/modal"

import Modal from "./modal/Modal.svelte"
import { ModalInstance } from "./modal/Modal"
import type { ModalInstance } from "./modal/Modal"

let selectedConnector: StarknetkitConnector | null = null

Expand Down
1 change: 0 additions & 1 deletion src/types/modal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { GetWalletOptions } from "@starknet-io/get-starknet-core"
import type { ArgentMobileConnectorOptions } from "../connectors/argent/argentMobile"
import type { StarknetWindowObject } from "@starknet-io/types-js"
import type { ArgentMobileConnectorOptions } from "../connectors/argentMobile"
import type {
Connector,
ConnectorData,
Expand Down

0 comments on commit 29cdf78

Please sign in to comment.