Skip to content

2.0.0

Compare
Choose a tag to compare
@comeprismic comeprismic released this 20 May 14:08
· 17 commits to main since this release

⚠️IMPORTANT⚠️: this new release contain an important update for GraphQL API users, please read carefully before upgrading.

Hey! 👋

Today's release is a bit special.

We are super excited and proud to announce the very first improvement of a large series of new modeling features: Groups in Slices.

Indeed, the team's current focus is to enhance Prismic's modelling capabilities, starting with Slices. See all plans here.

Why Groups in Slices?
We listened to our users and understood that in various cases, they needed to implement a design for Slices that contains multiple blocks of repeated content. Like this one 👇

image Screenshot from www.jasper.ai website.

The current implementation of the repeatable zone in Slices didn't allow to cover these use cases, so we decided to leverage a feature that our users know and use a lot: Group fields. And at the same time simplify the understanding of the structure of a Slice, by removing the repeatable and static zone.

🤙 Groups in Slices

  • All users can now use as many Group fields as they want in Prismic Slices, replacing the current repeatable zone for new Slices.
  • All Slices still using the repeatable zone are still supported and can add Group fields in their Static zone.
Demo.Groups.in.Slices.in.Slice.Machine.mp4

⚠️ IMPORTANT ⚠️: The team took the decision, that due to a really minor usage compared to our main REST API, this new version and the new modeling features will not support GraphQL queries. Existing setups will remain functional, and all website will not experience any disruptions. However, to leverage the new version of Slice Machine and create Slices using Group fields, we recommend to switch to REST API. Also note that you can still use Prismic GraphQuery API option that allows for nested and selective fetching with our REST API, following a similar GraphQL syntax. Learn more here.

🎨 Responsive

  • We improved the UI of Slices Variation list to fit on smaller screens

⭐️ We now build in public

You can now follow all roadmap updates and the teams plans updated everyweek on https://prismic.io/updates

Best,

Côme and the Prismic DevTools team