@liveblocks/react 1.8.2 → 1.8.3-oss1

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.d.mts CHANGED
@@ -1506,4 +1506,4 @@ declare function useRoomContextBundle(): {
1506
1506
  };
1507
1507
  declare function createRoomContext<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never, TThreadMetadata extends BaseMetadata = never>(client: Client, options?: Options<TUserMeta>): RoomContextBundle<TPresence, TStorage, TUserMeta, TRoomEvent, TThreadMetadata>;
1508
1508
 
1509
- export { ClientSideSuspense, MutationContext, ResolveMentionSuggestionsArgs, ResolveUsersArgs, createRoomContext, useRoomContextBundle };
1509
+ export { ClientSideSuspense, type MutationContext, type ResolveMentionSuggestionsArgs, type ResolveUsersArgs, createRoomContext, useRoomContextBundle };
package/dist/index.d.ts CHANGED
@@ -1506,4 +1506,4 @@ declare function useRoomContextBundle(): {
1506
1506
  };
1507
1507
  declare function createRoomContext<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never, TThreadMetadata extends BaseMetadata = never>(client: Client, options?: Options<TUserMeta>): RoomContextBundle<TPresence, TStorage, TUserMeta, TRoomEvent, TThreadMetadata>;
1508
1508
 
1509
- export { ClientSideSuspense, MutationContext, ResolveMentionSuggestionsArgs, ResolveUsersArgs, createRoomContext, useRoomContextBundle };
1509
+ export { ClientSideSuspense, type MutationContext, type ResolveMentionSuggestionsArgs, type ResolveUsersArgs, createRoomContext, useRoomContextBundle };
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var _core = require('@liveblocks/core');
5
5
 
6
6
  // src/version.ts
7
7
  var PKG_NAME = "@liveblocks/react";
8
- var PKG_VERSION = "1.8.2";
8
+ var PKG_VERSION = "1.8.3-oss1";
9
9
  var PKG_FORMAT = "cjs";
10
10
 
11
11
  // src/ClientSideSuspense.tsx
@@ -489,7 +489,7 @@ function createCommentsRoom(room, errorEventSource) {
489
489
  const threads = getThreads();
490
490
  const threadId = createOptimisticId(THREAD_ID_PREFIX);
491
491
  const commentId = createOptimisticId(COMMENT_ID_PREFIX);
492
- const now = (/* @__PURE__ */ new Date()).toISOString();
492
+ const now = /* @__PURE__ */ new Date();
493
493
  const newComment = {
494
494
  id: commentId,
495
495
  threadId,
@@ -538,7 +538,7 @@ function createCommentsRoom(room, errorEventSource) {
538
538
  ({ threadId, body }) => {
539
539
  const threads = getThreads();
540
540
  const commentId = createOptimisticId(COMMENT_ID_PREFIX);
541
- const now = (/* @__PURE__ */ new Date()).toISOString();
541
+ const now = /* @__PURE__ */ new Date();
542
542
  const comment = {
543
543
  id: commentId,
544
544
  threadId,
@@ -583,7 +583,7 @@ function createCommentsRoom(room, errorEventSource) {
583
583
  const editComment = _react.useCallback.call(void 0,
584
584
  ({ threadId, commentId, body }) => {
585
585
  const threads = getThreads();
586
- const now = (/* @__PURE__ */ new Date()).toISOString();
586
+ const now = /* @__PURE__ */ new Date();
587
587
  const optimisticData = threads.map(
588
588
  (thread) => thread.id === threadId ? {
589
589
  ...thread,
@@ -623,7 +623,7 @@ function createCommentsRoom(room, errorEventSource) {
623
623
  const deleteComment = _react.useCallback.call(void 0,
624
624
  ({ threadId, commentId }) => {
625
625
  const threads = getThreads();
626
- const now = (/* @__PURE__ */ new Date()).toISOString();
626
+ const now = /* @__PURE__ */ new Date();
627
627
  const newThreads = [];
628
628
  for (const thread of threads) {
629
629
  if (thread.id === threadId) {
@@ -672,7 +672,7 @@ function createCommentsRoom(room, errorEventSource) {
672
672
  const createComment = _react.useCallback.call(void 0,
673
673
  ({ threadId, commentId, emoji }) => {
674
674
  const threads = getThreads();
675
- const now = (/* @__PURE__ */ new Date()).toISOString();
675
+ const now = /* @__PURE__ */ new Date();
676
676
  const userId = getCurrentUserId();
677
677
  const optimisticData = threads.map(
678
678
  (thread) => thread.id === threadId ? {