Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial scaffolding for Eventbrite block * Request Eventbrite events when block is inserted * Displays select dropdown of events from Eventbrite * Saves event id as block attribute * Render the Eventbrite widget code in PHP, rather than saving it in the block. * Add the new endpoint file the the phpcs whitelist. * Add a spinner while loading events * Add an option for switching between inline and modal embeds * Don't load the block if Jetpack isn't connected. * Add a (currently not building) connect button. * Update webpack config to include _inc/client in blocks * Don't open a new Eventbrite connect dialog every time the block renders. * Removes integrations proxy endpoint (unneeded with simple embed) * Set Eventbrite block to beta, for testing * Replace event list with placeholder in Eventbrite block * Adds embed parsing and a non-working embed preview * Use @wordpress/embed-block to generate the block. * Eventbrite embed using prior art from Pinterest block * Add the Eventbrite icon * Rename block to Eventbrite Tickets * Remove some old code * Add block previews when editing * Refactor Eventbrite embed edit - Break up the component into multiple render functions - Re-add the functionality to resolve redirects for custom Eventbrite urls - Add working regexs for embedable and custom Eventbrite URLs * Add a user agent when following redirects to avoid 403 Forbidden with Eventrbrite custom urls * Fixes eventId property for creating the Eventbrite embed * Show sidebar options all the time, edit button only with embed preview * Fix styles that remove Eventbrite transitions so preview can resize * Re-render preview when embed type is changed * Removes interactivity with the preview to prevent Sandbox resizing problems * Updates block title and adds keywords * Resolves the Eventbrite URL before embedding to ensure the event exists. * Removes duplicate controls from sidebar * Use a variation of the block editor button for the modal embed * Adds comment explaining header for reqeuest to resolve redirect * Adds comments to files adapted from @wordpress/block-library * Share block settings between php and js - Consolidate and update event url regexes - Consolidate generation of widget html id * Translates noscript message * Adds embed type picker similar to block styles UI * Add instructions, icon color, and support link to placeholder * Adds button styles when using the modal embed type * Additional tweaks - Add code comments and doc blocks - Show/hide modal button styles only when previewing embed * Initial scaffolding for Eventbrite block * Request Eventbrite events when block is inserted * Add the new endpoint file the the phpcs whitelist. * Add a (currently not building) connect button. * Removes integrations proxy endpoint (unneeded with simple embed) * Adds comments to files adapted from @wordpress/block-library * Updates modal embed type preview to use block attributes * Update convert block button text * Removes color from icon to be consistent with other blocks * Removes spaceing from block declaration * Fix rebase leftover * Make the icon monochrome * Clarify what the fallback does * Fix incorrect inline-block display of the modal button * Add Jetpack text domain where missing * Remove unnecessary block attribute definitions * Add todo comment and compress image * Escape PHP output * Remove unnecessary change to the Webpack config * Improve the URL redirects endpoint * Save the event ID as block attribute * Also update the event ID on url resolve Co-authored-by: Gary Pendergast <gary@pento.net> Co-authored-by: Jacopo Tomasone <Copons@users.noreply.github.com>
- Loading branch information