obsidian-dev-utils 18.4.2 → 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 +4 -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.d.ts → MultipleDropdownComponent.d.cts} +4 -4
- package/dist/lib/obsidian/Components/MultipleDropdownComponent.d.mts +73 -0
- 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.d.ts → MultipleTextComponent.d.cts} +4 -4
- package/dist/lib/obsidian/Components/MultipleTextComponent.d.mts +67 -0
- 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.d.ts → TypedTextComponent.d.cts} +5 -5
- package/dist/lib/obsidian/Components/TypedTextComponent.d.mts +84 -0
- 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.d.ts → Prompt.d.cts} +1 -1
- package/dist/lib/obsidian/Modals/Prompt.d.mts +50 -0
- 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,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;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Alert
|
3
|
+
* Utility for displaying alert modals in Obsidian.
|
4
|
+
*
|
5
|
+
* This module exports a function to display a modal with a message in Obsidian. The modal includes an "OK" button to close it.
|
6
|
+
*/
|
7
|
+
import type { App } from 'obsidian';
|
8
|
+
/**
|
9
|
+
* The options for the alert modal.
|
10
|
+
*/
|
11
|
+
export interface AlertOptions {
|
12
|
+
/**
|
13
|
+
* The Obsidian app instance.
|
14
|
+
*/
|
15
|
+
app: App;
|
16
|
+
/**
|
17
|
+
* The CSS class to apply to the modal.
|
18
|
+
*/
|
19
|
+
cssClass?: string;
|
20
|
+
/**
|
21
|
+
* The message to display in the modal.
|
22
|
+
*/
|
23
|
+
message: DocumentFragment | string;
|
24
|
+
/**
|
25
|
+
* The text for the "OK" button.
|
26
|
+
*/
|
27
|
+
okButtonText?: string;
|
28
|
+
/**
|
29
|
+
* The title of the modal.
|
30
|
+
*/
|
31
|
+
title?: DocumentFragment | string;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Displays an alert modal in Obsidian with a specified message.
|
35
|
+
*
|
36
|
+
* @param options - The options for the alert modal.
|
37
|
+
* @returns A promise that resolves when the modal is closed.
|
38
|
+
*/
|
39
|
+
export declare function alert(options: AlertOptions): Promise<void>;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Confirm
|
3
|
+
* Utility for displaying confirm modals in Obsidian.
|
4
|
+
*
|
5
|
+
* This module exports a function to display a modal with a message in Obsidian. The modal includes "OK" and "Cancel" buttons to confirm or cancel the action.
|
6
|
+
*/
|
7
|
+
import type { App } from 'obsidian';
|
8
|
+
/**
|
9
|
+
* The options for the confirm modal.
|
10
|
+
*/
|
11
|
+
export interface ConfirmOptions {
|
12
|
+
/**
|
13
|
+
* The Obsidian app instance.
|
14
|
+
*/
|
15
|
+
app: App;
|
16
|
+
/**
|
17
|
+
* The text for the "Cancel" button.
|
18
|
+
*/
|
19
|
+
cancelButtonText?: string;
|
20
|
+
/**
|
21
|
+
* The CSS class to apply to the modal.
|
22
|
+
*/
|
23
|
+
cssClass?: string;
|
24
|
+
/**
|
25
|
+
* The message to display in the modal.
|
26
|
+
*/
|
27
|
+
message: DocumentFragment | string;
|
28
|
+
/**
|
29
|
+
* The text for the "OK" button.
|
30
|
+
*/
|
31
|
+
okButtonText?: string;
|
32
|
+
/**
|
33
|
+
* The title of the modal.
|
34
|
+
*/
|
35
|
+
title?: DocumentFragment | string;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Displays an confirm modal in Obsidian with a specified message.
|
39
|
+
*
|
40
|
+
* @param options - The options for the confirm modal.
|
41
|
+
* @returns A promise that resolves with a boolean indicating whether the "OK" button was clicked.
|
42
|
+
*/
|
43
|
+
export declare function confirm(options: ConfirmOptions): Promise<boolean>;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation ModalBase
|
3
|
+
*
|
4
|
+
* This module exports a base class for displaying modals in Obsidian.
|
5
|
+
*/
|
6
|
+
import type { App } from 'obsidian';
|
7
|
+
import { Modal } from 'obsidian';
|
8
|
+
import type { PromiseResolve } from '../../Async.mjs';
|
9
|
+
/**
|
10
|
+
* The base options for a modal.
|
11
|
+
*/
|
12
|
+
export interface ModalOptionsBase {
|
13
|
+
/**
|
14
|
+
* The application instance.
|
15
|
+
*/
|
16
|
+
app: App;
|
17
|
+
/**
|
18
|
+
* The CSS class to apply to the modal.
|
19
|
+
*/
|
20
|
+
cssClass?: string;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* A base class for displaying modals in Obsidian.
|
24
|
+
*/
|
25
|
+
export declare abstract class ModalBase<Value, Options extends ModalOptionsBase> extends Modal {
|
26
|
+
protected resolve: PromiseResolve<Value>;
|
27
|
+
constructor(options: Options, resolve: PromiseResolve<Value>, modalCssClass: string);
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Displays a modal in Obsidian.
|
31
|
+
*
|
32
|
+
* @param modalCreator - A function that creates a modal.
|
33
|
+
* @returns A promise that resolves when the modal is closed.
|
34
|
+
*/
|
35
|
+
export declare function showModal<T>(modalCreator: (resolve: PromiseResolve<T>) => Modal): Promise<T>;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* This module exports a function to display a modal that prompts the user for input. The modal includes "OK" and "Cancel" buttons.
|
6
6
|
*/
|
7
7
|
import { App } from 'obsidian';
|
8
|
-
import type { MaybePromise } from '../../Async.
|
8
|
+
import type { MaybePromise } from '../../Async.cjs';
|
9
9
|
/**
|
10
10
|
* The options for the prompt modal.
|
11
11
|
*/
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Prompt
|
3
|
+
* Utility for displaying a prompt modal in Obsidian.
|
4
|
+
*
|
5
|
+
* This module exports a function to display a modal that prompts the user for input. The modal includes "OK" and "Cancel" buttons.
|
6
|
+
*/
|
7
|
+
import { App } from 'obsidian';
|
8
|
+
import type { MaybePromise } from '../../Async.mjs';
|
9
|
+
/**
|
10
|
+
* The options for the prompt modal.
|
11
|
+
*/
|
12
|
+
export interface PromptOptions {
|
13
|
+
/**
|
14
|
+
* The Obsidian app instance.
|
15
|
+
*/
|
16
|
+
app: App;
|
17
|
+
/**
|
18
|
+
* The text for the "Cancel" button.
|
19
|
+
*/
|
20
|
+
cancelButtonText?: string;
|
21
|
+
/**
|
22
|
+
* The default value to pre-fill the input field.
|
23
|
+
*/
|
24
|
+
defaultValue?: string;
|
25
|
+
/**
|
26
|
+
* The text for the "OK" button.
|
27
|
+
*/
|
28
|
+
okButtonText?: string;
|
29
|
+
/**
|
30
|
+
* The placeholder text for the input field.
|
31
|
+
*/
|
32
|
+
placeholder?: string;
|
33
|
+
/**
|
34
|
+
* The title of the modal.
|
35
|
+
*/
|
36
|
+
title?: DocumentFragment | string;
|
37
|
+
/**
|
38
|
+
* A function to validate the input value.
|
39
|
+
* @param value - The input value to validate.
|
40
|
+
* @returns an error message if the value is invalid, or null if the value is valid.
|
41
|
+
*/
|
42
|
+
valueValidator?: (value: string) => MaybePromise<string | void>;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Displays a prompt modal in Obsidian to get user input.
|
46
|
+
*
|
47
|
+
* @param options - The options for the prompt modal.
|
48
|
+
* @returns A promise that resolves with the user input or null if the prompt was cancelled.
|
49
|
+
*/
|
50
|
+
export declare function prompt(options: PromptOptions): Promise<null | string>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation selectItem
|
3
|
+
* Utility for displaying a selection modal in Obsidian.
|
4
|
+
*
|
5
|
+
* This module exports a function to display a modal that allows the user to select an item from a list. The modal uses fuzzy search to help the user find the item.
|
6
|
+
*/
|
7
|
+
import { App } from 'obsidian';
|
8
|
+
/**
|
9
|
+
* The parameters for the selection modal.
|
10
|
+
*/
|
11
|
+
export interface SelectItemOptions<T> {
|
12
|
+
/**
|
13
|
+
* The Obsidian app instance.
|
14
|
+
*/
|
15
|
+
app: App;
|
16
|
+
/**
|
17
|
+
* The CSS class to apply to the modal.
|
18
|
+
*/
|
19
|
+
cssClass?: string;
|
20
|
+
/**
|
21
|
+
* The list of items to choose from.
|
22
|
+
*/
|
23
|
+
items: T[];
|
24
|
+
/**
|
25
|
+
* A function to get the display text for each item
|
26
|
+
* @param item - The item to get the display text for.
|
27
|
+
* @returns The display text for the item.
|
28
|
+
*/
|
29
|
+
itemTextFunc: (item: T) => string;
|
30
|
+
/**
|
31
|
+
* The placeholder text for the input field.
|
32
|
+
*/
|
33
|
+
placeholder?: string;
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Displays a selection modal in Obsidian for choosing an item from a list.
|
37
|
+
*
|
38
|
+
* @param options - The options for the selection modal.
|
39
|
+
* @returns A promise that resolves with the selected item or null if no item was selected.
|
40
|
+
*/
|
41
|
+
export declare function selectItem<T>(options: SelectItemOptions<T>): Promise<null | T>;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/*
|
2
|
+
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
3
|
+
if you want to view the source, please visit the github repository of this plugin
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function initCjs(){const globalThisRecord=globalThis;globalThisRecord["__name"]??=name;const originalRequire=require;if(originalRequire&&!originalRequire.__isPatched){require=Object.assign(id=>requirePatched(id),originalRequire,{__isPatched:true})}const newFuncs={__extractDefault:__name(()=>extractDefault,"__extractDefault"),process:__name(()=>{const browserProcess={browser:true,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};return browserProcess},"process")};for(const key of Object.keys(newFuncs)){globalThisRecord[key]??=newFuncs[key]?.()}function name(obj){return obj}__name(name,"name");function extractDefault(module){return module&&module.__esModule&&module.default?module.default:module}__name(extractDefault,"extractDefault");function requirePatched(id){const module=originalRequire?.(id);if(module){return extractDefault(module)}if(id==="process"||id==="node:process"){console.error(`Module not found: ${id}. Fake process object is returned instead.`);return globalThis.process}console.error(`Module not found: ${id}. Empty object is returned instead.`);return{}}__name(requirePatched,"requirePatched")})();
|
7
|
+
|
8
|
+
"use strict";
|
9
|
+
var __create = Object.create;
|
10
|
+
var __defProp = Object.defineProperty;
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
13
|
+
var __getProtoOf = Object.getPrototypeOf;
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
15
|
+
var __export = (target, all) => {
|
16
|
+
for (var name in all)
|
17
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
18
|
+
};
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
21
|
+
for (let key of __getOwnPropNames(from))
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
23
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
24
|
+
}
|
25
|
+
return to;
|
26
|
+
};
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
33
|
+
mod
|
34
|
+
));
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
36
|
+
var Modals_exports = {};
|
37
|
+
__export(Modals_exports, {
|
38
|
+
Alert: () => Alert,
|
39
|
+
Confirm: () => Confirm,
|
40
|
+
ModalBase: () => ModalBase,
|
41
|
+
Prompt: () => Prompt,
|
42
|
+
SelectItem: () => SelectItem
|
43
|
+
});
|
44
|
+
module.exports = __toCommonJS(Modals_exports);
|
45
|
+
var Alert = __toESM(__extractDefault(require('./Alert.cjs')), 1);
|
46
|
+
var Confirm = __toESM(__extractDefault(require('./Confirm.cjs')), 1);
|
47
|
+
var ModalBase = __toESM(__extractDefault(require('./ModalBase.cjs')), 1);
|
48
|
+
var Prompt = __toESM(__extractDefault(require('./Prompt.cjs')), 1);
|
49
|
+
var SelectItem = __toESM(__extractDefault(require('./SelectItem.cjs')), 1);
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
51
|
+
0 && (module.exports = {
|
52
|
+
Alert,
|
53
|
+
Confirm,
|
54
|
+
ModalBase,
|
55
|
+
Prompt,
|
56
|
+
SelectItem
|
57
|
+
});
|
58
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL01vZGFscy9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyogVEhJUyBJUyBBIEdFTkVSQVRFRC9CVU5ETEVEIEZJTEUgQlkgQlVJTEQgU0NSSVBUICovXG5cbmV4cG9ydCAqIGFzIEFsZXJ0IGZyb20gJy4vQWxlcnQudHMnO1xuZXhwb3J0ICogYXMgQ29uZmlybSBmcm9tICcuL0NvbmZpcm0udHMnO1xuZXhwb3J0ICogYXMgTW9kYWxCYXNlIGZyb20gJy4vTW9kYWxCYXNlLnRzJztcbmV4cG9ydCAqIGFzIFByb21wdCBmcm9tICcuL1Byb21wdC50cyc7XG5leHBvcnQgKiBhcyBTZWxlY3RJdGVtIGZyb20gJy4vU2VsZWN0SXRlbS50cyc7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBLFlBQXVCO0FBQ3ZCLGNBQXlCO0FBQ3pCLGdCQUEyQjtBQUMzQixhQUF3QjtBQUN4QixpQkFBNEI7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*
|
2
|
+
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
3
|
+
if you want to view the source, please visit the github repository of this plugin
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function initEsm(){if(globalThis.process){return}const browserProcess={browser:true,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=browserProcess})();
|
7
|
+
|
8
|
+
import * as Alert from "./Alert.mjs";
|
9
|
+
import * as Confirm from "./Confirm.mjs";
|
10
|
+
import * as ModalBase from "./ModalBase.mjs";
|
11
|
+
import * as Prompt from "./Prompt.mjs";
|
12
|
+
import * as SelectItem from "./SelectItem.mjs";
|
13
|
+
export {
|
14
|
+
Alert,
|
15
|
+
Confirm,
|
16
|
+
ModalBase,
|
17
|
+
Prompt,
|
18
|
+
SelectItem
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL01vZGFscy9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyogVEhJUyBJUyBBIEdFTkVSQVRFRC9CVU5ETEVEIEZJTEUgQlkgQlVJTEQgU0NSSVBUICovXG5cbmV4cG9ydCAqIGFzIEFsZXJ0IGZyb20gJy4vQWxlcnQudHMnO1xuZXhwb3J0ICogYXMgQ29uZmlybSBmcm9tICcuL0NvbmZpcm0udHMnO1xuZXhwb3J0ICogYXMgTW9kYWxCYXNlIGZyb20gJy4vTW9kYWxCYXNlLnRzJztcbmV4cG9ydCAqIGFzIFByb21wdCBmcm9tICcuL1Byb21wdC50cyc7XG5leHBvcnQgKiBhcyBTZWxlY3RJdGVtIGZyb20gJy4vU2VsZWN0SXRlbS50cyc7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7O0FBRUEsWUFBWSxXQUFXO0FBQ3ZCLFlBQVksYUFBYTtBQUN6QixZQUFZLGVBQWU7QUFDM0IsWUFBWSxZQUFZO0FBQ3hCLFlBQVksZ0JBQWdCOyIsCiAgIm5hbWVzIjogW10KfQo=
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation
|
3
|
+
* This module provides utility functions for working with Obsidian settings.
|
4
|
+
*/
|
5
|
+
import type { App } from 'obsidian';
|
6
|
+
/**
|
7
|
+
* Retrieves whether to use relative links based on the Obsidian settings.
|
8
|
+
* @param app - The Obsidian app instance.
|
9
|
+
* @returns Whether to use relative links.
|
10
|
+
*/
|
11
|
+
export declare function shouldUseRelativeLinks(app: App): boolean;
|
12
|
+
/**
|
13
|
+
* Retrieves whether to use wikilinks based on the Obsidian settings.
|
14
|
+
* @param app - The Obsidian app instance.
|
15
|
+
* @returns Whether to use wikilinks.
|
16
|
+
*/
|
17
|
+
export declare function shouldUseWikilinks(app: App): boolean;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Pdf
|
3
|
+
* Contains utility functions for printing to PDF.
|
4
|
+
*/
|
5
|
+
interface PrintToPdfOptions {
|
6
|
+
filepath: string;
|
7
|
+
includeName: boolean;
|
8
|
+
landscape: boolean;
|
9
|
+
marginsType: number;
|
10
|
+
open: boolean;
|
11
|
+
pageSize: string;
|
12
|
+
scale: number;
|
13
|
+
scaleFactor: number;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* Print the given element to a PDF file.
|
17
|
+
*
|
18
|
+
* Works only on desktop.
|
19
|
+
*
|
20
|
+
* @param el - The element to print.
|
21
|
+
* @param options - The options to use for the print.
|
22
|
+
*/
|
23
|
+
export declare function printToPdf(el: HTMLElement, options: Partial<PrintToPdfOptions>): Promise<void>;
|
24
|
+
export {};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @packageDocumentation EmptySettings
|
3
3
|
* Empty settings class.
|
4
4
|
*/
|
5
|
-
import { PluginSettingsBase } from './PluginSettingsBase.
|
5
|
+
import { PluginSettingsBase } from './PluginSettingsBase.cjs';
|
6
6
|
/**
|
7
7
|
* @packageDocumentation EmptySettings
|
8
8
|
* Empty settings class.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation EmptySettings
|
3
|
+
* Empty settings class.
|
4
|
+
*/
|
5
|
+
import { PluginSettingsBase } from './PluginSettingsBase.mjs';
|
6
|
+
/**
|
7
|
+
* @packageDocumentation EmptySettings
|
8
|
+
* Empty settings class.
|
9
|
+
*/
|
10
|
+
/**
|
11
|
+
* Empty settings class.
|
12
|
+
*/
|
13
|
+
export declare class EmptySettings extends PluginSettingsBase {
|
14
|
+
}
|