obsidian-dev-utils 19.1.2-beta.2 → 19.1.2-beta.3
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/CHANGELOG.md +4 -0
- package/dist/lib/cjs/Debug.d.cts +1 -1
- package/dist/lib/cjs/Library.cjs +1 -1
- package/dist/lib/cjs/ScriptUtils/CliUtils.d.cts +1 -1
- package/dist/lib/cjs/ScriptUtils/ESLint/index.d.cts +2 -2
- package/dist/lib/cjs/ScriptUtils/Fs.d.cts +1 -1
- package/dist/lib/cjs/ScriptUtils/JSON.d.cts +1 -1
- package/dist/lib/cjs/ScriptUtils/Npm.d.cts +1 -1
- package/dist/lib/cjs/ScriptUtils/Root.d.cts +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.d.cts +1 -1
- package/dist/lib/cjs/ScriptUtils/esbuild/index.d.cts +9 -9
- package/dist/lib/cjs/ScriptUtils/index.d.cts +17 -17
- package/dist/lib/cjs/String.d.cts +1 -1
- package/dist/lib/cjs/Transformers/DateTransformer.d.cts +1 -1
- package/dist/lib/cjs/Transformers/DurationTransformer.d.cts +1 -1
- package/dist/lib/cjs/Transformers/GroupTransformer.d.cts +1 -1
- package/dist/lib/cjs/Transformers/SkipPrivatePropertyTransformer.d.cts +1 -1
- package/dist/lib/cjs/Transformers/TypedTransformer.d.cts +1 -1
- package/dist/lib/cjs/Transformers/index.d.cts +6 -6
- package/dist/lib/cjs/ValueProvider.d.cts +1 -1
- package/dist/lib/cjs/codemirror/index.d.cts +1 -1
- package/dist/lib/cjs/index.d.cts +20 -20
- package/dist/lib/cjs/obsidian/@types/Dataview/api/data-array.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/api/extensions.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/api/inline-api.d.cts +9 -9
- package/dist/lib/cjs/obsidian/@types/Dataview/api/plugin-api.d.cts +10 -10
- package/dist/lib/cjs/obsidian/@types/Dataview/data-import/csv.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/data-import/inline-field.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/data-import/markdown-file.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/data-import/persister.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/data-import/web-worker/import-impl.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/data-index/index.d.cts +5 -5
- package/dist/lib/cjs/obsidian/@types/Dataview/data-index/resolver.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/data-model/markdown.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/data-model/serialized/markdown.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/data-model/value.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/expression/binaryop.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/expression/context.d.cts +6 -6
- package/dist/lib/cjs/obsidian/@types/Dataview/expression/field.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/expression/functions.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/expression/parse.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/index.d.cts +11 -11
- package/dist/lib/cjs/obsidian/@types/Dataview/main.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/query/engine.d.cts +9 -9
- package/dist/lib/cjs/obsidian/@types/Dataview/query/parse.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/query/query.d.cts +2 -2
- package/dist/lib/cjs/obsidian/@types/Dataview/typings/obsidian-ex.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/export/markdown.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/lp-render.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/markdown.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/refreshable-view.d.cts +2 -2
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/render.d.cts +2 -2
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/calendar-view.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/inline-field-live-preview.d.cts +2 -2
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/inline-view.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/js-view.d.cts +2 -2
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/list-view.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/table-view.d.cts +3 -3
- package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/task-view.d.cts +4 -4
- package/dist/lib/cjs/obsidian/@types/Dataview/util/media.d.cts +1 -1
- package/dist/lib/cjs/obsidian/@types/Dataview/util/normalize.d.cts +2 -2
- package/dist/lib/cjs/obsidian/AttachmentPath.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Backlink.d.cts +2 -2
- package/dist/lib/cjs/obsidian/Callout.d.cts +2 -2
- package/dist/lib/cjs/obsidian/Components/DateComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/DateTimeComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/EmailComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/FileComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/MonthComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/MultipleDropdownComponent.d.cts +4 -4
- package/dist/lib/cjs/obsidian/Components/MultipleEmailComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/MultipleFileComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/MultipleTextComponent.d.cts +4 -4
- package/dist/lib/cjs/obsidian/Components/NumberComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/TimeComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/TypedRangeTextComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/TypedTextComponent.d.cts +5 -5
- package/dist/lib/cjs/obsidian/Components/UrlComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/ValidatorComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/ValueComponentWithChangeTracking.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/WeekComponent.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Components/index.d.cts +17 -17
- package/dist/lib/cjs/obsidian/Dataview.d.cts +6 -6
- package/dist/lib/cjs/obsidian/DataviewLink.d.cts +2 -2
- package/dist/lib/cjs/obsidian/FileChange.d.cts +3 -3
- package/dist/lib/cjs/obsidian/FileManager.d.cts +4 -4
- package/dist/lib/cjs/obsidian/Link.d.cts +3 -3
- package/dist/lib/cjs/obsidian/Logger.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Loop.d.cts +1 -1
- package/dist/lib/cjs/obsidian/MarkdownCodeBlockProcessor.d.cts +1 -1
- package/dist/lib/cjs/obsidian/MetadataCache.d.cts +3 -3
- package/dist/lib/cjs/obsidian/Modals/ModalBase.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Modals/Prompt.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Modals/index.d.cts +5 -5
- package/dist/lib/cjs/obsidian/Plugin/EmptySettings.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Plugin/PluginBase.d.cts +3 -3
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsBase.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsTabBase.d.cts +5 -5
- package/dist/lib/cjs/obsidian/Plugin/index.d.cts +8 -8
- package/dist/lib/cjs/obsidian/Queue.d.cts +1 -1
- package/dist/lib/cjs/obsidian/Reference.d.cts +1 -1
- package/dist/lib/cjs/obsidian/SettingEx.d.cts +13 -13
- package/dist/lib/cjs/obsidian/Vault.d.cts +3 -3
- package/dist/lib/cjs/obsidian/VaultEx.d.cts +1 -1
- package/dist/lib/cjs/obsidian/index.d.cts +29 -29
- package/dist/lib/esm/@types/debug.d.mts +16 -1
- package/dist/lib/esm/Async.d.mts +153 -1
- package/dist/lib/esm/Blob.d.mts +40 -1
- package/dist/lib/esm/CssClass.d.mts +97 -1
- package/dist/lib/esm/Debug.d.mts +41 -1
- package/dist/lib/esm/DebugController.d.mts +85 -1
- package/dist/lib/esm/Enum.d.mts +20 -1
- package/dist/lib/esm/Error.d.mts +45 -1
- package/dist/lib/esm/Function.d.mts +28 -1
- package/dist/lib/esm/HTMLElement.d.mts +49 -1
- package/dist/lib/esm/Library.d.mts +16 -1
- package/dist/lib/esm/Library.mjs +1 -1
- package/dist/lib/esm/Object.d.mts +211 -1
- package/dist/lib/esm/Path.d.mts +133 -1
- package/dist/lib/esm/RegExp.d.mts +18 -1
- package/dist/lib/esm/ScriptUtils/CliUtils.d.mts +70 -1
- package/dist/lib/esm/ScriptUtils/CodeGenerator.d.mts +12 -1
- package/dist/lib/esm/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.mts +13 -1
- package/dist/lib/esm/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines.d.mts +13 -1
- package/dist/lib/esm/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc.d.mts +13 -1
- package/dist/lib/esm/ScriptUtils/ESLint/ESLint.d.mts +13 -1
- package/dist/lib/esm/ScriptUtils/ESLint/eslint.config.d.mts +16 -1
- package/dist/lib/esm/ScriptUtils/ESLint/index.d.mts +2 -1
- package/dist/lib/esm/ScriptUtils/Exec.d.mts +83 -1
- package/dist/lib/esm/ScriptUtils/Fs.d.mts +72 -1
- package/dist/lib/esm/ScriptUtils/JSON.d.mts +64 -1
- package/dist/lib/esm/ScriptUtils/NodeModules.d.mts +14 -1
- package/dist/lib/esm/ScriptUtils/Npm.d.mts +151 -1
- package/dist/lib/esm/ScriptUtils/NpmPublish.d.mts +9 -1
- package/dist/lib/esm/ScriptUtils/ObsidianDevUtilsRepoPaths.d.mts +106 -1
- package/dist/lib/esm/ScriptUtils/Root.d.mts +67 -1
- package/dist/lib/esm/ScriptUtils/build.d.mts +41 -1
- package/dist/lib/esm/ScriptUtils/cli.d.mts +14 -1
- package/dist/lib/esm/ScriptUtils/esbuild/Dependency.d.mts +18 -1
- package/dist/lib/esm/ScriptUtils/esbuild/ObsidianPluginBuilder.d.mts +53 -1
- package/dist/lib/esm/ScriptUtils/esbuild/changeExtensionPlugin.d.mts +12 -1
- package/dist/lib/esm/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.d.mts +18 -1
- package/dist/lib/esm/ScriptUtils/esbuild/fixEsmPlugin.d.mts +11 -1
- package/dist/lib/esm/ScriptUtils/esbuild/fixSourceMapsPlugin.d.mts +17 -1
- package/dist/lib/esm/ScriptUtils/esbuild/index.d.mts +9 -1
- package/dist/lib/esm/ScriptUtils/esbuild/preprocessPlugin.d.mts +23 -1
- package/dist/lib/esm/ScriptUtils/esbuild/renameCssPlugin.d.mts +8 -1
- package/dist/lib/esm/ScriptUtils/esbuild/svelteWrapperPlugin.d.mts +8 -1
- package/dist/lib/esm/ScriptUtils/format.d.mts +10 -1
- package/dist/lib/esm/ScriptUtils/index.d.mts +17 -1
- package/dist/lib/esm/ScriptUtils/spellcheck.d.mts +14 -1
- package/dist/lib/esm/ScriptUtils/version.d.mts +171 -1
- package/dist/lib/esm/String.d.mts +138 -1
- package/dist/lib/esm/Transformers/DateTransformer.d.mts +35 -1
- package/dist/lib/esm/Transformers/DurationTransformer.d.mts +34 -1
- package/dist/lib/esm/Transformers/GroupTransformer.d.mts +65 -1
- package/dist/lib/esm/Transformers/SkipPrivatePropertyTransformer.d.mts +32 -1
- package/dist/lib/esm/Transformers/Transformer.d.mts +67 -1
- package/dist/lib/esm/Transformers/TypedTransformer.d.mts +37 -1
- package/dist/lib/esm/Transformers/index.d.mts +6 -1
- package/dist/lib/esm/ValueProvider.d.mts +22 -1
- package/dist/lib/esm/codemirror/StateFieldSpec.d.mts +68 -1
- package/dist/lib/esm/codemirror/index.d.mts +1 -1
- package/dist/lib/esm/index.d.mts +20 -1
- package/dist/lib/esm/obsidian/@types/Dataview/api/data-array.d.mts +136 -1
- package/dist/lib/esm/obsidian/@types/Dataview/api/extensions.d.mts +15 -1
- package/dist/lib/esm/obsidian/@types/Dataview/api/inline-api.d.mts +186 -1
- package/dist/lib/esm/obsidian/@types/Dataview/api/plugin-api.d.mts +209 -1
- package/dist/lib/esm/obsidian/@types/Dataview/api/result.d.mts +38 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/common.d.mts +3 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/csv.d.mts +3 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/inline-field.d.mts +42 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/markdown-file.d.mts +52 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/persister.d.mts +32 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/web-worker/import-entry.d.mts +1 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/web-worker/import-impl.d.mts +6 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-import/web-worker/import-manager.d.mts +37 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-index/index.d.mts +186 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-index/resolver.d.mts +23 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-index/source.d.mts +71 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-model/markdown.d.mts +115 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-model/serialized/markdown.d.mts +106 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-model/transferable.d.mts +7 -1
- package/dist/lib/esm/obsidian/@types/Dataview/data-model/value.d.mts +175 -1
- package/dist/lib/esm/obsidian/@types/Dataview/expression/binaryop.d.mts +43 -1
- package/dist/lib/esm/obsidian/@types/Dataview/expression/context.d.mts +49 -1
- package/dist/lib/esm/obsidian/@types/Dataview/expression/field.d.mts +82 -1
- package/dist/lib/esm/obsidian/@types/Dataview/expression/functions.d.mts +149 -1
- package/dist/lib/esm/obsidian/@types/Dataview/expression/parse.d.mts +163 -1
- package/dist/lib/esm/obsidian/@types/Dataview/index.d.mts +55 -1
- package/dist/lib/esm/obsidian/@types/Dataview/main.d.mts +52 -1
- package/dist/lib/esm/obsidian/@types/Dataview/query/engine.d.mts +103 -1
- package/dist/lib/esm/obsidian/@types/Dataview/query/parse.d.mts +44 -1
- package/dist/lib/esm/obsidian/@types/Dataview/query/query.d.mts +95 -1
- package/dist/lib/esm/obsidian/@types/Dataview/settings.d.mts +60 -1
- package/dist/lib/esm/obsidian/@types/Dataview/typings/obsidian-ex.d.mts +28 -1
- package/dist/lib/esm/obsidian/@types/Dataview/typings/workers.d.mts +4 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/export/markdown.d.mts +15 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/lp-render.d.mts +37 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/markdown.d.mts +86 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/refreshable-view.d.mts +18 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/render.d.mts +33 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/calendar-view.d.mts +17 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/inline-field-live-preview.d.mts +42 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/inline-view.d.mts +28 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/js-view.d.mts +23 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/list-view.d.mts +25 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/table-view.d.mts +28 -1
- package/dist/lib/esm/obsidian/@types/Dataview/ui/views/task-view.d.mts +51 -1
- package/dist/lib/esm/obsidian/@types/Dataview/util/hash.d.mts +1 -1
- package/dist/lib/esm/obsidian/@types/Dataview/util/locale.d.mts +2 -1
- package/dist/lib/esm/obsidian/@types/Dataview/util/media.d.mts +6 -1
- package/dist/lib/esm/obsidian/@types/Dataview/util/normalize.d.mts +44 -1
- package/dist/lib/esm/obsidian/App.d.mts +30 -1
- package/dist/lib/esm/obsidian/AttachmentPath.d.mts +54 -1
- package/dist/lib/esm/obsidian/Backlink.d.mts +60 -1
- package/dist/lib/esm/obsidian/Callout.d.mts +55 -1
- package/dist/lib/esm/obsidian/Components/DateComponent.d.mts +36 -1
- package/dist/lib/esm/obsidian/Components/DateTimeComponent.d.mts +36 -1
- package/dist/lib/esm/obsidian/Components/EmailComponent.d.mts +29 -1
- package/dist/lib/esm/obsidian/Components/FileComponent.d.mts +41 -1
- package/dist/lib/esm/obsidian/Components/MonthComponent.d.mts +49 -1
- package/dist/lib/esm/obsidian/Components/MultipleDropdownComponent.d.mts +73 -1
- package/dist/lib/esm/obsidian/Components/MultipleEmailComponent.d.mts +36 -1
- package/dist/lib/esm/obsidian/Components/MultipleFileComponent.d.mts +41 -1
- package/dist/lib/esm/obsidian/Components/MultipleTextComponent.d.mts +67 -1
- package/dist/lib/esm/obsidian/Components/NumberComponent.d.mts +29 -1
- package/dist/lib/esm/obsidian/Components/TimeComponent.d.mts +37 -1
- package/dist/lib/esm/obsidian/Components/TypedRangeTextComponent.d.mts +31 -1
- package/dist/lib/esm/obsidian/Components/TypedTextComponent.d.mts +84 -1
- package/dist/lib/esm/obsidian/Components/UrlComponent.d.mts +29 -1
- package/dist/lib/esm/obsidian/Components/ValidatorComponent.d.mts +22 -1
- package/dist/lib/esm/obsidian/Components/ValueComponentWithChangeTracking.d.mts +17 -1
- package/dist/lib/esm/obsidian/Components/WeekComponent.d.mts +49 -1
- package/dist/lib/esm/obsidian/Components/index.d.mts +17 -1
- package/dist/lib/esm/obsidian/Dataview.d.mts +215 -1
- package/dist/lib/esm/obsidian/DataviewLink.d.mts +23 -1
- package/dist/lib/esm/obsidian/FileChange.d.mts +68 -1
- package/dist/lib/esm/obsidian/FileManager.d.mts +38 -1
- package/dist/lib/esm/obsidian/FileSystem.d.mts +185 -1
- package/dist/lib/esm/obsidian/Frontmatter.d.mts +69 -1
- package/dist/lib/esm/obsidian/Link.d.mts +366 -1
- package/dist/lib/esm/obsidian/Logger.d.mts +13 -1
- package/dist/lib/esm/obsidian/Loop.d.mts +36 -1
- package/dist/lib/esm/obsidian/Markdown.d.mts +24 -1
- package/dist/lib/esm/obsidian/MarkdownCodeBlockProcessor.d.mts +23 -1
- package/dist/lib/esm/obsidian/MarkdownView.d.mts +12 -1
- package/dist/lib/esm/obsidian/MetadataCache.d.mts +87 -1
- package/dist/lib/esm/obsidian/Modals/Alert.d.mts +39 -1
- package/dist/lib/esm/obsidian/Modals/Confirm.d.mts +43 -1
- package/dist/lib/esm/obsidian/Modals/ModalBase.d.mts +35 -1
- package/dist/lib/esm/obsidian/Modals/Prompt.d.mts +50 -1
- package/dist/lib/esm/obsidian/Modals/SelectItem.d.mts +41 -1
- package/dist/lib/esm/obsidian/Modals/index.d.mts +5 -1
- package/dist/lib/esm/obsidian/ObsidianSettings.d.mts +17 -1
- package/dist/lib/esm/obsidian/Pdf.d.mts +24 -1
- package/dist/lib/esm/obsidian/Plugin/EmptySettings.d.mts +14 -1
- package/dist/lib/esm/obsidian/Plugin/ObsidianPluginRepoPaths.d.mts +53 -1
- package/dist/lib/esm/obsidian/Plugin/Plugin.d.mts +21 -1
- package/dist/lib/esm/obsidian/Plugin/PluginBase.d.mts +108 -1
- package/dist/lib/esm/obsidian/Plugin/PluginContext.d.mts +12 -1
- package/dist/lib/esm/obsidian/Plugin/PluginId.d.mts +20 -1
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsBase.d.mts +31 -1
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsTabBase.d.mts +99 -1
- package/dist/lib/esm/obsidian/Plugin/index.d.mts +8 -1
- package/dist/lib/esm/obsidian/Queue.d.mts +30 -1
- package/dist/lib/esm/obsidian/Reference.d.mts +21 -1
- package/dist/lib/esm/obsidian/RenameDeleteHandler.d.mts +49 -1
- package/dist/lib/esm/obsidian/ResourceUrl.d.mts +14 -1
- package/dist/lib/esm/obsidian/SettingEx.d.mts +124 -1
- package/dist/lib/esm/obsidian/Vault.d.mts +130 -1
- package/dist/lib/esm/obsidian/VaultEx.d.mts +27 -1
- package/dist/lib/esm/obsidian/index.d.mts +29 -1
- package/dist/lib/esm/url.d.mts +11 -1
- package/package.json +1 -1
@@ -1 +1,49 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @packageDocumentation RenameDeleteHandler
|
3
|
+
* Contains utility functions for handling rename and delete events in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { Plugin } from 'obsidian';
|
6
|
+
/**
|
7
|
+
* Settings for the rename/delete handler.
|
8
|
+
*/
|
9
|
+
export interface RenameDeleteHandlerSettings {
|
10
|
+
/**
|
11
|
+
* Whether to ignore the path.
|
12
|
+
*/
|
13
|
+
isPathIgnored(path: string): boolean;
|
14
|
+
/**
|
15
|
+
* Whether to delete conflicting attachments.
|
16
|
+
*/
|
17
|
+
shouldDeleteConflictingAttachments: boolean;
|
18
|
+
/**
|
19
|
+
* Whether to delete empty folders.
|
20
|
+
*/
|
21
|
+
shouldDeleteEmptyFolders: boolean;
|
22
|
+
/**
|
23
|
+
* Whether to handle deletions.
|
24
|
+
*/
|
25
|
+
shouldHandleDeletions: boolean;
|
26
|
+
/**
|
27
|
+
* Whether to handle renames.
|
28
|
+
*/
|
29
|
+
shouldHandleRenames: boolean;
|
30
|
+
/**
|
31
|
+
* Whether to rename attachment files when a note is renamed.
|
32
|
+
*/
|
33
|
+
shouldRenameAttachmentFiles: boolean;
|
34
|
+
/**
|
35
|
+
* Whether to rename attachment folder when a note is renamed.
|
36
|
+
*/
|
37
|
+
shouldRenameAttachmentFolder: boolean;
|
38
|
+
/**
|
39
|
+
* Whether to update filename aliases when a note is renamed.
|
40
|
+
*/
|
41
|
+
shouldUpdateFilenameAliases: boolean;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Registers the rename/delete handlers.
|
45
|
+
* @param plugin - The plugin instance.
|
46
|
+
* @param settingsBuilder - A function that returns the settings for the rename delete handler.
|
47
|
+
* @returns void
|
48
|
+
*/
|
49
|
+
export declare function registerRenameDeleteHandlers(plugin: Plugin, settingsBuilder: () => Partial<RenameDeleteHandlerSettings>): void;
|
@@ -1 +1,14 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @packageDocumentation ResourceUrl
|
3
|
+
* This module provides utility functions for working with resource URLs in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { App } from 'obsidian';
|
6
|
+
/**
|
7
|
+
* Converts a relative path to a resource URL.
|
8
|
+
*
|
9
|
+
* @param app - The Obsidian application instance.
|
10
|
+
* @param relativePath - The relative path to the resource.
|
11
|
+
* @param notePath - The path of the note.
|
12
|
+
* @returns The resource URL.
|
13
|
+
*/
|
14
|
+
export declare function relativePathToResourceUrl(app: App, relativePath: string, notePath: string): string;
|
@@ -1 +1,124 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @packageDocumentation SettingEx
|
3
|
+
* Extends the Setting class with additional methods for adding components.
|
4
|
+
*/
|
5
|
+
import type { BaseComponent } from 'obsidian';
|
6
|
+
import { Setting } from 'obsidian';
|
7
|
+
import { DateComponent } from './Components/DateComponent.d.mts';
|
8
|
+
import { DateTimeComponent } from './Components/DateTimeComponent.d.mts';
|
9
|
+
import { EmailComponent } from './Components/EmailComponent.d.mts';
|
10
|
+
import { FileComponent } from './Components/FileComponent.d.mts';
|
11
|
+
import { MonthComponent } from './Components/MonthComponent.d.mts';
|
12
|
+
import { MultipleDropdownComponent } from './Components/MultipleDropdownComponent.d.mts';
|
13
|
+
import { MultipleEmailComponent } from './Components/MultipleEmailComponent.d.mts';
|
14
|
+
import { MultipleFileComponent } from './Components/MultipleFileComponent.d.mts';
|
15
|
+
import { MultipleTextComponent } from './Components/MultipleTextComponent.d.mts';
|
16
|
+
import { NumberComponent } from './Components/NumberComponent.d.mts';
|
17
|
+
import { TimeComponent } from './Components/TimeComponent.d.mts';
|
18
|
+
import { UrlComponent } from './Components/UrlComponent.d.mts';
|
19
|
+
import { WeekComponent } from './Components/WeekComponent.d.mts';
|
20
|
+
/**
|
21
|
+
* Extends the Setting class with additional methods for adding components.
|
22
|
+
*/
|
23
|
+
export declare class SettingEx extends Setting {
|
24
|
+
/**
|
25
|
+
* Adds a component to the setting.
|
26
|
+
*
|
27
|
+
* @typeParam T - The type of the component to add.
|
28
|
+
* @param componentClass - The class of the component to add.
|
29
|
+
* @param cb - The callback to call with the component.
|
30
|
+
* @returns The setting instance.
|
31
|
+
*/
|
32
|
+
addComponent<T extends BaseComponent>(componentClass: new (controlEl: HTMLElement) => T, cb: (component: T) => void): this;
|
33
|
+
/**
|
34
|
+
* Adds a {@link DateComponent} to the setting.
|
35
|
+
*
|
36
|
+
* @param cb - The callback to call with the component.
|
37
|
+
* @returns The setting instance.
|
38
|
+
*/
|
39
|
+
addDate(cb: (component: DateComponent) => void): this;
|
40
|
+
/**
|
41
|
+
* Adds a {@link DateTimeComponent} to the setting.
|
42
|
+
*
|
43
|
+
* @param cb - The callback to call with the component.
|
44
|
+
* @returns The setting instance.
|
45
|
+
*/
|
46
|
+
addDateTime(cb: (component: DateTimeComponent) => void): this;
|
47
|
+
/**
|
48
|
+
* Adds an {@link EmailComponent} to the setting.
|
49
|
+
*
|
50
|
+
* @param cb - The callback to call with the component.
|
51
|
+
* @returns The setting instance.
|
52
|
+
*/
|
53
|
+
addEmail(cb: (component: EmailComponent) => void): this;
|
54
|
+
/**
|
55
|
+
* Adds a {@link FileComponent} to the setting.
|
56
|
+
*
|
57
|
+
* @param cb - The callback to call with the component.
|
58
|
+
* @returns The setting instance.
|
59
|
+
*/
|
60
|
+
addFile(cb: (component: FileComponent) => void): this;
|
61
|
+
/**
|
62
|
+
* Adds a {@link MonthComponent} to the setting.
|
63
|
+
*
|
64
|
+
* @param cb - The callback to call with the component.
|
65
|
+
* @returns The setting instance.
|
66
|
+
*/
|
67
|
+
addMonth(cb: (component: MonthComponent) => void): this;
|
68
|
+
/**
|
69
|
+
* Adds a {@link MultipleDropdownComponent} to the setting.
|
70
|
+
*
|
71
|
+
* @param cb - The callback to call with the component.
|
72
|
+
* @returns The setting instance.
|
73
|
+
*/
|
74
|
+
addMultipleDropdown(cb: (component: MultipleDropdownComponent) => void): this;
|
75
|
+
/**
|
76
|
+
* Adds a {@link MultipleEmailComponent} to the setting.
|
77
|
+
*
|
78
|
+
* @param cb - The callback to call with the component.
|
79
|
+
* @returns The setting instance.
|
80
|
+
*/
|
81
|
+
addMultipleEmail(cb: (component: MultipleEmailComponent) => void): this;
|
82
|
+
/**
|
83
|
+
* Adds a {@link MultipleFileComponent} to the setting.
|
84
|
+
*
|
85
|
+
* @param cb - The callback to call with the component.
|
86
|
+
* @returns The setting instance.
|
87
|
+
*/
|
88
|
+
addMultipleFile(cb: (component: MultipleFileComponent) => void): this;
|
89
|
+
/**
|
90
|
+
* Adds a {@link MultipleTextComponent} to the setting.
|
91
|
+
*
|
92
|
+
* @param cb - The callback to call with the component.
|
93
|
+
* @returns The setting instance.
|
94
|
+
*/
|
95
|
+
addMultipleText(cb: (component: MultipleTextComponent) => void): this;
|
96
|
+
/**
|
97
|
+
* Adds a {@link NumberComponent} to the setting.
|
98
|
+
*
|
99
|
+
* @param cb - The callback to call with the component.
|
100
|
+
* @returns The setting instance.
|
101
|
+
*/
|
102
|
+
addNumber(cb: (component: NumberComponent) => void): this;
|
103
|
+
/**
|
104
|
+
* Adds a {@link TimeComponent} to the setting.
|
105
|
+
*
|
106
|
+
* @param cb - The callback to call with the component.
|
107
|
+
* @returns The setting instance.
|
108
|
+
*/
|
109
|
+
addTime(cb: (component: TimeComponent) => void): this;
|
110
|
+
/**
|
111
|
+
* Adds an {@link UrlComponent} to the setting.
|
112
|
+
*
|
113
|
+
* @param cb - The callback to call with the component.
|
114
|
+
* @returns The setting instance.
|
115
|
+
*/
|
116
|
+
addUrl(cb: (component: UrlComponent) => void): this;
|
117
|
+
/**
|
118
|
+
* Adds a {@link WeekComponent} to the setting.
|
119
|
+
*
|
120
|
+
* @param cb - The callback to call with the component.
|
121
|
+
* @returns The setting instance.
|
122
|
+
*/
|
123
|
+
addWeek(cb: (component: WeekComponent) => void): this;
|
124
|
+
}
|
@@ -1 +1,130 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Vault
|
3
|
+
* This module provides utility functions for working with the Obsidian Vault.
|
4
|
+
*/
|
5
|
+
import type { ListedFiles } from 'obsidian';
|
6
|
+
import { App, TFile } from 'obsidian';
|
7
|
+
import type { RetryOptions } from '../Async.d.mts';
|
8
|
+
import type { ValueProvider } from '../ValueProvider.d.mts';
|
9
|
+
import type { PathOrFile, PathOrFolder } from './FileSystem.d.mts';
|
10
|
+
/**
|
11
|
+
* Options for the `process` function.
|
12
|
+
*/
|
13
|
+
export interface ProcessOptions extends RetryOptions {
|
14
|
+
/**
|
15
|
+
* If `true`, the function will throw an error if the file is missing or deleted.
|
16
|
+
*/
|
17
|
+
shouldFailOnMissingFile?: boolean;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Copies a file safely in the vault.
|
21
|
+
*
|
22
|
+
* @param app - The application instance.
|
23
|
+
* @param oldPathOrFile - The old path or file to copy.
|
24
|
+
* @param newPath - The new path to copy the file to.
|
25
|
+
* @returns A promise that resolves to the new path of the copied file.
|
26
|
+
*/
|
27
|
+
export declare function copySafe(app: App, oldPathOrFile: PathOrFile, newPath: string): Promise<string>;
|
28
|
+
/**
|
29
|
+
* Creates a folder safely in the specified path.
|
30
|
+
*
|
31
|
+
* @param app - The application instance.
|
32
|
+
* @param path - The path of the folder to create.
|
33
|
+
* @returns A promise that resolves to a boolean indicating whether the folder was created.
|
34
|
+
* @throws If an error occurs while creating the folder and it still doesn't exist.
|
35
|
+
*/
|
36
|
+
export declare function createFolderSafe(app: App, path: string): Promise<boolean>;
|
37
|
+
/**
|
38
|
+
* Creates a temporary file in the vault with parent folders if needed.
|
39
|
+
* @param app - The application instance.
|
40
|
+
* @param path - The path of the file to create.
|
41
|
+
* @returns A promise that resolves to a function that can be called to delete the temporary file and all its created parents.
|
42
|
+
*/
|
43
|
+
export declare function createTempFile(app: App, path: string): Promise<() => Promise<void>>;
|
44
|
+
/**
|
45
|
+
* Creates a temporary folder in the vault with parent folders if needed.
|
46
|
+
* @param app - The application instance.
|
47
|
+
* @param path - The path of the folder to create.
|
48
|
+
* @returns A promise that resolves to a function that can be called to delete the temporary folder and all its created parents.
|
49
|
+
*/
|
50
|
+
export declare function createTempFolder(app: App, path: string): Promise<() => Promise<void>>;
|
51
|
+
/**
|
52
|
+
* Gets an available path for a file in the vault.
|
53
|
+
*
|
54
|
+
* @param app - The application instance.
|
55
|
+
* @param path - The path of the file to get an available path for.
|
56
|
+
* @returns The available path for the file.
|
57
|
+
*/
|
58
|
+
export declare function getAvailablePath(app: App, path: string): string;
|
59
|
+
/**
|
60
|
+
* Retrieves an array of Markdown files from the app's vault and sorts them alphabetically by their file path.
|
61
|
+
*
|
62
|
+
* @param app - The Obsidian app instance.
|
63
|
+
* @returns An array of Markdown files sorted by file path.
|
64
|
+
*/
|
65
|
+
export declare function getMarkdownFilesSorted(app: App): TFile[];
|
66
|
+
/**
|
67
|
+
* Retrieves an array of all note files from the app's vault and sorts them alphabetically by their file path.
|
68
|
+
* @param app - The Obsidian app instance.
|
69
|
+
* @returns An array of all note files in the vault sorted by file path.
|
70
|
+
*/
|
71
|
+
export declare function getNoteFilesSorted(app: App): TFile[];
|
72
|
+
/**
|
73
|
+
* Gets a safe rename path for a file.
|
74
|
+
*
|
75
|
+
* @param app - The application instance.
|
76
|
+
* @param oldPathOrFile - The old path or file to rename.
|
77
|
+
* @param newPath - The new path to rename the file to.
|
78
|
+
* @returns The safe rename path for the file.
|
79
|
+
*/
|
80
|
+
export declare function getSafeRenamePath(app: App, oldPathOrFile: PathOrFile, newPath: string): string;
|
81
|
+
/**
|
82
|
+
* Checks if a folder is empty.
|
83
|
+
* @param app - The application instance.
|
84
|
+
* @param pathOrFolder - The path or folder to check.
|
85
|
+
* @returns A promise that resolves to a boolean indicating whether the folder is empty.
|
86
|
+
*/
|
87
|
+
export declare function isEmptyFolder(app: App, pathOrFolder: PathOrFolder): Promise<boolean>;
|
88
|
+
/**
|
89
|
+
* Safely lists the files and folders at the specified path in the vault.
|
90
|
+
*
|
91
|
+
* @param app - The Obsidian application instance.
|
92
|
+
* @param pathOrFolder - The path or folder to list.
|
93
|
+
* @returns A promise that resolves to a `ListedFiles` object containing the listed files and folders.
|
94
|
+
*/
|
95
|
+
export declare function listSafe(app: App, pathOrFolder: PathOrFolder): Promise<ListedFiles>;
|
96
|
+
/**
|
97
|
+
* Processes a file with retry logic, updating its content based on a provided value or function.
|
98
|
+
*
|
99
|
+
* @param app - The application instance, typically used for accessing the vault.
|
100
|
+
* @param pathOrFile - The path or file to be processed. It can be a string representing the path or a file object.
|
101
|
+
* @param newContentProvider - A value provider that returns the new content based on the old content of the file.
|
102
|
+
* It can be a string or a function that takes the old content as an argument and returns the new content.
|
103
|
+
* If function is provided, it should return `null` if the process should be retried.
|
104
|
+
* @param options - Optional options for processing/retrying the operation.
|
105
|
+
*
|
106
|
+
* @returns A promise that resolves once the process is complete.
|
107
|
+
*
|
108
|
+
* @throws Will throw an error if the process fails after the specified number of retries or timeout.
|
109
|
+
*/
|
110
|
+
export declare function process(app: App, pathOrFile: PathOrFile, newContentProvider: ValueProvider<null | string, [string]>, options?: ProcessOptions): Promise<void>;
|
111
|
+
/**
|
112
|
+
* Reads the content of a file safely from the vault.
|
113
|
+
*
|
114
|
+
* It covers the case when the file was removed during the reading.
|
115
|
+
*
|
116
|
+
* @param app - The application instance.
|
117
|
+
* @param pathOrFile - The path or file to read.
|
118
|
+
* @returns A promise that resolves to the content of the file or `null` if the file is missing or deleted.
|
119
|
+
*/
|
120
|
+
export declare function readSafe(app: App, pathOrFile: PathOrFile): Promise<null | string>;
|
121
|
+
/**
|
122
|
+
* Renames a file safely in the vault.
|
123
|
+
* If the new path already exists, the file will be renamed to an available path.
|
124
|
+
*
|
125
|
+
* @param app - The application instance.
|
126
|
+
* @param oldPathOrFile - The old path or file to rename.
|
127
|
+
* @param newPath - The new path to rename the file to.
|
128
|
+
* @returns A promise that resolves to the new path of the file.
|
129
|
+
*/
|
130
|
+
export declare function renameSafe(app: App, oldPathOrFile: PathOrFile, newPath: string): Promise<string>;
|
@@ -1 +1,27 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @packageDocumentation VaultEx
|
3
|
+
* This module provides additional utilities for working with the Obsidian Vault.
|
4
|
+
*
|
5
|
+
* It has to be extracted from `Vault` because of circular dependencies.
|
6
|
+
*/
|
7
|
+
import type { App } from 'obsidian';
|
8
|
+
import type { PathOrAbstractFile, PathOrFolder } from './FileSystem.d.mts';
|
9
|
+
/**
|
10
|
+
* Removes empty folder hierarchy starting from the given folder.
|
11
|
+
*
|
12
|
+
* @param app - The application instance.
|
13
|
+
* @param pathOrFolder - The folder to start removing empty hierarchy from.
|
14
|
+
* @returns A promise that resolves when the empty hierarchy is deleted.
|
15
|
+
*/
|
16
|
+
export declare function deleteEmptyFolderHierarchy(app: App, pathOrFolder: null | PathOrFolder): Promise<void>;
|
17
|
+
/**
|
18
|
+
* Deletes abstract file safely from the vault.
|
19
|
+
*
|
20
|
+
* @param app - The Obsidian application instance.
|
21
|
+
* @param pathOrFile - The path or abstract file to delete.
|
22
|
+
* @param deletedNotePath - Optional. The path of the note that triggered the removal.
|
23
|
+
* @param shouldReportUsedAttachments - Optional. If `true`, a notice will be shown for each attachment that is still used by other notes.
|
24
|
+
* @param shouldDeleteEmptyFolders - Optional. If `true`, empty folders will be deleted.
|
25
|
+
* @returns A promise that resolves to a boolean indicating whether the removal was successful.
|
26
|
+
*/
|
27
|
+
export declare function deleteSafe(app: App, pathOrFile: PathOrAbstractFile, deletedNotePath?: string, shouldReportUsedAttachments?: boolean, shouldDeleteEmptyFolders?: boolean): Promise<boolean>;
|
@@ -1 +1,29 @@
|
|
1
|
-
export * from '
|
1
|
+
export * as App from './App.d.mts';
|
2
|
+
export * as AttachmentPath from './AttachmentPath.d.mts';
|
3
|
+
export * as Backlink from './Backlink.d.mts';
|
4
|
+
export * as Callout from './Callout.d.mts';
|
5
|
+
export * as Components from './Components/index.d.mts';
|
6
|
+
export * as Dataview from './Dataview.d.mts';
|
7
|
+
export * as DataviewLink from './DataviewLink.d.mts';
|
8
|
+
export * as FileChange from './FileChange.d.mts';
|
9
|
+
export * as FileManager from './FileManager.d.mts';
|
10
|
+
export * as FileSystem from './FileSystem.d.mts';
|
11
|
+
export * as Frontmatter from './Frontmatter.d.mts';
|
12
|
+
export * as Link from './Link.d.mts';
|
13
|
+
export * as Logger from './Logger.d.mts';
|
14
|
+
export * as Loop from './Loop.d.mts';
|
15
|
+
export * as Markdown from './Markdown.d.mts';
|
16
|
+
export * as MarkdownCodeBlockProcessor from './MarkdownCodeBlockProcessor.d.mts';
|
17
|
+
export * as MarkdownView from './MarkdownView.d.mts';
|
18
|
+
export * as MetadataCache from './MetadataCache.d.mts';
|
19
|
+
export * as Modals from './Modals/index.d.mts';
|
20
|
+
export * as ObsidianSettings from './ObsidianSettings.d.mts';
|
21
|
+
export * as Pdf from './Pdf.d.mts';
|
22
|
+
export * as Plugin from './Plugin/index.d.mts';
|
23
|
+
export * as Queue from './Queue.d.mts';
|
24
|
+
export * as Reference from './Reference.d.mts';
|
25
|
+
export * as RenameDeleteHandler from './RenameDeleteHandler.d.mts';
|
26
|
+
export * as ResourceUrl from './ResourceUrl.d.mts';
|
27
|
+
export * as SettingEx from './SettingEx.d.mts';
|
28
|
+
export * as Vault from './Vault.d.mts';
|
29
|
+
export * as VaultEx from './VaultEx.d.mts';
|
package/dist/lib/esm/url.d.mts
CHANGED
@@ -1 +1,11 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @packageDocumentation url
|
3
|
+
* Contains a utility function for validating URLs.
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* Determines whether a given string is a valid URL
|
7
|
+
*
|
8
|
+
* @param str - The string to validate as a URL.
|
9
|
+
* @returns `true` if the string is a valid URL, otherwise `false`.
|
10
|
+
*/
|
11
|
+
export declare function isUrl(str: string): boolean;
|
package/package.json
CHANGED