{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './lib/commons.js';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,mBAAmB"}
{"version":3,"sources":["../../src/lib/i18n.ts"],"sourcesContent":["export interface Locale {\n id: string;\n name: string;\n /** `true` if the language is a right-to-left one, or `false` if it's left-to-right. */\n rtl?: boolean;\n /** `true` if the language is not supported by the application as a display language, but it is selectable by the user for the content. */\n contentOnly?: boolean;\n /** The value to pass to `--lang` for the Electron instance in order to set it as a locale. Not setting it will hide it from the list of supported locales. */\n electronLocale?: string;\n}"],"names":[],"rangeMappings":"","mappings":"AAAA,WASC"}
{"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from \"./i18n.js\";\nexport * from \"./options_interface.js\";\nexport * from \"./keyboard_actions_interface.js\";\nexport * from \"./hidden_subtree.js\";\nexport * from \"./rows.js\";\nexport * from \"./test-utils.js\""],"names":[],"rangeMappings":";;;;;","mappings":"AAAA,cAAc,YAAY;AAC1B,cAAc,yBAAyB;AACvC,cAAc,kCAAkC;AAChD,cAAc,sBAAsB;AACpC,cAAc,YAAY;AAC1B,cAAc,kBAAiB"}
{"version":3,"sources":["../../src/lib/keyboard_actions_interface.ts"],"sourcesContent":["const enum KeyboardActionNamesEnum {\n backInNoteHistory,\n forwardInNoteHistory,\n jumpToNote,\n scrollToActiveNote,\n quickSearch,\n searchInSubtree,\n expandSubtree,\n collapseTree,\n collapseSubtree,\n sortChildNotes,\n createNoteAfter,\n createNoteInto,\n createNoteIntoInbox,\n deleteNotes,\n moveNoteUp,\n moveNoteDown,\n moveNoteUpInHierarchy,\n moveNoteDownInHierarchy,\n editNoteTitle,\n editBranchPrefix,\n cloneNotesTo,\n moveNotesTo,\n copyNotesToClipboard,\n pasteNotesFromClipboard,\n cutNotesToClipboard,\n selectAllNotesInParent,\n addNoteAboveToSelection,\n addNoteBelowToSelection,\n duplicateSubtree,\n openNewTab,\n closeActiveTab,\n reopenLastTab,\n activateNextTab,\n activatePreviousTab,\n openNewWindow,\n toggleTray,\n toggleZenMode,\n firstTab,\n secondTab,\n thirdTab,\n fourthTab,\n fifthTab,\n sixthTab,\n seventhTab,\n eigthTab,\n ninthTab,\n lastTab,\n showNoteSource,\n showOptions,\n showRevisions,\n showRecentChanges,\n showSQLConsole,\n showBackendLog,\n showCheatsheet,\n showHelp,\n addLinkToText,\n followLinkUnderCursor,\n insertDateTimeToText,\n pasteMarkdownIntoText,\n cutIntoNote,\n addIncludeNoteToText,\n editReadOnlyNote,\n addNewLabel,\n addNewRelation,\n toggleRibbonTabClassicEditor,\n toggleRibbonTabBasicProperties,\n toggleRibbonTabBookProperties,\n toggleRibbonTabFileProperties,\n toggleRibbonTabImageProperties,\n toggleRibbonTabOwnedAttributes,\n toggleRibbonTabInheritedAttributes,\n toggleRibbonTabPromotedAttributes,\n toggleRibbonTabNoteMap,\n toggleRibbonTabNoteInfo,\n toggleRibbonTabNotePaths,\n toggleRibbonTabSimilarNotes,\n toggleRightPane,\n printActiveNote,\n exportAsPdf,\n openNoteExternally,\n renderActiveNote,\n runActiveNote,\n toggleNoteHoisting,\n unhoist,\n reloadFrontendApp,\n openDevTools,\n findInText,\n toggleLeftPane,\n toggleFullscreen,\n zoomOut,\n zoomIn,\n zoomReset,\n copyWithoutFormatting,\n forceSaveRevision\n}\n\nexport type KeyboardActionNames = keyof typeof KeyboardActionNamesEnum;\n\nexport interface KeyboardShortcut {\n separator?: string;\n actionName?: KeyboardActionNames;\n description?: string;\n defaultShortcuts?: string[];\n effectiveShortcuts?: string[];\n /**\n * Scope here means on which element the keyboard shortcuts are attached - this means that for the shortcut to work,\n * the focus has to be inside the element.\n *\n * So e.g. shortcuts with \"note-tree\" scope work only when the focus is in note tree.\n * This allows to have the same shortcut have different actions attached based on the context\n * e.g. CTRL-C in note tree does something a bit different from CTRL-C in the text editor.\n */\n scope?: \"window\" | \"note-tree\" | \"text-detail\" | \"code-detail\";\n}\n\nexport interface KeyboardShortcutWithRequiredActionName extends KeyboardShortcut {\n actionName: KeyboardActionNames;\n}\n"],"names":[],"rangeMappings":";","mappings":";AAoHA,WAEC"}
{"version":3,"sources":["../../src/lib/test-utils.ts"],"sourcesContent":["/**\n * Reads the level of indentation of the first line and trims the identation for all the text by that amount.\n *\n * For example, for:\n *\n * ```json\n * {\n * \"hello\": \"world\"\n * }\n * ```\n *\n * it results in:\n *\n * ```json\n * {\n * \"hello\": \"world\"\n * }\n * ```\n *\n * This is meant to be used as a template string, where it allows the indentation of the template without affecting whitespace changes.\n *\n * @example const html = trimIndentation`\\\n * <h1>Heading 1</h1>\n * <h2>Heading 2</h2>\n * <h3>Heading 3</h3>\n * <h4>Heading 4</h4>\n * <h5>Heading 5</h5>\n * <h6>Heading 6</h6>\n * `;\n * @param strings\n * @returns\n */\nexport function trimIndentation(strings: TemplateStringsArray, ...values: any[]) {\n // Combine the strings with the values using interpolation\n let str = strings.reduce((acc, curr, index) => {\n return acc + curr + (values[index] !== undefined ? values[index] : '');\n }, '');\n\n // Count the number of spaces on the first line.\n let numSpaces = 0;\n while (str.charAt(numSpaces) == \" \" && numSpaces < str.length) {\n numSpaces++;\n }\n\n // Trim the indentation of the first line in all the lines.\n const lines = str.split(\"\\n\");\n const output = [];\n for (let i = 0; i < lines.length; i++) {\n let numSpacesLine = 0;\n while (str.charAt(numSpacesLine) == \" \" && numSpacesLine < str.length) {\n numSpacesLine++;\n }\n output.push(lines[i].substring(numSpacesLine));\n }\n return output.join(\"\\n\");\n}\n"],"names":["trimIndentation","strings","values","str","reduce","acc","curr","index","undefined","numSpaces","charAt","length","lines","split","output","i","numSpacesLine","push","substring","join"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BC,GACD,OAAO,SAASA,gBAAgBC,OAA6B,EAAE,GAAGC,MAAa;IAC3E,0DAA0D;IAC1D,IAAIC,MAAMF,QAAQG,MAAM,CAAC,CAACC,KAAKC,MAAMC;QACjC,OAAOF,MAAMC,OAAQJ,CAAAA,MAAM,CAACK,MAAM,KAAKC,YAAYN,MAAM,CAACK,MAAM,GAAG,EAAC;IACxE,GAAG;IAEH,gDAAgD;IAChD,IAAIE,YAAY;IAChB,MAAON,IAAIO,MAAM,CAACD,cAAc,OAAOA,YAAYN,IAAIQ,MAAM,CAAE;QAC3DF;IACJ;IAEA,2DAA2D;IAC3D,MAAMG,QAAQT,IAAIU,KAAK,CAAC;IACxB,MAAMC,SAAS,EAAE;IACjB,IAAK,IAAIC,IAAI,GAAGA,IAAIH,MAAMD,MAAM,EAAEI,IAAK;QACnC,IAAIC,gBAAgB;QACpB,MAAOb,IAAIO,MAAM,CAACM,kBAAkB,OAAOA,gBAAgBb,IAAIQ,MAAM,CAAE;YACnEK;QACJ;QACAF,OAAOG,IAAI,CAACL,KAAK,CAACG,EAAE,CAACG,SAAS,CAACF;IACnC;IACA,OAAOF,OAAOK,IAAI,CAAC;AACvB"}
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.047Z - Established a connection. Number of open connections: 1
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.047Z - Established a connection. Number of open connections: 2
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.049Z - Closed a connection. Number of open connections: 1
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.050Z - [REQUEST]: Client Request for Project Graph Received
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.236Z - Time taken for 'Load Nx Plugin: /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/plugins/package-json' 183.43766200000002ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.237Z - Time taken for 'Load Nx Plugin: /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/plugins/js' 184.517177ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.244Z - Time taken for 'loadDefaultNxPlugins' 192.56135600000002ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.249Z - Time taken for 'Load Nx Plugin: @nx/eslint/plugin' 198.26815399999998ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.256Z - Time taken for 'Load Nx Plugin: @nx/js/typescript' 205.296808ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.294Z - Time taken for 'Load Nx Plugin: @nx/webpack/plugin' 242.65156ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:16.298Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:17.106Z - Time taken for 'build-project-configs' 771.4791720000001ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:17.112Z - Time taken for '@nx/vite/plugin:createDependencies' 13.781097000000045ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:17.112Z - Time taken for '@nx/js/typescript:createDependencies' 17.800535999999965ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:17.459Z - [REQUEST]: Responding to the client with an error. Error when preparing serialized project graph. Failed to process project graph.
- apps/server/webpack.config.js: ReferenceError: require is not defined
at file:///home/elian/Projects/TriliumNext/Notes/apps/server/webpack.config.js:1:32
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:360:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1385:24)
at Module._compile (node:internal/modules/cjs/loader:1536:5)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:17.462Z - Time taken for 'total execution time for createProjectGraph()' 360.4894939999999ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:17.463Z - Done responding to the client null
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:29.859Z - Time taken for 'build-project-configs' 33.759664999999586ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:29.862Z - Time taken for '@nx/js/typescript:createDependencies' 10.411420999998882ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:29.863Z - Time taken for '@nx/vite/plugin:createDependencies' 8.803603000000294ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:29.885Z - Time taken for 'total execution time for createProjectGraph()' 28.4164980000005ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:31.966Z - Established a connection. Number of open connections: 4
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:31.966Z - Closed a connection. Number of open connections: 3
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:31.966Z - Established a connection. Number of open connections: 4
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:31.967Z - [REQUEST]: Client Request for Project Graph Received
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:31.968Z - [REQUEST]: Responding to the client with an error. Error when preparing serialized project graph. Failed to process project graph.
- apps/server/webpack.config.js: Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module /home/elian/Projects/TriliumNext/Notes/apps/server/webpack.config.js in a cycle. (from /home/elian/Projects/TriliumNext/Notes/node_modules/@nx/webpack/src/utils/webpack/resolve-user-defined-webpack-config.js)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:346:15)
at loadESMFromCJS (node:internal/modules/cjs/loader:1385:24)
at Module._compile (node:internal/modules/cjs/loader:1536:5)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
[NX v20.8.0 Daemon Server] - 2025-04-22T14:17:31.971Z - Done responding to the client null
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:56.890Z - Time taken for 'build-project-configs' 33.69587200001115ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:56.897Z - Time taken for '@nx/js/typescript:createDependencies' 14.273482999997213ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:56.921Z - Time taken for 'total execution time for createProjectGraph()' 31.034029000002192ms
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:59.019Z - Established a connection. Number of open connections: 4
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:59.019Z - Closed a connection. Number of open connections: 3
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:59.019Z - Established a connection. Number of open connections: 4
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:59.021Z - [REQUEST]: Client Request for Project Graph Received
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:59.021Z - [REQUEST]: Responding to the client with an error. Error when preparing serialized project graph. Failed to process project graph.
- apps/server/webpack.config.js: Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module /home/elian/Projects/TriliumNext/Notes/apps/server/webpack.config.js in a cycle. (from /home/elian/Projects/TriliumNext/Notes/node_modules/@nx/webpack/src/utils/webpack/resolve-user-defined-webpack-config.js)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:346:15)
at loadESMFromCJS (node:internal/modules/cjs/loader:1385:24)
at Module._compile (node:internal/modules/cjs/loader:1536:5)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
[NX v20.8.0 Daemon Server] - 2025-04-22T14:19:59.025Z - Done responding to the client null