@liveblocks/react 2.16.0-toolbars5 → 2.17.0-channels1
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/_private.d.mts +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +5 -5
- package/dist/_private.mjs +1 -1
- package/dist/{chunk-VJYVOAD5.js → chunk-22QRR3GV.js} +209 -24
- package/dist/chunk-22QRR3GV.js.map +1 -0
- package/dist/{chunk-DMCBV3T3.mjs → chunk-KFACA6OH.mjs} +2 -2
- package/dist/{chunk-3AQRT3Y6.js → chunk-RABQO63H.js} +2 -2
- package/dist/{chunk-3AQRT3Y6.js.map → chunk-RABQO63H.js.map} +1 -1
- package/dist/{chunk-FQKGWA7O.mjs → chunk-VX6Y3GQO.mjs} +192 -7
- package/dist/chunk-VX6Y3GQO.mjs.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{room-ne1TCZyH.d.mts → room-C0TyErPq.d.mts} +77 -13
- package/dist/{room-ne1TCZyH.d.ts → room-C0TyErPq.d.ts} +77 -13
- package/dist/suspense.d.mts +2 -2
- package/dist/suspense.d.ts +2 -2
- package/dist/suspense.js +12 -4
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +11 -3
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-FQKGWA7O.mjs.map +0 -1
- package/dist/chunk-VJYVOAD5.js.map +0 -1
- /package/dist/{chunk-DMCBV3T3.mjs.map → chunk-KFACA6OH.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom,
|
|
2
|
-
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
1
|
+
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, au as useChannelsNotificationSettings, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, ax as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, ay as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, az as useUser, aw as useUserThreads_experimental } from './room-C0TyErPq.mjs';
|
|
2
|
+
export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom,
|
|
2
|
-
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
1
|
+
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, au as useChannelsNotificationSettings, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, ax as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, ay as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, az as useUser, aw as useUserThreads_experimental } from './room-C0TyErPq.js';
|
|
2
|
+
export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRABQO63Hjs = require('./chunk-RABQO63H.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -67,12 +67,20 @@ var _chunk3AQRT3Y6js = require('./chunk-3AQRT3Y6.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
var _chunk22QRR3GVjs = require('./chunk-22QRR3GV.js');
|
|
71
73
|
|
|
72
74
|
// src/index.ts
|
|
73
75
|
var _core = require('@liveblocks/core');
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
74
79
|
var _client = require('@liveblocks/client');
|
|
75
|
-
_core.detectDupes.call(void 0,
|
|
80
|
+
_core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_VERSION, _chunkRABQO63Hjs.PKG_FORMAT);
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
76
84
|
|
|
77
85
|
|
|
78
86
|
|
|
@@ -138,5 +146,5 @@ _core.detectDupes.call(void 0, _chunk3AQRT3Y6js.PKG_NAME, _chunk3AQRT3Y6js.PKG_V
|
|
|
138
146
|
|
|
139
147
|
|
|
140
148
|
|
|
141
|
-
exports.ClientContext =
|
|
149
|
+
exports.ClientContext = _chunk22QRR3GVjs.ClientContext; exports.ClientSideSuspense = _chunkRABQO63Hjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk22QRR3GVjs.LiveblocksProvider; exports.RoomContext = _chunk22QRR3GVjs.RoomContext; exports.RoomProvider = _chunk22QRR3GVjs._RoomProvider; exports.createLiveblocksContext = _chunk22QRR3GVjs.createLiveblocksContext; exports.createRoomContext = _chunk22QRR3GVjs.createRoomContext; exports.isChannelNotificationSettingEnabled = _client.isChannelNotificationSettingEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk22QRR3GVjs._useAddReaction; exports.useAttachmentUrl = _chunk22QRR3GVjs.useAttachmentUrl; exports.useBatch = _chunk22QRR3GVjs.useBatch; exports.useBroadcastEvent = _chunk22QRR3GVjs._useBroadcastEvent; exports.useCanRedo = _chunk22QRR3GVjs.useCanRedo; exports.useCanUndo = _chunk22QRR3GVjs.useCanUndo; exports.useChannelsNotificationSettings = _chunk22QRR3GVjs.useChannelsNotificationSettings; exports.useClient = _chunk22QRR3GVjs.useClient; exports.useCommentsErrorListener = _chunk22QRR3GVjs.useCommentsErrorListener; exports.useCreateComment = _chunk22QRR3GVjs.useCreateComment; exports.useCreateThread = _chunk22QRR3GVjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk22QRR3GVjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk22QRR3GVjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk22QRR3GVjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk22QRR3GVjs._useDeleteThread; exports.useEditComment = _chunk22QRR3GVjs.useEditComment; exports.useEditThreadMetadata = _chunk22QRR3GVjs._useEditThreadMetadata; exports.useErrorListener = _chunk22QRR3GVjs.useErrorListener; exports.useEventListener = _chunk22QRR3GVjs._useEventListener; exports.useHistory = _chunk22QRR3GVjs.useHistory; exports.useHistoryVersionData = _chunk22QRR3GVjs.useHistoryVersionData; exports.useHistoryVersions = _chunk22QRR3GVjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk22QRR3GVjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk22QRR3GVjs.useInboxNotifications; exports.useIsInsideRoom = _chunk22QRR3GVjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk22QRR3GVjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk22QRR3GVjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk22QRR3GVjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk22QRR3GVjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk22QRR3GVjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk22QRR3GVjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk22QRR3GVjs._useMutation; exports.useMyPresence = _chunk22QRR3GVjs._useMyPresence; exports.useOther = _chunk22QRR3GVjs._useOther; exports.useOthers = _chunk22QRR3GVjs._useOthers; exports.useOthersConnectionIds = _chunk22QRR3GVjs.useOthersConnectionIds; exports.useOthersListener = _chunk22QRR3GVjs._useOthersListener; exports.useOthersMapped = _chunk22QRR3GVjs._useOthersMapped; exports.useRedo = _chunk22QRR3GVjs.useRedo; exports.useRemoveReaction = _chunk22QRR3GVjs.useRemoveReaction; exports.useRoom = _chunk22QRR3GVjs._useRoom; exports.useRoomInfo = _chunk22QRR3GVjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk22QRR3GVjs._useRoomNotificationSettings; exports.useSelf = _chunk22QRR3GVjs._useSelf; exports.useStatus = _chunk22QRR3GVjs.useStatus; exports.useStorage = _chunk22QRR3GVjs._useStorage; exports.useStorageRoot = _chunk22QRR3GVjs._useStorageRoot; exports.useStorageStatus = _chunk22QRR3GVjs.useStorageStatus; exports.useSyncStatus = _chunk22QRR3GVjs.useSyncStatus; exports.useThreadSubscription = _chunk22QRR3GVjs.useThreadSubscription; exports.useThreads = _chunk22QRR3GVjs._useThreads; exports.useUndo = _chunk22QRR3GVjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk22QRR3GVjs.useUnreadInboxNotificationsCount; exports.useUpdateChannelsNotificationSettings = _chunk22QRR3GVjs.useUpdateChannelsNotificationSettings; exports.useUpdateMyPresence = _chunk22QRR3GVjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk22QRR3GVjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk22QRR3GVjs._useUser; exports.useUserThreads_experimental = _chunk22QRR3GVjs._useUserThreads_experimental;
|
|
142
150
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACxEA,wCAA4B;AAc5B;AACE;AACA;AAAA,4CACK;AAdP,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;AD4E7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,swIAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","sourcesContent":[null,"/* 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 {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport {\n shallow,\n isChannelNotificationSettingEnabled,\n} from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\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 useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener } from \"./room\";\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useChannelsNotificationSettings,\n useUpdateChannelsNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KFACA6OH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
useBatch,
|
|
40
40
|
useCanRedo,
|
|
41
41
|
useCanUndo,
|
|
42
|
+
useChannelsNotificationSettings,
|
|
42
43
|
useClient,
|
|
43
44
|
useCommentsErrorListener,
|
|
44
45
|
useCreateComment,
|
|
@@ -66,12 +67,16 @@ import {
|
|
|
66
67
|
useThreadSubscription,
|
|
67
68
|
useUndo,
|
|
68
69
|
useUnreadInboxNotificationsCount,
|
|
70
|
+
useUpdateChannelsNotificationSettings,
|
|
69
71
|
useUpdateRoomNotificationSettings
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-VX6Y3GQO.mjs";
|
|
71
73
|
|
|
72
74
|
// src/index.ts
|
|
73
75
|
import { detectDupes } from "@liveblocks/core";
|
|
74
|
-
import {
|
|
76
|
+
import {
|
|
77
|
+
shallow,
|
|
78
|
+
isChannelNotificationSettingEnabled
|
|
79
|
+
} from "@liveblocks/client";
|
|
75
80
|
detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
|
|
76
81
|
export {
|
|
77
82
|
ClientContext,
|
|
@@ -81,6 +86,7 @@ export {
|
|
|
81
86
|
_RoomProvider as RoomProvider,
|
|
82
87
|
createLiveblocksContext,
|
|
83
88
|
createRoomContext,
|
|
89
|
+
isChannelNotificationSettingEnabled,
|
|
84
90
|
shallow,
|
|
85
91
|
_useAddReaction as useAddReaction,
|
|
86
92
|
useAttachmentUrl,
|
|
@@ -88,6 +94,7 @@ export {
|
|
|
88
94
|
_useBroadcastEvent as useBroadcastEvent,
|
|
89
95
|
useCanRedo,
|
|
90
96
|
useCanUndo,
|
|
97
|
+
useChannelsNotificationSettings,
|
|
91
98
|
useClient,
|
|
92
99
|
useCommentsErrorListener,
|
|
93
100
|
useCreateComment,
|
|
@@ -134,6 +141,7 @@ export {
|
|
|
134
141
|
_useThreads as useThreads,
|
|
135
142
|
useUndo,
|
|
136
143
|
useUnreadInboxNotificationsCount,
|
|
144
|
+
useUpdateChannelsNotificationSettings,
|
|
137
145
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
138
146
|
useUpdateRoomNotificationSettings,
|
|
139
147
|
_useUser as useUser,
|
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 {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport {
|
|
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 {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport {\n shallow,\n isChannelNotificationSettingEnabled,\n} from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\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 useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener } from \"./room\";\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useChannelsNotificationSettings,\n useUpdateChannelsNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAdP,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
5
|
+
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ChannelsNotificationSettings, Relax, ToImmutable, PartialChannelsNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -213,12 +213,6 @@ type CommentReactionOptions = {
|
|
|
213
213
|
commentId: string;
|
|
214
214
|
emoji: string;
|
|
215
215
|
};
|
|
216
|
-
type NoPaginationFields = {
|
|
217
|
-
hasFetchedAll?: never;
|
|
218
|
-
isFetchingMore?: never;
|
|
219
|
-
fetchMore?: never;
|
|
220
|
-
fetchMoreError?: never;
|
|
221
|
-
};
|
|
222
216
|
type PaginationFields = {
|
|
223
217
|
hasFetchedAll: boolean;
|
|
224
218
|
isFetchingMore: boolean;
|
|
@@ -226,13 +220,14 @@ type PaginationFields = {
|
|
|
226
220
|
fetchMoreError?: Error;
|
|
227
221
|
};
|
|
228
222
|
type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & PaginationFields>;
|
|
229
|
-
type PagedAsyncResult<T, F extends string> =
|
|
223
|
+
type PagedAsyncResult<T, F extends string> = Relax<AsyncLoading<F> | AsyncError<F> | PagedAsyncSuccess<T, F>>;
|
|
230
224
|
type ThreadsAsyncSuccess<M extends BaseMetadata$1> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
|
|
231
225
|
type ThreadsAsyncResult<M extends BaseMetadata$1> = PagedAsyncResult<ThreadData<M>[], "threads">;
|
|
232
226
|
type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
233
227
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
234
228
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
235
229
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
230
|
+
type ChannelsNotificationSettingsAsyncResult = AsyncResult<ChannelsNotificationSettings, "settings">;
|
|
236
231
|
type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
|
|
237
232
|
type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
|
|
238
233
|
type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
|
|
@@ -278,16 +273,15 @@ type MutationContext<P extends JsonObject, S extends LsonObject, U extends BaseU
|
|
|
278
273
|
addToHistory: boolean;
|
|
279
274
|
}) => void;
|
|
280
275
|
};
|
|
281
|
-
type ThreadSubscription = {
|
|
276
|
+
type ThreadSubscription = Relax<{
|
|
282
277
|
status: "not-subscribed";
|
|
283
|
-
unreadSince?: never;
|
|
284
278
|
} | {
|
|
285
279
|
status: "subscribed";
|
|
286
280
|
unreadSince: null;
|
|
287
281
|
} | {
|
|
288
282
|
status: "subscribed";
|
|
289
283
|
unreadSince: Date;
|
|
290
|
-
}
|
|
284
|
+
}>;
|
|
291
285
|
type SharedContextBundle<U extends BaseUserMeta> = {
|
|
292
286
|
classic: {
|
|
293
287
|
/**
|
|
@@ -1038,6 +1032,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
|
|
|
1038
1032
|
* const thread = useInboxNotificationThread("in_xxx");
|
|
1039
1033
|
*/
|
|
1040
1034
|
useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Returns the channels notification settings for the current user.
|
|
1037
|
+
*
|
|
1038
|
+
* @example
|
|
1039
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1040
|
+
*/
|
|
1041
|
+
useChannelsNotificationSettings(): [
|
|
1042
|
+
ChannelsNotificationSettingsAsyncResult,
|
|
1043
|
+
(settings: PartialChannelsNotificationSettings) => void
|
|
1044
|
+
];
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns a function that updates the user's channels notification
|
|
1047
|
+
* settings for a project.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
|
|
1051
|
+
*/
|
|
1052
|
+
useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
|
|
1041
1053
|
/**
|
|
1042
1054
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1043
1055
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -1087,6 +1099,16 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
|
|
|
1087
1099
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1088
1100
|
*/
|
|
1089
1101
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
|
|
1102
|
+
/**
|
|
1103
|
+
* Returns the channels notification settings for the current user.
|
|
1104
|
+
*
|
|
1105
|
+
* @example
|
|
1106
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1107
|
+
*/
|
|
1108
|
+
useChannelsNotificationSettings(): [
|
|
1109
|
+
ChannelsNotificationSettingsAsyncResult,
|
|
1110
|
+
(settings: PartialChannelsNotificationSettings) => void
|
|
1111
|
+
];
|
|
1090
1112
|
/**
|
|
1091
1113
|
* @experimental
|
|
1092
1114
|
*
|
|
@@ -1148,7 +1170,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
|
|
|
1148
1170
|
findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
|
|
1149
1171
|
}
|
|
1150
1172
|
|
|
1151
|
-
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
|
|
1173
|
+
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate | UpdateChannelsNotificationSettingsOptimisticUpdate;
|
|
1152
1174
|
type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
|
|
1153
1175
|
type: "create-thread";
|
|
1154
1176
|
id: string;
|
|
@@ -1243,6 +1265,11 @@ type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1243
1265
|
roomId: string;
|
|
1244
1266
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1245
1267
|
};
|
|
1268
|
+
type UpdateChannelsNotificationSettingsOptimisticUpdate = {
|
|
1269
|
+
type: "update-channels-notification-settings";
|
|
1270
|
+
id: string;
|
|
1271
|
+
settings: PartialChannelsNotificationSettings;
|
|
1272
|
+
};
|
|
1246
1273
|
/**
|
|
1247
1274
|
* Like Promise<T>, except it will have a synchronously readable `status`
|
|
1248
1275
|
* field, indicating the status of the promise.
|
|
@@ -1323,6 +1350,10 @@ declare function createStore_forPermissionHints(): {
|
|
|
1323
1350
|
signal: ISignal<PermissionHintsLUT>;
|
|
1324
1351
|
update: (newHints: Record<string, Permission[]>) => void;
|
|
1325
1352
|
};
|
|
1353
|
+
declare function createStore_forChannelsNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
|
|
1354
|
+
signal: DerivedSignal<ChannelsNotificationSettings>;
|
|
1355
|
+
update: (settings: ChannelsNotificationSettings) => void;
|
|
1356
|
+
};
|
|
1326
1357
|
declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
|
|
1327
1358
|
signal: ISignal<readonly OptimisticUpdate<M>[]>;
|
|
1328
1359
|
add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
|
|
@@ -1335,6 +1366,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1335
1366
|
readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
|
|
1336
1367
|
readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
|
|
1337
1368
|
readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
|
|
1369
|
+
readonly channelNotificationSettings: ReturnType<typeof createStore_forChannelsNotificationSettings>;
|
|
1338
1370
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
1339
1371
|
readonly outputs: {
|
|
1340
1372
|
readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
|
|
@@ -1345,6 +1377,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1345
1377
|
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
|
|
1346
1378
|
readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
|
|
1347
1379
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1380
|
+
readonly channelNotificationSettings: LoadableResource<ChannelsNotificationSettingsAsyncResult>;
|
|
1348
1381
|
};
|
|
1349
1382
|
constructor(client: OpaqueClient);
|
|
1350
1383
|
/**
|
|
@@ -1402,6 +1435,15 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1402
1435
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1403
1436
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1404
1437
|
refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1438
|
+
/**
|
|
1439
|
+
* Refresh Channels Notification Settings from poller
|
|
1440
|
+
*/
|
|
1441
|
+
refreshChannelsNotificationSettings(signal: AbortSignal): Promise<void>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Updates channels notification settings with a new value, replacing the
|
|
1444
|
+
* corresponding optimistic update.
|
|
1445
|
+
*/
|
|
1446
|
+
updateChannelsNotificationSettings_confirmOptimisticUpdate(settings: ChannelsNotificationSettings, optimisticUpdateId: string): void;
|
|
1405
1447
|
}
|
|
1406
1448
|
|
|
1407
1449
|
/**
|
|
@@ -1512,6 +1554,28 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
|
|
|
1512
1554
|
readonly count: number;
|
|
1513
1555
|
readonly error?: undefined;
|
|
1514
1556
|
};
|
|
1557
|
+
/**
|
|
1558
|
+
* Returns the channels notification settings for the current user.
|
|
1559
|
+
*
|
|
1560
|
+
* @example
|
|
1561
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1562
|
+
*/
|
|
1563
|
+
declare function useChannelsNotificationSettings(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
|
|
1564
|
+
/**
|
|
1565
|
+
* Returns the channels notification settings for the current user.
|
|
1566
|
+
*
|
|
1567
|
+
* @example
|
|
1568
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1569
|
+
*/
|
|
1570
|
+
declare function useChannelsNotificationSettingsSuspense(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
|
|
1571
|
+
/**
|
|
1572
|
+
* Returns a function that updates the user's channels notification
|
|
1573
|
+
* settings for a project.
|
|
1574
|
+
*
|
|
1575
|
+
* @example
|
|
1576
|
+
* const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
|
|
1577
|
+
*/
|
|
1578
|
+
declare function useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
|
|
1515
1579
|
/**
|
|
1516
1580
|
* Returns room info from a given room ID.
|
|
1517
1581
|
*
|
|
@@ -2351,4 +2415,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2351
2415
|
*/
|
|
2352
2416
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2353
2417
|
|
|
2354
|
-
export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9,
|
|
2418
|
+
export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, _useOtherSuspense as aA, _useOthersSuspense as aB, useOthersConnectionIdsSuspense as aC, _useOthersMappedSuspense as aD, _useSelfSuspense as aE, _useStorageSuspense as aF, useStorageStatusSuspense as aG, _useThreadsSuspense as aH, useAttachmentUrlSuspense as aI, _useHistoryVersionsSuspense as aJ, _useRoomNotificationSettingsSuspense as aK, useInboxNotificationsSuspense as aL, useChannelsNotificationSettingsSuspense as aM, useRoomInfoSuspense as aN, useUnreadInboxNotificationsCountSuspense as aO, _useUserSuspense as aP, _useUserThreadsSuspense_experimental as aQ, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useHistoryVersionData as ag, useCommentsErrorListener as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, useInboxNotifications as at, useChannelsNotificationSettings as au, useUpdateChannelsNotificationSettings as av, _useUserThreads_experimental as aw, useRoomInfo as ax, useUnreadInboxNotificationsCount as ay, _useUser as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, ClientContext as x, createLiveblocksContext as y, useClient as z };
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
5
|
+
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ChannelsNotificationSettings, Relax, ToImmutable, PartialChannelsNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -213,12 +213,6 @@ type CommentReactionOptions = {
|
|
|
213
213
|
commentId: string;
|
|
214
214
|
emoji: string;
|
|
215
215
|
};
|
|
216
|
-
type NoPaginationFields = {
|
|
217
|
-
hasFetchedAll?: never;
|
|
218
|
-
isFetchingMore?: never;
|
|
219
|
-
fetchMore?: never;
|
|
220
|
-
fetchMoreError?: never;
|
|
221
|
-
};
|
|
222
216
|
type PaginationFields = {
|
|
223
217
|
hasFetchedAll: boolean;
|
|
224
218
|
isFetchingMore: boolean;
|
|
@@ -226,13 +220,14 @@ type PaginationFields = {
|
|
|
226
220
|
fetchMoreError?: Error;
|
|
227
221
|
};
|
|
228
222
|
type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & PaginationFields>;
|
|
229
|
-
type PagedAsyncResult<T, F extends string> =
|
|
223
|
+
type PagedAsyncResult<T, F extends string> = Relax<AsyncLoading<F> | AsyncError<F> | PagedAsyncSuccess<T, F>>;
|
|
230
224
|
type ThreadsAsyncSuccess<M extends BaseMetadata$1> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
|
|
231
225
|
type ThreadsAsyncResult<M extends BaseMetadata$1> = PagedAsyncResult<ThreadData<M>[], "threads">;
|
|
232
226
|
type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
233
227
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
234
228
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
235
229
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
230
|
+
type ChannelsNotificationSettingsAsyncResult = AsyncResult<ChannelsNotificationSettings, "settings">;
|
|
236
231
|
type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
|
|
237
232
|
type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
|
|
238
233
|
type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
|
|
@@ -278,16 +273,15 @@ type MutationContext<P extends JsonObject, S extends LsonObject, U extends BaseU
|
|
|
278
273
|
addToHistory: boolean;
|
|
279
274
|
}) => void;
|
|
280
275
|
};
|
|
281
|
-
type ThreadSubscription = {
|
|
276
|
+
type ThreadSubscription = Relax<{
|
|
282
277
|
status: "not-subscribed";
|
|
283
|
-
unreadSince?: never;
|
|
284
278
|
} | {
|
|
285
279
|
status: "subscribed";
|
|
286
280
|
unreadSince: null;
|
|
287
281
|
} | {
|
|
288
282
|
status: "subscribed";
|
|
289
283
|
unreadSince: Date;
|
|
290
|
-
}
|
|
284
|
+
}>;
|
|
291
285
|
type SharedContextBundle<U extends BaseUserMeta> = {
|
|
292
286
|
classic: {
|
|
293
287
|
/**
|
|
@@ -1038,6 +1032,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
|
|
|
1038
1032
|
* const thread = useInboxNotificationThread("in_xxx");
|
|
1039
1033
|
*/
|
|
1040
1034
|
useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Returns the channels notification settings for the current user.
|
|
1037
|
+
*
|
|
1038
|
+
* @example
|
|
1039
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1040
|
+
*/
|
|
1041
|
+
useChannelsNotificationSettings(): [
|
|
1042
|
+
ChannelsNotificationSettingsAsyncResult,
|
|
1043
|
+
(settings: PartialChannelsNotificationSettings) => void
|
|
1044
|
+
];
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns a function that updates the user's channels notification
|
|
1047
|
+
* settings for a project.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
|
|
1051
|
+
*/
|
|
1052
|
+
useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
|
|
1041
1053
|
/**
|
|
1042
1054
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1043
1055
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -1087,6 +1099,16 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
|
|
|
1087
1099
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1088
1100
|
*/
|
|
1089
1101
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
|
|
1102
|
+
/**
|
|
1103
|
+
* Returns the channels notification settings for the current user.
|
|
1104
|
+
*
|
|
1105
|
+
* @example
|
|
1106
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1107
|
+
*/
|
|
1108
|
+
useChannelsNotificationSettings(): [
|
|
1109
|
+
ChannelsNotificationSettingsAsyncResult,
|
|
1110
|
+
(settings: PartialChannelsNotificationSettings) => void
|
|
1111
|
+
];
|
|
1090
1112
|
/**
|
|
1091
1113
|
* @experimental
|
|
1092
1114
|
*
|
|
@@ -1148,7 +1170,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
|
|
|
1148
1170
|
findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
|
|
1149
1171
|
}
|
|
1150
1172
|
|
|
1151
|
-
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
|
|
1173
|
+
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate | UpdateChannelsNotificationSettingsOptimisticUpdate;
|
|
1152
1174
|
type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
|
|
1153
1175
|
type: "create-thread";
|
|
1154
1176
|
id: string;
|
|
@@ -1243,6 +1265,11 @@ type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1243
1265
|
roomId: string;
|
|
1244
1266
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1245
1267
|
};
|
|
1268
|
+
type UpdateChannelsNotificationSettingsOptimisticUpdate = {
|
|
1269
|
+
type: "update-channels-notification-settings";
|
|
1270
|
+
id: string;
|
|
1271
|
+
settings: PartialChannelsNotificationSettings;
|
|
1272
|
+
};
|
|
1246
1273
|
/**
|
|
1247
1274
|
* Like Promise<T>, except it will have a synchronously readable `status`
|
|
1248
1275
|
* field, indicating the status of the promise.
|
|
@@ -1323,6 +1350,10 @@ declare function createStore_forPermissionHints(): {
|
|
|
1323
1350
|
signal: ISignal<PermissionHintsLUT>;
|
|
1324
1351
|
update: (newHints: Record<string, Permission[]>) => void;
|
|
1325
1352
|
};
|
|
1353
|
+
declare function createStore_forChannelsNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
|
|
1354
|
+
signal: DerivedSignal<ChannelsNotificationSettings>;
|
|
1355
|
+
update: (settings: ChannelsNotificationSettings) => void;
|
|
1356
|
+
};
|
|
1326
1357
|
declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
|
|
1327
1358
|
signal: ISignal<readonly OptimisticUpdate<M>[]>;
|
|
1328
1359
|
add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
|
|
@@ -1335,6 +1366,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1335
1366
|
readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
|
|
1336
1367
|
readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
|
|
1337
1368
|
readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
|
|
1369
|
+
readonly channelNotificationSettings: ReturnType<typeof createStore_forChannelsNotificationSettings>;
|
|
1338
1370
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
1339
1371
|
readonly outputs: {
|
|
1340
1372
|
readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
|
|
@@ -1345,6 +1377,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1345
1377
|
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
|
|
1346
1378
|
readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
|
|
1347
1379
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1380
|
+
readonly channelNotificationSettings: LoadableResource<ChannelsNotificationSettingsAsyncResult>;
|
|
1348
1381
|
};
|
|
1349
1382
|
constructor(client: OpaqueClient);
|
|
1350
1383
|
/**
|
|
@@ -1402,6 +1435,15 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1402
1435
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1403
1436
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1404
1437
|
refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1438
|
+
/**
|
|
1439
|
+
* Refresh Channels Notification Settings from poller
|
|
1440
|
+
*/
|
|
1441
|
+
refreshChannelsNotificationSettings(signal: AbortSignal): Promise<void>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Updates channels notification settings with a new value, replacing the
|
|
1444
|
+
* corresponding optimistic update.
|
|
1445
|
+
*/
|
|
1446
|
+
updateChannelsNotificationSettings_confirmOptimisticUpdate(settings: ChannelsNotificationSettings, optimisticUpdateId: string): void;
|
|
1405
1447
|
}
|
|
1406
1448
|
|
|
1407
1449
|
/**
|
|
@@ -1512,6 +1554,28 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
|
|
|
1512
1554
|
readonly count: number;
|
|
1513
1555
|
readonly error?: undefined;
|
|
1514
1556
|
};
|
|
1557
|
+
/**
|
|
1558
|
+
* Returns the channels notification settings for the current user.
|
|
1559
|
+
*
|
|
1560
|
+
* @example
|
|
1561
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1562
|
+
*/
|
|
1563
|
+
declare function useChannelsNotificationSettings(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
|
|
1564
|
+
/**
|
|
1565
|
+
* Returns the channels notification settings for the current user.
|
|
1566
|
+
*
|
|
1567
|
+
* @example
|
|
1568
|
+
* const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
|
|
1569
|
+
*/
|
|
1570
|
+
declare function useChannelsNotificationSettingsSuspense(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
|
|
1571
|
+
/**
|
|
1572
|
+
* Returns a function that updates the user's channels notification
|
|
1573
|
+
* settings for a project.
|
|
1574
|
+
*
|
|
1575
|
+
* @example
|
|
1576
|
+
* const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
|
|
1577
|
+
*/
|
|
1578
|
+
declare function useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
|
|
1515
1579
|
/**
|
|
1516
1580
|
* Returns room info from a given room ID.
|
|
1517
1581
|
*
|
|
@@ -2351,4 +2415,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2351
2415
|
*/
|
|
2352
2416
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2353
2417
|
|
|
2354
|
-
export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9,
|
|
2418
|
+
export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, _useOtherSuspense as aA, _useOthersSuspense as aB, useOthersConnectionIdsSuspense as aC, _useOthersMappedSuspense as aD, _useSelfSuspense as aE, _useStorageSuspense as aF, useStorageStatusSuspense as aG, _useThreadsSuspense as aH, useAttachmentUrlSuspense as aI, _useHistoryVersionsSuspense as aJ, _useRoomNotificationSettingsSuspense as aK, useInboxNotificationsSuspense as aL, useChannelsNotificationSettingsSuspense as aM, useRoomInfoSuspense as aN, useUnreadInboxNotificationsCountSuspense as aO, _useUserSuspense as aP, _useUserThreadsSuspense_experimental as aQ, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useHistoryVersionData as ag, useCommentsErrorListener as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, useInboxNotifications as at, useChannelsNotificationSettings as au, useUpdateChannelsNotificationSettings as av, _useUserThreads_experimental as aw, useRoomInfo as ax, useUnreadInboxNotificationsCount as ay, _useUser as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, ClientContext as x, createLiveblocksContext as y, useClient as z };
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ClientSideSuspense } from './index.mjs';
|
|
2
|
-
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction,
|
|
3
|
-
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
2
|
+
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aI as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, aM as useChannelsNotificationSettings, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aJ as useHistoryVersions, _ as useInboxNotificationThread, aL as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, a6 as useOthersListener, aD as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aN as useRoomInfo, aK as useRoomNotificationSettings, aE as useSelf, aa as useStatus, aF as useStorage, ab as useStorageRoot, aG as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aH as useThreads, ad as useUndo, aO as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aP as useUser, aQ as useUserThreads_experimental } from './room-C0TyErPq.mjs';
|
|
3
|
+
export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ClientSideSuspense } from './index.js';
|
|
2
|
-
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction,
|
|
3
|
-
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
2
|
+
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aI as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, aM as useChannelsNotificationSettings, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aJ as useHistoryVersions, _ as useInboxNotificationThread, aL as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, a6 as useOthersListener, aD as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aN as useRoomInfo, aK as useRoomNotificationSettings, aE as useSelf, aa as useStatus, aF as useStorage, ab as useStorageRoot, aG as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aH as useThreads, ad as useUndo, aO as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aP as useUser, aQ as useUserThreads_experimental } from './room-C0TyErPq.js';
|
|
3
|
+
export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@liveblocks/core';
|