Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(monorepo): remove dist
Elian Dorane6559630041c
diff --git a/packages/commons/dist/index.js b/packages/commons/dist/index.jsdeleted file mode 100644index c8e9044f5d..0000000000--- a/packages/commons/dist/index.js+++ /dev/null@@ -1,3 +0,0 @@-export * from './lib/commons.js';--//# sourceMappingURL=index.js.map\ No newline at end of filediff --git a/packages/commons/dist/index.js.map b/packages/commons/dist/index.js.mapdeleted file mode 100644index 45deb07fae..0000000000--- a/packages/commons/dist/index.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './lib/commons.js';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,mBAAmB"}\ No newline at end of filediff --git a/packages/commons/dist/lib/hidden_subtree.js b/packages/commons/dist/lib/hidden_subtree.jsdeleted file mode 100644index ea191a4c5b..0000000000--- a/packages/commons/dist/lib/hidden_subtree.js+++ /dev/null@@ -1,12 +0,0 @@-var Command;-(function(Command) {- Command[Command["jumpToNote"] = 0] = "jumpToNote";- Command[Command["searchNotes"] = 1] = "searchNotes";- Command[Command["createNoteIntoInbox"] = 2] = "createNoteIntoInbox";- Command[Command["showRecentChanges"] = 3] = "showRecentChanges";- Command[Command["showOptions"] = 4] = "showOptions";- Command[Command["createAiChat"] = 5] = "createAiChat";-})(Command || (Command = {}));-export { };--//# sourceMappingURL=hidden_subtree.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/hidden_subtree.js.map b/packages/commons/dist/lib/hidden_subtree.js.mapdeleted file mode 100644index 5fe8660e50..0000000000--- a/packages/commons/dist/lib/hidden_subtree.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"sources":["../../src/lib/hidden_subtree.ts"],"sourcesContent":["import { AttributeType } from \"./rows.js\";\n\ntype LauncherNoteType = \"launcher\" | \"search\" | \"doc\" | \"noteMap\" | \"contentWidget\" | \"book\" | \"file\" | \"image\" | \"text\" | \"relationMap\" | \"render\" | \"canvas\" | \"mermaid\" | \"webView\" | \"code\" | \"mindMap\" | \"geoMap\";\n\nenum Command {\n jumpToNote,\n searchNotes,\n createNoteIntoInbox,\n showRecentChanges,\n showOptions,\n createAiChat\n}\n\nexport interface HiddenSubtreeAttribute {\n type: AttributeType;\n name: string;\n isInheritable?: boolean;\n value?: string;\n}\n\nexport interface HiddenSubtreeItem {\n notePosition?: number;\n id: string;\n title: string;\n type: LauncherNoteType;\n icon?: string;\n attributes?: HiddenSubtreeAttribute[];\n children?: HiddenSubtreeItem[];\n isExpanded?: boolean;\n baseSize?: string;\n growthFactor?: string;\n targetNoteId?: \"_backendLog\" | \"_globalNoteMap\";\n builtinWidget?:\n | \"todayInJournal\"\n | \"bookmarks\"\n | \"spacer\"\n | \"backInHistoryButton\"\n | \"forwardInHistoryButton\"\n | \"syncStatus\"\n | \"protectedSession\"\n | \"calendar\"\n | \"quickSearch\"\n | \"aiChatLauncher\";\n command?: keyof typeof Command;\n}"],"names":["Command"],"rangeMappings":";;;;;;;;;","mappings":";UAIKA;;;;;;;GAAAA,YAAAA;AAgBL,WAwBC"}\ No newline at end of filediff --git a/packages/commons/dist/lib/i18n.js b/packages/commons/dist/lib/i18n.jsdeleted file mode 100644index f29feb52ad..0000000000--- a/packages/commons/dist/lib/i18n.js+++ /dev/null@@ -1,3 +0,0 @@-export { };--//# sourceMappingURL=i18n.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/i18n.js.map b/packages/commons/dist/lib/i18n.js.mapdeleted file mode 100644index 4fe7402689..0000000000--- a/packages/commons/dist/lib/i18n.js.map+++ /dev/null@@ -1 +0,0 @@-{"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"}\ No newline at end of filediff --git a/packages/commons/dist/lib/index.js b/packages/commons/dist/lib/index.jsdeleted file mode 100644index a205f9c8a8..0000000000--- a/packages/commons/dist/lib/index.js+++ /dev/null@@ -1,8 +0,0 @@-export * from "./i18n.js";-export * from "./options_interface.js";-export * from "./keyboard_actions_interface.js";-export * from "./hidden_subtree.js";-export * from "./rows.js";-export * from "./test-utils.js";--//# sourceMappingURL=index.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/index.js.map b/packages/commons/dist/lib/index.js.mapdeleted file mode 100644index 0064146c08..0000000000--- a/packages/commons/dist/lib/index.js.map+++ /dev/null@@ -1 +0,0 @@-{"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"}\ No newline at end of filediff --git a/packages/commons/dist/lib/keyboard_actions_interface.js b/packages/commons/dist/lib/keyboard_actions_interface.jsdeleted file mode 100644index e67307bfe5..0000000000--- a/packages/commons/dist/lib/keyboard_actions_interface.js+++ /dev/null@@ -1,4 +0,0 @@-var KeyboardActionNamesEnum;-export { };--//# sourceMappingURL=keyboard_actions_interface.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/keyboard_actions_interface.js.map b/packages/commons/dist/lib/keyboard_actions_interface.js.mapdeleted file mode 100644index 4aaa1fd2ca..0000000000--- a/packages/commons/dist/lib/keyboard_actions_interface.js.map+++ /dev/null@@ -1 +0,0 @@-{"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"}\ No newline at end of filediff --git a/packages/commons/dist/lib/options_interface.js b/packages/commons/dist/lib/options_interface.jsdeleted file mode 100644index e7e06fb12e..0000000000--- a/packages/commons/dist/lib/options_interface.js+++ /dev/null@@ -1,3 +0,0 @@-export { };--//# sourceMappingURL=options_interface.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/options_interface.js.map b/packages/commons/dist/lib/options_interface.js.mapdeleted file mode 100644index afb1d90268..0000000000--- a/packages/commons/dist/lib/options_interface.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"sources":["../../src/lib/options_interface.ts"],"sourcesContent":["import type { KeyboardActionNames } from \"./keyboard_actions_interface.js\";\n\n/**\n * A dictionary where the keys are the option keys (e.g. `theme`) and their corresponding values.\n */\nexport type OptionMap = Record<OptionNames, string>;\n\n/**\n * For each keyboard action, there is a corresponding option which identifies the key combination defined by the user.\n */\ntype KeyboardShortcutsOptions<T extends KeyboardActionNames> = {\n [key in T as `keyboardShortcuts${Capitalize<key>}`]: string;\n};\n\nexport type FontFamily = \"theme\" | \"serif\" | \"sans-serif\" | \"monospace\" | string;\n\nexport interface OptionDefinitions extends KeyboardShortcutsOptions<KeyboardActionNames> {\n openNoteContexts: string;\n lastDailyBackupDate: string;\n lastWeeklyBackupDate: string;\n lastMonthlyBackupDate: string;\n dbVersion: string;\n theme: string;\n syncServerHost: string;\n syncServerTimeout: string;\n syncProxy: string;\n mainFontFamily: FontFamily;\n treeFontFamily: FontFamily;\n detailFontFamily: FontFamily;\n monospaceFontFamily: FontFamily;\n spellCheckLanguageCode: string;\n codeNotesMimeTypes: string;\n headingStyle: string;\n highlightsList: string;\n customSearchEngineName: string;\n customSearchEngineUrl: string;\n locale: string;\n formattingLocale: string;\n codeBlockTheme: string;\n textNoteEditorType: string;\n layoutOrientation: string;\n allowedHtmlTags: string;\n documentId: string;\n documentSecret: string;\n passwordVerificationHash: string;\n passwordVerificationSalt: string;\n passwordDerivedKeySalt: string;\n encryptedDataKey: string;\n hoistedNoteId: string;\n\n // Multi-Factor Authentication\n mfaEnabled: boolean;\n mfaMethod: string;\n totpEncryptionSalt: string;\n totpEncryptedSecret: string;\n totpVerificationHash: string;\n encryptedRecoveryCodes: boolean;\n userSubjectIdentifierSaved: boolean;\n recoveryCodeInitialVector: string;\n recoveryCodeSecurityKey: string;\n recoveryCodesEncrypted: string;\n\n lastSyncedPull: number;\n lastSyncedPush: number;\n revisionSnapshotTimeInterval: number;\n revisionSnapshotTimeIntervalTimeScale: number;\n revisionSnapshotNumberLimit: number;\n protectedSessionTimeout: number;\n protectedSessionTimeoutTimeScale: number;\n zoomFactor: number;\n mainFontSize: number;\n treeFontSize: number;\n detailFontSize: number;\n monospaceFontSize: number;\n imageMaxWidthHeight: number;\n imageJpegQuality: number;\n leftPaneWidth: number;\n rightPaneWidth: number;\n eraseEntitiesAfterTimeInSeconds: number;\n eraseEntitiesAfterTimeScale: number;\n autoReadonlySizeText: number;\n autoReadonlySizeCode: number;\n maxContentWidth: number;\n minTocHeadings: number;\n eraseUnusedAttachmentsAfterSeconds: number;\n eraseUnusedAttachmentsAfterTimeScale: number;\n firstDayOfWeek: number;\n firstWeekOfYear: number;\n minDaysInFirstWeek: number;\n languages: string;\n\n // Appearance\n splitEditorOrientation: \"horziontal\" | \"vertical\";\n\n initialized: boolean;\n isPasswordSet: boolean;\n overrideThemeFonts: boolean;\n spellCheckEnabled: boolean;\n autoFixConsistencyIssues: boolean;\n vimKeymapEnabled: boolean;\n codeLineWrapEnabled: boolean;\n leftPaneVisible: boolean;\n rightPaneVisible: boolean;\n nativeTitleBarVisible: boolean;\n hideArchivedNotes_main: boolean;\n debugModeEnabled: boolean;\n autoCollapseNoteTree: boolean;\n dailyBackupEnabled: boolean;\n weeklyBackupEnabled: boolean;\n monthlyBackupEnabled: boolean;\n compressImages: boolean;\n downloadImagesAutomatically: boolean;\n checkForUpdates: boolean;\n disableTray: boolean;\n promotedAttributesOpenInRibbon: boolean;\n editedNotesOpenInRibbon: boolean;\n codeBlockWordWrap: boolean;\n textNoteEditorMultilineToolbar: boolean;\n backgroundEffects: boolean;\n\n // Share settings\n redirectBareDomain: boolean;\n showLoginInShareTheme: boolean;\n\n // AI/LLM integration options\n aiEnabled: boolean;\n aiProvider: string;\n aiSystemPrompt: string;\n aiTemperature: string;\n openaiApiKey: string;\n openaiDefaultModel: string;\n openaiEmbeddingModel: string;\n openaiBaseUrl: string;\n anthropicApiKey: string;\n anthropicDefaultModel: string;\n voyageEmbeddingModel: string;\n voyageApiKey: string;\n anthropicBaseUrl: string;\n ollamaEnabled: boolean;\n ollamaBaseUrl: string;\n ollamaDefaultModel: string;\n ollamaEmbeddingModel: string;\n codeOpenAiModel: string;\n aiProviderPrecedence: string;\n\n // Embedding-related options\n embeddingAutoUpdateEnabled: boolean;\n embeddingUpdateInterval: number;\n embeddingBatchSize: number;\n embeddingDefaultDimension: number;\n embeddingsDefaultProvider: string;\n embeddingProviderPrecedence: string;\n enableAutomaticIndexing: boolean;\n embeddingGenerationLocation: string;\n embeddingDimensionStrategy: string;\n embeddingSimilarityThreshold: number;\n maxNotesPerLlmQuery: number;\n}\n\nexport type OptionNames = keyof OptionDefinitions;\n\nexport type FilterOptionsByType<U> = {\n [K in keyof OptionDefinitions]: OptionDefinitions[K] extends U ? K : never;\n}[keyof OptionDefinitions];\n"],"names":[],"rangeMappings":"","mappings":"AAiKA,WAE2B"}\ No newline at end of filediff --git a/packages/commons/dist/lib/rows.js b/packages/commons/dist/lib/rows.jsdeleted file mode 100644index 189614bf56..0000000000--- a/packages/commons/dist/lib/rows.js+++ /dev/null@@ -1,27 +0,0 @@-// TODO: Booleans should probably be numbers instead (as SQLite does not have booleans.);-// TODO: check against schema.sql which properties really are "optional"-/**- * There are many different Note types, some of which are entirely opaque to the- * end user. Those types should be used only for checking against, they are- * not for direct use.- */ export const ALLOWED_NOTE_TYPES = [- "file",- "image",- "search",- "noteMap",- "launcher",- "doc",- "contentWidget",- "text",- "relationMap",- "render",- "canvas",- "mermaid",- "book",- "webView",- "code",- "mindMap",- "geoMap"-];--//# sourceMappingURL=rows.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/rows.js.map b/packages/commons/dist/lib/rows.js.mapdeleted file mode 100644index b946ae5440..0000000000--- a/packages/commons/dist/lib/rows.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"sources":["../../src/lib/rows.ts"],"sourcesContent":["// TODO: Booleans should probably be numbers instead (as SQLite does not have booleans.);\n// TODO: check against schema.sql which properties really are \"optional\"\n\nexport interface AttachmentRow {\n attachmentId?: string;\n ownerId?: string;\n role: string;\n mime: string;\n title: string;\n position?: number;\n blobId?: string;\n isProtected?: boolean;\n dateModified?: string;\n utcDateModified?: string;\n utcDateScheduledForErasureSince?: string;\n isDeleted?: boolean;\n deleteId?: string;\n contentLength?: number;\n content?: Buffer | string;\n}\n\nexport interface RevisionRow {\n revisionId?: string;\n noteId: string;\n type: NoteType;\n mime: string;\n isProtected?: boolean;\n title: string;\n blobId?: string;\n dateLastEdited?: string;\n dateCreated: string;\n utcDateLastEdited?: string;\n utcDateCreated: string;\n utcDateModified: string;\n contentLength?: number;\n}\n\nexport interface RecentNoteRow {\n noteId: string;\n notePath: string;\n utcDateCreated?: string;\n}\n\n/**\n * Database representation of an option.\n *\n * Options are key-value pairs that are used to store information such as user preferences (for example\n * the current theme, sync server information), but also information about the state of the application).\n */\nexport interface OptionRow {\n /** The name of the option. */\n name: string;\n /** The value of the option. */\n value: string;\n /** `true` if the value should be synced across multiple instances (e.g. locale) or `false` if it should be local-only (e.g. theme). */\n isSynced: boolean;\n utcDateModified?: string;\n}\n\nexport interface EtapiTokenRow {\n etapiTokenId?: string;\n name: string;\n tokenHash: string;\n utcDateCreated?: string;\n utcDateModified?: string;\n isDeleted?: boolean;\n}\n\nexport interface BlobRow {\n blobId: string;\n content: string | Buffer;\n contentLength: number;\n dateModified: string;\n utcDateModified: string;\n}\n\nexport type AttributeType = \"label\" | \"relation\" | \"label-definition\" | \"relation-definition\";\n\nexport interface AttributeRow {\n attributeId?: string;\n noteId?: string;\n type: AttributeType;\n name: string;\n position?: number | null;\n value?: string;\n isInheritable?: boolean;\n utcDateModified?: string;\n}\n\nexport interface BranchRow {\n branchId?: string;\n noteId: string;\n parentNoteId: string;\n prefix?: string | null;\n notePosition?: number | null;\n isExpanded?: boolean;\n isDeleted?: boolean;\n utcDateModified?: string;\n}\n\n/**\n * There are many different Note types, some of which are entirely opaque to the\n * end user. Those types should be used only for checking against, they are\n * not for direct use.\n */\nexport const ALLOWED_NOTE_TYPES = [\n \"file\",\n \"image\",\n \"search\",\n \"noteMap\",\n \"launcher\",\n \"doc\",\n \"contentWidget\",\n \"text\",\n \"relationMap\",\n \"render\",\n \"canvas\",\n \"mermaid\",\n \"book\",\n \"webView\",\n \"code\",\n \"mindMap\",\n \"geoMap\"\n] as const;\nexport type NoteType = (typeof ALLOWED_NOTE_TYPES)[number];\n\nexport interface NoteRow {\n noteId: string;\n deleteId: string;\n title: string;\n type: NoteType;\n mime: string;\n isProtected: boolean;\n isDeleted: boolean;\n blobId: string;\n dateCreated: string;\n dateModified: string;\n utcDateCreated: string;\n utcDateModified: string;\n content?: string | Buffer;\n}\n\nexport interface NoteEmbeddingRow {\n embedId: string;\n noteId: string;\n providerId: string;\n modelId: string;\n dimension: number;\n embedding: Buffer;\n version: number;\n dateCreated: string;\n utcDateCreated: string;\n dateModified: string;\n utcDateModified: string;\n}\n"],"names":["ALLOWED_NOTE_TYPES"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,yFAAyF;AACzF,wEAAwE;AAmGxE;;;;CAIC,GACD,OAAO,MAAMA,qBAAqB;IAC9B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACH,CAAU"}\ No newline at end of filediff --git a/packages/commons/dist/lib/test-utils.js b/packages/commons/dist/lib/test-utils.jsdeleted file mode 100644index fcba894b6d..0000000000--- a/packages/commons/dist/lib/test-utils.js+++ /dev/null@@ -1,55 +0,0 @@-/**- * Reads the level of indentation of the first line and trims the identation for all the text by that amount.- *- * For example, for:- *- * ```json- * {- * "hello": "world"- * }- * ```- *- * it results in:- *- * ```json- * {- * "hello": "world"- * }- * ```- *- * This is meant to be used as a template string, where it allows the indentation of the template without affecting whitespace changes.- *- * @example const html = trimIndentation`\- * <h1>Heading 1</h1>- * <h2>Heading 2</h2>- * <h3>Heading 3</h3>- * <h4>Heading 4</h4>- * <h5>Heading 5</h5>- * <h6>Heading 6</h6>- * `;- * @param strings- * @returns- */ export function trimIndentation(strings, ...values) {- // Combine the strings with the values using interpolation- let str = strings.reduce((acc, curr, index)=>{- return acc + curr + (values[index] !== undefined ? values[index] : '');- }, '');- // Count the number of spaces on the first line.- let numSpaces = 0;- while(str.charAt(numSpaces) == " " && numSpaces < str.length){- numSpaces++;- }- // Trim the indentation of the first line in all the lines.- const lines = str.split("\n");- const output = [];- for(let i = 0; i < lines.length; i++){- let numSpacesLine = 0;- while(str.charAt(numSpacesLine) == " " && numSpacesLine < str.length){- numSpacesLine++;- }- output.push(lines[i].substring(numSpacesLine));- }- return output.join("\n");-}--//# sourceMappingURL=test-utils.js.map\ No newline at end of filediff --git a/packages/commons/dist/lib/test-utils.js.map b/packages/commons/dist/lib/test-utils.js.mapdeleted file mode 100644index e889b05e26..0000000000--- a/packages/commons/dist/lib/test-utils.js.map+++ /dev/null@@ -1 +0,0 @@-{"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"}\ No newline at end of filediff --git a/packages/commons/dist/tsconfig.lib.tsbuildinfo b/packages/commons/dist/tsconfig.lib.tsbuildinfodeleted file mode 100644index 4e1f61b643..0000000000--- a/packages/commons/dist/tsconfig.lib.tsbuildinfo+++ /dev/null@@ -1 +0,0 @@-{"version":"5.7.3"}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/index.d.ts b/packages/turndown-plugin-gfm/dist/index.d.tsdeleted file mode 100644index a7d874f74c..0000000000--- a/packages/turndown-plugin-gfm/dist/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./lib/gfm.js";-//# sourceMappingURL=index.d.ts.map\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/index.d.ts.map b/packages/turndown-plugin-gfm/dist/index.d.ts.mapdeleted file mode 100644index 6e08bd5495..0000000000--- a/packages/turndown-plugin-gfm/dist/index.d.ts.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/gfm.d.ts b/packages/turndown-plugin-gfm/dist/lib/gfm.d.tsdeleted file mode 100644index 8b53613eff..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/gfm.d.ts+++ /dev/null@@ -1,7 +0,0 @@-export function gfm(turndownService: any): void;-import highlightedCodeBlock from './highlighted-code-block.js';-import strikethrough from './strikethrough.js';-import tables from './tables.js';-import taskListItems from './task-list-items.js';-export { highlightedCodeBlock, strikethrough, tables, taskListItems };-//# sourceMappingURL=gfm.d.ts.map\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/gfm.d.ts.map b/packages/turndown-plugin-gfm/dist/lib/gfm.d.ts.mapdeleted file mode 100644index 1fb19dbd2f..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/gfm.d.ts.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"gfm.d.ts","sourceRoot":"","sources":["../../src/lib/gfm.js"],"names":[],"mappings":"AAKA,gDAOC;iCAZgC,6BAA6B;0BACpC,oBAAoB;mBAC3B,aAAa;0BACN,sBAAsB"}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/highlighted-code-block.d.ts b/packages/turndown-plugin-gfm/dist/lib/highlighted-code-block.d.tsdeleted file mode 100644index c8e1f01c70..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/highlighted-code-block.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export default function highlightedCodeBlock(turndownService: any): void;-//# sourceMappingURL=highlighted-code-block.d.ts.map\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/highlighted-code-block.d.ts.map b/packages/turndown-plugin-gfm/dist/lib/highlighted-code-block.d.ts.mapdeleted file mode 100644index a79b63b02b..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/highlighted-code-block.d.ts.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"highlighted-code-block.d.ts","sourceRoot":"","sources":["../../src/lib/highlighted-code-block.js"],"names":[],"mappings":"AAEA,yEAsBC"}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/strikethrough.d.ts b/packages/turndown-plugin-gfm/dist/lib/strikethrough.d.tsdeleted file mode 100644index de206608aa..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/strikethrough.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export default function strikethrough(turndownService: any): void;-//# sourceMappingURL=strikethrough.d.ts.map\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/strikethrough.d.ts.map b/packages/turndown-plugin-gfm/dist/lib/strikethrough.d.ts.mapdeleted file mode 100644index c4ed2acc87..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/strikethrough.d.ts.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"strikethrough.d.ts","sourceRoot":"","sources":["../../src/lib/strikethrough.js"],"names":[],"mappings":"AAAA,kEAOC"}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/tables.d.ts b/packages/turndown-plugin-gfm/dist/lib/tables.d.tsdeleted file mode 100644index 7fcccb13c8..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/tables.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export default function tables(turndownService: any): void;-//# sourceMappingURL=tables.d.ts.map\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/tables.d.ts.map b/packages/turndown-plugin-gfm/dist/lib/tables.d.ts.mapdeleted file mode 100644index 1e224931d1..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/tables.d.ts.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/lib/tables.js"],"names":[],"mappings":"AAoRA,2DASC"}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/task-list-items.d.ts b/packages/turndown-plugin-gfm/dist/lib/task-list-items.d.tsdeleted file mode 100644index ea37b5ecfb..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/task-list-items.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export default function taskListItems(turndownService: any): void;-//# sourceMappingURL=task-list-items.d.ts.map\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/lib/task-list-items.d.ts.map b/packages/turndown-plugin-gfm/dist/lib/task-list-items.d.ts.mapdeleted file mode 100644index 2e27eeae47..0000000000--- a/packages/turndown-plugin-gfm/dist/lib/task-list-items.d.ts.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"task-list-items.d.ts","sourceRoot":"","sources":["../../src/lib/task-list-items.js"],"names":[],"mappings":"AAAA,kEASC"}\ No newline at end of filediff --git a/packages/turndown-plugin-gfm/dist/tsconfig.lib.tsbuildinfo b/packages/turndown-plugin-gfm/dist/tsconfig.lib.tsbuildinfodeleted file mode 100644index 4e1f61b643..0000000000--- a/packages/turndown-plugin-gfm/dist/tsconfig.lib.tsbuildinfo+++ /dev/null@@ -1 +0,0 @@-{"version":"5.7.3"}\ No newline at end of file