@liveblocks/react 2.0.0-alpha1 → 2.0.0-alpha2
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/dist/{chunk-HLKYTK7G.mjs → chunk-HZXXTIZ4.mjs} +87 -90
- package/dist/chunk-HZXXTIZ4.mjs.map +1 -0
- package/dist/{chunk-RCQYZVO3.js → chunk-OKKDBZH4.js} +86 -89
- package/dist/chunk-OKKDBZH4.js.map +1 -0
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-9ZocWu4y.d.mts → suspense-YGpKbqvY.d.mts} +115 -10
- package/dist/{suspense-9ZocWu4y.d.ts → suspense-YGpKbqvY.d.ts} +115 -10
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +3 -3
- package/dist/suspense.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-HLKYTK7G.mjs.map +0 -1
- package/dist/chunk-RCQYZVO3.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, {
|
|
4
|
-
import {
|
|
2
|
+
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
+
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, DRI, InboxNotificationData, Resolve, ToImmutable, ThreadData, LiveblocksError, RoomEventMessage, CommentData, RoomInitializers, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
|
-
fallback:
|
|
8
|
-
children:
|
|
7
|
+
fallback: ReactNode;
|
|
8
|
+
children: // TODO Restore this again later
|
|
9
|
+
ReactNode | undefined;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
11
12
|
* Almost like a normal <Suspense> component, except that for server-side
|
|
@@ -20,11 +21,104 @@ declare type Props = {
|
|
|
20
21
|
* To:
|
|
21
22
|
*
|
|
22
23
|
* <ClientSideSuspense fallback={<Loading />}>
|
|
23
|
-
*
|
|
24
|
+
* <MyRealComponent a={1} />
|
|
24
25
|
* </ClientSideSuspense>
|
|
25
26
|
*
|
|
26
27
|
*/
|
|
27
|
-
declare function ClientSideSuspense(props: Props):
|
|
28
|
+
declare function ClientSideSuspense(props: Props): React$1.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare class CreateThreadError<M extends BaseMetadata> extends Error {
|
|
31
|
+
cause: Error;
|
|
32
|
+
context: {
|
|
33
|
+
roomId: string;
|
|
34
|
+
threadId: string;
|
|
35
|
+
commentId: string;
|
|
36
|
+
body: CommentBody;
|
|
37
|
+
metadata: M;
|
|
38
|
+
};
|
|
39
|
+
constructor(cause: Error, context: {
|
|
40
|
+
roomId: string;
|
|
41
|
+
threadId: string;
|
|
42
|
+
commentId: string;
|
|
43
|
+
body: CommentBody;
|
|
44
|
+
metadata: M;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
declare class EditThreadMetadataError<M extends BaseMetadata> extends Error {
|
|
48
|
+
cause: Error;
|
|
49
|
+
context: {
|
|
50
|
+
roomId: string;
|
|
51
|
+
threadId: string;
|
|
52
|
+
metadata: Patchable<M>;
|
|
53
|
+
};
|
|
54
|
+
constructor(cause: Error, context: {
|
|
55
|
+
roomId: string;
|
|
56
|
+
threadId: string;
|
|
57
|
+
metadata: Patchable<M>;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
declare class CreateCommentError extends Error {
|
|
61
|
+
cause: Error;
|
|
62
|
+
context: {
|
|
63
|
+
roomId: string;
|
|
64
|
+
threadId: string;
|
|
65
|
+
commentId: string;
|
|
66
|
+
body: CommentBody;
|
|
67
|
+
};
|
|
68
|
+
constructor(cause: Error, context: {
|
|
69
|
+
roomId: string;
|
|
70
|
+
threadId: string;
|
|
71
|
+
commentId: string;
|
|
72
|
+
body: CommentBody;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
declare class EditCommentError extends Error {
|
|
76
|
+
cause: Error;
|
|
77
|
+
context: {
|
|
78
|
+
roomId: string;
|
|
79
|
+
threadId: string;
|
|
80
|
+
commentId: string;
|
|
81
|
+
body: CommentBody;
|
|
82
|
+
};
|
|
83
|
+
constructor(cause: Error, context: {
|
|
84
|
+
roomId: string;
|
|
85
|
+
threadId: string;
|
|
86
|
+
commentId: string;
|
|
87
|
+
body: CommentBody;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
declare class DeleteCommentError extends Error {
|
|
91
|
+
cause: Error;
|
|
92
|
+
context: {
|
|
93
|
+
roomId: string;
|
|
94
|
+
threadId: string;
|
|
95
|
+
commentId: string;
|
|
96
|
+
};
|
|
97
|
+
constructor(cause: Error, context: {
|
|
98
|
+
roomId: string;
|
|
99
|
+
threadId: string;
|
|
100
|
+
commentId: string;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
declare class MarkInboxNotificationAsReadError extends Error {
|
|
104
|
+
cause: Error;
|
|
105
|
+
context: {
|
|
106
|
+
inboxNotificationId: string;
|
|
107
|
+
};
|
|
108
|
+
constructor(cause: Error, context: {
|
|
109
|
+
inboxNotificationId: string;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
declare class UpdateNotificationSettingsError extends Error {
|
|
113
|
+
cause: Error;
|
|
114
|
+
context: {
|
|
115
|
+
roomId: string;
|
|
116
|
+
};
|
|
117
|
+
constructor(cause: Error, context: {
|
|
118
|
+
roomId: string;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
declare type CommentsError<M extends BaseMetadata> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
28
122
|
|
|
29
123
|
declare type UseThreadsOptions<M extends BaseMetadata> = {
|
|
30
124
|
/**
|
|
@@ -89,7 +183,7 @@ declare type CreateThreadOptions<M extends BaseMetadata> = Record<string, never>
|
|
|
89
183
|
};
|
|
90
184
|
declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
91
185
|
threadId: string;
|
|
92
|
-
metadata:
|
|
186
|
+
metadata: Patchable<M>;
|
|
93
187
|
};
|
|
94
188
|
declare type CreateCommentOptions = {
|
|
95
189
|
threadId: string;
|
|
@@ -651,6 +745,16 @@ declare type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject,
|
|
|
651
745
|
*/
|
|
652
746
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
653
747
|
};
|
|
748
|
+
/**
|
|
749
|
+
* @private
|
|
750
|
+
*
|
|
751
|
+
* Private methods and variables used in the core internals, but as a user
|
|
752
|
+
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
753
|
+
* will probably happen if you do.
|
|
754
|
+
*/
|
|
755
|
+
declare type PrivateRoomContextApi = {
|
|
756
|
+
useCommentsErrorListener<M extends BaseMetadata>(callback: (err: CommentsError<M>) => void): void;
|
|
757
|
+
};
|
|
654
758
|
declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
|
|
655
759
|
/**
|
|
656
760
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
@@ -798,7 +902,7 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
798
902
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
799
903
|
];
|
|
800
904
|
}>;
|
|
801
|
-
}>;
|
|
905
|
+
} & PrivateRoomContextApi>;
|
|
802
906
|
/**
|
|
803
907
|
* Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
|
|
804
908
|
*/
|
|
@@ -909,6 +1013,7 @@ declare function useRedo(): () => void;
|
|
|
909
1013
|
declare function useCanUndo(): boolean;
|
|
910
1014
|
declare function useCanRedo(): boolean;
|
|
911
1015
|
declare function useOthersConnectionIds(): readonly number[];
|
|
1016
|
+
declare function useCommentsErrorListener<M extends BaseMetadata$1>(callback: (error: CommentsError<M>) => void): void;
|
|
912
1017
|
declare function useCreateComment(): (options: CreateCommentOptions) => CommentData;
|
|
913
1018
|
declare function useEditComment(): (options: EditCommentOptions) => void;
|
|
914
1019
|
declare function useDeleteComment(): ({ threadId, commentId }: DeleteCommentOptions) => void;
|
|
@@ -948,4 +1053,4 @@ declare const _useSelfSuspense: DefaultRoomContextBundle["suspense"]["useSelf"];
|
|
|
948
1053
|
declare const _useStorageRoot: DefaultRoomContextBundle["useStorageRoot"];
|
|
949
1054
|
declare const _useUpdateMyPresence: DefaultRoomContextBundle["useUpdateMyPresence"];
|
|
950
1055
|
|
|
951
|
-
export {
|
|
1056
|
+
export { __2 as $, useRemoveReaction as A, _useRoom as B, ClientSideSuspense as C, useRoomNotificationSettings as D, useStatus as E, _useStorageRoot as F, useThreadSubscription as G, useUndo as H, _useUpdateMyPresence as I, useUpdateRoomNotificationSettings as J, useCommentsErrorListener as K, LiveblocksProvider as L, type MutationContext as M, CreateThreadError as N, _useOther as O, _useOthers as P, useOthersConnectionIds as Q, RoomContext as R, _useOthersMapped as S, _useSelf as T, type UseThreadsOptions as U, _useStorage as V, _useThreads as W, useInboxNotifications as X, useRoomInfo as Y, useUnreadInboxNotificationsCount as Z, __1 as _, ClientContext as a, _useOtherSuspense as a0, _useOthersSuspense as a1, useOthersConnectionIdsSuspense as a2, _useOthersMappedSuspense as a3, _useSelfSuspense as a4, _useStorageSuspense as a5, _useThreadsSuspense as a6, useInboxNotificationsSuspense as a7, useRoomInfoSuspense as a8, useUnreadInboxNotificationsCountSuspense as a9, __3 as aa, useMarkAllInboxNotificationsAsRead as b, createLiveblocksContext as c, useMarkInboxNotificationAsRead as d, createRoomContext as e, _RoomProvider as f, _useAddReaction as g, useBatch as h, _useBroadcastEvent as i, useCanRedo as j, useCanUndo as k, useCreateComment as l, _useCreateThread as m, useDeleteComment as n, useEditComment as o, _useEditThreadMetadata as p, useErrorListener as q, _useEventListener as r, useHistory as s, useLostConnectionListener as t, useClient as u, useMarkThreadAsRead as v, _useMutation as w, _useMyPresence as x, _useOthersListener as y, useRedo as z };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, {
|
|
4
|
-
import {
|
|
2
|
+
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
+
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, DRI, InboxNotificationData, Resolve, ToImmutable, ThreadData, LiveblocksError, RoomEventMessage, CommentData, RoomInitializers, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
|
-
fallback:
|
|
8
|
-
children:
|
|
7
|
+
fallback: ReactNode;
|
|
8
|
+
children: // TODO Restore this again later
|
|
9
|
+
ReactNode | undefined;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
11
12
|
* Almost like a normal <Suspense> component, except that for server-side
|
|
@@ -20,11 +21,104 @@ declare type Props = {
|
|
|
20
21
|
* To:
|
|
21
22
|
*
|
|
22
23
|
* <ClientSideSuspense fallback={<Loading />}>
|
|
23
|
-
*
|
|
24
|
+
* <MyRealComponent a={1} />
|
|
24
25
|
* </ClientSideSuspense>
|
|
25
26
|
*
|
|
26
27
|
*/
|
|
27
|
-
declare function ClientSideSuspense(props: Props):
|
|
28
|
+
declare function ClientSideSuspense(props: Props): React$1.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare class CreateThreadError<M extends BaseMetadata> extends Error {
|
|
31
|
+
cause: Error;
|
|
32
|
+
context: {
|
|
33
|
+
roomId: string;
|
|
34
|
+
threadId: string;
|
|
35
|
+
commentId: string;
|
|
36
|
+
body: CommentBody;
|
|
37
|
+
metadata: M;
|
|
38
|
+
};
|
|
39
|
+
constructor(cause: Error, context: {
|
|
40
|
+
roomId: string;
|
|
41
|
+
threadId: string;
|
|
42
|
+
commentId: string;
|
|
43
|
+
body: CommentBody;
|
|
44
|
+
metadata: M;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
declare class EditThreadMetadataError<M extends BaseMetadata> extends Error {
|
|
48
|
+
cause: Error;
|
|
49
|
+
context: {
|
|
50
|
+
roomId: string;
|
|
51
|
+
threadId: string;
|
|
52
|
+
metadata: Patchable<M>;
|
|
53
|
+
};
|
|
54
|
+
constructor(cause: Error, context: {
|
|
55
|
+
roomId: string;
|
|
56
|
+
threadId: string;
|
|
57
|
+
metadata: Patchable<M>;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
declare class CreateCommentError extends Error {
|
|
61
|
+
cause: Error;
|
|
62
|
+
context: {
|
|
63
|
+
roomId: string;
|
|
64
|
+
threadId: string;
|
|
65
|
+
commentId: string;
|
|
66
|
+
body: CommentBody;
|
|
67
|
+
};
|
|
68
|
+
constructor(cause: Error, context: {
|
|
69
|
+
roomId: string;
|
|
70
|
+
threadId: string;
|
|
71
|
+
commentId: string;
|
|
72
|
+
body: CommentBody;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
declare class EditCommentError extends Error {
|
|
76
|
+
cause: Error;
|
|
77
|
+
context: {
|
|
78
|
+
roomId: string;
|
|
79
|
+
threadId: string;
|
|
80
|
+
commentId: string;
|
|
81
|
+
body: CommentBody;
|
|
82
|
+
};
|
|
83
|
+
constructor(cause: Error, context: {
|
|
84
|
+
roomId: string;
|
|
85
|
+
threadId: string;
|
|
86
|
+
commentId: string;
|
|
87
|
+
body: CommentBody;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
declare class DeleteCommentError extends Error {
|
|
91
|
+
cause: Error;
|
|
92
|
+
context: {
|
|
93
|
+
roomId: string;
|
|
94
|
+
threadId: string;
|
|
95
|
+
commentId: string;
|
|
96
|
+
};
|
|
97
|
+
constructor(cause: Error, context: {
|
|
98
|
+
roomId: string;
|
|
99
|
+
threadId: string;
|
|
100
|
+
commentId: string;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
declare class MarkInboxNotificationAsReadError extends Error {
|
|
104
|
+
cause: Error;
|
|
105
|
+
context: {
|
|
106
|
+
inboxNotificationId: string;
|
|
107
|
+
};
|
|
108
|
+
constructor(cause: Error, context: {
|
|
109
|
+
inboxNotificationId: string;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
declare class UpdateNotificationSettingsError extends Error {
|
|
113
|
+
cause: Error;
|
|
114
|
+
context: {
|
|
115
|
+
roomId: string;
|
|
116
|
+
};
|
|
117
|
+
constructor(cause: Error, context: {
|
|
118
|
+
roomId: string;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
declare type CommentsError<M extends BaseMetadata> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
28
122
|
|
|
29
123
|
declare type UseThreadsOptions<M extends BaseMetadata> = {
|
|
30
124
|
/**
|
|
@@ -89,7 +183,7 @@ declare type CreateThreadOptions<M extends BaseMetadata> = Record<string, never>
|
|
|
89
183
|
};
|
|
90
184
|
declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
91
185
|
threadId: string;
|
|
92
|
-
metadata:
|
|
186
|
+
metadata: Patchable<M>;
|
|
93
187
|
};
|
|
94
188
|
declare type CreateCommentOptions = {
|
|
95
189
|
threadId: string;
|
|
@@ -651,6 +745,16 @@ declare type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject,
|
|
|
651
745
|
*/
|
|
652
746
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
653
747
|
};
|
|
748
|
+
/**
|
|
749
|
+
* @private
|
|
750
|
+
*
|
|
751
|
+
* Private methods and variables used in the core internals, but as a user
|
|
752
|
+
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
753
|
+
* will probably happen if you do.
|
|
754
|
+
*/
|
|
755
|
+
declare type PrivateRoomContextApi = {
|
|
756
|
+
useCommentsErrorListener<M extends BaseMetadata>(callback: (err: CommentsError<M>) => void): void;
|
|
757
|
+
};
|
|
654
758
|
declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
|
|
655
759
|
/**
|
|
656
760
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
@@ -798,7 +902,7 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
798
902
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
799
903
|
];
|
|
800
904
|
}>;
|
|
801
|
-
}>;
|
|
905
|
+
} & PrivateRoomContextApi>;
|
|
802
906
|
/**
|
|
803
907
|
* Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
|
|
804
908
|
*/
|
|
@@ -909,6 +1013,7 @@ declare function useRedo(): () => void;
|
|
|
909
1013
|
declare function useCanUndo(): boolean;
|
|
910
1014
|
declare function useCanRedo(): boolean;
|
|
911
1015
|
declare function useOthersConnectionIds(): readonly number[];
|
|
1016
|
+
declare function useCommentsErrorListener<M extends BaseMetadata$1>(callback: (error: CommentsError<M>) => void): void;
|
|
912
1017
|
declare function useCreateComment(): (options: CreateCommentOptions) => CommentData;
|
|
913
1018
|
declare function useEditComment(): (options: EditCommentOptions) => void;
|
|
914
1019
|
declare function useDeleteComment(): ({ threadId, commentId }: DeleteCommentOptions) => void;
|
|
@@ -948,4 +1053,4 @@ declare const _useSelfSuspense: DefaultRoomContextBundle["suspense"]["useSelf"];
|
|
|
948
1053
|
declare const _useStorageRoot: DefaultRoomContextBundle["useStorageRoot"];
|
|
949
1054
|
declare const _useUpdateMyPresence: DefaultRoomContextBundle["useUpdateMyPresence"];
|
|
950
1055
|
|
|
951
|
-
export {
|
|
1056
|
+
export { __2 as $, useRemoveReaction as A, _useRoom as B, ClientSideSuspense as C, useRoomNotificationSettings as D, useStatus as E, _useStorageRoot as F, useThreadSubscription as G, useUndo as H, _useUpdateMyPresence as I, useUpdateRoomNotificationSettings as J, useCommentsErrorListener as K, LiveblocksProvider as L, type MutationContext as M, CreateThreadError as N, _useOther as O, _useOthers as P, useOthersConnectionIds as Q, RoomContext as R, _useOthersMapped as S, _useSelf as T, type UseThreadsOptions as U, _useStorage as V, _useThreads as W, useInboxNotifications as X, useRoomInfo as Y, useUnreadInboxNotificationsCount as Z, __1 as _, ClientContext as a, _useOtherSuspense as a0, _useOthersSuspense as a1, useOthersConnectionIdsSuspense as a2, _useOthersMappedSuspense as a3, _useSelfSuspense as a4, _useStorageSuspense as a5, _useThreadsSuspense as a6, useInboxNotificationsSuspense as a7, useRoomInfoSuspense as a8, useUnreadInboxNotificationsCountSuspense as a9, __3 as aa, useMarkAllInboxNotificationsAsRead as b, createLiveblocksContext as c, useMarkInboxNotificationAsRead as d, createRoomContext as e, _RoomProvider as f, _useAddReaction as g, useBatch as h, _useBroadcastEvent as i, useCanRedo as j, useCanUndo as k, useCreateComment as l, _useCreateThread as m, useDeleteComment as n, useEditComment as o, _useEditThreadMetadata as p, useErrorListener as q, _useEventListener as r, useHistory as s, useLostConnectionListener as t, useClient as u, useMarkThreadAsRead as v, _useMutation as w, _useMyPresence as x, _useOthersListener as y, useRedo as z };
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, f as RoomProvider, U as UseThreadsOptions, g as useAddReaction, h as useBatch, i as useBroadcastEvent, j as useCanRedo, k as useCanUndo, u as useClient, l as useCreateComment, m as useCreateThread, n as useDeleteComment, o as useEditComment, p as useEditThreadMetadata, q as useErrorListener, r as useEventListener, s as useHistory, _ as useInboxNotificationThread,
|
|
1
|
+
export { a as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, f as RoomProvider, U as UseThreadsOptions, g as useAddReaction, h as useBatch, i as useBroadcastEvent, j as useCanRedo, k as useCanUndo, u as useClient, l as useCreateComment, m as useCreateThread, n as useDeleteComment, o as useEditComment, p as useEditThreadMetadata, q as useErrorListener, r as useEventListener, s as useHistory, _ as useInboxNotificationThread, a7 as useInboxNotifications, t as useLostConnectionListener, b as useMarkAllInboxNotificationsAsRead, d as useMarkInboxNotificationAsRead, v as useMarkThreadAsRead, w as useMutation, x as useMyPresence, a0 as useOther, a1 as useOthers, a2 as useOthersConnectionIds, y as useOthersListener, a3 as useOthersMapped, z as useRedo, A as useRemoveReaction, B as useRoom, a8 as useRoomInfo, D as useRoomNotificationSettings, a4 as useSelf, E as useStatus, a5 as useStorage, F as useStorageRoot, G as useThreadSubscription, a6 as useThreads, H as useUndo, a9 as useUnreadInboxNotificationsCount, I as useUpdateMyPresence, J as useUpdateRoomNotificationSettings, aa as useUser } from './suspense-YGpKbqvY.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, f as RoomProvider, U as UseThreadsOptions, g as useAddReaction, h as useBatch, i as useBroadcastEvent, j as useCanRedo, k as useCanUndo, u as useClient, l as useCreateComment, m as useCreateThread, n as useDeleteComment, o as useEditComment, p as useEditThreadMetadata, q as useErrorListener, r as useEventListener, s as useHistory, _ as useInboxNotificationThread,
|
|
1
|
+
export { a as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, f as RoomProvider, U as UseThreadsOptions, g as useAddReaction, h as useBatch, i as useBroadcastEvent, j as useCanRedo, k as useCanUndo, u as useClient, l as useCreateComment, m as useCreateThread, n as useDeleteComment, o as useEditComment, p as useEditThreadMetadata, q as useErrorListener, r as useEventListener, s as useHistory, _ as useInboxNotificationThread, a7 as useInboxNotifications, t as useLostConnectionListener, b as useMarkAllInboxNotificationsAsRead, d as useMarkInboxNotificationAsRead, v as useMarkThreadAsRead, w as useMutation, x as useMyPresence, a0 as useOther, a1 as useOthers, a2 as useOthersConnectionIds, y as useOthersListener, a3 as useOthersMapped, z as useRedo, A as useRemoveReaction, B as useRoom, a8 as useRoomInfo, D as useRoomNotificationSettings, a4 as useSelf, E as useStatus, a5 as useStorage, F as useStorageRoot, G as useThreadSubscription, a6 as useThreads, H as useUndo, a9 as useUnreadInboxNotificationsCount, I as useUpdateMyPresence, J as useUpdateRoomNotificationSettings, aa as useUser } from './suspense-YGpKbqvY.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkOKKDBZH4js = require('./chunk-OKKDBZH4.js');
|
|
54
54
|
|
|
55
55
|
// src/suspense.ts
|
|
56
56
|
var _core = require('@liveblocks/core');
|
|
57
57
|
var _client = require('@liveblocks/client');
|
|
58
|
-
_core.detectDupes.call(void 0,
|
|
58
|
+
_core.detectDupes.call(void 0, _chunkOKKDBZH4js.PKG_NAME, _chunkOKKDBZH4js.PKG_VERSION, _chunkOKKDBZH4js.PKG_FORMAT);
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
@@ -106,5 +106,5 @@ _core.detectDupes.call(void 0, _chunkRCQYZVO3js.PKG_NAME, _chunkRCQYZVO3js.PKG_V
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
exports.ClientContext =
|
|
109
|
+
exports.ClientContext = _chunkOKKDBZH4js.ClientContext; exports.ClientSideSuspense = _chunkOKKDBZH4js.ClientSideSuspense; exports.LiveblocksProvider = _chunkOKKDBZH4js.LiveblocksProvider; exports.RoomContext = _chunkOKKDBZH4js.RoomContext; exports.RoomProvider = _chunkOKKDBZH4js._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkOKKDBZH4js._useAddReaction; exports.useBatch = _chunkOKKDBZH4js.useBatch; exports.useBroadcastEvent = _chunkOKKDBZH4js._useBroadcastEvent; exports.useCanRedo = _chunkOKKDBZH4js.useCanRedo; exports.useCanUndo = _chunkOKKDBZH4js.useCanUndo; exports.useClient = _chunkOKKDBZH4js.useClient; exports.useCreateComment = _chunkOKKDBZH4js.useCreateComment; exports.useCreateThread = _chunkOKKDBZH4js._useCreateThread; exports.useDeleteComment = _chunkOKKDBZH4js.useDeleteComment; exports.useEditComment = _chunkOKKDBZH4js.useEditComment; exports.useEditThreadMetadata = _chunkOKKDBZH4js._useEditThreadMetadata; exports.useErrorListener = _chunkOKKDBZH4js.useErrorListener; exports.useEventListener = _chunkOKKDBZH4js._useEventListener; exports.useHistory = _chunkOKKDBZH4js.useHistory; exports.useInboxNotificationThread = _chunkOKKDBZH4js.__1; exports.useInboxNotifications = _chunkOKKDBZH4js.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunkOKKDBZH4js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkOKKDBZH4js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkOKKDBZH4js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkOKKDBZH4js.useMarkThreadAsRead; exports.useMutation = _chunkOKKDBZH4js._useMutation; exports.useMyPresence = _chunkOKKDBZH4js._useMyPresence; exports.useOther = _chunkOKKDBZH4js._useOtherSuspense; exports.useOthers = _chunkOKKDBZH4js._useOthersSuspense; exports.useOthersConnectionIds = _chunkOKKDBZH4js.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkOKKDBZH4js._useOthersListener; exports.useOthersMapped = _chunkOKKDBZH4js._useOthersMappedSuspense; exports.useRedo = _chunkOKKDBZH4js.useRedo; exports.useRemoveReaction = _chunkOKKDBZH4js.useRemoveReaction; exports.useRoom = _chunkOKKDBZH4js._useRoom; exports.useRoomInfo = _chunkOKKDBZH4js.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkOKKDBZH4js.useRoomNotificationSettings; exports.useSelf = _chunkOKKDBZH4js._useSelfSuspense; exports.useStatus = _chunkOKKDBZH4js.useStatus; exports.useStorage = _chunkOKKDBZH4js._useStorageSuspense; exports.useStorageRoot = _chunkOKKDBZH4js._useStorageRoot; exports.useThreadSubscription = _chunkOKKDBZH4js.useThreadSubscription; exports.useThreads = _chunkOKKDBZH4js._useThreadsSuspense; exports.useUndo = _chunkOKKDBZH4js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkOKKDBZH4js.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkOKKDBZH4js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkOKKDBZH4js.useUpdateRoomNotificationSettings; exports.useUser = _chunkOKKDBZH4js.__3;
|
|
110
110
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-alpha2",
|
|
4
4
|
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@liveblocks/client": "2.0.0-
|
|
51
|
-
"@liveblocks/core": "2.0.0-
|
|
50
|
+
"@liveblocks/client": "2.0.0-alpha2",
|
|
51
|
+
"@liveblocks/core": "2.0.0-alpha2",
|
|
52
52
|
"nanoid": "^3",
|
|
53
|
-
"use-sync-external-store": "^1.2.
|
|
53
|
+
"use-sync-external-store": "^1.2.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^16.14.0 || ^17 || ^18"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@liveblocks/query-parser": "^0.0.3",
|
|
62
62
|
"@testing-library/jest-dom": "6.1.6",
|
|
63
63
|
"@testing-library/react": "14.1.2",
|
|
64
|
-
"@types/use-sync-external-store": "^0.0.
|
|
64
|
+
"@types/use-sync-external-store": "^0.0.6",
|
|
65
65
|
"date-fns": "^3.0.6",
|
|
66
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
67
67
|
"itertools": "^2.3.1",
|