Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anyproto/anytype-ts
/ functions
Functions
7,272 in github.com/anyproto/anytype-ts
⨍
Functions
7,272
◇
Types & classes
823
↓ 2,171 callers
Function
translate
(key: string)
src/ts/test/setup.ts:127
↓ 1,281 callers
Method
push
* Pushes a new route to the history list. * @param {string} route - The route to push.
src/ts/lib/history.ts:18
↓ 939 callers
Function
text
(t: string)
docs/whatsNew-legacy.ts:16
↓ 903 callers
Function
registerIcon
(name: string, component: SvgIconComponent)
src/ts/component/util/icons/registry.ts:8
↓ 852 callers
Function
bullet
(t: string)
docs/whatsNew-legacy.ts:18
↓ 762 callers
Function
text
(t: string)
src/ts/docs/help/whatsNew/common.ts:42
↓ 707 callers
Function
bullet
(t: string)
src/ts/docs/help/whatsNew/common.ts:44
↓ 653 callers
Method
get
(type: I.SelectType)
src/ts/component/selection/provider.tsx:25
↓ 533 callers
Method
filter
()
src/ts/store/common.ts:256
↓ 457 callers
Function
Number
(props: React.SVGProps<SVGSVGElement>)
src/ts/component/util/icons/relation/number.tsx:3
↓ 437 callers
Method
select
()
src/ts/component/form/textarea.tsx:27
↓ 436 callers
Function
link
(url: string, t: string)
docs/whatsNew-legacy.ts:23
↓ 419 callers
Method
event
* 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 callers
Function
translate
(key: string, force?: string)
src/ts/lib/translate.ts:14
↓ 334 callers
Function
link
(url: string, t: string)
src/ts/docs/help/whatsNew/common.ts:51
↓ 322 callers
Method
open
(panel: I.SidebarPanel, subPage?: string, width?: number, animate?: boolean)
src/ts/lib/sidebar.ts:182
↓ 302 callers
Method
setTimeout
* 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 callers
Method
set
(type: I.SelectType, ids: string[])
src/ts/component/selection/provider.tsx:27
↓ 291 callers
Method
css
(el: HTMLElement | null, styles: Partial<CSSStyleDeclaration>)
src/ts/lib/util/dom.ts:78
↓ 284 callers
Method
removeEvent
(target: EventTarget, name: string, handler: EventListenerOrEventListenerObject, options?: boolean | EventList
src/ts/lib/util/dom.ts:88
↓ 257 callers
Method
request
* 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 callers
Method
replace
* 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 callers
Method
removeClass
(v: string)
src/ts/component/form/textarea.tsx:31
↓ 246 callers
Method
shortcut
* 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 callers
Method
addClass
(v: string)
src/ts/component/form/textarea.tsx:30
↓ 215 callers
Method
esc
(v: any)
src/ts/lib/util/dom.ts:6
↓ 212 callers
Function
hl
(t: string)
docs/whatsNew-legacy.ts:9
↓ 212 callers
Method
sprintf
* 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 callers
Function
hl
(t: string)
src/ts/docs/help/whatsNew/common.ts:35
↓ 171 callers
Method
getLeaf
* 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 callers
Method
max
()
src/ts/lib/dataview.ts:1008
↓ 166 callers
Method
clearTimeout
* Clears the menu close timeout. * @private
src/ts/store/menu.ts:317
↓ 148 callers
Method
clear
()
src/ts/component/selection/provider.tsx:28
↓ 148 callers
Method
on
* 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 callers
Method
addEvent
(target: EventTarget, name: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventL
src/ts/lib/util/dom.ts:84
↓ 139 callers
Function
callBack
(id, color)
src/ts/component/menu/smile.tsx:618
↓ 136 callers
Function
close
(callBack?: () => void)
src/ts/component/menu/index.tsx:686
↓ 136 callers
Method
selectAll
(selector: string, root: ParentNode = document)
src/ts/lib/util/dom.ts:27
↓ 135 callers
Method
closeAll
* 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 callers
Method
min
()
src/ts/lib/dataview.ts:1004
↓ 122 callers
Function
h3
(t: string, align?: I.BlockHAlign)
docs/whatsNew-legacy.ts:14
↓ 121 callers
Method
close
(callBack?: () => void)
src/ts/interface/menu.ts:79
↓ 112 callers
Method
getArrayValue
* 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 callers
Function
getView
(viewId?: string)
src/ts/component/block/dataview.tsx:393
↓ 105 callers
Method
isOpen
* 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 callers
Method
update
* 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 callers
Method
toggleClass
(el: HTMLElement, name: string, force?: boolean)
src/ts/lib/util/dom.ts:56
↓ 99 callers
Method
translate
(key: string)
electron/ts/util.ts:301
↓ 96 callers
Function
setActive
(item: any, index: number, scroll: boolean)
src/ts/component/menu/block/media.tsx:397
↓ 94 callers
Method
getRelationByKey
* 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 callers
Method
disableSelection
* Disables or enables selection events. * @param {boolean} v - The state value.
src/ts/lib/keyboard.ts:1935
↓ 90 callers
Function
h2
(t: string, align?: I.BlockHAlign)
docs/whatsNew-legacy.ts:13
↓ 86 callers
Method
getScrollContainer
()
src/ts/component/util/media/audio.tsx:12
↓ 84 callers
Method
objectCopy
* 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 callers
Method
setValue
(v: string)
src/ts/component/form/filter.tsx:32
↓ 81 callers
Method
log
(method: string, ...args: any[])
electron/ts/util.ts:39
↓ 80 callers
Method
send
* 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 callers
Function
getId
()
src/ts/component/menu/index.tsx:1030
↓ 78 callers
Method
focus
()
src/ts/component/form/filter.tsx:29
↓ 78 callers
Method
getRef
* Gets a reference by ID. * @param {string} id - The reference ID. * @returns {any} The reference object.
src/ts/store/common.ts:1172
↓ 77 callers
Method
getTypeById
* 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 callers
Method
send
(win: AppWindow, ...args: [string, ...any[]])
electron/ts/util.ts:124
↓ 74 callers
Method
now
* 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 callers
Method
remove
* 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 callers
Function
img
(src: string, c?: string)
docs/whatsNew-legacy.ts:22
↓ 69 callers
Method
apply
* Applies the current focus state to the DOM. * @returns {Focus} The Focus instance.
src/ts/lib/focus.ts:109
↓ 64 callers
Method
toCamelCase
* 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 callers
Method
getNode
()
src/ts/component/sidebar/section/index.tsx:28
↓ 62 callers
Method
sort
* 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 callers
Method
getSpaceview
* 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 callers
Function
img
(src: string, c?: string)
src/ts/docs/help/whatsNew/common.ts:50
↓ 61 callers
Method
log
* Logs analytics messages to the console. * @param {...any[]} args - Arguments to log.
src/ts/lib/analytics.ts:918
↓ 60 callers
Method
getData
(panel: I.SidebarPanel, isPopup?: boolean)
src/ts/lib/sidebar.ts:158
↓ 58 callers
Function
h2
(t: string, align?: I.BlockHAlign)
src/ts/docs/help/whatsNew/common.ts:39
↓ 56 callers
Method
getElectron
* Returns the Electron object from the window, or an empty object if not available.
src/ts/lib/util/common.ts:38
↓ 56 callers
Function
position
()
src/ts/component/menu/index.tsx:429
↓ 54 callers
Method
setFocus
* 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 callers
Method
getCaption
* 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 callers
Method
getValue
()
src/ts/component/form/filter.tsx:33
↓ 52 callers
Method
openConfig
Opens object based on user setting 'Open objects in fullscreen mode'
src/ts/lib/util/object.ts:330
↓ 51 callers
Method
go
* 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 callers
Method
getRootId
* 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 callers
Function
h3
(t: string, align?: I.BlockHAlign)
src/ts/docs/help/whatsNew/common.ts:40
↓ 49 callers
Method
updateData
* 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 callers
Method
eventDispatch
(target: EventTarget, name: string, detail?: any)
src/ts/lib/util/dom.ts:100
↓ 48 callers
Method
plural
* 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 callers
Method
addEvents
(target: EventTarget, events: [string, EventListenerOrEventListenerObject][])
src/ts/lib/util/dom.ts:92
↓ 47 callers
Method
isLocal
* 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 callers
Function
close
(callBack?: () => void)
src/ts/component/popup/index.tsx:59
↓ 46 callers
Method
spaceSubId
* 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 callers
Method
isAllowed
* 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 callers
Method
toggle
* 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 callers
Method
getTargetObjectId
()
src/ts/interface/block/index.ts:124
↓ 43 callers
Method
cancel
()
electron/ts/update.ts:162
↓ 43 callers
Method
getChildren
(rootId: string, blockId: string, filter?: (it: any) => boolean)
src/ts/store/block.ts:410
↓ 43 callers
Method
isPopup
* Returns true if the current context is a popup. * @returns {boolean}
src/ts/lib/keyboard.ts:1559
↓ 42 callers
Method
hasClass
(el: HTMLElement, name: string)
src/ts/lib/util/dom.ts:52
↓ 42 callers
Method
isTypeLayout
(layout: I.ObjectLayout)
src/ts/lib/util/object.ts:571
↓ 42 callers
Method
sanitize
* 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 callers
Method
timestamp
* 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