MCPcopy Create free account

hub / github.com/churichard/notabase / functions

Functions359 in github.com/churichard/notabase

↓ 80 callersMethodgetEditor
* Gets the Slate editor element. * @example cy.getEditor()
cypress/support/commands.d.ts:61
↓ 37 callersFunctioncreateNodeId
()
editor/plugins/withNodeId.ts:34
↓ 19 callersMethodtargetPage
* Target a page to test elements within it * @example cy.targetPage('title')
cypress/support/commands.d.ts:13
↓ 14 callersFunctionisListType
( type: ElementType )
editor/formatting.ts:21
↓ 14 callersFunctionuseAuth
()
utils/useAuth.tsx:103
↓ 13 callersMethodgetSidebarNoteLink
* Gets a note in the sidebar by its title * @example cy.getSidebarNoteLink('title')
cypress/support/commands.d.ts:49
↓ 13 callersFunctionisElementActive
( editor: Editor, format: ElementType, path?: Path )
editor/formatting.ts:45
↓ 13 callersMethodvisitNote
* Visits the particular note page given by the noteId param. * @param noteId id of the note to navigate to
cypress/support/commands.d.ts:90
↓ 11 callersFunctioncreateSetter
(set, key)
lib/store.ts:56
↓ 10 callersFunctiontoggleElement
( editor: Editor, format: ElementType, path?: Path )
editor/formatting.ts:59
↓ 9 callersMethodsetSelection
* Sets the selection. * @param query Beginning text * @param endQuery End text
cypress/support/commands.d.ts:74
↓ 9 callersFunctionuseCurrentNote
()
utils/useCurrentNote.tsx:20
↓ 8 callersFunctioncaseInsensitiveStringEqual
(str1: string, str2: string)
utils/string.ts:8
↓ 8 callersFunctionisMobile
()
utils/device.ts:3
↓ 8 callersFunctionretainWhitespaceAndFormat
(string: string, format: string)
editor/serialization/serialize.ts:218
↓ 7 callersMethodgetLinkedReference
* Get linked reference based on its note title * @example cy.getLinkedReference('title')
cypress/support/commands.d.ts:31
↓ 7 callersMethodgetNoteLinkElement
* Get note link element in the editor * @example cy.clickNoteLinkElement('title')
cypress/support/commands.d.ts:37
↓ 7 callersFunctiontoggleMark
(editor: Editor, format: Mark)
editor/formatting.ts:35
↓ 7 callersFunctionuseDebounce
( value: T, delay: number )
utils/useDebounce.ts:3
↓ 6 callersFunctiondeleteText
( editor: Editor, path: Path, offset: number, length: number )
editor/transforms.ts:4
↓ 6 callersFunctiongetNumOfMatches
(backlinks: Backlink[])
components/editor/backlinks/Backlinks.tsx:40
↓ 6 callersMethodgetNumberOfLinkedReferences
* Get the number of linked references to a page * @example cy.getNumberOfLinkedReferences('pageTitle')
cypress/support/commands.d.ts:25
↓ 6 callersFunctionisReferenceableBlockElement
( element: Element )
editor/checks.ts:5
↓ 6 callersFunctionisUrl
(str: string)
utils/url.ts:2
↓ 6 callersFunctionrenderAppLayout
()
__tests__/components/AppLayout.test.tsx:12
↓ 6 callersMethodsetup
* Signs in and seeds the database with notes, then navigates to /app. * @example cy.setup();
cypress/support/commands.d.ts:7
↓ 6 callersFunctionupdateNote
(note: NoteUpdate)
lib/api/updateNote.ts:11
↓ 6 callersFunctionuseFeature
(feature: Feature)
utils/useFeature.ts:5
↓ 6 callersFunctionuseHotkeys
( hotkeys: { hotkey: string; callback: () => void }[] )
utils/useHotkeys.ts:4
↓ 5 callersFunctioncaseInsensitiveStringCompare
(str1: string, str2: string)
utils/string.ts:1
↓ 5 callersFunctiondeleteMarkup
( editor: Editor, point: Point, lengths: MarkupLengthsWithTextToInsert )
editor/plugins/withAutoMarkdown/handleInlineShortcuts.ts:199
↓ 5 callersFunctiongetTextNode
(el, match)
cypress/support/selection.js:109
↓ 5 callersMethodgetToastByContent
* * Selects a Toastify element by its content * @example cy.getToastByContent('content')
cypress/support/commands.d.ts:55
↓ 5 callersFunctionuseNoteSearch
({ numOfResults = -1, searchContent = false, extendedSearch = false, }: NoteSearchOptions = {})
utils/useNoteSearch.ts:23
↓ 5 callersFunctionuseOnNoteLinkClick
(currentNoteId: string)
editor/useOnNoteLinkClick.ts:7
↓ 5 callersFunctionwithLinks
(editor: Editor)
editor/plugins/withLinks.ts:6
↓ 5 callersFunctionwithTags
(editor: Editor)
editor/plugins/withTags.ts:4
↓ 5 callersFunctionwithVoidElements
(editor: Editor)
editor/plugins/withVoidElements.ts:12
↓ 4 callersFunctiondateCompare
(d1: string, d2: string)
utils/date.ts:1
↓ 4 callersFunctiongetActiveOrTempEditor
(noteId: string, content: Descendant[])
lib/activeEditorsStore.ts:38
↓ 4 callersFunctiongetCurrentLocation
()
editor/formatting.ts:68
↓ 4 callersFunctiongetDefaultEditorValue
()
editor/constants.ts:5
↓ 4 callersFunctioninsertExternalLink
( editor: Editor, url: string, text?: string )
editor/formatting.ts:205
↓ 4 callersFunctionisNodeDatum
( datum: string | number | NodeDatum )
components/ForceGraph.tsx:347
↓ 4 callersFunctionmockSubscription
(data: Partial<Subscription>)
__tests__/components/AppLayout.test.tsx:53
↓ 4 callersMethodpaste
* Custom command to paste text. * @example cy.paste('value')
cypress/support/commands.d.ts:67
↓ 4 callersFunctionpersistLeafFormats
(children: Array<MdastNode>)
editor/serialization/deserialize.ts:180
↓ 4 callersFunctionqueryParamToArray
( queryParam: string | string[] | undefined )
utils/url.ts:14
↓ 4 callersFunctionrenderNoteHeader
(currentNoteId = '1')
__tests__/components/NoteHeader.test.tsx:11
↓ 4 callersFunctionupsertNote
(note: NoteUpsert)
lib/api/upsertNote.ts:11
↓ 3 callersFunctioncomputeBlockReference
( notes: Notes, blockId: string )
editor/backlinks/useBlockReference.ts:55
↓ 3 callersFunctioncomputeLinkedBacklinks
( notes: Notes, noteId: string )
editor/backlinks/useBacklinks.ts:61
↓ 3 callersFunctioncreateNotabaseEditor
()
editor/createEditor.ts:16
↓ 3 callersFunctionforceLeafNode
(children: Array<{ text?: string }>)
editor/serialization/deserialize.ts:173
↓ 3 callersFunctiongetNode
( simulation: Simulation<NodeDatum, LinkDatum>, canvas: HTMLCanvasElement, canvasX: number, canvasY: n
components/ForceGraph.tsx:361
↓ 3 callersFunctiongetPlanIdByProductId
(productId: string | null)
constants/pricing.ts:124
↓ 3 callersFunctiongetReadableDate
(date: Date)
components/settings/Billing.tsx:237
↓ 3 callersFunctioninsertNoteLink
( editor: Editor, noteId: string, noteTitle: string )
editor/formatting.ts:225
↓ 3 callersFunctioninsertTreeItem
( tree: NoteTreeItem[], item: NoteTreeItem, targetId: string | null )
lib/storeUtils.ts:29
↓ 3 callersFunctionisLeafNode
(node: BlockType | LeafType)
editor/serialization/serialize.ts:48
↓ 3 callersFunctionisTextType
( type: ElementType )
editor/checks.ts:23
↓ 2 callersFunctioncomputeBlockBacklinks
(notes: Notes)
editor/backlinks/useBlockBacklinks.ts:28
↓ 2 callersFunctiondeleteBlockBacklinks
(editor: Editor, blockId: string)
editor/backlinks/deleteBlockBacklinks.ts:11
↓ 2 callersFunctiondeleteNote
(userId: string, noteId: string)
lib/api/deleteNote.ts:4
↓ 2 callersFunctiondeleteTreeItem
( tree: NoteTreeItem[], id: string )
lib/storeUtils.ts:6
↓ 2 callersFunctiongetBlockReferenceFromNote
(blockId: string, note: Note)
editor/backlinks/useBlockReference.ts:68
↓ 2 callersFunctiongetDOMRange
()
components/editor/EditorPopover.tsx:52
↓ 2 callersFunctiongetEndFormat
(format: string)
editor/serialization/serialize.ts:244
↓ 2 callersFunctiongetFrequencyByPriceId
(priceId: string)
constants/pricing.ts:133
↓ 2 callersFunctiongetHighlightedPath
( url: string )
utils/getHighlightedPath.ts:8
↓ 2 callersFunctiongetMousePos
(canvas: HTMLCanvasElement, event: MouseEvent)
components/ForceGraph.tsx:353
↓ 2 callersFunctiongetNoteAsBlob
(note: Note)
components/editor/NoteHeaderOptionsMenu.tsx:136
↓ 2 callersMethodgetNoteTitle
* Get the editable title of a note on its note page * @example cy.getNoteTitle('title')
cypress/support/commands.d.ts:43
↓ 2 callersMethodgetNumberOfNotesWithLinkedReferences
* Gets elements for each note in the linked references section * @example cy.getNumberOfNotesWithLinkedReferences()
cypress/support/commands.d.ts:19
↓ 2 callersFunctiongetOrCreateNoteId
(noteTitle: string)
editor/plugins/withAutoMarkdown/handleInlineShortcuts.ts:128
↓ 2 callersFunctiongetReadableDatetime
(dateStr: string)
components/NoteMetadata.tsx:17
↓ 2 callersFunctiongetResult
()
components/Note.tsx:204
↓ 2 callersFunctionhandleAutoMarkdown
(editor: Editor, text: string)
editor/plugins/withAutoMarkdown/index.ts:28
↓ 2 callersFunctioninsertBlockReference
( editor: Editor, blockId: string, onOwnLine: boolean )
editor/formatting.ts:274
↓ 2 callersFunctioninsertImage
(editor: Editor, url: string, path?: Path)
editor/formatting.ts:257
↓ 2 callersFunctionisCheckListItem
(node: MdastNode)
editor/serialization/normalize.ts:74
↓ 2 callersFunctionisDuplicateId
(nodeId: string)
editor/plugins/withNodeId.ts:51
↓ 2 callersFunctionisMarkActive
(editor: Editor, format: Mark)
editor/formatting.ts:27
↓ 2 callersFunctionisPartialElement
(node: any)
editor/plugins/withNodeId.ts:75
↓ 2 callersFunctionisVoid
(element: Element)
editor/plugins/withVoidElements.ts:22
↓ 2 callersFunctionsetBaseAndExtent
(...args)
cypress/support/selection.js:123
↓ 2 callersFunctionsignOut
()
utils/useAuth.tsx:44
↓ 2 callersFunctiontoggleNoteTreeItemCollapsed
( tree: NoteTreeItem[], id: string )
lib/storeUtils.ts:57
↓ 2 callersFunctionunwrapLink
(editor: Editor)
editor/formatting.ts:172
↓ 2 callersFunctionuploadAndInsertImage
( editor: Editor, file: File, path?: Path )
editor/plugins/withImages.ts:50
↓ 2 callersFunctionuseDeleteNote
(noteId: string)
utils/useDeleteNote.ts:8
↓ 2 callersFunctionuseHighlightedPath
( editor: Editor, highlightedPath: Path | undefined, darkMode: boolean )
editor/useHighlightedPath.ts:6
↓ 2 callersFunctionuseImport
()
utils/useImport.ts:20
↓ 2 callersFunctionuseOnClickOutside
( element: Element | null, handler?: () => void )
utils/useOnClickOutside.ts:3
↓ 2 callersFunctionuseOnClosePane
()
utils/useOnClosePane.ts:7
↓ 2 callersFunctionusePrevious
(value: T)
utils/usePrevious.ts:3
↓ 2 callersFunctionwithVerticalSpacing
( EditorElement: ComponentType<EditorElementProps> )
components/editor/elements/withVerticalSpacing.tsx:6
↓ 2 callersFunctionwrapLink
(editor: Editor, link: ExternalLink | NoteLink)
editor/formatting.ts:182
↓ 1 callersFunctioncomputeLinkedMatches
(nodes: Descendant[], noteId: string)
editor/backlinks/useBacklinks.ts:111
↓ 1 callersFunctioncomputeUnlinkedBacklinks
( notes: Notes, noteTitle: string | undefined )
editor/backlinks/useBacklinks.ts:84
next →1–100 of 359, ranked by callers