@liveblocks/core 1.9.0-example1 → 1.9.1
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 +30 -24
- package/dist/index.d.ts +30 -24
- package/dist/index.js +70 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -96,6 +96,25 @@ declare type AckOp = {
|
|
|
96
96
|
readonly id: "ACK";
|
|
97
97
|
readonly opId: string;
|
|
98
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Create an Op that can be used as an acknowledgement for the given opId, to
|
|
101
|
+
* send back to the originating client in cases where the server decided to
|
|
102
|
+
* ignore the Op and not forward it.
|
|
103
|
+
*
|
|
104
|
+
* Why?
|
|
105
|
+
* It's important for the client to receive an acknowledgement for this, so
|
|
106
|
+
* that it can correctly update its own unacknowledged Ops administration.
|
|
107
|
+
* Otherwise it could get in "synchronizing" state indefinitely.
|
|
108
|
+
*
|
|
109
|
+
* CLEVER HACK
|
|
110
|
+
* Introducing a new Op type for this would not be backward-compatible as
|
|
111
|
+
* receiving such Op would crash old clients :(
|
|
112
|
+
* So the clever backward-compatible hack pulled here is that we codify the
|
|
113
|
+
* acknowledgement as a "deletion Op" for the non-existing node id "ACK". In
|
|
114
|
+
* old clients such Op is accepted, but will effectively be a no-op as that
|
|
115
|
+
* node does not exist, but as a side-effect the Op will get acknowledged.
|
|
116
|
+
*/
|
|
117
|
+
declare function ackOp(opId: string): AckOp;
|
|
99
118
|
declare type SetParentKeyOp = {
|
|
100
119
|
readonly opId?: string;
|
|
101
120
|
readonly id: string;
|
|
@@ -756,8 +775,13 @@ declare type Options = {
|
|
|
756
775
|
declare type PartialNullable<T> = {
|
|
757
776
|
[P in keyof T]?: T[P] | null | undefined;
|
|
758
777
|
};
|
|
778
|
+
declare type ThreadsFilterOptions<TThreadMetadata extends BaseMetadata> = {
|
|
779
|
+
query?: {
|
|
780
|
+
metadata?: Partial<TThreadMetadata>;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
759
783
|
declare type CommentsApi<TThreadMetadata extends BaseMetadata> = {
|
|
760
|
-
getThreads(): Promise<ThreadData<TThreadMetadata>[]>;
|
|
784
|
+
getThreads(options?: ThreadsFilterOptions<TThreadMetadata>): Promise<ThreadData<TThreadMetadata>[]>;
|
|
761
785
|
createThread(options: {
|
|
762
786
|
threadId: string;
|
|
763
787
|
commentId: string;
|
|
@@ -1718,8 +1742,7 @@ declare type Room<TPresence extends JsonObject, TStorage extends LsonObject, TUs
|
|
|
1718
1742
|
addToHistory: boolean;
|
|
1719
1743
|
}): void;
|
|
1720
1744
|
/**
|
|
1721
|
-
*
|
|
1722
|
-
* Sends Yjs document updates to liveblocks server
|
|
1745
|
+
* Sends Yjs document updates to Liveblocks server.
|
|
1723
1746
|
*
|
|
1724
1747
|
* @param {string} data the doc update to send to the server, base64 encoded uint8array
|
|
1725
1748
|
*/
|
|
@@ -2153,12 +2176,7 @@ declare const fancyConsole_errorWithTitle: typeof errorWithTitle;
|
|
|
2153
2176
|
declare const fancyConsole_warn: typeof warn;
|
|
2154
2177
|
declare const fancyConsole_warnWithTitle: typeof warnWithTitle;
|
|
2155
2178
|
declare namespace fancyConsole {
|
|
2156
|
-
export {
|
|
2157
|
-
fancyConsole_error as error,
|
|
2158
|
-
fancyConsole_errorWithTitle as errorWithTitle,
|
|
2159
|
-
fancyConsole_warn as warn,
|
|
2160
|
-
fancyConsole_warnWithTitle as warnWithTitle,
|
|
2161
|
-
};
|
|
2179
|
+
export { fancyConsole_error as error, fancyConsole_errorWithTitle as errorWithTitle, fancyConsole_warn as warn, fancyConsole_warnWithTitle as warnWithTitle };
|
|
2162
2180
|
}
|
|
2163
2181
|
|
|
2164
2182
|
/**
|
|
@@ -2323,14 +2341,7 @@ type DevToolsTreeNode_LsonTreeNode = LsonTreeNode;
|
|
|
2323
2341
|
type DevToolsTreeNode_TreeNode = TreeNode;
|
|
2324
2342
|
type DevToolsTreeNode_UserTreeNode = UserTreeNode;
|
|
2325
2343
|
declare namespace DevToolsTreeNode {
|
|
2326
|
-
export {
|
|
2327
|
-
DevToolsTreeNode_CustomEventTreeNode as CustomEventTreeNode,
|
|
2328
|
-
DevToolsTreeNode_JsonTreeNode as JsonTreeNode,
|
|
2329
|
-
DevToolsTreeNode_LiveTreeNode as LiveTreeNode,
|
|
2330
|
-
DevToolsTreeNode_LsonTreeNode as LsonTreeNode,
|
|
2331
|
-
DevToolsTreeNode_TreeNode as TreeNode,
|
|
2332
|
-
DevToolsTreeNode_UserTreeNode as UserTreeNode,
|
|
2333
|
-
};
|
|
2344
|
+
export type { DevToolsTreeNode_CustomEventTreeNode as CustomEventTreeNode, DevToolsTreeNode_JsonTreeNode as JsonTreeNode, DevToolsTreeNode_LiveTreeNode as LiveTreeNode, DevToolsTreeNode_LsonTreeNode as LsonTreeNode, DevToolsTreeNode_TreeNode as TreeNode, DevToolsTreeNode_UserTreeNode as UserTreeNode };
|
|
2334
2345
|
}
|
|
2335
2346
|
|
|
2336
2347
|
/**
|
|
@@ -2450,12 +2461,7 @@ type protocol_FullClientToPanelMessage = FullClientToPanelMessage;
|
|
|
2450
2461
|
type protocol_FullPanelToClientMessage = FullPanelToClientMessage;
|
|
2451
2462
|
type protocol_PanelToClientMessage = PanelToClientMessage;
|
|
2452
2463
|
declare namespace protocol {
|
|
2453
|
-
export {
|
|
2454
|
-
protocol_ClientToPanelMessage as ClientToPanelMessage,
|
|
2455
|
-
protocol_FullClientToPanelMessage as FullClientToPanelMessage,
|
|
2456
|
-
protocol_FullPanelToClientMessage as FullPanelToClientMessage,
|
|
2457
|
-
protocol_PanelToClientMessage as PanelToClientMessage,
|
|
2458
|
-
};
|
|
2464
|
+
export type { protocol_ClientToPanelMessage as ClientToPanelMessage, protocol_FullClientToPanelMessage as FullClientToPanelMessage, protocol_FullPanelToClientMessage as FullPanelToClientMessage, protocol_PanelToClientMessage as PanelToClientMessage };
|
|
2459
2465
|
}
|
|
2460
2466
|
|
|
2461
2467
|
declare type PromiseOrNot<T> = T | Promise<T>;
|
|
@@ -2581,4 +2587,4 @@ declare type EnsureJson<T> = [
|
|
|
2581
2587
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2582
2588
|
};
|
|
2583
2589
|
|
|
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 };
|
|
2590
|
+
export { type AckOp, type AsyncCache, type AsyncState, type AsyncStateError, type AsyncStateInitial, type AsyncStateLoading, type AsyncStateResolved, type AsyncStateSuccess, type BaseAuthResult, type BaseMetadata, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type CommentBody, type CommentBodyBlockElement, type CommentBodyElement, type CommentBodyInlineElement, type CommentBodyLink, type CommentBodyLinkElementArgs, type CommentBodyMention, type CommentBodyMentionElementArgs, type CommentBodyParagraph, type CommentBodyParagraphElementArgs, type CommentBodyResolveUsersArgs, type CommentBodyText, type CommentBodyTextElementArgs, type CommentData, type CommentDataPlain, type CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, type CommentsApi, CommentsApiError, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type History, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IdTuple, type Immutable, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type LegacyConnectionStatus, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, type LostConnectionEvent, type Lson, type LsonObject, type NodeMap, type Op, OpCode, type Others, type OthersEvent, type ParentToChildNodeMap, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type RejectedStorageOpServerMsg, type Resolve, type Room, type RoomEventMessage, type RoomInitializers, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type ThreadData, type ThreadDataPlain, type ThreadsFilterOptions, type ToImmutable, type ToJson, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, ackOp, 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
|
@@ -96,6 +96,25 @@ declare type AckOp = {
|
|
|
96
96
|
readonly id: "ACK";
|
|
97
97
|
readonly opId: string;
|
|
98
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Create an Op that can be used as an acknowledgement for the given opId, to
|
|
101
|
+
* send back to the originating client in cases where the server decided to
|
|
102
|
+
* ignore the Op and not forward it.
|
|
103
|
+
*
|
|
104
|
+
* Why?
|
|
105
|
+
* It's important for the client to receive an acknowledgement for this, so
|
|
106
|
+
* that it can correctly update its own unacknowledged Ops administration.
|
|
107
|
+
* Otherwise it could get in "synchronizing" state indefinitely.
|
|
108
|
+
*
|
|
109
|
+
* CLEVER HACK
|
|
110
|
+
* Introducing a new Op type for this would not be backward-compatible as
|
|
111
|
+
* receiving such Op would crash old clients :(
|
|
112
|
+
* So the clever backward-compatible hack pulled here is that we codify the
|
|
113
|
+
* acknowledgement as a "deletion Op" for the non-existing node id "ACK". In
|
|
114
|
+
* old clients such Op is accepted, but will effectively be a no-op as that
|
|
115
|
+
* node does not exist, but as a side-effect the Op will get acknowledged.
|
|
116
|
+
*/
|
|
117
|
+
declare function ackOp(opId: string): AckOp;
|
|
99
118
|
declare type SetParentKeyOp = {
|
|
100
119
|
readonly opId?: string;
|
|
101
120
|
readonly id: string;
|
|
@@ -756,8 +775,13 @@ declare type Options = {
|
|
|
756
775
|
declare type PartialNullable<T> = {
|
|
757
776
|
[P in keyof T]?: T[P] | null | undefined;
|
|
758
777
|
};
|
|
778
|
+
declare type ThreadsFilterOptions<TThreadMetadata extends BaseMetadata> = {
|
|
779
|
+
query?: {
|
|
780
|
+
metadata?: Partial<TThreadMetadata>;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
759
783
|
declare type CommentsApi<TThreadMetadata extends BaseMetadata> = {
|
|
760
|
-
getThreads(): Promise<ThreadData<TThreadMetadata>[]>;
|
|
784
|
+
getThreads(options?: ThreadsFilterOptions<TThreadMetadata>): Promise<ThreadData<TThreadMetadata>[]>;
|
|
761
785
|
createThread(options: {
|
|
762
786
|
threadId: string;
|
|
763
787
|
commentId: string;
|
|
@@ -1718,8 +1742,7 @@ declare type Room<TPresence extends JsonObject, TStorage extends LsonObject, TUs
|
|
|
1718
1742
|
addToHistory: boolean;
|
|
1719
1743
|
}): void;
|
|
1720
1744
|
/**
|
|
1721
|
-
*
|
|
1722
|
-
* Sends Yjs document updates to liveblocks server
|
|
1745
|
+
* Sends Yjs document updates to Liveblocks server.
|
|
1723
1746
|
*
|
|
1724
1747
|
* @param {string} data the doc update to send to the server, base64 encoded uint8array
|
|
1725
1748
|
*/
|
|
@@ -2153,12 +2176,7 @@ declare const fancyConsole_errorWithTitle: typeof errorWithTitle;
|
|
|
2153
2176
|
declare const fancyConsole_warn: typeof warn;
|
|
2154
2177
|
declare const fancyConsole_warnWithTitle: typeof warnWithTitle;
|
|
2155
2178
|
declare namespace fancyConsole {
|
|
2156
|
-
export {
|
|
2157
|
-
fancyConsole_error as error,
|
|
2158
|
-
fancyConsole_errorWithTitle as errorWithTitle,
|
|
2159
|
-
fancyConsole_warn as warn,
|
|
2160
|
-
fancyConsole_warnWithTitle as warnWithTitle,
|
|
2161
|
-
};
|
|
2179
|
+
export { fancyConsole_error as error, fancyConsole_errorWithTitle as errorWithTitle, fancyConsole_warn as warn, fancyConsole_warnWithTitle as warnWithTitle };
|
|
2162
2180
|
}
|
|
2163
2181
|
|
|
2164
2182
|
/**
|
|
@@ -2323,14 +2341,7 @@ type DevToolsTreeNode_LsonTreeNode = LsonTreeNode;
|
|
|
2323
2341
|
type DevToolsTreeNode_TreeNode = TreeNode;
|
|
2324
2342
|
type DevToolsTreeNode_UserTreeNode = UserTreeNode;
|
|
2325
2343
|
declare namespace DevToolsTreeNode {
|
|
2326
|
-
export {
|
|
2327
|
-
DevToolsTreeNode_CustomEventTreeNode as CustomEventTreeNode,
|
|
2328
|
-
DevToolsTreeNode_JsonTreeNode as JsonTreeNode,
|
|
2329
|
-
DevToolsTreeNode_LiveTreeNode as LiveTreeNode,
|
|
2330
|
-
DevToolsTreeNode_LsonTreeNode as LsonTreeNode,
|
|
2331
|
-
DevToolsTreeNode_TreeNode as TreeNode,
|
|
2332
|
-
DevToolsTreeNode_UserTreeNode as UserTreeNode,
|
|
2333
|
-
};
|
|
2344
|
+
export type { DevToolsTreeNode_CustomEventTreeNode as CustomEventTreeNode, DevToolsTreeNode_JsonTreeNode as JsonTreeNode, DevToolsTreeNode_LiveTreeNode as LiveTreeNode, DevToolsTreeNode_LsonTreeNode as LsonTreeNode, DevToolsTreeNode_TreeNode as TreeNode, DevToolsTreeNode_UserTreeNode as UserTreeNode };
|
|
2334
2345
|
}
|
|
2335
2346
|
|
|
2336
2347
|
/**
|
|
@@ -2450,12 +2461,7 @@ type protocol_FullClientToPanelMessage = FullClientToPanelMessage;
|
|
|
2450
2461
|
type protocol_FullPanelToClientMessage = FullPanelToClientMessage;
|
|
2451
2462
|
type protocol_PanelToClientMessage = PanelToClientMessage;
|
|
2452
2463
|
declare namespace protocol {
|
|
2453
|
-
export {
|
|
2454
|
-
protocol_ClientToPanelMessage as ClientToPanelMessage,
|
|
2455
|
-
protocol_FullClientToPanelMessage as FullClientToPanelMessage,
|
|
2456
|
-
protocol_FullPanelToClientMessage as FullPanelToClientMessage,
|
|
2457
|
-
protocol_PanelToClientMessage as PanelToClientMessage,
|
|
2458
|
-
};
|
|
2464
|
+
export type { protocol_ClientToPanelMessage as ClientToPanelMessage, protocol_FullClientToPanelMessage as FullClientToPanelMessage, protocol_FullPanelToClientMessage as FullPanelToClientMessage, protocol_PanelToClientMessage as PanelToClientMessage };
|
|
2459
2465
|
}
|
|
2460
2466
|
|
|
2461
2467
|
declare type PromiseOrNot<T> = T | Promise<T>;
|
|
@@ -2581,4 +2587,4 @@ declare type EnsureJson<T> = [
|
|
|
2581
2587
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2582
2588
|
};
|
|
2583
2589
|
|
|
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 };
|
|
2590
|
+
export { type AckOp, type AsyncCache, type AsyncState, type AsyncStateError, type AsyncStateInitial, type AsyncStateLoading, type AsyncStateResolved, type AsyncStateSuccess, type BaseAuthResult, type BaseMetadata, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type CommentBody, type CommentBodyBlockElement, type CommentBodyElement, type CommentBodyInlineElement, type CommentBodyLink, type CommentBodyLinkElementArgs, type CommentBodyMention, type CommentBodyMentionElementArgs, type CommentBodyParagraph, type CommentBodyParagraphElementArgs, type CommentBodyResolveUsersArgs, type CommentBodyText, type CommentBodyTextElementArgs, type CommentData, type CommentDataPlain, type CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, type CommentsApi, CommentsApiError, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type History, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IdTuple, type Immutable, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type LegacyConnectionStatus, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, type LostConnectionEvent, type Lson, type LsonObject, type NodeMap, type Op, OpCode, type Others, type OthersEvent, type ParentToChildNodeMap, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type RejectedStorageOpServerMsg, type Resolve, type Room, type RoomEventMessage, type RoomInitializers, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type ThreadData, type ThreadDataPlain, type ThreadsFilterOptions, type ToImmutable, type ToJson, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, ackOp, 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 };
|