docs: don't source radix-vue from catalog: in code editor context (#693)

This commit is contained in:
Oleh Aleinyk 2024-08-01 08:23:27 +03:00 committed by GitHub
parent 5708af535a
commit 6ac90c10ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,5 @@
import { getParameters } from 'codesandbox/lib/api/define'
import sdk from '@stackblitz/sdk'
import { dependencies as deps } from '../../../package.json'
import { Index as demoIndex } from '../../../../www/__registry__'
// @ts-expect-error ?raw
import tailwindConfigRaw from '../../../tailwind.config?raw'
@ -92,7 +91,7 @@ function constructFiles(componentName: string, style: Style, sources: Record<str
const iconPackage = style === 'default' ? 'lucide-vue-next' : '@radix-icons/vue'
const dependencies = {
'vue': 'latest',
'radix-vue': deps['radix-vue'],
'radix-vue': 'latest',
'@radix-ui/colors': 'latest',
'clsx': 'latest',
'class-variance-authority': 'latest',