This repository was archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Cart and Checkout block transforms for classic shortcodes #11228
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
64ea78e
Add transforms for checkout block
mikejolley cbac3af
Block to shortcode switcher in notice
mikejolley 2256e97
cart transforms
mikejolley 07b9a1c
Fix target block for switching
mikejolley ac821fb
Remove switcher UI for classic cart/checkout
mikejolley 42735bf
Set isPreview when generating block preview in switcher
mikejolley 0314cea
Onboarding task
mikejolley e5a3705
Action on click
mikejolley b3769e9
Focus on block after replacement
mikejolley 35393c1
Update notice styling and wording
mikejolley 4d571a9
Undo functionality
mikejolley 9943f69
Look for woocommerce/classic-shortcode when determining if task list …
mikejolley 5871548
Enable focus on the cart/checkout block when visiting from the task list
mikejolley 851ea44
Classic Cart/Checkout Updated Title
mikejolley f1fbd8d
Add missing translations
mikejolley 45d9543
Refactor modal content to avoid sprintf
mikejolley b16cd4c
Improve pickBlockClientId
mikejolley 659926a
Tracks events for switching to classic shortcode block
mikejolley bdf0de6
TaskList support for non-block themes
mikejolley bb1cecd
Updated placeholder to work on non-white page backgrounds
mikejolley 6d8673e
Find blocks using findBlock utility
mikejolley 9128af9
Add TabbableContainer for buttons
mikejolley a43da7d
Add align to wrapper
mikejolley 7038b0c
Update modal content
mikejolley 6f2c76c
Update modal usage
mikejolley 2babbab
Removed undo link when converting from classic shortcode
mikejolley fd5f1c1
Check if block was selected
mikejolley c279093
Revert "Removed undo link when converting from classic shortcode"
mikejolley a82f9d1
update snackbar text
mikejolley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "woocommerce/classic-shortcode", | ||
"version": "1.0.0", | ||
"title": "Classic Shortcode", | ||
"description": "Renders classic WooCommerce shortcodes.", | ||
"category": "woocommerce", | ||
"keywords": [ "WooCommerce" ], | ||
"supports": { | ||
"align": true, | ||
"html": false, | ||
"multiple": false, | ||
"reusable": false, | ||
"inserter": true | ||
}, | ||
"attributes": { | ||
"shortcode": { | ||
"type": "string", | ||
"default": "cart", | ||
"enum": [ "cart", "checkout" ] | ||
}, | ||
"align": { | ||
"type": "string", | ||
"default": "wide" | ||
} | ||
}, | ||
"textdomain": "woo-gutenberg-products-block", | ||
"apiVersion": 2, | ||
"$schema": "https://schemas.wp.org/trunk/block.json" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.