-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Mobile] Pass the Gallery v2 Flag over from the editor #33314
[Mobile] Pass the Gallery v2 Flag over from the editor #33314
Commits on Apr 11, 2021
-
Refactor gallery to nested image blocks
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for c01bbfb - Browse repository at this point
Copy the full SHA c01bbfbView commit details -
Fix issue with images not loading on first selection from media gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 038b22d - Browse repository at this point
Copy the full SHA 038b22dView commit details -
Remove the default columns setting as we don't have access to innerBl…
…ocks at the point that the block validation is run
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 331c302 - Browse repository at this point
Copy the full SHA 331c302View commit details -
Revert "Remove the default columns setting as we don't have access to…
… innerBlocks at the point that the block validation is run" This reverts commit 4d95e95.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for ee7da0a - Browse repository at this point
Copy the full SHA ee7da0aView commit details -
Add image count so we can work out default columns as innerBlocks not…
… available at point of block validation
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for c9fe911 - Browse repository at this point
Copy the full SHA c9fe911View commit details -
Disable the innerBlocks dropzones so drag drop works same as existing…
… gallery - with the idea that we will improve the innerblocks drag and drop in a later PR
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for a00a544 - Browse repository at this point
Copy the full SHA a00a544View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 0c8742f - Browse repository at this point
Copy the full SHA 0c8742fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a77854c - Browse repository at this point
Copy the full SHA a77854cView commit details -
Revert "Disable the innerBlocks dropzones so drag drop works same as …
…existing gallery - with the idea that we will improve the innerblocks drag and drop in a later PR" This reverts commit cc05d60.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 1965514 - Browse repository at this point
Copy the full SHA 1965514View commit details -
Suggested solution for handling multiple file drop into gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for e5e1420 - Browse repository at this point
Copy the full SHA e5e1420View commit details -
Remove non image files from drag and drop and disable individual imag…
…e drop zone
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 1d6c559 - Browse repository at this point
Copy the full SHA 1d6c559View commit details -
Fix transform to individual images
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 39cecec - Browse repository at this point
Copy the full SHA 39cececView commit details -
Fix transform from individual images
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for d9ec2b0 - Browse repository at this point
Copy the full SHA d9ec2b0View commit details -
Revert drag and drop transform changes
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 3742af8 - Browse repository at this point
Copy the full SHA 3742af8View commit details -
Add gallery transform to image block to override the default gallery …
…transform when dragging multiple images onto the gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 3acb223 - Browse repository at this point
Copy the full SHA 3acb223View commit details -
Move handling of file uploads to Gallery from media placeholder
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 084e6c7 - Browse repository at this point
Copy the full SHA 084e6c7View commit details -
split innerblocks mapping into separate effect to reduce chatter
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for cff6727 - Browse repository at this point
Copy the full SHA cff6727View commit details -
Add useMemo to currentImageOptions
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f1606cc - Browse repository at this point
Copy the full SHA f1606ccView commit details -
reuse existing innerBlocks rather than recreating with every new imag…
…e selection
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 1140646 - Browse repository at this point
Copy the full SHA 1140646View commit details -
Switch to useMemo for updating local image const instead of local com…
…ponent state
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 6d23628 - Browse repository at this point
Copy the full SHA 6d23628View commit details -
Fix issue with image sizing not being available on initial load of co…
…mponent some times
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f7a1ff4 - Browse repository at this point
Copy the full SHA f7a1ff4View commit details -
Memoise the useImageSizes hook
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 974ad90 - Browse repository at this point
Copy the full SHA 974ad90View commit details -
Fix issue with media browser defaulting to edit gallery view
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 5ac143b - Browse repository at this point
Copy the full SHA 5ac143bView commit details -
Fix missed incorrect use of addToGallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 8ceaa3d - Browse repository at this point
Copy the full SHA 8ceaa3dView commit details -
Add some extra effects for getting the imageData as the getMedia call…
… is async so need to keep circling through the innerblocks updates until we have all the data we need
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 8d7159b - Browse repository at this point
Copy the full SHA 8d7159bView commit details -
Simplify the imageData by using a useSelect
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for dbda7e9 - Browse repository at this point
Copy the full SHA dbda7e9View commit details -
Another optimisation - only return a new imageData reference if all i…
…mages have data resolved
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 342695e - Browse repository at this point
Copy the full SHA 342695eView commit details -
Refactored Gallery: Add loading state to gallery image size options (#…
…27087) * Add loading spinner for image size options Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 0744b59 - Browse repository at this point
Copy the full SHA 0744b59View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for dad1b0b - Browse repository at this point
Copy the full SHA dad1b0bView commit details -
Fix issue with linkDestination not being applied in migration
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for bcf6664 - Browse repository at this point
Copy the full SHA bcf6664View commit details -
Configuration menu - View commit details
-
Copy full SHA for 921fecc - Browse repository at this point
Copy the full SHA 921feccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7920a45 - Browse repository at this point
Copy the full SHA 7920a45View commit details -
Update deprecation to set allowResize
The imageEdit component defaults the context value for allowResize to true. The refactored gallery sets this to false by default. Setting allowResize to false when migrating a deprecated gallery allows images to be cropped in the display the same as the gallery when the post is saved and gallery reloaded.
Configuration menu - View commit details
-
Copy full SHA for c97630c - Browse repository at this point
Copy the full SHA c97630cView commit details -
Fix issue with crop not working when certain plugins are loaded
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 2724965 - Browse repository at this point
Copy the full SHA 2724965View commit details -
Configuration menu - View commit details
-
Copy full SHA for 098ba86 - Browse repository at this point
Copy the full SHA 098ba86View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 49f9d6b - Browse repository at this point
Copy the full SHA 49f9d6bView commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 88c096b - Browse repository at this point
Copy the full SHA 88c096bView commit details -
Fix the e2e test and the accessibility issue with having aria group r…
…ole on a list item
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 37b4b4e - Browse repository at this point
Copy the full SHA 37b4b4eView commit details -
Fix the e2e test and the accessibility issue with having aria group r…
…ole on a list item
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 0c5e720 - Browse repository at this point
Copy the full SHA 0c5e720View commit details -
Fix frontend omission of wp-block-image class
Also tweaks the gallery styles to remove the margins the use of `wp-block-image` introduces when it is moved to the inner `figure` element.
Configuration menu - View commit details
-
Copy full SHA for 5840a1c - Browse repository at this point
Copy the full SHA 5840a1cView commit details -
change deprecation to use imageCount as isEligible check as it seems …
…that some previous block versions may not have an ids attribute
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for e1e6a8a - Browse repository at this point
Copy the full SHA e1e6a8aView commit details -
Move back to a single deprecations file and reorder in array
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for d7187b4 - Browse repository at this point
Copy the full SHA d7187b4View commit details -
Remove additional check in v5 isEligible
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for b648b10 - Browse repository at this point
Copy the full SHA b648b10View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f1454f2 - Browse repository at this point
Copy the full SHA f1454f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e76bb06 - Browse repository at this point
Copy the full SHA e76bb06View commit details -
Configuration menu - View commit details
-
Copy full SHA for b969e3f - Browse repository at this point
Copy the full SHA b969e3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ff156a - Browse repository at this point
Copy the full SHA 0ff156aView commit details -
Restore styles to render deprecated gallery versions
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 309f9f0 - Browse repository at this point
Copy the full SHA 309f9f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d1301 - Browse repository at this point
Copy the full SHA e6d1301View commit details -
Add additional selector to prevent the hidden individual image drop z…
…ones ending up display flex instead of hidden
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 4953a0c - Browse repository at this point
Copy the full SHA 4953a0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d259127 - Browse repository at this point
Copy the full SHA d259127View commit details -
Apply default style class to new images added to gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 1a16354 - Browse repository at this point
Copy the full SHA 1a16354View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 9aadf8f - Browse repository at this point
Copy the full SHA 9aadf8fView commit details -
Move block props to the outer wrapper
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for e879978 - Browse repository at this point
Copy the full SHA e879978View commit details -
Revert "Move block props to the outer wrapper"
This reverts commit e0723a7.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f072943 - Browse repository at this point
Copy the full SHA f072943View commit details -
Revert "Revert "Move block props to the outer wrapper""
This reverts commit a7504fd.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for c4d06ee - Browse repository at this point
Copy the full SHA c4d06eeView commit details -
Fetch media if isListItem is true
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 82eee6e - Browse repository at this point
Copy the full SHA 82eee6eView commit details -
Change context from isListItem to isGrouped
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 601119c - Browse repository at this point
Copy the full SHA 601119cView commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 4f1ddb4 - Browse repository at this point
Copy the full SHA 4f1ddb4View commit details -
remove extra wrapper around media placeholder and caption and use fle…
…x css instead
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for a6603cf - Browse repository at this point
Copy the full SHA a6603cfView commit details -
Revert "remove extra wrapper around media placeholder and caption and…
… use flex css instead
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 9b8d498 - Browse repository at this point
Copy the full SHA 9b8d498View commit details -
Revert "Remove external div wrapper by moving InnerBlocks to a fragment"
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for bd88cb2 - Browse repository at this point
Copy the full SHA bd88cb2View commit details -
another update to image wrapper
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for abcb029 - Browse repository at this point
Copy the full SHA abcb029View commit details -
put media uploader outside figure so structure matches front end
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 939456d - Browse repository at this point
Copy the full SHA 939456dView commit details -
Replace div with View for the sake of native code
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for bf0aec2 - Browse repository at this point
Copy the full SHA bf0aec2View commit details -
Move setting of attributes to the child images
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 0938b5e - Browse repository at this point
Copy the full SHA 0938b5eView commit details -
Gallery Block Refactor: Account for null image ids in gallery migrati…
…ons (#27855) Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 94d9877 - Browse repository at this point
Copy the full SHA 94d9877View commit details -
Remove the gradient and put caption under image if is-rounded style a…
…pplied (#27869) * Add alignment fixes for non cropped images Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 17ca088 - Browse repository at this point
Copy the full SHA 17ca088View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 2c2b38e - Browse repository at this point
Copy the full SHA 2c2b38eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82ef52a - Browse repository at this point
Copy the full SHA 82ef52aView commit details -
Fix e2e test expected markup to match new structure
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for bc61288 - Browse repository at this point
Copy the full SHA bc61288View commit details -
Gallery Block Refactor: Add handling of short code transforms
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 7af15db - Browse repository at this point
Copy the full SHA 7af15dbView commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 1e1752e - Browse repository at this point
Copy the full SHA 1e1752eView commit details -
Account for undefined block and innerblocks in conversion to reusable…
… block lifecycle
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 726e48c - Browse repository at this point
Copy the full SHA 726e48cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21bd032 - Browse repository at this point
Copy the full SHA 21bd032View commit details -
Adjust editor styles to match new dom structure
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for a9453d2 - Browse repository at this point
Copy the full SHA a9453d2View commit details -
Remove redundant styles that are duplicated in nested image blocks
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 83b9074 - Browse repository at this point
Copy the full SHA 83b9074View commit details -
Fix issue with Image block dragged out of Gallery still having inheri…
…tedAttributes set
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for e3a6c29 - Browse repository at this point
Copy the full SHA e3a6c29View commit details -
When dragging an image block into a gallery make sure we don't wipe a…
…ny custom links
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for d34dcdb - Browse repository at this point
Copy the full SHA d34dcdbView commit details -
fix issue with variable declaration order
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 72e9c2b - Browse repository at this point
Copy the full SHA 72e9c2bView commit details -
Fix bug with custom link being overwritten by gallery linkTo changes
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for e291f91 - Browse repository at this point
Copy the full SHA e291f91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 795a568 - Browse repository at this point
Copy the full SHA 795a568View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9580649 - Browse repository at this point
Copy the full SHA 9580649View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74072f0 - Browse repository at this point
Copy the full SHA 74072f0View commit details -
remove conversion to cover block if image in gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for cf4dc34 - Browse repository at this point
Copy the full SHA cf4dc34View commit details -
Add fallback to old gallery edit and save for existing gallery (#28961)
Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for f90965c - Browse repository at this point
Copy the full SHA f90965cView commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for be75a36 - Browse repository at this point
Copy the full SHA be75a36View commit details -
Remove need for temporary imageUploads attribute as we can just creat…
…e the innerBlocks as part of transform
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 780e9e7 - Browse repository at this point
Copy the full SHA 780e9e7View commit details -
Remove handling of gallery attribute updates from child images
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for fd1e27d - Browse repository at this point
Copy the full SHA fd1e27dView commit details -
Move updating of attributes back to gallery and show snackbar to indi…
…cated to user that change was made to all images in the gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 652557e - Browse repository at this point
Copy the full SHA 652557eView commit details -
Update transforms to work with both versions of gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 1da955d - Browse repository at this point
Copy the full SHA 1da955dView commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 5b809d5 - Browse repository at this point
Copy the full SHA 5b809d5View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for b3fb72c - Browse repository at this point
Copy the full SHA b3fb72cView commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for b5ca5ef - Browse repository at this point
Copy the full SHA b5ca5efView commit details -
Merge similar Image transforms.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for d5f5cba - Browse repository at this point
Copy the full SHA d5f5cbaView commit details -
Fix some issues missed when moving attribute setting back to gallery.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 82b97b8 - Browse repository at this point
Copy the full SHA 82b97b8View commit details -
Simplify handling of images from media placeholder now that drag and …
…drop files handled by transform
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for d9b1733 - Browse repository at this point
Copy the full SHA d9b1733View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee6bef7 - Browse repository at this point
Copy the full SHA ee6bef7View commit details -
Fix broken upload from media placeholder
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 9e0b05c - Browse repository at this point
Copy the full SHA 9e0b05cView commit details -
Fix issue with new file uploads overwriting existing blocks
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f27e872 - Browse repository at this point
Copy the full SHA f27e872View commit details -
Remove isGrouped dependency from call to get image as not needed now …
…attributes handled by gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 30dc02f - Browse repository at this point
Copy the full SHA 30dc02fView commit details -
Remove custom gutter size feature
Reasoning for removal can be found at #25940 (comment)
Configuration menu - View commit details
-
Copy full SHA for 3d47210 - Browse repository at this point
Copy the full SHA 3d47210View commit details -
Use getMediaItems instead of getMedia for getting image data for all …
…gallery images
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for fd56523 - Browse repository at this point
Copy the full SHA fd56523View commit details -
Add back missing context prop from rebase conflict
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 657ba78 - Browse repository at this point
Copy the full SHA 657ba78View commit details -
Make use of new uniqueByBlock flag on updateBlockAttributes to batch …
…child image updates and allow single undo to revert
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for a111532 - Browse repository at this point
Copy the full SHA a111532View commit details -
Move the setting of the default attributes on new blocks to a single …
…useEffect (#29328) Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 6370194 - Browse repository at this point
Copy the full SHA 6370194View commit details -
Configuration menu - View commit details
-
Copy full SHA for e23ddb0 - Browse repository at this point
Copy the full SHA e23ddb0View commit details -
Account for people adding and removing images from media browser so n…
…umber of images the same, but list of images different to current.
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for fc2b2a0 - Browse repository at this point
Copy the full SHA fc2b2a0View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 716ea1b - Browse repository at this point
Copy the full SHA 716ea1bView commit details -
Fix issue with deprecated constants
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 44df5dd - Browse repository at this point
Copy the full SHA 44df5ddView commit details -
Fix linting and e2e test failures
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 3a75fb0 - Browse repository at this point
Copy the full SHA 3a75fb0View commit details -
Glen Davies committed
Apr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 84ebe2e - Browse repository at this point
Copy the full SHA 84ebe2eView commit details -
Add transform from old gallery to new format
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 6b06732 - Browse repository at this point
Copy the full SHA 6b06732View commit details -
This allows the shallow equals check in the inner blocks' `useNestedSettingsUpdate` hook to pass successfully preventing the state update loop.
Configuration menu - View commit details
-
Copy full SHA for 6caef45 - Browse repository at this point
Copy the full SHA 6caef45View commit details -
Add warning about image formats required if uploading to gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 8eceac7 - Browse repository at this point
Copy the full SHA 8eceac7View commit details -
Configuration menu - View commit details
-
Copy full SHA for efd0705 - Browse repository at this point
Copy the full SHA efd0705View commit details -
Re-apply uncropped alignment changes lost in rebase
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 82cf526 - Browse repository at this point
Copy the full SHA 82cf526View commit details -
Fix issue with non-cropped images in deprecated gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for d133db7 - Browse repository at this point
Copy the full SHA d133db7View commit details -
Don't show media library buttons while images are still uploading as …
…the media library needs the image ids to reconcile which images are already in the gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 651ff59 - Browse repository at this point
Copy the full SHA 651ff59View commit details -
Remove gallerRef that was no longer doing anything
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 6209e6e - Browse repository at this point
Copy the full SHA 6209e6eView commit details -
Respect sort order from Media Library (#30070)
Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for eaa0c7a - Browse repository at this point
Copy the full SHA eaa0c7aView commit details -
Gallery block refactor: make invalid file type errors consistent (#30396
Configuration menu - View commit details
-
Copy full SHA for 20477de - Browse repository at this point
Copy the full SHA 20477deView commit details -
Fix issue with invalid type message when adding files via media brows…
…er 'Upload' button
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 6195768 - Browse repository at this point
Copy the full SHA 6195768View commit details -
Gallery block refactor: check for new images by clientId instead of i…
…d to stop link settings being lost when images edited (#30550) Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 9cfb170 - Browse repository at this point
Copy the full SHA 9cfb170View commit details -
Apply changes from rebase to deprecated gallery
Glen Davies committedApr 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 772691d - Browse repository at this point
Copy the full SHA 772691dView commit details
Commits on Apr 12, 2021
-
Apply patch from rebase to not select all items in media library when…
… existing images have no ids
Glen Davies committedApr 12, 2021 Configuration menu - View commit details
-
Copy full SHA for d71011b - Browse repository at this point
Copy the full SHA d71011bView commit details
Commits on Apr 13, 2021
-
Copy caption across from image selected from media library (#30784)
Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 991437d - Browse repository at this point
Copy the full SHA 991437dView commit details
Commits on Apr 22, 2021
-
Add data-id to image to help with compatibility of refactored gallery…
… with existing themes and plugins (#30710) Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for a2253ec - Browse repository at this point
Copy the full SHA a2253ecView commit details
Commits on Apr 23, 2021
-
Revert "Add data-id to image to help with compatibility of refactored…
Glen Davies committedApr 23, 2021 Configuration menu - View commit details
-
Copy full SHA for d225aca - Browse repository at this point
Copy the full SHA d225acaView commit details -
fix bug with image style being lost when gallery grouped (#31068)
Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for fc06639 - Browse repository at this point
Copy the full SHA fc06639View commit details
Commits on Apr 28, 2021
-
Only add RichText component if the figcaption is clicked to prevent i…
…t stealing focus every time block is selected (#31216) Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for 1067a0c - Browse repository at this point
Copy the full SHA 1067a0cView commit details
Commits on Apr 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1521f52 - Browse repository at this point
Copy the full SHA 1521f52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8639891 - Browse repository at this point
Copy the full SHA 8639891View commit details
Commits on Apr 30, 2021
-
Fix bug with alt text not being copied from media library (#31066)
Co-authored-by: Glen Davies <glen.davies@a8c.com>
Configuration menu - View commit details
-
Copy full SHA for ff4fadc - Browse repository at this point
Copy the full SHA ff4fadcView commit details
Commits on May 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 91c09b8 - Browse repository at this point
Copy the full SHA 91c09b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffc22e7 - Browse repository at this point
Copy the full SHA ffc22e7View commit details -
Enable __experimentalGalleryRefactor flag under __DEV__
This is only temporary, for testing purposes. This will be replaced with an actual implementation (which will need to access the flag remotely).
Configuration menu - View commit details
-
Copy full SHA for e688131 - Browse repository at this point
Copy the full SHA e688131View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8fbc35 - Browse repository at this point
Copy the full SHA c8fbc35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f44f58 - Browse repository at this point
Copy the full SHA 2f44f58View commit details -
Temporarily comment out spinner for pending imagesize option
This will need to be addressed (since we can't have unwrapped text on mobile). For now, I'm commenting this out to proceed with cherry-picking the changes from the original mobile refactor branch.
Configuration menu - View commit details
-
Copy full SHA for 9fd5897 - Browse repository at this point
Copy the full SHA 9fd5897View commit details -
Configuration menu - View commit details
-
Copy full SHA for d646d59 - Browse repository at this point
Copy the full SHA d646d59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59ea082 - Browse repository at this point
Copy the full SHA 59ea082View commit details -
Configuration menu - View commit details
-
Copy full SHA for 683af04 - Browse repository at this point
Copy the full SHA 683af04View commit details -
Some of these "fixes" are simply disabling lint for the offending lines. These currently unused variables may be used in a later PR, so I'm leaving them in, for now, to help simplify reconciling the changes from the former refactor PR.
Configuration menu - View commit details
-
Copy full SHA for a520018 - Browse repository at this point
Copy the full SHA a520018View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f0073d - Browse repository at this point
Copy the full SHA 1f0073dView commit details
Commits on May 7, 2021
-
Merge branch 'refactor/gallery-to-nested-image-blocks' into rnmobile/…
…refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for 4e3d981 - Browse repository at this point
Copy the full SHA 4e3d981View commit details
Commits on May 19, 2021
-
Merge branch 'trunk' of github.com:WordPress/gutenberg into refactor/…
…gallery-to-nested-image-blocks # Conflicts: # lib/experiments-page.php # packages/block-library/src/gallery/edit.js # packages/block-library/src/gallery/gallery.js # packages/block-library/src/image/block.json
Glen Davies committedMay 19, 2021 Configuration menu - View commit details
-
Copy full SHA for b976235 - Browse repository at this point
Copy the full SHA b976235View commit details
Commits on May 20, 2021
-
Merge branch 'refactor/gallery-to-nested-image-blocks' into rnmobile/…
…refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for 77091e2 - Browse repository at this point
Copy the full SHA 77091e2View commit details -
[Mobile] - Refactor gallery - cherry pick image edit native (#31826)
* WIP-commit bring image changes from final state of original mobile PR This has unresolved / unmarked conflicts which will be resolve in subsequent commits. I am separating the commit to make the resolution process more transparent. * Remove duplicate / conflicting methods from performance refactor * Use context for imageCrop and isGrouped instead of isGallery * Remove non-existent inheritedAttributes attribute * Remove dead code from non-existent context attributes * Remove unused attributes prop from link settings
Configuration menu - View commit details
-
Copy full SHA for 2c6e317 - Browse repository at this point
Copy the full SHA 2c6e317View commit details
Commits on May 27, 2021
-
Cherry-pick BlockListItem changes
Note: Since render was changed to renderContent, we should return early from render too, when blockWidth is falsey.
Configuration menu - View commit details
-
Copy full SHA for 3221e23 - Browse repository at this point
Copy the full SHA 3221e23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7616231 - Browse repository at this point
Copy the full SHA 7616231View commit details -
Cherry-pick plumb blockProps through BlockListBlock
I'm not sure yet whether it still makes sense to use blockProps in this way. I'm going to cherry-pick the commits by file, and sort out the need for this mechanism afterwards.
Configuration menu - View commit details
-
Copy full SHA for 4d235fd - Browse repository at this point
Copy the full SHA 4d235fdView commit details -
Since this is duplicated from the original mobile gallery code (Tiles component), it might make sense to export it for re-use. Previously, it was only moved, but now that we will maintain both versions, it has become a duplicate implementation. I will defer this to a later commit.
Configuration menu - View commit details
-
Copy full SHA for df286d8 - Browse repository at this point
Copy the full SHA df286d8View commit details -
Similar to blockProps mentioned earlier, gridProperties will be evaluated after cherry-picking the relevant changes, to see if there is another mechanism that may be more appropriate.
Configuration menu - View commit details
-
Copy full SHA for f5ff38d - Browse repository at this point
Copy the full SHA f5ff38dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e777c6 - Browse repository at this point
Copy the full SHA 0e777c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for acfcb7f - Browse repository at this point
Copy the full SHA acfcb7fView commit details -
Use sass var for galleryAppender padding
Note: This also re-adds fullWidth style, which is still being used in both v1 and v2 mobile implementations. If this is superceded by a recent refactor of the block width styles, it may be worth revisiting this and removing / changing the implementation.
Configuration menu - View commit details
-
Copy full SHA for 30d20b1 - Browse repository at this point
Copy the full SHA 30d20b1View commit details -
Cherry-pick remaining gallery changes
Note: as before, blockProps and gridProperties should be re-evaluated in subsequent commits, if necessary. E.g. `imageCrop` is already recieved via context, and `isGroup` may be sufficient, eliminating the need for `isGallery`.
Configuration menu - View commit details
-
Copy full SHA for 8e89a84 - Browse repository at this point
Copy the full SHA 8e89a84View commit details -
Going back over the older commits, it seems there were a two strategies used to render the gallery images as a grid. One used the numColumns (same as used in the Columns block), and the other using the Grid component. This commit cleans up the unused parts of the former approach.
Configuration menu - View commit details
-
Copy full SHA for 2de17c3 - Browse repository at this point
Copy the full SHA 2de17c3View commit details -
This is no longer necessary, since we are using context to pass gallery-level attributes to the image blocks' rendering.
Configuration menu - View commit details
-
Copy full SHA for 931184a - Browse repository at this point
Copy the full SHA 931184aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e96cd3e - Browse repository at this point
Copy the full SHA e96cd3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c78270 - Browse repository at this point
Copy the full SHA 5c78270View commit details
Commits on May 30, 2021
-
Gallery refactor - Infer version from existing content (#32270)
* Give content precedence over flag in edit wrapper This modifies the logic in the gallery edit wrapper function to infer version information from existing content when the editor encounters content created from the new implementation and the flag is not set.
Configuration menu - View commit details
-
Copy full SHA for 1a4345a - Browse repository at this point
Copy the full SHA 1a4345aView commit details
Commits on May 31, 2021
-
Merge branch 'refactor/gallery-to-nested-image-blocks' into rnmobile/…
…refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for 3c2f144 - Browse repository at this point
Copy the full SHA 3c2f144View commit details
Commits on Jun 3, 2021
-
Merge branch 'trunk' into refactor/gallery-to-nested-image-blocks-ups…
…tream Leaving conflict markers in so the resolutions can be evaluated in the subsequent commit.
Configuration menu - View commit details
-
Copy full SHA for e5420c6 - Browse repository at this point
Copy the full SHA e5420c6View commit details -
This brings the gallery edit changes to the v1 directory, and merges the changes for the image block.
Configuration menu - View commit details
-
Copy full SHA for e183dcb - Browse repository at this point
Copy the full SHA e183dcbView commit details -
Merge branch 'refactor/gallery-to-nested-image-blocks-upstream' into …
…rnmobile/refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for 46c8da7 - Browse repository at this point
Copy the full SHA 46c8da7View commit details
Commits on Jun 9, 2021
-
Use non-deprecated hook when possible
This brings the same change from this PR: #31027 which may have missed the deprecated hook in the refactor PR, since it hadn't landed yet.
Configuration menu - View commit details
-
Copy full SHA for b2031f2 - Browse repository at this point
Copy the full SHA b2031f2View commit details
Commits on Jun 15, 2021
-
Merge branch 'refactor/gallery-to-nested-image-blocks' into rnmobile/…
…refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for 946aeab - Browse repository at this point
Copy the full SHA 946aeabView commit details
Commits on Jun 16, 2021
-
Merge branch 'trunk' into refactor/gallery-to-nested-image-blocks-ups…
…tream Merging with conflict unresolved to make resolution reviewable in the following commit.
Configuration menu - View commit details
-
Copy full SHA for 71b249c - Browse repository at this point
Copy the full SHA 71b249cView commit details -
Resolve conflict in block editor default settings
This was an update for a new jsdoc linting rule.
Configuration menu - View commit details
-
Copy full SHA for c72984f - Browse repository at this point
Copy the full SHA c72984fView commit details -
Merge branch 'refactor/gallery-to-nested-image-blocks-upstream' into …
…rnmobile/refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for fb34126 - Browse repository at this point
Copy the full SHA fb34126View commit details
Commits on Jul 5, 2021
-
Add back blockWidth contentContainerStyles in block list
I believe this was inadvertantly removed in some earlier commits, so this commit adds it back.
Configuration menu - View commit details
-
Copy full SHA for 0527d39 - Browse repository at this point
Copy the full SHA 0527d39View commit details -
Use boolean flags for variants in Platform module
These flags allow for a slightly more flexible, performant, and terse way of branching by platform. For more details, see: #18058 (comment)
Configuration menu - View commit details
-
Copy full SHA for a8c1f0e - Browse repository at this point
Copy the full SHA a8c1f0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c1dc9d - Browse repository at this point
Copy the full SHA 1c1dc9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f35c4c - Browse repository at this point
Copy the full SHA 5f35c4cView commit details -
Add default for destructured context in image edit
This is necessary for unit tests, because they instantiate the block's edit component directly, and so the default context is not provided.
Configuration menu - View commit details
-
Copy full SHA for 57a01f7 - Browse repository at this point
Copy the full SHA 57a01f7View commit details -
Temporarily hard-code experimenal gallery refactor flag to true
This will be reverted once the block settings are fetched from the REST API. This is enabled for now for testing purposes.
Configuration menu - View commit details
-
Copy full SHA for 0052b11 - Browse repository at this point
Copy the full SHA 0052b11View commit details -
Revert "Temporarily hard-code experimenal gallery refactor flag to true"
This reverts commit 6fbaed9.
Configuration menu - View commit details
-
Copy full SHA for 0d5fb18 - Browse repository at this point
Copy the full SHA 0d5fb18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03d730b - Browse repository at this point
Copy the full SHA 03d730bView commit details
Commits on Jul 8, 2021
-
Merge branch 'trunk' into refactor/gallery-to-nested-image-blocks-ups…
…tream Merging with conflict unresolved to make resolution reviewable in the following commit.
Configuration menu - View commit details
-
Copy full SHA for 7da0c1b - Browse repository at this point
Copy the full SHA 7da0c1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 797cb28 - Browse repository at this point
Copy the full SHA 797cb28View commit details -
Merge branch 'refactor/gallery-to-nested-image-blocks-upstream' into …
…rnmobile/refactor/gallery-as-nested-image-blocks
Configuration menu - View commit details
-
Copy full SHA for 93fd471 - Browse repository at this point
Copy the full SHA 93fd471View commit details -
Configuration menu - View commit details
-
Copy full SHA for b199e87 - Browse repository at this point
Copy the full SHA b199e87View commit details
Commits on Jul 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7d0e8ed - Browse repository at this point
Copy the full SHA 7d0e8edView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5a2890 - Browse repository at this point
Copy the full SHA d5a2890View commit details
Commits on Jul 16, 2021
-
Minor changes from code review:
* Reward experiments description * Add documentation about new media placeholder handleUpload flag * Add additional explanation of v1-6 deprecations * Rename the edit wrapper components to make useage clearer * Temporarily remove tranform from v1 gallery to v2 gallery
Glen Davies committedJul 16, 2021 Configuration menu - View commit details
-
Copy full SHA for fad851a - Browse repository at this point
Copy the full SHA fad851aView commit details
Commits on Jul 19, 2021
-
Improve naming of save and deprecated save methods
Glen Davies committedJul 19, 2021 Configuration menu - View commit details
-
Copy full SHA for a83b106 - Browse repository at this point
Copy the full SHA a83b106View commit details -
Rename __experimentalGalleryRefactor flag to __unstableGalleryWithInn…
…erBlocks
Glen Davies committedJul 19, 2021 Configuration menu - View commit details
-
Copy full SHA for a424509 - Browse repository at this point
Copy the full SHA a424509View commit details
Commits on Jul 20, 2021
-
Remove the isGrouped context as no longer needed.
Glen Davies committedJul 20, 2021 Configuration menu - View commit details
-
Copy full SHA for c69f2d5 - Browse repository at this point
Copy the full SHA c69f2d5View commit details
Commits on Jul 22, 2021
-
Rename __unstableGalleryWithInnerBlocks to _unstableGalleryWithImageB…
…locks
Glen Davies committedJul 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 887b6b4 - Browse repository at this point
Copy the full SHA 887b6b4View commit details
Commits on Jul 26, 2021
-
Gallery block refactor: remove the imageCount attribute (#33677)
* Remove the imageCount attribute and use CSS instead to set default columns Co-authored-by: Glen Davies <glen.davies@a8c.com> Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c4eb362 - Browse repository at this point
Copy the full SHA c4eb362View commit details
Commits on Jul 27, 2021
-
Merge branch 'trunk' of github.com:WordPress/gutenberg into refactor/…
…gallery-to-nested-image-blocks # Conflicts: # packages/block-library/src/gallery/style.scss
Glen Davies committedJul 27, 2021 Configuration menu - View commit details
-
Copy full SHA for 55e8bf6 - Browse repository at this point
Copy the full SHA 55e8bf6View commit details
Commits on Jul 28, 2021
-
Glen Davies committed
Jul 28, 2021 Configuration menu - View commit details
-
Copy full SHA for 8b1bd7d - Browse repository at this point
Copy the full SHA 8b1bd7dView commit details -
Glen Davies committed
Jul 28, 2021 Configuration menu - View commit details
-
Copy full SHA for 0b9d8b2 - Browse repository at this point
Copy the full SHA 0b9d8b2View commit details
Commits on Aug 2, 2021
-
Merge branch 'refactor/gallery-to-nested-image-blocks' into rnmobile/…
…refactor/gallery-as-nested-image-blocks
Antonis Lilis committedAug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 9ca69ea - Browse repository at this point
Copy the full SHA 9ca69eaView commit details -
Antonis Lilis committed
Aug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 475f976 - Browse repository at this point
Copy the full SHA 475f976View commit details -
Antonis Lilis committed
Aug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 5387ca0 - Browse repository at this point
Copy the full SHA 5387ca0View commit details -
Removes the imageCount attribute
Antonis Lilis committedAug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for ec158f7 - Browse repository at this point
Copy the full SHA ec158f7View commit details -
Antonis Lilis committed
Aug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 53ba376 - Browse repository at this point
Copy the full SHA 53ba376View commit details -
Antonis Lilis committed
Aug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for fe40795 - Browse repository at this point
Copy the full SHA fe40795View commit details -
Merge branch 'rnmobile/refactor/gallery-as-nested-image-blocks' into …
…rnmobile/refactor/gallery-as-nested-image-blocks-editor-settings_v2
Configuration menu - View commit details
-
Copy full SHA for b3460a6 - Browse repository at this point
Copy the full SHA b3460a6View commit details -
[Mobile] Renames Gallery v2 Flag to __unstableGalleryWithImageBlocks (#…
…33816) * Renames __experimentalGalleryRefactor to __unstableGalleryWithImageBlocks * Fixes lint formatting issue * Fixes lint issue
Antonis Lilis authoredAug 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 7e48195 - Browse repository at this point
Copy the full SHA 7e48195View commit details -
Merge branch 'trunk' into rnmobile/refactor/gallery-as-nested-image-b…
…locks-editor-settings_v2
Configuration menu - View commit details
-
Copy full SHA for 0694339 - Browse repository at this point
Copy the full SHA 0694339View commit details
Commits on Aug 3, 2021
-
Merge mobile refactor of gallery to nested image blocks into desktop …
…refactor PR(#31306) * Move native v1 Gallery components to v1 directory * Use v1 defaultColumnsNumber in native v1 gallery * Make onFocus optional in MediaPlaceholder * Add useInnerBlocksProps hook * Enable __experimentalGalleryRefactor flag under __DEV__ * Add numColumns to block-list flat list * Fix spacing * Adjust styles to avoid appender overlap * Add gallery caption * Fix lint Some of these "fixes" are simply disabling lint for the offending lines. These currently unused variables may be used in a later PR, so I'm leaving them in, for now, to help simplify reconciling the changes from the former refactor PR. * Fix sass lint * [Mobile] - Refactor gallery - cherry pick image edit native (#31826) * Remove duplicate / conflicting methods from performance refactor * Use context for imageCrop and isGrouped instead of isGallery * Remove non-existent inheritedAttributes attribute * Remove dead code from non-existent context attributes * Remove unused attributes prop from link settings * Cherry-pick BlockListItem changes Note: Since render was changed to renderContent, we should return early from render too, when blockWidth is falsey. * Return early from render instead of renderContent * Cherry-pick plumb blockProps through BlockListBlock I'm not sure yet whether it still makes sense to use blockProps in this way. I'm going to cherry-pick the commits by file, and sort out the need for this mechanism afterwards. * Cherry-pick add GridItem Since this is duplicated from the original mobile gallery code (Tiles component), it might make sense to export it for re-use. Previously, it was only moved, but now that we will maintain both versions, it has become a duplicate implementation. I will defer this to a later commit. * Cherry-pick BlockList Similar to blockProps mentioned earlier, gridProperties will be evaluated after cherry-picking the relevant changes, to see if there is another mechanism that may be more appropriate. * Cherry-pick StylePreview key change * Cherry-pick blockProps and gridProperties in InnerBlocks * Use sass var for galleryAppender padding Note: This also re-adds fullWidth style, which is still being used in both v1 and v2 mobile implementations. If this is superceded by a recent refactor of the block width styles, it may be worth revisiting this and removing / changing the implementation. * Cherry-pick remaining gallery changes Note: as before, blockProps and gridProperties should be re-evaluated in subsequent commits, if necessary. E.g. `imageCrop` is already recieved via context, and `isGroup` may be sufficient, eliminating the need for `isGallery`. * Remove numColumns Going back over the older commits, it seems there were a two strategies used to render the gallery images as a grid. One used the numColumns (same as used in the Columns block), and the other using the Grid component. This commit cleans up the unused parts of the former approach. * Remove blockProps This is no longer necessary, since we are using context to pass gallery-level attributes to the image blocks' rendering. * Fix gallery block.json (delete extra comma) * Remove unused imageCrop * Add back blockWidth contentContainerStyles in block list * Use boolean flags for variants in Platform module These flags allow for a slightly more flexible, performant, and terse way of branching by platform. For more details, see: #18058 (comment) * Use boolean Platform flags * Only render imageSizeOptions loading spinner on web * Add default for destructured context in image edit This is necessary for unit tests, because they instantiate the block's edit component directly, and so the default context is not provided. * Temporarily hard-code experimenal gallery refactor flag to true This will be reverted once the block settings are fetched from the REST API. This is enabled for now for testing purposes. * Update experiments page with warning about the mobile app version * Changes new gallery flag name * Updates mobile warning * Removes the imageCount attribute * Remove the isGrouped context * Fixes lint issue Co-authored-by: Antonis Lilis <antonis.lilis@automattic.com>
Configuration menu - View commit details
-
Copy full SHA for 6a58538 - Browse repository at this point
Copy the full SHA 6a58538View commit details -
Merge branch 'trunk' of github.com:WordPress/gutenberg into refactor/…
…gallery-to-nested-image-blocks
Glen Davies committedAug 3, 2021 Configuration menu - View commit details
-
Copy full SHA for 8529284 - Browse repository at this point
Copy the full SHA 8529284View commit details
Commits on Aug 4, 2021
-
Merge branch 'refactor/gallery-to-nested-image-blocks' into rnmobile/…
…refactor/gallery-as-nested-image-blocks-editor-settings_v2
Configuration menu - View commit details
-
Copy full SHA for 778a848 - Browse repository at this point
Copy the full SHA 778a848View commit details
Commits on Aug 30, 2021
-
Merge branch 'trunk' into rnmobile/refactor/gallery-as-nested-image-b…
…locks-editor-settings_v2
Antonis Lilis committedAug 30, 2021 Configuration menu - View commit details
-
Copy full SHA for 2e2e38b - Browse repository at this point
Copy the full SHA 2e2e38bView commit details
Commits on Sep 1, 2021
-
Merge branch 'trunk' into rnmobile/refactor/gallery-as-nested-image-b…
…locks-editor-settings_v2
Antonis Lilis committedSep 1, 2021 Configuration menu - View commit details
-
Copy full SHA for b5fba10 - Browse repository at this point
Copy the full SHA b5fba10View commit details -
Merge branch 'trunk' into rnmobile/refactor/gallery-as-nested-image-b…
…locks-editor-settings_v2
Antonis Lilis committedSep 1, 2021 Configuration menu - View commit details
-
Copy full SHA for 3716881 - Browse repository at this point
Copy the full SHA 3716881View commit details
Commits on Sep 2, 2021
-
[Mobile] Android: Pass the Gallery v2 Flag over from the editor (#33544)
Pass the Gallery v2 Flag over from the editor on Android
Antonis Lilis authoredSep 2, 2021 Configuration menu - View commit details
-
Copy full SHA for a21a37e - Browse repository at this point
Copy the full SHA a21a37eView commit details -
Merge branch 'trunk' into rnmobile/refactor/gallery-as-nested-image-b…
…locks-editor-settings_v2
Antonis Lilis committedSep 2, 2021 Configuration menu - View commit details
-
Copy full SHA for c052389 - Browse repository at this point
Copy the full SHA c052389View commit details