New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@liveblocks/react

Package Overview
Dependencies
Maintainers
3
Versions
608
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/react - npm Package Compare versions

Comparing version
3.16.0-flow3
to
3.16.0
+23
dist/chunk-A7EFQVZ3.js
// src/version.ts
var PKG_NAME = "@liveblocks/react";
var PKG_VERSION = "3.16.0";
var PKG_FORMAT = "esm";
// src/ClientSideSuspense.tsx
import { Suspense, useEffect, useState } from "react";
import { jsx } from "react/jsx-runtime";
function ClientSideSuspense(props) {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
return /* @__PURE__ */ jsx(Suspense, { fallback: props.fallback, children: mounted ? typeof props.children === "function" ? props.children() : props.children : props.fallback });
}
export {
PKG_NAME,
PKG_VERSION,
PKG_FORMAT,
ClientSideSuspense
};
//# sourceMappingURL=chunk-A7EFQVZ3.js.map
{"version":3,"sources":["../src/version.ts","../src/ClientSideSuspense.tsx"],"sourcesContent":["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"],"mappings":";AAGO,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ACJ7D,SAAS,UAAU,WAAW,gBAAgB;AAkC1C;AAVG,SAAS,mBAAmB,OAAc;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,YAAU,MAAM;AAGd,eAAW,IAAI;AAAA,EACjB,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,YAAS,UAAU,MAAM,UACvB,oBACG,OAAO,MAAM,aAAa,aACxB,MAAM,SAAS,IACf,MAAM,WACR,MAAM,UACZ;AAEJ;","names":[]}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
var PKG_NAME = "@liveblocks/react";
var PKG_VERSION = "3.16.0";
var PKG_FORMAT = "cjs";
// src/ClientSideSuspense.tsx
var _react = require('react');
var _jsxruntime = require('react/jsx-runtime');
function ClientSideSuspense(props) {
const [mounted, setMounted] = _react.useState.call(void 0, false);
_react.useEffect.call(void 0, () => {
setMounted(true);
}, []);
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: props.fallback, children: mounted ? typeof props.children === "function" ? props.children() : props.children : props.fallback });
}
exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
//# sourceMappingURL=chunk-VSO26OCO.cjs.map
{"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"]}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

+7
-13

@@ -28,7 +28,4 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }

var _chunkHFTIBRCDcjs = require('./chunk-HFTIBRCD.cjs');
var _chunkQEGVIJNNcjs = require('./chunk-QEGVIJNN.cjs');
// src/lib/use-layout-effect.ts

@@ -57,3 +54,3 @@ var _react = require('react');

function useGroup(groupId) {
const client = _chunkQEGVIJNNcjs.useClient.call(void 0, );
const client = _chunkHFTIBRCDcjs.useClient.call(void 0, );
const store = client[_core.kInternal].httpClient.groupsStore;

@@ -67,3 +64,3 @@ const getGroupState = _react.useCallback.call(void 0,

}, [store, groupId]);
return _chunkQEGVIJNNcjs.useSyncExternalStoreWithSelector.call(void 0,
return _chunkHFTIBRCDcjs.useSyncExternalStoreWithSelector.call(void 0,
store.subscribe,

@@ -89,4 +86,4 @@ getGroupState,

const lastInvokedAt = _react.useRef.call(void 0, );
const resolveMentionSuggestions = _chunkQEGVIJNNcjs.useResolveMentionSuggestions.call(void 0, );
const mentionSuggestionsCache = _chunkQEGVIJNNcjs.useMentionSuggestionsCache.call(void 0, );
const resolveMentionSuggestions = _chunkHFTIBRCDcjs.useResolveMentionSuggestions.call(void 0, );
const mentionSuggestionsCache = _chunkHFTIBRCDcjs.useMentionSuggestionsCache.call(void 0, );
_react.useEffect.call(void 0, () => {

@@ -146,3 +143,3 @@ if (search === void 0 || !resolveMentionSuggestions) {

function useSyncSource() {
const client = _chunkQEGVIJNNcjs.useClient.call(void 0, );
const client = _chunkHFTIBRCDcjs.useClient.call(void 0, );
const createSyncSource = client[_core.kInternal].createSyncSource;

@@ -187,6 +184,3 @@ const [syncSource, setSyncSource] = _react.useState.call(void 0, );

exports.getUmbrellaStoreForClient = _chunkQEGVIJNNcjs.getUmbrellaStoreForClient; exports.useAddRoomCommentReaction = _chunkQEGVIJNNcjs.useAddRoomCommentReaction; exports.useClientOrNull = _chunkQEGVIJNNcjs.useClientOrNull; exports.useCreateRoomComment = _chunkQEGVIJNNcjs.useCreateRoomComment; exports.useCreateRoomThread = _chunkQEGVIJNNcjs.useCreateRoomThread; exports.useCreateTextMention = _chunkQEGVIJNNcjs.useCreateTextMention; exports.useDeleteRoomComment = _chunkQEGVIJNNcjs.useDeleteRoomComment; exports.useDeleteRoomThread = _chunkQEGVIJNNcjs.useDeleteRoomThread; exports.useDeleteTextMention = _chunkQEGVIJNNcjs.useDeleteTextMention; exports.useEditRoomComment = _chunkQEGVIJNNcjs.useEditRoomComment; exports.useEditRoomThreadMetadata = _chunkQEGVIJNNcjs.useEditRoomThreadMetadata; exports.useGroup = useGroup; exports.useInitial = _chunkQEGVIJNNcjs.useInitial; exports.useLatest = _chunkQEGVIJNNcjs.useLatest; exports.useLayoutEffect = useLayoutEffect; exports.useMarkRoomThreadAsRead = _chunkQEGVIJNNcjs.useMarkRoomThreadAsRead; exports.useMarkRoomThreadAsResolved = _chunkQEGVIJNNcjs.useMarkRoomThreadAsResolved; exports.useMarkRoomThreadAsUnresolved = _chunkQEGVIJNNcjs.useMarkRoomThreadAsUnresolved; exports.useMentionSuggestions = useMentionSuggestions; exports.useMentionSuggestionsCache = _chunkQEGVIJNNcjs.useMentionSuggestionsCache; exports.useRemoveRoomCommentReaction = _chunkQEGVIJNNcjs.useRemoveRoomCommentReaction; exports.useReportTextEditor = _chunkQEGVIJNNcjs.useReportTextEditor; exports.useResolveMentionSuggestions = _chunkQEGVIJNNcjs.useResolveMentionSuggestions; exports.useRoomAttachmentUrl = _chunkQEGVIJNNcjs.useRoomAttachmentUrl; exports.useRoomPermissions = _chunkQEGVIJNNcjs.useRoomPermissions; exports.useRoomThreadSubscription = _chunkQEGVIJNNcjs.useRoomThreadSubscription; exports.useSignal = _chunkQEGVIJNNcjs.useSignal; exports.useSuspendUntilPresenceReady = _chunkQEGVIJNNcjs.useSuspendUntilPresenceReady; exports.useSuspendUntilStorageReady = _chunkQEGVIJNNcjs.useSuspendUntilStorageReady; exports.useSyncExternalStoreWithSelector = _chunkQEGVIJNNcjs.useSyncExternalStoreWithSelector; exports.useSyncSource = useSyncSource; exports.useYjsProvider = _chunkQEGVIJNNcjs.useYjsProvider;
exports.getUmbrellaStoreForClient = _chunkHFTIBRCDcjs.getUmbrellaStoreForClient; exports.useAddRoomCommentReaction = _chunkHFTIBRCDcjs.useAddRoomCommentReaction; exports.useClientOrNull = _chunkHFTIBRCDcjs.useClientOrNull; exports.useCreateRoomComment = _chunkHFTIBRCDcjs.useCreateRoomComment; exports.useCreateRoomThread = _chunkHFTIBRCDcjs.useCreateRoomThread; exports.useCreateTextMention = _chunkHFTIBRCDcjs.useCreateTextMention; exports.useDeleteRoomComment = _chunkHFTIBRCDcjs.useDeleteRoomComment; exports.useDeleteRoomThread = _chunkHFTIBRCDcjs.useDeleteRoomThread; exports.useDeleteTextMention = _chunkHFTIBRCDcjs.useDeleteTextMention; exports.useEditRoomComment = _chunkHFTIBRCDcjs.useEditRoomComment; exports.useEditRoomThreadMetadata = _chunkHFTIBRCDcjs.useEditRoomThreadMetadata; exports.useGroup = useGroup; exports.useLatest = _chunkHFTIBRCDcjs.useLatest; exports.useLayoutEffect = useLayoutEffect; exports.useMarkRoomThreadAsRead = _chunkHFTIBRCDcjs.useMarkRoomThreadAsRead; exports.useMarkRoomThreadAsResolved = _chunkHFTIBRCDcjs.useMarkRoomThreadAsResolved; exports.useMarkRoomThreadAsUnresolved = _chunkHFTIBRCDcjs.useMarkRoomThreadAsUnresolved; exports.useMentionSuggestions = useMentionSuggestions; exports.useMentionSuggestionsCache = _chunkHFTIBRCDcjs.useMentionSuggestionsCache; exports.useRemoveRoomCommentReaction = _chunkHFTIBRCDcjs.useRemoveRoomCommentReaction; exports.useReportTextEditor = _chunkHFTIBRCDcjs.useReportTextEditor; exports.useResolveMentionSuggestions = _chunkHFTIBRCDcjs.useResolveMentionSuggestions; exports.useRoomAttachmentUrl = _chunkHFTIBRCDcjs.useRoomAttachmentUrl; exports.useRoomPermissions = _chunkHFTIBRCDcjs.useRoomPermissions; exports.useRoomThreadSubscription = _chunkHFTIBRCDcjs.useRoomThreadSubscription; exports.useSignal = _chunkHFTIBRCDcjs.useSignal; exports.useSyncExternalStoreWithSelector = _chunkHFTIBRCDcjs.useSyncExternalStoreWithSelector; exports.useSyncSource = useSyncSource; exports.useYjsProvider = _chunkHFTIBRCDcjs.useYjsProvider;
//# sourceMappingURL=_private.cjs.map

@@ -1,1 +0,1 @@

{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/_private.cjs","../src/lib/use-layout-effect.ts","../src/use-group.ts","../src/use-mention-suggestions.ts","../src/use-sync-source.ts"],"names":["useEffect","kInternal","useState"],"mappings":"AAAA;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;AACF,wDAA6B;AAC7B;AACA;AC9BA,8B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AAA,CAAU,EAAA,GAAM;AAEd,IAAA,MAAM,cAAA,EAAgB,gBAAA,CAAiB,CAAA;AACvC,IAAA,aAAA,CAAc,aAAa,CAAA;AAC3B,IAAA,OAAO,CAAA,EAAA,GAAM,aAAA,CAAc,OAAA,CAAQ,CAAA;AAAA,EACrC,CAAA,EAAG,CAAC,gBAAgB,CAAC,CAAA;AAErB,EAAA,OAAO,UAAA;AACT;AJiIA;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;AACF,qrEAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/_private.cjs","sourcesContent":[null,"/* eslint-disable no-restricted-syntax */\n\nimport { useEffect, useLayoutEffect as useOriginalLayoutEffect } from \"react\";\n\n// On React 18.2.0 and earlier, useLayoutEffect triggers a warning when\n// executed on the server, so this workaround should be used instead.\nexport const useLayoutEffect =\n typeof window !== \"undefined\" ? useOriginalLayoutEffect : useEffect;\n","import {\n type AsyncResult,\n type GroupData,\n kInternal,\n shallow,\n} from \"@liveblocks/core\";\nimport { useCallback, useEffect } from \"react\";\n\nimport { useClient } from \"./contexts\";\nimport type { GroupAsyncResult } from \"./types\";\nimport { useSyncExternalStoreWithSelector } from \"./use-sync-external-store-with-selector\";\n\nfunction selectorFor_useGroup(\n state: AsyncResult<GroupData | undefined> | undefined\n): GroupAsyncResult {\n if (state === undefined || state?.isLoading) {\n return state ?? { isLoading: true };\n }\n\n if (state.error) {\n return state;\n }\n\n return {\n isLoading: false,\n group: state.data,\n };\n}\n\n/** @private - Internal API, do not rely on it. */\nexport function useGroup(groupId: string): GroupAsyncResult {\n const client = useClient();\n const store = client[kInternal].httpClient.groupsStore;\n\n const getGroupState = useCallback(\n () => store.getItemState(groupId),\n [store, groupId]\n );\n\n useEffect(() => {\n void store.enqueue(groupId);\n }, [store, groupId]);\n\n return useSyncExternalStoreWithSelector(\n store.subscribe,\n getGroupState,\n getGroupState,\n selectorFor_useGroup,\n shallow\n );\n}\n","import { type MentionData, stableStringify } from \"@liveblocks/core\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport {\n useMentionSuggestionsCache,\n useResolveMentionSuggestions,\n} from \"./room\";\n\nconst MENTION_SUGGESTIONS_DEBOUNCE = 500;\n\n/**\n * Normalize mention suggestions as `MentionData[]`.\n *\n * Mention suggestions were previously typed as `string[]`, a list of user IDs,\n * but to support multiple mention kinds (user, group, etc), they're now\n * typed as `MentionData[]`.\n */\nfunction normalizeMentionSuggestions<T extends string[] | MentionData[]>(\n suggestions: T\n): MentionData[] {\n return suggestions.map(\n (suggestion): MentionData =>\n typeof suggestion === \"string\"\n ? { kind: \"user\" as const, id: suggestion }\n : suggestion\n );\n}\n\n/**\n * @private For internal use only. Do not rely on this hook.\n *\n * Simplistic debounced search, we don't need to worry too much about deduping\n * and race conditions as there can only be one search at a time.\n */\nexport function useMentionSuggestions(roomId: string, search?: string) {\n const [mentionSuggestions, setMentionSuggestions] = useState<MentionData[]>();\n const lastInvokedAt = useRef<number>();\n\n const resolveMentionSuggestions = useResolveMentionSuggestions();\n const mentionSuggestionsCache = useMentionSuggestionsCache();\n\n useEffect(() => {\n if (search === undefined || !resolveMentionSuggestions) {\n return;\n }\n\n const resolveMentionSuggestionsArgs = { text: search, roomId };\n const mentionSuggestionsCacheKey = stableStringify(\n resolveMentionSuggestionsArgs\n );\n let debounceTimeout: number | undefined;\n let isCanceled = false;\n\n const getMentionSuggestions = async () => {\n try {\n lastInvokedAt.current = performance.now();\n const rawMentionSuggestions = await resolveMentionSuggestions(\n resolveMentionSuggestionsArgs\n );\n\n if (!isCanceled) {\n const normalizedSuggestions = normalizeMentionSuggestions(\n rawMentionSuggestions\n );\n setMentionSuggestions(normalizedSuggestions);\n mentionSuggestionsCache.set(\n mentionSuggestionsCacheKey,\n normalizedSuggestions\n );\n }\n } catch (error) {\n console.error((error as Error)?.message);\n }\n };\n\n if (mentionSuggestionsCache.has(mentionSuggestionsCacheKey)) {\n // If there are already cached mention suggestions, use them immediately.\n const cachedSuggestions = mentionSuggestionsCache.get(\n mentionSuggestionsCacheKey\n );\n setMentionSuggestions(cachedSuggestions);\n } else if (\n !lastInvokedAt.current ||\n Math.abs(performance.now() - lastInvokedAt.current) >\n MENTION_SUGGESTIONS_DEBOUNCE\n ) {\n // If on the debounce's leading edge (either because it's the first invokation or enough\n // time has passed since the last debounce), get mention suggestions immediately.\n void getMentionSuggestions();\n } else {\n // Otherwise, wait for the debounce delay.\n debounceTimeout = window.setTimeout(() => {\n void getMentionSuggestions();\n }, MENTION_SUGGESTIONS_DEBOUNCE);\n }\n\n return () => {\n isCanceled = true;\n window.clearTimeout(debounceTimeout);\n };\n }, [search, roomId, resolveMentionSuggestions, mentionSuggestionsCache]);\n\n return mentionSuggestions;\n}\n","import type { SyncSource } from \"@liveblocks/core\";\nimport { kInternal } from \"@liveblocks/core\";\nimport { useEffect, useState } from \"react\";\n\nimport { useClient } from \"./contexts\";\n\n/**\n * @private For internal use only. Do not rely on this hook.\n */\nexport function useSyncSource(): SyncSource | undefined {\n const client = useClient();\n const createSyncSource = client[kInternal].createSyncSource;\n const [syncSource, setSyncSource] = useState<SyncSource | undefined>();\n\n useEffect(() => {\n // Create new sync source on mount\n const newSyncSource = createSyncSource();\n setSyncSource(newSyncSource);\n return () => newSyncSource.destroy();\n }, [createSyncSource]);\n\n return syncSource;\n}\n"]}
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/_private.cjs","../src/lib/use-layout-effect.ts","../src/use-group.ts","../src/use-mention-suggestions.ts","../src/use-sync-source.ts"],"names":["useEffect","kInternal","useState"],"mappings":"AAAA;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;AAC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AIC,6BAAAA,CAAiC;AAErE,EAAAF,8BAAAA,CAAU,EAAA,GAAM;AAEd,IAAA,MAAM,cAAA,EAAgB,gBAAA,CAAiB,CAAA;AACvC,IAAA,aAAA,CAAc,aAAa,CAAA;AAC3B,IAAA,OAAO,CAAA,EAAA,GAAM,aAAA,CAAc,OAAA,CAAQ,CAAA;AAAA,EACrC,CAAA,EAAG,CAAC,gBAAgB,CAAC,CAAA;AAErB,EAAA,OAAO,UAAA;AACT;AJ8HA;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;AACF,s9DAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/_private.cjs","sourcesContent":[null,"/* eslint-disable no-restricted-syntax */\n\nimport { useEffect, useLayoutEffect as useOriginalLayoutEffect } from \"react\";\n\n// On React 18.2.0 and earlier, useLayoutEffect triggers a warning when\n// executed on the server, so this workaround should be used instead.\nexport const useLayoutEffect =\n typeof window !== \"undefined\" ? useOriginalLayoutEffect : useEffect;\n","import {\n type AsyncResult,\n type GroupData,\n kInternal,\n shallow,\n} from \"@liveblocks/core\";\nimport { useCallback, useEffect } from \"react\";\n\nimport { useClient } from \"./contexts\";\nimport type { GroupAsyncResult } from \"./types\";\nimport { useSyncExternalStoreWithSelector } from \"./use-sync-external-store-with-selector\";\n\nfunction selectorFor_useGroup(\n state: AsyncResult<GroupData | undefined> | undefined\n): GroupAsyncResult {\n if (state === undefined || state?.isLoading) {\n return state ?? { isLoading: true };\n }\n\n if (state.error) {\n return state;\n }\n\n return {\n isLoading: false,\n group: state.data,\n };\n}\n\n/** @private - Internal API, do not rely on it. */\nexport function useGroup(groupId: string): GroupAsyncResult {\n const client = useClient();\n const store = client[kInternal].httpClient.groupsStore;\n\n const getGroupState = useCallback(\n () => store.getItemState(groupId),\n [store, groupId]\n );\n\n useEffect(() => {\n void store.enqueue(groupId);\n }, [store, groupId]);\n\n return useSyncExternalStoreWithSelector(\n store.subscribe,\n getGroupState,\n getGroupState,\n selectorFor_useGroup,\n shallow\n );\n}\n","import { type MentionData, stableStringify } from \"@liveblocks/core\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport {\n useMentionSuggestionsCache,\n useResolveMentionSuggestions,\n} from \"./room\";\n\nconst MENTION_SUGGESTIONS_DEBOUNCE = 500;\n\n/**\n * Normalize mention suggestions as `MentionData[]`.\n *\n * Mention suggestions were previously typed as `string[]`, a list of user IDs,\n * but to support multiple mention kinds (user, group, etc), they're now\n * typed as `MentionData[]`.\n */\nfunction normalizeMentionSuggestions<T extends string[] | MentionData[]>(\n suggestions: T\n): MentionData[] {\n return suggestions.map(\n (suggestion): MentionData =>\n typeof suggestion === \"string\"\n ? { kind: \"user\" as const, id: suggestion }\n : suggestion\n );\n}\n\n/**\n * @private For internal use only. Do not rely on this hook.\n *\n * Simplistic debounced search, we don't need to worry too much about deduping\n * and race conditions as there can only be one search at a time.\n */\nexport function useMentionSuggestions(roomId: string, search?: string) {\n const [mentionSuggestions, setMentionSuggestions] = useState<MentionData[]>();\n const lastInvokedAt = useRef<number>();\n\n const resolveMentionSuggestions = useResolveMentionSuggestions();\n const mentionSuggestionsCache = useMentionSuggestionsCache();\n\n useEffect(() => {\n if (search === undefined || !resolveMentionSuggestions) {\n return;\n }\n\n const resolveMentionSuggestionsArgs = { text: search, roomId };\n const mentionSuggestionsCacheKey = stableStringify(\n resolveMentionSuggestionsArgs\n );\n let debounceTimeout: number | undefined;\n let isCanceled = false;\n\n const getMentionSuggestions = async () => {\n try {\n lastInvokedAt.current = performance.now();\n const rawMentionSuggestions = await resolveMentionSuggestions(\n resolveMentionSuggestionsArgs\n );\n\n if (!isCanceled) {\n const normalizedSuggestions = normalizeMentionSuggestions(\n rawMentionSuggestions\n );\n setMentionSuggestions(normalizedSuggestions);\n mentionSuggestionsCache.set(\n mentionSuggestionsCacheKey,\n normalizedSuggestions\n );\n }\n } catch (error) {\n console.error((error as Error)?.message);\n }\n };\n\n if (mentionSuggestionsCache.has(mentionSuggestionsCacheKey)) {\n // If there are already cached mention suggestions, use them immediately.\n const cachedSuggestions = mentionSuggestionsCache.get(\n mentionSuggestionsCacheKey\n );\n setMentionSuggestions(cachedSuggestions);\n } else if (\n !lastInvokedAt.current ||\n Math.abs(performance.now() - lastInvokedAt.current) >\n MENTION_SUGGESTIONS_DEBOUNCE\n ) {\n // If on the debounce's leading edge (either because it's the first invokation or enough\n // time has passed since the last debounce), get mention suggestions immediately.\n void getMentionSuggestions();\n } else {\n // Otherwise, wait for the debounce delay.\n debounceTimeout = window.setTimeout(() => {\n void getMentionSuggestions();\n }, MENTION_SUGGESTIONS_DEBOUNCE);\n }\n\n return () => {\n isCanceled = true;\n window.clearTimeout(debounceTimeout);\n };\n }, [search, roomId, resolveMentionSuggestions, mentionSuggestionsCache]);\n\n return mentionSuggestions;\n}\n","import type { SyncSource } from \"@liveblocks/core\";\nimport { kInternal } from \"@liveblocks/core\";\nimport { useEffect, useState } from \"react\";\n\nimport { useClient } from \"./contexts\";\n\n/**\n * @private For internal use only. Do not rely on this hook.\n */\nexport function useSyncSource(): SyncSource | undefined {\n const client = useClient();\n const createSyncSource = client[kInternal].createSyncSource;\n const [syncSource, setSyncSource] = useState<SyncSource | undefined>();\n\n useEffect(() => {\n // Create new sync source on mount\n const newSyncSource = createSyncSource();\n setSyncSource(newSyncSource);\n return () => newSyncSource.destroy();\n }, [createSyncSource]);\n\n return syncSource;\n}\n"]}

@@ -1,3 +0,3 @@

import { G as GroupAsyncResult } from './room-BvPZu216.cjs';
export { g as getUmbrellaStoreForClient, a as useAddRoomCommentReaction, u as useClientOrNull, b as useCreateRoomComment, c as useCreateRoomThread, d as useCreateTextMention, e as useDeleteRoomComment, f as useDeleteRoomThread, h as useDeleteTextMention, i as useEditRoomComment, j as useEditRoomThreadMetadata, k as useMarkRoomThreadAsRead, l as useMarkRoomThreadAsResolved, m as useMarkRoomThreadAsUnresolved, n as useMentionSuggestionsCache, o as useRemoveRoomCommentReaction, p as useReportTextEditor, q as useResolveMentionSuggestions, r as useRoomAttachmentUrl, s as useRoomPermissions, t as useRoomThreadSubscription, v as useSuspendUntilPresenceReady, w as useSuspendUntilStorageReady, x as useYjsProvider } from './room-BvPZu216.cjs';
import { G as GroupAsyncResult } from './room-kE9R5ats.cjs';
export { g as getUmbrellaStoreForClient, a as useAddRoomCommentReaction, u as useClientOrNull, b as useCreateRoomComment, c as useCreateRoomThread, d as useCreateTextMention, e as useDeleteRoomComment, f as useDeleteRoomThread, h as useDeleteTextMention, i as useEditRoomComment, j as useEditRoomThreadMetadata, k as useMarkRoomThreadAsRead, l as useMarkRoomThreadAsResolved, m as useMarkRoomThreadAsUnresolved, n as useMentionSuggestionsCache, o as useRemoveRoomCommentReaction, p as useReportTextEditor, q as useResolveMentionSuggestions, r as useRoomAttachmentUrl, s as useRoomPermissions, t as useRoomThreadSubscription, v as useYjsProvider } from './room-kE9R5ats.cjs';
import { MutableRefObject, useEffect } from 'react';

@@ -9,10 +9,2 @@ import { MentionData, ISignal, SyncSource } from '@liveblocks/core';

/**
* "Freezes" a given value, so that it will return the same value/instance on
* each subsequent render. This can be used to freeze "initial" values for
* custom hooks, much like how `useState(initialState)` or
* `useRef(initialValue)` works.
*/
declare function useInitial<T>(value: T, roomId?: string): T;
/**
* Keeps a ref in sync with a given value that may or may not change on

@@ -50,2 +42,2 @@ * every render.

export { useGroup, useInitial, useLatest, useLayoutEffect, useMentionSuggestions, useSignal, useSyncExternalStoreWithSelector, useSyncSource };
export { useGroup, useLatest, useLayoutEffect, useMentionSuggestions, useSignal, useSyncExternalStoreWithSelector, useSyncSource };

@@ -1,3 +0,3 @@

import { G as GroupAsyncResult } from './room-BvPZu216.js';
export { g as getUmbrellaStoreForClient, a as useAddRoomCommentReaction, u as useClientOrNull, b as useCreateRoomComment, c as useCreateRoomThread, d as useCreateTextMention, e as useDeleteRoomComment, f as useDeleteRoomThread, h as useDeleteTextMention, i as useEditRoomComment, j as useEditRoomThreadMetadata, k as useMarkRoomThreadAsRead, l as useMarkRoomThreadAsResolved, m as useMarkRoomThreadAsUnresolved, n as useMentionSuggestionsCache, o as useRemoveRoomCommentReaction, p as useReportTextEditor, q as useResolveMentionSuggestions, r as useRoomAttachmentUrl, s as useRoomPermissions, t as useRoomThreadSubscription, v as useSuspendUntilPresenceReady, w as useSuspendUntilStorageReady, x as useYjsProvider } from './room-BvPZu216.js';
import { G as GroupAsyncResult } from './room-kE9R5ats.js';
export { g as getUmbrellaStoreForClient, a as useAddRoomCommentReaction, u as useClientOrNull, b as useCreateRoomComment, c as useCreateRoomThread, d as useCreateTextMention, e as useDeleteRoomComment, f as useDeleteRoomThread, h as useDeleteTextMention, i as useEditRoomComment, j as useEditRoomThreadMetadata, k as useMarkRoomThreadAsRead, l as useMarkRoomThreadAsResolved, m as useMarkRoomThreadAsUnresolved, n as useMentionSuggestionsCache, o as useRemoveRoomCommentReaction, p as useReportTextEditor, q as useResolveMentionSuggestions, r as useRoomAttachmentUrl, s as useRoomPermissions, t as useRoomThreadSubscription, v as useYjsProvider } from './room-kE9R5ats.js';
import { MutableRefObject, useEffect } from 'react';

@@ -9,10 +9,2 @@ import { MentionData, ISignal, SyncSource } from '@liveblocks/core';

/**
* "Freezes" a given value, so that it will return the same value/instance on
* each subsequent render. This can be used to freeze "initial" values for
* custom hooks, much like how `useState(initialState)` or
* `useRef(initialValue)` works.
*/
declare function useInitial<T>(value: T, roomId?: string): T;
/**
* Keeps a ref in sync with a given value that may or may not change on

@@ -50,2 +42,2 @@ * every render.

export { useGroup, useInitial, useLatest, useLayoutEffect, useMentionSuggestions, useSignal, useSyncExternalStoreWithSelector, useSyncSource };
export { useGroup, useLatest, useLayoutEffect, useMentionSuggestions, useSignal, useSyncExternalStoreWithSelector, useSyncSource };

@@ -14,3 +14,2 @@ import {

useEditRoomThreadMetadata,
useInitial,
useLatest,

@@ -28,7 +27,5 @@ useMarkRoomThreadAsRead,

useSignal,
useSuspendUntilPresenceReady,
useSuspendUntilStorageReady,
useSyncExternalStoreWithSelector,
useYjsProvider
} from "./chunk-2VF57BZV.js";
} from "./chunk-EEXHY3OA.js";

@@ -167,3 +164,2 @@ // src/lib/use-layout-effect.ts

useGroup,
useInitial,
useLatest,

@@ -183,4 +179,2 @@ useLayoutEffect,

useSignal,
useSuspendUntilPresenceReady,
useSuspendUntilStorageReady,
useSyncExternalStoreWithSelector,

@@ -187,0 +181,0 @@ useSyncSource,

@@ -1,1 +0,1 @@

{"version":3,"sources":["../src/lib/use-layout-effect.ts","../src/use-group.ts","../src/use-mention-suggestions.ts","../src/use-sync-source.ts"],"sourcesContent":["/* eslint-disable no-restricted-syntax */\n\nimport { useEffect, useLayoutEffect as useOriginalLayoutEffect } from \"react\";\n\n// On React 18.2.0 and earlier, useLayoutEffect triggers a warning when\n// executed on the server, so this workaround should be used instead.\nexport const useLayoutEffect =\n typeof window !== \"undefined\" ? useOriginalLayoutEffect : useEffect;\n","import {\n type AsyncResult,\n type GroupData,\n kInternal,\n shallow,\n} from \"@liveblocks/core\";\nimport { useCallback, useEffect } from \"react\";\n\nimport { useClient } from \"./contexts\";\nimport type { GroupAsyncResult } from \"./types\";\nimport { useSyncExternalStoreWithSelector } from \"./use-sync-external-store-with-selector\";\n\nfunction selectorFor_useGroup(\n state: AsyncResult<GroupData | undefined> | undefined\n): GroupAsyncResult {\n if (state === undefined || state?.isLoading) {\n return state ?? { isLoading: true };\n }\n\n if (state.error) {\n return state;\n }\n\n return {\n isLoading: false,\n group: state.data,\n };\n}\n\n/** @private - Internal API, do not rely on it. */\nexport function useGroup(groupId: string): GroupAsyncResult {\n const client = useClient();\n const store = client[kInternal].httpClient.groupsStore;\n\n const getGroupState = useCallback(\n () => store.getItemState(groupId),\n [store, groupId]\n );\n\n useEffect(() => {\n void store.enqueue(groupId);\n }, [store, groupId]);\n\n return useSyncExternalStoreWithSelector(\n store.subscribe,\n getGroupState,\n getGroupState,\n selectorFor_useGroup,\n shallow\n );\n}\n","import { type MentionData, stableStringify } from \"@liveblocks/core\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport {\n useMentionSuggestionsCache,\n useResolveMentionSuggestions,\n} from \"./room\";\n\nconst MENTION_SUGGESTIONS_DEBOUNCE = 500;\n\n/**\n * Normalize mention suggestions as `MentionData[]`.\n *\n * Mention suggestions were previously typed as `string[]`, a list of user IDs,\n * but to support multiple mention kinds (user, group, etc), they're now\n * typed as `MentionData[]`.\n */\nfunction normalizeMentionSuggestions<T extends string[] | MentionData[]>(\n suggestions: T\n): MentionData[] {\n return suggestions.map(\n (suggestion): MentionData =>\n typeof suggestion === \"string\"\n ? { kind: \"user\" as const, id: suggestion }\n : suggestion\n );\n}\n\n/**\n * @private For internal use only. Do not rely on this hook.\n *\n * Simplistic debounced search, we don't need to worry too much about deduping\n * and race conditions as there can only be one search at a time.\n */\nexport function useMentionSuggestions(roomId: string, search?: string) {\n const [mentionSuggestions, setMentionSuggestions] = useState<MentionData[]>();\n const lastInvokedAt = useRef<number>();\n\n const resolveMentionSuggestions = useResolveMentionSuggestions();\n const mentionSuggestionsCache = useMentionSuggestionsCache();\n\n useEffect(() => {\n if (search === undefined || !resolveMentionSuggestions) {\n return;\n }\n\n const resolveMentionSuggestionsArgs = { text: search, roomId };\n const mentionSuggestionsCacheKey = stableStringify(\n resolveMentionSuggestionsArgs\n );\n let debounceTimeout: number | undefined;\n let isCanceled = false;\n\n const getMentionSuggestions = async () => {\n try {\n lastInvokedAt.current = performance.now();\n const rawMentionSuggestions = await resolveMentionSuggestions(\n resolveMentionSuggestionsArgs\n );\n\n if (!isCanceled) {\n const normalizedSuggestions = normalizeMentionSuggestions(\n rawMentionSuggestions\n );\n setMentionSuggestions(normalizedSuggestions);\n mentionSuggestionsCache.set(\n mentionSuggestionsCacheKey,\n normalizedSuggestions\n );\n }\n } catch (error) {\n console.error((error as Error)?.message);\n }\n };\n\n if (mentionSuggestionsCache.has(mentionSuggestionsCacheKey)) {\n // If there are already cached mention suggestions, use them immediately.\n const cachedSuggestions = mentionSuggestionsCache.get(\n mentionSuggestionsCacheKey\n );\n setMentionSuggestions(cachedSuggestions);\n } else if (\n !lastInvokedAt.current ||\n Math.abs(performance.now() - lastInvokedAt.current) >\n MENTION_SUGGESTIONS_DEBOUNCE\n ) {\n // If on the debounce's leading edge (either because it's the first invokation or enough\n // time has passed since the last debounce), get mention suggestions immediately.\n void getMentionSuggestions();\n } else {\n // Otherwise, wait for the debounce delay.\n debounceTimeout = window.setTimeout(() => {\n void getMentionSuggestions();\n }, MENTION_SUGGESTIONS_DEBOUNCE);\n }\n\n return () => {\n isCanceled = true;\n window.clearTimeout(debounceTimeout);\n };\n }, [search, roomId, resolveMentionSuggestions, mentionSuggestionsCache]);\n\n return mentionSuggestions;\n}\n","import type { SyncSource } from \"@liveblocks/core\";\nimport { kInternal } from \"@liveblocks/core\";\nimport { useEffect, useState } from \"react\";\n\nimport { useClient } from \"./contexts\";\n\n/**\n * @private For internal use only. Do not rely on this hook.\n */\nexport function useSyncSource(): SyncSource | undefined {\n const client = useClient();\n const createSyncSource = client[kInternal].createSyncSource;\n const [syncSource, setSyncSource] = useState<SyncSource | undefined>();\n\n useEffect(() => {\n // Create new sync source on mount\n const newSyncSource = createSyncSource();\n setSyncSource(newSyncSource);\n return () => newSyncSource.destroy();\n }, [createSyncSource]);\n\n return syncSource;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,WAAW,mBAAmB,+BAA+B;AAI/D,IAAM,kBACX,OAAO,WAAW,cAAc,0BAA0B;;;ACP5D;AAAA,EAGE;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa,aAAAA,kBAAiB;AAMvC,SAAS,qBACP,OACkB;AAClB,MAAI,UAAU,UAAa,OAAO,WAAW;AAC3C,WAAO,SAAS,EAAE,WAAW,KAAK;AAAA,EACpC;AAEA,MAAI,MAAM,OAAO;AACf,WAAO;A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ACF;AACA,gCAAsB,qBAAqB;AAC3C,kCAAwB;AAAA,YACtB;AAAA,YACA;AAAA,UACF;AAAA,QACF;AAAA,MACF,SAAS,OAAO;AACd,gBAAQ,MAAO,OAAiB,OAAO;AAAA,MACzC;AAAA,IACF;AAEA,QAAI,wBAAwB,IAAI,0BAA0B,GAAG;AAE3D,YAAM,oBAAoB,wBAAwB;AAAA,QAChD;AAAA,MACF;AACA,4BAAsB,iBAAiB;AAAA,IACzC,WACE,CAAC,cAAc,WACf,KAAK,IAAI,YAAY,IAAI,IAAI,cAAc,OAAO,IAChD,8BACF;AAGA,WAAK,sBAAsB;AAAA,IAC7B,OAAO;AAEL,wBAAkB,OAAO,WAAW,MAAM;AACxC,aAAK,sBAAsB;AAAA,MAC7B,GAAG,4BAA4B;AAAA,IACjC;AAEA,WAAO,MAAM;AACX,mBAAa;AACb,aAAO,aAAa,eAAe;AAAA,IACrC;AAAA,EACF,GAAG,CAAC,QAAQ,QAAQ,2BAA2B,uBAAuB,CAAC;AAEvE,SAAO;AACT;;;ACtGA,SAAS,aAAAC,kBAAiB;AAC1B,SAAS,aAAAC,YAAW,YAAAC,iBAAgB;AAO7B,SAAS,gBAAwC;AACtD,QAAM,SAAS,UAAU;AACzB,QAAM,mBAAmB,OAAOC,UAAS,EAAE;AAC3C,QAAM,CAAC,YAAY,aAAa,IAAIC,UAAiC;AAErE,EAAAC,WAAU,MAAM;AAEd,UAAM,gBAAgB,iBAAiB;AACvC,kBAAc,aAAa;AAC3B,WAAO,MAAM,cAAc,QAAQ;AAAA,EACrC,GAAG,CAAC,gBAAgB,CAAC;AAErB,SAAO;AACT;","names":["useEffect","useEffect","useEffect","useEffect","kInternal","useEffect","useState","kInternal","useState","useEffect"]}
{"version":3,"sources":["../src/lib/use-layout-effect.ts","../src/use-group.ts","../src/use-mention-suggestions.ts","../src/use-sync-source.ts"],"sourcesContent":["/* eslint-disable no-restricted-syntax */\n\nimport { useEffect, useLayoutEffect as useOriginalLayoutEffect } from \"react\";\n\n// On React 18.2.0 and earlier, useLayoutEffect triggers a warning when\n// executed on the server, so this workaround should be used instead.\nexport const useLayoutEffect =\n typeof window !== \"undefined\" ? useOriginalLayoutEffect : useEffect;\n","import {\n type AsyncResult,\n type GroupData,\n kInternal,\n shallow,\n} from \"@liveblocks/core\";\nimport { useCallback, useEffect } from \"react\";\n\nimport { useClient } from \"./contexts\";\nimport type { GroupAsyncResult } from \"./types\";\nimport { useSyncExternalStoreWithSelector } from \"./use-sync-external-store-with-selector\";\n\nfunction selectorFor_useGroup(\n state: AsyncResult<GroupData | undefined> | undefined\n): GroupAsyncResult {\n if (state === undefined || state?.isLoading) {\n return state ?? { isLoading: true };\n }\n\n if (state.error) {\n return state;\n }\n\n return {\n isLoading: false,\n group: state.data,\n };\n}\n\n/** @private - Internal API, do not rely on it. */\nexport function useGroup(groupId: string): GroupAsyncResult {\n const client = useClient();\n const store = client[kInternal].httpClient.groupsStore;\n\n const getGroupState = useCallback(\n () => store.getItemState(groupId),\n [store, groupId]\n );\n\n useEffect(() => {\n void store.enqueue(groupId);\n }, [store, groupId]);\n\n return useSyncExternalStoreWithSelector(\n store.subscribe,\n getGroupState,\n getGroupState,\n selectorFor_useGroup,\n shallow\n );\n}\n","import { type MentionData, stableStringify } from \"@liveblocks/core\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport {\n useMentionSuggestionsCache,\n useResolveMentionSuggestions,\n} from \"./room\";\n\nconst MENTION_SUGGESTIONS_DEBOUNCE = 500;\n\n/**\n * Normalize mention suggestions as `MentionData[]`.\n *\n * Mention suggestions were previously typed as `string[]`, a list of user IDs,\n * but to support multiple mention kinds (user, group, etc), they're now\n * typed as `MentionData[]`.\n */\nfunction normalizeMentionSuggestions<T extends string[] | MentionData[]>(\n suggestions: T\n): MentionData[] {\n return suggestions.map(\n (suggestion): MentionData =>\n typeof suggestion === \"string\"\n ? { kind: \"user\" as const, id: suggestion }\n : suggestion\n );\n}\n\n/**\n * @private For internal use only. Do not rely on this hook.\n *\n * Simplistic debounced search, we don't need to worry too much about deduping\n * and race conditions as there can only be one search at a time.\n */\nexport function useMentionSuggestions(roomId: string, search?: string) {\n const [mentionSuggestions, setMentionSuggestions] = useState<MentionData[]>();\n const lastInvokedAt = useRef<number>();\n\n const resolveMentionSuggestions = useResolveMentionSuggestions();\n const mentionSuggestionsCache = useMentionSuggestionsCache();\n\n useEffect(() => {\n if (search === undefined || !resolveMentionSuggestions) {\n return;\n }\n\n const resolveMentionSuggestionsArgs = { text: search, roomId };\n const mentionSuggestionsCacheKey = stableStringify(\n resolveMentionSuggestionsArgs\n );\n let debounceTimeout: number | undefined;\n let isCanceled = false;\n\n const getMentionSuggestions = async () => {\n try {\n lastInvokedAt.current = performance.now();\n const rawMentionSuggestions = await resolveMentionSuggestions(\n resolveMentionSuggestionsArgs\n );\n\n if (!isCanceled) {\n const normalizedSuggestions = normalizeMentionSuggestions(\n rawMentionSuggestions\n );\n setMentionSuggestions(normalizedSuggestions);\n mentionSuggestionsCache.set(\n mentionSuggestionsCacheKey,\n normalizedSuggestions\n );\n }\n } catch (error) {\n console.error((error as Error)?.message);\n }\n };\n\n if (mentionSuggestionsCache.has(mentionSuggestionsCacheKey)) {\n // If there are already cached mention suggestions, use them immediately.\n const cachedSuggestions = mentionSuggestionsCache.get(\n mentionSuggestionsCacheKey\n );\n setMentionSuggestions(cachedSuggestions);\n } else if (\n !lastInvokedAt.current ||\n Math.abs(performance.now() - lastInvokedAt.current) >\n MENTION_SUGGESTIONS_DEBOUNCE\n ) {\n // If on the debounce's leading edge (either because it's the first invokation or enough\n // time has passed since the last debounce), get mention suggestions immediately.\n void getMentionSuggestions();\n } else {\n // Otherwise, wait for the debounce delay.\n debounceTimeout = window.setTimeout(() => {\n void getMentionSuggestions();\n }, MENTION_SUGGESTIONS_DEBOUNCE);\n }\n\n return () => {\n isCanceled = true;\n window.clearTimeout(debounceTimeout);\n };\n }, [search, roomId, resolveMentionSuggestions, mentionSuggestionsCache]);\n\n return mentionSuggestions;\n}\n","import type { SyncSource } from \"@liveblocks/core\";\nimport { kInternal } from \"@liveblocks/core\";\nimport { useEffect, useState } from \"react\";\n\nimport { useClient } from \"./contexts\";\n\n/**\n * @private For internal use only. Do not rely on this hook.\n */\nexport function useSyncSource(): SyncSource | undefined {\n const client = useClient();\n const createSyncSource = client[kInternal].createSyncSource;\n const [syncSource, setSyncSource] = useState<SyncSource | undefined>();\n\n useEffect(() => {\n // Create new sync source on mount\n const newSyncSource = createSyncSource();\n setSyncSource(newSyncSource);\n return () => newSyncSource.destroy();\n }, [createSyncSource]);\n\n return syncSource;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,WAAW,mBAAmB,+BAA+B;AAI/D,IAAM,kBACX,OAAO,WAAW,cAAc,0BAA0B;;;ACP5D;AAAA,EAGE;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa,aAAAA,kBAAiB;AAMvC,SAAS,qBACP,OACkB;AAClB,MAAI,UAAU,UAAa,OAAO,WAAW;AAC3C,WAAO,SAAS,EAAE,WAAW,KAAK;AAAA,EACpC;AAEA,MAAI,MAAM,OAAO;AACf,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL,WAAW;AAAA,IACX,OAAO,MAAM;AAAA,EACf;AACF;AAGO,SAAS,SAAS,SAAmC;AAC1D,QAAM,SAAS,UAAU;AACzB,QAAM,QAAQ,OAAO,SAAS,EAAE,WAAW;AAE3C,QAAM,gBAAgB;AAAA,IACpB,MAAM,MAAM,aAAa,OAAO;AAAA,IAChC,CAAC,OAAO,OAAO;AAAA,EACjB;AAEA,EAAAC,WAAU,MAAM;AACd,SAAK,MAAM,QAAQ,OAAO;AAAA,EAC5B,GAAG,CAAC,OAAO,OAAO,CAAC;AAEnB,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;;;AClDA,SAA2B,uBAAuB;AAClD,SAAS,aAAAC,YAAW,QAAQ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AAM;AACX,mBAAa;AACb,aAAO,aAAa,eAAe;AAAA,IACrC;AAAA,EACF,GAAG,CAAC,QAAQ,QAAQ,2BAA2B,uBAAuB,CAAC;AAEvE,SAAO;AACT;;;ACtGA,SAAS,aAAAC,kBAAiB;AAC1B,SAAS,aAAAC,YAAW,YAAAC,iBAAgB;AAO7B,SAAS,gBAAwC;AACtD,QAAM,SAAS,UAAU;AACzB,QAAM,mBAAmB,OAAOC,UAAS,EAAE;AAC3C,QAAM,CAAC,YAAY,aAAa,IAAIC,UAAiC;AAErE,EAAAC,WAAU,MAAM;AAEd,UAAM,gBAAgB,iBAAiB;AACvC,kBAAc,aAAa;AAC3B,WAAO,MAAM,cAAc,QAAQ;AAAA,EACrC,GAAG,CAAC,gBAAgB,CAAC;AAErB,SAAO;AACT;","names":["useEffect","useEffect","useEffect","useEffect","kInternal","useEffect","useState","kInternal","useState","useEffect"]}

@@ -6,3 +6,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkHULSMHSUcjs = require('./chunk-HULSMHSU.cjs');
var _chunkVSO26OCOcjs = require('./chunk-VSO26OCO.cjs');

@@ -85,8 +85,16 @@

var _chunkQEGVIJNNcjs = require('./chunk-QEGVIJNN.cjs');
var _chunkHFTIBRCDcjs = require('./chunk-HFTIBRCD.cjs');
// src/index.ts
var _core = require('@liveblocks/core');
var _client = require('@liveblocks/client');
_core.detectDupes.call(void 0, _chunkHULSMHSUcjs.PKG_NAME, _chunkHULSMHSUcjs.PKG_VERSION, _chunkHULSMHSUcjs.PKG_FORMAT);
_core.detectDupes.call(void 0, _chunkVSO26OCOcjs.PKG_NAME, _chunkVSO26OCOcjs.PKG_VERSION, _chunkVSO26OCOcjs.PKG_FORMAT);

@@ -172,3 +180,11 @@

exports.ClientContext = _chunkQEGVIJNNcjs.ClientContext; exports.ClientSideSuspense = _chunkHULSMHSUcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQEGVIJNNcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQEGVIJNNcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQEGVIJNNcjs.RegisterAiTool; exports.RoomContext = _chunkQEGVIJNNcjs.GlobalRoomContext; exports.RoomProvider = _chunkQEGVIJNNcjs._RoomProvider; exports.createLiveblocksContext = _chunkQEGVIJNNcjs.createLiveblocksContext; exports.createRoomContext = _chunkQEGVIJNNcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQEGVIJNNcjs._useAddReaction; exports.useAiChat = _chunkQEGVIJNNcjs._useAiChat; exports.useAiChatMessages = _chunkQEGVIJNNcjs._useAiChatMessages; exports.useAiChatStatus = _chunkQEGVIJNNcjs.useAiChatStatus; exports.useAiChats = _chunkQEGVIJNNcjs._useAiChats; exports.useAttachmentUrl = _chunkQEGVIJNNcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkQEGVIJNNcjs._useBroadcastEvent; exports.useCanRedo = _chunkQEGVIJNNcjs.useCanRedo; exports.useCanUndo = _chunkQEGVIJNNcjs.useCanUndo; exports.useClient = _chunkQEGVIJNNcjs.useClient; exports.useCreateAiChat = _chunkQEGVIJNNcjs.useCreateAiChat; exports.useCreateComment = _chunkQEGVIJNNcjs._useCreateComment; exports.useCreateThread = _chunkQEGVIJNNcjs._useCreateThread; exports.useDeleteAiChat = _chunkQEGVIJNNcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQEGVIJNNcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQEGVIJNNcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQEGVIJNNcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQEGVIJNNcjs._useDeleteThread; exports.useEditComment = _chunkQEGVIJNNcjs._useEditComment; exports.useEditCommentMetadata = _chunkQEGVIJNNcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQEGVIJNNcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQEGVIJNNcjs.useErrorListener; exports.useEventListener = _chunkQEGVIJNNcjs._useEventListener; exports.useGroupInfo = _chunkQEGVIJNNcjs.useGroupInfo; exports.useHistory = _chunkQEGVIJNNcjs.useHistory; exports.useHistoryVersionData = _chunkQEGVIJNNcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkQEGVIJNNcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkQEGVIJNNcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQEGVIJNNcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkQEGVIJNNcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQEGVIJNNcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQEGVIJNNcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQEGVIJNNcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQEGVIJNNcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQEGVIJNNcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQEGVIJNNcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQEGVIJNNcjs._useMutation; exports.useMyPresence = _chunkQEGVIJNNcjs._useMyPresence; exports.useNotificationSettings = _chunkQEGVIJNNcjs.useNotificationSettings; exports.useOther = _chunkQEGVIJNNcjs._useOther; exports.useOthers = _chunkQEGVIJNNcjs._useOthers; exports.useOthersConnectionIds = _chunkQEGVIJNNcjs.useOthersConnectionIds; exports.useOthersListener = _chunkQEGVIJNNcjs._useOthersListener; exports.useOthersMapped = _chunkQEGVIJNNcjs._useOthersMapped; exports.useRedo = _chunkQEGVIJNNcjs.useRedo; exports.useRemoveReaction = _chunkQEGVIJNNcjs.useRemoveReaction; exports.useRoom = _chunkQEGVIJNNcjs._useRoom; exports.useRoomInfo = _chunkQEGVIJNNcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkQEGVIJNNcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkQEGVIJNNcjs._useSearchComments; exports.useSelf = _chunkQEGVIJNNcjs._useSelf; exports.useSendAiMessage = _chunkQEGVIJNNcjs.useSendAiMessage; exports.useStatus = _chunkQEGVIJNNcjs.useStatus; exports.useStorage = _chunkQEGVIJNNcjs._useStorage; exports.useStorageRoot = _chunkQEGVIJNNcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQEGVIJNNcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQEGVIJNNcjs.useSyncStatus; exports.useThreadSubscription = _chunkQEGVIJNNcjs.useThreadSubscription; exports.useThreads = _chunkQEGVIJNNcjs._useThreads; exports.useUndo = _chunkQEGVIJNNcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQEGVIJNNcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkQEGVIJNNcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQEGVIJNNcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQEGVIJNNcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQEGVIJNNcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQEGVIJNNcjs._useUrlMetadata; exports.useUser = _chunkQEGVIJNNcjs._useUser; exports.useUserThreads_experimental = _chunkQEGVIJNNcjs._useUserThreads_experimental;
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;
//# sourceMappingURL=index.cjs.map

@@ -1,1 +0,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;ACpFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADqF7C;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;AACF,yhKAAC","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 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"]}
{"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"]}

@@ -1,3 +0,3 @@

import { R as RegisterAiKnowledgeProps, y as RegisterAiToolProps } from './room-BvPZu216.cjs';
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, B as RoomContext, P as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, z as UseThreadsOptions, E as createLiveblocksContext, O as createRoomContext, Q as useAddReaction, aL as useAiChat, aN as useAiChatMessages, aO as useAiChatStatus, aM as useAiChats, ax as useAttachmentUrl, T as useBroadcastEvent, V as useCanRedo, W as useCanUndo, D as useClient, aD as useCreateAiChat, X as useCreateComment, Y as useCreateThread, aE as useDeleteAiChat, F as useDeleteAllInboxNotifications, Z as useDeleteComment, H as useDeleteInboxNotification, $ as useDeleteThread, a0 as useEditComment, a2 as useEditCommentMetadata, a1 as useEditThreadMetadata, I as useErrorListener, a7 as useEventListener, aI as useGroupInfo, a8 as useHistory, ao as useHistoryVersionData, ay as useHistoryVersions, _ as useInboxNotificationThread, aA as useInboxNotifications, a9 as useIsInsideRoom, aa as useLostConnectionListener, J as useMarkAllInboxNotificationsAsRead, K as useMarkInboxNotificationAsRead, ab as useMarkThreadAsRead, a3 as useMarkThreadAsResolved, a4 as useMarkThreadAsUnresolved, ac as useMutation, ad as useMyPresence, aB as useNotificationSettings, ap as useOther, aq as useOthers, ar as useOthersConnectionIds, ae as useOthersListener, as as useOthersMapped, af as useRedo, ag as useRemoveReaction, ah as useRoom, aH as useRoomInfo, az as useRoomSubscriptionSettings, aw as useSearchComments, at as useSelf, aF as useSendAiMessage, ai as useStatus, au as useStorage, aj as useStorageRoot, a5 as useSubscribeToThread, N as useSyncStatus, ak as useThreadSubscription, av as useThreads, al as useUndo, aJ as useUnreadInboxNotificationsCount, a6 as useUnsubscribeFromThread, am as useUpdateMyPresence, aC as useUpdateNotificationSettings, an as useUpdateRoomSubscriptionSettings, aP as useUrlMetadata, aK as useUser, aG as useUserThreads_experimental } from './room-BvPZu216.cjs';
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-kE9R5ats.cjs';
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';
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';

@@ -4,0 +4,0 @@ import * as react_jsx_runtime from 'react/jsx-runtime';

@@ -1,3 +0,3 @@

import { R as RegisterAiKnowledgeProps, y as RegisterAiToolProps } from './room-BvPZu216.js';
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, B as RoomContext, P as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, z as UseThreadsOptions, E as createLiveblocksContext, O as createRoomContext, Q as useAddReaction, aL as useAiChat, aN as useAiChatMessages, aO as useAiChatStatus, aM as useAiChats, ax as useAttachmentUrl, T as useBroadcastEvent, V as useCanRedo, W as useCanUndo, D as useClient, aD as useCreateAiChat, X as useCreateComment, Y as useCreateThread, aE as useDeleteAiChat, F as useDeleteAllInboxNotifications, Z as useDeleteComment, H as useDeleteInboxNotification, $ as useDeleteThread, a0 as useEditComment, a2 as useEditCommentMetadata, a1 as useEditThreadMetadata, I as useErrorListener, a7 as useEventListener, aI as useGroupInfo, a8 as useHistory, ao as useHistoryVersionData, ay as useHistoryVersions, _ as useInboxNotificationThread, aA as useInboxNotifications, a9 as useIsInsideRoom, aa as useLostConnectionListener, J as useMarkAllInboxNotificationsAsRead, K as useMarkInboxNotificationAsRead, ab as useMarkThreadAsRead, a3 as useMarkThreadAsResolved, a4 as useMarkThreadAsUnresolved, ac as useMutation, ad as useMyPresence, aB as useNotificationSettings, ap as useOther, aq as useOthers, ar as useOthersConnectionIds, ae as useOthersListener, as as useOthersMapped, af as useRedo, ag as useRemoveReaction, ah as useRoom, aH as useRoomInfo, az as useRoomSubscriptionSettings, aw as useSearchComments, at as useSelf, aF as useSendAiMessage, ai as useStatus, au as useStorage, aj as useStorageRoot, a5 as useSubscribeToThread, N as useSyncStatus, ak as useThreadSubscription, av as useThreads, al as useUndo, aJ as useUnreadInboxNotificationsCount, a6 as useUnsubscribeFromThread, am as useUpdateMyPresence, aC as useUpdateNotificationSettings, an as useUpdateRoomSubscriptionSettings, aP as useUrlMetadata, aK as useUser, aG as useUserThreads_experimental } from './room-BvPZu216.js';
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-kE9R5ats.js';
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';
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';

@@ -4,0 +4,0 @@ import * as react_jsx_runtime from 'react/jsx-runtime';

@@ -6,3 +6,3 @@ import {

PKG_VERSION
} from "./chunk-5YUDJVMF.js";
} from "./chunk-A7EFQVZ3.js";
import {

@@ -27,2 +27,4 @@ ClientContext,

_useEventListener,
_useFeedMessages,
_useFeeds,
_useHistoryVersions,

@@ -56,5 +58,9 @@ _useInboxNotificationThread,

useCreateAiChat,
useCreateFeed,
useCreateFeedMessage,
useDeleteAiChat,
useDeleteAllInboxNotifications,
useDeleteComment,
useDeleteFeed,
useDeleteFeedMessage,
useDeleteInboxNotification,

@@ -85,5 +91,7 @@ useErrorListener,

useUnsubscribeFromThread,
useUpdateFeedMessage,
useUpdateFeedMetadata,
useUpdateNotificationSettings,
useUpdateRoomSubscriptionSettings
} from "./chunk-2VF57BZV.js";
} from "./chunk-EEXHY3OA.js";

@@ -118,2 +126,4 @@ // src/index.ts

_useCreateComment as useCreateComment,
useCreateFeed,
useCreateFeedMessage,
_useCreateThread as useCreateThread,

@@ -123,2 +133,4 @@ useDeleteAiChat,

useDeleteComment,
useDeleteFeed,
useDeleteFeedMessage,
useDeleteInboxNotification,

@@ -131,2 +143,4 @@ _useDeleteThread as useDeleteThread,

_useEventListener as useEventListener,
_useFeedMessages as useFeedMessages,
_useFeeds as useFeeds,
useGroupInfo,

@@ -171,2 +185,4 @@ useHistory,

useUnsubscribeFromThread,
useUpdateFeedMessage,
useUpdateFeedMetadata,
_useUpdateMyPresence as useUpdateMyPresence,

@@ -173,0 +189,0 @@ useUpdateNotificationSettings,

@@ -1,1 +0,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
{"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":[]}

@@ -6,3 +6,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkHULSMHSUcjs = require('./chunk-HULSMHSU.cjs');
var _chunkVSO26OCOcjs = require('./chunk-VSO26OCO.cjs');

@@ -81,8 +81,16 @@

var _chunkQEGVIJNNcjs = require('./chunk-QEGVIJNN.cjs');
var _chunkHFTIBRCDcjs = require('./chunk-HFTIBRCD.cjs');
// src/suspense.ts
var _core = require('@liveblocks/core');
var _client = require('@liveblocks/client');
_core.detectDupes.call(void 0, _chunkHULSMHSUcjs.PKG_NAME, _chunkHULSMHSUcjs.PKG_VERSION, _chunkHULSMHSUcjs.PKG_FORMAT);
_core.detectDupes.call(void 0, _chunkVSO26OCOcjs.PKG_NAME, _chunkVSO26OCOcjs.PKG_VERSION, _chunkVSO26OCOcjs.PKG_FORMAT);

@@ -164,3 +172,11 @@

exports.ClientContext = _chunkQEGVIJNNcjs.ClientContext; exports.ClientSideSuspense = _chunkHULSMHSUcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQEGVIJNNcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQEGVIJNNcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQEGVIJNNcjs.RegisterAiTool; exports.RoomContext = _chunkQEGVIJNNcjs.GlobalRoomContext; exports.RoomProvider = _chunkQEGVIJNNcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQEGVIJNNcjs._useAddReaction; exports.useAiChat = _chunkQEGVIJNNcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkQEGVIJNNcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkQEGVIJNNcjs.useAiChatStatus; exports.useAiChats = _chunkQEGVIJNNcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkQEGVIJNNcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkQEGVIJNNcjs._useBroadcastEvent; exports.useCanRedo = _chunkQEGVIJNNcjs.useCanRedo; exports.useCanUndo = _chunkQEGVIJNNcjs.useCanUndo; exports.useClient = _chunkQEGVIJNNcjs.useClient; exports.useCreateAiChat = _chunkQEGVIJNNcjs.useCreateAiChat; exports.useCreateComment = _chunkQEGVIJNNcjs._useCreateComment; exports.useCreateThread = _chunkQEGVIJNNcjs._useCreateThread; exports.useDeleteAiChat = _chunkQEGVIJNNcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQEGVIJNNcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQEGVIJNNcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQEGVIJNNcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQEGVIJNNcjs._useDeleteThread; exports.useEditComment = _chunkQEGVIJNNcjs._useEditComment; exports.useEditCommentMetadata = _chunkQEGVIJNNcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQEGVIJNNcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQEGVIJNNcjs.useErrorListener; exports.useEventListener = _chunkQEGVIJNNcjs._useEventListener; exports.useGroupInfo = _chunkQEGVIJNNcjs.useGroupInfoSuspense; exports.useHistory = _chunkQEGVIJNNcjs.useHistory; exports.useHistoryVersions = _chunkQEGVIJNNcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkQEGVIJNNcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQEGVIJNNcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkQEGVIJNNcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQEGVIJNNcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQEGVIJNNcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQEGVIJNNcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQEGVIJNNcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQEGVIJNNcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQEGVIJNNcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQEGVIJNNcjs._useMutation; exports.useMyPresence = _chunkQEGVIJNNcjs._useMyPresence; exports.useNotificationSettings = _chunkQEGVIJNNcjs.useNotificationSettingsSuspense; exports.useOther = _chunkQEGVIJNNcjs._useOtherSuspense; exports.useOthers = _chunkQEGVIJNNcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkQEGVIJNNcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkQEGVIJNNcjs._useOthersListener; exports.useOthersMapped = _chunkQEGVIJNNcjs._useOthersMappedSuspense; exports.useRedo = _chunkQEGVIJNNcjs.useRedo; exports.useRemoveReaction = _chunkQEGVIJNNcjs.useRemoveReaction; exports.useRoom = _chunkQEGVIJNNcjs._useRoom; exports.useRoomInfo = _chunkQEGVIJNNcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkQEGVIJNNcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkQEGVIJNNcjs._useSelfSuspense; exports.useSendAiMessage = _chunkQEGVIJNNcjs.useSendAiMessage; exports.useStatus = _chunkQEGVIJNNcjs.useStatus; exports.useStorage = _chunkQEGVIJNNcjs._useStorageSuspense; exports.useStorageRoot = _chunkQEGVIJNNcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQEGVIJNNcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQEGVIJNNcjs.useSyncStatus; exports.useThreadSubscription = _chunkQEGVIJNNcjs.useThreadSubscription; exports.useThreads = _chunkQEGVIJNNcjs._useThreadsSuspense; exports.useUndo = _chunkQEGVIJNNcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQEGVIJNNcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkQEGVIJNNcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQEGVIJNNcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQEGVIJNNcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQEGVIJNNcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQEGVIJNNcjs._useUrlMetadataSuspense; exports.useUser = _chunkQEGVIJNNcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkQEGVIJNNcjs._useUserThreadsSuspense_experimental;
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.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkHFTIBRCDcjs._useAddReaction; exports.useAiChat = _chunkHFTIBRCDcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkHFTIBRCDcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkHFTIBRCDcjs.useAiChatStatus; exports.useAiChats = _chunkHFTIBRCDcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkHFTIBRCDcjs.useAttachmentUrlSuspense; 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._useFeedMessagesSuspense; exports.useFeeds = _chunkHFTIBRCDcjs._useFeedsSuspense; exports.useGroupInfo = _chunkHFTIBRCDcjs.useGroupInfoSuspense; exports.useHistory = _chunkHFTIBRCDcjs.useHistory; exports.useHistoryVersions = _chunkHFTIBRCDcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkHFTIBRCDcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkHFTIBRCDcjs.useInboxNotificationsSuspense; 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.useNotificationSettingsSuspense; exports.useOther = _chunkHFTIBRCDcjs._useOtherSuspense; exports.useOthers = _chunkHFTIBRCDcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkHFTIBRCDcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkHFTIBRCDcjs._useOthersListener; exports.useOthersMapped = _chunkHFTIBRCDcjs._useOthersMappedSuspense; exports.useRedo = _chunkHFTIBRCDcjs.useRedo; exports.useRemoveReaction = _chunkHFTIBRCDcjs.useRemoveReaction; exports.useRoom = _chunkHFTIBRCDcjs._useRoom; exports.useRoomInfo = _chunkHFTIBRCDcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkHFTIBRCDcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkHFTIBRCDcjs._useSelfSuspense; exports.useSendAiMessage = _chunkHFTIBRCDcjs.useSendAiMessage; exports.useStatus = _chunkHFTIBRCDcjs.useStatus; exports.useStorage = _chunkHFTIBRCDcjs._useStorageSuspense; exports.useStorageRoot = _chunkHFTIBRCDcjs._useStorageRoot; exports.useSubscribeToThread = _chunkHFTIBRCDcjs.useSubscribeToThread; exports.useSyncStatus = _chunkHFTIBRCDcjs.useSyncStatus; exports.useThreadSubscription = _chunkHFTIBRCDcjs.useThreadSubscription; exports.useThreads = _chunkHFTIBRCDcjs._useThreadsSuspense; exports.useUndo = _chunkHFTIBRCDcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkHFTIBRCDcjs.useUnreadInboxNotificationsCountSuspense; 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._useUrlMetadataSuspense; exports.useUser = _chunkHFTIBRCDcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkHFTIBRCDcjs._useUserThreadsSuspense_experimental;
//# sourceMappingURL=suspense.cjs.map

@@ -1,1 +0,1 @@

{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.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;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;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;AACF,w6JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\n} from \"./liveblocks\";\n"]}
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.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;AACF,wDAA6B;AAC7B;AACA;ACxFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADyF7C;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;AACF,s7KAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\n} from \"./liveblocks\";\n"]}
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, y as RegisterAiToolProps, B as RoomContext, P as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, z as UseThreadsOptions, Q as useAddReaction, b7 as useAiChat, b6 as useAiChatMessages, aO as useAiChatStatus, b5 as useAiChats, aX as useAttachmentUrl, T as useBroadcastEvent, V as useCanRedo, W as useCanUndo, D as useClient, aD as useCreateAiChat, X as useCreateComment, Y as useCreateThread, aE as useDeleteAiChat, F as useDeleteAllInboxNotifications, Z as useDeleteComment, H as useDeleteInboxNotification, $ as useDeleteThread, a0 as useEditComment, a2 as useEditCommentMetadata, a1 as useEditThreadMetadata, I as useErrorListener, a7 as useEventListener, b1 as useGroupInfo, a8 as useHistory, aY as useHistoryVersions, _ as useInboxNotificationThread, a_ as useInboxNotifications, a9 as useIsInsideRoom, aa as useLostConnectionListener, J as useMarkAllInboxNotificationsAsRead, K as useMarkInboxNotificationAsRead, ab as useMarkThreadAsRead, a3 as useMarkThreadAsResolved, a4 as useMarkThreadAsUnresolved, ac as useMutation, ad as useMyPresence, a$ as useNotificationSettings, aQ as useOther, aR as useOthers, aS as useOthersConnectionIds, ae as useOthersListener, aT as useOthersMapped, af as useRedo, ag as useRemoveReaction, ah as useRoom, b0 as useRoomInfo, aZ as useRoomSubscriptionSettings, aU as useSelf, aF as useSendAiMessage, ai as useStatus, aV as useStorage, aj as useStorageRoot, a5 as useSubscribeToThread, N as useSyncStatus, ak as useThreadSubscription, aW as useThreads, al as useUndo, b2 as useUnreadInboxNotificationsCount, a6 as useUnsubscribeFromThread, am as useUpdateMyPresence, aC as useUpdateNotificationSettings, an as useUpdateRoomSubscriptionSettings, b8 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-BvPZu216.cjs';
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, bf as useAiChat, be as useAiChatMessages, aU as useAiChatStatus, bd as useAiChats, b1 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, b5 as useFeedMessages, b4 as useFeeds, b9 as useGroupInfo, a6 as useHistory, b2 as useHistoryVersions, _ as useInboxNotificationThread, b6 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, b7 as useNotificationSettings, aW as useOther, aX as useOthers, aY as useOthersConnectionIds, ac as useOthersListener, aZ as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, b8 as useRoomInfo, b3 as useRoomSubscriptionSettings, a_ as useSelf, aL as useSendAiMessage, ag as useStatus, a$ as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, b0 as useThreads, aj as useUndo, ba as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, bg as useUrlMetadata, bb as useUser, bc as useUserThreads_experimental } from './room-kE9R5ats.cjs';
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';

@@ -4,0 +4,0 @@ import 'react/jsx-runtime';

export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, y as RegisterAiToolProps, B as RoomContext, P as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, z as UseThreadsOptions, Q as useAddReaction, b7 as useAiChat, b6 as useAiChatMessages, aO as useAiChatStatus, b5 as useAiChats, aX as useAttachmentUrl, T as useBroadcastEvent, V as useCanRedo, W as useCanUndo, D as useClient, aD as useCreateAiChat, X as useCreateComment, Y as useCreateThread, aE as useDeleteAiChat, F as useDeleteAllInboxNotifications, Z as useDeleteComment, H as useDeleteInboxNotification, $ as useDeleteThread, a0 as useEditComment, a2 as useEditCommentMetadata, a1 as useEditThreadMetadata, I as useErrorListener, a7 as useEventListener, b1 as useGroupInfo, a8 as useHistory, aY as useHistoryVersions, _ as useInboxNotificationThread, a_ as useInboxNotifications, a9 as useIsInsideRoom, aa as useLostConnectionListener, J as useMarkAllInboxNotificationsAsRead, K as useMarkInboxNotificationAsRead, ab as useMarkThreadAsRead, a3 as useMarkThreadAsResolved, a4 as useMarkThreadAsUnresolved, ac as useMutation, ad as useMyPresence, a$ as useNotificationSettings, aQ as useOther, aR as useOthers, aS as useOthersConnectionIds, ae as useOthersListener, aT as useOthersMapped, af as useRedo, ag as useRemoveReaction, ah as useRoom, b0 as useRoomInfo, aZ as useRoomSubscriptionSettings, aU as useSelf, aF as useSendAiMessage, ai as useStatus, aV as useStorage, aj as useStorageRoot, a5 as useSubscribeToThread, N as useSyncStatus, ak as useThreadSubscription, aW as useThreads, al as useUndo, b2 as useUnreadInboxNotificationsCount, a6 as useUnsubscribeFromThread, am as useUpdateMyPresence, aC as useUpdateNotificationSettings, an as useUpdateRoomSubscriptionSettings, b8 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-BvPZu216.js';
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, bf as useAiChat, be as useAiChatMessages, aU as useAiChatStatus, bd as useAiChats, b1 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, b5 as useFeedMessages, b4 as useFeeds, b9 as useGroupInfo, a6 as useHistory, b2 as useHistoryVersions, _ as useInboxNotificationThread, b6 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, b7 as useNotificationSettings, aW as useOther, aX as useOthers, aY as useOthersConnectionIds, ac as useOthersListener, aZ as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, b8 as useRoomInfo, b3 as useRoomSubscriptionSettings, a_ as useSelf, aL as useSendAiMessage, ag as useStatus, a$ as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, b0 as useThreads, aj as useUndo, ba as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, bg as useUrlMetadata, bb as useUser, bc as useUserThreads_experimental } from './room-kE9R5ats.js';
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';

@@ -4,0 +4,0 @@ import 'react/jsx-runtime';

@@ -6,3 +6,3 @@ import {

PKG_VERSION
} from "./chunk-5YUDJVMF.js";
} from "./chunk-A7EFQVZ3.js";
import {

@@ -27,2 +27,4 @@ ClientContext,

_useEventListener,
_useFeedMessagesSuspense,
_useFeedsSuspense,
_useHistoryVersionsSuspense,

@@ -53,5 +55,9 @@ _useInboxNotificationThread,

useCreateAiChat,
useCreateFeed,
useCreateFeedMessage,
useDeleteAiChat,
useDeleteAllInboxNotifications,
useDeleteComment,
useDeleteFeed,
useDeleteFeedMessage,
useDeleteInboxNotification,

@@ -81,5 +87,7 @@ useErrorListener,

useUnsubscribeFromThread,
useUpdateFeedMessage,
useUpdateFeedMetadata,
useUpdateNotificationSettings,
useUpdateRoomSubscriptionSettings
} from "./chunk-2VF57BZV.js";
} from "./chunk-EEXHY3OA.js";

@@ -112,2 +120,4 @@ // src/suspense.ts

_useCreateComment as useCreateComment,
useCreateFeed,
useCreateFeedMessage,
_useCreateThread as useCreateThread,

@@ -117,2 +127,4 @@ useDeleteAiChat,

useDeleteComment,
useDeleteFeed,
useDeleteFeedMessage,
useDeleteInboxNotification,

@@ -125,2 +137,4 @@ _useDeleteThread as useDeleteThread,

_useEventListener as useEventListener,
_useFeedMessagesSuspense as useFeedMessages,
_useFeedsSuspense as useFeeds,
useGroupInfoSuspense as useGroupInfo,

@@ -163,2 +177,4 @@ useHistory,

useUnsubscribeFromThread,
useUpdateFeedMessage,
useUpdateFeedMetadata,
_useUpdateMyPresence as useUpdateMyPresence,

@@ -165,0 +181,0 @@ useUpdateNotificationSettings,

@@ -1,1 +0,1 @@

{"version":3,"sources":["../src/suspense.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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
{"version":3,"sources":["../src/suspense.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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
{
"name": "@liveblocks/react",
"version": "3.16.0-flow3",
"version": "3.16.0",
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",

@@ -66,4 +66,4 @@ "license": "Apache-2.0",

"dependencies": {
"@liveblocks/client": "3.16.0-flow3",
"@liveblocks/core": "3.16.0-flow3"
"@liveblocks/client": "3.16.0",
"@liveblocks/core": "3.16.0"
},

@@ -70,0 +70,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

// src/version.ts
var PKG_NAME = "@liveblocks/react";
var PKG_VERSION = "3.16.0-flow3";
var PKG_FORMAT = "esm";
// src/ClientSideSuspense.tsx
import { Suspense, useEffect, useState } from "react";
import { jsx } from "react/jsx-runtime";
function ClientSideSuspense(props) {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
return /* @__PURE__ */ jsx(Suspense, { fallback: props.fallback, children: mounted ? typeof props.children === "function" ? props.children() : props.children : props.fallback });
}
export {
PKG_NAME,
PKG_VERSION,
PKG_FORMAT,
ClientSideSuspense
};
//# sourceMappingURL=chunk-5YUDJVMF.js.map
{"version":3,"sources":["../src/version.ts","../src/ClientSideSuspense.tsx"],"sourcesContent":["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"],"mappings":";AAGO,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ACJ7D,SAAS,UAAU,WAAW,gBAAgB;AAkC1C;AAVG,SAAS,mBAAmB,OAAc;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,YAAU,MAAM;AAGd,eAAW,IAAI;AAAA,EACjB,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,YAAS,UAAU,MAAM,UACvB,oBACG,OAAO,MAAM,aAAa,aACxB,MAAM,SAAS,IACf,MAAM,WACR,MAAM,UACZ;AAEJ;","names":[]}
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
var PKG_NAME = "@liveblocks/react";
var PKG_VERSION = "3.16.0-flow3";
var PKG_FORMAT = "cjs";
// src/ClientSideSuspense.tsx
var _react = require('react');
var _jsxruntime = require('react/jsx-runtime');
function ClientSideSuspense(props) {
const [mounted, setMounted] = _react.useState.call(void 0, false);
_react.useEffect.call(void 0, () => {
setMounted(true);
}, []);
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: props.fallback, children: mounted ? typeof props.children === "function" ? props.children() : props.children : props.fallback });
}
exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
//# sourceMappingURL=chunk-HULSMHSU.cjs.map
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-HULSMHSU.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,cAAA;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-HULSMHSU.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"]}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display