@prismicio/slice-simulator-vue3 Deprecation Guide
@prismicio/slice-simulator-vue3
, a package providing a component to simulate Slices in Slice Machine UI and the Page Builder, is deprecated. Its functionalities are now distributed through @slicemachine/adapter-nuxt.
- Remove
@prismicio/slice-simulator-vue3
from yourpackage.json
.
{
"devDependencies": {
}
}
2. Update your package.json
to use the latest version of @slicemachine/adapter-nuxt
.
{
"devDependencies": {
"@slicemachine/adapter-nuxt": "^0.3.0"
}
}
3. Update your installed packages with npm
.
npm install
The following changes are required when upgrading your simulator to @slicemachine/adapter-nuxt
v0.
Replace imports for @prismicio/slice-simulator-vue3
with @slicemachine/adapter-nuxt
on your simulator page.
import { SliceSimulator } from '@slicemachine/adapter-nuxt/simulator'
The deprecated state
prop from @prismicio/slice-simulator-vue3
has been removed with @slicemachine/adapter-nuxt
. If you were still using it, you now have to remove it:
<template>
<SliceSimulator
#default="{ slices }"
>
<SliceZone :slices="slices" :components="components" />
</SliceSimulator>
</template>
<script setup lang="ts">
import { SliceSimulator } from '@slicemachine/adapter-nuxt/simulator'
import { components } from '~/slices'
</script>
Can't find what you're looking for?
Need technical Support? Spot an error in the documentation? Get in touch with us on our Community Forum.