Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5121

Explore extending WP Core Blocks by importing the block-library directly

    XporterXMLWordPrintable

    Details

    • Type: Task
    • Status: OPEN
    • Priority: Could have
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Section:
      Gutenberg
    • Track:
      Development
    • Repositories:
      planet4-plugin-gutenberg-blocks

      Description

      Currently, we are copying files from Wordpress repositories to override functionality on the Core WP blocks (e.g.: Button, Table). Thus, we are creating mini-forks of Wordpress components into our repo.

      We are just copying the files we need, but these files actually import a lot of stuff from the Wordpress modules. As this can probably get outdated, maybe we can include the wordpress/block-library module and extend those files by importing them in our components instead of directly forking these files.

      I tried doing so but I ran into some compiler issues, I suspect the Babel setup may be interfering, I added more technical details in this secret gist.

      Tasks:

      • Put some time aside to test for an alternative solution to core block overrides, by  extending core blocks from the block-library instead of copying the files.
      • If none is found or the solution is overkill maybe we can discard this ticket. 

       

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                pcuadrad Pablo Cuadrado
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated: