@mnaoumov/obsidian-lib 0.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/dataview/api/data-array/package.json +4 -0
- package/@types/dataview/api/extensions/package.json +4 -0
- package/@types/dataview/api/inline-api/package.json +4 -0
- package/@types/dataview/api/plugin-api/package.json +4 -0
- package/@types/dataview/api/result/package.json +4 -0
- package/@types/dataview/data-import/common/package.json +4 -0
- package/@types/dataview/data-import/csv/package.json +4 -0
- package/@types/dataview/data-import/inline-field/package.json +4 -0
- package/@types/dataview/data-import/markdown-file/package.json +4 -0
- package/@types/dataview/data-import/persister/package.json +4 -0
- package/@types/dataview/data-import/web-worker/import-entry/package.json +4 -0
- package/@types/dataview/data-import/web-worker/import-impl/package.json +4 -0
- package/@types/dataview/data-import/web-worker/import-manager/package.json +4 -0
- package/@types/dataview/data-index/index/package.json +4 -0
- package/@types/dataview/data-index/package.json +4 -0
- package/@types/dataview/data-index/resolver/package.json +4 -0
- package/@types/dataview/data-index/source/package.json +4 -0
- package/@types/dataview/data-model/markdown/package.json +4 -0
- package/@types/dataview/data-model/serialized/markdown/package.json +4 -0
- package/@types/dataview/data-model/transferable/package.json +4 -0
- package/@types/dataview/data-model/value/package.json +4 -0
- package/@types/dataview/expression/binaryop/package.json +4 -0
- package/@types/dataview/expression/context/package.json +4 -0
- package/@types/dataview/expression/field/package.json +4 -0
- package/@types/dataview/expression/functions/package.json +4 -0
- package/@types/dataview/expression/parse/package.json +4 -0
- package/@types/dataview/index/package.json +4 -0
- package/@types/dataview/main/package.json +4 -0
- package/@types/dataview/package.json +4 -0
- package/@types/dataview/query/engine/package.json +4 -0
- package/@types/dataview/query/parse/package.json +4 -0
- package/@types/dataview/query/query/package.json +4 -0
- package/@types/dataview/settings/package.json +4 -0
- package/@types/dataview/typings/obsidian-ex/package.json +4 -0
- package/@types/dataview/typings/workers/package.json +4 -0
- package/@types/dataview/ui/export/markdown/package.json +4 -0
- package/@types/dataview/ui/lp-render/package.json +4 -0
- package/@types/dataview/ui/markdown/package.json +4 -0
- package/@types/dataview/ui/refreshable-view/package.json +4 -0
- package/@types/dataview/ui/render/package.json +4 -0
- package/@types/dataview/ui/views/calendar-view/package.json +4 -0
- package/@types/dataview/ui/views/inline-field-live-preview/package.json +4 -0
- package/@types/dataview/ui/views/inline-view/package.json +4 -0
- package/@types/dataview/ui/views/js-view/package.json +4 -0
- package/@types/dataview/ui/views/list-view/package.json +4 -0
- package/@types/dataview/ui/views/table-view/package.json +4 -0
- package/@types/dataview/ui/views/task-view/package.json +4 -0
- package/@types/dataview/util/hash/package.json +4 -0
- package/@types/dataview/util/locale/package.json +4 -0
- package/@types/dataview/util/media/package.json +4 -0
- package/@types/dataview/util/normalize/package.json +4 -0
- package/@types/i18next/package.json +4 -0
- package/@types/obsidian-integration-testing/package.json +4 -0
- package/@types/original-fs/package.json +4 -0
- package/LICENSE +21 -0
- package/README.md +15 -1
- package/codemirror/index/package.json +6 -0
- package/codemirror/package.json +6 -0
- package/codemirror/state-field-spec/package.json +6 -0
- package/command-handlers/abstract-file-command-handler/package.json +6 -0
- package/command-handlers/command-handler/package.json +6 -0
- package/command-handlers/command-handler-component/package.json +6 -0
- package/command-handlers/editor-command-handler/package.json +6 -0
- package/command-handlers/file-command-handler/package.json +6 -0
- package/command-handlers/folder-command-handler/package.json +6 -0
- package/command-handlers/global-command-handler/package.json +6 -0
- package/command-handlers/index/package.json +6 -0
- package/command-handlers/open-demo-vault-command-handler/package.json +6 -0
- package/command-handlers/open-settings-command-handler/package.json +6 -0
- package/command-handlers/package.json +6 -0
- package/command-handlers/unlock-active-note-command-handler/package.json +6 -0
- package/components/abort-signal-component/package.json +6 -0
- package/components/all-windows-event-component/package.json +6 -0
- package/components/async-error-handler-component/package.json +6 -0
- package/components/async-events-component/package.json +6 -0
- package/components/case-insensitive-file-index-component/package.json +6 -0
- package/components/component-ex/package.json +6 -0
- package/components/console-debug-component/package.json +6 -0
- package/components/core-plugin-toggle-component/package.json +6 -0
- package/components/disposable-component/package.json +6 -0
- package/components/embed-extensions-component/package.json +6 -0
- package/components/generate-markdown-link-default-params-component/package.json +6 -0
- package/components/index/package.json +6 -0
- package/components/layout-ready-component/package.json +6 -0
- package/components/menu-event-registrar-component/package.json +6 -0
- package/components/monkey-around-component/package.json +6 -0
- package/components/notebook-navigator-menu-event-registrar-component/package.json +6 -0
- package/components/package.json +6 -0
- package/components/plugin-context-component/package.json +6 -0
- package/components/plugin-gate-component/package.json +6 -0
- package/components/plugin-notice-component/package.json +6 -0
- package/components/plugin-settings-component/package.json +6 -0
- package/components/plugin-settings-tab-component/package.json +6 -0
- package/components/plugin-suggestion-component/package.json +6 -0
- package/components/pointer-position-component/package.json +6 -0
- package/components/registry-component/package.json +6 -0
- package/components/release-notes-component/package.json +6 -0
- package/components/rename-delete-handler-component/package.json +6 -0
- package/components/rmdir-guard-component/package.json +6 -0
- package/components/settings-migration-component/package.json +6 -0
- package/components/syntax-highlighting-component/package.json +6 -0
- package/components/templates-language-component/package.json +6 -0
- package/constructors/get-dom-events-handlers-constructor/package.json +6 -0
- package/constructors/index/package.json +6 -0
- package/constructors/package.json +6 -0
- package/dist/lib/cjs/@types/dataview/api/data-array.d.cts +137 -0
- package/dist/lib/cjs/@types/dataview/api/extensions.d.cts +16 -0
- package/dist/lib/cjs/@types/dataview/api/inline-api.d.cts +187 -0
- package/dist/lib/cjs/@types/dataview/api/plugin-api.d.cts +210 -0
- package/dist/lib/cjs/@types/dataview/api/result.d.cts +39 -0
- package/dist/lib/cjs/@types/dataview/data-import/common.d.cts +4 -0
- package/dist/lib/cjs/@types/dataview/data-import/csv.d.cts +4 -0
- package/dist/lib/cjs/@types/dataview/data-import/inline-field.d.cts +43 -0
- package/dist/lib/cjs/@types/dataview/data-import/markdown-file.d.cts +53 -0
- package/dist/lib/cjs/@types/dataview/data-import/persister.d.cts +33 -0
- package/dist/lib/cjs/@types/dataview/data-import/web-worker/import-entry.d.cts +2 -0
- package/dist/lib/cjs/@types/dataview/data-import/web-worker/import-impl.d.cts +7 -0
- package/dist/lib/cjs/@types/dataview/data-import/web-worker/import-manager.d.cts +38 -0
- package/dist/lib/cjs/@types/dataview/data-index/index.d.cts +187 -0
- package/dist/lib/cjs/@types/dataview/data-index/resolver.d.cts +24 -0
- package/dist/lib/cjs/@types/dataview/data-index/source.d.cts +72 -0
- package/dist/lib/cjs/@types/dataview/data-model/markdown.d.cts +116 -0
- package/dist/lib/cjs/@types/dataview/data-model/serialized/markdown.d.cts +107 -0
- package/dist/lib/cjs/@types/dataview/data-model/transferable.d.cts +8 -0
- package/dist/lib/cjs/@types/dataview/data-model/value.d.cts +176 -0
- package/dist/lib/cjs/@types/dataview/expression/binaryop.d.cts +44 -0
- package/dist/lib/cjs/@types/dataview/expression/context.d.cts +50 -0
- package/dist/lib/cjs/@types/dataview/expression/field.d.cts +83 -0
- package/dist/lib/cjs/@types/dataview/expression/functions.d.cts +150 -0
- package/dist/lib/cjs/@types/dataview/expression/parse.d.cts +164 -0
- package/dist/lib/cjs/@types/dataview/index.d.cts +56 -0
- package/dist/lib/cjs/@types/dataview/main.d.cts +53 -0
- package/dist/lib/cjs/@types/dataview/query/engine.d.cts +104 -0
- package/dist/lib/cjs/@types/dataview/query/parse.d.cts +45 -0
- package/dist/lib/cjs/@types/dataview/query/query.d.cts +96 -0
- package/dist/lib/cjs/@types/dataview/settings.d.cts +61 -0
- package/dist/lib/cjs/@types/dataview/typings/obsidian-ex.d.cts +29 -0
- package/dist/lib/cjs/@types/dataview/typings/workers.d.cts +5 -0
- package/dist/lib/cjs/@types/dataview/ui/export/markdown.d.cts +16 -0
- package/dist/lib/cjs/@types/dataview/ui/lp-render.d.cts +38 -0
- package/dist/lib/cjs/@types/dataview/ui/markdown.d.cts +87 -0
- package/dist/lib/cjs/@types/dataview/ui/refreshable-view.d.cts +19 -0
- package/dist/lib/cjs/@types/dataview/ui/render.d.cts +34 -0
- package/dist/lib/cjs/@types/dataview/ui/views/calendar-view.d.cts +18 -0
- package/dist/lib/cjs/@types/dataview/ui/views/inline-field-live-preview.d.cts +43 -0
- package/dist/lib/cjs/@types/dataview/ui/views/inline-view.d.cts +29 -0
- package/dist/lib/cjs/@types/dataview/ui/views/js-view.d.cts +24 -0
- package/dist/lib/cjs/@types/dataview/ui/views/list-view.d.cts +26 -0
- package/dist/lib/cjs/@types/dataview/ui/views/table-view.d.cts +29 -0
- package/dist/lib/cjs/@types/dataview/ui/views/task-view.d.cts +52 -0
- package/dist/lib/cjs/@types/dataview/util/hash.d.cts +2 -0
- package/dist/lib/cjs/@types/dataview/util/locale.d.cts +3 -0
- package/dist/lib/cjs/@types/dataview/util/media.d.cts +7 -0
- package/dist/lib/cjs/@types/dataview/util/normalize.d.cts +45 -0
- package/dist/lib/cjs/@types/i18next.d.cts +14 -0
- package/dist/lib/cjs/@types/obsidian-integration-testing.d.cts +29 -0
- package/dist/lib/cjs/@types/original-fs.d.cts +15 -0
- package/dist/lib/cjs/__merged.cjs +1656 -0
- package/dist/lib/cjs/__merged.d.cts +205 -0
- package/dist/lib/cjs/active-file-provider.cjs +161 -0
- package/dist/lib/cjs/active-file-provider.d.cts +36 -0
- package/dist/lib/cjs/app.cjs +153 -0
- package/dist/lib/cjs/app.d.cts +17 -0
- package/dist/lib/cjs/async-with-notice.cjs +235 -0
- package/dist/lib/cjs/async-with-notice.d.cts +113 -0
- package/dist/lib/cjs/attachment-path.cjs +379 -0
- package/dist/lib/cjs/attachment-path.d.cts +341 -0
- package/dist/lib/cjs/attachment-unit-folder.cjs +168 -0
- package/dist/lib/cjs/attachment-unit-folder.d.cts +103 -0
- package/dist/lib/cjs/backlink-index.cjs +249 -0
- package/dist/lib/cjs/backlink-index.d.cts +51 -0
- package/dist/lib/cjs/backlink.cjs +217 -0
- package/dist/lib/cjs/backlink.d.cts +66 -0
- package/dist/lib/cjs/bases-view-registrar.cjs +162 -0
- package/dist/lib/cjs/bases-view-registrar.d.cts +52 -0
- package/dist/lib/cjs/callout.cjs +220 -0
- package/dist/lib/cjs/callout.d.cts +76 -0
- package/dist/lib/cjs/canvas.cjs +215 -0
- package/dist/lib/cjs/canvas.d.cts +28 -0
- package/dist/lib/cjs/case-insensitive-file-index.cjs +244 -0
- package/dist/lib/cjs/case-insensitive-file-index.d.cts +92 -0
- package/dist/lib/cjs/code-block-markdown-information.cjs +131 -0
- package/dist/lib/cjs/code-block-markdown-information.d.cts +48 -0
- package/dist/lib/cjs/code-block-reg-exp.cjs +145 -0
- package/dist/lib/cjs/code-block-reg-exp.d.cts +39 -0
- package/dist/lib/cjs/codemirror/index.cjs +153 -0
- package/dist/lib/cjs/codemirror/index.d.cts +2 -0
- package/dist/lib/cjs/codemirror/state-field-spec.cjs +131 -0
- package/dist/lib/cjs/codemirror/state-field-spec.d.cts +72 -0
- package/dist/lib/cjs/command-handlers/abstract-file-command-handler.cjs +416 -0
- package/dist/lib/cjs/command-handlers/abstract-file-command-handler.d.cts +274 -0
- package/dist/lib/cjs/command-handlers/command-handler-component.cjs +278 -0
- package/dist/lib/cjs/command-handlers/command-handler-component.d.cts +146 -0
- package/dist/lib/cjs/command-handlers/command-handler.cjs +200 -0
- package/dist/lib/cjs/command-handlers/command-handler.d.cts +107 -0
- package/dist/lib/cjs/command-handlers/editor-command-handler.cjs +348 -0
- package/dist/lib/cjs/command-handlers/editor-command-handler.d.cts +208 -0
- package/dist/lib/cjs/command-handlers/file-command-handler.cjs +285 -0
- package/dist/lib/cjs/command-handlers/file-command-handler.d.cts +143 -0
- package/dist/lib/cjs/command-handlers/folder-command-handler.cjs +293 -0
- package/dist/lib/cjs/command-handlers/folder-command-handler.d.cts +149 -0
- package/dist/lib/cjs/command-handlers/global-command-handler.cjs +185 -0
- package/dist/lib/cjs/command-handlers/global-command-handler.d.cts +40 -0
- package/dist/lib/cjs/command-handlers/index.cjs +180 -0
- package/dist/lib/cjs/command-handlers/index.d.cts +11 -0
- package/dist/lib/cjs/command-handlers/open-demo-vault-command-handler.cjs +209 -0
- package/dist/lib/cjs/command-handlers/open-demo-vault-command-handler.d.cts +73 -0
- package/dist/lib/cjs/command-handlers/open-settings-command-handler.cjs +174 -0
- package/dist/lib/cjs/command-handlers/open-settings-command-handler.d.cts +44 -0
- package/dist/lib/cjs/command-handlers/unlock-active-note-command-handler.cjs +187 -0
- package/dist/lib/cjs/command-handlers/unlock-active-note-command-handler.d.cts +54 -0
- package/dist/lib/cjs/command-registrar.cjs +169 -0
- package/dist/lib/cjs/command-registrar.d.cts +48 -0
- package/dist/lib/cjs/community-plugins.cjs +322 -0
- package/dist/lib/cjs/community-plugins.d.cts +270 -0
- package/dist/lib/cjs/components/abort-signal-component.cjs +172 -0
- package/dist/lib/cjs/components/abort-signal-component.d.cts +30 -0
- package/dist/lib/cjs/components/all-windows-event-component.cjs +214 -0
- package/dist/lib/cjs/components/all-windows-event-component.d.cts +84 -0
- package/dist/lib/cjs/components/async-error-handler-component.cjs +176 -0
- package/dist/lib/cjs/components/async-error-handler-component.d.cts +30 -0
- package/dist/lib/cjs/components/async-events-component.cjs +148 -0
- package/dist/lib/cjs/components/async-events-component.d.cts +15 -0
- package/dist/lib/cjs/components/case-insensitive-file-index-component.cjs +186 -0
- package/dist/lib/cjs/components/case-insensitive-file-index-component.d.cts +36 -0
- package/dist/lib/cjs/components/component-ex.cjs +504 -0
- package/dist/lib/cjs/components/component-ex.d.cts +229 -0
- package/dist/lib/cjs/components/console-debug-component.cjs +170 -0
- package/dist/lib/cjs/components/console-debug-component.d.cts +30 -0
- package/dist/lib/cjs/components/core-plugin-toggle-component.cjs +202 -0
- package/dist/lib/cjs/components/core-plugin-toggle-component.d.cts +102 -0
- package/dist/lib/cjs/components/disposable-component.cjs +154 -0
- package/dist/lib/cjs/components/disposable-component.d.cts +24 -0
- package/dist/lib/cjs/components/embed-extensions-component.cjs +174 -0
- package/dist/lib/cjs/components/embed-extensions-component.d.cts +38 -0
- package/dist/lib/cjs/components/generate-markdown-link-default-params-component.cjs +170 -0
- package/dist/lib/cjs/components/generate-markdown-link-default-params-component.d.cts +42 -0
- package/dist/lib/cjs/components/index.cjs +237 -0
- package/dist/lib/cjs/components/index.d.cts +30 -0
- package/dist/lib/cjs/components/layout-ready-component.cjs +211 -0
- package/dist/lib/cjs/components/layout-ready-component.d.cts +48 -0
- package/dist/lib/cjs/components/menu-event-registrar-component.cjs +196 -0
- package/dist/lib/cjs/components/menu-event-registrar-component.d.cts +52 -0
- package/dist/lib/cjs/components/monkey-around-component.cjs +245 -0
- package/dist/lib/cjs/components/monkey-around-component.d.cts +241 -0
- package/dist/lib/cjs/components/notebook-navigator-menu-event-registrar-component.cjs +321 -0
- package/dist/lib/cjs/components/notebook-navigator-menu-event-registrar-component.d.cts +150 -0
- package/dist/lib/cjs/components/plugin-context-component.cjs +180 -0
- package/dist/lib/cjs/components/plugin-context-component.d.cts +36 -0
- package/dist/lib/cjs/components/plugin-gate-component.cjs +548 -0
- package/dist/lib/cjs/components/plugin-gate-component.d.cts +332 -0
- package/dist/lib/cjs/components/plugin-notice-component.cjs +629 -0
- package/dist/lib/cjs/components/plugin-notice-component.d.cts +362 -0
- package/dist/lib/cjs/components/plugin-settings-component.cjs +644 -0
- package/dist/lib/cjs/components/plugin-settings-component.d.cts +362 -0
- package/dist/lib/cjs/components/plugin-settings-tab-component.cjs +170 -0
- package/dist/lib/cjs/components/plugin-settings-tab-component.d.cts +39 -0
- package/dist/lib/cjs/components/plugin-suggestion-component.cjs +278 -0
- package/dist/lib/cjs/components/plugin-suggestion-component.d.cts +162 -0
- package/dist/lib/cjs/components/pointer-position-component.cjs +166 -0
- package/dist/lib/cjs/components/pointer-position-component.d.cts +29 -0
- package/dist/lib/cjs/components/registry-component.cjs +187 -0
- package/dist/lib/cjs/components/registry-component.d.cts +37 -0
- package/dist/lib/cjs/components/release-notes-component.cjs +225 -0
- package/dist/lib/cjs/components/release-notes-component.d.cts +129 -0
- package/dist/lib/cjs/components/rename-delete-handler-component.cjs +1275 -0
- package/dist/lib/cjs/components/rename-delete-handler-component.d.cts +165 -0
- package/dist/lib/cjs/components/rmdir-guard-component.cjs +190 -0
- package/dist/lib/cjs/components/rmdir-guard-component.d.cts +76 -0
- package/dist/lib/cjs/components/settings-migration-component.cjs +222 -0
- package/dist/lib/cjs/components/settings-migration-component.d.cts +120 -0
- package/dist/lib/cjs/components/syntax-highlighting-component.cjs +248 -0
- package/dist/lib/cjs/components/syntax-highlighting-component.d.cts +149 -0
- package/dist/lib/cjs/components/templates-language-component.cjs +276 -0
- package/dist/lib/cjs/components/templates-language-component.d.cts +124 -0
- package/dist/lib/cjs/constructors/get-dom-events-handlers-constructor.cjs +246 -0
- package/dist/lib/cjs/constructors/get-dom-events-handlers-constructor.d.cts +22 -0
- package/dist/lib/cjs/constructors/index.cjs +153 -0
- package/dist/lib/cjs/constructors/index.d.cts +2 -0
- package/dist/lib/cjs/css-class.cjs +208 -0
- package/dist/lib/cjs/css-class.d.cts +278 -0
- package/dist/lib/cjs/data-handler.cjs +170 -0
- package/dist/lib/cjs/data-handler.d.cts +49 -0
- package/dist/lib/cjs/dataview-link.cjs +160 -0
- package/dist/lib/cjs/dataview-link.d.cts +42 -0
- package/dist/lib/cjs/dataview.cjs +379 -0
- package/dist/lib/cjs/dataview.d.cts +249 -0
- package/dist/lib/cjs/debug.cjs +148 -0
- package/dist/lib/cjs/debug.d.cts +19 -0
- package/dist/lib/cjs/demo-vault-helper-settings.cjs +131 -0
- package/dist/lib/cjs/demo-vault-helper-settings.d.cts +29 -0
- package/dist/lib/cjs/demo-vault-helper.cjs +232 -0
- package/dist/lib/cjs/demo-vault-helper.d.cts +61 -0
- package/dist/lib/cjs/demo-vault-naming.cjs +157 -0
- package/dist/lib/cjs/demo-vault-naming.d.cts +54 -0
- package/dist/lib/cjs/desktop-demo-vault-opener.cjs +348 -0
- package/dist/lib/cjs/desktop-demo-vault-opener.d.cts +76 -0
- package/dist/lib/cjs/desktop-trusted-input.cjs +301 -0
- package/dist/lib/cjs/desktop-trusted-input.d.cts +288 -0
- package/dist/lib/cjs/editor-extension-registrar.cjs +162 -0
- package/dist/lib/cjs/editor-extension-registrar.d.cts +37 -0
- package/dist/lib/cjs/editor-suggest-registrar.cjs +162 -0
- package/dist/lib/cjs/editor-suggest-registrar.d.cts +36 -0
- package/dist/lib/cjs/editor.cjs +200 -0
- package/dist/lib/cjs/editor.d.cts +45 -0
- package/dist/lib/cjs/events.cjs +172 -0
- package/dist/lib/cjs/events.d.cts +98 -0
- package/dist/lib/cjs/extensions-registrar.cjs +162 -0
- package/dist/lib/cjs/extensions-registrar.d.cts +51 -0
- package/dist/lib/cjs/file-change.cjs +558 -0
- package/dist/lib/cjs/file-change.d.cts +156 -0
- package/dist/lib/cjs/file-explorer.cjs +157 -0
- package/dist/lib/cjs/file-explorer.d.cts +34 -0
- package/dist/lib/cjs/file-manager.cjs +251 -0
- package/dist/lib/cjs/file-manager.d.cts +123 -0
- package/dist/lib/cjs/file-system.cjs +571 -0
- package/dist/lib/cjs/file-system.d.cts +554 -0
- package/dist/lib/cjs/folder-note.cjs +261 -0
- package/dist/lib/cjs/folder-note.d.cts +166 -0
- package/dist/lib/cjs/frontmatter-formatting.cjs +448 -0
- package/dist/lib/cjs/frontmatter-formatting.d.cts +44 -0
- package/dist/lib/cjs/frontmatter-link-cache-with-offsets.cjs +159 -0
- package/dist/lib/cjs/frontmatter-link-cache-with-offsets.d.cts +34 -0
- package/dist/lib/cjs/frontmatter.cjs +271 -0
- package/dist/lib/cjs/frontmatter.d.cts +145 -0
- package/dist/lib/cjs/generated-during-build.cjs +146 -0
- package/dist/lib/cjs/generated-during-build.d.cts +25 -0
- package/dist/lib/cjs/hover-link-source-registrar.cjs +162 -0
- package/dist/lib/cjs/hover-link-source-registrar.d.cts +52 -0
- package/dist/lib/cjs/html-element.cjs +183 -0
- package/dist/lib/cjs/html-element.d.cts +98 -0
- package/dist/lib/cjs/i18n/custom-type-options.cjs +132 -0
- package/dist/lib/cjs/i18n/custom-type-options.d.cts +38 -0
- package/dist/lib/cjs/i18n/default-translations.cjs +132 -0
- package/dist/lib/cjs/i18n/default-translations.d.cts +15 -0
- package/dist/lib/cjs/i18n/i18n.cjs +192 -0
- package/dist/lib/cjs/i18n/i18n.d.cts +38 -0
- package/dist/lib/cjs/i18n/index.cjs +162 -0
- package/dist/lib/cjs/i18n/index.d.cts +5 -0
- package/dist/lib/cjs/i18n/locales/en.cjs +224 -0
- package/dist/lib/cjs/i18n/locales/en.d.cts +91 -0
- package/dist/lib/cjs/i18n/locales/index.cjs +156 -0
- package/dist/lib/cjs/i18n/locales/index.d.cts +3 -0
- package/dist/lib/cjs/i18n/locales/translations-map.cjs +150 -0
- package/dist/lib/cjs/i18n/locales/translations-map.d.cts +100 -0
- package/dist/lib/cjs/index.cjs +435 -0
- package/dist/lib/cjs/index.d.cts +96 -0
- package/dist/lib/cjs/is-in-obsidian.cjs +154 -0
- package/dist/lib/cjs/is-in-obsidian.d.cts +12 -0
- package/dist/lib/cjs/library-styles.cjs +173 -0
- package/dist/lib/cjs/library-styles.d.cts +56 -0
- package/dist/lib/cjs/library.cjs +181 -0
- package/dist/lib/cjs/library.d.cts +57 -0
- package/dist/lib/cjs/link-name.cjs +145 -0
- package/dist/lib/cjs/link-name.d.cts +23 -0
- package/dist/lib/cjs/link-update-progress.cjs +131 -0
- package/dist/lib/cjs/link-update-progress.d.cts +32 -0
- package/dist/lib/cjs/link.cjs +1053 -0
- package/dist/lib/cjs/link.d.cts +1369 -0
- package/dist/lib/cjs/logger.cjs +212 -0
- package/dist/lib/cjs/logger.d.cts +37 -0
- package/dist/lib/cjs/loop.cjs +243 -0
- package/dist/lib/cjs/loop.d.cts +104 -0
- package/dist/lib/cjs/markdown-code-block-processor-registrar.cjs +166 -0
- package/dist/lib/cjs/markdown-code-block-processor-registrar.d.cts +62 -0
- package/dist/lib/cjs/markdown-code-block-processor.cjs +444 -0
- package/dist/lib/cjs/markdown-code-block-processor.d.cts +137 -0
- package/dist/lib/cjs/markdown-post-processor-registrar.cjs +163 -0
- package/dist/lib/cjs/markdown-post-processor-registrar.d.cts +59 -0
- package/dist/lib/cjs/markdown-view.cjs +151 -0
- package/dist/lib/cjs/markdown-view.d.cts +14 -0
- package/dist/lib/cjs/markdown.cjs +470 -0
- package/dist/lib/cjs/markdown.d.cts +226 -0
- package/dist/lib/cjs/menu-event-registrar.cjs +131 -0
- package/dist/lib/cjs/menu-event-registrar.d.cts +84 -0
- package/dist/lib/cjs/metadata-cache.cjs +544 -0
- package/dist/lib/cjs/metadata-cache.d.cts +359 -0
- package/dist/lib/cjs/mobile-trusted-input.cjs +185 -0
- package/dist/lib/cjs/mobile-trusted-input.d.cts +98 -0
- package/dist/lib/cjs/modals/alert.cjs +178 -0
- package/dist/lib/cjs/modals/alert.d.cts +35 -0
- package/dist/lib/cjs/modals/confirm.cjs +188 -0
- package/dist/lib/cjs/modals/confirm.d.cts +39 -0
- package/dist/lib/cjs/modals/index.cjs +177 -0
- package/dist/lib/cjs/modals/index.d.cts +10 -0
- package/dist/lib/cjs/modals/minimizable-modal.cjs +441 -0
- package/dist/lib/cjs/modals/minimizable-modal.d.cts +129 -0
- package/dist/lib/cjs/modals/modal-command-builder.cjs +458 -0
- package/dist/lib/cjs/modals/modal-command-builder.d.cts +285 -0
- package/dist/lib/cjs/modals/modal.cjs +176 -0
- package/dist/lib/cjs/modals/modal.d.cts +64 -0
- package/dist/lib/cjs/modals/prompt.cjs +256 -0
- package/dist/lib/cjs/modals/prompt.d.cts +83 -0
- package/dist/lib/cjs/modals/select-item.cjs +201 -0
- package/dist/lib/cjs/modals/select-item.d.cts +55 -0
- package/dist/lib/cjs/modals/select-option.cjs +189 -0
- package/dist/lib/cjs/modals/select-option.d.cts +65 -0
- package/dist/lib/cjs/modals/suggest-modal-command-builder.cjs +144 -0
- package/dist/lib/cjs/modals/suggest-modal-command-builder.d.cts +35 -0
- package/dist/lib/cjs/note-priority.cjs +234 -0
- package/dist/lib/cjs/note-priority.d.cts +154 -0
- package/dist/lib/cjs/notebook-navigator.cjs +163 -0
- package/dist/lib/cjs/notebook-navigator.d.cts +132 -0
- package/dist/lib/cjs/obsidian-dev-utils-state.cjs +175 -0
- package/dist/lib/cjs/obsidian-dev-utils-state.d.cts +42 -0
- package/dist/lib/cjs/obsidian-protocol-handler-registrar.cjs +165 -0
- package/dist/lib/cjs/obsidian-protocol-handler-registrar.d.cts +55 -0
- package/dist/lib/cjs/obsidian-settings.cjs +182 -0
- package/dist/lib/cjs/obsidian-settings.d.cts +62 -0
- package/dist/lib/cjs/parse-link.cjs +538 -0
- package/dist/lib/cjs/parse-link.d.cts +288 -0
- package/dist/lib/cjs/path-settings.cjs +269 -0
- package/dist/lib/cjs/path-settings.d.cts +56 -0
- package/dist/lib/cjs/pdf.cjs +173 -0
- package/dist/lib/cjs/pdf.d.cts +26 -0
- package/dist/lib/cjs/plugin/index.cjs +174 -0
- package/dist/lib/cjs/plugin/index.d.cts +9 -0
- package/dist/lib/cjs/plugin/plugin-api.cjs +519 -0
- package/dist/lib/cjs/plugin/plugin-api.d.cts +413 -0
- package/dist/lib/cjs/plugin/plugin-context.cjs +191 -0
- package/dist/lib/cjs/plugin/plugin-context.d.cts +27 -0
- package/dist/lib/cjs/plugin/plugin-event-source.cjs +226 -0
- package/dist/lib/cjs/plugin/plugin-event-source.d.cts +97 -0
- package/dist/lib/cjs/plugin/plugin-install-state.cjs +195 -0
- package/dist/lib/cjs/plugin/plugin-install-state.d.cts +113 -0
- package/dist/lib/cjs/plugin/plugin-lifecycle-events.cjs +151 -0
- package/dist/lib/cjs/plugin/plugin-lifecycle-events.d.cts +127 -0
- package/dist/lib/cjs/plugin/plugin-settings-tab.cjs +611 -0
- package/dist/lib/cjs/plugin/plugin-settings-tab.d.cts +368 -0
- package/dist/lib/cjs/plugin/plugin.cjs +706 -0
- package/dist/lib/cjs/plugin/plugin.d.cts +363 -0
- package/dist/lib/cjs/plugin/settings-migration-api.cjs +131 -0
- package/dist/lib/cjs/plugin/settings-migration-api.d.cts +91 -0
- package/dist/lib/cjs/plugin-cli-handler-registrar.cjs +163 -0
- package/dist/lib/cjs/plugin-cli-handler-registrar.d.cts +64 -0
- package/dist/lib/cjs/popovers/field-popover.cjs +182 -0
- package/dist/lib/cjs/popovers/field-popover.d.cts +75 -0
- package/dist/lib/cjs/popovers/index.cjs +159 -0
- package/dist/lib/cjs/popovers/index.d.cts +4 -0
- package/dist/lib/cjs/popovers/popover-anchor.cjs +182 -0
- package/dist/lib/cjs/popovers/popover-anchor.d.cts +67 -0
- package/dist/lib/cjs/popovers/popover.cjs +229 -0
- package/dist/lib/cjs/popovers/popover.d.cts +78 -0
- package/dist/lib/cjs/property-entry.cjs +172 -0
- package/dist/lib/cjs/property-entry.d.cts +43 -0
- package/dist/lib/cjs/queue.cjs +212 -0
- package/dist/lib/cjs/queue.d.cts +93 -0
- package/dist/lib/cjs/react/app-context.cjs +151 -0
- package/dist/lib/cjs/react/app-context.d.cts +24 -0
- package/dist/lib/cjs/react/index.cjs +153 -0
- package/dist/lib/cjs/react/index.d.cts +2 -0
- package/dist/lib/cjs/reference.cjs +186 -0
- package/dist/lib/cjs/reference.d.cts +116 -0
- package/dist/lib/cjs/resource-lock.cjs +1096 -0
- package/dist/lib/cjs/resource-lock.d.cts +318 -0
- package/dist/lib/cjs/resource-url.cjs +156 -0
- package/dist/lib/cjs/resource-url.d.cts +31 -0
- package/dist/lib/cjs/ribbon-icon-registrar.cjs +163 -0
- package/dist/lib/cjs/ribbon-icon-registrar.d.cts +60 -0
- package/dist/lib/cjs/setting-components/checkbox-component.cjs +216 -0
- package/dist/lib/cjs/setting-components/checkbox-component.d.cts +69 -0
- package/dist/lib/cjs/setting-components/code-highlighter-component.cjs +378 -0
- package/dist/lib/cjs/setting-components/code-highlighter-component.d.cts +132 -0
- package/dist/lib/cjs/setting-components/date-component.cjs +180 -0
- package/dist/lib/cjs/setting-components/date-component.d.cts +38 -0
- package/dist/lib/cjs/setting-components/date-time-component.cjs +180 -0
- package/dist/lib/cjs/setting-components/date-time-component.d.cts +38 -0
- package/dist/lib/cjs/setting-components/email-component.cjs +191 -0
- package/dist/lib/cjs/setting-components/email-component.d.cts +49 -0
- package/dist/lib/cjs/setting-components/file-component.cjs +183 -0
- package/dist/lib/cjs/setting-components/file-component.d.cts +43 -0
- package/dist/lib/cjs/setting-components/index.cjs +228 -0
- package/dist/lib/cjs/setting-components/index.d.cts +27 -0
- package/dist/lib/cjs/setting-components/month-component.cjs +188 -0
- package/dist/lib/cjs/setting-components/month-component.d.cts +51 -0
- package/dist/lib/cjs/setting-components/multiple-dropdown-component.cjs +253 -0
- package/dist/lib/cjs/setting-components/multiple-dropdown-component.d.cts +92 -0
- package/dist/lib/cjs/setting-components/multiple-email-component.cjs +177 -0
- package/dist/lib/cjs/setting-components/multiple-email-component.d.cts +38 -0
- package/dist/lib/cjs/setting-components/multiple-file-component.cjs +185 -0
- package/dist/lib/cjs/setting-components/multiple-file-component.d.cts +43 -0
- package/dist/lib/cjs/setting-components/multiple-text-component.cjs +272 -0
- package/dist/lib/cjs/setting-components/multiple-text-component.d.cts +109 -0
- package/dist/lib/cjs/setting-components/number-component.cjs +201 -0
- package/dist/lib/cjs/setting-components/number-component.d.cts +56 -0
- package/dist/lib/cjs/setting-components/password-component.cjs +177 -0
- package/dist/lib/cjs/setting-components/password-component.d.cts +38 -0
- package/dist/lib/cjs/setting-components/setting-component-wrapper.cjs +160 -0
- package/dist/lib/cjs/setting-components/setting-component-wrapper.d.cts +13 -0
- package/dist/lib/cjs/setting-components/telephone-component.cjs +191 -0
- package/dist/lib/cjs/setting-components/telephone-component.d.cts +51 -0
- package/dist/lib/cjs/setting-components/text-based-component.cjs +170 -0
- package/dist/lib/cjs/setting-components/text-based-component.d.cts +38 -0
- package/dist/lib/cjs/setting-components/time-component.cjs +185 -0
- package/dist/lib/cjs/setting-components/time-component.d.cts +38 -0
- package/dist/lib/cjs/setting-components/tri-state-checkbox-component.cjs +217 -0
- package/dist/lib/cjs/setting-components/tri-state-checkbox-component.d.cts +69 -0
- package/dist/lib/cjs/setting-components/typed-dropdown-component.cjs +262 -0
- package/dist/lib/cjs/setting-components/typed-dropdown-component.d.cts +97 -0
- package/dist/lib/cjs/setting-components/typed-multiple-dropdown-component.cjs +264 -0
- package/dist/lib/cjs/setting-components/typed-multiple-dropdown-component.d.cts +99 -0
- package/dist/lib/cjs/setting-components/typed-range-text-component.cjs +175 -0
- package/dist/lib/cjs/setting-components/typed-range-text-component.d.cts +35 -0
- package/dist/lib/cjs/setting-components/typed-text-component.cjs +232 -0
- package/dist/lib/cjs/setting-components/typed-text-component.d.cts +100 -0
- package/dist/lib/cjs/setting-components/url-component.cjs +191 -0
- package/dist/lib/cjs/setting-components/url-component.d.cts +49 -0
- package/dist/lib/cjs/setting-components/validator-component.cjs +230 -0
- package/dist/lib/cjs/setting-components/validator-component.d.cts +23 -0
- package/dist/lib/cjs/setting-components/value-component-with-change-tracking.cjs +131 -0
- package/dist/lib/cjs/setting-components/value-component-with-change-tracking.d.cts +20 -0
- package/dist/lib/cjs/setting-components/week-component.cjs +188 -0
- package/dist/lib/cjs/setting-components/week-component.d.cts +51 -0
- package/dist/lib/cjs/setting-ex.cjs +372 -0
- package/dist/lib/cjs/setting-ex.d.cts +198 -0
- package/dist/lib/cjs/setting-group-ex.cjs +165 -0
- package/dist/lib/cjs/setting-group-ex.d.cts +26 -0
- package/dist/lib/cjs/status-bar-item-registrar.cjs +162 -0
- package/dist/lib/cjs/status-bar-item-registrar.d.cts +36 -0
- package/dist/lib/cjs/templater.cjs +279 -0
- package/dist/lib/cjs/templater.d.cts +284 -0
- package/dist/lib/cjs/transformers/duration-transformer.cjs +182 -0
- package/dist/lib/cjs/transformers/duration-transformer.d.cts +39 -0
- package/dist/lib/cjs/transformers/index.cjs +153 -0
- package/dist/lib/cjs/transformers/index.d.cts +2 -0
- package/dist/lib/cjs/trusted-input.cjs +196 -0
- package/dist/lib/cjs/trusted-input.d.cts +131 -0
- package/dist/lib/cjs/validation.cjs +189 -0
- package/dist/lib/cjs/validation.d.cts +87 -0
- package/dist/lib/cjs/vault-delete.cjs +222 -0
- package/dist/lib/cjs/vault-delete.d.cts +82 -0
- package/dist/lib/cjs/vault-transaction.cjs +412 -0
- package/dist/lib/cjs/vault-transaction.d.cts +163 -0
- package/dist/lib/cjs/vault.cjs +701 -0
- package/dist/lib/cjs/vault.d.cts +506 -0
- package/dist/lib/cjs/view-registrar.cjs +162 -0
- package/dist/lib/cjs/view-registrar.d.cts +52 -0
- package/dist/lib/cjs/workspace.cjs +186 -0
- package/dist/lib/cjs/workspace.d.cts +81 -0
- package/dist/lib/esm/@types/dataview/api/data-array.d.mts +137 -0
- package/dist/lib/esm/@types/dataview/api/extensions.d.mts +16 -0
- package/dist/lib/esm/@types/dataview/api/inline-api.d.mts +187 -0
- package/dist/lib/esm/@types/dataview/api/plugin-api.d.mts +210 -0
- package/dist/lib/esm/@types/dataview/api/result.d.mts +39 -0
- package/dist/lib/esm/@types/dataview/data-import/common.d.mts +4 -0
- package/dist/lib/esm/@types/dataview/data-import/csv.d.mts +4 -0
- package/dist/lib/esm/@types/dataview/data-import/inline-field.d.mts +43 -0
- package/dist/lib/esm/@types/dataview/data-import/markdown-file.d.mts +53 -0
- package/dist/lib/esm/@types/dataview/data-import/persister.d.mts +33 -0
- package/dist/lib/esm/@types/dataview/data-import/web-worker/import-entry.d.mts +2 -0
- package/dist/lib/esm/@types/dataview/data-import/web-worker/import-impl.d.mts +7 -0
- package/dist/lib/esm/@types/dataview/data-import/web-worker/import-manager.d.mts +38 -0
- package/dist/lib/esm/@types/dataview/data-index/index.d.mts +187 -0
- package/dist/lib/esm/@types/dataview/data-index/resolver.d.mts +24 -0
- package/dist/lib/esm/@types/dataview/data-index/source.d.mts +72 -0
- package/dist/lib/esm/@types/dataview/data-model/markdown.d.mts +116 -0
- package/dist/lib/esm/@types/dataview/data-model/serialized/markdown.d.mts +107 -0
- package/dist/lib/esm/@types/dataview/data-model/transferable.d.mts +8 -0
- package/dist/lib/esm/@types/dataview/data-model/value.d.mts +176 -0
- package/dist/lib/esm/@types/dataview/expression/binaryop.d.mts +44 -0
- package/dist/lib/esm/@types/dataview/expression/context.d.mts +50 -0
- package/dist/lib/esm/@types/dataview/expression/field.d.mts +83 -0
- package/dist/lib/esm/@types/dataview/expression/functions.d.mts +150 -0
- package/dist/lib/esm/@types/dataview/expression/parse.d.mts +164 -0
- package/dist/lib/esm/@types/dataview/index.d.mts +56 -0
- package/dist/lib/esm/@types/dataview/main.d.mts +53 -0
- package/dist/lib/esm/@types/dataview/query/engine.d.mts +104 -0
- package/dist/lib/esm/@types/dataview/query/parse.d.mts +45 -0
- package/dist/lib/esm/@types/dataview/query/query.d.mts +96 -0
- package/dist/lib/esm/@types/dataview/settings.d.mts +61 -0
- package/dist/lib/esm/@types/dataview/typings/obsidian-ex.d.mts +29 -0
- package/dist/lib/esm/@types/dataview/typings/workers.d.mts +5 -0
- package/dist/lib/esm/@types/dataview/ui/export/markdown.d.mts +16 -0
- package/dist/lib/esm/@types/dataview/ui/lp-render.d.mts +38 -0
- package/dist/lib/esm/@types/dataview/ui/markdown.d.mts +87 -0
- package/dist/lib/esm/@types/dataview/ui/refreshable-view.d.mts +19 -0
- package/dist/lib/esm/@types/dataview/ui/render.d.mts +34 -0
- package/dist/lib/esm/@types/dataview/ui/views/calendar-view.d.mts +18 -0
- package/dist/lib/esm/@types/dataview/ui/views/inline-field-live-preview.d.mts +43 -0
- package/dist/lib/esm/@types/dataview/ui/views/inline-view.d.mts +29 -0
- package/dist/lib/esm/@types/dataview/ui/views/js-view.d.mts +24 -0
- package/dist/lib/esm/@types/dataview/ui/views/list-view.d.mts +26 -0
- package/dist/lib/esm/@types/dataview/ui/views/table-view.d.mts +29 -0
- package/dist/lib/esm/@types/dataview/ui/views/task-view.d.mts +52 -0
- package/dist/lib/esm/@types/dataview/util/hash.d.mts +2 -0
- package/dist/lib/esm/@types/dataview/util/locale.d.mts +3 -0
- package/dist/lib/esm/@types/dataview/util/media.d.mts +7 -0
- package/dist/lib/esm/@types/dataview/util/normalize.d.mts +45 -0
- package/dist/lib/esm/@types/i18next.d.mts +14 -0
- package/dist/lib/esm/@types/obsidian-integration-testing.d.mts +29 -0
- package/dist/lib/esm/@types/original-fs.d.mts +15 -0
- package/dist/lib/esm/__merged.d.mts +205 -0
- package/dist/lib/esm/__merged.mjs +1524 -0
- package/dist/lib/esm/active-file-provider.d.mts +36 -0
- package/dist/lib/esm/active-file-provider.mjs +64 -0
- package/dist/lib/esm/app.d.mts +17 -0
- package/dist/lib/esm/app.mjs +56 -0
- package/dist/lib/esm/async-with-notice.d.mts +113 -0
- package/dist/lib/esm/async-with-notice.mjs +141 -0
- package/dist/lib/esm/attachment-path.d.mts +341 -0
- package/dist/lib/esm/attachment-path.mjs +294 -0
- package/dist/lib/esm/attachment-unit-folder.d.mts +103 -0
- package/dist/lib/esm/attachment-unit-folder.mjs +70 -0
- package/dist/lib/esm/backlink-index.d.mts +51 -0
- package/dist/lib/esm/backlink-index.mjs +152 -0
- package/dist/lib/esm/backlink.d.mts +66 -0
- package/dist/lib/esm/backlink.mjs +123 -0
- package/dist/lib/esm/bases-view-registrar.d.mts +52 -0
- package/dist/lib/esm/bases-view-registrar.mjs +65 -0
- package/dist/lib/esm/callout.d.mts +76 -0
- package/dist/lib/esm/callout.mjs +124 -0
- package/dist/lib/esm/canvas.d.mts +28 -0
- package/dist/lib/esm/canvas.mjs +121 -0
- package/dist/lib/esm/case-insensitive-file-index.d.mts +92 -0
- package/dist/lib/esm/case-insensitive-file-index.mjs +144 -0
- package/dist/lib/esm/code-block-markdown-information.d.mts +48 -0
- package/dist/lib/esm/code-block-markdown-information.mjs +42 -0
- package/dist/lib/esm/code-block-reg-exp.d.mts +39 -0
- package/dist/lib/esm/code-block-reg-exp.mjs +48 -0
- package/dist/lib/esm/codemirror/index.d.mts +2 -0
- package/dist/lib/esm/codemirror/index.mjs +46 -0
- package/dist/lib/esm/codemirror/state-field-spec.d.mts +72 -0
- package/dist/lib/esm/codemirror/state-field-spec.mjs +42 -0
- package/dist/lib/esm/command-handlers/abstract-file-command-handler.d.mts +274 -0
- package/dist/lib/esm/command-handlers/abstract-file-command-handler.mjs +322 -0
- package/dist/lib/esm/command-handlers/command-handler-component.d.mts +146 -0
- package/dist/lib/esm/command-handlers/command-handler-component.mjs +185 -0
- package/dist/lib/esm/command-handlers/command-handler.d.mts +107 -0
- package/dist/lib/esm/command-handlers/command-handler.mjs +103 -0
- package/dist/lib/esm/command-handlers/editor-command-handler.d.mts +208 -0
- package/dist/lib/esm/command-handlers/editor-command-handler.mjs +254 -0
- package/dist/lib/esm/command-handlers/file-command-handler.d.mts +143 -0
- package/dist/lib/esm/command-handlers/file-command-handler.mjs +192 -0
- package/dist/lib/esm/command-handlers/folder-command-handler.d.mts +149 -0
- package/dist/lib/esm/command-handlers/folder-command-handler.mjs +200 -0
- package/dist/lib/esm/command-handlers/global-command-handler.d.mts +40 -0
- package/dist/lib/esm/command-handlers/global-command-handler.mjs +88 -0
- package/dist/lib/esm/command-handlers/index.d.mts +11 -0
- package/dist/lib/esm/command-handlers/index.mjs +64 -0
- package/dist/lib/esm/command-handlers/open-demo-vault-command-handler.d.mts +73 -0
- package/dist/lib/esm/command-handlers/open-demo-vault-command-handler.mjs +102 -0
- package/dist/lib/esm/command-handlers/open-settings-command-handler.d.mts +44 -0
- package/dist/lib/esm/command-handlers/open-settings-command-handler.mjs +77 -0
- package/dist/lib/esm/command-handlers/unlock-active-note-command-handler.d.mts +54 -0
- package/dist/lib/esm/command-handlers/unlock-active-note-command-handler.mjs +90 -0
- package/dist/lib/esm/command-registrar.d.mts +48 -0
- package/dist/lib/esm/command-registrar.mjs +72 -0
- package/dist/lib/esm/community-plugins.d.mts +270 -0
- package/dist/lib/esm/community-plugins.mjs +214 -0
- package/dist/lib/esm/components/abort-signal-component.d.mts +30 -0
- package/dist/lib/esm/components/abort-signal-component.mjs +75 -0
- package/dist/lib/esm/components/all-windows-event-component.d.mts +84 -0
- package/dist/lib/esm/components/all-windows-event-component.mjs +117 -0
- package/dist/lib/esm/components/async-error-handler-component.d.mts +30 -0
- package/dist/lib/esm/components/async-error-handler-component.mjs +79 -0
- package/dist/lib/esm/components/async-events-component.d.mts +15 -0
- package/dist/lib/esm/components/async-events-component.mjs +51 -0
- package/dist/lib/esm/components/case-insensitive-file-index-component.d.mts +36 -0
- package/dist/lib/esm/components/case-insensitive-file-index-component.mjs +93 -0
- package/dist/lib/esm/components/component-ex.d.mts +229 -0
- package/dist/lib/esm/components/component-ex.mjs +413 -0
- package/dist/lib/esm/components/console-debug-component.d.mts +30 -0
- package/dist/lib/esm/components/console-debug-component.mjs +73 -0
- package/dist/lib/esm/components/core-plugin-toggle-component.d.mts +102 -0
- package/dist/lib/esm/components/core-plugin-toggle-component.mjs +105 -0
- package/dist/lib/esm/components/disposable-component.d.mts +24 -0
- package/dist/lib/esm/components/disposable-component.mjs +57 -0
- package/dist/lib/esm/components/embed-extensions-component.d.mts +38 -0
- package/dist/lib/esm/components/embed-extensions-component.mjs +77 -0
- package/dist/lib/esm/components/generate-markdown-link-default-params-component.d.mts +42 -0
- package/dist/lib/esm/components/generate-markdown-link-default-params-component.mjs +73 -0
- package/dist/lib/esm/components/index.d.mts +30 -0
- package/dist/lib/esm/components/index.mjs +102 -0
- package/dist/lib/esm/components/layout-ready-component.d.mts +48 -0
- package/dist/lib/esm/components/layout-ready-component.mjs +113 -0
- package/dist/lib/esm/components/menu-event-registrar-component.d.mts +52 -0
- package/dist/lib/esm/components/menu-event-registrar-component.mjs +99 -0
- package/dist/lib/esm/components/monkey-around-component.d.mts +241 -0
- package/dist/lib/esm/components/monkey-around-component.mjs +146 -0
- package/dist/lib/esm/components/notebook-navigator-menu-event-registrar-component.d.mts +150 -0
- package/dist/lib/esm/components/notebook-navigator-menu-event-registrar-component.mjs +227 -0
- package/dist/lib/esm/components/plugin-context-component.d.mts +36 -0
- package/dist/lib/esm/components/plugin-context-component.mjs +86 -0
- package/dist/lib/esm/components/plugin-gate-component.d.mts +332 -0
- package/dist/lib/esm/components/plugin-gate-component.mjs +464 -0
- package/dist/lib/esm/components/plugin-notice-component.d.mts +362 -0
- package/dist/lib/esm/components/plugin-notice-component.mjs +535 -0
- package/dist/lib/esm/components/plugin-settings-component.d.mts +362 -0
- package/dist/lib/esm/components/plugin-settings-component.mjs +554 -0
- package/dist/lib/esm/components/plugin-settings-tab-component.d.mts +39 -0
- package/dist/lib/esm/components/plugin-settings-tab-component.mjs +73 -0
- package/dist/lib/esm/components/plugin-suggestion-component.d.mts +162 -0
- package/dist/lib/esm/components/plugin-suggestion-component.mjs +184 -0
- package/dist/lib/esm/components/pointer-position-component.d.mts +29 -0
- package/dist/lib/esm/components/pointer-position-component.mjs +69 -0
- package/dist/lib/esm/components/registry-component.d.mts +37 -0
- package/dist/lib/esm/components/registry-component.mjs +90 -0
- package/dist/lib/esm/components/release-notes-component.d.mts +129 -0
- package/dist/lib/esm/components/release-notes-component.mjs +128 -0
- package/dist/lib/esm/components/rename-delete-handler-component.d.mts +165 -0
- package/dist/lib/esm/components/rename-delete-handler-component.mjs +1230 -0
- package/dist/lib/esm/components/rmdir-guard-component.d.mts +76 -0
- package/dist/lib/esm/components/rmdir-guard-component.mjs +92 -0
- package/dist/lib/esm/components/settings-migration-component.d.mts +120 -0
- package/dist/lib/esm/components/settings-migration-component.mjs +125 -0
- package/dist/lib/esm/components/syntax-highlighting-component.d.mts +149 -0
- package/dist/lib/esm/components/syntax-highlighting-component.mjs +151 -0
- package/dist/lib/esm/components/templates-language-component.d.mts +124 -0
- package/dist/lib/esm/components/templates-language-component.mjs +179 -0
- package/dist/lib/esm/constructors/get-dom-events-handlers-constructor.d.mts +22 -0
- package/dist/lib/esm/constructors/get-dom-events-handlers-constructor.mjs +149 -0
- package/dist/lib/esm/constructors/index.d.mts +2 -0
- package/dist/lib/esm/constructors/index.mjs +46 -0
- package/dist/lib/esm/css-class.d.mts +278 -0
- package/dist/lib/esm/css-class.mjs +111 -0
- package/dist/lib/esm/data-handler.d.mts +49 -0
- package/dist/lib/esm/data-handler.mjs +73 -0
- package/dist/lib/esm/dataview-link.d.mts +42 -0
- package/dist/lib/esm/dataview-link.mjs +66 -0
- package/dist/lib/esm/dataview.d.mts +249 -0
- package/dist/lib/esm/dataview.mjs +280 -0
- package/dist/lib/esm/debug.d.mts +19 -0
- package/dist/lib/esm/debug.mjs +51 -0
- package/dist/lib/esm/demo-vault-helper-settings.d.mts +29 -0
- package/dist/lib/esm/demo-vault-helper-settings.mjs +42 -0
- package/dist/lib/esm/demo-vault-helper.d.mts +61 -0
- package/dist/lib/esm/demo-vault-helper.mjs +142 -0
- package/dist/lib/esm/demo-vault-naming.d.mts +54 -0
- package/dist/lib/esm/demo-vault-naming.mjs +59 -0
- package/dist/lib/esm/desktop-demo-vault-opener.d.mts +76 -0
- package/dist/lib/esm/desktop-demo-vault-opener.mjs +266 -0
- package/dist/lib/esm/desktop-trusted-input.d.mts +288 -0
- package/dist/lib/esm/desktop-trusted-input.mjs +198 -0
- package/dist/lib/esm/editor-extension-registrar.d.mts +37 -0
- package/dist/lib/esm/editor-extension-registrar.mjs +65 -0
- package/dist/lib/esm/editor-suggest-registrar.d.mts +36 -0
- package/dist/lib/esm/editor-suggest-registrar.mjs +68 -0
- package/dist/lib/esm/editor.d.mts +45 -0
- package/dist/lib/esm/editor.mjs +107 -0
- package/dist/lib/esm/events.d.mts +98 -0
- package/dist/lib/esm/events.mjs +73 -0
- package/dist/lib/esm/extensions-registrar.d.mts +51 -0
- package/dist/lib/esm/extensions-registrar.mjs +65 -0
- package/dist/lib/esm/file-change.d.mts +156 -0
- package/dist/lib/esm/file-change.mjs +473 -0
- package/dist/lib/esm/file-explorer.d.mts +34 -0
- package/dist/lib/esm/file-explorer.mjs +60 -0
- package/dist/lib/esm/file-manager.d.mts +123 -0
- package/dist/lib/esm/file-manager.mjs +161 -0
- package/dist/lib/esm/file-system.d.mts +554 -0
- package/dist/lib/esm/file-system.mjs +458 -0
- package/dist/lib/esm/folder-note.d.mts +166 -0
- package/dist/lib/esm/folder-note.mjs +161 -0
- package/dist/lib/esm/frontmatter-formatting.d.mts +44 -0
- package/dist/lib/esm/frontmatter-formatting.mjs +368 -0
- package/dist/lib/esm/frontmatter-link-cache-with-offsets.d.mts +34 -0
- package/dist/lib/esm/frontmatter-link-cache-with-offsets.mjs +61 -0
- package/dist/lib/esm/frontmatter.d.mts +145 -0
- package/dist/lib/esm/frontmatter.mjs +174 -0
- package/dist/lib/esm/generated-during-build.d.mts +25 -0
- package/dist/lib/esm/generated-during-build.mjs +48 -0
- package/dist/lib/esm/hover-link-source-registrar.d.mts +52 -0
- package/dist/lib/esm/hover-link-source-registrar.mjs +65 -0
- package/dist/lib/esm/html-element.d.mts +98 -0
- package/dist/lib/esm/html-element.mjs +86 -0
- package/dist/lib/esm/i18n/custom-type-options.d.mts +38 -0
- package/dist/lib/esm/i18n/custom-type-options.mjs +43 -0
- package/dist/lib/esm/i18n/default-translations.d.mts +15 -0
- package/dist/lib/esm/i18n/default-translations.mjs +43 -0
- package/dist/lib/esm/i18n/i18n.d.mts +38 -0
- package/dist/lib/esm/i18n/i18n.mjs +89 -0
- package/dist/lib/esm/i18n/index.d.mts +5 -0
- package/dist/lib/esm/i18n/index.mjs +52 -0
- package/dist/lib/esm/i18n/locales/en.d.mts +91 -0
- package/dist/lib/esm/i18n/locales/en.mjs +127 -0
- package/dist/lib/esm/i18n/locales/index.d.mts +3 -0
- package/dist/lib/esm/i18n/locales/index.mjs +48 -0
- package/dist/lib/esm/i18n/locales/translations-map.d.mts +100 -0
- package/dist/lib/esm/i18n/locales/translations-map.mjs +52 -0
- package/dist/lib/esm/index.d.mts +96 -0
- package/dist/lib/esm/index.mjs +234 -0
- package/dist/lib/esm/is-in-obsidian.d.mts +12 -0
- package/dist/lib/esm/is-in-obsidian.mjs +59 -0
- package/dist/lib/esm/library-styles.d.mts +56 -0
- package/dist/lib/esm/library-styles.mjs +72 -0
- package/dist/lib/esm/library.d.mts +57 -0
- package/dist/lib/esm/library.mjs +83 -0
- package/dist/lib/esm/link-name.d.mts +23 -0
- package/dist/lib/esm/link-name.mjs +48 -0
- package/dist/lib/esm/link-update-progress.d.mts +32 -0
- package/dist/lib/esm/link-update-progress.mjs +42 -0
- package/dist/lib/esm/link.d.mts +1369 -0
- package/dist/lib/esm/link.mjs +988 -0
- package/dist/lib/esm/logger.d.mts +37 -0
- package/dist/lib/esm/logger.mjs +115 -0
- package/dist/lib/esm/loop.d.mts +104 -0
- package/dist/lib/esm/loop.mjs +151 -0
- package/dist/lib/esm/markdown-code-block-processor-registrar.d.mts +62 -0
- package/dist/lib/esm/markdown-code-block-processor-registrar.mjs +69 -0
- package/dist/lib/esm/markdown-code-block-processor.d.mts +137 -0
- package/dist/lib/esm/markdown-code-block-processor.mjs +356 -0
- package/dist/lib/esm/markdown-post-processor-registrar.d.mts +59 -0
- package/dist/lib/esm/markdown-post-processor-registrar.mjs +66 -0
- package/dist/lib/esm/markdown-view.d.mts +14 -0
- package/dist/lib/esm/markdown-view.mjs +54 -0
- package/dist/lib/esm/markdown.d.mts +226 -0
- package/dist/lib/esm/markdown.mjs +391 -0
- package/dist/lib/esm/menu-event-registrar.d.mts +84 -0
- package/dist/lib/esm/menu-event-registrar.mjs +42 -0
- package/dist/lib/esm/metadata-cache.d.mts +359 -0
- package/dist/lib/esm/metadata-cache.mjs +454 -0
- package/dist/lib/esm/mobile-trusted-input.d.mts +98 -0
- package/dist/lib/esm/mobile-trusted-input.mjs +82 -0
- package/dist/lib/esm/modals/alert.d.mts +35 -0
- package/dist/lib/esm/modals/alert.mjs +84 -0
- package/dist/lib/esm/modals/confirm.d.mts +39 -0
- package/dist/lib/esm/modals/confirm.mjs +94 -0
- package/dist/lib/esm/modals/index.d.mts +10 -0
- package/dist/lib/esm/modals/index.mjs +62 -0
- package/dist/lib/esm/modals/minimizable-modal.d.mts +129 -0
- package/dist/lib/esm/modals/minimizable-modal.mjs +348 -0
- package/dist/lib/esm/modals/modal-command-builder.d.mts +285 -0
- package/dist/lib/esm/modals/modal-command-builder.mjs +363 -0
- package/dist/lib/esm/modals/modal.d.mts +64 -0
- package/dist/lib/esm/modals/modal.mjs +78 -0
- package/dist/lib/esm/modals/prompt.d.mts +83 -0
- package/dist/lib/esm/modals/prompt.mjs +168 -0
- package/dist/lib/esm/modals/select-item.d.mts +55 -0
- package/dist/lib/esm/modals/select-item.mjs +104 -0
- package/dist/lib/esm/modals/select-option.d.mts +65 -0
- package/dist/lib/esm/modals/select-option.mjs +95 -0
- package/dist/lib/esm/modals/suggest-modal-command-builder.d.mts +35 -0
- package/dist/lib/esm/modals/suggest-modal-command-builder.mjs +47 -0
- package/dist/lib/esm/note-priority.d.mts +154 -0
- package/dist/lib/esm/note-priority.mjs +135 -0
- package/dist/lib/esm/notebook-navigator.d.mts +132 -0
- package/dist/lib/esm/notebook-navigator.mjs +64 -0
- package/dist/lib/esm/obsidian-dev-utils-state.d.mts +42 -0
- package/dist/lib/esm/obsidian-dev-utils-state.mjs +76 -0
- package/dist/lib/esm/obsidian-protocol-handler-registrar.d.mts +55 -0
- package/dist/lib/esm/obsidian-protocol-handler-registrar.mjs +68 -0
- package/dist/lib/esm/obsidian-settings.d.mts +62 -0
- package/dist/lib/esm/obsidian-settings.mjs +81 -0
- package/dist/lib/esm/parse-link.d.mts +288 -0
- package/dist/lib/esm/parse-link.mjs +428 -0
- package/dist/lib/esm/path-settings.d.mts +56 -0
- package/dist/lib/esm/path-settings.mjs +176 -0
- package/dist/lib/esm/pdf.d.mts +26 -0
- package/dist/lib/esm/pdf.mjs +76 -0
- package/dist/lib/esm/plugin/index.d.mts +9 -0
- package/dist/lib/esm/plugin/index.mjs +60 -0
- package/dist/lib/esm/plugin/plugin-api.d.mts +413 -0
- package/dist/lib/esm/plugin/plugin-api.mjs +422 -0
- package/dist/lib/esm/plugin/plugin-context.d.mts +27 -0
- package/dist/lib/esm/plugin/plugin-context.mjs +101 -0
- package/dist/lib/esm/plugin/plugin-event-source.d.mts +97 -0
- package/dist/lib/esm/plugin/plugin-event-source.mjs +129 -0
- package/dist/lib/esm/plugin/plugin-install-state.d.mts +113 -0
- package/dist/lib/esm/plugin/plugin-install-state.mjs +101 -0
- package/dist/lib/esm/plugin/plugin-lifecycle-events.d.mts +127 -0
- package/dist/lib/esm/plugin/plugin-lifecycle-events.mjs +52 -0
- package/dist/lib/esm/plugin/plugin-settings-tab.d.mts +368 -0
- package/dist/lib/esm/plugin/plugin-settings-tab.mjs +527 -0
- package/dist/lib/esm/plugin/plugin.d.mts +363 -0
- package/dist/lib/esm/plugin/plugin.mjs +611 -0
- package/dist/lib/esm/plugin/settings-migration-api.d.mts +91 -0
- package/dist/lib/esm/plugin/settings-migration-api.mjs +42 -0
- package/dist/lib/esm/plugin-cli-handler-registrar.d.mts +64 -0
- package/dist/lib/esm/plugin-cli-handler-registrar.mjs +66 -0
- package/dist/lib/esm/popovers/field-popover.d.mts +75 -0
- package/dist/lib/esm/popovers/field-popover.mjs +88 -0
- package/dist/lib/esm/popovers/index.d.mts +4 -0
- package/dist/lib/esm/popovers/index.mjs +50 -0
- package/dist/lib/esm/popovers/popover-anchor.d.mts +67 -0
- package/dist/lib/esm/popovers/popover-anchor.mjs +82 -0
- package/dist/lib/esm/popovers/popover.d.mts +78 -0
- package/dist/lib/esm/popovers/popover.mjs +132 -0
- package/dist/lib/esm/property-entry.d.mts +43 -0
- package/dist/lib/esm/property-entry.mjs +73 -0
- package/dist/lib/esm/queue.d.mts +93 -0
- package/dist/lib/esm/queue.mjs +122 -0
- package/dist/lib/esm/react/app-context.d.mts +24 -0
- package/dist/lib/esm/react/app-context.mjs +56 -0
- package/dist/lib/esm/react/index.d.mts +2 -0
- package/dist/lib/esm/react/index.mjs +46 -0
- package/dist/lib/esm/reference.d.mts +116 -0
- package/dist/lib/esm/reference.mjs +87 -0
- package/dist/lib/esm/resource-lock.d.mts +318 -0
- package/dist/lib/esm/resource-lock.mjs +1006 -0
- package/dist/lib/esm/resource-url.d.mts +31 -0
- package/dist/lib/esm/resource-url.mjs +59 -0
- package/dist/lib/esm/ribbon-icon-registrar.d.mts +60 -0
- package/dist/lib/esm/ribbon-icon-registrar.mjs +66 -0
- package/dist/lib/esm/setting-components/checkbox-component.d.mts +69 -0
- package/dist/lib/esm/setting-components/checkbox-component.mjs +119 -0
- package/dist/lib/esm/setting-components/code-highlighter-component.d.mts +132 -0
- package/dist/lib/esm/setting-components/code-highlighter-component.mjs +287 -0
- package/dist/lib/esm/setting-components/date-component.d.mts +38 -0
- package/dist/lib/esm/setting-components/date-component.mjs +83 -0
- package/dist/lib/esm/setting-components/date-time-component.d.mts +38 -0
- package/dist/lib/esm/setting-components/date-time-component.mjs +83 -0
- package/dist/lib/esm/setting-components/email-component.d.mts +49 -0
- package/dist/lib/esm/setting-components/email-component.mjs +94 -0
- package/dist/lib/esm/setting-components/file-component.d.mts +43 -0
- package/dist/lib/esm/setting-components/file-component.mjs +86 -0
- package/dist/lib/esm/setting-components/index.d.mts +27 -0
- package/dist/lib/esm/setting-components/index.mjs +96 -0
- package/dist/lib/esm/setting-components/month-component.d.mts +51 -0
- package/dist/lib/esm/setting-components/month-component.mjs +91 -0
- package/dist/lib/esm/setting-components/multiple-dropdown-component.d.mts +92 -0
- package/dist/lib/esm/setting-components/multiple-dropdown-component.mjs +159 -0
- package/dist/lib/esm/setting-components/multiple-email-component.d.mts +38 -0
- package/dist/lib/esm/setting-components/multiple-email-component.mjs +80 -0
- package/dist/lib/esm/setting-components/multiple-file-component.d.mts +43 -0
- package/dist/lib/esm/setting-components/multiple-file-component.mjs +88 -0
- package/dist/lib/esm/setting-components/multiple-text-component.d.mts +109 -0
- package/dist/lib/esm/setting-components/multiple-text-component.mjs +178 -0
- package/dist/lib/esm/setting-components/number-component.d.mts +56 -0
- package/dist/lib/esm/setting-components/number-component.mjs +104 -0
- package/dist/lib/esm/setting-components/password-component.d.mts +38 -0
- package/dist/lib/esm/setting-components/password-component.mjs +80 -0
- package/dist/lib/esm/setting-components/setting-component-wrapper.d.mts +13 -0
- package/dist/lib/esm/setting-components/setting-component-wrapper.mjs +63 -0
- package/dist/lib/esm/setting-components/telephone-component.d.mts +51 -0
- package/dist/lib/esm/setting-components/telephone-component.mjs +94 -0
- package/dist/lib/esm/setting-components/text-based-component.d.mts +38 -0
- package/dist/lib/esm/setting-components/text-based-component.mjs +73 -0
- package/dist/lib/esm/setting-components/time-component.d.mts +38 -0
- package/dist/lib/esm/setting-components/time-component.mjs +88 -0
- package/dist/lib/esm/setting-components/tri-state-checkbox-component.d.mts +69 -0
- package/dist/lib/esm/setting-components/tri-state-checkbox-component.mjs +120 -0
- package/dist/lib/esm/setting-components/typed-dropdown-component.d.mts +97 -0
- package/dist/lib/esm/setting-components/typed-dropdown-component.mjs +168 -0
- package/dist/lib/esm/setting-components/typed-multiple-dropdown-component.d.mts +99 -0
- package/dist/lib/esm/setting-components/typed-multiple-dropdown-component.mjs +167 -0
- package/dist/lib/esm/setting-components/typed-range-text-component.d.mts +35 -0
- package/dist/lib/esm/setting-components/typed-range-text-component.mjs +78 -0
- package/dist/lib/esm/setting-components/typed-text-component.d.mts +100 -0
- package/dist/lib/esm/setting-components/typed-text-component.mjs +138 -0
- package/dist/lib/esm/setting-components/url-component.d.mts +49 -0
- package/dist/lib/esm/setting-components/url-component.mjs +94 -0
- package/dist/lib/esm/setting-components/validator-component.d.mts +23 -0
- package/dist/lib/esm/setting-components/validator-component.mjs +142 -0
- package/dist/lib/esm/setting-components/value-component-with-change-tracking.d.mts +20 -0
- package/dist/lib/esm/setting-components/value-component-with-change-tracking.mjs +42 -0
- package/dist/lib/esm/setting-components/week-component.d.mts +51 -0
- package/dist/lib/esm/setting-components/week-component.mjs +91 -0
- package/dist/lib/esm/setting-ex.d.mts +198 -0
- package/dist/lib/esm/setting-ex.mjs +274 -0
- package/dist/lib/esm/setting-group-ex.d.mts +26 -0
- package/dist/lib/esm/setting-group-ex.mjs +68 -0
- package/dist/lib/esm/status-bar-item-registrar.d.mts +36 -0
- package/dist/lib/esm/status-bar-item-registrar.mjs +65 -0
- package/dist/lib/esm/templater.d.mts +284 -0
- package/dist/lib/esm/templater.mjs +173 -0
- package/dist/lib/esm/transformers/duration-transformer.d.mts +39 -0
- package/dist/lib/esm/transformers/duration-transformer.mjs +85 -0
- package/dist/lib/esm/transformers/index.d.mts +2 -0
- package/dist/lib/esm/transformers/index.mjs +46 -0
- package/dist/lib/esm/trusted-input.d.mts +131 -0
- package/dist/lib/esm/trusted-input.mjs +83 -0
- package/dist/lib/esm/validation.d.mts +87 -0
- package/dist/lib/esm/validation.mjs +87 -0
- package/dist/lib/esm/vault-delete.d.mts +82 -0
- package/dist/lib/esm/vault-delete.mjs +132 -0
- package/dist/lib/esm/vault-transaction.d.mts +163 -0
- package/dist/lib/esm/vault-transaction.mjs +325 -0
- package/dist/lib/esm/vault.d.mts +506 -0
- package/dist/lib/esm/vault.mjs +604 -0
- package/dist/lib/esm/view-registrar.d.mts +52 -0
- package/dist/lib/esm/view-registrar.mjs +65 -0
- package/dist/lib/esm/workspace.d.mts +81 -0
- package/dist/lib/esm/workspace.mjs +84 -0
- package/dist/styles.css +497 -0
- package/i18n/custom-type-options/package.json +6 -0
- package/i18n/default-translations/package.json +6 -0
- package/i18n/i18n/package.json +6 -0
- package/i18n/index/package.json +6 -0
- package/i18n/locales/en/package.json +6 -0
- package/i18n/locales/index/package.json +6 -0
- package/i18n/locales/package.json +6 -0
- package/i18n/locales/translations-map/package.json +6 -0
- package/i18n/package.json +6 -0
- package/modals/alert/package.json +6 -0
- package/modals/confirm/package.json +6 -0
- package/modals/index/package.json +6 -0
- package/modals/minimizable-modal/package.json +6 -0
- package/modals/modal/package.json +6 -0
- package/modals/modal-command-builder/package.json +6 -0
- package/modals/package.json +6 -0
- package/modals/prompt/package.json +6 -0
- package/modals/select-item/package.json +6 -0
- package/modals/select-option/package.json +6 -0
- package/modals/suggest-modal-command-builder/package.json +6 -0
- package/package.json +533 -13
- package/plugin/index/package.json +6 -0
- package/plugin/package.json +6 -0
- package/plugin/plugin/package.json +6 -0
- package/plugin/plugin-api/package.json +6 -0
- package/plugin/plugin-context/package.json +6 -0
- package/plugin/plugin-event-source/package.json +6 -0
- package/plugin/plugin-install-state/package.json +6 -0
- package/plugin/plugin-lifecycle-events/package.json +6 -0
- package/plugin/plugin-settings-tab/package.json +6 -0
- package/plugin/settings-migration-api/package.json +6 -0
- package/popovers/field-popover/package.json +6 -0
- package/popovers/index/package.json +6 -0
- package/popovers/package.json +6 -0
- package/popovers/popover/package.json +6 -0
- package/popovers/popover-anchor/package.json +6 -0
- package/react/app-context/package.json +6 -0
- package/react/index/package.json +6 -0
- package/react/package.json +6 -0
- package/setting-components/checkbox-component/package.json +6 -0
- package/setting-components/code-highlighter-component/package.json +6 -0
- package/setting-components/date-component/package.json +6 -0
- package/setting-components/date-time-component/package.json +6 -0
- package/setting-components/email-component/package.json +6 -0
- package/setting-components/file-component/package.json +6 -0
- package/setting-components/index/package.json +6 -0
- package/setting-components/month-component/package.json +6 -0
- package/setting-components/multiple-dropdown-component/package.json +6 -0
- package/setting-components/multiple-email-component/package.json +6 -0
- package/setting-components/multiple-file-component/package.json +6 -0
- package/setting-components/multiple-text-component/package.json +6 -0
- package/setting-components/number-component/package.json +6 -0
- package/setting-components/package.json +6 -0
- package/setting-components/password-component/package.json +6 -0
- package/setting-components/setting-component-wrapper/package.json +6 -0
- package/setting-components/telephone-component/package.json +6 -0
- package/setting-components/text-based-component/package.json +6 -0
- package/setting-components/time-component/package.json +6 -0
- package/setting-components/tri-state-checkbox-component/package.json +6 -0
- package/setting-components/typed-dropdown-component/package.json +6 -0
- package/setting-components/typed-multiple-dropdown-component/package.json +6 -0
- package/setting-components/typed-range-text-component/package.json +6 -0
- package/setting-components/typed-text-component/package.json +6 -0
- package/setting-components/url-component/package.json +6 -0
- package/setting-components/validator-component/package.json +6 -0
- package/setting-components/value-component-with-change-tracking/package.json +6 -0
- package/setting-components/week-component/package.json +6 -0
- package/transformers/duration-transformer/package.json +6 -0
- package/transformers/index/package.json +6 -0
- package/transformers/package.json +6 -0
|
@@ -0,0 +1,1369 @@
|
|
|
1
|
+
/// <reference path="./library.d.mts" />
|
|
2
|
+
/**
|
|
3
|
+
* @file
|
|
4
|
+
*
|
|
5
|
+
* This module provides utilities for handling and updating links within Obsidian vaults. It includes
|
|
6
|
+
* functions to split paths, update links in files, and generate markdown links with various options.
|
|
7
|
+
*/
|
|
8
|
+
import type { MaybeReturn } from '@mnaoumov/typescript-lib/type';
|
|
9
|
+
import type { App, Reference, TFile } from 'obsidian';
|
|
10
|
+
import type { Promisable } from 'type-fest';
|
|
11
|
+
import type { PathOrFile } from './file-system.mjs';
|
|
12
|
+
import type { LinkUpdateProgressReporter } from './link-update-progress.mjs';
|
|
13
|
+
import type { OffsetRange } from './reference.mjs';
|
|
14
|
+
import type { ProcessOptions } from './vault.mjs';
|
|
15
|
+
/**
|
|
16
|
+
* A style of the link path.
|
|
17
|
+
*/
|
|
18
|
+
export declare enum LinkPathStyle {
|
|
19
|
+
/**
|
|
20
|
+
* Use the absolute path in the vault.
|
|
21
|
+
*
|
|
22
|
+
* @example `[[path/from/the/vault/root/target]]`
|
|
23
|
+
*/
|
|
24
|
+
AbsolutePathInVault = "AbsolutePathInVault",
|
|
25
|
+
/**
|
|
26
|
+
* Use the default link path style defined in Obsidian settings.
|
|
27
|
+
*/
|
|
28
|
+
ObsidianSettingsDefault = "ObsidianSettingsDefault",
|
|
29
|
+
/**
|
|
30
|
+
* Use the relative path to the source.
|
|
31
|
+
*
|
|
32
|
+
* @example `[[../../relative/path/to/target]]`
|
|
33
|
+
*/
|
|
34
|
+
RelativePathToTheSource = "RelativePathToTheSource",
|
|
35
|
+
/**
|
|
36
|
+
* Use the shortest path when possible.
|
|
37
|
+
*
|
|
38
|
+
* @example `[[shortest-path-to-target]]`
|
|
39
|
+
*/
|
|
40
|
+
ShortestPathWhenPossible = "ShortestPathWhenPossible"
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A style of the link.
|
|
44
|
+
*/
|
|
45
|
+
export declare enum LinkStyle {
|
|
46
|
+
/**
|
|
47
|
+
* Force the link to be in markdown format.
|
|
48
|
+
*
|
|
49
|
+
* @example `[alias](path/to/target.md)`
|
|
50
|
+
*/
|
|
51
|
+
Markdown = "Markdown",
|
|
52
|
+
/**
|
|
53
|
+
* Use the default link style defined in Obsidian settings.
|
|
54
|
+
*/
|
|
55
|
+
ObsidianSettingsDefault = "ObsidianSettingsDefault",
|
|
56
|
+
/**
|
|
57
|
+
* Preserve the existing link style.
|
|
58
|
+
*/
|
|
59
|
+
PreserveExisting = "PreserveExisting",
|
|
60
|
+
/**
|
|
61
|
+
* Force the link to be in wikilink format.
|
|
62
|
+
*
|
|
63
|
+
* @example `[[path/to/target]]`
|
|
64
|
+
* @example `[[path/to/target|alias]]`
|
|
65
|
+
*/
|
|
66
|
+
Wikilink = "Wikilink"
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Params passed to the link converter of {@link editBacklinksSnapshot}.
|
|
70
|
+
*
|
|
71
|
+
* @typeParam TPayload - The payload recorded for each link when the snapshot was built.
|
|
72
|
+
*/
|
|
73
|
+
export interface BacklinkConversionParams<TPayload> {
|
|
74
|
+
/**
|
|
75
|
+
* The link being converted.
|
|
76
|
+
*/
|
|
77
|
+
readonly link: Reference;
|
|
78
|
+
/**
|
|
79
|
+
* The payload captured for the link when the snapshot was built.
|
|
80
|
+
*
|
|
81
|
+
* `undefined` when the link is not in the snapshot, which can only happen if
|
|
82
|
+
* {@link EditBacklinksSnapshotParams.shouldVisitUnmatchedLinks} is `true`.
|
|
83
|
+
*/
|
|
84
|
+
readonly payload: TPayload | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* The path of the note holding the link.
|
|
87
|
+
*/
|
|
88
|
+
readonly sourcePath: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The minimal shape {@link buildBacklinksSnapshot} reads a set of backlinks from.
|
|
92
|
+
*
|
|
93
|
+
* Both a `CustomArrayDict<Reference>` — what
|
|
94
|
+
* {@link ../obsidian/metadata-cache!getBacklinksForFileSafe | getBacklinksForFileSafe} returns — and a plain
|
|
95
|
+
* `Map<string, Reference[]>` satisfy it, so a caller can pass either without converting first.
|
|
96
|
+
*/
|
|
97
|
+
export interface BacklinksLike {
|
|
98
|
+
/**
|
|
99
|
+
* Returns the links the note at `key` holds, or a nullish value when it holds none.
|
|
100
|
+
*
|
|
101
|
+
* @param key - The path of the backlink-holding note.
|
|
102
|
+
* @returns The links, or a nullish value.
|
|
103
|
+
*/
|
|
104
|
+
get: (key: string) => null | readonly Reference[] | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the paths of the backlink-holding notes.
|
|
107
|
+
*
|
|
108
|
+
* @returns The paths.
|
|
109
|
+
*/
|
|
110
|
+
keys: () => Iterable<string>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* A captured snapshot of a set of backlinks: the path of each backlink-holding note, mapped to the identity
|
|
114
|
+
* keys of that note's own links to the target(s), each mapped to the payload recorded for it.
|
|
115
|
+
*
|
|
116
|
+
* The snapshot exists so that the fetch and the rewrite can happen at different moments. A rename invalidates
|
|
117
|
+
* the metadata cache for the old path, so a caller that rewrites links **after** renaming has to capture the
|
|
118
|
+
* backlinks **before** — which is why {@link editBacklinksSnapshot} takes a snapshot rather than a path.
|
|
119
|
+
*
|
|
120
|
+
* The payload is whatever the caller needs to remember per link. It is `undefined` for a single-target
|
|
121
|
+
* rewrite (the target is implied), and the old target's path for a multi-target one, where one note's links
|
|
122
|
+
* may point at several files that all moved and each link has to be resolved to its own new path.
|
|
123
|
+
*
|
|
124
|
+
* @typeParam TPayload - The payload recorded for each link.
|
|
125
|
+
*/
|
|
126
|
+
export type BacklinksSnapshot<TPayload> = ReadonlyMap<string, ReadonlyMap<string, TPayload>>;
|
|
127
|
+
/**
|
|
128
|
+
* Params for {@link buildBacklinksSnapshot}.
|
|
129
|
+
*
|
|
130
|
+
* @typeParam TPayload - The payload recorded for each link.
|
|
131
|
+
*/
|
|
132
|
+
export interface BuildBacklinksSnapshotParams<TPayload> {
|
|
133
|
+
/**
|
|
134
|
+
* The backlinks to record.
|
|
135
|
+
*/
|
|
136
|
+
readonly backlinks: BacklinksLike;
|
|
137
|
+
/**
|
|
138
|
+
* Computes the identity key of a link.
|
|
139
|
+
*
|
|
140
|
+
* The snapshot remembers it, so {@link editBacklinksSnapshot} looks the links up with the same function
|
|
141
|
+
* without being told. When {@link BuildBacklinksSnapshotParams.target} was built with a provider, omitting
|
|
142
|
+
* this reuses that one, and passing a different one throws: a snapshot keyed by two functions matches
|
|
143
|
+
* nothing.
|
|
144
|
+
*
|
|
145
|
+
* @default the provider `target` was built with, else `JSON.stringify`
|
|
146
|
+
*/
|
|
147
|
+
readonly linkIdentityKeyProvider?: (link: Reference) => string;
|
|
148
|
+
/**
|
|
149
|
+
* Rewrites the path of a backlink-holding note as it will be **after** the operation.
|
|
150
|
+
*
|
|
151
|
+
* A note that holds a backlink can itself be renamed or moved by the same operation — including the
|
|
152
|
+
* renamed note's own self-links. Remapping here keys the snapshot by the path the rewrite will actually
|
|
153
|
+
* open.
|
|
154
|
+
*
|
|
155
|
+
* @default the identity function
|
|
156
|
+
*/
|
|
157
|
+
readonly pathRemapper?: (backlinkPath: string) => string;
|
|
158
|
+
/**
|
|
159
|
+
* Produces the payload to record for a link. See {@link BacklinksSnapshot} for what a payload is for.
|
|
160
|
+
*
|
|
161
|
+
* @param link - The link being recorded.
|
|
162
|
+
* @returns The payload.
|
|
163
|
+
*/
|
|
164
|
+
readonly payloadProvider: (link: Reference) => TPayload;
|
|
165
|
+
/**
|
|
166
|
+
* An existing snapshot to merge into, so several sets of backlinks can be accumulated into one.
|
|
167
|
+
*
|
|
168
|
+
* Merging is what makes a single rewrite pass per note possible when a note links to several moved
|
|
169
|
+
* targets: without it, calling the rewrite once per target would open — and write — the same note
|
|
170
|
+
* repeatedly.
|
|
171
|
+
*
|
|
172
|
+
* When omitted, a new snapshot is created.
|
|
173
|
+
*/
|
|
174
|
+
readonly target?: MutableBacklinksSnapshot<TPayload>;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Params for {@link convertLink}.
|
|
178
|
+
*/
|
|
179
|
+
export interface ConvertLinkParams {
|
|
180
|
+
/**
|
|
181
|
+
* An Obsidian app instance.
|
|
182
|
+
*/
|
|
183
|
+
readonly app: App;
|
|
184
|
+
/**
|
|
185
|
+
* Whether to allow an empty alias for embeds.
|
|
186
|
+
*
|
|
187
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
188
|
+
*
|
|
189
|
+
* If `true`: ``.
|
|
190
|
+
*
|
|
191
|
+
* If `false`: ``.
|
|
192
|
+
*
|
|
193
|
+
* @default `true`
|
|
194
|
+
*/
|
|
195
|
+
readonly isEmptyEmbedAliasAllowed?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* A reference for the link.
|
|
198
|
+
*/
|
|
199
|
+
readonly link: Reference;
|
|
200
|
+
/**
|
|
201
|
+
* A style of the link path.
|
|
202
|
+
*/
|
|
203
|
+
readonly linkPathStyle?: LinkPathStyle;
|
|
204
|
+
/**
|
|
205
|
+
* A style of the link.
|
|
206
|
+
*/
|
|
207
|
+
readonly linkStyle?: LinkStyle;
|
|
208
|
+
/**
|
|
209
|
+
* A source file containing the link.
|
|
210
|
+
*/
|
|
211
|
+
readonly newSourcePathOrFile: PathOrFile;
|
|
212
|
+
/**
|
|
213
|
+
* An old path of the link.
|
|
214
|
+
*/
|
|
215
|
+
readonly oldSourcePathOrFile?: PathOrFile;
|
|
216
|
+
/**
|
|
217
|
+
* Whether to escape the alias.
|
|
218
|
+
*
|
|
219
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
220
|
+
*
|
|
221
|
+
* If `true`: `[\*\*alias\*\*](link.md)`.
|
|
222
|
+
*
|
|
223
|
+
* If `false`: `[**alias**](link.md)`.
|
|
224
|
+
*
|
|
225
|
+
* @default `false`
|
|
226
|
+
*/
|
|
227
|
+
readonly shouldEscapeAlias?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Whether to include the attachment extension in the embed alias.
|
|
230
|
+
*
|
|
231
|
+
* Applicable only if {@link isEmptyEmbedAliasAllowed} is `false`.
|
|
232
|
+
*
|
|
233
|
+
* If `true`: `[foo.png](foo.png)`.
|
|
234
|
+
*
|
|
235
|
+
* If `false`: `[foo](foo.png)`.
|
|
236
|
+
*
|
|
237
|
+
* @default `false`
|
|
238
|
+
*/
|
|
239
|
+
readonly shouldIncludeAttachmentExtensionToEmbedAlias?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Whether to update file name alias.
|
|
242
|
+
*
|
|
243
|
+
* @default `true`
|
|
244
|
+
*/
|
|
245
|
+
readonly shouldUpdateFileNameAlias?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Indicates if the link should use angle brackets.
|
|
248
|
+
*
|
|
249
|
+
* Applicable only if {@link linkStyle} is {@link LinkStyle.Markdown}.
|
|
250
|
+
*
|
|
251
|
+
* If `true`: `[alias](<path with spaces.md>)`.
|
|
252
|
+
*
|
|
253
|
+
* If `false`: `[alias](path%20with%20spaces.md)`.
|
|
254
|
+
*
|
|
255
|
+
* @default `false`
|
|
256
|
+
*/
|
|
257
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Indicates if the link should use a leading dot.
|
|
260
|
+
*
|
|
261
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.RelativePathToTheSource}.
|
|
262
|
+
*
|
|
263
|
+
* If `true`: `[[./relative/path/to/target]]`
|
|
264
|
+
*
|
|
265
|
+
* If `false`: `[[relative/path/to/target]]`
|
|
266
|
+
*
|
|
267
|
+
* @default `false`
|
|
268
|
+
*/
|
|
269
|
+
readonly shouldUseLeadingDotForRelativePaths?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Indicates if the link should use a leading slash.
|
|
272
|
+
*
|
|
273
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.AbsolutePathInVault}.
|
|
274
|
+
*
|
|
275
|
+
* If `true`: `[[/absolute/path/to/target]]`
|
|
276
|
+
*
|
|
277
|
+
* If `false`: `[[absolute/path/to/target]]`
|
|
278
|
+
*
|
|
279
|
+
* @default `false`
|
|
280
|
+
*/
|
|
281
|
+
readonly shouldUseLeadingSlashForAbsolutePaths?: boolean;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Options for {@link editBacklinks}.
|
|
285
|
+
*/
|
|
286
|
+
export type EditBacklinksOptions = ProcessOptions;
|
|
287
|
+
/**
|
|
288
|
+
* Parameters for {@link editBacklinks}.
|
|
289
|
+
*/
|
|
290
|
+
export interface EditBacklinksParams extends EditBacklinksOptions {
|
|
291
|
+
/**
|
|
292
|
+
* The Obsidian application instance.
|
|
293
|
+
*/
|
|
294
|
+
readonly app: App;
|
|
295
|
+
/**
|
|
296
|
+
* The function that converts each link.
|
|
297
|
+
*/
|
|
298
|
+
readonly linkConverter: (link: Reference) => Promisable<MaybeReturn<string>>;
|
|
299
|
+
/**
|
|
300
|
+
* An optional reporter invoked once per backlink file after its links are updated, with the running
|
|
301
|
+
* count of processed files and the total. When omitted, no progress is reported.
|
|
302
|
+
*/
|
|
303
|
+
readonly linkUpdateProgressReporter?: LinkUpdateProgressReporter;
|
|
304
|
+
/**
|
|
305
|
+
* The path or file to edit the backlinks for.
|
|
306
|
+
*/
|
|
307
|
+
readonly pathOrFile: PathOrFile;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Options for {@link editBacklinksSnapshot}.
|
|
311
|
+
*/
|
|
312
|
+
export type EditBacklinksSnapshotOptions = ProcessOptions;
|
|
313
|
+
/**
|
|
314
|
+
* Parameters for {@link editBacklinksSnapshot}.
|
|
315
|
+
*
|
|
316
|
+
* @typeParam TPayload - The payload recorded for each link when the snapshot was built.
|
|
317
|
+
*/
|
|
318
|
+
export interface EditBacklinksSnapshotParams<TPayload> extends EditBacklinksSnapshotOptions {
|
|
319
|
+
/**
|
|
320
|
+
* The Obsidian application instance.
|
|
321
|
+
*/
|
|
322
|
+
readonly app: App;
|
|
323
|
+
/**
|
|
324
|
+
* The function that converts each link.
|
|
325
|
+
*/
|
|
326
|
+
readonly linkConverter: (params: BacklinkConversionParams<TPayload>) => Promisable<MaybeReturn<string>>;
|
|
327
|
+
/**
|
|
328
|
+
* Computes the identity key of a link.
|
|
329
|
+
*
|
|
330
|
+
* Leave it out for a snapshot made by {@link buildBacklinksSnapshot}: the snapshot carries the provider it was
|
|
331
|
+
* built with, and that one is used. Passing a different one throws, because the snapshot is keyed by the
|
|
332
|
+
* other and not a single link would match — the edit would complete and rewrite nothing. It is needed only
|
|
333
|
+
* for a snapshot assembled by hand.
|
|
334
|
+
*
|
|
335
|
+
* @default the provider the snapshot was built with, else `JSON.stringify`
|
|
336
|
+
*/
|
|
337
|
+
readonly linkIdentityKeyProvider?: (link: Reference) => string;
|
|
338
|
+
/**
|
|
339
|
+
* An optional reporter invoked once per backlink file after its links are updated, with the running
|
|
340
|
+
* count of processed files and the total. When omitted, no progress is reported.
|
|
341
|
+
*/
|
|
342
|
+
readonly linkUpdateProgressReporter?: LinkUpdateProgressReporter;
|
|
343
|
+
/**
|
|
344
|
+
* Whether the converter is also shown links that are **not** in the snapshot, with an `undefined`
|
|
345
|
+
* {@link BacklinkConversionParams.payload}.
|
|
346
|
+
*
|
|
347
|
+
* The default filters them out, which is what a plain rename wants: a link absent from the snapshot was
|
|
348
|
+
* either never the caller's to rewrite, or has already been rewritten by someone else. Set this to `true`
|
|
349
|
+
* only when the caller has its own reason to look at them — a widened match of its own, or logging a skip
|
|
350
|
+
* that would otherwise be silent.
|
|
351
|
+
*
|
|
352
|
+
* @default `false`
|
|
353
|
+
*/
|
|
354
|
+
readonly shouldVisitUnmatchedLinks?: boolean;
|
|
355
|
+
/**
|
|
356
|
+
* The captured backlinks to edit.
|
|
357
|
+
*/
|
|
358
|
+
readonly snapshot: BacklinksSnapshot<TPayload>;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Parameters for {@link editLinksInContent}.
|
|
362
|
+
*/
|
|
363
|
+
export interface EditLinksInContentParams {
|
|
364
|
+
/**
|
|
365
|
+
* The abort signal to control the execution of the function.
|
|
366
|
+
*/
|
|
367
|
+
readonly abortSignal?: AbortSignal;
|
|
368
|
+
/**
|
|
369
|
+
* The Obsidian application instance.
|
|
370
|
+
*/
|
|
371
|
+
readonly app: App;
|
|
372
|
+
/**
|
|
373
|
+
* The content to edit the links in.
|
|
374
|
+
*/
|
|
375
|
+
readonly content: string;
|
|
376
|
+
/**
|
|
377
|
+
* The function that converts each link.
|
|
378
|
+
*/
|
|
379
|
+
readonly linkConverter: (link: Reference) => Promisable<MaybeReturn<string>>;
|
|
380
|
+
/**
|
|
381
|
+
* A range within {@link EditLinksInContentParams.content}, in character offsets, restricting the pass to
|
|
382
|
+
* the links inside it. When omitted, every link is visited.
|
|
383
|
+
*
|
|
384
|
+
* A link is edited only when it is **fully contained** in the range; one that merely overlaps it is left
|
|
385
|
+
* alone, because rewriting part of a link corrupts it. Both bounds are inclusive, so a range whose
|
|
386
|
+
* offsets coincide exactly with a link's does include that link.
|
|
387
|
+
*
|
|
388
|
+
* A reference that carries no position within the content — a frontmatter link, a multi-link frontmatter
|
|
389
|
+
* value entry, or any canvas reference — is never in range and is skipped whenever a range is supplied.
|
|
390
|
+
*
|
|
391
|
+
* @default `undefined`
|
|
392
|
+
*/
|
|
393
|
+
readonly offsetRange?: OffsetRange;
|
|
394
|
+
/**
|
|
395
|
+
* Whether to also edit external links parsed from the note body. When `true`, the converter also
|
|
396
|
+
* receives references for external links.
|
|
397
|
+
*
|
|
398
|
+
* @default `false`
|
|
399
|
+
*/
|
|
400
|
+
readonly shouldEditExternalLinks?: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Whether to also edit external links parsed from frontmatter values. When `true`, the converter also
|
|
403
|
+
* receives references for frontmatter external links.
|
|
404
|
+
*
|
|
405
|
+
* @default `false`
|
|
406
|
+
*/
|
|
407
|
+
readonly shouldEditFrontmatterExternalLinks?: boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Whether to also edit external links parsed from multi-link (multi-value) frontmatter values. When
|
|
410
|
+
* `true`, the converter also receives references for each external link within a multi-link frontmatter
|
|
411
|
+
* value (each located by its offsets, so only that link is spliced back in place).
|
|
412
|
+
*
|
|
413
|
+
* @default `false`
|
|
414
|
+
*/
|
|
415
|
+
readonly shouldEditMultiValueFrontmatterExternalLinks?: boolean;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Options for {@link editLinks}.
|
|
419
|
+
*/
|
|
420
|
+
export type EditLinksOptions = ProcessOptions;
|
|
421
|
+
/**
|
|
422
|
+
* Parameters for {@link editLinks}.
|
|
423
|
+
*/
|
|
424
|
+
export interface EditLinksParams extends EditLinksOptions {
|
|
425
|
+
/**
|
|
426
|
+
* The Obsidian application instance.
|
|
427
|
+
*/
|
|
428
|
+
readonly app: App;
|
|
429
|
+
/**
|
|
430
|
+
* The function that converts each link.
|
|
431
|
+
*/
|
|
432
|
+
readonly linkConverter: (link: Reference) => Promisable<MaybeReturn<string>>;
|
|
433
|
+
/**
|
|
434
|
+
* A range within the file's content, in character offsets, restricting the pass to the links inside it.
|
|
435
|
+
* When omitted, every link is visited.
|
|
436
|
+
*
|
|
437
|
+
* A link is edited only when it is **fully contained** in the range; one that merely overlaps it is left
|
|
438
|
+
* alone, because rewriting part of a link corrupts it. Both bounds are inclusive, so a range whose
|
|
439
|
+
* offsets coincide exactly with a link's does include that link.
|
|
440
|
+
*
|
|
441
|
+
* A reference that carries no position within the file's content — a frontmatter link, a multi-link
|
|
442
|
+
* frontmatter value entry, or any canvas reference — is never in range and is skipped whenever a range is
|
|
443
|
+
* supplied.
|
|
444
|
+
*
|
|
445
|
+
* The offsets are into the content this function reads from the vault. Before reading, it saves any
|
|
446
|
+
* unsaved editor buffer for the file, so a range taken from an open editor via `Editor.posToOffset` is
|
|
447
|
+
* valid. The caller owns only the case where the buffer changes between computing the range and this
|
|
448
|
+
* call.
|
|
449
|
+
*
|
|
450
|
+
* @default `undefined`
|
|
451
|
+
*/
|
|
452
|
+
readonly offsetRange?: OffsetRange;
|
|
453
|
+
/**
|
|
454
|
+
* The path or file to edit the links for.
|
|
455
|
+
*/
|
|
456
|
+
readonly pathOrFile: PathOrFile;
|
|
457
|
+
/**
|
|
458
|
+
* Whether to also edit external links parsed from the note body. When `true`, the converter also
|
|
459
|
+
* receives references for external links.
|
|
460
|
+
*
|
|
461
|
+
* @default `false`
|
|
462
|
+
*/
|
|
463
|
+
readonly shouldEditExternalLinks?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Whether to also edit external links parsed from frontmatter values. When `true`, the converter also
|
|
466
|
+
* receives references for frontmatter external links.
|
|
467
|
+
*
|
|
468
|
+
* @default `false`
|
|
469
|
+
*/
|
|
470
|
+
readonly shouldEditFrontmatterExternalLinks?: boolean;
|
|
471
|
+
/**
|
|
472
|
+
* Whether to also edit external links parsed from multi-link (multi-value) frontmatter values. When
|
|
473
|
+
* `true`, the converter also receives references for each external link within a multi-link frontmatter
|
|
474
|
+
* value (each located by its offsets, so only that link is spliced back in place).
|
|
475
|
+
*
|
|
476
|
+
* @default `false`
|
|
477
|
+
*/
|
|
478
|
+
readonly shouldEditMultiValueFrontmatterExternalLinks?: boolean;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Parameters for {@link extractLinkFile}.
|
|
482
|
+
*/
|
|
483
|
+
export interface ExtractLinkFileParams {
|
|
484
|
+
/**
|
|
485
|
+
* The Obsidian application instance.
|
|
486
|
+
*/
|
|
487
|
+
readonly app: App;
|
|
488
|
+
/**
|
|
489
|
+
* The reference cache for the link.
|
|
490
|
+
*/
|
|
491
|
+
readonly link: Reference;
|
|
492
|
+
/**
|
|
493
|
+
* Whether to allow non-existing files.
|
|
494
|
+
*
|
|
495
|
+
* @default `false`
|
|
496
|
+
*/
|
|
497
|
+
readonly shouldAllowNonExistingFile?: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* The source path or file.
|
|
500
|
+
*/
|
|
501
|
+
readonly sourcePathOrFile: PathOrFile;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Params for {@link generateMarkdownLink}.
|
|
505
|
+
*/
|
|
506
|
+
export interface GenerateMarkdownLinkParams {
|
|
507
|
+
/**
|
|
508
|
+
* An alias for the link.
|
|
509
|
+
*
|
|
510
|
+
* @example `[[alias|link]]`
|
|
511
|
+
* @example `[alias](link.md)`
|
|
512
|
+
*/
|
|
513
|
+
readonly alias?: string;
|
|
514
|
+
/**
|
|
515
|
+
* An Obsidian app instance.
|
|
516
|
+
*/
|
|
517
|
+
readonly app: App;
|
|
518
|
+
/**
|
|
519
|
+
* Indicates if the link should be embedded. If not provided, it will be inferred based on the file type.
|
|
520
|
+
*
|
|
521
|
+
* If `true`: `![[target]]`.
|
|
522
|
+
*
|
|
523
|
+
* If `false`: `[[target]]`.
|
|
524
|
+
*/
|
|
525
|
+
readonly isEmbed?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Whether to allow an empty alias for embeds.
|
|
528
|
+
*
|
|
529
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
530
|
+
*
|
|
531
|
+
* If `true`: ``.
|
|
532
|
+
*
|
|
533
|
+
* If `false`: ``.
|
|
534
|
+
*
|
|
535
|
+
* @default `true`
|
|
536
|
+
*/
|
|
537
|
+
readonly isEmptyEmbedAliasAllowed?: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Whether to allow non-existing files.
|
|
540
|
+
*
|
|
541
|
+
* If `false` and {@link targetPathOrFile} is a non-existing file, an error will be thrown.
|
|
542
|
+
*
|
|
543
|
+
* @default `false`
|
|
544
|
+
*/
|
|
545
|
+
readonly isNonExistingFileAllowed?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Whether to allow a single subpath.
|
|
548
|
+
*
|
|
549
|
+
* Applicable only if {@link targetPathOrFile} and {@link sourcePathOrFile} are the same file.
|
|
550
|
+
*
|
|
551
|
+
* If `true`: `[[#subpath]]`.
|
|
552
|
+
*
|
|
553
|
+
* If `false`: `[[source#subpath]]`
|
|
554
|
+
*
|
|
555
|
+
* @default `true`
|
|
556
|
+
*/
|
|
557
|
+
readonly isSingleSubpathAllowed?: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* A style of the link path.
|
|
560
|
+
*/
|
|
561
|
+
readonly linkPathStyle?: LinkPathStyle;
|
|
562
|
+
/**
|
|
563
|
+
* A style of the link.
|
|
564
|
+
*/
|
|
565
|
+
readonly linkStyle?: LinkStyle;
|
|
566
|
+
/**
|
|
567
|
+
* An original link text.
|
|
568
|
+
*
|
|
569
|
+
* If provided, it will be used to infer the values of
|
|
570
|
+
*
|
|
571
|
+
* - {@link hasEmbedSyntax}
|
|
572
|
+
* - {@link linkStyle}
|
|
573
|
+
* - {@link shouldUseAngleBrackets}
|
|
574
|
+
* - {@link shouldUseLeadingDotForRelativePaths}
|
|
575
|
+
* - {@link shouldUseLeadingSlashForAbsolutePaths}
|
|
576
|
+
*
|
|
577
|
+
* These inferred values will be overridden by corresponding settings if specified.
|
|
578
|
+
*/
|
|
579
|
+
readonly originalLink?: string;
|
|
580
|
+
/**
|
|
581
|
+
* Whether to escape the alias.
|
|
582
|
+
*
|
|
583
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
584
|
+
*
|
|
585
|
+
* If `true`: `[\*\*alias\*\*](link.md)`.
|
|
586
|
+
*
|
|
587
|
+
* If `false`: `[**alias**](link.md)`.
|
|
588
|
+
*
|
|
589
|
+
* @default `false`
|
|
590
|
+
*/
|
|
591
|
+
readonly shouldEscapeAlias?: boolean;
|
|
592
|
+
/**
|
|
593
|
+
* Whether to include the attachment extension in the embed alias.
|
|
594
|
+
*
|
|
595
|
+
* Applicable only if {@link isEmptyEmbedAliasAllowed} is `false`.
|
|
596
|
+
*
|
|
597
|
+
* If `true`: `[foo.png](foo.png)`.
|
|
598
|
+
*
|
|
599
|
+
* If `false`: `[foo](foo.png)`.
|
|
600
|
+
*
|
|
601
|
+
* @default `false`
|
|
602
|
+
*/
|
|
603
|
+
readonly shouldIncludeAttachmentExtensionToEmbedAlias?: boolean;
|
|
604
|
+
/**
|
|
605
|
+
* Indicates if the link should use angle brackets.
|
|
606
|
+
*
|
|
607
|
+
* Applicable only if {@link linkStyle} is {@link LinkStyle.Markdown}.
|
|
608
|
+
*
|
|
609
|
+
* If `true`: `[alias](<path with spaces.md>)`.
|
|
610
|
+
*
|
|
611
|
+
* If `false`: `[alias](path%20with%20spaces.md)`.
|
|
612
|
+
*
|
|
613
|
+
* @default `false`
|
|
614
|
+
*/
|
|
615
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* Indicates if the link should use a leading dot.
|
|
618
|
+
*
|
|
619
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.RelativePathToTheSource}.
|
|
620
|
+
*
|
|
621
|
+
* If `true`: `[[./relative/path/to/target]]`
|
|
622
|
+
*
|
|
623
|
+
* If `false`: `[[relative/path/to/target]]`
|
|
624
|
+
*
|
|
625
|
+
* @default `false`
|
|
626
|
+
*/
|
|
627
|
+
readonly shouldUseLeadingDotForRelativePaths?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Indicates if the link should use a leading slash.
|
|
630
|
+
*
|
|
631
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.AbsolutePathInVault}.
|
|
632
|
+
*
|
|
633
|
+
* If `true`: `[[/absolute/path/to/target]]`
|
|
634
|
+
*
|
|
635
|
+
* If `false`: `[[absolute/path/to/target]]`
|
|
636
|
+
*
|
|
637
|
+
* @default `false`
|
|
638
|
+
*/
|
|
639
|
+
readonly shouldUseLeadingSlashForAbsolutePaths?: boolean;
|
|
640
|
+
/**
|
|
641
|
+
* A source path of the link.
|
|
642
|
+
*/
|
|
643
|
+
readonly sourcePathOrFile: PathOrFile;
|
|
644
|
+
/**
|
|
645
|
+
* A subpath of the link.
|
|
646
|
+
*
|
|
647
|
+
* Should be empty or start with `#`.
|
|
648
|
+
*
|
|
649
|
+
* @example `[[link-with-empty-subpath]]`
|
|
650
|
+
* @example `[[link-with-subpath#subpath]]`
|
|
651
|
+
* @example `[[link-with-subpath#subpath#nested-subpath]]`
|
|
652
|
+
* @default `''`
|
|
653
|
+
*/
|
|
654
|
+
readonly subpath?: string;
|
|
655
|
+
/**
|
|
656
|
+
* A target path or file.
|
|
657
|
+
*/
|
|
658
|
+
readonly targetPathOrFile: PathOrFile;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Params for {@link generateRawMarkdownLink}.
|
|
662
|
+
*/
|
|
663
|
+
export interface GenerateRawMarkdownLinkParams {
|
|
664
|
+
/**
|
|
665
|
+
* An alias of the link. Defaults to `undefined`.
|
|
666
|
+
*/
|
|
667
|
+
readonly alias?: string | undefined;
|
|
668
|
+
/**
|
|
669
|
+
* Whether the link should be an embed link.
|
|
670
|
+
*
|
|
671
|
+
* @default `false`
|
|
672
|
+
*/
|
|
673
|
+
readonly isEmbed?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* Whether the link should be a wikilink.
|
|
676
|
+
*/
|
|
677
|
+
readonly isWikilink: boolean;
|
|
678
|
+
/**
|
|
679
|
+
* Whether to escape the alias. Applicable only if {@link hasWikilinkSyntax} is `false`.
|
|
680
|
+
*
|
|
681
|
+
* @default `false`
|
|
682
|
+
*/
|
|
683
|
+
readonly shouldEscapeAlias?: boolean;
|
|
684
|
+
/**
|
|
685
|
+
* Whether to use angle brackets. Applicable only if {@link hasWikilinkSyntax} is `false`.
|
|
686
|
+
*
|
|
687
|
+
* @default `false`
|
|
688
|
+
*/
|
|
689
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* A title of the link.
|
|
692
|
+
*/
|
|
693
|
+
readonly title?: string;
|
|
694
|
+
/**
|
|
695
|
+
* An URL of the link.
|
|
696
|
+
*/
|
|
697
|
+
readonly url: string;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* A {@link BacklinksSnapshot} while it is still being accumulated by {@link buildBacklinksSnapshot}.
|
|
701
|
+
*
|
|
702
|
+
* @typeParam TPayload - The payload recorded for each link.
|
|
703
|
+
*/
|
|
704
|
+
export type MutableBacklinksSnapshot<TPayload> = Map<string, Map<string, TPayload>>;
|
|
705
|
+
/**
|
|
706
|
+
* Params for {@link shouldResetAlias}.
|
|
707
|
+
*/
|
|
708
|
+
export interface ShouldResetAliasParams {
|
|
709
|
+
/**
|
|
710
|
+
* An Obsidian app instance.
|
|
711
|
+
*/
|
|
712
|
+
readonly app: App;
|
|
713
|
+
/**
|
|
714
|
+
* A display text of the link.
|
|
715
|
+
*/
|
|
716
|
+
readonly displayText: string | undefined;
|
|
717
|
+
/**
|
|
718
|
+
* Indicates if the link is a wikilink.
|
|
719
|
+
*/
|
|
720
|
+
readonly isWikilink?: boolean;
|
|
721
|
+
/**
|
|
722
|
+
* A source path of the link.
|
|
723
|
+
*/
|
|
724
|
+
readonly newSourcePathOrFile: PathOrFile;
|
|
725
|
+
/**
|
|
726
|
+
* An old source file containing the link.
|
|
727
|
+
*/
|
|
728
|
+
readonly oldSourcePathOrFile?: PathOrFile;
|
|
729
|
+
/**
|
|
730
|
+
* An old target path of the link.
|
|
731
|
+
*/
|
|
732
|
+
readonly oldTargetPath: PathOrFile;
|
|
733
|
+
/**
|
|
734
|
+
* A target path or file.
|
|
735
|
+
*/
|
|
736
|
+
readonly targetPathOrFile: PathOrFile;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Splits a link into its link path and subpath.
|
|
740
|
+
*/
|
|
741
|
+
export interface SplitSubpathResult {
|
|
742
|
+
/**
|
|
743
|
+
* A link path.
|
|
744
|
+
*/
|
|
745
|
+
readonly linkPath: string;
|
|
746
|
+
/**
|
|
747
|
+
* A subpath.
|
|
748
|
+
*/
|
|
749
|
+
readonly subpath: string;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Params for {@link updateFileUrlLinksInContent}.
|
|
753
|
+
*/
|
|
754
|
+
export interface UpdateFileUrlLinksInContentParams {
|
|
755
|
+
/**
|
|
756
|
+
* The abort signal to control the execution of the function.
|
|
757
|
+
*/
|
|
758
|
+
readonly abortSignal?: AbortSignal;
|
|
759
|
+
/**
|
|
760
|
+
* An Obsidian app instance.
|
|
761
|
+
*/
|
|
762
|
+
readonly app: App;
|
|
763
|
+
/**
|
|
764
|
+
* The content to normalize the `file://` links in.
|
|
765
|
+
*/
|
|
766
|
+
readonly content: string;
|
|
767
|
+
/**
|
|
768
|
+
* A range within {@link UpdateFileUrlLinksInContentParams.content}, in character offsets, restricting
|
|
769
|
+
* the pass to the links inside it. When omitted, every link is visited.
|
|
770
|
+
*
|
|
771
|
+
* A link is normalized only when it is **fully contained** in the range; one that merely overlaps it is
|
|
772
|
+
* left alone, because rewriting part of a link corrupts it. Both bounds are inclusive, so a range whose
|
|
773
|
+
* offsets coincide exactly with a link's does include that link.
|
|
774
|
+
*
|
|
775
|
+
* A reference that carries no position within the content — a frontmatter link, a multi-link frontmatter
|
|
776
|
+
* value entry, or any canvas reference — is never in range and is skipped whenever a range is supplied.
|
|
777
|
+
*
|
|
778
|
+
* @default `undefined`
|
|
779
|
+
*/
|
|
780
|
+
readonly offsetRange?: OffsetRange;
|
|
781
|
+
/**
|
|
782
|
+
* Whether to emit the normalized links with angle brackets and raw spaces instead of `%20`-encoding.
|
|
783
|
+
*
|
|
784
|
+
* @default `false`
|
|
785
|
+
*/
|
|
786
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Params for {@link updateFileUrlLinksInFile}.
|
|
790
|
+
*/
|
|
791
|
+
export interface UpdateFileUrlLinksInFileParams extends ProcessOptions {
|
|
792
|
+
/**
|
|
793
|
+
* An Obsidian app instance.
|
|
794
|
+
*/
|
|
795
|
+
readonly app: App;
|
|
796
|
+
/**
|
|
797
|
+
* A range within the file's content, in character offsets, restricting the pass to the links inside it.
|
|
798
|
+
* When omitted, every link is visited.
|
|
799
|
+
*
|
|
800
|
+
* A link is normalized only when it is **fully contained** in the range; one that merely overlaps it is
|
|
801
|
+
* left alone, because rewriting part of a link corrupts it. Both bounds are inclusive, so a range whose
|
|
802
|
+
* offsets coincide exactly with a link's does include that link.
|
|
803
|
+
*
|
|
804
|
+
* A reference that carries no position within the file's content — a frontmatter link, a multi-link
|
|
805
|
+
* frontmatter value entry, or any canvas reference — is never in range and is skipped whenever a range is
|
|
806
|
+
* supplied.
|
|
807
|
+
*
|
|
808
|
+
* The offsets are into the content this function reads from the vault. Before reading, it saves any
|
|
809
|
+
* unsaved editor buffer for the file, so a range taken from an open editor via `Editor.posToOffset` is
|
|
810
|
+
* valid. The caller owns only the case where the buffer changes between computing the range and this
|
|
811
|
+
* call.
|
|
812
|
+
*
|
|
813
|
+
* @default `undefined`
|
|
814
|
+
*/
|
|
815
|
+
readonly offsetRange?: OffsetRange;
|
|
816
|
+
/**
|
|
817
|
+
* The path or file to normalize the `file://` links in.
|
|
818
|
+
*/
|
|
819
|
+
readonly pathOrFile: PathOrFile;
|
|
820
|
+
/**
|
|
821
|
+
* Whether to emit the normalized links with angle brackets and raw spaces instead of `%20`-encoding.
|
|
822
|
+
*
|
|
823
|
+
* @default `false`
|
|
824
|
+
*/
|
|
825
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Params for {@link updateLink}.
|
|
829
|
+
*/
|
|
830
|
+
export interface UpdateLinkParams {
|
|
831
|
+
/**
|
|
832
|
+
* An Obsidian app instance.
|
|
833
|
+
*/
|
|
834
|
+
readonly app: App;
|
|
835
|
+
/**
|
|
836
|
+
* Whether to allow an empty alias for embeds.
|
|
837
|
+
*
|
|
838
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
839
|
+
*
|
|
840
|
+
* If `true`: ``.
|
|
841
|
+
*
|
|
842
|
+
* If `false`: ``.
|
|
843
|
+
*
|
|
844
|
+
* @default `true`
|
|
845
|
+
*/
|
|
846
|
+
readonly isEmptyEmbedAliasAllowed?: boolean;
|
|
847
|
+
/**
|
|
848
|
+
* A reference for the link.
|
|
849
|
+
*/
|
|
850
|
+
readonly link: Reference;
|
|
851
|
+
/**
|
|
852
|
+
* A style of the link path.
|
|
853
|
+
*/
|
|
854
|
+
readonly linkPathStyle?: LinkPathStyle;
|
|
855
|
+
/**
|
|
856
|
+
* Whether to force markdown links.
|
|
857
|
+
*/
|
|
858
|
+
readonly linkStyle?: LinkStyle;
|
|
859
|
+
/**
|
|
860
|
+
* A source file containing the link.
|
|
861
|
+
*/
|
|
862
|
+
readonly newSourcePathOrFile: PathOrFile;
|
|
863
|
+
/**
|
|
864
|
+
* A file associated with the link.
|
|
865
|
+
*/
|
|
866
|
+
readonly newTargetPathOrFile: PathOrFile;
|
|
867
|
+
/**
|
|
868
|
+
* An old source file containing the link.
|
|
869
|
+
*/
|
|
870
|
+
readonly oldSourcePathOrFile?: PathOrFile;
|
|
871
|
+
/**
|
|
872
|
+
* An old path of the file.
|
|
873
|
+
*/
|
|
874
|
+
readonly oldTargetPathOrFile?: PathOrFile;
|
|
875
|
+
/**
|
|
876
|
+
* Whether to escape the alias.
|
|
877
|
+
*
|
|
878
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
879
|
+
*
|
|
880
|
+
* If `true`: `[\*\*alias\*\*](link.md)`.
|
|
881
|
+
*
|
|
882
|
+
* If `false`: `[**alias**](link.md)`.
|
|
883
|
+
*
|
|
884
|
+
* @default `false`
|
|
885
|
+
*/
|
|
886
|
+
readonly shouldEscapeAlias?: boolean;
|
|
887
|
+
/**
|
|
888
|
+
* Whether to include the attachment extension in the embed alias.
|
|
889
|
+
*
|
|
890
|
+
* Applicable only if {@link isEmptyEmbedAliasAllowed} is `false`.
|
|
891
|
+
*
|
|
892
|
+
* If `true`: `[foo.png](foo.png)`.
|
|
893
|
+
*
|
|
894
|
+
* If `false`: `[foo](foo.png)`.
|
|
895
|
+
*
|
|
896
|
+
* @default `false`
|
|
897
|
+
*/
|
|
898
|
+
readonly shouldIncludeAttachmentExtensionToEmbedAlias?: boolean;
|
|
899
|
+
/**
|
|
900
|
+
* Whether to update file name alias.
|
|
901
|
+
*
|
|
902
|
+
* @default `true`
|
|
903
|
+
*/
|
|
904
|
+
readonly shouldUpdateFileNameAlias?: boolean;
|
|
905
|
+
/**
|
|
906
|
+
* Indicates if the link should use angle brackets.
|
|
907
|
+
*
|
|
908
|
+
* Applicable only if {@link linkStyle} is {@link LinkStyle.Markdown}.
|
|
909
|
+
*
|
|
910
|
+
* If `true`: `[alias](<path with spaces.md>)`.
|
|
911
|
+
*
|
|
912
|
+
* If `false`: `[alias](path%20with%20spaces.md)`.
|
|
913
|
+
*
|
|
914
|
+
* @default `false`
|
|
915
|
+
*/
|
|
916
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Indicates if the link should use a leading dot.
|
|
919
|
+
*
|
|
920
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.RelativePathToTheSource}.
|
|
921
|
+
*
|
|
922
|
+
* If `true`: `[[./relative/path/to/target]]`
|
|
923
|
+
*
|
|
924
|
+
* If `false`: `[[relative/path/to/target]]`
|
|
925
|
+
*
|
|
926
|
+
* @default `false`
|
|
927
|
+
*/
|
|
928
|
+
readonly shouldUseLeadingDotForRelativePaths?: boolean;
|
|
929
|
+
/**
|
|
930
|
+
* Indicates if the link should use a leading slash.
|
|
931
|
+
*
|
|
932
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.AbsolutePathInVault}.
|
|
933
|
+
*
|
|
934
|
+
* If `true`: `[[/absolute/path/to/target]]`
|
|
935
|
+
*
|
|
936
|
+
* If `false`: `[[absolute/path/to/target]]`
|
|
937
|
+
*
|
|
938
|
+
* @default `false`
|
|
939
|
+
*/
|
|
940
|
+
readonly shouldUseLeadingSlashForAbsolutePaths?: boolean;
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* Params for {@link updateLinksInFile}.
|
|
944
|
+
*/
|
|
945
|
+
export interface UpdateLinksInFileParams extends ProcessOptions {
|
|
946
|
+
/**
|
|
947
|
+
* An Obsidian app instance.
|
|
948
|
+
*/
|
|
949
|
+
readonly app: App;
|
|
950
|
+
/**
|
|
951
|
+
* Whether to allow an empty alias for embeds.
|
|
952
|
+
*
|
|
953
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
954
|
+
*
|
|
955
|
+
* If `true`: ``.
|
|
956
|
+
*
|
|
957
|
+
* If `false`: ``.
|
|
958
|
+
*
|
|
959
|
+
* @default `true`
|
|
960
|
+
*/
|
|
961
|
+
readonly isEmptyEmbedAliasAllowed?: boolean;
|
|
962
|
+
/**
|
|
963
|
+
* A style of the link path.
|
|
964
|
+
*/
|
|
965
|
+
readonly linkPathStyle?: LinkPathStyle;
|
|
966
|
+
/**
|
|
967
|
+
* A style of the link.
|
|
968
|
+
*/
|
|
969
|
+
readonly linkStyle?: LinkStyle;
|
|
970
|
+
/**
|
|
971
|
+
* A file to update the links in.
|
|
972
|
+
*/
|
|
973
|
+
readonly newSourcePathOrFile: PathOrFile;
|
|
974
|
+
/**
|
|
975
|
+
* A range within the file's content, in character offsets, restricting the pass to the links inside it.
|
|
976
|
+
* When omitted, every link is visited.
|
|
977
|
+
*
|
|
978
|
+
* A link is updated only when it is **fully contained** in the range; one that merely overlaps it is left
|
|
979
|
+
* alone, because rewriting part of a link corrupts it. Both bounds are inclusive, so a range whose
|
|
980
|
+
* offsets coincide exactly with a link's does include that link.
|
|
981
|
+
*
|
|
982
|
+
* A reference that carries no position within the file's content — a frontmatter link, a multi-link
|
|
983
|
+
* frontmatter value entry, or any canvas reference — is never in range and is skipped whenever a range is
|
|
984
|
+
* supplied.
|
|
985
|
+
*
|
|
986
|
+
* The offsets are into the content this function reads from the vault. Before reading, it saves any
|
|
987
|
+
* unsaved editor buffer for the file, so a range taken from an open editor via `Editor.posToOffset` is
|
|
988
|
+
* valid. The caller owns only the case where the buffer changes between computing the range and this
|
|
989
|
+
* call.
|
|
990
|
+
*
|
|
991
|
+
* @default `undefined`
|
|
992
|
+
*/
|
|
993
|
+
readonly offsetRange?: OffsetRange;
|
|
994
|
+
/**
|
|
995
|
+
* An old path of the file.
|
|
996
|
+
*/
|
|
997
|
+
readonly oldSourcePathOrFile?: PathOrFile;
|
|
998
|
+
/**
|
|
999
|
+
* Whether to escape the alias.
|
|
1000
|
+
*
|
|
1001
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
1002
|
+
*
|
|
1003
|
+
* If `true`: `[\*\*alias\*\*](link.md)`.
|
|
1004
|
+
*
|
|
1005
|
+
* If `false`: `[**alias**](link.md)`.
|
|
1006
|
+
*
|
|
1007
|
+
* @default `false`
|
|
1008
|
+
*/
|
|
1009
|
+
readonly shouldEscapeAlias?: boolean;
|
|
1010
|
+
/**
|
|
1011
|
+
* Whether to include the attachment extension in the embed alias.
|
|
1012
|
+
*
|
|
1013
|
+
* Applicable only if {@link isEmptyEmbedAliasAllowed} is `false`.
|
|
1014
|
+
*
|
|
1015
|
+
* If `true`: `[foo.png](foo.png)`.
|
|
1016
|
+
*
|
|
1017
|
+
* If `false`: `[foo](foo.png)`.
|
|
1018
|
+
*
|
|
1019
|
+
* @default `false`
|
|
1020
|
+
*/
|
|
1021
|
+
readonly shouldIncludeAttachmentExtensionToEmbedAlias?: boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
* Whether to update only embedded links.
|
|
1024
|
+
*/
|
|
1025
|
+
readonly shouldUpdateEmbedOnlyLinks?: boolean;
|
|
1026
|
+
/**
|
|
1027
|
+
* Whether to update file name alias.
|
|
1028
|
+
*
|
|
1029
|
+
* @default `true`
|
|
1030
|
+
*/
|
|
1031
|
+
readonly shouldUpdateFileNameAlias?: boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* Indicates if the link should use angle brackets.
|
|
1034
|
+
*
|
|
1035
|
+
* Applicable only if {@link linkStyle} is {@link LinkStyle.Markdown}.
|
|
1036
|
+
*
|
|
1037
|
+
* If `true`: `[alias](<path with spaces.md>)`.
|
|
1038
|
+
*
|
|
1039
|
+
* If `false`: `[alias](path%20with%20spaces.md)`.
|
|
1040
|
+
*
|
|
1041
|
+
* @default `false`
|
|
1042
|
+
*/
|
|
1043
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
1044
|
+
/**
|
|
1045
|
+
* Indicates if the link should use a leading dot.
|
|
1046
|
+
*
|
|
1047
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.RelativePathToTheSource}.
|
|
1048
|
+
*
|
|
1049
|
+
* If `true`: `[[./relative/path/to/target]]`
|
|
1050
|
+
*
|
|
1051
|
+
* If `false`: `[[relative/path/to/target]]`
|
|
1052
|
+
*
|
|
1053
|
+
* @default `false`
|
|
1054
|
+
*/
|
|
1055
|
+
readonly shouldUseLeadingDotForRelativePaths?: boolean;
|
|
1056
|
+
/**
|
|
1057
|
+
* Indicates if the link should use a leading slash.
|
|
1058
|
+
*
|
|
1059
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.AbsolutePathInVault}.
|
|
1060
|
+
*
|
|
1061
|
+
* If `true`: `[[/absolute/path/to/target]]`
|
|
1062
|
+
*
|
|
1063
|
+
* If `false`: `[[absolute/path/to/target]]`
|
|
1064
|
+
*
|
|
1065
|
+
* @default `false`
|
|
1066
|
+
*/
|
|
1067
|
+
readonly shouldUseLeadingSlashForAbsolutePaths?: boolean;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Params for {@link updateLinksInContent}.
|
|
1071
|
+
*/
|
|
1072
|
+
interface UpdateLinksInContentParams {
|
|
1073
|
+
/**
|
|
1074
|
+
* An Obsidian app instance.
|
|
1075
|
+
*/
|
|
1076
|
+
readonly app: App;
|
|
1077
|
+
/**
|
|
1078
|
+
* A content to update the links in.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly content: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* Whether to allow an empty alias for embeds.
|
|
1083
|
+
*
|
|
1084
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
1085
|
+
*
|
|
1086
|
+
* If `true`: ``.
|
|
1087
|
+
*
|
|
1088
|
+
* If `false`: ``.
|
|
1089
|
+
*
|
|
1090
|
+
* @default `true`
|
|
1091
|
+
*/
|
|
1092
|
+
readonly isEmptyEmbedAliasAllowed?: boolean;
|
|
1093
|
+
/**
|
|
1094
|
+
* A style of the link path.
|
|
1095
|
+
*/
|
|
1096
|
+
readonly linkPathStyle?: LinkPathStyle;
|
|
1097
|
+
/**
|
|
1098
|
+
* A style of the link.
|
|
1099
|
+
*/
|
|
1100
|
+
readonly linkStyle?: LinkStyle;
|
|
1101
|
+
/**
|
|
1102
|
+
* A new source path or file.
|
|
1103
|
+
*/
|
|
1104
|
+
readonly newSourcePathOrFile: PathOrFile;
|
|
1105
|
+
/**
|
|
1106
|
+
* A range within {@link UpdateLinksInContentParams.content}, in character offsets, restricting the pass
|
|
1107
|
+
* to the links inside it. When omitted, every link is visited.
|
|
1108
|
+
*
|
|
1109
|
+
* A link is updated only when it is **fully contained** in the range; one that merely overlaps it is left
|
|
1110
|
+
* alone, because rewriting part of a link corrupts it. Both bounds are inclusive, so a range whose
|
|
1111
|
+
* offsets coincide exactly with a link's does include that link.
|
|
1112
|
+
*
|
|
1113
|
+
* A reference that carries no position within the content — a frontmatter link, a multi-link frontmatter
|
|
1114
|
+
* value entry, or any canvas reference — is never in range and is skipped whenever a range is supplied.
|
|
1115
|
+
*
|
|
1116
|
+
* @default `undefined`
|
|
1117
|
+
*/
|
|
1118
|
+
readonly offsetRange?: OffsetRange;
|
|
1119
|
+
/**
|
|
1120
|
+
* An old source path or file.
|
|
1121
|
+
*/
|
|
1122
|
+
readonly oldSourcePathOrFile?: PathOrFile;
|
|
1123
|
+
/**
|
|
1124
|
+
* Whether to escape the alias.
|
|
1125
|
+
*
|
|
1126
|
+
* Applicable only if the result link style is {@link LinkStyle.Markdown}.
|
|
1127
|
+
*
|
|
1128
|
+
* If `true`: `[\*\*alias\*\*](link.md)`.
|
|
1129
|
+
*
|
|
1130
|
+
* If `false`: `[**alias**](link.md)`.
|
|
1131
|
+
*
|
|
1132
|
+
* @default `false`
|
|
1133
|
+
*/
|
|
1134
|
+
readonly shouldEscapeAlias?: boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* Whether to include the attachment extension in the embed alias.
|
|
1137
|
+
*
|
|
1138
|
+
* Applicable only if {@link isEmptyEmbedAliasAllowed} is `false`.
|
|
1139
|
+
*
|
|
1140
|
+
* If `true`: `[foo.png](foo.png)`.
|
|
1141
|
+
*
|
|
1142
|
+
* If `false`: `[foo](foo.png)`.
|
|
1143
|
+
*
|
|
1144
|
+
* @default `false`
|
|
1145
|
+
*/
|
|
1146
|
+
readonly shouldIncludeAttachmentExtensionToEmbedAlias?: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Whether to update only embedded links.
|
|
1149
|
+
*/
|
|
1150
|
+
readonly shouldUpdateEmbedOnlyLinks?: boolean;
|
|
1151
|
+
/**
|
|
1152
|
+
* Whether to update file name alias.
|
|
1153
|
+
*
|
|
1154
|
+
* @default `true`
|
|
1155
|
+
*/
|
|
1156
|
+
readonly shouldUpdateFileNameAlias?: boolean;
|
|
1157
|
+
/**
|
|
1158
|
+
* Indicates if the link should use angle brackets.
|
|
1159
|
+
*
|
|
1160
|
+
* Applicable only if {@link linkStyle} is {@link LinkStyle.Markdown}.
|
|
1161
|
+
*
|
|
1162
|
+
* If `true`: `[alias](<path with spaces.md>)`.
|
|
1163
|
+
*
|
|
1164
|
+
* If `false`: `[alias](path%20with%20spaces.md)`.
|
|
1165
|
+
*
|
|
1166
|
+
* @default `false`
|
|
1167
|
+
*/
|
|
1168
|
+
readonly shouldUseAngleBrackets?: boolean;
|
|
1169
|
+
/**
|
|
1170
|
+
* Indicates if the link should use a leading dot.
|
|
1171
|
+
*
|
|
1172
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.RelativePathToTheSource}.
|
|
1173
|
+
*
|
|
1174
|
+
* If `true`: `[[./relative/path/to/target]]`
|
|
1175
|
+
*
|
|
1176
|
+
* If `false`: `[[relative/path/to/target]]`
|
|
1177
|
+
*
|
|
1178
|
+
* @default `false`
|
|
1179
|
+
*/
|
|
1180
|
+
readonly shouldUseLeadingDotForRelativePaths?: boolean;
|
|
1181
|
+
/**
|
|
1182
|
+
* Indicates if the link should use a leading slash.
|
|
1183
|
+
*
|
|
1184
|
+
* Applicable only if {@link linkPathStyle} is {@link LinkPathStyle.AbsolutePathInVault}.
|
|
1185
|
+
*
|
|
1186
|
+
* If `true`: `[[/absolute/path/to/target]]`
|
|
1187
|
+
*
|
|
1188
|
+
* If `false`: `[[absolute/path/to/target]]`
|
|
1189
|
+
*
|
|
1190
|
+
* @default `false`
|
|
1191
|
+
*/
|
|
1192
|
+
readonly shouldUseLeadingSlashForAbsolutePaths?: boolean;
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Records a set of backlinks into a snapshot that {@link editBacklinksSnapshot} can rewrite later.
|
|
1196
|
+
*
|
|
1197
|
+
* Call it once per target and pass {@link BuildBacklinksSnapshotParams.target} to accumulate several targets
|
|
1198
|
+
* into one snapshot, so that a note linking to several of them is still rewritten exactly once.
|
|
1199
|
+
*
|
|
1200
|
+
* @typeParam TPayload - The payload recorded for each link.
|
|
1201
|
+
* @param params - The parameters for building the snapshot.
|
|
1202
|
+
* @returns The snapshot — {@link BuildBacklinksSnapshotParams.target} itself when one was passed.
|
|
1203
|
+
*/
|
|
1204
|
+
export declare function buildBacklinksSnapshot<TPayload>(params: BuildBacklinksSnapshotParams<TPayload>): MutableBacklinksSnapshot<TPayload>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Converts a link to a new path.
|
|
1207
|
+
*
|
|
1208
|
+
* @param params - The parameters for converting the link.
|
|
1209
|
+
* @returns The converted link.
|
|
1210
|
+
*/
|
|
1211
|
+
export declare function convertLink(params: ConvertLinkParams): string;
|
|
1212
|
+
/**
|
|
1213
|
+
* Edits the backlinks for a file or path.
|
|
1214
|
+
*
|
|
1215
|
+
* @param params - The parameters for editing the backlinks.
|
|
1216
|
+
* @returns A {@link Promise} that resolves when the backlinks have been edited.
|
|
1217
|
+
*/
|
|
1218
|
+
export declare function editBacklinks(params: EditBacklinksParams): Promise<void>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Edits a captured snapshot of backlinks, rewriting each backlink-holding note exactly once.
|
|
1221
|
+
*
|
|
1222
|
+
* The counterpart of {@link editBacklinks} for callers that cannot fetch the backlinks at rewrite time —
|
|
1223
|
+
* because the rename that invalidated them has already happened — or that rewrite links to several targets
|
|
1224
|
+
* at once. See {@link BacklinksSnapshot} for both cases.
|
|
1225
|
+
*
|
|
1226
|
+
* @typeParam TPayload - The payload recorded for each link when the snapshot was built.
|
|
1227
|
+
* @param params - The parameters for editing the backlinks.
|
|
1228
|
+
* @returns A {@link Promise} that resolves when the backlinks have been edited.
|
|
1229
|
+
*/
|
|
1230
|
+
export declare function editBacklinksSnapshot<TPayload>(params: EditBacklinksSnapshotParams<TPayload>): Promise<void>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Edits the links for a file or path.
|
|
1233
|
+
*
|
|
1234
|
+
* @param params - The parameters for editing the links.
|
|
1235
|
+
* @returns A {@link Promise} that resolves when the links have been edited.
|
|
1236
|
+
*/
|
|
1237
|
+
export declare function editLinks(params: EditLinksParams): Promise<void>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Edits the links in a content string.
|
|
1240
|
+
*
|
|
1241
|
+
* @param params - The parameters for editing the links in the content.
|
|
1242
|
+
* @returns The promise that resolves to the updated content.
|
|
1243
|
+
*/
|
|
1244
|
+
export declare function editLinksInContent(params: EditLinksInContentParams): Promise<string>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Extracts the file associated with a link.
|
|
1247
|
+
*
|
|
1248
|
+
* @param params - The parameters for extracting the link file.
|
|
1249
|
+
* @returns The file associated with the link, or `null` if not found.
|
|
1250
|
+
*/
|
|
1251
|
+
export declare function extractLinkFile(params: ExtractLinkFileParams): null | TFile;
|
|
1252
|
+
/**
|
|
1253
|
+
* Generates a markdown link based on the provided parameters.
|
|
1254
|
+
*
|
|
1255
|
+
* @param params - The parameters for generating the markdown link.
|
|
1256
|
+
* @returns The generated markdown link.
|
|
1257
|
+
*/
|
|
1258
|
+
export declare function generateMarkdownLink(params: GenerateMarkdownLinkParams): string;
|
|
1259
|
+
/**
|
|
1260
|
+
* Generates a raw markdown link based on the provided params.
|
|
1261
|
+
*
|
|
1262
|
+
* @param params - The parameters for generating a raw markdown link.
|
|
1263
|
+
* @returns A raw markdown link.
|
|
1264
|
+
*/
|
|
1265
|
+
export declare function generateRawMarkdownLink(params: GenerateRawMarkdownLinkParams): string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Returns the shared, mutable list of functions that provide default params for {@link generateMarkdownLink}.
|
|
1268
|
+
*
|
|
1269
|
+
* Each function is invoked on every {@link generateMarkdownLink} call and its result is merged into the params (later
|
|
1270
|
+
* registrations take precedence over the built-in defaults, but never over explicitly passed params). Register entries
|
|
1271
|
+
* by adding a `GenerateMarkdownLinkDefaultParamsComponent` to a component tree rather than mutating this list directly.
|
|
1272
|
+
*
|
|
1273
|
+
* @returns The mutable list of default-params functions.
|
|
1274
|
+
*/
|
|
1275
|
+
export declare function getGenerateMarkdownLinkDefaultParamsFns(): (() => Partial<GenerateMarkdownLinkParams>)[];
|
|
1276
|
+
/**
|
|
1277
|
+
* Tests whether a link uses angle brackets, possibly embed:
|
|
1278
|
+
* `[title](<link>)`, ``.
|
|
1279
|
+
*
|
|
1280
|
+
* @param link - Link to test
|
|
1281
|
+
* @returns Whether the link uses angle brackets
|
|
1282
|
+
*/
|
|
1283
|
+
export declare function hasAngleBrackets(link: string): boolean;
|
|
1284
|
+
/**
|
|
1285
|
+
* Tests whether a link is an embed link:
|
|
1286
|
+
* `![[link]]`, ``.
|
|
1287
|
+
*
|
|
1288
|
+
* @param link - Link to test
|
|
1289
|
+
* @returns Whether the link is an embed link
|
|
1290
|
+
*/
|
|
1291
|
+
export declare function hasEmbedSyntax(link: string): boolean;
|
|
1292
|
+
/**
|
|
1293
|
+
* Tests whether a link has a leading dot, possibly embed:
|
|
1294
|
+
* `[[./link]]`, `[title](./link)`, `[title](<./link>)`,
|
|
1295
|
+
* `![[./link]]`, ``, ``.
|
|
1296
|
+
*
|
|
1297
|
+
* @param link - Link to test
|
|
1298
|
+
* @returns Whether the link has a leading dot
|
|
1299
|
+
*/
|
|
1300
|
+
export declare function hasLeadingDot(link: string): boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* Tests whether a link has a leading slash, possibly embed:
|
|
1303
|
+
* `[[/link]]`, `[title](/link)`, `[title](</link>)`,
|
|
1304
|
+
* `![[/link]]`, ``, ``.
|
|
1305
|
+
*
|
|
1306
|
+
* @param link - Link to test
|
|
1307
|
+
* @returns Whether the link has a leading slash
|
|
1308
|
+
*/
|
|
1309
|
+
export declare function hasLeadingSlash(link: string): boolean;
|
|
1310
|
+
/**
|
|
1311
|
+
* Tests whether a link is a wikilink, possibly embed:
|
|
1312
|
+
* `[[link]]`, `![[link]]`.
|
|
1313
|
+
*
|
|
1314
|
+
* @param link - Link to test
|
|
1315
|
+
* @returns Whether the link is a wikilink
|
|
1316
|
+
*/
|
|
1317
|
+
export declare function hasWikilinkSyntax(link: string): boolean;
|
|
1318
|
+
/**
|
|
1319
|
+
* Determines if the alias of a link should be reset.
|
|
1320
|
+
*
|
|
1321
|
+
* @param params - The parameters for determining if the alias should be reset.
|
|
1322
|
+
* @returns Whether the alias should be reset.
|
|
1323
|
+
*/
|
|
1324
|
+
export declare function shouldResetAlias(params: ShouldResetAliasParams): boolean;
|
|
1325
|
+
/**
|
|
1326
|
+
* Splits a link into its link path and subpath.
|
|
1327
|
+
*
|
|
1328
|
+
* @param link - The link to split.
|
|
1329
|
+
* @returns An object containing the link path and subpath.
|
|
1330
|
+
*/
|
|
1331
|
+
export declare function splitSubpath(link: string): SplitSubpathResult;
|
|
1332
|
+
/**
|
|
1333
|
+
* Normalizes the `file://` links in a content string to a pretty form, converting backslashes to forward
|
|
1334
|
+
* slashes. Other links are left unchanged.
|
|
1335
|
+
*
|
|
1336
|
+
* @param params - The parameters for normalizing the links.
|
|
1337
|
+
* @returns A {@link Promise} that resolves to the content with normalized `file://` links.
|
|
1338
|
+
*/
|
|
1339
|
+
export declare function updateFileUrlLinksInContent(params: UpdateFileUrlLinksInContentParams): Promise<string>;
|
|
1340
|
+
/**
|
|
1341
|
+
* Normalizes the `file://` links in a file to a pretty form, converting backslashes to forward slashes.
|
|
1342
|
+
* Other links are left unchanged.
|
|
1343
|
+
*
|
|
1344
|
+
* @param params - The parameters for normalizing the links.
|
|
1345
|
+
* @returns A {@link Promise} that resolves when the links are normalized.
|
|
1346
|
+
*/
|
|
1347
|
+
export declare function updateFileUrlLinksInFile(params: UpdateFileUrlLinksInFileParams): Promise<void>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Updates a link based on the provided parameters.
|
|
1350
|
+
*
|
|
1351
|
+
* @param params - The parameters for updating the link.
|
|
1352
|
+
* @returns The updated link.
|
|
1353
|
+
*/
|
|
1354
|
+
export declare function updateLink(params: UpdateLinkParams): string;
|
|
1355
|
+
/**
|
|
1356
|
+
* Updates the links in a content string based on the provided parameters.
|
|
1357
|
+
*
|
|
1358
|
+
* @param params - The parameters for updating the links.
|
|
1359
|
+
* @returns A {@link Promise} that resolves to the content with updated links.
|
|
1360
|
+
*/
|
|
1361
|
+
export declare function updateLinksInContent(params: UpdateLinksInContentParams): Promise<string>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Updates the links in a file based on the provided parameters.
|
|
1364
|
+
*
|
|
1365
|
+
* @param params - The parameters for updating the links.
|
|
1366
|
+
* @returns A {@link Promise} that resolves when the links are updated.
|
|
1367
|
+
*/
|
|
1368
|
+
export declare function updateLinksInFile(params: UpdateLinksInFileParams): Promise<void>;
|
|
1369
|
+
export {};
|