@ram_28/kf-ai-sdk 1.0.25 → 1.0.26

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/docs/useKanban.md CHANGED
@@ -428,7 +428,10 @@ function BoardWithPriorityFilter() {
428
428
  Show only cards assigned to the current user.
429
429
 
430
430
  ```tsx
431
- function BoardWithMyTasks({ currentUserId }: { currentUserId: string }) {
431
+ import { useAuth } from "@ram_28/kf-ai-sdk/auth";
432
+
433
+ function BoardWithMyTasks() {
434
+ const { user } = useAuth();
432
435
  const kanban = useKanban<TaskData>({
433
436
  source: "BDO_Tasks",
434
437
  columns,
@@ -440,7 +443,7 @@ function BoardWithMyTasks({ currentUserId }: { currentUserId: string }) {
440
443
  kanban.filter.addCondition({
441
444
  Operator: "EQ",
442
445
  LHSField: "assignee",
443
- RHSValue: currentUserId,
446
+ RHSValue: user._id, // Pass user ID as a string
444
447
  });
445
448
  };
446
449
 
package/docs/useTable.md CHANGED
@@ -311,7 +311,7 @@ function MyItemsTable() {
311
311
  {
312
312
  Operator: "EQ",
313
313
  LHSField: "_created_by",
314
- RHSValue: { _id: user?._id, _name: user?._name },
314
+ RHSValue: user._id, // Pass user ID as a string
315
315
  RHSType: "Constant",
316
316
  },
317
317
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ram_28/kf-ai-sdk",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Type-safe, AI-driven SDK for building modern web applications with role-based access control",
5
5
  "author": "Ramprasad",
6
6
  "license": "MIT",