@liveblocks/react 3.16.0-flow3 → 3.16.0
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.cjs +7 -13
- package/dist/_private.cjs.map +1 -1
- package/dist/_private.d.cts +3 -11
- package/dist/_private.d.ts +3 -11
- package/dist/_private.js +1 -7
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-5YUDJVMF.js → chunk-A7EFQVZ3.js} +2 -2
- package/dist/{chunk-2VF57BZV.js → chunk-EEXHY3OA.js} +462 -39
- package/dist/chunk-EEXHY3OA.js.map +1 -0
- package/dist/{chunk-QEGVIJNN.cjs → chunk-HFTIBRCD.cjs} +497 -74
- package/dist/chunk-HFTIBRCD.cjs.map +1 -0
- package/dist/{chunk-HULSMHSU.cjs → chunk-VSO26OCO.cjs} +2 -2
- package/dist/{chunk-HULSMHSU.cjs.map → chunk-VSO26OCO.cjs.map} +1 -1
- package/dist/index.cjs +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-BvPZu216.d.cts → room-kE9R5ats.d.cts} +249 -19
- package/dist/{room-BvPZu216.d.ts → room-kE9R5ats.d.ts} +249 -19
- package/dist/suspense.cjs +20 -4
- package/dist/suspense.cjs.map +1 -1
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +18 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2VF57BZV.js.map +0 -1
- package/dist/chunk-QEGVIJNN.cjs.map +0 -1
- /package/dist/{chunk-5YUDJVMF.js.map → chunk-A7EFQVZ3.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "3.16.0
|
|
3
|
+
var PKG_VERSION = "3.16.0";
|
|
4
4
|
var PKG_FORMAT = "cjs";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ function ClientSideSuspense(props) {
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-VSO26OCO.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-VSO26OCO.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,QAAA;AACvD,IAAM,WAAA,EAAgD,KAAA;ADD7D;AACA;AEJA,8BAA8C;AAkC1C,+CAAA;AAVG,SAAS,kBAAA,CAAmB,KAAA,EAAc;AAC/C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,EAAA,EAAI,6BAAA,KAAc,CAAA;AAE5C,EAAA,8BAAA,CAAU,EAAA,GAAM;AAGd,IAAA,UAAA,CAAW,IAAI,CAAA;AAAA,EACjB,CAAA,EAAG,CAAC,CAAC,CAAA;AAEL,EAAA,uBACE,6BAAA,eAAC,EAAA,EAAS,QAAA,EAAU,KAAA,CAAM,QAAA,EACvB,QAAA,EAAA,QAAA,EACG,OAAO,KAAA,CAAM,SAAA,IAAa,WAAA,EACxB,KAAA,CAAM,QAAA,CAAS,EAAA,EACf,KAAA,CAAM,SAAA,EACR,KAAA,CAAM,SAAA,CACZ,CAAA;AAEJ;AF5BA;AACA;AACE;AACA;AACA;AACA;AACF,iJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-VSO26OCO.cjs","sourcesContent":[null,"declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n","import type { ReactNode } from \"react\";\nimport { Suspense, useEffect, useState } from \"react\";\n\ntype Props = {\n fallback: ReactNode;\n children: (() => ReactNode | undefined) | ReactNode | undefined;\n};\n\n/**\n * Almost like a normal <Suspense> component, except that for server-side\n * renders, the fallback will be used.\n *\n * The child props will have to be provided in a function, i.e. change:\n *\n * <Suspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </Suspense>\n *\n * To:\n *\n * <ClientSideSuspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </ClientSideSuspense>\n *\n */\nexport function ClientSideSuspense(props: Props) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n // Effects are never executed on the server side. The point of this is to\n // delay the flipping of this boolean until after hydration has happened.\n setMounted(true);\n }, []);\n\n return (\n <Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </Suspense>\n );\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVSO26OCOcjs = require('./chunk-VSO26OCO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -81,12 +81,28 @@ var _chunkHULSMHSUcjs = require('./chunk-HULSMHSU.cjs');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
var _chunkHFTIBRCDcjs = require('./chunk-HFTIBRCD.cjs');
|
|
85
93
|
|
|
86
94
|
// src/index.ts
|
|
87
95
|
var _core = require('@liveblocks/core');
|
|
88
96
|
var _client = require('@liveblocks/client');
|
|
89
|
-
_core.detectDupes.call(void 0,
|
|
97
|
+
_core.detectDupes.call(void 0, _chunkVSO26OCOcjs.PKG_NAME, _chunkVSO26OCOcjs.PKG_VERSION, _chunkVSO26OCOcjs.PKG_FORMAT);
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
90
106
|
|
|
91
107
|
|
|
92
108
|
|
|
@@ -167,5 +183,5 @@ _core.detectDupes.call(void 0, _chunkHULSMHSUcjs.PKG_NAME, _chunkHULSMHSUcjs.PKG
|
|
|
167
183
|
|
|
168
184
|
|
|
169
185
|
|
|
170
|
-
exports.ClientContext =
|
|
186
|
+
exports.ClientContext = _chunkHFTIBRCDcjs.ClientContext; exports.ClientSideSuspense = _chunkVSO26OCOcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkHFTIBRCDcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkHFTIBRCDcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkHFTIBRCDcjs.RegisterAiTool; exports.RoomContext = _chunkHFTIBRCDcjs.GlobalRoomContext; exports.RoomProvider = _chunkHFTIBRCDcjs._RoomProvider; exports.createLiveblocksContext = _chunkHFTIBRCDcjs.createLiveblocksContext; exports.createRoomContext = _chunkHFTIBRCDcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkHFTIBRCDcjs._useAddReaction; exports.useAiChat = _chunkHFTIBRCDcjs._useAiChat; exports.useAiChatMessages = _chunkHFTIBRCDcjs._useAiChatMessages; exports.useAiChatStatus = _chunkHFTIBRCDcjs.useAiChatStatus; exports.useAiChats = _chunkHFTIBRCDcjs._useAiChats; exports.useAttachmentUrl = _chunkHFTIBRCDcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkHFTIBRCDcjs._useBroadcastEvent; exports.useCanRedo = _chunkHFTIBRCDcjs.useCanRedo; exports.useCanUndo = _chunkHFTIBRCDcjs.useCanUndo; exports.useClient = _chunkHFTIBRCDcjs.useClient; exports.useCreateAiChat = _chunkHFTIBRCDcjs.useCreateAiChat; exports.useCreateComment = _chunkHFTIBRCDcjs._useCreateComment; exports.useCreateFeed = _chunkHFTIBRCDcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkHFTIBRCDcjs.useCreateFeedMessage; exports.useCreateThread = _chunkHFTIBRCDcjs._useCreateThread; exports.useDeleteAiChat = _chunkHFTIBRCDcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkHFTIBRCDcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkHFTIBRCDcjs.useDeleteComment; exports.useDeleteFeed = _chunkHFTIBRCDcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkHFTIBRCDcjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkHFTIBRCDcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkHFTIBRCDcjs._useDeleteThread; exports.useEditComment = _chunkHFTIBRCDcjs._useEditComment; exports.useEditCommentMetadata = _chunkHFTIBRCDcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkHFTIBRCDcjs._useEditThreadMetadata; exports.useErrorListener = _chunkHFTIBRCDcjs.useErrorListener; exports.useEventListener = _chunkHFTIBRCDcjs._useEventListener; exports.useFeedMessages = _chunkHFTIBRCDcjs._useFeedMessages; exports.useFeeds = _chunkHFTIBRCDcjs._useFeeds; exports.useGroupInfo = _chunkHFTIBRCDcjs.useGroupInfo; exports.useHistory = _chunkHFTIBRCDcjs.useHistory; exports.useHistoryVersionData = _chunkHFTIBRCDcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkHFTIBRCDcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkHFTIBRCDcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkHFTIBRCDcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkHFTIBRCDcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkHFTIBRCDcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkHFTIBRCDcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkHFTIBRCDcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkHFTIBRCDcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkHFTIBRCDcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkHFTIBRCDcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkHFTIBRCDcjs._useMutation; exports.useMyPresence = _chunkHFTIBRCDcjs._useMyPresence; exports.useNotificationSettings = _chunkHFTIBRCDcjs.useNotificationSettings; exports.useOther = _chunkHFTIBRCDcjs._useOther; exports.useOthers = _chunkHFTIBRCDcjs._useOthers; exports.useOthersConnectionIds = _chunkHFTIBRCDcjs.useOthersConnectionIds; exports.useOthersListener = _chunkHFTIBRCDcjs._useOthersListener; exports.useOthersMapped = _chunkHFTIBRCDcjs._useOthersMapped; exports.useRedo = _chunkHFTIBRCDcjs.useRedo; exports.useRemoveReaction = _chunkHFTIBRCDcjs.useRemoveReaction; exports.useRoom = _chunkHFTIBRCDcjs._useRoom; exports.useRoomInfo = _chunkHFTIBRCDcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkHFTIBRCDcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkHFTIBRCDcjs._useSearchComments; exports.useSelf = _chunkHFTIBRCDcjs._useSelf; exports.useSendAiMessage = _chunkHFTIBRCDcjs.useSendAiMessage; exports.useStatus = _chunkHFTIBRCDcjs.useStatus; exports.useStorage = _chunkHFTIBRCDcjs._useStorage; exports.useStorageRoot = _chunkHFTIBRCDcjs._useStorageRoot; exports.useSubscribeToThread = _chunkHFTIBRCDcjs.useSubscribeToThread; exports.useSyncStatus = _chunkHFTIBRCDcjs.useSyncStatus; exports.useThreadSubscription = _chunkHFTIBRCDcjs.useThreadSubscription; exports.useThreads = _chunkHFTIBRCDcjs._useThreads; exports.useUndo = _chunkHFTIBRCDcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkHFTIBRCDcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkHFTIBRCDcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkHFTIBRCDcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkHFTIBRCDcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkHFTIBRCDcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkHFTIBRCDcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkHFTIBRCDcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkHFTIBRCDcjs._useUrlMetadata; exports.useUser = _chunkHFTIBRCDcjs._useUser; exports.useUserThreads_experimental = _chunkHFTIBRCDcjs._useUserThreads_experimental;
|
|
171
187
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC5FA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6F7C;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uhLAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\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 useUpdateRoomSubscriptionSettings,\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 useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps,
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-kE9R5ats.cjs';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aR as useAiChat, aT as useAiChatMessages, aU as useAiChatStatus, aS as useAiChats, aD as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aJ as useCreateAiChat, V as useCreateComment, aw as useCreateFeed, az as useCreateFeedMessage, W as useCreateThread, aK as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, ax as useDeleteFeed, aA as useDeleteFeedMessage, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, av as useFeedMessages, au as useFeeds, aO as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aE as useHistoryVersions, _ as useInboxNotificationThread, aG as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aH as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aN as useRoomInfo, aF as useRoomSubscriptionSettings, aC as useSearchComments, ar as useSelf, aL as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aP as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aV as useUrlMetadata, aQ as useUser, aM as useUserThreads_experimental } from './room-kE9R5ats.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps,
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-kE9R5ats.js';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aR as useAiChat, aT as useAiChatMessages, aU as useAiChatStatus, aS as useAiChats, aD as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aJ as useCreateAiChat, V as useCreateComment, aw as useCreateFeed, az as useCreateFeedMessage, W as useCreateThread, aK as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, ax as useDeleteFeed, aA as useDeleteFeedMessage, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, av as useFeedMessages, au as useFeeds, aO as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aE as useHistoryVersions, _ as useInboxNotificationThread, aG as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aH as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aN as useRoomInfo, aF as useRoomSubscriptionSettings, aC as useSearchComments, ar as useSelf, aL as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aP as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aV as useUrlMetadata, aQ as useUser, aM as useUserThreads_experimental } from './room-kE9R5ats.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A7EFQVZ3.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
_useEditCommentMetadata,
|
|
24
24
|
_useEditThreadMetadata,
|
|
25
25
|
_useEventListener,
|
|
26
|
+
_useFeedMessages,
|
|
27
|
+
_useFeeds,
|
|
26
28
|
_useHistoryVersions,
|
|
27
29
|
_useInboxNotificationThread,
|
|
28
30
|
_useIsInsideRoom,
|
|
@@ -51,9 +53,13 @@ import {
|
|
|
51
53
|
useCanUndo,
|
|
52
54
|
useClient,
|
|
53
55
|
useCreateAiChat,
|
|
56
|
+
useCreateFeed,
|
|
57
|
+
useCreateFeedMessage,
|
|
54
58
|
useDeleteAiChat,
|
|
55
59
|
useDeleteAllInboxNotifications,
|
|
56
60
|
useDeleteComment,
|
|
61
|
+
useDeleteFeed,
|
|
62
|
+
useDeleteFeedMessage,
|
|
57
63
|
useDeleteInboxNotification,
|
|
58
64
|
useErrorListener,
|
|
59
65
|
useGroupInfo,
|
|
@@ -79,9 +85,11 @@ import {
|
|
|
79
85
|
useUndo,
|
|
80
86
|
useUnreadInboxNotificationsCount,
|
|
81
87
|
useUnsubscribeFromThread,
|
|
88
|
+
useUpdateFeedMessage,
|
|
89
|
+
useUpdateFeedMetadata,
|
|
82
90
|
useUpdateNotificationSettings,
|
|
83
91
|
useUpdateRoomSubscriptionSettings
|
|
84
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-EEXHY3OA.js";
|
|
85
93
|
|
|
86
94
|
// src/index.ts
|
|
87
95
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -111,10 +119,14 @@ export {
|
|
|
111
119
|
useClient,
|
|
112
120
|
useCreateAiChat,
|
|
113
121
|
_useCreateComment as useCreateComment,
|
|
122
|
+
useCreateFeed,
|
|
123
|
+
useCreateFeedMessage,
|
|
114
124
|
_useCreateThread as useCreateThread,
|
|
115
125
|
useDeleteAiChat,
|
|
116
126
|
useDeleteAllInboxNotifications,
|
|
117
127
|
useDeleteComment,
|
|
128
|
+
useDeleteFeed,
|
|
129
|
+
useDeleteFeedMessage,
|
|
118
130
|
useDeleteInboxNotification,
|
|
119
131
|
_useDeleteThread as useDeleteThread,
|
|
120
132
|
_useEditComment as useEditComment,
|
|
@@ -122,6 +134,8 @@ export {
|
|
|
122
134
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
123
135
|
useErrorListener,
|
|
124
136
|
_useEventListener as useEventListener,
|
|
137
|
+
_useFeedMessages as useFeedMessages,
|
|
138
|
+
_useFeeds as useFeeds,
|
|
125
139
|
useGroupInfo,
|
|
126
140
|
useHistory,
|
|
127
141
|
useHistoryVersionData,
|
|
@@ -161,6 +175,8 @@ export {
|
|
|
161
175
|
useUndo,
|
|
162
176
|
useUnreadInboxNotificationsCount,
|
|
163
177
|
useUnsubscribeFromThread,
|
|
178
|
+
useUpdateFeedMessage,
|
|
179
|
+
useUpdateFeedMetadata,
|
|
164
180
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
165
181
|
useUpdateNotificationSettings,
|
|
166
182
|
useUpdateRoomSubscriptionSettings,
|
package/dist/index.js.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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\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 useUpdateRoomSubscriptionSettings,\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 useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\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 useUpdateRoomSubscriptionSettings,\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 useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|