@liveblocks/react 3.13.0-ack1 → 3.13.0-metadata1

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.
@@ -330,7 +330,7 @@ function find(it, predicate) {
330
330
 
331
331
 
332
332
  function makeThreadsFilter(query, subscriptions) {
333
- return (thread) => matchesThreadsQuery(thread, query, subscriptions) && matchesMetadata(thread, query);
333
+ return (thread) => matchesThreadsQuery(thread, query, subscriptions) && matchesThreadMetadata(thread, query);
334
334
  }
335
335
  function matchesThreadsQuery(thread, q, subscriptions) {
336
336
  let subscription = void 0;
@@ -339,7 +339,7 @@ function matchesThreadsQuery(thread, q, subscriptions) {
339
339
  }
340
340
  return (q.resolved === void 0 || thread.resolved === q.resolved) && (q.subscribed === void 0 || q.subscribed === true && subscription !== void 0 || q.subscribed === false && subscription === void 0);
341
341
  }
342
- function matchesMetadata(thread, q) {
342
+ function matchesThreadMetadata(thread, q) {
343
343
  const metadata = thread.metadata;
344
344
  return q.metadata === void 0 || Object.entries(q.metadata).every(
345
345
  ([key, op]) => (
@@ -1519,6 +1519,26 @@ var UmbrellaStore = class {
1519
1519
  (thread) => applyUpsertComment(thread, editedComment)
1520
1520
  );
1521
1521
  }
1522
+ editCommentMetadata(threadId, commentId, optimisticId, updatedMetadata, updatedAt) {
1523
+ return this.#updateThread(
1524
+ threadId,
1525
+ optimisticId,
1526
+ (thread) => {
1527
+ const comment = thread.comments.find((c) => c.id === commentId);
1528
+ if (comment === void 0) {
1529
+ return thread;
1530
+ }
1531
+ return {
1532
+ ...thread,
1533
+ updatedAt,
1534
+ comments: thread.comments.map(
1535
+ (c) => c.id === commentId ? { ...c, metadata: updatedMetadata } : c
1536
+ )
1537
+ };
1538
+ },
1539
+ updatedAt
1540
+ );
1541
+ }
1522
1542
  deleteComment(threadId, optimisticId, commentId, deletedAt) {
1523
1543
  return this.#updateThread(
1524
1544
  threadId,
@@ -1724,6 +1744,27 @@ function applyOptimisticUpdates_forThreadifications(baseThreadsDB, notifications
1724
1744
  threadsDB.upsert(applyUpsertComment(thread, optimisticUpdate.comment));
1725
1745
  break;
1726
1746
  }
1747
+ case "edit-comment-metadata": {
1748
+ const thread = threadsDB.get(optimisticUpdate.threadId);
1749
+ if (thread === void 0) break;
1750
+ if (thread.updatedAt > optimisticUpdate.updatedAt) {
1751
+ break;
1752
+ }
1753
+ const existingComment = thread.comments.find(
1754
+ (c) => c.id === optimisticUpdate.commentId
1755
+ );
1756
+ if (existingComment === void 0) break;
1757
+ threadsDB.upsert(
1758
+ applyUpsertComment(thread, {
1759
+ ...existingComment,
1760
+ metadata: {
1761
+ ...existingComment.metadata,
1762
+ ...optimisticUpdate.metadata
1763
+ }
1764
+ })
1765
+ );
1766
+ break;
1767
+ }
1727
1768
  case "delete-comment": {
1728
1769
  const thread = threadsDB.get(optimisticUpdate.threadId);
1729
1770
  if (thread === void 0) break;
@@ -1930,7 +1971,20 @@ function applyUpsertComment(thread, comment) {
1930
1971
  return updatedThread;
1931
1972
  }
1932
1973
  if (existingComment.deletedAt !== void 0) {
1933
- return thread;
1974
+ const updatedComment = {
1975
+ ...existingComment,
1976
+ metadata: {
1977
+ ...existingComment.metadata,
1978
+ ...comment.metadata
1979
+ }
1980
+ };
1981
+ const updatedComments = thread.comments.map(
1982
+ (c) => c.id === comment.id ? updatedComment : c
1983
+ );
1984
+ return {
1985
+ ...thread,
1986
+ comments: updatedComments
1987
+ };
1934
1988
  }
1935
1989
  if (existingComment.editedAt === void 0 || comment.editedAt === void 0 || existingComment.editedAt <= comment.editedAt) {
1936
1990
  const updatedComments = thread.comments.map(
@@ -3521,9 +3575,11 @@ function makeRoomContextBundle(client) {
3521
3575
  useOthersMapped,
3522
3576
  useOthersConnectionIds,
3523
3577
  useOther,
3578
+ // prettier-ignore
3524
3579
  useMutation,
3525
3580
  useThreads,
3526
3581
  useSearchComments,
3582
+ // prettier-ignore
3527
3583
  useCreateThread,
3528
3584
  useDeleteThread,
3529
3585
  useEditThreadMetadata,
@@ -3533,6 +3589,7 @@ function makeRoomContextBundle(client) {
3533
3589
  useUnsubscribeFromThread,
3534
3590
  useCreateComment,
3535
3591
  useEditComment,
3592
+ useEditCommentMetadata,
3536
3593
  useDeleteComment,
3537
3594
  useAddReaction,
3538
3595
  useRemoveReaction,
@@ -3567,8 +3624,10 @@ function makeRoomContextBundle(client) {
3567
3624
  useOthersMapped: useOthersMappedSuspense,
3568
3625
  useOthersConnectionIds: useOthersConnectionIdsSuspense,
3569
3626
  useOther: useOtherSuspense,
3627
+ // prettier-ignore
3570
3628
  useMutation,
3571
3629
  useThreads: useThreadsSuspense,
3630
+ // prettier-ignore
3572
3631
  useCreateThread,
3573
3632
  useDeleteThread,
3574
3633
  useEditThreadMetadata,
@@ -3578,6 +3637,7 @@ function makeRoomContextBundle(client) {
3578
3637
  useUnsubscribeFromThread,
3579
3638
  useCreateComment,
3580
3639
  useEditComment,
3640
+ useEditCommentMetadata,
3581
3641
  useDeleteComment,
3582
3642
  useAddReaction,
3583
3643
  useRemoveReaction,
@@ -3682,6 +3742,7 @@ function RoomProviderInner(props) {
3682
3742
  case _core.ServerMsgCode.COMMENT_REACTION_ADDED:
3683
3743
  case _core.ServerMsgCode.COMMENT_REACTION_REMOVED:
3684
3744
  case _core.ServerMsgCode.COMMENT_DELETED:
3745
+ case _core.ServerMsgCode.COMMENT_METADATA_UPDATED:
3685
3746
  if (!existingThread) break;
3686
3747
  store.updateThreadifications(
3687
3748
  [thread],
@@ -4089,6 +4150,7 @@ function useCreateRoomThread(roomId) {
4089
4150
  (options) => {
4090
4151
  const body = options.body;
4091
4152
  const metadata = _nullishCoalesce(options.metadata, () => ( {}));
4153
+ const commentMetadata = _nullishCoalesce(options.commentMetadata, () => ( {}));
4092
4154
  const attachments = options.attachments;
4093
4155
  const threadId = _core.createThreadId.call(void 0, );
4094
4156
  const commentId = _core.createCommentId.call(void 0, );
@@ -4102,7 +4164,8 @@ function useCreateRoomThread(roomId) {
4102
4164
  userId: getCurrentUserId(client),
4103
4165
  body,
4104
4166
  reactions: [],
4105
- attachments: _nullishCoalesce(attachments, () => ( []))
4167
+ attachments: _nullishCoalesce(attachments, () => ( [])),
4168
+ metadata: commentMetadata
4106
4169
  };
4107
4170
  const newThread = {
4108
4171
  id: threadId,
@@ -4127,6 +4190,7 @@ function useCreateRoomThread(roomId) {
4127
4190
  commentId,
4128
4191
  body,
4129
4192
  metadata,
4193
+ commentMetadata,
4130
4194
  attachmentIds
4131
4195
  }).then(
4132
4196
  (thread) => {
@@ -4140,7 +4204,8 @@ function useCreateRoomThread(roomId) {
4140
4204
  threadId,
4141
4205
  commentId,
4142
4206
  body,
4143
- metadata
4207
+ metadata,
4208
+ commentMetadata
4144
4209
  },
4145
4210
  err
4146
4211
  )
@@ -4223,13 +4288,65 @@ function useEditRoomThreadMetadata(roomId) {
4223
4288
  [client, roomId]
4224
4289
  );
4225
4290
  }
4291
+ function useEditCommentMetadata() {
4292
+ return useEditRoomCommentMetadata(useRoom().id);
4293
+ }
4294
+ function useEditRoomCommentMetadata(roomId) {
4295
+ const client = useClient();
4296
+ return _react.useCallback.call(void 0,
4297
+ (options) => {
4298
+ if (!options.metadata) {
4299
+ return;
4300
+ }
4301
+ const threadId = options.threadId;
4302
+ const commentId = options.commentId;
4303
+ const metadata = options.metadata;
4304
+ const updatedAt = /* @__PURE__ */ new Date();
4305
+ const { store, onMutationFailure } = getRoomExtrasForClient(client);
4306
+ const optimisticId = store.optimisticUpdates.add({
4307
+ type: "edit-comment-metadata",
4308
+ threadId,
4309
+ commentId,
4310
+ metadata,
4311
+ updatedAt
4312
+ });
4313
+ client[_core.kInternal].httpClient.editCommentMetadata({ roomId, threadId, commentId, metadata }).then(
4314
+ (updatedMetadata) => (
4315
+ // Replace the optimistic update by the real thing
4316
+ store.editCommentMetadata(
4317
+ threadId,
4318
+ commentId,
4319
+ optimisticId,
4320
+ updatedMetadata,
4321
+ updatedAt
4322
+ )
4323
+ ),
4324
+ (err) => onMutationFailure(
4325
+ optimisticId,
4326
+ {
4327
+ type: "EDIT_COMMENT_METADATA_ERROR",
4328
+ roomId,
4329
+ threadId,
4330
+ commentId,
4331
+ metadata
4332
+ },
4333
+ err
4334
+ )
4335
+ );
4336
+ },
4337
+ [client, roomId]
4338
+ );
4339
+ }
4226
4340
  function useCreateComment() {
4227
4341
  return useCreateRoomComment(useRoom().id);
4228
4342
  }
4229
4343
  function useCreateRoomComment(roomId) {
4230
4344
  const client = useClient();
4231
4345
  return _react.useCallback.call(void 0,
4232
- ({ threadId, body, attachments }) => {
4346
+ (options) => {
4347
+ const { threadId, body } = options;
4348
+ const metadata = _nullishCoalesce(options.metadata, () => ( {}));
4349
+ const attachments = _nullishCoalesce(options.attachments, () => ( []));
4233
4350
  const commentId = _core.createCommentId.call(void 0, );
4234
4351
  const createdAt = /* @__PURE__ */ new Date();
4235
4352
  const comment = {
@@ -4241,7 +4358,8 @@ function useCreateRoomComment(roomId) {
4241
4358
  userId: getCurrentUserId(client),
4242
4359
  body,
4243
4360
  reactions: [],
4244
- attachments: _nullishCoalesce(attachments, () => ( []))
4361
+ attachments: _nullishCoalesce(attachments, () => ( [])),
4362
+ metadata
4245
4363
  };
4246
4364
  const { store, onMutationFailure } = getRoomExtrasForClient(client);
4247
4365
  const optimisticId = store.optimisticUpdates.add({
@@ -4249,7 +4367,14 @@ function useCreateRoomComment(roomId) {
4249
4367
  comment
4250
4368
  });
4251
4369
  const attachmentIds = _optionalChain([attachments, 'optionalAccess', _57 => _57.map, 'call', _58 => _58((attachment) => attachment.id)]);
4252
- client[_core.kInternal].httpClient.createComment({ roomId, threadId, commentId, body, attachmentIds }).then(
4370
+ client[_core.kInternal].httpClient.createComment({
4371
+ roomId,
4372
+ threadId,
4373
+ commentId,
4374
+ body,
4375
+ metadata,
4376
+ attachmentIds
4377
+ }).then(
4253
4378
  (newComment) => {
4254
4379
  store.createComment(newComment, optimisticId);
4255
4380
  },
@@ -4260,7 +4385,8 @@ function useCreateRoomComment(roomId) {
4260
4385
  roomId,
4261
4386
  threadId,
4262
4387
  commentId,
4263
- body
4388
+ body,
4389
+ metadata
4264
4390
  },
4265
4391
  err
4266
4392
  )
@@ -4276,7 +4402,13 @@ function useEditComment() {
4276
4402
  function useEditRoomComment(roomId) {
4277
4403
  const client = useClient();
4278
4404
  return _react.useCallback.call(void 0,
4279
- ({ threadId, commentId, body, attachments }) => {
4405
+ ({
4406
+ threadId,
4407
+ commentId,
4408
+ body,
4409
+ attachments,
4410
+ metadata
4411
+ }) => {
4280
4412
  const editedAt = /* @__PURE__ */ new Date();
4281
4413
  const { store, onMutationFailure } = getRoomExtrasForClient(client);
4282
4414
  const existing = store.outputs.threads.get().getEvenIfDeleted(threadId);
@@ -4295,23 +4427,42 @@ function useEditRoomComment(roomId) {
4295
4427
  );
4296
4428
  return;
4297
4429
  }
4430
+ const updatedMetadata = metadata !== void 0 ? {
4431
+ ...comment.metadata,
4432
+ ...metadata
4433
+ } : comment.metadata;
4298
4434
  const optimisticId = store.optimisticUpdates.add({
4299
4435
  type: "edit-comment",
4300
4436
  comment: {
4301
4437
  ...comment,
4302
4438
  editedAt,
4303
4439
  body,
4304
- attachments: _nullishCoalesce(attachments, () => ( []))
4440
+ attachments: _nullishCoalesce(attachments, () => ( [])),
4441
+ metadata: updatedMetadata
4305
4442
  }
4306
4443
  });
4307
4444
  const attachmentIds = _optionalChain([attachments, 'optionalAccess', _59 => _59.map, 'call', _60 => _60((attachment) => attachment.id)]);
4308
- client[_core.kInternal].httpClient.editComment({ roomId, threadId, commentId, body, attachmentIds }).then(
4445
+ client[_core.kInternal].httpClient.editComment({
4446
+ roomId,
4447
+ threadId,
4448
+ commentId,
4449
+ body,
4450
+ attachmentIds,
4451
+ metadata
4452
+ }).then(
4309
4453
  (editedComment) => {
4310
4454
  store.editComment(threadId, optimisticId, editedComment);
4311
4455
  },
4312
4456
  (err) => onMutationFailure(
4313
4457
  optimisticId,
4314
- { type: "EDIT_COMMENT_ERROR", roomId, threadId, commentId, body },
4458
+ {
4459
+ type: "EDIT_COMMENT_ERROR",
4460
+ roomId,
4461
+ threadId,
4462
+ commentId,
4463
+ body,
4464
+ metadata: updatedMetadata
4465
+ },
4315
4466
  err
4316
4467
  )
4317
4468
  );
@@ -4936,6 +5087,9 @@ var _useMutation = useMutation;
4936
5087
  var _useCreateThread = useCreateThread;
4937
5088
  var _useDeleteThread = useDeleteThread;
4938
5089
  var _useEditThreadMetadata = useEditThreadMetadata;
5090
+ var _useCreateComment = useCreateComment;
5091
+ var _useEditComment = useEditComment;
5092
+ var _useEditCommentMetadata = useEditCommentMetadata;
4939
5093
  var _useEventListener = useEventListener;
4940
5094
  var _useMyPresence = useMyPresence;
4941
5095
  var _useOthersMapped = useOthersMapped;
@@ -5088,5 +5242,6 @@ var _useUpdateMyPresence = useUpdateMyPresence;
5088
5242
 
5089
5243
 
5090
5244
 
5091
- exports.ClientContext = ClientContext; exports.useClientOrNull = useClientOrNull; exports.useClient = useClient; exports.RoomContext = RoomContext; exports.useLatest = useLatest; exports.RegisterAiKnowledge = RegisterAiKnowledge; exports.RegisterAiTool = RegisterAiTool; exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector; exports.useSignal = useSignal; exports.getUmbrellaStoreForClient = getUmbrellaStoreForClient; exports.useCreateAiChat = useCreateAiChat; exports.useDeleteAiChat = useDeleteAiChat; exports.useAiChatStatus = useAiChatStatus; exports.useSendAiMessage = useSendAiMessage; exports.LiveblocksProvider = LiveblocksProvider; exports.createLiveblocksContext = createLiveblocksContext; exports.useInboxNotifications = useInboxNotifications; exports.useInboxNotificationsSuspense = useInboxNotificationsSuspense; exports.useMarkAllInboxNotificationsAsRead = useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = useMarkInboxNotificationAsRead; exports.useDeleteAllInboxNotifications = useDeleteAllInboxNotifications; exports.useDeleteInboxNotification = useDeleteInboxNotification; exports.useUnreadInboxNotificationsCount = useUnreadInboxNotificationsCount; exports.useUnreadInboxNotificationsCountSuspense = useUnreadInboxNotificationsCountSuspense; exports.useNotificationSettings = useNotificationSettings; exports.useNotificationSettingsSuspense = useNotificationSettingsSuspense; exports.useUpdateNotificationSettings = useUpdateNotificationSettings; exports.useRoomInfo = useRoomInfo; exports.useRoomInfoSuspense = useRoomInfoSuspense; exports.useGroupInfo = useGroupInfo; exports.useGroupInfoSuspense = useGroupInfoSuspense; exports._useInboxNotificationThread = _useInboxNotificationThread; exports._useUser = _useUser; exports._useUserSuspense = _useUserSuspense; exports._useUserThreads_experimental = _useUserThreads_experimental; exports._useUserThreadsSuspense_experimental = _useUserThreadsSuspense_experimental; exports._useAiChats = _useAiChats; exports._useAiChatsSuspense = _useAiChatsSuspense; exports._useAiChat = _useAiChat; exports._useAiChatSuspense = _useAiChatSuspense; exports._useAiChatMessages = _useAiChatMessages; exports._useAiChatMessagesSuspense = _useAiChatMessagesSuspense; exports._useUrlMetadata = _useUrlMetadata; exports._useUrlMetadataSuspense = _useUrlMetadataSuspense; exports.useSyncStatus = useSyncStatus; exports.useErrorListener = useErrorListener; exports.useStatus = useStatus; exports.useReportTextEditor = useReportTextEditor; exports.useYjsProvider = useYjsProvider; exports.useCreateTextMention = useCreateTextMention; exports.useDeleteTextMention = useDeleteTextMention; exports.useResolveMentionSuggestions = useResolveMentionSuggestions; exports.useMentionSuggestionsCache = useMentionSuggestionsCache; exports.useLostConnectionListener = useLostConnectionListener; exports.useHistory = useHistory; exports.useUndo = useUndo; exports.useRedo = useRedo; exports.useCanUndo = useCanUndo; exports.useCanRedo = useCanRedo; exports.useOthersConnectionIds = useOthersConnectionIds; exports.useCreateRoomThread = useCreateRoomThread; exports.useDeleteRoomThread = useDeleteRoomThread; exports.useEditRoomThreadMetadata = useEditRoomThreadMetadata; exports.useCreateComment = useCreateComment; exports.useCreateRoomComment = useCreateRoomComment; exports.useEditComment = useEditComment; exports.useEditRoomComment = useEditRoomComment; exports.useDeleteComment = useDeleteComment; exports.useDeleteRoomComment = useDeleteRoomComment; exports.useAddRoomCommentReaction = useAddRoomCommentReaction; exports.useRemoveReaction = useRemoveReaction; exports.useRemoveRoomCommentReaction = useRemoveRoomCommentReaction; exports.useMarkThreadAsRead = useMarkThreadAsRead; exports.useMarkRoomThreadAsRead = useMarkRoomThreadAsRead; exports.useMarkThreadAsResolved = useMarkThreadAsResolved; exports.useMarkRoomThreadAsResolved = useMarkRoomThreadAsResolved; exports.useMarkThreadAsUnresolved = useMarkThreadAsUnresolved; exports.useMarkRoomThreadAsUnresolved = useMarkRoomThreadAsUnresolved; exports.useSubscribeToThread = useSubscribeToThread; exports.useUnsubscribeFromThread = useUnsubscribeFromThread; exports.useThreadSubscription = useThreadSubscription; exports.useRoomThreadSubscription = useRoomThreadSubscription; exports.useHistoryVersionData = useHistoryVersionData; exports.useUpdateRoomSubscriptionSettings = useUpdateRoomSubscriptionSettings; exports.useOthersConnectionIdsSuspense = useOthersConnectionIdsSuspense; exports.useAttachmentUrl = useAttachmentUrl; exports.useRoomAttachmentUrl = useRoomAttachmentUrl; exports.useAttachmentUrlSuspense = useAttachmentUrlSuspense; exports.useRoomPermissions = useRoomPermissions; exports.createRoomContext = createRoomContext; exports._RoomProvider = _RoomProvider; exports._useBroadcastEvent = _useBroadcastEvent; exports._useOthersListener = _useOthersListener; exports._useRoom = _useRoom; exports._useIsInsideRoom = _useIsInsideRoom; exports._useAddReaction = _useAddReaction; exports._useMutation = _useMutation; exports._useCreateThread = _useCreateThread; exports._useDeleteThread = _useDeleteThread; exports._useEditThreadMetadata = _useEditThreadMetadata; exports._useEventListener = _useEventListener; exports._useMyPresence = _useMyPresence; exports._useOthersMapped = _useOthersMapped; exports._useOthersMappedSuspense = _useOthersMappedSuspense; exports._useThreads = _useThreads; exports._useSearchComments = _useSearchComments; exports._useThreadsSuspense = _useThreadsSuspense; exports._useRoomSubscriptionSettings = _useRoomSubscriptionSettings; exports._useRoomSubscriptionSettingsSuspense = _useRoomSubscriptionSettingsSuspense; exports._useHistoryVersions = _useHistoryVersions; exports._useHistoryVersionsSuspense = _useHistoryVersionsSuspense; exports._useOther = _useOther; exports._useOthers = _useOthers; exports._useOtherSuspense = _useOtherSuspense; exports._useOthersSuspense = _useOthersSuspense; exports._useStorage = _useStorage; exports._useStorageSuspense = _useStorageSuspense; exports._useSelf = _useSelf; exports._useSelfSuspense = _useSelfSuspense; exports._useStorageRoot = _useStorageRoot; exports._useUpdateMyPresence = _useUpdateMyPresence;
5092
- //# sourceMappingURL=chunk-WH55MUS4.cjs.map
5245
+
5246
+ exports.ClientContext = ClientContext; exports.useClientOrNull = useClientOrNull; exports.useClient = useClient; exports.RoomContext = RoomContext; exports.useLatest = useLatest; exports.RegisterAiKnowledge = RegisterAiKnowledge; exports.RegisterAiTool = RegisterAiTool; exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector; exports.useSignal = useSignal; exports.getUmbrellaStoreForClient = getUmbrellaStoreForClient; exports.useCreateAiChat = useCreateAiChat; exports.useDeleteAiChat = useDeleteAiChat; exports.useAiChatStatus = useAiChatStatus; exports.useSendAiMessage = useSendAiMessage; exports.LiveblocksProvider = LiveblocksProvider; exports.createLiveblocksContext = createLiveblocksContext; exports.useInboxNotifications = useInboxNotifications; exports.useInboxNotificationsSuspense = useInboxNotificationsSuspense; exports.useMarkAllInboxNotificationsAsRead = useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = useMarkInboxNotificationAsRead; exports.useDeleteAllInboxNotifications = useDeleteAllInboxNotifications; exports.useDeleteInboxNotification = useDeleteInboxNotification; exports.useUnreadInboxNotificationsCount = useUnreadInboxNotificationsCount; exports.useUnreadInboxNotificationsCountSuspense = useUnreadInboxNotificationsCountSuspense; exports.useNotificationSettings = useNotificationSettings; exports.useNotificationSettingsSuspense = useNotificationSettingsSuspense; exports.useUpdateNotificationSettings = useUpdateNotificationSettings; exports.useRoomInfo = useRoomInfo; exports.useRoomInfoSuspense = useRoomInfoSuspense; exports.useGroupInfo = useGroupInfo; exports.useGroupInfoSuspense = useGroupInfoSuspense; exports._useInboxNotificationThread = _useInboxNotificationThread; exports._useUser = _useUser; exports._useUserSuspense = _useUserSuspense; exports._useUserThreads_experimental = _useUserThreads_experimental; exports._useUserThreadsSuspense_experimental = _useUserThreadsSuspense_experimental; exports._useAiChats = _useAiChats; exports._useAiChatsSuspense = _useAiChatsSuspense; exports._useAiChat = _useAiChat; exports._useAiChatSuspense = _useAiChatSuspense; exports._useAiChatMessages = _useAiChatMessages; exports._useAiChatMessagesSuspense = _useAiChatMessagesSuspense; exports._useUrlMetadata = _useUrlMetadata; exports._useUrlMetadataSuspense = _useUrlMetadataSuspense; exports.useSyncStatus = useSyncStatus; exports.useErrorListener = useErrorListener; exports.useStatus = useStatus; exports.useReportTextEditor = useReportTextEditor; exports.useYjsProvider = useYjsProvider; exports.useCreateTextMention = useCreateTextMention; exports.useDeleteTextMention = useDeleteTextMention; exports.useResolveMentionSuggestions = useResolveMentionSuggestions; exports.useMentionSuggestionsCache = useMentionSuggestionsCache; exports.useLostConnectionListener = useLostConnectionListener; exports.useHistory = useHistory; exports.useUndo = useUndo; exports.useRedo = useRedo; exports.useCanUndo = useCanUndo; exports.useCanRedo = useCanRedo; exports.useOthersConnectionIds = useOthersConnectionIds; exports.useCreateRoomThread = useCreateRoomThread; exports.useDeleteRoomThread = useDeleteRoomThread; exports.useEditRoomThreadMetadata = useEditRoomThreadMetadata; exports.useCreateRoomComment = useCreateRoomComment; exports.useEditRoomComment = useEditRoomComment; exports.useDeleteComment = useDeleteComment; exports.useDeleteRoomComment = useDeleteRoomComment; exports.useAddRoomCommentReaction = useAddRoomCommentReaction; exports.useRemoveReaction = useRemoveReaction; exports.useRemoveRoomCommentReaction = useRemoveRoomCommentReaction; exports.useMarkThreadAsRead = useMarkThreadAsRead; exports.useMarkRoomThreadAsRead = useMarkRoomThreadAsRead; exports.useMarkThreadAsResolved = useMarkThreadAsResolved; exports.useMarkRoomThreadAsResolved = useMarkRoomThreadAsResolved; exports.useMarkThreadAsUnresolved = useMarkThreadAsUnresolved; exports.useMarkRoomThreadAsUnresolved = useMarkRoomThreadAsUnresolved; exports.useSubscribeToThread = useSubscribeToThread; exports.useUnsubscribeFromThread = useUnsubscribeFromThread; exports.useThreadSubscription = useThreadSubscription; exports.useRoomThreadSubscription = useRoomThreadSubscription; exports.useHistoryVersionData = useHistoryVersionData; exports.useUpdateRoomSubscriptionSettings = useUpdateRoomSubscriptionSettings; exports.useOthersConnectionIdsSuspense = useOthersConnectionIdsSuspense; exports.useAttachmentUrl = useAttachmentUrl; exports.useRoomAttachmentUrl = useRoomAttachmentUrl; exports.useAttachmentUrlSuspense = useAttachmentUrlSuspense; exports.useRoomPermissions = useRoomPermissions; exports.createRoomContext = createRoomContext; exports._RoomProvider = _RoomProvider; exports._useBroadcastEvent = _useBroadcastEvent; exports._useOthersListener = _useOthersListener; exports._useRoom = _useRoom; exports._useIsInsideRoom = _useIsInsideRoom; exports._useAddReaction = _useAddReaction; exports._useMutation = _useMutation; exports._useCreateThread = _useCreateThread; exports._useDeleteThread = _useDeleteThread; exports._useEditThreadMetadata = _useEditThreadMetadata; exports._useCreateComment = _useCreateComment; exports._useEditComment = _useEditComment; exports._useEditCommentMetadata = _useEditCommentMetadata; exports._useEventListener = _useEventListener; exports._useMyPresence = _useMyPresence; exports._useOthersMapped = _useOthersMapped; exports._useOthersMappedSuspense = _useOthersMappedSuspense; exports._useThreads = _useThreads; exports._useSearchComments = _useSearchComments; exports._useThreadsSuspense = _useThreadsSuspense; exports._useRoomSubscriptionSettings = _useRoomSubscriptionSettings; exports._useRoomSubscriptionSettingsSuspense = _useRoomSubscriptionSettingsSuspense; exports._useHistoryVersions = _useHistoryVersions; exports._useHistoryVersionsSuspense = _useHistoryVersionsSuspense; exports._useOther = _useOther; exports._useOthers = _useOthers; exports._useOtherSuspense = _useOtherSuspense; exports._useOthersSuspense = _useOthersSuspense; exports._useStorage = _useStorage; exports._useStorageSuspense = _useStorageSuspense; exports._useSelf = _useSelf; exports._useSelfSuspense = _useSelfSuspense; exports._useStorageRoot = _useStorageRoot; exports._useUpdateMyPresence = _useUpdateMyPresence;
5247
+ //# sourceMappingURL=chunk-UTYX6TS4.cjs.map