back-testing-react 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/back-testing-map/back-testing-map.tsx +12 -1
- package/src/components/back-testing-payout-info/back-testing-payout-info.css +5 -2
- package/src/components/back-testing-stepper/back-testing-stepper.tsx +1 -1
- package/src/components/back-testing-wizard/back-testing-wizard.stories.tsx +2 -2
package/README.md
CHANGED
|
@@ -1,2 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
back-testing-react
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
Parametric back testing web modules developed by [NormanMax Insurance Solutions](https://normanmaxinsurancesolutions.com/)
|
|
5
|
+
|
|
6
|
+
About
|
|
7
|
+
-----
|
|
8
|
+
|
|
9
|
+
This is a small React library for use in Node.js environments,
|
|
10
|
+
providing the ability to run BackTesting components and
|
|
11
|
+
applications.
|
|
12
|
+
|
|
13
|
+
NOTICE
|
|
14
|
+
------
|
|
15
|
+
|
|
16
|
+
The NormanMax BackTesting requires an mapAccessToken and an apiAccessToken
|
|
17
|
+
for the components to be utilized.
|
|
18
|
+
|
|
19
|
+
Installation
|
|
20
|
+
------------
|
|
21
|
+
|
|
22
|
+
```shell
|
|
23
|
+
$ npm install back-testing-react
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Usage
|
|
27
|
+
-----
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
import { BackTestingWizard } from 'back-testing-react'
|
|
31
|
+
|
|
32
|
+
function App() {
|
|
33
|
+
return(
|
|
34
|
+
<div style={{height:'100vh',width:'100vw'}}>
|
|
35
|
+
<BackTestingWizard
|
|
36
|
+
mapAccessToken="..."
|
|
37
|
+
apiAccessToken="..."
|
|
38
|
+
env='uat'
|
|
39
|
+
selectedProxyPayoutOptionIndex={0}
|
|
40
|
+
proxyPayoutOptions={[
|
|
41
|
+
{key:'Sample Payouts List #1', value:[{category: 10, payout: 0.75},...]},
|
|
42
|
+
{key:'Sample Payouts List #2', value:[{category: 10, payout: 0.75},...]},
|
|
43
|
+
{key:'Sample Payouts List #3', value:[{category: 10, payout: 0.75},...]},
|
|
44
|
+
]}
|
|
45
|
+
selectedAnemometerPayoutOptionIndex={0}
|
|
46
|
+
anemometerPayoutOptions={[
|
|
47
|
+
{key:'Sample Payouts List #1', value:[{category: 10, payout: 0.75},...]},
|
|
48
|
+
{key:'Sample Payouts List #2', value:[{category: 10, payout: 0.75},...]},
|
|
49
|
+
{key:'Sample Payouts List #3', value:[{category: 10, payout: 0.75},...]},
|
|
50
|
+
]}
|
|
51
|
+
selectedCIACPayoutOptionIndex={0}
|
|
52
|
+
ciacPayoutOptions={[
|
|
53
|
+
{key:'Sample Payouts List #1', value:[{category: 10, payout: 0.75},...]},
|
|
54
|
+
{key:'Sample Payouts List #2', value:[{category: 10, payout: 0.75},...]},
|
|
55
|
+
]}
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default App
|
|
62
|
+
```
|