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

Add support for Cart and Checkout Blocks #1467

Merged
merged 50 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2d29419
Build tooling/process changes
nerrad Feb 8, 2021
57a90ad
Add client source files for integration
nerrad Feb 8, 2021
65e3d03
Add php side files/code for integration
nerrad Feb 8, 2021
c58ae80
implement WC dependency extraction webpack plugin
nerrad Feb 16, 2021
4400ca9
implement new savedTokenComponent property for pm registration
nerrad Mar 12, 2021
97d830d
update engines definition for npm
nerrad Mar 17, 2021
42748c4
Update includes/class-wc-stripe-blocks-support.php
nerrad Mar 22, 2021
ffcaffd
add wp-prettier dev dependency
reykjalin Mar 26, 2021
21d687c
remove unused import
reykjalin Mar 26, 2021
d0dd708
fix incorrect language domain
reykjalin Mar 26, 2021
2aaad90
Fix various linting issues
reykjalin Mar 26, 2021
ef5098b
Fix payment request button 3DS verification
reykjalin Mar 26, 2021
51384a3
refactor 3ds support into separate module
reykjalin Mar 26, 2021
625e4ba
Improve some of the Stripe type-defs
reykjalin Mar 29, 2021
3485e9a
Improve null checks when normalizing addresses
reykjalin Mar 29, 2021
364b272
Improve null checks when normalizing billing data
reykjalin Mar 29, 2021
ae52a0b
Improve null checks when normalizing PaymentMethod
reykjalin Mar 29, 2021
7b1568e
add call to `wp_set_script_translations` for blocks
reykjalin Mar 30, 2021
2c0f0a6
rename blocks init function to prevent name conflicts
reykjalin Mar 30, 2021
f764875
remove unnecessary modification of $_POST
reykjalin Mar 30, 2021
0cd698c
set sourceId to empty string on init and fail
reykjalin Apr 1, 2021
9022070
Provide fallback values for server config in JS
reykjalin Apr 1, 2021
91131dc
remove redundant sourceId empty check
reykjalin Apr 1, 2021
638d506
remove call to `typeof` where it should not be
reykjalin Apr 5, 2021
19aeb3f
add support for branded Google Pay button
reykjalin Apr 6, 2021
304a33a
add support for custom payment request button
reykjalin Apr 6, 2021
0353d3f
Blocks: properly normalize PRB shipping states
reykjalin Apr 7, 2021
7d49f9b
Prevent 3ds handler from blocking other emitters
reykjalin Apr 8, 2021
6401768
regenerate pot file with wp-cli instead of wpi18n
reykjalin Apr 8, 2021
2ff9ab0
Payment Request: Fix non-default block checkout page and add support …
ricardo Apr 14, 2021
0e3ee2a
fix incorrect language domain
reykjalin Apr 27, 2021
f511f29
add missing translation string
reykjalin Apr 27, 2021
b621086
Check GPay svg via hook instead of temporary <img>
reykjalin Apr 28, 2021
7ab8c4e
add new translation strings to pot file
reykjalin Apr 29, 2021
c333214
add the build folder to release assets
reykjalin Apr 29, 2021
0c8061b
add missing styling options to PRBs
reykjalin Apr 29, 2021
a19386a
Do not add locale on the Stripe Element
reykjalin Apr 30, 2021
785baed
remove minimum price check for payment request buttons
reykjalin Apr 30, 2021
698977b
Add margin to GPay PRB to make room for shadow in blocks
reykjalin Apr 30, 2021
b149437
improve line item normalization for PRBs
reykjalin Apr 30, 2021
df18a4b
fix inaccessible payment methods after 3DS failure
reykjalin Apr 30, 2021
5f33c2d
add light-outline styles for PRBs
reykjalin Apr 30, 2021
f13554f
remove built asset translation strings from pot file
reykjalin Apr 30, 2021
0d32c95
Use AJAX api when using Payment Request Buttons with Block-based chec…
reykjalin May 13, 2021
4f3bfda
update pot file
reykjalin May 14, 2021
38cce8e
add store locale to Stripe initialization
reykjalin May 14, 2021
e6656d7
add store locale to shortcode Stripe initialization
reykjalin May 14, 2021
b60b327
add changelog entries
reykjalin May 17, 2021
ddbdbbc
fix issue where PRB UI is displayed when browser does not support PRs
reykjalin May 17, 2021
431332c
update pot file
reykjalin May 17, 2021
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
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