MCPcopy Create free account

hub / github.com/liveblocks/liveblocks / functions

Functions8,448 in github.com/liveblocks/liveblocks

↓ 12 callersMethodstartBrowserSession
* Registers a new BrowserSession into the Room server's session list, along with * the socket connection to use for that BrowserSession, now that i
packages/liveblocks-server/src/Room.ts:758
↓ 12 callersFunctiont
( expression: string, expected: ExpressionResult, cells: Record<string, number> = {} )
examples/nextjs-spreadsheet-advanced/src/spreadsheet/interpreter/interpreter.test.ts:3
↓ 12 callersFunctionupdateObjectOp
( id: string, data: Partial<JsonObject>, opId = nanoid() )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:423
↓ 12 callersFunctionupdateObjectOp
( id: string, data: Partial<JsonObject>, opId = nanoid() )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:418
↓ 12 callersFunctionuseCurrentRoomId
()
tools/liveblocks-devtools/src/devtools/contexts/CurrentRoom.tsx:362
↓ 12 callersFunctionuseHistoryVersions
* (Private beta) Returns a history of versions of the current room. * * @example * const { versions, error, isLoading } = useHistoryVersions();
packages/liveblocks-react/src/room.tsx:3258
↓ 12 callersFunctionuseRedo
* Returns a function that redoes the last operation executed by the current * client. It does not impact operations made by other clients.
packages/liveblocks-react/src/room.tsx:1005
↓ 12 callersFunctionuseRoomSubscriptionSettings
* Returns the user's subscription settings for the current room * and a function to update them. * * @example * const [{ settings }, updateSetting
packages/liveblocks-react/src/room.tsx:3094
↓ 12 callersFunctionwithTimeout
( promise: Promise<T>, millis: number, errmsg: string )
packages/liveblocks-core/src/lib/utils.ts:195
↓ 11 callersMethod#unwrap
(node: LiveNode)
packages/liveblocks-core/src/crdts/LiveList.ts:1244
↓ 11 callersMethodadd
* Mark the given Op as still unacknowledged.
packages/liveblocks-core/src/crdts/UnacknowledgedOps.ts:82
↓ 11 callersFunctionassert
(delta: Partial<DateDelta>, expected: string)
packages/liveblocks-react-ui/src/primitives/__tests__/Timestamp.test.tsx:57
↓ 11 callersFunctionautoRetry
( promiseFn: () => Promise<T>, maxTries: number, backoff: number[], shouldStopRetrying: (err: any) =>
packages/liveblocks-core/src/lib/autoRetry.ts:90
↓ 11 callersMethodcreateRoom
* Creates a new room with the given id. * @param roomId The id of the room to create. * @param params.defaultAccesses The default accesses for t
packages/liveblocks-node/src/client.ts:1151
↓ 11 callersFunctioncreateTestStore
( stateCreator: StateCreator<TState>, options: { storageMapping: Mapping<TState>; presenceMapping:
packages/liveblocks-zustand/src/__tests__/index.test.ts:113
↓ 11 callersMethodgetEdge
Returns a single edge by ID, or `undefined` if not found.
packages/liveblocks-react-flow/src/node.ts:58
↓ 11 callersMethodgetEvenIfDeleted
Returns the (possibly deleted) thread by ID.
packages/liveblocks-react/src/ThreadDB.ts:102
↓ 11 callersFunctiongetMentionsFromCommentBody
( body: CommentBody, predicate?: (mention: CommentBodyMention) => boolean )
packages/liveblocks-core/src/comments/comment-body.ts:244
↓ 11 callersMethodgetUser
(connectionId: number)
packages/liveblocks-core/src/refs/ManagedOthers.ts:98
↓ 11 callersFunctioninsertDelta
(index: number, item: LiveNode)
packages/liveblocks-core/src/crdts/LiveList.ts:1468
↓ 11 callersFunctionisLiveObject
(value: unknown)
packages/liveblocks-core/src/crdts/liveblocks-helpers.ts:118
↓ 11 callersFunctionisRootStorageNode
(node: StorageNode)
packages/liveblocks-core/src/protocol/StorageNode.ts:100
↓ 11 callersMethodlist_feeds
* List feeds with pagination, filtering, and metadata querying. * Feeds are sorted by createdAt descending (newest first).
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:374
↓ 11 callersFunctionnormalizeRoomPermissions
( permissions: string[] | readonly string[] )
packages/liveblocks-core/src/permissions.ts:305
↓ 11 callersFunctiononChange
()
examples/nextjs-ai-spreadsheet/app/CommentOverlay.tsx:69
↓ 11 callersFunctiononKeyDown
(props)
packages/liveblocks-react-tiptap/src/mentions/MentionExtension.ts:237
↓ 11 callersFunctionpadItem
(connectionId: number, value: string)
e2e/next-sandbox/utils/index.tsx:36
↓ 11 callersFunctionprepareThreadNotificationEmailAsReact
( client: Liveblocks, event: ThreadNotificationEvent, options: PrepareThreadNotificationEmailAsReactOpti
packages/liveblocks-emails/src/thread-notification.tsx:742
↓ 11 callersFunctionpromise
()
examples/nextjs-ai-dashboard-reports/src/ai-popup/AiChatTools.tsx:309
↓ 11 callersMethodreconnect
* If idle, will try to connect. Otherwise, it will attempt to reconnect to * the socket, potentially obtaining a new authValue first, if needed.
packages/liveblocks-core/src/connection.ts:1062
↓ 11 callersFunctionrecord
(dir: TraceEntry["dir"], raw: string)
e2e/next-sandbox/utils/recordingWebSocket.ts:21
↓ 11 callersFunctionroomId
(testInfo: { workerIndex: number; title: string })
examples/nextjs-todo-list/test/todo.spec.ts:5
↓ 11 callersFunctionsendToPanel
( message: DevTools.ClientToPanelMessage, options?: SendToPanelOptions )
packages/liveblocks-core/src/devtools/bridge.ts:18
↓ 11 callersMethodsetPresence
* Sets ephemeral presence for a user in a room without requiring a WebSocket connection. * The presence data will automatically expire after the sp
packages/liveblocks-node/src/client.ts:1414
↓ 11 callersMethodupdateNode
Updates a node by merging a partial object. No-op if the node does not exist.
packages/liveblocks-react-flow/src/node.ts:65
↓ 11 callersMethodupdateNodeData
Updates a node's `data` by merging a partial object. No-op if the node does not exist.
packages/liveblocks-react-flow/src/node.ts:69
↓ 11 callersFunctionupdateSettings
(settings: RoomNotificationSettings)
tools/liveblocks-codemod/src/transforms/__tests__/__fixtures__/rename-notification-settings/client.input.tsx:16
↓ 11 callersFunctionuseInboxNotificationThread
(inboxNotificationId: string)
packages/liveblocks-react/src/liveblocks.tsx:417
↓ 11 callersFunctionuseInitial
(value: T | (() => T))
packages/liveblocks-react-ui/src/utils/use-initial.ts:9
↓ 11 callersFunctionuseInitialUnlessFunction
( latestValue: T, roomId?: string )
packages/liveblocks-react/src/lib/use-initial.ts:22
↓ 11 callersFunctionuseLatest
(value: T)
packages/liveblocks-react/src/lib/use-latest.ts:12
↓ 11 callersFunctionuseMentionSuggestions
(roomId: string, search?: string)
packages/liveblocks-react/src/use-mention-suggestions.ts:35
↓ 11 callersFunctionuseStableComponent
(Component: ComponentType<P> | undefined, DefaultComponent: D)
packages/liveblocks-react-ui/src/utils/use-stable-component.tsx:21
↓ 11 callersFunctionuseUserThreads_experimental
* @experimental * * This hook is experimental and could be removed or changed at any time! * Do not use unless explicitly recommended by the Livebl
packages/liveblocks-react/src/liveblocks.tsx:1887
↓ 10 callersMethod#insert
* Inserts a new child into the list in the correct location (binary search * finds correct position efficiently). Returns the insertion index.
packages/liveblocks-core/src/crdts/LiveList.ts:139
↓ 10 callersFunctionPromise_withResolvers
()
packages/liveblocks-core/src/lib/controlledPromise.ts:35
↓ 10 callersMethod_build_request_body
(self)
packages/liveblocks-python/liveblocks/session.py:132
↓ 10 callersFunction_generate_signature
Reproduce the svix signing algorithm used by the TS tests.
packages/liveblocks-python/tests/test_webhooks.py:41
↓ 10 callersFunctionbetween
* Given two positions, returns the position value that lies in the middle. * * Think: * between('!', '%') // '#' (like how between(.1, .5) wo
packages/liveblocks-core/src/lib/position.ts:304
↓ 10 callersFunctionblue
(text: string | number)
packages/liveblocks-react/scripts/check-exports.ts:202
↓ 10 callersMethodcontext
()
packages/liveblocks-core/src/lib/fsm.ts:372
↓ 10 callersFunctioncreateDummyComments
(count: number)
packages/liveblocks-chat-sdk-adapter/src/__tests__/index.test.ts:906
↓ 10 callersFunctioncreateThread
(options: { roomId: string; threadId?: string; commentId?: string; visibility?: ThreadVisibili
packages/liveblocks-core/src/room.ts:3592
↓ 10 callersMethoddeleteInboxNotification
(inboxNotificationId: string)
packages/liveblocks-core/src/api-client.ts:484
↓ 10 callersFunctiondiffNodeMap
(prev: NodeMap, next: NodeMap)
packages/liveblocks-core/src/crdts/liveblocks-helpers.ts:286
↓ 10 callersFunctioneditThreadMetadata
({ metadata, threadId, }: { roomId: string; metadata: Patchable<TM>; threadId: string;
packages/liveblocks-core/src/room.ts:3618
↓ 10 callersFunctiongenPos
* Generate random (valid) Pos values. * * Possible values: "!", "#", "O", "~", "~!", "~~~R", etc.
packages/liveblocks-core/src/lib/__tests__/position.test.ts:42
↓ 10 callersFunctiongenerateSignatureWithSvix
( secret: string, messageId: string, timestamp: string, body: string )
packages/liveblocks-node/src/__tests__/webhooks.test.ts:35
↓ 10 callersFunctionget
(a1: string | Decoder<T>, a2?: string)
packages/liveblocks-server/src/MetadataDB.ts:39
↓ 10 callersFunctiongetRoom
(roomId: string | null)
tools/liveblocks-devtools/src/devtools/contexts/CurrentRoom.tsx:366
↓ 10 callersFunctionisLiveStructure
(value: unknown)
packages/liveblocks-core/src/crdts/liveblocks-helpers.ts:97
↓ 10 callersFunctionisText
(element: SlateNode)
packages/liveblocks-react-ui/src/primitives/slate/utils/is-text.ts:3
↓ 10 callersMethodlist_leased_sessions
* List all leased sessions. * Note: Does NOT filter by expiration - returns all stored sessions. * Expiration logic is handled at the Room.ts le
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:339
↓ 10 callersFunctionlog
* Generic "log" effect. Use it in `effect` handlers of state transitions.
packages/liveblocks-core/src/connection.ts:237
↓ 10 callersFunctionmockGetUserThreads
( resolver: HttpResponseResolver< { roomId: string }, never, { threads: ThreadData[];
packages/liveblocks-react/src/__tests__/useUserThreads.test.tsx:47
↓ 10 callersFunctionnonstreamingResult
(nodes: StorageNode[])
packages/liveblocks-server/test/formats/LossyJson.test.ts:160
↓ 10 callersFunctionnonstreamingResult
(nodes: StorageNode[])
packages/liveblocks-server/test/formats/PlainLson.test.ts:384
↓ 10 callersFunctionopenPage
({ room, run, user, visibility, permissions, mode, x, }: { room: string;
e2e/next-sandbox/test/comments/visibility.test.ts:315
↓ 10 callersFunctionplainLsonToNodeMap
(root: PlainLsonObject)
packages/liveblocks-server/test/formats/PlainLson.test.ts:39
↓ 10 callersFunctionrandomInt
(max: number)
e2e/next-sandbox/pages/storage/stress/[roomId]/index.tsx:81
↓ 10 callersFunctionresetPage
(page: Page)
e2e/next-sandbox/test/comments/composer.test.ts:58
↓ 10 callersFunctionrunDevCommand
( args: string[], options?: { env?: Record<string, string> } )
tools/liveblocks-cli/test/devserver/cmd.test.ts:51
↓ 10 callersFunctionsendClientMsgWithResponse
( msg: DistributiveOmit<ClientAiMsg, "cmdId"> )
packages/liveblocks-core/src/ai.ts:1264
↓ 10 callersFunctionstreamingResult
(nodes: StorageNode[])
packages/liveblocks-server/test/formats/LossyJson.test.ts:156
↓ 10 callersFunctionstreamingResult
(nodes: StorageNode[])
packages/liveblocks-server/test/formats/PlainLson.test.ts:380
↓ 10 callersFunctiontestAndConsume
(kind: SyntaxKind)
examples/nextjs-spreadsheet-advanced/src/spreadsheet/interpreter/parser.ts:93
↓ 10 callersMethodupdateNotificationSettings
( settings: PartialNotificationSettings )
packages/liveblocks-core/src/api-client.ts:490
↓ 10 callersMethodupsert
(chat: AiChat)
packages/liveblocks-core/src/AiChatDB.ts:38
↓ 10 callersFunctionuseControllableState
( /** * The default uncontrolled value. */ defaultValue: T, /** * The controlled value. *
packages/liveblocks-react-ui/src/utils/use-controllable-state.ts:9
↓ 10 callersFunctionuseCurrentEditor
(source: string, parent: string)
packages/liveblocks-react-tiptap/src/context.tsx:27
↓ 10 callersFunctionuseDeleteAllInboxNotifications
()
packages/liveblocks-react/src/liveblocks.tsx:429
↓ 10 callersFunctionuseFeedMessages
( feedId: string, options?: UseFeedMessagesOptions )
packages/liveblocks-react/src/room.tsx:1598
↓ 10 callersFunctionuseRefs
(...refs: Ref<T>[])
packages/liveblocks-react-ui/src/utils/use-refs.ts:20
↓ 10 callersFunctionuseStatus
* Returns the current connection status for the Room, and triggers * a re-render whenever it changes. Can be used to render a status badge.
packages/liveblocks-react/src/room.tsx:737
↓ 10 callersFunctionuseSyncExternalStoreWithSelector
( subscribe: (callback: () => void) => () => void, getSnapshot: () => Snapshot, getServerSnapshot: void
packages/liveblocks-react/src/use-sync-external-store-with-selector.ts:26
↓ 10 callersFunctionuseThreadSubscription
* Returns the subscription status of a thread, methods to update it, and when * the thread was last read. * * @example * const { status, subscribe
packages/liveblocks-react/src/room.tsx:2980
↓ 9 callersFunction$isThreadMarkNode
( node: LexicalNode | null )
packages/liveblocks-react-lexical/src/comments/thread-mark-node.ts:166
↓ 9 callersMethod_deserialize
@internal
packages/liveblocks-core/src/crdts/LiveMap.ts:90
↓ 9 callersMethod_detach
@internal
packages/liveblocks-core/src/crdts/LiveObject.ts:344
↓ 9 callersMethod_serialize_permissions
(self)
packages/liveblocks-python/liveblocks/session.py:129
↓ 9 callersFunctionaccept
(op: ClientWireOp, fix?: FixOp)
packages/liveblocks-server/src/Storage.ts:83
↓ 9 callersMethodapplyDelta
( newThreads: ThreadData<TM, CM>[], deletedThreads: ThreadDeleteInfo[] )
packages/liveblocks-react/src/ThreadDB.ts:143
↓ 9 callersFunctionapplyOptimisticUpdates_forNotificationSettings
( settings: NotificationSettings, optimisticUpdates: readonly OptimisticUpdate<BaseMetadata, BaseMetadata>
packages/liveblocks-react/src/umbrella-store.ts:2823
↓ 9 callersFunctionbuildCommentBodyWithMention
( mention: MentionData )
packages/liveblocks-emails/src/__tests__/_helpers.ts:87
↓ 9 callersFunctioncreateLargeData
(sizeInBytes: number)
packages/liveblocks-core/src/crdts/__tests__/LiveObject.devserver.test.ts:1083
↓ 9 callersFunctioncreateReceivingToolInvocation
( invocationId: string, name: string, partialArgsText: string = "" )
packages/liveblocks-core/src/ai.ts:1654
↓ 9 callersFunctioncreateSerializedObject
( id: string, data: JsonObject, parentId: string, parentKey: string )
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.setup.ts:575
↓ 9 callersFunctioncreateTestStore
( reducer: Reducer<T>, options: { storageMapping: Mapping<T>; presenceMapping: Mapping<T>; },
packages/liveblocks-redux/src/__tests__/index.test.ts:139
↓ 9 callersFunctiondefineTestsForTransform
( transform: string, options?: | Record<string, any> | ((args: { transform: string; fixture: strin
tools/liveblocks-codemod/src/transforms/__tests__/_utils.ts:10
↓ 9 callersMethoddeleteAllInboxNotifications
()
packages/liveblocks-core/src/api-client.ts:482
← previousnext →401–500 of 8,448, ranked by callers