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,22 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation ValidatorComponent
|
3
|
+
* Contains a component that has a validator element.
|
4
|
+
*/
|
5
|
+
import type { BaseComponent } from 'obsidian';
|
6
|
+
import type { ValidatorElement } from '../../HTMLElement.mjs';
|
7
|
+
/**
|
8
|
+
* A component that has a validator element.
|
9
|
+
*/
|
10
|
+
export interface ValidatorComponent {
|
11
|
+
/**
|
12
|
+
* The validator element of the component.
|
13
|
+
*/
|
14
|
+
readonly validatorEl: ValidatorElement;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* Gets a validator component related to the base component
|
18
|
+
*
|
19
|
+
* @param baseComponent - A base component
|
20
|
+
* @returns related validator component or `null` if no related validator component is found
|
21
|
+
*/
|
22
|
+
export declare function getValidatorComponent(baseComponent: BaseComponent): null | ValidatorComponent;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Contains a type that extends ValueComponent to allow for change tracking.
|
4
4
|
*/
|
5
5
|
import { ValueComponent } from 'obsidian';
|
6
|
-
import type { MaybePromise } from '../../Async.
|
6
|
+
import type { MaybePromise } from '../../Async.cjs';
|
7
7
|
/**
|
8
8
|
* A ValueComponent that can track changes.
|
9
9
|
*/
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation ValueComponentWithChangeTracking
|
3
|
+
* Contains a type that extends ValueComponent to allow for change tracking.
|
4
|
+
*/
|
5
|
+
import { ValueComponent } from 'obsidian';
|
6
|
+
import type { MaybePromise } from '../../Async.mjs';
|
7
|
+
/**
|
8
|
+
* A ValueComponent that can track changes.
|
9
|
+
*/
|
10
|
+
export interface ValueComponentWithChangeTracking<T> extends ValueComponent<T> {
|
11
|
+
/**
|
12
|
+
* Sets a callback function to be called when the value of the component changes.
|
13
|
+
*
|
14
|
+
* @param callback - A callback function that is called when the value of the component changes.
|
15
|
+
*/
|
16
|
+
onChange(callback: (newValue: T) => MaybePromise<void>): this;
|
17
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @packageDocumentation WeekComponent
|
3
3
|
* Contains a component that displays and edits a week.
|
4
4
|
*/
|
5
|
-
import { TypedRangeTextComponent } from './TypedRangeTextComponent.
|
5
|
+
import { TypedRangeTextComponent } from './TypedRangeTextComponent.cjs';
|
6
6
|
/**
|
7
7
|
* Represents an ISO 8601 week date.
|
8
8
|
*/
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation WeekComponent
|
3
|
+
* Contains a component that displays and edits a week.
|
4
|
+
*/
|
5
|
+
import { TypedRangeTextComponent } from './TypedRangeTextComponent.mjs';
|
6
|
+
/**
|
7
|
+
* Represents an ISO 8601 week date.
|
8
|
+
*/
|
9
|
+
export interface IsoWeek {
|
10
|
+
/**
|
11
|
+
* The ISO 8601 week number (1-53).
|
12
|
+
*/
|
13
|
+
weekNumber: number;
|
14
|
+
/**
|
15
|
+
* The year (1-9999).
|
16
|
+
*/
|
17
|
+
year: number;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* A component that displays and edits a Week.
|
21
|
+
*
|
22
|
+
* You can add this component using {@link SettingEx.addWeek}.
|
23
|
+
*
|
24
|
+
* In order to add the styles for the component, use {@link initPluginContext} in your plugin's `onload()` function.
|
25
|
+
*
|
26
|
+
* Alternatively, you can copy styles from {@link https://github.com/mnaoumov/obsidian-dev-utils/releases/latest/download/styles.css}.
|
27
|
+
*/
|
28
|
+
export declare class WeekComponent extends TypedRangeTextComponent<IsoWeek> {
|
29
|
+
/**
|
30
|
+
* Creates a new Week component.
|
31
|
+
*
|
32
|
+
* @param containerEl - The container element of the component.
|
33
|
+
*/
|
34
|
+
constructor(containerEl: HTMLElement);
|
35
|
+
/**
|
36
|
+
* Converts a string to a Week.
|
37
|
+
*
|
38
|
+
* @param str - The string to convert.
|
39
|
+
* @returns The week.
|
40
|
+
*/
|
41
|
+
valueFromString(str: string): IsoWeek;
|
42
|
+
/**
|
43
|
+
* Converts a week to a string.
|
44
|
+
*
|
45
|
+
* @param value - The week to convert.
|
46
|
+
* @returns The string.
|
47
|
+
*/
|
48
|
+
valueToString(value: IsoWeek): string;
|
49
|
+
}
|
@@ -0,0 +1,94 @@
|
|
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 Components_exports = {};
|
37
|
+
__export(Components_exports, {
|
38
|
+
DateComponent: () => DateComponent,
|
39
|
+
DateTimeComponent: () => DateTimeComponent,
|
40
|
+
EmailComponent: () => EmailComponent,
|
41
|
+
FileComponent: () => FileComponent,
|
42
|
+
MonthComponent: () => MonthComponent,
|
43
|
+
MultipleDropdownComponent: () => MultipleDropdownComponent,
|
44
|
+
MultipleEmailComponent: () => MultipleEmailComponent,
|
45
|
+
MultipleFileComponent: () => MultipleFileComponent,
|
46
|
+
MultipleTextComponent: () => MultipleTextComponent,
|
47
|
+
NumberComponent: () => NumberComponent,
|
48
|
+
TimeComponent: () => TimeComponent,
|
49
|
+
TypedRangeTextComponent: () => TypedRangeTextComponent,
|
50
|
+
TypedTextComponent: () => TypedTextComponent,
|
51
|
+
UrlComponent: () => UrlComponent,
|
52
|
+
ValidatorComponent: () => ValidatorComponent,
|
53
|
+
ValueComponentWithChangeTracking: () => ValueComponentWithChangeTracking,
|
54
|
+
WeekComponent: () => WeekComponent
|
55
|
+
});
|
56
|
+
module.exports = __toCommonJS(Components_exports);
|
57
|
+
var DateComponent = __toESM(__extractDefault(require('./DateComponent.cjs')), 1);
|
58
|
+
var DateTimeComponent = __toESM(__extractDefault(require('./DateTimeComponent.cjs')), 1);
|
59
|
+
var EmailComponent = __toESM(__extractDefault(require('./EmailComponent.cjs')), 1);
|
60
|
+
var FileComponent = __toESM(__extractDefault(require('./FileComponent.cjs')), 1);
|
61
|
+
var MonthComponent = __toESM(__extractDefault(require('./MonthComponent.cjs')), 1);
|
62
|
+
var MultipleDropdownComponent = __toESM(__extractDefault(require('./MultipleDropdownComponent.cjs')), 1);
|
63
|
+
var MultipleEmailComponent = __toESM(__extractDefault(require('./MultipleEmailComponent.cjs')), 1);
|
64
|
+
var MultipleFileComponent = __toESM(__extractDefault(require('./MultipleFileComponent.cjs')), 1);
|
65
|
+
var MultipleTextComponent = __toESM(__extractDefault(require('./MultipleTextComponent.cjs')), 1);
|
66
|
+
var NumberComponent = __toESM(__extractDefault(require('./NumberComponent.cjs')), 1);
|
67
|
+
var TimeComponent = __toESM(__extractDefault(require('./TimeComponent.cjs')), 1);
|
68
|
+
var TypedRangeTextComponent = __toESM(__extractDefault(require('./TypedRangeTextComponent.cjs')), 1);
|
69
|
+
var TypedTextComponent = __toESM(__extractDefault(require('./TypedTextComponent.cjs')), 1);
|
70
|
+
var UrlComponent = __toESM(__extractDefault(require('./UrlComponent.cjs')), 1);
|
71
|
+
var ValidatorComponent = __toESM(__extractDefault(require('./ValidatorComponent.cjs')), 1);
|
72
|
+
var ValueComponentWithChangeTracking = __toESM(__extractDefault(require('./ValueComponentWithChangeTracking.cjs')), 1);
|
73
|
+
var WeekComponent = __toESM(__extractDefault(require('./WeekComponent.cjs')), 1);
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
75
|
+
0 && (module.exports = {
|
76
|
+
DateComponent,
|
77
|
+
DateTimeComponent,
|
78
|
+
EmailComponent,
|
79
|
+
FileComponent,
|
80
|
+
MonthComponent,
|
81
|
+
MultipleDropdownComponent,
|
82
|
+
MultipleEmailComponent,
|
83
|
+
MultipleFileComponent,
|
84
|
+
MultipleTextComponent,
|
85
|
+
NumberComponent,
|
86
|
+
TimeComponent,
|
87
|
+
TypedRangeTextComponent,
|
88
|
+
TypedTextComponent,
|
89
|
+
UrlComponent,
|
90
|
+
ValidatorComponent,
|
91
|
+
ValueComponentWithChangeTracking,
|
92
|
+
WeekComponent
|
93
|
+
});
|
94
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvaW5kZXgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qIFRISVMgSVMgQSBHRU5FUkFURUQvQlVORExFRCBGSUxFIEJZIEJVSUxEIFNDUklQVCAqL1xuXG5leHBvcnQgKiBhcyBEYXRlQ29tcG9uZW50IGZyb20gJy4vRGF0ZUNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBEYXRlVGltZUNvbXBvbmVudCBmcm9tICcuL0RhdGVUaW1lQ29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIEVtYWlsQ29tcG9uZW50IGZyb20gJy4vRW1haWxDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgRmlsZUNvbXBvbmVudCBmcm9tICcuL0ZpbGVDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgTW9udGhDb21wb25lbnQgZnJvbSAnLi9Nb250aENvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBNdWx0aXBsZURyb3Bkb3duQ29tcG9uZW50IGZyb20gJy4vTXVsdGlwbGVEcm9wZG93bkNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBNdWx0aXBsZUVtYWlsQ29tcG9uZW50IGZyb20gJy4vTXVsdGlwbGVFbWFpbENvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBNdWx0aXBsZUZpbGVDb21wb25lbnQgZnJvbSAnLi9NdWx0aXBsZUZpbGVDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgTXVsdGlwbGVUZXh0Q29tcG9uZW50IGZyb20gJy4vTXVsdGlwbGVUZXh0Q29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIE51bWJlckNvbXBvbmVudCBmcm9tICcuL051bWJlckNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBUaW1lQ29tcG9uZW50IGZyb20gJy4vVGltZUNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBUeXBlZFJhbmdlVGV4dENvbXBvbmVudCBmcm9tICcuL1R5cGVkUmFuZ2VUZXh0Q29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIFR5cGVkVGV4dENvbXBvbmVudCBmcm9tICcuL1R5cGVkVGV4dENvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBVcmxDb21wb25lbnQgZnJvbSAnLi9VcmxDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgVmFsaWRhdG9yQ29tcG9uZW50IGZyb20gJy4vVmFsaWRhdG9yQ29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIFZhbHVlQ29tcG9uZW50V2l0aENoYW5nZVRyYWNraW5nIGZyb20gJy4vVmFsdWVDb21wb25lbnRXaXRoQ2hhbmdlVHJhY2tpbmcudHMnO1xuZXhwb3J0ICogYXMgV2Vla0NvbXBvbmVudCBmcm9tICcuL1dlZWtDb21wb25lbnQudHMnO1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQSxvQkFBK0I7QUFDL0Isd0JBQW1DO0FBQ25DLHFCQUFnQztBQUNoQyxvQkFBK0I7QUFDL0IscUJBQWdDO0FBQ2hDLGdDQUEyQztBQUMzQyw2QkFBd0M7QUFDeEMsNEJBQXVDO0FBQ3ZDLDRCQUF1QztBQUN2QyxzQkFBaUM7QUFDakMsb0JBQStCO0FBQy9CLDhCQUF5QztBQUN6Qyx5QkFBb0M7QUFDcEMsbUJBQThCO0FBQzlCLHlCQUFvQztBQUNwQyx1Q0FBa0Q7QUFDbEQsb0JBQStCOyIsCiAgIm5hbWVzIjogW10KfQo=
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export * as DateComponent from './DateComponent.cjs';
|
2
|
+
export * as DateTimeComponent from './DateTimeComponent.cjs';
|
3
|
+
export * as EmailComponent from './EmailComponent.cjs';
|
4
|
+
export * as FileComponent from './FileComponent.cjs';
|
5
|
+
export * as MonthComponent from './MonthComponent.cjs';
|
6
|
+
export * as MultipleDropdownComponent from './MultipleDropdownComponent.cjs';
|
7
|
+
export * as MultipleEmailComponent from './MultipleEmailComponent.cjs';
|
8
|
+
export * as MultipleFileComponent from './MultipleFileComponent.cjs';
|
9
|
+
export * as MultipleTextComponent from './MultipleTextComponent.cjs';
|
10
|
+
export * as NumberComponent from './NumberComponent.cjs';
|
11
|
+
export * as TimeComponent from './TimeComponent.cjs';
|
12
|
+
export * as TypedRangeTextComponent from './TypedRangeTextComponent.cjs';
|
13
|
+
export * as TypedTextComponent from './TypedTextComponent.cjs';
|
14
|
+
export * as UrlComponent from './UrlComponent.cjs';
|
15
|
+
export * as ValidatorComponent from './ValidatorComponent.cjs';
|
16
|
+
export * as ValueComponentWithChangeTracking from './ValueComponentWithChangeTracking.cjs';
|
17
|
+
export * as WeekComponent from './WeekComponent.cjs';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export * as DateComponent from './DateComponent.mjs';
|
2
|
+
export * as DateTimeComponent from './DateTimeComponent.mjs';
|
3
|
+
export * as EmailComponent from './EmailComponent.mjs';
|
4
|
+
export * as FileComponent from './FileComponent.mjs';
|
5
|
+
export * as MonthComponent from './MonthComponent.mjs';
|
6
|
+
export * as MultipleDropdownComponent from './MultipleDropdownComponent.mjs';
|
7
|
+
export * as MultipleEmailComponent from './MultipleEmailComponent.mjs';
|
8
|
+
export * as MultipleFileComponent from './MultipleFileComponent.mjs';
|
9
|
+
export * as MultipleTextComponent from './MultipleTextComponent.mjs';
|
10
|
+
export * as NumberComponent from './NumberComponent.mjs';
|
11
|
+
export * as TimeComponent from './TimeComponent.mjs';
|
12
|
+
export * as TypedRangeTextComponent from './TypedRangeTextComponent.mjs';
|
13
|
+
export * as TypedTextComponent from './TypedTextComponent.mjs';
|
14
|
+
export * as UrlComponent from './UrlComponent.mjs';
|
15
|
+
export * as ValidatorComponent from './ValidatorComponent.mjs';
|
16
|
+
export * as ValueComponentWithChangeTracking from './ValueComponentWithChangeTracking.mjs';
|
17
|
+
export * as WeekComponent from './WeekComponent.mjs';
|
@@ -0,0 +1,44 @@
|
|
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 DateComponent from "./DateComponent.mjs";
|
9
|
+
import * as DateTimeComponent from "./DateTimeComponent.mjs";
|
10
|
+
import * as EmailComponent from "./EmailComponent.mjs";
|
11
|
+
import * as FileComponent from "./FileComponent.mjs";
|
12
|
+
import * as MonthComponent from "./MonthComponent.mjs";
|
13
|
+
import * as MultipleDropdownComponent from "./MultipleDropdownComponent.mjs";
|
14
|
+
import * as MultipleEmailComponent from "./MultipleEmailComponent.mjs";
|
15
|
+
import * as MultipleFileComponent from "./MultipleFileComponent.mjs";
|
16
|
+
import * as MultipleTextComponent from "./MultipleTextComponent.mjs";
|
17
|
+
import * as NumberComponent from "./NumberComponent.mjs";
|
18
|
+
import * as TimeComponent from "./TimeComponent.mjs";
|
19
|
+
import * as TypedRangeTextComponent from "./TypedRangeTextComponent.mjs";
|
20
|
+
import * as TypedTextComponent from "./TypedTextComponent.mjs";
|
21
|
+
import * as UrlComponent from "./UrlComponent.mjs";
|
22
|
+
import * as ValidatorComponent from "./ValidatorComponent.mjs";
|
23
|
+
import * as ValueComponentWithChangeTracking from "./ValueComponentWithChangeTracking.mjs";
|
24
|
+
import * as WeekComponent from "./WeekComponent.mjs";
|
25
|
+
export {
|
26
|
+
DateComponent,
|
27
|
+
DateTimeComponent,
|
28
|
+
EmailComponent,
|
29
|
+
FileComponent,
|
30
|
+
MonthComponent,
|
31
|
+
MultipleDropdownComponent,
|
32
|
+
MultipleEmailComponent,
|
33
|
+
MultipleFileComponent,
|
34
|
+
MultipleTextComponent,
|
35
|
+
NumberComponent,
|
36
|
+
TimeComponent,
|
37
|
+
TypedRangeTextComponent,
|
38
|
+
TypedTextComponent,
|
39
|
+
UrlComponent,
|
40
|
+
ValidatorComponent,
|
41
|
+
ValueComponentWithChangeTracking,
|
42
|
+
WeekComponent
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0NvbXBvbmVudHMvaW5kZXgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qIFRISVMgSVMgQSBHRU5FUkFURUQvQlVORExFRCBGSUxFIEJZIEJVSUxEIFNDUklQVCAqL1xuXG5leHBvcnQgKiBhcyBEYXRlQ29tcG9uZW50IGZyb20gJy4vRGF0ZUNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBEYXRlVGltZUNvbXBvbmVudCBmcm9tICcuL0RhdGVUaW1lQ29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIEVtYWlsQ29tcG9uZW50IGZyb20gJy4vRW1haWxDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgRmlsZUNvbXBvbmVudCBmcm9tICcuL0ZpbGVDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgTW9udGhDb21wb25lbnQgZnJvbSAnLi9Nb250aENvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBNdWx0aXBsZURyb3Bkb3duQ29tcG9uZW50IGZyb20gJy4vTXVsdGlwbGVEcm9wZG93bkNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBNdWx0aXBsZUVtYWlsQ29tcG9uZW50IGZyb20gJy4vTXVsdGlwbGVFbWFpbENvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBNdWx0aXBsZUZpbGVDb21wb25lbnQgZnJvbSAnLi9NdWx0aXBsZUZpbGVDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgTXVsdGlwbGVUZXh0Q29tcG9uZW50IGZyb20gJy4vTXVsdGlwbGVUZXh0Q29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIE51bWJlckNvbXBvbmVudCBmcm9tICcuL051bWJlckNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBUaW1lQ29tcG9uZW50IGZyb20gJy4vVGltZUNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBUeXBlZFJhbmdlVGV4dENvbXBvbmVudCBmcm9tICcuL1R5cGVkUmFuZ2VUZXh0Q29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIFR5cGVkVGV4dENvbXBvbmVudCBmcm9tICcuL1R5cGVkVGV4dENvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyBVcmxDb21wb25lbnQgZnJvbSAnLi9VcmxDb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgVmFsaWRhdG9yQ29tcG9uZW50IGZyb20gJy4vVmFsaWRhdG9yQ29tcG9uZW50LnRzJztcbmV4cG9ydCAqIGFzIFZhbHVlQ29tcG9uZW50V2l0aENoYW5nZVRyYWNraW5nIGZyb20gJy4vVmFsdWVDb21wb25lbnRXaXRoQ2hhbmdlVHJhY2tpbmcudHMnO1xuZXhwb3J0ICogYXMgV2Vla0NvbXBvbmVudCBmcm9tICcuL1dlZWtDb21wb25lbnQudHMnO1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7OztBQUVBLFlBQVksbUJBQW1CO0FBQy9CLFlBQVksdUJBQXVCO0FBQ25DLFlBQVksb0JBQW9CO0FBQ2hDLFlBQVksbUJBQW1CO0FBQy9CLFlBQVksb0JBQW9CO0FBQ2hDLFlBQVksK0JBQStCO0FBQzNDLFlBQVksNEJBQTRCO0FBQ3hDLFlBQVksMkJBQTJCO0FBQ3ZDLFlBQVksMkJBQTJCO0FBQ3ZDLFlBQVkscUJBQXFCO0FBQ2pDLFlBQVksbUJBQW1CO0FBQy9CLFlBQVksNkJBQTZCO0FBQ3pDLFlBQVksd0JBQXdCO0FBQ3BDLFlBQVksa0JBQWtCO0FBQzlCLFlBQVksd0JBQXdCO0FBQ3BDLFlBQVksc0NBQXNDO0FBQ2xELFlBQVksbUJBQW1COyIsCiAgIm5hbWVzIjogW10KfQo=
|
@@ -2,15 +2,15 @@
|
|
2
2
|
* @packageDocumentation Dataview
|
3
3
|
* This module provides utility functions for working with Dataview in Obsidian.
|
4
4
|
*/
|
5
|
-
import type { MaybePromise } from '../Async.
|
6
|
-
import type { DataviewInlineApi as DataviewInlineApiOriginal } from './@types/Dataview/api/inline-api.d.
|
7
|
-
import type { DataArray, DataviewApi, SMarkdownPage } from './@types/Dataview/index.d.
|
8
|
-
import type { PathOrFile } from './FileSystem.
|
9
|
-
import type { CombinedFrontmatter } from './Frontmatter.
|
5
|
+
import type { MaybePromise } from '../Async.cjs';
|
6
|
+
import type { DataviewInlineApi as DataviewInlineApiOriginal } from './@types/Dataview/api/inline-api.d.cjs';
|
7
|
+
import type { DataArray, DataviewApi, SMarkdownPage } from './@types/Dataview/index.d.cjs';
|
8
|
+
import type { PathOrFile } from './FileSystem.cjs';
|
9
|
+
import type { CombinedFrontmatter } from './Frontmatter.cjs';
|
10
10
|
/**
|
11
11
|
* Export DateTime and Link types from the Dataview API.
|
12
12
|
*/
|
13
|
-
export type { DateTime, Link } from './@types/Dataview/index.d.
|
13
|
+
export type { DateTime, Link } from './@types/Dataview/index.d.cjs';
|
14
14
|
declare global {
|
15
15
|
/**
|
16
16
|
* The DataviewAPI object represents the API for interacting with Dataview in Obsidian.
|
@@ -0,0 +1,215 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation Dataview
|
3
|
+
* This module provides utility functions for working with Dataview in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { MaybePromise } from '../Async.mjs';
|
6
|
+
import type { DataviewInlineApi as DataviewInlineApiOriginal } from './@types/Dataview/api/inline-api.d.mjs';
|
7
|
+
import type { DataArray, DataviewApi, SMarkdownPage } from './@types/Dataview/index.d.mjs';
|
8
|
+
import type { PathOrFile } from './FileSystem.mjs';
|
9
|
+
import type { CombinedFrontmatter } from './Frontmatter.mjs';
|
10
|
+
/**
|
11
|
+
* Export DateTime and Link types from the Dataview API.
|
12
|
+
*/
|
13
|
+
export type { DateTime, Link } from './@types/Dataview/index.d.mjs';
|
14
|
+
declare global {
|
15
|
+
/**
|
16
|
+
* The DataviewAPI object represents the API for interacting with Dataview in Obsidian.
|
17
|
+
*/
|
18
|
+
var DataviewAPI: DataviewApi | undefined;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* The combined page type, which includes the front matter and the SMarkdownPage.
|
22
|
+
*/
|
23
|
+
export type CombinedPage<CustomFrontmatter = unknown> = CombinedFrontmatter<CustomFrontmatter> & SMarkdownPage;
|
24
|
+
/**
|
25
|
+
* Extended interface for the Dataview Inline API, providing additional methods for custom page types and array handling.
|
26
|
+
*
|
27
|
+
* @typeParam CustomPage - The type of the custom page. Defaults to `SMarkdownPage`.
|
28
|
+
*/
|
29
|
+
export interface DataviewInlineApi extends DataviewInlineApiOriginal {
|
30
|
+
/**
|
31
|
+
* Wraps an array of items into a `DataArray` object.
|
32
|
+
*
|
33
|
+
* @typeParam T - The type of the items in the array.
|
34
|
+
* @param arr - The array of items to wrap.
|
35
|
+
* @returns A `DataArray` containing the items.
|
36
|
+
*/
|
37
|
+
array<T>(arr: T[]): DataArray<T>;
|
38
|
+
/**
|
39
|
+
* Retrieves the current page, with an optional custom page type.
|
40
|
+
*
|
41
|
+
* @typeParam CustomPage - The type of the custom page. Defaults to `SMarkdownPage`.
|
42
|
+
* @returns The current page.
|
43
|
+
*/
|
44
|
+
current<CustomFrontmatter = unknown>(): CombinedPage<CustomFrontmatter>;
|
45
|
+
/**
|
46
|
+
* Retrieves pages based on an optional query, with an optional custom page type.
|
47
|
+
*
|
48
|
+
* @typeParam CustomPage - The type of the custom page. Defaults to `SMarkdownPage`.
|
49
|
+
* @param query - An optional string query to filter the pages.
|
50
|
+
* @returns A `DataArray` of pages matching the query.
|
51
|
+
*/
|
52
|
+
pages<CustomFrontmatter = unknown>(query?: string): DataArray<CombinedPage<CustomFrontmatter>>;
|
53
|
+
/**
|
54
|
+
* Creates a paragraph HTML element with the provided text and optional DOM element options.
|
55
|
+
*
|
56
|
+
* @param text - The content of the paragraph.
|
57
|
+
* @param options - Optional DOM element options, including an optional container.
|
58
|
+
* @returns The created HTML paragraph element.
|
59
|
+
*/
|
60
|
+
paragraph(text: unknown, options?: DomElementInfoWithContainer): HTMLParagraphElement;
|
61
|
+
}
|
62
|
+
/**
|
63
|
+
* DomElementInfo with an optional container.
|
64
|
+
*/
|
65
|
+
export type DomElementInfoWithContainer = {
|
66
|
+
container?: HTMLElement;
|
67
|
+
} & DomElementInfo;
|
68
|
+
/**
|
69
|
+
* The combined file type, which includes the front matter and the SMarkdownFile.
|
70
|
+
*/
|
71
|
+
export type PageFile = SMarkdownPage['file'];
|
72
|
+
/**
|
73
|
+
* List of page files.
|
74
|
+
*/
|
75
|
+
export type PageFiles = ArrayOrDataArray<PageFile>;
|
76
|
+
/**
|
77
|
+
* Reloads the current file cache using the Dataview API.
|
78
|
+
*
|
79
|
+
* @param dv - The DataviewInlineApi instance.
|
80
|
+
* @returns A promise that resolves when the cache is reloaded.
|
81
|
+
*/
|
82
|
+
export declare function reloadCurrentFileCache(dv: DataviewInlineApi): Promise<void>;
|
83
|
+
/**
|
84
|
+
* Array or DataArray type.
|
85
|
+
*/
|
86
|
+
export type ArrayOrDataArray<T> = DataArray<T> | T[];
|
87
|
+
/**
|
88
|
+
* Options for rendering an iframe in the Dataview container.
|
89
|
+
*/
|
90
|
+
export interface RenderIframeOptions {
|
91
|
+
/**
|
92
|
+
* The DataviewInlineApi instance.
|
93
|
+
*/
|
94
|
+
dv: DataviewInlineApi;
|
95
|
+
/**
|
96
|
+
* The height of the iframe.
|
97
|
+
*/
|
98
|
+
height: string;
|
99
|
+
/**
|
100
|
+
* The relative path to the resource to be displayed in the iframe.
|
101
|
+
*/
|
102
|
+
relativePathOrFile: PathOrFile;
|
103
|
+
/**
|
104
|
+
* The width of the iframe.
|
105
|
+
*/
|
106
|
+
width: string;
|
107
|
+
}
|
108
|
+
/**
|
109
|
+
* Options for rendering a paginated list using the Dataview API.
|
110
|
+
*/
|
111
|
+
export interface RenderPaginatedListOptions<T> {
|
112
|
+
/**
|
113
|
+
* The DataviewInlineApi instance.
|
114
|
+
*/
|
115
|
+
dv: DataviewInlineApi;
|
116
|
+
/**
|
117
|
+
* Options for items per page. Defaults to `[10, 20, 50, 100]`.
|
118
|
+
*/
|
119
|
+
itemsPerPageOptions?: number[];
|
120
|
+
/**
|
121
|
+
* The list of items to paginate.
|
122
|
+
*/
|
123
|
+
rows: ArrayOrDataArray<T>;
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* Options for rendering a paginated element using the Dataview API.
|
127
|
+
*/
|
128
|
+
export interface RenderPaginatedOptions<T> {
|
129
|
+
/**
|
130
|
+
* The DataviewInlineApi instance.
|
131
|
+
*/
|
132
|
+
dv: DataviewInlineApi;
|
133
|
+
/**
|
134
|
+
* Options for items per page.
|
135
|
+
*/
|
136
|
+
itemsPerPageOptions: number[];
|
137
|
+
/**
|
138
|
+
* The renderer function to display the paginated content.
|
139
|
+
* @param rowsForOnePage - The rows to render.
|
140
|
+
* @returns A promise that resolves when the content is rendered.
|
141
|
+
*/
|
142
|
+
renderer: (rowsForOnePage: ArrayOrDataArray<T>) => MaybePromise<void>;
|
143
|
+
/**
|
144
|
+
* The rows to paginate.
|
145
|
+
*/
|
146
|
+
rows: ArrayOrDataArray<T>;
|
147
|
+
}
|
148
|
+
/**
|
149
|
+
* Options for rendering a paginated table using the Dataview API.
|
150
|
+
*/
|
151
|
+
export interface RenderPaginatedTableOptions<T> {
|
152
|
+
/**
|
153
|
+
* The DataviewInlineApi instance.
|
154
|
+
*/
|
155
|
+
dv: DataviewInlineApi;
|
156
|
+
/**
|
157
|
+
* The headers of the table.
|
158
|
+
*/
|
159
|
+
headers: string[];
|
160
|
+
/**
|
161
|
+
* Options for items per page. Defaults to `[10, 20, 50, 100]`.
|
162
|
+
*/
|
163
|
+
itemsPerPageOptions?: number[];
|
164
|
+
/**
|
165
|
+
* The rows of the table to paginate.
|
166
|
+
*/
|
167
|
+
rows: ArrayOrDataArray<T>;
|
168
|
+
}
|
169
|
+
/**
|
170
|
+
* Renders the content using the provided renderer function in a temporary container,
|
171
|
+
* and then returns the container.
|
172
|
+
*
|
173
|
+
* @param dv - The DataviewInlineApi instance.
|
174
|
+
* @param renderer - The function responsible for rendering the content.
|
175
|
+
* @returns A promise that resolves to the HTML paragraph element
|
176
|
+
* that was used as the temporary container.
|
177
|
+
*/
|
178
|
+
export declare function getRenderedContainer(dv: DataviewInlineApi, renderer: () => MaybePromise<void>): Promise<HTMLParagraphElement>;
|
179
|
+
/**
|
180
|
+
* Inserts a code block into the specified Dataview instance using the provided language and code.
|
181
|
+
*
|
182
|
+
* @param dv - The DataviewInlineApi instance to insert the code block into.
|
183
|
+
* @param language - The language identifier for the code block.
|
184
|
+
* @param code - The code content to be inserted into the code block.
|
185
|
+
* @returns This function does not return a value.
|
186
|
+
*/
|
187
|
+
export declare function insertCodeBlock(dv: DataviewInlineApi, language: string, code: string): void;
|
188
|
+
/**
|
189
|
+
* Renders an iframe in the Dataview container with the specified relative path, width, and height.
|
190
|
+
*
|
191
|
+
* @param options - The options for rendering the iframe.
|
192
|
+
*
|
193
|
+
* @returns This function does not return a value.
|
194
|
+
*/
|
195
|
+
export declare function renderIframe(options: RenderIframeOptions): void;
|
196
|
+
/**
|
197
|
+
* Renders a paginated list using the provided DataviewInlineApi instance.
|
198
|
+
*
|
199
|
+
* @typeParam T - The type of items in the list.
|
200
|
+
*
|
201
|
+
* @param options - The options for rendering the paginated list.
|
202
|
+
*
|
203
|
+
* @returns A promise that resolves when the list is rendered.
|
204
|
+
*/
|
205
|
+
export declare function renderPaginatedList<T>(options: RenderPaginatedListOptions<T>): Promise<void>;
|
206
|
+
/**
|
207
|
+
* Renders a paginated table using the provided DataviewInlineApi instance.
|
208
|
+
*
|
209
|
+
* @typeParam T - The type of items in the table rows.
|
210
|
+
*
|
211
|
+
* @param options - The options for rendering the paginated table.
|
212
|
+
*
|
213
|
+
* @returns A promise that resolves when the table is rendered.
|
214
|
+
*/
|
215
|
+
export declare function renderPaginatedTable<T extends unknown[]>(options: RenderPaginatedTableOptions<T>): Promise<void>;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* @packageDocumentation DataviewLink
|
3
3
|
* This module provides utility functions for working with Dataview links in Obsidian
|
4
4
|
*/
|
5
|
-
import type { DataviewInlineApi, Link } from './Dataview.
|
6
|
-
import type { PathOrFile } from './FileSystem.
|
5
|
+
import type { DataviewInlineApi, Link } from './Dataview.cjs';
|
6
|
+
import type { PathOrFile } from './FileSystem.cjs';
|
7
7
|
/**
|
8
8
|
* Fixes the title of a file or folder note by generating a `Link` object with a proper title.
|
9
9
|
*
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation DataviewLink
|
3
|
+
* This module provides utility functions for working with Dataview links in Obsidian
|
4
|
+
*/
|
5
|
+
import type { DataviewInlineApi, Link } from './Dataview.mjs';
|
6
|
+
import type { PathOrFile } from './FileSystem.mjs';
|
7
|
+
/**
|
8
|
+
* Fixes the title of a file or folder note by generating a `Link` object with a proper title.
|
9
|
+
*
|
10
|
+
* @param dv - The DataviewInlineApi instance used to create the file link.
|
11
|
+
* @param pathOrFile - The file path for which the title is to be fixed.
|
12
|
+
* @param isFolderNote - A boolean indicating whether the file is a folder note. Defaults to `false`.
|
13
|
+
* If true, the title is derived from the folder name. Defaults to `false`.
|
14
|
+
* @returns A Link object with the corrected title.
|
15
|
+
*/
|
16
|
+
export declare function fixTitle(dv: DataviewInlineApi, pathOrFile: PathOrFile, isFolderNote?: boolean): Link;
|
17
|
+
/**
|
18
|
+
* Generates a string representation of a `Link` object that includes both the link text and the file path.
|
19
|
+
*
|
20
|
+
* @param link - The Link object to be converted to a string with its path.
|
21
|
+
* @returns A string representing the link in the format: "linkText (linkPath)".
|
22
|
+
*/
|
23
|
+
export declare function makeLinkWithPath(link: Link): string;
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Contains utility types and functions for handling file changes in Obsidian.
|
4
4
|
*/
|
5
5
|
import type { App } from 'obsidian';
|
6
|
-
import type { ValueProvider } from '../ValueProvider.
|
7
|
-
import type { PathOrFile } from './FileSystem.
|
8
|
-
import type { ProcessOptions } from './Vault.
|
6
|
+
import type { ValueProvider } from '../ValueProvider.cjs';
|
7
|
+
import type { PathOrFile } from './FileSystem.cjs';
|
8
|
+
import type { ProcessOptions } from './Vault.cjs';
|
9
9
|
/**
|
10
10
|
* Represents a content body change in the Vault.
|
11
11
|
*/
|
@@ -0,0 +1,68 @@
|
|
1
|
+
/**
|
2
|
+
* @packageDocumentation FileChange
|
3
|
+
* Contains utility types and functions for handling file changes in Obsidian.
|
4
|
+
*/
|
5
|
+
import type { App } from 'obsidian';
|
6
|
+
import type { ValueProvider } from '../ValueProvider.mjs';
|
7
|
+
import type { PathOrFile } from './FileSystem.mjs';
|
8
|
+
import type { ProcessOptions } from './Vault.mjs';
|
9
|
+
/**
|
10
|
+
* Represents a content body change in the Vault.
|
11
|
+
*/
|
12
|
+
export interface ContentChange extends FileChange {
|
13
|
+
/**
|
14
|
+
* The end index of the change in the file content.
|
15
|
+
*/
|
16
|
+
endIndex: number;
|
17
|
+
/**
|
18
|
+
* The start index of the change in the file content.
|
19
|
+
*/
|
20
|
+
startIndex: number;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Represents a file change in the Vault.
|
24
|
+
*/
|
25
|
+
export interface FileChange {
|
26
|
+
/**
|
27
|
+
* The new content to replace the old content.
|
28
|
+
*/
|
29
|
+
newContent: string;
|
30
|
+
/**
|
31
|
+
* The old content that will be replaced.
|
32
|
+
*/
|
33
|
+
oldContent: string;
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Represents a frontmatter change in the Vault.
|
37
|
+
*/
|
38
|
+
export interface FrontmatterChange extends FileChange {
|
39
|
+
/**
|
40
|
+
* The key in the frontmatter to use for the link.
|
41
|
+
*/
|
42
|
+
frontmatterKey: string;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Applies a series of file changes to the specified file or path within the application.
|
46
|
+
*
|
47
|
+
* @param app - The application instance where the file changes will be applied.
|
48
|
+
* @param pathOrFile - The path or file to which the changes should be applied.
|
49
|
+
* @param changesProvider - A provider that returns an array of file changes to apply.
|
50
|
+
* @param processOptions - Optional options for processing/retrying the operation.
|
51
|
+
*
|
52
|
+
* @returns A promise that resolves when the file changes have been successfully applied.
|
53
|
+
*/
|
54
|
+
export declare function applyFileChanges(app: App, pathOrFile: PathOrFile, changesProvider: ValueProvider<FileChange[]>, processOptions?: ProcessOptions): Promise<void>;
|
55
|
+
/**
|
56
|
+
* Checks if a file change is a content change.
|
57
|
+
*
|
58
|
+
* @param fileChange - The file change to check.
|
59
|
+
* @returns A boolean indicating whether the file change is a content change.
|
60
|
+
*/
|
61
|
+
export declare function isContentChange(fileChange: FileChange): fileChange is ContentChange;
|
62
|
+
/**
|
63
|
+
* Checks if a file change is a frontmatter change.
|
64
|
+
*
|
65
|
+
* @param fileChange - The file change to check.
|
66
|
+
* @returns A boolean indicating whether the file change is a frontmatter change.
|
67
|
+
*/
|
68
|
+
export declare function isFrontmatterChange(fileChange: FileChange): fileChange is FrontmatterChange;
|