Skip to content

feat: add <SliceSimulator> component#120

Merged
angeloashmore merged 6 commits intomainfrom
lh/simulator
Jan 14, 2026
Merged

feat: add <SliceSimulator> component#120
angeloashmore merged 6 commits intomainfrom
lh/simulator

Conversation

@lihbr
Copy link
Copy Markdown
Member

@lihbr lihbr commented Jan 13, 2026

Resolves: https://prismic-team.slack.com/archives/CPG31MDL1/p1767962753033489

Related:

Description

This pull request regroups the <SliceSimulator> component initially offered by Slice Machine adapters under their respective framework SDK. Behavior is strictly identical and allows Slice Machine adapters to become pure dev dependencies.

App Router:

- import { SliceSimulator, getSlices } from "@slicemachine/adapter-next/simulator"
+ import { SliceSimulator, getSlices } from "@prismicio/next"

Pages Router:

- import { SliceSimulator } from "@slicemachine/adapter-next/simulator"
+ import { SliceSimulator } from "@prismicio/next/pages"

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

Copy link
Copy Markdown
Member Author

@lihbr lihbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@angeloashmore angeloashmore merged commit 0c6603f into main Jan 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants