@liveblocks/react 2.0.0-alpha1 → 2.0.0-alpha3
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-DYLOVSXD.mjs} +87 -90
- package/dist/chunk-DYLOVSXD.mjs.map +1 -0
- package/dist/{chunk-RCQYZVO3.js → chunk-ZUMWKFSY.js} +86 -89
- package/dist/chunk-ZUMWKFSY.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-2fsXMc9G.d.mts} +114 -10
- package/dist/{suspense-9ZocWu4y.d.ts → suspense-2fsXMc9G.d.ts} +114 -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,11 @@
|
|
|
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: () => ReactNode | undefined;
|
|
7
|
+
fallback: ReactNode;
|
|
8
|
+
children: (() => ReactNode | undefined) | ReactNode | undefined;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Almost like a normal <Suspense> component, except that for server-side
|
|
@@ -20,11 +20,104 @@ declare type Props = {
|
|
|
20
20
|
* To:
|
|
21
21
|
*
|
|
22
22
|
* <ClientSideSuspense fallback={<Loading />}>
|
|
23
|
-
*
|
|
23
|
+
* <MyRealComponent a={1} />
|
|
24
24
|
* </ClientSideSuspense>
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
declare function ClientSideSuspense(props: Props):
|
|
27
|
+
declare function ClientSideSuspense(props: Props): React$1.JSX.Element;
|
|
28
|
+
|
|
29
|
+
declare class CreateThreadError<M extends BaseMetadata> extends Error {
|
|
30
|
+
cause: Error;
|
|
31
|
+
context: {
|
|
32
|
+
roomId: string;
|
|
33
|
+
threadId: string;
|
|
34
|
+
commentId: string;
|
|
35
|
+
body: CommentBody;
|
|
36
|
+
metadata: M;
|
|
37
|
+
};
|
|
38
|
+
constructor(cause: Error, context: {
|
|
39
|
+
roomId: string;
|
|
40
|
+
threadId: string;
|
|
41
|
+
commentId: string;
|
|
42
|
+
body: CommentBody;
|
|
43
|
+
metadata: M;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
declare class EditThreadMetadataError<M extends BaseMetadata> extends Error {
|
|
47
|
+
cause: Error;
|
|
48
|
+
context: {
|
|
49
|
+
roomId: string;
|
|
50
|
+
threadId: string;
|
|
51
|
+
metadata: Patchable<M>;
|
|
52
|
+
};
|
|
53
|
+
constructor(cause: Error, context: {
|
|
54
|
+
roomId: string;
|
|
55
|
+
threadId: string;
|
|
56
|
+
metadata: Patchable<M>;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
declare class CreateCommentError extends Error {
|
|
60
|
+
cause: Error;
|
|
61
|
+
context: {
|
|
62
|
+
roomId: string;
|
|
63
|
+
threadId: string;
|
|
64
|
+
commentId: string;
|
|
65
|
+
body: CommentBody;
|
|
66
|
+
};
|
|
67
|
+
constructor(cause: Error, context: {
|
|
68
|
+
roomId: string;
|
|
69
|
+
threadId: string;
|
|
70
|
+
commentId: string;
|
|
71
|
+
body: CommentBody;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
declare class EditCommentError extends Error {
|
|
75
|
+
cause: Error;
|
|
76
|
+
context: {
|
|
77
|
+
roomId: string;
|
|
78
|
+
threadId: string;
|
|
79
|
+
commentId: string;
|
|
80
|
+
body: CommentBody;
|
|
81
|
+
};
|
|
82
|
+
constructor(cause: Error, context: {
|
|
83
|
+
roomId: string;
|
|
84
|
+
threadId: string;
|
|
85
|
+
commentId: string;
|
|
86
|
+
body: CommentBody;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
declare class DeleteCommentError extends Error {
|
|
90
|
+
cause: Error;
|
|
91
|
+
context: {
|
|
92
|
+
roomId: string;
|
|
93
|
+
threadId: string;
|
|
94
|
+
commentId: string;
|
|
95
|
+
};
|
|
96
|
+
constructor(cause: Error, context: {
|
|
97
|
+
roomId: string;
|
|
98
|
+
threadId: string;
|
|
99
|
+
commentId: string;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
declare class MarkInboxNotificationAsReadError extends Error {
|
|
103
|
+
cause: Error;
|
|
104
|
+
context: {
|
|
105
|
+
inboxNotificationId: string;
|
|
106
|
+
};
|
|
107
|
+
constructor(cause: Error, context: {
|
|
108
|
+
inboxNotificationId: string;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
declare class UpdateNotificationSettingsError extends Error {
|
|
112
|
+
cause: Error;
|
|
113
|
+
context: {
|
|
114
|
+
roomId: string;
|
|
115
|
+
};
|
|
116
|
+
constructor(cause: Error, context: {
|
|
117
|
+
roomId: string;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
declare type CommentsError<M extends BaseMetadata> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
28
121
|
|
|
29
122
|
declare type UseThreadsOptions<M extends BaseMetadata> = {
|
|
30
123
|
/**
|
|
@@ -89,7 +182,7 @@ declare type CreateThreadOptions<M extends BaseMetadata> = Record<string, never>
|
|
|
89
182
|
};
|
|
90
183
|
declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
91
184
|
threadId: string;
|
|
92
|
-
metadata:
|
|
185
|
+
metadata: Patchable<M>;
|
|
93
186
|
};
|
|
94
187
|
declare type CreateCommentOptions = {
|
|
95
188
|
threadId: string;
|
|
@@ -651,6 +744,16 @@ declare type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject,
|
|
|
651
744
|
*/
|
|
652
745
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
653
746
|
};
|
|
747
|
+
/**
|
|
748
|
+
* @private
|
|
749
|
+
*
|
|
750
|
+
* Private methods and variables used in the core internals, but as a user
|
|
751
|
+
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
752
|
+
* will probably happen if you do.
|
|
753
|
+
*/
|
|
754
|
+
declare type PrivateRoomContextApi = {
|
|
755
|
+
useCommentsErrorListener<M extends BaseMetadata>(callback: (err: CommentsError<M>) => void): void;
|
|
756
|
+
};
|
|
654
757
|
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
758
|
/**
|
|
656
759
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
@@ -798,7 +901,7 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
798
901
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
799
902
|
];
|
|
800
903
|
}>;
|
|
801
|
-
}>;
|
|
904
|
+
} & PrivateRoomContextApi>;
|
|
802
905
|
/**
|
|
803
906
|
* Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
|
|
804
907
|
*/
|
|
@@ -909,6 +1012,7 @@ declare function useRedo(): () => void;
|
|
|
909
1012
|
declare function useCanUndo(): boolean;
|
|
910
1013
|
declare function useCanRedo(): boolean;
|
|
911
1014
|
declare function useOthersConnectionIds(): readonly number[];
|
|
1015
|
+
declare function useCommentsErrorListener<M extends BaseMetadata$1>(callback: (error: CommentsError<M>) => void): void;
|
|
912
1016
|
declare function useCreateComment(): (options: CreateCommentOptions) => CommentData;
|
|
913
1017
|
declare function useEditComment(): (options: EditCommentOptions) => void;
|
|
914
1018
|
declare function useDeleteComment(): ({ threadId, commentId }: DeleteCommentOptions) => void;
|
|
@@ -948,4 +1052,4 @@ declare const _useSelfSuspense: DefaultRoomContextBundle["suspense"]["useSelf"];
|
|
|
948
1052
|
declare const _useStorageRoot: DefaultRoomContextBundle["useStorageRoot"];
|
|
949
1053
|
declare const _useUpdateMyPresence: DefaultRoomContextBundle["useUpdateMyPresence"];
|
|
950
1054
|
|
|
951
|
-
export {
|
|
1055
|
+
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,11 @@
|
|
|
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: () => ReactNode | undefined;
|
|
7
|
+
fallback: ReactNode;
|
|
8
|
+
children: (() => ReactNode | undefined) | ReactNode | undefined;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Almost like a normal <Suspense> component, except that for server-side
|
|
@@ -20,11 +20,104 @@ declare type Props = {
|
|
|
20
20
|
* To:
|
|
21
21
|
*
|
|
22
22
|
* <ClientSideSuspense fallback={<Loading />}>
|
|
23
|
-
*
|
|
23
|
+
* <MyRealComponent a={1} />
|
|
24
24
|
* </ClientSideSuspense>
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
declare function ClientSideSuspense(props: Props):
|
|
27
|
+
declare function ClientSideSuspense(props: Props): React$1.JSX.Element;
|
|
28
|
+
|
|
29
|
+
declare class CreateThreadError<M extends BaseMetadata> extends Error {
|
|
30
|
+
cause: Error;
|
|
31
|
+
context: {
|
|
32
|
+
roomId: string;
|
|
33
|
+
threadId: string;
|
|
34
|
+
commentId: string;
|
|
35
|
+
body: CommentBody;
|
|
36
|
+
metadata: M;
|
|
37
|
+
};
|
|
38
|
+
constructor(cause: Error, context: {
|
|
39
|
+
roomId: string;
|
|
40
|
+
threadId: string;
|
|
41
|
+
commentId: string;
|
|
42
|
+
body: CommentBody;
|
|
43
|
+
metadata: M;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
declare class EditThreadMetadataError<M extends BaseMetadata> extends Error {
|
|
47
|
+
cause: Error;
|
|
48
|
+
context: {
|
|
49
|
+
roomId: string;
|
|
50
|
+
threadId: string;
|
|
51
|
+
metadata: Patchable<M>;
|
|
52
|
+
};
|
|
53
|
+
constructor(cause: Error, context: {
|
|
54
|
+
roomId: string;
|
|
55
|
+
threadId: string;
|
|
56
|
+
metadata: Patchable<M>;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
declare class CreateCommentError extends Error {
|
|
60
|
+
cause: Error;
|
|
61
|
+
context: {
|
|
62
|
+
roomId: string;
|
|
63
|
+
threadId: string;
|
|
64
|
+
commentId: string;
|
|
65
|
+
body: CommentBody;
|
|
66
|
+
};
|
|
67
|
+
constructor(cause: Error, context: {
|
|
68
|
+
roomId: string;
|
|
69
|
+
threadId: string;
|
|
70
|
+
commentId: string;
|
|
71
|
+
body: CommentBody;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
declare class EditCommentError extends Error {
|
|
75
|
+
cause: Error;
|
|
76
|
+
context: {
|
|
77
|
+
roomId: string;
|
|
78
|
+
threadId: string;
|
|
79
|
+
commentId: string;
|
|
80
|
+
body: CommentBody;
|
|
81
|
+
};
|
|
82
|
+
constructor(cause: Error, context: {
|
|
83
|
+
roomId: string;
|
|
84
|
+
threadId: string;
|
|
85
|
+
commentId: string;
|
|
86
|
+
body: CommentBody;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
declare class DeleteCommentError extends Error {
|
|
90
|
+
cause: Error;
|
|
91
|
+
context: {
|
|
92
|
+
roomId: string;
|
|
93
|
+
threadId: string;
|
|
94
|
+
commentId: string;
|
|
95
|
+
};
|
|
96
|
+
constructor(cause: Error, context: {
|
|
97
|
+
roomId: string;
|
|
98
|
+
threadId: string;
|
|
99
|
+
commentId: string;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
declare class MarkInboxNotificationAsReadError extends Error {
|
|
103
|
+
cause: Error;
|
|
104
|
+
context: {
|
|
105
|
+
inboxNotificationId: string;
|
|
106
|
+
};
|
|
107
|
+
constructor(cause: Error, context: {
|
|
108
|
+
inboxNotificationId: string;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
declare class UpdateNotificationSettingsError extends Error {
|
|
112
|
+
cause: Error;
|
|
113
|
+
context: {
|
|
114
|
+
roomId: string;
|
|
115
|
+
};
|
|
116
|
+
constructor(cause: Error, context: {
|
|
117
|
+
roomId: string;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
declare type CommentsError<M extends BaseMetadata> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
28
121
|
|
|
29
122
|
declare type UseThreadsOptions<M extends BaseMetadata> = {
|
|
30
123
|
/**
|
|
@@ -89,7 +182,7 @@ declare type CreateThreadOptions<M extends BaseMetadata> = Record<string, never>
|
|
|
89
182
|
};
|
|
90
183
|
declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
91
184
|
threadId: string;
|
|
92
|
-
metadata:
|
|
185
|
+
metadata: Patchable<M>;
|
|
93
186
|
};
|
|
94
187
|
declare type CreateCommentOptions = {
|
|
95
188
|
threadId: string;
|
|
@@ -651,6 +744,16 @@ declare type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject,
|
|
|
651
744
|
*/
|
|
652
745
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
653
746
|
};
|
|
747
|
+
/**
|
|
748
|
+
* @private
|
|
749
|
+
*
|
|
750
|
+
* Private methods and variables used in the core internals, but as a user
|
|
751
|
+
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
752
|
+
* will probably happen if you do.
|
|
753
|
+
*/
|
|
754
|
+
declare type PrivateRoomContextApi = {
|
|
755
|
+
useCommentsErrorListener<M extends BaseMetadata>(callback: (err: CommentsError<M>) => void): void;
|
|
756
|
+
};
|
|
654
757
|
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
758
|
/**
|
|
656
759
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
@@ -798,7 +901,7 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
798
901
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
799
902
|
];
|
|
800
903
|
}>;
|
|
801
|
-
}>;
|
|
904
|
+
} & PrivateRoomContextApi>;
|
|
802
905
|
/**
|
|
803
906
|
* Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
|
|
804
907
|
*/
|
|
@@ -909,6 +1012,7 @@ declare function useRedo(): () => void;
|
|
|
909
1012
|
declare function useCanUndo(): boolean;
|
|
910
1013
|
declare function useCanRedo(): boolean;
|
|
911
1014
|
declare function useOthersConnectionIds(): readonly number[];
|
|
1015
|
+
declare function useCommentsErrorListener<M extends BaseMetadata$1>(callback: (error: CommentsError<M>) => void): void;
|
|
912
1016
|
declare function useCreateComment(): (options: CreateCommentOptions) => CommentData;
|
|
913
1017
|
declare function useEditComment(): (options: EditCommentOptions) => void;
|
|
914
1018
|
declare function useDeleteComment(): ({ threadId, commentId }: DeleteCommentOptions) => void;
|
|
@@ -948,4 +1052,4 @@ declare const _useSelfSuspense: DefaultRoomContextBundle["suspense"]["useSelf"];
|
|
|
948
1052
|
declare const _useStorageRoot: DefaultRoomContextBundle["useStorageRoot"];
|
|
949
1053
|
declare const _useUpdateMyPresence: DefaultRoomContextBundle["useUpdateMyPresence"];
|
|
950
1054
|
|
|
951
|
-
export {
|
|
1055
|
+
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-2fsXMc9G.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-2fsXMc9G.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 _chunkZUMWKFSYjs = require('./chunk-ZUMWKFSY.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, _chunkZUMWKFSYjs.PKG_NAME, _chunkZUMWKFSYjs.PKG_VERSION, _chunkZUMWKFSYjs.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 = _chunkZUMWKFSYjs.ClientContext; exports.ClientSideSuspense = _chunkZUMWKFSYjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkZUMWKFSYjs.LiveblocksProvider; exports.RoomContext = _chunkZUMWKFSYjs.RoomContext; exports.RoomProvider = _chunkZUMWKFSYjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkZUMWKFSYjs._useAddReaction; exports.useBatch = _chunkZUMWKFSYjs.useBatch; exports.useBroadcastEvent = _chunkZUMWKFSYjs._useBroadcastEvent; exports.useCanRedo = _chunkZUMWKFSYjs.useCanRedo; exports.useCanUndo = _chunkZUMWKFSYjs.useCanUndo; exports.useClient = _chunkZUMWKFSYjs.useClient; exports.useCreateComment = _chunkZUMWKFSYjs.useCreateComment; exports.useCreateThread = _chunkZUMWKFSYjs._useCreateThread; exports.useDeleteComment = _chunkZUMWKFSYjs.useDeleteComment; exports.useEditComment = _chunkZUMWKFSYjs.useEditComment; exports.useEditThreadMetadata = _chunkZUMWKFSYjs._useEditThreadMetadata; exports.useErrorListener = _chunkZUMWKFSYjs.useErrorListener; exports.useEventListener = _chunkZUMWKFSYjs._useEventListener; exports.useHistory = _chunkZUMWKFSYjs.useHistory; exports.useInboxNotificationThread = _chunkZUMWKFSYjs.__1; exports.useInboxNotifications = _chunkZUMWKFSYjs.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunkZUMWKFSYjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkZUMWKFSYjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkZUMWKFSYjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkZUMWKFSYjs.useMarkThreadAsRead; exports.useMutation = _chunkZUMWKFSYjs._useMutation; exports.useMyPresence = _chunkZUMWKFSYjs._useMyPresence; exports.useOther = _chunkZUMWKFSYjs._useOtherSuspense; exports.useOthers = _chunkZUMWKFSYjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkZUMWKFSYjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkZUMWKFSYjs._useOthersListener; exports.useOthersMapped = _chunkZUMWKFSYjs._useOthersMappedSuspense; exports.useRedo = _chunkZUMWKFSYjs.useRedo; exports.useRemoveReaction = _chunkZUMWKFSYjs.useRemoveReaction; exports.useRoom = _chunkZUMWKFSYjs._useRoom; exports.useRoomInfo = _chunkZUMWKFSYjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkZUMWKFSYjs.useRoomNotificationSettings; exports.useSelf = _chunkZUMWKFSYjs._useSelfSuspense; exports.useStatus = _chunkZUMWKFSYjs.useStatus; exports.useStorage = _chunkZUMWKFSYjs._useStorageSuspense; exports.useStorageRoot = _chunkZUMWKFSYjs._useStorageRoot; exports.useThreadSubscription = _chunkZUMWKFSYjs.useThreadSubscription; exports.useThreads = _chunkZUMWKFSYjs._useThreadsSuspense; exports.useUndo = _chunkZUMWKFSYjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkZUMWKFSYjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkZUMWKFSYjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkZUMWKFSYjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkZUMWKFSYjs.__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-alpha3",
|
|
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-alpha3",
|
|
51
|
+
"@liveblocks/core": "2.0.0-alpha3",
|
|
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",
|