Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: One button connector #139

Draft
wants to merge 95 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
1b4066b
feat: add new UI elements
Cussone Oct 10, 2024
6560d74
feat: add new 1 button connector WIP
Cussone Oct 10, 2024
8f7dcea
Merge branch 'refs/heads/feat/argent-one-button-connector' into feat/…
Cussone Oct 10, 2024
bf9294e
chore: install @argent/x-ui@next
Cussone Oct 23, 2024
2d26120
chore: use tailwind styles generated from x-ui
Cussone Oct 23, 2024
8ed021a
Merge pull request #138 from argentlabs/feat/argent-one-button-connec…
Cussone Oct 23, 2024
14267a7
chore: delete redundant component
Cussone Oct 29, 2024
44ce0a5
chore: inherit `color` for svg icons
Cussone Oct 29, 2024
110bbdf
chore: remove redundant component
Cussone Oct 29, 2024
1202fa3
fix: add missing tailwind's color tokens from `x-ui`
Cussone Oct 29, 2024
f743342
chore: improve button components
Cussone Oct 29, 2024
c777e5d
chore: rename component to more appropriate name
Cussone Oct 29, 2024
8612c92
chore: improve button component
Cussone Oct 29, 2024
9039438
fix: color
Cussone Oct 29, 2024
c57a8d8
feat: add component for rendering icons
Cussone Oct 29, 2024
fba46c4
chore: clean up and add missing functionality
Cussone Oct 29, 2024
6ff294e
fix: pass props and type `downloadLinks`
Cussone Oct 29, 2024
7097abc
chore: replace QR with loader, handle click
Cussone Oct 29, 2024
cc797b7
chore: pass props, adapt usage
Cussone Oct 29, 2024
bb2c00a
chore: connect buttons to handlers
Cussone Oct 29, 2024
3c43169
chore: type wallets, pass props
Cussone Oct 29, 2024
d571de8
feat: programmatically show install extension section
Cussone Oct 30, 2024
e5eecf4
chore: improve method naming
Cussone Oct 30, 2024
61ef1f0
fix: adapt type external
Cussone Oct 30, 2024
ea4008b
feat: create helpers for connectors
Cussone Oct 30, 2024
53d303e
feat: adapt modal to new features
Cussone Oct 30, 2024
015dff2
feat: create modal helpers
Cussone Oct 30, 2024
c743c6d
feat: handle new UI and only QR code approach
Cussone Oct 30, 2024
b3ecb62
chore: add todos
Cussone Oct 30, 2024
35dfa0c
chore: update `closeModal` usage according to API change
Cussone Oct 30, 2024
6903da0
chore: set `Argent` as default
Cussone Oct 30, 2024
6a166b3
chore: update logic to support standalone usage with new UI
Cussone Oct 30, 2024
c2fd50a
chore: add new types
Cussone Oct 30, 2024
50945e5
chore: add new exports
Cussone Oct 30, 2024
e187d3e
chore: handle `StarknetkitCompoundConnector`
Cussone Oct 30, 2024
9166775
chore: handle only qr code approach
Cussone Oct 30, 2024
71b7e6b
chore: add new icons for argent x, improve code
Cussone Oct 30, 2024
3fd36a7
feat: improve type StarknetkitCompoundConnector
Cussone Oct 30, 2024
966a9e7
feat: add new prop to `ConnectOptions`
Cussone Oct 30, 2024
64af087
chore: remove redundant code
Cussone Oct 30, 2024
a76c303
fix: ts error
Cussone Oct 30, 2024
902c3af
chore: update `DEFAULT_WEBWALLET_ICON`
Cussone Oct 30, 2024
0e81651
chore: rename ArgentCompound, update methods/interface, remove redundant
Cussone Oct 30, 2024
def3210
chore: adapt `connect` method to new UI approach
Cussone Oct 30, 2024
56083f4
chore: remove redundant code
Cussone Oct 30, 2024
113a1a3
chore: throw error if html nodes do not exist
Cussone Oct 31, 2024
c23616c
chore: fix ts error
Cussone Oct 31, 2024
7a44258
chore: add installed property to ModalWallet, handle install screen
Cussone Oct 31, 2024
b9acfbc
chore: fix ts error
Cussone Oct 31, 2024
6425b27
chore: improve check
Cussone Oct 31, 2024
e991747
fix: using wrong connector name/icon
Cussone Oct 31, 2024
b3f3ff4
chore: temporarily remove `files`
Cussone Oct 31, 2024
4f1f5a8
chore: fix comment
Cussone Oct 31, 2024
2eb258e
chore: fix vite build errors
Cussone Oct 31, 2024
41ab241
chore: take back `files` prop
Cussone Oct 31, 2024
7a8a75e
chore: add `beta` to push triggered branches
Cussone Oct 31, 2024
8869caa
Merge pull request #148 from argentlabs/feat/argent-one-button-connec…
Cussone Oct 31, 2024
92d522f
chore(release): 2.4.0-beta.1 [skip ci]
semantic-release-bot Oct 31, 2024
0e4aa84
feat: export `StarknetkitCompoundConnector`
Cussone Oct 31, 2024
a2d5423
chore(release): 2.4.0-beta.2 [skip ci]
semantic-release-bot Oct 31, 2024
de4cae8
fix: case when `window` is `undefined` in `getInjectedArgentX`
Cussone Nov 1, 2024
fcf264d
chore(release): 2.4.0-beta.3 [skip ci]
semantic-release-bot Nov 1, 2024
5e7cef2
fix: passing wrong theme to `DynamicIcon`
Cussone Nov 1, 2024
ff8305d
fix: logical error with modal closing
Cussone Nov 1, 2024
96c06e1
fix: ignore ts error
Cussone Nov 1, 2024
3c71667
fix: logical error, destroy modal if `resultType !== "wallet"`
Cussone Nov 1, 2024
e0669ce
chore(release): 2.4.0-beta.4 [skip ci]
semantic-release-bot Nov 1, 2024
6457371
fix: add missing `closeModalOld` for the old way of usage
Cussone Nov 6, 2024
cefa3c2
Merge pull request #152 from argentlabs/feat/argent-one-button-connec…
Cussone Nov 6, 2024
6eb7435
Merge pull request #147 from argentlabs/feat/argent-one-button-connec…
Cussone Nov 7, 2024
658fa46
chore: change `Argent` connector's constructor params
Cussone Nov 7, 2024
0245904
fix: usage of `Argent` connector
Cussone Nov 7, 2024
3cd4421
chore: implement `getLayout` function on modal
Cussone Nov 8, 2024
093f637
chore: show `failure` layout only on `connecting`/`qrCode` layouts
Cussone Nov 8, 2024
4649369
chore: delete redundant component
Cussone Nov 13, 2024
5279df0
refactor: remove redundant `Layout` prop
Cussone Nov 13, 2024
225e391
refactor: generalize `ArgentDownload` component
Cussone Nov 13, 2024
2378e18
refactor: implement changed ux, remove redundant logic
Cussone Nov 13, 2024
e8de757
Merge pull request #153 from argentlabs/refactor/improve-download-ux
Cussone Nov 13, 2024
959f42b
Merge branch 'refs/heads/develop' into feat/argent-one-button-connector
Cussone Nov 13, 2024
1b88b33
chore: add missing type
Cussone Nov 13, 2024
be04ce3
chore: use `Braavos` instead of `InjectedConnector`
Cussone Nov 13, 2024
09da0e2
refactor: add `Connector` to `ConnectOptionsWithConnectors.connectors`
Cussone Nov 13, 2024
f063b2f
refactor: add missing `Connector` after changing `connect` signature
Cussone Nov 13, 2024
010f3fc
feat: add new approval layout
Cussone Nov 13, 2024
bac6372
chore: add approval layout to modal
Cussone Nov 13, 2024
440012c
chore: rename success component
Cussone Nov 13, 2024
864d6e4
fix: missing import, missing error
Cussone Nov 13, 2024
960e17c
feat: add `approval` prop to `Layout` enum
Cussone Nov 13, 2024
94f970d
refactor: change timeout for closing modal
Cussone Nov 13, 2024
b47b23f
refactor: remove old and redundant logic, integrate new approval modal
Cussone Nov 13, 2024
3b2b33d
Merge pull request #154 from argentlabs/feat/approve-argent-mobile
Cussone Nov 13, 2024
d7bc2d4
refactor: move navigator helpers to separate file
Cussone Nov 13, 2024
752baeb
Merge branch 'refs/heads/develop' into feat/argent-one-button-connector
Cussone Nov 14, 2024
e991c89
fix: mobile connector bug
Cussone Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:svelte/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
"extraFileExtensions": [".svelte"]
},
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-semi": "off",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- develop
- main
- beta-braavos-mobile
- beta
- hotfix\/v[0-9]+.[0-9]+.[0-9]+

jobs:
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"singleQuote": false,
"semi": false,
Expand Down
40 changes: 30 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starknetkit",
"version": "2.4.1",
"version": "2.4.0-beta.4",
"repository": "github:argentlabs/starknetkit",
"private": false,
"browser": {
Expand All @@ -27,6 +27,11 @@
"import": "./dist/starknetkit.js",
"require": "./dist/starknetkit.cjs"
},
"./injected": {
"types": "./dist/injectedConnector.d.ts",
"import": "./dist/injectedConnector.js",
"require": "./dist/injectedConnector.cjs"
},
"./webwallet": {
"types": "./dist/webwalletConnector.d.ts",
"import": "./dist/webwalletConnector.js",
Expand All @@ -37,16 +42,26 @@
"import": "./dist/argentMobile.js",
"require": "./dist/argentMobile.cjs"
},
"./argent": {
"types": "./dist/argent.d.ts",
"import": "./dist/argent.js",
"require": "./dist/argent.cjs"
},
"./argentX": {
"types": "./dist/argentX.d.ts",
"import": "./dist/argentX.js",
"require": "./dist/argentX.cjs"
},
"./braavos": {
"types": "./dist/braavos.d.ts",
"import": "./dist/braavos.js",
"require": "./dist/braavos.cjs"
},
"./braavosMobile": {
"types": "./dist/braavosMobile.d.ts",
"import": "./dist/braavosMobile.js",
"require": "./dist/braavosMobile.cjs"
},
"./injected": {
"types": "./dist/injectedConnector.d.ts",
"import": "./dist/injectedConnector.js",
"require": "./dist/injectedConnector.cjs"
},
"./window": {
"types": "./dist/window.d.ts",
"import": "./dist/window.js",
Expand All @@ -56,15 +71,16 @@
"main": "./dist/starknetkit.cjs",
"module": "./dist/starknetkit.js",
"types": "./dist/starknetkit.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "vite build",
"check": "svelte-check --tsconfig ./tsconfig.json",
"dev": "vite build --watch"
},
"files": [
"dist"
],
"dependencies": {
"@argent/x-ui": "^1.70.1",
"@starknet-io/get-starknet": "^4.0.2",
"@starknet-io/get-starknet-core": "^4.0.2",
"@starknet-io/types-js": "^0.7.7",
Expand All @@ -88,7 +104,8 @@
"@types/async-retry": "^1.4.5",
"@types/lodash-es": "^4.17.8",
"@types/node": "^20.5.7",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^8.8.1",
"@walletconnect/ethereum-provider": "^2.11.0",
"@walletconnect/jsonrpc-provider": "^1.0.13",
"@walletconnect/signer-connection": "^2.11.0",
Expand All @@ -97,6 +114,8 @@
"autoprefixer": "^10.4.7",
"eslint": "^8.48.0",
"eslint-config-next": "^13.4.19",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-svelte": "^2.44.1",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"postcss": "^8.4.21",
Expand All @@ -106,6 +125,7 @@
"semantic-release": "^21.1.1",
"svelte": "^4.0.0",
"svelte-check": "^3.5.1",
"svelte-eslint-parser": "^0.41.1",
"svelte-preprocess": "^5.0.4",
"tailwindcss": "^3.1.6",
"tslib": "^2.4.0",
Expand Down
Loading