@liveblocks/core 1.8.2 → 1.9.0-example1
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 +56 -12
- package/dist/index.d.ts +56 -12
- package/dist/index.js +2454 -2399
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2353 -2298
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -686,13 +686,16 @@ declare type CommentBody = {
|
|
|
686
686
|
content: CommentBodyBlockElement[];
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
declare type
|
|
690
|
-
|
|
689
|
+
declare type DateToString<T> = {
|
|
690
|
+
[P in keyof T]: T[P] extends Date ? string : T[P];
|
|
691
691
|
};
|
|
692
|
+
|
|
692
693
|
declare type CommentReaction = {
|
|
693
694
|
emoji: string;
|
|
694
|
-
createdAt:
|
|
695
|
-
users:
|
|
695
|
+
createdAt: Date;
|
|
696
|
+
users: {
|
|
697
|
+
id: string;
|
|
698
|
+
}[];
|
|
696
699
|
};
|
|
697
700
|
/**
|
|
698
701
|
* Represents a comment.
|
|
@@ -703,17 +706,33 @@ declare type CommentData = {
|
|
|
703
706
|
threadId: string;
|
|
704
707
|
roomId: string;
|
|
705
708
|
userId: string;
|
|
706
|
-
createdAt:
|
|
707
|
-
editedAt?:
|
|
709
|
+
createdAt: Date;
|
|
710
|
+
editedAt?: Date;
|
|
708
711
|
reactions: CommentReaction[];
|
|
709
712
|
} & ({
|
|
710
713
|
body: CommentBody;
|
|
711
714
|
deletedAt?: never;
|
|
715
|
+
} | {
|
|
716
|
+
body?: never;
|
|
717
|
+
deletedAt: Date;
|
|
718
|
+
});
|
|
719
|
+
declare type CommentDataPlain = Omit<DateToString<CommentData>, "reaction" | "body"> & {
|
|
720
|
+
reactions: DateToString<CommentReaction[]>;
|
|
721
|
+
} & ({
|
|
722
|
+
body: CommentBody;
|
|
723
|
+
deletedAt?: never;
|
|
712
724
|
} | {
|
|
713
725
|
body?: never;
|
|
714
726
|
deletedAt: string;
|
|
715
727
|
});
|
|
716
728
|
|
|
729
|
+
declare type CommentUserReaction = {
|
|
730
|
+
emoji: string;
|
|
731
|
+
createdAt: Date;
|
|
732
|
+
userId: string;
|
|
733
|
+
};
|
|
734
|
+
declare type CommentUserReactionPlain = DateToString<CommentUserReaction>;
|
|
735
|
+
|
|
717
736
|
/**
|
|
718
737
|
* Represents a thread of comments.
|
|
719
738
|
*/
|
|
@@ -721,11 +740,15 @@ declare type ThreadData<TThreadMetadata extends BaseMetadata = never> = {
|
|
|
721
740
|
type: "thread";
|
|
722
741
|
id: string;
|
|
723
742
|
roomId: string;
|
|
724
|
-
createdAt:
|
|
725
|
-
updatedAt?:
|
|
743
|
+
createdAt: Date;
|
|
744
|
+
updatedAt?: Date;
|
|
726
745
|
comments: CommentData[];
|
|
727
746
|
metadata: [TThreadMetadata] extends [never] ? Record<string, never> : TThreadMetadata;
|
|
728
747
|
};
|
|
748
|
+
declare type ThreadDataPlain<TThreadMetadata extends BaseMetadata = never> = Omit<DateToString<ThreadData<TThreadMetadata>>, "comments" | "metadata"> & {
|
|
749
|
+
comments: CommentDataPlain[];
|
|
750
|
+
metadata: [TThreadMetadata] extends [never] ? Record<string, never> : TThreadMetadata;
|
|
751
|
+
};
|
|
729
752
|
|
|
730
753
|
declare type Options = {
|
|
731
754
|
baseUrl: string;
|
|
@@ -744,7 +767,7 @@ declare type CommentsApi<TThreadMetadata extends BaseMetadata> = {
|
|
|
744
767
|
editThreadMetadata(options: {
|
|
745
768
|
metadata: PartialNullable<TThreadMetadata>;
|
|
746
769
|
threadId: string;
|
|
747
|
-
}): Promise<
|
|
770
|
+
}): Promise<TThreadMetadata>;
|
|
748
771
|
createComment(options: {
|
|
749
772
|
threadId: string;
|
|
750
773
|
commentId: string;
|
|
@@ -763,12 +786,12 @@ declare type CommentsApi<TThreadMetadata extends BaseMetadata> = {
|
|
|
763
786
|
threadId: string;
|
|
764
787
|
commentId: string;
|
|
765
788
|
emoji: string;
|
|
766
|
-
}): Promise<
|
|
789
|
+
}): Promise<CommentUserReaction>;
|
|
767
790
|
removeReaction(options: {
|
|
768
791
|
threadId: string;
|
|
769
792
|
commentId: string;
|
|
770
793
|
emoji: string;
|
|
771
|
-
}): Promise<
|
|
794
|
+
}): Promise<void>;
|
|
772
795
|
};
|
|
773
796
|
declare class CommentsApiError extends Error {
|
|
774
797
|
message: string;
|
|
@@ -2524,6 +2547,27 @@ declare function getMentionedIdsFromCommentBody(body: CommentBody): string[];
|
|
|
2524
2547
|
* Markdown, HTML, or a custom format.
|
|
2525
2548
|
*/
|
|
2526
2549
|
declare function stringifyCommentBody<TUserMeta extends BaseUserMeta = BaseUserMeta>(body: CommentBody, options?: StringifyCommentBodyOptions<TUserMeta>): Promise<string>;
|
|
2550
|
+
/**
|
|
2551
|
+
* Converts a plain comment data object (usually returned by the API) to a comment data object that can be used by the client.
|
|
2552
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2553
|
+
* @param data The plain comment data object (usually returned by the API)
|
|
2554
|
+
* @returns The rich comment data object that can be used by the client.
|
|
2555
|
+
*/
|
|
2556
|
+
declare function convertToCommentData(data: CommentDataPlain): CommentData;
|
|
2557
|
+
/**
|
|
2558
|
+
* Converts a plain thread data object (usually returned by the API) to a thread data object that can be used by the client.
|
|
2559
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2560
|
+
* @param data The plain thread data object (usually returned by the API)
|
|
2561
|
+
* @returns The rich hread data object that can be used by the client.
|
|
2562
|
+
*/
|
|
2563
|
+
declare function convertToThreadData<TThreadMetadata extends BaseMetadata = never>(data: ThreadDataPlain<TThreadMetadata>): ThreadData<TThreadMetadata>;
|
|
2564
|
+
/**
|
|
2565
|
+
* Converts a plain comment reaction object (usually returned by the API) to a comment reaction object that can be used by the client.
|
|
2566
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2567
|
+
* @param data The plain comment reaction object (usually returned by the API)
|
|
2568
|
+
* @returns The rich comment reaction object that can be used by the client.
|
|
2569
|
+
*/
|
|
2570
|
+
declare function convertToCommentUserReaction(data: CommentUserReactionPlain): CommentUserReaction;
|
|
2527
2571
|
|
|
2528
2572
|
/**
|
|
2529
2573
|
* Helper type to help users adopt to Lson types from interface definitions.
|
|
@@ -2537,4 +2581,4 @@ declare type EnsureJson<T> = [
|
|
|
2537
2581
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2538
2582
|
};
|
|
2539
2583
|
|
|
2540
|
-
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyResolveUsersArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentReaction, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IUserInfo, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
|
2584
|
+
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyResolveUsersArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentDataPlain, CommentReaction, CommentUserReaction, CommentUserReactionPlain, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IUserInfo, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, ThreadDataPlain, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToThreadData, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -686,13 +686,16 @@ declare type CommentBody = {
|
|
|
686
686
|
content: CommentBodyBlockElement[];
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
declare type
|
|
690
|
-
|
|
689
|
+
declare type DateToString<T> = {
|
|
690
|
+
[P in keyof T]: T[P] extends Date ? string : T[P];
|
|
691
691
|
};
|
|
692
|
+
|
|
692
693
|
declare type CommentReaction = {
|
|
693
694
|
emoji: string;
|
|
694
|
-
createdAt:
|
|
695
|
-
users:
|
|
695
|
+
createdAt: Date;
|
|
696
|
+
users: {
|
|
697
|
+
id: string;
|
|
698
|
+
}[];
|
|
696
699
|
};
|
|
697
700
|
/**
|
|
698
701
|
* Represents a comment.
|
|
@@ -703,17 +706,33 @@ declare type CommentData = {
|
|
|
703
706
|
threadId: string;
|
|
704
707
|
roomId: string;
|
|
705
708
|
userId: string;
|
|
706
|
-
createdAt:
|
|
707
|
-
editedAt?:
|
|
709
|
+
createdAt: Date;
|
|
710
|
+
editedAt?: Date;
|
|
708
711
|
reactions: CommentReaction[];
|
|
709
712
|
} & ({
|
|
710
713
|
body: CommentBody;
|
|
711
714
|
deletedAt?: never;
|
|
715
|
+
} | {
|
|
716
|
+
body?: never;
|
|
717
|
+
deletedAt: Date;
|
|
718
|
+
});
|
|
719
|
+
declare type CommentDataPlain = Omit<DateToString<CommentData>, "reaction" | "body"> & {
|
|
720
|
+
reactions: DateToString<CommentReaction[]>;
|
|
721
|
+
} & ({
|
|
722
|
+
body: CommentBody;
|
|
723
|
+
deletedAt?: never;
|
|
712
724
|
} | {
|
|
713
725
|
body?: never;
|
|
714
726
|
deletedAt: string;
|
|
715
727
|
});
|
|
716
728
|
|
|
729
|
+
declare type CommentUserReaction = {
|
|
730
|
+
emoji: string;
|
|
731
|
+
createdAt: Date;
|
|
732
|
+
userId: string;
|
|
733
|
+
};
|
|
734
|
+
declare type CommentUserReactionPlain = DateToString<CommentUserReaction>;
|
|
735
|
+
|
|
717
736
|
/**
|
|
718
737
|
* Represents a thread of comments.
|
|
719
738
|
*/
|
|
@@ -721,11 +740,15 @@ declare type ThreadData<TThreadMetadata extends BaseMetadata = never> = {
|
|
|
721
740
|
type: "thread";
|
|
722
741
|
id: string;
|
|
723
742
|
roomId: string;
|
|
724
|
-
createdAt:
|
|
725
|
-
updatedAt?:
|
|
743
|
+
createdAt: Date;
|
|
744
|
+
updatedAt?: Date;
|
|
726
745
|
comments: CommentData[];
|
|
727
746
|
metadata: [TThreadMetadata] extends [never] ? Record<string, never> : TThreadMetadata;
|
|
728
747
|
};
|
|
748
|
+
declare type ThreadDataPlain<TThreadMetadata extends BaseMetadata = never> = Omit<DateToString<ThreadData<TThreadMetadata>>, "comments" | "metadata"> & {
|
|
749
|
+
comments: CommentDataPlain[];
|
|
750
|
+
metadata: [TThreadMetadata] extends [never] ? Record<string, never> : TThreadMetadata;
|
|
751
|
+
};
|
|
729
752
|
|
|
730
753
|
declare type Options = {
|
|
731
754
|
baseUrl: string;
|
|
@@ -744,7 +767,7 @@ declare type CommentsApi<TThreadMetadata extends BaseMetadata> = {
|
|
|
744
767
|
editThreadMetadata(options: {
|
|
745
768
|
metadata: PartialNullable<TThreadMetadata>;
|
|
746
769
|
threadId: string;
|
|
747
|
-
}): Promise<
|
|
770
|
+
}): Promise<TThreadMetadata>;
|
|
748
771
|
createComment(options: {
|
|
749
772
|
threadId: string;
|
|
750
773
|
commentId: string;
|
|
@@ -763,12 +786,12 @@ declare type CommentsApi<TThreadMetadata extends BaseMetadata> = {
|
|
|
763
786
|
threadId: string;
|
|
764
787
|
commentId: string;
|
|
765
788
|
emoji: string;
|
|
766
|
-
}): Promise<
|
|
789
|
+
}): Promise<CommentUserReaction>;
|
|
767
790
|
removeReaction(options: {
|
|
768
791
|
threadId: string;
|
|
769
792
|
commentId: string;
|
|
770
793
|
emoji: string;
|
|
771
|
-
}): Promise<
|
|
794
|
+
}): Promise<void>;
|
|
772
795
|
};
|
|
773
796
|
declare class CommentsApiError extends Error {
|
|
774
797
|
message: string;
|
|
@@ -2524,6 +2547,27 @@ declare function getMentionedIdsFromCommentBody(body: CommentBody): string[];
|
|
|
2524
2547
|
* Markdown, HTML, or a custom format.
|
|
2525
2548
|
*/
|
|
2526
2549
|
declare function stringifyCommentBody<TUserMeta extends BaseUserMeta = BaseUserMeta>(body: CommentBody, options?: StringifyCommentBodyOptions<TUserMeta>): Promise<string>;
|
|
2550
|
+
/**
|
|
2551
|
+
* Converts a plain comment data object (usually returned by the API) to a comment data object that can be used by the client.
|
|
2552
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2553
|
+
* @param data The plain comment data object (usually returned by the API)
|
|
2554
|
+
* @returns The rich comment data object that can be used by the client.
|
|
2555
|
+
*/
|
|
2556
|
+
declare function convertToCommentData(data: CommentDataPlain): CommentData;
|
|
2557
|
+
/**
|
|
2558
|
+
* Converts a plain thread data object (usually returned by the API) to a thread data object that can be used by the client.
|
|
2559
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2560
|
+
* @param data The plain thread data object (usually returned by the API)
|
|
2561
|
+
* @returns The rich hread data object that can be used by the client.
|
|
2562
|
+
*/
|
|
2563
|
+
declare function convertToThreadData<TThreadMetadata extends BaseMetadata = never>(data: ThreadDataPlain<TThreadMetadata>): ThreadData<TThreadMetadata>;
|
|
2564
|
+
/**
|
|
2565
|
+
* Converts a plain comment reaction object (usually returned by the API) to a comment reaction object that can be used by the client.
|
|
2566
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2567
|
+
* @param data The plain comment reaction object (usually returned by the API)
|
|
2568
|
+
* @returns The rich comment reaction object that can be used by the client.
|
|
2569
|
+
*/
|
|
2570
|
+
declare function convertToCommentUserReaction(data: CommentUserReactionPlain): CommentUserReaction;
|
|
2527
2571
|
|
|
2528
2572
|
/**
|
|
2529
2573
|
* Helper type to help users adopt to Lson types from interface definitions.
|
|
@@ -2537,4 +2581,4 @@ declare type EnsureJson<T> = [
|
|
|
2537
2581
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2538
2582
|
};
|
|
2539
2583
|
|
|
2540
|
-
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyResolveUsersArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentReaction, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IUserInfo, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
|
2584
|
+
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyResolveUsersArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentDataPlain, CommentReaction, CommentUserReaction, CommentUserReactionPlain, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IUserInfo, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, ThreadDataPlain, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToThreadData, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|