@gluwa/connect-kit 0.1.0-next.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/.eslintrc.cjs +67 -0
- package/CHANGELOG.md +18 -0
- package/README.md +0 -0
- package/assets/creditwallet.png +0 -0
- package/assets/deeplink.png +0 -0
- package/assets/graphic.png +0 -0
- package/assets/metamask.png +0 -0
- package/assets/wc.png +0 -0
- package/dist/README.md +0 -0
- package/dist/_esm-PE6HOEBI.js +3909 -0
- package/dist/ccip-UBX2BH3T.js +15 -0
- package/dist/chunk-6KUZ225H.js +5259 -0
- package/dist/chunk-EVEWD66F.js +447 -0
- package/dist/chunk-U2IU7TQD.js +45 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +1820 -0
- package/dist/package.json +64 -0
- package/dist/secp256k1-FYSVLDVL.js +2311 -0
- package/package.json +57 -0
- package/src/ConnectModal.scss +627 -0
- package/src/ConnectModal.tsx +521 -0
- package/src/assets.d.ts +4 -0
- package/src/connector-meta.ts +41 -0
- package/src/creditConnectConnector.ts +451 -0
- package/src/hooks/useWagmiConnect.ts +125 -0
- package/src/index.ts +4 -0
- package/src/types.ts +34 -0
- package/src/utils/platform.ts +16 -0
- package/src/views/CreditWalletView.tsx +69 -0
- package/src/views/IdleView.tsx +10 -0
- package/src/views/MetaMaskView.tsx +89 -0
- package/src/views/WalletConnectView.tsx +266 -0
- package/tsconfig.json +8 -0
- package/tsup.config.ts +18 -0
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** @type {import('prettier').Config} */
|
|
2
|
+
const prettierConfig = {
|
|
3
|
+
printWidth: 100,
|
|
4
|
+
quoteProps: 'consistent',
|
|
5
|
+
singleQuote: true,
|
|
6
|
+
endOfLine: 'auto',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/** @type {import('eslint').Linter.Config} */
|
|
10
|
+
module.exports = {
|
|
11
|
+
root: true,
|
|
12
|
+
ignorePatterns: ['node_modules', 'dist', 'build', 'coverage', 'out', 'lib', '*.d.ts', 'tsup.config.ts'],
|
|
13
|
+
overrides: [
|
|
14
|
+
// source code (tsx)
|
|
15
|
+
{
|
|
16
|
+
files: ['src/**/*.tsx'],
|
|
17
|
+
parser: '@typescript-eslint/parser',
|
|
18
|
+
plugins: ['@typescript-eslint'],
|
|
19
|
+
extends: ['@gluwa/eslint-config-js', 'plugin:prettier/recommended'],
|
|
20
|
+
parserOptions: {
|
|
21
|
+
ecmaVersion: 'latest',
|
|
22
|
+
sourceType: 'module',
|
|
23
|
+
ecmaFeatures: { jsx: true },
|
|
24
|
+
},
|
|
25
|
+
rules: {
|
|
26
|
+
'import/no-absolute-path': 'off',
|
|
27
|
+
'operator-linebreak': ['off'],
|
|
28
|
+
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
29
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
30
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
31
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
32
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
33
|
+
'prettier/prettier': ['error', prettierConfig],
|
|
34
|
+
},
|
|
35
|
+
env: {
|
|
36
|
+
browser: true,
|
|
37
|
+
es6: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
// source code (ts)
|
|
41
|
+
{
|
|
42
|
+
files: ['src/**/*.ts'],
|
|
43
|
+
excludedFiles: '*.test.ts',
|
|
44
|
+
parser: '@typescript-eslint/parser',
|
|
45
|
+
plugins: ['@typescript-eslint'],
|
|
46
|
+
extends: ['@gluwa/eslint-config-js', 'plugin:prettier/recommended'],
|
|
47
|
+
parserOptions: {
|
|
48
|
+
ecmaVersion: 'latest',
|
|
49
|
+
sourceType: 'module',
|
|
50
|
+
},
|
|
51
|
+
rules: {
|
|
52
|
+
'import/no-absolute-path': 'off',
|
|
53
|
+
'operator-linebreak': ['off'],
|
|
54
|
+
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
55
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
56
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
57
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
58
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
59
|
+
'prettier/prettier': ['error', prettierConfig],
|
|
60
|
+
},
|
|
61
|
+
env: {
|
|
62
|
+
browser: true,
|
|
63
|
+
node: true,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
};
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @gluwa/wallet-kit
|
|
2
|
+
|
|
3
|
+
## 0.1.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8b3c876: change package name
|
|
8
|
+
|
|
9
|
+
## 0.1.0-next.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 4298fc5: Add @gluwa/wallet-kit — connect modal UI with WalletConnect, MetaMask, and Credit Wallet support
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [4298fc5]
|
|
18
|
+
- @gluwa/credit-connect-sdk@0.2.0-next.1
|
package/README.md
ADDED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/assets/wc.png
ADDED
|
Binary file
|
package/dist/README.md
ADDED
|
File without changes
|