obsidian-dev-utils 18.4.0 → 19.0.0
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/debug/package.json +4 -0
- package/Async/package.json +6 -0
- package/Blob/package.json +6 -0
- package/CHANGELOG.md +12 -0
- package/CssClass/package.json +6 -0
- package/Debug/package.json +6 -0
- package/DebugController/package.json +6 -0
- package/Enum/package.json +6 -0
- package/Error/package.json +6 -0
- package/Function/package.json +6 -0
- package/HTMLElement/package.json +6 -0
- package/Library/package.json +6 -0
- package/Object/package.json +6 -0
- package/Path/package.json +6 -0
- package/RegExp/package.json +6 -0
- package/ScriptUtils/CliUtils/package.json +6 -0
- package/ScriptUtils/CodeGenerator/package.json +6 -0
- package/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required/package.json +4 -0
- package/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines/package.json +4 -0
- package/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc/package.json +4 -0
- package/ScriptUtils/ESLint/ESLint/package.json +6 -0
- package/ScriptUtils/ESLint/eslint.config/package.json +6 -0
- package/ScriptUtils/ESLint/index/package.json +6 -0
- package/ScriptUtils/ESLint/package.json +6 -0
- package/ScriptUtils/Exec/package.json +6 -0
- package/ScriptUtils/Fs/package.json +6 -0
- package/ScriptUtils/JSON/package.json +6 -0
- package/ScriptUtils/NodeModules/package.json +6 -0
- package/ScriptUtils/Npm/package.json +6 -0
- package/ScriptUtils/NpmPublish/package.json +6 -0
- package/ScriptUtils/ObsidianDevUtilsRepoPaths/package.json +6 -0
- package/ScriptUtils/Root/package.json +6 -0
- package/ScriptUtils/build/package.json +6 -0
- package/ScriptUtils/cli/package.json +6 -0
- package/ScriptUtils/esbuild/Dependency/package.json +6 -0
- package/ScriptUtils/esbuild/ObsidianPluginBuilder/package.json +6 -0
- package/ScriptUtils/esbuild/changeExtensionPlugin/package.json +6 -0
- package/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin/package.json +6 -0
- package/ScriptUtils/esbuild/fixEsmPlugin/package.json +6 -0
- package/ScriptUtils/esbuild/fixSourceMapsPlugin/package.json +6 -0
- package/ScriptUtils/esbuild/index/package.json +6 -0
- package/ScriptUtils/esbuild/package.json +6 -0
- package/ScriptUtils/esbuild/preprocessPlugin/package.json +6 -0
- package/ScriptUtils/esbuild/renameCssPlugin/package.json +6 -0
- package/ScriptUtils/esbuild/svelteWrapperPlugin/package.json +6 -0
- package/ScriptUtils/format/package.json +6 -0
- package/ScriptUtils/index/package.json +6 -0
- package/ScriptUtils/package.json +6 -0
- package/ScriptUtils/spellcheck/package.json +6 -0
- package/ScriptUtils/version/package.json +6 -0
- package/String/package.json +6 -0
- package/Transformers/DateTransformer/package.json +6 -0
- package/Transformers/DurationTransformer/package.json +6 -0
- package/Transformers/GroupTransformer/package.json +6 -0
- package/Transformers/SkipPrivatePropertyTransformer/package.json +6 -0
- package/Transformers/Transformer/package.json +6 -0
- package/Transformers/TypedTransformer/package.json +6 -0
- package/Transformers/index/package.json +6 -0
- package/Transformers/package.json +6 -0
- package/ValueProvider/package.json +6 -0
- package/codemirror/StateFieldSpec/package.json +6 -0
- package/codemirror/index/package.json +6 -0
- package/codemirror/package.json +6 -0
- package/dist/bin/cli.cjs +1 -1
- package/dist/lib/@types/debug.d.mts +16 -0
- package/dist/lib/Async.d.mts +153 -0
- package/dist/lib/Blob.d.mts +40 -0
- package/dist/lib/CssClass.d.mts +97 -0
- package/dist/lib/{Debug.d.ts → Debug.d.cts} +1 -1
- package/dist/lib/Debug.d.mts +41 -0
- package/dist/lib/DebugController.d.mts +85 -0
- package/dist/lib/Enum.d.mts +20 -0
- package/dist/lib/Error.d.mts +45 -0
- package/dist/lib/Function.d.mts +28 -0
- package/dist/lib/HTMLElement.d.mts +49 -0
- package/dist/lib/Library.cjs +1 -1
- package/dist/lib/Library.d.mts +16 -0
- package/dist/lib/Library.mjs +1 -1
- package/dist/lib/Object.d.mts +211 -0
- package/dist/lib/Path.d.mts +133 -0
- package/dist/lib/RegExp.d.mts +18 -0
- package/dist/lib/ScriptUtils/CliUtils.cjs +161 -0
- package/dist/lib/{scripts/CliUtils.d.ts → ScriptUtils/CliUtils.d.cts} +1 -1
- package/dist/lib/ScriptUtils/CliUtils.d.mts +70 -0
- package/dist/lib/ScriptUtils/CliUtils.mjs +135 -0
- package/dist/lib/{scripts → ScriptUtils}/CodeGenerator.cjs +1 -1
- package/dist/lib/ScriptUtils/CodeGenerator.d.mts +12 -0
- package/dist/lib/ScriptUtils/CodeGenerator.mjs +19 -0
- package/dist/lib/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.mts +13 -0
- package/dist/lib/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines.d.mts +13 -0
- package/dist/lib/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc.d.mts +13 -0
- package/dist/lib/{scripts → ScriptUtils}/ESLint/ESLint.cjs +1 -1
- package/dist/lib/ScriptUtils/ESLint/ESLint.d.mts +13 -0
- package/dist/lib/ScriptUtils/ESLint/ESLint.mjs +28 -0
- package/dist/lib/ScriptUtils/ESLint/eslint.config.cjs +328 -0
- package/dist/lib/ScriptUtils/ESLint/eslint.config.d.mts +16 -0
- package/dist/lib/ScriptUtils/ESLint/eslint.config.mjs +294 -0
- package/dist/lib/ScriptUtils/ESLint/index.cjs +49 -0
- package/dist/lib/ScriptUtils/ESLint/index.d.cts +2 -0
- package/dist/lib/ScriptUtils/ESLint/index.d.mts +2 -0
- package/dist/lib/ScriptUtils/ESLint/index.mjs +14 -0
- package/dist/lib/ScriptUtils/Exec.cjs +119 -0
- package/dist/lib/ScriptUtils/Exec.d.mts +83 -0
- package/dist/lib/ScriptUtils/Exec.mjs +98 -0
- package/dist/lib/ScriptUtils/Fs.cjs +85 -0
- package/dist/lib/{scripts/Fs.d.ts → ScriptUtils/Fs.d.cts} +1 -1
- package/dist/lib/ScriptUtils/Fs.d.mts +72 -0
- package/dist/lib/ScriptUtils/Fs.mjs +64 -0
- package/dist/lib/ScriptUtils/JSON.cjs +83 -0
- package/dist/lib/{scripts/JSON.d.ts → ScriptUtils/JSON.d.cts} +1 -1
- package/dist/lib/ScriptUtils/JSON.d.mts +64 -0
- package/dist/lib/ScriptUtils/JSON.mjs +60 -0
- package/dist/lib/{scripts → ScriptUtils}/NodeModules.cjs +1 -1
- package/dist/lib/ScriptUtils/NodeModules.d.mts +14 -0
- package/dist/lib/ScriptUtils/NodeModules.mjs +62 -0
- package/dist/lib/ScriptUtils/Npm.cjs +138 -0
- package/dist/lib/{scripts/Npm.d.ts → ScriptUtils/Npm.d.cts} +1 -1
- package/dist/lib/ScriptUtils/Npm.d.mts +151 -0
- package/dist/lib/ScriptUtils/Npm.mjs +106 -0
- package/dist/lib/{scripts → ScriptUtils}/NpmPublish.cjs +1 -1
- package/dist/lib/ScriptUtils/NpmPublish.d.mts +9 -0
- package/dist/lib/ScriptUtils/NpmPublish.mjs +21 -0
- package/dist/lib/ScriptUtils/ObsidianDevUtilsRepoPaths.cjs +77 -0
- package/dist/lib/{scripts/ObsidianDevUtilsRepoPaths.d.ts → ScriptUtils/ObsidianDevUtilsRepoPaths.d.cts} +10 -0
- package/dist/lib/ScriptUtils/ObsidianDevUtilsRepoPaths.d.mts +88 -0
- package/dist/lib/ScriptUtils/ObsidianDevUtilsRepoPaths.mjs +53 -0
- package/dist/lib/ScriptUtils/Root.cjs +88 -0
- package/dist/lib/{scripts/Root.d.ts → ScriptUtils/Root.d.cts} +1 -1
- package/dist/lib/ScriptUtils/Root.d.mts +67 -0
- package/dist/lib/ScriptUtils/Root.mjs +66 -0
- package/dist/lib/ScriptUtils/build.cjs +82 -0
- package/dist/lib/ScriptUtils/build.d.mts +41 -0
- package/dist/lib/ScriptUtils/build.mjs +60 -0
- package/dist/lib/ScriptUtils/cli.cjs +88 -0
- package/dist/lib/ScriptUtils/cli.d.mts +14 -0
- package/dist/lib/ScriptUtils/cli.mjs +65 -0
- package/dist/lib/ScriptUtils/esbuild/Dependency.cjs +122 -0
- package/dist/lib/ScriptUtils/esbuild/Dependency.d.mts +18 -0
- package/dist/lib/ScriptUtils/esbuild/Dependency.mjs +95 -0
- package/dist/lib/ScriptUtils/esbuild/ObsidianPluginBuilder.cjs +178 -0
- package/dist/lib/{scripts/esbuild/ObsidianPluginBuilder.d.ts → ScriptUtils/esbuild/ObsidianPluginBuilder.d.cts} +1 -1
- package/dist/lib/ScriptUtils/esbuild/ObsidianPluginBuilder.d.mts +53 -0
- package/dist/lib/ScriptUtils/esbuild/ObsidianPluginBuilder.mjs +149 -0
- package/dist/lib/ScriptUtils/esbuild/changeExtensionPlugin.cjs +68 -0
- package/dist/lib/ScriptUtils/esbuild/changeExtensionPlugin.d.mts +12 -0
- package/dist/lib/ScriptUtils/esbuild/changeExtensionPlugin.mjs +44 -0
- package/dist/lib/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.cjs +66 -0
- package/dist/lib/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.d.mts +18 -0
- package/dist/lib/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.mjs +50 -0
- package/dist/lib/{scripts → ScriptUtils}/esbuild/fixEsmPlugin.cjs +1 -1
- package/dist/lib/ScriptUtils/esbuild/fixEsmPlugin.d.mts +11 -0
- package/dist/lib/ScriptUtils/esbuild/fixEsmPlugin.mjs +25 -0
- package/dist/lib/ScriptUtils/esbuild/fixSourceMapsPlugin.cjs +75 -0
- package/dist/lib/ScriptUtils/esbuild/fixSourceMapsPlugin.d.mts +17 -0
- package/dist/lib/ScriptUtils/esbuild/fixSourceMapsPlugin.mjs +55 -0
- package/dist/lib/ScriptUtils/esbuild/index.cjs +70 -0
- package/dist/lib/ScriptUtils/esbuild/index.d.cts +9 -0
- package/dist/lib/ScriptUtils/esbuild/index.d.mts +9 -0
- package/dist/lib/ScriptUtils/esbuild/index.mjs +28 -0
- package/dist/lib/ScriptUtils/esbuild/preprocessPlugin.cjs +146 -0
- package/dist/lib/ScriptUtils/esbuild/preprocessPlugin.d.mts +23 -0
- package/dist/lib/ScriptUtils/esbuild/preprocessPlugin.mjs +128 -0
- package/dist/lib/{scripts → ScriptUtils}/esbuild/renameCssPlugin.cjs +1 -1
- package/dist/lib/ScriptUtils/esbuild/renameCssPlugin.d.mts +8 -0
- package/dist/lib/ScriptUtils/esbuild/renameCssPlugin.mjs +31 -0
- package/dist/lib/{scripts → ScriptUtils}/esbuild/svelteWrapperPlugin.cjs +1 -1
- package/dist/lib/ScriptUtils/esbuild/svelteWrapperPlugin.d.mts +8 -0
- package/dist/lib/ScriptUtils/esbuild/svelteWrapperPlugin.mjs +41 -0
- package/dist/lib/{scripts → ScriptUtils}/format.cjs +1 -1
- package/dist/lib/ScriptUtils/format.d.mts +10 -0
- package/dist/lib/ScriptUtils/format.mjs +41 -0
- package/dist/lib/ScriptUtils/index.cjs +94 -0
- package/dist/lib/ScriptUtils/index.d.cts +17 -0
- package/dist/lib/ScriptUtils/index.d.mts +17 -0
- package/dist/lib/ScriptUtils/index.mjs +44 -0
- package/dist/lib/{scripts → ScriptUtils}/spellcheck.cjs +1 -1
- package/dist/lib/ScriptUtils/spellcheck.d.mts +14 -0
- package/dist/lib/ScriptUtils/spellcheck.mjs +15 -0
- package/dist/lib/ScriptUtils/version.cjs +389 -0
- package/dist/lib/ScriptUtils/version.d.mts +171 -0
- package/dist/lib/ScriptUtils/version.mjs +365 -0
- package/dist/lib/{String.d.ts → String.d.cts} +1 -1
- package/dist/lib/String.d.mts +138 -0
- package/dist/lib/Transformers/{DateTransformer.d.ts → DateTransformer.d.cts} +1 -1
- package/dist/lib/Transformers/DateTransformer.d.mts +35 -0
- package/dist/lib/Transformers/{DurationTransformer.d.ts → DurationTransformer.d.cts} +1 -1
- package/dist/lib/Transformers/DurationTransformer.d.mts +34 -0
- package/dist/lib/Transformers/{GroupTransformer.d.ts → GroupTransformer.d.cts} +1 -1
- package/dist/lib/Transformers/GroupTransformer.d.mts +65 -0
- package/dist/lib/Transformers/{SkipPrivatePropertyTransformer.d.ts → SkipPrivatePropertyTransformer.d.cts} +1 -1
- package/dist/lib/Transformers/SkipPrivatePropertyTransformer.d.mts +32 -0
- package/dist/lib/Transformers/Transformer.d.mts +67 -0
- package/dist/lib/Transformers/{TypedTransformer.d.ts → TypedTransformer.d.cts} +1 -1
- package/dist/lib/Transformers/TypedTransformer.d.mts +37 -0
- package/dist/lib/Transformers/index.cjs +61 -0
- package/dist/lib/Transformers/index.d.cts +6 -0
- package/dist/lib/Transformers/index.d.mts +6 -0
- package/dist/lib/Transformers/index.mjs +22 -0
- package/dist/lib/{ValueProvider.d.ts → ValueProvider.d.cts} +1 -1
- package/dist/lib/ValueProvider.d.mts +22 -0
- package/dist/lib/codemirror/StateFieldSpec.d.mts +68 -0
- package/dist/lib/codemirror/index.cjs +46 -0
- package/dist/lib/codemirror/index.d.cts +1 -0
- package/dist/lib/codemirror/index.d.mts +1 -0
- package/dist/lib/codemirror/index.mjs +12 -0
- package/dist/lib/index.cjs +13 -1
- package/dist/lib/index.d.cts +20 -0
- package/dist/lib/index.d.mts +20 -0
- package/dist/lib/index.mjs +9 -1
- package/dist/lib/obsidian/@types/Dataview/api/{data-array.d.ts → data-array.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/api/data-array.d.mts +136 -0
- package/dist/lib/obsidian/@types/Dataview/api/{extensions.d.ts → extensions.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/api/extensions.d.mts +15 -0
- package/dist/lib/obsidian/@types/Dataview/api/{inline-api.d.ts → inline-api.d.cts} +9 -9
- package/dist/lib/obsidian/@types/Dataview/api/inline-api.d.mts +186 -0
- package/dist/lib/obsidian/@types/Dataview/api/{plugin-api.d.ts → plugin-api.d.cts} +10 -10
- package/dist/lib/obsidian/@types/Dataview/api/plugin-api.d.mts +209 -0
- package/dist/lib/obsidian/@types/Dataview/api/result.d.mts +38 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/common.d.mts +3 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/{csv.d.ts → csv.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/data-import/csv.d.mts +3 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/{inline-field.d.ts → inline-field.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/data-import/inline-field.d.mts +42 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/{markdown-file.d.ts → markdown-file.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/data-import/markdown-file.d.mts +52 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/{persister.d.ts → persister.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/data-import/persister.d.mts +32 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/web-worker/import-entry.d.mts +1 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/web-worker/{import-impl.d.ts → import-impl.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/data-import/web-worker/import-impl.d.mts +6 -0
- package/dist/lib/obsidian/@types/Dataview/data-import/web-worker/import-manager.d.mts +37 -0
- package/dist/lib/obsidian/@types/Dataview/data-index/{index.d.ts → index.d.cts} +5 -5
- package/dist/lib/obsidian/@types/Dataview/data-index/index.d.mts +186 -0
- package/dist/lib/obsidian/@types/Dataview/data-index/{resolver.d.ts → resolver.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/data-index/resolver.d.mts +23 -0
- package/dist/lib/obsidian/@types/Dataview/data-index/source.d.mts +71 -0
- package/dist/lib/obsidian/@types/Dataview/data-model/{markdown.d.ts → markdown.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/data-model/markdown.d.mts +115 -0
- package/dist/lib/obsidian/@types/Dataview/data-model/serialized/{markdown.d.ts → markdown.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/data-model/serialized/markdown.d.mts +106 -0
- package/dist/lib/obsidian/@types/Dataview/data-model/transferable.d.mts +7 -0
- package/dist/lib/obsidian/@types/Dataview/data-model/{value.d.ts → value.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/data-model/value.d.mts +175 -0
- package/dist/lib/obsidian/@types/Dataview/expression/{binaryop.d.ts → binaryop.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/expression/binaryop.d.mts +43 -0
- package/dist/lib/obsidian/@types/Dataview/expression/{context.d.ts → context.d.cts} +6 -6
- package/dist/lib/obsidian/@types/Dataview/expression/context.d.mts +49 -0
- package/dist/lib/obsidian/@types/Dataview/expression/{field.d.ts → field.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/expression/field.d.mts +82 -0
- package/dist/lib/obsidian/@types/Dataview/expression/{functions.d.ts → functions.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/expression/functions.d.mts +149 -0
- package/dist/lib/obsidian/@types/Dataview/expression/{parse.d.ts → parse.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/expression/parse.d.mts +163 -0
- package/dist/lib/obsidian/@types/Dataview/{index.d.ts → index.d.cts} +11 -11
- package/dist/lib/obsidian/@types/Dataview/index.d.mts +55 -0
- package/dist/lib/obsidian/@types/Dataview/{main.d.ts → main.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/main.d.mts +52 -0
- package/dist/lib/obsidian/@types/Dataview/query/{engine.d.ts → engine.d.cts} +9 -9
- package/dist/lib/obsidian/@types/Dataview/query/engine.d.mts +103 -0
- package/dist/lib/obsidian/@types/Dataview/query/{parse.d.ts → parse.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/query/parse.d.mts +44 -0
- package/dist/lib/obsidian/@types/Dataview/query/{query.d.ts → query.d.cts} +2 -2
- package/dist/lib/obsidian/@types/Dataview/query/query.d.mts +95 -0
- package/dist/lib/obsidian/@types/Dataview/settings.d.mts +60 -0
- package/dist/lib/obsidian/@types/Dataview/typings/{obsidian-ex.d.ts → obsidian-ex.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/typings/obsidian-ex.d.mts +28 -0
- package/dist/lib/obsidian/@types/Dataview/typings/workers.d.mts +4 -0
- package/dist/lib/obsidian/@types/Dataview/ui/export/{markdown.d.ts → markdown.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/ui/export/markdown.d.mts +15 -0
- package/dist/lib/obsidian/@types/Dataview/ui/{lp-render.d.ts → lp-render.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/ui/lp-render.d.mts +37 -0
- package/dist/lib/obsidian/@types/Dataview/ui/{markdown.d.ts → markdown.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/ui/markdown.d.mts +86 -0
- package/dist/lib/obsidian/@types/Dataview/ui/{refreshable-view.d.ts → refreshable-view.d.cts} +2 -2
- package/dist/lib/obsidian/@types/Dataview/ui/refreshable-view.d.mts +18 -0
- package/dist/lib/obsidian/@types/Dataview/ui/{render.d.ts → render.d.cts} +2 -2
- package/dist/lib/obsidian/@types/Dataview/ui/render.d.mts +33 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{calendar-view.d.ts → calendar-view.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/ui/views/calendar-view.d.mts +17 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{inline-field-live-preview.d.ts → inline-field-live-preview.d.cts} +2 -2
- package/dist/lib/obsidian/@types/Dataview/ui/views/inline-field-live-preview.d.mts +42 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{inline-view.d.ts → inline-view.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/ui/views/inline-view.d.mts +28 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{js-view.d.ts → js-view.d.cts} +2 -2
- package/dist/lib/obsidian/@types/Dataview/ui/views/js-view.d.mts +23 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{list-view.d.ts → list-view.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/ui/views/list-view.d.mts +25 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{table-view.d.ts → table-view.d.cts} +3 -3
- package/dist/lib/obsidian/@types/Dataview/ui/views/table-view.d.mts +28 -0
- package/dist/lib/obsidian/@types/Dataview/ui/views/{task-view.d.ts → task-view.d.cts} +4 -4
- package/dist/lib/obsidian/@types/Dataview/ui/views/task-view.d.mts +51 -0
- package/dist/lib/obsidian/@types/Dataview/util/hash.d.mts +1 -0
- package/dist/lib/obsidian/@types/Dataview/util/locale.d.mts +2 -0
- package/dist/lib/obsidian/@types/Dataview/util/{media.d.ts → media.d.cts} +1 -1
- package/dist/lib/obsidian/@types/Dataview/util/media.d.mts +6 -0
- package/dist/lib/obsidian/@types/Dataview/util/{normalize.d.ts → normalize.d.cts} +2 -2
- package/dist/lib/obsidian/@types/Dataview/util/normalize.d.mts +44 -0
- package/dist/lib/obsidian/App.d.mts +30 -0
- package/dist/lib/obsidian/{AttachmentPath.d.ts → AttachmentPath.d.cts} +1 -1
- package/dist/lib/obsidian/AttachmentPath.d.mts +54 -0
- package/dist/lib/obsidian/{Backlink.d.ts → Backlink.d.cts} +2 -2
- package/dist/lib/obsidian/Backlink.d.mts +60 -0
- package/dist/lib/obsidian/{Callout.d.ts → Callout.d.cts} +2 -2
- package/dist/lib/obsidian/Callout.d.mts +55 -0
- package/dist/lib/obsidian/Components/{DateComponent.d.ts → DateComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/DateComponent.d.mts +36 -0
- package/dist/lib/obsidian/Components/{DateTimeComponent.d.ts → DateTimeComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/DateTimeComponent.d.mts +36 -0
- package/dist/lib/obsidian/Components/{EmailComponent.d.ts → EmailComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/EmailComponent.d.mts +29 -0
- package/dist/lib/obsidian/Components/{FileComponent.d.ts → FileComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/FileComponent.d.mts +41 -0
- package/dist/lib/obsidian/Components/{MonthComponent.d.ts → MonthComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/MonthComponent.d.mts +49 -0
- package/dist/lib/obsidian/Components/MultipleDropdownComponent.cjs +12 -1
- package/dist/lib/obsidian/Components/{MultipleDropdownComponent.d.ts → MultipleDropdownComponent.d.cts} +11 -4
- package/dist/lib/obsidian/Components/MultipleDropdownComponent.d.mts +73 -0
- package/dist/lib/obsidian/Components/MultipleDropdownComponent.mjs +12 -1
- package/dist/lib/obsidian/Components/{MultipleEmailComponent.d.ts → MultipleEmailComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/MultipleEmailComponent.d.mts +36 -0
- package/dist/lib/obsidian/Components/{MultipleFileComponent.d.ts → MultipleFileComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/MultipleFileComponent.d.mts +41 -0
- package/dist/lib/obsidian/Components/MultipleTextComponent.cjs +22 -1
- package/dist/lib/obsidian/Components/{MultipleTextComponent.d.ts → MultipleTextComponent.d.cts} +18 -4
- package/dist/lib/obsidian/Components/MultipleTextComponent.d.mts +67 -0
- package/dist/lib/obsidian/Components/MultipleTextComponent.mjs +22 -1
- package/dist/lib/obsidian/Components/{NumberComponent.d.ts → NumberComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/NumberComponent.d.mts +29 -0
- package/dist/lib/obsidian/Components/{TimeComponent.d.ts → TimeComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/TimeComponent.d.mts +37 -0
- package/dist/lib/obsidian/Components/{TypedRangeTextComponent.d.ts → TypedRangeTextComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/TypedRangeTextComponent.d.mts +31 -0
- package/dist/lib/obsidian/Components/TypedTextComponent.cjs +2 -1
- package/dist/lib/obsidian/Components/{TypedTextComponent.d.ts → TypedTextComponent.d.cts} +5 -5
- package/dist/lib/obsidian/Components/TypedTextComponent.d.mts +84 -0
- package/dist/lib/obsidian/Components/TypedTextComponent.mjs +2 -1
- package/dist/lib/obsidian/Components/{UrlComponent.d.ts → UrlComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/UrlComponent.d.mts +29 -0
- package/dist/lib/obsidian/Components/{ValidatorComponent.d.ts → ValidatorComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/ValidatorComponent.d.mts +22 -0
- package/dist/lib/obsidian/Components/{ValueComponentWithChangeTracking.d.ts → ValueComponentWithChangeTracking.d.cts} +1 -1
- package/dist/lib/obsidian/Components/ValueComponentWithChangeTracking.d.mts +17 -0
- package/dist/lib/obsidian/Components/{WeekComponent.d.ts → WeekComponent.d.cts} +1 -1
- package/dist/lib/obsidian/Components/WeekComponent.d.mts +49 -0
- package/dist/lib/obsidian/Components/index.cjs +94 -0
- package/dist/lib/obsidian/Components/index.d.cts +17 -0
- package/dist/lib/obsidian/Components/index.d.mts +17 -0
- package/dist/lib/obsidian/Components/index.mjs +44 -0
- package/dist/lib/obsidian/{Dataview.d.ts → Dataview.d.cts} +6 -6
- package/dist/lib/obsidian/Dataview.d.mts +215 -0
- package/dist/lib/obsidian/{DataviewLink.d.ts → DataviewLink.d.cts} +2 -2
- package/dist/lib/obsidian/DataviewLink.d.mts +23 -0
- package/dist/lib/obsidian/{FileChange.d.ts → FileChange.d.cts} +3 -3
- package/dist/lib/obsidian/FileChange.d.mts +68 -0
- package/dist/lib/obsidian/{FileManager.d.ts → FileManager.d.cts} +4 -4
- package/dist/lib/obsidian/FileManager.d.mts +38 -0
- package/dist/lib/obsidian/FileSystem.d.mts +185 -0
- package/dist/lib/obsidian/Frontmatter.d.mts +69 -0
- package/dist/lib/obsidian/{Link.d.ts → Link.d.cts} +3 -3
- package/dist/lib/obsidian/Link.d.mts +366 -0
- package/dist/lib/obsidian/{Logger.d.ts → Logger.d.cts} +1 -1
- package/dist/lib/obsidian/Logger.d.mts +13 -0
- package/dist/lib/obsidian/{Loop.d.ts → Loop.d.cts} +1 -1
- package/dist/lib/obsidian/Loop.d.mts +36 -0
- package/dist/lib/obsidian/Markdown.d.mts +24 -0
- package/dist/lib/obsidian/{MarkdownCodeBlockProcessor.d.ts → MarkdownCodeBlockProcessor.d.cts} +1 -1
- package/dist/lib/obsidian/MarkdownCodeBlockProcessor.d.mts +23 -0
- package/dist/lib/obsidian/MarkdownView.d.mts +12 -0
- package/dist/lib/obsidian/{MetadataCache.d.ts → MetadataCache.d.cts} +3 -3
- package/dist/lib/obsidian/MetadataCache.d.mts +87 -0
- package/dist/lib/obsidian/Modals/Alert.d.mts +39 -0
- package/dist/lib/obsidian/Modals/Confirm.d.mts +43 -0
- package/dist/lib/obsidian/Modals/{ModalBase.d.ts → ModalBase.d.cts} +1 -1
- package/dist/lib/obsidian/Modals/ModalBase.d.mts +35 -0
- package/dist/lib/obsidian/Modals/Prompt.cjs +2 -2
- package/dist/lib/obsidian/Modals/{Prompt.d.ts → Prompt.d.cts} +1 -1
- package/dist/lib/obsidian/Modals/Prompt.d.mts +50 -0
- package/dist/lib/obsidian/Modals/Prompt.mjs +2 -2
- package/dist/lib/obsidian/Modals/SelectItem.d.mts +41 -0
- package/dist/lib/obsidian/Modals/index.cjs +58 -0
- package/dist/lib/obsidian/Modals/index.d.cts +5 -0
- package/dist/lib/obsidian/Modals/index.d.mts +5 -0
- package/dist/lib/obsidian/Modals/index.mjs +20 -0
- package/dist/lib/obsidian/ObsidianSettings.d.mts +17 -0
- package/dist/lib/obsidian/Pdf.d.mts +24 -0
- package/dist/lib/obsidian/Plugin/{EmptySettings.d.ts → EmptySettings.d.cts} +1 -1
- package/dist/lib/obsidian/Plugin/EmptySettings.d.mts +14 -0
- package/dist/lib/obsidian/Plugin/ObsidianPluginRepoPaths.d.mts +55 -0
- package/dist/lib/obsidian/Plugin/Plugin.d.mts +21 -0
- package/dist/lib/obsidian/Plugin/{PluginBase.d.ts → PluginBase.d.cts} +3 -3
- package/dist/lib/obsidian/Plugin/PluginBase.d.mts +108 -0
- package/dist/lib/obsidian/Plugin/PluginContext.d.mts +12 -0
- package/dist/lib/obsidian/Plugin/PluginId.d.mts +20 -0
- package/dist/lib/obsidian/Plugin/{PluginSettingsBase.d.ts → PluginSettingsBase.d.cts} +1 -1
- package/dist/lib/obsidian/Plugin/PluginSettingsBase.d.mts +31 -0
- package/dist/lib/obsidian/Plugin/{PluginSettingsTabBase.d.ts → PluginSettingsTabBase.d.cts} +5 -5
- package/dist/lib/obsidian/Plugin/PluginSettingsTabBase.d.mts +99 -0
- package/dist/lib/obsidian/Plugin/index.cjs +67 -0
- package/dist/lib/obsidian/Plugin/index.d.cts +8 -0
- package/dist/lib/obsidian/Plugin/index.d.mts +8 -0
- package/dist/lib/obsidian/Plugin/index.mjs +26 -0
- package/dist/lib/obsidian/{Queue.d.ts → Queue.d.cts} +1 -1
- package/dist/lib/obsidian/Queue.d.mts +30 -0
- package/dist/lib/obsidian/{Reference.d.ts → Reference.d.cts} +1 -1
- package/dist/lib/obsidian/Reference.d.mts +21 -0
- package/dist/lib/obsidian/RenameDeleteHandler.d.mts +49 -0
- package/dist/lib/obsidian/ResourceUrl.d.mts +14 -0
- package/dist/lib/obsidian/{SettingEx.d.ts → SettingEx.d.cts} +13 -13
- package/dist/lib/obsidian/SettingEx.d.mts +124 -0
- package/dist/lib/obsidian/{Vault.d.ts → Vault.d.cts} +3 -3
- package/dist/lib/obsidian/Vault.d.mts +130 -0
- package/dist/lib/obsidian/{VaultEx.d.ts → VaultEx.d.cts} +1 -1
- package/dist/lib/obsidian/VaultEx.d.mts +27 -0
- package/dist/lib/obsidian/index.cjs +130 -0
- package/dist/lib/obsidian/index.d.cts +29 -0
- package/dist/lib/obsidian/index.d.mts +29 -0
- package/dist/lib/obsidian/index.mjs +68 -0
- package/dist/lib/url.d.mts +11 -0
- package/index/package.json +6 -0
- package/obsidian/@types/Dataview/api/data-array/package.json +4 -0
- package/obsidian/@types/Dataview/api/extensions/package.json +4 -0
- package/obsidian/@types/Dataview/api/inline-api/package.json +4 -0
- package/obsidian/@types/Dataview/api/plugin-api/package.json +4 -0
- package/obsidian/@types/Dataview/api/result/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/common/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/csv/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/inline-field/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/markdown-file/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/persister/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/web-worker/import-entry/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/web-worker/import-impl/package.json +4 -0
- package/obsidian/@types/Dataview/data-import/web-worker/import-manager/package.json +4 -0
- package/obsidian/@types/Dataview/data-index/index/package.json +4 -0
- package/obsidian/@types/Dataview/data-index/package.json +4 -0
- package/obsidian/@types/Dataview/data-index/resolver/package.json +4 -0
- package/obsidian/@types/Dataview/data-index/source/package.json +4 -0
- package/obsidian/@types/Dataview/data-model/markdown/package.json +4 -0
- package/obsidian/@types/Dataview/data-model/serialized/markdown/package.json +4 -0
- package/obsidian/@types/Dataview/data-model/transferable/package.json +4 -0
- package/obsidian/@types/Dataview/data-model/value/package.json +4 -0
- package/obsidian/@types/Dataview/expression/binaryop/package.json +4 -0
- package/obsidian/@types/Dataview/expression/context/package.json +4 -0
- package/obsidian/@types/Dataview/expression/field/package.json +4 -0
- package/obsidian/@types/Dataview/expression/functions/package.json +4 -0
- package/obsidian/@types/Dataview/expression/parse/package.json +4 -0
- package/obsidian/@types/Dataview/index/package.json +4 -0
- package/obsidian/@types/Dataview/main/package.json +4 -0
- package/obsidian/@types/Dataview/package.json +4 -0
- package/obsidian/@types/Dataview/query/engine/package.json +4 -0
- package/obsidian/@types/Dataview/query/parse/package.json +4 -0
- package/obsidian/@types/Dataview/query/query/package.json +4 -0
- package/obsidian/@types/Dataview/settings/package.json +4 -0
- package/obsidian/@types/Dataview/typings/obsidian-ex/package.json +4 -0
- package/obsidian/@types/Dataview/typings/workers/package.json +4 -0
- package/obsidian/@types/Dataview/ui/export/markdown/package.json +4 -0
- package/obsidian/@types/Dataview/ui/lp-render/package.json +4 -0
- package/obsidian/@types/Dataview/ui/markdown/package.json +4 -0
- package/obsidian/@types/Dataview/ui/refreshable-view/package.json +4 -0
- package/obsidian/@types/Dataview/ui/render/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/calendar-view/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/inline-field-live-preview/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/inline-view/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/js-view/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/list-view/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/table-view/package.json +4 -0
- package/obsidian/@types/Dataview/ui/views/task-view/package.json +4 -0
- package/obsidian/@types/Dataview/util/hash/package.json +4 -0
- package/obsidian/@types/Dataview/util/locale/package.json +4 -0
- package/obsidian/@types/Dataview/util/media/package.json +4 -0
- package/obsidian/@types/Dataview/util/normalize/package.json +4 -0
- package/obsidian/App/package.json +6 -0
- package/obsidian/AttachmentPath/package.json +6 -0
- package/obsidian/Backlink/package.json +6 -0
- package/obsidian/Callout/package.json +6 -0
- package/obsidian/Components/DateComponent/package.json +6 -0
- package/obsidian/Components/DateTimeComponent/package.json +6 -0
- package/obsidian/Components/EmailComponent/package.json +6 -0
- package/obsidian/Components/FileComponent/package.json +6 -0
- package/obsidian/Components/MonthComponent/package.json +6 -0
- package/obsidian/Components/MultipleDropdownComponent/package.json +6 -0
- package/obsidian/Components/MultipleEmailComponent/package.json +6 -0
- package/obsidian/Components/MultipleFileComponent/package.json +6 -0
- package/obsidian/Components/MultipleTextComponent/package.json +6 -0
- package/obsidian/Components/NumberComponent/package.json +6 -0
- package/obsidian/Components/TimeComponent/package.json +6 -0
- package/obsidian/Components/TypedRangeTextComponent/package.json +6 -0
- package/obsidian/Components/TypedTextComponent/package.json +6 -0
- package/obsidian/Components/UrlComponent/package.json +6 -0
- package/obsidian/Components/ValidatorComponent/package.json +6 -0
- package/obsidian/Components/ValueComponentWithChangeTracking/package.json +6 -0
- package/obsidian/Components/WeekComponent/package.json +6 -0
- package/obsidian/Components/index/package.json +6 -0
- package/obsidian/Components/package.json +6 -0
- package/obsidian/Dataview/package.json +6 -0
- package/obsidian/DataviewLink/package.json +6 -0
- package/obsidian/FileChange/package.json +6 -0
- package/obsidian/FileManager/package.json +6 -0
- package/obsidian/FileSystem/package.json +6 -0
- package/obsidian/Frontmatter/package.json +6 -0
- package/obsidian/Link/package.json +6 -0
- package/obsidian/Logger/package.json +6 -0
- package/obsidian/Loop/package.json +6 -0
- package/obsidian/Markdown/package.json +6 -0
- package/obsidian/MarkdownCodeBlockProcessor/package.json +6 -0
- package/obsidian/MarkdownView/package.json +6 -0
- package/obsidian/MetadataCache/package.json +6 -0
- package/obsidian/Modals/Alert/package.json +6 -0
- package/obsidian/Modals/Confirm/package.json +6 -0
- package/obsidian/Modals/ModalBase/package.json +6 -0
- package/obsidian/Modals/Prompt/package.json +6 -0
- package/obsidian/Modals/SelectItem/package.json +6 -0
- package/obsidian/Modals/index/package.json +6 -0
- package/obsidian/Modals/package.json +6 -0
- package/obsidian/ObsidianSettings/package.json +6 -0
- package/obsidian/Pdf/package.json +6 -0
- package/obsidian/Plugin/EmptySettings/package.json +6 -0
- package/obsidian/Plugin/ObsidianPluginRepoPaths/package.json +6 -0
- package/obsidian/Plugin/Plugin/package.json +6 -0
- package/obsidian/Plugin/PluginBase/package.json +6 -0
- package/obsidian/Plugin/PluginContext/package.json +6 -0
- package/obsidian/Plugin/PluginId/package.json +6 -0
- package/obsidian/Plugin/PluginSettingsBase/package.json +6 -0
- package/obsidian/Plugin/PluginSettingsTabBase/package.json +6 -0
- package/obsidian/Plugin/index/package.json +6 -0
- package/obsidian/Plugin/package.json +6 -0
- package/obsidian/Queue/package.json +6 -0
- package/obsidian/Reference/package.json +6 -0
- package/obsidian/RenameDeleteHandler/package.json +6 -0
- package/obsidian/ResourceUrl/package.json +6 -0
- package/obsidian/SettingEx/package.json +6 -0
- package/obsidian/Vault/package.json +6 -0
- package/obsidian/VaultEx/package.json +6 -0
- package/obsidian/index/package.json +6 -0
- package/obsidian/package.json +6 -0
- package/package.json +186 -315
- package/url/package.json +6 -0
- package/dist/lib/index.d.ts +0 -16
- package/dist/lib/scripts/CliUtils.cjs +0 -161
- package/dist/lib/scripts/CliUtils.mjs +0 -135
- package/dist/lib/scripts/CodeGenerator.mjs +0 -19
- package/dist/lib/scripts/ESLint/ESLint.mjs +0 -28
- package/dist/lib/scripts/ESLint/eslint.config.cjs +0 -328
- package/dist/lib/scripts/ESLint/eslint.config.mjs +0 -294
- package/dist/lib/scripts/Exec.cjs +0 -119
- package/dist/lib/scripts/Exec.mjs +0 -98
- package/dist/lib/scripts/Fs.cjs +0 -85
- package/dist/lib/scripts/Fs.mjs +0 -64
- package/dist/lib/scripts/JSON.cjs +0 -83
- package/dist/lib/scripts/JSON.mjs +0 -60
- package/dist/lib/scripts/NodeModules.mjs +0 -62
- package/dist/lib/scripts/Npm.cjs +0 -138
- package/dist/lib/scripts/Npm.mjs +0 -106
- package/dist/lib/scripts/NpmPublish.mjs +0 -21
- package/dist/lib/scripts/ObsidianDevUtilsRepoPaths.cjs +0 -72
- package/dist/lib/scripts/ObsidianDevUtilsRepoPaths.mjs +0 -48
- package/dist/lib/scripts/Root.cjs +0 -88
- package/dist/lib/scripts/Root.mjs +0 -66
- package/dist/lib/scripts/build.cjs +0 -82
- package/dist/lib/scripts/build.mjs +0 -60
- package/dist/lib/scripts/cli.cjs +0 -88
- package/dist/lib/scripts/cli.mjs +0 -65
- package/dist/lib/scripts/esbuild/Dependency.cjs +0 -122
- package/dist/lib/scripts/esbuild/Dependency.mjs +0 -95
- package/dist/lib/scripts/esbuild/ObsidianPluginBuilder.cjs +0 -178
- package/dist/lib/scripts/esbuild/ObsidianPluginBuilder.mjs +0 -149
- package/dist/lib/scripts/esbuild/changeExtensionPlugin.cjs +0 -67
- package/dist/lib/scripts/esbuild/changeExtensionPlugin.mjs +0 -43
- package/dist/lib/scripts/esbuild/copyToObsidianPluginsFolderPlugin.cjs +0 -66
- package/dist/lib/scripts/esbuild/copyToObsidianPluginsFolderPlugin.mjs +0 -50
- package/dist/lib/scripts/esbuild/fixEsmPlugin.mjs +0 -25
- package/dist/lib/scripts/esbuild/fixSourceMapsPlugin.cjs +0 -75
- package/dist/lib/scripts/esbuild/fixSourceMapsPlugin.mjs +0 -55
- package/dist/lib/scripts/esbuild/preprocessPlugin.cjs +0 -146
- package/dist/lib/scripts/esbuild/preprocessPlugin.mjs +0 -128
- package/dist/lib/scripts/esbuild/renameCssPlugin.mjs +0 -31
- package/dist/lib/scripts/esbuild/svelteWrapperPlugin.mjs +0 -41
- package/dist/lib/scripts/format.mjs +0 -41
- package/dist/lib/scripts/spellcheck.mjs +0 -15
- package/dist/lib/scripts/version.cjs +0 -389
- package/dist/lib/scripts/version.mjs +0 -365
- /package/dist/lib/@types/{debug.d.ts → debug.d.cts} +0 -0
- /package/dist/lib/{Async.d.ts → Async.d.cts} +0 -0
- /package/dist/lib/{Blob.d.ts → Blob.d.cts} +0 -0
- /package/dist/lib/{CssClass.d.ts → CssClass.d.cts} +0 -0
- /package/dist/lib/{DebugController.d.ts → DebugController.d.cts} +0 -0
- /package/dist/lib/{Enum.d.ts → Enum.d.cts} +0 -0
- /package/dist/lib/{Error.d.ts → Error.d.cts} +0 -0
- /package/dist/lib/{Function.d.ts → Function.d.cts} +0 -0
- /package/dist/lib/{HTMLElement.d.ts → HTMLElement.d.cts} +0 -0
- /package/dist/lib/{Library.d.ts → Library.d.cts} +0 -0
- /package/dist/lib/{Object.d.ts → Object.d.cts} +0 -0
- /package/dist/lib/{Path.d.ts → Path.d.cts} +0 -0
- /package/dist/lib/{RegExp.d.ts → RegExp.d.cts} +0 -0
- /package/dist/lib/{scripts/CodeGenerator.d.ts → ScriptUtils/CodeGenerator.d.cts} +0 -0
- /package/dist/lib/{scripts/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.ts → ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.cts} +0 -0
- /package/dist/lib/{scripts/ESLint/@types/eslint-plugin-modules-newlines.d.ts → ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines.d.cts} +0 -0
- /package/dist/lib/{scripts/ESLint/@types/eslint-plugin-verify-tsdoc.d.ts → ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc.d.cts} +0 -0
- /package/dist/lib/{scripts/ESLint/ESLint.d.ts → ScriptUtils/ESLint/ESLint.d.cts} +0 -0
- /package/dist/lib/{scripts/ESLint/eslint.config.d.ts → ScriptUtils/ESLint/eslint.config.d.cts} +0 -0
- /package/dist/lib/{scripts/Exec.d.ts → ScriptUtils/Exec.d.cts} +0 -0
- /package/dist/lib/{scripts/NodeModules.d.ts → ScriptUtils/NodeModules.d.cts} +0 -0
- /package/dist/lib/{scripts/NpmPublish.d.ts → ScriptUtils/NpmPublish.d.cts} +0 -0
- /package/dist/lib/{scripts/build.d.ts → ScriptUtils/build.d.cts} +0 -0
- /package/dist/lib/{scripts/cli.d.ts → ScriptUtils/cli.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/Dependency.d.ts → ScriptUtils/esbuild/Dependency.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/changeExtensionPlugin.d.ts → ScriptUtils/esbuild/changeExtensionPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/copyToObsidianPluginsFolderPlugin.d.ts → ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/fixEsmPlugin.d.ts → ScriptUtils/esbuild/fixEsmPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/fixSourceMapsPlugin.d.ts → ScriptUtils/esbuild/fixSourceMapsPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/preprocessPlugin.d.ts → ScriptUtils/esbuild/preprocessPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/renameCssPlugin.d.ts → ScriptUtils/esbuild/renameCssPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/esbuild/svelteWrapperPlugin.d.ts → ScriptUtils/esbuild/svelteWrapperPlugin.d.cts} +0 -0
- /package/dist/lib/{scripts/format.d.ts → ScriptUtils/format.d.cts} +0 -0
- /package/dist/lib/{scripts/spellcheck.d.ts → ScriptUtils/spellcheck.d.cts} +0 -0
- /package/dist/lib/{scripts/version.d.ts → ScriptUtils/version.d.cts} +0 -0
- /package/dist/lib/Transformers/{Transformer.d.ts → Transformer.d.cts} +0 -0
- /package/dist/lib/codemirror/{StateFieldSpec.d.ts → StateFieldSpec.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/api/{result.d.ts → result.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/data-import/{common.d.ts → common.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/data-import/web-worker/{import-entry.d.ts → import-entry.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/data-import/web-worker/{import-manager.d.ts → import-manager.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/data-index/{source.d.ts → source.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/data-model/{transferable.d.ts → transferable.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/{settings.d.ts → settings.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/typings/{workers.d.ts → workers.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/util/{hash.d.ts → hash.d.cts} +0 -0
- /package/dist/lib/obsidian/@types/Dataview/util/{locale.d.ts → locale.d.cts} +0 -0
- /package/dist/lib/obsidian/{App.d.ts → App.d.cts} +0 -0
- /package/dist/lib/obsidian/{FileSystem.d.ts → FileSystem.d.cts} +0 -0
- /package/dist/lib/obsidian/{Frontmatter.d.ts → Frontmatter.d.cts} +0 -0
- /package/dist/lib/obsidian/{Markdown.d.ts → Markdown.d.cts} +0 -0
- /package/dist/lib/obsidian/{MarkdownView.d.ts → MarkdownView.d.cts} +0 -0
- /package/dist/lib/obsidian/Modals/{Alert.d.ts → Alert.d.cts} +0 -0
- /package/dist/lib/obsidian/Modals/{Confirm.d.ts → Confirm.d.cts} +0 -0
- /package/dist/lib/obsidian/Modals/{SelectItem.d.ts → SelectItem.d.cts} +0 -0
- /package/dist/lib/obsidian/{ObsidianSettings.d.ts → ObsidianSettings.d.cts} +0 -0
- /package/dist/lib/obsidian/{Pdf.d.ts → Pdf.d.cts} +0 -0
- /package/dist/lib/obsidian/Plugin/{ObsidianPluginRepoPaths.d.ts → ObsidianPluginRepoPaths.d.cts} +0 -0
- /package/dist/lib/obsidian/Plugin/{Plugin.d.ts → Plugin.d.cts} +0 -0
- /package/dist/lib/obsidian/Plugin/{PluginContext.d.ts → PluginContext.d.cts} +0 -0
- /package/dist/lib/obsidian/Plugin/{PluginId.d.ts → PluginId.d.cts} +0 -0
- /package/dist/lib/obsidian/{RenameDeleteHandler.d.ts → RenameDeleteHandler.d.cts} +0 -0
- /package/dist/lib/obsidian/{ResourceUrl.d.ts → ResourceUrl.d.cts} +0 -0
- /package/dist/lib/{url.d.ts → url.d.cts} +0 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Frontmatter
|
3
|
+
* This module provides utility functions for processing and managing YAML front matter in Obsidian notes.
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* Represents the combined front matter of a document.
|
7
|
+
* It is a union of custom front matter, Obsidian front matter, and additional properties.
|
8
|
+
* @typeParam CustomFrontmatter - The type of custom front matter.
|
9
|
+
*/
|
10
|
+
export type CombinedFrontmatter<CustomFrontmatter> = CustomFrontmatter & ObsidianFrontmatter & Record<string, unknown>;
|
11
|
+
/**
|
12
|
+
* Represents the front matter of an Obsidian file.
|
13
|
+
* @see {@link https://help.obsidian.md/Editing+and+formatting/Properties#Default+properties}
|
14
|
+
*/
|
15
|
+
export interface ObsidianFrontmatter {
|
16
|
+
/**
|
17
|
+
* An array of aliases for the note.
|
18
|
+
*/
|
19
|
+
aliases?: string[];
|
20
|
+
/**
|
21
|
+
* An array of CSS classes to apply to the note.
|
22
|
+
*/
|
23
|
+
cssclasses?: string[];
|
24
|
+
/**
|
25
|
+
* An array of tags for the note.
|
26
|
+
*/
|
27
|
+
tags?: string[];
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Represents the front matter for publishing in Obsidian.
|
31
|
+
* @see {@link https://help.obsidian.md/Editing+and+formatting/Properties#Properties+for+Obsidian+Publish}
|
32
|
+
*/
|
33
|
+
export interface ObsidianPublishFrontmatter {
|
34
|
+
/**
|
35
|
+
* The cover image for the note.
|
36
|
+
*/
|
37
|
+
cover?: string;
|
38
|
+
/**
|
39
|
+
* The description for the note.
|
40
|
+
*/
|
41
|
+
description?: string;
|
42
|
+
/**
|
43
|
+
* The image for the note.
|
44
|
+
*/
|
45
|
+
image?: string;
|
46
|
+
/**
|
47
|
+
* The permanent link for the note.
|
48
|
+
*/
|
49
|
+
permalink?: string;
|
50
|
+
/**
|
51
|
+
* Whether the note is published.
|
52
|
+
*/
|
53
|
+
publish?: boolean;
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* Parses the front matter of a given content string.
|
57
|
+
*
|
58
|
+
* @param content - The content string to parse.
|
59
|
+
* @returns The parsed front matter.
|
60
|
+
*/
|
61
|
+
export declare function parseFrontmatter<CustomFrontmatter = unknown>(content: string): CombinedFrontmatter<CustomFrontmatter>;
|
62
|
+
/**
|
63
|
+
* Sets the front matter of a given content string.
|
64
|
+
*
|
65
|
+
* @param content - The content string to set the front matter in.
|
66
|
+
* @param newFrontmatter - The new front matter to set.
|
67
|
+
* @returns The new content string with the front matter set.
|
68
|
+
*/
|
69
|
+
export declare function setFrontmatter(content: string, newFrontmatter: object): string;
|
@@ -5,9 +5,9 @@
|
|
5
5
|
* The functions integrate with Obsidian's API to ensure that links are managed correctly within the vault.
|
6
6
|
*/
|
7
7
|
import type { App, Reference, TFile } from 'obsidian';
|
8
|
-
import type { MaybePromise } from '../Async.
|
9
|
-
import type { PathOrFile } from './FileSystem.
|
10
|
-
import type { ProcessOptions } from './Vault.
|
8
|
+
import type { MaybePromise } from '../Async.cjs';
|
9
|
+
import type { PathOrFile } from './FileSystem.cjs';
|
10
|
+
import type { ProcessOptions } from './Vault.cjs';
|
11
11
|
/**
|
12
12
|
* Options for converting a link.
|
13
13
|
*/
|
@@ -0,0 +1,366 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Link
|
3
|
+
* This module provides utilities for handling and updating links within Obsidian vaults. It includes
|
4
|
+
* functions to split paths, update links in files, and generate markdown links with various options.
|
5
|
+
* The functions integrate with Obsidian's API to ensure that links are managed correctly within the vault.
|
6
|
+
*/
|
7
|
+
import type { App, Reference, TFile } from 'obsidian';
|
8
|
+
import type { MaybePromise } from '../Async.mjs';
|
9
|
+
import type { PathOrFile } from './FileSystem.mjs';
|
10
|
+
import type { ProcessOptions } from './Vault.mjs';
|
11
|
+
/**
|
12
|
+
* Options for converting a link.
|
13
|
+
*/
|
14
|
+
export interface ConvertLinkOptions {
|
15
|
+
/**
|
16
|
+
* The Obsidian app instance.
|
17
|
+
*/
|
18
|
+
app: App;
|
19
|
+
/**
|
20
|
+
* The reference for the link.
|
21
|
+
*/
|
22
|
+
link: Reference;
|
23
|
+
/**
|
24
|
+
* The source file containing the link.
|
25
|
+
*/
|
26
|
+
newSourcePathOrFile: PathOrFile;
|
27
|
+
/**
|
28
|
+
* The old path of the link.
|
29
|
+
*/
|
30
|
+
oldSourcePathOrFile?: PathOrFile;
|
31
|
+
/**
|
32
|
+
* Whether to force markdown links.
|
33
|
+
*/
|
34
|
+
shouldForceMarkdownLinks?: boolean;
|
35
|
+
/**
|
36
|
+
* Whether to update filename alias. Defaults to `true`.
|
37
|
+
*/
|
38
|
+
shouldUpdateFilenameAlias?: boolean;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Wrapper for default options for generating markdown links.
|
42
|
+
*/
|
43
|
+
export interface GenerateMarkdownLinkDefaultOptionsWrapper {
|
44
|
+
/**
|
45
|
+
* The default options for generating markdown links.
|
46
|
+
*/
|
47
|
+
defaultOptionsFn: () => Partial<GenerateMarkdownLinkOptions>;
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Options for generating a markdown link.
|
51
|
+
*/
|
52
|
+
export interface GenerateMarkdownLinkOptions {
|
53
|
+
/**
|
54
|
+
* The alias for the link.
|
55
|
+
*/
|
56
|
+
alias?: string;
|
57
|
+
/**
|
58
|
+
* The Obsidian app instance.
|
59
|
+
*/
|
60
|
+
app: App;
|
61
|
+
/**
|
62
|
+
* Indicates if the link should be embedded. If not provided, it will be inferred based on the file type.
|
63
|
+
*/
|
64
|
+
isEmbed?: boolean;
|
65
|
+
/**
|
66
|
+
* Whether to allow an empty alias for embeds. Defaults to `true`.
|
67
|
+
*/
|
68
|
+
isEmptyEmbedAliasAllowed?: boolean;
|
69
|
+
/**
|
70
|
+
* Whether to allow non-existing files. If `false` and `pathOrFile` is a non-existing file, an error will be thrown. Defaults to `false`.
|
71
|
+
*/
|
72
|
+
isNonExistingFileAllowed?: boolean;
|
73
|
+
/**
|
74
|
+
* Indicates if the link should be a wikilink. If not provided, it will be inferred based on the Obsidian settings.
|
75
|
+
*/
|
76
|
+
isWikilink?: boolean;
|
77
|
+
/**
|
78
|
+
* The original link text. If provided, it will be used to infer the values of `isEmbed`, `isWikilink`, `useLeadingDot`, and `useAngleBrackets`.
|
79
|
+
* These inferred values will be overridden by corresponding settings if specified.
|
80
|
+
*/
|
81
|
+
originalLink?: string;
|
82
|
+
/**
|
83
|
+
* Indicates if the link should be relative. If not provided or `false`, it will be inferred based on the Obsidian settings.
|
84
|
+
*/
|
85
|
+
shouldForceRelativePath?: boolean;
|
86
|
+
/**
|
87
|
+
* Whether to include the attachment extension in the embed alias. Has no effect if `allowEmptyEmbedAlias` is `true`. Defaults to `false`.
|
88
|
+
*/
|
89
|
+
shouldIncludeAttachmentExtensionToEmbedAlias?: boolean;
|
90
|
+
/**
|
91
|
+
* Indicates if the link should use angle brackets. Defaults to `false`. Has no effect if `isWikilink` is `true`
|
92
|
+
*/
|
93
|
+
shouldUseAngleBrackets?: boolean;
|
94
|
+
/**
|
95
|
+
* Indicates if the link should use a leading dot. Defaults to `false`. Has no effect if `isWikilink` is `true` or `isRelative` is `false`.
|
96
|
+
*/
|
97
|
+
shouldUseLeadingDot?: boolean;
|
98
|
+
/**
|
99
|
+
* The source path of the link.
|
100
|
+
*/
|
101
|
+
sourcePathOrFile: PathOrFile;
|
102
|
+
/**
|
103
|
+
* The subpath of the link.
|
104
|
+
*/
|
105
|
+
subpath?: string;
|
106
|
+
/**
|
107
|
+
* The target path or file.
|
108
|
+
*/
|
109
|
+
targetPathOrFile: PathOrFile;
|
110
|
+
}
|
111
|
+
/**
|
112
|
+
* The result of parsing a link.
|
113
|
+
*/
|
114
|
+
export interface ParseLinkResult {
|
115
|
+
/**
|
116
|
+
* The alias of the link.
|
117
|
+
*/
|
118
|
+
alias?: string;
|
119
|
+
/**
|
120
|
+
* Indicates if the link has angle brackets.
|
121
|
+
*/
|
122
|
+
hasAngleBrackets?: boolean;
|
123
|
+
/**
|
124
|
+
* Indicates if the link is an embed link.
|
125
|
+
*/
|
126
|
+
isEmbed: boolean;
|
127
|
+
/**
|
128
|
+
* Indicates if the link is external.
|
129
|
+
*/
|
130
|
+
isExternal?: boolean;
|
131
|
+
/**
|
132
|
+
* Indicates if the link is a wikilink.
|
133
|
+
*/
|
134
|
+
isWikilink: boolean;
|
135
|
+
/**
|
136
|
+
* The title of the link.
|
137
|
+
*/
|
138
|
+
title?: string;
|
139
|
+
/**
|
140
|
+
* The URL of the link.
|
141
|
+
*/
|
142
|
+
url: string;
|
143
|
+
}
|
144
|
+
/**
|
145
|
+
* Options for determining if the alias of a link should be reset.
|
146
|
+
*/
|
147
|
+
export interface ShouldResetAliasOptions {
|
148
|
+
/**
|
149
|
+
* The Obsidian app instance.
|
150
|
+
*/
|
151
|
+
app: App;
|
152
|
+
/**
|
153
|
+
* The display text of the link.
|
154
|
+
*/
|
155
|
+
displayText: string | undefined;
|
156
|
+
/**
|
157
|
+
* Indicates if the link is a wikilink.
|
158
|
+
*/
|
159
|
+
isWikilink?: boolean;
|
160
|
+
/**
|
161
|
+
* The source path of the link.
|
162
|
+
*/
|
163
|
+
newSourcePathOrFile: PathOrFile;
|
164
|
+
/**
|
165
|
+
* The old source file containing the link.
|
166
|
+
*/
|
167
|
+
oldSourcePathOrFile?: PathOrFile;
|
168
|
+
/**
|
169
|
+
* The old target path of the link.
|
170
|
+
*/
|
171
|
+
oldTargetPath: PathOrFile;
|
172
|
+
/**
|
173
|
+
* The target path or file.
|
174
|
+
*/
|
175
|
+
targetPathOrFile: PathOrFile;
|
176
|
+
}
|
177
|
+
/**
|
178
|
+
* Splits a link into its link path and subpath.
|
179
|
+
*/
|
180
|
+
export interface SplitSubpathResult {
|
181
|
+
/**
|
182
|
+
* The link path.
|
183
|
+
*/
|
184
|
+
linkPath: string;
|
185
|
+
/**
|
186
|
+
* The subpath.
|
187
|
+
*/
|
188
|
+
subpath: string;
|
189
|
+
}
|
190
|
+
/**
|
191
|
+
* Options for updating a link.
|
192
|
+
*/
|
193
|
+
export interface UpdateLinkOptions {
|
194
|
+
/**
|
195
|
+
* The Obsidian app instance.
|
196
|
+
*/
|
197
|
+
app: App;
|
198
|
+
/**
|
199
|
+
* The reference for the link.
|
200
|
+
*/
|
201
|
+
link: Reference;
|
202
|
+
/**
|
203
|
+
* The source file containing the link.
|
204
|
+
*/
|
205
|
+
newSourcePathOrFile: PathOrFile;
|
206
|
+
/**
|
207
|
+
* The file associated with the link.
|
208
|
+
*/
|
209
|
+
newTargetPathOrFile: PathOrFile;
|
210
|
+
/**
|
211
|
+
* The old source file containing the link.
|
212
|
+
*/
|
213
|
+
oldSourcePathOrFile?: PathOrFile;
|
214
|
+
/**
|
215
|
+
* The old path of the file.
|
216
|
+
*/
|
217
|
+
oldTargetPathOrFile?: PathOrFile;
|
218
|
+
/**
|
219
|
+
* Whether to force markdown links.
|
220
|
+
*/
|
221
|
+
shouldForceMarkdownLinks?: boolean;
|
222
|
+
/**
|
223
|
+
* Whether to update filename alias. Defaults to `true`.
|
224
|
+
*/
|
225
|
+
shouldUpdateFilenameAlias?: boolean;
|
226
|
+
}
|
227
|
+
/**
|
228
|
+
* Options for updating links in a file.
|
229
|
+
*/
|
230
|
+
export interface UpdateLinksInFileOptions extends ProcessOptions {
|
231
|
+
/**
|
232
|
+
* The obsidian app instance.
|
233
|
+
*/
|
234
|
+
app: App;
|
235
|
+
/**
|
236
|
+
* The file to update the links in.
|
237
|
+
*/
|
238
|
+
newSourcePathOrFile: PathOrFile;
|
239
|
+
/**
|
240
|
+
* The old path of the file.
|
241
|
+
*/
|
242
|
+
oldSourcePathOrFile?: PathOrFile;
|
243
|
+
/**
|
244
|
+
* Whether to force the links to be in Markdown format.
|
245
|
+
*/
|
246
|
+
shouldForceMarkdownLinks?: boolean;
|
247
|
+
/**
|
248
|
+
* Whether to update only embedded links.
|
249
|
+
*/
|
250
|
+
shouldUpdateEmbedOnlyLinks?: boolean;
|
251
|
+
/**
|
252
|
+
* Whether to update filename alias. Defaults to `true`.
|
253
|
+
*/
|
254
|
+
shouldUpdateFilenameAlias?: boolean;
|
255
|
+
}
|
256
|
+
/**
|
257
|
+
* Converts a link to a new path.
|
258
|
+
*
|
259
|
+
* @param options - The options for converting the link.
|
260
|
+
* @returns The converted link.
|
261
|
+
*/
|
262
|
+
export declare function convertLink(options: ConvertLinkOptions): string;
|
263
|
+
/**
|
264
|
+
* Edits the backlinks for a file or path.
|
265
|
+
*
|
266
|
+
* @param app - The Obsidian application instance.
|
267
|
+
* @param pathOrFile - The path or file to edit the backlinks for.
|
268
|
+
* @param linkConverter - The function that converts each link.
|
269
|
+
* @param processOptions - Optional options for retrying the operation.
|
270
|
+
* @returns A promise that resolves when the backlinks have been edited.
|
271
|
+
*/
|
272
|
+
export declare function editBacklinks(app: App, pathOrFile: PathOrFile, linkConverter: (link: Reference) => MaybePromise<string | void>, processOptions?: ProcessOptions): Promise<void>;
|
273
|
+
/**
|
274
|
+
* Edits the backlinks for a file or path.
|
275
|
+
*
|
276
|
+
* @param app - The Obsidian application instance.
|
277
|
+
* @param pathOrFile - The path or file to edit the backlinks for.
|
278
|
+
* @param linkConverter - The function that converts each link.
|
279
|
+
* @param processOptions - Optional options for retrying the operation.
|
280
|
+
* @returns A promise that resolves when the backlinks have been edited.
|
281
|
+
*/
|
282
|
+
export declare function editLinks(app: App, pathOrFile: PathOrFile, linkConverter: (link: Reference) => MaybePromise<string | void>, processOptions?: ProcessOptions): Promise<void>;
|
283
|
+
/**
|
284
|
+
* Extracts the file associated with a link.
|
285
|
+
*
|
286
|
+
* @param app - The Obsidian application instance.
|
287
|
+
* @param link - The reference cache for the link.
|
288
|
+
* @param sourcePathOrFile - The source path or file.
|
289
|
+
* @returns The file associated with the link, or null if not found.
|
290
|
+
*/
|
291
|
+
export declare function extractLinkFile(app: App, link: Reference, sourcePathOrFile: PathOrFile): null | TFile;
|
292
|
+
/**
|
293
|
+
* Generates a markdown link based on the provided parameters.
|
294
|
+
*
|
295
|
+
* @param options - The options for generating the markdown link.
|
296
|
+
* @returns The generated markdown link.
|
297
|
+
*/
|
298
|
+
export declare function generateMarkdownLink(options: GenerateMarkdownLinkOptions): string;
|
299
|
+
/**
|
300
|
+
* Parses a link into its components.
|
301
|
+
*
|
302
|
+
* @param str - The link to parse.
|
303
|
+
* @returns The parsed link.
|
304
|
+
*/
|
305
|
+
export declare function parseLink(str: string): null | ParseLinkResult;
|
306
|
+
/**
|
307
|
+
* Determines if the alias of a link should be reset.
|
308
|
+
*
|
309
|
+
* @param options - The options for determining if the alias should be reset.
|
310
|
+
* @returns Whether the alias should be reset.
|
311
|
+
*/
|
312
|
+
export declare function shouldResetAlias(options: ShouldResetAliasOptions): boolean;
|
313
|
+
/**
|
314
|
+
* Splits a link into its link path and subpath.
|
315
|
+
*
|
316
|
+
* @param link - The link to split.
|
317
|
+
* @returns An object containing the link path and subpath.
|
318
|
+
*/
|
319
|
+
export declare function splitSubpath(link: string): SplitSubpathResult;
|
320
|
+
/**
|
321
|
+
* Tests whether a link uses angle brackets, possibly embed:
|
322
|
+
* `[title](<link>)`, ``.
|
323
|
+
*
|
324
|
+
* @param link - Link to test
|
325
|
+
* @returns Whether the link uses angle brackets
|
326
|
+
*/
|
327
|
+
export declare function testAngleBrackets(link: string): boolean;
|
328
|
+
/**
|
329
|
+
* Tests whether a link is an embed link:
|
330
|
+
* `![[link]]`, ``.
|
331
|
+
*
|
332
|
+
* @param link - Link to test
|
333
|
+
* @returns Whether the link is an embed link
|
334
|
+
*/
|
335
|
+
export declare function testEmbed(link: string): boolean;
|
336
|
+
/**
|
337
|
+
* Tests whether a link has a leading dot, possibly embed:
|
338
|
+
* `[[./link]]`, `[title](./link)`, `[title](<./link>)`,
|
339
|
+
* `![[./link]]`, ``, ``.
|
340
|
+
*
|
341
|
+
* @param link - Link to test
|
342
|
+
* @returns Whether the link has a leading dot
|
343
|
+
*/
|
344
|
+
export declare function testLeadingDot(link: string): boolean;
|
345
|
+
/**
|
346
|
+
* Tests whether a link is a wikilink, possibly embed:
|
347
|
+
* `[[link]]`, `![[link]]`.
|
348
|
+
*
|
349
|
+
* @param link - Link to test
|
350
|
+
* @returns Whether the link is a wikilink
|
351
|
+
*/
|
352
|
+
export declare function testWikilink(link: string): boolean;
|
353
|
+
/**
|
354
|
+
* Updates a link based on the provided parameters.
|
355
|
+
*
|
356
|
+
* @param options - The options for updating the link.
|
357
|
+
* @returns The updated link.
|
358
|
+
*/
|
359
|
+
export declare function updateLink(options: UpdateLinkOptions): string;
|
360
|
+
/**
|
361
|
+
* Updates the links in a file based on the provided parameters.
|
362
|
+
*
|
363
|
+
* @param options - The options for updating the links.
|
364
|
+
* @returns A promise that resolves when the links are updated.
|
365
|
+
*/
|
366
|
+
export declare function updateLinksInFile(options: UpdateLinksInFileOptions): Promise<void>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @packageDocumentation Logger
|
3
3
|
* Contains utility functions for logging in Obsidian.
|
4
4
|
*/
|
5
|
-
import type { MaybePromise } from '../Async.
|
5
|
+
import type { MaybePromise } from '../Async.cjs';
|
6
6
|
/**
|
7
7
|
* Invokes a function and logs the start, end, and duration of the invocation.
|
8
8
|
*
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Logger
|
3
|
+
* Contains utility functions for logging in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { MaybePromise } from '../Async.mjs';
|
6
|
+
/**
|
7
|
+
* Invokes a function and logs the start, end, and duration of the invocation.
|
8
|
+
*
|
9
|
+
* @param title - The title of the log.
|
10
|
+
* @param fn - The function to invoke.
|
11
|
+
* @param stackTrace - Optional stack trace.
|
12
|
+
*/
|
13
|
+
export declare function invokeAsyncAndLog(title: string, fn: () => MaybePromise<void>, stackTrace?: string): Promise<void>;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Loop
|
3
|
+
* Contains utility functions for looping in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { MaybePromise } from '../Async.mjs';
|
6
|
+
/**
|
7
|
+
* Options for the loop function.
|
8
|
+
*/
|
9
|
+
export interface LoopOptions<T> {
|
10
|
+
/**
|
11
|
+
* An optional abort signal to cancel the loop.
|
12
|
+
*/
|
13
|
+
abortSignal?: AbortSignal;
|
14
|
+
/**
|
15
|
+
* The function to build the notice message for each item.
|
16
|
+
*/
|
17
|
+
buildNoticeMessage(item: T, iterationStr: string): string;
|
18
|
+
/**
|
19
|
+
* The items to loop over.
|
20
|
+
*/
|
21
|
+
items: T[];
|
22
|
+
/**
|
23
|
+
* The function to process each item.
|
24
|
+
*/
|
25
|
+
processItem(item: T): MaybePromise<void>;
|
26
|
+
/**
|
27
|
+
* Whether to continue the loop on error.
|
28
|
+
*/
|
29
|
+
shouldContinueOnError?: boolean;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Loops over a list of items and processes each item.
|
33
|
+
*
|
34
|
+
* @param options - The options for the loop.
|
35
|
+
*/
|
36
|
+
export declare function loop<T>(options: LoopOptions<T>): Promise<void>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Markdown
|
3
|
+
* This module provides utility functions for processing Markdown content in Obsidian.
|
4
|
+
*/
|
5
|
+
import { App, Component } from 'obsidian';
|
6
|
+
/**
|
7
|
+
* Render the markdown and embeds.
|
8
|
+
*
|
9
|
+
* @param app - The Obsidian app instance.
|
10
|
+
* @param markdown - The Markdown string to render.
|
11
|
+
* @param el - The HTMLElement to render to.
|
12
|
+
* @param sourcePath - The source path to resolve relative links.
|
13
|
+
* @param component - The Component instance.
|
14
|
+
*/
|
15
|
+
export declare function fullRender(app: App, markdown: string, el: HTMLElement, sourcePath: string, component: Component): Promise<void>;
|
16
|
+
/**
|
17
|
+
* Converts Markdown to HTML.
|
18
|
+
*
|
19
|
+
* @param app - The Obsidian app instance.
|
20
|
+
* @param markdown - The Markdown string to convert.
|
21
|
+
* @param sourcePath - (optional) The source path to resolve relative links.
|
22
|
+
* @returns The HTML string.
|
23
|
+
*/
|
24
|
+
export declare function markdownToHtml(app: App, markdown: string, sourcePath?: string): Promise<string>;
|
package/dist/lib/obsidian/{MarkdownCodeBlockProcessor.d.ts → MarkdownCodeBlockProcessor.d.cts}
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
* This module provides utility functions for processing code blocks in Obsidian.
|
4
4
|
*/
|
5
5
|
import type { App, MarkdownPostProcessorContext } from 'obsidian';
|
6
|
-
import type { ValueProvider } from '../ValueProvider.
|
6
|
+
import type { ValueProvider } from '../ValueProvider.cjs';
|
7
7
|
/**
|
8
8
|
* Retrieves the argument of a code block from the given MarkdownPostProcessorContext and HTMLElement.
|
9
9
|
*
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation MarkdownCodeBlockProcessor
|
3
|
+
* This module provides utility functions for processing code blocks in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { App, MarkdownPostProcessorContext } from 'obsidian';
|
6
|
+
import type { ValueProvider } from '../ValueProvider.mjs';
|
7
|
+
/**
|
8
|
+
* Retrieves the argument of a code block from the given MarkdownPostProcessorContext and HTMLElement.
|
9
|
+
*
|
10
|
+
* @param ctx - The MarkdownPostProcessorContext object.
|
11
|
+
* @param el - The HTMLElement representing the code block.
|
12
|
+
* @returns The argument of the code block as a string, or null if no argument is found.
|
13
|
+
*/
|
14
|
+
export declare function getCodeBlockArguments(ctx: MarkdownPostProcessorContext, el: HTMLElement): string[];
|
15
|
+
/**
|
16
|
+
* Replaces the code block.
|
17
|
+
*
|
18
|
+
* @param app - The Obsidian App object.
|
19
|
+
* @param ctx - The MarkdownPostProcessorContext object.
|
20
|
+
* @param el - The HTMLElement representing the code block.
|
21
|
+
* @param codeBlockProvider - The ValueProvider that provides the new code block.
|
22
|
+
*/
|
23
|
+
export declare function replaceCodeBlock(app: App, ctx: MarkdownPostProcessorContext, el: HTMLElement, codeBlockProvider: ValueProvider<string, [string]>): Promise<void>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation MarkdownView
|
3
|
+
* Utilities for working with MarkdownView
|
4
|
+
*/
|
5
|
+
import { MarkdownView } from 'obsidian';
|
6
|
+
/**
|
7
|
+
* Get the full HTML content of the current MarkdownView
|
8
|
+
*
|
9
|
+
* @param view - The MarkdownView to get the HTML from
|
10
|
+
* @returns The full HTML of the MarkdownView
|
11
|
+
*/
|
12
|
+
export declare function getFullContentHtml(view: MarkdownView): string;
|
@@ -4,9 +4,9 @@
|
|
4
4
|
*/
|
5
5
|
import type { App, CachedMetadata, Reference, TAbstractFile } from 'obsidian';
|
6
6
|
import type { CustomArrayDict } from 'obsidian-typings';
|
7
|
-
import type { RetryOptions } from '../Async.
|
8
|
-
import type { PathOrFile } from './FileSystem.
|
9
|
-
import type { CombinedFrontmatter } from './Frontmatter.
|
7
|
+
import type { RetryOptions } from '../Async.cjs';
|
8
|
+
import type { PathOrFile } from './FileSystem.cjs';
|
9
|
+
import type { CombinedFrontmatter } from './Frontmatter.cjs';
|
10
10
|
/**
|
11
11
|
* Wrapper for the getBacklinksForFile method that provides a safe overload.
|
12
12
|
*/
|
@@ -0,0 +1,87 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation MetadataCache
|
3
|
+
* This module provides utility functions for working with the metadata cache in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { App, CachedMetadata, Reference, TAbstractFile } from 'obsidian';
|
6
|
+
import type { CustomArrayDict } from 'obsidian-typings';
|
7
|
+
import type { RetryOptions } from '../Async.mjs';
|
8
|
+
import type { PathOrFile } from './FileSystem.mjs';
|
9
|
+
import type { CombinedFrontmatter } from './Frontmatter.mjs';
|
10
|
+
/**
|
11
|
+
* Wrapper for the getBacklinksForFile method that provides a safe overload.
|
12
|
+
*/
|
13
|
+
export interface GetBacklinksForFileSafeWrapper {
|
14
|
+
/**
|
15
|
+
* Retrieves the backlinks for a file safely.
|
16
|
+
*
|
17
|
+
* @param pathOrFile - The path or file object.
|
18
|
+
* @returns A promise that resolves to an array dictionary of backlinks.
|
19
|
+
*/
|
20
|
+
safe(pathOrFile: PathOrFile): Promise<CustomArrayDict<Reference>>;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Ensures that the metadata cache is ready for all files.
|
24
|
+
* @param app - The Obsidian app instance.
|
25
|
+
* @returns A promise that resolves when the metadata cache is ready.
|
26
|
+
*/
|
27
|
+
export declare function ensureMetadataCacheReady(app: App): Promise<void>;
|
28
|
+
/**
|
29
|
+
* Retrieves all links from the provided cache.
|
30
|
+
*
|
31
|
+
* @param cache - The cached metadata.
|
32
|
+
* @returns An array of reference caches representing the links.
|
33
|
+
*/
|
34
|
+
export declare function getAllLinks(cache: CachedMetadata): Reference[];
|
35
|
+
/**
|
36
|
+
* Retrieves the backlinks for a file or path.
|
37
|
+
* NOTE: The file may be non-existent.
|
38
|
+
*
|
39
|
+
* @param app - The Obsidian application instance.
|
40
|
+
* @param pathOrFile - The path or file object.
|
41
|
+
* @returns The backlinks for the file.
|
42
|
+
*/
|
43
|
+
export declare function getBacklinksForFileOrPath(app: App, pathOrFile: PathOrFile): CustomArrayDict<Reference>;
|
44
|
+
/**
|
45
|
+
* Retrieves the backlinks for a file safely.
|
46
|
+
*
|
47
|
+
* @param app - The Obsidian application instance.
|
48
|
+
* @param pathOrFile - The path or file object.
|
49
|
+
* @param retryOptions - Optional retry options.
|
50
|
+
* @returns A promise that resolves to an array dictionary of backlinks.
|
51
|
+
*/
|
52
|
+
export declare function getBacklinksForFileSafe(app: App, pathOrFile: PathOrFile, retryOptions?: RetryOptions): Promise<CustomArrayDict<Reference>>;
|
53
|
+
/**
|
54
|
+
* Retrieves the cached metadata for a given file or path.
|
55
|
+
*
|
56
|
+
* @param app - The Obsidian app instance.
|
57
|
+
* @param fileOrPath - The file or path to retrieve the metadata for.
|
58
|
+
* @param retryOptions - Optional retry options for the retrieval process.
|
59
|
+
* @returns The cached metadata for the file, or null if it doesn't exist.
|
60
|
+
*/
|
61
|
+
export declare function getCacheSafe(app: App, fileOrPath: PathOrFile, retryOptions?: RetryOptions): Promise<CachedMetadata | null>;
|
62
|
+
/**
|
63
|
+
* Retrieves the front matter from the metadata cache safely.
|
64
|
+
*
|
65
|
+
* @typeParam CustomFrontmatter - The type of custom front matter.
|
66
|
+
* @param app - The Obsidian app instance.
|
67
|
+
* @param pathOrFile - The path or file to retrieve the front matter from.
|
68
|
+
* @returns The combined front matter.
|
69
|
+
*/
|
70
|
+
export declare function getFrontmatterSafe<CustomFrontmatter = unknown>(app: App, pathOrFile: PathOrFile): Promise<CombinedFrontmatter<CustomFrontmatter>>;
|
71
|
+
/***
|
72
|
+
* Registers a file in the Obsidian app.
|
73
|
+
*
|
74
|
+
* @param app - The Obsidian app instance.
|
75
|
+
* @param file - The file to register.
|
76
|
+
* @returns A function that unregisters the file.
|
77
|
+
*/
|
78
|
+
export declare function registerFile(app: App, file: TAbstractFile): () => void;
|
79
|
+
/**
|
80
|
+
* Temporarily registers a file and runs a function.
|
81
|
+
*
|
82
|
+
* @param app - The Obsidian app instance.
|
83
|
+
* @param file - The file to temporarily register.
|
84
|
+
* @param fn - The function to run.
|
85
|
+
* @returns The result of the function.
|
86
|
+
*/
|
87
|
+
export declare function tempRegisterFileAndRun<T>(app: App, file: TAbstractFile, fn: () => T): T;
|