mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
Bump shadcn dep.
This commit is contained in:
1 parent
fe068260ef
commit
9d02e288b0
8 files changed
+986
-288
No files matched your search
@@ -104,7 +104,7 @@
|
||||
"react-dropzone": "^14.3.8",
|
||||
"react-router": "^7.5.2",
|
||||
"rimraf": "^4.1.3",
|
||||
"shadcn": "^2.10.0",
|
||||
"shadcn": "^3.1.0",
|
||||
"shiki": "^1.1.7",
|
||||
"tailwindcss": "^3.3.0",
|
||||
"tsconfig": "workspace:*",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type Registry, type RegistryItem } from 'shadcn/registry'
|
||||
import { type RegistryItem } from 'shadcn/schema'
|
||||
import { clients } from './clients'
|
||||
import { registryItemAppend } from './utils'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type Registry } from 'shadcn/registry'
|
||||
import { type RegistryItem } from 'shadcn/schema'
|
||||
import nextjs from './default/clients/nextjs/registry-item.json' with { type: 'json' }
|
||||
import reactRouter from './default/clients/react-router/registry-item.json' with { type: 'json' }
|
||||
import react from './default/clients/react/registry-item.json' with { type: 'json' }
|
||||
import tanstack from './default/clients/tanstack/registry-item.json' with { type: 'json' }
|
||||
|
||||
export const clients = [nextjs, react, reactRouter, tanstack] as Registry['items']
|
||||
export const clients = [nextjs, react, reactRouter, tanstack] as RegistryItem[]
|
||||
@@ -1,6 +1,6 @@
|
||||
import { type Registry } from 'shadcn/registry'
|
||||
import type { RegistryItem } from 'shadcn/schema'
|
||||
|
||||
export const examples: Registry['items'] = [
|
||||
export const examples: RegistryItem[] = [
|
||||
{
|
||||
name: 'dropzone-demo',
|
||||
type: 'registry:example',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { type Registry } from 'shadcn/registry'
|
||||
import type { Registry, RegistryItem } from 'shadcn/schema'
|
||||
|
||||
import { examples } from '@/registry/examples'
|
||||
import type { RegistryItem } from 'shadcn/registry'
|
||||
import { blocks } from './blocks'
|
||||
import { clients } from './clients'
|
||||
import aiEditorRules from './default/ai-editor-rules/registry-item.json' with { type: 'json' }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { type Registry, type RegistryItem } from 'shadcn/registry'
|
||||
import { type RegistryItem } from 'shadcn/schema'
|
||||
|
||||
import embeddedDashboardNextjs from './default/platform/platform-kit-nextjs/registry-item.json' with { type: 'json' }
|
||||
|
||||
export const platform = [embeddedDashboardNextjs as RegistryItem] as Registry['items']
|
||||
export const platform = [embeddedDashboardNextjs as RegistryItem]
|
||||
@@ -1,8 +1,8 @@
|
||||
import lodash from 'lodash'
|
||||
import { Registry } from 'shadcn/registry'
|
||||
import { type RegistryItem } from 'shadcn/schema'
|
||||
const { uniq, uniqBy } = lodash
|
||||
|
||||
const registryItemAppend = (item: Registry['items'][number], items: Registry['items']) => {
|
||||
const registryItemAppend = (item: RegistryItem, items: RegistryItem[]) => {
|
||||
const neededRegDependencies = [
|
||||
...(item.registryDependencies || []),
|
||||
...items.flatMap((i) => i.registryDependencies),
|
||||
|
||||
Generated
+975
-276
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user