-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
208 changed files
with
10,974 additions
and
3,576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Website | ||
|
||
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. | ||
|
||
### Installation | ||
|
||
``` | ||
$ yarn | ||
``` | ||
|
||
### Local Development | ||
|
||
``` | ||
$ yarn start | ||
``` | ||
|
||
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. | ||
|
||
### Build | ||
|
||
``` | ||
$ yarn build | ||
``` | ||
|
||
This command generates static content into the `build` directory and can be served using any static contents hosting service. | ||
|
||
### Deployment | ||
|
||
Using SSH: | ||
|
||
``` | ||
$ USE_SSH=true yarn deploy | ||
``` | ||
|
||
Not using SSH: | ||
|
||
``` | ||
$ GIT_USER=<Your GitHub username> yarn deploy | ||
``` | ||
|
||
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
}; |
6 changes: 6 additions & 0 deletions
6
...k-react-provider/docs/generated/README.md → ...t Provider/Monerium SDK React Provider.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
apps/docs/docs/Monerium SDK React Provider/enumerations/OrderState.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[**Monerium SDK React Provider v0.2.0**](../Packages.md) • **Docs** | ||
|
||
*** | ||
|
||
[Monerium Packages](../../Packages.md) / [Monerium SDK React Provider](../Monerium%20SDK%20React%20Provider.md) / OrderState | ||
|
||
# Enumeration: OrderState | ||
|
||
## Enumeration Members | ||
|
||
### pending | ||
|
||
> **pending**: `"pending"` | ||
#### Defined in | ||
|
||
sdk/dist/index.d.ts:195 | ||
|
||
*** | ||
|
||
### placed | ||
|
||
> **placed**: `"placed"` | ||
#### Defined in | ||
|
||
sdk/dist/index.d.ts:194 | ||
|
||
*** | ||
|
||
### processed | ||
|
||
> **processed**: `"processed"` | ||
#### Defined in | ||
|
||
sdk/dist/index.d.ts:196 | ||
|
||
*** | ||
|
||
### rejected | ||
|
||
> **rejected**: `"rejected"` | ||
#### Defined in | ||
|
||
sdk/dist/index.d.ts:197 |
43 changes: 43 additions & 0 deletions
43
apps/docs/docs/Monerium SDK React Provider/functions/MoneriumProvider.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[**Monerium SDK React Provider v0.2.0**](../Packages.md) • **Docs** | ||
|
||
*** | ||
|
||
[Monerium Packages](../../Packages.md) / [Monerium SDK React Provider](../Monerium%20SDK%20React%20Provider.md) / MoneriumProvider | ||
|
||
# Function: MoneriumProvider() | ||
|
||
> **MoneriumProvider**(`params`): `Element` | ||
## Parameters | ||
|
||
• **params** | ||
|
||
• **params.children**: `ReactNode` | ||
|
||
Rest of the application. | ||
|
||
• **params.clientId**: `string` | ||
|
||
Monerium auth flow client id. | ||
|
||
• **params.environment?**: `"sandbox"` \| `"production"` = `'sandbox'` | ||
|
||
Monerium environment. | ||
|
||
• **params.redirectUri**: `string` | ||
|
||
Monerium auth flow redirect url. | ||
|
||
• **params.redirectUrl?**: `string` | ||
|
||
**Deprecated** | ||
|
||
use redirectUri | ||
|
||
## Returns | ||
|
||
`Element` | ||
|
||
## Defined in | ||
|
||
[sdk-react-provider/src/lib/provider.tsx:19](https://github.com/monerium/js-monorepo/blob/ffeefd2a9bccc0d18acecd9390a7bfced5720c17/packages/sdk-react-provider/src/lib/provider.tsx#L19) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
apps/docs/docs/Monerium SDK React Provider/functions/useAuthContext.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[**Monerium SDK React Provider v0.2.0**](../Packages.md) • **Docs** | ||
|
||
*** | ||
|
||
[Monerium Packages](../../Packages.md) / [Monerium SDK React Provider](../Monerium%20SDK%20React%20Provider.md) / useAuthContext | ||
|
||
# Function: useAuthContext() | ||
|
||
> **useAuthContext**(`params`?): [`QueryResult`](../type-aliases/QueryResult.md)\<`"authContext"`, [`AuthContext`](../interfaces/AuthContext.md)\> | ||
# Get the authentication context. | ||
|
||
## Parameters | ||
|
||
• **params?** = `{}` | ||
|
||
No required parameters. | ||
|
||
• **params.query?**: [`QueryOptions`](../type-aliases/QueryOptions.md)\<[`AuthContext`](../interfaces/AuthContext.md)\> | ||
|
||
See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. | ||
|
||
## Returns | ||
|
||
[`QueryResult`](../type-aliases/QueryResult.md)\<`"authContext"`, [`AuthContext`](../interfaces/AuthContext.md)\> | ||
|
||
## Example | ||
|
||
```ts | ||
const { | ||
authContext, // useQuery's `data` property | ||
isLoading, | ||
isError, | ||
error, | ||
refetch, | ||
...moreUseQueryResults | ||
} = useAuthContext(); | ||
``` | ||
|
||
## See | ||
|
||
[API Documentation](https://monerium.dev/api-docs#operation/auth-context) | ||
|
||
[AuthContext interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/AuthContext.md) | ||
|
||
## Defined in | ||
|
||
[sdk-react-provider/src/lib/hooks.tsx:125](https://github.com/monerium/js-monorepo/blob/ffeefd2a9bccc0d18acecd9390a7bfced5720c17/packages/sdk-react-provider/src/lib/hooks.tsx#L125) |
52 changes: 52 additions & 0 deletions
52
apps/docs/docs/Monerium SDK React Provider/functions/useBalances.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[**Monerium SDK React Provider v0.2.0**](../Packages.md) • **Docs** | ||
|
||
*** | ||
|
||
[Monerium Packages](../../Packages.md) / [Monerium SDK React Provider](../Monerium%20SDK%20React%20Provider.md) / useBalances | ||
|
||
# Function: useBalances() | ||
|
||
> **useBalances**(`params`?): [`QueryResult`](../type-aliases/QueryResult.md)\<`"balances"`, [`Balances`](../interfaces/Balances.md)[]\> | ||
# Get balances | ||
|
||
## Parameters | ||
|
||
• **params?** = `{}` | ||
|
||
No required parameters. | ||
|
||
• **params.profileId?**: `string` | ||
|
||
Fetch balances for a specific profile. | ||
|
||
• **params.query?**: [`QueryOptions`](../type-aliases/QueryOptions.md)\<[`Balances`](../interfaces/Balances.md)[]\> | ||
|
||
See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. | ||
|
||
## Returns | ||
|
||
[`QueryResult`](../type-aliases/QueryResult.md)\<`"balances"`, [`Balances`](../interfaces/Balances.md)[]\> | ||
|
||
## Example | ||
|
||
```ts | ||
const { | ||
balances, // useQuery's `data` property | ||
isLoading, | ||
isError, | ||
error, | ||
refetch, | ||
...moreUseQueryResults | ||
} = useBalances(); | ||
``` | ||
|
||
## See | ||
|
||
[API Documentation](https://monerium.dev/api-docs#operation/profile-balances) | ||
|
||
[Balances interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/Balances.md) | ||
|
||
## Defined in | ||
|
||
[sdk-react-provider/src/lib/hooks.tsx:337](https://github.com/monerium/js-monorepo/blob/ffeefd2a9bccc0d18acecd9390a7bfced5720c17/packages/sdk-react-provider/src/lib/hooks.tsx#L337) |
51 changes: 51 additions & 0 deletions
51
apps/docs/docs/Monerium SDK React Provider/functions/useLinkAddress.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[**Monerium SDK React Provider v0.2.0**](../Packages.md) • **Docs** | ||
|
||
*** | ||
|
||
[Monerium Packages](../../Packages.md) / [Monerium SDK React Provider](../Monerium%20SDK%20React%20Provider.md) / useLinkAddress | ||
|
||
# Function: useLinkAddress() | ||
|
||
> **useLinkAddress**(`param`): [`MutationResult`](../type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\> | ||
# Add address to profile. | ||
When the address has been linked, the relevant profile query will be invalidated and re-fetched. | ||
|
||
## Parameters | ||
|
||
• **param** | ||
|
||
• **param.mutation?**: [`MutationOptions`](../type-aliases/MutationOptions.md)\<`LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\> | ||
|
||
See [Tanstack Query - useMutation](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation) options. | ||
|
||
• **param.profileId**: `string` | ||
|
||
Which profile to link the address. | ||
|
||
## Returns | ||
|
||
[`MutationResult`](../type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\> | ||
|
||
## Example | ||
|
||
```ts | ||
const { | ||
linkAddress, // useMutation's `mutateAsync` property | ||
isPending, | ||
isError, | ||
error, | ||
status, | ||
...moreUseMutationResults | ||
} = useLinkAddress(); | ||
``` | ||
|
||
## See | ||
|
||
[API Documentation](https://monerium.dev/api-docs#operation/profile-addresses) | ||
|
||
[LinkAddress interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/LinkAddress.md) | ||
|
||
## Defined in | ||
|
||
[sdk-react-provider/src/lib/hooks.tsx:594](https://github.com/monerium/js-monorepo/blob/ffeefd2a9bccc0d18acecd9390a7bfced5720c17/packages/sdk-react-provider/src/lib/hooks.tsx#L594) |
Oops, something went wrong.