MCPcopy Create free account

hub / github.com/anyproto/anytype-ts / functions

Functions7,272 in github.com/anyproto/anytype-ts

↓ 2,171 callersFunctiontranslate
(key: string)
src/ts/test/setup.ts:127
↓ 1,281 callersMethodpush
* Pushes a new route to the history list. * @param {string} route - The route to push.
src/ts/lib/history.ts:18
↓ 939 callersFunctiontext
(t: string)
docs/whatsNew-legacy.ts:16
↓ 903 callersFunctionregisterIcon
(name: string, component: SvgIconComponent)
src/ts/component/util/icons/registry.ts:8
↓ 852 callersFunctionbullet
(t: string)
docs/whatsNew-legacy.ts:18
↓ 762 callersFunctiontext
(t: string)
src/ts/docs/help/whatsNew/common.ts:42
↓ 707 callersFunctionbullet
(t: string)
src/ts/docs/help/whatsNew/common.ts:44
↓ 653 callersMethodget
(type: I.SelectType)
src/ts/component/selection/provider.tsx:25
↓ 533 callersMethodfilter
()
src/ts/store/common.ts:256
↓ 457 callersFunctionNumber
(props: React.SVGProps<SVGSVGElement>)
src/ts/component/util/icons/relation/number.tsx:3
↓ 437 callersMethodselect
()
src/ts/component/form/textarea.tsx:27
↓ 436 callersFunctionlink
(url: string, t: string)
docs/whatsNew-legacy.ts:23
↓ 419 callersMethodevent
* Logs an analytics event with the given code and data. * @param {string} code - The event code. * @param {any} [data] - Optional event data.
src/ts/lib/analytics.ts:309
↓ 394 callersFunctiontranslate
(key: string, force?: string)
src/ts/lib/translate.ts:14
↓ 334 callersFunctionlink
(url: string, t: string)
src/ts/docs/help/whatsNew/common.ts:51
↓ 322 callersMethodopen
(panel: I.SidebarPanel, subPage?: string, width?: number, animate?: boolean)
src/ts/lib/sidebar.ts:182
↓ 302 callersMethodsetTimeout
* Sets a timeout for a given ID and function. * @param {string} id - The timeout ID. * @param {number} delay - The timeout duration. * @param {(
src/ts/store/common.ts:1217
↓ 300 callersMethodset
(type: I.SelectType, ids: string[])
src/ts/component/selection/provider.tsx:27
↓ 291 callersMethodcss
(el: HTMLElement | null, styles: Partial<CSSStyleDeclaration>)
src/ts/lib/util/dom.ts:78
↓ 284 callersMethodremoveEvent
(target: EventTarget, name: string, handler: EventListenerOrEventListenerObject, options?: boolean | EventList
src/ts/lib/util/dom.ts:88
↓ 257 callersMethodrequest
* Send a command request to the middleware and handle the response. * This is the main method for all command-based communication with anytype-heart
src/ts/lib/api/dispatcher.ts:1744
↓ 250 callersMethodreplace
* Replaces a menu with a new ID and parameters. * @param {string} oldId - The old menu ID. * @param {string} newId - The new menu ID. * @param {
src/ts/store/menu.ts:100
↓ 246 callersMethodremoveClass
(v: string)
src/ts/component/form/textarea.tsx:31
↓ 246 callersMethodshortcut
* Handles a keyboard shortcut. * @param {string} s - The shortcut name. * @param {any} e - The event object. * @param {function} callBack - The
src/ts/lib/keyboard.ts:2041
↓ 227 callersMethodaddClass
(v: string)
src/ts/component/form/textarea.tsx:30
↓ 215 callersMethodesc
(v: any)
src/ts/lib/util/dom.ts:6
↓ 212 callersFunctionhl
(t: string)
docs/whatsNew-legacy.ts:9
↓ 212 callersMethodsprintf
* Formats a string using sprintf-style formatting. * @param {...any[]} args - The format string followed by values to format. * @returns {string}
src/ts/lib/util/string.ts:38
↓ 182 callersFunctionhl
(t: string)
src/ts/docs/help/whatsNew/common.ts:35
↓ 171 callersMethodgetLeaf
* Gets a block by ID. * @param {string} rootId - The root ID. * @param {string} id - The block ID. * @returns {I.Block|null} The block or null.
src/ts/store/block.ts:363
↓ 170 callersMethodmax
()
src/ts/lib/dataview.ts:1008
↓ 166 callersMethodclearTimeout
* Clears the menu close timeout. * @private
src/ts/store/menu.ts:317
↓ 148 callersMethodclear
()
src/ts/component/selection/provider.tsx:28
↓ 148 callersMethodon
* Registers an event listener for a given event. * @param {string} event - The event name. * @param {function} callBack - The callback function.
src/ts/lib/renderer.ts:33
↓ 144 callersMethodaddEvent
(target: EventTarget, name: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventL
src/ts/lib/util/dom.ts:84
↓ 139 callersFunctioncallBack
(id, color)
src/ts/component/menu/smile.tsx:618
↓ 136 callersFunctionclose
(callBack?: () => void)
src/ts/component/menu/index.tsx:686
↓ 136 callersMethodselectAll
(selector: string, root: ParentNode = document)
src/ts/lib/util/dom.ts:27
↓ 135 callersMethodcloseAll
* Closes all menus, optionally filtered by IDs. * @param {string[]} [ids] - Menu IDs to close. * @param {() => void} [callBack] - Optional callbac
src/ts/store/menu.ts:231
↓ 130 callersMethodmin
()
src/ts/lib/dataview.ts:1004
↓ 122 callersFunctionh3
(t: string, align?: I.BlockHAlign)
docs/whatsNew-legacy.ts:14
↓ 121 callersMethodclose
(callBack?: () => void)
src/ts/interface/menu.ts:79
↓ 112 callersMethodgetArrayValue
* Converts a value to an array of strings. * @param {any} value - The value to convert. * @returns {any[]} The array value.
src/ts/lib/relation.ts:838
↓ 106 callersFunctiongetView
(viewId?: string)
src/ts/component/block/dataview.tsx:393
↓ 105 callersMethodisOpen
* Checks if a menu is open. * @param {string} [id] - The menu ID. * @param {string} [key] - The menu key. * @param {string[]} [filter] - Filter
src/ts/store/menu.ts:125
↓ 105 callersMethodupdate
* Updates a chat message by ID. * @param {string} subId - The subscription ID. * @param {Partial<I.ChatMessage>} param - The chat message update.
src/ts/store/chat.ts:152
↓ 103 callersMethodtoggleClass
(el: HTMLElement, name: string, force?: boolean)
src/ts/lib/util/dom.ts:56
↓ 99 callersMethodtranslate
(key: string)
electron/ts/util.ts:301
↓ 96 callersFunctionsetActive
(item: any, index: number, scroll: boolean)
src/ts/component/menu/block/media.tsx:397
↓ 94 callersMethodgetRelationByKey
* Gets a relation object by its key. * @private * @param {string} relationKey - The relation key. * @returns {any|null} The relation object or n
src/ts/store/record.ts:661
↓ 91 callersMethoddisableSelection
* Disables or enables selection events. * @param {boolean} v - The state value.
src/ts/lib/keyboard.ts:1935
↓ 90 callersFunctionh2
(t: string, align?: I.BlockHAlign)
docs/whatsNew-legacy.ts:13
↓ 86 callersMethodgetScrollContainer
()
src/ts/component/util/media/audio.tsx:12
↓ 84 callersMethodobjectCopy
* Deep copies an object using JSON serialization. * @param {any} o - The object to copy. * @returns {any} The copied object.
src/ts/lib/util/common.ts:54
↓ 83 callersMethodsetValue
(v: string)
src/ts/component/form/filter.tsx:32
↓ 81 callersMethodlog
(method: string, ...args: any[])
electron/ts/util.ts:39
↓ 80 callersMethodsend
* Sends a command to the Electron API with arguments. * @param {...any[]} args - The command and arguments to send. * @returns {any} The result fr
src/ts/lib/renderer.ts:9
↓ 79 callersFunctiongetId
()
src/ts/component/menu/index.tsx:1030
↓ 78 callersMethodfocus
()
src/ts/component/form/filter.tsx:29
↓ 78 callersMethodgetRef
* Gets a reference by ID. * @param {string} id - The reference ID. * @returns {any} The reference object.
src/ts/store/common.ts:1172
↓ 77 callersMethodgetTypeById
* Gets a type object by its ID. * @private * @param {string} id - The type ID. * @returns {any|null} The type object or null.
src/ts/store/record.ts:400
↓ 76 callersMethodsend
(win: AppWindow, ...args: [string, ...any[]])
electron/ts/util.ts:124
↓ 74 callersMethodnow
* Returns the current time as a Unix timestamp (seconds since epoch). * @returns {number} The current Unix timestamp.
src/ts/lib/util/date.ts:13
↓ 73 callersMethodremove
* Removes a list of blocks from a root object. * @param {string} rootId - The root object ID. * @param {string} blockId - The block ID to focus af
src/ts/lib/action.ts:184
↓ 72 callersFunctionimg
(src: string, c?: string)
docs/whatsNew-legacy.ts:22
↓ 69 callersMethodapply
* Applies the current focus state to the DOM. * @returns {Focus} The Focus instance.
src/ts/lib/focus.ts:109
↓ 64 callersMethodtoCamelCase
* Converts a string to camelCase. * @param {string} str - The string to convert. * @returns {string} The converted string.
src/ts/lib/util/string.ts:177
↓ 63 callersMethodgetNode
()
src/ts/component/sidebar/section/index.tsx:28
↓ 62 callersMethodsort
* Sorts marks by type and range. * @param {I.Mark} c1 - First mark. * @param {I.Mark} c2 - Second mark. * @returns {number} Sort order.
src/ts/lib/mark.ts:223
↓ 61 callersMethodgetSpaceview
* Gets the spaceview object for a given ID or the current spaceview. * @param {string} [id] - The spaceview ID. * @returns {any} The spaceview obj
src/ts/lib/util/space.ts:323
↓ 61 callersFunctionimg
(src: string, c?: string)
src/ts/docs/help/whatsNew/common.ts:50
↓ 61 callersMethodlog
* Logs analytics messages to the console. * @param {...any[]} args - Arguments to log.
src/ts/lib/analytics.ts:918
↓ 60 callersMethodgetData
(panel: I.SidebarPanel, isPopup?: boolean)
src/ts/lib/sidebar.ts:158
↓ 58 callersFunctionh2
(t: string, align?: I.BlockHAlign)
src/ts/docs/help/whatsNew/common.ts:39
↓ 56 callersMethodgetElectron
* Returns the Electron object from the window, or an empty object if not available.
src/ts/lib/util/common.ts:38
↓ 56 callersFunctionposition
()
src/ts/component/menu/index.tsx:429
↓ 54 callersMethodsetFocus
* Sets the focus state for a root object. * @param {string} rootId - The root object ID. * @param {I.FocusState} state - The focus state to set.
src/ts/lib/storage.ts:560
↓ 52 callersMethodgetCaption
* Gets the caption for a shortcut by ID. * @param {string} id - The shortcut ID. * @returns {string} The caption.
src/ts/lib/keyboard.ts:2108
↓ 52 callersMethodgetValue
()
src/ts/component/form/filter.tsx:33
↓ 52 callersMethodopenConfig
Opens object based on user setting 'Open objects in fullscreen mode'
src/ts/lib/util/object.ts:330
↓ 51 callersMethodgo
* Navigates to a route and calls the callback with match params. * @param {string} route - The route to go to. * @param {function} callBack - The
src/ts/lib/history.ts:74
↓ 49 callersMethodgetRootId
* Gets the root object ID for the current context. * @param {boolean} [isPopup] - Whether to get for popup context. * @returns {string} The root o
src/ts/lib/keyboard.ts:1568
↓ 49 callersFunctionh3
(t: string, align?: I.BlockHAlign)
src/ts/docs/help/whatsNew/common.ts:40
↓ 49 callersMethodupdateData
* Updates the data of a menu with the given ID. * @param {string} id - The menu ID. * @param {any} data - The new data.
src/ts/store/menu.ts:87
↓ 48 callersMethodeventDispatch
(target: EventTarget, name: string, detail?: any)
src/ts/lib/util/dom.ts:100
↓ 48 callersMethodplural
* Returns the correct plural form of a word based on a count. * @param {number} cnt - The count. * @param {string} words - The word forms separate
src/ts/lib/util/common.ts:432
↓ 47 callersMethodaddEvents
(target: EventTarget, events: [string, EventListenerOrEventListenerObject][])
src/ts/lib/util/dom.ts:92
↓ 47 callersMethodisLocal
* Checks if a key is a local key. * @param {string} key - The key to check. * @returns {boolean} True if the key is a local key.
src/ts/lib/storage.ts:110
↓ 46 callersFunctionclose
(callBack?: () => void)
src/ts/component/popup/index.tsx:59
↓ 46 callersMethodspaceSubId
* Returns a space-qualified subscription ID by appending the spaceId. * @param {string} subId - The base subscription ID. * @param {string} [space
src/ts/lib/util/subscription.ts:29
↓ 45 callersMethodisAllowed
* Checks if the given restrictions and flags allow an action. * @param {any[]} restrictions - The restrictions array. * @param {any[]} flags - The
src/ts/store/block.ts:915
↓ 45 callersMethodtoggle
* Toggles a mark in the list of marks, handling overlaps and merging. * @param {I.Mark[]} marks - The current list of marks. * @param {I.Mark} mar
src/ts/lib/mark.ts:121
↓ 44 callersMethodgetTargetObjectId
()
src/ts/interface/block/index.ts:124
↓ 43 callersMethodcancel
()
electron/ts/update.ts:162
↓ 43 callersMethodgetChildren
(rootId: string, blockId: string, filter?: (it: any) => boolean)
src/ts/store/block.ts:410
↓ 43 callersMethodisPopup
* Returns true if the current context is a popup. * @returns {boolean}
src/ts/lib/keyboard.ts:1559
↓ 42 callersMethodhasClass
(el: HTMLElement, name: string)
src/ts/lib/util/dom.ts:52
↓ 42 callersMethodisTypeLayout
(layout: I.ObjectLayout)
src/ts/lib/util/object.ts:571
↓ 42 callersMethodsanitize
* Sanitizes a string for safe HTML rendering, allowing certain tags. * @param {string} s - The string to sanitize. * @returns {string} The sanitiz
src/ts/lib/util/string.ts:462
↓ 42 callersMethodtimestamp
* Returns a Unix timestamp for the given date and time components. * @param {number} [y] - Year. * @param {number} [m] - Month (1-12). * @param
src/ts/lib/util/date.ts:30
next →1–100 of 7,272, ranked by callers