@norbix.ai/react-redux 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -96,7 +96,7 @@ createRoot(document.getElementById('root')!).render(
96
96
  import { useGetUsersQuery, useInviteUserMutation } from './norbix';
97
97
 
98
98
  export function UsersList() {
99
- const { data, isLoading, error } = useGetUsersQuery({ take: 20, skip: 0 });
99
+ const { data, isLoading, error } = useGetUsersQuery({ pageSize: 20 });
100
100
  const [invite, { isLoading: inviting }] = useInviteUserMutation();
101
101
 
102
102
  if (isLoading) return <p>Loading…</p>;
@@ -104,10 +104,10 @@ export function UsersList() {
104
104
 
105
105
  return (
106
106
  <ul>
107
- {data?.users?.map((u) => <li key={u.id}>{u.email}</li>)}
107
+ {data?.list?.items.map((u) => <li key={u.id}>{u.email}</li>)}
108
108
  <button
109
109
  disabled={inviting}
110
- onClick={() => invite({ email: 'maya@team.io', roleIds: [] })}
110
+ onClick={() => invite({ email: 'maya@team.io' })}
111
111
  >
112
112
  Invite
113
113
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norbix.ai/react-redux",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official Norbix bindings for React + Redux Toolkit. RTK Query helpers (cache, dedup, refetch, invalidation) over the typed Norbix SDK.",
5
5
  "author": "UAB Isidos",
6
6
  "license": "MIT",
@@ -79,7 +79,7 @@
79
79
  "@types/react": "^19.3.0",
80
80
  "@typescript-eslint/eslint-plugin": "^8.70.0",
81
81
  "@typescript-eslint/parser": "^8.70.0",
82
- "@vitest/coverage-v8": "^4.1.11",
82
+ "@vitest/coverage-v8": "^5.0.1",
83
83
  "conventional-changelog-conventionalcommits": "^9.3.1",
84
84
  "eslint": "^10.10.0",
85
85
  "eslint-config-prettier": "^10.1.8",
@@ -95,7 +95,7 @@
95
95
  "semantic-release": "^25.0.9",
96
96
  "tsup": "^8.5.1",
97
97
  "typescript": "^6.0.3",
98
- "vitest": "^4.1.11"
98
+ "vitest": "^5.0.1"
99
99
  },
100
100
  "publishConfig": {
101
101
  "access": "public",