@liveblocks/react 2.4.1-test3 → 2.4.1-test4
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-JIDHPULE.js → chunk-BLG6G4JW.js} +12 -6
- package/dist/chunk-BLG6G4JW.js.map +1 -0
- package/dist/{chunk-T6YOAS5Z.mjs → chunk-XPY53VGO.mjs} +13 -7
- package/dist/chunk-XPY53VGO.mjs.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-OBA-zP4D.d.mts → suspense-oIRJdcr2.d.mts} +18 -10
- package/dist/{suspense-OBA-zP4D.d.ts → suspense-oIRJdcr2.d.ts} +18 -10
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +3 -3
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +5 -5
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-JIDHPULE.js.map +0 -1
- package/dist/chunk-T6YOAS5Z.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UseThreadsOptions } from './suspense-
|
|
2
|
-
export { b as ClientContext, C as ClientSideSuspense, V as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, c as createLiveblocksContext, h as createRoomContext,
|
|
1
|
+
import { U as UseThreadsOptions } from './suspense-oIRJdcr2.mjs';
|
|
2
|
+
export { b as ClientContext, C as ClientSideSuspense, V as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, c as createLiveblocksContext, h as createRoomContext, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, T as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread, a3 as useInboxNotifications, A as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, B as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, D as useMutation, E as useMyPresence, W as useOther, X as useOthers, Y as useOthersConnectionIds, F as useOthersListener, Z as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, a5 as useRoomInfo, J as useRoomNotificationSettings, $ as useSelf, K as useStatus, a0 as useStorage, N as useStorageRoot, a1 as useStorageStatus, O as useThreadSubscription, a2 as useThreads, P as useUndo, a6 as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, a7 as useUser, a4 as useUserThreads_experimental } from './suspense-oIRJdcr2.mjs';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import { BaseMetadata, CacheState, ThreadData } from '@liveblocks/core';
|
|
5
5
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UseThreadsOptions } from './suspense-
|
|
2
|
-
export { b as ClientContext, C as ClientSideSuspense, V as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, c as createLiveblocksContext, h as createRoomContext,
|
|
1
|
+
import { U as UseThreadsOptions } from './suspense-oIRJdcr2.js';
|
|
2
|
+
export { b as ClientContext, C as ClientSideSuspense, V as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, c as createLiveblocksContext, h as createRoomContext, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, T as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread, a3 as useInboxNotifications, A as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, B as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, D as useMutation, E as useMyPresence, W as useOther, X as useOthers, Y as useOthersConnectionIds, F as useOthersListener, Z as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, a5 as useRoomInfo, J as useRoomNotificationSettings, $ as useSelf, K as useStatus, a0 as useStorage, N as useStorageRoot, a1 as useStorageStatus, O as useThreadSubscription, a2 as useThreads, P as useUndo, a6 as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, a7 as useUser, a4 as useUserThreads_experimental } from './suspense-oIRJdcr2.js';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import { BaseMetadata, CacheState, ThreadData } from '@liveblocks/core';
|
|
5
5
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkBLG6G4JWjs = require('./chunk-BLG6G4JW.js');
|
|
66
66
|
|
|
67
67
|
// src/index.ts
|
|
68
68
|
var _core = require('@liveblocks/core');
|
|
69
69
|
var _client = require('@liveblocks/client');
|
|
70
|
-
_core.detectDupes.call(void 0,
|
|
70
|
+
_core.detectDupes.call(void 0, _chunkBLG6G4JWjs.PKG_NAME, _chunkBLG6G4JWjs.PKG_VERSION, _chunkBLG6G4JWjs.PKG_FORMAT);
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
@@ -130,5 +130,5 @@ _core.detectDupes.call(void 0, _chunkJIDHPULEjs.PKG_NAME, _chunkJIDHPULEjs.PKG_V
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
exports.ClientContext =
|
|
133
|
+
exports.ClientContext = _chunkBLG6G4JWjs.ClientContext; exports.ClientSideSuspense = _chunkBLG6G4JWjs.ClientSideSuspense; exports.CreateThreadError = _chunkBLG6G4JWjs.CreateThreadError; exports.LiveblocksProvider = _chunkBLG6G4JWjs.LiveblocksProvider; exports.RoomContext = _chunkBLG6G4JWjs.RoomContext; exports.RoomProvider = _chunkBLG6G4JWjs._RoomProvider; exports.createLiveblocksContext = _chunkBLG6G4JWjs.createLiveblocksContext; exports.createRoomContext = _chunkBLG6G4JWjs.createRoomContext; exports.selectedThreads = _chunkBLG6G4JWjs.selectedThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBLG6G4JWjs._useAddReaction; exports.useBatch = _chunkBLG6G4JWjs.useBatch; exports.useBroadcastEvent = _chunkBLG6G4JWjs._useBroadcastEvent; exports.useCanRedo = _chunkBLG6G4JWjs.useCanRedo; exports.useCanUndo = _chunkBLG6G4JWjs.useCanUndo; exports.useClient = _chunkBLG6G4JWjs.useClient; exports.useCommentsErrorListener = _chunkBLG6G4JWjs.useCommentsErrorListener; exports.useCreateComment = _chunkBLG6G4JWjs.useCreateComment; exports.useCreateThread = _chunkBLG6G4JWjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBLG6G4JWjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBLG6G4JWjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBLG6G4JWjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBLG6G4JWjs._useDeleteThread; exports.useEditComment = _chunkBLG6G4JWjs.useEditComment; exports.useEditThreadMetadata = _chunkBLG6G4JWjs._useEditThreadMetadata; exports.useErrorListener = _chunkBLG6G4JWjs.useErrorListener; exports.useEventListener = _chunkBLG6G4JWjs._useEventListener; exports.useHistory = _chunkBLG6G4JWjs.useHistory; exports.useInboxNotificationThread = _chunkBLG6G4JWjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBLG6G4JWjs.useInboxNotifications; exports.useLostConnectionListener = _chunkBLG6G4JWjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBLG6G4JWjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBLG6G4JWjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBLG6G4JWjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBLG6G4JWjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBLG6G4JWjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBLG6G4JWjs._useMutation; exports.useMyPresence = _chunkBLG6G4JWjs._useMyPresence; exports.useOther = _chunkBLG6G4JWjs._useOther; exports.useOthers = _chunkBLG6G4JWjs._useOthers; exports.useOthersConnectionIds = _chunkBLG6G4JWjs.useOthersConnectionIds; exports.useOthersListener = _chunkBLG6G4JWjs._useOthersListener; exports.useOthersMapped = _chunkBLG6G4JWjs._useOthersMapped; exports.useRedo = _chunkBLG6G4JWjs.useRedo; exports.useRemoveReaction = _chunkBLG6G4JWjs.useRemoveReaction; exports.useRoom = _chunkBLG6G4JWjs._useRoom; exports.useRoomInfo = _chunkBLG6G4JWjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkBLG6G4JWjs.useRoomNotificationSettings; exports.useSelf = _chunkBLG6G4JWjs._useSelf; exports.useStatus = _chunkBLG6G4JWjs.useStatus; exports.useStorage = _chunkBLG6G4JWjs._useStorage; exports.useStorageRoot = _chunkBLG6G4JWjs._useStorageRoot; exports.useStorageStatus = _chunkBLG6G4JWjs.useStorageStatus; exports.useThreadSubscription = _chunkBLG6G4JWjs.useThreadSubscription; exports.useThreads = _chunkBLG6G4JWjs._useThreads; exports.useUndo = _chunkBLG6G4JWjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBLG6G4JWjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkBLG6G4JWjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBLG6G4JWjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBLG6G4JWjs._useUser; exports.useUserThreads_experimental = _chunkBLG6G4JWjs._useUserThreads_experimental;
|
|
134
134
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,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 {\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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,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 {\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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
_useThreads,
|
|
29
29
|
_useUpdateMyPresence,
|
|
30
30
|
_useUser,
|
|
31
|
+
_useUserThreads_experimental,
|
|
31
32
|
createLiveblocksContext,
|
|
32
33
|
createRoomContext,
|
|
33
34
|
selectedThreads,
|
|
@@ -60,9 +61,8 @@ import {
|
|
|
60
61
|
useThreadSubscription,
|
|
61
62
|
useUndo,
|
|
62
63
|
useUnreadInboxNotificationsCount,
|
|
63
|
-
useUpdateRoomNotificationSettings
|
|
64
|
-
|
|
65
|
-
} from "./chunk-T6YOAS5Z.mjs";
|
|
64
|
+
useUpdateRoomNotificationSettings
|
|
65
|
+
} from "./chunk-XPY53VGO.mjs";
|
|
66
66
|
|
|
67
67
|
// src/index.ts
|
|
68
68
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -77,7 +77,6 @@ export {
|
|
|
77
77
|
_RoomProvider as RoomProvider,
|
|
78
78
|
createLiveblocksContext,
|
|
79
79
|
createRoomContext,
|
|
80
|
-
useUserThreads as experimental_useUserThreads,
|
|
81
80
|
selectedThreads,
|
|
82
81
|
shallow,
|
|
83
82
|
_useAddReaction as useAddReaction,
|
|
@@ -129,6 +128,7 @@ export {
|
|
|
129
128
|
useUnreadInboxNotificationsCount,
|
|
130
129
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
131
130
|
useUpdateRoomNotificationSettings,
|
|
132
|
-
_useUser as useUser
|
|
131
|
+
_useUser as useUser,
|
|
132
|
+
_useUserThreads_experimental as useUserThreads_experimental
|
|
133
133
|
};
|
|
134
134
|
//# sourceMappingURL=index.mjs.map
|
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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n
|
|
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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -1016,6 +1016,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1016
1016
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1017
1017
|
*/
|
|
1018
1018
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
|
|
1019
|
+
/**
|
|
1020
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1021
|
+
*/
|
|
1022
|
+
useUserThreads_experimental(): ThreadsState<M>;
|
|
1019
1023
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1020
1024
|
/**
|
|
1021
1025
|
* Returns the inbox notifications for the current user.
|
|
@@ -1031,6 +1035,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1031
1035
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1032
1036
|
*/
|
|
1033
1037
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountStateSuccess;
|
|
1038
|
+
/**
|
|
1039
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1040
|
+
*/
|
|
1041
|
+
useUserThreads_experimental(): ThreadsStateSuccess<M>;
|
|
1034
1042
|
}>;
|
|
1035
1043
|
}>;
|
|
1036
1044
|
|
|
@@ -1060,14 +1068,6 @@ declare function LiveblocksProvider<U extends BaseUserMeta = DU>(props: PropsWit
|
|
|
1060
1068
|
* settings from the given client instead.
|
|
1061
1069
|
*/
|
|
1062
1070
|
declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends BaseMetadata$1 = DM>(client: OpaqueClient): LiveblocksContextBundle<U, M>;
|
|
1063
|
-
/**
|
|
1064
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1065
|
-
*/
|
|
1066
|
-
declare function useUserThreads(): ThreadsState<BaseMetadata$1>;
|
|
1067
|
-
/**
|
|
1068
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1069
|
-
*/
|
|
1070
|
-
declare function useUserThreadsSuspense(): ThreadsStateResolved<BaseMetadata$1>;
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Returns the inbox notifications for the current user.
|
|
1073
1073
|
*
|
|
@@ -1173,6 +1173,14 @@ declare const _useUser: TypedBundle$1["useUser"];
|
|
|
1173
1173
|
* const { user } = useUser("user-id");
|
|
1174
1174
|
*/
|
|
1175
1175
|
declare const _useUserSuspense: TypedBundle$1["suspense"]["useUser"];
|
|
1176
|
+
/**
|
|
1177
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1178
|
+
*/
|
|
1179
|
+
declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experimental"];
|
|
1180
|
+
/**
|
|
1181
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1182
|
+
*/
|
|
1183
|
+
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1176
1184
|
|
|
1177
1185
|
/**
|
|
1178
1186
|
* Raw access to the React context where the RoomProvider stores the current
|
|
@@ -1818,4 +1826,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1818
1826
|
*/
|
|
1819
1827
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1820
1828
|
|
|
1821
|
-
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3,
|
|
1829
|
+
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3, _useUserThreads_experimental as a4, useRoomInfo as a5, useUnreadInboxNotificationsCount as a6, _useUser as a7, _useOtherSuspense as a8, _useOthersSuspense as a9, useOthersConnectionIdsSuspense as aa, _useOthersMappedSuspense as ab, _useSelfSuspense as ac, _useStorageSuspense as ad, useStorageStatusSuspense as ae, _useThreadsSuspense as af, useInboxNotificationsSuspense as ag, useRoomInfoSuspense as ah, useUnreadInboxNotificationsCountSuspense as ai, _useUserSuspense as aj, _useUserThreadsSuspense_experimental as ak, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -1016,6 +1016,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1016
1016
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1017
1017
|
*/
|
|
1018
1018
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
|
|
1019
|
+
/**
|
|
1020
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1021
|
+
*/
|
|
1022
|
+
useUserThreads_experimental(): ThreadsState<M>;
|
|
1019
1023
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1020
1024
|
/**
|
|
1021
1025
|
* Returns the inbox notifications for the current user.
|
|
@@ -1031,6 +1035,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1031
1035
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1032
1036
|
*/
|
|
1033
1037
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountStateSuccess;
|
|
1038
|
+
/**
|
|
1039
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1040
|
+
*/
|
|
1041
|
+
useUserThreads_experimental(): ThreadsStateSuccess<M>;
|
|
1034
1042
|
}>;
|
|
1035
1043
|
}>;
|
|
1036
1044
|
|
|
@@ -1060,14 +1068,6 @@ declare function LiveblocksProvider<U extends BaseUserMeta = DU>(props: PropsWit
|
|
|
1060
1068
|
* settings from the given client instead.
|
|
1061
1069
|
*/
|
|
1062
1070
|
declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends BaseMetadata$1 = DM>(client: OpaqueClient): LiveblocksContextBundle<U, M>;
|
|
1063
|
-
/**
|
|
1064
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1065
|
-
*/
|
|
1066
|
-
declare function useUserThreads(): ThreadsState<BaseMetadata$1>;
|
|
1067
|
-
/**
|
|
1068
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1069
|
-
*/
|
|
1070
|
-
declare function useUserThreadsSuspense(): ThreadsStateResolved<BaseMetadata$1>;
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Returns the inbox notifications for the current user.
|
|
1073
1073
|
*
|
|
@@ -1173,6 +1173,14 @@ declare const _useUser: TypedBundle$1["useUser"];
|
|
|
1173
1173
|
* const { user } = useUser("user-id");
|
|
1174
1174
|
*/
|
|
1175
1175
|
declare const _useUserSuspense: TypedBundle$1["suspense"]["useUser"];
|
|
1176
|
+
/**
|
|
1177
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1178
|
+
*/
|
|
1179
|
+
declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experimental"];
|
|
1180
|
+
/**
|
|
1181
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended by the Liveblocks team.
|
|
1182
|
+
*/
|
|
1183
|
+
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1176
1184
|
|
|
1177
1185
|
/**
|
|
1178
1186
|
* Raw access to the React context where the RoomProvider stores the current
|
|
@@ -1818,4 +1826,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1818
1826
|
*/
|
|
1819
1827
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1820
1828
|
|
|
1821
|
-
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3,
|
|
1829
|
+
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3, _useUserThreads_experimental as a4, useRoomInfo as a5, useUnreadInboxNotificationsCount as a6, _useUser as a7, _useOtherSuspense as a8, _useOthersSuspense as a9, useOthersConnectionIdsSuspense as aa, _useOthersMappedSuspense as ab, _useSelfSuspense as ac, _useStorageSuspense as ad, useStorageStatusSuspense as ae, _useThreadsSuspense as af, useInboxNotificationsSuspense as ag, useRoomInfoSuspense as ah, useUnreadInboxNotificationsCountSuspense as ai, _useUserSuspense as aj, _useUserThreadsSuspense_experimental as ak, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread, ag as useInboxNotifications, A as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, B as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, D as useMutation, E as useMyPresence, a8 as useOther, a9 as useOthers, aa as useOthersConnectionIds, F as useOthersListener, ab as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, ah as useRoomInfo, J as useRoomNotificationSettings, ac as useSelf, K as useStatus, ad as useStorage, N as useStorageRoot, ae as useStorageStatus, O as useThreadSubscription, af as useThreads, P as useUndo, ai as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, aj as useUser, ak as useUserThreads_experimental } from './suspense-oIRJdcr2.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 { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread, ag as useInboxNotifications, A as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, B as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, D as useMutation, E as useMyPresence, a8 as useOther, a9 as useOthers, aa as useOthersConnectionIds, F as useOthersListener, ab as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, ah as useRoomInfo, J as useRoomNotificationSettings, ac as useSelf, K as useStatus, ad as useStorage, N as useStorageRoot, ae as useStorageStatus, O as useThreadSubscription, af as useThreads, P as useUndo, ai as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, aj as useUser, ak as useUserThreads_experimental } from './suspense-oIRJdcr2.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkBLG6G4JWjs = require('./chunk-BLG6G4JW.js');
|
|
61
61
|
|
|
62
62
|
// src/suspense.ts
|
|
63
63
|
var _core = require('@liveblocks/core');
|
|
64
64
|
var _client = require('@liveblocks/client');
|
|
65
|
-
_core.detectDupes.call(void 0,
|
|
65
|
+
_core.detectDupes.call(void 0, _chunkBLG6G4JWjs.PKG_NAME, _chunkBLG6G4JWjs.PKG_VERSION, _chunkBLG6G4JWjs.PKG_FORMAT);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -120,5 +120,5 @@ _core.detectDupes.call(void 0, _chunkJIDHPULEjs.PKG_NAME, _chunkJIDHPULEjs.PKG_V
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
exports.ClientContext =
|
|
123
|
+
exports.ClientContext = _chunkBLG6G4JWjs.ClientContext; exports.ClientSideSuspense = _chunkBLG6G4JWjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkBLG6G4JWjs.LiveblocksProvider; exports.RoomContext = _chunkBLG6G4JWjs.RoomContext; exports.RoomProvider = _chunkBLG6G4JWjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBLG6G4JWjs._useAddReaction; exports.useBatch = _chunkBLG6G4JWjs.useBatch; exports.useBroadcastEvent = _chunkBLG6G4JWjs._useBroadcastEvent; exports.useCanRedo = _chunkBLG6G4JWjs.useCanRedo; exports.useCanUndo = _chunkBLG6G4JWjs.useCanUndo; exports.useClient = _chunkBLG6G4JWjs.useClient; exports.useCreateComment = _chunkBLG6G4JWjs.useCreateComment; exports.useCreateThread = _chunkBLG6G4JWjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBLG6G4JWjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBLG6G4JWjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBLG6G4JWjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBLG6G4JWjs._useDeleteThread; exports.useEditComment = _chunkBLG6G4JWjs.useEditComment; exports.useEditThreadMetadata = _chunkBLG6G4JWjs._useEditThreadMetadata; exports.useErrorListener = _chunkBLG6G4JWjs.useErrorListener; exports.useEventListener = _chunkBLG6G4JWjs._useEventListener; exports.useHistory = _chunkBLG6G4JWjs.useHistory; exports.useInboxNotificationThread = _chunkBLG6G4JWjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBLG6G4JWjs.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunkBLG6G4JWjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBLG6G4JWjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBLG6G4JWjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBLG6G4JWjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBLG6G4JWjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBLG6G4JWjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBLG6G4JWjs._useMutation; exports.useMyPresence = _chunkBLG6G4JWjs._useMyPresence; exports.useOther = _chunkBLG6G4JWjs._useOtherSuspense; exports.useOthers = _chunkBLG6G4JWjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkBLG6G4JWjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkBLG6G4JWjs._useOthersListener; exports.useOthersMapped = _chunkBLG6G4JWjs._useOthersMappedSuspense; exports.useRedo = _chunkBLG6G4JWjs.useRedo; exports.useRemoveReaction = _chunkBLG6G4JWjs.useRemoveReaction; exports.useRoom = _chunkBLG6G4JWjs._useRoom; exports.useRoomInfo = _chunkBLG6G4JWjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkBLG6G4JWjs.useRoomNotificationSettings; exports.useSelf = _chunkBLG6G4JWjs._useSelfSuspense; exports.useStatus = _chunkBLG6G4JWjs.useStatus; exports.useStorage = _chunkBLG6G4JWjs._useStorageSuspense; exports.useStorageRoot = _chunkBLG6G4JWjs._useStorageRoot; exports.useStorageStatus = _chunkBLG6G4JWjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkBLG6G4JWjs.useThreadSubscription; exports.useThreads = _chunkBLG6G4JWjs._useThreadsSuspense; exports.useUndo = _chunkBLG6G4JWjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBLG6G4JWjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkBLG6G4JWjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBLG6G4JWjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBLG6G4JWjs._useUserSuspense; exports.useUserThreads_experimental = _chunkBLG6G4JWjs._useUserThreadsSuspense_experimental;
|
|
124
124
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,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 {\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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatusSuspense as useStorageStatus,\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
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,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 {\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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatusSuspense as useStorageStatus,\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 useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.mjs
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
_useThreadsSuspense,
|
|
28
28
|
_useUpdateMyPresence,
|
|
29
29
|
_useUserSuspense,
|
|
30
|
+
_useUserThreadsSuspense_experimental,
|
|
30
31
|
useBatch,
|
|
31
32
|
useCanRedo,
|
|
32
33
|
useCanUndo,
|
|
@@ -55,9 +56,8 @@ import {
|
|
|
55
56
|
useThreadSubscription,
|
|
56
57
|
useUndo,
|
|
57
58
|
useUnreadInboxNotificationsCountSuspense,
|
|
58
|
-
useUpdateRoomNotificationSettings
|
|
59
|
-
|
|
60
|
-
} from "./chunk-T6YOAS5Z.mjs";
|
|
59
|
+
useUpdateRoomNotificationSettings
|
|
60
|
+
} from "./chunk-XPY53VGO.mjs";
|
|
61
61
|
|
|
62
62
|
// src/suspense.ts
|
|
63
63
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -69,7 +69,6 @@ export {
|
|
|
69
69
|
LiveblocksProvider,
|
|
70
70
|
RoomContext,
|
|
71
71
|
_RoomProvider as RoomProvider,
|
|
72
|
-
useUserThreadsSuspense as experimental_useUserThreads,
|
|
73
72
|
shallow,
|
|
74
73
|
_useAddReaction as useAddReaction,
|
|
75
74
|
useBatch,
|
|
@@ -119,6 +118,7 @@ export {
|
|
|
119
118
|
useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
|
|
120
119
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
121
120
|
useUpdateRoomNotificationSettings,
|
|
122
|
-
_useUserSuspense as useUser
|
|
121
|
+
_useUserSuspense as useUser,
|
|
122
|
+
_useUserThreadsSuspense_experimental as useUserThreads_experimental
|
|
123
123
|
};
|
|
124
124
|
//# sourceMappingURL=suspense.mjs.map
|
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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatusSuspense as useStorageStatus,\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
|
|
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 { 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 useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 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 useStorageStatusSuspense as useStorageStatus,\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 useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "2.4.1-
|
|
3
|
+
"version": "2.4.1-test4",
|
|
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.4.1-
|
|
51
|
-
"@liveblocks/core": "2.4.1-
|
|
50
|
+
"@liveblocks/client": "2.4.1-test4",
|
|
51
|
+
"@liveblocks/core": "2.4.1-test4",
|
|
52
52
|
"use-sync-external-store": "^1.2.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|