MCPcopy Create free account

hub / github.com/liveblocks/liveblocks / functions

Functions8,448 in github.com/liveblocks/liveblocks

↓ 17 callersMethodemit
(eventName: string | symbol, ...args: any[])
packages/liveblocks-core/e2e/utils.ts:108
↓ 17 callersFunctiongetColorClassName
( color: AvailableChartColorsKeys, type: ColorUtility, )
examples/nextjs-ai-dashboard-reports/src/lib/chartUtils.ts:107
↓ 17 callersMethodgetOrCreate
* Gets the value at the given key, or creates it. * * Difference from normal Map: if the key does not exist, it will be created * on the fly
packages/liveblocks-server/src/lib/DefaultMap.ts:55
↓ 17 callersMethodgetStorageDocument
( roomId: string, format: "plain-lson" | "json" = "plain-lson", options?: RequestOptions )
packages/liveblocks-node/src/client.ts:1471
↓ 17 callersMethodget_last_sibling
* Return the position of the last (rightmost) child under parentId, or * undefined if the node has no children. Positions compare * lexicographi
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:191
↓ 17 callersFunctioninitRoom
* Creates a room on the dev server and initializes its storage. * Returns the room ID, which can be passed to enterAndConnect().
packages/liveblocks-zustand/src/__tests__/index.test.ts:61
↓ 17 callersFunctionmergeRoomPermissionScopes
({ defaultAccesses, groupsAccesses, userAccesses, }: { defaultAccesses: RoomPermissions; groupsAcces
packages/liveblocks-core/src/permissions.ts:392
↓ 17 callersMethodmove_sibling
* Change a node's parentKey, effectively repositioning the node within its * parent. The new position must be free. * Throw if another node alre
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:207
↓ 17 callersMethodmutateStorage
( roomId: string, callback: (context: { root: LiveObject<LsonObject>; }) => void | Promise<v
packages/liveblocks-react-flow/src/node.ts:24
↓ 17 callersFunctiontoInlineCSSString
(styles: CSSProperties)
packages/liveblocks-emails/src/lib/css-properties.ts:90
↓ 17 callersMethodupdateKnowledge
( layerKey: LayerKey, key: string, data: AiKnowledgeSource | null )
packages/liveblocks-core/src/ai.ts:280
↓ 17 callersFunctionupdateNode
(id: string, partialOrUpdater: Partial<N> | ((node: N) => N))
packages/liveblocks-react-flow/src/node.ts:211
↓ 17 callersFunctionuseCanUndo
* Returns whether there are any operations to undo.
packages/liveblocks-react/src/room.tsx:1024
↓ 17 callersFunctionuseInitial
(value: T, roomId?: string)
packages/liveblocks-react/src/lib/use-initial.ts:11
↓ 17 callersFunctionuseUpdateMyPresence
()
packages/liveblocks-react/src/room.tsx:1150
↓ 16 callersMethod_indexOfPosition
@internal
packages/liveblocks-core/src/crdts/LiveList.ts:167
↓ 16 callersFunctioncreateBatchStore
(batch: Batch<O, I>)
packages/liveblocks-core/src/lib/batch.ts:173
↓ 16 callersFunctioncreateLiveblocksContext
(client: OpaqueClient)
packages/liveblocks-react/src/liveblocks.tsx:1863
↓ 16 callersFunctiondetectDupes
( pkgName: string, pkgVersion: string | false, // false if not built yet pkgFormat: string | false // fa
packages/liveblocks-core/src/dupe-detection.ts:30
↓ 16 callersFunctionmakeAccessToken
(permissions: Record<string, RoomPermissions>)
packages/liveblocks-core/src/__tests__/auth-manager.test.ts:31
↓ 16 callersFunctionmap
( id: string, parentId: string, parentKey: string )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:406
↓ 16 callersFunctionmap
( id: string, parentId: string, parentKey: string )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:401
↓ 16 callersMethodpushLeft
(value: T | readonly T[])
packages/liveblocks-core/src/lib/Deque.ts:68
↓ 16 callersMethodset
* Adds or updates a property with a specified key and a value. * @param key The key of the property to add * @param value The value of the prope
packages/liveblocks-core/src/crdts/LiveObject.ts:526
↓ 16 callersFunctionuseCanRedo
* Returns whether there are any operations to redo.
packages/liveblocks-react/src/room.tsx:1043
↓ 16 callersFunctionuseMarkAllInboxNotificationsAsRead
()
packages/liveblocks-react/src/liveblocks.tsx:423
↓ 16 callersFunctionwebsocketSimulator
()
packages/liveblocks-react/src/__tests__/_MockWebSocket.ts:137
↓ 15 callersFunctionSOCKET_AUTOCONNECT_AND_ROOM_STATE
( actor: number = 1, scopes: string[] = ["room:write"] )
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.behaviors.ts:161
↓ 15 callersFunctionbatch
(callback: () => T)
packages/liveblocks-core/src/room.ts:3372
↓ 15 callersMethoddecodeThreadId
* Decodes an encoded thread ID string back into its room ID and thread ID components. * * @throws {Error} If the thread ID format is invalid
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:566
↓ 15 callersFunctionensureNotServerSide
()
packages/liveblocks-react/src/lib/ssr.ts:1
↓ 15 callersFunctiongetLiveblocksExtrasForClient
(client: OpaqueClient)
packages/liveblocks-react/src/liveblocks.tsx:260
↓ 15 callersMethodget_feed
* Get a specific feed by feed ID. * Returns feed metadata only (without messages). * Use list_feed_messages to retrieve messages for this feed.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:382
↓ 15 callersFunctioninitRoom
* Creates a room on the dev server and optionally seeds its storage.
packages/liveblocks-redux/src/__tests__/index.test.ts:29
↓ 15 callersFunctionisKey
( event: KeyboardEvent | ReactKeyboardEvent, key: string, modifiers: Partial<Record<keyof typeof MODIFIE
packages/liveblocks-react-ui/src/utils/is-key.ts:13
↓ 15 callersFunctionmakeFSM
( promiseFn: (context: unknown, signal: AbortSignal) => Promise<unknown> )
packages/liveblocks-core/src/lib/__tests__/fsm.test.ts:769
↓ 15 callersMethodonEnter
( nameOrPattern: TState | Wildcard<TState>, enterFn: EnterFn<TContext> )
packages/liveblocks-core/src/lib/fsm.ts:387
↓ 15 callersFunctiononMutationFailure
( optimisticId: string, context: LiveblocksErrorContext & { roomId: string }, innerError: Error
packages/liveblocks-react/src/room.tsx:242
↓ 15 callersFunctionpreparePage
(url: string, options?: WindowOptions)
e2e/next-sandbox/test/utils.ts:83
↓ 15 callersFunctionuseCreateThread
()
packages/liveblocks-react/src/room.tsx:1928
↓ 15 callersFunctionvalidatePermissionsSet
( scopes: readonly string[] )
packages/liveblocks-core/src/permissions.ts:503
↓ 14 callersMethod#delete
( path: URLSafeString, params?: QueryParams, options?: RequestOptions )
packages/liveblocks-node/src/client.ts:871
↓ 14 callersFunctionbold
(text: Stringable)
tools/liveblocks-cli/src/lib/term-colors.ts:46
↓ 14 callersFunctionconvertCommentBody
( body: CommentBody, options: ConvertCommentBodyOptions<T, U> )
packages/liveblocks-emails/src/comment-body.tsx:131
↓ 14 callersFunctioncreateMapOp
( id: string, parentId: string, parentKey: string, intent?: "set" | "push", deletedId?: string, op
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:492
↓ 14 callersFunctioncreateMapOp
( id: string, parentId: string, parentKey: string, intent?: "set" | "push", deletedId?: string, op
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:487
↓ 14 callersFunctioncreateSerializedRegister
( id: string, parentId: string, parentKey: string, data: Json )
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.setup.ts:608
↓ 14 callersMethodeditComment
({ roomId, threadId, commentId, body, attachmentIds, metadata, }: { roomId: stri
packages/liveblocks-core/src/api-client.ts:213
↓ 14 callersFunctionfn
({ elements })
packages/liveblocks-react-tiptap/src/ai/AiToolbar.tsx:128
↓ 14 callersFunctiongenerateThreadId
()
packages/liveblocks-emails/src/__tests__/_helpers.ts:84
↓ 14 callersFunctiongetHeaderLabel
(index: number, type: "column" | "row")
examples/nextjs-spreadsheet-advanced/src/spreadsheet/interpreter/utils.ts:13
↓ 14 callersMethodidentifyUser
( identity: | string // Shorthand for userId | Identity, ...rest: OptionalTupleUnless<
packages/liveblocks-node/src/client.ts:981
↓ 14 callersMethodlast
* The server socket of the last connection that has been established to the * server.
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.ts:68
↓ 14 callersFunctionmakeTypecheckTestConfig
(testFiles, name)
shared/vitest-config/typecheck.js:35
↓ 14 callersMethodnext
()
packages/liveblocks-core/src/crdts/LiveMap.ts:365
↓ 14 callersFunctionobjectUpdate
( contents: ToJson<TContents>, updates: LiveObjectUpdateDelta<TContents> )
packages/liveblocks-core/src/__tests__/_updatesUtils.ts:123
↓ 14 callersFunctionrandomString
(length: number)
e2e/next-sandbox/pages/storage/stress/[roomId]/index.tsx:72
↓ 14 callersFunctionresetToDefaultNodes
* Sets up the database with the following root document structure * * LiveObject({ # root * l: LiveList(), # 0:dl * m: L
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:156
↓ 14 callersFunctionresetToDefaultNodes
* Sets up the database with the following root document structure * * LiveObject({ # root * l: LiveList(), # 0:dl * m: L
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:151
↓ 14 callersFunctionsetServerHandlers
({ thread, inboxNotification, groups, }: { thread: ThreadData; inboxNotification: InboxN
packages/liveblocks-emails/src/__tests__/thread-notification.test.tsx:60
↓ 14 callersFunctionuseComposer
()
packages/liveblocks-react-ui/src/primitives/Composer/contexts.ts:183
↓ 14 callersFunctionuseUrlMetadata
* Returns metadata for a given URL. * * @example * const { metadata, error, isLoading } = useUrlMetadata("https://liveblocks.io");
packages/liveblocks-react/src/liveblocks.tsx:1364
↓ 14 callersFunctionwrite_nodes
(driver: IStorageDriver, nodeStream: NodeStream)
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:1000
↓ 14 callersFunctionwrite_nodes
(driver: IStorageDriver, nodeStream: NodeStream)
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:995
↓ 13 callersMethodaddEdge
Adds an edge. If an edge with the same ID already exists, it is replaced.
packages/liveblocks-react-flow/src/node.ts:81
↓ 13 callersFunctionapplyUpsertComment
( thread: ThreadDataWithDeleteInfo<TM, CM>, comment: CommentData<CM> )
packages/liveblocks-react/src/umbrella-store.ts:2870
↓ 13 callersFunctioncreateNotificationSettings
( plain: NotificationSettingsPlain )
packages/liveblocks-core/src/protocol/NotificationSettings.ts:98
↓ 13 callersMethoddeleteThread
({ roomId, threadId, }: { roomId: string; threadId: string; visibility?: ThreadVisibilit
packages/liveblocks-core/src/api-client.ts:163
↓ 13 callersMethodfindMany
(query: AiChatsQuery)
packages/liveblocks-core/src/AiChatDB.ts:58
↓ 13 callersFunctiongetCellId
(columnId: string, rowId: string)
examples/nextjs-spreadsheet-advanced/src/spreadsheet/utils.ts:22
↓ 13 callersMethodgetThread
(options: { roomId: string; threadId: string })
packages/liveblocks-core/src/api-client.ts:157
↓ 13 callersFunctiongetUmbrellaStoreForClient
(client: OpaqueClient)
packages/liveblocks-react/src/liveblocks.tsx:244
↓ 13 callersMethodgetYDocUpdate
* If passed a state vector, an update with diff will be returned, if not the entire doc is returned. * * @param stateVector a base64 encoded tar
packages/liveblocks-server/src/YjsStorage.ts:102
↓ 13 callersMethodkeys
()
packages/liveblocks-server/src/lib/NestedMap.ts:47
↓ 13 callersFunctionlistUpdateInsert
( index: number, item: ToJson<TItem> )
packages/liveblocks-core/src/__tests__/_updatesUtils.ts:145
↓ 13 callersFunctionmakeThreadInboxNotification
({ threadId, notifiedAt, readAt, }: { threadId: string; notifiedAt?: Date; readAt?: Date; })
packages/liveblocks-emails/src/__tests__/_helpers.ts:313
↓ 13 callersFunctionmapValues
( obj: O, mapFn: (value: O[keyof O], key: keyof O) => V )
packages/liveblocks-core/src/lib/utils.ts:75
↓ 13 callersMethodregisterLayer
(uniqueLayerId: string)
packages/liveblocks-core/src/ai.ts:241
↓ 13 callersMethodsend
* Send should be synchronous and never throw. It should return: * - Return -1 if sending was attempted, but there was back pressure *
packages/liveblocks-server/src/interfaces/IServerWebSocket.ts:31
↓ 13 callersFunctionsendMessage
()
e2e/next-feeds/app/chat-room/page.tsx:232
↓ 13 callersMethodsetConnection
* Records a known connection. This records the connection ID and the * associated metadata.
packages/liveblocks-core/src/refs/ManagedOthers.ts:121
↓ 13 callersMethodsetOther
* Stores a new user from a full presence update. If the user already exists, * its known presence data is overwritten.
packages/liveblocks-core/src/refs/ManagedOthers.ts:160
↓ 13 callersFunctionstringify
( value?: Json | YjsContentData | YjsContentData[], maxDepth = 2, depth = 0, seen = new WeakSet< J
tools/liveblocks-devtools/src/lib/stringify.ts:25
↓ 13 callersFunctionuseNotificationSettings
* Returns notification settings for the current user. * * @example * const [{ settings }, updateNotificationSettings] = useNotificationSettings()
packages/liveblocks-react/src/liveblocks.tsx:2073
↓ 13 callersFunctionuseStorage
()
tools/liveblocks-devtools/src/devtools/contexts/CurrentRoom.tsx:440
↓ 13 callersFunctionuseUndo
* Returns a function that undoes the last operation executed by the current * client. It does not impact operations made by other clients.
packages/liveblocks-react/src/room.tsx:988
↓ 13 callersMethodverify_request
Verify a webhook request and return the parsed event. Args: headers: The HTTP headers as a string-to-string mapping.
packages/liveblocks-python/liveblocks/webhooks.py:431
↓ 12 callersFunctionASYNC_OK
( fieldOrData: F | T, data?: T )
packages/liveblocks-react/src/lib/AsyncResult.ts:15
↓ 12 callersMethodaddYDocUpdate
* @param update base64 encoded uint8array * @returns { isUpdated: boolean; snapshotHash: string } * isUpdated: true if the update had an effec
packages/liveblocks-server/src/YjsStorage.ts:174
↓ 12 callersFunctioncommentsResourceForVisibility
( visibility: ThreadVisibility | undefined )
packages/liveblocks-core/src/api-client.ts:710
↓ 12 callersMethoddelete_meta
* Delete the value under `key`. No-op if not set.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:287
↓ 12 callersFunctionformatIso8601Duration
(duration: number)
packages/liveblocks-react-ui/src/primitives/Duration.tsx:210
↓ 12 callersFunctiongetAll
(storage: Storage)
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:976
↓ 12 callersFunctiongetAll
(storage: Storage)
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:971
↓ 12 callersFunctiongetIndexWithProperty
( array: readonly T[], property: K, value: T[K] )
examples/nextjs-spreadsheet-advanced/src/utils/getIndexWithProperty.ts:1
↓ 12 callersFunctiongetNodeCenter
(node: FlowchartNode)
examples/nextjs-react-flow-ai/app/flowchart/shared.ts:71
↓ 12 callersMethodgetThreads
(options: { roomId: string; cursor?: string; query?: { resolved?: boolean; visibility?
packages/liveblocks-core/src/api-client.ts:81
↓ 12 callersFunctiongetUser
(userId: string)
starter-kits/nextjs-starter-kit/lib/database/getUser.ts:11
↓ 12 callersFunctiongetYjsProviderForRoom
( room: OpaqueRoom, options: ProviderOptions = {}, forceNewProvider: boolean = false )
packages/liveblocks-yjs/src/providerContext.ts:20
↓ 12 callersFunctionsendAiMessage
(page: Page, message: string)
e2e/next-ai-kitchen-sink/test/knowledge.test.ts:48
← previousnext →301–400 of 8,448, ranked by callers