@liveblocks/zustand 0.17.0-beta1 → 0.17.0-beta2
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/index.d.ts +8 -8
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare type LiveblocksState<
|
|
|
15
15
|
TPresence extends JsonObject,
|
|
16
16
|
TStorage extends LsonObject,
|
|
17
17
|
TUserMeta extends BaseUserMeta,
|
|
18
|
-
|
|
18
|
+
TRoomEvent extends Json
|
|
19
19
|
> = TState & {
|
|
20
20
|
/**
|
|
21
21
|
* Liveblocks extra state attached by the middleware
|
|
@@ -35,7 +35,7 @@ declare type LiveblocksState<
|
|
|
35
35
|
/**
|
|
36
36
|
* The room currently synced to your zustand state.
|
|
37
37
|
*/
|
|
38
|
-
readonly room: Room<TPresence, TStorage, TUserMeta,
|
|
38
|
+
readonly room: Room<TPresence, TStorage, TUserMeta, TRoomEvent> | null;
|
|
39
39
|
/**
|
|
40
40
|
* Other users in the room. Empty no room is currently synced
|
|
41
41
|
*/
|
|
@@ -78,20 +78,20 @@ declare function middleware<
|
|
|
78
78
|
TPresence extends JsonObject,
|
|
79
79
|
TStorage extends LsonObject,
|
|
80
80
|
TUserMeta extends BaseUserMeta,
|
|
81
|
-
|
|
81
|
+
TRoomEvent extends Json
|
|
82
82
|
>(
|
|
83
83
|
config: StateCreator<
|
|
84
84
|
T,
|
|
85
85
|
SetState<T>,
|
|
86
|
-
GetState<LiveblocksState<T, TPresence, TStorage, TUserMeta,
|
|
86
|
+
GetState<LiveblocksState<T, TPresence, TStorage, TUserMeta, TRoomEvent>>,
|
|
87
87
|
StoreApi<T>
|
|
88
88
|
>,
|
|
89
89
|
options: Options<T>
|
|
90
90
|
): StateCreator<
|
|
91
|
-
LiveblocksState<T, TPresence, TStorage, TUserMeta,
|
|
92
|
-
SetState<LiveblocksState<T, TPresence, TStorage, TUserMeta,
|
|
93
|
-
GetState<LiveblocksState<T, TPresence, TStorage, TUserMeta,
|
|
94
|
-
StoreApi<LiveblocksState<T, TPresence, TStorage, TUserMeta,
|
|
91
|
+
LiveblocksState<T, TPresence, TStorage, TUserMeta, TRoomEvent>,
|
|
92
|
+
SetState<LiveblocksState<T, TPresence, TStorage, TUserMeta, TRoomEvent>>,
|
|
93
|
+
GetState<LiveblocksState<T, TPresence, TStorage, TUserMeta, TRoomEvent>>,
|
|
94
|
+
StoreApi<LiveblocksState<T, TPresence, TStorage, TUserMeta, TRoomEvent>>
|
|
95
95
|
>;
|
|
96
96
|
|
|
97
97
|
export { LiveblocksState, Mapping, ZustandState, middleware };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/zustand",
|
|
3
|
-
"version": "0.17.0-
|
|
3
|
+
"version": "0.17.0-beta2",
|
|
4
4
|
"description": "A middleware to integrate Liveblocks into Zustand stores.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"directory": "packages/liveblocks-zustand"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@liveblocks/client": "0.17.0-
|
|
34
|
+
"@liveblocks/client": "0.17.0-beta2",
|
|
35
35
|
"zustand": "^3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|