Skip to content

Commit 325e0c7

Browse files
Copilothotlong
andcommitted
Update @object-ui packages to v2.0.0 and fix adapter configuration
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a2d3bfc commit 325e0c7

File tree

4 files changed

+148
-199
lines changed

4 files changed

+148
-199
lines changed

apps/web/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
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",

apps/web/src/lib/object-ui-adapter.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@ import { createObjectStackAdapter } from '@object-ui/data-objectstack';
1414
* through the @objectstack/client API.
1515
*/
1616
export 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
/**

apps/web/src/pages/settings/objectui-demo.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)