Skip to content

Releases: prismicio/slice-machine

1.25.0

11 Mar 09:03
Compare
Choose a tag to compare

Hey! 👋

We're happy to announce the release of Slice Machine v1.25.0!

🎨 Enhancements

Update your Next.js slice simulator page

If you are using Next.js with the App Router, we recommend updating your /slice-simulator page with the following code.

After the update, your slice components can use Next.js dynamic functions.

// src/app/slice-simulator/page.tsx

import {
  SliceSimulator,
  SliceSimulatorParams,
  getSlices,
} from "@slicemachine/adapter-next/simulator";
import { SliceZone } from "@prismicio/react";

import { components } from "@/slices";

export default function SliceSimulatorPage({
  searchParams,
}: SliceSimulatorParams) {
  const slices = getSlices(searchParams.state);

  return (
    <SliceSimulator>
      <SliceZone slices={slices} components={components} />
    </SliceSimulator>
  );
}

Updating your page is not required, but we recommend updating it in the near future. All new Next.js projects using the App Router and bootstrapped with @slicemachine/init will use the updated code.

Note

If you are using the Pages Router, your page does not need to be updated. The existing set up will continue to work without changes.

1.24.1

22 Feb 17:32
Compare
Choose a tag to compare

Hey! 👋

We're happy to announce the release of Slice Machine v1.24.1!

🐛 Bug fixes

  • We fixed an error in the Simulator when selecting an image
  • We fixed an issue that was preventing changelog updates to be visible in the UI

1.24.0

08 Feb 16:52
Compare
Choose a tag to compare

Hey! 👋

We're happy to announce the release of Slice Machine v1.24.0!

🎨 Enhancements

  • We enabled multiple paragraphs in rich text fields by default.
  • We improved the design of the Changes side menu item.

🐛 Bug fixes

  • We fixed an issue that prevented initializing Slice Machine because of telemetry.
  • We fixed an issue that caused a newly added field to be at the wrong position in a custom type.

1.23.1

25 Jan 15:02
Compare
Choose a tag to compare

Hey! 🎉

We're excited to announce the release of Slice Machine v1.23.1, adding a few bug fixes.

🐛 Bug fixes

  • We fixed an issue that prevented users to set group fields as non-repeatable, using the property "repeat": false
  • We fixed an issue that displayed an error related to Segment that should not impact the experience

1.23.0

19 Jan 10:33
Compare
Choose a tag to compare

Heya! 🎉

We're excited to announce the release of Slice Machine v1.23.0, bringing you a fantastic feature and a minor bug fix.

✨ Auto-save while editing models

  • You no longer need to worry about manually saving your progress when editing types and slices! Slice Machine will take care of it for you automatically—no more "Save" button necessary! Enjoy uninterrupted productivity as you create your amazing projects.

Figma from

🐛 Bug fixes: Improved user experience!

  • We have also addressed the display issue in the add slices dropdown to make sure your workflow remains smooth and efficient. Happy coding! 🚀

1.22.2

11 Jan 10:35
Compare
Choose a tag to compare

Hey! 👋

Today we are happy to release a small patch release to add on top of our v1.22.1. This release includes a couple of small bug fixes relative to environments.

Small bug fixes

  • Fix a bug that allowed users not part of an environment to select it
  • Fix the display of the environments switch

1.22.1

18 Dec 21:15
Compare
Choose a tag to compare

Hey there!

Today we are happy to release a small patch release to add on top of our recent v1.22.0. This release includes a couple of small bug fixes.

Small bug fixes

  • Correctly display your personal sandbox (an upcoming feature!).
  • Prevent an error where Slice Machine crashes when incorrect dependency versions are installed.

1.22.0

15 Dec 00:03
Compare
Choose a tag to compare

Hey! 👋

Today we are happy to bring support for SvelteKit 2!

How to update an existing SvelteKit project

Upgrading to SvelteKit 2 does not require any changes to your Prismic code. It does, however, require updating your packages.

  1. Update your Prismic packages:

    npm install --save-dev slice-machine-ui@latest @slicemachine/adapter-sveltekit@latest
    npm install @prismicio/svelte@latest
  2. Migrate your project to SvelteKit 2 using the official migration guide.

Better support for bootstrapping SvelteKit projects

In addition to supporting SvelteKit 2, we also updated @slicemachine/init to bootstrap existing SvelteKit projects with better Prismic preview support.

Add Prismic to existing projects by running the following command:

npx @slicemachine/init@latest

Note

We recommend starting projects with a Prismic starter.

Starters already contain the configuration needed for a fully-featured website. The updates to @slicemachine/init are for projects that did not start with a Prismic starter.

1.21.3

13 Dec 17:27
Compare
Choose a tag to compare

Hey there!

Today we are happy to release a small patch release to add on top of our recent v1.21.2. This release adds a few UI improvements and small bug fixes.

Small UI improvements and bug fixes

  • We fixed a few UI issues on environments support in Slice Machine
  • We fixed a UI issue on the button to add a new slice variation

1.21.2

01 Dec 17:38
Compare
Choose a tag to compare

Hey there!

Today we are happy to release a small patch release to add on top of our recent v1.21.1 This release adds a few UI improvements and small bug fixes.

Small UI improvements and bug fixes

  • We have enhanced error handling for both login and repository access. Users will now receive distinct error messages in cases where they are not logged in or do not have access to the repository.
  • We fixed a few UI issues in the nav bar.