Comments (4)
Related WordPress/gutenberg#27575.
from pattern-directory.
Block patterns can have a blockTypes
property, which identifies blocks that can be converted into this pattern. For example, the paragraph block:
We should add some (optional) way of flagging patterns as related to block types, and on the validation side, make sure the pattern can be transformed from the chosen block. It seems like patterns can be related to more than one block type, but I think in practice, it's usually just one.
The API & proxy API will also need to be updated to allow a "blockTypes" parameter for fetching patterns.
from pattern-directory.
There is a PR on the Gutenberg side to use the blockTypes
meta value when registering patterns: WordPress/gutenberg#32113
We still need to create a flow for setting the blockType value when creating a pattern.
from pattern-directory.
We can set blockTypes
for a pattern, and that will pass through the API to the editor to make it work (once WordPress/gutenberg#32113 is merged).
The unanswered question here is how that should work (in the UI) when creating a pattern. Since we still don't have a design here, and the gutenberg API has no traction (so it won't make 5.9), I've pulled this out of the pattern creation v1 milestone. We can revisit it post-beta or post-launch.
from pattern-directory.
Related Issues (20)
- Style of "View all patterns" link HOT 4
- Block Theme: Filters: Default state and clear action in Sort HOT 6
- Pattern update: Simple header with dark background HOT 1
- Block Theme: My patterns button stuck against footer. HOT 1
- Block Theme: Broken image links.
- Block theme: Update favorite interactions. HOT 1
- Block Theme: Single pattern header layout feels awkward. HOT 2
- Pattern Creator: pattern previews are misleading due to lack of full width and layout features in the post editor HOT 4
- Update the opengraph image for social media previews HOT 2
- Text Encoding Error in Catalan Pattern Directory menu label HOT 1
- New Theme: Number displayed in user-created pattern "Delete" button
- Block theme: Dynamic pattern includes broken with GB 18.1 HOT 1
- Block theme: Clicking category on favorites takes you to category archive HOT 1
- Block theme: Sort label is displaying as the dropdown title.
- Block theme: Archive, Category and Search pages don't have an `h1` tag.
- Block theme: Report button alignment on mobile. HOT 2
- Block theme: Author view sub nav menu includes query parameters on scroll down.
- Block theme: using category nav bar on favorites (or author view) navigates me away. HOT 1
- Block theme: How do I clear my filtered search? HOT 6
- Block theme: No way to identify author if they only have 1 pattern. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pattern-directory.