@liveblocks/react 1.10.0-beta3 → 1.10.0-beta4
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +253 -240
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +250 -237
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactElement, ReactNode, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client } from '@liveblocks/client';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { BaseMetadata, Resolve, ToImmutable, kInternal, ThreadData, InboxNotificationData, RoomEventMessage, CommentData, RoomInfo, CommentBody, PartialNullable, RoomInitializers, ResolveUsersArgs, OptionalPromise, ResolveMentionSuggestionsArgs, BaseUserMeta as BaseUserMeta$1 } from '@liveblocks/core';
|
|
5
|
+
import { BaseMetadata, Resolve, ToImmutable, kInternal, ThreadData, InboxNotificationData, LiveblocksError, RoomEventMessage, CommentData, RoomInfo, CommentBody, PartialNullable, RoomInitializers, ResolveUsersArgs, OptionalPromise, ResolveMentionSuggestionsArgs, BaseUserMeta as BaseUserMeta$1 } from '@liveblocks/core';
|
|
6
6
|
|
|
7
7
|
declare type Props = {
|
|
8
8
|
fallback: NonNullable<ReactNode> | null;
|
|
@@ -349,7 +349,7 @@ declare type RoomContextBundleCommon<TPresence extends JsonObject, TStorage exte
|
|
|
349
349
|
* console.error(er);
|
|
350
350
|
* })
|
|
351
351
|
*/
|
|
352
|
-
useErrorListener(callback: (err:
|
|
352
|
+
useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
353
353
|
/**
|
|
354
354
|
* useEventListener is a React hook that allows you to respond to events broadcast
|
|
355
355
|
* by other users in the room.
|
|
@@ -940,7 +940,7 @@ declare type LiveblocksContextBundleCommon = {
|
|
|
940
940
|
/**
|
|
941
941
|
* @beta
|
|
942
942
|
*
|
|
943
|
-
* Makes Liveblocks
|
|
943
|
+
* Makes Liveblocks features outside of rooms (e.g. Notifications) available
|
|
944
944
|
* in the component hierarchy below.
|
|
945
945
|
*/
|
|
946
946
|
LiveblocksProvider(props: PropsWithChildren): JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactElement, ReactNode, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client } from '@liveblocks/client';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { BaseMetadata, Resolve, ToImmutable, kInternal, ThreadData, InboxNotificationData, RoomEventMessage, CommentData, RoomInfo, CommentBody, PartialNullable, RoomInitializers, ResolveUsersArgs, OptionalPromise, ResolveMentionSuggestionsArgs, BaseUserMeta as BaseUserMeta$1 } from '@liveblocks/core';
|
|
5
|
+
import { BaseMetadata, Resolve, ToImmutable, kInternal, ThreadData, InboxNotificationData, LiveblocksError, RoomEventMessage, CommentData, RoomInfo, CommentBody, PartialNullable, RoomInitializers, ResolveUsersArgs, OptionalPromise, ResolveMentionSuggestionsArgs, BaseUserMeta as BaseUserMeta$1 } from '@liveblocks/core';
|
|
6
6
|
|
|
7
7
|
declare type Props = {
|
|
8
8
|
fallback: NonNullable<ReactNode> | null;
|
|
@@ -349,7 +349,7 @@ declare type RoomContextBundleCommon<TPresence extends JsonObject, TStorage exte
|
|
|
349
349
|
* console.error(er);
|
|
350
350
|
* })
|
|
351
351
|
*/
|
|
352
|
-
useErrorListener(callback: (err:
|
|
352
|
+
useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
353
353
|
/**
|
|
354
354
|
* useEventListener is a React hook that allows you to respond to events broadcast
|
|
355
355
|
* by other users in the room.
|
|
@@ -940,7 +940,7 @@ declare type LiveblocksContextBundleCommon = {
|
|
|
940
940
|
/**
|
|
941
941
|
* @beta
|
|
942
942
|
*
|
|
943
|
-
* Makes Liveblocks
|
|
943
|
+
* Makes Liveblocks features outside of rooms (e.g. Notifications) available
|
|
944
944
|
* in the component hierarchy below.
|
|
945
945
|
*/
|
|
946
946
|
LiveblocksProvider(props: PropsWithChildren): JSX.Element;
|