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

Block Editor Form Validation #7369

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Commits on Oct 14, 2024

  1. Create useBlockEditor hook

    This hook will override the WP Editor savePost action just like ACF (for the time being) until a stable PreSavePost hook becomes available. I've already added todo tags into the code as a reminder.
    Code is based on ACF: https://github.com/AdvancedCustomFields/acf/blob/6.3.8/assets/build/js/acf-input.js#L11285
    JoryHogeveen committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    55fa52b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6b8791 View commit details
    Browse the repository at this point in the history
  3. Fix valid status

    JoryHogeveen committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    14f4da4 View commit details
    Browse the repository at this point in the history
  4. Use hook on init to properly set global vars

    At this point `wp.data.dispatch('core/editor')` is available React is not rendered yet so we can properly override the savePost function.
    JoryHogeveen committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    17610dd View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Auto rebuild assets

    JoryHogeveen authored and github-actions[bot] committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    e43afda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50b12ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b0848d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9428792 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1203826 View commit details
    Browse the repository at this point in the history
  6. Auto rebuild assets

    JoryHogeveen authored and github-actions[bot] committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    1b2ddae View commit details
    Browse the repository at this point in the history
  7. Add meetsConditionalLogic as a hook dependency

    Signed-off-by: Jory Hogeveen <JoryHogeveen@users.noreply.github.com>
    JoryHogeveen authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    d8a0abe View commit details
    Browse the repository at this point in the history
  8. Auto rebuild assets

    JoryHogeveen authored and github-actions[bot] committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    60f9a41 View commit details
    Browse the repository at this point in the history