diff --git a/CHANGELOG.md b/CHANGELOG.md index 9764a58f..ef99672f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,31 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v1.0.29](https://github.com/masa-finance/masa-react/compare/v1.0.28...v1.0.29) + +> 7 March 2023 + +- metamask refactor [`2c9d487`](https://github.com/masa-finance/masa-react/commit/2c9d48777b399c127dc13d225d1e00fbc172c740) + +#### [v1.0.28](https://github.com/masa-finance/masa-react/compare/v1.0.27...v1.0.28) + +> 7 March 2023 + +- try to fix metamask handling [`2b8586c`](https://github.com/masa-finance/masa-react/commit/2b8586c6af2cedf5d6e64aa22d3fc7e345f951f2) + +#### [v1.0.27](https://github.com/masa-finance/masa-react/compare/v1.0.26...v1.0.27) + +> 7 March 2023 + +- refactor local storage access [`551695f`](https://github.com/masa-finance/masa-react/commit/551695fe1e745bea893aeb7db2ee3d4907ab15e7) + +#### [v1.0.26](https://github.com/masa-finance/masa-react/compare/v1.0.25...v1.0.26) + +> 7 March 2023 + +- update docs [`09618ce`](https://github.com/masa-finance/masa-react/commit/09618ce6db018fcd28fdd1ab7eedecbf8f5f301a) +- rework accounts loading [`b1b214d`](https://github.com/masa-finance/masa-react/commit/b1b214d3b6a7175441f34335618680469c9b2432) + #### [v1.0.25](https://github.com/masa-finance/masa-react/compare/v1.0.24...v1.0.25) > 7 March 2023 diff --git a/docs/README.md b/docs/README.md index 35fd8677..87806073 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,5 +1,5 @@ # Masa React - - v1.0.25 / [Exports](modules.md) + - v1.0.29 / [Exports](modules.md) --- diff --git a/docs/interfaces/ArweaveConfig.md b/docs/interfaces/ArweaveConfig.md index 8d7d46a8..db4a589c 100644 --- a/docs/interfaces/ArweaveConfig.md +++ b/docs/interfaces/ArweaveConfig.md @@ -1,5 +1,5 @@ [# Masa React - - v1.0.25](../README.md) / [Exports](../modules.md) / ArweaveConfig + - v1.0.29](../README.md) / [Exports](../modules.md) / ArweaveConfig # Interface: ArweaveConfig diff --git a/docs/interfaces/MasaContextProviderProps.md b/docs/interfaces/MasaContextProviderProps.md index 28030426..8ca06806 100644 --- a/docs/interfaces/MasaContextProviderProps.md +++ b/docs/interfaces/MasaContextProviderProps.md @@ -1,5 +1,5 @@ [# Masa React - - v1.0.25](../README.md) / [Exports](../modules.md) / MasaContextProviderProps + - v1.0.29](../README.md) / [Exports](../modules.md) / MasaContextProviderProps # Interface: MasaContextProviderProps @@ -33,8 +33,8 @@ - [handleLogout](MasaContextProviderProps.md#handlelogout) - [handlePurchaseIdentity](MasaContextProviderProps.md#handlepurchaseidentity) - [handlePurchaseIdentityWithSoulname](MasaContextProviderProps.md#handlepurchaseidentitywithsoulname) +- [hasWalletAddress](MasaContextProviderProps.md#haswalletaddress) - [identity](MasaContextProviderProps.md#identity) -- [isConnected](MasaContextProviderProps.md#isconnected) - [isCreditScoresLoading](MasaContextProviderProps.md#iscreditscoresloading) - [isGreensLoading](MasaContextProviderProps.md#isgreensloading) - [isIdentityLoading](MasaContextProviderProps.md#isidentityloading) @@ -92,9 +92,9 @@ ___ ### children -• **children**: `ReactNode` +• `Optional` **children**: `ReactNode` -#### Overrides +#### Inherited from [MasaShape](MasaShape.md).[children](MasaShape.md#children) @@ -128,7 +128,7 @@ ___ • `Optional` **company**: `string` -#### Overrides +#### Inherited from [MasaShape](MasaShape.md).[company](MasaShape.md#company) @@ -369,6 +369,16 @@ ___ ___ +### hasWalletAddress + +• `Optional` **hasWalletAddress**: `boolean` + +#### Inherited from + +[MasaShape](MasaShape.md).[hasWalletAddress](MasaShape.md#haswalletaddress) + +___ + ### identity • `Optional` **identity**: `Object` @@ -386,16 +396,6 @@ ___ ___ -### isConnected - -• `Optional` **isConnected**: `boolean` - -#### Inherited from - -[MasaShape](MasaShape.md).[isConnected](MasaShape.md#isconnected) - -___ - ### isCreditScoresLoading • `Optional` **isCreditScoresLoading**: `boolean` @@ -734,6 +734,10 @@ ___ • `Optional` **verbose**: `boolean` +#### Inherited from + +[MasaShape](MasaShape.md).[verbose](MasaShape.md#verbose) + ___ ### walletAddress diff --git a/docs/interfaces/MasaShape.md b/docs/interfaces/MasaShape.md index 5acea87a..e374d4d6 100644 --- a/docs/interfaces/MasaShape.md +++ b/docs/interfaces/MasaShape.md @@ -1,5 +1,5 @@ [# Masa React - - v1.0.25](../README.md) / [Exports](../modules.md) / MasaShape + - v1.0.29](../README.md) / [Exports](../modules.md) / MasaShape # Interface: MasaShape @@ -31,8 +31,8 @@ - [handleLogout](MasaShape.md#handlelogout) - [handlePurchaseIdentity](MasaShape.md#handlepurchaseidentity) - [handlePurchaseIdentityWithSoulname](MasaShape.md#handlepurchaseidentitywithsoulname) +- [hasWalletAddress](MasaShape.md#haswalletaddress) - [identity](MasaShape.md#identity) -- [isConnected](MasaShape.md#isconnected) - [isCreditScoresLoading](MasaShape.md#iscreditscoresloading) - [isGreensLoading](MasaShape.md#isgreensloading) - [isIdentityLoading](MasaShape.md#isidentityloading) @@ -55,6 +55,7 @@ - [setProvider](MasaShape.md#setprovider) - [soulnames](MasaShape.md#soulnames) - [switchNetwork](MasaShape.md#switchnetwork) +- [verbose](MasaShape.md#verbose) - [walletAddress](MasaShape.md#walletaddress) ## Properties @@ -280,6 +281,12 @@ ___ ___ +### hasWalletAddress + +• `Optional` **hasWalletAddress**: `boolean` + +___ + ### identity • `Optional` **identity**: `Object` @@ -293,12 +300,6 @@ ___ ___ -### isConnected - -• `Optional` **isConnected**: `boolean` - -___ - ### isCreditScoresLoading • `Optional` **isCreditScoresLoading**: `boolean` @@ -533,6 +534,12 @@ ___ ___ +### verbose + +• `Optional` **verbose**: `boolean` + +___ + ### walletAddress • `Optional` **walletAddress**: `string` diff --git a/docs/interfaces/ModalProps.md b/docs/interfaces/ModalProps.md index ef3c38ba..830912fd 100644 --- a/docs/interfaces/ModalProps.md +++ b/docs/interfaces/ModalProps.md @@ -1,5 +1,5 @@ [# Masa React - - v1.0.25](../README.md) / [Exports](../modules.md) / ModalProps + - v1.0.29](../README.md) / [Exports](../modules.md) / ModalProps # Interface: ModalProps diff --git a/docs/interfaces/Network.md b/docs/interfaces/Network.md index 120aef0f..888ad703 100644 --- a/docs/interfaces/Network.md +++ b/docs/interfaces/Network.md @@ -1,5 +1,5 @@ [# Masa React - - v1.0.25](../README.md) / [Exports](../modules.md) / Network + - v1.0.29](../README.md) / [Exports](../modules.md) / Network # Interface: Network diff --git a/docs/interfaces/SpinnerProps.md b/docs/interfaces/SpinnerProps.md index 7bb1f661..9c53467c 100644 --- a/docs/interfaces/SpinnerProps.md +++ b/docs/interfaces/SpinnerProps.md @@ -1,5 +1,5 @@ [# Masa React - - v1.0.25](../README.md) / [Exports](../modules.md) / SpinnerProps + - v1.0.29](../README.md) / [Exports](../modules.md) / SpinnerProps # Interface: SpinnerProps diff --git a/docs/modules.md b/docs/modules.md index 73bb5242..143743df 100644 --- a/docs/modules.md +++ b/docs/modules.md @@ -1,8 +1,8 @@ [# Masa React - - v1.0.25](README.md) / Exports + - v1.0.29](README.md) / Exports # # Masa React - - v1.0.25 + - v1.0.29 ## Table of contents @@ -41,6 +41,7 @@ - [useDebounceIfValue](modules.md#usedebounceifvalue) - [useGreen](modules.md#usegreen) - [useIdentity](modules.md#useidentity) +- [useLocalStorage](modules.md#uselocalstorage) - [useMasa](modules.md#usemasa) - [useMetamask](modules.md#usemetamask) - [useModal](modules.md#usemodal) @@ -331,6 +332,21 @@ ___ ___ +### useLocalStorage + +▸ **useLocalStorage**(): `Object` + +#### Returns + +`Object` + +| Name | Type | +| :------ | :------ | +| `localStorageGet` | (`key`: `string`) => `undefined` \| `T` | +| `localStorageSet` | (`key`: `string`, `value`: `T`) => `void` | + +___ + ### useMasa ▸ **useMasa**(): [`MasaShape`](interfaces/MasaShape.md) @@ -482,7 +498,7 @@ ___ | Name | Type | | :------ | :------ | | `error` | `unknown` | -| `isConnected` | `boolean` | +| `hasWalletAddress` | `boolean` | | `isWalletLoading` | `boolean` | | `status` | `string` | | `walletAddress` | `undefined` \| `string` |