Skip to content

Commit

Permalink
Add support for Cart and Checkout Blocks (#1467)
Browse files Browse the repository at this point in the history
* Fix payment request button 3DS verification (not working in the blocks plugin)
* Regenerate pot file with wp-cli instead of wpi18n
* Add the `build` folder to release assets
* Add margin to GPay PRB to make room for shadow in blocks
* Use AJAX api when using Payment Request Buttons with Block-based checkouts (#1545)
  We now control the PRBs entirely through AJAX APIs.
  Translation strings have also been updated.


Co-authored-by: Albert Juhé Lluveras <[email protected]>
Co-authored-by: Kristófer R <[email protected]>
Co-authored-by: Ricardo Metring <[email protected]>
  • Loading branch information
4 people authored May 17, 2021
1 parent 33411e5 commit 326fbea
Show file tree
Hide file tree
Showing 52 changed files with 23,229 additions and 7,856 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
!.eslintrc.js
build
assets
docker
bin
docs
includes
languages
release
tasks
templates
vendor
tests
156 changes: 0 additions & 156 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
globals: {
_: false,
Backbone: false,
jQuery: false,
wp: false,
},
settings: {
jsdoc: { mode: 'typescript' },
// List of modules that are externals in our webpack config.
// This helps the `import/no-extraneous-dependencies` and
//`import/no-unresolved` rules account for them.
'import/core-modules': [
'@woocommerce/blocks-registry',
'@woocommerce/settings',
'@wordpress/i18n',
'@wordpress/is-shallow-equal',
'@wordpress/element',
],
},
};
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ package-lock.json export-ignore
composer.json export-ignore
phpunit.xml.dist export-ignore
phpunit.xml export-ignore
.eslintrc export-ignore
.eslintrc.js export-ignore
.eslintignore export-ignore
.tx export-ignore
.editorconfig export-ignore
.jshintrc export-ignore
.phpcs.xml export-ignore
.travis.yml export-ignore
.editorconfig export-ignore
.prettierrc.js export-ignore
.babelrc export-ignore
webpack.config.js export-ignore
docs export-ignore
wordpress_org_assets export-ignore
assets/css/*.scss export-ignore
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sftp-config.json
.idea/
vendor
release/
build/
woocommerce-gateway-stripe.zip

# Ignore all log files except for .htaccess
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Import the default config file and expose it in the project root.
// Useful for editor integrations.
module.exports = require( '@wordpress/prettier-config' );
2 changes: 1 addition & 1 deletion assets/css/stripe-styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 326fbea

Please sign in to comment.