@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/suspense.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
|
|
|
@@ -63,12 +63,20 @@ var _chunk3AQRT3Y6js = require('./chunk-3AQRT3Y6.js');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
var _chunk22QRR3GVjs = require('./chunk-22QRR3GV.js');
|
|
67
69
|
|
|
68
70
|
// src/suspense.ts
|
|
69
71
|
var _core = require('@liveblocks/core');
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
70
75
|
var _client = require('@liveblocks/client');
|
|
71
|
-
_core.detectDupes.call(void 0,
|
|
76
|
+
_core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_VERSION, _chunkRABQO63Hjs.PKG_FORMAT);
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
72
80
|
|
|
73
81
|
|
|
74
82
|
|
|
@@ -130,5 +138,5 @@ _core.detectDupes.call(void 0, _chunk3AQRT3Y6js.PKG_NAME, _chunk3AQRT3Y6js.PKG_V
|
|
|
130
138
|
|
|
131
139
|
|
|
132
140
|
|
|
133
|
-
exports.ClientContext =
|
|
141
|
+
exports.ClientContext = _chunk22QRR3GVjs.ClientContext; exports.ClientSideSuspense = _chunkRABQO63Hjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk22QRR3GVjs.LiveblocksProvider; exports.RoomContext = _chunk22QRR3GVjs.RoomContext; exports.RoomProvider = _chunk22QRR3GVjs._RoomProvider; exports.isChannelNotificationSettingEnabled = _client.isChannelNotificationSettingEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk22QRR3GVjs._useAddReaction; exports.useAttachmentUrl = _chunk22QRR3GVjs.useAttachmentUrlSuspense; exports.useBatch = _chunk22QRR3GVjs.useBatch; exports.useBroadcastEvent = _chunk22QRR3GVjs._useBroadcastEvent; exports.useCanRedo = _chunk22QRR3GVjs.useCanRedo; exports.useCanUndo = _chunk22QRR3GVjs.useCanUndo; exports.useChannelsNotificationSettings = _chunk22QRR3GVjs.useChannelsNotificationSettingsSuspense; exports.useClient = _chunk22QRR3GVjs.useClient; 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.useHistoryVersions = _chunk22QRR3GVjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk22QRR3GVjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk22QRR3GVjs.useInboxNotificationsSuspense; 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._useOtherSuspense; exports.useOthers = _chunk22QRR3GVjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk22QRR3GVjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk22QRR3GVjs._useOthersListener; exports.useOthersMapped = _chunk22QRR3GVjs._useOthersMappedSuspense; exports.useRedo = _chunk22QRR3GVjs.useRedo; exports.useRemoveReaction = _chunk22QRR3GVjs.useRemoveReaction; exports.useRoom = _chunk22QRR3GVjs._useRoom; exports.useRoomInfo = _chunk22QRR3GVjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk22QRR3GVjs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunk22QRR3GVjs._useSelfSuspense; exports.useStatus = _chunk22QRR3GVjs.useStatus; exports.useStorage = _chunk22QRR3GVjs._useStorageSuspense; exports.useStorageRoot = _chunk22QRR3GVjs._useStorageRoot; exports.useStorageStatus = _chunk22QRR3GVjs.useStorageStatusSuspense; exports.useSyncStatus = _chunk22QRR3GVjs.useSyncStatus; exports.useThreadSubscription = _chunk22QRR3GVjs.useThreadSubscription; exports.useThreads = _chunk22QRR3GVjs._useThreadsSuspense; exports.useUndo = _chunk22QRR3GVjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk22QRR3GVjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateChannelsNotificationSettings = _chunk22QRR3GVjs.useUpdateChannelsNotificationSettings; exports.useUpdateMyPresence = _chunk22QRR3GVjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk22QRR3GVjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk22QRR3GVjs._useUserSuspense; exports.useUserThreads_experimental = _chunk22QRR3GVjs._useUserThreadsSuspense_experimental;
|
|
134
142
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.js","../src/suspense.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;AACF,sDAA4B;AAC5B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.js","../src/suspense.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;AACF,sDAA4B;AAC5B;AACA;ACpEA,wCAA4B;AAc5B;AACE;AACA;AAAA,4CACK;AAdP,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADwE7C;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;AACF,4mIAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.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 LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateChannelsNotificationSettings,\n useSyncStatus,\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 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} 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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useChannelsNotificationSettingsSuspense as useChannelsNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.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,
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
useBatch,
|
|
38
38
|
useCanRedo,
|
|
39
39
|
useCanUndo,
|
|
40
|
+
useChannelsNotificationSettingsSuspense,
|
|
40
41
|
useClient,
|
|
41
42
|
useCreateComment,
|
|
42
43
|
useDeleteAllInboxNotifications,
|
|
@@ -62,12 +63,16 @@ import {
|
|
|
62
63
|
useThreadSubscription,
|
|
63
64
|
useUndo,
|
|
64
65
|
useUnreadInboxNotificationsCountSuspense,
|
|
66
|
+
useUpdateChannelsNotificationSettings,
|
|
65
67
|
useUpdateRoomNotificationSettings
|
|
66
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-VX6Y3GQO.mjs";
|
|
67
69
|
|
|
68
70
|
// src/suspense.ts
|
|
69
71
|
import { detectDupes } from "@liveblocks/core";
|
|
70
|
-
import {
|
|
72
|
+
import {
|
|
73
|
+
shallow,
|
|
74
|
+
isChannelNotificationSettingEnabled
|
|
75
|
+
} from "@liveblocks/client";
|
|
71
76
|
detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
|
|
72
77
|
export {
|
|
73
78
|
ClientContext,
|
|
@@ -75,6 +80,7 @@ export {
|
|
|
75
80
|
LiveblocksProvider,
|
|
76
81
|
RoomContext,
|
|
77
82
|
_RoomProvider as RoomProvider,
|
|
83
|
+
isChannelNotificationSettingEnabled,
|
|
78
84
|
shallow,
|
|
79
85
|
_useAddReaction as useAddReaction,
|
|
80
86
|
useAttachmentUrlSuspense as useAttachmentUrl,
|
|
@@ -82,6 +88,7 @@ export {
|
|
|
82
88
|
_useBroadcastEvent as useBroadcastEvent,
|
|
83
89
|
useCanRedo,
|
|
84
90
|
useCanUndo,
|
|
91
|
+
useChannelsNotificationSettingsSuspense as useChannelsNotificationSettings,
|
|
85
92
|
useClient,
|
|
86
93
|
useCreateComment,
|
|
87
94
|
_useCreateThread as useCreateThread,
|
|
@@ -126,6 +133,7 @@ export {
|
|
|
126
133
|
_useThreadsSuspense as useThreads,
|
|
127
134
|
useUndo,
|
|
128
135
|
useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
|
|
136
|
+
useUpdateChannelsNotificationSettings,
|
|
129
137
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
130
138
|
useUpdateRoomNotificationSettings,
|
|
131
139
|
_useUserSuspense as useUser,
|
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 {\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/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 {\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 LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateChannelsNotificationSettings,\n useSyncStatus,\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 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} 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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useChannelsNotificationSettingsSuspense as useChannelsNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAdP,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0-channels1",
|
|
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",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@liveblocks/client": "2.
|
|
65
|
-
"@liveblocks/core": "2.
|
|
64
|
+
"@liveblocks/client": "2.17.0-channels1",
|
|
65
|
+
"@liveblocks/core": "2.17.0-channels1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18 || ^19 || ^19.0.0-rc"
|