@startsimpli/ui 0.4.69 → 0.4.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/components/ui/index.ts +18 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startsimpli/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.71",
|
|
4
4
|
"description": "Shared UI components package for StartSimpli applications",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react": "^18.0.0 || ^19.0.0",
|
|
44
44
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
45
45
|
"@startsimpli/auth": "^0.4.31",
|
|
46
|
-
"@startsimpli/api": "^0.5.
|
|
46
|
+
"@startsimpli/api": "^0.5.45"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@startsimpli/api": {
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
// Re-export all shadcn/ui components.
|
|
4
|
+
//
|
|
5
|
+
// This barrel carries a `'use client'` boundary because it aggregates client
|
|
6
|
+
// components (query-provider wraps @tanstack/react-query; the radix-backed
|
|
7
|
+
// primitives call React.createContext at module load). Without the boundary, a
|
|
8
|
+
// Server Component importing anything from the `@startsimpli/ui` root barrel
|
|
9
|
+
// (e.g. `import { QueryProvider, Toaster } from '@startsimpli/ui'`) drags this
|
|
10
|
+
// whole barrel into the server graph. When the package is consumed as a real
|
|
11
|
+
// node_module (no barrel tree-shaking), the client modules land in the SSR
|
|
12
|
+
// chunk where `react` resolves to the react-server build that has no
|
|
13
|
+
// `createContext` — crashing `next build` at "Collecting page data" with
|
|
14
|
+
// "TypeError: createContext is not a function" (startsim-milj). Marking the
|
|
15
|
+
// barrel a client boundary keeps these client components out of the RSC/server
|
|
16
|
+
// graph. Modules inside `@startsimpli/ui` still import the leaf primitives via
|
|
17
|
+
// their relative paths (e.g. `../ui/card`), so internal server rendering is
|
|
18
|
+
// unaffected.
|
|
2
19
|
export * from './accordion'
|
|
3
20
|
export * from './alert'
|
|
4
21
|
export * from './badge'
|