@liveblocks/react 2.16.0 → 2.16.1-ai
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 +7 -5
- package/dist/_private.js.map +1 -1
- package/dist/_private.mjs +3 -1
- package/dist/_private.mjs.map +1 -1
- package/dist/{chunk-YA4OXDFC.js → chunk-ANPXBJP5.js} +2 -2
- package/dist/{chunk-YA4OXDFC.js.map → chunk-ANPXBJP5.js.map} +1 -1
- package/dist/{chunk-JZBPCFEX.mjs → chunk-FQKGWA7O.mjs} +214 -99
- package/dist/chunk-FQKGWA7O.mjs.map +1 -0
- package/dist/{chunk-NZL5WL5O.js → chunk-VJYVOAD5.js} +217 -102
- package/dist/chunk-VJYVOAD5.js.map +1 -0
- package/dist/{chunk-GMP4DSRI.mjs → chunk-XBBRJ42N.mjs} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{room-Ce3twcjb.d.mts → room-BjHGIaNf.d.mts} +154 -36
- package/dist/{room-Ce3twcjb.d.ts → room-BjHGIaNf.d.ts} +154 -36
- 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-JZBPCFEX.mjs.map +0 -1
- package/dist/chunk-NZL5WL5O.js.map +0 -1
- /package/dist/{chunk-GMP4DSRI.mjs.map → chunk-XBBRJ42N.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.
|
|
3
|
+
var PKG_VERSION = "2.16.1-ai";
|
|
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-XBBRJ42N.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, av as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-BjHGIaNf.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 { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, av as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-BjHGIaNf.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 _chunkANPXBJP5js = require('./chunk-ANPXBJP5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -66,12 +66,14 @@ var _chunkYA4OXDFCjs = require('./chunk-YA4OXDFC.js');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
var _chunkVJYVOAD5js = require('./chunk-VJYVOAD5.js');
|
|
70
71
|
|
|
71
72
|
// src/index.ts
|
|
72
73
|
var _core = require('@liveblocks/core');
|
|
73
74
|
var _client = require('@liveblocks/client');
|
|
74
|
-
_core.detectDupes.call(void 0,
|
|
75
|
+
_core.detectDupes.call(void 0, _chunkANPXBJP5js.PKG_NAME, _chunkANPXBJP5js.PKG_VERSION, _chunkANPXBJP5js.PKG_FORMAT);
|
|
76
|
+
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
|
|
@@ -136,5 +138,5 @@ _core.detectDupes.call(void 0, _chunkYA4OXDFCjs.PKG_NAME, _chunkYA4OXDFCjs.PKG_V
|
|
|
136
138
|
|
|
137
139
|
|
|
138
140
|
|
|
139
|
-
exports.ClientContext =
|
|
141
|
+
exports.ClientContext = _chunkVJYVOAD5js.ClientContext; exports.ClientSideSuspense = _chunkANPXBJP5js.ClientSideSuspense; exports.LiveblocksProvider = _chunkVJYVOAD5js.LiveblocksProvider; exports.RoomContext = _chunkVJYVOAD5js.RoomContext; exports.RoomProvider = _chunkVJYVOAD5js._RoomProvider; exports.createLiveblocksContext = _chunkVJYVOAD5js.createLiveblocksContext; exports.createRoomContext = _chunkVJYVOAD5js.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkVJYVOAD5js._useAddReaction; exports.useAttachmentUrl = _chunkVJYVOAD5js.useAttachmentUrl; exports.useBatch = _chunkVJYVOAD5js.useBatch; exports.useBroadcastEvent = _chunkVJYVOAD5js._useBroadcastEvent; exports.useCanRedo = _chunkVJYVOAD5js.useCanRedo; exports.useCanUndo = _chunkVJYVOAD5js.useCanUndo; exports.useClient = _chunkVJYVOAD5js.useClient; exports.useCommentsErrorListener = _chunkVJYVOAD5js.useCommentsErrorListener; exports.useCreateComment = _chunkVJYVOAD5js.useCreateComment; exports.useCreateThread = _chunkVJYVOAD5js._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkVJYVOAD5js.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkVJYVOAD5js.useDeleteComment; exports.useDeleteInboxNotification = _chunkVJYVOAD5js.useDeleteInboxNotification; exports.useDeleteThread = _chunkVJYVOAD5js._useDeleteThread; exports.useEditComment = _chunkVJYVOAD5js.useEditComment; exports.useEditThreadMetadata = _chunkVJYVOAD5js._useEditThreadMetadata; exports.useErrorListener = _chunkVJYVOAD5js.useErrorListener; exports.useEventListener = _chunkVJYVOAD5js._useEventListener; exports.useHistory = _chunkVJYVOAD5js.useHistory; exports.useHistoryVersionData = _chunkVJYVOAD5js.useHistoryVersionData; exports.useHistoryVersions = _chunkVJYVOAD5js._useHistoryVersions; exports.useInboxNotificationThread = _chunkVJYVOAD5js._useInboxNotificationThread; exports.useInboxNotifications = _chunkVJYVOAD5js.useInboxNotifications; exports.useIsInsideRoom = _chunkVJYVOAD5js._useIsInsideRoom; exports.useLostConnectionListener = _chunkVJYVOAD5js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkVJYVOAD5js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkVJYVOAD5js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkVJYVOAD5js.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkVJYVOAD5js.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkVJYVOAD5js.useMarkThreadAsUnresolved; exports.useMutation = _chunkVJYVOAD5js._useMutation; exports.useMyPresence = _chunkVJYVOAD5js._useMyPresence; exports.useOther = _chunkVJYVOAD5js._useOther; exports.useOthers = _chunkVJYVOAD5js._useOthers; exports.useOthersConnectionIds = _chunkVJYVOAD5js.useOthersConnectionIds; exports.useOthersListener = _chunkVJYVOAD5js._useOthersListener; exports.useOthersMapped = _chunkVJYVOAD5js._useOthersMapped; exports.useRedo = _chunkVJYVOAD5js.useRedo; exports.useRemoveReaction = _chunkVJYVOAD5js.useRemoveReaction; exports.useRoom = _chunkVJYVOAD5js._useRoom; exports.useRoomInfo = _chunkVJYVOAD5js.useRoomInfo; exports.useRoomNotificationSettings = _chunkVJYVOAD5js._useRoomNotificationSettings; exports.useSelf = _chunkVJYVOAD5js._useSelf; exports.useStatus = _chunkVJYVOAD5js.useStatus; exports.useStorage = _chunkVJYVOAD5js._useStorage; exports.useStorageRoot = _chunkVJYVOAD5js._useStorageRoot; exports.useStorageStatus = _chunkVJYVOAD5js.useStorageStatus; exports.useSyncStatus = _chunkVJYVOAD5js.useSyncStatus; exports.useThreadSubscription = _chunkVJYVOAD5js.useThreadSubscription; exports.useThreads = _chunkVJYVOAD5js._useThreads; exports.useUndo = _chunkVJYVOAD5js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkVJYVOAD5js.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkVJYVOAD5js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkVJYVOAD5js.useUpdateRoomNotificationSettings; exports.useUser = _chunkVJYVOAD5js._useUser; exports.useUserThreads_experimental = _chunkVJYVOAD5js._useUserThreads_experimental;
|
|
140
142
|
//# 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;AACF,sDAA4B;AAC5B;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;AACA;AACF,sDAA4B;AAC5B;AACA;ACtEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADuE7C;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;AACA;AACF,u+HAAC","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 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 useErrorListener,\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\nexport { useCommentsErrorListener } 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-XBBRJ42N.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
useCanRedo,
|
|
41
41
|
useCanUndo,
|
|
42
42
|
useClient,
|
|
43
|
+
useCommentsErrorListener,
|
|
43
44
|
useCreateComment,
|
|
44
45
|
useDeleteAllInboxNotifications,
|
|
45
46
|
useDeleteComment,
|
|
@@ -66,7 +67,7 @@ import {
|
|
|
66
67
|
useUndo,
|
|
67
68
|
useUnreadInboxNotificationsCount,
|
|
68
69
|
useUpdateRoomNotificationSettings
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FQKGWA7O.mjs";
|
|
70
71
|
|
|
71
72
|
// src/index.ts
|
|
72
73
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -88,6 +89,7 @@ export {
|
|
|
88
89
|
useCanRedo,
|
|
89
90
|
useCanUndo,
|
|
90
91
|
useClient,
|
|
92
|
+
useCommentsErrorListener,
|
|
91
93
|
useCreateComment,
|
|
92
94
|
_useCreateThread as useCreateThread,
|
|
93
95
|
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
|
|
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 useErrorListener,\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\nexport { useCommentsErrorListener } 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, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve,
|
|
5
|
+
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, 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,6 +15,123 @@ 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
|
+
|
|
18
135
|
type UseSyncStatusOptions = {
|
|
19
136
|
/**
|
|
20
137
|
* When setting smooth, the hook will not update immediately as status
|
|
@@ -191,17 +308,6 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
191
308
|
* const isInsideRoom = useIsInsideRoom();
|
|
192
309
|
*/
|
|
193
310
|
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;
|
|
205
311
|
/**
|
|
206
312
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
207
313
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -240,17 +346,6 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
240
346
|
* const isInsideRoom = useIsInsideRoom();
|
|
241
347
|
*/
|
|
242
348
|
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;
|
|
254
349
|
/**
|
|
255
350
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
256
351
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -343,6 +438,16 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
343
438
|
* })
|
|
344
439
|
*/
|
|
345
440
|
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;
|
|
346
451
|
/**
|
|
347
452
|
* useEventListener is a React hook that allows you to respond to events broadcast
|
|
348
453
|
* by other users in the room.
|
|
@@ -666,6 +771,16 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
666
771
|
*/
|
|
667
772
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
668
773
|
};
|
|
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
|
+
};
|
|
669
784
|
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"] & {
|
|
670
785
|
/**
|
|
671
786
|
* Returns the current storage status for the Room, and triggers
|
|
@@ -858,7 +973,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
858
973
|
*/
|
|
859
974
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
860
975
|
}>;
|
|
861
|
-
}>;
|
|
976
|
+
} & PrivateRoomContextApi>;
|
|
862
977
|
/**
|
|
863
978
|
* Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
|
|
864
979
|
*/
|
|
@@ -1478,17 +1593,6 @@ declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["u
|
|
|
1478
1593
|
* const syncStatus = useSyncStatus({ smooth: true });
|
|
1479
1594
|
*/
|
|
1480
1595
|
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;
|
|
1492
1596
|
|
|
1493
1597
|
/**
|
|
1494
1598
|
* Returns the current connection status for the Room, and triggers
|
|
@@ -1546,6 +1650,16 @@ declare function useBatch<T>(): (callback: () => T) => T;
|
|
|
1546
1650
|
* })
|
|
1547
1651
|
*/
|
|
1548
1652
|
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;
|
|
1549
1663
|
/**
|
|
1550
1664
|
* Returns the room.history
|
|
1551
1665
|
*/
|
|
@@ -1583,6 +1697,10 @@ declare function useCanRedo(): boolean;
|
|
|
1583
1697
|
* // [2, 4, 7]
|
|
1584
1698
|
*/
|
|
1585
1699
|
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;
|
|
1586
1704
|
/**
|
|
1587
1705
|
* @private
|
|
1588
1706
|
*/
|
|
@@ -2226,4 +2344,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2226
2344
|
*/
|
|
2227
2345
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2228
2346
|
|
|
2229
|
-
export {
|
|
2347
|
+
export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError 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, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useOthersConnectionIdsSuspense as aA, _useOthersMappedSuspense as aB, _useSelfSuspense as aC, _useStorageSuspense as aD, useStorageStatusSuspense as aE, _useThreadsSuspense as aF, useAttachmentUrlSuspense as aG, _useHistoryVersionsSuspense as aH, _useRoomNotificationSettingsSuspense as aI, useInboxNotificationsSuspense as aJ, useRoomInfoSuspense as aK, useUnreadInboxNotificationsCountSuspense as aL, _useUserSuspense as aM, _useUserThreadsSuspense_experimental as aN, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useHistoryVersionData as ag, useCommentsErrorListener as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, useInboxNotifications as at, _useUserThreads_experimental as au, useRoomInfo as av, useUnreadInboxNotificationsCount as aw, _useUser as ax, _useOtherSuspense as ay, _useOthersSuspense 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, ClientContext as x, createLiveblocksContext as y, useClient as z };
|