File tree Expand file tree Collapse file tree 4 files changed +148
-199
lines changed
Expand file tree Collapse file tree 4 files changed +148
-199
lines changed Original file line number Diff line number Diff line change 1212 "test:watch" : " vitest"
1313 },
1414 "dependencies" : {
15- "@object-ui/components" : " ^0.5 .0" ,
16- "@object-ui/core" : " ^0.5 .0" ,
17- "@object-ui/data-objectstack" : " ^0.5 .0" ,
18- "@object-ui/fields" : " ^0.5 .0" ,
19- "@object-ui/layout" : " ^0.5 .0" ,
20- "@object-ui/react" : " ^0.5 .0" ,
15+ "@object-ui/components" : " ^2.0 .0" ,
16+ "@object-ui/core" : " ^2.0 .0" ,
17+ "@object-ui/data-objectstack" : " ^2.0 .0" ,
18+ "@object-ui/fields" : " ^2.0 .0" ,
19+ "@object-ui/layout" : " ^2.0 .0" ,
20+ "@object-ui/react" : " ^2.0 .0" ,
2121 "@objectstack/client" : " 2.0.7" ,
2222 "@radix-ui/react-dialog" : " ^1.1.15" ,
2323 "@radix-ui/react-dropdown-menu" : " ^2.1.16" ,
Original file line number Diff line number Diff line change @@ -14,16 +14,11 @@ import { createObjectStackAdapter } from '@object-ui/data-objectstack';
1414 * through the @objectstack/client API.
1515 */
1616export const objectUIAdapter = createObjectStackAdapter ( {
17- // Base URL for ObjectStack API
18- baseURL : import . meta. env . VITE_API_BASE_URL || '/api/v1' ,
17+ // Base URL for ObjectStack API (note: baseUrl not baseURL)
18+ baseUrl : import . meta. env . VITE_API_BASE_URL || '/api/v1' ,
1919
20- // Optional: Custom headers for authentication
21- headers : {
22- 'Content-Type' : 'application/json' ,
23- } ,
24-
25- // Optional: Enable credentials for cookie-based auth
26- credentials : 'include' ,
20+ // Optional: Token for authentication (if not using cookies)
21+ // token: 'your-auth-token',
2722} ) ;
2823
2924/**
Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ export default function ObjectUIDemoPage() {
5353 </ CardHeader >
5454 < CardContent >
5555 < div className = "flex flex-wrap gap-2" >
56- < Badge variant = "secondary" > @object-ui/core@0.5 .0</ Badge >
57- < Badge variant = "secondary" > @object-ui/react@0.5 .0</ Badge >
58- < Badge variant = "secondary" > @object-ui/components@0.5 .0</ Badge >
59- < Badge variant = "secondary" > @object-ui/layout@0.5 .0</ Badge >
60- < Badge variant = "secondary" > @object-ui/fields@0.5 .0</ Badge >
61- < Badge variant = "secondary" > @object-ui/data-objectstack@0.5 .0</ Badge >
56+ < Badge variant = "secondary" > @object-ui/core@2.0 .0</ Badge >
57+ < Badge variant = "secondary" > @object-ui/react@2.0 .0</ Badge >
58+ < Badge variant = "secondary" > @object-ui/components@2.0 .0</ Badge >
59+ < Badge variant = "secondary" > @object-ui/layout@2.0 .0</ Badge >
60+ < Badge variant = "secondary" > @object-ui/fields@2.0 .0</ Badge >
61+ < Badge variant = "secondary" > @object-ui/data-objectstack@2.0 .0</ Badge >
6262 </ div >
6363 </ CardContent >
6464 </ Card >
You can’t perform that action at this time.
0 commit comments