@liveblocks/react
Advanced tools
Comparing version 1.10.0-beta1 to 1.10.0-beta2
@@ -5,3 +5,3 @@ import { ReactElement, ReactNode, PropsWithChildren } from 'react'; | ||
import * as _liveblocks_core from '@liveblocks/core'; | ||
import { BaseMetadata, GetThreadsOptions, Resolve, ToImmutable, kInternal, ThreadData, InboxNotificationData, RoomEventMessage, CommentData, RoomInfo, CommentBody, PartialNullable, RoomInitializers, BaseUserMeta as BaseUserMeta$1 } from '@liveblocks/core'; | ||
import { BaseMetadata, GetThreadsOptions, Resolve, ToImmutable, kInternal, ThreadData, InboxNotificationData, RoomEventMessage, CommentData, RoomInfo, CommentBody, PartialNullable, RoomInitializers, ResolveUsersArgs, OptionalPromise, ResolveMentionSuggestionsArgs, BaseUserMeta as BaseUserMeta$1 } from '@liveblocks/core'; | ||
@@ -1053,3 +1053,19 @@ declare type Props = { | ||
declare function useRoomContextBundle(): RoomContextBundle<JsonObject, LsonObject, BaseUserMeta, never, BaseMetadata>; | ||
declare function createRoomContext<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never, TThreadMetadata extends BaseMetadata = never>(client: Client): RoomContextBundle<TPresence, TStorage, TUserMeta, TRoomEvent, TThreadMetadata>; | ||
declare type Options<TUserMeta extends BaseUserMeta> = { | ||
/** | ||
* @deprecated Define 'resolveUsers' in 'createClient' from '@liveblocks/client' instead. | ||
* Please refer to our Upgrade Guide to learn more, see https://liveblocks.io/docs/platform/upgrading/1.10. | ||
* | ||
* A function that returns user info from user IDs. | ||
*/ | ||
resolveUsers?: (args: ResolveUsersArgs) => OptionalPromise<(TUserMeta["info"] | undefined)[] | undefined>; | ||
/** | ||
* @deprecated Define 'resolveMentionSuggestions' in 'createClient' from '@liveblocks/client' instead. | ||
* Please refer to our Upgrade Guide to learn more, see https://liveblocks.io/docs/platform/upgrading/1.10. | ||
* | ||
* A function that returns a list of user IDs matching a string. | ||
*/ | ||
resolveMentionSuggestions?: (args: ResolveMentionSuggestionsArgs) => OptionalPromise<string[]>; | ||
}; | ||
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>; | ||
@@ -1056,0 +1072,0 @@ /** |
{ | ||
"name": "@liveblocks/react", | ||
"version": "1.10.0-beta1", | ||
"version": "1.10.0-beta2", | ||
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -37,4 +37,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/client": "1.10.0-beta1", | ||
"@liveblocks/core": "1.10.0-beta1", | ||
"@liveblocks/client": "1.10.0-beta2", | ||
"@liveblocks/core": "1.10.0-beta2", | ||
"nanoid": "^3", | ||
@@ -41,0 +41,0 @@ "use-sync-external-store": "^1.2.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
478714
5297
+ Added@liveblocks/client@1.10.0-beta2(transitive)
+ Added@liveblocks/core@1.10.0-beta2(transitive)
- Removed@liveblocks/client@1.10.0-beta1(transitive)
- Removed@liveblocks/core@1.10.0-beta1(transitive)