Skip to content

Commit f07e7e4

Browse files
authored
Merge pull request #45 from davisshaver/update-rainbowkit-wagmi
⬆️ Update WAGMI and RainbowKit to latest versions
2 parents d36c97e + ab40c7d commit f07e7e4

File tree

9 files changed

+669
-673
lines changed

9 files changed

+669
-673
lines changed

blocks/login-block/Edit.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ export default function Edit( {
125125
'wp-block-button',
126126
blockClassName,
127127
{
128-
[ `has-custom-width wp-block-button__width-${ width }` ]: width,
129-
[ `has-custom-font-size` ]: blockProps.style
130-
.fontSize,
128+
[ `has-custom-width wp-block-button__width-${ width }` ]:
129+
width,
130+
[ `has-custom-font-size` ]:
131+
blockProps.style.fontSize,
131132
}
132133
) }
133134
errorText={ errorText }

blocks/login-block/Save.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export default function save( { attributes, className } ) {
3939
'wp-block-button',
4040
blockClassName,
4141
{
42-
[ `has-custom-width wp-block-button__width-${ width }` ]: width,
42+
[ `has-custom-width wp-block-button__width-${ width }` ]:
43+
width,
4344
[ `has-custom-font-size` ]: blockProps.style.fontSize,
4445
}
4546
) }

blocks/login-block/block.json

Lines changed: 87 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,88 @@
11
{
2-
"apiVersion": 2,
3-
"attributes": {
4-
"backgroundColor": {
5-
"type": "string"
6-
},
7-
"checkWalletText": {
8-
"type": "string"
9-
},
10-
"errorText": {
11-
"type": "string"
12-
},
13-
"gradient": {
14-
"type": "string"
15-
},
16-
"loginText": {
17-
"type": "string"
18-
},
19-
"redirectBoomerang": {
20-
"type": "boolean"
21-
},
22-
"redirectURL": {
23-
"type": "string"
24-
},
25-
"textColor": {
26-
"type": "string"
27-
},
28-
"width": {
29-
"type": "number"
30-
}
31-
},
32-
"category": "widgets",
33-
"description": "Show RainbowKit Login login & logout links.",
34-
"icon": "money",
35-
"name": "wp-rainbow/login",
36-
"styles": [
37-
{
38-
"isDefault": true,
39-
"label": "Fill",
40-
"name": "fill"
41-
},
42-
{
43-
"label": "Outline",
44-
"name": "outline"
45-
}
46-
],
47-
"supports": {
48-
"__experimentalBorder": {
49-
"__experimentalDefaultControls": {
50-
"color": true,
51-
"radius": true,
52-
"style": true,
53-
"width": true
54-
},
55-
"__experimentalSkipSerialization": true,
56-
"color": true,
57-
"radius": true,
58-
"style": true,
59-
"width": true
60-
},
61-
"align": true,
62-
"anchor": true,
63-
"color": {
64-
"__experimentalDefaultControls": {
65-
"background": true,
66-
"text": true
67-
},
68-
"__experimentalSkipSerialization": true,
69-
"gradients": true
70-
},
71-
"html": false,
72-
"spacing": {
73-
"__experimentalDefaultControls": {
74-
"padding": true
75-
},
76-
"__experimentalSkipSerialization": true,
77-
"padding": [
78-
"horizontal",
79-
"vertical"
80-
]
81-
},
82-
"typography": {
83-
"__experimentalDefaultControls": {
84-
"fontSize": true
85-
},
86-
"__experimentalFontFamily": true,
87-
"fontSize": true
88-
}
89-
},
90-
"title": "RainbowKit Login"
91-
}
2+
"apiVersion": 2,
3+
"attributes": {
4+
"backgroundColor": {
5+
"type": "string"
6+
},
7+
"checkWalletText": {
8+
"type": "string"
9+
},
10+
"errorText": {
11+
"type": "string"
12+
},
13+
"gradient": {
14+
"type": "string"
15+
},
16+
"loginText": {
17+
"type": "string"
18+
},
19+
"redirectBoomerang": {
20+
"type": "boolean"
21+
},
22+
"redirectURL": {
23+
"type": "string"
24+
},
25+
"textColor": {
26+
"type": "string"
27+
},
28+
"width": {
29+
"type": "number"
30+
}
31+
},
32+
"category": "widgets",
33+
"description": "Show RainbowKit Login login & logout links.",
34+
"icon": "money",
35+
"name": "wp-rainbow/login",
36+
"styles": [
37+
{
38+
"isDefault": true,
39+
"label": "Fill",
40+
"name": "fill"
41+
},
42+
{
43+
"label": "Outline",
44+
"name": "outline"
45+
}
46+
],
47+
"supports": {
48+
"__experimentalBorder": {
49+
"__experimentalDefaultControls": {
50+
"color": true,
51+
"radius": true,
52+
"style": true,
53+
"width": true
54+
},
55+
"__experimentalSkipSerialization": true,
56+
"color": true,
57+
"radius": true,
58+
"style": true,
59+
"width": true
60+
},
61+
"align": true,
62+
"anchor": true,
63+
"color": {
64+
"__experimentalDefaultControls": {
65+
"background": true,
66+
"text": true
67+
},
68+
"__experimentalSkipSerialization": true,
69+
"gradients": true
70+
},
71+
"html": false,
72+
"spacing": {
73+
"__experimentalDefaultControls": {
74+
"padding": true
75+
},
76+
"__experimentalSkipSerialization": true,
77+
"padding": [ "horizontal", "vertical" ]
78+
},
79+
"typography": {
80+
"__experimentalDefaultControls": {
81+
"fontSize": true
82+
},
83+
"__experimentalFontFamily": true,
84+
"fontSize": true
85+
}
86+
},
87+
"title": "RainbowKit Login"
88+
}

composer.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"name": "wp-rainbow/wp-rainbow",
3-
"description": "RainbowKit Login",
4-
"type": "project",
5-
"license": "GPL-2.0-or-later",
6-
"authors": [
7-
{
8-
"name": "Davis Shaver",
9-
"email": "[email protected]"
10-
}
11-
],
12-
"require-dev": {
13-
"phpunit/phpunit": "^7.0",
14-
"alleyinteractive/alley-coding-standards": "^0.3.0"
15-
},
16-
"scripts": {
17-
"lint": "@phpcs",
18-
"lint:fix": "@phpcbf",
19-
"phpcbf": "phpcbf .",
20-
"phpcs": "phpcs . --runtime-set text_domain wp-rainbow --runtime-set prefixes wp_rainbow",
21-
"phpunit": "phpunit --config=phpunit.xml",
22-
"test": "@phpunit"
23-
},
24-
"config": {
25-
"allow-plugins": {
26-
"dealerdirect/phpcodesniffer-composer-installer": true,
27-
"alleyinteractive/composer-wordpress-autoloader": true
28-
}
29-
},
30-
"require": {
31-
"simplito/elliptic-php": "^1.0",
32-
"kornrunner/keccak": "^1.1",
33-
"web3p/web3.php": "^0.1.6"
34-
}
2+
"name": "wp-rainbow/wp-rainbow",
3+
"description": "RainbowKit Login",
4+
"type": "project",
5+
"license": "GPL-2.0-or-later",
6+
"authors": [
7+
{
8+
"name": "Davis Shaver",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require-dev": {
13+
"phpunit/phpunit": "^7.0",
14+
"alleyinteractive/alley-coding-standards": "^0.3.0"
15+
},
16+
"scripts": {
17+
"lint": "@phpcs",
18+
"lint:fix": "@phpcbf",
19+
"phpcbf": "phpcbf .",
20+
"phpcs": "phpcs . --runtime-set text_domain wp-rainbow --runtime-set prefixes wp_rainbow",
21+
"phpunit": "phpunit --config=phpunit.xml",
22+
"test": "@phpunit"
23+
},
24+
"config": {
25+
"allow-plugins": {
26+
"dealerdirect/phpcodesniffer-composer-installer": true,
27+
"alleyinteractive/composer-wordpress-autoloader": true
28+
}
29+
},
30+
"require": {
31+
"simplito/elliptic-php": "^1.0",
32+
"kornrunner/keccak": "^1.1",
33+
"web3p/web3.php": "^0.1.6"
34+
}
3535
}

package.json

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,58 @@
11
{
2-
"name": "wp-rainbow",
3-
"version": "0.2.8",
4-
"description": "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)",
5-
"author": "Davis Shaver",
6-
"license": "GPL-2.0-or-later",
7-
"keywords": [
8-
"Sign-In With Ethereum",
9-
"RainbowKit",
10-
"WordPress",
11-
"SSO",
12-
"web3"
13-
],
14-
"homepage": "https://wp-rainbow.davisshaver.com/",
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/davisshaver/wp-rainbow.git"
18-
},
19-
"bugs": {
20-
"email": "[email protected]",
21-
"url": "https://github.com/davisshaver/wp-rainbow/issues"
22-
},
23-
"dependencies": {
24-
"@rainbow-me/rainbowkit": "^0.2.4",
25-
"@wordpress/block-editor": "^9.2.0",
26-
"@wordpress/blocks": "^11.9.0",
27-
"@wordpress/components": "^19.12.0",
28-
"@wordpress/i18n": "^4.10.0",
29-
"classnames": "^2.3.1",
30-
"ethers": "^5.6.8",
31-
"process": "^0.11.10",
32-
"prop-types": "^15.8.1",
33-
"react-style-proptype": "^3.2.2",
34-
"siwe": "^1.1.6",
35-
"util": "^0.12.4",
36-
"wagmi": "^0.4.11"
37-
},
38-
"devDependencies": {
39-
"@wordpress/scripts": "^22.5.0",
40-
"css-loader": "^6.7.1",
41-
"eslint-config-airbnb": "^19.0.4",
42-
"style-loader": "^3.3.1",
43-
"webpack": "^5.72.0"
44-
},
45-
"scripts": {
46-
"build": "wp-scripts build",
47-
"check-engines": "wp-scripts check-engines",
48-
"check-licenses": "wp-scripts check-licenses",
49-
"format": "wp-scripts format",
50-
"lint:css": "wp-scripts lint-style",
51-
"lint:js": "wp-scripts lint-js",
52-
"lint:md-docs": "wp-scripts lint-md-docs",
53-
"lint:pkg-json": "wp-scripts lint-pkg-json",
54-
"packages-update": "wp-scripts packages-update",
55-
"start": "wp-scripts start"
56-
}
57-
}
2+
"name": "wp-rainbow",
3+
"version": "0.2.9",
4+
"description": "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)",
5+
"author": "Davis Shaver",
6+
"license": "GPL-2.0-or-later",
7+
"keywords": [
8+
"Sign-In With Ethereum",
9+
"RainbowKit",
10+
"WordPress",
11+
"SSO",
12+
"web3"
13+
],
14+
"homepage": "https://wp-rainbow.davisshaver.com/",
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/davisshaver/wp-rainbow.git"
18+
},
19+
"bugs": {
20+
"email": "[email protected]",
21+
"url": "https://github.com/davisshaver/wp-rainbow/issues"
22+
},
23+
"dependencies": {
24+
"@rainbow-me/rainbowkit": "^0.4.5",
25+
"@wordpress/block-editor": "^9.6.0",
26+
"@wordpress/blocks": "^11.13.0",
27+
"@wordpress/components": "^19.16.0",
28+
"@wordpress/i18n": "^4.14.0",
29+
"classnames": "^2.3.1",
30+
"ethers": "^5.6.9",
31+
"process": "^0.11.10",
32+
"prop-types": "^15.8.1",
33+
"react-style-proptype": "^3.2.2",
34+
"siwe": "^1.1.6",
35+
"util": "^0.12.4",
36+
"wagmi": "^0.6.1"
37+
},
38+
"devDependencies": {
39+
"@wordpress/scripts": "^23.6.0",
40+
"css-loader": "^6.7.1",
41+
"eslint-config-airbnb": "^19.0.4",
42+
"style-loader": "^3.3.1",
43+
"webpack": "^5.74 .0",
44+
"webpack-cli": "^4.10.0"
45+
},
46+
"scripts": {
47+
"build": "wp-scripts build",
48+
"check-engines": "wp-scripts check-engines",
49+
"check-licenses": "wp-scripts check-licenses",
50+
"format": "wp-scripts format",
51+
"lint:css": "wp-scripts lint-style",
52+
"lint:js": "wp-scripts lint-js",
53+
"lint:md-docs": "wp-scripts lint-md-docs",
54+
"lint:pkg-json": "wp-scripts lint-pkg-json",
55+
"packages-update": "wp-scripts packages-update",
56+
"start": "wp-scripts start"
57+
}
58+
}

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Find reference implementations of all filters in [example plugin here](https://g
4545

4646
== Changelog ==
4747

48+
= 0.2.9 =
49+
* Update WAGMI and RainbowKit to latest versions
50+
4851
= 0.2.8 =
4952
* Improved consistency around RainbowKit Login name
5053

0 commit comments

Comments
 (0)