@liveblocks/react 2.7.0-beta2 → 2.7.0-versions2

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/index.js CHANGED
@@ -64,12 +64,14 @@
64
64
 
65
65
 
66
66
 
67
- var _chunkMREN32VNjs = require('./chunk-MREN32VN.js');
67
+
68
+ var _chunkYGRZXVI6js = require('./chunk-YGRZXVI6.js');
68
69
 
69
70
  // src/index.ts
70
71
  var _core = require('@liveblocks/core');
71
72
  var _client = require('@liveblocks/client');
72
- _core.detectDupes.call(void 0, _chunkMREN32VNjs.PKG_NAME, _chunkMREN32VNjs.PKG_VERSION, _chunkMREN32VNjs.PKG_FORMAT);
73
+ _core.detectDupes.call(void 0, _chunkYGRZXVI6js.PKG_NAME, _chunkYGRZXVI6js.PKG_VERSION, _chunkYGRZXVI6js.PKG_FORMAT);
74
+
73
75
 
74
76
 
75
77
 
@@ -134,5 +136,5 @@ _core.detectDupes.call(void 0, _chunkMREN32VNjs.PKG_NAME, _chunkMREN32VNjs.PKG_V
134
136
 
135
137
 
136
138
 
137
- exports.ClientContext = _chunkMREN32VNjs.ClientContext; exports.ClientSideSuspense = _chunkMREN32VNjs.ClientSideSuspense; exports.CreateThreadError = _chunkMREN32VNjs.CreateThreadError; exports.LiveblocksProvider = _chunkMREN32VNjs.LiveblocksProvider; exports.RoomContext = _chunkMREN32VNjs.RoomContext; exports.RoomProvider = _chunkMREN32VNjs._RoomProvider; exports.createLiveblocksContext = _chunkMREN32VNjs.createLiveblocksContext; exports.createRoomContext = _chunkMREN32VNjs.createRoomContext; exports.selectedThreads = _chunkMREN32VNjs.selectedThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkMREN32VNjs._useAddReaction; exports.useAttachmentUrl = _chunkMREN32VNjs.useAttachmentUrl; exports.useBatch = _chunkMREN32VNjs.useBatch; exports.useBroadcastEvent = _chunkMREN32VNjs._useBroadcastEvent; exports.useCanRedo = _chunkMREN32VNjs.useCanRedo; exports.useCanUndo = _chunkMREN32VNjs.useCanUndo; exports.useClient = _chunkMREN32VNjs.useClient; exports.useCommentsErrorListener = _chunkMREN32VNjs.useCommentsErrorListener; exports.useCreateComment = _chunkMREN32VNjs.useCreateComment; exports.useCreateThread = _chunkMREN32VNjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkMREN32VNjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkMREN32VNjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkMREN32VNjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkMREN32VNjs._useDeleteThread; exports.useEditComment = _chunkMREN32VNjs.useEditComment; exports.useEditThreadMetadata = _chunkMREN32VNjs._useEditThreadMetadata; exports.useErrorListener = _chunkMREN32VNjs.useErrorListener; exports.useEventListener = _chunkMREN32VNjs._useEventListener; exports.useHistory = _chunkMREN32VNjs.useHistory; exports.useInboxNotificationThread = _chunkMREN32VNjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkMREN32VNjs.useInboxNotifications; exports.useIsInsideRoom = _chunkMREN32VNjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkMREN32VNjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkMREN32VNjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkMREN32VNjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkMREN32VNjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkMREN32VNjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkMREN32VNjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkMREN32VNjs._useMutation; exports.useMyPresence = _chunkMREN32VNjs._useMyPresence; exports.useOther = _chunkMREN32VNjs._useOther; exports.useOthers = _chunkMREN32VNjs._useOthers; exports.useOthersConnectionIds = _chunkMREN32VNjs.useOthersConnectionIds; exports.useOthersListener = _chunkMREN32VNjs._useOthersListener; exports.useOthersMapped = _chunkMREN32VNjs._useOthersMapped; exports.useRedo = _chunkMREN32VNjs.useRedo; exports.useRemoveReaction = _chunkMREN32VNjs.useRemoveReaction; exports.useRoom = _chunkMREN32VNjs._useRoom; exports.useRoomInfo = _chunkMREN32VNjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkMREN32VNjs.useRoomNotificationSettings; exports.useSelf = _chunkMREN32VNjs._useSelf; exports.useStatus = _chunkMREN32VNjs.useStatus; exports.useStorage = _chunkMREN32VNjs._useStorage; exports.useStorageRoot = _chunkMREN32VNjs._useStorageRoot; exports.useStorageStatus = _chunkMREN32VNjs.useStorageStatus; exports.useThreadSubscription = _chunkMREN32VNjs.useThreadSubscription; exports.useThreads = _chunkMREN32VNjs._useThreads; exports.useUndo = _chunkMREN32VNjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkMREN32VNjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkMREN32VNjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkMREN32VNjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkMREN32VNjs._useUser; exports.useUserThreads_experimental = _chunkMREN32VNjs._useUserThreads_experimental;
139
+ exports.ClientContext = _chunkYGRZXVI6js.ClientContext; exports.ClientSideSuspense = _chunkYGRZXVI6js.ClientSideSuspense; exports.CreateThreadError = _chunkYGRZXVI6js.CreateThreadError; exports.LiveblocksProvider = _chunkYGRZXVI6js.LiveblocksProvider; exports.RoomContext = _chunkYGRZXVI6js.RoomContext; exports.RoomProvider = _chunkYGRZXVI6js._RoomProvider; exports.createLiveblocksContext = _chunkYGRZXVI6js.createLiveblocksContext; exports.createRoomContext = _chunkYGRZXVI6js.createRoomContext; exports.selectedThreads = _chunkYGRZXVI6js.selectedThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkYGRZXVI6js._useAddReaction; exports.useBatch = _chunkYGRZXVI6js.useBatch; exports.useBroadcastEvent = _chunkYGRZXVI6js._useBroadcastEvent; exports.useCanRedo = _chunkYGRZXVI6js.useCanRedo; exports.useCanUndo = _chunkYGRZXVI6js.useCanUndo; exports.useClient = _chunkYGRZXVI6js.useClient; exports.useCommentsErrorListener = _chunkYGRZXVI6js.useCommentsErrorListener; exports.useCreateComment = _chunkYGRZXVI6js.useCreateComment; exports.useCreateThread = _chunkYGRZXVI6js._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkYGRZXVI6js.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkYGRZXVI6js.useDeleteComment; exports.useDeleteInboxNotification = _chunkYGRZXVI6js.useDeleteInboxNotification; exports.useDeleteThread = _chunkYGRZXVI6js._useDeleteThread; exports.useEditComment = _chunkYGRZXVI6js.useEditComment; exports.useEditThreadMetadata = _chunkYGRZXVI6js._useEditThreadMetadata; exports.useErrorListener = _chunkYGRZXVI6js.useErrorListener; exports.useEventListener = _chunkYGRZXVI6js._useEventListener; exports.useHistory = _chunkYGRZXVI6js.useHistory; exports.useHistoryVersionData = _chunkYGRZXVI6js.useHistoryVersionData; exports.useHistoryVersions = _chunkYGRZXVI6js._useHistoryVersions; exports.useInboxNotificationThread = _chunkYGRZXVI6js._useInboxNotificationThread; exports.useInboxNotifications = _chunkYGRZXVI6js.useInboxNotifications; exports.useIsInsideRoom = _chunkYGRZXVI6js._useIsInsideRoom; exports.useLostConnectionListener = _chunkYGRZXVI6js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkYGRZXVI6js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkYGRZXVI6js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkYGRZXVI6js.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkYGRZXVI6js.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkYGRZXVI6js.useMarkThreadAsUnresolved; exports.useMutation = _chunkYGRZXVI6js._useMutation; exports.useMyPresence = _chunkYGRZXVI6js._useMyPresence; exports.useOther = _chunkYGRZXVI6js._useOther; exports.useOthers = _chunkYGRZXVI6js._useOthers; exports.useOthersConnectionIds = _chunkYGRZXVI6js.useOthersConnectionIds; exports.useOthersListener = _chunkYGRZXVI6js._useOthersListener; exports.useOthersMapped = _chunkYGRZXVI6js._useOthersMapped; exports.useRedo = _chunkYGRZXVI6js.useRedo; exports.useRemoveReaction = _chunkYGRZXVI6js.useRemoveReaction; exports.useRoom = _chunkYGRZXVI6js._useRoom; exports.useRoomInfo = _chunkYGRZXVI6js.useRoomInfo; exports.useRoomNotificationSettings = _chunkYGRZXVI6js.useRoomNotificationSettings; exports.useSelf = _chunkYGRZXVI6js._useSelf; exports.useStatus = _chunkYGRZXVI6js.useStatus; exports.useStorage = _chunkYGRZXVI6js._useStorage; exports.useStorageRoot = _chunkYGRZXVI6js._useStorageRoot; exports.useStorageStatus = _chunkYGRZXVI6js.useStorageStatus; exports.useThreadSubscription = _chunkYGRZXVI6js.useThreadSubscription; exports.useThreads = _chunkYGRZXVI6js._useThreads; exports.useUndo = _chunkYGRZXVI6js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkYGRZXVI6js.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkYGRZXVI6js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkYGRZXVI6js.useUpdateRoomNotificationSettings; exports.useUser = _chunkYGRZXVI6js._useUser; exports.useUserThreads_experimental = _chunkYGRZXVI6js._useUserThreads_experimental;
138
140
  //# 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 useIsInsideRoom,\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 useAttachmentUrl,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\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 useIsInsideRoom,\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 useHistoryVersionData,\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 useHistoryVersions,\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
@@ -14,6 +14,7 @@ import {
14
14
  _useDeleteThread,
15
15
  _useEditThreadMetadata,
16
16
  _useEventListener,
17
+ _useHistoryVersions,
17
18
  _useInboxNotificationThread,
18
19
  _useIsInsideRoom,
19
20
  _useMutation,
@@ -33,7 +34,6 @@ import {
33
34
  createLiveblocksContext,
34
35
  createRoomContext,
35
36
  selectedThreads,
36
- useAttachmentUrl,
37
37
  useBatch,
38
38
  useCanRedo,
39
39
  useCanUndo,
@@ -46,6 +46,7 @@ import {
46
46
  useEditComment,
47
47
  useErrorListener,
48
48
  useHistory,
49
+ useHistoryVersionData,
49
50
  useInboxNotifications,
50
51
  useLostConnectionListener,
51
52
  useMarkAllInboxNotificationsAsRead,
@@ -64,7 +65,7 @@ import {
64
65
  useUndo,
65
66
  useUnreadInboxNotificationsCount,
66
67
  useUpdateRoomNotificationSettings
67
- } from "./chunk-ZEN5B7DF.mjs";
68
+ } from "./chunk-HS6BFH3A.mjs";
68
69
 
69
70
  // src/index.ts
70
71
  import { detectDupes } from "@liveblocks/core";
@@ -82,7 +83,6 @@ export {
82
83
  selectedThreads,
83
84
  shallow,
84
85
  _useAddReaction as useAddReaction,
85
- useAttachmentUrl,
86
86
  useBatch,
87
87
  _useBroadcastEvent as useBroadcastEvent,
88
88
  useCanRedo,
@@ -100,6 +100,8 @@ export {
100
100
  useErrorListener,
101
101
  _useEventListener as useEventListener,
102
102
  useHistory,
103
+ useHistoryVersionData,
104
+ _useHistoryVersions as useHistoryVersions,
103
105
  _useInboxNotificationThread as useInboxNotificationThread,
104
106
  useInboxNotifications,
105
107
  _useIsInsideRoom as useIsInsideRoom,
@@ -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 useIsInsideRoom,\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 useAttachmentUrl,\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
+ {"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 useIsInsideRoom,\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 useHistoryVersionData,\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 useHistoryVersions,\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, CommentAttachment, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
4
+ import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, 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;
@@ -169,14 +169,8 @@ declare type RoomInfoAsyncSuccess = Resolve<RoomInfoAsyncResult & {
169
169
  readonly isLoading: false;
170
170
  readonly error?: undefined;
171
171
  }>;
172
- declare type AttachmentUrlAsyncResult = AsyncResultWithDataField<string, "url">;
173
- declare type AttachmentUrlAsyncSuccess = Resolve<AttachmentUrlAsyncResult & {
174
- readonly isLoading: false;
175
- readonly error?: undefined;
176
- }>;
177
172
  declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
178
173
  body: CommentBody;
179
- attachments?: CommentAttachment[];
180
174
  } & PartialUnless<M, {
181
175
  metadata: M;
182
176
  }>>;
@@ -187,13 +181,11 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
187
181
  declare type CreateCommentOptions = {
188
182
  threadId: string;
189
183
  body: CommentBody;
190
- attachments?: CommentAttachment[];
191
184
  };
192
185
  declare type EditCommentOptions = {
193
186
  threadId: string;
194
187
  commentId: string;
195
188
  body: CommentBody;
196
- attachments?: CommentAttachment[];
197
189
  };
198
190
  declare type DeleteCommentOptions = {
199
191
  threadId: string;
@@ -268,6 +260,38 @@ declare type RoomNotificationSettingsStateSuccess = {
268
260
  error?: never;
269
261
  };
270
262
  declare type RoomNotificationSettingsState = RoomNotificationSettingsStateLoading | RoomNotificationSettingsStateError | RoomNotificationSettingsStateSuccess;
263
+ declare type HistoryVersionDataStateLoading = {
264
+ isLoading: true;
265
+ data?: never;
266
+ error?: never;
267
+ };
268
+ declare type HistoryVersionDataStateResolved = {
269
+ isLoading: false;
270
+ data: Uint8Array;
271
+ error?: Error;
272
+ };
273
+ declare type HistoryVersionDataStateError = {
274
+ isLoading: false;
275
+ data?: never;
276
+ error: Error;
277
+ };
278
+ declare type HistoryVersionDataState = HistoryVersionDataStateLoading | HistoryVersionDataStateResolved | HistoryVersionDataStateError;
279
+ declare type HistoryVersionsStateLoading = {
280
+ isLoading: true;
281
+ versions?: never;
282
+ error?: never;
283
+ };
284
+ declare type HistoryVersionsStateResolved = {
285
+ isLoading: false;
286
+ versions: HistoryVersion[];
287
+ error?: Error;
288
+ };
289
+ declare type HistoryVersionsStateError = {
290
+ isLoading: false;
291
+ versions?: never;
292
+ error: Error;
293
+ };
294
+ declare type HistoryVersionsState = HistoryVersionsStateLoading | HistoryVersionsStateResolved | HistoryVersionsStateError;
271
295
  declare type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
272
296
  /**
273
297
  * The id of the room you want to connect to
@@ -891,12 +915,19 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
891
915
  (settings: Partial<RoomNotificationSettings>) => void
892
916
  ];
893
917
  /**
894
- * Returns a presigned URL for an attachment by its ID.
918
+ * Returns a history of versions of the current room.
919
+ *
920
+ * @example
921
+ * const { versions, error, isLoading } = useHistoryVersions();
922
+ */
923
+ useHistoryVersions(): HistoryVersionsState;
924
+ /**
925
+ * Returns the data of a specific version of the current room.
895
926
  *
896
927
  * @example
897
- * const { url, error, isLoading } = useAttachmentUrl("at_xxx");
928
+ * const { data, error, isLoading } = useHistoryVersionData(version.id);
898
929
  */
899
- useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
930
+ useHistoryVersionData(id: string): HistoryVersionDataState;
900
931
  suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
901
932
  /**
902
933
  * Returns the current storage status for the Room, and triggers
@@ -959,6 +990,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
959
990
  * const { threads } = useThreads();
960
991
  */
961
992
  useThreads(options?: UseThreadsOptions<M>): ThreadsStateSuccess<M>;
993
+ /**
994
+ * Returns a history of versions of the current room.
995
+ *
996
+ * @example
997
+ * const { versions } = useHistoryVersions();
998
+ */
999
+ useHistoryVersions(): HistoryVersionsStateResolved;
962
1000
  /**
963
1001
  * Returns the user's notification settings for the current room
964
1002
  * and a function to update them.
@@ -970,13 +1008,6 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
970
1008
  RoomNotificationSettingsStateSuccess,
971
1009
  (settings: Partial<RoomNotificationSettings>) => void
972
1010
  ];
973
- /**
974
- * Returns a presigned URL for an attachment by its ID.
975
- *
976
- * @example
977
- * const { url } = useAttachmentUrl("at_xxx");
978
- */
979
- useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
980
1011
  }>;
981
1012
  } & PrivateRoomContextApi>;
982
1013
  /**
@@ -1405,6 +1436,7 @@ declare function useRoomNotificationSettings(): [
1405
1436
  RoomNotificationSettingsState,
1406
1437
  (settings: Partial<RoomNotificationSettings$1>) => void
1407
1438
  ];
1439
+ declare function useHistoryVersionData(versionId: string): HistoryVersionDataState;
1408
1440
  /**
1409
1441
  * Returns a function that updates the user's notification settings
1410
1442
  * for the current room.
@@ -1435,24 +1467,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
1435
1467
  * indicator.
1436
1468
  */
1437
1469
  declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
1438
- /**
1439
- * Returns a presigned URL for an attachment by its ID.
1440
- *
1441
- * @example
1442
- * const { url, error, isLoading } = useAttachmentUrl("at_xxx");
1443
- */
1444
- declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
1445
- /**
1446
- * Returns a presigned URL for an attachment by its ID.
1447
- *
1448
- * @example
1449
- * const { url } = useAttachmentUrl("at_xxx");
1450
- */
1451
- declare function useAttachmentUrlSuspense(attachmentId: string): {
1452
- readonly isLoading: false;
1453
- readonly url: string;
1454
- readonly error: undefined;
1455
- };
1456
1470
  /**
1457
1471
  * Creates a RoomProvider and a set of typed hooks to use in your app. Note
1458
1472
  * that any RoomProvider created in this way does not need to be nested in
@@ -1672,6 +1686,20 @@ declare const _useThreads: TypedBundle["useThreads"];
1672
1686
  * const { threads } = useThreads();
1673
1687
  */
1674
1688
  declare const _useThreadsSuspense: TypedBundle["suspense"]["useThreads"];
1689
+ /**
1690
+ * Returns a history of versions of the current room.
1691
+ *
1692
+ * @example
1693
+ * const { versions, error, isLoading } = useHistoryVersions();
1694
+ */
1695
+ declare const _useHistoryVersions: TypedBundle["useHistoryVersions"];
1696
+ /**
1697
+ * Returns a history of versions of the current room.
1698
+ *
1699
+ * @example
1700
+ * const { versions } = useHistoryVersions();
1701
+ */
1702
+ declare const _useHistoryVersionsSuspense: TypedBundle["suspense"]["useHistoryVersions"];
1675
1703
  /**
1676
1704
  * Given a connection ID (as obtained by using `useOthersConnectionIds`), you
1677
1705
  * can call this selector deep down in your component stack to only have the
@@ -1899,4 +1927,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
1899
1927
  */
1900
1928
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
1901
1929
 
1902
- export { _useOthersMapped as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseThreadsOptions as U, useCommentsErrorListener as V, CreateThreadError as W, _useOther as X, _useOthers as Y, useOthersConnectionIds as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useSelf as a0, _useStorage as a1, useStorageStatus as a2, _useThreads as a3, useAttachmentUrl as a4, useInboxNotifications as a5, _useUserThreads_experimental as a6, useRoomInfo as a7, useUnreadInboxNotificationsCount as a8, _useUser 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, useInboxNotificationsSuspense as aj, useRoomInfoSuspense as ak, useUnreadInboxNotificationsCountSuspense as al, _useUserSuspense as am, _useUserThreadsSuspense_experimental as an, 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 };
1930
+ export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseThreadsOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, _useOtherSuspense as ab, _useOthersSuspense as ac, useOthersConnectionIdsSuspense as ad, _useOthersMappedSuspense as ae, _useSelfSuspense as af, _useStorageSuspense as ag, useStorageStatusSuspense as ah, _useThreadsSuspense as ai, _useHistoryVersionsSuspense as aj, useInboxNotificationsSuspense as ak, useRoomInfoSuspense as al, useUnreadInboxNotificationsCountSuspense as am, _useUserSuspense as an, _useUserThreadsSuspense_experimental as ao, 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, CommentAttachment, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
4
+ import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, 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;
@@ -169,14 +169,8 @@ declare type RoomInfoAsyncSuccess = Resolve<RoomInfoAsyncResult & {
169
169
  readonly isLoading: false;
170
170
  readonly error?: undefined;
171
171
  }>;
172
- declare type AttachmentUrlAsyncResult = AsyncResultWithDataField<string, "url">;
173
- declare type AttachmentUrlAsyncSuccess = Resolve<AttachmentUrlAsyncResult & {
174
- readonly isLoading: false;
175
- readonly error?: undefined;
176
- }>;
177
172
  declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
178
173
  body: CommentBody;
179
- attachments?: CommentAttachment[];
180
174
  } & PartialUnless<M, {
181
175
  metadata: M;
182
176
  }>>;
@@ -187,13 +181,11 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
187
181
  declare type CreateCommentOptions = {
188
182
  threadId: string;
189
183
  body: CommentBody;
190
- attachments?: CommentAttachment[];
191
184
  };
192
185
  declare type EditCommentOptions = {
193
186
  threadId: string;
194
187
  commentId: string;
195
188
  body: CommentBody;
196
- attachments?: CommentAttachment[];
197
189
  };
198
190
  declare type DeleteCommentOptions = {
199
191
  threadId: string;
@@ -268,6 +260,38 @@ declare type RoomNotificationSettingsStateSuccess = {
268
260
  error?: never;
269
261
  };
270
262
  declare type RoomNotificationSettingsState = RoomNotificationSettingsStateLoading | RoomNotificationSettingsStateError | RoomNotificationSettingsStateSuccess;
263
+ declare type HistoryVersionDataStateLoading = {
264
+ isLoading: true;
265
+ data?: never;
266
+ error?: never;
267
+ };
268
+ declare type HistoryVersionDataStateResolved = {
269
+ isLoading: false;
270
+ data: Uint8Array;
271
+ error?: Error;
272
+ };
273
+ declare type HistoryVersionDataStateError = {
274
+ isLoading: false;
275
+ data?: never;
276
+ error: Error;
277
+ };
278
+ declare type HistoryVersionDataState = HistoryVersionDataStateLoading | HistoryVersionDataStateResolved | HistoryVersionDataStateError;
279
+ declare type HistoryVersionsStateLoading = {
280
+ isLoading: true;
281
+ versions?: never;
282
+ error?: never;
283
+ };
284
+ declare type HistoryVersionsStateResolved = {
285
+ isLoading: false;
286
+ versions: HistoryVersion[];
287
+ error?: Error;
288
+ };
289
+ declare type HistoryVersionsStateError = {
290
+ isLoading: false;
291
+ versions?: never;
292
+ error: Error;
293
+ };
294
+ declare type HistoryVersionsState = HistoryVersionsStateLoading | HistoryVersionsStateResolved | HistoryVersionsStateError;
271
295
  declare type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
272
296
  /**
273
297
  * The id of the room you want to connect to
@@ -891,12 +915,19 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
891
915
  (settings: Partial<RoomNotificationSettings>) => void
892
916
  ];
893
917
  /**
894
- * Returns a presigned URL for an attachment by its ID.
918
+ * Returns a history of versions of the current room.
919
+ *
920
+ * @example
921
+ * const { versions, error, isLoading } = useHistoryVersions();
922
+ */
923
+ useHistoryVersions(): HistoryVersionsState;
924
+ /**
925
+ * Returns the data of a specific version of the current room.
895
926
  *
896
927
  * @example
897
- * const { url, error, isLoading } = useAttachmentUrl("at_xxx");
928
+ * const { data, error, isLoading } = useHistoryVersionData(version.id);
898
929
  */
899
- useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
930
+ useHistoryVersionData(id: string): HistoryVersionDataState;
900
931
  suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
901
932
  /**
902
933
  * Returns the current storage status for the Room, and triggers
@@ -959,6 +990,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
959
990
  * const { threads } = useThreads();
960
991
  */
961
992
  useThreads(options?: UseThreadsOptions<M>): ThreadsStateSuccess<M>;
993
+ /**
994
+ * Returns a history of versions of the current room.
995
+ *
996
+ * @example
997
+ * const { versions } = useHistoryVersions();
998
+ */
999
+ useHistoryVersions(): HistoryVersionsStateResolved;
962
1000
  /**
963
1001
  * Returns the user's notification settings for the current room
964
1002
  * and a function to update them.
@@ -970,13 +1008,6 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
970
1008
  RoomNotificationSettingsStateSuccess,
971
1009
  (settings: Partial<RoomNotificationSettings>) => void
972
1010
  ];
973
- /**
974
- * Returns a presigned URL for an attachment by its ID.
975
- *
976
- * @example
977
- * const { url } = useAttachmentUrl("at_xxx");
978
- */
979
- useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
980
1011
  }>;
981
1012
  } & PrivateRoomContextApi>;
982
1013
  /**
@@ -1405,6 +1436,7 @@ declare function useRoomNotificationSettings(): [
1405
1436
  RoomNotificationSettingsState,
1406
1437
  (settings: Partial<RoomNotificationSettings$1>) => void
1407
1438
  ];
1439
+ declare function useHistoryVersionData(versionId: string): HistoryVersionDataState;
1408
1440
  /**
1409
1441
  * Returns a function that updates the user's notification settings
1410
1442
  * for the current room.
@@ -1435,24 +1467,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
1435
1467
  * indicator.
1436
1468
  */
1437
1469
  declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
1438
- /**
1439
- * Returns a presigned URL for an attachment by its ID.
1440
- *
1441
- * @example
1442
- * const { url, error, isLoading } = useAttachmentUrl("at_xxx");
1443
- */
1444
- declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
1445
- /**
1446
- * Returns a presigned URL for an attachment by its ID.
1447
- *
1448
- * @example
1449
- * const { url } = useAttachmentUrl("at_xxx");
1450
- */
1451
- declare function useAttachmentUrlSuspense(attachmentId: string): {
1452
- readonly isLoading: false;
1453
- readonly url: string;
1454
- readonly error: undefined;
1455
- };
1456
1470
  /**
1457
1471
  * Creates a RoomProvider and a set of typed hooks to use in your app. Note
1458
1472
  * that any RoomProvider created in this way does not need to be nested in
@@ -1672,6 +1686,20 @@ declare const _useThreads: TypedBundle["useThreads"];
1672
1686
  * const { threads } = useThreads();
1673
1687
  */
1674
1688
  declare const _useThreadsSuspense: TypedBundle["suspense"]["useThreads"];
1689
+ /**
1690
+ * Returns a history of versions of the current room.
1691
+ *
1692
+ * @example
1693
+ * const { versions, error, isLoading } = useHistoryVersions();
1694
+ */
1695
+ declare const _useHistoryVersions: TypedBundle["useHistoryVersions"];
1696
+ /**
1697
+ * Returns a history of versions of the current room.
1698
+ *
1699
+ * @example
1700
+ * const { versions } = useHistoryVersions();
1701
+ */
1702
+ declare const _useHistoryVersionsSuspense: TypedBundle["suspense"]["useHistoryVersions"];
1675
1703
  /**
1676
1704
  * Given a connection ID (as obtained by using `useOthersConnectionIds`), you
1677
1705
  * can call this selector deep down in your component stack to only have the
@@ -1899,4 +1927,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
1899
1927
  */
1900
1928
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
1901
1929
 
1902
- export { _useOthersMapped as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseThreadsOptions as U, useCommentsErrorListener as V, CreateThreadError as W, _useOther as X, _useOthers as Y, useOthersConnectionIds as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useSelf as a0, _useStorage as a1, useStorageStatus as a2, _useThreads as a3, useAttachmentUrl as a4, useInboxNotifications as a5, _useUserThreads_experimental as a6, useRoomInfo as a7, useUnreadInboxNotificationsCount as a8, _useUser 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, useInboxNotificationsSuspense as aj, useRoomInfoSuspense as ak, useUnreadInboxNotificationsCountSuspense as al, _useUserSuspense as am, _useUserThreadsSuspense_experimental as an, 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 };
1930
+ export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseThreadsOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, _useOtherSuspense as ab, _useOthersSuspense as ac, useOthersConnectionIdsSuspense as ad, _useOthersMappedSuspense as ae, _useSelfSuspense as af, _useStorageSuspense as ag, useStorageStatusSuspense as ah, _useThreadsSuspense as ai, _useHistoryVersionsSuspense as aj, useInboxNotificationsSuspense as ak, useRoomInfoSuspense as al, useUnreadInboxNotificationsCountSuspense as am, _useUserSuspense as an, _useUserThreadsSuspense_experimental as ao, 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,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, j as useAddReaction, ai as useAttachmentUrl, 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, aj as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, aa as useOther, ab as useOthers, ac as useOthersConnectionIds, G as useOthersListener, ad as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ak as useRoomInfo, K as useRoomNotificationSettings, ae as useSelf, N as useStatus, af as useStorage, O as useStorageRoot, ag as useStorageStatus, P as useThreadSubscription, ah as useThreads, Q as useUndo, al as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, am as useUser, an as useUserThreads_experimental } from './suspense-JsIIJujn.mjs';
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, aj as useHistoryVersions, _ as useInboxNotificationThread, ak as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ab as useOther, ac as useOthers, ad as useOthersConnectionIds, G as useOthersListener, ae as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, al as useRoomInfo, K as useRoomNotificationSettings, af as useSelf, N as useStatus, ag as useStorage, O as useStorageRoot, ah as useStorageStatus, P as useThreadSubscription, ai as useThreads, Q as useUndo, am as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, an as useUser, ao as useUserThreads_experimental } from './suspense-2UL0jBvg.mjs';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import 'react';
4
4
  import '@liveblocks/core';
@@ -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, j as useAddReaction, ai as useAttachmentUrl, 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, aj as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, aa as useOther, ab as useOthers, ac as useOthersConnectionIds, G as useOthersListener, ad as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ak as useRoomInfo, K as useRoomNotificationSettings, ae as useSelf, N as useStatus, af as useStorage, O as useStorageRoot, ag as useStorageStatus, P as useThreadSubscription, ah as useThreads, Q as useUndo, al as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, am as useUser, an as useUserThreads_experimental } from './suspense-JsIIJujn.js';
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, aj as useHistoryVersions, _ as useInboxNotificationThread, ak as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ab as useOther, ac as useOthers, ad as useOthersConnectionIds, G as useOthersListener, ae as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, al as useRoomInfo, K as useRoomNotificationSettings, af as useSelf, N as useStatus, ag as useStorage, O as useStorageRoot, ah as useStorageStatus, P as useThreadSubscription, ai as useThreads, Q as useUndo, am as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, an as useUser, ao as useUserThreads_experimental } from './suspense-2UL0jBvg.js';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import 'react';
4
4
  import '@liveblocks/core';
package/dist/suspense.js CHANGED
@@ -59,12 +59,12 @@
59
59
 
60
60
 
61
61
 
62
- var _chunkMREN32VNjs = require('./chunk-MREN32VN.js');
62
+ var _chunkYGRZXVI6js = require('./chunk-YGRZXVI6.js');
63
63
 
64
64
  // src/suspense.ts
65
65
  var _core = require('@liveblocks/core');
66
66
  var _client = require('@liveblocks/client');
67
- _core.detectDupes.call(void 0, _chunkMREN32VNjs.PKG_NAME, _chunkMREN32VNjs.PKG_VERSION, _chunkMREN32VNjs.PKG_FORMAT);
67
+ _core.detectDupes.call(void 0, _chunkYGRZXVI6js.PKG_NAME, _chunkYGRZXVI6js.PKG_VERSION, _chunkYGRZXVI6js.PKG_FORMAT);
68
68
 
69
69
 
70
70
 
@@ -124,5 +124,5 @@ _core.detectDupes.call(void 0, _chunkMREN32VNjs.PKG_NAME, _chunkMREN32VNjs.PKG_V
124
124
 
125
125
 
126
126
 
127
- exports.ClientContext = _chunkMREN32VNjs.ClientContext; exports.ClientSideSuspense = _chunkMREN32VNjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkMREN32VNjs.LiveblocksProvider; exports.RoomContext = _chunkMREN32VNjs.RoomContext; exports.RoomProvider = _chunkMREN32VNjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkMREN32VNjs._useAddReaction; exports.useAttachmentUrl = _chunkMREN32VNjs.useAttachmentUrlSuspense; exports.useBatch = _chunkMREN32VNjs.useBatch; exports.useBroadcastEvent = _chunkMREN32VNjs._useBroadcastEvent; exports.useCanRedo = _chunkMREN32VNjs.useCanRedo; exports.useCanUndo = _chunkMREN32VNjs.useCanUndo; exports.useClient = _chunkMREN32VNjs.useClient; exports.useCreateComment = _chunkMREN32VNjs.useCreateComment; exports.useCreateThread = _chunkMREN32VNjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkMREN32VNjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkMREN32VNjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkMREN32VNjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkMREN32VNjs._useDeleteThread; exports.useEditComment = _chunkMREN32VNjs.useEditComment; exports.useEditThreadMetadata = _chunkMREN32VNjs._useEditThreadMetadata; exports.useErrorListener = _chunkMREN32VNjs.useErrorListener; exports.useEventListener = _chunkMREN32VNjs._useEventListener; exports.useHistory = _chunkMREN32VNjs.useHistory; exports.useInboxNotificationThread = _chunkMREN32VNjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkMREN32VNjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkMREN32VNjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkMREN32VNjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkMREN32VNjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkMREN32VNjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkMREN32VNjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkMREN32VNjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkMREN32VNjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkMREN32VNjs._useMutation; exports.useMyPresence = _chunkMREN32VNjs._useMyPresence; exports.useOther = _chunkMREN32VNjs._useOtherSuspense; exports.useOthers = _chunkMREN32VNjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkMREN32VNjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkMREN32VNjs._useOthersListener; exports.useOthersMapped = _chunkMREN32VNjs._useOthersMappedSuspense; exports.useRedo = _chunkMREN32VNjs.useRedo; exports.useRemoveReaction = _chunkMREN32VNjs.useRemoveReaction; exports.useRoom = _chunkMREN32VNjs._useRoom; exports.useRoomInfo = _chunkMREN32VNjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkMREN32VNjs.useRoomNotificationSettings; exports.useSelf = _chunkMREN32VNjs._useSelfSuspense; exports.useStatus = _chunkMREN32VNjs.useStatus; exports.useStorage = _chunkMREN32VNjs._useStorageSuspense; exports.useStorageRoot = _chunkMREN32VNjs._useStorageRoot; exports.useStorageStatus = _chunkMREN32VNjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkMREN32VNjs.useThreadSubscription; exports.useThreads = _chunkMREN32VNjs._useThreadsSuspense; exports.useUndo = _chunkMREN32VNjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkMREN32VNjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkMREN32VNjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkMREN32VNjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkMREN32VNjs._useUserSuspense; exports.useUserThreads_experimental = _chunkMREN32VNjs._useUserThreadsSuspense_experimental;
127
+ exports.ClientContext = _chunkYGRZXVI6js.ClientContext; exports.ClientSideSuspense = _chunkYGRZXVI6js.ClientSideSuspense; exports.LiveblocksProvider = _chunkYGRZXVI6js.LiveblocksProvider; exports.RoomContext = _chunkYGRZXVI6js.RoomContext; exports.RoomProvider = _chunkYGRZXVI6js._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkYGRZXVI6js._useAddReaction; exports.useBatch = _chunkYGRZXVI6js.useBatch; exports.useBroadcastEvent = _chunkYGRZXVI6js._useBroadcastEvent; exports.useCanRedo = _chunkYGRZXVI6js.useCanRedo; exports.useCanUndo = _chunkYGRZXVI6js.useCanUndo; exports.useClient = _chunkYGRZXVI6js.useClient; exports.useCreateComment = _chunkYGRZXVI6js.useCreateComment; exports.useCreateThread = _chunkYGRZXVI6js._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkYGRZXVI6js.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkYGRZXVI6js.useDeleteComment; exports.useDeleteInboxNotification = _chunkYGRZXVI6js.useDeleteInboxNotification; exports.useDeleteThread = _chunkYGRZXVI6js._useDeleteThread; exports.useEditComment = _chunkYGRZXVI6js.useEditComment; exports.useEditThreadMetadata = _chunkYGRZXVI6js._useEditThreadMetadata; exports.useErrorListener = _chunkYGRZXVI6js.useErrorListener; exports.useEventListener = _chunkYGRZXVI6js._useEventListener; exports.useHistory = _chunkYGRZXVI6js.useHistory; exports.useHistoryVersions = _chunkYGRZXVI6js._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkYGRZXVI6js._useInboxNotificationThread; exports.useInboxNotifications = _chunkYGRZXVI6js.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkYGRZXVI6js._useIsInsideRoom; exports.useLostConnectionListener = _chunkYGRZXVI6js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkYGRZXVI6js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkYGRZXVI6js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkYGRZXVI6js.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkYGRZXVI6js.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkYGRZXVI6js.useMarkThreadAsUnresolved; exports.useMutation = _chunkYGRZXVI6js._useMutation; exports.useMyPresence = _chunkYGRZXVI6js._useMyPresence; exports.useOther = _chunkYGRZXVI6js._useOtherSuspense; exports.useOthers = _chunkYGRZXVI6js._useOthersSuspense; exports.useOthersConnectionIds = _chunkYGRZXVI6js.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkYGRZXVI6js._useOthersListener; exports.useOthersMapped = _chunkYGRZXVI6js._useOthersMappedSuspense; exports.useRedo = _chunkYGRZXVI6js.useRedo; exports.useRemoveReaction = _chunkYGRZXVI6js.useRemoveReaction; exports.useRoom = _chunkYGRZXVI6js._useRoom; exports.useRoomInfo = _chunkYGRZXVI6js.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkYGRZXVI6js.useRoomNotificationSettings; exports.useSelf = _chunkYGRZXVI6js._useSelfSuspense; exports.useStatus = _chunkYGRZXVI6js.useStatus; exports.useStorage = _chunkYGRZXVI6js._useStorageSuspense; exports.useStorageRoot = _chunkYGRZXVI6js._useStorageRoot; exports.useStorageStatus = _chunkYGRZXVI6js.useStorageStatusSuspense; exports.useThreadSubscription = _chunkYGRZXVI6js.useThreadSubscription; exports.useThreads = _chunkYGRZXVI6js._useThreadsSuspense; exports.useUndo = _chunkYGRZXVI6js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkYGRZXVI6js.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkYGRZXVI6js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkYGRZXVI6js.useUpdateRoomNotificationSettings; exports.useUser = _chunkYGRZXVI6js._useUserSuspense; exports.useUserThreads_experimental = _chunkYGRZXVI6js._useUserThreadsSuspense_experimental;
128
128
  //# sourceMappingURL=suspense.js.map
@@ -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 useIsInsideRoom,\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 useAttachmentUrlSuspense as useAttachmentUrl,\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"]}
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 useIsInsideRoom,\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 useHistoryVersionsSuspense as useHistoryVersions,\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
@@ -13,6 +13,7 @@ import {
13
13
  _useDeleteThread,
14
14
  _useEditThreadMetadata,
15
15
  _useEventListener,
16
+ _useHistoryVersionsSuspense,
16
17
  _useInboxNotificationThread,
17
18
  _useIsInsideRoom,
18
19
  _useMutation,
@@ -29,7 +30,6 @@ import {
29
30
  _useUpdateMyPresence,
30
31
  _useUserSuspense,
31
32
  _useUserThreadsSuspense_experimental,
32
- useAttachmentUrlSuspense,
33
33
  useBatch,
34
34
  useCanRedo,
35
35
  useCanUndo,
@@ -59,7 +59,7 @@ import {
59
59
  useUndo,
60
60
  useUnreadInboxNotificationsCountSuspense,
61
61
  useUpdateRoomNotificationSettings
62
- } from "./chunk-ZEN5B7DF.mjs";
62
+ } from "./chunk-HS6BFH3A.mjs";
63
63
 
64
64
  // src/suspense.ts
65
65
  import { detectDupes } from "@liveblocks/core";
@@ -73,7 +73,6 @@ export {
73
73
  _RoomProvider as RoomProvider,
74
74
  shallow,
75
75
  _useAddReaction as useAddReaction,
76
- useAttachmentUrlSuspense as useAttachmentUrl,
77
76
  useBatch,
78
77
  _useBroadcastEvent as useBroadcastEvent,
79
78
  useCanRedo,
@@ -90,6 +89,7 @@ export {
90
89
  useErrorListener,
91
90
  _useEventListener as useEventListener,
92
91
  useHistory,
92
+ _useHistoryVersionsSuspense as useHistoryVersions,
93
93
  _useInboxNotificationThread as useInboxNotificationThread,
94
94
  useInboxNotificationsSuspense as useInboxNotifications,
95
95
  _useIsInsideRoom as useIsInsideRoom,