obsidian-dev-utils 49.0.3 → 51.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +14 -3
- package/Transformers/Transformer/package.json +3 -3
- package/Transformers/date-transformer/package.json +6 -0
- package/Transformers/duration-transformer/package.json +6 -0
- package/Transformers/group-transformer/package.json +6 -0
- package/Transformers/index/package.json +3 -3
- package/Transformers/map-transformer/package.json +6 -0
- package/Transformers/package.json +3 -3
- package/Transformers/set-transformer/package.json +6 -0
- package/Transformers/skip-private-property-transformer/package.json +6 -0
- package/Transformers/two-way-map-transformer/package.json +6 -0
- package/Transformers/typed-transformer/package.json +6 -0
- package/codemirror/state-field-spec/package.json +6 -0
- package/dist/.markdownlint-cli2.mts +2 -2
- package/dist/eslint.config.mts +1 -1
- package/dist/lib/cjs/abort-controller.cjs +212 -0
- package/dist/lib/cjs/array.cjs +169 -0
- package/dist/lib/cjs/async-events.cjs +319 -0
- package/dist/lib/cjs/async.cjs +469 -0
- package/dist/lib/cjs/async.d.cts +326 -0
- package/dist/lib/cjs/blob.cjs +204 -0
- package/dist/lib/cjs/blob.d.cts +41 -0
- package/dist/lib/cjs/codemirror/index.cjs +4 -4
- package/dist/lib/cjs/codemirror/index.d.cts +1 -1
- package/dist/lib/cjs/codemirror/state-field-spec.cjs +120 -0
- package/dist/lib/cjs/css-class.cjs +169 -0
- package/dist/lib/cjs/debug-controller.cjs +120 -0
- package/dist/lib/cjs/debug.cjs +270 -0
- package/dist/lib/cjs/debug.d.cts +47 -0
- package/dist/lib/cjs/enum.cjs +140 -0
- package/dist/lib/cjs/error.cjs +245 -0
- package/dist/lib/cjs/function.cjs +151 -0
- package/dist/lib/cjs/html-element.cjs +288 -0
- package/dist/lib/cjs/html-element.d.cts +122 -0
- package/dist/lib/cjs/index.cjs +69 -69
- package/dist/lib/cjs/index.d.cts +22 -22
- package/dist/lib/cjs/library.cjs +138 -0
- package/dist/lib/cjs/object-utils.cjs +554 -0
- package/dist/lib/cjs/object-utils.d.cts +255 -0
- package/dist/lib/cjs/obsidian/@types/i18next.d.cts +2 -2
- package/dist/lib/cjs/obsidian/app.cjs +170 -0
- package/dist/lib/cjs/obsidian/async-with-notice.cjs +200 -0
- package/dist/lib/cjs/obsidian/async-with-notice.d.cts +82 -0
- package/dist/lib/cjs/obsidian/attachment-path.cjs +234 -0
- package/dist/lib/cjs/obsidian/attachment-path.d.cts +181 -0
- package/dist/lib/cjs/obsidian/backlink.cjs +206 -0
- package/dist/lib/cjs/obsidian/backlink.d.cts +61 -0
- package/dist/lib/cjs/obsidian/callout.cjs +203 -0
- package/dist/lib/cjs/obsidian/callout.d.cts +61 -0
- package/dist/lib/cjs/obsidian/code-block-markdown-information.cjs +120 -0
- package/dist/lib/cjs/obsidian/commands/abstract-file-command-base.cjs +436 -0
- package/dist/lib/cjs/obsidian/commands/abstract-file-command-base.d.cts +264 -0
- package/dist/lib/cjs/obsidian/commands/command-base.cjs +252 -0
- package/dist/lib/cjs/obsidian/commands/editor-command-base.cjs +278 -0
- package/dist/lib/cjs/obsidian/commands/editor-command-base.d.cts +139 -0
- package/dist/lib/cjs/obsidian/commands/file-command-base.cjs +338 -0
- package/dist/lib/cjs/obsidian/commands/file-command-base.d.cts +191 -0
- package/dist/lib/cjs/obsidian/commands/folder-command-base.cjs +330 -0
- package/dist/lib/cjs/obsidian/commands/folder-command-base.d.cts +184 -0
- package/dist/lib/cjs/obsidian/commands/index.cjs +157 -0
- package/dist/lib/cjs/obsidian/commands/index.d.cts +6 -0
- package/dist/lib/cjs/obsidian/commands/non-editor-command-base.cjs +152 -0
- package/dist/lib/cjs/obsidian/commands/non-editor-command-base.d.cts +34 -0
- package/dist/lib/cjs/obsidian/components/async-events-component.cjs +149 -0
- package/dist/lib/cjs/obsidian/components/async-events-component.d.cts +25 -0
- package/dist/lib/cjs/obsidian/components/index.cjs +145 -0
- package/dist/lib/cjs/obsidian/components/index.d.cts +2 -0
- package/dist/lib/cjs/obsidian/components/setting-components/checkbox-component.cjs +205 -0
- package/dist/lib/cjs/obsidian/components/setting-components/checkbox-component.d.cts +69 -0
- package/dist/lib/cjs/obsidian/components/setting-components/code-highlighter-component.cjs +352 -0
- package/dist/lib/cjs/obsidian/components/setting-components/code-highlighter-component.d.cts +118 -0
- package/dist/lib/cjs/obsidian/components/setting-components/date-component.cjs +165 -0
- package/dist/lib/cjs/obsidian/components/setting-components/date-component.d.cts +37 -0
- package/dist/lib/cjs/obsidian/components/setting-components/date-time-component.cjs +165 -0
- package/dist/lib/cjs/obsidian/components/setting-components/date-time-component.d.cts +37 -0
- package/dist/lib/cjs/obsidian/components/setting-components/email-component.cjs +176 -0
- package/dist/lib/cjs/obsidian/components/setting-components/email-component.d.cts +48 -0
- package/dist/lib/cjs/obsidian/components/setting-components/file-component.cjs +168 -0
- package/dist/lib/cjs/obsidian/components/setting-components/file-component.d.cts +42 -0
- package/dist/lib/cjs/obsidian/components/setting-components/index.cjs +217 -0
- package/dist/lib/cjs/obsidian/components/setting-components/index.d.cts +26 -0
- package/dist/lib/cjs/obsidian/components/setting-components/month-component.cjs +173 -0
- package/dist/lib/cjs/obsidian/components/setting-components/month-component.d.cts +50 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-dropdown-component.cjs +237 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-dropdown-component.d.cts +87 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-email-component.cjs +162 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-email-component.d.cts +37 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-file-component.cjs +169 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-file-component.d.cts +42 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-text-component.cjs +250 -0
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-text-component.d.cts +98 -0
- package/dist/lib/cjs/obsidian/components/setting-components/number-component.cjs +186 -0
- package/dist/lib/cjs/obsidian/components/setting-components/number-component.d.cts +55 -0
- package/dist/lib/cjs/obsidian/components/setting-components/password-component.cjs +162 -0
- package/dist/lib/cjs/obsidian/components/setting-components/password-component.d.cts +37 -0
- package/dist/lib/cjs/obsidian/components/setting-components/setting-component-wrapper.cjs +149 -0
- package/dist/lib/cjs/obsidian/components/setting-components/telephone-component.cjs +176 -0
- package/dist/lib/cjs/obsidian/components/setting-components/telephone-component.d.cts +50 -0
- package/dist/lib/cjs/obsidian/components/setting-components/text-based-component.cjs +161 -0
- package/dist/lib/cjs/obsidian/components/setting-components/time-component.cjs +170 -0
- package/dist/lib/cjs/obsidian/components/setting-components/time-component.d.cts +37 -0
- package/dist/lib/cjs/obsidian/components/setting-components/tri-state-checkbox-component.cjs +206 -0
- package/dist/lib/cjs/obsidian/components/setting-components/tri-state-checkbox-component.d.cts +69 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-dropdown-component.cjs +243 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-dropdown-component.d.cts +89 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-multiple-dropdown-component.cjs +245 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-multiple-dropdown-component.d.cts +90 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-range-text-component.cjs +164 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-range-text-component.d.cts +34 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-text-component.cjs +220 -0
- package/dist/lib/cjs/obsidian/components/setting-components/typed-text-component.d.cts +85 -0
- package/dist/lib/cjs/obsidian/components/setting-components/url-component.cjs +176 -0
- package/dist/lib/cjs/obsidian/components/setting-components/url-component.d.cts +48 -0
- package/dist/lib/cjs/obsidian/components/setting-components/validator-component.cjs +220 -0
- package/dist/lib/cjs/obsidian/components/setting-components/validator-component.d.cts +22 -0
- package/dist/lib/cjs/obsidian/components/setting-components/value-component-with-change-tracking.cjs +120 -0
- package/dist/lib/cjs/obsidian/components/setting-components/week-component.cjs +173 -0
- package/dist/lib/cjs/obsidian/components/setting-components/week-component.d.cts +50 -0
- package/dist/lib/cjs/obsidian/constructors/getDomEventsHandlersConstructor.cjs +169 -0
- package/dist/lib/cjs/obsidian/constructors/getDomEventsHandlersConstructor.d.cts +19 -0
- package/dist/lib/cjs/obsidian/constructors/index.cjs +142 -0
- package/dist/lib/cjs/obsidian/constructors/index.d.cts +1 -0
- package/dist/lib/cjs/obsidian/dataview-link.cjs +144 -0
- package/dist/lib/cjs/obsidian/dataview-link.d.cts +24 -0
- package/dist/lib/cjs/obsidian/dataview.cjs +353 -0
- package/dist/lib/cjs/obsidian/dataview.d.cts +214 -0
- package/dist/lib/cjs/obsidian/editor.cjs +162 -0
- package/dist/lib/cjs/obsidian/file-change.cjs +473 -0
- package/dist/lib/cjs/obsidian/file-change.d.cts +119 -0
- package/dist/lib/cjs/obsidian/file-manager.cjs +193 -0
- package/dist/lib/cjs/obsidian/file-manager.d.cts +40 -0
- package/dist/lib/cjs/obsidian/file-system.cjs +406 -0
- package/dist/lib/cjs/obsidian/file-system.d.cts +279 -0
- package/dist/lib/cjs/obsidian/frontmatter-link-cache-with-offsets.cjs +151 -0
- package/dist/lib/cjs/obsidian/frontmatter.cjs +149 -0
- package/dist/lib/cjs/obsidian/frontmatter.d.cts +74 -0
- package/dist/lib/cjs/obsidian/i18n/custom-type-options-base.cjs +121 -0
- package/dist/lib/cjs/obsidian/i18n/custom-type-options-base.d.cts +31 -0
- package/dist/lib/cjs/obsidian/i18n/default-translations-base.cjs +121 -0
- package/dist/lib/cjs/obsidian/i18n/default-translations-base.d.cts +25 -0
- package/dist/lib/cjs/obsidian/i18n/i18n.cjs +3 -3
- package/dist/lib/cjs/obsidian/i18n/i18n.d.cts +1 -1
- package/dist/lib/cjs/obsidian/i18n/index.cjs +7 -7
- package/dist/lib/cjs/obsidian/i18n/index.d.cts +2 -2
- package/dist/lib/cjs/obsidian/i18n/locales/translationsMap.cjs +1 -1
- package/dist/lib/cjs/obsidian/i18n/locales/translationsMap.d.cts +1 -1
- package/dist/lib/cjs/obsidian/index.cjs +123 -120
- package/dist/lib/cjs/obsidian/index.d.cts +40 -39
- package/dist/lib/cjs/obsidian/link.cjs +887 -0
- package/dist/lib/cjs/obsidian/link.d.cts +716 -0
- package/dist/lib/cjs/obsidian/logger.cjs +174 -0
- package/dist/lib/cjs/obsidian/loop.cjs +225 -0
- package/dist/lib/cjs/obsidian/markdown-code-block-processor.cjs +362 -0
- package/dist/lib/cjs/obsidian/markdown-code-block-processor.d.cts +107 -0
- package/dist/lib/cjs/obsidian/markdown-view.cjs +140 -0
- package/dist/lib/cjs/obsidian/markdown.cjs +251 -0
- package/dist/lib/cjs/obsidian/markdown.d.cts +79 -0
- package/dist/lib/cjs/obsidian/metadata-cache.cjs +367 -0
- package/dist/lib/cjs/obsidian/metadata-cache.d.cts +137 -0
- package/dist/lib/cjs/obsidian/modals/alert.cjs +166 -0
- package/dist/lib/cjs/obsidian/modals/confirm.cjs +175 -0
- package/dist/lib/cjs/obsidian/modals/index.cjs +154 -0
- package/dist/lib/cjs/obsidian/modals/index.d.cts +5 -0
- package/dist/lib/cjs/obsidian/modals/modal-base.cjs +158 -0
- package/dist/lib/cjs/obsidian/modals/modal-base.d.cts +42 -0
- package/dist/lib/cjs/obsidian/modals/prompt.cjs +210 -0
- package/dist/lib/cjs/obsidian/modals/prompt.d.cts +53 -0
- package/dist/lib/cjs/obsidian/modals/select-item.cjs +170 -0
- package/dist/lib/cjs/obsidian/modals/select-item.d.cts +43 -0
- package/dist/lib/cjs/obsidian/monkey-around.cjs +173 -0
- package/dist/lib/cjs/obsidian/obsidian-settings.cjs +139 -0
- package/dist/lib/cjs/obsidian/pdf.cjs +162 -0
- package/dist/lib/cjs/obsidian/plugin/index.cjs +169 -0
- package/dist/lib/cjs/obsidian/plugin/index.d.cts +10 -0
- package/dist/lib/cjs/obsidian/plugin/obsidian-plugin-repo-paths.cjs +179 -0
- package/dist/lib/cjs/obsidian/plugin/path-settings.cjs +235 -0
- package/dist/lib/cjs/obsidian/plugin/path-settings.d.cts +43 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-base.cjs +453 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-base.d.cts +200 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-context.cjs +165 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-id.cjs +145 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-manager-base.cjs +483 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-manager-base.d.cts +186 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-tab-base.cjs +401 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-tab-base.d.cts +148 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-wrapper.cjs +120 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-wrapper.d.cts +25 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-types-base.cjs +120 -0
- package/dist/lib/cjs/obsidian/plugin/plugin-types-base.d.cts +87 -0
- package/dist/lib/cjs/obsidian/plugin/plugin.cjs +146 -0
- package/dist/lib/cjs/obsidian/queue.cjs +201 -0
- package/dist/lib/cjs/obsidian/react/app-context.cjs +140 -0
- package/dist/lib/cjs/obsidian/react/index.cjs +142 -0
- package/dist/lib/cjs/obsidian/react/index.d.cts +1 -0
- package/dist/lib/cjs/obsidian/reference.cjs +177 -0
- package/dist/lib/cjs/obsidian/reference.d.cts +82 -0
- package/dist/lib/cjs/obsidian/rename-delete-handler.cjs +837 -0
- package/dist/lib/cjs/obsidian/resource-url.cjs +139 -0
- package/dist/lib/cjs/obsidian/setting-ex.cjs +361 -0
- package/dist/lib/cjs/obsidian/setting-ex.d.cts +182 -0
- package/dist/lib/cjs/obsidian/setting-group-ex.cjs +154 -0
- package/dist/lib/cjs/obsidian/setting-group-ex.d.cts +25 -0
- package/dist/lib/cjs/obsidian/validation.cjs +159 -0
- package/dist/lib/cjs/obsidian/vault-delete.cjs +171 -0
- package/dist/lib/cjs/obsidian/vault-delete.d.cts +18 -0
- package/dist/lib/cjs/obsidian/vault.cjs +540 -0
- package/dist/lib/cjs/obsidian/vault.d.cts +261 -0
- package/dist/lib/cjs/obsidian/workspace.cjs +143 -0
- package/dist/lib/cjs/path.cjs +221 -0
- package/dist/lib/cjs/reg-exp.cjs +255 -0
- package/dist/lib/cjs/script-utils/build.cjs +179 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/changeExtensionPlugin.cjs +164 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/copyToObsidianPluginsFolderPlugin.cjs +196 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/customEsbuildOptionsPlugin.cjs +139 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/dependency.cjs +220 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/fixEsmPlugin.cjs +145 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/fixSourceMapsPlugin.cjs +171 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/index.cjs +169 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/index.d.cts +10 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.cjs +286 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.d.cts +89 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/preprocessPlugin.cjs +298 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/renameCssPlugin.cjs +148 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/svelteWrapperPlugin.cjs +172 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild.cjs +142 -0
- package/dist/lib/cjs/script-utils/bundlers/esbuild.d.cts +10 -0
- package/dist/lib/cjs/script-utils/bundlers/index.cjs +145 -0
- package/dist/lib/cjs/script-utils/bundlers/index.d.cts +2 -0
- package/dist/lib/cjs/script-utils/cli-utils.cjs +264 -0
- package/dist/lib/cjs/script-utils/cli-utils.d.cts +76 -0
- package/dist/lib/cjs/script-utils/code-generator.cjs +139 -0
- package/dist/lib/cjs/script-utils/exec.cjs +214 -0
- package/dist/lib/cjs/script-utils/exec.d.cts +84 -0
- package/dist/lib/cjs/script-utils/formatters/dprint.cjs +164 -0
- package/dist/lib/cjs/script-utils/formatters/index.cjs +142 -0
- package/dist/lib/cjs/script-utils/formatters/index.d.cts +1 -0
- package/dist/lib/cjs/script-utils/fs.cjs +181 -0
- package/dist/lib/cjs/script-utils/fs.d.cts +75 -0
- package/dist/lib/cjs/script-utils/index.cjs +193 -0
- package/dist/lib/cjs/script-utils/index.d.cts +18 -0
- package/dist/lib/cjs/script-utils/json.cjs +179 -0
- package/dist/lib/cjs/script-utils/json.d.cts +65 -0
- package/dist/lib/cjs/script-utils/linters/cspell.cjs +135 -0
- package/dist/lib/cjs/script-utils/linters/eslint-config.cjs +599 -0
- package/dist/lib/cjs/script-utils/linters/eslint.cjs +175 -0
- package/dist/lib/cjs/script-utils/linters/index.cjs +154 -0
- package/dist/lib/cjs/script-utils/linters/index.d.cts +5 -0
- package/dist/lib/cjs/script-utils/linters/markdownlint-cli2-config.cjs +172 -0
- package/dist/lib/cjs/script-utils/linters/markdownlint-cli2-config.d.cts +10 -0
- package/dist/lib/cjs/script-utils/linters/markdownlint.cjs +206 -0
- package/dist/lib/cjs/script-utils/linters/markdownlint.d.cts +11 -0
- package/dist/lib/cjs/script-utils/node-modules.cjs +207 -0
- package/dist/lib/cjs/script-utils/npm-publish.cjs +143 -0
- package/dist/lib/cjs/script-utils/npm-run.cjs +151 -0
- package/dist/lib/cjs/script-utils/npm.cjs +234 -0
- package/dist/lib/cjs/script-utils/npm.d.cts +149 -0
- package/dist/lib/cjs/script-utils/obsidian-cli.cjs +139 -0
- package/dist/lib/cjs/script-utils/obsidian-cli.d.cts +23 -0
- package/dist/lib/cjs/script-utils/obsidian-dev-utils-repo-paths.cjs +178 -0
- package/dist/lib/cjs/script-utils/obsidian-dev-utils-repo-paths.d.cts +100 -0
- package/dist/lib/cjs/script-utils/root.cjs +184 -0
- package/dist/lib/cjs/script-utils/root.d.cts +68 -0
- package/dist/lib/cjs/script-utils/test-runners/index.cjs +142 -0
- package/dist/lib/cjs/script-utils/test-runners/index.d.cts +1 -0
- package/dist/lib/cjs/script-utils/test-runners/vitest.cjs +145 -0
- package/dist/lib/cjs/script-utils/test-runners/vitest.d.cts +23 -0
- package/dist/lib/cjs/script-utils/version.cjs +477 -0
- package/dist/lib/cjs/script-utils/version.d.cts +176 -0
- package/dist/lib/cjs/string.cjs +333 -0
- package/dist/lib/cjs/string.d.cts +186 -0
- package/dist/lib/cjs/transformers/date-transformer.cjs +169 -0
- package/dist/lib/cjs/transformers/date-transformer.d.cts +38 -0
- package/dist/lib/cjs/transformers/duration-transformer.cjs +171 -0
- package/dist/lib/cjs/transformers/duration-transformer.d.cts +38 -0
- package/dist/lib/cjs/transformers/group-transformer.cjs +215 -0
- package/dist/lib/cjs/transformers/group-transformer.d.cts +69 -0
- package/dist/lib/cjs/transformers/index.cjs +166 -0
- package/dist/lib/cjs/transformers/index.d.cts +9 -0
- package/dist/lib/cjs/transformers/map-transformer.cjs +169 -0
- package/dist/lib/cjs/transformers/map-transformer.d.cts +40 -0
- package/dist/lib/cjs/transformers/set-transformer.cjs +169 -0
- package/dist/lib/cjs/transformers/set-transformer.d.cts +38 -0
- package/dist/lib/cjs/transformers/skip-private-property-transformer.cjs +167 -0
- package/dist/lib/cjs/transformers/skip-private-property-transformer.d.cts +35 -0
- package/dist/lib/cjs/transformers/transformer.cjs +210 -0
- package/dist/lib/cjs/transformers/transformer.d.cts +69 -0
- package/dist/lib/cjs/transformers/two-way-map-transformer.cjs +170 -0
- package/dist/lib/cjs/transformers/two-way-map-transformer.d.cts +41 -0
- package/dist/lib/cjs/transformers/typed-transformer.cjs +134 -0
- package/dist/lib/cjs/transformers/typed-transformer.d.cts +38 -0
- package/dist/lib/cjs/two-way-map.cjs +248 -0
- package/dist/lib/cjs/type-guards.cjs +156 -0
- package/dist/lib/cjs/type.cjs +142 -0
- package/dist/lib/cjs/value-provider.cjs +143 -0
- package/dist/lib/esm/abort-controller.mjs +101 -0
- package/dist/lib/esm/array.mjs +61 -0
- package/dist/lib/esm/async-events.mjs +213 -0
- package/dist/lib/esm/async.d.mts +326 -0
- package/dist/lib/esm/async.mjs +354 -0
- package/dist/lib/esm/blob.d.mts +41 -0
- package/dist/lib/esm/blob.mjs +94 -0
- package/dist/lib/esm/codemirror/index.d.mts +1 -1
- package/dist/lib/esm/codemirror/index.mjs +3 -3
- package/dist/lib/esm/css-class.mjs +63 -0
- package/dist/lib/esm/debug.d.mts +47 -0
- package/dist/lib/esm/debug.mjs +152 -0
- package/dist/lib/esm/enum.mjs +33 -0
- package/dist/lib/esm/error.mjs +131 -0
- package/dist/lib/esm/function.mjs +42 -0
- package/dist/lib/esm/html-element.d.mts +122 -0
- package/dist/lib/esm/html-element.mjs +171 -0
- package/dist/lib/esm/index.d.mts +22 -22
- package/dist/lib/esm/index.mjs +46 -46
- package/dist/lib/esm/library.mjs +30 -0
- package/dist/lib/esm/object-utils.d.mts +255 -0
- package/dist/lib/esm/object-utils.mjs +435 -0
- package/dist/lib/esm/obsidian/@types/i18next.d.mts +2 -2
- package/dist/lib/esm/obsidian/app.mjs +62 -0
- package/dist/lib/esm/obsidian/async-with-notice.d.mts +82 -0
- package/dist/lib/esm/obsidian/async-with-notice.mjs +96 -0
- package/dist/lib/esm/obsidian/attachment-path.d.mts +181 -0
- package/dist/lib/esm/obsidian/attachment-path.mjs +139 -0
- package/dist/lib/esm/obsidian/backlink.d.mts +61 -0
- package/dist/lib/esm/obsidian/backlink.mjs +103 -0
- package/dist/lib/esm/obsidian/callout.d.mts +61 -0
- package/dist/lib/esm/obsidian/callout.mjs +95 -0
- package/dist/lib/esm/obsidian/commands/abstract-file-command-base.d.mts +264 -0
- package/dist/lib/esm/obsidian/commands/abstract-file-command-base.mjs +326 -0
- package/dist/lib/esm/obsidian/commands/command-base.mjs +145 -0
- package/dist/lib/esm/obsidian/commands/editor-command-base.d.mts +139 -0
- package/dist/lib/esm/obsidian/commands/editor-command-base.mjs +174 -0
- package/dist/lib/esm/obsidian/commands/file-command-base.d.mts +191 -0
- package/dist/lib/esm/obsidian/commands/file-command-base.mjs +237 -0
- package/dist/lib/esm/obsidian/commands/folder-command-base.d.mts +184 -0
- package/dist/lib/esm/obsidian/commands/folder-command-base.mjs +229 -0
- package/dist/lib/esm/obsidian/commands/index.d.mts +6 -0
- package/dist/lib/esm/obsidian/commands/index.mjs +36 -0
- package/dist/lib/esm/obsidian/commands/non-editor-command-base.d.mts +34 -0
- package/dist/lib/esm/obsidian/commands/non-editor-command-base.mjs +46 -0
- package/dist/lib/esm/obsidian/components/async-events-component.d.mts +25 -0
- package/dist/lib/esm/obsidian/components/async-events-component.mjs +42 -0
- package/dist/lib/esm/obsidian/components/index.d.mts +2 -0
- package/dist/lib/esm/obsidian/components/index.mjs +28 -0
- package/dist/lib/esm/obsidian/components/setting-components/checkbox-component.d.mts +69 -0
- package/dist/lib/esm/obsidian/components/setting-components/checkbox-component.mjs +99 -0
- package/dist/lib/esm/obsidian/components/setting-components/code-highlighter-component.d.mts +118 -0
- package/dist/lib/esm/obsidian/components/setting-components/code-highlighter-component.mjs +252 -0
- package/dist/lib/esm/obsidian/components/setting-components/date-component.d.mts +37 -0
- package/dist/lib/esm/obsidian/components/setting-components/date-component.mjs +59 -0
- package/dist/lib/esm/obsidian/components/setting-components/date-time-component.d.mts +37 -0
- package/dist/lib/esm/obsidian/components/setting-components/date-time-component.mjs +59 -0
- package/dist/lib/esm/obsidian/components/setting-components/email-component.d.mts +48 -0
- package/dist/lib/esm/obsidian/components/setting-components/email-component.mjs +70 -0
- package/dist/lib/esm/obsidian/components/setting-components/file-component.d.mts +42 -0
- package/dist/lib/esm/obsidian/components/setting-components/file-component.mjs +62 -0
- package/dist/lib/esm/obsidian/components/setting-components/index.d.mts +26 -0
- package/dist/lib/esm/obsidian/components/setting-components/index.mjs +76 -0
- package/dist/lib/esm/obsidian/components/setting-components/month-component.d.mts +50 -0
- package/dist/lib/esm/obsidian/components/setting-components/month-component.mjs +67 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-dropdown-component.d.mts +87 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-dropdown-component.mjs +134 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-email-component.d.mts +37 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-email-component.mjs +56 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-file-component.d.mts +42 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-file-component.mjs +63 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-text-component.d.mts +98 -0
- package/dist/lib/esm/obsidian/components/setting-components/multiple-text-component.mjs +147 -0
- package/dist/lib/esm/obsidian/components/setting-components/number-component.d.mts +55 -0
- package/dist/lib/esm/obsidian/components/setting-components/number-component.mjs +80 -0
- package/dist/lib/esm/obsidian/components/setting-components/password-component.d.mts +37 -0
- package/dist/lib/esm/obsidian/components/setting-components/password-component.mjs +56 -0
- package/dist/lib/esm/obsidian/components/setting-components/setting-component-wrapper.mjs +43 -0
- package/dist/lib/esm/obsidian/components/setting-components/telephone-component.d.mts +50 -0
- package/dist/lib/esm/obsidian/components/setting-components/telephone-component.mjs +70 -0
- package/dist/lib/esm/obsidian/components/setting-components/text-based-component.mjs +55 -0
- package/dist/lib/esm/obsidian/components/setting-components/time-component.d.mts +37 -0
- package/dist/lib/esm/obsidian/components/setting-components/time-component.mjs +64 -0
- package/dist/lib/esm/obsidian/components/setting-components/tri-state-checkbox-component.d.mts +69 -0
- package/dist/lib/esm/obsidian/components/setting-components/tri-state-checkbox-component.mjs +100 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-dropdown-component.d.mts +89 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-dropdown-component.mjs +140 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-multiple-dropdown-component.d.mts +90 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-multiple-dropdown-component.mjs +139 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-range-text-component.d.mts +34 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-range-text-component.mjs +58 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-text-component.d.mts +85 -0
- package/dist/lib/esm/obsidian/components/setting-components/typed-text-component.mjs +117 -0
- package/dist/lib/esm/obsidian/components/setting-components/url-component.d.mts +48 -0
- package/dist/lib/esm/obsidian/components/setting-components/url-component.mjs +70 -0
- package/dist/lib/esm/obsidian/components/setting-components/validator-component.d.mts +22 -0
- package/dist/lib/esm/obsidian/components/setting-components/validator-component.mjs +123 -0
- package/dist/lib/esm/obsidian/components/setting-components/week-component.d.mts +50 -0
- package/dist/lib/esm/obsidian/components/setting-components/week-component.mjs +67 -0
- package/dist/lib/esm/obsidian/constructors/getDomEventsHandlersConstructor.d.mts +19 -0
- package/dist/lib/esm/obsidian/constructors/getDomEventsHandlersConstructor.mjs +63 -0
- package/dist/lib/esm/obsidian/constructors/index.d.mts +1 -0
- package/dist/lib/esm/obsidian/constructors/index.mjs +26 -0
- package/dist/lib/esm/obsidian/dataview-link.d.mts +24 -0
- package/dist/lib/esm/obsidian/dataview-link.mjs +41 -0
- package/dist/lib/esm/obsidian/dataview.d.mts +214 -0
- package/dist/lib/esm/obsidian/dataview.mjs +245 -0
- package/dist/lib/esm/obsidian/editor.mjs +58 -0
- package/dist/lib/esm/obsidian/file-change.d.mts +119 -0
- package/dist/lib/esm/obsidian/file-change.mjs +378 -0
- package/dist/lib/esm/obsidian/file-manager.d.mts +40 -0
- package/dist/lib/esm/obsidian/file-manager.mjs +92 -0
- package/dist/lib/esm/obsidian/file-system.d.mts +279 -0
- package/dist/lib/esm/obsidian/file-system.mjs +283 -0
- package/dist/lib/esm/obsidian/frontmatter-link-cache-with-offsets.mjs +44 -0
- package/dist/lib/esm/obsidian/frontmatter.d.mts +74 -0
- package/dist/lib/esm/obsidian/frontmatter.mjs +46 -0
- package/dist/lib/esm/obsidian/i18n/custom-type-options-base.d.mts +31 -0
- package/dist/lib/esm/obsidian/i18n/custom-type-options-base.mjs +23 -0
- package/dist/lib/esm/obsidian/i18n/default-translations-base.d.mts +25 -0
- package/dist/lib/esm/obsidian/i18n/default-translations-base.mjs +23 -0
- package/dist/lib/esm/obsidian/i18n/i18n.d.mts +1 -1
- package/dist/lib/esm/obsidian/i18n/i18n.mjs +2 -2
- package/dist/lib/esm/obsidian/i18n/index.d.mts +2 -2
- package/dist/lib/esm/obsidian/i18n/index.mjs +5 -5
- package/dist/lib/esm/obsidian/i18n/locales/translationsMap.d.mts +1 -1
- package/dist/lib/esm/obsidian/i18n/locales/translationsMap.mjs +1 -1
- package/dist/lib/esm/obsidian/index.d.mts +40 -39
- package/dist/lib/esm/obsidian/index.mjs +82 -80
- package/dist/lib/esm/obsidian/link.d.mts +716 -0
- package/dist/lib/esm/obsidian/link.mjs +789 -0
- package/dist/lib/esm/obsidian/logger.mjs +71 -0
- package/dist/lib/esm/obsidian/loop.mjs +127 -0
- package/dist/lib/esm/obsidian/markdown-code-block-processor.d.mts +107 -0
- package/dist/lib/esm/obsidian/markdown-code-block-processor.mjs +262 -0
- package/dist/lib/esm/obsidian/markdown-view.mjs +34 -0
- package/dist/lib/esm/obsidian/markdown.d.mts +79 -0
- package/dist/lib/esm/obsidian/markdown.mjs +150 -0
- package/dist/lib/esm/obsidian/metadata-cache.d.mts +137 -0
- package/dist/lib/esm/obsidian/metadata-cache.mjs +266 -0
- package/dist/lib/esm/obsidian/modals/alert.mjs +63 -0
- package/dist/lib/esm/obsidian/modals/confirm.mjs +72 -0
- package/dist/lib/esm/obsidian/modals/index.d.mts +5 -0
- package/dist/lib/esm/obsidian/modals/index.mjs +34 -0
- package/dist/lib/esm/obsidian/modals/modal-base.d.mts +42 -0
- package/dist/lib/esm/obsidian/modals/modal-base.mjs +51 -0
- package/dist/lib/esm/obsidian/modals/prompt.d.mts +53 -0
- package/dist/lib/esm/obsidian/modals/prompt.mjs +113 -0
- package/dist/lib/esm/obsidian/modals/select-item.d.mts +43 -0
- package/dist/lib/esm/obsidian/modals/select-item.mjs +64 -0
- package/dist/lib/esm/obsidian/monkey-around.mjs +64 -0
- package/dist/lib/esm/obsidian/obsidian-settings.mjs +32 -0
- package/dist/lib/esm/obsidian/pdf.mjs +56 -0
- package/dist/lib/esm/obsidian/plugin/index.d.mts +10 -0
- package/dist/lib/esm/obsidian/plugin/index.mjs +44 -0
- package/dist/lib/esm/obsidian/plugin/obsidian-plugin-repo-paths.mjs +73 -0
- package/dist/lib/esm/obsidian/plugin/path-settings.d.mts +43 -0
- package/dist/lib/esm/obsidian/plugin/path-settings.mjs +133 -0
- package/dist/lib/esm/obsidian/plugin/plugin-base.d.mts +200 -0
- package/dist/lib/esm/obsidian/plugin/plugin-base.mjs +363 -0
- package/dist/lib/esm/obsidian/plugin/plugin-context.mjs +67 -0
- package/dist/lib/esm/obsidian/plugin/plugin-id.mjs +37 -0
- package/dist/lib/esm/obsidian/plugin/plugin-settings-manager-base.d.mts +186 -0
- package/dist/lib/esm/obsidian/plugin/plugin-settings-manager-base.mjs +383 -0
- package/dist/lib/esm/obsidian/plugin/plugin-settings-tab-base.d.mts +148 -0
- package/dist/lib/esm/obsidian/plugin/plugin-settings-tab-base.mjs +304 -0
- package/dist/lib/esm/obsidian/plugin/plugin-settings-wrapper.d.mts +25 -0
- package/dist/lib/esm/obsidian/plugin/plugin-types-base.d.mts +87 -0
- package/dist/lib/esm/obsidian/plugin/plugin.mjs +39 -0
- package/dist/lib/esm/obsidian/queue.mjs +99 -0
- package/dist/lib/esm/obsidian/react/app-context.mjs +36 -0
- package/dist/lib/esm/obsidian/react/index.d.mts +1 -0
- package/dist/lib/esm/obsidian/react/index.mjs +26 -0
- package/dist/lib/esm/obsidian/reference.d.mts +82 -0
- package/dist/lib/esm/obsidian/reference.mjs +70 -0
- package/dist/lib/esm/obsidian/rename-delete-handler.mjs +774 -0
- package/dist/lib/esm/obsidian/resource-url.mjs +33 -0
- package/dist/lib/esm/obsidian/setting-ex.d.mts +182 -0
- package/dist/lib/esm/obsidian/setting-ex.mjs +258 -0
- package/dist/lib/esm/obsidian/setting-group-ex.d.mts +25 -0
- package/dist/lib/esm/obsidian/setting-group-ex.mjs +48 -0
- package/dist/lib/esm/obsidian/validation.mjs +48 -0
- package/dist/lib/esm/obsidian/vault-delete.d.mts +18 -0
- package/dist/lib/esm/obsidian/vault-delete.mjs +73 -0
- package/dist/lib/esm/obsidian/vault.d.mts +261 -0
- package/dist/lib/esm/obsidian/vault.mjs +440 -0
- package/dist/lib/esm/obsidian/workspace.mjs +36 -0
- package/dist/lib/esm/path.mjs +90 -0
- package/dist/lib/esm/reg-exp.mjs +144 -0
- package/dist/lib/esm/script-utils/build.mjs +76 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/changeExtensionPlugin.mjs +58 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/copyToObsidianPluginsFolderPlugin.mjs +99 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/customEsbuildOptionsPlugin.mjs +33 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/dependency.mjs +109 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/fixEsmPlugin.mjs +39 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/fixSourceMapsPlugin.mjs +69 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/index.d.mts +10 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/index.mjs +44 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.d.mts +89 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.mjs +174 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/preprocessPlugin.mjs +185 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/renameCssPlugin.mjs +45 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/svelteWrapperPlugin.mjs +56 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild.d.mts +10 -0
- package/dist/lib/esm/script-utils/bundlers/esbuild.mjs +38 -0
- package/dist/lib/esm/script-utils/bundlers/index.d.mts +2 -0
- package/dist/lib/esm/script-utils/bundlers/index.mjs +28 -0
- package/dist/lib/esm/script-utils/cli-utils.d.mts +76 -0
- package/dist/lib/esm/script-utils/cli-utils.mjs +156 -0
- package/dist/lib/esm/script-utils/code-generator.mjs +33 -0
- package/dist/lib/esm/script-utils/exec.d.mts +84 -0
- package/dist/lib/esm/script-utils/exec.mjs +111 -0
- package/dist/lib/esm/script-utils/formatters/dprint.mjs +52 -0
- package/dist/lib/esm/script-utils/formatters/index.d.mts +1 -0
- package/dist/lib/esm/script-utils/formatters/index.mjs +26 -0
- package/dist/lib/esm/script-utils/fs.d.mts +75 -0
- package/dist/lib/esm/script-utils/fs.mjs +78 -0
- package/dist/lib/esm/script-utils/index.d.mts +18 -0
- package/dist/lib/esm/script-utils/index.mjs +60 -0
- package/dist/lib/esm/script-utils/json.d.mts +65 -0
- package/dist/lib/esm/script-utils/json.mjs +74 -0
- package/dist/lib/esm/script-utils/linters/cspell.mjs +29 -0
- package/dist/lib/esm/script-utils/linters/eslint-config.mjs +485 -0
- package/dist/lib/esm/script-utils/linters/eslint.mjs +66 -0
- package/dist/lib/esm/script-utils/linters/index.d.mts +5 -0
- package/dist/lib/esm/script-utils/linters/index.mjs +34 -0
- package/dist/lib/esm/script-utils/linters/markdownlint-cli2-config.d.mts +10 -0
- package/dist/lib/esm/script-utils/linters/markdownlint-cli2-config.mjs +56 -0
- package/dist/lib/esm/script-utils/linters/markdownlint.d.mts +11 -0
- package/dist/lib/esm/script-utils/linters/markdownlint.mjs +98 -0
- package/dist/lib/esm/script-utils/node-modules.mjs +92 -0
- package/dist/lib/esm/script-utils/npm-publish.mjs +44 -0
- package/dist/lib/esm/script-utils/npm-run.mjs +44 -0
- package/dist/lib/esm/script-utils/npm.d.mts +149 -0
- package/dist/lib/esm/script-utils/npm.mjs +120 -0
- package/dist/lib/esm/script-utils/obsidian-cli.d.mts +23 -0
- package/dist/lib/esm/script-utils/obsidian-cli.mjs +33 -0
- package/dist/lib/esm/script-utils/obsidian-dev-utils-repo-paths.d.mts +100 -0
- package/dist/lib/esm/script-utils/obsidian-dev-utils-repo-paths.mjs +72 -0
- package/dist/lib/esm/script-utils/root.d.mts +68 -0
- package/dist/lib/esm/script-utils/root.mjs +80 -0
- package/dist/lib/esm/script-utils/test-runners/index.d.mts +1 -0
- package/dist/lib/esm/script-utils/test-runners/index.mjs +26 -0
- package/dist/lib/esm/script-utils/test-runners/vitest.d.mts +23 -0
- package/dist/lib/esm/script-utils/test-runners/vitest.mjs +37 -0
- package/dist/lib/esm/script-utils/version.d.mts +176 -0
- package/dist/lib/esm/script-utils/version.mjs +380 -0
- package/dist/lib/esm/string.d.mts +186 -0
- package/dist/lib/esm/string.mjs +211 -0
- package/dist/lib/esm/transformers/date-transformer.d.mts +38 -0
- package/dist/lib/esm/transformers/date-transformer.mjs +63 -0
- package/dist/lib/esm/transformers/duration-transformer.d.mts +38 -0
- package/dist/lib/esm/transformers/duration-transformer.mjs +65 -0
- package/dist/lib/esm/transformers/group-transformer.d.mts +69 -0
- package/dist/lib/esm/transformers/group-transformer.mjs +112 -0
- package/dist/lib/esm/transformers/index.d.mts +9 -0
- package/dist/lib/esm/transformers/index.mjs +42 -0
- package/dist/lib/esm/transformers/map-transformer.d.mts +40 -0
- package/dist/lib/esm/transformers/map-transformer.mjs +63 -0
- package/dist/lib/esm/transformers/set-transformer.d.mts +38 -0
- package/dist/lib/esm/transformers/set-transformer.mjs +63 -0
- package/dist/lib/esm/transformers/skip-private-property-transformer.d.mts +35 -0
- package/dist/lib/esm/transformers/skip-private-property-transformer.mjs +61 -0
- package/dist/lib/esm/transformers/transformer.d.mts +69 -0
- package/dist/lib/esm/transformers/transformer.mjs +104 -0
- package/dist/lib/esm/transformers/two-way-map-transformer.d.mts +41 -0
- package/dist/lib/esm/transformers/two-way-map-transformer.mjs +64 -0
- package/dist/lib/esm/transformers/typed-transformer.d.mts +38 -0
- package/dist/lib/esm/transformers/typed-transformer.mjs +28 -0
- package/dist/lib/esm/two-way-map.mjs +142 -0
- package/dist/lib/esm/type-guards.mjs +47 -0
- package/dist/lib/esm/type.mjs +36 -0
- package/dist/lib/esm/value-provider.mjs +37 -0
- package/dist/scripts/default/build-clean.ts +1 -1
- package/dist/scripts/default/build-compile-svelte.ts +1 -1
- package/dist/scripts/default/build-compile-typescript.ts +1 -1
- package/dist/scripts/default/build-compile.ts +1 -1
- package/dist/scripts/default/build-static.ts +1 -1
- package/dist/scripts/default/build.ts +2 -2
- package/dist/scripts/default/dev.ts +2 -2
- package/dist/scripts/default/format-check.ts +1 -1
- package/dist/scripts/default/format.ts +1 -1
- package/dist/scripts/default/lint-fix.ts +1 -1
- package/dist/scripts/default/lint.ts +1 -1
- package/dist/scripts/default/publish.ts +1 -1
- package/dist/scripts/default/spellcheck.ts +1 -1
- package/dist/scripts/default/version.ts +1 -1
- package/dist/scripts/examples/build.customPlugin.ts +3 -3
- package/dist/scripts/examples/build.svelteConditions.ts +2 -2
- package/dist/scripts/examples/eslint.config.extend.mts +1 -1
- package/dist/scripts/examples/format.prettier.ts +4 -4
- package/obsidian/@types/Dataview/api/data-array/package.json +1 -1
- package/obsidian/@types/Dataview/api/extensions/package.json +1 -1
- package/obsidian/@types/Dataview/api/inline-api/package.json +1 -1
- package/obsidian/@types/Dataview/api/plugin-api/package.json +1 -1
- package/obsidian/@types/Dataview/api/result/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/common/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/csv/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/inline-field/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/markdown-file/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/persister/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/web-worker/import-entry/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/web-worker/import-impl/package.json +1 -1
- package/obsidian/@types/Dataview/data-import/web-worker/import-manager/package.json +1 -1
- package/obsidian/@types/Dataview/data-index/index/package.json +1 -1
- package/obsidian/@types/Dataview/data-index/package.json +1 -1
- package/obsidian/@types/Dataview/data-index/resolver/package.json +1 -1
- package/obsidian/@types/Dataview/data-index/source/package.json +1 -1
- package/obsidian/@types/Dataview/data-model/markdown/package.json +1 -1
- package/obsidian/@types/Dataview/data-model/serialized/markdown/package.json +1 -1
- package/obsidian/@types/Dataview/data-model/transferable/package.json +1 -1
- package/obsidian/@types/Dataview/data-model/value/package.json +1 -1
- package/obsidian/@types/Dataview/expression/binaryop/package.json +1 -1
- package/obsidian/@types/Dataview/expression/context/package.json +1 -1
- package/obsidian/@types/Dataview/expression/field/package.json +1 -1
- package/obsidian/@types/Dataview/expression/functions/package.json +1 -1
- package/obsidian/@types/Dataview/expression/parse/package.json +1 -1
- package/obsidian/@types/Dataview/index/package.json +1 -1
- package/obsidian/@types/Dataview/main/package.json +1 -1
- package/obsidian/@types/Dataview/package.json +1 -1
- package/obsidian/@types/Dataview/query/engine/package.json +1 -1
- package/obsidian/@types/Dataview/query/parse/package.json +1 -1
- package/obsidian/@types/Dataview/query/query/package.json +1 -1
- package/obsidian/@types/Dataview/settings/package.json +1 -1
- package/obsidian/@types/Dataview/typings/obsidian-ex/package.json +1 -1
- package/obsidian/@types/Dataview/typings/workers/package.json +1 -1
- package/obsidian/@types/Dataview/ui/export/markdown/package.json +1 -1
- package/obsidian/@types/Dataview/ui/lp-render/package.json +1 -1
- package/obsidian/@types/Dataview/ui/markdown/package.json +1 -1
- package/obsidian/@types/Dataview/ui/refreshable-view/package.json +1 -1
- package/obsidian/@types/Dataview/ui/render/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/calendar-view/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/inline-field-live-preview/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/inline-view/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/js-view/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/list-view/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/table-view/package.json +1 -1
- package/obsidian/@types/Dataview/ui/views/task-view/package.json +1 -1
- package/obsidian/@types/Dataview/util/hash/package.json +1 -1
- package/obsidian/@types/Dataview/util/locale/package.json +1 -1
- package/obsidian/@types/Dataview/util/media/package.json +1 -1
- package/obsidian/@types/Dataview/util/normalize/package.json +1 -1
- package/obsidian/App/package.json +3 -3
- package/obsidian/Backlink/package.json +3 -3
- package/obsidian/Callout/package.json +3 -3
- package/obsidian/Commands/abstract-file-command-base/package.json +6 -0
- package/obsidian/Commands/command-base/package.json +6 -0
- package/obsidian/Commands/editor-command-base/package.json +6 -0
- package/obsidian/Commands/file-command-base/package.json +6 -0
- package/obsidian/Commands/folder-command-base/package.json +6 -0
- package/obsidian/Commands/index/package.json +3 -3
- package/obsidian/Commands/non-editor-command-base/package.json +6 -0
- package/obsidian/Commands/package.json +3 -3
- package/obsidian/Components/async-events-component/package.json +6 -0
- package/obsidian/Components/index/package.json +3 -3
- package/obsidian/Components/package.json +3 -3
- package/obsidian/Components/setting-components/checkbox-component/package.json +6 -0
- package/obsidian/Components/setting-components/code-highlighter-component/package.json +6 -0
- package/obsidian/Components/setting-components/date-component/package.json +6 -0
- package/obsidian/Components/setting-components/date-time-component/package.json +6 -0
- package/obsidian/Components/setting-components/email-component/package.json +6 -0
- package/obsidian/Components/setting-components/file-component/package.json +6 -0
- package/obsidian/Components/setting-components/index/package.json +6 -0
- package/obsidian/Components/setting-components/month-component/package.json +6 -0
- package/obsidian/Components/setting-components/multiple-dropdown-component/package.json +6 -0
- package/obsidian/Components/setting-components/multiple-email-component/package.json +6 -0
- package/obsidian/Components/setting-components/multiple-file-component/package.json +6 -0
- package/obsidian/Components/setting-components/multiple-text-component/package.json +6 -0
- package/obsidian/Components/setting-components/number-component/package.json +6 -0
- package/obsidian/Components/setting-components/package.json +6 -0
- package/obsidian/Components/setting-components/password-component/package.json +6 -0
- package/obsidian/Components/setting-components/setting-component-wrapper/package.json +6 -0
- package/obsidian/Components/setting-components/telephone-component/package.json +6 -0
- package/obsidian/Components/setting-components/text-based-component/package.json +6 -0
- package/obsidian/Components/setting-components/time-component/package.json +6 -0
- package/obsidian/Components/setting-components/tri-state-checkbox-component/package.json +6 -0
- package/obsidian/Components/setting-components/typed-dropdown-component/package.json +6 -0
- package/obsidian/Components/setting-components/typed-multiple-dropdown-component/package.json +6 -0
- package/obsidian/Components/setting-components/typed-range-text-component/package.json +6 -0
- package/obsidian/Components/setting-components/typed-text-component/package.json +6 -0
- package/obsidian/Components/setting-components/url-component/package.json +6 -0
- package/obsidian/Components/setting-components/validator-component/package.json +6 -0
- package/obsidian/Components/setting-components/value-component-with-change-tracking/package.json +6 -0
- package/obsidian/Components/setting-components/week-component/package.json +6 -0
- package/obsidian/Dataview/package.json +3 -3
- package/obsidian/Editor/package.json +3 -3
- package/obsidian/Frontmatter/package.json +3 -3
- package/obsidian/Link/package.json +3 -3
- package/obsidian/Logger/package.json +3 -3
- package/obsidian/Loop/package.json +3 -3
- package/obsidian/Markdown/package.json +3 -3
- package/obsidian/Modals/Alert/package.json +3 -3
- package/obsidian/Modals/Confirm/package.json +3 -3
- package/obsidian/Modals/Prompt/package.json +3 -3
- package/obsidian/Modals/index/package.json +3 -3
- package/obsidian/Modals/modal-base/package.json +6 -0
- package/obsidian/Modals/package.json +3 -3
- package/obsidian/Modals/select-item/package.json +6 -0
- package/obsidian/Pdf/package.json +3 -3
- package/obsidian/Plugin/Plugin/package.json +3 -3
- package/obsidian/Plugin/index/package.json +3 -3
- package/obsidian/Plugin/obsidian-plugin-repo-paths/package.json +6 -0
- package/obsidian/Plugin/package.json +3 -3
- package/obsidian/Plugin/path-settings/package.json +6 -0
- package/obsidian/Plugin/plugin-base/package.json +6 -0
- package/obsidian/Plugin/plugin-context/package.json +6 -0
- package/obsidian/Plugin/plugin-id/package.json +6 -0
- package/obsidian/Plugin/plugin-settings-manager-base/package.json +6 -0
- package/obsidian/Plugin/plugin-settings-tab-base/package.json +6 -0
- package/obsidian/Plugin/plugin-settings-wrapper/package.json +6 -0
- package/obsidian/Plugin/plugin-types-base/package.json +6 -0
- package/obsidian/Queue/package.json +3 -3
- package/obsidian/React/app-context/package.json +6 -0
- package/obsidian/React/index/package.json +3 -3
- package/obsidian/React/package.json +3 -3
- package/obsidian/Reference/package.json +3 -3
- package/obsidian/Validation/package.json +3 -3
- package/obsidian/Vault/package.json +3 -3
- package/obsidian/Workspace/package.json +3 -3
- package/obsidian/async-with-notice/package.json +6 -0
- package/obsidian/attachment-path/package.json +6 -0
- package/obsidian/code-block-markdown-information/package.json +6 -0
- package/obsidian/constructors/getDomEventsHandlersConstructor/package.json +6 -0
- package/obsidian/constructors/index/package.json +6 -0
- package/obsidian/constructors/package.json +6 -0
- package/obsidian/dataview-link/package.json +6 -0
- package/obsidian/file-change/package.json +6 -0
- package/obsidian/file-manager/package.json +6 -0
- package/obsidian/file-system/package.json +6 -0
- package/obsidian/frontmatter-link-cache-with-offsets/package.json +6 -0
- package/obsidian/i18n/custom-type-options-base/package.json +6 -0
- package/obsidian/i18n/default-translations-base/package.json +6 -0
- package/obsidian/markdown-code-block-processor/package.json +6 -0
- package/obsidian/markdown-view/package.json +6 -0
- package/obsidian/metadata-cache/package.json +6 -0
- package/obsidian/monkey-around/package.json +6 -0
- package/obsidian/obsidian-settings/package.json +6 -0
- package/obsidian/rename-delete-handler/package.json +6 -0
- package/obsidian/resource-url/package.json +6 -0
- package/obsidian/setting-ex/package.json +6 -0
- package/obsidian/setting-group-ex/package.json +6 -0
- package/obsidian/vault-delete/package.json +6 -0
- package/package.json +307 -228
- package/script-utils/build/package.json +6 -0
- package/script-utils/bundlers/esbuild/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/changeExtensionPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/copyToObsidianPluginsFolderPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/customEsbuildOptionsPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/dependency/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/fixEsmPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/fixSourceMapsPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/index/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/preprocessPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/renameCssPlugin/package.json +6 -0
- package/script-utils/bundlers/esbuild-impl/svelteWrapperPlugin/package.json +6 -0
- package/script-utils/bundlers/index/package.json +6 -0
- package/script-utils/bundlers/package.json +6 -0
- package/script-utils/cli-utils/package.json +6 -0
- package/script-utils/code-generator/package.json +6 -0
- package/script-utils/exec/package.json +6 -0
- package/script-utils/formatters/dprint/package.json +6 -0
- package/script-utils/formatters/index/package.json +6 -0
- package/script-utils/formatters/package.json +6 -0
- package/script-utils/fs/package.json +6 -0
- package/script-utils/index/package.json +6 -0
- package/script-utils/json/package.json +6 -0
- package/script-utils/linters/cspell/package.json +6 -0
- package/script-utils/linters/eslint/package.json +6 -0
- package/script-utils/linters/eslint-config/package.json +6 -0
- package/script-utils/linters/eslint-types/@types/@eslint-community__eslint-plugin-eslint-comments__configs/package.json +4 -0
- package/script-utils/linters/eslint-types/@types/@guardian__eslint-plugin-tsdoc-required/package.json +4 -0
- package/script-utils/linters/eslint-types/@types/eslint-plugin-modules-newlines/package.json +4 -0
- package/script-utils/linters/eslint-types/@types/eslint-plugin-verify-tsdoc/package.json +4 -0
- package/script-utils/linters/index/package.json +6 -0
- package/script-utils/linters/markdownlint/package.json +6 -0
- package/script-utils/linters/markdownlint-cli2-config/package.json +6 -0
- package/script-utils/linters/markdownlint-types/@types/markdownlint-cli2-config-schema/package.json +4 -0
- package/script-utils/linters/package.json +6 -0
- package/script-utils/node-modules/package.json +6 -0
- package/script-utils/npm/package.json +6 -0
- package/script-utils/npm-publish/package.json +6 -0
- package/script-utils/npm-run/package.json +6 -0
- package/script-utils/obsidian-cli/package.json +6 -0
- package/script-utils/obsidian-dev-utils-repo-paths/package.json +6 -0
- package/script-utils/package.json +6 -0
- package/script-utils/root/package.json +6 -0
- package/script-utils/test-runners/index/package.json +6 -0
- package/script-utils/test-runners/package.json +6 -0
- package/script-utils/test-runners/vitest/package.json +6 -0
- package/script-utils/version/package.json +6 -0
- package/ScriptUtils/CliUtils/package.json +0 -6
- package/ScriptUtils/CodeGenerator/package.json +0 -6
- package/ScriptUtils/ESLint/@types/@eslint-community__eslint-plugin-eslint-comments__configs/package.json +0 -4
- package/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required/package.json +0 -4
- package/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines/package.json +0 -4
- package/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc/package.json +0 -4
- package/ScriptUtils/ESLint/ESLint/package.json +0 -6
- package/ScriptUtils/ESLint/eslint.config/package.json +0 -6
- package/ScriptUtils/ESLint/index/package.json +0 -6
- package/ScriptUtils/ESLint/package.json +0 -6
- package/ScriptUtils/Exec/package.json +0 -6
- package/ScriptUtils/Fs/package.json +0 -6
- package/ScriptUtils/JSON/package.json +0 -6
- package/ScriptUtils/NodeModules/package.json +0 -6
- package/ScriptUtils/Npm/package.json +0 -6
- package/ScriptUtils/NpmPublish/package.json +0 -6
- package/ScriptUtils/NpmRun/package.json +0 -6
- package/ScriptUtils/ObsidianDevUtilsRepoPaths/package.json +0 -6
- package/ScriptUtils/Root/package.json +0 -6
- package/ScriptUtils/build/package.json +0 -6
- package/ScriptUtils/cli/package.json +0 -6
- package/ScriptUtils/esbuild/Dependency/package.json +0 -6
- package/ScriptUtils/esbuild/ObsidianPluginBuilder/package.json +0 -6
- package/ScriptUtils/esbuild/changeExtensionPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/customEsbuildOptionsPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/fixEsmPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/fixSourceMapsPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/index/package.json +0 -6
- package/ScriptUtils/esbuild/package.json +0 -6
- package/ScriptUtils/esbuild/preprocessPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/renameCssPlugin/package.json +0 -6
- package/ScriptUtils/esbuild/svelteWrapperPlugin/package.json +0 -6
- package/ScriptUtils/format/package.json +0 -6
- package/ScriptUtils/index/package.json +0 -6
- package/ScriptUtils/markdownlint/@types/markdownlint-cli2-config-schema/package.json +0 -4
- package/ScriptUtils/markdownlint/index/package.json +0 -6
- package/ScriptUtils/markdownlint/markdownlint/package.json +0 -6
- package/ScriptUtils/markdownlint/markdownlint-cli2-config/package.json +0 -6
- package/ScriptUtils/markdownlint/package.json +0 -6
- package/ScriptUtils/package.json +0 -6
- package/ScriptUtils/spellcheck/package.json +0 -6
- package/ScriptUtils/version/package.json +0 -6
- package/Transformers/DateTransformer/package.json +0 -6
- package/Transformers/DurationTransformer/package.json +0 -6
- package/Transformers/GroupTransformer/package.json +0 -6
- package/Transformers/MapTransformer/package.json +0 -6
- package/Transformers/SetTransformer/package.json +0 -6
- package/Transformers/SkipPrivatePropertyTransformer/package.json +0 -6
- package/Transformers/TwoWayMapTransformer/package.json +0 -6
- package/Transformers/TypedTransformer/package.json +0 -6
- package/codemirror/StateFieldSpec/package.json +0 -6
- package/dist/bin/cli.cjs +0 -3
- package/dist/lib/cjs/AbortController.cjs +0 -212
- package/dist/lib/cjs/Array.cjs +0 -169
- package/dist/lib/cjs/Async.cjs +0 -469
- package/dist/lib/cjs/Async.d.cts +0 -326
- package/dist/lib/cjs/AsyncEvents.cjs +0 -319
- package/dist/lib/cjs/Blob.cjs +0 -204
- package/dist/lib/cjs/Blob.d.cts +0 -41
- package/dist/lib/cjs/CssClass.cjs +0 -169
- package/dist/lib/cjs/Debug.cjs +0 -270
- package/dist/lib/cjs/Debug.d.cts +0 -47
- package/dist/lib/cjs/DebugController.cjs +0 -120
- package/dist/lib/cjs/Enum.cjs +0 -140
- package/dist/lib/cjs/Error.cjs +0 -245
- package/dist/lib/cjs/Function.cjs +0 -151
- package/dist/lib/cjs/HTMLElement.cjs +0 -288
- package/dist/lib/cjs/HTMLElement.d.cts +0 -122
- package/dist/lib/cjs/Library.cjs +0 -138
- package/dist/lib/cjs/ObjectUtils.cjs +0 -554
- package/dist/lib/cjs/ObjectUtils.d.cts +0 -255
- package/dist/lib/cjs/Path.cjs +0 -221
- package/dist/lib/cjs/RegExp.cjs +0 -255
- package/dist/lib/cjs/ScriptUtils/CliUtils.cjs +0 -256
- package/dist/lib/cjs/ScriptUtils/CliUtils.d.cts +0 -72
- package/dist/lib/cjs/ScriptUtils/CodeGenerator.cjs +0 -139
- package/dist/lib/cjs/ScriptUtils/ESLint/ESLint.cjs +0 -175
- package/dist/lib/cjs/ScriptUtils/ESLint/eslint.config.cjs +0 -599
- package/dist/lib/cjs/ScriptUtils/ESLint/index.cjs +0 -145
- package/dist/lib/cjs/ScriptUtils/ESLint/index.d.cts +0 -2
- package/dist/lib/cjs/ScriptUtils/Exec.cjs +0 -214
- package/dist/lib/cjs/ScriptUtils/Exec.d.cts +0 -84
- package/dist/lib/cjs/ScriptUtils/Fs.cjs +0 -181
- package/dist/lib/cjs/ScriptUtils/Fs.d.cts +0 -75
- package/dist/lib/cjs/ScriptUtils/JSON.cjs +0 -179
- package/dist/lib/cjs/ScriptUtils/JSON.d.cts +0 -65
- package/dist/lib/cjs/ScriptUtils/NodeModules.cjs +0 -207
- package/dist/lib/cjs/ScriptUtils/Npm.cjs +0 -234
- package/dist/lib/cjs/ScriptUtils/Npm.d.cts +0 -149
- package/dist/lib/cjs/ScriptUtils/NpmPublish.cjs +0 -143
- package/dist/lib/cjs/ScriptUtils/NpmRun.cjs +0 -151
- package/dist/lib/cjs/ScriptUtils/ObsidianDevUtilsRepoPaths.cjs +0 -178
- package/dist/lib/cjs/ScriptUtils/ObsidianDevUtilsRepoPaths.d.cts +0 -100
- package/dist/lib/cjs/ScriptUtils/Root.cjs +0 -184
- package/dist/lib/cjs/ScriptUtils/Root.d.cts +0 -68
- package/dist/lib/cjs/ScriptUtils/build.cjs +0 -179
- package/dist/lib/cjs/ScriptUtils/cli.cjs +0 -207
- package/dist/lib/cjs/ScriptUtils/cli.d.cts +0 -15
- package/dist/lib/cjs/ScriptUtils/esbuild/Dependency.cjs +0 -220
- package/dist/lib/cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.cjs +0 -275
- package/dist/lib/cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.d.cts +0 -58
- package/dist/lib/cjs/ScriptUtils/esbuild/changeExtensionPlugin.cjs +0 -164
- package/dist/lib/cjs/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.cjs +0 -169
- package/dist/lib/cjs/ScriptUtils/esbuild/customEsbuildOptionsPlugin.cjs +0 -139
- package/dist/lib/cjs/ScriptUtils/esbuild/fixEsmPlugin.cjs +0 -145
- package/dist/lib/cjs/ScriptUtils/esbuild/fixSourceMapsPlugin.cjs +0 -171
- package/dist/lib/cjs/ScriptUtils/esbuild/index.cjs +0 -169
- package/dist/lib/cjs/ScriptUtils/esbuild/index.d.cts +0 -10
- package/dist/lib/cjs/ScriptUtils/esbuild/preprocessPlugin.cjs +0 -298
- package/dist/lib/cjs/ScriptUtils/esbuild/renameCssPlugin.cjs +0 -148
- package/dist/lib/cjs/ScriptUtils/esbuild/svelteWrapperPlugin.cjs +0 -172
- package/dist/lib/cjs/ScriptUtils/format.cjs +0 -164
- package/dist/lib/cjs/ScriptUtils/index.cjs +0 -196
- package/dist/lib/cjs/ScriptUtils/index.d.cts +0 -19
- package/dist/lib/cjs/ScriptUtils/markdownlint/index.cjs +0 -145
- package/dist/lib/cjs/ScriptUtils/markdownlint/index.d.cts +0 -2
- package/dist/lib/cjs/ScriptUtils/markdownlint/markdownlint-cli2-config.cjs +0 -172
- package/dist/lib/cjs/ScriptUtils/markdownlint/markdownlint-cli2-config.d.cts +0 -10
- package/dist/lib/cjs/ScriptUtils/markdownlint/markdownlint.cjs +0 -206
- package/dist/lib/cjs/ScriptUtils/markdownlint/markdownlint.d.cts +0 -11
- package/dist/lib/cjs/ScriptUtils/spellcheck.cjs +0 -135
- package/dist/lib/cjs/ScriptUtils/version.cjs +0 -484
- package/dist/lib/cjs/ScriptUtils/version.d.cts +0 -167
- package/dist/lib/cjs/String.cjs +0 -333
- package/dist/lib/cjs/String.d.cts +0 -186
- package/dist/lib/cjs/Transformers/DateTransformer.cjs +0 -169
- package/dist/lib/cjs/Transformers/DateTransformer.d.cts +0 -38
- package/dist/lib/cjs/Transformers/DurationTransformer.cjs +0 -171
- package/dist/lib/cjs/Transformers/DurationTransformer.d.cts +0 -38
- package/dist/lib/cjs/Transformers/GroupTransformer.cjs +0 -215
- package/dist/lib/cjs/Transformers/GroupTransformer.d.cts +0 -69
- package/dist/lib/cjs/Transformers/MapTransformer.cjs +0 -169
- package/dist/lib/cjs/Transformers/MapTransformer.d.cts +0 -40
- package/dist/lib/cjs/Transformers/SetTransformer.cjs +0 -169
- package/dist/lib/cjs/Transformers/SetTransformer.d.cts +0 -38
- package/dist/lib/cjs/Transformers/SkipPrivatePropertyTransformer.cjs +0 -167
- package/dist/lib/cjs/Transformers/SkipPrivatePropertyTransformer.d.cts +0 -35
- package/dist/lib/cjs/Transformers/Transformer.cjs +0 -210
- package/dist/lib/cjs/Transformers/Transformer.d.cts +0 -69
- package/dist/lib/cjs/Transformers/TwoWayMapTransformer.cjs +0 -170
- package/dist/lib/cjs/Transformers/TwoWayMapTransformer.d.cts +0 -41
- package/dist/lib/cjs/Transformers/TypedTransformer.cjs +0 -134
- package/dist/lib/cjs/Transformers/TypedTransformer.d.cts +0 -38
- package/dist/lib/cjs/Transformers/index.cjs +0 -166
- package/dist/lib/cjs/Transformers/index.d.cts +0 -9
- package/dist/lib/cjs/TwoWayMap.cjs +0 -248
- package/dist/lib/cjs/Type.cjs +0 -142
- package/dist/lib/cjs/TypeGuards.cjs +0 -156
- package/dist/lib/cjs/ValueProvider.cjs +0 -143
- package/dist/lib/cjs/codemirror/StateFieldSpec.cjs +0 -120
- package/dist/lib/cjs/obsidian/App.cjs +0 -170
- package/dist/lib/cjs/obsidian/AsyncWithNotice.cjs +0 -200
- package/dist/lib/cjs/obsidian/AsyncWithNotice.d.cts +0 -82
- package/dist/lib/cjs/obsidian/AttachmentPath.cjs +0 -234
- package/dist/lib/cjs/obsidian/AttachmentPath.d.cts +0 -181
- package/dist/lib/cjs/obsidian/Backlink.cjs +0 -206
- package/dist/lib/cjs/obsidian/Backlink.d.cts +0 -61
- package/dist/lib/cjs/obsidian/Callout.cjs +0 -203
- package/dist/lib/cjs/obsidian/Callout.d.cts +0 -61
- package/dist/lib/cjs/obsidian/CodeBlockMarkdownInformation.cjs +0 -120
- package/dist/lib/cjs/obsidian/Commands/AbstractFileCommandBase.cjs +0 -436
- package/dist/lib/cjs/obsidian/Commands/AbstractFileCommandBase.d.cts +0 -264
- package/dist/lib/cjs/obsidian/Commands/CommandBase.cjs +0 -252
- package/dist/lib/cjs/obsidian/Commands/EditorCommandBase.cjs +0 -278
- package/dist/lib/cjs/obsidian/Commands/EditorCommandBase.d.cts +0 -139
- package/dist/lib/cjs/obsidian/Commands/FileCommandBase.cjs +0 -338
- package/dist/lib/cjs/obsidian/Commands/FileCommandBase.d.cts +0 -191
- package/dist/lib/cjs/obsidian/Commands/FolderCommandBase.cjs +0 -330
- package/dist/lib/cjs/obsidian/Commands/FolderCommandBase.d.cts +0 -184
- package/dist/lib/cjs/obsidian/Commands/NonEditorCommandBase.cjs +0 -152
- package/dist/lib/cjs/obsidian/Commands/NonEditorCommandBase.d.cts +0 -34
- package/dist/lib/cjs/obsidian/Commands/index.cjs +0 -157
- package/dist/lib/cjs/obsidian/Commands/index.d.cts +0 -6
- package/dist/lib/cjs/obsidian/Components/AsyncEventsComponent.cjs +0 -149
- package/dist/lib/cjs/obsidian/Components/AsyncEventsComponent.d.cts +0 -25
- package/dist/lib/cjs/obsidian/Components/SettingComponents/CheckboxComponent.cjs +0 -205
- package/dist/lib/cjs/obsidian/Components/SettingComponents/CheckboxComponent.d.cts +0 -69
- package/dist/lib/cjs/obsidian/Components/SettingComponents/CodeHighlighterComponent.cjs +0 -352
- package/dist/lib/cjs/obsidian/Components/SettingComponents/CodeHighlighterComponent.d.cts +0 -118
- package/dist/lib/cjs/obsidian/Components/SettingComponents/DateComponent.cjs +0 -165
- package/dist/lib/cjs/obsidian/Components/SettingComponents/DateComponent.d.cts +0 -37
- package/dist/lib/cjs/obsidian/Components/SettingComponents/DateTimeComponent.cjs +0 -165
- package/dist/lib/cjs/obsidian/Components/SettingComponents/DateTimeComponent.d.cts +0 -37
- package/dist/lib/cjs/obsidian/Components/SettingComponents/EmailComponent.cjs +0 -176
- package/dist/lib/cjs/obsidian/Components/SettingComponents/EmailComponent.d.cts +0 -48
- package/dist/lib/cjs/obsidian/Components/SettingComponents/FileComponent.cjs +0 -168
- package/dist/lib/cjs/obsidian/Components/SettingComponents/FileComponent.d.cts +0 -42
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MonthComponent.cjs +0 -173
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MonthComponent.d.cts +0 -50
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleDropdownComponent.cjs +0 -237
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleDropdownComponent.d.cts +0 -87
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleEmailComponent.cjs +0 -162
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleEmailComponent.d.cts +0 -37
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleFileComponent.cjs +0 -169
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleFileComponent.d.cts +0 -42
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleTextComponent.cjs +0 -250
- package/dist/lib/cjs/obsidian/Components/SettingComponents/MultipleTextComponent.d.cts +0 -98
- package/dist/lib/cjs/obsidian/Components/SettingComponents/NumberComponent.cjs +0 -186
- package/dist/lib/cjs/obsidian/Components/SettingComponents/NumberComponent.d.cts +0 -55
- package/dist/lib/cjs/obsidian/Components/SettingComponents/PasswordComponent.cjs +0 -162
- package/dist/lib/cjs/obsidian/Components/SettingComponents/PasswordComponent.d.cts +0 -37
- package/dist/lib/cjs/obsidian/Components/SettingComponents/SettingComponentWrapper.cjs +0 -149
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TelephoneComponent.cjs +0 -176
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TelephoneComponent.d.cts +0 -50
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TextBasedComponent.cjs +0 -161
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TimeComponent.cjs +0 -170
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TimeComponent.d.cts +0 -37
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TriStateCheckboxComponent.cjs +0 -206
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TriStateCheckboxComponent.d.cts +0 -69
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedDropdownComponent.cjs +0 -243
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedDropdownComponent.d.cts +0 -89
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedMultipleDropdownComponent.cjs +0 -245
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedMultipleDropdownComponent.d.cts +0 -90
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedRangeTextComponent.cjs +0 -164
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedRangeTextComponent.d.cts +0 -34
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedTextComponent.cjs +0 -220
- package/dist/lib/cjs/obsidian/Components/SettingComponents/TypedTextComponent.d.cts +0 -85
- package/dist/lib/cjs/obsidian/Components/SettingComponents/UrlComponent.cjs +0 -176
- package/dist/lib/cjs/obsidian/Components/SettingComponents/UrlComponent.d.cts +0 -48
- package/dist/lib/cjs/obsidian/Components/SettingComponents/ValidatorComponent.cjs +0 -220
- package/dist/lib/cjs/obsidian/Components/SettingComponents/ValidatorComponent.d.cts +0 -22
- package/dist/lib/cjs/obsidian/Components/SettingComponents/ValueComponentWithChangeTracking.cjs +0 -120
- package/dist/lib/cjs/obsidian/Components/SettingComponents/WeekComponent.cjs +0 -173
- package/dist/lib/cjs/obsidian/Components/SettingComponents/WeekComponent.d.cts +0 -50
- package/dist/lib/cjs/obsidian/Components/SettingComponents/index.cjs +0 -217
- package/dist/lib/cjs/obsidian/Components/SettingComponents/index.d.cts +0 -26
- package/dist/lib/cjs/obsidian/Components/index.cjs +0 -145
- package/dist/lib/cjs/obsidian/Components/index.d.cts +0 -2
- package/dist/lib/cjs/obsidian/Dataview.cjs +0 -353
- package/dist/lib/cjs/obsidian/Dataview.d.cts +0 -214
- package/dist/lib/cjs/obsidian/DataviewLink.cjs +0 -144
- package/dist/lib/cjs/obsidian/DataviewLink.d.cts +0 -24
- package/dist/lib/cjs/obsidian/Editor.cjs +0 -162
- package/dist/lib/cjs/obsidian/FileChange.cjs +0 -473
- package/dist/lib/cjs/obsidian/FileChange.d.cts +0 -119
- package/dist/lib/cjs/obsidian/FileManager.cjs +0 -193
- package/dist/lib/cjs/obsidian/FileManager.d.cts +0 -40
- package/dist/lib/cjs/obsidian/FileSystem.cjs +0 -406
- package/dist/lib/cjs/obsidian/FileSystem.d.cts +0 -279
- package/dist/lib/cjs/obsidian/Frontmatter.cjs +0 -149
- package/dist/lib/cjs/obsidian/Frontmatter.d.cts +0 -74
- package/dist/lib/cjs/obsidian/FrontmatterLinkCacheWithOffsets.cjs +0 -151
- package/dist/lib/cjs/obsidian/Link.cjs +0 -887
- package/dist/lib/cjs/obsidian/Link.d.cts +0 -716
- package/dist/lib/cjs/obsidian/Logger.cjs +0 -174
- package/dist/lib/cjs/obsidian/Loop.cjs +0 -225
- package/dist/lib/cjs/obsidian/Markdown.cjs +0 -285
- package/dist/lib/cjs/obsidian/Markdown.d.cts +0 -79
- package/dist/lib/cjs/obsidian/MarkdownCodeBlockProcessor.cjs +0 -362
- package/dist/lib/cjs/obsidian/MarkdownCodeBlockProcessor.d.cts +0 -107
- package/dist/lib/cjs/obsidian/MarkdownView.cjs +0 -140
- package/dist/lib/cjs/obsidian/MetadataCache.cjs +0 -367
- package/dist/lib/cjs/obsidian/MetadataCache.d.cts +0 -137
- package/dist/lib/cjs/obsidian/Modals/Alert.cjs +0 -166
- package/dist/lib/cjs/obsidian/Modals/Confirm.cjs +0 -175
- package/dist/lib/cjs/obsidian/Modals/ModalBase.cjs +0 -158
- package/dist/lib/cjs/obsidian/Modals/ModalBase.d.cts +0 -42
- package/dist/lib/cjs/obsidian/Modals/Prompt.cjs +0 -210
- package/dist/lib/cjs/obsidian/Modals/Prompt.d.cts +0 -53
- package/dist/lib/cjs/obsidian/Modals/SelectItem.cjs +0 -170
- package/dist/lib/cjs/obsidian/Modals/SelectItem.d.cts +0 -43
- package/dist/lib/cjs/obsidian/Modals/index.cjs +0 -154
- package/dist/lib/cjs/obsidian/Modals/index.d.cts +0 -5
- package/dist/lib/cjs/obsidian/MonkeyAround.cjs +0 -173
- package/dist/lib/cjs/obsidian/ObsidianSettings.cjs +0 -139
- package/dist/lib/cjs/obsidian/Pdf.cjs +0 -162
- package/dist/lib/cjs/obsidian/Plugin/ObsidianPluginRepoPaths.cjs +0 -179
- package/dist/lib/cjs/obsidian/Plugin/PathSettings.cjs +0 -235
- package/dist/lib/cjs/obsidian/Plugin/PathSettings.d.cts +0 -43
- package/dist/lib/cjs/obsidian/Plugin/Plugin.cjs +0 -146
- package/dist/lib/cjs/obsidian/Plugin/PluginBase.cjs +0 -453
- package/dist/lib/cjs/obsidian/Plugin/PluginBase.d.cts +0 -200
- package/dist/lib/cjs/obsidian/Plugin/PluginContext.cjs +0 -165
- package/dist/lib/cjs/obsidian/Plugin/PluginId.cjs +0 -145
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsManagerBase.cjs +0 -483
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsManagerBase.d.cts +0 -186
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsTabBase.cjs +0 -401
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsTabBase.d.cts +0 -148
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsWrapper.cjs +0 -120
- package/dist/lib/cjs/obsidian/Plugin/PluginSettingsWrapper.d.cts +0 -25
- package/dist/lib/cjs/obsidian/Plugin/PluginTypesBase.cjs +0 -120
- package/dist/lib/cjs/obsidian/Plugin/PluginTypesBase.d.cts +0 -87
- package/dist/lib/cjs/obsidian/Plugin/index.cjs +0 -169
- package/dist/lib/cjs/obsidian/Plugin/index.d.cts +0 -10
- package/dist/lib/cjs/obsidian/Queue.cjs +0 -201
- package/dist/lib/cjs/obsidian/React/AppContext.cjs +0 -140
- package/dist/lib/cjs/obsidian/React/index.cjs +0 -142
- package/dist/lib/cjs/obsidian/React/index.d.cts +0 -1
- package/dist/lib/cjs/obsidian/Reference.cjs +0 -177
- package/dist/lib/cjs/obsidian/Reference.d.cts +0 -82
- package/dist/lib/cjs/obsidian/RenameDeleteHandler.cjs +0 -837
- package/dist/lib/cjs/obsidian/ResourceUrl.cjs +0 -139
- package/dist/lib/cjs/obsidian/SettingEx.cjs +0 -361
- package/dist/lib/cjs/obsidian/SettingEx.d.cts +0 -182
- package/dist/lib/cjs/obsidian/SettingGroupEx.cjs +0 -154
- package/dist/lib/cjs/obsidian/SettingGroupEx.d.cts +0 -25
- package/dist/lib/cjs/obsidian/Validation.cjs +0 -159
- package/dist/lib/cjs/obsidian/Vault.cjs +0 -499
- package/dist/lib/cjs/obsidian/Vault.d.cts +0 -237
- package/dist/lib/cjs/obsidian/VaultEx.cjs +0 -198
- package/dist/lib/cjs/obsidian/VaultEx.d.cts +0 -36
- package/dist/lib/cjs/obsidian/Workspace.cjs +0 -143
- package/dist/lib/cjs/obsidian/i18n/CustomTypeOptionsBase.cjs +0 -121
- package/dist/lib/cjs/obsidian/i18n/CustomTypeOptionsBase.d.cts +0 -31
- package/dist/lib/cjs/obsidian/i18n/DefaultTranslationsBase.cjs +0 -121
- package/dist/lib/cjs/obsidian/i18n/DefaultTranslationsBase.d.cts +0 -25
- package/dist/lib/esm/AbortController.mjs +0 -101
- package/dist/lib/esm/Array.mjs +0 -61
- package/dist/lib/esm/Async.d.mts +0 -326
- package/dist/lib/esm/Async.mjs +0 -354
- package/dist/lib/esm/AsyncEvents.mjs +0 -213
- package/dist/lib/esm/Blob.d.mts +0 -41
- package/dist/lib/esm/Blob.mjs +0 -94
- package/dist/lib/esm/CssClass.mjs +0 -63
- package/dist/lib/esm/Debug.d.mts +0 -47
- package/dist/lib/esm/Debug.mjs +0 -152
- package/dist/lib/esm/Enum.mjs +0 -33
- package/dist/lib/esm/Error.mjs +0 -131
- package/dist/lib/esm/Function.mjs +0 -42
- package/dist/lib/esm/HTMLElement.d.mts +0 -122
- package/dist/lib/esm/HTMLElement.mjs +0 -171
- package/dist/lib/esm/Library.mjs +0 -30
- package/dist/lib/esm/ObjectUtils.d.mts +0 -255
- package/dist/lib/esm/ObjectUtils.mjs +0 -435
- package/dist/lib/esm/Path.mjs +0 -90
- package/dist/lib/esm/RegExp.mjs +0 -144
- package/dist/lib/esm/ScriptUtils/CliUtils.d.mts +0 -72
- package/dist/lib/esm/ScriptUtils/CliUtils.mjs +0 -148
- package/dist/lib/esm/ScriptUtils/CodeGenerator.mjs +0 -33
- package/dist/lib/esm/ScriptUtils/ESLint/ESLint.mjs +0 -66
- package/dist/lib/esm/ScriptUtils/ESLint/eslint.config.mjs +0 -485
- package/dist/lib/esm/ScriptUtils/ESLint/index.d.mts +0 -2
- package/dist/lib/esm/ScriptUtils/ESLint/index.mjs +0 -28
- package/dist/lib/esm/ScriptUtils/Exec.d.mts +0 -84
- package/dist/lib/esm/ScriptUtils/Exec.mjs +0 -111
- package/dist/lib/esm/ScriptUtils/Fs.d.mts +0 -75
- package/dist/lib/esm/ScriptUtils/Fs.mjs +0 -78
- package/dist/lib/esm/ScriptUtils/JSON.d.mts +0 -65
- package/dist/lib/esm/ScriptUtils/JSON.mjs +0 -74
- package/dist/lib/esm/ScriptUtils/NodeModules.mjs +0 -92
- package/dist/lib/esm/ScriptUtils/Npm.d.mts +0 -149
- package/dist/lib/esm/ScriptUtils/Npm.mjs +0 -120
- package/dist/lib/esm/ScriptUtils/NpmPublish.mjs +0 -44
- package/dist/lib/esm/ScriptUtils/NpmRun.mjs +0 -44
- package/dist/lib/esm/ScriptUtils/ObsidianDevUtilsRepoPaths.d.mts +0 -100
- package/dist/lib/esm/ScriptUtils/ObsidianDevUtilsRepoPaths.mjs +0 -72
- package/dist/lib/esm/ScriptUtils/Root.d.mts +0 -68
- package/dist/lib/esm/ScriptUtils/Root.mjs +0 -80
- package/dist/lib/esm/ScriptUtils/build.mjs +0 -76
- package/dist/lib/esm/ScriptUtils/cli.d.mts +0 -15
- package/dist/lib/esm/ScriptUtils/cli.mjs +0 -107
- package/dist/lib/esm/ScriptUtils/esbuild/Dependency.mjs +0 -109
- package/dist/lib/esm/ScriptUtils/esbuild/ObsidianPluginBuilder.d.mts +0 -58
- package/dist/lib/esm/ScriptUtils/esbuild/ObsidianPluginBuilder.mjs +0 -165
- package/dist/lib/esm/ScriptUtils/esbuild/changeExtensionPlugin.mjs +0 -58
- package/dist/lib/esm/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.mjs +0 -71
- package/dist/lib/esm/ScriptUtils/esbuild/customEsbuildOptionsPlugin.mjs +0 -33
- package/dist/lib/esm/ScriptUtils/esbuild/fixEsmPlugin.mjs +0 -39
- package/dist/lib/esm/ScriptUtils/esbuild/fixSourceMapsPlugin.mjs +0 -69
- package/dist/lib/esm/ScriptUtils/esbuild/index.d.mts +0 -10
- package/dist/lib/esm/ScriptUtils/esbuild/index.mjs +0 -44
- package/dist/lib/esm/ScriptUtils/esbuild/preprocessPlugin.mjs +0 -185
- package/dist/lib/esm/ScriptUtils/esbuild/renameCssPlugin.mjs +0 -45
- package/dist/lib/esm/ScriptUtils/esbuild/svelteWrapperPlugin.mjs +0 -56
- package/dist/lib/esm/ScriptUtils/format.mjs +0 -52
- package/dist/lib/esm/ScriptUtils/index.d.mts +0 -19
- package/dist/lib/esm/ScriptUtils/index.mjs +0 -62
- package/dist/lib/esm/ScriptUtils/markdownlint/index.d.mts +0 -2
- package/dist/lib/esm/ScriptUtils/markdownlint/index.mjs +0 -28
- package/dist/lib/esm/ScriptUtils/markdownlint/markdownlint-cli2-config.d.mts +0 -10
- package/dist/lib/esm/ScriptUtils/markdownlint/markdownlint-cli2-config.mjs +0 -56
- package/dist/lib/esm/ScriptUtils/markdownlint/markdownlint.d.mts +0 -11
- package/dist/lib/esm/ScriptUtils/markdownlint/markdownlint.mjs +0 -98
- package/dist/lib/esm/ScriptUtils/spellcheck.mjs +0 -29
- package/dist/lib/esm/ScriptUtils/version.d.mts +0 -167
- package/dist/lib/esm/ScriptUtils/version.mjs +0 -384
- package/dist/lib/esm/String.d.mts +0 -186
- package/dist/lib/esm/String.mjs +0 -211
- package/dist/lib/esm/Transformers/DateTransformer.d.mts +0 -38
- package/dist/lib/esm/Transformers/DateTransformer.mjs +0 -63
- package/dist/lib/esm/Transformers/DurationTransformer.d.mts +0 -38
- package/dist/lib/esm/Transformers/DurationTransformer.mjs +0 -65
- package/dist/lib/esm/Transformers/GroupTransformer.d.mts +0 -69
- package/dist/lib/esm/Transformers/GroupTransformer.mjs +0 -112
- package/dist/lib/esm/Transformers/MapTransformer.d.mts +0 -40
- package/dist/lib/esm/Transformers/MapTransformer.mjs +0 -63
- package/dist/lib/esm/Transformers/SetTransformer.d.mts +0 -38
- package/dist/lib/esm/Transformers/SetTransformer.mjs +0 -63
- package/dist/lib/esm/Transformers/SkipPrivatePropertyTransformer.d.mts +0 -35
- package/dist/lib/esm/Transformers/SkipPrivatePropertyTransformer.mjs +0 -61
- package/dist/lib/esm/Transformers/Transformer.d.mts +0 -69
- package/dist/lib/esm/Transformers/Transformer.mjs +0 -104
- package/dist/lib/esm/Transformers/TwoWayMapTransformer.d.mts +0 -41
- package/dist/lib/esm/Transformers/TwoWayMapTransformer.mjs +0 -64
- package/dist/lib/esm/Transformers/TypedTransformer.d.mts +0 -38
- package/dist/lib/esm/Transformers/TypedTransformer.mjs +0 -28
- package/dist/lib/esm/Transformers/index.d.mts +0 -9
- package/dist/lib/esm/Transformers/index.mjs +0 -42
- package/dist/lib/esm/TwoWayMap.mjs +0 -142
- package/dist/lib/esm/Type.mjs +0 -36
- package/dist/lib/esm/TypeGuards.mjs +0 -47
- package/dist/lib/esm/ValueProvider.mjs +0 -37
- package/dist/lib/esm/obsidian/App.mjs +0 -62
- package/dist/lib/esm/obsidian/AsyncWithNotice.d.mts +0 -82
- package/dist/lib/esm/obsidian/AsyncWithNotice.mjs +0 -96
- package/dist/lib/esm/obsidian/AttachmentPath.d.mts +0 -181
- package/dist/lib/esm/obsidian/AttachmentPath.mjs +0 -139
- package/dist/lib/esm/obsidian/Backlink.d.mts +0 -61
- package/dist/lib/esm/obsidian/Backlink.mjs +0 -103
- package/dist/lib/esm/obsidian/Callout.d.mts +0 -61
- package/dist/lib/esm/obsidian/Callout.mjs +0 -95
- package/dist/lib/esm/obsidian/Commands/AbstractFileCommandBase.d.mts +0 -264
- package/dist/lib/esm/obsidian/Commands/AbstractFileCommandBase.mjs +0 -326
- package/dist/lib/esm/obsidian/Commands/CommandBase.mjs +0 -145
- package/dist/lib/esm/obsidian/Commands/EditorCommandBase.d.mts +0 -139
- package/dist/lib/esm/obsidian/Commands/EditorCommandBase.mjs +0 -174
- package/dist/lib/esm/obsidian/Commands/FileCommandBase.d.mts +0 -191
- package/dist/lib/esm/obsidian/Commands/FileCommandBase.mjs +0 -237
- package/dist/lib/esm/obsidian/Commands/FolderCommandBase.d.mts +0 -184
- package/dist/lib/esm/obsidian/Commands/FolderCommandBase.mjs +0 -229
- package/dist/lib/esm/obsidian/Commands/NonEditorCommandBase.d.mts +0 -34
- package/dist/lib/esm/obsidian/Commands/NonEditorCommandBase.mjs +0 -46
- package/dist/lib/esm/obsidian/Commands/index.d.mts +0 -6
- package/dist/lib/esm/obsidian/Commands/index.mjs +0 -36
- package/dist/lib/esm/obsidian/Components/AsyncEventsComponent.d.mts +0 -25
- package/dist/lib/esm/obsidian/Components/AsyncEventsComponent.mjs +0 -42
- package/dist/lib/esm/obsidian/Components/SettingComponents/CheckboxComponent.d.mts +0 -69
- package/dist/lib/esm/obsidian/Components/SettingComponents/CheckboxComponent.mjs +0 -99
- package/dist/lib/esm/obsidian/Components/SettingComponents/CodeHighlighterComponent.d.mts +0 -118
- package/dist/lib/esm/obsidian/Components/SettingComponents/CodeHighlighterComponent.mjs +0 -252
- package/dist/lib/esm/obsidian/Components/SettingComponents/DateComponent.d.mts +0 -37
- package/dist/lib/esm/obsidian/Components/SettingComponents/DateComponent.mjs +0 -59
- package/dist/lib/esm/obsidian/Components/SettingComponents/DateTimeComponent.d.mts +0 -37
- package/dist/lib/esm/obsidian/Components/SettingComponents/DateTimeComponent.mjs +0 -59
- package/dist/lib/esm/obsidian/Components/SettingComponents/EmailComponent.d.mts +0 -48
- package/dist/lib/esm/obsidian/Components/SettingComponents/EmailComponent.mjs +0 -70
- package/dist/lib/esm/obsidian/Components/SettingComponents/FileComponent.d.mts +0 -42
- package/dist/lib/esm/obsidian/Components/SettingComponents/FileComponent.mjs +0 -62
- package/dist/lib/esm/obsidian/Components/SettingComponents/MonthComponent.d.mts +0 -50
- package/dist/lib/esm/obsidian/Components/SettingComponents/MonthComponent.mjs +0 -67
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleDropdownComponent.d.mts +0 -87
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleDropdownComponent.mjs +0 -134
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleEmailComponent.d.mts +0 -37
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleEmailComponent.mjs +0 -56
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleFileComponent.d.mts +0 -42
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleFileComponent.mjs +0 -63
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleTextComponent.d.mts +0 -98
- package/dist/lib/esm/obsidian/Components/SettingComponents/MultipleTextComponent.mjs +0 -147
- package/dist/lib/esm/obsidian/Components/SettingComponents/NumberComponent.d.mts +0 -55
- package/dist/lib/esm/obsidian/Components/SettingComponents/NumberComponent.mjs +0 -80
- package/dist/lib/esm/obsidian/Components/SettingComponents/PasswordComponent.d.mts +0 -37
- package/dist/lib/esm/obsidian/Components/SettingComponents/PasswordComponent.mjs +0 -56
- package/dist/lib/esm/obsidian/Components/SettingComponents/SettingComponentWrapper.mjs +0 -43
- package/dist/lib/esm/obsidian/Components/SettingComponents/TelephoneComponent.d.mts +0 -50
- package/dist/lib/esm/obsidian/Components/SettingComponents/TelephoneComponent.mjs +0 -70
- package/dist/lib/esm/obsidian/Components/SettingComponents/TextBasedComponent.mjs +0 -55
- package/dist/lib/esm/obsidian/Components/SettingComponents/TimeComponent.d.mts +0 -37
- package/dist/lib/esm/obsidian/Components/SettingComponents/TimeComponent.mjs +0 -64
- package/dist/lib/esm/obsidian/Components/SettingComponents/TriStateCheckboxComponent.d.mts +0 -69
- package/dist/lib/esm/obsidian/Components/SettingComponents/TriStateCheckboxComponent.mjs +0 -100
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedDropdownComponent.d.mts +0 -89
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedDropdownComponent.mjs +0 -140
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedMultipleDropdownComponent.d.mts +0 -90
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedMultipleDropdownComponent.mjs +0 -139
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedRangeTextComponent.d.mts +0 -34
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedRangeTextComponent.mjs +0 -58
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedTextComponent.d.mts +0 -85
- package/dist/lib/esm/obsidian/Components/SettingComponents/TypedTextComponent.mjs +0 -117
- package/dist/lib/esm/obsidian/Components/SettingComponents/UrlComponent.d.mts +0 -48
- package/dist/lib/esm/obsidian/Components/SettingComponents/UrlComponent.mjs +0 -70
- package/dist/lib/esm/obsidian/Components/SettingComponents/ValidatorComponent.d.mts +0 -22
- package/dist/lib/esm/obsidian/Components/SettingComponents/ValidatorComponent.mjs +0 -123
- package/dist/lib/esm/obsidian/Components/SettingComponents/WeekComponent.d.mts +0 -50
- package/dist/lib/esm/obsidian/Components/SettingComponents/WeekComponent.mjs +0 -67
- package/dist/lib/esm/obsidian/Components/SettingComponents/index.d.mts +0 -26
- package/dist/lib/esm/obsidian/Components/SettingComponents/index.mjs +0 -76
- package/dist/lib/esm/obsidian/Components/index.d.mts +0 -2
- package/dist/lib/esm/obsidian/Components/index.mjs +0 -28
- package/dist/lib/esm/obsidian/Dataview.d.mts +0 -214
- package/dist/lib/esm/obsidian/Dataview.mjs +0 -245
- package/dist/lib/esm/obsidian/DataviewLink.d.mts +0 -24
- package/dist/lib/esm/obsidian/DataviewLink.mjs +0 -41
- package/dist/lib/esm/obsidian/Editor.mjs +0 -58
- package/dist/lib/esm/obsidian/FileChange.d.mts +0 -119
- package/dist/lib/esm/obsidian/FileChange.mjs +0 -378
- package/dist/lib/esm/obsidian/FileManager.d.mts +0 -40
- package/dist/lib/esm/obsidian/FileManager.mjs +0 -92
- package/dist/lib/esm/obsidian/FileSystem.d.mts +0 -279
- package/dist/lib/esm/obsidian/FileSystem.mjs +0 -283
- package/dist/lib/esm/obsidian/Frontmatter.d.mts +0 -74
- package/dist/lib/esm/obsidian/Frontmatter.mjs +0 -46
- package/dist/lib/esm/obsidian/FrontmatterLinkCacheWithOffsets.mjs +0 -44
- package/dist/lib/esm/obsidian/Link.d.mts +0 -716
- package/dist/lib/esm/obsidian/Link.mjs +0 -789
- package/dist/lib/esm/obsidian/Logger.mjs +0 -71
- package/dist/lib/esm/obsidian/Loop.mjs +0 -127
- package/dist/lib/esm/obsidian/Markdown.d.mts +0 -79
- package/dist/lib/esm/obsidian/Markdown.mjs +0 -184
- package/dist/lib/esm/obsidian/MarkdownCodeBlockProcessor.d.mts +0 -107
- package/dist/lib/esm/obsidian/MarkdownCodeBlockProcessor.mjs +0 -262
- package/dist/lib/esm/obsidian/MarkdownView.mjs +0 -34
- package/dist/lib/esm/obsidian/MetadataCache.d.mts +0 -137
- package/dist/lib/esm/obsidian/MetadataCache.mjs +0 -266
- package/dist/lib/esm/obsidian/Modals/Alert.mjs +0 -63
- package/dist/lib/esm/obsidian/Modals/Confirm.mjs +0 -72
- package/dist/lib/esm/obsidian/Modals/ModalBase.d.mts +0 -42
- package/dist/lib/esm/obsidian/Modals/ModalBase.mjs +0 -51
- package/dist/lib/esm/obsidian/Modals/Prompt.d.mts +0 -53
- package/dist/lib/esm/obsidian/Modals/Prompt.mjs +0 -113
- package/dist/lib/esm/obsidian/Modals/SelectItem.d.mts +0 -43
- package/dist/lib/esm/obsidian/Modals/SelectItem.mjs +0 -64
- package/dist/lib/esm/obsidian/Modals/index.d.mts +0 -5
- package/dist/lib/esm/obsidian/Modals/index.mjs +0 -34
- package/dist/lib/esm/obsidian/MonkeyAround.mjs +0 -64
- package/dist/lib/esm/obsidian/ObsidianSettings.mjs +0 -32
- package/dist/lib/esm/obsidian/Pdf.mjs +0 -56
- package/dist/lib/esm/obsidian/Plugin/ObsidianPluginRepoPaths.mjs +0 -73
- package/dist/lib/esm/obsidian/Plugin/PathSettings.d.mts +0 -43
- package/dist/lib/esm/obsidian/Plugin/PathSettings.mjs +0 -133
- package/dist/lib/esm/obsidian/Plugin/Plugin.mjs +0 -39
- package/dist/lib/esm/obsidian/Plugin/PluginBase.d.mts +0 -200
- package/dist/lib/esm/obsidian/Plugin/PluginBase.mjs +0 -363
- package/dist/lib/esm/obsidian/Plugin/PluginContext.mjs +0 -67
- package/dist/lib/esm/obsidian/Plugin/PluginId.mjs +0 -37
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsManagerBase.d.mts +0 -186
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsManagerBase.mjs +0 -383
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsTabBase.d.mts +0 -148
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsTabBase.mjs +0 -304
- package/dist/lib/esm/obsidian/Plugin/PluginSettingsWrapper.d.mts +0 -25
- package/dist/lib/esm/obsidian/Plugin/PluginTypesBase.d.mts +0 -87
- package/dist/lib/esm/obsidian/Plugin/index.d.mts +0 -10
- package/dist/lib/esm/obsidian/Plugin/index.mjs +0 -44
- package/dist/lib/esm/obsidian/Queue.mjs +0 -99
- package/dist/lib/esm/obsidian/React/AppContext.mjs +0 -36
- package/dist/lib/esm/obsidian/React/index.d.mts +0 -1
- package/dist/lib/esm/obsidian/React/index.mjs +0 -26
- package/dist/lib/esm/obsidian/Reference.d.mts +0 -82
- package/dist/lib/esm/obsidian/Reference.mjs +0 -70
- package/dist/lib/esm/obsidian/RenameDeleteHandler.mjs +0 -775
- package/dist/lib/esm/obsidian/ResourceUrl.mjs +0 -33
- package/dist/lib/esm/obsidian/SettingEx.d.mts +0 -182
- package/dist/lib/esm/obsidian/SettingEx.mjs +0 -258
- package/dist/lib/esm/obsidian/SettingGroupEx.d.mts +0 -25
- package/dist/lib/esm/obsidian/SettingGroupEx.mjs +0 -48
- package/dist/lib/esm/obsidian/Validation.mjs +0 -48
- package/dist/lib/esm/obsidian/Vault.d.mts +0 -237
- package/dist/lib/esm/obsidian/Vault.mjs +0 -402
- package/dist/lib/esm/obsidian/VaultEx.d.mts +0 -36
- package/dist/lib/esm/obsidian/VaultEx.mjs +0 -98
- package/dist/lib/esm/obsidian/Workspace.mjs +0 -36
- package/dist/lib/esm/obsidian/i18n/CustomTypeOptionsBase.d.mts +0 -31
- package/dist/lib/esm/obsidian/i18n/CustomTypeOptionsBase.mjs +0 -23
- package/dist/lib/esm/obsidian/i18n/DefaultTranslationsBase.d.mts +0 -25
- package/dist/lib/esm/obsidian/i18n/DefaultTranslationsBase.mjs +0 -23
- package/obsidian/AsyncWithNotice/package.json +0 -6
- package/obsidian/AttachmentPath/package.json +0 -6
- package/obsidian/CodeBlockMarkdownInformation/package.json +0 -6
- package/obsidian/Commands/AbstractFileCommandBase/package.json +0 -6
- package/obsidian/Commands/CommandBase/package.json +0 -6
- package/obsidian/Commands/EditorCommandBase/package.json +0 -6
- package/obsidian/Commands/FileCommandBase/package.json +0 -6
- package/obsidian/Commands/FolderCommandBase/package.json +0 -6
- package/obsidian/Commands/NonEditorCommandBase/package.json +0 -6
- package/obsidian/Components/AsyncEventsComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/CheckboxComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/CodeHighlighterComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/DateComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/DateTimeComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/EmailComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/FileComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/MonthComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/MultipleDropdownComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/MultipleEmailComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/MultipleFileComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/MultipleTextComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/NumberComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/PasswordComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/SettingComponentWrapper/package.json +0 -6
- package/obsidian/Components/SettingComponents/TelephoneComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TextBasedComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TimeComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TriStateCheckboxComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TypedDropdownComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TypedMultipleDropdownComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TypedRangeTextComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/TypedTextComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/UrlComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/ValidatorComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/ValueComponentWithChangeTracking/package.json +0 -6
- package/obsidian/Components/SettingComponents/WeekComponent/package.json +0 -6
- package/obsidian/Components/SettingComponents/index/package.json +0 -6
- package/obsidian/Components/SettingComponents/package.json +0 -6
- package/obsidian/DataviewLink/package.json +0 -6
- package/obsidian/FileChange/package.json +0 -6
- package/obsidian/FileManager/package.json +0 -6
- package/obsidian/FileSystem/package.json +0 -6
- package/obsidian/FrontmatterLinkCacheWithOffsets/package.json +0 -6
- package/obsidian/MarkdownCodeBlockProcessor/package.json +0 -6
- package/obsidian/MarkdownView/package.json +0 -6
- package/obsidian/MetadataCache/package.json +0 -6
- package/obsidian/Modals/ModalBase/package.json +0 -6
- package/obsidian/Modals/SelectItem/package.json +0 -6
- package/obsidian/MonkeyAround/package.json +0 -6
- package/obsidian/ObsidianSettings/package.json +0 -6
- package/obsidian/Plugin/ObsidianPluginRepoPaths/package.json +0 -6
- package/obsidian/Plugin/PathSettings/package.json +0 -6
- package/obsidian/Plugin/PluginBase/package.json +0 -6
- package/obsidian/Plugin/PluginContext/package.json +0 -6
- package/obsidian/Plugin/PluginId/package.json +0 -6
- package/obsidian/Plugin/PluginSettingsManagerBase/package.json +0 -6
- package/obsidian/Plugin/PluginSettingsTabBase/package.json +0 -6
- package/obsidian/Plugin/PluginSettingsWrapper/package.json +0 -6
- package/obsidian/Plugin/PluginTypesBase/package.json +0 -6
- package/obsidian/React/AppContext/package.json +0 -6
- package/obsidian/RenameDeleteHandler/package.json +0 -6
- package/obsidian/ResourceUrl/package.json +0 -6
- package/obsidian/SettingEx/package.json +0 -6
- package/obsidian/SettingGroupEx/package.json +0 -6
- package/obsidian/VaultEx/package.json +0 -6
- package/obsidian/i18n/CustomTypeOptionsBase/package.json +0 -6
- package/obsidian/i18n/DefaultTranslationsBase/package.json +0 -6
- /package/dist/lib/cjs/{AbortController.d.cts → abort-controller.d.cts} +0 -0
- /package/dist/lib/cjs/{Array.d.cts → array.d.cts} +0 -0
- /package/dist/lib/cjs/{AsyncEvents.d.cts → async-events.d.cts} +0 -0
- /package/dist/lib/cjs/codemirror/{StateFieldSpec.d.cts → state-field-spec.d.cts} +0 -0
- /package/dist/lib/cjs/{CssClass.d.cts → css-class.d.cts} +0 -0
- /package/dist/lib/cjs/{DebugController.d.cts → debug-controller.d.cts} +0 -0
- /package/dist/lib/cjs/{Enum.d.cts → enum.d.cts} +0 -0
- /package/dist/lib/cjs/{Error.d.cts → error.d.cts} +0 -0
- /package/dist/lib/cjs/{Function.d.cts → function.d.cts} +0 -0
- /package/dist/lib/cjs/{Library.d.cts → library.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/api/data-array.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/api/extensions.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/api/inline-api.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/api/plugin-api.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/api/result.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/common.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/csv.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/inline-field.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/markdown-file.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/persister.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/web-worker/import-entry.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/web-worker/import-impl.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-import/web-worker/import-manager.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-index/index.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-index/resolver.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-index/source.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-model/markdown.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-model/serialized/markdown.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-model/transferable.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/data-model/value.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/expression/binaryop.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/expression/context.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/expression/field.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/expression/functions.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/expression/parse.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/index.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/main.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/query/engine.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/query/parse.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/query/query.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/settings.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/typings/obsidian-ex.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/typings/workers.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/export/markdown.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/lp-render.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/markdown.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/refreshable-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/render.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/calendar-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/inline-field-live-preview.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/inline-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/js-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/list-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/table-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/ui/views/task-view.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/util/hash.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/util/locale.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/util/media.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/@types/{Dataview → dataview}/util/normalize.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{App.d.cts → app.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{CodeBlockMarkdownInformation.d.cts → code-block-markdown-information.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Commands/CommandBase.d.cts → commands/command-base.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Components/SettingComponents/SettingComponentWrapper.d.cts → components/setting-components/setting-component-wrapper.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Components/SettingComponents/TextBasedComponent.d.cts → components/setting-components/text-based-component.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Components/SettingComponents/ValueComponentWithChangeTracking.d.cts → components/setting-components/value-component-with-change-tracking.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Editor.d.cts → editor.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{FrontmatterLinkCacheWithOffsets.d.cts → frontmatter-link-cache-with-offsets.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Logger.d.cts → logger.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Loop.d.cts → loop.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{MarkdownView.d.cts → markdown-view.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Modals/Alert.d.cts → modals/alert.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Modals/Confirm.d.cts → modals/confirm.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{MonkeyAround.d.cts → monkey-around.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{ObsidianSettings.d.cts → obsidian-settings.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Pdf.d.cts → pdf.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Plugin/ObsidianPluginRepoPaths.d.cts → plugin/obsidian-plugin-repo-paths.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Plugin/PluginContext.d.cts → plugin/plugin-context.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Plugin/PluginId.d.cts → plugin/plugin-id.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Plugin/Plugin.d.cts → plugin/plugin.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Queue.d.cts → queue.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{React/AppContext.d.cts → react/app-context.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{RenameDeleteHandler.d.cts → rename-delete-handler.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{ResourceUrl.d.cts → resource-url.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Validation.d.cts → validation.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{Workspace.d.cts → workspace.d.cts} +0 -0
- /package/dist/lib/cjs/{Path.d.cts → path.d.cts} +0 -0
- /package/dist/lib/cjs/{RegExp.d.cts → reg-exp.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils → script-utils}/build.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/changeExtensionPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/copyToObsidianPluginsFolderPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/customEsbuildOptionsPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild/Dependency.d.cts → script-utils/bundlers/esbuild-impl/dependency.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/fixEsmPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/fixSourceMapsPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/preprocessPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/renameCssPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/svelteWrapperPlugin.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/CodeGenerator.d.cts → script-utils/code-generator.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/format.d.cts → script-utils/formatters/dprint.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/spellcheck.d.cts → script-utils/linters/cspell.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/ESLint/eslint.config.d.cts → script-utils/linters/eslint-config.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/@eslint-community__eslint-plugin-eslint-comments__configs.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/@guardian__eslint-plugin-tsdoc-required.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/eslint-plugin-modules-newlines.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/eslint-plugin-verify-tsdoc.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/ESLint/ESLint.d.cts → script-utils/linters/eslint.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/markdownlint → script-utils/linters/markdownlint-types}/@types/markdownlint-cli2-config-schema.d.cts +0 -0
- /package/dist/lib/cjs/{ScriptUtils/NodeModules.d.cts → script-utils/node-modules.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/NpmPublish.d.cts → script-utils/npm-publish.d.cts} +0 -0
- /package/dist/lib/cjs/{ScriptUtils/NpmRun.d.cts → script-utils/npm-run.d.cts} +0 -0
- /package/dist/lib/cjs/{TwoWayMap.d.cts → two-way-map.d.cts} +0 -0
- /package/dist/lib/cjs/{TypeGuards.d.cts → type-guards.d.cts} +0 -0
- /package/dist/lib/cjs/{Type.d.cts → type.d.cts} +0 -0
- /package/dist/lib/cjs/{ValueProvider.d.cts → value-provider.d.cts} +0 -0
- /package/dist/lib/esm/{AbortController.d.mts → abort-controller.d.mts} +0 -0
- /package/dist/lib/esm/{Array.d.mts → array.d.mts} +0 -0
- /package/dist/lib/esm/{AsyncEvents.d.mts → async-events.d.mts} +0 -0
- /package/dist/lib/esm/codemirror/{StateFieldSpec.d.mts → state-field-spec.d.mts} +0 -0
- /package/dist/lib/esm/{DebugController.mjs → codemirror/state-field-spec.mjs} +0 -0
- /package/dist/lib/esm/{CssClass.d.mts → css-class.d.mts} +0 -0
- /package/dist/lib/esm/{DebugController.d.mts → debug-controller.d.mts} +0 -0
- /package/dist/lib/esm/{codemirror/StateFieldSpec.mjs → debug-controller.mjs} +0 -0
- /package/dist/lib/esm/{Enum.d.mts → enum.d.mts} +0 -0
- /package/dist/lib/esm/{Error.d.mts → error.d.mts} +0 -0
- /package/dist/lib/esm/{Function.d.mts → function.d.mts} +0 -0
- /package/dist/lib/esm/{Library.d.mts → library.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/api/data-array.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/api/extensions.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/api/inline-api.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/api/plugin-api.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/api/result.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/common.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/csv.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/inline-field.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/markdown-file.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/persister.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/web-worker/import-entry.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/web-worker/import-impl.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-import/web-worker/import-manager.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-index/index.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-index/resolver.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-index/source.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-model/markdown.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-model/serialized/markdown.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-model/transferable.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/data-model/value.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/expression/binaryop.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/expression/context.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/expression/field.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/expression/functions.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/expression/parse.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/index.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/main.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/query/engine.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/query/parse.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/query/query.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/settings.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/typings/obsidian-ex.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/typings/workers.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/export/markdown.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/lp-render.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/markdown.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/refreshable-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/render.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/calendar-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/inline-field-live-preview.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/inline-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/js-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/list-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/table-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/ui/views/task-view.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/util/hash.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/util/locale.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/util/media.d.mts +0 -0
- /package/dist/lib/esm/obsidian/@types/{Dataview → dataview}/util/normalize.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{App.d.mts → app.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{CodeBlockMarkdownInformation.d.mts → code-block-markdown-information.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{CodeBlockMarkdownInformation.mjs → code-block-markdown-information.mjs} +0 -0
- /package/dist/lib/esm/obsidian/{Commands/CommandBase.d.mts → commands/command-base.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Components/SettingComponents/SettingComponentWrapper.d.mts → components/setting-components/setting-component-wrapper.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Components/SettingComponents/TextBasedComponent.d.mts → components/setting-components/text-based-component.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Components/SettingComponents/ValueComponentWithChangeTracking.d.mts → components/setting-components/value-component-with-change-tracking.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Components/SettingComponents/ValueComponentWithChangeTracking.mjs → components/setting-components/value-component-with-change-tracking.mjs} +0 -0
- /package/dist/lib/esm/obsidian/{Editor.d.mts → editor.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{FrontmatterLinkCacheWithOffsets.d.mts → frontmatter-link-cache-with-offsets.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Logger.d.mts → logger.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Loop.d.mts → loop.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{MarkdownView.d.mts → markdown-view.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Modals/Alert.d.mts → modals/alert.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Modals/Confirm.d.mts → modals/confirm.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{MonkeyAround.d.mts → monkey-around.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{ObsidianSettings.d.mts → obsidian-settings.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Pdf.d.mts → pdf.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Plugin/ObsidianPluginRepoPaths.d.mts → plugin/obsidian-plugin-repo-paths.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Plugin/PluginContext.d.mts → plugin/plugin-context.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Plugin/PluginId.d.mts → plugin/plugin-id.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Plugin/PluginSettingsWrapper.mjs → plugin/plugin-settings-wrapper.mjs} +0 -0
- /package/dist/lib/esm/obsidian/{Plugin/PluginTypesBase.mjs → plugin/plugin-types-base.mjs} +0 -0
- /package/dist/lib/esm/obsidian/{Plugin/Plugin.d.mts → plugin/plugin.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Queue.d.mts → queue.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{React/AppContext.d.mts → react/app-context.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{RenameDeleteHandler.d.mts → rename-delete-handler.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{ResourceUrl.d.mts → resource-url.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Validation.d.mts → validation.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{Workspace.d.mts → workspace.d.mts} +0 -0
- /package/dist/lib/esm/{Path.d.mts → path.d.mts} +0 -0
- /package/dist/lib/esm/{RegExp.d.mts → reg-exp.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils → script-utils}/build.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/changeExtensionPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/copyToObsidianPluginsFolderPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/customEsbuildOptionsPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild/Dependency.d.mts → script-utils/bundlers/esbuild-impl/dependency.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/fixEsmPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/fixSourceMapsPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/preprocessPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/renameCssPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/esbuild → script-utils/bundlers/esbuild-impl}/svelteWrapperPlugin.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/CodeGenerator.d.mts → script-utils/code-generator.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/format.d.mts → script-utils/formatters/dprint.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/spellcheck.d.mts → script-utils/linters/cspell.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/ESLint/eslint.config.d.mts → script-utils/linters/eslint-config.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/@eslint-community__eslint-plugin-eslint-comments__configs.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/@guardian__eslint-plugin-tsdoc-required.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/eslint-plugin-modules-newlines.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/ESLint → script-utils/linters/eslint-types}/@types/eslint-plugin-verify-tsdoc.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/ESLint/ESLint.d.mts → script-utils/linters/eslint.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/markdownlint → script-utils/linters/markdownlint-types}/@types/markdownlint-cli2-config-schema.d.mts +0 -0
- /package/dist/lib/esm/{ScriptUtils/NodeModules.d.mts → script-utils/node-modules.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/NpmPublish.d.mts → script-utils/npm-publish.d.mts} +0 -0
- /package/dist/lib/esm/{ScriptUtils/NpmRun.d.mts → script-utils/npm-run.d.mts} +0 -0
- /package/dist/lib/esm/{TwoWayMap.d.mts → two-way-map.d.mts} +0 -0
- /package/dist/lib/esm/{TypeGuards.d.mts → type-guards.d.mts} +0 -0
- /package/dist/lib/esm/{Type.d.mts → type.d.mts} +0 -0
- /package/dist/lib/esm/{ValueProvider.d.mts → value-provider.d.mts} +0 -0
|
@@ -1,473 +0,0 @@
|
|
|
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() {
|
|
7
|
-
const globalThisRecord = globalThis;
|
|
8
|
-
globalThisRecord['__name'] ??= name;
|
|
9
|
-
const originalRequire = require;
|
|
10
|
-
if (originalRequire && !originalRequire.__isPatched) {
|
|
11
|
-
// eslint-disable-next-line no-global-assign, no-implicit-globals -- We need to patch the `require()` function.
|
|
12
|
-
require = Object.assign(
|
|
13
|
-
(id) => requirePatched(id),
|
|
14
|
-
originalRequire,
|
|
15
|
-
{
|
|
16
|
-
__isPatched: true
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const newFuncs = {
|
|
22
|
-
__extractDefault() {
|
|
23
|
-
return extractDefault;
|
|
24
|
-
},
|
|
25
|
-
process() {
|
|
26
|
-
const browserProcess = {
|
|
27
|
-
browser: true,
|
|
28
|
-
cwd() {
|
|
29
|
-
return '/';
|
|
30
|
-
},
|
|
31
|
-
env: {},
|
|
32
|
-
platform: 'android'
|
|
33
|
-
};
|
|
34
|
-
return browserProcess;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
for (const key of Object.keys(newFuncs)) {
|
|
39
|
-
globalThisRecord[key] ??= newFuncs[key]?.();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function name(obj) {
|
|
43
|
-
return obj;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function extractDefault(module) {
|
|
47
|
-
return module && module.__esModule && 'default' in module ? module.default : module;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const OBSIDIAN_BUILT_IN_MODULE_NAMES = [
|
|
51
|
-
'obsidian',
|
|
52
|
-
'@codemirror/autocomplete',
|
|
53
|
-
'@codemirror/collab',
|
|
54
|
-
'@codemirror/commands',
|
|
55
|
-
'@codemirror/language',
|
|
56
|
-
'@codemirror/lint',
|
|
57
|
-
'@codemirror/search',
|
|
58
|
-
'@codemirror/state',
|
|
59
|
-
'@codemirror/text',
|
|
60
|
-
'@codemirror/view',
|
|
61
|
-
'@lezer/common',
|
|
62
|
-
'@lezer/lr',
|
|
63
|
-
'@lezer/highlight'];
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const DEPRECATED_OBSIDIAN_BUILT_IN_MODULE_NAMES = [
|
|
67
|
-
'@codemirror/closebrackets',
|
|
68
|
-
'@codemirror/comment',
|
|
69
|
-
'@codemirror/fold',
|
|
70
|
-
'@codemirror/gutter',
|
|
71
|
-
'@codemirror/highlight',
|
|
72
|
-
'@codemirror/history',
|
|
73
|
-
'@codemirror/matchbrackets',
|
|
74
|
-
'@codemirror/panel',
|
|
75
|
-
'@codemirror/rangeset',
|
|
76
|
-
'@codemirror/rectangular-selection',
|
|
77
|
-
'@codemirror/stream-parser',
|
|
78
|
-
'@codemirror/tooltip'];
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
function requirePatched(id) {
|
|
82
|
-
if (OBSIDIAN_BUILT_IN_MODULE_NAMES.includes(id) || DEPRECATED_OBSIDIAN_BUILT_IN_MODULE_NAMES.includes(id)) {
|
|
83
|
-
return originalRequire?.(id);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated, @typescript-eslint/no-unnecessary-condition -- We need access to app here which might not be available yet.
|
|
87
|
-
if (globalThis?.app?.isMobile) {
|
|
88
|
-
if (id === 'process' || id === 'node:process') {
|
|
89
|
-
console.debug(`The most likely you can safely ignore this error. Module not found: ${id}. Fake process object is returned instead.`);
|
|
90
|
-
return globalThis.process;
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
93
|
-
const module = originalRequire?.(id);
|
|
94
|
-
if (module) {
|
|
95
|
-
return extractDefault(module);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
console.debug(`The most likely you can safely ignore this error. Module not found: ${id}. Empty object is returned instead.`);
|
|
100
|
-
return {};
|
|
101
|
-
}
|
|
102
|
-
})();
|
|
103
|
-
|
|
104
|
-
"use strict";
|
|
105
|
-
var __defProp = Object.defineProperty;
|
|
106
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
107
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
108
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
109
|
-
var __export = (target, all) => {
|
|
110
|
-
for (var name in all)
|
|
111
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
112
|
-
};
|
|
113
|
-
var __copyProps = (to, from, except, desc) => {
|
|
114
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
115
|
-
for (let key of __getOwnPropNames(from))
|
|
116
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
117
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
118
|
-
}
|
|
119
|
-
return to;
|
|
120
|
-
};
|
|
121
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
122
|
-
var FileChange_exports = {};
|
|
123
|
-
__export(FileChange_exports, {
|
|
124
|
-
applyContentChanges: () => applyContentChanges,
|
|
125
|
-
applyFileChanges: () => applyFileChanges,
|
|
126
|
-
isCanvasChange: () => isCanvasChange,
|
|
127
|
-
isCanvasFileNodeChange: () => isCanvasFileNodeChange,
|
|
128
|
-
isCanvasTextNodeChange: () => isCanvasTextNodeChange,
|
|
129
|
-
isContentChange: () => isContentChange,
|
|
130
|
-
isFrontmatterChange: () => isFrontmatterChange,
|
|
131
|
-
isFrontmatterChangeWithOffsets: () => isFrontmatterChangeWithOffsets,
|
|
132
|
-
toFrontmatterChangeWithOffsets: () => toFrontmatterChangeWithOffsets
|
|
133
|
-
});
|
|
134
|
-
module.exports = __toCommonJS(FileChange_exports);
|
|
135
|
-
var import_implementations = require('obsidian-typings/implementations');
|
|
136
|
-
var import_Debug = require('../Debug.cjs');
|
|
137
|
-
var import_Error = require('../Error.cjs');
|
|
138
|
-
var import_ObjectUtils = require('../ObjectUtils.cjs');
|
|
139
|
-
var import_ValueProvider = require('../ValueProvider.cjs');
|
|
140
|
-
var import_FileSystem = require('./FileSystem.cjs');
|
|
141
|
-
var import_Frontmatter = require('./Frontmatter.cjs');
|
|
142
|
-
var import_FrontmatterLinkCacheWithOffsets = require('./FrontmatterLinkCacheWithOffsets.cjs');
|
|
143
|
-
var import_Reference = require('./Reference.cjs');
|
|
144
|
-
var import_Vault = require('./Vault.cjs');
|
|
145
|
-
async function applyContentChanges(abortSignal, content, path, changesProvider, shouldRetryOnInvalidChanges = true) {
|
|
146
|
-
abortSignal.throwIfAborted();
|
|
147
|
-
let changes = await (0, import_ValueProvider.resolveValue)(changesProvider, abortSignal, content);
|
|
148
|
-
abortSignal.throwIfAborted();
|
|
149
|
-
if (changes === null) {
|
|
150
|
-
return null;
|
|
151
|
-
}
|
|
152
|
-
const { frontmatter, hasFrontmatterError } = parseFrontmatterSafely(content, path);
|
|
153
|
-
if (!validateChanges(changes, content, frontmatter, path)) {
|
|
154
|
-
return shouldRetryOnInvalidChanges ? null : content;
|
|
155
|
-
}
|
|
156
|
-
changes = sortAndFilterChanges(changes);
|
|
157
|
-
const { frontmatterChanged, newContent } = applyContentChangesToText(changes, content, hasFrontmatterError, path);
|
|
158
|
-
await applyFrontmatterChangesWithOffsets(abortSignal, frontmatter, frontmatterChanged, path);
|
|
159
|
-
abortSignal.throwIfAborted();
|
|
160
|
-
return buildFinalContent(newContent, frontmatter, frontmatterChanged);
|
|
161
|
-
}
|
|
162
|
-
async function applyFileChanges(app, pathOrFile, changesProvider, processOptions = {}, shouldRetryOnInvalidChanges = true) {
|
|
163
|
-
await (0, import_Vault.process)(app, pathOrFile, async (abortSignal, content) => {
|
|
164
|
-
if ((0, import_FileSystem.isCanvasFile)(app, pathOrFile)) {
|
|
165
|
-
return await applyCanvasChanges(abortSignal, content, (0, import_FileSystem.getPath)(app, pathOrFile), changesProvider, shouldRetryOnInvalidChanges);
|
|
166
|
-
}
|
|
167
|
-
return await applyContentChanges(abortSignal, content, (0, import_FileSystem.getPath)(app, pathOrFile), changesProvider, shouldRetryOnInvalidChanges);
|
|
168
|
-
}, processOptions);
|
|
169
|
-
}
|
|
170
|
-
function isCanvasChange(change) {
|
|
171
|
-
return (0, import_Reference.isCanvasReference)(change.reference);
|
|
172
|
-
}
|
|
173
|
-
function isCanvasFileNodeChange(change) {
|
|
174
|
-
return isCanvasChange(change) && change.reference.type === "file";
|
|
175
|
-
}
|
|
176
|
-
function isCanvasTextNodeChange(change) {
|
|
177
|
-
return isCanvasChange(change) && change.reference.type === "text";
|
|
178
|
-
}
|
|
179
|
-
function isContentChange(fileChange) {
|
|
180
|
-
return (0, import_implementations.isReferenceCache)(fileChange.reference);
|
|
181
|
-
}
|
|
182
|
-
function isFrontmatterChange(fileChange) {
|
|
183
|
-
return (0, import_implementations.isFrontmatterLinkCache)(fileChange.reference);
|
|
184
|
-
}
|
|
185
|
-
function isFrontmatterChangeWithOffsets(fileChange) {
|
|
186
|
-
return (0, import_FrontmatterLinkCacheWithOffsets.isFrontmatterLinkCacheWithOffsets)(fileChange.reference);
|
|
187
|
-
}
|
|
188
|
-
function toFrontmatterChangeWithOffsets(fileChange) {
|
|
189
|
-
if (isFrontmatterChangeWithOffsets(fileChange)) {
|
|
190
|
-
return fileChange;
|
|
191
|
-
}
|
|
192
|
-
return {
|
|
193
|
-
...fileChange,
|
|
194
|
-
reference: (0, import_FrontmatterLinkCacheWithOffsets.toFrontmatterLinkCacheWithOffsets)(fileChange.reference)
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
async function applyCanvasChanges(abortSignal, content, path, changesProvider, shouldRetryOnInvalidChanges = true) {
|
|
198
|
-
const changes = await (0, import_ValueProvider.resolveValue)(changesProvider, abortSignal, content);
|
|
199
|
-
abortSignal.throwIfAborted();
|
|
200
|
-
if (changes === null) {
|
|
201
|
-
return null;
|
|
202
|
-
}
|
|
203
|
-
const canvasData = parseJsonSafe(content);
|
|
204
|
-
const canvasTextChanges = /* @__PURE__ */ new Map();
|
|
205
|
-
for (const change of changes) {
|
|
206
|
-
if (!isCanvasChange(change)) {
|
|
207
|
-
const message = "Only canvas changes are supported for canvas files";
|
|
208
|
-
console.error(message, {
|
|
209
|
-
change,
|
|
210
|
-
path
|
|
211
|
-
});
|
|
212
|
-
continue;
|
|
213
|
-
}
|
|
214
|
-
const node = canvasData.nodes[change.reference.nodeIndex];
|
|
215
|
-
if (!node) {
|
|
216
|
-
const message = "Node not found";
|
|
217
|
-
console.error(message, {
|
|
218
|
-
nodeIndex: change.reference.nodeIndex,
|
|
219
|
-
path
|
|
220
|
-
});
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
if (isCanvasFileNodeChange(change)) {
|
|
224
|
-
if (node.file !== change.oldContent) {
|
|
225
|
-
(0, import_Debug.getLibDebugger)("FileChange:applyCanvasChanges")("Content mismatch", {
|
|
226
|
-
actualContent: node.file,
|
|
227
|
-
expectedContent: change.oldContent,
|
|
228
|
-
nodeIndex: change.reference.nodeIndex,
|
|
229
|
-
path,
|
|
230
|
-
type: "file"
|
|
231
|
-
});
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
node.file = change.newContent;
|
|
235
|
-
} else if (isCanvasTextNodeChange(change)) {
|
|
236
|
-
let canvasTextChangesForNode = canvasTextChanges.get(change.reference.nodeIndex);
|
|
237
|
-
if (!canvasTextChangesForNode) {
|
|
238
|
-
canvasTextChangesForNode = [];
|
|
239
|
-
canvasTextChanges.set(change.reference.nodeIndex, canvasTextChangesForNode);
|
|
240
|
-
}
|
|
241
|
-
canvasTextChangesForNode.push(change);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
for (const [nodeIndex, canvasTextChangesForNode] of canvasTextChanges.entries()) {
|
|
245
|
-
const node = canvasData.nodes[nodeIndex];
|
|
246
|
-
if (!node) {
|
|
247
|
-
const message = "Node not found";
|
|
248
|
-
console.error(message, {
|
|
249
|
-
nodeIndex,
|
|
250
|
-
path
|
|
251
|
-
});
|
|
252
|
-
return null;
|
|
253
|
-
}
|
|
254
|
-
if (typeof node.text !== "string") {
|
|
255
|
-
const message = "Node text is not a string";
|
|
256
|
-
console.error(message, {
|
|
257
|
-
nodeIndex,
|
|
258
|
-
path
|
|
259
|
-
});
|
|
260
|
-
return null;
|
|
261
|
-
}
|
|
262
|
-
const contentChanges = canvasTextChangesForNode.map((change) => (0, import_Reference.referenceToFileChange)(change.reference.originalReference, change.newContent));
|
|
263
|
-
node.text = await applyContentChanges(
|
|
264
|
-
abortSignal,
|
|
265
|
-
node.text,
|
|
266
|
-
`${path}.node${String(nodeIndex)}.VIRTUAL_FILE.md`,
|
|
267
|
-
contentChanges,
|
|
268
|
-
shouldRetryOnInvalidChanges
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
return JSON.stringify(canvasData, null, " ");
|
|
272
|
-
}
|
|
273
|
-
function applyContentChangesToText(changes, content, hasFrontmatterError, path) {
|
|
274
|
-
let newContent = "";
|
|
275
|
-
let lastIndex = 0;
|
|
276
|
-
let lastContentChange = {
|
|
277
|
-
newContent: "",
|
|
278
|
-
oldContent: "",
|
|
279
|
-
reference: {
|
|
280
|
-
link: "",
|
|
281
|
-
original: "",
|
|
282
|
-
position: {
|
|
283
|
-
end: { col: 0, line: 0, offset: 0 },
|
|
284
|
-
start: { col: 0, line: 0, offset: 0 }
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const frontmatterChangesWithOffsetMap = /* @__PURE__ */ new Map();
|
|
289
|
-
for (const change of changes) {
|
|
290
|
-
if (isContentChange(change)) {
|
|
291
|
-
if (lastIndex <= change.reference.position.start.offset) {
|
|
292
|
-
newContent += content.slice(lastIndex, change.reference.position.start.offset);
|
|
293
|
-
newContent += change.newContent;
|
|
294
|
-
lastIndex = change.reference.position.end.offset;
|
|
295
|
-
lastContentChange = change;
|
|
296
|
-
} else {
|
|
297
|
-
const overlappingStartOffset = change.reference.position.start.offset - lastContentChange.reference.position.start.offset;
|
|
298
|
-
const overlappingEndOffset = change.reference.position.end.offset - lastContentChange.reference.position.start.offset;
|
|
299
|
-
const overlappingContent = lastContentChange.newContent.slice(overlappingStartOffset, overlappingEndOffset);
|
|
300
|
-
if (overlappingContent !== change.oldContent) {
|
|
301
|
-
const message = "Overlapping changes";
|
|
302
|
-
console.error(message, { change, lastContentChange });
|
|
303
|
-
throw new Error(message);
|
|
304
|
-
}
|
|
305
|
-
newContent = newContent.slice(0, newContent.length - lastContentChange.newContent.length) + lastContentChange.newContent.slice(0, overlappingStartOffset) + change.newContent + lastContentChange.newContent.slice(overlappingEndOffset);
|
|
306
|
-
}
|
|
307
|
-
} else if (isFrontmatterChange(change)) {
|
|
308
|
-
if (hasFrontmatterError) {
|
|
309
|
-
console.error(`Cannot apply frontmatter change in ${path}, because frontmatter parsing failed`, { change });
|
|
310
|
-
} else {
|
|
311
|
-
let frontmatterChangesWithOffsets = frontmatterChangesWithOffsetMap.get(change.reference.key);
|
|
312
|
-
if (!frontmatterChangesWithOffsets) {
|
|
313
|
-
frontmatterChangesWithOffsets = [];
|
|
314
|
-
frontmatterChangesWithOffsetMap.set(change.reference.key, frontmatterChangesWithOffsets);
|
|
315
|
-
}
|
|
316
|
-
frontmatterChangesWithOffsets.push(toFrontmatterChangeWithOffsets(change));
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
newContent += content.slice(lastIndex);
|
|
321
|
-
return { frontmatterChanged: frontmatterChangesWithOffsetMap, newContent };
|
|
322
|
-
}
|
|
323
|
-
async function applyFrontmatterChangesWithOffsets(abortSignal, frontmatter, frontmatterChangesWithOffsetMap, path) {
|
|
324
|
-
for (const [key, frontmatterChangesWithOffsets] of frontmatterChangesWithOffsetMap.entries()) {
|
|
325
|
-
const propertyValue = (0, import_ObjectUtils.getNestedPropertyValue)(frontmatter, key);
|
|
326
|
-
if (typeof propertyValue !== "string") {
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
const contentChanges = frontmatterChangesWithOffsets.map((change) => ({
|
|
330
|
-
newContent: change.newContent,
|
|
331
|
-
oldContent: change.oldContent,
|
|
332
|
-
reference: {
|
|
333
|
-
link: "",
|
|
334
|
-
original: "",
|
|
335
|
-
position: {
|
|
336
|
-
end: {
|
|
337
|
-
col: change.reference.endOffset,
|
|
338
|
-
line: 0,
|
|
339
|
-
offset: change.reference.endOffset
|
|
340
|
-
},
|
|
341
|
-
start: {
|
|
342
|
-
col: change.reference.startOffset,
|
|
343
|
-
line: 0,
|
|
344
|
-
offset: change.reference.startOffset
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}));
|
|
349
|
-
const newPropertyValue = await applyContentChanges(abortSignal, propertyValue, `${path}.frontmatter.${key}.VIRTUAL_FILE.md`, contentChanges);
|
|
350
|
-
if (newPropertyValue === null) {
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
(0, import_ObjectUtils.setNestedPropertyValue)(frontmatter, key, newPropertyValue);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function buildFinalContent(newContent, frontmatter, frontmatterChanged) {
|
|
357
|
-
if (frontmatterChanged.size > 0) {
|
|
358
|
-
return (0, import_Frontmatter.setFrontmatter)(newContent, frontmatter);
|
|
359
|
-
}
|
|
360
|
-
return newContent;
|
|
361
|
-
}
|
|
362
|
-
function parseFrontmatterSafely(content, path) {
|
|
363
|
-
let frontmatter = {};
|
|
364
|
-
let hasFrontmatterError = false;
|
|
365
|
-
try {
|
|
366
|
-
frontmatter = (0, import_Frontmatter.parseFrontmatter)(content);
|
|
367
|
-
} catch (error) {
|
|
368
|
-
(0, import_Error.printError)(new Error(`Frontmatter parsing failed in ${path}`, { cause: error }));
|
|
369
|
-
hasFrontmatterError = true;
|
|
370
|
-
}
|
|
371
|
-
return { frontmatter, hasFrontmatterError };
|
|
372
|
-
}
|
|
373
|
-
function parseJsonSafe(content) {
|
|
374
|
-
let parsed;
|
|
375
|
-
try {
|
|
376
|
-
parsed = JSON.parse(content);
|
|
377
|
-
} catch {
|
|
378
|
-
parsed = null;
|
|
379
|
-
}
|
|
380
|
-
if (parsed === null || typeof parsed !== "object") {
|
|
381
|
-
parsed = {};
|
|
382
|
-
}
|
|
383
|
-
return parsed;
|
|
384
|
-
}
|
|
385
|
-
function sortAndFilterChanges(changes) {
|
|
386
|
-
changes.sort((a, b) => {
|
|
387
|
-
if (isContentChange(a) && isContentChange(b)) {
|
|
388
|
-
return a.reference.position.start.offset - b.reference.position.start.offset;
|
|
389
|
-
}
|
|
390
|
-
if (isFrontmatterChangeWithOffsets(a) && isFrontmatterChangeWithOffsets(b)) {
|
|
391
|
-
return a.reference.key.localeCompare(b.reference.key) || a.reference.startOffset - b.reference.startOffset;
|
|
392
|
-
}
|
|
393
|
-
if (isFrontmatterChange(a) && isFrontmatterChange(b)) {
|
|
394
|
-
return a.reference.key.localeCompare(b.reference.key);
|
|
395
|
-
}
|
|
396
|
-
return isContentChange(a) ? -1 : 1;
|
|
397
|
-
});
|
|
398
|
-
return changes.filter((change, index) => {
|
|
399
|
-
if (change.oldContent === change.newContent) {
|
|
400
|
-
return false;
|
|
401
|
-
}
|
|
402
|
-
if (index === 0) {
|
|
403
|
-
return true;
|
|
404
|
-
}
|
|
405
|
-
return !(0, import_ObjectUtils.deepEqual)(change, changes[index - 1]);
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
function validateChanges(changes, content, frontmatter, path) {
|
|
409
|
-
const validateChangesDebugger = (0, import_Debug.getLibDebugger)("FileChange:validateChanges");
|
|
410
|
-
for (const change of changes) {
|
|
411
|
-
if (isContentChange(change)) {
|
|
412
|
-
const startOffset = change.reference.position.start.offset;
|
|
413
|
-
const endOffset = change.reference.position.end.offset;
|
|
414
|
-
const actualContent = content.slice(startOffset, endOffset);
|
|
415
|
-
if (actualContent !== change.oldContent) {
|
|
416
|
-
validateChangesDebugger("Content mismatch", {
|
|
417
|
-
actualContent,
|
|
418
|
-
endOffset,
|
|
419
|
-
expectedContent: change.oldContent,
|
|
420
|
-
path,
|
|
421
|
-
startOffset
|
|
422
|
-
});
|
|
423
|
-
return false;
|
|
424
|
-
}
|
|
425
|
-
} else if (isFrontmatterChangeWithOffsets(change)) {
|
|
426
|
-
const propertyValue = (0, import_ObjectUtils.getNestedPropertyValue)(frontmatter, change.reference.key);
|
|
427
|
-
if (typeof propertyValue !== "string") {
|
|
428
|
-
validateChangesDebugger("Property value is not a string", {
|
|
429
|
-
frontmatterKey: change.reference.key,
|
|
430
|
-
path,
|
|
431
|
-
propertyValue
|
|
432
|
-
});
|
|
433
|
-
return false;
|
|
434
|
-
}
|
|
435
|
-
const actualContent = propertyValue.slice(change.reference.startOffset, change.reference.endOffset);
|
|
436
|
-
if (actualContent !== change.oldContent) {
|
|
437
|
-
validateChangesDebugger("Content mismatch", {
|
|
438
|
-
actualContent,
|
|
439
|
-
expectedContent: change.oldContent,
|
|
440
|
-
frontmatterKey: change.reference.key,
|
|
441
|
-
path,
|
|
442
|
-
startOffset: change.reference.startOffset
|
|
443
|
-
});
|
|
444
|
-
return false;
|
|
445
|
-
}
|
|
446
|
-
} else if (isFrontmatterChange(change)) {
|
|
447
|
-
const actualContent = (0, import_ObjectUtils.getNestedPropertyValue)(frontmatter, change.reference.key);
|
|
448
|
-
if (actualContent !== change.oldContent) {
|
|
449
|
-
validateChangesDebugger("Content mismatch", {
|
|
450
|
-
actualContent,
|
|
451
|
-
expectedContent: change.oldContent,
|
|
452
|
-
frontmatterKey: change.reference.key,
|
|
453
|
-
path
|
|
454
|
-
});
|
|
455
|
-
return false;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
return true;
|
|
460
|
-
}
|
|
461
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
462
|
-
0 && (module.exports = {
|
|
463
|
-
applyContentChanges,
|
|
464
|
-
applyFileChanges,
|
|
465
|
-
isCanvasChange,
|
|
466
|
-
isCanvasFileNodeChange,
|
|
467
|
-
isCanvasTextNodeChange,
|
|
468
|
-
isContentChange,
|
|
469
|
-
isFrontmatterChange,
|
|
470
|
-
isFrontmatterChangeWithOffsets,
|
|
471
|
-
toFrontmatterChangeWithOffsets
|
|
472
|
-
});
|
|
473
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL0ZpbGVDaGFuZ2UudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qKlxuICogQHBhY2thZ2VEb2N1bWVudGF0aW9uXG4gKlxuICogQ29udGFpbnMgdXRpbGl0eSB0eXBlcyBhbmQgZnVuY3Rpb25zIGZvciBoYW5kbGluZyBmaWxlIGNoYW5nZXMgaW4gT2JzaWRpYW4uXG4gKi9cblxuaW1wb3J0IHR5cGUge1xuICBBcHAsXG4gIEZyb250bWF0dGVyTGlua0NhY2hlLFxuICBSZWZlcmVuY2UsXG4gIFJlZmVyZW5jZUNhY2hlXG59IGZyb20gJ29ic2lkaWF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VELGVBQU87QUFBQSxNQUNUO0FBQUEsSUFFRixXQUFXLG9CQUFvQixNQUFNLEdBQUc7QUFFdEMsWUFBTSxvQkFBZ0IsMkNBQXVCLGFBQWEsT0FBTyxVQUFVLEdBQUc7QUFDOUUsVUFBSSxrQkFBa0IsT0FBTyxZQUFZO0FBQ3ZDLGdDQUF3QixvQkFBb0I7QUFBQSxVQUMxQztBQUFBLFVBQ0EsaUJBQWlCLE9BQU87QUFBQSxVQUN4QixnQkFBZ0IsT0FBTyxVQUFVO0FBQUEsVUFDakM7QUFBQSxRQUNGLENBQUM7QUFFRCxlQUFPO0FBQUEsTUFDVDtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBRUEsU0FBTztBQUNUOyIsCiAgIm5hbWVzIjogW10KfQo=
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
*
|
|
4
|
-
* Contains utility types and functions for handling file changes in Obsidian.
|
|
5
|
-
*/
|
|
6
|
-
import type { App, FrontmatterLinkCache, Reference, ReferenceCache } from 'obsidian';
|
|
7
|
-
import type { ValueProvider } from '../ValueProvider.cjs';
|
|
8
|
-
import type { PathOrFile } from './FileSystem.cjs';
|
|
9
|
-
import type { FrontmatterLinkCacheWithOffsets } from './FrontmatterLinkCacheWithOffsets.cjs';
|
|
10
|
-
import type { CanvasFileNodeReference, CanvasReference, CanvasTextNodeReference } from './Reference.cjs';
|
|
11
|
-
import type { ProcessOptions } from './Vault.cjs';
|
|
12
|
-
/**
|
|
13
|
-
* A file change in the vault.
|
|
14
|
-
*/
|
|
15
|
-
export interface FileChange {
|
|
16
|
-
/**
|
|
17
|
-
* A new content to replace the old content.
|
|
18
|
-
*/
|
|
19
|
-
newContent: string;
|
|
20
|
-
/**
|
|
21
|
-
* An old content that will be replaced.
|
|
22
|
-
*/
|
|
23
|
-
oldContent: string;
|
|
24
|
-
/**
|
|
25
|
-
* A reference that caused the change.
|
|
26
|
-
*/
|
|
27
|
-
reference: Reference;
|
|
28
|
-
}
|
|
29
|
-
type CanvasChange = {
|
|
30
|
-
reference: CanvasReference;
|
|
31
|
-
} & FileChange;
|
|
32
|
-
type CanvasFileNodeChange = {
|
|
33
|
-
reference: CanvasFileNodeReference;
|
|
34
|
-
} & FileChange;
|
|
35
|
-
type CanvasTextNodeChange = {
|
|
36
|
-
reference: CanvasTextNodeReference;
|
|
37
|
-
} & FileChange;
|
|
38
|
-
type ContentChange = {
|
|
39
|
-
reference: ReferenceCache;
|
|
40
|
-
} & FileChange;
|
|
41
|
-
type FrontmatterChange = {
|
|
42
|
-
reference: FrontmatterLinkCache;
|
|
43
|
-
} & FileChange;
|
|
44
|
-
type FrontmatterChangeWithOffsets = {
|
|
45
|
-
reference: FrontmatterLinkCacheWithOffsets;
|
|
46
|
-
} & FileChange;
|
|
47
|
-
/**
|
|
48
|
-
* Applies a series of content changes to the specified content.
|
|
49
|
-
*
|
|
50
|
-
* @param abortSignal - The abort signal to control the execution of the function.
|
|
51
|
-
* @param content - The content to which the changes should be applied.
|
|
52
|
-
* @param path - The path to which the changes should be applied.
|
|
53
|
-
* @param changesProvider - A provider that returns an array of content changes to apply.
|
|
54
|
-
* @param shouldRetryOnInvalidChanges - Whether to retry the operation if the changes are invalid.
|
|
55
|
-
* @returns A {@link Promise} that resolves to the updated content or to `null` if update didn't succeed.
|
|
56
|
-
*/
|
|
57
|
-
export declare function applyContentChanges(abortSignal: AbortSignal, content: string, path: string, changesProvider: ValueProvider<FileChange[] | null, [content: string]>, shouldRetryOnInvalidChanges?: boolean): Promise<null | string>;
|
|
58
|
-
/**
|
|
59
|
-
* Applies a series of file changes to the specified file or path within the application.
|
|
60
|
-
*
|
|
61
|
-
* @param app - The application instance where the file changes will be applied.
|
|
62
|
-
* @param pathOrFile - The path or file to which the changes should be applied.
|
|
63
|
-
* @param changesProvider - A provider that returns an array of file changes to apply.
|
|
64
|
-
* @param processOptions - Optional options for processing/retrying the operation.
|
|
65
|
-
* @param shouldRetryOnInvalidChanges - Whether to retry the operation if the changes are invalid.
|
|
66
|
-
*
|
|
67
|
-
* @returns A {@link Promise} that resolves when the file changes have been successfully applied.
|
|
68
|
-
*/
|
|
69
|
-
export declare function applyFileChanges(app: App, pathOrFile: PathOrFile, changesProvider: ValueProvider<FileChange[] | null, [content: string]>, processOptions?: ProcessOptions, shouldRetryOnInvalidChanges?: boolean): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Checks if a file change is a canvas change.
|
|
72
|
-
*
|
|
73
|
-
* @param change - The file change to check.
|
|
74
|
-
* @returns Whether the file change is a canvas change.
|
|
75
|
-
*/
|
|
76
|
-
export declare function isCanvasChange(change: FileChange): change is CanvasChange;
|
|
77
|
-
/**
|
|
78
|
-
* Checks if a file change is a canvas file node change.
|
|
79
|
-
*
|
|
80
|
-
* @param change - The file change to check.
|
|
81
|
-
* @returns Whether the file change is a canvas file node change.
|
|
82
|
-
*/
|
|
83
|
-
export declare function isCanvasFileNodeChange(change: FileChange): change is CanvasFileNodeChange;
|
|
84
|
-
/**
|
|
85
|
-
* Checks if a file change is a canvas text node change.
|
|
86
|
-
*
|
|
87
|
-
* @param change - The file change to check.
|
|
88
|
-
* @returns Whether the file change is a canvas text node change.
|
|
89
|
-
*/
|
|
90
|
-
export declare function isCanvasTextNodeChange(change: FileChange): change is CanvasTextNodeChange;
|
|
91
|
-
/**
|
|
92
|
-
* Checks if a file change is a content change.
|
|
93
|
-
*
|
|
94
|
-
* @param fileChange - The file change to check.
|
|
95
|
-
* @returns A boolean indicating whether the file change is a content change.
|
|
96
|
-
*/
|
|
97
|
-
export declare function isContentChange(fileChange: FileChange): fileChange is ContentChange;
|
|
98
|
-
/**
|
|
99
|
-
* Checks if a file change is a frontmatter change.
|
|
100
|
-
*
|
|
101
|
-
* @param fileChange - The file change to check.
|
|
102
|
-
* @returns A boolean indicating whether the file change is a frontmatter change.
|
|
103
|
-
*/
|
|
104
|
-
export declare function isFrontmatterChange(fileChange: FileChange): fileChange is FrontmatterChange;
|
|
105
|
-
/**
|
|
106
|
-
* Checks if a file change is a frontmatter change with offsets.
|
|
107
|
-
*
|
|
108
|
-
* @param fileChange - The file change to check.
|
|
109
|
-
* @returns A boolean indicating whether the file change is a frontmatter change with offsets.
|
|
110
|
-
*/
|
|
111
|
-
export declare function isFrontmatterChangeWithOffsets(fileChange: FileChange): fileChange is FrontmatterChangeWithOffsets;
|
|
112
|
-
/**
|
|
113
|
-
* Converts a frontmatter change to a frontmatter change with offsets.
|
|
114
|
-
*
|
|
115
|
-
* @param fileChange - The file change to convert.
|
|
116
|
-
* @returns The converted file change.
|
|
117
|
-
*/
|
|
118
|
-
export declare function toFrontmatterChangeWithOffsets(fileChange: FrontmatterChange): FrontmatterChangeWithOffsets;
|
|
119
|
-
export {};
|