@kimafinance/kima-transaction-widget 1.1.13 → 1.1.14
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/dist/components/KimaTransactionWidget.d.ts +12 -6
- package/dist/components/TransactionWidget.d.ts +4 -2
- package/dist/components/TransferWidget.d.ts +5 -3
- package/dist/components/modals/BankPopup.d.ts +1 -0
- package/dist/components/reusable/NetworkDropdown.d.ts +1 -0
- package/dist/components/reusable/SingleForm.d.ts +1 -0
- package/dist/components/reusable/WalletButton.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +248 -198
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +189 -138
- package/dist/index.modern.js.map +1 -1
- package/dist/interface.d.ts +10 -3
- package/dist/store/optionSlice.d.ts +8 -2
- package/dist/store/selectors.d.ts +3 -0
- package/package.json +88 -87
package/dist/interface.d.ts
CHANGED
|
@@ -14,10 +14,14 @@ export declare enum CurrencyOptions {
|
|
|
14
14
|
USDK = "USDK",
|
|
15
15
|
G$ = "GDOLLAR"
|
|
16
16
|
}
|
|
17
|
-
export declare enum
|
|
17
|
+
export declare enum ColorModeOptions {
|
|
18
18
|
light = "light",
|
|
19
19
|
dark = "dark"
|
|
20
20
|
}
|
|
21
|
+
export declare enum DAppOptions {
|
|
22
|
+
G$ = "G$",
|
|
23
|
+
None = "none"
|
|
24
|
+
}
|
|
21
25
|
export interface TransactionOption {
|
|
22
26
|
targetChain: SupportNetworks;
|
|
23
27
|
targetAddress: string;
|
|
@@ -36,9 +40,12 @@ export interface CompliantOption {
|
|
|
36
40
|
xploriskBaseUrl?: string;
|
|
37
41
|
xploriskApiKey?: string;
|
|
38
42
|
}
|
|
39
|
-
export interface
|
|
40
|
-
|
|
43
|
+
export interface ThemeOptions {
|
|
44
|
+
colorMode?: ColorModeOptions;
|
|
41
45
|
fontSize?: FontSizeOptions;
|
|
46
|
+
fontFamily?: string;
|
|
47
|
+
backgroundColorLight?: string;
|
|
48
|
+
backgroundColorDark?: string;
|
|
42
49
|
}
|
|
43
50
|
export interface TransactionData {
|
|
44
51
|
sourceChain?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { ModeOptions, ThemeOptions, TransactionOption } from '../interface';
|
|
2
|
+
import { DAppOptions, ModeOptions, ThemeOptions, TransactionOption } from '../interface';
|
|
3
3
|
export interface OptionState {
|
|
4
4
|
theme: ThemeOptions;
|
|
5
5
|
mode: ModeOptions;
|
|
@@ -10,6 +10,9 @@ export interface OptionState {
|
|
|
10
10
|
helpPopup: boolean;
|
|
11
11
|
hashPopup: boolean;
|
|
12
12
|
bankPopup: boolean;
|
|
13
|
+
walletAutoConnect: boolean;
|
|
14
|
+
provider: any;
|
|
15
|
+
dAppOption: DAppOptions;
|
|
13
16
|
solanaProvider: any;
|
|
14
17
|
submitted: boolean;
|
|
15
18
|
amount: number;
|
|
@@ -41,6 +44,9 @@ export declare const optionSlice: import("@reduxjs/toolkit").Slice<OptionState,
|
|
|
41
44
|
setHelpPopup: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<boolean>) => void;
|
|
42
45
|
setHashPopup: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<boolean>) => void;
|
|
43
46
|
setBankPopup: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<boolean>) => void;
|
|
47
|
+
setProvider: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<any>) => void;
|
|
48
|
+
setDappOption: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<DAppOptions>) => void;
|
|
49
|
+
setWalletAutoConnect: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<boolean>) => void;
|
|
44
50
|
setSolanaProvider: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<any>) => void;
|
|
45
51
|
setSubmitted: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<boolean>) => void;
|
|
46
52
|
setTransactionOption: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<TransactionOption>) => void;
|
|
@@ -63,6 +69,6 @@ export declare const optionSlice: import("@reduxjs/toolkit").Slice<OptionState,
|
|
|
63
69
|
setTargetCompliant: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<string>) => void;
|
|
64
70
|
setUseFIAT: (state: import("immer/dist/internal").WritableDraft<OptionState>, action: PayloadAction<boolean>) => void;
|
|
65
71
|
}, "option">;
|
|
66
|
-
export declare const initialize: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<any>, setTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeOptions, any>, setOriginNetwork: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTargetNetwork: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTargetAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setConnectModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setHelpPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setHashPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setBankPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSolanaProvider: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, any>, setSubmitted: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setTransactionOption: import("@reduxjs/toolkit").ActionCreatorWithPayload<TransactionOption, any>, setAmount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, any>, setApproving: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSubmitting: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setConfirming: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setErrorHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<Function, any>, setCloseHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<Function, any>, setSuccessHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<Function, any>, setServiceFee: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, any>, setMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<ModeOptions, any>, setFeeDeduct: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setBackendUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setNodeProviderQuery: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTxId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, any>, setCurrencyOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, any>, setCompliantOption: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSourceCompliant: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTargetCompliant: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setUseFIAT: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>;
|
|
72
|
+
export declare const initialize: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<any>, setTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeOptions, any>, setOriginNetwork: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTargetNetwork: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTargetAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setConnectModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setHelpPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setHashPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setBankPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSolanaProvider: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, any>, setProvider: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, any>, setDappOption: import("@reduxjs/toolkit").ActionCreatorWithPayload<DAppOptions, any>, setWalletAutoConnect: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSubmitted: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setTransactionOption: import("@reduxjs/toolkit").ActionCreatorWithPayload<TransactionOption, any>, setAmount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, any>, setApproving: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSubmitting: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setConfirming: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setErrorHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<Function, any>, setCloseHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<Function, any>, setSuccessHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<Function, any>, setServiceFee: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, any>, setMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<ModeOptions, any>, setFeeDeduct: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setBackendUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setNodeProviderQuery: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTxId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, any>, setCurrencyOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, any>, setCompliantOption: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>, setSourceCompliant: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setTargetCompliant: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, any>, setUseFIAT: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, any>;
|
|
67
73
|
declare const _default: import("redux").Reducer<OptionState, import("redux").AnyAction>;
|
|
68
74
|
export default _default;
|
|
@@ -8,6 +8,9 @@ export declare const selectHelpPopup: (state: RootState) => boolean;
|
|
|
8
8
|
export declare const selectHashPopup: (state: RootState) => boolean;
|
|
9
9
|
export declare const selectBankPopup: (state: RootState) => boolean;
|
|
10
10
|
export declare const selectSolanaProvider: (state: RootState) => any;
|
|
11
|
+
export declare const selectProvider: (state: RootState) => any;
|
|
12
|
+
export declare const selectDappOption: (state: RootState) => import("..").DAppOptions;
|
|
13
|
+
export declare const selectWalletAutoConnect: (state: RootState) => boolean;
|
|
11
14
|
export declare const selectSubmitted: (state: RootState) => boolean;
|
|
12
15
|
export declare const selectTransactionOption: (state: RootState) => import("../interface").TransactionOption | undefined;
|
|
13
16
|
export declare const selectAmount: (state: RootState) => number;
|
package/package.json
CHANGED
|
@@ -1,87 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kimafinance/kima-transaction-widget",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Kima Transaction Widget",
|
|
5
|
-
"author": "",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "https://github.com/kima-finance/kima-transaction-widget",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/index.modern.js",
|
|
10
|
-
"source": "src/index.tsx",
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=10"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "microbundle-crl --jsx jsx --no-compress --format modern,cjs --css-modules false",
|
|
16
|
-
"start": "microbundle-crl watch --no-compress --format modern,cjs --css-modules false",
|
|
17
|
-
"sass": "sass src/styles/main.scss src/index.css -w",
|
|
18
|
-
"run-build": "serve -s ./example/build -p 3001",
|
|
19
|
-
"run-test": "react-scripts test",
|
|
20
|
-
"test": "npm-run-all -p -l run-build run-test"
|
|
21
|
-
},
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"react": ">=17.0.0",
|
|
24
|
-
"react-dom": ">=17.0.1",
|
|
25
|
-
"react-redux": ">=7.2.2",
|
|
26
|
-
"redux": ">=4.1.2"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
30
|
-
"@testing-library/react": "^13.4.0",
|
|
31
|
-
"@testing-library/react-hooks": "^7.0.1",
|
|
32
|
-
"@types/jest": "^29.1.2",
|
|
33
|
-
"@types/node": "^18.8.3",
|
|
34
|
-
"@types/react": "^18.0.21",
|
|
35
|
-
"@types/react-dom": "^18.0.6",
|
|
36
|
-
"@types/react-redux": "^7.1.24",
|
|
37
|
-
"cross-env": "^7.0.2",
|
|
38
|
-
"gh-pages": "^4.0.0",
|
|
39
|
-
"identity-obj-proxy": "^3.0.0",
|
|
40
|
-
"jest": "^29.0.3",
|
|
41
|
-
"jest-environment-jsdom": "^29.3.1",
|
|
42
|
-
"microbundle-crl": "^0.13.10",
|
|
43
|
-
"npm-run-all": "^4.1.5",
|
|
44
|
-
"prettier": "^2.0.4",
|
|
45
|
-
"react": "^18.2.0",
|
|
46
|
-
"react-dom": "^18.2.0",
|
|
47
|
-
"react-scripts": "^5.0.1",
|
|
48
|
-
"serve": "^14.1.2",
|
|
49
|
-
"ts-jest": "^29.0.3",
|
|
50
|
-
"ts-node": "^10.9.1",
|
|
51
|
-
"typescript": "^4.8.4"
|
|
52
|
-
},
|
|
53
|
-
"files": [
|
|
54
|
-
"dist"
|
|
55
|
-
],
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"@ethersproject/constants": "^5.7.0",
|
|
58
|
-
"@ethersproject/contracts": "^5.7.0",
|
|
59
|
-
"@ethersproject/providers": "^5.7.2",
|
|
60
|
-
"@ethersproject/units": "^5.7.0",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@solana/
|
|
65
|
-
"@solana/wallet-adapter-
|
|
66
|
-
"@solana/wallet-adapter-
|
|
67
|
-
"@solana/
|
|
68
|
-
"@
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"crypto-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"redux": "^
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"stream-
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@kimafinance/kima-transaction-widget",
|
|
3
|
+
"version": "1.1.14",
|
|
4
|
+
"description": "Kima Transaction Widget",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "https://github.com/kima-finance/kima-transaction-widget",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.tsx",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "microbundle-crl --jsx jsx --no-compress --format modern,cjs --css-modules false",
|
|
16
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs --css-modules false",
|
|
17
|
+
"sass": "sass src/styles/main.scss src/index.css -w",
|
|
18
|
+
"run-build": "serve -s ./example/build -p 3001",
|
|
19
|
+
"run-test": "react-scripts test",
|
|
20
|
+
"test": "npm-run-all -p -l run-build run-test"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=17.0.0",
|
|
24
|
+
"react-dom": ">=17.0.1",
|
|
25
|
+
"react-redux": ">=7.2.2",
|
|
26
|
+
"redux": ">=4.1.2"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
30
|
+
"@testing-library/react": "^13.4.0",
|
|
31
|
+
"@testing-library/react-hooks": "^7.0.1",
|
|
32
|
+
"@types/jest": "^29.1.2",
|
|
33
|
+
"@types/node": "^18.8.3",
|
|
34
|
+
"@types/react": "^18.0.21",
|
|
35
|
+
"@types/react-dom": "^18.0.6",
|
|
36
|
+
"@types/react-redux": "^7.1.24",
|
|
37
|
+
"cross-env": "^7.0.2",
|
|
38
|
+
"gh-pages": "^4.0.0",
|
|
39
|
+
"identity-obj-proxy": "^3.0.0",
|
|
40
|
+
"jest": "^29.0.3",
|
|
41
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
42
|
+
"microbundle-crl": "^0.13.10",
|
|
43
|
+
"npm-run-all": "^4.1.5",
|
|
44
|
+
"prettier": "^2.0.4",
|
|
45
|
+
"react": "^18.2.0",
|
|
46
|
+
"react-dom": "^18.2.0",
|
|
47
|
+
"react-scripts": "^5.0.1",
|
|
48
|
+
"serve": "^14.1.2",
|
|
49
|
+
"ts-jest": "^29.0.3",
|
|
50
|
+
"ts-node": "^10.9.1",
|
|
51
|
+
"typescript": "^4.8.4"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist"
|
|
55
|
+
],
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@ethersproject/constants": "^5.7.0",
|
|
58
|
+
"@ethersproject/contracts": "^5.7.0",
|
|
59
|
+
"@ethersproject/providers": "^5.7.2",
|
|
60
|
+
"@ethersproject/units": "^5.7.0",
|
|
61
|
+
"@kimafinance/kima-transaction-widget": "file:.yalc/@kimafinance/kima-transaction-widget",
|
|
62
|
+
"@metamask/detect-provider": "^2.0.0",
|
|
63
|
+
"@reduxjs/toolkit": "^1.8.6",
|
|
64
|
+
"@solana/spl-token": "^0.3.5",
|
|
65
|
+
"@solana/wallet-adapter-base": "^0.9.18",
|
|
66
|
+
"@solana/wallet-adapter-react": "^0.15.20",
|
|
67
|
+
"@solana/wallet-adapter-wallets": "^0.19.3",
|
|
68
|
+
"@solana/web3.js": "^1.66.1",
|
|
69
|
+
"@types/crypto-js": "^4.1.1",
|
|
70
|
+
"animated-number-react": "^0.1.2",
|
|
71
|
+
"better-sqlite3": "^7.6.2",
|
|
72
|
+
"buffer-layout": "^1.2.2",
|
|
73
|
+
"crypto-browserify": "^3.12.0",
|
|
74
|
+
"crypto-js": "^4.1.1",
|
|
75
|
+
"ethers": "^5.7.2",
|
|
76
|
+
"https-browserify": "^1.0.0",
|
|
77
|
+
"os-browserify": "^0.3.0",
|
|
78
|
+
"path-browserify": "^1.0.1",
|
|
79
|
+
"puppeteer": "18.1.0",
|
|
80
|
+
"react-redux": "^8.0.4",
|
|
81
|
+
"redux": "^4.2.0",
|
|
82
|
+
"sass": "^1.58.1",
|
|
83
|
+
"stream-browserify": "^3.0.0",
|
|
84
|
+
"stream-http": "^3.2.0",
|
|
85
|
+
"url": "^0.11.0",
|
|
86
|
+
"web3": "1.7.4"
|
|
87
|
+
}
|
|
88
|
+
}
|