MCPcopy Create free account

hub / github.com/liveblocks/liveblocks / functions

Functions8,448 in github.com/liveblocks/liveblocks

↓ 58 callersMethodclear
()
packages/liveblocks-core/src/lib/batch.ts:162
↓ 58 callersFunctionmarkdownToCommentBody
(markdown: string)
packages/liveblocks-node/src/comment-body.ts:536
↓ 58 callersFunctionuseRoom_withRoomContext
( RoomContext: Context<OpaqueRoom | null>, options?: { allowOutsideRoom: boolean } )
packages/liveblocks-react/src/room.tsx:658
↓ 57 callersFunctionhtml
( strings: TemplateStringsArray, ...values: (string | string[] | HtmlSafeString | HtmlSafeString[])[] )
packages/liveblocks-core/src/comments/comment-body.ts:398
↓ 56 callersFunctionpermissionMatrixFromScopes
( scopes: RoomPermissions )
packages/liveblocks-core/src/permissions.ts:231
↓ 56 callersFunctionrunWithStorage
* Helper to create a Storage instance backed by the driver. The raw nodes * are already pre-populated by config.runTest.
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:3468
↓ 56 callersFunctionrunWithStorage
* Helper to create a Storage instance backed by the driver. The raw nodes * are already pre-populated by config.runTest.
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:3463
↓ 55 callersFunctioncallback
(others: readonly User<MyPresence, MyUserMeta>[])
tools/liveblocks-codemod/src/transforms/__tests__/__fixtures__/remove-unneeded-type-params/general.input.tsx:11
↓ 55 callersMethoddelete_feed
* Delete a feed by feed ID. * Also deletes all messages associated with the feed (via CASCADE). * No-op if feed doesn't exist.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:401
↓ 55 callersFunctionuseStorage
( selector: (root: ToJson<S>) => T, isEqual?: (prev: T | null, curr: T | null) => boolean )
packages/liveblocks-react/src/room.tsx:1445
↓ 53 callersMethodgetNode
Returns a single node by ID, or `undefined` if not found.
packages/liveblocks-react-flow/src/node.ts:56
↓ 53 callersMethodmove
* Move one element from one index to another. * @param index The index of the element to move * @param targetIndex The index where the element s
packages/liveblocks-core/src/crdts/LiveList.ts:1045
↓ 52 callersFunctioncreateRoomContext
(client: OpaqueClient)
packages/liveblocks-react/src/room.tsx:3966
↓ 51 callersMethodat
(index: number)
packages/liveblocks-core/src/lib/SortedList.ts:204
↓ 51 callersFunctionuseOthers
( selector?: (others: readonly User<P, U>[]) => T, isEqual?: (prev: T, curr: T) => boolean )
packages/liveblocks-react/src/room.tsx:1205
↓ 50 callersMethodmutate
* Invokes a callback function that is allowed to mutate the given state * value. Do not change the value outside of the callback. * * If the
packages/liveblocks-core/src/lib/signals.ts:469
↓ 50 callersFunctionpatchContentWithDelta
( content: AiAssistantContentPart[], delta: AiAssistantDeltaUpdate | null )
packages/liveblocks-core/src/ai.ts:1550
↓ 50 callersFunctionrender
( inlineContent: CustomInlineContentFromConfig< { type: "liveblocksMention";
packages/liveblocks-react-blocknote/src/initialization/schema.ts:24
↓ 50 callersMethodupsert
Adds or updates a thread in the DB. If the newly given thread is a deleted one, it will get deleted.
packages/liveblocks-react/src/ThreadDB.ts:109
↓ 49 callersMethoditer_nodes
* Yield all nodes as [id, node] pairs. Must always include the root node.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:137
↓ 48 callersFunctionmakeEventSource
()
packages/liveblocks-core/src/lib/EventSource.ts:91
↓ 47 callersMethodsetLocal
* @experimental * * Sets a local-only property that is not synchronized over the wire. The * value will be visible via get(), and toJSON() on
packages/liveblocks-core/src/crdts/LiveObject.ts:539
↓ 47 callersMethodto_dict
(self)
packages/liveblocks-python/liveblocks/models/room.py:50
↓ 46 callersFunctionassertNever
(_value: never, errmsg: string)
packages/liveblocks-core/src/lib/assert.ts:21
↓ 46 callersFunctioncreateThread
( overrides: Partial<ThreadDataWithDeleteInfo<BaseMetadata>> = {} )
packages/liveblocks-react/src/__tests__/umbrella-store/_dummies.ts:9
↓ 45 callersMethodinsert
* Inserts one element at a specified index. * @param element The element to insert. * @param index The index at which you want to insert the ele
packages/liveblocks-core/src/crdts/LiveList.ts:997
↓ 45 callersFunctionprepareTestsConflicts
( initialStorage: S, callback: (args: { root1: LiveObject<S>; root2: LiveObject<S>; room2: Roo
packages/liveblocks-core/e2e/utils.ts:151
↓ 44 callersFunctioncreateDummyThread
( comments: CommentData[], overrides?: Partial<{ id: string; roomId: string; createdAt: Date;
packages/liveblocks-chat-sdk-adapter/src/__tests__/index.test.ts:105
↓ 44 callersMethodfindIndex
* Returns the index of the first element in the LiveList that satisfies the provided testing function. * @param predicate Function to execute on ea
packages/liveblocks-core/src/crdts/LiveList.ts:1291
↓ 44 callersFunctionmockGetInboxNotifications
( resolver: HttpResponseResolver< never, never, { threads: ThreadData[]; inboxNotifi
packages/liveblocks-react/src/__tests__/_restMocks.ts:206
↓ 44 callersMethodreset
()
packages/liveblocks-react/src/__tests__/_MockWebSocket.ts:64
↓ 43 callersMethodget_leased_session
* Get a specific leased session by session ID. * Note: Does NOT check expiration - returns the stored session if it exists. * Expiration logic i
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:346
↓ 42 callersFunctionmutateFlow
( options: MutateFlowOptions<N, E>, callback: (flow: MutableFlow<N, E>) => void | Promise<void> )
packages/liveblocks-react-flow/src/node.ts:114
↓ 42 callersFunctionset
(point: CursorCoordinates | null)
packages/liveblocks-react-ui/src/utils/cursor-spring.ts:71
↓ 42 callersFunctionuseUser
(userId: string)
packages/liveblocks-react/src/liveblocks.tsx:2098
↓ 41 callersFunctioncreateComment
( overrides: Partial<CommentData> = {} )
packages/liveblocks-react/src/__tests__/umbrella-store/_dummies.ts:38
↓ 40 callersFunctionafter
(pos: Pos)
packages/liveblocks-core/src/lib/position.ts:192
↓ 40 callersFunctionassertUndoRedo
()
packages/liveblocks-core/src/__tests__/_devserver.ts:208
↓ 40 callersFunctioncreateDummyComment
( overrides: Partial<CommentData> & { body: CommentBody } )
packages/liveblocks-chat-sdk-adapter/src/__tests__/index.test.ts:88
↓ 40 callersFunctiondim
(text: Stringable)
tools/liveblocks-cli/src/lib/term-colors.ts:50
↓ 39 callersFunctionapi
( method: string, path: string, body?: unknown )
tools/liveblocks-cli/test/devserver/rest-api/rooms.test.ts:31
↓ 39 callersMethodcurrent
()
packages/liveblocks-core/src/lib/fsm.ts:154
↓ 39 callersMethodhas_node
* Return true iff a node with the given id exists. Must return true for "root".
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:164
↓ 39 callersMethodon
(event: "sync", listener: (synced: boolean) => void)
packages/liveblocks-core/src/room.ts:1226
↓ 39 callersFunctionuseRoom
(options?: { allowOutsideRoom: boolean; })
packages/liveblocks-react/src/room.tsx:702
↓ 38 callersMethodallow
(self, room_id_or_pattern: str, permissions: Sequence[Permission])
packages/liveblocks-python/liveblocks/session.py:194
↓ 38 callersFunctionisPlainObject
( blob: unknown )
packages/liveblocks-core/src/lib/guards.ts:5
↓ 38 callersMethodreconcile
(jsonObj: JsonObject, config?: SyncConfig)
packages/liveblocks-core/src/crdts/LiveObject.ts:884
↓ 37 callersFunctiondefineAiTool
()
packages/liveblocks-core/src/ai.ts:173
↓ 36 callersMethodget_meta
* Return the value for `key`, or undefined if not set.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:277
↓ 36 callersFunctionwaitFor
(predicate: () => boolean)
packages/liveblocks-zustand/src/__tests__/_utils.ts:7
↓ 35 callersFunctioninitRoom
* Creates a room on the dev server and optionally initializes its storage.
packages/liveblocks-react-flow/src/__tests__/mutate-flow-from-backend.test.ts:21
↓ 35 callersFunctionsanitizeUrl
(url: string)
packages/liveblocks-core/src/lib/url.ts:91
↓ 34 callersFunctionaddReaction
({ threadId, commentId, emoji, }: { threadId: string; commentId: string; emoji: stri
packages/liveblocks-core/src/room.ts:3711
↓ 34 callersFunctioncreateRegisterOp
( id: string, parentId: string, parentKey: string, data: Json, intent?: "set" | "push", deletedId?
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:466
↓ 34 callersMethodhas
(key1: K1, key2: K2)
packages/liveblocks-server/src/lib/NestedMap.ts:55
↓ 34 callersFunctionuseOverrides
(overrides?: Partial<Overrides>)
packages/liveblocks-react-ui/src/overrides.tsx:358
↓ 34 callersFunctionwaitFor
(predicate: () => boolean)
packages/liveblocks-redux/src/__tests__/_utils.ts:7
↓ 33 callersFunctioncreateListOp
( id: string, parentId: string, parentKey: string, intent?: "set" | "push", deletedId?: string, op
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:452
↓ 33 callersFunctioncreateListOp
( id: string, parentId: string, parentKey: string, intent?: "set" | "push", deletedId?: string, op
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:447
↓ 33 callersMethodpause
* Stalls the uplink: outgoing messages are buffered in-memory instead of * sent, until .resume() is called. Models a slow upload or backpressure.
packages/liveblocks-core/e2e/utils.ts:55
↓ 33 callersFunctionremoveReaction
({ threadId, commentId, emoji, }: { threadId: string; commentId: string; emoji: stri
packages/liveblocks-core/src/room.ts:3723
↓ 32 callersMethod#post
( path: URLSafeString, json: Json, options?: RequestOptions )
packages/liveblocks-node/src/client.ts:807
↓ 32 callersFunctionbefore
* Given any position value, computes the canonical position "before" it. * * The equivalent in a decimal number system would be: * before(.1)
packages/liveblocks-core/src/lib/position.ts:131
↓ 32 callersFunctioncreateSerializedRoot
(data: JsonObject = {})
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.setup.ts:588
↓ 32 callersFunctiondummyAiChatData
( partial: Partial<AiChat> & Pick<AiChat, "id"> )
packages/liveblocks-core/src/lib/__tests__/AiChatDB.test.ts:7
↓ 32 callersMethodinvalidate
()
packages/liveblocks-core/src/ai.ts:269
↓ 32 callersFunctionlist
( id: string, parentId: string, parentKey: string )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:398
↓ 32 callersFunctionlist
( id: string, parentId: string, parentKey: string )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:393
↓ 32 callersMethodpatch
(patch: Partial<TContext>)
packages/liveblocks-core/src/lib/fsm.ts:170
↓ 32 callersMethodupsert
(item: T)
packages/liveblocks-core/src/lib/TreePool.ts:238
↓ 32 callersFunctionuseLiveblocksFlow
( options: UseLiveblocksFlowOptions<N, E> = {} )
packages/liveblocks-react-flow/src/lib/flow.ts:402
↓ 31 callersMethod#get
( path: URLSafeString, params?: QueryParams, options?: RequestOptions )
packages/liveblocks-node/src/client.ts:890
↓ 31 callersFunctioncreateAuthManager
( authOptions: AuthenticationOptions, onAuthenticate?: (token: AuthToken) => void )
packages/liveblocks-core/src/auth-manager.ts:60
↓ 31 callersMethodcreate_feed
* Create a new feed. * If feedId already exists, throws an error.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:388
↓ 31 callersFunctionenterAndLeave
(options: ClientOptions)
packages/liveblocks-core/src/__tests__/client.node.test.ts:28
↓ 31 callersFunctiongetRoomFromUrl
()
e2e/next-sandbox/utils/index.tsx:8
↓ 31 callersMethodget_next_sibling
* Return the position of the closest sibling "to the right" of `pos` under * parentId, or undefined if no such sibling exists. The given `pos` may,
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:184
↓ 31 callersMethodwaitUntilLoaded
()
packages/liveblocks-react/src/umbrella-store.ts:506
↓ 30 callersMethodbroadcastEvent
* Boadcasts an event to a room without having to connect to it via the client from @liveblocks/client. The connectionId passed to event listeners is -
packages/liveblocks-node/src/client.ts:1387
↓ 30 callersFunctiongetJson
( page: Page, selector: IDSelector )
e2e/next-sandbox/test/utils.ts:224
↓ 30 callersMethodonConnection
* Set a new behavior to execute when a new server connection is made. * Replaces an existing "onConnection" behavior if any exists. It won't stack
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.ts:165
↓ 30 callersFunctionraise
(msg: string)
packages/liveblocks-core/src/lib/utils.ts:25
↓ 29 callersMethodcount
(key1: K1)
packages/liveblocks-server/src/lib/NestedMap.ts:43
↓ 29 callersFunctiongenRoomId
(testInfo: TestInfo, suffix = "")
e2e/next-sandbox/test/utils.ts:30
↓ 29 callersFunctiongetRoomExtrasForClient
(client: OpaqueClient)
packages/liveblocks-react/src/room.tsx:217
↓ 29 callersMethodgetStatus
()
packages/liveblocks-core/src/room.ts:1240
↓ 29 callersFunctionmakeComment
({ userId, threadId, body, createdAt, }: { userId: string; threadId: string; body?: CommentBody;
packages/liveblocks-emails/src/__tests__/_helpers.ts:254
↓ 29 callersFunctionobj
( id: string, data: JsonObject, parentId: string, parentKey: string )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:389
↓ 29 callersFunctionobj
( id: string, data: JsonObject, parentId: string, parentKey: string )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:384
↓ 29 callersMethodset_object_data
* Replace the data object of an OBJECT node. * * If allowOverwrite=false (default): throw if any key in `data` conflicts * with an existing c
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:234
↓ 29 callersFunctionstableStringify
(value: unknown)
packages/liveblocks-core/src/lib/stringify.ts:19
↓ 29 callersFunctionstringifyCommentBody
( body: CommentBody, options?: StringifyCommentBodyOptions<BaseUserMeta> )
packages/liveblocks-core/src/comments/comment-body.ts:603
↓ 29 callersFunctionunsub
()
packages/liveblocks-core/src/room.ts:1537
↓ 28 callersMethodcreateComment
({ roomId, threadId, commentId, body, metadata, attachmentIds, }: { roomId: stri
packages/liveblocks-core/src/api-client.ts:196
↓ 28 callersFunctioncreateRegisterOp
( id: string, parentId: string, parentKey: string, data: Json, intent?: "set" | "push", deletedId?
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:471
↓ 28 callersMethoddestroy
()
packages/liveblocks-core/src/room.ts:1241
↓ 28 callersFunctionenterAndConnect
( store: AnyLiveblocksStore, roomId: string = randomRoomId() )
packages/liveblocks-zustand/src/__tests__/index.test.ts:177
↓ 28 callersFunctiongetComposer
(page: Page)
e2e/next-sandbox/test/comments/composer.test.ts:12
↓ 27 callersFunctionconvertPostableMessageToCommentBody
( message: AdapterPostableMessage )
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:752
← previousnext →101–200 of 8,448, ranked by callers