MCPcopy Create free account

hub / github.com/campsite/campsite / functions

Functions3,480 in github.com/campsite/campsite

↓ 680 callersFunctiondataTaggedQueryKey
(key: unknown)
packages/types/generated.ts:4443
↓ 671 callersMethodrequest
({ body, secure, path, type, query, format, baseUrl, cancelToken, ...param
packages/types/generated.ts:4370
↓ 576 callersFunctioncn
(...inputs: ClassValue[])
packages/ui/src/utils/cn.ts:4
↓ 510 callersMethodmap
(mapping, doc)
packages/editor/src/lib/recreate-transform/merge.js:72
↓ 436 callersFunctionuseScope
()
apps/web/contexts/scope.tsx:75
↓ 162 callersMethodpush
(elt: Node)
packages/editor/src/utils/MarkdownParser.ts:118
↓ 140 callersFunctiononOpenChange
()
packages/ui/src/Popover/Popover.tsx:25
↓ 105 callersFunctionuseGetCurrentUser
()
apps/web/hooks/useGetCurrentUser.ts:7
↓ 96 callersMethodfocus
(pos: 'start' | 'end' | 'restore' | 'start-newline' | MouseEvent)
apps/web/components/NoteEditor/NoteContent.tsx:51
↓ 83 callersFunctionuseQueryNormalizer
()
apps/web/utils/normy/QueryNormalizerProvider.tsx:34
↓ 61 callersFunctionsetTypedInfiniteQueriesData
(queryClient: TQueryClient, queryKey: TaggedQueryKey, updater: Updater<NoInfer<TPagedData>>)
apps/web/utils/queryClient.ts:181
↓ 61 callersFunctionuseGetCurrentOrganization
({ enabled = true, select }: Props<T> = {})
apps/web/hooks/useGetCurrentOrganization.ts:15
↓ 60 callersFunctioncreateNormalizedOptimisticUpdate
({ queryNormalizer, type, id, update }: { queryNormalizer: ReturnType<typeof useQueryNormalizer> t
apps/web/utils/queryNormalization.ts:64
↓ 60 callersFunctionsetValue
(key: keyof NewOrgSchema, value: any)
apps/web/components/NewOrganizationForm.tsx:134
↓ 59 callersFunctionsetOpen
(open: boolean)
packages/ui/src/DropdownMenu/index.tsx:41
↓ 56 callersFunctionflattenInfiniteData
(data?: InfiniteData<DataPage<T>>)
apps/web/utils/flattenInfiniteData.ts:11
↓ 55 callersFunctionsetTypedQueryData
( queryClient: TQueryClient, queryKey: TaggedQueryKey, updater: Updater<NoInfer<TInferredData>> )
apps/web/utils/queryClient.ts:169
↓ 47 callersFunctionuseIsDesktopApp
()
packages/ui/src/hooks/useIsDesktopApp.ts:9
↓ 43 callersFunctionbuildMenuItems
(items?: (MenuItem | undefined | false | null | '')[] | false)
packages/ui/src/Menu/utils.ts:7
↓ 41 callersFunctionsetNormalizedData
({ queryNormalizer, type, id, update }: { queryNormalizer: ReturnType<typeof useQueryNormalizer> t
apps/web/utils/queryNormalization.ts:39
↓ 40 callersFunctioncreateNormalizer
(normalizerConfig?: NormalizerConfig, initialNormalizedData?: NormalizedData)
apps/web/utils/normy/core/create-normalizer.ts:50
↓ 35 callersFunctionisAlphaNumeric
(char: string)
apps/web/utils/isAlphaNumeric.ts:3
↓ 35 callersFunctionsetTypedQueriesData
(queryClient: TQueryClient, queryKey: TaggedQueryKey, updater: Updater<NoInfer<TInferredData>>)
apps/web/utils/queryClient.ts:158
↓ 34 callersFunctionisKeyboardCharacter
(char: string | undefined | null)
apps/web/utils/isKeyboardCharacter.ts:3
↓ 34 callersMethodparse
(text: string, markdownEnv: Object = {})
packages/editor/src/utils/MarkdownParser.ts:459
↓ 33 callersFunctionuseBindCurrentUserEvent
(eventName: string, callback: Function, options?: Options)
apps/web/hooks/useBindCurrentUserEvent.ts:9
↓ 32 callersMethodgetBoundingClientRect
()
apps/web/components/SuggestionList.tsx:39
↓ 29 callersFunctionuseCopyToClipboard
()
packages/ui/src/hooks/useCopyToClipboard.ts:11
↓ 28 callersFunctiongetNormalizedData
({ queryNormalizer, type, id }: { queryNormalizer: ReturnType<typeof useQueryNormalizer> type: Key
apps/web/utils/queryNormalization.ts:92
↓ 27 callersFunctioncreateSampleProject
(partial: Partial<Project> = {})
apps/web/utils/__tests__/normy/react-query/queryNormalization.test.ts:14
↓ 25 callersFunctionuseCurrentUserOrOrganizationHasFeature
(feature: UserFeatures & OrgFeatures)
apps/web/hooks/useCurrentUserOrOrganizationHasFeature.ts:4
↓ 23 callersFunctioncreateMarkdownParser
( schema: Schema, extensions: AnyExtension[], // WARNING: Provide JSDOM window and document objects to a
packages/editor/src/utils/createMarkdownParser.ts:61
↓ 23 callersFunctionfetch
* Fetch the document state from Campsite, or generate a new document from the existing * HTML if the document has never been edited before.
apps/sync-server/src/database.ts:53
↓ 23 callersFunctionuseBreakpoint
(size: keyof typeof BREAKPOINTS, minMax: 'min' | 'max' = 'min')
packages/ui/src/hooks/useBreakpoint.ts:23
↓ 23 callersFunctionusePusherSocketIdHeader
()
apps/web/contexts/pusher.tsx:42
↓ 22 callersFunctionsetupEditor
(content: string)
packages/editor/src/extensions/__tests__/SplitNearHardBreaks.test.ts:9
↓ 21 callersMethodgetHTML
()
apps/web/components/MarkdownEditor/index.tsx:98
↓ 21 callersFunctionuseBindChannelEvent
(channel: Channel | null, eventName: string, callback: Function)
apps/web/hooks/useBindChannelEvent.ts:4
↓ 20 callersFunctionatomWithWebStorage
( key: string | string[], initialValue: T, storage = typeof window !== 'undefined' ? window.localStorage
apps/web/utils/atomWithWebStorage.ts:7
↓ 20 callersFunctioncreateMarkdownParserSpec
(spec: ParseSpec)
packages/editor/src/utils/createMarkdownParser.ts:59
↓ 20 callersFunctiongetNoteExtensions
(options?: GetNoteExtensionsOptions)
packages/editor/src/note.ts:66
↓ 20 callersFunctiongetTypedQueryData
(queryClient: TQueryClient, queryKey: TaggedQueryKey)
apps/web/utils/queryClient.ts:190
↓ 20 callersFunctionuseViewerIsAdmin
({ enabled }: Props = {})
apps/web/hooks/useViewerIsAdmin.ts:11
↓ 18 callersFunctioniconForFavoritableType
(favoritableType: Favorite['favoritable_type'], size = 20)
apps/web/components/Sidebar/SidebarFavorite.tsx:18
↓ 18 callersFunctionuseCanHover
()
apps/web/hooks/useCanHover.ts:4
↓ 18 callersFunctionuseGetPost
(options?: Options)
apps/web/hooks/useGetPost.ts:20
↓ 18 callersFunctionuseIsCommunity
()
apps/web/hooks/useIsCommunity.ts:5
↓ 17 callersFunctiontrimHtml
(html: string)
apps/web/utils/trimHtml.ts:36
↓ 16 callersFunctionmockImageAttachment
({ url }: Pick<Attachment, 'url'>)
apps/web/components/AttachmentGrid/mockData.ts:144
↓ 15 callersFunctioncontainsOnlyReactions
(html: string)
apps/web/utils/reactions/containsOnlyReactions.ts:12
↓ 15 callersFunctionnavigate
(destination: Url)
apps/web/components/CommandMenu/LocalCommandMenu.tsx:123
↓ 14 callersFunctionsetQuery
(queryKey: string, queryData: Data)
apps/web/utils/normy/core/create-normalizer.ts:56
↓ 14 callersFunctionuseCallbackRef
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a * prop or avoid re-executing effects when passed as
packages/ui/src/hooks/useCallbackRef.ts:10
↓ 14 callersFunctionusePostComposer
()
apps/web/components/PostComposer/hooks/usePostComposer.ts:63
↓ 14 callersFunctionuseToken
()
apps/figma/src/core/tokens.ts:20
↓ 13 callersFunctionapiErrorToast
(error: Error)
apps/web/utils/apiErrorToast.ts:5
↓ 13 callersFunctionclose
()
apps/web/components/CommandMenu/LocalCommandMenu.tsx:117
↓ 13 callersFunctiongetDependencies
( data: Data, config = defaultConfig, usedKeys?: UsedKeys, path = '' )
apps/web/utils/normy/core/normalize.ts:27
↓ 13 callersFunctionisStandardReaction
(reaction: StandardReaction | SyncCustomReaction)
apps/web/utils/reactions/index.ts:13
↓ 13 callersFunctionnormalize
(data: Data, config = defaultConfig)
apps/web/utils/normy/core/normalize.ts:62
↓ 13 callersFunctionuseGetOrganizationMember
({ username, org, enabled = true }: { username?: string org?: string enabled?: boolean })
apps/web/hooks/useGetOrganizationMember.ts:8
↓ 13 callersFunctionuseGetOrganizationMemberships
(options?: Props)
apps/web/hooks/useGetOrganizationMemberships.ts:13
↓ 13 callersFunctionuseSyncedMembers
({ enabled = true, includeDeactivated = false, deactivated = false, excludeCurrentUser = false, only
apps/web/hooks/useSyncedMembers.ts:29
↓ 12 callersFunctiondenormalize
( data: Data, normalizedData: { [key: string]: Data }, usedKeys: UsedKeys, path = '' )
apps/web/utils/normy/core/denormalize.ts:3
↓ 12 callersFunctiongetMarkdownExtensions
(options?: GetMarkdownExtensionsOptions)
packages/editor/src/markdown.ts:53
↓ 12 callersFunctionremoveFavorite
({ queryClient, scope, resourceId }: RemoveFavoriteOpts)
apps/web/utils/optimisticFavorites.ts:92
↓ 12 callersFunctionuseCommand
()
packages/ui/src/Command/Command.tsx:182
↓ 12 callersFunctionuseScopedStorage
(key: string, initialValue: T)
apps/web/hooks/useScopedStorage.ts:5
↓ 11 callersFunctionencodeCommandListSubject
( subject: Post | Note | Call | CommandListSubject, { href, pinned = false }: { href?: string; pinned?: bo
apps/web/utils/commandListSubject.ts:54
↓ 11 callersMethodinit
()
packages/editor/src/lib/recreate-transform/recreate.js:45
↓ 11 callersFunctionisMetaEnter
(evt: React.KeyboardEvent)
packages/ui/src/utils/isMetaEnter.ts:1
↓ 11 callersFunctionuseGetProject
({ id, enabled = true, organization }: { id?: string enabled?: boolean organization?: PublicOrgani
apps/web/hooks/useGetProject.ts:12
↓ 11 callersFunctionuseStoredState
( key: string | string[], initialValue: T, storage: Storage | undefined = typeof window !== 'undefined'
apps/web/hooks/useStoredState.ts:12
↓ 10 callersMethodaddText
(text: string)
packages/editor/src/utils/MarkdownParser.ts:124
↓ 10 callersFunctiongetImmediateScrollableNode
(node: HTMLElement | null)
apps/web/utils/scroll.ts:6
↓ 10 callersFunctiongroupByDate
(items: T[], getDate: (item: T) => string, sortOrder: 'asc' | 'desc' = 'desc')
apps/web/utils/groupByDate.ts:1
↓ 10 callersFunctionlongTimestamp
(timestamp: string, overrides?: Intl.DateTimeFormatOptions)
apps/web/utils/timestamp.ts:10
↓ 10 callersFunctiononChange
(inView)
apps/web/components/Sidebar/SidebarLink.tsx:68
↓ 10 callersFunctionselect
(index: number, debounce: boolean = true)
apps/web/components/InboxItems/InboxSplitView.tsx:284
↓ 10 callersFunctionsetupEditor
(content: string)
packages/editor/src/extensions/__tests__/MediaGallery.test.ts:9
↓ 10 callersFunctionsetupEditor
(content: string)
packages/editor/src/extensions/__tests__/PostNoteAttachment.test.ts:9
↓ 10 callersFunctionuseGetNotifications
({ enabled = true, unreadOnly = false, organization, filter }: Props = {})
apps/web/hooks/useGetNotifications.ts:17
↓ 9 callersMethodapply
(user, index)
packages/editor/src/lib/recreate-transform/merge.js:133
↓ 9 callersFunctioncreateQueryNormalizer
( queryClient: QueryClient, normalizerConfig: Omit<NormalizerConfig, 'structuralSharing'> & { normaliz
apps/web/utils/normy/react-query/create-query-normalizer.ts:13
↓ 9 callersFunctiongetChangelog
()
apps/site/lib/changelog.ts:23
↓ 9 callersFunctiongetGroupDateHeading
(date: string)
apps/web/utils/getGroupDateHeading.ts:1
↓ 9 callersFunctionisNotification
(item: Notification | FollowUp)
apps/web/components/InboxItems/utils/index.ts:8
↓ 9 callersMethodtop
()
packages/editor/src/utils/MarkdownParser.ts:114
↓ 9 callersFunctionuseGetUnreadNotificationsCount
()
apps/web/hooks/useGetUnreadNotificationsCount.ts:40
↓ 9 callersFunctionuseIsSplitViewAvailable
()
apps/web/components/SplitView/hooks/useIsSplitViewAvailable.ts:9
↓ 9 callersFunctionusePusher
()
apps/web/contexts/pusher.tsx:40
↓ 9 callersFunctionuseUpdatePreference
()
apps/web/hooks/useUpdatePreference.ts:7
↓ 8 callersFunctiondesktopJoinCall
(url: string)
packages/ui/src/Link/utils.ts:48
↓ 8 callersFunctiongetExpiration
(expiresIn: OrganizationsOrgSlugMembersMeStatusesPostRequest['expiration_setting'])
apps/web/hooks/useCreateStatus.ts:13
↓ 8 callersFunctiongetFileMetadata
( attachment: Partial< Pick<Attachment, 'name' | 'file_type' | 'url' | 'download_url' | 'origami' | 'pri
apps/web/utils/getFileMetadata.ts:7
↓ 8 callersFunctionnext
(e: KeyboardEvent, mod: 'none' | 'meta' | 'alt' = 'none')
packages/ui/src/Command/Command.tsx:602
↓ 8 callersFunctionprependNewPost
(post: Post)
apps/web/hooks/useCreatePost.ts:10
↓ 8 callersFunctionresolve
()
apps/web/utils/reactions/mutations.ts:22
↓ 8 callersFunctionscrollImmediateScrollableNodeToBottom
(node: HTMLElement | null)
apps/web/utils/scroll.ts:25
↓ 8 callersFunctionsigninUrl
({ inviteToken, from }: UrlProps = {})
apps/web/utils/queryClient.ts:13
next →1–100 of 3,480, ranked by callers