@liveblocks/react 2.16.1-ai → 2.16.1-ai2
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/_private.d.mts +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +5 -7
- package/dist/_private.js.map +1 -1
- package/dist/_private.mjs +1 -3
- package/dist/_private.mjs.map +1 -1
- package/dist/{chunk-ANPXBJP5.js → chunk-HZVFZRLN.js} +2 -2
- package/dist/{chunk-ANPXBJP5.js.map → chunk-HZVFZRLN.js.map} +1 -1
- package/dist/{chunk-FQKGWA7O.mjs → chunk-JZBPCFEX.mjs} +99 -214
- package/dist/chunk-JZBPCFEX.mjs.map +1 -0
- package/dist/{chunk-VJYVOAD5.js → chunk-NZL5WL5O.js} +102 -217
- package/dist/chunk-NZL5WL5O.js.map +1 -0
- package/dist/{chunk-XBBRJ42N.mjs → chunk-SXYMHUWS.mjs} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{room-BjHGIaNf.d.mts → room-Ce3twcjb.d.mts} +36 -154
- package/dist/{room-BjHGIaNf.d.ts → room-Ce3twcjb.d.ts} +36 -154
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +4 -4
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +2 -2
- package/dist/suspense.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-FQKGWA7O.mjs.map +0 -1
- package/dist/chunk-VJYVOAD5.js.map +0 -1
- /package/dist/{chunk-XBBRJ42N.mjs.map → chunk-SXYMHUWS.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "2.16.1-
|
|
3
|
+
var PKG_VERSION = "2.16.1-ai2";
|
|
4
4
|
var PKG_FORMAT = "esm";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
PKG_FORMAT,
|
|
21
21
|
ClientSideSuspense
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-SXYMHUWS.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, at as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, au as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, av as useUser, as as useUserThreads_experimental } from './room-Ce3twcjb.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, at as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, au as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, av as useUser, as as useUserThreads_experimental } from './room-Ce3twcjb.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHZVFZRLNjs = require('./chunk-HZVFZRLN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -66,14 +66,12 @@ var _chunkANPXBJP5js = require('./chunk-ANPXBJP5.js');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
var _chunkVJYVOAD5js = require('./chunk-VJYVOAD5.js');
|
|
69
|
+
var _chunkNZL5WL5Ojs = require('./chunk-NZL5WL5O.js');
|
|
71
70
|
|
|
72
71
|
// src/index.ts
|
|
73
72
|
var _core = require('@liveblocks/core');
|
|
74
73
|
var _client = require('@liveblocks/client');
|
|
75
|
-
_core.detectDupes.call(void 0,
|
|
76
|
-
|
|
74
|
+
_core.detectDupes.call(void 0, _chunkHZVFZRLNjs.PKG_NAME, _chunkHZVFZRLNjs.PKG_VERSION, _chunkHZVFZRLNjs.PKG_FORMAT);
|
|
77
75
|
|
|
78
76
|
|
|
79
77
|
|
|
@@ -138,5 +136,5 @@ _core.detectDupes.call(void 0, _chunkANPXBJP5js.PKG_NAME, _chunkANPXBJP5js.PKG_V
|
|
|
138
136
|
|
|
139
137
|
|
|
140
138
|
|
|
141
|
-
exports.ClientContext =
|
|
139
|
+
exports.ClientContext = _chunkNZL5WL5Ojs.ClientContext; exports.ClientSideSuspense = _chunkHZVFZRLNjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNZL5WL5Ojs.LiveblocksProvider; exports.RoomContext = _chunkNZL5WL5Ojs.RoomContext; exports.RoomProvider = _chunkNZL5WL5Ojs._RoomProvider; exports.createLiveblocksContext = _chunkNZL5WL5Ojs.createLiveblocksContext; exports.createRoomContext = _chunkNZL5WL5Ojs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNZL5WL5Ojs._useAddReaction; exports.useAttachmentUrl = _chunkNZL5WL5Ojs.useAttachmentUrl; exports.useBatch = _chunkNZL5WL5Ojs.useBatch; exports.useBroadcastEvent = _chunkNZL5WL5Ojs._useBroadcastEvent; exports.useCanRedo = _chunkNZL5WL5Ojs.useCanRedo; exports.useCanUndo = _chunkNZL5WL5Ojs.useCanUndo; exports.useClient = _chunkNZL5WL5Ojs.useClient; exports.useCreateComment = _chunkNZL5WL5Ojs.useCreateComment; exports.useCreateThread = _chunkNZL5WL5Ojs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkNZL5WL5Ojs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNZL5WL5Ojs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNZL5WL5Ojs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNZL5WL5Ojs._useDeleteThread; exports.useEditComment = _chunkNZL5WL5Ojs.useEditComment; exports.useEditThreadMetadata = _chunkNZL5WL5Ojs._useEditThreadMetadata; exports.useErrorListener = _chunkNZL5WL5Ojs.useErrorListener; exports.useEventListener = _chunkNZL5WL5Ojs._useEventListener; exports.useHistory = _chunkNZL5WL5Ojs.useHistory; exports.useHistoryVersionData = _chunkNZL5WL5Ojs.useHistoryVersionData; exports.useHistoryVersions = _chunkNZL5WL5Ojs._useHistoryVersions; exports.useInboxNotificationThread = _chunkNZL5WL5Ojs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNZL5WL5Ojs.useInboxNotifications; exports.useIsInsideRoom = _chunkNZL5WL5Ojs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNZL5WL5Ojs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNZL5WL5Ojs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNZL5WL5Ojs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNZL5WL5Ojs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNZL5WL5Ojs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNZL5WL5Ojs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNZL5WL5Ojs._useMutation; exports.useMyPresence = _chunkNZL5WL5Ojs._useMyPresence; exports.useOther = _chunkNZL5WL5Ojs._useOther; exports.useOthers = _chunkNZL5WL5Ojs._useOthers; exports.useOthersConnectionIds = _chunkNZL5WL5Ojs.useOthersConnectionIds; exports.useOthersListener = _chunkNZL5WL5Ojs._useOthersListener; exports.useOthersMapped = _chunkNZL5WL5Ojs._useOthersMapped; exports.useRedo = _chunkNZL5WL5Ojs.useRedo; exports.useRemoveReaction = _chunkNZL5WL5Ojs.useRemoveReaction; exports.useRoom = _chunkNZL5WL5Ojs._useRoom; exports.useRoomInfo = _chunkNZL5WL5Ojs.useRoomInfo; exports.useRoomNotificationSettings = _chunkNZL5WL5Ojs._useRoomNotificationSettings; exports.useSelf = _chunkNZL5WL5Ojs._useSelf; exports.useStatus = _chunkNZL5WL5Ojs.useStatus; exports.useStorage = _chunkNZL5WL5Ojs._useStorage; exports.useStorageRoot = _chunkNZL5WL5Ojs._useStorageRoot; exports.useStorageStatus = _chunkNZL5WL5Ojs.useStorageStatus; exports.useSyncStatus = _chunkNZL5WL5Ojs.useSyncStatus; exports.useThreadSubscription = _chunkNZL5WL5Ojs.useThreadSubscription; exports.useThreads = _chunkNZL5WL5Ojs._useThreads; exports.useUndo = _chunkNZL5WL5Ojs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNZL5WL5Ojs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkNZL5WL5Ojs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkNZL5WL5Ojs.useUpdateRoomNotificationSettings; exports.useUser = _chunkNZL5WL5Ojs._useUser; exports.useUserThreads_experimental = _chunkNZL5WL5Ojs._useUserThreads_experimental;
|
|
142
140
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACrEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADsE7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,y5HAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SXYMHUWS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -40,7 +40,6 @@ import {
|
|
|
40
40
|
useCanRedo,
|
|
41
41
|
useCanUndo,
|
|
42
42
|
useClient,
|
|
43
|
-
useCommentsErrorListener,
|
|
44
43
|
useCreateComment,
|
|
45
44
|
useDeleteAllInboxNotifications,
|
|
46
45
|
useDeleteComment,
|
|
@@ -67,7 +66,7 @@ import {
|
|
|
67
66
|
useUndo,
|
|
68
67
|
useUnreadInboxNotificationsCount,
|
|
69
68
|
useUpdateRoomNotificationSettings
|
|
70
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-JZBPCFEX.mjs";
|
|
71
70
|
|
|
72
71
|
// src/index.ts
|
|
73
72
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -89,7 +88,6 @@ export {
|
|
|
89
88
|
useCanRedo,
|
|
90
89
|
useCanUndo,
|
|
91
90
|
useClient,
|
|
92
|
-
useCommentsErrorListener,
|
|
93
91
|
useCreateComment,
|
|
94
92
|
_useCreateThread as useCreateThread,
|
|
95
93
|
useDeleteAllInboxNotifications,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueRoom, BaseMetadata as BaseMetadata$1,
|
|
5
|
+
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -15,123 +15,6 @@ declare const RoomContext: react.Context<OpaqueRoom | null>;
|
|
|
15
15
|
/** @private */
|
|
16
16
|
declare function useRoomOrNull<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata>(): Room<P, S, U, E, M> | null;
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @private Internal API, do not rely on it.
|
|
20
|
-
*/
|
|
21
|
-
declare class CreateThreadError<M extends BaseMetadata$1> extends Error {
|
|
22
|
-
cause: Error;
|
|
23
|
-
context: {
|
|
24
|
-
roomId: string;
|
|
25
|
-
threadId: string;
|
|
26
|
-
commentId: string;
|
|
27
|
-
body: CommentBody;
|
|
28
|
-
metadata: M;
|
|
29
|
-
};
|
|
30
|
-
constructor(cause: Error, context: {
|
|
31
|
-
roomId: string;
|
|
32
|
-
threadId: string;
|
|
33
|
-
commentId: string;
|
|
34
|
-
body: CommentBody;
|
|
35
|
-
metadata: M;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @private Internal API, do not rely on it.
|
|
40
|
-
*/
|
|
41
|
-
declare class EditThreadMetadataError<M extends BaseMetadata$1> extends Error {
|
|
42
|
-
cause: Error;
|
|
43
|
-
context: {
|
|
44
|
-
roomId: string;
|
|
45
|
-
threadId: string;
|
|
46
|
-
metadata: Patchable<M>;
|
|
47
|
-
};
|
|
48
|
-
constructor(cause: Error, context: {
|
|
49
|
-
roomId: string;
|
|
50
|
-
threadId: string;
|
|
51
|
-
metadata: Patchable<M>;
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @private Internal API, do not rely on it.
|
|
56
|
-
*/
|
|
57
|
-
declare class CreateCommentError extends Error {
|
|
58
|
-
cause: Error;
|
|
59
|
-
context: {
|
|
60
|
-
roomId: string;
|
|
61
|
-
threadId: string;
|
|
62
|
-
commentId: string;
|
|
63
|
-
body: CommentBody;
|
|
64
|
-
};
|
|
65
|
-
constructor(cause: Error, context: {
|
|
66
|
-
roomId: string;
|
|
67
|
-
threadId: string;
|
|
68
|
-
commentId: string;
|
|
69
|
-
body: CommentBody;
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @private Internal API, do not rely on it.
|
|
74
|
-
*/
|
|
75
|
-
declare class EditCommentError extends Error {
|
|
76
|
-
cause: Error;
|
|
77
|
-
context: {
|
|
78
|
-
roomId: string;
|
|
79
|
-
threadId: string;
|
|
80
|
-
commentId: string;
|
|
81
|
-
body: CommentBody;
|
|
82
|
-
};
|
|
83
|
-
constructor(cause: Error, context: {
|
|
84
|
-
roomId: string;
|
|
85
|
-
threadId: string;
|
|
86
|
-
commentId: string;
|
|
87
|
-
body: CommentBody;
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @private Internal API, do not rely on it.
|
|
92
|
-
*/
|
|
93
|
-
declare class DeleteCommentError extends Error {
|
|
94
|
-
cause: Error;
|
|
95
|
-
context: {
|
|
96
|
-
roomId: string;
|
|
97
|
-
threadId: string;
|
|
98
|
-
commentId: string;
|
|
99
|
-
};
|
|
100
|
-
constructor(cause: Error, context: {
|
|
101
|
-
roomId: string;
|
|
102
|
-
threadId: string;
|
|
103
|
-
commentId: string;
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @private Internal API, do not rely on it.
|
|
108
|
-
*/
|
|
109
|
-
declare class MarkInboxNotificationAsReadError extends Error {
|
|
110
|
-
cause: Error;
|
|
111
|
-
context: {
|
|
112
|
-
inboxNotificationId: string;
|
|
113
|
-
};
|
|
114
|
-
constructor(cause: Error, context: {
|
|
115
|
-
inboxNotificationId: string;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @private Internal API, do not rely on it.
|
|
120
|
-
*/
|
|
121
|
-
declare class UpdateNotificationSettingsError extends Error {
|
|
122
|
-
cause: Error;
|
|
123
|
-
context: {
|
|
124
|
-
roomId: string;
|
|
125
|
-
};
|
|
126
|
-
constructor(cause: Error, context: {
|
|
127
|
-
roomId: string;
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @private Internal API, do not rely on it.
|
|
132
|
-
*/
|
|
133
|
-
type CommentsError<M extends BaseMetadata$1> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
134
|
-
|
|
135
18
|
type UseSyncStatusOptions = {
|
|
136
19
|
/**
|
|
137
20
|
* When setting smooth, the hook will not update immediately as status
|
|
@@ -308,6 +191,17 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
308
191
|
* const isInsideRoom = useIsInsideRoom();
|
|
309
192
|
*/
|
|
310
193
|
useIsInsideRoom(): boolean;
|
|
194
|
+
/**
|
|
195
|
+
* useErrorListener is a React hook that allows you to respond to any
|
|
196
|
+
* Liveblocks error, for example room connection errors, errors
|
|
197
|
+
* creating/editing/deleting threads, etc.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* useErrorListener(err => {
|
|
201
|
+
* console.error(err);
|
|
202
|
+
* })
|
|
203
|
+
*/
|
|
204
|
+
useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
311
205
|
/**
|
|
312
206
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
313
207
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -346,6 +240,17 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
346
240
|
* const isInsideRoom = useIsInsideRoom();
|
|
347
241
|
*/
|
|
348
242
|
useIsInsideRoom(): boolean;
|
|
243
|
+
/**
|
|
244
|
+
* useErrorListener is a React hook that allows you to respond to any
|
|
245
|
+
* Liveblocks error, for example room connection errors, errors
|
|
246
|
+
* creating/editing/deleting threads, etc.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* useErrorListener(err => {
|
|
250
|
+
* console.error(err);
|
|
251
|
+
* })
|
|
252
|
+
*/
|
|
253
|
+
useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
349
254
|
/**
|
|
350
255
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
351
256
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -438,16 +343,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
438
343
|
* })
|
|
439
344
|
*/
|
|
440
345
|
useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
|
|
441
|
-
/**
|
|
442
|
-
* useErrorListener is a React hook that allows you to respond to potential room
|
|
443
|
-
* connection errors.
|
|
444
|
-
*
|
|
445
|
-
* @example
|
|
446
|
-
* useErrorListener(er => {
|
|
447
|
-
* console.error(er);
|
|
448
|
-
* })
|
|
449
|
-
*/
|
|
450
|
-
useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
451
346
|
/**
|
|
452
347
|
* useEventListener is a React hook that allows you to respond to events broadcast
|
|
453
348
|
* by other users in the room.
|
|
@@ -771,16 +666,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
771
666
|
*/
|
|
772
667
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
773
668
|
};
|
|
774
|
-
/**
|
|
775
|
-
* @private
|
|
776
|
-
*
|
|
777
|
-
* Private methods and variables used in the core internals, but as a user
|
|
778
|
-
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
779
|
-
* will probably happen if you do.
|
|
780
|
-
*/
|
|
781
|
-
type PrivateRoomContextApi = {
|
|
782
|
-
useCommentsErrorListener<M extends BaseMetadata$1>(callback: (err: CommentsError<M>) => void): void;
|
|
783
|
-
};
|
|
784
669
|
type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata$1> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
|
|
785
670
|
/**
|
|
786
671
|
* Returns the current storage status for the Room, and triggers
|
|
@@ -973,7 +858,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
973
858
|
*/
|
|
974
859
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
975
860
|
}>;
|
|
976
|
-
}
|
|
861
|
+
}>;
|
|
977
862
|
/**
|
|
978
863
|
* Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
|
|
979
864
|
*/
|
|
@@ -1593,6 +1478,17 @@ declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["u
|
|
|
1593
1478
|
* const syncStatus = useSyncStatus({ smooth: true });
|
|
1594
1479
|
*/
|
|
1595
1480
|
declare function useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
1481
|
+
/**
|
|
1482
|
+
* useErrorListener is a React hook that allows you to respond to any
|
|
1483
|
+
* Liveblocks error, for example room connection errors, errors
|
|
1484
|
+
* creating/editing/deleting threads, etc.
|
|
1485
|
+
*
|
|
1486
|
+
* @example
|
|
1487
|
+
* useErrorListener(err => {
|
|
1488
|
+
* console.error(err);
|
|
1489
|
+
* })
|
|
1490
|
+
*/
|
|
1491
|
+
declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
1596
1492
|
|
|
1597
1493
|
/**
|
|
1598
1494
|
* Returns the current connection status for the Room, and triggers
|
|
@@ -1650,16 +1546,6 @@ declare function useBatch<T>(): (callback: () => T) => T;
|
|
|
1650
1546
|
* })
|
|
1651
1547
|
*/
|
|
1652
1548
|
declare function useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
|
|
1653
|
-
/**
|
|
1654
|
-
* useErrorListener is a React hook that allows you to respond to potential room
|
|
1655
|
-
* connection errors.
|
|
1656
|
-
*
|
|
1657
|
-
* @example
|
|
1658
|
-
* useErrorListener(er => {
|
|
1659
|
-
* console.error(er);
|
|
1660
|
-
* })
|
|
1661
|
-
*/
|
|
1662
|
-
declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
|
|
1663
1549
|
/**
|
|
1664
1550
|
* Returns the room.history
|
|
1665
1551
|
*/
|
|
@@ -1697,10 +1583,6 @@ declare function useCanRedo(): boolean;
|
|
|
1697
1583
|
* // [2, 4, 7]
|
|
1698
1584
|
*/
|
|
1699
1585
|
declare function useOthersConnectionIds(): readonly number[];
|
|
1700
|
-
/**
|
|
1701
|
-
* @private Internal API, do not rely on it.
|
|
1702
|
-
*/
|
|
1703
|
-
declare function useCommentsErrorListener<M extends BaseMetadata>(callback: (error: CommentsError<M>) => void): void;
|
|
1704
1586
|
/**
|
|
1705
1587
|
* @private
|
|
1706
1588
|
*/
|
|
@@ -2344,4 +2226,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2344
2226
|
*/
|
|
2345
2227
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2346
2228
|
|
|
2347
|
-
export {
|
|
2229
|
+
export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9, _useSelfSuspense as aA, _useStorageSuspense as aB, useStorageStatusSuspense as aC, _useThreadsSuspense as aD, useAttachmentUrlSuspense as aE, _useHistoryVersionsSuspense as aF, _useRoomNotificationSettingsSuspense as aG, useInboxNotificationsSuspense as aH, useRoomInfoSuspense as aI, useUnreadInboxNotificationsCountSuspense as aJ, _useUserSuspense as aK, _useUserThreadsSuspense_experimental as aL, _useStorageRoot as aa, useThreadSubscription as ab, useUndo as ac, _useUpdateMyPresence as ad, useUpdateRoomNotificationSettings as ae, useHistoryVersionData as af, _useOther as ag, _useOthers as ah, useOthersConnectionIds as ai, _useOthersMapped as aj, _useSelf as ak, _useStorage as al, useStorageStatus as am, _useThreads as an, useAttachmentUrl as ao, _useHistoryVersions as ap, _useRoomNotificationSettings as aq, useInboxNotifications as ar, _useUserThreads_experimental as as, useRoomInfo as at, useUnreadInboxNotificationsCount as au, _useUser as av, _useOtherSuspense as aw, _useOthersSuspense as ax, useOthersConnectionIdsSuspense as ay, _useOthersMappedSuspense as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|