Skip to content

Commit

Permalink
MErge
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Nov 8, 2022
2 parents 1372d9a + 90aa892 commit 0bee2b0
Show file tree
Hide file tree
Showing 55 changed files with 2,870 additions and 914 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-to-docs.yml
@@ -0,0 +1,26 @@
name: Publish to Docs

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Copy Changelog
run: |
cp CHANGELOG.md docs
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'docs'
target-directory: 'docs/developers/masa-react'
destination-github-username: 'masa-finance'
destination-repository-name: 'docs'
user-email: 13647606+H34D@users.noreply.github.com
target-branch: main
10 changes: 6 additions & 4 deletions .size-limit.json
@@ -1,10 +1,12 @@
[
{
"path": "dist/tools.cjs.production.min.js",
"limit": "500kB"
"path": "dist/masa-react.cjs.production.min.js",
"limit": "500kB",
"webpack": false
},
{
"path": "dist/tools.esm.js",
"limit": "300kB"
"path": "dist/masa-react.esm.js",
"limit": "300kB",
"webpack": false
}
]
20 changes: 20 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,26 @@ 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).

#### [v0.11.0](https://github.com/masa-finance/masa-react/compare/v0.10.1...v0.11.0)

> 3 November 2022
- fix job [`#34`](https://github.com/masa-finance/masa-react/pull/34)
- Feature/sdk [`#33`](https://github.com/masa-finance/masa-react/pull/33)
- Feature/docs [`#32`](https://github.com/masa-finance/masa-react/pull/32)
- Moved some Stuff to the SDK [`#31`](https://github.com/masa-finance/masa-react/pull/31)
- added docs [`4de0813`](https://github.com/masa-finance/masa-react/commit/4de0813fba8888503113d6a95faaece8205adefc)
- fix size calculation [`7f49df3`](https://github.com/masa-finance/masa-react/commit/7f49df39fde00b517c3b3cdf4335eb1c2c56769e)
- disable sources [`502850b`](https://github.com/masa-finance/masa-react/commit/502850b88d52518dddd2b48ff8882ec4e8e762f9)

#### [v0.10.1](https://github.com/masa-finance/masa-react/compare/v0.10.0...v0.10.1)

> 25 October 2022
- update readme and changelog [`e43b944`](https://github.com/masa-finance/masa-react/commit/e43b944308f2b84b1f3255c96c3195fc7059344a)
- moved some stuff to the SDK [`6fef52a`](https://github.com/masa-finance/masa-react/commit/6fef52a6b28feba99e1085c13cbaacff86f129e2)
- fix tests [`9faa18c`](https://github.com/masa-finance/masa-react/commit/9faa18c2401b137c4a00368582f10f6e4dd078c6)

#### [v0.10.0](https://github.com/masa-finance/masa-react/compare/v0.9.1...v0.10.0)

> 24 October 2022
Expand Down
16 changes: 14 additions & 2 deletions README.md
@@ -1,4 +1,17 @@
# Setup
---

**🌽🌽 THIS IS BETA SOFTWARE. IT COULD LEAD TO RAPID UNSCHEDULED DISASSEMBLY. If you run into problems, please open up a new issue. 🌽🌽**

---

<!-- TOC -->

* [Setup](#setup)

<!-- TOC -->

## Setup

```
git clone https://github.com/masa-finance/masa-react.git
Expand All @@ -13,4 +26,3 @@ mkcert masatools.finance
yarn
yarn storybook
```

1 change: 1 addition & 0 deletions docs/.nojekyll
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
31 changes: 31 additions & 0 deletions docs/README.md
@@ -0,0 +1,31 @@
# Masa React
- v0.11.0 / [Exports](modules.md)

---

**🌽🌽 THIS IS BETA SOFTWARE. IT COULD LEAD TO RAPID UNSCHEDULED DISASSEMBLY. If you run into problems, please open up a new issue. 🌽🌽**

---

<!-- TOC -->

* [Setup](#setup)

<!-- TOC -->

## Setup

```
git clone https://github.com/masa-finance/masa-react.git
sudo nano /etc/hosts
// add 127.0.0.1 masatools.finance
brew install mkcert
cd masa-react
mkcert masatools.finance
yarn
yarn storybook
```
53 changes: 53 additions & 0 deletions docs/interfaces/rest.MethodMetadata.md
@@ -0,0 +1,53 @@
[# Masa React
- v0.11.0](../README.md) / [Exports](../modules.md) / [rest](../modules/rest.md) / MethodMetadata

# Interface: MethodMetadata

[rest](../modules/rest.md).MethodMetadata

## Table of contents

### Properties

- [author](rest.MethodMetadata.md#author)
- [authorPicture](rest.MethodMetadata.md#authorpicture)
- [description](rest.MethodMetadata.md#description)
- [method](rest.MethodMetadata.md#method)
- [name](rest.MethodMetadata.md#name)
- [parameters](rest.MethodMetadata.md#parameters)

## Properties

### author

**author**: `string`

___

### authorPicture

**authorPicture**: `string`

___

### description

**description**: `string`

___

### method

**method**: ``"GET"`` \| ``"POST"`` \| ``"PUT"`` \| ``"DELETE"`` \| ``"OPTIONS"``

___

### name

**name**: `string`

___

### parameters

**parameters**: [`Parameter`](rest.Parameter.md)[]
53 changes: 53 additions & 0 deletions docs/interfaces/rest.Parameter.md
@@ -0,0 +1,53 @@
[# Masa React
- v0.11.0](../README.md) / [Exports](../modules.md) / [rest](../modules/rest.md) / Parameter

# Interface: Parameter

[rest](../modules/rest.md).Parameter

## Table of contents

### Properties

- [dataType](rest.Parameter.md#datatype)
- [default](rest.Parameter.md#default)
- [description](rest.Parameter.md#description)
- [key](rest.Parameter.md#key)
- [name](rest.Parameter.md#name)
- [required](rest.Parameter.md#required)

## Properties

### dataType

**dataType**: ``"string"`` \| ``"number"``

___

### default

**default**: `string`

___

### description

**description**: `string`

___

### key

**key**: `number`

___

### name

**name**: `string`

___

### required

**required**: ``"yes"`` \| ``"no"``
128 changes: 128 additions & 0 deletions docs/modules.md
@@ -0,0 +1,128 @@
[# Masa React
- v0.11.0](README.md) / Exports

# # Masa React
- v0.11.0

## Table of contents

### Namespaces

- [rest](modules/rest.md)

### Variables

- [addresses](modules.md#addresses)

### Functions

- [AccessTokenProvider](modules.md#accesstokenprovider)
- [MasaToolsProvider](modules.md#masatoolsprovider)
- [MasaToolsWrapper](modules.md#masatoolswrapper)
- [loadIdentityContracts](modules.md#loadidentitycontracts)
- [useContractCall](modules.md#usecontractcall)
- [useMasaTools](modules.md#usemasatools)

## Variables

### addresses

`Const` **addresses**: `Addresses`

## Functions

### AccessTokenProvider

**AccessTokenProvider**(`__namedParameters`): `Element`

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `AccessTokenProps` |

#### Returns

`Element`

___

### MasaToolsProvider

**MasaToolsProvider**(`__namedParameters`): `Element`

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `MasaToolsProviderProps` |

#### Returns

`Element`

___

### MasaToolsWrapper

**MasaToolsWrapper**(`__namedParameters`): `Element`

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `MasaToolsWrapperProps` |

#### Returns

`Element`

___

### loadIdentityContracts

**loadIdentityContracts**(`__namedParameters`): `Promise`<`IIdentityContracts`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `LoadContractArgs` |

#### Returns

`Promise`<`IIdentityContracts`\>

___

### useContractCall

**useContractCall**(`__namedParameters`): `Object`

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `Object` |
| `__namedParameters.method` | `Promise`<`any`\> |

#### Returns

`Object`

| Name | Type |
| :------ | :------ |
| `data` | `any` |
| `error` | `any` |
| `getData` | () => `any` |
| `loading` | `boolean` |

___

### useMasaTools

**useMasaTools**(): `MasaToolsShape`

#### Returns

`MasaToolsShape`

0 comments on commit 0bee2b0

Please sign in to comment.