diff --git a/libs/composedb/package.json b/libs/composedb/package.json index 8804d5156..af22c5351 100644 --- a/libs/composedb/package.json +++ b/libs/composedb/package.json @@ -1,6 +1,6 @@ { "name": "@akashaorg/composedb-models", - "version": "0.1.8", + "version": "0.1.9", "type": "module", "description": "ComposeDB models used in akasha-core", "author": "AKASHA Foundation (https://akasha.org/)", diff --git a/libs/hooks/package.json b/libs/hooks/package.json index 1c548de38..731d0b0b0 100644 --- a/libs/hooks/package.json +++ b/libs/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@akashaorg/ui-core-hooks", - "version": "0.1.2", + "version": "0.1.3", "type": "module", "description": "Reusable hooks for akasha-core", "author": "AKASHA Foundation (https://akasha.org/)", diff --git a/libs/sdk/package.json b/libs/sdk/package.json index d6f2aa60b..99e30339e 100644 --- a/libs/sdk/package.json +++ b/libs/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@akashaorg/core-sdk", - "version": "0.1.14-alpha", + "version": "0.1.15-alpha", "keywords": [ "web3", "ethereum", diff --git a/libs/sdk/src/common/web3.connector.ts b/libs/sdk/src/common/web3.connector.ts index ec3ebbadd..f6f79351d 100644 --- a/libs/sdk/src/common/web3.connector.ts +++ b/libs/sdk/src/common/web3.connector.ts @@ -12,7 +12,7 @@ import AWF_Config from './config'; import { AppKit, createAppKit } from '@reown/appkit'; import { EthersAdapter } from '@reown/appkit-adapter-ethers'; import { sepolia } from '@reown/appkit/networks'; -import type { ConnectMethod } from '@reown/appkit-core'; +import type { ConnectMethod, OptionsControllerState } from '@reown/appkit-core'; @injectable() class Web3Connector { @@ -146,6 +146,15 @@ class Web3Connector { this.#w3modal.setConnectMethodsOrder(connectionFeatures); } + /** + * Updates the options of the reown AppKit instance/modal. + * + * @param config - A partial object of the OptionsControllerState type, containing the options to update. + */ + updateModalOptions(config: Partial) { + this.#w3modal.updateOptions(config); + } + /* * Get the current Web3Modal theme */ diff --git a/libs/typings/package.json b/libs/typings/package.json index ce496f87f..5c0f5d972 100644 --- a/libs/typings/package.json +++ b/libs/typings/package.json @@ -1,6 +1,6 @@ { "name": "@akashaorg/typings", - "version": "0.1.9", + "version": "0.1.10", "description": "akasha-core typings for development purpose", "author": "AKASHA Foundation (https://akasha.org/)", "type": "module",