MCPcopy Create free account

hub / github.com/liveblocks/liveblocks / functions

Functions8,448 in github.com/liveblocks/liveblocks

↓ 9 callersFunctiondeleteCrdtOp
( id: string, opId = nanoid() )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:511
↓ 9 callersFunctiondeleteCrdtOp
( id: string, opId = nanoid() )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:506
↓ 9 callersMethoddispose
()
packages/liveblocks-core/src/lib/signals.ts:244
↓ 9 callersMethodencodeThreadId
* Encodes a Liveblocks room ID and thread ID into a single thread ID string. * * Format: `liveblocks:{roomId}:{threadId}` * * **Note**: Ro
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:557
↓ 9 callersFunctionexpectUpdates
(updates: JsonStorageUpdate[][])
packages/liveblocks-core/src/__tests__/_devserver.ts:325
↓ 9 callersFunctiongenerateInboxNotificationId
()
packages/liveblocks-emails/src/__tests__/_helpers.ts:85
↓ 9 callersMethodget
()
packages/liveblocks-react/src/umbrella-store.ts:441
↓ 9 callersFunctiongetContextualPromptContext
( editor: Editor, maxLength = 10_000 )
packages/liveblocks-react-tiptap/src/utils.ts:199
↓ 9 callersFunctiongetDocument
({ documentId }: Props)
starter-kits/nextjs-starter-kit/lib/actions/getDocument.ts:19
↓ 9 callersFunctiongetResolvedCommentUrl
(commentId: string)
packages/liveblocks-emails/src/__tests__/_helpers.ts:391
↓ 9 callersFunctiongreen
(text: Stringable)
tools/liveblocks-cli/src/lib/term-colors.ts:38
↓ 9 callersMethodhandleWebhook
( request: Request, options?: WebhookOptions )
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:95
↓ 9 callersMethodlistThreads
( channelId: string, options?: ListThreadsOptions )
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:344
↓ 9 callersFunctionloadingSpinner
(text?: string, customIcon?: string)
tools/create-liveblocks-app/bin/utils/loading-spinner.ts:4
↓ 9 callersMethodmarkThreadAsResolved
({ roomId, threadId, }: { roomId: string; threadId: string; visibility?: ThreadVisibilit
packages/liveblocks-core/src/api-client.ts:267
↓ 9 callersFunctionmockGetInboxNotificationsDelta
( resolver: HttpResponseResolver< never, never, { threads: ThreadData[]; inboxNotifi
packages/liveblocks-react/src/__tests__/_restMocks.ts:243
↓ 9 callersFunctionmockGetNotificationSettings
( resolver: HttpResponseResolver<never, never, NotificationSettingsPlain> )
packages/liveblocks-react/src/__tests__/_restMocks.ts:312
↓ 9 callersFunctionmockGetUrlMetadata
( resolver: HttpResponseResolver< { url: string }, never, { metadata: UrlMetadata } > )
packages/liveblocks-react/src/__tests__/useUrlMetadata.test.tsx:39
↓ 9 callersFunctionnotify
(updates: NotifyUpdates)
packages/liveblocks-core/src/room.ts:2028
↓ 9 callersFunctionpatterns
( targetState: TState, levels: number )
packages/liveblocks-core/src/lib/fsm.ts:121
↓ 9 callersFunctionprepareThreadNotificationEmailAsHtml
( client: Liveblocks, event: ThreadNotificationEvent, options: PrepareThreadNotificationEmailAsHtmlOptio
packages/liveblocks-emails/src/thread-notification.tsx:517
↓ 9 callersFunctionpush
(raw: string)
examples/nextjs-linear-like-issue-tracker/src/lib/ai-issue-assistant-tools.ts:32
↓ 9 callersFunctionrender
()
examples/javascript-todo-list/app.ts:79
↓ 9 callersFunctionseed
(row: number, col: number, value: string, format?: CellFormat)
examples/nextjs-ai-spreadsheet/app/Room.tsx:37
↓ 9 callersFunctionsetClipboard
(page: Page, data: string, format = "text/plain")
e2e/next-sandbox/test/comments/composer.test.ts:42
↓ 9 callersFunctionsettleFeedMutation
( requestId: string, outcome: "ok" | "error", error?: Error )
packages/liveblocks-core/src/room.ts:2872
↓ 9 callersFunctionupdateNotificationSettings
( settings: PartialNotificationSettings )
packages/liveblocks-core/src/client.ts:1028
↓ 9 callersMethodupdate_feed_message
* Update a feed message's data. * Returns the updated message. * The feed and message must exist, otherwise throws an error. * If timestamp i
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:426
↓ 9 callersFunctionuseCurrentUserId
()
packages/liveblocks-react-ui/src/shared.ts:9
↓ 9 callersFunctionuseDeleteAiChat
* Returns a function that deletes the AI chat with the specified id. * * @example * const deleteAiChat = useDeleteAiChat(); * deleteAiChat("ai-cha
packages/liveblocks-react/src/liveblocks.tsx:1454
↓ 9 callersFunctionuseDocumentsFunctionSWR
( documentActionAndArgs: [T | null, Parameters<T> | Parameters<T>[0]], swrOptions: SWRConfiguration = {} )
starter-kits/nextjs-starter-kit/lib/hooks/useDocumentsFunctionSWR.ts:14
↓ 9 callersFunctionuseEditThreadMetadata
()
packages/liveblocks-react/src/room.tsx:2091
↓ 9 callersFunctionuseGroup
(groupId: string)
packages/liveblocks-react/src/use-group.ts:31
↓ 9 callersFunctionuseHistory
* Returns the room.history
packages/liveblocks-react/src/room.tsx:971
↓ 9 callersFunctionuseLiveblocksUiConfig
()
packages/liveblocks-react-ui/src/config.tsx:63
↓ 9 callersFunctionuseSendAiMessage
* Returns a function to send a message in an AI chat. * * @example * const sendAiMessage = useSendAiMessage(chatId); * sendAiMessage("Hello, Liveb
packages/liveblocks-react/src/liveblocks.tsx:1635
↓ 9 callersFunctionuseToggleNode
(node: NodeApi<T>)
tools/liveblocks-devtools/src/devtools/components/Tree.tsx:615
↓ 9 callersFunctionuserAllowedInRoom
({ accessAllowed, userId, organizationId, room, checkAccessLevel = "any", }: UserAllowedInRoomProps)
starter-kits/nextjs-starter-kit/lib/utils/userAllowedInRooms.ts:58
↓ 9 callersFunctionwaitUntilStorageUpdate
(room: OpaqueRoom)
packages/liveblocks-core/src/__tests__/_waitUtils.ts:60
↓ 9 callersFunctionwarn
(...args: unknown[])
packages/liveblocks-react/scripts/check-exports.ts:193
↓ 8 callersMethod#updateItemPosition
* Updates an item's position and repositions it in the sorted list. * Encapsulates the remove -> mutate -> add cycle needed when changing sort keys
packages/liveblocks-core/src/crdts/LiveList.ts:151
↓ 8 callersFunction$
(fn: () => Promise<T>)
examples/nextjs-react-flow-ai/app/flowchart/agent/agent.ts:105
↓ 8 callersMethodaddCommentReaction
* Adds a new comment reaction to a comment. * @param params.roomId The room ID to add the comment reaction in. * @param params.threadId The thre
packages/liveblocks-node/src/client.ts:2234
↓ 8 callersFunctionapplyAddReaction
( thread: ThreadDataWithDeleteInfo<TM, CM>, commentId: string, reaction: CommentUserReaction )
packages/liveblocks-react/src/umbrella-store.ts:3018
↓ 8 callersMethodclone
()
packages/liveblocks-core/src/crdts/LiveMap.ts:471
↓ 8 callersFunctioncommentBodiesAsReactToStaticMarkup
( threadNotificationEmailDataAsReact: ThreadNotificationEmailDataAsReact | null )
packages/liveblocks-emails/src/__tests__/_helpers.ts:510
↓ 8 callersFunctioncompactObject
( obj: O )
packages/liveblocks-core/src/lib/utils.ts:170
↓ 8 callersFunctiondelete_nodes
(driver: IStorageDriver, ids: Iterable<string>)
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:1012
↓ 8 callersFunctiondelete_nodes
(driver: IStorageDriver, ids: Iterable<string>)
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:1007
↓ 8 callersFunctiondistance
(state1: string, state2: string)
packages/liveblocks-core/src/lib/fsm.ts:101
↓ 8 callersMethodendBrowserSession
* Unregisters the BrowserSession for the given actor. Call this when the socket has * been closed from the client's end. * * This kicks off a
packages/liveblocks-server/src/Room.ts:823
↓ 8 callersFunctionexpectContextLength
( context: ContextualPromptContext, expectedLength: number )
packages/liveblocks-react-tiptap/src/__tests__/utils.test.ts:10
↓ 8 callersFunctionfeedFailureServerMsg
( requestId: string | undefined, err: unknown )
packages/liveblocks-server/src/protocol/feedErrors.ts:64
↓ 8 callersMethodgetIDs
()
packages/liveblocks-react-lexical/src/comments/thread-mark-node.ts:75
↓ 8 callersMethodgetNotificationSettings
(options?: { signal?: AbortSignal; })
packages/liveblocks-core/src/api-client.ts:486
↓ 8 callersMethodgetOrCreateRoom
* Returns a room with the given id, or creates one with the given creation * options if it doesn't exist yet. * * @param roomId The id of the
packages/liveblocks-node/src/client.ts:1214
↓ 8 callersFunctiongetRoomId
(issueId: string)
examples/nextjs-linear-like-issue-tracker/src/config.tsx:173
↓ 8 callersFunctiongetRoomIdFromChannelId
(channelId: string)
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:736
↓ 8 callersFunctiongetSubscribe
( roomId: string | null, eventName: keyof EventHub )
tools/liveblocks-devtools/src/devtools/contexts/CurrentRoom.tsx:86
↓ 8 callersFunctiongetThreadVisibility
( store: UmbrellaStore<TM, CM>, threadId: string )
packages/liveblocks-react/src/room.tsx:232
↓ 8 callersFunctiongetUsers
()
examples/nextjs-linear-like-issue-tracker/src/database.ts:87
↓ 8 callersMethodget_root
Get the root node.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:85
↓ 8 callersMethodhasPermissions
@internal - For unit tests only
packages/liveblocks-node/src/Session.ts:139
↓ 8 callersFunctionidToken
(userId: string, groupIds?: string[])
tools/liveblocks-cli/test/devserver/auth.test.ts:188
↓ 8 callersMethodinitialize
(chat: ChatInstance)
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:91
↓ 8 callersFunctionleave
()
packages/liveblocks-core/src/client.ts:725
↓ 8 callersFunctionlistUpdateDelete
( index: number, prev: Json )
packages/liveblocks-core/src/__tests__/_updatesUtils.ts:167
↓ 8 callersFunctionmakeJsonNode
( parentId: string, key: string, payload: Json )
tools/liveblocks-devtools/src/devtools/components/Tree.tsx:174
↓ 8 callersFunctionmakeThread
({ threadId, comments = [], }: { threadId: string; comments?: CommentData[]; })
packages/liveblocks-emails/src/__tests__/_helpers.ts:292
↓ 8 callersFunctionmakeThreadNotificationEvent
({ threadId, userId, inboxNotificationId, triggeredAt, }: { threadId: string; userId: string; in
packages/liveblocks-emails/src/__tests__/_helpers.ts:330
↓ 8 callersFunctionmockGetRoomSubscriptionSettings
( resolver: HttpResponseResolver< { roomId: string }, never, RoomSubscriptionSettings > )
packages/liveblocks-react/src/__tests__/_restMocks.ts:286
↓ 8 callersFunctionmoveDelta
( previousIndex: number, index: number, item: LiveNode )
packages/liveblocks-core/src/crdts/LiveList.ts:1476
↓ 8 callersFunctionpost
( path: string, body: unknown )
tools/liveblocks-cli/test/devserver/auth.test.ts:29
↓ 8 callersMethodraw_iter_nodes
* Read raw node data directly from storage. * * @internal Test-only API
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:268
↓ 8 callersMethodremoveAt
* Removes the item at the given index. * Returns the removed item, or undefined if index is out of bounds.
packages/liveblocks-core/src/lib/SortedList.ts:138
↓ 8 callersMethodreposition
* Repositions an item to maintain sorted order after its sort key has * been mutated in-place. For example: * * const item = sorted.at(3);
packages/liveblocks-core/src/lib/SortedList.ts:159
↓ 8 callersMethodrunInMaintenanceMode
* Tries to enter maintenance mode and run the given callback exclusively. * If the room is already in maintenance mode, throws E_ALREADY_LOCKED
packages/liveblocks-server/src/Room.ts:583
↓ 8 callersFunctionselfCheck
(storage: Storage)
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:186
↓ 8 callersFunctionshowAiEditing
( liveblocks: LiveblocksClient, roomId: string, cells: SelectedCell[] | null )
examples/nextjs-ai-spreadsheet/lib/spreadsheet-server.ts:194
↓ 8 callersFunctionsignIn
()
starter-kits/nextjs-starter-kit/lib/actions/signIn.ts:5
↓ 8 callersMethodstatus
* Convenience accessor for response.status.
packages/liveblocks-core/src/lib/autoRetry.ts:68
↓ 8 callersMethodupdateEdgeData
Updates an edge's `data` by merging a partial object. No-op if the edge does not exist.
packages/liveblocks-react-flow/src/node.ts:89
↓ 8 callersMethodupdateRoom
* Updates specific properties of a room. It’s not necessary to provide the entire room’s information. * Setting a property to `null` means to delet
packages/liveblocks-node/src/client.ts:1291
↓ 8 callersMethodupdateThreadifications
( threads: ThreadData<TM, CM>[], notifications: InboxNotificationData[], subscriptions: Subscripti
packages/liveblocks-react/src/umbrella-store.ts:2249
↓ 8 callersMethodupsertIfNewer
(thread: ThreadDataWithDeleteInfo<TM, CM>)
packages/liveblocks-react/src/ThreadDB.ts:136
↓ 8 callersMethodurl
(src: string)
packages/liveblocks-node/src/comment-body.ts:37
↓ 8 callersFunctionurljoin
( baseUrl: string | URL, path: string, params?: QueryParams )
packages/liveblocks-core/src/lib/url.ts:45
↓ 8 callersFunctionuseAiChats
* (Private beta) Returns the chats for the current user. * * @example * const { chats } = useAiChats();
packages/liveblocks-react/src/liveblocks.tsx:1212
↓ 8 callersFunctionuseContextValue
()
examples/nextjs-ai-spreadsheet/components/ai-elements/context.tsx:32
↓ 8 callersFunctionuseContextValue
()
examples/nextjs-ai-elements-realtime/components/ai-elements/context.tsx:32
↓ 8 callersFunctionuseHasPermissionAccess
* @private For internal use only. Do not rely on this hook.
packages/liveblocks-react/src/room.tsx:3900
↓ 8 callersFunctionuseStatus
()
tools/liveblocks-devtools/src/devtools/contexts/CurrentRoom.tsx:381
↓ 7 callersMethod#updateThread
* Updates an existing thread with a new value, replacing the corresponding * optimistic update. * * This will not update anything if: * -
packages/liveblocks-react/src/umbrella-store.ts:2082
↓ 7 callersFunctionDOCUMENT_URL
(type: DocumentType, id: string)
starter-kits/nextjs-starter-kit/constants.ts:7
↓ 7 callersFunctionSOCKET_SEQUENCE
( ...sequence: readonly SocketBehavior[] )
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.behaviors.ts:221
↓ 7 callersMethod_attach
@internal
packages/liveblocks-core/src/crdts/LiveList.ts:198
↓ 7 callersMethod_detach
@internal
packages/liveblocks-core/src/crdts/LiveList.ts:207
↓ 7 callersFunctionaccessRank
(resource: PermissionResources, matrix: PermissionMatrix)
packages/liveblocks-core/src/__tests__/permissions.test.ts:58
↓ 7 callersMethodaddTimedTransition
* Like `.addTransition()`, but takes an (anonymous) transition whenever the * timer fires. * * @param stateOrPattern The state name, or stat
packages/liveblocks-core/src/lib/fsm.ts:582
↓ 7 callersFunctionanything
()
packages/liveblocks-core/src/lib/__tests__/shallow.test.ts:6
← previousnext →501–600 of 8,448, ranked by callers