@monerium/sdk-react-provider 0.0.10 → 0.1.2
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 +14 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +13 -1
- package/dist/index.mjs +9 -1152
- package/package.json +39 -9
- package/CHANGELOG.md +0 -101
- package/dist/lib/context.d.ts +0 -20
- package/dist/lib/provider.d.ts +0 -9
- package/dist/package.json +0 -20
package/package.json
CHANGED
|
@@ -1,20 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monerium/sdk-react-provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "React provider for the Monerium SDK.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/monerium/js-monorepo.git",
|
|
9
|
+
"directory": "packages/sdk-react-provider"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/monerium/js-monorepo/issues"
|
|
13
|
+
},
|
|
4
14
|
"main": "./dist/index.js",
|
|
15
|
+
"module": "./dist/index.mjs",
|
|
5
16
|
"types": "./dist/index.d.ts",
|
|
6
17
|
"exports": {
|
|
7
18
|
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
8
20
|
"import": "./dist/index.mjs",
|
|
9
21
|
"require": "./dist/index.js"
|
|
10
22
|
}
|
|
11
23
|
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/monerium/public-monorepo.git",
|
|
15
|
-
"directory": "libs/sdk-react-provider"
|
|
16
|
-
},
|
|
17
24
|
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
"dist/index.js",
|
|
26
|
+
"dist/index.mjs",
|
|
27
|
+
"dist/index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@monerium/sdk": "2.13.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@types/react": "^18.2.61",
|
|
34
|
+
"react": "^18.2.0",
|
|
35
|
+
"react-dom": "^18.2.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@testing-library/dom": "^10.1.0",
|
|
39
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
40
|
+
"@testing-library/react": "^16.0.0"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"dev": "tsup --watch",
|
|
44
|
+
"build": "tsup",
|
|
45
|
+
"lint": "eslint . --fix",
|
|
46
|
+
"pub:pre": "pnpm publish --no-git-checks --dry-run",
|
|
47
|
+
"test": "jest",
|
|
48
|
+
"test:watch": "jest --watch"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [0.0.10](https://github.com/monerium/public-monorepo/compare/sdk-react-provider-v0.0.9...sdk-react-provider-v0.0.10) (2023-11-17)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
### Bug Fixes
|
|
7
|
-
|
|
8
|
-
* broken build 0.0.9 ([b1a4307](https://github.com/monerium/public-monorepo/commit/b1a43075435d900cbfc7b3abf44977e05337e540))
|
|
9
|
-
|
|
10
|
-
## [0.0.9](https://github.com/monerium/public-monorepo/compare/sdk-react-provider-v0.0.8...sdk-react-provider-v0.0.9) (2023-11-17)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
* **react-provider:** force version update ([c2895de](https://github.com/monerium/public-monorepo/commit/c2895de0a0a019bdfb31ca3b0e52ebd7fa7348ca))
|
|
16
|
-
|
|
17
|
-
## [0.0.8](https://github.com/monerium/public-monorepo/compare/sdk-react-provider-v0.0.8...sdk-react-provider-v0.0.8) (2023-11-17)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Features
|
|
21
|
-
|
|
22
|
-
* add docs ([f5ba19d](https://github.com/monerium/public-monorepo/commit/f5ba19d5600e01cd0c97467a0a1f2fe94a2f40fc))
|
|
23
|
-
* sdk provider ([9c2defb](https://github.com/monerium/public-monorepo/commit/9c2defb626c7cb10ca98f184ec28171af9a29d3d))
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
|
|
28
|
-
* . ([8d70c4d](https://github.com/monerium/public-monorepo/commit/8d70c4d08b9e52e70ca47c2b5e4d83ef0e6187d8))
|
|
29
|
-
* add codesandbox demo to readme ([034dcef](https://github.com/monerium/public-monorepo/commit/034dcefdb26a7d97e3f0dae3c4fad02ed410d808))
|
|
30
|
-
* add manifest to release-please GH action ([875b5c5](https://github.com/monerium/public-monorepo/commit/875b5c581885eb2f56b6f8336f1e25e0a2b89887))
|
|
31
|
-
* add removal date to deprecated methods and add connect as deprecated ([c1e02e2](https://github.com/monerium/public-monorepo/commit/c1e02e273b08b091475757e0e68051098e20a5a0))
|
|
32
|
-
* add yarnrc to each lib ([6dc9f7a](https://github.com/monerium/public-monorepo/commit/6dc9f7a4a46e24596c862df83823f90be5dad803))
|
|
33
|
-
* correct prop for initializing class ([cc509bf](https://github.com/monerium/public-monorepo/commit/cc509bffe5f7ef3c15a52af3cc18a1e89fd3b9ac))
|
|
34
|
-
* fix ([6f9eef5](https://github.com/monerium/public-monorepo/commit/6f9eef5333d407a3ec95a84defb3adc1d9c6f7e8))
|
|
35
|
-
* publish ([537b336](https://github.com/monerium/public-monorepo/commit/537b336180df288e0653b0db7230ae84758f8475))
|
|
36
|
-
* publish not working ([50a2a05](https://github.com/monerium/public-monorepo/commit/50a2a0583c03ef7a66a605c8215f72256192b8e2))
|
|
37
|
-
* releaseas ([db309d2](https://github.com/monerium/public-monorepo/commit/db309d2635196bac5df230e886d70c395c58b06b))
|
|
38
|
-
* remove comment from manifest ([9ac4fcf](https://github.com/monerium/public-monorepo/commit/9ac4fcf9fa06d41fe8f6ea2cd9adc7253a77e4de))
|
|
39
|
-
* remove unused dep ([6f3defe](https://github.com/monerium/public-monorepo/commit/6f3defebe9b25d2e64f5598eebe039bab199d541))
|
|
40
|
-
* **sdk-react-provider:** add monerium/sdk as dep ([e43ac29](https://github.com/monerium/public-monorepo/commit/e43ac29d202c02789f1efa7354f5b0c9a1d5a8bb))
|
|
41
|
-
* test: ([e122f61](https://github.com/monerium/public-monorepo/commit/e122f61e5f907785b6076bfda855c275bcfce1d6))
|
|
42
|
-
* testing ([aa5057d](https://github.com/monerium/public-monorepo/commit/aa5057dcc5a6e1f68e50833097c1379d2f2c00f5))
|
|
43
|
-
* testing GH actions ([7ac3aba](https://github.com/monerium/public-monorepo/commit/7ac3abab83d9b81136776a2c7cbc323d8a64be5e))
|
|
44
|
-
* tests and release action ([a18438c](https://github.com/monerium/public-monorepo/commit/a18438c2974e79975722afe8f7f9679358f32da5))
|
|
45
|
-
* trigger both packages ([a8db647](https://github.com/monerium/public-monorepo/commit/a8db647e694abd753bdb06df352c1d72617d7e67))
|
|
46
|
-
* uff ([ae8e9e5](https://github.com/monerium/public-monorepo/commit/ae8e9e510b5fad9997addd31e1153e9ef66a9d5c))
|
|
47
|
-
* yarn instead of npm ([5b86535](https://github.com/monerium/public-monorepo/commit/5b86535ed225effa0d13b6b60388bf05783ebe63))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Miscellaneous Chores
|
|
51
|
-
|
|
52
|
-
* release 0.0.4 ([c057779](https://github.com/monerium/public-monorepo/commit/c057779574346cbc448ca8b8605457afb8abaa56))
|
|
53
|
-
|
|
54
|
-
## [0.0.8](https://github.com/monerium/public-monorepo/compare/sdk-react-provider-v0.0.8...sdk-react-provider-v0.0.8) (2023-11-17)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Features
|
|
58
|
-
|
|
59
|
-
* add docs ([f5ba19d](https://github.com/monerium/public-monorepo/commit/f5ba19d5600e01cd0c97467a0a1f2fe94a2f40fc))
|
|
60
|
-
* sdk provider ([9c2defb](https://github.com/monerium/public-monorepo/commit/9c2defb626c7cb10ca98f184ec28171af9a29d3d))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Bug Fixes
|
|
64
|
-
|
|
65
|
-
* . ([8d70c4d](https://github.com/monerium/public-monorepo/commit/8d70c4d08b9e52e70ca47c2b5e4d83ef0e6187d8))
|
|
66
|
-
* add codesandbox demo to readme ([034dcef](https://github.com/monerium/public-monorepo/commit/034dcefdb26a7d97e3f0dae3c4fad02ed410d808))
|
|
67
|
-
* add manifest to release-please GH action ([875b5c5](https://github.com/monerium/public-monorepo/commit/875b5c581885eb2f56b6f8336f1e25e0a2b89887))
|
|
68
|
-
* add removal date to deprecated methods and add connect as deprecated ([c1e02e2](https://github.com/monerium/public-monorepo/commit/c1e02e273b08b091475757e0e68051098e20a5a0))
|
|
69
|
-
* add yarnrc to each lib ([6dc9f7a](https://github.com/monerium/public-monorepo/commit/6dc9f7a4a46e24596c862df83823f90be5dad803))
|
|
70
|
-
* correct prop for initializing class ([cc509bf](https://github.com/monerium/public-monorepo/commit/cc509bffe5f7ef3c15a52af3cc18a1e89fd3b9ac))
|
|
71
|
-
* fix ([6f9eef5](https://github.com/monerium/public-monorepo/commit/6f9eef5333d407a3ec95a84defb3adc1d9c6f7e8))
|
|
72
|
-
* publish ([537b336](https://github.com/monerium/public-monorepo/commit/537b336180df288e0653b0db7230ae84758f8475))
|
|
73
|
-
* publish not working ([50a2a05](https://github.com/monerium/public-monorepo/commit/50a2a0583c03ef7a66a605c8215f72256192b8e2))
|
|
74
|
-
* releaseas ([db309d2](https://github.com/monerium/public-monorepo/commit/db309d2635196bac5df230e886d70c395c58b06b))
|
|
75
|
-
* remove comment from manifest ([9ac4fcf](https://github.com/monerium/public-monorepo/commit/9ac4fcf9fa06d41fe8f6ea2cd9adc7253a77e4de))
|
|
76
|
-
* remove unused dep ([6f3defe](https://github.com/monerium/public-monorepo/commit/6f3defebe9b25d2e64f5598eebe039bab199d541))
|
|
77
|
-
* **sdk-react-provider:** add monerium/sdk as dep ([e43ac29](https://github.com/monerium/public-monorepo/commit/e43ac29d202c02789f1efa7354f5b0c9a1d5a8bb))
|
|
78
|
-
* test: ([e122f61](https://github.com/monerium/public-monorepo/commit/e122f61e5f907785b6076bfda855c275bcfce1d6))
|
|
79
|
-
* testing ([aa5057d](https://github.com/monerium/public-monorepo/commit/aa5057dcc5a6e1f68e50833097c1379d2f2c00f5))
|
|
80
|
-
* testing GH actions ([7ac3aba](https://github.com/monerium/public-monorepo/commit/7ac3abab83d9b81136776a2c7cbc323d8a64be5e))
|
|
81
|
-
* trigger both packages ([a8db647](https://github.com/monerium/public-monorepo/commit/a8db647e694abd753bdb06df352c1d72617d7e67))
|
|
82
|
-
* uff ([ae8e9e5](https://github.com/monerium/public-monorepo/commit/ae8e9e510b5fad9997addd31e1153e9ef66a9d5c))
|
|
83
|
-
* yarn instead of npm ([5b86535](https://github.com/monerium/public-monorepo/commit/5b86535ed225effa0d13b6b60388bf05783ebe63))
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Miscellaneous Chores
|
|
87
|
-
|
|
88
|
-
* release 0.0.4 ([c057779](https://github.com/monerium/public-monorepo/commit/c057779574346cbc448ca8b8605457afb8abaa56))
|
|
89
|
-
|
|
90
|
-
## [0.0.8](https://github.com/monerium/public-monorepo/compare/sdk-react-provider-v0.0.7...sdk-react-provider-v0.0.8) (2023-11-17)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
### Bug Fixes
|
|
94
|
-
|
|
95
|
-
* add removal date to deprecated methods and add connect as deprecated ([c1e02e2](https://github.com/monerium/public-monorepo/commit/c1e02e273b08b091475757e0e68051098e20a5a0))
|
|
96
|
-
|
|
97
|
-
## [0.0.7](https://github.com/monerium/public-monorepo/compare/sdk-react-provider-v0.0.7...sdk-react-provider-v0.0.7) (2023-11-13)
|
|
98
|
-
|
|
99
|
-
### Features
|
|
100
|
-
|
|
101
|
-
- initial commit
|
package/dist/lib/context.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Profile, Balances, LinkAddress, Order, NewOrder, Token } from '@monerium/sdk';
|
|
3
|
-
interface MoneriumContextValue {
|
|
4
|
-
authorize: () => Promise<void>;
|
|
5
|
-
isAuthorized: boolean;
|
|
6
|
-
profile: Profile | null;
|
|
7
|
-
balances: Balances[] | null;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
loadingPlaceOrder: boolean;
|
|
10
|
-
loadingLinkAddress: boolean;
|
|
11
|
-
loadingBalances: boolean;
|
|
12
|
-
getBalances: () => Promise<void>;
|
|
13
|
-
linkAddress: (addressDetails: LinkAddress) => Promise<unknown>;
|
|
14
|
-
placeOrder: (orderDetails: NewOrder, supportingDocument?: File) => Promise<void>;
|
|
15
|
-
orders: Order[];
|
|
16
|
-
tokens: Token[];
|
|
17
|
-
error: unknown;
|
|
18
|
-
}
|
|
19
|
-
export declare const MoneriumContext: import("react").Context<MoneriumContextValue | null>;
|
|
20
|
-
export {};
|
package/dist/lib/provider.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
interface MoneriumProviderProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
clientId?: string;
|
|
5
|
-
redirectUrl?: string;
|
|
6
|
-
environment?: 'sandbox' | 'production';
|
|
7
|
-
}
|
|
8
|
-
export declare const MoneriumProvider: FC<MoneriumProviderProps>;
|
|
9
|
-
export {};
|
package/dist/package.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@monerium/sdk-react-provider",
|
|
3
|
-
"version": "0.0.10",
|
|
4
|
-
"main": "./dist/index.js",
|
|
5
|
-
"types": "./dist/index.d.ts",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": {
|
|
8
|
-
"import": "./dist/index.mjs",
|
|
9
|
-
"require": "./dist/index.js"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/monerium/public-monorepo.git",
|
|
15
|
-
"directory": "libs/sdk-react-provider"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
]
|
|
20
|
-
}
|