@kryptos_connect/mobile-sdk 1.0.6-dev.1 → 2.0.1-dev.0
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 +163 -539
- package/dist/index.cjs +367 -0
- package/dist/index.d.cts +44 -0
- package/dist/index.d.ts +36 -72
- package/dist/index.js +311 -4781
- package/package.json +18 -78
- package/LICENSE +0 -22
- package/dist/index.d.mts +0 -80
- package/dist/index.mjs +0 -4832
package/package.json
CHANGED
|
@@ -1,115 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kryptos_connect/mobile-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-dev.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"description": "Kryptos Connect
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "
|
|
10
|
-
"types": "
|
|
7
|
+
"description": "Kryptos Connect SDK — React Native wrapper. Opens the hosted connect page in a WebView modal.",
|
|
8
|
+
"main": "dist/index.cjs",
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"type": "module",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
14
|
-
"import": "./dist/index.
|
|
15
|
-
"require": "./dist/index.
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
],
|
|
21
19
|
"scripts": {
|
|
22
|
-
"build": "tsup src/index.ts
|
|
23
|
-
"dev": "tsup
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"lint": "eslint src --ext .ts,.tsx",
|
|
20
|
+
"build": "tsup && cp src/index.d.ts dist/index.d.ts && cp src/index.d.ts dist/index.d.cts",
|
|
21
|
+
"dev": "tsup --watch --onSuccess \"yalc push\"",
|
|
22
|
+
"push": "npm run build && yalc push",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
27
24
|
"prepublishOnly": "npm run build"
|
|
28
25
|
},
|
|
29
26
|
"keywords": [
|
|
30
27
|
"kryptos",
|
|
31
28
|
"connect",
|
|
29
|
+
"web3",
|
|
32
30
|
"react-native",
|
|
33
31
|
"expo",
|
|
34
|
-
"mobile",
|
|
35
|
-
"web3",
|
|
36
|
-
"web3-finance",
|
|
37
|
-
"blockchain",
|
|
38
|
-
"wallet",
|
|
39
32
|
"wallet-connect",
|
|
40
|
-
"
|
|
41
|
-
"crypto",
|
|
42
|
-
"cryptocurrency",
|
|
43
|
-
"integration",
|
|
44
|
-
"finance",
|
|
45
|
-
"portfolio",
|
|
46
|
-
"portfolio-management",
|
|
47
|
-
"wealth-management",
|
|
48
|
-
"wealth-tracker",
|
|
49
|
-
"accounting",
|
|
50
|
-
"tax-reporting",
|
|
51
|
-
"tax-compliance",
|
|
52
|
-
"crypto-tax",
|
|
53
|
-
"web3-wallet",
|
|
54
|
-
"crypto-wallet",
|
|
55
|
-
"blockchain-integration",
|
|
56
|
-
"ios",
|
|
57
|
-
"android"
|
|
33
|
+
"blockchain"
|
|
58
34
|
],
|
|
59
35
|
"author": "Kryptos",
|
|
60
36
|
"license": "MIT",
|
|
61
37
|
"peerDependencies": {
|
|
62
38
|
"react": ">=16.8.0",
|
|
63
39
|
"react-native": ">=0.60.0",
|
|
64
|
-
"react-native-
|
|
65
|
-
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
66
|
-
"@react-native-community/netinfo": "^11.4.0",
|
|
67
|
-
"@reown/appkit-ethers-react-native": "^2.0.1",
|
|
68
|
-
"@reown/appkit-react-native": "^2.0.1",
|
|
69
|
-
"@walletconnect/react-native-compat": "^2.23.0",
|
|
70
|
-
"babel-preset-expo": "^54.0.0",
|
|
71
|
-
"expo-application": "^7.0.0",
|
|
72
|
-
"react-native-get-random-values": "^1.11.0",
|
|
73
|
-
"viem": "^2.41.0"
|
|
74
|
-
},
|
|
75
|
-
"peerDependenciesMeta": {
|
|
76
|
-
"expo": {
|
|
77
|
-
"optional": true
|
|
78
|
-
}
|
|
40
|
+
"react-native-webview": ">=11.0.0"
|
|
79
41
|
},
|
|
80
42
|
"devDependencies": {
|
|
81
43
|
"@types/react": "^18.2.0",
|
|
82
|
-
"@types/react-native": "^0.72.0",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
84
|
-
"@typescript-eslint/parser": "^6.0.0",
|
|
85
|
-
"eslint": "^8.0.0",
|
|
86
|
-
"eslint-plugin-react": "^7.33.0",
|
|
87
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
88
|
-
"react": "^18.2.0",
|
|
89
|
-
"react-native": "^0.74.0",
|
|
90
|
-
"react-native-safe-area-context": "~5.6.0",
|
|
91
44
|
"tsup": "^8.0.0",
|
|
92
45
|
"typescript": "^5.0.0"
|
|
93
46
|
},
|
|
94
|
-
"dependencies": {
|
|
95
|
-
"axios": "^1.13.2",
|
|
96
|
-
"@react-native-async-storage/async-storage": "2.2.0",
|
|
97
|
-
"@react-native-community/netinfo": "11.4.1",
|
|
98
|
-
"@reown/appkit-ethers-react-native": "^2.0.1",
|
|
99
|
-
"@reown/appkit-react-native": "^2.0.1",
|
|
100
|
-
"@walletconnect/react-native-compat": "^2.23.0",
|
|
101
|
-
"babel-preset-expo": "^54.0.8",
|
|
102
|
-
"expo-application": "~7.0.8",
|
|
103
|
-
"react-native-get-random-values": "~1.11.0",
|
|
104
|
-
"react-native-svg": "15.12.1",
|
|
105
|
-
"viem": "^2.41.2"
|
|
106
|
-
},
|
|
107
47
|
"repository": {
|
|
108
48
|
"type": "git",
|
|
109
|
-
"url": "git+https://github.com/Kryptoskatt/kryptos-connect-
|
|
49
|
+
"url": "git+https://github.com/Kryptoskatt/kryptos-connect-js-sdk.git"
|
|
110
50
|
},
|
|
111
51
|
"bugs": {
|
|
112
|
-
"url": "https://github.com/Kryptoskatt/kryptos-connect-
|
|
52
|
+
"url": "https://github.com/Kryptoskatt/kryptos-connect-js-sdk/issues"
|
|
113
53
|
},
|
|
114
|
-
"homepage": "https://github.com/Kryptoskatt/kryptos-connect-
|
|
54
|
+
"homepage": "https://github.com/Kryptoskatt/kryptos-connect-js-sdk#readme"
|
|
115
55
|
}
|
package/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Kryptos
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|
package/dist/index.d.mts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { ImageSourcePropType } from 'react-native';
|
|
3
|
-
|
|
4
|
-
type KryptosConfig = {
|
|
5
|
-
appName: string;
|
|
6
|
-
appLogo?: ReactNode | string | ImageSourcePropType;
|
|
7
|
-
theme?: "light" | "dark";
|
|
8
|
-
clientId: string;
|
|
9
|
-
walletConnectProjectId?: string;
|
|
10
|
-
baseUrl?: string;
|
|
11
|
-
};
|
|
12
|
-
type ClientInfo = {
|
|
13
|
-
name: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
scopes: string;
|
|
16
|
-
project_stage: string;
|
|
17
|
-
};
|
|
18
|
-
type KryptosUser = {
|
|
19
|
-
is_anonymous: boolean;
|
|
20
|
-
user: {
|
|
21
|
-
email: string | null;
|
|
22
|
-
first_name: string | null;
|
|
23
|
-
};
|
|
24
|
-
user_id: string;
|
|
25
|
-
workspace_id: string;
|
|
26
|
-
workspace_name: string;
|
|
27
|
-
};
|
|
28
|
-
type UserConsent = {
|
|
29
|
-
public_token: string;
|
|
30
|
-
};
|
|
31
|
-
interface KryptosConnectButtonProps {
|
|
32
|
-
onSuccess?: (userConsent: UserConsent | null) => void;
|
|
33
|
-
onError?: () => void;
|
|
34
|
-
generateLinkToken: () => Promise<{
|
|
35
|
-
link_token: string;
|
|
36
|
-
isAuthorized?: boolean;
|
|
37
|
-
}>;
|
|
38
|
-
children?: ReactNode;
|
|
39
|
-
style?: object;
|
|
40
|
-
buttonStyle?: object;
|
|
41
|
-
integrationName?: string;
|
|
42
|
-
textStyle?: object;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare const KryptosConnectButton: React.FC<KryptosConnectButtonProps>;
|
|
46
|
-
interface KryptosConnectModalProps {
|
|
47
|
-
open: boolean;
|
|
48
|
-
setOpen: (open: boolean) => void;
|
|
49
|
-
onSuccess?: (userConsent: UserConsent | null) => void;
|
|
50
|
-
onError?: (error?: any) => void;
|
|
51
|
-
generateLinkToken: () => Promise<{
|
|
52
|
-
link_token: string;
|
|
53
|
-
isAuthorized?: boolean;
|
|
54
|
-
}>;
|
|
55
|
-
integrationName?: string;
|
|
56
|
-
}
|
|
57
|
-
declare const KryptosConnectModal: React.FC<KryptosConnectModalProps>;
|
|
58
|
-
|
|
59
|
-
type KryptosContextType = KryptosConfig & {
|
|
60
|
-
isInitialized: boolean;
|
|
61
|
-
setIsInitialized: (value: boolean) => void;
|
|
62
|
-
linkToken: string;
|
|
63
|
-
setLinkToken: (value: string) => void;
|
|
64
|
-
user: KryptosUser | null;
|
|
65
|
-
setUser: (value: KryptosUser | null) => void;
|
|
66
|
-
email: string;
|
|
67
|
-
setEmail: (value: string) => void;
|
|
68
|
-
userConsent: UserConsent | null;
|
|
69
|
-
setUserConsent: (value: UserConsent | null) => void;
|
|
70
|
-
clientInfo: ClientInfo | null;
|
|
71
|
-
isAuthorized: boolean;
|
|
72
|
-
setIsAuthorized: (value: boolean) => void;
|
|
73
|
-
};
|
|
74
|
-
declare const KryptosConnectProvider: React.FC<{
|
|
75
|
-
children: React.ReactNode;
|
|
76
|
-
config: KryptosConfig;
|
|
77
|
-
}>;
|
|
78
|
-
declare const useKryptosConnect: () => KryptosContextType;
|
|
79
|
-
|
|
80
|
-
export { KryptosConnectButton, type KryptosConnectButtonProps, KryptosConnectModal, KryptosConnectProvider, useKryptosConnect };
|