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

Update/image block #11377

Closed
wants to merge 30 commits into from
Closed

Update/image block #11377

wants to merge 30 commits into from

Commits on Jun 11, 2018

  1. Update image block

    - Add `srcset` and `sizes` inside the editor.
    - Add `data-wp-attachment-id` and `ata-wp-percent-width` to the img tag. Will be used on the front-end to properly set `srcset` and `sizes`, and also img `width` and `height` where missing.
    - Improve setting/resetting the image dimensions.
    azaozz committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    9d5091f View commit details
    Browse the repository at this point in the history
  2. Update image block, add srcset to attachment data

    Add `srcset` to the attachment data from the API and to the data in the media modal.
    azaozz committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    4b3d889 View commit details
    Browse the repository at this point in the history
  3. Image block: fix docs

    See #6177.
    azaozz committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    be16a73 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2018

  1. Merge master

    azaozz committed Aug 28, 2018
    Configuration menu
    Copy the full SHA
    041d1a5 View commit details
    Browse the repository at this point in the history
  2. Fixes after merging from master. (NOTE: JSHint still throws errors an…

    …d warnings after ignore!)
    azaozz committed Aug 28, 2018
    Configuration menu
    Copy the full SHA
    64648c1 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2018

  1. Configuration menu
    Copy the full SHA
    28d9315 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2018

  1. Configuration menu
    Copy the full SHA
    0a73bc9 View commit details
    Browse the repository at this point in the history
  2. Fixes after update

    azaozz committed Sep 10, 2018
    Configuration menu
    Copy the full SHA
    1d0d17e View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2018

  1. Configuration menu
    Copy the full SHA
    dbba831 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2018

  1. Configuration menu
    Copy the full SHA
    b6dc78f View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2018

  1. Configuration menu
    Copy the full SHA
    108ea54 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2018

  1. Interim - img block

    Most functionality works as expected. Still todo: image dimensions by entering width or height. These need to override the `scale` attribute.
    azaozz committed Oct 15, 2018
    Configuration menu
    Copy the full SHA
    22207ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cb8189 View commit details
    Browse the repository at this point in the history
  3. In progress

    - Don't save srcset and sizes in block props.
    - Better names?
    - Clean up few eslint-disable-*.
    azaozz committed Oct 15, 2018
    Configuration menu
    Copy the full SHA
    ae95eab View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2018

  1. Configuration menu
    Copy the full SHA
    d9ef233 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2018

  1. Almost complete!

    azaozz committed Oct 18, 2018
    Configuration menu
    Copy the full SHA
    0aea270 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2018

  1. In progress

    Tweak some names, clean up few things, simplify the php parts, fall back to the original block html if some image data is not there.
    azaozz committed Oct 19, 2018
    Configuration menu
    Copy the full SHA
    a476203 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8d37181 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9d0899e View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2018

  1. In progress

    - Better handling of existing (old) image blocks and just uploaded images.
    - Add support for scaled external images.
    azaozz committed Oct 20, 2018
    Configuration menu
    Copy the full SHA
    22007e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b5be6f View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2018

  1. Complete?

    Added few more block props that are passed to the PHP filters in WP. Now themes and plugins can easily decide how to handle all aspects of rendering the image block on the front-end.
    azaozz committed Nov 1, 2018
    Configuration menu
    Copy the full SHA
    5525986 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83ca683 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15520ea View commit details
    Browse the repository at this point in the history
  4. A bit of cleanup

    azaozz committed Nov 1, 2018
    Configuration menu
    Copy the full SHA
    17c5563 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a98975 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2018

  1. Fix missing comment

    azaozz committed Nov 2, 2018
    Configuration menu
    Copy the full SHA
    e8dfda2 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2018

  1. Merge branch 'master' into update/image-block

    Also fix after 8322628
    azaozz committed Nov 6, 2018
    Configuration menu
    Copy the full SHA
    e1a5a86 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39bbfec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5102f35 View commit details
    Browse the repository at this point in the history