@liveblocks/react 2.0.4-test1 → 2.0.5
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-CDRA7YMQ.js → chunk-3TGCHNBN.js} +68 -3
- package/dist/chunk-3TGCHNBN.js.map +1 -0
- package/dist/{chunk-MC7XUPEO.mjs → chunk-RJICDM5G.mjs} +67 -2
- package/dist/chunk-RJICDM5G.mjs.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-fPChI-5H.d.mts → suspense-72By2Jmd.d.mts} +11 -1
- package/dist/{suspense-fPChI-5H.d.ts → suspense-72By2Jmd.d.ts} +11 -1
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +5 -3
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +3 -1
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-CDRA7YMQ.js.map +0 -1
- package/dist/chunk-MC7XUPEO.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
_useAddReaction,
|
|
14
14
|
_useBroadcastEvent,
|
|
15
15
|
_useCreateThread,
|
|
16
|
+
_useDeleteThread,
|
|
16
17
|
_useEditThreadMetadata,
|
|
17
18
|
_useEventListener,
|
|
18
19
|
_useMutation,
|
|
@@ -55,7 +56,7 @@ import {
|
|
|
55
56
|
useUndo,
|
|
56
57
|
useUnreadInboxNotificationsCount,
|
|
57
58
|
useUpdateRoomNotificationSettings
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RJICDM5G.mjs";
|
|
59
60
|
|
|
60
61
|
// src/index.ts
|
|
61
62
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -82,6 +83,7 @@ export {
|
|
|
82
83
|
useCreateComment,
|
|
83
84
|
_useCreateThread as useCreateThread,
|
|
84
85
|
useDeleteComment,
|
|
86
|
+
_useDeleteThread as useDeleteThread,
|
|
85
87
|
useEditComment,
|
|
86
88
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
87
89
|
useErrorListener,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,eAAe;AAPxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -676,6 +676,15 @@ declare type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject,
|
|
|
676
676
|
* createThread({ body: {}, metadata: {} });
|
|
677
677
|
*/
|
|
678
678
|
useCreateThread(): (options: CreateThreadOptions<M>) => ThreadData<M>;
|
|
679
|
+
/**
|
|
680
|
+
* Returns a function that deletes a thread and its associated comments.
|
|
681
|
+
* Only the thread creator can delete a thread, it will throw otherwise.
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* const deleteThread = useDeleteThread();
|
|
685
|
+
* deleteThread("th_xxx");
|
|
686
|
+
*/
|
|
687
|
+
useDeleteThread(): (threadId: string) => void;
|
|
679
688
|
/**
|
|
680
689
|
* Returns a function that edits a thread's metadata.
|
|
681
690
|
* To delete an existing metadata property, set its value to `null`.
|
|
@@ -1051,6 +1060,7 @@ declare const _useRoom: DefaultRoomContextBundle["useRoom"];
|
|
|
1051
1060
|
declare const _useAddReaction: DefaultRoomContextBundle["useAddReaction"];
|
|
1052
1061
|
declare const _useMutation: DefaultRoomContextBundle["useMutation"];
|
|
1053
1062
|
declare const _useCreateThread: DefaultRoomContextBundle["useCreateThread"];
|
|
1063
|
+
declare const _useDeleteThread: DefaultRoomContextBundle["useDeleteThread"];
|
|
1054
1064
|
declare const _useEditThreadMetadata: DefaultRoomContextBundle["useEditThreadMetadata"];
|
|
1055
1065
|
declare const _useEventListener: DefaultRoomContextBundle["useEventListener"];
|
|
1056
1066
|
declare const _useMyPresence: DefaultRoomContextBundle["useMyPresence"];
|
|
@@ -1069,4 +1079,4 @@ declare const _useSelfSuspense: DefaultRoomContextBundle["suspense"]["useSelf"];
|
|
|
1069
1079
|
declare const _useStorageRoot: DefaultRoomContextBundle["useStorageRoot"];
|
|
1070
1080
|
declare const _useUpdateMyPresence: DefaultRoomContextBundle["useUpdateMyPresence"];
|
|
1071
1081
|
|
|
1072
|
-
export {
|
|
1082
|
+
export { useUnreadInboxNotificationsCount as $, useRedo as A, useRemoveReaction as B, ClientSideSuspense as C, _useRoom as D, useRoomNotificationSettings as E, useStatus as F, _useStorageRoot as G, useThreadSubscription as H, useUndo as I, _useUpdateMyPresence as J, useUpdateRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useCommentsErrorListener as N, CreateThreadError as O, _useOther as P, _useOthers as Q, RoomContext as R, useOthersConnectionIds as S, _useOthersMapped as T, type UseThreadsOptions as U, _useSelf as V, _useStorage as W, _useThreads as X, useInboxNotifications as Y, useRoomInfo as Z, __1 as _, ClientContext as a, __2 as a0, _useOtherSuspense as a1, _useOthersSuspense as a2, useOthersConnectionIdsSuspense as a3, _useOthersMappedSuspense as a4, _useSelfSuspense as a5, _useStorageSuspense as a6, _useThreadsSuspense as a7, useInboxNotificationsSuspense as a8, useRoomInfoSuspense as a9, useUnreadInboxNotificationsCountSuspense as aa, __3 as ab, 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, _useDeleteThread as n, useDeleteComment as o, useEditComment as p, _useEditThreadMetadata as q, useErrorListener as r, _useEventListener as s, useHistory as t, useClient as u, useLostConnectionListener as v, useMarkThreadAsRead as w, _useMutation as x, _useMyPresence as y, _useOthersListener as z };
|
|
@@ -676,6 +676,15 @@ declare type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject,
|
|
|
676
676
|
* createThread({ body: {}, metadata: {} });
|
|
677
677
|
*/
|
|
678
678
|
useCreateThread(): (options: CreateThreadOptions<M>) => ThreadData<M>;
|
|
679
|
+
/**
|
|
680
|
+
* Returns a function that deletes a thread and its associated comments.
|
|
681
|
+
* Only the thread creator can delete a thread, it will throw otherwise.
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* const deleteThread = useDeleteThread();
|
|
685
|
+
* deleteThread("th_xxx");
|
|
686
|
+
*/
|
|
687
|
+
useDeleteThread(): (threadId: string) => void;
|
|
679
688
|
/**
|
|
680
689
|
* Returns a function that edits a thread's metadata.
|
|
681
690
|
* To delete an existing metadata property, set its value to `null`.
|
|
@@ -1051,6 +1060,7 @@ declare const _useRoom: DefaultRoomContextBundle["useRoom"];
|
|
|
1051
1060
|
declare const _useAddReaction: DefaultRoomContextBundle["useAddReaction"];
|
|
1052
1061
|
declare const _useMutation: DefaultRoomContextBundle["useMutation"];
|
|
1053
1062
|
declare const _useCreateThread: DefaultRoomContextBundle["useCreateThread"];
|
|
1063
|
+
declare const _useDeleteThread: DefaultRoomContextBundle["useDeleteThread"];
|
|
1054
1064
|
declare const _useEditThreadMetadata: DefaultRoomContextBundle["useEditThreadMetadata"];
|
|
1055
1065
|
declare const _useEventListener: DefaultRoomContextBundle["useEventListener"];
|
|
1056
1066
|
declare const _useMyPresence: DefaultRoomContextBundle["useMyPresence"];
|
|
@@ -1069,4 +1079,4 @@ declare const _useSelfSuspense: DefaultRoomContextBundle["suspense"]["useSelf"];
|
|
|
1069
1079
|
declare const _useStorageRoot: DefaultRoomContextBundle["useStorageRoot"];
|
|
1070
1080
|
declare const _useUpdateMyPresence: DefaultRoomContextBundle["useUpdateMyPresence"];
|
|
1071
1081
|
|
|
1072
|
-
export {
|
|
1082
|
+
export { useUnreadInboxNotificationsCount as $, useRedo as A, useRemoveReaction as B, ClientSideSuspense as C, _useRoom as D, useRoomNotificationSettings as E, useStatus as F, _useStorageRoot as G, useThreadSubscription as H, useUndo as I, _useUpdateMyPresence as J, useUpdateRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useCommentsErrorListener as N, CreateThreadError as O, _useOther as P, _useOthers as Q, RoomContext as R, useOthersConnectionIds as S, _useOthersMapped as T, type UseThreadsOptions as U, _useSelf as V, _useStorage as W, _useThreads as X, useInboxNotifications as Y, useRoomInfo as Z, __1 as _, ClientContext as a, __2 as a0, _useOtherSuspense as a1, _useOthersSuspense as a2, useOthersConnectionIdsSuspense as a3, _useOthersMappedSuspense as a4, _useSelfSuspense as a5, _useStorageSuspense as a6, _useThreadsSuspense as a7, useInboxNotificationsSuspense as a8, useRoomInfoSuspense as a9, useUnreadInboxNotificationsCountSuspense as aa, __3 as ab, 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, _useDeleteThread as n, useDeleteComment as o, useEditComment as p, _useEditThreadMetadata as q, useErrorListener as r, _useEventListener as s, useHistory as t, useClient as u, useLostConnectionListener as v, useMarkThreadAsRead as w, _useMutation as x, _useMyPresence as y, _useOthersListener 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,
|
|
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, o as useDeleteComment, n as useDeleteThread, p as useEditComment, q as useEditThreadMetadata, r as useErrorListener, s as useEventListener, t as useHistory, _ as useInboxNotificationThread, a8 as useInboxNotifications, v as useLostConnectionListener, b as useMarkAllInboxNotificationsAsRead, d as useMarkInboxNotificationAsRead, w as useMarkThreadAsRead, x as useMutation, y as useMyPresence, a1 as useOther, a2 as useOthers, a3 as useOthersConnectionIds, z as useOthersListener, a4 as useOthersMapped, A as useRedo, B as useRemoveReaction, D as useRoom, a9 as useRoomInfo, E as useRoomNotificationSettings, a5 as useSelf, F as useStatus, a6 as useStorage, G as useStorageRoot, H as useThreadSubscription, a7 as useThreads, I as useUndo, aa as useUnreadInboxNotificationsCount, J as useUpdateMyPresence, K as useUpdateRoomNotificationSettings, ab as useUser } from './suspense-72By2Jmd.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,
|
|
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, o as useDeleteComment, n as useDeleteThread, p as useEditComment, q as useEditThreadMetadata, r as useErrorListener, s as useEventListener, t as useHistory, _ as useInboxNotificationThread, a8 as useInboxNotifications, v as useLostConnectionListener, b as useMarkAllInboxNotificationsAsRead, d as useMarkInboxNotificationAsRead, w as useMarkThreadAsRead, x as useMutation, y as useMyPresence, a1 as useOther, a2 as useOthers, a3 as useOthersConnectionIds, z as useOthersListener, a4 as useOthersMapped, A as useRedo, B as useRemoveReaction, D as useRoom, a9 as useRoomInfo, E as useRoomNotificationSettings, a5 as useSelf, F as useStatus, a6 as useStorage, G as useStorageRoot, H as useThreadSubscription, a7 as useThreads, I as useUndo, aa as useUnreadInboxNotificationsCount, J as useUpdateMyPresence, K as useUpdateRoomNotificationSettings, ab as useUser } from './suspense-72By2Jmd.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,14 @@
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
|
|
54
|
+
var _chunk3TGCHNBNjs = require('./chunk-3TGCHNBN.js');
|
|
54
55
|
|
|
55
56
|
// src/suspense.ts
|
|
56
57
|
var _core = require('@liveblocks/core');
|
|
57
58
|
var _client = require('@liveblocks/client');
|
|
58
|
-
_core.detectDupes.call(void 0,
|
|
59
|
+
_core.detectDupes.call(void 0, _chunk3TGCHNBNjs.PKG_NAME, _chunk3TGCHNBNjs.PKG_VERSION, _chunk3TGCHNBNjs.PKG_FORMAT);
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
|
|
61
63
|
|
|
@@ -106,5 +108,5 @@ _core.detectDupes.call(void 0, _chunkCDRA7YMQjs.PKG_NAME, _chunkCDRA7YMQjs.PKG_V
|
|
|
106
108
|
|
|
107
109
|
|
|
108
110
|
|
|
109
|
-
exports.ClientContext =
|
|
111
|
+
exports.ClientContext = _chunk3TGCHNBNjs.ClientContext; exports.ClientSideSuspense = _chunk3TGCHNBNjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk3TGCHNBNjs.LiveblocksProvider; exports.RoomContext = _chunk3TGCHNBNjs.RoomContext; exports.RoomProvider = _chunk3TGCHNBNjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunk3TGCHNBNjs._useAddReaction; exports.useBatch = _chunk3TGCHNBNjs.useBatch; exports.useBroadcastEvent = _chunk3TGCHNBNjs._useBroadcastEvent; exports.useCanRedo = _chunk3TGCHNBNjs.useCanRedo; exports.useCanUndo = _chunk3TGCHNBNjs.useCanUndo; exports.useClient = _chunk3TGCHNBNjs.useClient; exports.useCreateComment = _chunk3TGCHNBNjs.useCreateComment; exports.useCreateThread = _chunk3TGCHNBNjs._useCreateThread; exports.useDeleteComment = _chunk3TGCHNBNjs.useDeleteComment; exports.useDeleteThread = _chunk3TGCHNBNjs._useDeleteThread; exports.useEditComment = _chunk3TGCHNBNjs.useEditComment; exports.useEditThreadMetadata = _chunk3TGCHNBNjs._useEditThreadMetadata; exports.useErrorListener = _chunk3TGCHNBNjs.useErrorListener; exports.useEventListener = _chunk3TGCHNBNjs._useEventListener; exports.useHistory = _chunk3TGCHNBNjs.useHistory; exports.useInboxNotificationThread = _chunk3TGCHNBNjs.__1; exports.useInboxNotifications = _chunk3TGCHNBNjs.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunk3TGCHNBNjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk3TGCHNBNjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk3TGCHNBNjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk3TGCHNBNjs.useMarkThreadAsRead; exports.useMutation = _chunk3TGCHNBNjs._useMutation; exports.useMyPresence = _chunk3TGCHNBNjs._useMyPresence; exports.useOther = _chunk3TGCHNBNjs._useOtherSuspense; exports.useOthers = _chunk3TGCHNBNjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk3TGCHNBNjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk3TGCHNBNjs._useOthersListener; exports.useOthersMapped = _chunk3TGCHNBNjs._useOthersMappedSuspense; exports.useRedo = _chunk3TGCHNBNjs.useRedo; exports.useRemoveReaction = _chunk3TGCHNBNjs.useRemoveReaction; exports.useRoom = _chunk3TGCHNBNjs._useRoom; exports.useRoomInfo = _chunk3TGCHNBNjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk3TGCHNBNjs.useRoomNotificationSettings; exports.useSelf = _chunk3TGCHNBNjs._useSelfSuspense; exports.useStatus = _chunk3TGCHNBNjs.useStatus; exports.useStorage = _chunk3TGCHNBNjs._useStorageSuspense; exports.useStorageRoot = _chunk3TGCHNBNjs._useStorageRoot; exports.useThreadSubscription = _chunk3TGCHNBNjs.useThreadSubscription; exports.useThreads = _chunk3TGCHNBNjs._useThreadsSuspense; exports.useUndo = _chunk3TGCHNBNjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk3TGCHNBNjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunk3TGCHNBNjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk3TGCHNBNjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk3TGCHNBNjs.__3;
|
|
110
112
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,eAAe;AAPxB,YAAY,UAAU,aAAa,UAAU","sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
_useAddReaction,
|
|
13
13
|
_useBroadcastEvent,
|
|
14
14
|
_useCreateThread,
|
|
15
|
+
_useDeleteThread,
|
|
15
16
|
_useEditThreadMetadata,
|
|
16
17
|
_useEventListener,
|
|
17
18
|
_useMutation,
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
useUndo,
|
|
51
52
|
useUnreadInboxNotificationsCountSuspense,
|
|
52
53
|
useUpdateRoomNotificationSettings
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RJICDM5G.mjs";
|
|
54
55
|
|
|
55
56
|
// src/suspense.ts
|
|
56
57
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -72,6 +73,7 @@ export {
|
|
|
72
73
|
useCreateComment,
|
|
73
74
|
_useCreateThread as useCreateThread,
|
|
74
75
|
useDeleteComment,
|
|
76
|
+
_useDeleteThread as useDeleteThread,
|
|
75
77
|
useEditComment,
|
|
76
78
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
77
79
|
useErrorListener,
|
package/dist/suspense.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,eAAe;AAPxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
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,8 +47,8 @@
|
|
|
47
47
|
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@liveblocks/client": "2.0.
|
|
51
|
-
"@liveblocks/core": "2.0.
|
|
50
|
+
"@liveblocks/client": "2.0.5",
|
|
51
|
+
"@liveblocks/core": "2.0.5",
|
|
52
52
|
"nanoid": "^3",
|
|
53
53
|
"use-sync-external-store": "^1.2.2"
|
|
54
54
|
},
|